1import{e as mg}from"./chunk-23OYWDAP.js";import{a as Wp}from"./chunk-TPDW35KC.js";import{K as cg,d as sg,l as Vs,m as Ws,nf as pg,p as lg,sa as fg,td as dg,v as ug,va as Vp}from"./chunk-ZIECK5QA.js";import{a as re,b as ge,e as hr,g as ve,h as LO,i as Te,j as Us,m as K,n as $s,o as Up,p as $p,q as ag}from"./chunk-3JMZ37NM.js";var ze=ve((hoe,tf)=>{(function(){"use strict";var e={}.hasOwnProperty;function t(){for(var o="",s=0;s<arguments.length;s++){var l=arguments[s];l&&(o=i(o,r(l)))}return o}function r(o){if(typeof o=="string"||typeof o=="number")return o;if(typeof o!="object")return"";if(Array.isArray(o))return t.apply(null,o);if(o.toString!==Object.prototype.toString&&!o.toString.toString().includes("[native code]"))return o.toString();var s="";for(var l in o)e.call(o,l)&&o[l]&&(s=i(s,l));return s}function i(o,s){return s?o?o+" "+s:o+s:o}typeof tf<"u"&&tf.exports?(t.default=t,tf.exports=t):typeof define=="function"&&typeof define.amd=="object"&&define.amd?define("classnames",[],function(){return t}):window.classNames=t})()});var Jb=ve((Y1,X1)=>{(function(e,t){typeof Y1=="object"&&typeof X1<"u"?X1.exports=t():typeof define=="function"&&define.amd?define(t):(e=typeof globalThis<"u"?globalThis:e||self).dayjs=t()})(Y1,function(){"use strict";var e=1e3,t=6e4,r=36e5,i="millisecond",o="second",s="minute",l="hour",c="day",f="week",d="month",m="quarter",p="year",v="date",w="Invalid Date",g=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,S=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,y={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(ee){var q=["th","st","nd","rd"],z=ee%100;return"["+ee+(q[(z-20)%10]||q[z]||q[0])+"]"}},x=function(ee,q,z){var W=String(ee);return!W||W.length>=q?ee:""+Array(q+1-W.length).join(z)+ee},T={s:x,z:function(ee){var q=-ee.utcOffset(),z=Math.abs(q),W=Math.floor(z/60),G=z%60;return(q<=0?"+":"-")+x(W,2,"0")+":"+x(G,2,"0")},m:function ee(q,z){if(q.date()<z.date())return-ee(z,q);var W=12*(z.year()-q.year())+(z.month()-q.month()),G=q.clone().add(W,d),J=z-G<0,Z=q.clone().add(W+(J?-1:1),d);return+(-(W+(z-G)/(J?G-Z:Z-G))||0)},a:function(ee){return ee<0?Math.ceil(ee)||0:Math.floor(ee)},p:function(ee){return{M:d,y:p,w:f,d:c,D:v,h:l,m:s,s:o,ms:i,Q:m}[ee]||String(ee||"").toLowerCase().replace(/s$/,"")},u:function(ee){return ee===void 0}},C="en",O={};O[C]=y;var I="$isDayjsObject",M=function(ee){return ee instanceof oe||!(!ee||!ee[I])},$=function ee(q,z,W){var G;if(!q)return C;if(typeof q=="string"){var J=q.toLowerCase();O[J]&&(G=J),z&&(O[J]=z,G=J);var Z=q.split("-");if(!G&&Z.length>1)return ee(Z[0])}else{var ce=q.name;O[ce]=q,G=ce}return!W&&G&&(C=G),G||!W&&C},k=function(ee,q){if(M(ee))return ee.clone();var z=typeof q=="object"?q:{};return z.date=ee,z.args=arguments,new oe(z)},H=T;H.l=$,H.i=M,H.w=function(ee,q){return k(ee,{locale:q.$L,utc:q.$u,x:q.$x,$offset:q.$offset})};var oe=function(){function ee(z){this.$L=$(z.locale,null,!0),this.parse(z),this.$x=this.$x||z.x||{},this[I]=!0}var q=ee.prototype;return q.parse=function(z){this.$d=function(W){var G=W.date,J=W.utc;if(G===null)return new Date(NaN);if(H.u(G))return new Date;if(G instanceof Date)return new Date(G);if(typeof G=="string"&&!/Z$/i.test(G)){var Z=G.match(g);if(Z){var ce=Z[2]-1||0,pe=(Z[7]||"0").substring(0,3);return J?new Date(Date.UTC(Z[1],ce,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,pe)):new Date(Z[1],ce,Z[3]||1,Z[4]||0,Z[5]||0,Z[6]||0,pe)}}return new Date(G)}(z),this.init()},q.init=function(){var z=this.$d;this.$y=z.getFullYear(),this.$M=z.getMonth(),this.$D=z.getDate(),this.$W=z.getDay(),this.$H=z.getHours(),this.$m=z.getMinutes(),this.$s=z.getSeconds(),this.$ms=z.getMilliseconds()},q.$utils=function(){return H},q.isValid=function(){return this.$d.toString()!==w},q.isSame=function(z,W){var G=k(z);return this.startOf(W)<=G&&G<=this.endOf(W)},q.isAfter=function(z,W){return k(z)<this.startOf(W)},q.isBefore=function(z,W){return this.endOf(W)<k(z)},q.$g=function(z,W,G){return H.u(z)?this[W]:this.set(G,z)},q.unix=function(){return Math.floor(this.valueOf()/1e3)},q.valueOf=function(){return this.$d.getTime()},q.startOf=function(z,W){var G=this,J=!!H.u(W)||W,Z=H.p(z),ce=function(mt,Ge){var ht=H.w(G.$u?Date.UTC(G.$y,Ge,mt):new Date(G.$y,Ge,mt),G);return J?ht:ht.endOf(c)},pe=function(mt,Ge){return H.w(G.toDate()[mt].apply(G.toDate("s"),(J?[0,0,0,0]:[23,59,59,999]).slice(Ge)),G)},le=this.$W,Oe=this.$M,xe=this.$D,tt="set"+(this.$u?"UTC":"");switch(Z){case p:return J?ce(1,0):ce(31,11);case d:return J?ce(1,Oe):ce(0,Oe+1);case f:var ke=this.$locale().weekStart||0,bt=(le<ke?le+7:le)-ke;return ce(J?xe-bt:xe+(6-bt),Oe);case c:case v:return pe(tt+"Hours",0);case l:return pe(tt+"Minutes",1);case s:return pe(tt+"Seconds",2);case o:return pe(tt+"Milliseconds",3);default:return this.clone()}},q.endOf=function(z){return this.startOf(z,!1)},q.$set=function(z,W){var G,J=H.p(z),Z="set"+(this.$u?"UTC":""),ce=(G={},G[c]=Z+"Date",G[v]=Z+"Date",G[d]=Z+"Month",G[p]=Z+"FullYear",G[l]=Z+"Hours",G[s]=Z+"Minutes",G[o]=Z+"Seconds",G[i]=Z+"Milliseconds",G)[J],pe=J===c?this.$D+(W-this.$W):W;if(J===d||J===p){var le=this.clone().set(v,1);
1le.$d[ce](pe),le.init(),this.$d=le.set(v,Math.min(this.$D,le.daysInMonth())).$d}else ce&&this.$d[ce](pe);return this.init(),this},q.set=function(z,W){return this.clone().$set(z,W)},q.get=function(z){return this[H.p(z)]()},q.add=function(z,W){var G,J=this;z=Number(z);var Z=H.p(W),ce=function(Oe){var xe=k(J);return H.w(xe.date(xe.date()+Math.round(Oe*z)),J)};if(Z===d)return this.set(d,this.$M+z);if(Z===p)return this.set(p,this.$y+z);if(Z===c)return ce(1);if(Z===f)return ce(7);var pe=(G={},G[s]=t,G[l]=r,G[o]=e,G)[Z]||1,le=this.$d.getTime()+z*pe;return H.w(le,this)},q.subtract=function(z,W){return this.add(-1*z,W)},q.format=function(z){var W=this,G=this.$locale();if(!this.isValid())return G.invalidDate||w;var J=z||"YYYY-MM-DDTHH:mm:ssZ",Z=H.z(this),ce=this.$H,pe=this.$m,le=this.$M,Oe=G.weekdays,xe=G.months,tt=G.meridiem,ke=function(Ge,ht,xt,Me){return Ge&&(Ge[ht]||Ge(W,J))||xt[ht].slice(0,Me)},bt=function(Ge){return H.s(ce%12||12,Ge,"0")},mt=tt||function(Ge,ht,xt){var Me=Ge<12?"AM":"PM";return xt?Me.toLowerCase():Me};return J.replace(S,function(Ge,ht){return ht||function(xt){switch(xt){case"YY":return String(W.$y).slice(-2);case"YYYY":return H.s(W.$y,4,"0");case"M":return le+1;case"MM":return H.s(le+1,2,"0");case"MMM":return ke(G.monthsShort,le,xe,3);case"MMMM":return ke(xe,le);case"D":return W.$D;case"DD":return H.s(W.$D,2,"0");case"d":return String(W.$W);case"dd":return ke(G.weekdaysMin,W.$W,Oe,2);case"ddd":return ke(G.weekdaysShort,W.$W,Oe,3);case"dddd":return Oe[W.$W];case"H":return String(ce);case"HH":return H.s(ce,2,"0");case"h":return bt(1);case"hh":return bt(2);case"a":return mt(ce,pe,!0);case"A":return mt(ce,pe,!1);case"m":return String(pe);case"mm":return H.s(pe,2,"0");case"s":return String(W.$s);case"ss":return H.s(W.$s,2,"0");case"SSS":return H.s(W.$ms,3,"0");case"Z":return Z}return null}(Ge)||Z.replace(":","")})},q.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},q.diff=function(z,W,G){var J,Z=this,ce=H.p(W),pe=k(z),le=(pe.utcOffset()-this.utcOffset())*t,Oe=this-pe,xe=function(){return H.m(Z,pe)};switch(ce){case p:J=xe()/12;break;case d:J=xe();break;case m:J=xe()/3;break;case f:J=(Oe-le)/6048e5;break;case c:J=(Oe-le)/864e5;break;case l:J=Oe/r;break;case s:J=Oe/t;break;case o:J=Oe/e;break;default:J=Oe}return G?J:H.a(J)},q.daysInMonth=function(){return this.endOf(d).$D},q.$locale=function(){return O[this.$L]},q.locale=function(z,W){if(!z)return this.$L;var G=this.clone(),J=$(z,W,!0);return J&&(G.$L=J),G},q.clone=function(){return H.w(this.$d,this)},q.toDate=function(){return new Date(this.valueOf())},q.toJSON=function(){return this.isValid()?this.toISOString():null},q.toISOString=function(){return this.$d.toISOString()},q.toString=function(){return this.$d.toUTCString()},ee}(),ie=oe.prototype;return k.prototype=ie,[["$ms",i],["$s",o],["$m",s],["$H",l],["$W",c],["$M",d],["$y",p],["$D",v]].forEach(function(ee){ie[ee[1]]=function(q){return this.$g(q,ee[0],ee[1])}}),k.extend=function(ee,q){return ee.$i||(ee(q,oe,k),ee.$i=!0),k},k.locale=$,k.isDayjs=M,k.unix=function(ee){return k(1e3*ee)},k.en=O[C],k.Ls=O,k.p={},k})});var _7=ve((Am,Tm)=>{(function(e,t){typeof Am=="object"&&typeof Tm<"u"?Tm.exports=t():typeof define=="function"&&define.amd?define(t):(e=e||self).getXPath=t()})(Am,function(){function e(){return(e=Object.assign?Object.assign.bind():function(l){for(var c=1;c<arguments.length;c++){var f=arguments[c];for(var d in f)({}).hasOwnProperty.call(f,d)&&(l[d]=f[d])}return l}).apply(null,arguments)}var t={ignoreId:!1},r=typeof Node<"u",i=r?Node.ELEMENT_NODE:1,o=r?Node.TEXT_NODE:3,s=r?Node.DOCUMENT_TYPE_NODE:10;return function(l,c){var f=e({},t,c),d=l;if(d&&d.id&&!f.ignoreId)return'//*[@id="'+d.id+'"]';for(var m=[];d&&(i===d.nodeType||o===d.nodeType);){for(var p=0,v=!1,w=d.previousSibling;w;)w.nodeType!==s&&w.nodeName===d.nodeName&&p++,w=w.previousSibling;for(w=d.nextSibling;w;){if(w.nodeName===d.nodeName){v=!0;break}w=w.nextSibling}var g=p||v?"["+(p+1)+"]":"";m.push(d.nodeType!=o?(d.prefix?d.prefix+":":"")+d.localName+g:"text()"+(g||"[1]")),d=d.parentNode}return m.length?"/"+m.reverse().join("/"):""}})});var M7=ve((ls,Vl)=>{(function(){var e,t="4.17.21",r=200,i="Unsupported core-js use. Try https://npms.io/search?q=ponyfill.",o="Expected a function",s="Invalid `variable` option passed into `_.template`",l="__lodash_hash_undefined__",c=500,f="__lodash_placeholder__",d=1,m=2,p=4,v=1,w=2,g=1,S=2,y=4,x=8,T=16,C=32,O=64,I=128,M=256,$=512,k=30,H="...",oe=800,ie=16,ee=1,q=2,z=3,W=1/0,G=9007199254740991,J=17976931348623157e292,Z=NaN,ce=4294967295,pe=ce-1,le=ce>>>1,Oe=[["ary",I],["bind",g],["bindKey",S],["curry",x],["curryRight",T],["flip",$],["partial",C],["partialRight",O],["rearg",M]],xe="[object Arguments]",tt="[object Array]",ke="[object AsyncFunction]",bt="[object Boolean]",mt="[object Date]",Ge="[object DOMException]",ht="[object Error]",xt="[object Function]",Me="[object GeneratorFunction]",je="[object Map]",qt="[object Number]",zt="[object Null]",cr="[object Object]",Nn="[object Promise]",Bn="[object Proxy]",br="[object RegExp]",$t="[object Set]",si="[object String]",Xi="[object Symbol]",wd="[object Undef
1ined]",Fn="[object WeakMap]",Ji="[object WeakSet]",Pr="[object ArrayBuffer]",xr="[object DataView]",zo="[object Float32Array]",jo="[object Float64Array]",Go="[object Int8Array]",Qi="[object Int16Array]",Zo="[object Int32Array]",li="[object Uint8Array]",ui="[object Uint8ClampedArray]",wr="[object Uint16Array]",hn="[object Uint32Array]",xs=/\b__p \+= '';/g,ws=/\b(__p \+=) '' \+/g,Cd=/(__e\(.*?\)|\b__t\)) \+\n'';/g,eo=/&(?:amp|lt|gt|quot|#39);/g,to=/[&<>"']/g,Ed=RegExp(eo.source),ro=RegExp(to.source),Sd=/<%-([\s\S]+?)%>/g,Ad=/<%([\s\S]+?)%>/g,wt=/<%=([\s\S]+?)%>/g,ci=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,Td=/^\w*$/,lu=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,no=/[\\^$.*+?()[\]{}|]/g,uu=RegExp(no.source),Ko=/^\s+/,Od=/\s/,Mr=/\{(?:\n\/\* \[wrapped with .+\] \*\/)?\n?/,fi=/\{\n\/\* \[wrapped with (.+)\] \*/,cu=/,? & /,fu=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g,Cs=/[()=,{}\[\]\/\s]/,du=/\\(\\)?/g,Yr=/\$\{([^\\}]*(?:\\.[^\\}]*)*)\}/g,Es=/\w*$/,pu=/^[-+]0x[0-9a-f]+$/i,mu=/^0b[01]+$/i,hu=/^\[object .+?Constructor\]$/,Ld=/^0o[0-7]+$/i,_e=/^(?:0|[1-9]\d*)$/,P=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u01
vendor: 4,956 bytes, line 1
17f]/g,ne=/($^)/,me=/['\n\r\u2028\u2029\\]/g,Qe="\\ud800-\\udfff",Nt="\\u0300-\\u036f",Ct="\\ufe20-\\ufe2f",jt="\\u20d0-\\u20ff",Dr=Nt+Ct+jt,di="\\u2700-\\u27bf",Yo="a-z\\xdf-\\xf6\\xf8-\\xff",Bt="\\xac\\xb1\\xd7\\xf7",vu="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",gu="\\u2000-\\u206f",Ow=" \\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",Hh="A-Z\\xc0-\\xd6\\xd8-\\xde",kh="\\ufe0e\\ufe0f",Uh=Bt+vu+gu+Ow,Rd="['\u2019]",Lw="["+Qe+"]",$h="["+Uh+"]",_u="["+Dr+"]",Vh="\\d+",Rw="["+di+"]",Wh="["+Yo+"]",qh="[^"+Qe+Uh+Vh+di+Yo+Hh+"]",Id="\\ud83c[\\udffb-\\udfff]",Iw="(?:"+_u+"|"+Id+")",zh="[^"+Qe+"]",Pd="(?:\\ud83c[\\udde6-\\uddff]){2}",Md="[\\ud800-\\udbff][\\udc00-\\udfff]",Xo="["+Hh+"]",jh="\\u200d",Gh="(?:"+Wh+"|"+qh+")",Pw="(?:"+Xo+"|"+qh+")",Zh="(?:"+Rd+"(?:d|ll|m|re|s|t|ve))?",Kh="(?:"+Rd+"(?:D|LL|M|RE|S|T|VE))?",Yh=Iw+"?",Xh="["+kh+"]?",Mw="(?:"+jh+"(?:"+[zh,Pd,Md].join("|")+")"+Xh+Yh+")*",Dw="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",Nw="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",Jh=Xh+Yh+Mw,Bw="(?:"+[Rw,Pd,Md].join("|")+")"+Jh,Fw="(?:"+[zh+_u+"?",_u,Pd,Md,Lw].join("|")+")",Hw=RegExp(Rd,"g"),kw=RegExp(_u,"g"),Dd=RegExp(Id+"(?="+Id+")|"+Fw+Jh,"g"),Uw=RegExp([Xo+"?"+Wh+"+"+Zh+"(?="+[$h,Xo,"$"].join("|")+")",Pw+"+"+Kh+"(?="+[$h,Xo+Gh,"$"].join("|")+")",Xo+"?"+Gh+"+"+Zh,Xo+"+"+Kh,Nw,Dw,Vh,Bw].join("|"),"g"),$w=RegExp("["+jh+Qe+Dr+kh+"]"),Vw=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/,Ww=["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"],qw=-1,at={};at[zo]=at[jo]=at[Go]=at[Qi]=at[Zo]=at[li]=at[ui]=at[wr]=at[hn]=!0,at[xe]=at[tt]=at[Pr]=at[bt]=at[xr]=at[mt]=at[ht]=at[xt]=at[je]=at[qt]=at[cr]=at[br]=at[$t]=at[si]=at[Fn]=!1;var it={};it[xe]=it[tt]=it[Pr]=it[xr]=it[bt]=it[mt]=it[zo]=it[jo]=it[Go]=it[Qi]=it[Zo]=it[je]=it[qt]=it[cr]=it[br]=it[$t]=it[si]=it[Xi]=it[li]=it[ui]=it[wr]=it[hn]=!0,it[ht]=it[xt]=it[Fn]=!1;var zw={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},jw={"&":"&","<":"<",">":">",'"':""","'":"'"},Gw={"&":"&","<":"<",">":">",""":'"',"'":"'"},Zw={"\\":"\\","'":"'","\n":"n","\r":"r","\u2028":"u2028","\u2029":"u2029"},Kw=parseFloat,Yw=parseInt,Qh=typeof global=="object"&&global&&global.Object===Object&&global,Xw=typeof self=="object"&&self&&self.Object===Object&&self,Ft=Qh||Xw||Function("return this")(),Nd=typeof ls=="object"&&ls&&!ls.nodeType&&ls,io=Nd&&typeof Vl=="object"&&Vl&&!Vl.nodeType&&Vl,e0=io&&io.exports===Nd,Bd=e0&&Qh.process,Nr=function(){try{var D=io&&io.require&&io.require("util").t
vendor: 9,786 bytes, line 1
1ypes;return D||Bd&&Bd.binding&&Bd.binding("util")}catch{}}(),t0=Nr&&Nr.isArrayBuffer,r0=Nr&&Nr.isDate,n0=Nr&&Nr.isMap,i0=Nr&&Nr.isRegExp,o0=Nr&&Nr.isSet,a0=Nr&&Nr.isTypedArray;function Cr(D,j,U){switch(U.length){case 0:return D.call(j);case 1:return D.call(j,U[0]);case 2:return D.call(j,U[0],U[1]);case 3:return D.call(j,U[0],U[1],U[2])}return D.apply(j,U)}function Jw(D,j,U,de){for(var Re=-1,Ze=D==null?0:D.length;++Re<Ze;){var It=D[Re];j(de,It,U(It),D)}return de}function Br(D,j){for(var U=-1,de=D==null?0:D.length;++U<de&&j(D[U],U,D)!==!1;);return D}function Qw(D,j){for(var U=D==null?0:D.length;U--&&j(D[U],U,D)!==!1;);return D}function s0(D,j){for(var U=-1,de=D==null?0:D.length;++U<de;)if(!j(D[U],U,D))return!1;return!0}function pi(D,j){for(var U=-1,de=D==null?0:D.length,Re=0,Ze=[];++U<de;){var It=D[U];j(It,U,D)&&(Ze[Re++]=It)}return Ze}function yu(D,j){var U=D==null?0:D.length;return!!U&&Jo(D,j,0)>-1}function Fd(D,j,U){for(var de=-1,Re=D==null?0:D.length;++de<Re;)if(U(j,D[de]))return!0;return!1}function ut(D,j){for(var U=-1,de=D==null?0:D.length,Re=Array(de);++U<de;)Re[U]=j(D[U],U,D);return Re}function mi(D,j){for(var U=-1,de=j.length,Re=D.length;++U<de;)D[Re+U]=j[U];return D}function Hd(D,j,U,de){var Re=-1,Ze=D==null?0:D.length;for(de&&Ze&&(U=D[++Re]);++Re<Ze;)U=j(U,D[Re],Re,D);return U}function e9(D,j,U,de){var Re=D==null?0:D.length;for(de&&Re&&(U=D[--Re]);Re--;)U=j(U,D[Re],Re,D);return U}function kd(D,j){for(var U=-1,de=D==null?0:D.length;++U<de;)if(j(D[U],U,D))return!0;return!1}var t9=Ud("length");function r9(D){return D.split("")}function n9(D){return D.match(fu)||[]}function l0(D,j,U){var de;return U(D,function(Re,Ze,It){if(j(Re,Ze,It))return de=Ze,!1}),de}function bu(D,j,U,de){for(var Re=D.length,Ze=U+(de?1:-1);de?Ze--:++Ze<Re;)if(j(D[Ze],Ze,D))return Ze;return-1}function Jo(D,j,U){return j===j?h9(D,j,U):bu(D,u0,U)}function i9(D,j,U,de){for(var Re=U-1,Ze=D.length;++Re<Ze;)if(de(D[Re],j))return Re;return-1}function u0(D){return D!==D}function c0(D,j){var U=D==null?0:D.length;return U?Vd(D,j)/U:Z}function Ud(D){return function(j){return j==null?e:j[D]}}function $d(D){return function(j){return D==null?e:D[j]}}function f0(D,j,U,de,Re){return Re(D,function(Ze,It,rt){U=de?(de=!1,Ze):j(U,Ze,It,rt)}),U}function o9(D,j){var U=D.length;for(D.sort(j);U--;)D[U]=D[U].value;return D}function Vd(D,j){for(var U,de=-1,Re=D.length;++de<Re;){var Ze=j(D[de]);Ze!==e&&(U=U===e?Ze:U+Ze)}return U}function Wd(D,j){for(var U=-1,de=Array(D);++U<D;)de[U]=j(U);return de}function a9(D,j){return ut(j,function(U){return[U,D[U]]})}function d0(D){return D&&D.slice(0,v0(D)+1).replace(Ko,"")}function Er(D){return function(j){return D(j)}}function qd(D,j){return ut(j,function(U){return D[U]})}function Ss(D,j){return D.has(j)}function p0(D,j){for(var U=-1,de=D.length;++U<de&&Jo(j,D[U],0)>-1;);return U}function m0(D,j){for(var U=D.length;U--&&Jo(j,D[U],0)>-1;);return U}function s9(D,j){for(var U=D.length,de=0;U--;)D[U]===j&&++de;return de}var l9=$d(zw),u9=$d(jw);function c9(D){return"\\"+Zw[D]}function f9(D,j){return D==null?e:D[j]}function Qo(D){return $w.test(D)}function d9(D){return Vw.test(D)}function p9(D){for(var j,U=[];!(j=D.next()).done;)U.push(j.value);return U}function zd(D){var j=-1,U=Array(D.size);return D.forEach(function(de,Re){U[++j]=[Re,de]}),U}function h0(D,j){return function(U){return D(j(U))}}function hi(D,j){for(var U=-1,de=D.length,Re=0,Ze=[];++U<de;){var It=D[U];(It===j||It===f)&&(D[U]=f,Ze[Re++]=U)}return Ze}function xu(D){var j=-1,U=Array(D.size);return D.forEach(function(de){U[++j]=de}),U}function m9(D){var j=-1,U=Array(D.size);return D.forEach(function(de){U[++j]=[de,de]}),U}function h9(D,j,U){for(var de=U-1,Re=D.length;++de<Re;)if(D[de]===j)return de;return-1}function v9(D,j,U){for(var de=U+1;de--;)if(D[de]===j)return de;return de}function ea(D){return Qo(D)?_9(D):t9(D)}function Xr(D){return Qo(D)?y9(D):r9(D)}function v0(D){for(var j=D.length;j--&&Od.test(D.charAt(j)););return j}var g9=$d(Gw);function _9(D){for(var j=Dd.lastIndex=0;Dd.test(D);)++j;return j}function y9(D){return D.match(Dd)||[]}function b9(D){return D.match(Uw)||[]}var x9=function D(j){j=j==null?Ft:vi.defaults(Ft.Object(),j,vi.pick(Ft,Ww));var U=j.Array,de=j.Date,Re=j.Error,Ze=j.Function,It=j.Math,rt=j.Object,jd=j.RegExp,w9=j.String,Fr=j.TypeError,wu=U.prototype,C9=Ze.prototype,ta=rt.prototype,Cu=j["__core-js_shared__"],Eu=C9.toString,et=ta.hasOwnProperty,E9=0,g0=function(){var n=/[^.]+$/.exec(Cu&&Cu.keys&&Cu.keys.IE_PROTO||"");return n?"Symbol(src)_1."+n:""}(),Su=ta.toString,S9=Eu.call(rt),A9=Ft._,T9=jd("^"+Eu.call(et).replace(no,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$"),Au=e0?j.Buffer:e,gi=j.Symbol,Tu=j.Uint8Array,_0=Au?Au.allocUnsafe:e,Ou=h0(rt.getPrototypeOf,rt),y0=rt.create,b0=ta.propertyIsEnumerable,Lu=wu.splice,x0=gi?gi.isConcatSpreadable:e,As=gi?gi.iterator:e,oo=gi?gi.toStringTag:e,Ru=function(){try{var n=co(rt,"defineProperty");return n({},"",{}),n}catch{}}(),O9=j.clearTimeout!==Ft.clearTimeout&&j.clearTimeout,L9=de&&de.now!==Ft.Date.now&&de.now,R9=j.setTimeout!==Ft.setTimeout&&j.setTimeout,Iu=It.ceil,Pu=It.floor,Gd=rt.getOwnPropertySymbols,I9=Au?Au.isBuffer:e,w0=j.isFinite,P9=wu.join,M9=h0(rt.keys,rt),Pt=It.max,Gt=It.min,D9=de.now,N9=j.parseInt,C0=It.random,B9=wu.reverse,Zd=co(j,"DataView"),Ts=co(j,"Map"),Kd=co(j,"Promise"),ra=co(j,"Set"),Os=co(j,"WeakMap"),Ls=co(rt,"create"),Mu=Os&&new Os,na={},F9=fo(Zd),H9=fo(Ts),k9=fo(Kd),U9=fo(ra),$9=fo(Os),Du=gi?gi.prototype:e,Rs=Du?Du.valueOf:e,E0=Du?Du.toString:e;function E(n){if(vt(n)&&!Ie(n)&&!(n instanceof We)){if(n instanceof Hr)return n;if(et.call(n,"__wrapped__"))return Sv(n)}return new Hr(n)}var ia=function(){function n(){}return function(a){if(!ft(a))return{};if(y0)return y0(a);n.prototype=a;var u=new n;return n.prototype=e,u}}();function Nu(){}function Hr(n,a){this.__wrapped__=n,this.__actions__=[],this.__chain__=!!a,this.__index__=0,this.__values__=e}E.templateSettings={escape:Sd,evaluate:Ad,interpolate:wt,variable:"",imports:{_:E}},E.prototype=Nu.prototype,E.prototype.constructor=E,Hr.prototype=ia(Nu.prototype),Hr.prototype.constructor=Hr;function We(n){this.__wrapped__=n,this.__actions__=[],this.__dir__=1,this.__filtered__=!1,this.__iteratees__=[],this.__takeCount__=ce,this.__views__=[]}function V9(){var n=new We(this.__wrapped__);return n.__actions__=fr(this.__actions__),n.__dir__=this.__dir__,n.__filtered__=this.__filtered__,n.__iteratees__=fr(this.__iteratees__),n.__takeCount__=this.__takeCount__,n.__views__=fr(this.__views__),n}function W9(){if(this.__filtered__){var n=new We(this);n.__dir__=-1,n.__filtered__=!0}else n=this.clone(),n.__dir__*=-1;return n}function q9(){var n=this.__wrapped__.value(),a=this.__dir__,u=Ie(n),h=a<0,_=u?n.length:0,A=rE(0,_,this.__views__),L=A.start,R=A.end,N=R-L,Y=h?R:L-1,X=this.__iteratees__,te=X.length,fe=0,he=Gt(N,this.__takeCount__);if(!u||!h&&_==N&&he==N)return Z0(n,this.__actions__);var Ce=[];e:for(;N--&&fe<he;){Y+=a;for(var Ne=-1,Ee=n[Y];++Ne<te;){var Ue=X[Ne],qe=Ue.iteratee,Tr=Ue.type,er=qe(Ee);if(Tr==q)Ee=er;else if(!er){if(Tr==ee)continue e;break e}}Ce[fe++]=Ee}return Ce}We.prototype=ia(Nu.prototype),We.prototype.constructor=We;function ao(n){var a=-1,u=n==null?0:n.length;for(this.clear();++a<u;){var h=n[a];this.set(h[0],h[1])}}function z9(){this.__data__=Ls?Ls(null):{},this.size=0}function j9(n){var a=this.has(n)&&delete this.__data__[n];return this.size-=a?1:0,a}function G9(n){var a=this.__data__;if(Ls){var u=a[n];return u===l?e:u}return et.call(a,n)?a[n]:e}function Z9(n){var a=this.__data__;return Ls?a[n]!==e:et.call(a,n)}function K9(n,a){var u=this.__data__;return this.size+=this.has(n)?0:1,u[n]=Ls&&a===e?l:a,this}ao.prototype.clear=z9,ao.prototype.delete=j9,ao.prototype.get=G9,ao.prototype.has=Z9,ao.prototype.set=K9;function Hn(n){var a=-1,u=n==null?0:n.length;for(this.clear();++a<u;){var h=n[a];this.set(h[0],h[1])}}function Y9(){this.__data__=[],this.size=0}function X9(n){var a=this.__data__,u=Bu(a,n);if(u<0)return!1;var h=a.length-1;return u==h?a.pop():Lu.call(a,u,1),--this.size,!0}function J9(n){var a=this.__data__,u=Bu(a,n);return u<0?e:a[u][1]}function Q9(n){return Bu(this.__data__,n)>-1}function eC(n,a){var u=this.__data__,h=Bu(u,n);return h<0?(++this.size,u.push([n,a])):u[h][1]=a,this}Hn.prototype.clear=Y9,Hn.prototype.delete=X9,Hn.prototype.get=J9,Hn.prototype.has=Q9,Hn.prototype.set=eC;function kn(n){var a=-1,u=n==null?0:n.length;for(this.clear();++a<u;){var h=n[a];this.set(h[0],h[1])}}function tC(){this.size=0,this.__data__={hash:new ao,map:new(Ts||Hn),string:new ao}}function rC(n){var a=Zu(this,n).delete(n);return this.size-=a?1:0,a}function nC(n){return Zu(this,n).get(n)}function iC(n){return Zu(this,n).has(n)}function oC(n,a){var u=Zu(this,n),h=u.size;return u.set(n,a),this.size+=u.size==h?0:1,this}kn.prototype.clear=tC,kn.prototype.delete=rC,kn.prototype.get=nC,kn.prototype.has=iC,kn.prototype.set=oC;function so(n){var a=-1,u=n==null?0:n.length;for(this.__data__=new kn;++a<u;)this.add(n[a])}function aC(n){return this.__data__.set(n,l),this}function sC(n){return this.__data__.has(n)}so.prototype.add=so.prototype.push=aC,so.prototype.has=sC;function Jr(n){var a=this.__data__=new Hn(n);this.size=a.size}function lC(){this.__data__=new Hn,this.size=0}function uC(n){var a=this.__data__,u=a.delete(n);return this.size=a.size,u}function cC(n){return this.__data__.get(n)}function fC(n){return this.__data__.has(n)}function dC(n,a){var u=this.__data__;if(u instanceof Hn){var h=u.__data__;if(!Ts||h.length<r-1)return h.push([n,a]),this.size=++u.size,this;u=this.__data__=new kn(h)}return u.set(n,a),this.size=u.size,this}Jr.prototype.clear=lC,Jr.prototype.delete=uC,Jr.prototype.get=cC,Jr.prototype.has=fC,Jr.prototype.set=dC;function S0(n,a){var u=Ie(n),h=!u&&po(n),_=!u&&!h&&wi(n),A=!u&&!h&&
vendor: 7,250 bytes, line 1
1!_&&la(n),L=u||h||_||A,R=L?Wd(n.length,w9):[],N=R.length;for(var Y in n)(a||et.call(n,Y))&&!(L&&(Y=="length"||_&&(Y=="offset"||Y=="parent")||A&&(Y=="buffer"||Y=="byteLength"||Y=="byteOffset")||Wn(Y,N)))&&R.push(Y);return R}function A0(n){var a=n.length;return a?n[ap(0,a-1)]:e}function pC(n,a){return Ku(fr(n),lo(a,0,n.length))}function mC(n){return Ku(fr(n))}function Yd(n,a,u){(u!==e&&!Qr(n[a],u)||u===e&&!(a in n))&&Un(n,a,u)}function Is(n,a,u){var h=n[a];(!(et.call(n,a)&&Qr(h,u))||u===e&&!(a in n))&&Un(n,a,u)}function Bu(n,a){for(var u=n.length;u--;)if(Qr(n[u][0],a))return u;return-1}function hC(n,a,u,h){return _i(n,function(_,A,L){a(h,_,u(_),L)}),h}function T0(n,a){return n&&gn(a,Ht(a),n)}function vC(n,a){return n&&gn(a,pr(a),n)}function Un(n,a,u){a=="__proto__"&&Ru?Ru(n,a,{configurable:!0,enumerable:!0,value:u,writable:!0}):n[a]=u}function Xd(n,a){for(var u=-1,h=a.length,_=U(h),A=n==null;++u<h;)_[u]=A?e:Ip(n,a[u]);return _}function lo(n,a,u){return n===n&&(u!==e&&(n=n<=u?n:u),a!==e&&(n=n>=a?n:a)),n}function kr(n,a,u,h,_,A){var L,R=a&d,N=a&m,Y=a&p;if(u&&(L=_?u(n,h,_,A):u(n)),L!==e)return L;if(!ft(n))return n;var X=Ie(n);if(X){if(L=iE(n),!R)return fr(n,L)}else{var te=Zt(n),fe=te==xt||te==Me;if(wi(n))return X0(n,R);if(te==cr||te==xe||fe&&!_){if(L=N||fe?{}:vv(n),!R)return N?GC(n,vC(L,n)):jC(n,T0(L,n))}else{if(!it[te])return _?n:{};L=oE(n,te,R)}}A||(A=new Jr);var he=A.get(n);if(he)return he;A.set(n,L),zv(n)?n.forEach(function(Ee){L.add(kr(Ee,a,u,Ee,n,A))}):Wv(n)&&n.forEach(function(Ee,Ue){L.set(Ue,kr(Ee,a,u,Ue,n,A))});var Ce=Y?N?gp:vp:N?pr:Ht,Ne=X?e:Ce(n);return Br(Ne||n,function(Ee,Ue){Ne&&(Ue=Ee,Ee=n[Ue]),Is(L,Ue,kr(Ee,a,u,Ue,n,A))}),L}function gC(n){var a=Ht(n);return function(u){return O0(u,n,a)}}function O0(n,a,u){var h=u.length;if(n==null)return!h;for(n=rt(n);h--;){var _=u[h],A=a[_],L=n[_];if(L===e&&!(_ in n)||!A(L))return!1}return!0}function L0(n,a,u){if(typeof n!="function")throw new Fr(o);return Hs(function(){n.apply(e,u)},a)}function Ps(n,a,u,h){var _=-1,A=yu,L=!0,R=n.length,N=[],Y=a.length;if(!R)return N;u&&(a=ut(a,Er(u))),h?(A=Fd,L=!1):a.length>=r&&(A=Ss,L=!1,a=new so(a));e:for(;++_<R;){var X=n[_],te=u==null?X:u(X);if(X=h||X!==0?X:0,L&&te===te){for(var fe=Y;fe--;)if(a[fe]===te)continue e;N.push(X)}else A(a,te,h)||N.push(X)}return N}var _i=rv(vn),R0=rv(Qd,!0);function _C(n,a){var u=!0;return _i(n,function(h,_,A){return u=!!a(h,_,A),u}),u}function Fu(n,a,u){for(var h=-1,_=n.length;++h<_;){var A=n[h],L=a(A);if(L!=null&&(R===e?L===L&&!Ar(L):u(L,R)))var R=L,N=A}return N}function yC(n,a,u,h){var _=n.length;for(u=De(u),u<0&&(u=-u>_?0:_+u),h=h===e||h>_?_:De(h),h<0&&(h+=_),h=u>h?0:Gv(h);u<h;)n[u++]=a;return n}function I0(n,a){var u=[];return _i(n,function(h,_,A){a(h,_,A)&&u.push(h)}),u}function Vt(n,a,u,h,_){var A=-1,L=n.length;for(u||(u=sE),_||(_=[]);++A<L;){var R=n[A];a>0&&u(R)?a>1?Vt(R,a-1,u,h,_):mi(_,R):h||(_[_.length]=R)}return _}var Jd=nv(),P0=nv(!0);function vn(n,a){return n&&Jd(n,a,Ht)}function Qd(n,a){return n&&P0(n,a,Ht)}function Hu(n,a){return pi(a,function(u){return qn(n[u])})}function uo(n,a){a=bi(a,n);for(var u=0,h=a.length;n!=null&&u<h;)n=n[_n(a[u++])];return u&&u==h?n:e}function M0(n,a,u){var h=a(n);return Ie(n)?h:mi(h,u(n))}function Jt(n){return n==null?n===e?wd:zt:oo&&oo in rt(n)?tE(n):mE(n)}function ep(n,a){return n>a}function bC(n,a){return n!=null&&et.call(n,a)}function xC(n,a){return n!=null&&a in rt(n)}function wC(n,a,u){return n>=Gt(a,u)&&n<Pt(a,u)}function tp(n,a,u){for(var h=u?Fd:yu,_=n[0].length,A=n.length,L=A,R=U(A),N=1/0,Y=[];L--;){var X=n[L];L&&a&&(X=ut(X,Er(a))),N=Gt(X.length,N),R[L]=!u&&(a||_>=120&&X.length>=120)?new so(L&&X):e}X=n[0];var te=-1,fe=R[0];e:for(;++te<_&&Y.length<N;){var he=X[te],Ce=a?a(he):he;if(he=u||he!==0?he:0,!(fe?Ss(fe,Ce):h(Y,Ce,u))){for(L=A;--L;){var Ne=R[L];if(!(Ne?Ss(Ne,Ce):h(n[L],Ce,u)))continue e}fe&&fe.push(Ce),Y.push(he)}}return Y}function CC(n,a,u,h){return vn(n,function(_,A,L){a(h,u(_),A,L)}),h}function Ms(n,a,u){a=bi(a,n),n=bv(n,a);var h=n==null?n:n[_n($r(a))];return h==null?e:Cr(h,n,u)}function D0(n){return vt(n)&&Jt(n)==xe}function EC(n){return vt(n)&&Jt(n)==Pr}function SC(n){return vt(n)&&Jt(n)==mt}function Ds(n,a,u,h,_){return n===a?!0:n==null||a==null||!vt(n)&&!vt(a)?n!==n&&a!==a:AC(n,a,u,h,Ds,_)}function AC(n,a,u,h,_,A){var L=Ie(n),R=Ie(a),N=L?tt:Zt(n),Y=R?tt:Zt(a);N=N==xe?cr:N,Y=Y==xe?cr:Y;var X=N==cr,te=Y==cr,fe=N==Y;if(fe&&wi(n)){if(!wi(a))return!1;L=!0,X=!1}if(fe&&!X)return A||(A=new Jr),L||la(n)?pv(n,a,u,h,_,A):QC(n,a,N,u,h,_,A);if(!(u&v)){var he=X&&et.call(n,"__wrapped__"),Ce=te&&et.call(a,"__wrapped__");if(he||Ce){var Ne=he?n.value():n,Ee=Ce?a.value():a;return A||(A=new Jr),_(Ne,Ee,u,h,A)}}return fe?(A||(A=new Jr),eE(n,a,u,h,_,A)):!1}function TC(n){return vt(n)&&Zt(n)==je}function rp(n,a,u,h){var _=u.length,A=_,L=!h;if(n==null)return!A;for(n=rt(n);_--;){var R=u[_];if(L&&R[2]?R[1]!==n[R[0]]:!(R[0]in n))return!1}for(;++_<A;){R=u[_];var N=R[0],Y=n[N],X=R[1];if(L&&R[2]){if(Y===e&&!(N in n))return!1}else{var te=new Jr;if(h)var fe=h(Y,X,N,n,a,te);if(!(fe===e?Ds(X,Y,v|w,h,te):fe))return!1}}return!0}function N0(n){if(!ft(n)||uE(n))return!1;var a=qn(n)?T9:hu;return a.test(fo(n))}function OC(n){return vt(n)&&Jt(n)==br}function LC(n){return vt(n)&&Zt(n)==$t}function RC(n){return vt(n)&&tc(n.length)&&!!at[Jt(n)]}function B0(n){return typeof n=="function"?n:n==null?mr:typeof n=="object"?Ie(n)?k0(n[0],n[1]):H0(n):ig(n)}function np(n){if(!Fs(n))return M9(n);var a=[];for(var u in rt(n))et.call(n,u)&&u!="constructor"&&a.push(u);return a}function IC(n){if(!ft(n))return pE(n);var a=Fs(n),u=[];for(var h in n)h=="constructor"&&(a||!et.call(n,h))||u.push(h);return u}function ip(n,a){return n<a}function F0(n,a){var u=-1,h=dr(n)?U(n.length):[];return _i(n,function(_,A,L){h[++u]=a(_,A,L)}),h}function H0(n){var a=yp(n);return a.length==1&&a[0][2]?_v(a[0][0],a[0][1]):function(u){return u===n||rp(u,n,a)}}function k0(n,a){return xp(n)&&gv(a)?_v(_n(n),a):function(u){var h=Ip(u,n);return h===e&&h===a?Pp(u,n):Ds(a,h,v|w)}}function ku(n,a,u,h,_){n!==a&&Jd(a,function(A,L){if(_||(_=new Jr),ft(A))PC(n,a,L,u,ku,h,_);else{var R=h?h(Cp(n,L),A,L+"",n,a,_):e;R===e&&(R=A),Yd(n,L,R)}},pr)}function PC(n,a,u,h,_,A,L){var R=Cp(n,u),N=Cp(a,u),Y=L.get(N);if(Y){Yd(n,u,Y);return}var X=A?A(R,N,u+"",n,a,L):e,te=X===e;if(te){var fe=Ie(N),he=!fe&&wi(N),Ce=!fe&&!he&&la(N);X=N,fe||he||Ce?Ie(R)?X=R:Et(R)?X=fr(R):he?(te=!1,X=X0(N,!0)):Ce?(te=!1,X=J0(N,!0)):X=[]:ks(N)||po(N)?(X=R,po(R)?X=Zv(R):(!ft(R)||qn(R))&&(X=vv(N))):te=!1}te&&(L.set(N,X),_(X,N,h,A,L),L.delete(N)),Yd(n,u,X)}function U0(n,a){var u=n.length;if(u)return a+=a<0?u:0,Wn(a,u)?n[a]:e}function $0(n,a,u){a.length?a=ut(a,function(A){return Ie(A)?function(L){return uo(L,A.length===1?A[0]:A)}:A}):a=[mr];var h=-1;a=ut(a,Er(we()));var _=F0(n,function(A,L,R){var N=ut(a,function(Y){return Y(A)});return{criteria:N,index:++h,value:A}});return o9(_,function(A,L){return zC(A,L,u)})}function MC(n,a){return V0(n,a,function(u,h){return Pp(n,h)})}function V0(n,a,u){for(var h=-1,_=a.length,A={};++h<_;){var L=a[h],R=uo(n,L);u(R,L)&&Ns(A,bi(L,n),R)}return A}function DC(n){return function(a){return uo(a,n)}}function op(n,a,u,h){var _=h?i9:Jo,A=-1,L=a.length,R=n;for(n===a&&(a=fr(a)),u&&(R=ut(n,Er(u)));++A<L;)for(var N=0,Y=a[A],X=u?u(Y):Y;(N=_(R,X,N,h))>-1;
vendor: 36,654 bytes, lines 1-3
1)R!==n&&Lu.call(R,N,1),Lu.call(n,N,1);return n}function W0(n,a){for(var u=n?a.length:0,h=u-1;u--;){var _=a[u];if(u==h||_!==A){var A=_;Wn(_)?Lu.call(n,_,1):up(n,_)}}return n}function ap(n,a){return n+Pu(C0()*(a-n+1))}function NC(n,a,u,h){for(var _=-1,A=Pt(Iu((a-n)/(u||1)),0),L=U(A);A--;)L[h?A:++_]=n,n+=u;return L}function sp(n,a){var u="";if(!n||a<1||a>G)return u;do a%2&&(u+=n),a=Pu(a/2),a&&(n+=n);while(a);return u}function Be(n,a){return Ep(yv(n,a,mr),n+"")}function BC(n){return A0(ua(n))}function FC(n,a){var u=ua(n);return Ku(u,lo(a,0,u.length))}function Ns(n,a,u,h){if(!ft(n))return n;a=bi(a,n);for(var _=-1,A=a.length,L=A-1,R=n;R!=null&&++_<A;){var N=_n(a[_]),Y=u;if(N==="__proto__"||N==="constructor"||N==="prototype")return n;if(_!=L){var X=R[N];Y=h?h(X,N,R):e,Y===e&&(Y=ft(X)?X:Wn(a[_+1])?[]:{})}Is(R,N,Y),R=R[N]}return n}var q0=Mu?function(n,a){return Mu.set(n,a),n}:mr,HC=Ru?function(n,a){return Ru(n,"toString",{configurable:!0,enumerable:!1,value:Dp(a),writable:!0})}:mr;function kC(n){return Ku(ua(n))}function Ur(n,a,u){var h=-1,_=n.length;a<0&&(a=-a>_?0:_+a),u=u>_?_:u,u<0&&(u+=_),_=a>u?0:u-a>>>0,a>>>=0;for(var A=U(_);++h<_;)A[h]=n[h+a];return A}function UC(n,a){var u;return _i(n,function(h,_,A){return u=a(h,_,A),!u}),!!u}function Uu(n,a,u){var h=0,_=n==null?h:n.length;if(typeof a=="number"&&a===a&&_<=le){for(;h<_;){var A=h+_>>>1,L=n[A];L!==null&&!Ar(L)&&(u?L<=a:L<a)?h=A+1:_=A}return _}return lp(n,a,mr,u)}function lp(n,a,u,h){var _=0,A=n==null?0:n.length;if(A===0)return 0;a=u(a);for(var L=a!==a,R=a===null,N=Ar(a),Y=a===e;_<A;){var X=Pu((_+A)/2),te=u(n[X]),fe=te!==e,he=te===null,Ce=te===te,Ne=Ar(te);if(L)var Ee=h||Ce;else Y?Ee=Ce&&(h||fe):R?Ee=Ce&&fe&&(h||!he):N?Ee=Ce&&fe&&!he&&(h||!Ne):he||Ne?Ee=!1:Ee=h?te<=a:te<a;Ee?_=X+1:A=X}return Gt(A,pe)}function z0(n,a){for(var u=-1,h=n.length,_=0,A=[];++u<h;){var L=n[u],R=a?a(L):L;if(!u||!Qr(R,N)){var N=R;A[_++]=L===0?0:L}}return A}function j0(n){return typeof n=="number"?n:Ar(n)?Z:+n}function Sr(n){if(typeof n=="string")return n;if(Ie(n))return ut(n,Sr)+"";if(Ar(n))return E0?E0.call(n):"";var a=n+"";return a=="0"&&1/n==-W?"-0":a}function yi(n,a,u){var h=-1,_=yu,A=n.length,L=!0,R=[],N=R;if(u)L=!1,_=Fd;else if(A>=r){var Y=a?null:XC(n);if(Y)return xu(Y);L=!1,_=Ss,N=new so}else N=a?[]:R;e:for(;++h<A;){var X=n[h],te=a?a(X):X;if(X=u||X!==0?X:0,L&&te===te){for(var fe=N.length;fe--;)if(N[fe]===te)continue e;a&&N.push(te),R.push(X)}else _(N,te,u)||(N!==R&&N.push(te),R.push(X))}return R}function up(n,a){return a=bi(a,n),n=bv(n,a),n==null||delete n[_n($r(a))]}function G0(n,a,u,h){return Ns(n,a,u(uo(n,a)),h)}function $u(n,a,u,h){for(var _=n.length,A=h?_:-1;(h?A--:++A<_)&&a(n[A],A,n););return u?Ur(n,h?0:A,h?A+1:_):Ur(n,h?A+1:0,h?_:A)}function Z0(n,a){var u=n;return u instanceof We&&(u=u.value()),Hd(a,function(h,_){return _.func.apply(_.thisArg,mi([h],_.args))},u)}function cp(n,a,u){var h=n.length;if(h<2)return h?yi(n[0]):[];for(var _=-1,A=U(h);++_<h;)for(var L=n[_],R=-1;++R<h;)R!=_&&(A[_]=Ps(A[_]||L,n[R],a,u));return yi(Vt(A,1),a,u)}function K0(n,a,u){for(var h=-1,_=n.length,A=a.length,L={};++h<_;){var R=h<A?a[h]:e;u(L,n[h],R)}return L}function fp(n){return Et(n)?n:[]}function dp(n){return typeof n=="function"?n:mr}function bi(n,a){return Ie(n)?n:xp(n,a)?[n]:Ev(Ye(n))}var $C=Be;function xi(n,a,u){var h=n.length;return u=u===e?h:u,!a&&u>=h?n:Ur(n,a,u)}var Y0=O9||function(n){return Ft.clearTimeout(n)};function X0(n,a){if(a)return n.slice();var u=n.length,h=_0?_0(u):new n.constructor(u);return n.copy(h),h}function pp(n){var a=new n.constructor(n.byteLength);return new Tu(a).set(new Tu(n)),a}function VC(n,a){var u=a?pp(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.byteLength)}function WC(n){var a=new n.constructor(n.source,Es.exec(n));return a.lastIndex=n.lastIndex,a}function qC(n){return Rs?rt(Rs.call(n)):{}}function J0(n,a){var u=a?pp(n.buffer):n.buffer;return new n.constructor(u,n.byteOffset,n.length)}function Q0(n,a){if(n!==a){var u=n!==e,h=n===null,_=n===n,A=Ar(n),L=a!==e,R=a===null,N=a===a,Y=Ar(a);if(!R&&!Y&&!A&&n>a||A&&L&&N&&!R&&!Y||h&&L&&N||!u&&N||!_)return 1;if(!h&&!A&&!Y&&n<a||Y&&u&&_&&!h&&!A||R&&u&&_||!L&&_||!N)return-1}return 0}function zC(n,a,u){for(var h=-1,_=n.criteria,A=a.criteria,L=_.length,R=u.length;++h<L;){var N=Q0(_[h],A[h]);if(N){if(h>=R)return N;var Y=u[h];return N*(Y=="desc"?-1:1)}}return n.index-a.index}function ev(n,a,u,h){for(var _=-1,A=n.length,L=u.length,R=-1,N=a.length,Y=Pt(A-L,0),X=U(N+Y),te=!h;++R<N;)X[R]=a[R];for(;++_<L;)(te||_<A)&&(X[u[_]]=n[_]);for(;Y--;)X[R++]=n[_++];return X}function tv(n,a,u,h){for(var _=-1,A=n.length,L=-1,R=u.length,N=-1,Y=a.length,X=Pt(A-R,0),te=U(X+Y),fe=!h;++_<X;)te[_]=n[_];for(var he=_;++N<Y;)te[he+N]=a[N];for(;++L<R;)(fe||_<A)&&(te[he+u[L]]=n[_++]);return te}function fr(n,a){var u=-1,h=n.length;for(a||(a=U(h));++u<h;)a[u]=n[u];return a}function gn(n,a,u,h){var _=!u;u||(u={});for(var A=-1,L=a.length;++A<L;){var R=a[A],N=h?h(u[R],n[R],R,u,n):e;N===e&&(N=n[R]),_?Un(u,R,N):Is(u,R,N)}return u}function jC(n,a){return gn(n,bp(n),a)}function GC(n,a){return gn(n,mv(n),a)}function Vu(n,a){return function(u,h){var _=Ie(u)?Jw:hC,A=a?a():{};return _(u,n,we(h,2),A)}}function oa(n){return Be(function(a,u){var h=-1,_=u.length,A=_>1?u[_-1]:e,L=_>2?u[2]:e;for(A=n.length>3&&typeof A=="function"?(_--,A):e,L&&Qt(u[0],u[1],L)&&(A=_<3?e:A,_=1),a=rt(a);++h<_;){var R=u[h];R&&n(a,R,h,A)}return a})}function rv(n,a){return function(u,h){if(u==null)return u;if(!dr(u))return n(u,h);for(var _=u.length,A=a?_:-1,L=rt(u);(a?A--:++A<_)&&h(L[A],A,L)!==!1;);return u}}function nv(n){return function(a,u,h){for(var _=-1,A=rt(a),L=h(a),R=L.length;R--;){var N=L[n?R:++_];if(u(A[N],N,A)===!1)break}return a}}function ZC(n,a,u){var h=a&g,_=Bs(n);function A(){var L=this&&this!==Ft&&this instanceof A?_:n;return L.apply(h?u:this,arguments)}return A}function iv(n){return function(a){a=Ye(a);var u=Qo(a)?Xr(a):e,h=u?u[0]:a.charAt(0),_=u?xi(u,1).join(""):a.slice(1);return h[n]()+_}}function aa(n){return function(a){return Hd(rg(tg(a).replace(Hw,"")),n,"")}}function Bs(n){return function(){var a=arguments;switch(a.length){case 0:return new n;case 1:return new n(a[0]);case 2:return new n(a[0],a[1]);case 3:return new n(a[0],a[1],a[2]);case 4:return new n(a[0],a[1],a[2],a[3]);case 5:return new n(a[0],a[1],a[2],a[3],a[4]);case 6:return new n(a[0],a[1],a[2],a[3],a[4],a[5]);case 7:return new n(a[0],a[1],a[2],a[3],a[4],a[5],a[6])}var u=ia(n.prototype),h=n.apply(u,a);return ft(h)?h:u}}function KC(n,a,u){var h=Bs(n);function _(){for(var A=arguments.length,L=U(A),R=A,N=sa(_);R--;)L[R]=arguments[R];var Y=A<3&&L[0]!==N&&L[A-1]!==N?[]:hi(L,N);if(A-=Y.length,A<u)return uv(n,a,Wu,_.placeholder,e,L,Y,e,e,u-A);var X=this&&this!==Ft&&this instanceof _?h:n;return Cr(X,this,L)}return _}function ov(n){return function(a,u,h){var _=rt(a);if(!dr(a)){var A=we(u,3);a=Ht(a),u=function(R){return A(_[R],R,_)}}var L=n(a,u,h);return L>-1?_[A?a[L]:L]:e}}function av(n){return Vn(function(a){var u=a.length,h=u,_=Hr.prototype.thru;for(n&&a.reverse();h--;){var A=a[h];if(typeof A!="function")throw new Fr(o);if(_&&!L&&Gu(A)=="wrapper")var L=new Hr([],!0)}for(h=L?h:u;++h<u;){A=a[h];var R=Gu(A),N=R=="wrapper"?_p(A):e;N&&wp(N[0])&&N[1]==(I|x|C|M)&&!N[4].length&&N[9]==1?L=L[Gu(N[0])].apply(L,N[3]):L=A.length==1&&wp(A)?L[R]():L.thru(A)}return function(){var Y=arguments,X=Y[0];if(L&&Y.length==1&&Ie(X))return L.plant(X).value();for(var te=0,fe=u?a[te].apply(this,Y):X;++te<u;)fe=a[te].call(this,fe);return fe}})}function Wu(n,a,u,h,_,A,L,R,N,Y){var X=a&I,te=a&g,fe=a&S,he=a&(x|T),Ce=a&$,Ne=fe?e:Bs(n);function Ee(){for(var Ue=arguments.length,qe=U(Ue),Tr=Ue;Tr--;)qe[Tr]=arguments[Tr];if(he)var er=sa(Ee),Or=s9(qe,er);if(h&&(qe=ev(qe,h,_,he)),A&&(qe=tv(qe,A,L,he)),Ue-=Or,he&&Ue<Y){var St=hi(qe,er);return uv(n,a,Wu,Ee.placeholder,u,qe,St,R,N,Y-Ue)}var en=te?u:this,jn=fe?en[n]:n;return Ue=qe.length,R?qe=hE(qe,R):Ce&&Ue>1&&qe.reverse(),X&&N<Ue&&(qe.length=N),this&&this!==Ft&&this instanceof Ee&&(jn=Ne||Bs(jn)),jn.apply(en,qe)}return Ee}function sv(n,a){return function(u,h){return CC(u,n,a(h),{})}}function qu(n,a){return function(u,h){var _;if(u===e&&h===e)return a;if(u!==e&&(_=u),h!==e){if(_===e)return h;typeof u=="string"||typeof h=="string"?(u=Sr(u),h=Sr(h)):(u=j0(u),h=j0(h)),_=n(u,h)}return _}}function mp(n){return Vn(function(a){return a=ut(a,Er(we())),Be(function(u){var h=this;return n(a,function(_){return Cr(_,h,u)})})})}function zu(n,a){a=a===e?" ":Sr(a);var u=a.length;if(u<2)return u?sp(a,n):a;var h=sp(a,Iu(n/ea(a)));return Qo(a)?xi(Xr(h),0,n).join(""):h.slice(0,n)}function YC(n,a,u,h){var _=a&g,A=Bs(n);function L(){for(var R=-1,N=arguments.length,Y=-1,X=h.length,te=U(X+N),fe=this&&this!==Ft&&this instanceof L?A:n;++Y<X;)te[Y]=h[Y];for(;N--;)te[Y++]=arguments[++R];return Cr(fe,_?u:this,te)}return L}function lv(n){return function(a,u,h){return h&&typeof h!="number"&&Qt(a,u,h)&&(u=h=e),a=zn(a),u===e?(u=a,a=0):u=zn(u),h=h===e?a<u?1:-1:zn(h),NC(a,u,h,n)}}function ju(n){return function(a,u){return typeof a=="string"&&typeof u=="string"||(a=Vr(a),u=Vr(u)),n(a,u)}}function uv(n,a,u,h,_,A,L,R,N,Y){var X=a&x,te=X?L:e,fe=X?e:L,he=X?A:e,Ce=X?e:A;a|=X?C:O,a&=~(X?O:C),a&y||(a&=~(g|S));var Ne=[n,a,_,he,te,Ce,fe,R,N,Y],Ee=u.apply(e,Ne);return wp(n)&&xv(Ee,Ne),Ee.placeholder=h,wv(Ee,n,a)}function hp(n){var a=It[n];return function(u,h){if(u=Vr(u),h=h==null?0:Gt(De(h),292),h&&w0(u)){var _=(Ye(u)+"e").split("e"),A=a(_[0]+"e"+(+_[1]+h));return _=(Ye(A)+"e").split("e"),+(_[0]+"e"+(+_[1]-h))}return a(u)}}var XC=ra&&1/xu(new ra([,-0]))[1]==W?function(n){return new ra(n)}:Fp;function cv(n){return function(a){var u=Zt(a);return u==je?zd(a):u==$t?m9(a):a9(a,n(a))}}function $n(n,a,u,h,_,A,L,R){var N=a&S;if(!N&&typeof n!="function")throw new Fr(o);var Y=h?h.length:0;if(Y||(a&=~(C|O),h=_=e),L=L===e?L:Pt(De(L),0),R=R===e?R:De(R),Y-=_?_.length:0,a&O){var X=h,te=_;h=_=e}var fe=N?e:_p(n),he=[n,a,u,h,_,X,te,A,L,R];if(fe&&dE(he,fe),n=he[0],a=he[1],u=he[2],h=he[3],_=he[4],R=he[9]=he[9]===e?N?0:n.length:Pt(he[9]-Y,0),!R&&a&(x|T)&&(a&=~(x|T)),!a||a==g)var Ce=ZC(n,a,u);else a==x||a==T?Ce=KC(n,a,R):(a==C||a==(g|C))&&!_.length?Ce=YC(n,a,u,h):Ce=Wu.apply(e,he);var Ne=fe?q0:xv;return wv(Ne(Ce,he),n,a)}function fv(n,a,u,h){return n===e||Qr(n,ta[u])&&!et.call(h,u)?a:n}function dv(n,a,u,h,_,A){return ft(n)&&ft(a)&&(A.set(a,n),ku(n,a,e,dv,A),A.delete(a)),n}function JC(n){return ks(n)?e:n}function pv(n,a,u,h,_,A){var L=u&v,R=n.length,N=a.length;if(R!=N&&!(L&&N>R))return!1;var Y=A.get(n),X=A.get(a);if(Y&&X)return Y==a&&X==n;var te=-1,fe=!0,he=u&w?new so:e;for(A.set(n,a),A.set(a,n);++te<R;){var Ce=n[te],Ne=a[te];if(h)var Ee=L?h(Ne,Ce,te,a,n,A):h(Ce,Ne,te,n,a,A);if(Ee!==e){if(Ee)continue;fe=!1;break}if(he){if(!kd(a,function(Ue,qe){if(!Ss(he,qe)&&(Ce===Ue||_(Ce,Ue,u,h,A)))return he.push(qe)})){fe=!1;break}}else if(!(Ce===Ne||_(Ce,Ne,u,h,A))){fe=!1;break}}return A.delete(n),A.delete(a),fe}function QC(n,a,u,h,_,A,L){switch(u){case xr:if(n.byteLength!=a.byteLength||n.byteOffset!=a.byteOffset)return!1;n=n.buffer,a=a.buffer;case Pr:return!(n.byteLength!=a.byteLength||!A(new Tu(n),new Tu(a)));case bt:case mt:case qt:return Qr(+n,+a);case ht:return n.name==a.name&&n.message==a.message;case br:case si:return n==a+"";case je:var R=zd;case $t:var N=h&v;if(R||(R=xu),n.size!=a.size&&!N)return!1;var Y=L.get(n);if(Y)return Y==a;h|=w,L.set(n,a);var X=pv(R(n),R(a),h,_,A,L);return L.delete(n),X;case Xi:if(Rs)return Rs.call(n)==Rs.call(a)}return!1}function eE(n,a,u,h,_,A){var L=u&v,R=vp(n),N=R.length,Y=vp(a),X=Y.length;if(N!=X&&!L)return!1;for(var te=N;te--;){var fe=R[te];if(!(L?fe in a:et.call(a,fe)))return!1}var he=A.get(n),Ce=A.get(a);if(he&&Ce)return he==a&&Ce==n;var Ne=!0;A.set(n,a),A.set(a,n);for(var Ee=L;++te<N;){fe=R[te];var Ue=n[fe],qe=a[fe];if(h)var Tr=L?h(qe,Ue,fe,a,n,A):h(Ue,qe,fe,n,a,A);if(!(Tr===e?Ue===qe||_(Ue,qe,u,h,A):Tr)){Ne=!1;break}Ee||(Ee=fe=="constructor")}if(Ne&&!Ee){var er=n.constructor,Or=a.constructor;er!=Or&&"constructor"in n&&"constructor"in a&&!(typeof er=="function"&&er instanceof er&&typeof Or=="function"&&Or instanceof Or)&&(Ne=!1)}return A.delete(n),A.delete(a),Ne}function Vn(n){return Ep(yv(n,e,Ov),n+"")}function vp(n){return M0(n,Ht,bp)}function gp(n){return M0(n,pr,mv)}var _p=Mu?function(n){return Mu.get(n)}:Fp;function Gu(n){for(var a=n.name+"",u=na[a],h=et.call(na,a)?u.length:0;h--;){var _=u[h],A=_.func;if(A==null||A==n)return _.name}return a}function sa(n){var a=et.call(E,"placeholder")?E:n;return a.placeholder}function we(){var n=E.iteratee||Np;return n=n===Np?B0:n,arguments.length?n(arguments[0],arguments[1]):n}function Zu(n,a){var u=n.__data__;return lE(a)?u[typeof a=="string"?"string":"hash"]:u.map}function yp(n){for(var a=Ht(n),u=a.length;u--;){var h=a[u],_=n[h];a[u]=[h,_,gv(_)]}return a}function co(n,a){var u=f9(n,a);return N0(u)?u:e}function tE(n){var a=et.call(n,oo),u=n[oo];try{n[oo]=e;var h=!0}catch{}var _=Su.call(n);return h&&(a?n[oo]=u:delete n[oo]),_}var bp=Gd?function(n){return n==null?[]:(n=rt(n),pi(Gd(n),function(a){return b0.call(n,a)}))}:Hp,mv=Gd?function(n){for(var a=[];n;)mi(a,bp(n)),n=Ou(n);return a}:Hp,Zt=Jt;(Zd&&Zt(new Zd(new ArrayBuffer(1)))!=xr||Ts&&Zt(new Ts)!=je||Kd&&Zt(Kd.resolve())!=Nn||ra&&Zt(new ra)!=$t||Os&&Zt(new Os)!=Fn)&&(Zt=function(n){var a=Jt(n),u=a==cr?n.constructor:e,h=u?fo(u):"";if(h)switch(h){case F9:return xr;case H9:return je;case k9:return Nn;case U9:return $t;case $9:return Fn}return a});function rE(n,a,u){for(var h=-1,_=u.length;++h<_;){var A=u[h],L=A.size;switch(A.type){case"drop":n+=L;break;case"dropRight":a-=L;break;case"take":a=Gt(a,n+L);break;case"takeRight":n=Pt(n,a-L);break}}return{start:n,end:a}}function nE(n){var a=n.match(fi);return a?a[1].split(cu):[]}function hv(n,a,u){a=bi(a,n);for(var h=-1,_=a.length,A=!1;++h<_;){var L=_n(a[h]);if(!(A=n!=null&&u(n,L)))break;n=n[L]}return A||++h!=_?A:(_=n==null?0:n.length,!!_&&tc(_)&&Wn(L,_)&&(Ie(n)||po(n)))}function iE(n){var a=n.length,u=new n.constructor(a);return a&&typeof n[0]=="string"&&et.call(n,"index")&&(u.index=n.index,u.input=n.input),u}function vv(n){return typeof n.constructor=="function"&&!Fs(n)?ia(Ou(n)):{}}function oE(n,a,u){var h=n.constructor;switch(a){case Pr:return pp(n);case bt:case mt:return new h(+n);case xr:return VC(n,u);case zo:case jo:case Go:case Qi:case Zo:case li:case ui:case wr:case hn:return J0(n,u);case je:return new h;case qt:case si:return new h(n);case br:return WC(n);case $t:return new h;case Xi:return qC(n)}}function aE(n,a){var u=a.length;if(!u)return n;var h=u-1;return a[h]=(u>1?"& ":"")+a[h],a=a.join(u>2?", ":" "),n.replace(Mr,`{ 2/* [wrapped with `+a+`] */ 3`)}function sE(n){return Ie(n)||po(n)||!!(x0&&n&&n[x0])}function Wn(n,a){var u=typeof n;return a=a??G,!!a&&(u=="number"||u!="symbol"&&_e.test(n))&&n>-1&&n%1==0&&n<a}function Qt(n,a,u){if(!ft(u))return!1;var h=typeof a;return(h=="number"?dr(u)&&Wn(a,u.length):h=="string"&&a in u)?Qr(u[a],n):!1}function xp(n,a){if(Ie(n))return!1;var u=typeof n;return u=="number"||u=="symbol"||u=="boolean"||n==null||Ar(n)?!0:Td.test(n)||!ci.test(n)||a!=null&&n in rt(a)}function lE(n){var a=typeof n;return a=="string"||a=="number"||a=="symbol"||a=="boolean"?n!=="__proto__":n===null}function wp(n){var a=Gu(n),u=E[a];if(typeof u!="function"||!(a in We.prototype))return!1;if(n===u)return!0;var h=_p(u);return!!h&&n===h[0]}function uE(n){return!!g0&&g0 in n}var cE=Cu?qn:kp;function Fs(n){var a=n&&n.constructor,u=typeof a=="function"&&a.prototype||ta;return n===u}function gv(n){return n===n&&!ft(n)}function _v(n,a){return function(u){return u==null?!1:u[n]===a&&(a!==e||n in rt(u))}}function fE(n){var a=Qu(n,function(h){return u.size===c&&u.clear(),h}),u=a.cache;return a}function dE(n,a){var u=n[1],h=a[1],_=u|h,A=_<(g|S|I),L=h==I&&u==x||h==I&&u==M&&n[7].length<=a[8]||h==(I|M)&&a[7].length<=a[8]&&u==x;if(!(A||L))return n;h&g&&(n[2]=a[2],_|=u&g?0:y);var R=a[3];if(R){var N=n[3];n[3]=N?ev(N,R,a[4]):R,n[4]=N?hi(n[3],f):a[4]}return R=a[5],R&&(N=n[5],n[5]=N?tv(N,R,a[6]):R,n[6]=N?hi(n[5],f):a[6]),R=a[7],R&&(n[7]=R),h&I&&(n[8]=n[8]==null?a[8]:Gt(n[8],a[8])),n[9]==null&&(n[9]=a[9]),n[0]=a[0],n[1]=_,n}function pE(n){var a=[];if(n!=null)for(var u in rt(n))a.push(u);return a}function mE(n){return Su.call(n)}function yv(n,a,u){return a=Pt(a===e?n.length-1:a,0),function(){for(var h=arguments,_=-1,A=Pt(h.length-a,0),L=U(A);++_<A;)L[_]=h[a+_];_=-1;for(var R=U(a+1);++_<a;)R[_]=h[_];return R[a]=u(L),Cr(n,this,R)}}function bv(n,a){return a.length<2?n:uo(n,Ur(a,0,-1))}function hE(n,a){for(var u=n.length,h=Gt(a.length,u),_=fr(n);h--;){var A=a[h];n[h]=Wn(A,u)?_[A]:e}return n}function Cp(n,a){if(!(a==="constructor"&&typeof n[a]=="function")&&a!="__proto__")return n[a]}var xv=Cv(q0),Hs=R9||function(n,a){return Ft.setTimeout(n,a)},Ep=Cv(HC);function wv(n,a,u){var h=a+"";return Ep(n,aE(h,vE(nE(h),u)))}function Cv(n){var a=0,u=0;return function(){var h=D9(),_=ie-(h-u);if(u=h,_>0){if(++a>=oe)return arguments[0]}else a=0;return n.apply(e,arguments)}}function Ku(n,a){var u=-1,h=n.length,_=h-1;for(a=a===e?h:a;++u<a;){var A=ap(u,_),L=n[A];n[A]=n[u],n[u]=L}return n.length=a,n}var Ev=fE(function(n){var a=[];return n.charCodeAt(0)===46&&a.push(""),n.replace(lu,function(u,h,_,A){a.push(_?A.replace(du,"$1"):h||u)}),a});function _n(n){if(typeof n=="string"||Ar(n))return n;var a=n+"";return a=="0"&&1/n==-W?"-0":a}function fo(n){if(n!=null){try{return Eu.call(n)}catch{}try{return n+""}catch{}}return""}function vE(n,a){return Br(Oe,function(u){var h="_."+u[0];a&u[1]&&!yu(n,h)&&n.push(h)}),n.sort()}function Sv(n){if(n instanceof We)return n.clone();var a=new Hr(n.__wrapped__,n.__chain__);return a.__actions__=fr(n.__actions__),a.__index__=n.__index__,a.__values__=n.__values__,a}function gE(n,a,u){(u?Qt(n,a,u):a===e)?a=1:a=Pt(De(a),0);var h=n==null?0:n.length;if(!h||a<1)return[];for(var _=0,A=0,L=U(Iu(h/a));_<h;)L[A++]=Ur(n,_,_+=a);return L}function _E(n){for(var a=-1,u=n==null?0:n.length,h=0,_=[];++a<u;){var A=n[a];A&&(_[h++]=A)}return _}function yE(){var n=arguments.length;if(!n)return[];for(var a=U(n-1),u=arguments[0],h=n;h--;)a[h-1]=arguments[h];return mi(Ie(u)?fr(u):[u],Vt(a,1))}var bE=Be(function(n,a){return Et(n)?Ps(n,Vt(a,1,Et,!0)):[]}),xE=Be(function(n,a){var u=$r(a);return Et(u)&&(u=e),Et(n)?Ps(n,Vt(a,1,Et,!0),we(u,2)):[]}),wE=Be(function(n,a){var u=$r(a);return Et(u)&&(u=e),Et(n)?Ps(n,Vt(a,1,Et,!0),e,u):[]});function CE(n,a,u){var h=n==null?0:n.length;return h?(a=u||a===e?1:De(a),Ur(n,a<0?0:a,h)):[]}function EE(n,a,u){var h=n==null?0:n.length;return h?(a=u||a===e?1:De(a),a=h-a,Ur(n,0,a<0?0:a)):[]}function SE(n,a){return n&&n.length?$u(n,we(a,3),!0,!0):[]}function AE(n,a){return n&&n.length?$u(n,we(a,3),!0):[]}function TE(n,a,u,h){var _=n==null?0:n.length;return _?(u&&typeof u!="number"&&Qt(n,a,u)&&(u=0,h=_),yC(n,a,u,h)):[]}function Av(n,a,u){var h=n==null?0:n.length;if(!h)return-1;var _=u==null?0:De(u);return _<0&&(_=Pt(h+_,0)),bu(n,we(a,3),_)}function Tv(n,a,u){var h=n==null?0:n.length;if(!h)return-1;var _=h-1;return u!==e&&(_=De(u),_=u<0?Pt(h+_,0):Gt(_,h-1)),bu(n,we(a,3),_,!0)}function Ov(n){var a=n==null?0:n.length;return a?Vt(n,1):[]}function OE(n){var a=n==null?0:n.length;return a?Vt(n,W):[]}function LE(n,a){var u=n==null?0:n.length;return u?(a=a===e?1:De(a),Vt(n,a)):[]}function RE(n){for(var a=-1,u=n==null?0:n.length,h={};++a<u;){var _=n[a];h[_[0]]=_[1]}return h}function Lv(n){return n&&n.length?n[0]:e}function IE(n,a,u){var h=n==null?0:n.length;if(!h)return-1;var _=u==null?0:De(u);return _<0&&(_=Pt(h+_,0)),Jo(n,a,_)}function PE(n){var a=n==null?0:n.length;return a?Ur(n,0,-1):[]}var ME=Be(function(n){var a=ut(n,fp);return a.length&&a[0]===n[0]?tp(a):[]}),DE=Be(function(n){var a=$r(n),u=ut(n,fp);return a===$r(u)?a=e:u.pop(),u.length&&u[0]===n[0]?tp(u,we(a,2)):[]}),NE=Be(function(n){var a=$r(n),u=ut(n,fp);return a=typeof a=="function"?a:e,a&&u.pop(),u.length&&u[0]===n[0]?tp(u,e,a):[]});function BE(n,a){return n==null?"":P9.call(n,a)}function $r(n){var a=n==null?0:n.length;return a?n[a-1]:e}function FE(n,a,u){var h=n==null?0:n.length;if(!h)return-1;var _=h;return u!==e&&(_=De(u),_=_<0?Pt(h+_,0):Gt(_,h-1)),a===a?v9(n,a,_):bu(n,u0,_,!0)}function HE(n,a){return n&&n.length?U0(n,De(a)):e}var kE=Be(Rv);function Rv(n,a){return n&&n.length&&a&&a.length?op(n,a):n}function UE(n,a,u){return n&&n.length&&a&&a.length?op(n,a,we(u,2)):n}function $E(n,a,u){return n&&n.length&&a&&a.length?op(n,a,e,u):n}var VE=Vn(function(n,a){var u=n==null?0:n.length,h=Xd(n,a);return W0(n,ut(a,function(_){return Wn(_,u)?+_:_}).sort(Q0)),h});function WE(n,a){var u=[];if(!(n&&n.length))return u;var h=-1,_=[],A=n.length;for(a=we(a,3);++h<A;){var L=n[h];a(L,h,n)&&(u.push(L),_.push(h))}return W0(n,_),u}function Sp(n){return n==null?n:B9.call(n)}function qE(n,a,u){var h=n==null?0:n.length;return h?(u&&typeof u!="number"&&Qt(n,a,u)?(a=0,u=h):(a=a==null?0:De(a),u=u===e?h:De(u)),Ur(n,a,u)):[]}function zE(n,a){return Uu(n,a)}function jE(n,a,u){return lp(n,a,we(u,2))}function GE(n,a){var u=n==null?0:n.length;if(u){var h=Uu(n,a);if(h<u&&Qr(n[h],a))return h}return-1}function ZE(n,a){return Uu(n,a,!0)}function KE(n,a,u){return lp(n,a,we(u,2),!0)}function YE(n,a){var u=n==null?0:n.length;if(u){var h=Uu(n,a,!0)-1;if(Qr(n[h],a))return h}return-1}function XE(n){return n&&n.length?z0(n):[]}function JE(n,a){return n&&n.length?z0(n,we(a,2)):[]}function QE(n){var a=n==null?0:n.length;return a?Ur(n,1,a):[]}function eS(n,a,u){return n&&n.length?(a=u||a===e?1:De(a),Ur(n,0,a<0?0:a)):[]}function tS(n,a,u){var h=n==null?0:n.length;return h?(a=u||a===e?1:De(a),a=h-a,Ur(n,a<0?0:a,h)):[]}function rS(n,a){return n&&n.length?$u(n,we(a,3),!1,!0):[]}function nS(n,a){return n&&n.length?$u(n,we(a,3)):[]}var iS=Be(function(n){return yi(Vt(n,1,Et,!0))}),oS=Be(function(n){var a=$r(n);return Et(a)&&(a=e),yi(Vt(n,1,Et,!0),we(a,2))}),aS=Be(function(n){var a=$r(n);return a=typeof a=="function"?a:e,yi(Vt(n,1,Et,!0),e,a)});function sS(n){return n&&n.length?yi(n):[]}function lS(n,a){return n&&n.length?yi(n,we(a,2)):[]}function uS(n,a){return a=typeof a=="function"?a:e,n&&n.length?yi(n,e,a):[]}function Ap(n){if(!(n&&n.length))return[];var a=0;return n=pi(n,function(u){if(Et(u))return a=Pt(u.length,a),!0}),Wd(a,function(u){return ut(n,Ud(u))})}function Iv(n,a){if(!(n&&n.length))return[];var u=Ap(n);return a==null?u:ut(u,function(h){return Cr(a,e,h)})}var cS=Be(function(n,a){return Et(n)?Ps(n,a):[]}),fS=Be(function(n){return cp(pi(n,Et))}),dS=Be(function(n){var a=$r(n);return Et(a)&&(a=e),cp(pi(n,Et),we(a,2))}),pS=Be(function(n){var a=$r(n);return a=typeof a=="function"?a:e,cp(pi(n,Et),e,a)}),mS=Be(Ap);function hS(n,a){return K0(n||[],a||[],Is)}function vS(n,a){return K0(n||[],a||[],Ns)}var gS=Be(function(n){var a=n.length,u=a>1?n[a-1]:e;return u=typeof u=="function"?(n.pop(),u):e,Iv(n,u)});function Pv(n){var a=E(n);return a.__chain__=!0,a}function _S(n,a){return a(n),n}function Yu(n,a){return a(n)}var yS=Vn(function(n){var a=n.length,u=a?n[0]:0,h=this.__wrapped__,_=function(A){return Xd(A,n)};return a>1||this.__actions__.length||!(h instanceof We)||!Wn(u)?this.thru(_):(h=h.slice(u,+u+(a?1:0)),h.__actions__.push({func:Yu,args:[_],thisArg:e}),new Hr(h,this.__chain__).thru(function(A){return a&&!A.length&&A.push(e),A}))});function bS(){return Pv(this)}function xS(){return new Hr(this.value(),this.__chain__)}function wS(){this.__values__===e&&(this.__values__=jv(this.value()));var n=this.__index__>=this.__values__.length,a=n?e:this.__values__[this.__index__++];return{done:n,value:a}}function CS(){return this}function ES(n){for(var a,u=this;u instanceof Nu;){var h=Sv(u);h.__index__=0,h.__values__=e,a?_.__wrapped__=h:a=h;var _=h;u=u.__wrapped__}return _.__wrapped__=n,a}function SS(){var n=this.__wrapped__;if(n instanceof We){var a=n;return this.__actions__.length&&(a=new We(this)),a=a.reverse(),a.__actions__.push({func:Yu,args:[Sp],thisArg:e}),new Hr(a,this.__chain__)}return this.thru(Sp)}function AS(){return Z0(this.__wrapped__,this.__actions__)}var TS=Vu(function(n,a,u){et.call(n,u)?++n[u]:Un(n,u,1)});function OS(n,a,u){var h=Ie(n)?s0:_C;return u&&Qt(n,a,u)&&(a=e),h(n,we(a,3))}function LS(n,a){var u=Ie(n)?pi:I0;return u(n,we(a,3))}var RS=ov(Av),IS=ov(Tv);function PS(n,a){return Vt(Xu(n,a),1)}function MS(n,a){return Vt(Xu(n,a),W)}function DS(n,a,u){return u=u===e?1:De(u),Vt(Xu(n,a),u)}function Mv(n,a){var u=Ie(n)?Br:_i;return u(n,we(a,3))}function Dv(n,a){var u=Ie(n)?Qw:R0;return u(n,we(a,3))}var NS=Vu(function(n,a,u){et.call(n,u)?n[u].push(a):Un(n,u,[a])});function BS(n,a,u,h){n=dr(n)?n:ua(n),u=u&&!h?De(u):0;var _=n.length;return u<0&&(u=Pt(_+u,0)),rc(n)?u<=_&&n.indexOf(a,u)>-1:!!_&&Jo(n,a,u)>-1}var FS=Be(function(n,a,u){var h=-1,_=typeof a=="function",A=dr(n)?U(n.length):[];return _i(n,function(L){A[++h]=_?Cr(a,L,u):Ms(L,a,u)}),A}),HS=Vu(function(n,a,u){Un(n,u,a)});function Xu(n,a){var u=Ie(n)?ut:F0;return u(n,we(a,3))}function kS(n,a,u,h){return n==null?[]:(Ie(a)||(a=a==null?[]:[a]),u=h?e:u,Ie(u)||(u=u==null?[]:[u]),$0(n,a,u))}var US=Vu(function(n,a,u){n[u?0:1].push(a)},function(){return[[],[]]});function $S(n,a,u){var h=Ie(n)?Hd:f0,_=arguments.length<3;return h(n,we(a,4),u,_,_i)}function VS(n,a,u){var h=Ie(n)?e9:f0,_=arguments.length<3;return h(n,we(a,4),u,_,R0)}function WS(n,a){var u=Ie(n)?pi:I0;return u(n,ec(we(a,3)))}function qS(n){var a=Ie(n)?A0:BC;return a(n)}function zS(n,a,u){(u?Qt(n,a,u):a===e)?a=1:a=De(a);var h=Ie(n)?pC:FC;return h(n,a)}function jS(n){var a=Ie(n)?mC:kC;return a(n)}function GS(n){if(n==null)return 0;if(dr(n))return rc(n)?ea(n):n.length;var a=Zt(n);return a==je||a==$t?n.size:np(n).length}function ZS(n,a,u){var h=Ie(n)?kd:UC;return u&&Qt(n,a,u)&&(a=e),h(n,we(a,3))}var KS=Be(function(n,a){if(n==null)return[];var u=a.length;return u>1&&Qt(n,a[0],a[1])?a=[]:u>2&&Qt(a[0],a[1],a[2])&&(a=[a[0]]),$0(n,Vt(a,1),[])}),Ju=L9||function(){return Ft.Date.now()};function YS(n,a){if(typeof a!="function")throw new Fr(o);return n=De(n),function(){if(--n<1)return a.apply(this,arguments)}}function Nv(n,a,u){return a=u?e:a,a=n&&a==null?n.length:a,$n(n,I,e,e,e,e,a)}function Bv(n,a){var u;if(typeof a!="function")throw new Fr(o);return n=De(n),function(){return--n>0&&(u=a.apply(this,arguments)),n<=1&&(a=e),u}}var Tp=Be(function(n,a,u){var h=g;if(u.length){var _=hi(u,sa(Tp));h|=C}return $n(n,h,a,u,_)}),Fv=Be(function(n,a,u){var h=g|S;if(u.length){var _=hi(u,sa(Fv));h|=C}return $n(a,h,n,u,_)});function Hv(n,a,u){a=u?e:a;var h=$n(n,x,e,e,e,e,e,a);return h.placeholder=Hv.placeholder,h}function kv(n,a,u){a=u?e:a;var h=$n(n,T,e,e,e,e,e,a);return h.placeholder=kv.placeholder,h}function Uv(n,a,u){var h,_,A,L,R,N,Y=0,X=!1,te=!1,fe=!0;if(typeof n!="function")throw new Fr(o);a=Vr(a)||0,ft(u)&&(X=!!u.leading,te="maxWait"in u,A=te?Pt(Vr(u.maxWait)||0,a):A,fe="trailing"in u?!!u.trailing:fe);function he(St){var en=h,jn=_;return h=_=e,Y=St,L=n.apply(jn,en),L}function Ce(St){return Y=St,R=Hs(Ue,a),X?he(St):L}function Ne(St){var en=St-N,jn=St-Y,og=a-en;return te?Gt(og,A-jn):og}function Ee(St){var en=St-N,jn=St-Y;return N===e||en>=a||en<0||te&&jn>=A}function Ue(){var St=Ju();if(Ee(St))return qe(St);R=Hs(Ue,Ne(St))}function qe(St){return R=e,fe&&h?he(St):(h=_=e,L)}function Tr(){R!==e&&Y0(R),Y=0,h=N=_=R=e}function er(){return R===e?L:qe(Ju())}function Or(){var St=Ju(),en=Ee(St);if(h=arguments,_=this,N=St,en){if(R===e)return Ce(N);if(te)return Y0(R),R=Hs(Ue,a),he(N)}return R===e&&(R=Hs(Ue,a)),L}return Or.cancel=Tr,Or.flush=er,Or}var XS=Be(function(n,a){return L0(n,1,a)}),JS=Be(function(n,a,u){return L0(n,Vr(a)||0,u)});function QS(n){return $n(n,$)}function Qu(n,a){if(typeof n!="function"||a!=null&&typeof a!="function")throw new Fr(o);var u=function(){var h=arguments,_=a?a.apply(this,h):h[0],A=u.cache;if(A.has(_))return A.get(_);var L=n.apply(this,h);return u.cache=A.set(_,L)||A,L};return u.cache=new(Qu.Cache||kn),u}Qu.Cache=kn;function ec(n){if(typeof n!="function")throw new Fr(o);return function(){var a=arguments;switch(a.length){case 0:return!n.call(this);case 1:return!n.call(this,a[0]);case 2:return!n.call(this,a[0],a[1]);case 3:return!n.call(this,a[0],a[1],a[2])}return!n.apply(this,a)}}function eA(n){return Bv(2,n)}var tA=$C(function(n,a){a=a.length==1&&Ie(a[0])?ut(a[0],Er(we())):ut(Vt(a,1),Er(we()));var u=a.length;return Be(function(h){for(var _=-1,A=Gt(h.length,u);++_<A;)h[_]=a[_].call(this,h[_]);return Cr(n,this,h)})}),Op=Be(function(n,a){var u=hi(a,sa(Op));return $n(n,C,e,a,u)}),$v=Be(function(n,a){var u=hi(a,sa($v));return $n(n,O,e,a,u)}),rA=Vn(function(n,a){return $n(n,M,e,e,e,a)});function nA(n,a){if(typeof n!="function")throw new Fr(o);return a=a===e?a:De(a),Be(n,a)}function iA(n,a){if(typeof n!="function")throw new Fr(o);return a=a==null?0:Pt(De(a),0),Be(function(u){var h=u[a],_=xi(u,0,a);return h&&mi(_,h),Cr(n,this,_)})}function oA(n,a,u){var h=!0,_=!0;if(typeof n!="function")throw new Fr(o);return ft(u)&&(h="leading"in u?!!u.leading:h,_="trailing"in u?!!u.trailing:_),Uv(n,a,{leading:h,maxWait:a,trailing:_})}function aA(n){return Nv(n,1)}function sA(n,a){return Op(dp(a),n)}function lA(){if(!arguments.length)return[];var n=arguments[0];return Ie(n)?n:[n]}function uA(n){return kr(n,p)}function cA(n,a){return a=typeof a=="function"?a:e,kr(n,p,a)}function fA(n){return kr(n,d|p)}function dA(n,a){return a=typeof a=="function"?a:e,kr(n,d|p,a)}function pA(n,a){return a==null||O0(n,a,Ht(a))}function Qr(n,a){return n===a||n!==n&&a!==a}var mA=ju(ep),hA=ju(function(n,a){return n>=a}),po=D0(function(){return arguments}())?D0:function(n){return vt(n)&&et.call(n,"callee")&&!b0.call(n,"callee")},Ie=U.isArray,vA=t0?Er(t0):EC;function dr(n){return n!=null&&tc(n.length)&&!qn(n)}function Et(n){return vt(n)&&dr(n)}function gA(n){return n===!0||n===!1||vt(n)&&Jt(n)==bt}var wi=I9||kp,_A=r0?Er(r0):SC;function yA(n){return vt(n)&&n.nodeType===1&&!ks(n)}function bA(n){if(n==null)return!0;if(dr(n)&&(Ie(n)||typeof n=="string"||typeof n.splice=="function"||wi(n)||la(n)||po(n)))return!n.length;var a=Zt(n);if(a==je||a==$t)return!n.size;if(Fs(n))return!np(n).length;for(var u in n)if(et.call(n,u))return!1;return!0}function xA(n,a){return Ds(n,a)}function wA(n,a,u){u=typeof u=="function"?u:e;var h=u?u(n,a):e;return h===e?Ds(n,a,e,u):!!h}function Lp(n){if(!vt(n))return!1;var a=Jt(n);return a==ht||a==Ge||typeof n.message=="string"&&typeof n.name=="string"&&!ks(n)}function CA(n){return typeof n=="number"&&w0(n)}function qn(n){if(!ft(n))return!1;var a=Jt(n);return a==xt||a==Me||a==ke||a==Bn}function Vv(n){return typeof n=="number"&&n==De(n)}function tc(n){return typeof n=="number"&&n>-1&&n%1==0&&n<=G}function ft(n){var a=typeof n;return n!=null&&(a=="object"||a=="function")}function vt(n){return n!=null&&typeof n=="object"}var Wv=n0?Er(n0):TC;function EA(n,a){return n===a||rp(n,a,yp(a))}function SA(n,a,u){return u=typeof u=="function"?u:e,rp(n,a,yp(a),u)}function AA(n){return qv(n)&&n!=+n}function TA(n){if(cE(n))throw new Re(i);return N0(n)}function OA(n){return n===null}function LA(n){return n==null}function qv(n){return typeof n=="number"||vt(n)&&Jt(n)==qt}function ks(n){if(!vt(n)||Jt(n)!=cr)return!1;var a=Ou(n);if(a===null)return!0;var u=et.call(a,"constructor")&&a.constructor;return typeof u=="function"&&u instanceof u&&Eu.call(u)==S9}var Rp=i0?Er(i0):OC;function RA(n){return Vv(n)&&n>=-G&&n<=G}var zv=o0?Er(o0):LC;function rc(n){return typeof n=="string"||!Ie(n)&&vt(n)&&Jt(n)==si}function Ar(n){return typeof n=="symbol"||vt(n)&&Jt(n)==Xi}var la=a0?Er(a0):RC;function IA(n){return n===e}function PA(n){return vt(n)&&Zt(n)==Fn}function MA(n){return vt(n)&&Jt(n)==Ji}var DA=ju(ip),NA=ju(function(n,a){return n<=a});function jv(n){if(!n)return[];if(dr(n))return rc(n)?Xr(n):fr(n);if(As&&n[As])return p9(n[As]());var a=Zt(n),u=a==je?zd:a==$t?xu:ua;return u(n)}function zn(n){if(!n)return n===0?n:0;if(n=Vr(n),n===W||n===-W){var a=n<0?-1:1;return a*J}return n===n?n:0}function De(n){var a=zn(n),u=a%1;return a===a?u?a-u:a:0}function Gv(n){return n?lo(De(n),0,ce):0}function Vr(n){if(typeof n=="number")return n;if(Ar(n))return Z;if(ft(n)){var a=typeof n.valueOf=="function"?n.valueOf():n;n=ft(a)?a+"":a}if(typeof n!="string")return n===0?n:+n;n=d0(n);var u=mu.test(n);return u||Ld.test(n)?Yw(n.slice(2),u?2:8):pu.test(n)?Z:+n}function Zv(n){return gn(n,pr(n))}function BA(n){return n?lo(De(n),-G,G):n===0?n:0}function Ye(n){return n==null?"":Sr(n)}var FA=oa(function(n,a){if(Fs(a)||dr(a)){gn(a,Ht(a),n);return}for(var u in a)et.call(a,u)&&Is(n,u,a[u])}),Kv=oa(function(n,a){gn(a,pr(a),n)}),nc=oa(function(n,a,u,h){gn(a,pr(a),n,h)}),HA=oa(function(n,a,u,h){gn(a,Ht(a),n,h)}),kA=Vn(Xd);function UA(n,a){var u=ia(n);return a==null?u:T0(u,a)}var $A=Be(function(n,a){n=rt(n);var u=-1,h=a.length,_=h>2?a[2]:e;for(_&&Qt(a[0],a[1],_)&&(h=1);++u<h;)for(var A=a[u],L=pr(A),R=-1,N=L.length;++R<N;){var Y=L[R],X=n[Y];(X===e||Qr(X,ta[Y])&&!et.call(n,Y))&&(n[Y]=A[Y])}return n}),VA=Be(function(n){return n.push(e,dv),Cr(Yv,e,n)});function WA(n,a){return l0(n,we(a,3),vn)}function qA(n,a){return l0(n,we(a,3),Qd)}function zA(n,a){return n==null?n:Jd(n,we(a,3),pr)}function jA(n,a){return n==null?n:P0(n,we(a,3),pr)}function GA(n,a){return n&&vn(n,we(a,3))}function ZA(n,a){return n&&Qd(n,we(a,3))}function KA(n){return n==null?[]:Hu(n,Ht(n))}function YA(n){return n==null?[]:Hu(n,pr(n))}function Ip(n,a,u){var h=n==null?e:uo(n,a);return h===e?u:h}function XA(n,a){return n!=null&&hv(n,a,bC)}function Pp(n,a){return n!=null&&hv(n,a,xC)}var JA=sv(function(n,a,u){a!=null&&typeof a.toString!="function"&&(a=Su.call(a)),n[a]=u},Dp(mr)),QA=sv(function(n,a,u){a!=null&&typeof a.toString!="function"&&(a=Su.call(a)),et.call(n,a)?n[a].push(u):n[a]=[u]},we),eT=Be(Ms);function Ht(n){return dr(n)?S0(n):np(n)}function pr(n){return dr(n)?S0(n,!0):IC(n)}function tT(n,a){var u={};return a=we(a,3),vn(n,function(h,_,A){Un(u,a(h,_,A),h)}),u}function rT(n,a){var u={};return a=we(a,3),vn(n,function(h,_,A){Un(u,_,a(h,_,A))}),u}var nT=oa(function(n,a,u){ku(n,a,u)}),Yv=oa(function(n,a,u,h){ku(n,a,u,h)}),iT=Vn(function(n,a){var u={};if(n==null)return u;var h=!1;a=ut(a,function(A){return A=bi(A,n),h||(h=A.length>1),A}),gn(n,gp(n),u),h&&(u=kr(u,d|m|p,JC));for(var _=a.length;_--;)up(u,a[_]);return u});function oT(n,a){return Xv(n,ec(we(a)))}var aT=Vn(function(n,a){return n==null?{}:MC(n,a)});function Xv(n,a){if(n==null)return{};var u=ut(gp(n),function(h){return[h]});return a=we(a),V0(n,u,function(h,_){return a(h,_[0])})}function sT(n,a,u){a=bi(a,n);var h=-1,_=a.length;for(_||(_=1,n=e);++h<_;){var A=n==null?e:n[_n(a[h])];A===e&&(h=_,A=u),n=qn(A)?A.call(n):A}return n}function lT(n,a,u){return n==null?n:Ns(n,a,u)}function uT(n,a,u,h){return h=typeof h=="function"?h:e,n==null?n:Ns(n,a,u,h)}var Jv=cv(Ht),Qv=cv(pr);function cT(n,a,u){var h=Ie(n),_=h||wi(n)||la(n);if(a=we(a,4),u==null){var A=n&&n.constructor;_?u=h?new A:[]:ft(n)?u=qn(A)?ia(Ou(n)):{}:u={}}return(_?Br:vn)(n,function(L,R,N){return a(u,L,R,N)}),u}function fT(n,a){return n==null?!0:up(n,a)}function dT(n,a,u){return n==null?n:G0(n,a,dp(u))}function pT(n,a,u,h){return h=typeof h=="function"?h:e,n==null?n:G0(n,a,dp(u),h)}function ua(n){return n==null?[]:qd(n,Ht(n))}function mT(n){return n==null?[]:qd(n,pr(n))}function hT(n,a,u){return u===e&&(u=a,a=e),u!==e&&(u=Vr(u),u=u===u?u:0),a!==e&&(a=Vr(a),a=a===a?a:0),lo(Vr(n),a,u)}function vT(n,a,u){return a=zn(a),u===e?(u=a,a=0):u=zn(u),n=Vr(n),wC(n,a,u)}function gT(n,a,u){if(u&&typeof u!="boolean"&&Qt(n,a,u)&&(a=u=e),u===e&&(typeof a=="boolean"?(u=a,a=e):typeof n=="boolean"&&(u=n,n=e)),n===e&&a===e?(n=0,a=1):(n=zn(n),a===e?(a=n,n=0):a=zn(a)),n>a){var h=n;n=a,a=h}if(u||n%1||a%1){var _=C0();return Gt(n+_*(a-n+Kw("1e-"+((_+"").length-1))),a)}return ap(n,a)}var _T=aa(function(n,a,u){return a=a.toLowerCase(),n+(u?eg(a):a)});function eg(n){return Mp(Ye(n).toLowerCase())}function tg(n){return n=Ye(n),n&&n.replace(P,l9).replace(kw,"")}function yT(n,a,u){n=Ye(n),a=Sr(a);var h=n.length;u=u===e?h:lo(De(u),0,h);var _=u;return u-=a.length,u>=0&&n.slice(u,_)==a}function bT(n){return n=Ye(n),n&&ro.test(n)?n.replace(to,u9):n}function xT(n){return n=Ye(n),n&&uu.test(n)?n.replace(no,"\\$&"):n}var wT=aa(function(n,a,u){return n+(u?"-":"")+a.toLowerCase()}),CT=aa(function(n,a,u){return n+(u?" ":"")+a.toLowerCase()}),ET=iv("toLowerCase");function ST(n,a,u){n=Ye(n),a=De(a);var h=a?ea(n):0;if(!a||h>=a)return n;var _=(a-h)/2;return zu(Pu(_),u)+n+zu(Iu(_),u)}function AT(n,a,u){n=Ye(n),a=De(a);var h=a?ea(n):0;return a&&h<a?n+zu(a-h,u):n}function TT(n,a,u){n=Ye(n),a=De(a);var h=a?ea(n):0;return a&&h<a?zu(a-h,u)+n:n}function OT(n,a,u){return u||a==null?a=0:a&&(a=+a),N9(Ye(n).replace(Ko,""),a||0)}function LT(n,a,u){return(u?Qt(n,a,u):a===e)?a=1:a=De(a),sp(Ye(n),a)}function RT(){var n=arguments,a=Ye(n[0]);return n.length<3?a:a.replace(n[1],n[2])}var IT=aa(function(n,a,u){return n+(u?"_":"")+a.toLowerCase()});function PT(n,a,u){return u&&typeof u!="number"&&Qt(n,a,u)&&(a=u=e),u=u===e?ce:u>>>
vendor: 7,217 bytes, lines 3-20
30,u?(n=Ye(n),n&&(typeof a=="string"||a!=null&&!Rp(a))&&(a=Sr(a),!a&&Qo(n))?xi(Xr(n),0,u):n.split(a,u)):[]}var MT=aa(function(n,a,u){return n+(u?" ":"")+Mp(a)});function DT(n,a,u){return n=Ye(n),u=u==null?0:lo(De(u),0,n.length),a=Sr(a),n.slice(u,u+a.length)==a}function NT(n,a,u){var h=E.templateSettings;u&&Qt(n,a,u)&&(a=e),n=Ye(n),a=nc({},a,h,fv);var _=nc({},a.imports,h.imports,fv),A=Ht(_),L=qd(_,A),R,N,Y=0,X=a.interpolate||ne,te="__p += '",fe=jd((a.escape||ne).source+"|"+X.source+"|"+(X===wt?Yr:ne).source+"|"+(a.evaluate||ne).source+"|$","g"),he="//# sourceURL="+(et.call(a,"sourceURL")?(a.sourceURL+"").replace(/\s/g," "):"lodash.templateSources["+ ++qw+"]")+` 4`;n.replace(fe,function(Ee,Ue,qe,Tr,er,Or){return qe||(qe=Tr),te+=n.slice(Y,Or).replace(me,c9),Ue&&(R=!0,te+=`' + 5__e(`+Ue+`) + 6'`),er&&(N=!0,te+=`'; 7`+er+`; 8__p += '`),qe&&(te+=`' + 9((__t = (`+qe+`)) == null ? '' : __t) + 10'`),Y=Or+Ee.length,Ee}),te+=`'; 11`;var Ce=et.call(a,"variable")&&a.variable;if(!Ce)te=`with (obj) { 12`+te+` 13} 14`;else if(Cs.test(Ce))throw new Re(s);te=(N?te.replace(xs,""):te).replace(ws,"$1").replace(Cd,"$1;"),te="function("+(Ce||"obj")+`) { 15`+(Ce?"":`obj || (obj = {}); 16`)+"var __t, __p = ''"+(R?", __e = _.escape":"")+(N?`, __j = Array.prototype.join; 17function print() { __p += __j.call(arguments, '') } 18`:`; 19`)+te+`return __p 20}`;var Ne=ng(function(){return Ze(A,he+"return "+te).apply(e,L)});if(Ne.source=te,Lp(Ne))throw Ne;return Ne}function BT(n){return Ye(n).toLowerCase()}function FT(n){return Ye(n).toUpperCase()}function HT(n,a,u){if(n=Ye(n),n&&(u||a===e))return d0(n);if(!n||!(a=Sr(a)))return n;var h=Xr(n),_=Xr(a),A=p0(h,_),L=m0(h,_)+1;return xi(h,A,L).join("")}function kT(n,a,u){if(n=Ye(n),n&&(u||a===e))return n.slice(0,v0(n)+1);if(!n||!(a=Sr(a)))return n;var h=Xr(n),_=m0(h,Xr(a))+1;return xi(h,0,_).join("")}function UT(n,a,u){if(n=Ye(n),n&&(u||a===e))return n.replace(Ko,"");if(!n||!(a=Sr(a)))return n;var h=Xr(n),_=p0(h,Xr(a));return xi(h,_).join("")}function $T(n,a){var u=k,h=H;if(ft(a)){var _="separator"in a?a.separator:_;u="length"in a?De(a.length):u,h="omission"in a?Sr(a.omission):h}n=Ye(n);var A=n.length;if(Qo(n)){var L=Xr(n);A=L.length}if(u>=A)return n;var R=u-ea(h);if(R<1)return h;var N=L?xi(L,0,R).join(""):n.slice(0,R);if(_===e)return N+h;if(L&&(R+=N.length-R),Rp(_)){if(n.slice(R).search(_)){var Y,X=N;for(_.global||(_=jd(_.source,Ye(Es.exec(_))+"g")),_.lastIndex=0;Y=_.exec(X);)var te=Y.index;N=N.slice(0,te===e?R:te)}}else if(n.indexOf(Sr(_),R)!=R){var fe=N.lastIndexOf(_);fe>-1&&(N=N.slice(0,fe))}return N+h}function VT(n){return n=Ye(n),n&&Ed.test(n)?n.replace(eo,g9):n}var WT=aa(function(n,a,u){return n+(u?" ":"")+a.toUpperCase()}),Mp=iv("toUpperCase");function rg(n,a,u){return n=Ye(n),a=u?e:a,a===e?d9(n)?b9(n):n9(n):n.match(a)||[]}var ng=Be(function(n,a){try{return Cr(n,e,a)}catch(u){return Lp(u)?u:new Re(u)}}),qT=Vn(function(n,a){return Br(a,function(u){u=_n(u),Un(n,u,Tp(n[u],n))}),n});function zT(n){var a=n==null?0:n.length,u=we();return n=a?ut(n,function(h){if(typeof h[1]!="function")throw new Fr(o);return[u(h[0]),h[1]]}):[],Be(function(h){for(var _=-1;++_<a;){var A=n[_];if(Cr(A[0],this,h))return Cr(A[1],this,h)}})}function jT(n){return gC(kr(n,d))}function Dp(n){return function(){return n}}function GT(n,a){return n==null||n!==n?a:n}var ZT=av(),KT=av(!0);function mr(n){return n}function Np(n){return B0(typeof n=="function"?n:kr(n,d))}function YT(n){return H0(kr(n,d))}function XT(n,a){return k0(n,kr(a,d))}var JT=Be(function(n,a){return function(u){return Ms(u,n,a)}}),QT=Be(function(n,a){return function(u){return Ms(n,u,a)}});function Bp(n,a,u){var h=Ht(a),_=Hu(a,h);u==null&&!(ft(a)&&(_.length||!h.length))&&(u=a,a=n,n=this,_=Hu(a,Ht(a)));var A=!(ft(u)&&"chain"in u)||!!u.chain,L=qn(n);return Br(_,function(R){var N=a[R];n[R]=N,L&&(n.prototype[R]=function(){var Y=this.__chain__;if(A||Y){var X=n(this.__wrapped__),te=X.__actions__=fr(this.__actions__);return te.push({func:N,args:arguments,thisArg:n}),X.__chain__=Y,X}return N.apply(n,mi([this.value()],arguments))})}),n}function eO(){return Ft._===this&&(Ft._=A9),this}function Fp(){}function tO(n){return n=De(n),Be(function(a){return U0(a,n)})}var rO=mp(ut),nO=mp(s0),iO=mp(kd);function ig(n){return xp(n)?Ud(_n(n)):DC(n)}function oO(n){return function(a){return n==null?e:uo(n,a)}}var aO=lv(),sO=lv(!0);function Hp(){return[]}function kp(){return!1}function lO(){return{}}function uO(){return""}function cO(){return!0}function fO(n,a){if(n=De(n),n<1||n>G)return[];var u=ce,h=Gt(n,ce);a=we(a),n-=ce;for(var _=Wd(h,a);++u<n;)a(u);return _}function dO(n){return Ie(n)?ut(n,_n):Ar(n)?[n]:fr(Ev(Ye(n)))}function pO(n){var a=++E9;return Ye(n)+a}var mO=qu(function(n,a){return n+a},0),hO=hp("ceil"),vO=qu(function(n,a){return n/a},1),gO=hp("floor");function _O(n){return n&&n.length?Fu(n,mr,ep):e}function yO(n,a){return n&&n.length?Fu(n,we(a,2),ep):e}function bO(n){return c0(n,mr)}function xO(n,a){return c0(n,we(a,2))}function wO(n){return n&&n.length?Fu(n,mr,ip):e}function CO(n,a){return n&&n.length?Fu(n,we(a,2),ip):e}var EO=qu(function(n,a){return n*a},1),SO=hp("round"),AO=qu(function(n,a){return n-a},0);function TO(n){return n&&n.length?Vd(n,mr):0}function OO(n,a){return n&&n.length?Vd(n,we(a,2)):0}return E.after=YS,E.ary=Nv,E.assign=FA,E.assignIn=Kv,E.assignInWith=nc,E.assignWith=HA,E.at=kA,E.before=Bv,E.bind=Tp,E.bindAll=qT,E.bindKey=Fv,E.castArray=lA,E.chain=Pv,E.chunk=gE,E.compact=_E,E.concat=yE,E.cond=zT,E.conforms=jT,E.constant=Dp,E.countBy=TS,E.create=UA,E.curry=Hv,E.curryRight=kv,E.debounce=Uv,E.defaults=$A,E.defaultsDeep=VA,E.defer=XS,E.delay=JS,E.difference=bE,E.differenceBy=xE,E.differenceWith=wE,E.drop=CE,E.dropRight=EE,E.dropRightWhile=SE,E.dropWhile=AE,E.fill=TE,E.filter=LS,E.flatMap=PS,E.flatMapDeep=MS,E.flatMapDepth=DS,E.flatten=Ov,E.flattenDeep=OE,E.flattenDepth=LE,E.flip=QS,E.flow=ZT,E.flowRight=KT,E.fromPairs=RE,E.functions=KA,E.functionsIn=YA,E.groupBy=NS,E.initial=PE,E.intersection=ME,E.intersectionBy=DE,E.intersectionWith=NE,E.invert=JA,E.invertBy=QA,E.invokeMap=FS,E.iteratee=Np,E.keyBy=HS,E.keys=Ht,E.keysIn=pr,E.map=Xu,E.mapKeys=tT,E.mapValues=rT,E.matches=YT,E.matchesProperty=XT,E.memoize=Qu,E.merge=nT,E.mergeWith=Yv,E.method=JT,E.methodOf=QT,E.mixin=Bp,E.negate=ec,E.nthArg=tO,E.omit=iT,E.omitBy=oT,E.once=eA,E.orderBy=kS,E.over=rO,E.overArgs=tA,E.overEvery=nO,E.overSome=iO,E.partial=Op,E.partialRight=$v,E.partition=US,E.pick=aT,E.pickBy=Xv,E.property=ig,E.propertyOf=oO,E.pull=kE,E.pullAll=Rv,E.pullAllBy=UE,E.pullAllWith=$E,E.pullAt=VE,E.range=aO,E.rangeRight=sO,E.rearg=rA,E.reject=WS,E.remove=WE,E.rest=nA,E.reverse=Sp,E.sampleSize=zS,E.set=lT,E.setWith=uT,E.shuffle=jS,E.slice=qE,E.sortBy=KS,E.sortedUniq=XE,E.sortedUniqBy=JE,E.split=PT,E.spread=iA,E.tail=QE,E.take=eS,E.takeRight=tS,E.takeRightWhile=rS,E.takeWhile=nS,E.tap=_S,E.throttle=oA,E.thru=Yu,E.toArray=jv,E.toPairs=Jv,E.toPairsIn=Qv,E.toPath=dO,E.toPlainObject=Zv,E.transform=cT,E.unary=aA,E.union=iS,E.unionBy=oS,E.unionWith=aS,E.uniq=sS,E.uniqBy=lS,E.uniqWith=uS,E.unset=fT,E.unzip=Ap,E.unzipWith=Iv,E.update=dT,E.updateWith=pT,E.values=ua,E.valuesIn=mT,E.without=cS,E.words=rg,E.wrap=sA,E.xor=fS,E.xorBy=dS,E.xorWith=pS,E.zip=mS,E.zipObject=hS,E.zipObjectDeep=vS,E.zipWith=gS,E.entries=Jv,E.entr
20iesIn=Qv,E.extend=Kv,E.extendWith=nc,Bp(E,E),E.add=mO,E.attempt=ng,E.camelCase=_T,E.capitalize=eg,E.ceil=hO,E.clamp=hT,E.clone=uA,E.cloneDeep=fA,E.cloneDeepWith=dA,E.cloneWith=cA,E.conformsTo=pA,E.deburr=tg,E.defaultTo=GT,E.divide=vO,E.endsWith=yT,E.eq=Qr,E.escape=bT,E.escapeRegExp=xT,E.every=OS,E.find=RS,E.findIndex=Av,E.findKey=WA,E.findLast=IS,E.findLastIndex=Tv,E.findLastKey=qA,E.floor=gO,E.forEach=Mv,E.forEachRight=Dv,E.forIn=zA,E.forInRight=jA,E.forOwn=GA,E.forOwnRight=ZA,E.get=Ip,E.gt=mA,E.gte=hA,E.has=XA,E.hasIn=Pp,E.head=Lv,E.identity=mr,E.includes=BS,E.indexOf=IE,E.inRange=vT,E.invoke=eT,E.isArguments=po,E.isArray=Ie,E.isArrayBuffer=vA,E.isArrayLike=dr,E.isArrayLikeObject=Et,E.isBoolean=gA,E.isBuffer=wi,E.isDate=_A,E.isElement=yA,E.isEmpty=bA,E.isEqual=xA,E.isEqualWith=wA,E.isError=Lp,E.isFinite=CA,E.isFunction=qn,E.isInteger=Vv,E.isLength=tc,E.isMap=Wv,E.isMatch=EA,E.isMatchWith=SA,E.isNaN=AA,E.isNative=TA,E.isNil=LA,E.isNull=OA,E.isNumber=qv,E.isObject=ft,E.isObjectLike=vt,E.isPlainObject=ks,E.isRegExp=Rp,E.isSafeInteger=RA,E.isSet=zv,E.isString=rc,E.isSymbol
20=Ar,E.isTypedArray=la,E.isUndefined=IA,E.isWeakMap=PA,E.isWeakSet=MA,E.join=BE,E.kebabCase=wT,E.last=$r,E.lastIndexOf=FE,E.lowerCase=CT,E.lowerFirst=ET,E.lt=DA,E.lte=NA,E.max=_O,E.maxBy=yO,E.mean=bO,E.meanBy=xO,E.min=wO,E.minBy=CO,E.stubArray=Hp,E.stubFalse=kp,E.stubObject=lO,E.stubString=uO,E.stubTrue=cO,E.multiply=EO,E.nth=HE,E.noConflict=eO,E.noop=Fp,E.now=Ju,E.pad=ST,E.padEnd=AT,E.padStart=TT,E.parseInt=OT,E.random=gT,E.reduce=$S,E.reduceRight=VS,E.repeat=LT,E.replace=RT,E.result=sT,E.round=SO,E.runInContext=D,E.sample=qS,E.size=GS,E.snakeCase=IT,E.some=ZS,E.sortedIndex=zE,E.sortedIndexBy=jE,E.sortedIndexOf=GE,E.sortedLastIndex=ZE,E.sortedLastIndexBy=KE,E.sortedLastIndexOf=YE,E.startCase=MT,E.startsWith=DT,E.subtract=AO,E.sum=TO,E.sumBy=OO,E.template=NT,E.times=fO,E.toFinite=zn,E.toInteger=De,E.toLength=Gv,E.toLower=BT,E.toNumber=Vr,E.toSafeInteger=BA,E.toString=Ye,E.toUpper=FT,E.trim=HT,E.trimEnd=kT,E.trimStart=UT,E.truncate=$T,E.unescape=VT,E.uniqueId=pO,E.upperCase=WT,E.upperFirst=Mp,E.each=Mv,E.eachRight=Dv,E.first=Lv,Bp(E,function(){var n={};return vn(E,function(a,u){et.call(E.prototype,u)||(n[u]=a)}),n}(),{chain:!1}),E.VERSION=t,Br(["bind","bindKey","curry","curryRight","partial","partialRight"],function(n){E[n].placeholder=E}),Br(["drop","take"],function(n,a){We.prototype[n]=function(u){u=u===e?1:Pt(De(u),0);var h=this.__filtered__&&!a?new We(this):this.clone();return h.__filtered__?h.__takeCount__=Gt(u,h.__takeCount__):h.__views__.push({size:Gt(u,ce),type:n+(h.__dir__<0?"Right":"")}),h},We.prototype[n+"Right"]=function(u){return this.reverse()[n](u).reverse()}}),Br(["filter","map","takeWhile"],function(n,a){var u=a+1,h=u==ee||u==z;We.prototype[n]=function(_){var A=this.clone();return A.__iteratees__.push({iteratee:we(_,3),type:u}),A.__filtered__=A.__filtered__||h,A}}),Br(["head","last"],function(n,a){var u="take"+(a?"Right":"");We.prototype[n]=function(){return this[u](1).value()[0]}}),Br(["initial","tail"],function(n,a){var u="drop"+(a?"":"Right");We.prototype[n]=function(){return this.__filtered__?new We(this):this[u](1)}}),We.prototype.compact=function(){return this.filter(mr)},We.prototype.find=function(n){return this.filter(n).head()},We.prototype.findLast=function(n){return this.reverse().find(n)},We.prototype.invokeMap=Be(function(n,a){return typeof n=="function"?new We(this):this.map(function(u){return Ms(u,n,a)})}),We.prototype.reject=function(n){return this.filter(ec(we(n)))},We.prototype.slice=function(n,a){n=De(n);var u=this;return u.__filtered__&&(n>0||a<0)?new We(u):(n<0?u=u.takeRight(-n):n&&(u=u.drop(n)),a!==e&&(a=De(a),u=a<0?u.dropRight(-a):u.take(a-n)),u)},We.prototype.takeRightWhile=function(n){return this.reverse().takeWhile(n).reverse()},We.prototype.toArray=function(){return this.take(ce)},vn(We.prototype,function(n,a){var u=/^(?:filter|find|map|reject)|While$/.test(a),h=/^(?:head|last)$/.test(a),_=E[h?"take"+(a=="last"?"Right":""):a],A=h||/^find/.test(a);_&&(E.prototype[a]=function(){var L=this.__wrapped__,R=h?[1]:arguments,N=L instanceof We,Y=R[0],X=N||Ie(L),te=function(Ue){var qe=_.apply(E,mi([Ue],R));return h&&fe?qe[0]:qe};X&&u&&typeof Y=="function"&&Y.length!=1&&(N=X=!1);var fe=this.__chain__,he=!!this.__actions__.length,Ce=A&&!fe,Ne=N&&!he;if(!A&&X){L=Ne?L:new We(this);var Ee=n.apply(L,R);return Ee.__actions__.push({func:Yu,args:[te],thisArg:e}),new Hr(Ee,fe)}return Ce&&Ne?n.apply(this,R):(Ee=this.thru(te),Ce?h?Ee.value()[0]:Ee.value():Ee)})}),Br(["pop","push","shift","sort","splice","unshift"],function(n){var a=wu[n],u=/^(?:push|sort|unshift)$/.test(n)?"tap":"thru",h=/^(?:pop|shift)$/.test(n);E.prototype[n]=function(){var _=arguments;if(h&&!this.__chain__){var A=this.value();return a.apply(Ie(A)?A:[],_)}return this[u](function(L){return a.apply(Ie(L)?L:[],_)})}}),vn(We.prototype,function(n,a){var u=E[a];if(u){var h=u.name+"";et.call(na,h)||(na[h]=[]),na[h].push({name:a,func:u})}}),na[Wu(e,S).name]=[{name:"wrapper",func:e}],We.prototype.clone=V9,We.prototype.reverse=W9,We.prototype.value=q9,E.prototype.at=yS,E.prototype.chain=bS,E.prototype.commit=xS,E.prototype.next=wS,E.prototype.plant=ES,E.prototype.reverse=SS,E.prototype.toJSON=E.prototype.valueOf=E.prototype.value=AS,E.prototype.first=E.prototype.head,As&&(E.prototype[As]=CS),E},vi=x9();typeof define=="function"&&typeof define.amd=="object"&&define.amd?(Ft._=vi,define(function(){return vi})):io?((io.exports=vi)._=vi,Nd._=vi):Ft._=vi}).call(ls)});var Mo=ve((d0e,D7)=>{"use strict";D7.exports=TypeError});var N7=ve(()=>{});var Gl=ve((h0e,t8)=>{var Hm=typeof Map=="function"&&Map.prototype,Lm=Object.getOwnPropertyDescriptor&&Hm?Object.getOwnPropertyDescriptor(Map.prototype,"size"):null,Wf=Hm&&Lm&&typeof Lm.get=="function"?Lm.get:null,B7=Hm&&Map.prototype.forEach,km=typeof Set=="function"&&Set.prototype,Rm=Object.getOwnPropertyDescriptor&&km?Object.getOwnPropertyDescriptor(Set.prototype,"size"):null,qf=km&&Rm&&typeof Rm.get=="function"?Rm.get:null,F7=km&&Set.prototype.forEach,h$=typeof WeakMap=="function"&&WeakMap.prototype,ql=h$?WeakMap.prototype.has:null,v$=typeof WeakSet=="function"&&WeakSet.prototype,zl=v$?WeakSet.prototype.has:null,g$=typeof WeakRef=="function"&&WeakRef.prototype,H7=g$?WeakRef.prototype.deref:null,_$=Boolean.prototype.valueOf,y$=Object.prototype.toString,b$=Function.prototype.toString,x$=String.prototype.match,Um=String.prototype.slice,Gi=String.prototype.replace,w$=String.prototype.toUpperCase,k7=String.prototype.toLowerCase,Z7=RegExp.prototype.test,U7=Array.prototype.concat,Rn=Array.prototype.join,C$=Array.prototype.slice,$7=Math.floor,Mm=typeof BigInt=="function"?BigInt.prototype.valueOf:null,Im=Object.getOwnPropertySymbols,Dm=typeof Symbol=="function"&&typeof Symbol.iterator=="symbol"?Symbol.prototype.toString:null,us=typeof Symbol=="function"&&typeof Symbol.iterator=="object",jl=typeof Symbol=="function"&&Symbol.toStringTag&&(typeof Symbol.toStringTag===us||!0)?
vendor: 7,885 bytes, lines 20-23
20Symbol.toStringTag:null,K7=Object.prototype.propertyIsEnumerable,V7=(typeof Reflect=="function"?Reflect.getPrototypeOf:Object.getPrototypeOf)||([].__proto__===Array.prototype?function(e){return e.__proto__}:null);function W7(e,t){if(e===1/0||e===-1/0||e!==e||e&&e>-1e3&&e<1e3||Z7.call(/e/,t))return t;var r=/[0-9](?=(?:[0-9]{3})+(?![0-9]))/g;if(typeof e=="number"){var i=e<0?-$7(-e):$7(e);if(i!==e){var o=String(i),s=Um.call(t,o.length+1);return Gi.call(o,r,"$&_")+"."+Gi.call(Gi.call(s,/([0-9]{3})/g,"$&_"),/_$/,"")}}return Gi.call(t,r,"$&_")}var Nm=N7(),q7=Nm.custom,z7=J7(q7)?q7:null,Y7={__proto__:null,double:'"',single:"'"},E$={__proto__:null,double:/(["\\])/g,single:/(['\\])/g};t8.exports=function e(t,r,i,o){var s=r||{};if(ai(s,"quoteStyle")&&!ai(Y7,s.quoteStyle))throw new TypeError('option "quoteStyle" must be "single" or "double"');if(ai(s,"maxStringLength")&&(typeof s.maxStringLength=="number"?s.maxStringLength<0&&s.maxStringLength!==1/0:s.maxStringLength!==null))throw new TypeError('option "maxStringLength", if provided, must be a positive integer, Infinity, or `null`');var l=ai(s,"customInspect")?s.customInspect:!0;if(typeof l!="boolean"&&l!=="symbol")throw new TypeError("option \"customInspect\", if provided, must be `true`, `false`, or `'symbol'`");if(ai(s,"indent")&&s.indent!==null&&s.indent!==" "&&!(parseInt(s.indent,10)===s.indent&&s.indent>0))throw new TypeError('option "indent" must be "\\t", an integer > 0, or `null`');if(ai(s,"numericSeparator")&&typeof s.numericSeparator!="boolean")throw new TypeError('option "numericSeparator", if provided, must be `true` or `false`');var c=s.numericSeparator;if(typeof t>"u")return"undefined";if(t===null)return"null";if(typeof t=="boolean")return t?"true":"false";if(typeof t=="string")return e8(t,s);if(typeof t=="number"){if(t===0)return 1/0/t>0?"0":"-0";var f=String(t);return c?W7(t,f):f}if(typeof t=="bigint"){var d=String(t)+"n";return c?W7(t,d):d}var m=typeof s.depth>"u"?5:s.depth;if(typeof i>"u"&&(i=0),i>=m&&m>0&&typeof t=="object")return Bm(t)?"[Array]":"[Object]";var p=V$(s,i);if(typeof o>"u")o=[];else if(Q7(o,t)>=0)return"[Circular]";function v(q,z,W){if(z&&(o=C$.call(o),o.push(z)),W){var G={depth:s.depth};return ai(s,"quoteStyle")&&(G.quoteStyle=s.quoteStyle),e(q,G,i+1,o)}return e(q,s,i+1,o)}if(typeof t=="function"&&!j7(t)){var w=M$(t),g=Vf(t,v);return"[Function"+(w?": "+w:" (anonymous)")+"]"+(g.length>0?" { "+Rn.call(g,", ")+" }":"")}if(J7(t)){var S=us?Gi.call(String(t),/^(Symbol\(.*\))_[^)]*$/,"$1"):Dm.call(t);return typeof t=="object"&&!us?Wl(S):S}if(k$(t)){for(var y="<"+k7.call(String(t.nodeName)),x=t.attributes||[],T=0;T<x.length;T++)y+=" "+x[T].name+"="+X7(S$(x[T].value),"double",s);return y+=">",t.childNodes&&t.childNodes.length&&(y+="..."),y+="</"+k7.call(String(t.nodeName))+">",y}if(Bm(t)){if(t.length===0)return"[]";var C=Vf(t,v);return p&&!$$(C)?"["+Fm(C,p)+"]":"[ "+Rn.call(C,", ")+" ]"}if(T$(t)){var O=Vf(t,v);return!("cause"in Error.prototype)&&"cause"in t&&!K7.call(t,"cause")?"{ ["+String(t)+"] "+Rn.call(U7.call("[cause]: "+v(t.cause),O),", ")+" }":O.length===0?"["+String(t)+"]":"{ ["+String(t)+"] "+Rn.call(O,", ")+" }"}if(typeof t=="object"&&l){if(z7&&typeof t[z7]=="function"&&Nm)return Nm(t,{depth:m-i});if(l!=="symbol"&&typeof t.inspect=="function")return t.inspect()}if(D$(t)){var I=[];return B7&&B7.call(t,function(q,z){I.push(v(z,t,!0)+" => "+v(q,t))}),G7("Map",Wf.call(t),I,p)}if(F$(t)){var M=[];return F7&&F7.call(t,function(q){M.push(v(q,t))}),G7("Set",qf.call(t),M,p)}if(N$(t))return Pm("WeakMap");if(H$(t))return Pm("WeakSet");if(B$(t))return Pm("WeakRef");if(L$(t))return Wl(v(Number(t)));if(I$(t))return Wl(v(Mm.call(t)));if(R$(t))return Wl(_$.call(t));if(O$(t))return Wl(v(String(t)));if(typeof window<"u"&&t===window)return"{ [object Window] }";if(typeof globalThis<"u"&&t===globalThis||typeof global<"u"&&t===global)return"{ [object globalThis] }";if(!A$(t)&&!j7(t)){var $=Vf(t,v),k=V7?V7(t)===Object.prototype:t instanceof Object||t.constructor===Object,H=t instanceof Object?"":"null prototype",oe=!k&&jl&&Object(t)===t&&jl in t?Um.call(Zi(t),8,-1):H?"Object":"",ie=k||typeof t.constructor!="function"?"":t.constructor.name?t.constructor.name+" ":"",ee=ie+(oe||H?"["+Rn.call(U7.call([],oe||[],H||[]),": ")+"] ":"");return $.length===0?ee+"{}":p?ee+"{"+Fm($,p)+"}":ee+"{ "+Rn.call($,", ")+" }"}return String(t)};function X7(e,t,r){var i=r.quoteStyle||t,o=Y7[i];return o+e+o}function S$(e){return Gi.call(String(e),/"/g,""")}function Do(e){return!jl||!(typeof e=="object"&&(jl in e||typeof e[jl]<"u"))}function Bm(e){return Zi(e)==="[object Array]"&&Do(e)}function A$(e){return Zi(e)==="[object Date]"&&Do(e)}function j7(e){return Zi(e)==="[object RegExp]"&&Do(e)}function T$(e){return Zi(e)==="[object Error]"&&Do(e)}function O$(e){return Zi(e)==="[object String]"&&Do(e)}function L$(e){return Zi(e)==="[object Number]"&&Do(e)}function R$(e){return Zi(e)==="[object Boolean]"&&Do(e)}function J7(e){if(us)return e&&typeof e=="object"&&e instanceof Symbol;if(typeof e=="symbol")return!0;if(!e||typeof e!="object"||!Dm)return!1;try{return Dm.call(e),!0}catch{}return!1}function I$(e){if(!e||typeof e!="object"||!Mm)return!1;try{return Mm.call(e),!0}catch{}return!1}var P$=Object.prototype.hasOwnProperty||function(e){return e in this};function ai(e,t){return P$.call(e,t)}function Zi(e){return y$.call(e)}function M$(e){if(e.name)return e.name;var t=x$.call(b$.call(e),/^function\s*([\w$]+)/);return t?t[1]:null}function Q7(e,t){if(e.indexOf)return e.indexOf(t);for(var r=0,i=e.length;r<i;r++)if(e[r]===t)return r;return-1}function D$(e){if(!Wf||!e||typeof e!="object")return!1;try{Wf.call(e);try{qf.call(e)}catch{return!0}return e instanceof Map}catch{}return!1}function N$(e){if(!ql||!e||typeof e!="object")return!1;try{ql.call(e,ql);try{zl.call(e,zl)}catch{return!0}return e instanceof WeakMap}catch{}return!1}function B$(e){if(!H7||!e||typeof e!="object")return!1;try{return H7.call(e),!0}catch{}return!1}function F$(e){if(!qf||!e||typeof e!="object")return!1;try{qf.call(e);try{Wf.call(e)}catch{return!0}return e instanceof Set}catch{}return!1}function H$(e){if(!zl||!e||typeof e!="object")return!1;try{zl.call(e,zl);try{ql.call(e,ql)}catch{return!0}return e instanceof WeakSet}catch{}return!1}function k$(e){return!e||typeof e!="object"?!1:typeof HTMLElement<"u"&&e instanceof HTMLElement?!0:typeof e.nodeName=="string"&&typeof e.getAttribute=="function"}function e8(e,t){if(e.length>t.maxStringLength){var r=e.length-t.maxStringLength,i="... "+r+" more character"+(r>1?"s":"");return e8(Um.call(e,0,t.maxStringLength),t)+i}var o=E$[t.quoteStyle||"single"];o.lastIndex=0;var s=Gi.call(Gi.call(e,o,"\\$1"),/[\x00-\x1f]/g,U$);return X7(s,"single",t)}function U$(e){var t=e.charCodeAt(0),r={8:"b",9:"t",10:"n",12:"f",13:"r"}[t];return r?"\\"+r:"\\x"+(t<16?"0":"")+w$.call(t.toString(16))}function Wl(e){return"Object("+e+")"}function Pm(e){return e+" { ? }"}function G7(e,t,r,i){var o=i?Fm(r,i):Rn.call(r,", ");return e+" ("+t+") {"+o+"}"}function $$(e){for(var t=0;t<e.length;t++)if(Q7(e[t],` 21`)>=0)return!1;return!0}function V$(e,t){var r;if(e.indent===" ")r=" ";else if(typeof e.indent=="number"&&e.indent>0)r=Rn.call(Array(e.indent+1)," ");else return null;return{base:r,prev:Rn.call(Array(t+1),r)}}function Fm(e,t){if(e.length===0)return"";var r=` 22`+t.prev+t.base;return r+Rn.call(e,","+r)+` 23`+t.prev}function Vf(e,t){var r=Bm(e),i=[];if(r){i.length=e.length;for(var o=0;o<e.length;o++)i[o]=ai(e,o)?t(e[o],e):""}var s=typeof Im=="function"?Im(e):[],l;if(us){l={};for(var c=0;c<s.length;c++)l["$"+s[c]]=s[c]}for(var f in e)ai(e,f)&&(r&&String(Number(f))===f&&f<e.length||us&&l["$"+f]instanceof Symbol||(Z7.call(/[^\w$]/,f)?i.push(t(f,e)+": "+t(e[f],e)):i.push(f+": "+t(e[f],e))));if(typeof Im=="function")for(var d=0;d<s.length;d++)K7.call(e,s[d])&&i.push("["+t(s[d])+"]: "+t(e[s[d]],e));return i}});var n8=ve((v0e,r8)=>{"use strict";
23var W$=Gl(),q$=Mo(),zf=function(e,t,r){for(var i=e,o;(o=i.next)!=null;i=o)if(o.key===t)return i.next=o.next,r||(o.next=e.next,e.next=o),o},z$=function(e,t){if(e){var r=zf(e,t);return r&&r.value}},j$=function(e,t,r){var i=zf(e,t);i?i.value=r:e.next={key:t,next:e.next,value:r}},G$=function(e,t){return e?!!zf(e,t):!1},Z$=function(e,t){if(e)return zf(e,t,!0)};r8.exports=function(){var t,r={assert:function(i){if(!r.has(i))throw new q$("Side channel does not contain "+W$(i))},delete:function(i){var o=t&&t.next,s=Z$(t,i);return s&&o&&o===s&&(t=void 0),!!s},get:function(i){return z$(t,i)},has:function(i){return G$(t,i)},set:function(i,o){t||(t={next:void 0}),j$(t,i,o)}};return r}});var $m=ve((g0e,i8)=>{"use strict";i8.exports=Object});var a8=ve((_0e,o8)=>{"use strict";o8.exports=Error});var l8=ve((y0e,s8)=>{"use strict";s8.exports=EvalError});var c8=ve((b0e,u8)=>{"use strict";u8.exports=RangeError});var d8=ve((x0e,f8)=>{"use strict";f8.exports=ReferenceError});var m8=ve((w0e,p8)=>{"use strict";p8.exports=SyntaxError});var v8=ve((C0e,h8)=>{"use strict";h8.exports=URIError});var _8=ve((E0e,g8)=>{"use strict";g8.exports=Math.abs});var b8=ve((S0e,y8)=>{"use strict";y8.exports=Math.floor});var w8=ve((A0e,x8)=>{"use strict";x8.exports=Math.max});var E8=ve((T0e,C8)=>{"use strict";C8.exports=Math.min});var A8=ve((O0e,S8)=>{"use strict";S8.exports=Math.pow});var O8=ve((L0e,T8)=>{"use strict";T8.exports=Math.round});var R8=ve((R0e,L8)=>{"use strict";L8.exports=Number.isNaN||function(t){return t!==t}});var P8=ve((I0e,I8)=>{"use strict";var K$=R8();I8.exports=function(t){return K$(t)||t===0?t:t<0?-1:1}});var D8=ve((P0e,M8)=>{"use strict";M8.exports=Object.getOwnPropertyDescriptor});var Vm=ve((M0e,N8)=>{"use strict";var jf=D8();if(jf)try{jf([],"length")}catch{jf=null}N8.exports=jf});var F8=ve((D0e,B8)=>{"use strict";var Gf=Object.defineProperty||!1;if(Gf)try{Gf({},"a",{value:1})}catch{Gf=!1}B8.exports=Gf});var k8=ve((N0e,H8)=>{"use strict";H8.exports=function(){if(typeof Symbol!="function"||typeof Object.getOwnPropertySymbols!="function")return!1;if(typeof Symbol.iterator=="symbol")return!0;var t={},r=Symbol("test"),i=Object(r);if(typeof r=="string"||Object.prototype.toString.call(r)!=="[object Symbol]"||Object.prototype.toString.call(i)!=="[object Symbol]")return!1;var o=42;t[r]=o;for(var s in t)return!1;if(typeof Object.keys=="function"&&Object.keys(t).length!==0||typeof Object.getOwnPropertyNames=="function"&&Object.getOwnPropertyNames(t).length!==0)return!1;var l=Object.getOwnPropertySymbols(t);if(l.length!==1||l[0]!==r||!Object.prototype.propertyIsEnumerable.call(t,r))return!1;if(typeof Object.getOwnPropertyDescriptor=="function"){var c=Object.getOwnPropertyDescriptor(t,r);if(c.value!==o||c.enumerable!==!0)return!1}return!0}});var V8=ve((B0e,$8)=>{"use strict";var U8=typeof Symbol<"u"&&Symbol,Y$=k8();$8.exports=function(){return typeof U8!="function"||typeof Symbol!="function"||typeof U8("foo")!="symbol"||typeof Symbol("bar")!="symbol"?!1:Y$()}});var Wm=ve((F0e,W8)=>{"use strict";W8.exports=typeof Reflect<"u"&&Reflect.getPrototypeOf||null});var qm=ve((H0e,q8)=>{"use strict";var X$=$m();q8.exports=X$.getPrototypeOf||null});var G8=ve((k0e,j8)=>{"use strict";var J$="Function.prototype.bind called on incompatible ",Q$=Object.prototype.toString,eV=Math.max,tV="[object Function]",z8=function(t,r){for(var i=[],o=0;o<t.length;o+=1)i[o]=t[o];for(var s=0;s<r.length;s+=1)i[s+t.length]=r[s];return i},rV=function(t,r){for(var i=[],o=r||0,s=0;o<t.length;o+=1,s+=1)i[s]=t[o];return i},nV=function(e,t){for(var r="",i=0;i<e.length;i+=1)r+=e[i],i+1<e.length&&(r+=t);return r};j8.exports=function(t){var r=this;if(typeof r!="function"||Q$.apply(r)!==tV)throw new TypeError(J$+r);for(var i=rV(arguments,1),o,s=function(){if(this instanceof o){var m=r.apply(this,z8(i,arguments));return Object(m)===m?m:this}return r.apply(t,z8(i,arguments))},l=eV(0,r.length-i.length),c=[],f=0;f<l;f++)c[f]="$"+f;if(o=Function("binder","return function ("+nV(c,",")+"){ return binder.apply(this,arguments); }")(s),r.prototype){var d=function(){};d.prototype=r.prototype,o.prototype=new d,d.prototype=null}return o}});
23var Zl=ve((U0e,Z8)=>{"use strict";var iV=G8();Z8.exports=Function.prototype.bind||iV});var Zf=ve(($0e,K8)=>{"use strict";K8.exports=Function.prototype.call});var zm=ve((V0e,Y8)=>{"use strict";Y8.exports=Function.prototype.apply});var J8=ve((W0e,X8)=>{"use strict";X8.exports=typeof Reflect<"u"&&Reflect&&Reflect.apply});var e4=ve((q0e,Q8)=>{"use strict";var oV=Zl(),aV=zm(),sV=Zf(),lV=J8();Q8.exports=lV||oV.call(sV,aV)});var jm=ve((z0e,t4)=>{"use strict";var uV=Zl(),cV=Mo(),fV=Zf(),dV=e4();t4.exports=function(t){if(t.length<1||typeof t[0]!="function")throw new cV("a function is required");return dV(uV,fV,t)}});var s4=ve((j0e,a4)=>{"use strict";var pV=jm(),r4=Vm(),i4;try{i4=[].__proto__===Array.prototype}catch(e){if(!e||typeof e!="object"||!("code"in e)||e.code!=="ERR_PROTO_ACCESS")throw e}var Gm=!!i4&&r4&&r4(Object.prototype,"__proto__"),o4=Object,n4=o4.getPrototypeOf;a4.exports=Gm&&typeof Gm.get=="function"?pV([Gm.get]):typeof n4=="function"?function(t){return n4(t==null?t:o4(t))}:!1});var d4=ve((G0e,f4)=>{"use strict";var l4=Wm(),u4=qm(),c4=s4();f4.exports=l4?function(t){return l4(t)}:u4?function(t){if(!t||typeof t!="object"&&typeof t!="function")throw new TypeError("getProto: not an object");return u4(t)}:c4?function(t){return c4(t)}:null});var m4=ve((Z0e,p4)=>{"use strict";var mV=Function.prototype.call,hV=Object.prototype.hasOwnProperty,vV=Zl();p4.exports=vV.call(mV,hV)});var Xf=ve((K0e,b4)=>{"use strict";var Ve,gV=$m(),_V=a8(),yV=l8(),bV=c8(),xV=d8(),ps=m8(),ds=Mo(),wV=v8(),CV=_8(),EV=b8(),SV=w8(),AV=E8(),TV=A8(),OV=O8(),LV=P8(),_4=Function,Zm=function(e){try{return _4('"use strict"; return ('+e+").constructor;")()}catch{}},Kl=Vm(),RV=F8(),Km=function(){throw new ds},IV=Kl?function(){try{return arguments.callee,Km}catch{try{return Kl(arguments,"callee").get}catch{return Km}}}():Km,cs=V8()(),Ut=d4(),PV=qm(),MV=Wm(),y4=zm(),Yl=Zf(),fs={},DV=typeof Uint8Array>"u"||!Ut?Ve:Ut(Uint8Array),No={__proto__:null,"%AggregateError%":typeof AggregateError>"u"?Ve:AggregateError,"%Array%":Array,"%ArrayBuffer%":typeof ArrayBuffer>"u"?Ve:ArrayBuffer,"%ArrayIteratorPrototype%":cs&&Ut?Ut([][Symbol.iterator]()):Ve,"%AsyncFromSyncIteratorPrototype%":Ve,"%AsyncFunction%":fs,"%AsyncGenerator%":fs,"%AsyncGeneratorFunction%":fs,"%AsyncIteratorPrototype%":fs,"%Atomics%":typeof Atomics>"u"?Ve:Atomics,"%BigInt%":typeof BigInt>"u"?Ve:BigInt,"%BigInt64Array%":typeof BigInt64Array>"u"?Ve:BigInt64Array,"%BigUint64Array%":typeof BigUint64Array>"u"?Ve:BigUint64Array,"%Boolean%":Boolean,"%DataView%":typeof DataView>"u"?Ve:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":_V,"%eval%":eval,"%EvalError%":yV,"%Float16Array%":typeof Float16Array>"u"?Ve:Float16Array,"%Float32Array%":typeof Float32Array>"u"?Ve:Float32Array,"%Float64Array%":typeof Float64Array>"u"?Ve:Float64Array,"%FinalizationRegistry%":typeof FinalizationRegistry>"u"?Ve:FinalizationRegistry,"%Function%":_4,"%GeneratorFunction%":fs,"%Int8Array%":typeof Int8Array>"u"?Ve:Int8Array,"%Int16Array%":typeof Int16Array>"u"?Ve:Int16Array,"%Int32Array%":typeof Int32Array>
vendor: 5,515 bytes, line 23
23"u"?Ve:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":cs&&Ut?Ut(Ut([][Symbol.iterator]())):Ve,"%JSON%":typeof JSON=="object"?JSON:Ve,"%Map%":typeof Map>"u"?Ve:Map,"%MapIteratorPrototype%":typeof Map>"u"||!cs||!Ut?Ve:Ut(new Map()[Symbol.iterator]()),"%Math%":Math,"%Number%":Number,"%Object%":gV,"%Object.getOwnPropertyDescriptor%":Kl,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":typeof Promise>"u"?Ve:Promise,"%Proxy%":typeof Proxy>"u"?Ve:Proxy,"%RangeError%":bV,"%ReferenceError%":xV,"%Reflect%":typeof Reflect>"u"?Ve:Reflect,"%RegExp%":RegExp,"%Set%":typeof Set>"u"?Ve:Set,"%SetIteratorPrototype%":typeof Set>"u"||!cs||!Ut?Ve:Ut(new Set()[Symbol.iterator]()),"%SharedArrayBuffer%":typeof SharedArrayBuffer>"u"?Ve:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":cs&&Ut?Ut(""[Symbol.iterator]()):Ve,"%Symbol%":cs?Symbol:Ve,"%SyntaxError%":ps,"%ThrowTypeError%":IV,"%TypedArray%":DV,"%TypeError%":ds,"%Uint8Array%":typeof Uint8Array>"u"?Ve:Uint8Array,"%Uint8ClampedArray%":typeof Uint8ClampedArray>"u"?Ve:Uint8ClampedArray,"%Uint16Array%":typeof Uint16Array>"u"?Ve:Uint16Array,"%Uint32Array%":typeof Uint32Array>"u"?Ve:Uint32Array,"%URIError%":wV,"%WeakMap%":typeof WeakMap>"u"?Ve:WeakMap,"%WeakRef%":typeof WeakRef>"u"?Ve:WeakRef,"%WeakSet%":typeof WeakSet>"u"?Ve:WeakSet,"%Function.prototype.call%":Yl,"%Function.prototype.apply%":y4,"%Object.defineProperty%":RV,"%Object.getPrototypeOf%":PV,"%Math.abs%":CV,"%Math.floor%":EV,"%Math.max%":SV,"%Math.min%":AV,"%Math.pow%":TV,"%Math.round%":OV,"%Math.sign%":LV,"%Reflect.getPrototypeOf%":MV};if(Ut)try{null.error}catch(e){h4=Ut(Ut(e)),No["%Error.prototype%"]=h4}var h4,NV=function e(t){var r;if(t==="%AsyncFunction%")r=Zm("async function () {}");else if(t==="%GeneratorFunction%")r=Zm("function* () {}");else if(t==="%AsyncGeneratorFunction%")r=Zm("async function* () {}");else if(t==="%AsyncGenerator%"){var i=e("%AsyncGeneratorFunction%");i&&(r=i.prototype)}else if(t==="%AsyncIteratorPrototype%"){var o=e("%AsyncGenerator%");o&&Ut&&(r=Ut(o.prototype))}return No[t]=r,r},v4={__proto__:null,"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},Xl=Zl(),Kf=m4(),BV=Xl.call(Yl,Array.prototype.concat),FV=Xl.call(y4,Array.prototype.splice),g4=Xl.call(Yl,String.prototype.replace),Yf=Xl.call(Yl,String.prototype.slice),HV=Xl.call(Yl,RegExp.prototype.exec),kV=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,UV=/\\(\\)?/g,$V=function(t){var r=Yf(t,0,1),i=Yf(t,-1);if(r==="%"&&i!=="%")throw new ps("invalid intrinsic syntax, expected closing `%`");if(i==="%"&&r!=="%")throw new ps("invalid intrinsic syntax, expected opening `%`");var o=[];return g4(t,kV,function(s,l,c,f){o[o.length]=c?g4(f,UV,"$1"):l||s}),o},VV=function(t,r){var i=t,o;if(Kf(v4,i)&&(o=v4[i],i="%"+o[0]+"%"),Kf(No,i)){var s=No[i];if(s===fs&&(s=NV(i)),typeof s>"u"&&!r)throw new ds("intrinsic "+t+" exists, but is not available. Please file an issue!");return{alias:o,name:i,value:s}}throw new ps("intrinsic "+t+" does not exist!")};
23b4.exports=function(t,r){if(typeof t!="string"||t.length===0)throw new ds("intrinsic name must be a non-empty string");if(arguments.length>1&&typeof r!="boolean")throw new ds('"allowMissing" argument must be a boolean');if(HV(/^%?[^%]*%?$/,t)===null)throw new ps("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var i=$V(t),o=i.length>0?i[0]:"",s=VV("%"+o+"%",r),l=s.name,c=s.value,f=!1,d=s.alias;d&&(o=d[0],FV(i,BV([0,1],d)));for(var m=1,p=!0;m<i.length;m+=1){var v=i[m],w=Yf(v,0,1),g=Yf(v,-1);if((w==='"'||w==="'"||w==="`"||g==='"'||g==="'"||g==="`")&&w!==g)throw new ps("property names with quotes must have matching quotes");if((v==="constructor"||!p)&&(f=!0),o+="."+v,l="%"+o+"%",Kf(No,l))c=No[l];else if(c!=null){if(!(v in c)){if(!r)throw new ds("base intrinsic for "+t+" exists, but the property is not available.");return}if(Kl&&m+1>=i.length){var S=Kl(c,v);p=!!S,p&&"get"in S&&!("originalValue"in S.get)?c=S.get:c=c[v]}else p=Kf(c,v),c=c[v];p&&!f&&(No[l]=c)}}return c}});var Ym=ve((Y0e,C4)=>{"use strict";var x4=Xf(),w4=jm(),WV=w4([x4("%String.prototype.indexOf%")]);C4.exports=function(t,r){var i=x4(t,!!r);return typeof i=="function"&&WV(t,".prototype.")>-1?w4([i]):i}});var Xm=ve((X0e,S4)=>{"use strict";var qV=Xf(),Jl=Ym(),zV=Gl(),jV=Mo(),E4=qV("%Map%",!0),GV=Jl("Map.prototype.get",!0),ZV=Jl("Map.prototype.set",!0),KV=Jl("Map.prototype.has",!0),YV=Jl("Map.prototype.delete",!0),XV=Jl("Map.prototype.size",!0);S4.exports=!!E4&&function(){var t,r={assert:function(i){if(!r.has(i))throw new jV("Side channel does not contain "+zV(i))},delete:function(i){if(t){var o=YV(t,i);return XV(t)===0&&(t=void 0),o}return!1},get:function(i){if(t)return GV(t,i)},has:function(i){return t?KV(t,i):!1},set:function(i,o){t||(t=new E4),ZV(t,i,o)}};return r}});var T4=ve((J0e,A4)=>{"use strict";var JV=Xf(),Qf=Ym(),QV=Gl(),Jf=Xm(),eW=Mo(),ms=JV("%WeakMap%",!0),tW=Qf("WeakMap.prototype.get",!0),rW=Qf("WeakMap.prototype.set",!0),nW=Qf("WeakMap.prototype.has",!0),iW=Qf("WeakMap.prototype.delete",!0);A4.exports=ms?function(){var t,r,i={assert:function(o){if(!i.has(o))throw new eW("Side channel does not contain "+QV(o))},delete:function(o){if(ms&&o&&(typeof o=="object"||typeof o=="function")){if(t)return iW(t,o)}else if(Jf&&r)return r.delete(o);return!1},get:function(o){return ms&&o&&(typeof o=="object"||typeof o=="function")&&t?tW(t,o):r&&r.get(o)},has:function(o){return ms&&o&&(typeof o=="object"||typeof o=="function")&&t?nW(t,o):!!r&&r.has(o)},set:function(o,s){ms&&o&&(typeof o=="object"||typeof o=="function")?(t||(t=new ms),rW(t,o,s)):Jf&&(r||(r=Jf()),r.set(o,s))}};return i}:Jf});var L4=ve((Q0e,O4)=>{"use strict";var oW=Mo(),aW=Gl(),sW=n8(),lW=Xm(),uW=T4(),cW=uW||lW||sW;O4.exports=function(){var t,r={assert:function(i){if(!r.has(i))throw new oW("Side channel does not contain "+aW(i))},delete:function(i){return!!t&&t.delete(i)},get:function(i){return t&&t.get(i)},has:function(i){return!!t&&t.has(i)},set:function(i,o){t||(t=cW()),t.set(i,o)}};return r}});var ed=ve((eve,R4)=>{"use strict";var fW=String.prototype.replace,dW=/%20/g,Jm={RFC1738:"RFC1738",RFC3986:"RFC3986"};R4.exports={default:Jm.RFC3986,formatters:{RFC1738:function(e){return fW.call(e,dW,"+")},RFC3986:function(e){return String(e)}},RFC1738:Jm.RFC1738,RFC3986:Jm.RFC3986}});var th=ve((tve,P4)=>{"use strict";var pW=ed(),Qm=Object.prototype.hasOwnProperty,Bo=Array.isArray,In=function(){for(var e=[],t=0;t<256;++t)e.push("%"+((t<16?"0":"")+t.toString(16)).toUpperCase());return e}(),mW=function(t){for(;t.length>1;){var r=t.pop(),i=r.obj[r.prop];if(Bo(i)){for(var o=[],s=0;s<i.length;++s)typeof i[s]<"u"&&o.push(i[s]);r.obj[r.prop]=o}}},I4=function(t,r){for(var i=r&&r.plainObjects?{__proto__:null}:{},o=0;o<t.length;++o)typeof t[o]<"u"&&(i[o]=t[o]);return i},hW=function e(t,r,i){if(!r)return t;if(typeof r!="object"&&typeof r!="function"){if(Bo(t))t.push(r);else if(t&&typeof t=="object")(i&&(i.plainObjects||i.allowPrototypes)||!Qm.call(Object.prototype,r))&&(t[r]=!0);else return[t,r];return t}if(!t||typeof t!="object")return[t].concat(r);var o=t;return Bo(t)&&!Bo(r)&&(o=I4(t,i)),Bo(t)&&Bo(r)?(r.forEach(function(s,l){if(Qm.call(t,l)){var c=t[l];c&&typeof c=="object"&&s&&typeof s=="object"?t[l]=e(c,s,i):t.push(s)}else t[l]=s}),t):Object.keys(r).reduce(function(s,l){var c=r[l];return Qm.call(s,l)?s[l]=e(s[l],c,i):s[l]=c,s},o)},vW=function(t,r){return Object.keys(r).reduce(function(i,o){return i[o]=r[o],i},t)},gW=function(e,t,r){var i=e.replace(/\+/g," ");
vendor: 4,154 bytes, line 23
23if(r==="iso-8859-1")return i.replace(/%[0-9a-f]{2}/gi,unescape);try{return decodeURIComponent(i)}catch{return i}},eh=1024,_W=function(t,r,i,o,s){if(t.length===0)return t;var l=t;if(typeof t=="symbol"?l=Symbol.prototype.toString.call(t):typeof t!="string"&&(l=String(t)),i==="iso-8859-1")return escape(l).replace(/%u[0-9a-f]{4}/gi,function(w){return"%26%23"+parseInt(w.slice(2),16)+"%3B"});for(var c="",f=0;f<l.length;f+=eh){for(var d=l.length>=eh?l.slice(f,f+eh):l,m=[],p=0;p<d.length;++p){var v=d.charCodeAt(p);if(v===45||v===46||v===95||v===126||v>=48&&v<=57||v>=65&&v<=90||v>=97&&v<=122||s===pW.RFC1738&&(v===40||v===41)){m[m.length]=d.charAt(p);continue}if(v<128){m[m.length]=In[v];continue}if(v<2048){m[m.length]=In[192|v>>6]+In[128|v&63];continue}if(v<55296||v>=57344){m[m.length]=In[224|v>>12]+In[128|v>>6&63]+In[128|v&63];continue}p+=1,v=65536+((v&1023)<<10|d.charCodeAt(p)&1023),m[m.length]=In[240|v>>18]+In[128|v>>12&63]+In[128|v>>6&63]+In[128|v&63]}c+=m.join("")}return c},yW=function(t){for(var r=[{obj:{o:t},prop:"o"}],i=[],o=0;o<r.length;++o)for(var s=r[o],l=s.obj[s.prop],c=Object.keys(l),f=0;f<c.length;++f){var d=c[f],m=l[d];typeof m=="object"&&m!==null&&i.indexOf(m)===-1&&(r.push({obj:l,prop:d}),i.push(m))}return mW(r),t},bW=function(t){return Object.prototype.toString.call(t)==="[object RegExp]"},xW=function(t){return!t||typeof t!="object"?!1:!!(t.constructor&&t.constructor.isBuffer&&t.constructor.isBuffer(t))},wW=function(t,r){return[].concat(t,r)},CW=function(t,r){if(Bo(t)){for(var i=[],o=0;o<t.length;o+=1)i.push(r(t[o]));return i}return r(t)};P4.exports={arrayToObject:I4,assign:vW,combine:wW,compact:yW,decode:gW,encode:_W,isBuffer:xW,isRegExp:bW,maybeMap:CW,merge:hW}});var H4=ve((rve,F4)=>{"use strict";var D4=L4(),td=th(),Ql=ed(),EW=Object.prototype.hasOwnProperty,N4={brackets:function(t){return t+"[]"},comma:"comma",indices:function(t,r){return t+"["+r+"]"},repeat:function(t){return t}},Pn=Array.isArray,SW=Array.prototype.push,B4=function(e,t){SW.apply(e,Pn(t)?t:[t])},AW=Date.prototype.toISOString,M4=Ql.default,Mt={addQueryPrefix:!1,allowDots:!1,allowEmptyArrays:!1,arrayFormat:"indices",charset:"utf-8",charsetSentinel:!1,commaRoundTrip:!1,delimiter:"&",encode:!0,encodeDotInKeys:!1,encoder:td.encode,encodeValuesOnly:!1,filter:void 0,format:M4,formatter:Ql.formatters[M4],indices:!1,serializeDate:function(t){return AW.call(t)},skipNulls:!1,strictNullHandling:!1},TW=function(t){return typeof t=="string"||typeof t=="number"||typeof t=="boolean"||typeof t=="symbol"||typeof t=="bigint"},rh={},OW=function e(t,r,i,o,s,l,c,f,d,m,p,v,w,g,S,y,x,T){for(var C=t,O=T,I=0,M=!1;(O=O.get(rh))!==void 0&&!M;){var $=O.get(t);if(I+=1,typeof $<"u"){if($===I)throw new RangeError("Cyclic object value");M=!0}typeof O.get(rh)>"u"&&(I=0)}if(typeof m=="function"?C=m(r,C):C instanceof Date?C=w(C):i==="comma"&&Pn(C)&&(C=td.maybeMap(C,function(pe){return pe instanceof Date?w(pe):pe})),C===null){if(l)return d&&!y?d(r,Mt.encoder,x,"key",g):r;C=""}if(TW(C)||td.isBuffer(C)){if(d){var k=y?r:d(r,Mt.encoder,x,"key",g);return[S(k)+"="+S(d(C,Mt.encoder,x,"value",g))]}return[S(r)+"="+S(String(C))]}var H=[];if(typeof C>"u")return H;var oe;if(i==="comma"&&Pn(C))y&&d&&(C=td.maybeMap(C,d)),oe=[{value:C.length>0?C.join(",")||null:void 0}];else if(Pn(m))oe=m;else{var ie=Object.keys(C);oe=p?ie.sort(p):ie}var ee=f?String(r).replace(/\./g,"%2E"):String(r),q=o&&Pn(C)&&C.length===1?ee+"[]":ee;if(s&&Pn(C)&&C.length===0)return q+"[]";for(var z=0;z<oe.length;++z){var W=oe[z],G=typeof W=="object"&&W&&typeof W.value<"u"?W.value:C[W];if(!(c&&G===null)){var J=v&&f?String(W).replace(/\./g,"%2E"):String(W),Z=Pn(C)?typeof i=="function"?i(q,J):q:q+(v?"."+J:"["+J+"]");T.set(t,I);var ce=D4();ce.set(rh,T),B4(H,e(G,Z,i,o,s,l,c,f,i==="comma"&&y&&Pn(C)?null:d,m,p,v,w,g,S,y,x,ce))}}return H},LW=function(t){if(!t)return Mt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.encodeDotInKeys<"u"&&typeof t.encodeDotInKeys!="boolean")throw new TypeError("`encodeDotInKeys` option can only be `true` or `false`, when provided");
vendor: 5,096 bytes, line 23
23if(t.encoder!==null&&typeof t.encoder<"u"&&typeof t.encoder!="function")throw new TypeError("Encoder has to be a function.");var r=t.charset||Mt.charset;if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");var i=Ql.default;if(typeof t.format<"u"){if(!EW.call(Ql.formatters,t.format))throw new TypeError("Unknown format option provided.");i=t.format}var o=Ql.formatters[i],s=Mt.filter;(typeof t.filter=="function"||Pn(t.filter))&&(s=t.filter);var l;if(t.arrayFormat in N4?l=t.arrayFormat:"indices"in t?l=t.indices?"indices":"repeat":l=Mt.arrayFormat,"commaRoundTrip"in t&&typeof t.commaRoundTrip!="boolean")throw new TypeError("`commaRoundTrip` must be a boolean, or absent");var c=typeof t.allowDots>"u"?t.encodeDotInKeys===!0?!0:Mt.allowDots:!!t.allowDots;return{addQueryPrefix:typeof t.addQueryPrefix=="boolean"?t.addQueryPrefix:Mt.addQueryPrefix,allowDots:c,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:Mt.allowEmptyArrays,arrayFormat:l,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:Mt.charsetSentinel,commaRoundTrip:!!t.commaRoundTrip,delimiter:typeof t.delimiter>"u"?Mt.delimiter:t.delimiter,encode:typeof t.encode=="boolean"?t.encode:Mt.encode,encodeDotInKeys:typeof t.encodeDotInKeys=="boolean"?t.encodeDotInKeys:Mt.encodeDotInKeys,encoder:typeof t.encoder=="function"?t.encoder:Mt.encoder,encodeValuesOnly:typeof t.encodeValuesOnly=="boolean"?t.encodeValuesOnly:Mt.encodeValuesOnly,filter:s,format:i,formatter:o,serializeDate:typeof t.serializeDate=="function"?t.serializeDate:Mt.serializeDate,skipNulls:typeof t.skipNulls=="boolean"?t.skipNulls:Mt.skipNulls,sort:typeof t.sort=="function"?t.sort:null,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:Mt.strictNullHandling}};F4.exports=function(e,t){var r=e,i=LW(t),o,s;typeof i.filter=="function"?(s=i.filter,r=s("",r)):Pn(i.filter)&&(s=i.filter,o=s);var l=[];if(typeof r!="object"||r===null)return"";var c=N4[i.arrayFormat],f=c==="comma"&&i.commaRoundTrip;o||(o=Object.keys(r)),i.sort&&o.sort(i.sort);for(var d=D4(),m=0;m<o.length;++m){var p=o[m],v=r[p];i.skipNulls&&v===null||B4(l,OW(v,p,c,f,i.allowEmptyArrays,i.strictNullHandling,i.skipNulls,i.encodeDotInKeys,i.encode?i.encoder:null,i.filter,i.sort,i.allowDots,i.serializeDate,i.format,i.formatter,i.encodeValuesOnly,i.charset,d))}var w=l.join(i.delimiter),g=i.addQueryPrefix===!0?"?":"";return i.charsetSentinel&&(i.charset==="iso-8859-1"?g+="utf8=%26%2310003%3B&":g+="utf8=%E2%9C%93&"),w.length>0?g+w:""}});var V4=ve((nve,$4)=>{"use strict";var Fo=th(),nh=Object.prototype.hasOwnProperty,k4=Array.isArray,yt={allowDots:!1,allowEmptyArrays:!1,allowPrototypes:!1,allowSparse:!1,arrayLimit:20,charset:"utf-8",charsetSentinel:!1,comma:!1,decodeDotInKeys:!1,decoder:Fo.decode,delimiter:"&",depth:5,duplicates:"combine",ignoreQueryPrefix:!1,interpretNumericEntities:!1,parameterLimit:1e3,parseArrays:!0,plainObjects:!1,strictDepth:!1,strictNullHandling:!1,throwOnLimitExceeded:!1},RW=function(e){return e.replace(/&#(\d+);/g,function(t,r){return String.fromCharCode(parseInt(r,10))})},U4=function(e,t,r){if(e&&typeof e=="string"&&t.comma&&e.indexOf(",")>-1)return e.split(",");if(t.throwOnLimitExceeded&&r>=t.arrayLimit)throw new RangeError("Array limit exceeded. Only "+t.arrayLimit+" element"+(t.arrayLimit===1?"":"s")+" allowed in an array.");return e},IW="utf8=%26%2310003%3B",PW="utf8=%E2%9C%93",MW=function(t,r){var i={__proto__:null},o=r.ignoreQueryPrefix?t.replace(/^\?/,""):t;o=o.replace(/%5B/gi,"[").replace(/%5D/gi,"]");var s=r.parameterLimit===1/0?void 0:r.parameterLimit,l=o.split(r.delimiter,r.throwOnLimitExceeded?s+1:s);if(r.throwOnLimitExceeded&&l.length>s)throw new RangeError("Parameter limit exceeded. Only "+s+" parameter"+(s===1?"":"s")+" allowed.");var c=-1,f,d=r.charset;if(r.charsetSentinel)for(f=0;f<l.length;++f)l[f].indexOf("utf8=")===0&&(l[f]===PW?d="utf-8":l[f]===IW&&(d="iso-8859-1"),c=f,f=l.length);for(f=0;f<l.length;++f)if(f!==c){var m=l[f],p=m.indexOf("]="),v=p===-1?m.indexOf("="):p+1,w,g;v===-1?(w=r.decoder(m,yt.decoder,d,"key"),g=r.strictNullHandling?null:""):(w=r.decoder(m.slice(0,v),yt.decoder,d,"key"),g=Fo.maybeMap(U4(m.slice(v+1),r,k4(i[w])?i[w].length:0),function(y){return r.decoder(y,yt.decoder,d,"value")})),g&&r.interpretNumericEntities&&d==="iso-8859-1"&&(g=RW(String(g))),m.indexOf("[]=")>-1&&(g=k4(g)?[g]:g);var S=nh.call(i,w);S&&r.duplicates==="combine"?i[w]=Fo.combine(i[w],g):(!S||r.duplicates==="last")&&(i[w]=g)}return i},DW=function(e,t,r,i){var o=0;if(e.length>0&&e[e.length-1]==="[]"){var s=e.slice(0,-1).join("");o=Array.isArray(t)&&t[s]?t[s].length:0}for(var l=i?t:U4(t,r,o),c=e.length-1;c>=0;--c){var f,d=e[c];if(d==="[]"&&r.parseArrays)f=r.allowEmptyArrays&&(l===""||r.strictNullHandling&&l===null)?[]:Fo.combine([],l);else{f=r.plainObjects?{__proto__:null}:{};var m=d.charAt(0)==="["&&d.charAt(d.length-1)==="]"?d.slice(1,-1):d,p=r.decodeDotInKeys?m.replace(/%2E/g,"."):m,v=parseInt(p,10);!r.parseArrays&&p===""?f={0:l}
23:!isNaN(v)&&d!==p&&String(v)===p&&v>=0&&r.parseArrays&&v<=r.arrayLimit?(f=[],f[v]=l):p!=="__proto__"&&(f[p]=l)}l=f}return l},NW=function(t,r,i,o){if(t){var s=i.allowDots?t.replace(/\.([^.[]+)/g,"[$1]"):t,l=/(\[[^[\]]*])/,c=/(\[[^[\]]*])/g,f=i.depth>0&&l.exec(s),d=f?s.slice(0,f.index):s,m=[];if(d){if(!i.plainObjects&&nh.call(Object.prototype,d)&&!i.allowPrototypes)return;m.push(d)}for(var p=0;i.depth>0&&(f=c.exec(s))!==null&&p<i.depth;){if(p+=1,!i.plainObjects&&nh.call(Object.prototype,f[1].slice(1,-1))&&!i.allowPrototypes)return;m.push(f[1])}if(f){if(i.strictDepth===!0)throw new RangeError("Input depth exceeded depth option of "+i.depth+" and strictDepth is true");m.push("["+s.slice(f.index)+"]")}return DW(m,r,i,o)}},BW=function(t){if(!t)return yt;if(typeof t.allowEmptyArrays<"u"&&typeof t.allowEmptyArrays!="boolean")throw new TypeError("`allowEmptyArrays` option can only be `true` or `false`, when provided");if(typeof t.decodeDotInKeys<"u"&&typeof t.decodeDotInKeys!="boolean")throw new TypeError("`decodeDotInKeys` option can only be `true` or `false`, when provided");if(t.decoder!==null&&typeof t.decoder<"u"&&typeof t.decoder!="function")throw new TypeError("Decoder has to be a function.");if(typeof t.charset<"u"&&t.charset!=="utf-8"&&t.charset!=="iso-8859-1")throw new TypeError("The charset option must be either utf-8, iso-8859-1, or undefined");if(typeof t.throwOnLimitExceeded<"u"&&typeof t.throwOnLimitExceeded!="boolean")throw new TypeError("`throwOnLimitExceeded` option must be a boolean");var r=typeof t.charset>"u"?yt.charset:t.charset,i=typeof t.duplicates>"u"?yt.duplicates:t.duplicates;if(i!=="combine"&&i!=="first"&&i!=="last")throw new TypeError("The duplicates option must be either combine, first, or last");var o=typeof t.allowDots>"u"?t.decodeDotInKeys===!0?!0:yt.allowDots:!!t.allowDots;return{allowDots:o,allowEmptyArrays:typeof t.allowEmptyArrays=="boolean"?!!t.allowEmptyArrays:yt.allowEmptyArrays,allowPrototypes:typeof t.allowPrototypes=="boolean"?t.allowPrototypes:yt.allowPrototypes,allowSparse:typeof t.allowSparse=="boolean"?t.allowSparse:yt.allowSparse,arrayLimit:typeof t.arrayLimit=="number"?t.arrayLimit:yt.arrayLimit,charset:r,charsetSentinel:typeof t.charsetSentinel=="boolean"?t.charsetSentinel:yt.charsetSentinel,comma:typeof t.comma=="boolean"?t.comma:yt.comma,decodeDotInKeys:typeof t.decodeDotInKeys=="boolean"?t.decodeDotInKeys:yt.decodeDotInKeys,decoder:typeof t.decoder=="function"?t.decoder:yt.decoder,delimiter:typeof t.delimiter=="string"||Fo.isRegExp(t.delimiter)?t.delimiter:yt.delimiter,depth:typeof t.depth=="number"||t.depth===!1?+t.depth:yt.depth,duplicates:i,ignoreQueryPrefix:t.ignoreQueryPrefix===!0,interpretNumericEntities:typeof t.interpretNumericEntities=="boolean"?t.interpretNumericEntities:yt.interpretNumericEntities,parameterLimit:typeof t.parameterLimit=="number"?t.parameterLimit:yt.parameterLimit,parseArrays:t.parseArrays!==!1,plainObjects:typeof t.plainObjects=="boolean"?t.plainObjects:yt.plainObjects,strictDepth:typeof t.strictDepth=="boolean"?!!t.strictDepth:yt.strictDepth,strictNullHandling:typeof t.strictNullHandling=="boolean"?t.strictNullHandling:yt.strictNullHandling,throwOnLimitExceeded:typeof t.throwOnLimitExceeded=="boolean"?t.throwOnLimitExceeded:!1}};$4.exports=function(e,t){var r=BW(t);if(e===""||e===null||typeof e>"u")return r.plainObjects?{__proto__:null}:{};for(var i=typeof e=="string"?MW(e,r):e,o=r.plainObjects?{__proto__:null}:{},s=Object.keys(i),l=0;l<s.length;++l){var c=s[l],f=NW(c,i[c],r,typeof e=="string");o=Fo.merge(o,f,r)}return r.allowSparse===!0?o:Fo.compact(o)}});var q4=ve((ive,W4)=>{"use strict";var FW=H4(),HW=V4(),kW=ed();W4.exports={formats:kW,parse:HW,stringify:FW}});var z4=ve(rd=>{"use strict";Object.defineProperty(rd,"__esModule",{value:!0});rd.serialize=void 0;var UW=(Ws(),Us(Vs)),$W=UW.__importStar(q4());function VW(e){let t=e.query;delete e.query;let r=$W.stringify(e,{arrayFormat:"brackets"});return t&&(r=r+`&query=${encodeURI(JSON.stringify(t))}`),e.query=t,r}rd.serialize=VW});var Rx=ve((ou,Lx)=>{"use strict";function ox(e,t){return function(){return e.apply(t,arguments)}}var{toString:WW}=Object.prototype,{getPrototypeOf:hh}=Object,{iterator:ud,toStringTag:ax}=Symbol,cd=(e=>t=>{let r=WW.call(t);return e[r]||(e[r]=r.slice(8,-1).toLowerCase())}
vendor: 8,147 bytes, line 23
23)(Object.create(null)),pn=e=>(e=e.toLowerCase(),t=>cd(t)===e),fd=e=>t=>typeof t===e,{isArray:gs}=Array,tu=fd("undefined");function ru(e){return e!==null&&!tu(e)&&e.constructor!==null&&!tu(e.constructor)&&yr(e.constructor.isBuffer)&&e.constructor.isBuffer(e)}var sx=pn("ArrayBuffer");function qW(e){let t;return typeof ArrayBuffer<"u"&&ArrayBuffer.isView?t=ArrayBuffer.isView(e):t=e&&e.buffer&&sx(e.buffer),t}var zW=fd("string"),yr=fd("function"),lx=fd("number"),nu=e=>e!==null&&typeof e=="object",jW=e=>e===!0||e===!1,nd=e=>{if(cd(e)!=="object")return!1;let t=hh(e);return(t===null||t===Object.prototype||Object.getPrototypeOf(t)===null)&&!(ax in e)&&!(ud in e)},GW=e=>{if(!nu(e)||ru(e))return!1;try{return Object.keys(e).length===0&&Object.getPrototypeOf(e)===Object.prototype}catch{return!1}},ZW=pn("Date"),KW=pn("File"),YW=pn("Blob"),XW=pn("FileList"),JW=e=>nu(e)&&yr(e.pipe),QW=e=>{let t;return e&&(typeof FormData=="function"&&e instanceof FormData||yr(e.append)&&((t=cd(e))==="formdata"||t==="object"&&yr(e.toString)&&e.toString()==="[object FormData]"))},eq=pn("URLSearchParams"),[tq,rq,nq,iq]=["ReadableStream","Request","Response","Headers"].map(pn),oq=e=>e.trim?e.trim():e.replace(/^[\s\uFEFF\xA0]+|[\s\uFEFF\xA0]+$/g,"");function iu(e,t,{allOwnKeys:r=!1}={}){if(e===null||typeof e>"u")return;let i,o;if(typeof e!="object"&&(e=[e]),gs(e))for(i=0,o=e.length;i<o;i++)t.call(null,e[i],i,e);else{if(ru(e))return;let s=r?Object.getOwnPropertyNames(e):Object.keys(e),l=s.length,c;for(i=0;i<l;i++)c=s[i],t.call(null,e[c],c,e)}}function ux(e,t){if(ru(e))return null;t=t.toLowerCase();let r=Object.keys(e),i=r.length,o;for(;i-- >0;)if(o=r[i],t===o.toLowerCase())return o;return null}var Ho=typeof globalThis<"u"?globalThis:typeof self<"u"?self:typeof window<"u"?window:global,cx=e=>!tu(e)&&e!==Ho;function sh(){let{caseless:e}=cx(this)&&this||{},t={},r=(i,o)=>{let s=e&&ux(t,o)||o;nd(t[s])&&nd(i)?t[s]=sh(t[s],i):nd(i)?t[s]=sh({},i):gs(i)?t[s]=i.slice():t[s]=i};for(let i=0,o=arguments.length;i<o;i++)arguments[i]&&iu(arguments[i],r);return t}var aq=(e,t,r,{allOwnKeys:i}={})=>(iu(t,(o,s)=>{r&&yr(o)?e[s]=ox(o,r):e[s]=o},{allOwnKeys:i}),e),sq=e=>(e.charCodeAt(0)===65279&&(e=e.slice(1)),e),lq=(e,t,r,i)=>{e.prototype=Object.create(t.prototype,i),e.prototype.constructor=e,Object.defineProperty(e,"super",{value:t.prototype}),r&&Object.assign(e.prototype,r)},uq=(e,t,r,i)=>{let o,s,l,c={};if(t=t||{},e==null)return t;do{for(o=Object.getOwnPropertyNames(e),s=o.length;s-- >0;)l=o[s],(!i||i(l,e,t))&&!c[l]&&(t[l]=e[l],c[l]=!0);e=r!==!1&&hh(e)}while(e&&(!r||r(e,t))&&e!==Object.prototype);return t},cq=(e,t,r)=>{e=String(e),(r===void 0||r>e.length)&&(r=e.length),r-=t.length;let i=e.indexOf(t,r);return i!==-1&&i===r},fq=e=>{if(!e)return null;if(gs(e))return e;let t=e.length;if(!lx(t))return null;let r=new Array(t);for(;t-- >0;)r[t]=e[t];return r},dq=(e=>t=>e&&t instanceof e)(typeof Uint8Array<"u"&&hh(Uint8Array)),pq=(e,t)=>{let i=(e&&e[ud]).call(e),o;for(;(o=i.next())&&!o.done;){let s=o.value;t.call(e,s[0],s[1])}},mq=(e,t)=>{let r,i=[];for(;(r=e.exec(t))!==null;)i.push(r);return i},hq=pn("HTMLFormElement"),vq=e=>e.toLowerCase().replace(/[-_\s]([a-z\d])(\w*)/g,function(r,i,o){return i.toUpperCase()+o}),j4=(({hasOwnProperty:e})=>(t,r)=>e.call(t,r))(Object.prototype),gq=pn("RegExp"),fx=(e,t)=>{let r=Object.getOwnPropertyDescriptors(e),i={};iu(r,(o,s)=>{let l;(l=t(o,s,e))!==!1&&(i[s]=l||o)}),Object.defineProperties(e,i)},_q=e=>{fx(e,(t,r)=>{if(yr(e)&&["arguments","caller","callee"].indexOf(r)!==-1)return!1;let i=e[r];if(yr(i)){if(t.enumerable=!1,"writable"in t){t.writable=!1;return}t.set||(t.set=()=>{throw Error("Can not rewrite read-only method '"+r+"'")})}})},yq=(e,t)=>{let r={},i=o=>{o.forEach(s=>{r[s]=!0})};return gs(e)?i(e):i(String(e).split(t)),r},bq=()=>{},xq=(e,t)=>e!=null&&Number.isFinite(e=+e)?e:t;function wq(e){return!!(e&&yr(e.append)&&e[ax]==="FormData"&&e[ud])}var Cq=e=>{let t=new Array(10),r=(i,o)=>{if(nu(i)){if(t.indexOf(i)>=0)return;if(ru(i))return i;if(!("toJSON"in i)){t[o]=i;let s=gs(i)?[]:{};return iu(i,(l,c)=>{let f=r(l,o+1);!tu(f)&&(s[c]=f)}),t[o]=void 0,s}}return i};return r(e,0)},Eq=pn("AsyncFunction"),Sq=e=>e&&(nu(e)||yr(e))&&yr(e.then)&&yr(e.catch),dx=((e,t)=>e?setImmediate:t?((r,i)=>(Ho.addEventListener("message",({source:o,data:s})=>{o===Ho&&s===r&&i.length&&i.shift()()},!1),o=>{i.push(o),Ho.postMessage(r,"*")}))(`axios@${Math.random()}`,[]):r=>setTimeout(r))(typeof setImmediate=="function",yr(Ho.postMessage)),Aq=typeof queueMicrotask<"u"?queueMicrotask.bind(Ho):typeof process<"u"&&process.nextTick||dx,Tq=e=>e!=null&&yr(e[ud]),V={isArray:gs,isArrayBuffer:sx,isBuffer:ru,isFormData:QW,isArrayBufferView:qW,isString:zW,isNumber:lx,isBoolean:jW,isObject:nu,isPlainObject:nd,isEmptyObject:GW,isReadableStream:tq,isRequest:rq,isResponse:nq,isHeaders:iq,isUndefined:tu,isDate:ZW,isFile:KW,isBlob:YW,isRegExp:gq,isFunction:yr,isStream:JW,isURLSearchParams:eq,isTypedArray:dq,isFileList:XW,forEach:iu,merge:sh,extend:aq,trim:oq,stripBOM:sq,inherits:lq,toFlatObject:uq,kindOf:cd,kindOfTest:pn,endsWith:cq,toArray:fq,forEachEntry:pq,matchAll:mq,isHTMLForm:hq,hasOwnProperty:j4,hasOwnProp:j4,reduceDescriptors:fx,freezeMethods:_q,toObjectSet:yq,toCamelCase:vq,noop:bq,toFiniteNumber:xq,findKey:ux,global:Ho,isContextDefined:cx,isSpecCompliantForm:wq,toJSONObject:Cq,isAsyncFn:Eq,isThenable:Sq,setImmediate:dx,asap:Aq,isIterable:Tq};function Pe(e,t,r,i,o){Error.call(this),Error.captureStackTrace?Error.captureStackTrace(this,this.constructor):this.stack=new Error().stack,this.message=e,this.name="AxiosError",t&&(this.code=t),r&&(this.config=r),i&&(this.request=i),o&&(this.response=o,this.status=o.status?o.status:null)}V.inherits(Pe,Error,{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:V.toJSONObject(this.config),code:this.code,status:this.status}}});var px=Pe.prototype,mx={};["ERR_BAD_OPTION_VALUE","ERR_BAD_OPTION","ECONNABORTED","ETIMEDOUT","ERR_NETWORK","ERR_FR_TOO_MANY_REDIRECTS","ERR_DEPRECATED","ERR_BAD_RESPONSE","ERR_BAD_REQUEST","ERR_CANCELED","ERR_NOT_SUPPORT","ERR_INVALID_URL"].forEach(e=>{mx[e]={value:e}});Object.defineProperties(Pe,mx);Object.defineProperty(px,"isAxiosError",{value:!0});Pe.from=(e,t,r,i,o,s)=>{let l=Object.create(px);return V.toFlatObject(e,l,function(f){return f!==Error.prototype},c=>c!=="isAxiosError"),Pe.call(l,e.message,t,r,i,o),l.cause=e,l.name=e.name,s&&Object.assign(l,s),l};var Oq=null;function lh(e){return V.isPlainObject(e)||V.isArray(e)}function hx(e){return V.endsWith(e,"[]")?e.slice(0,-2):e}function G4(e,t,r){return e?e.concat(t).map(function(o,s){return o=hx(o),!r&&s?"["+o+"]":o}).join(r?".":""):t}function Lq(e){return V.isArray(e)&&!e.some(lh)}var Rq=V.toFlatObject(V,{},null,function(t){return/^is[A-Z]/.test(t)});function dd(e,t,r){if(!V.isObject(e))throw new TypeError("target must be an object");t=t||new FormData,r=V.toFlatObject(r,{metaTokens:!0,dots:!1,indexes:!1},!1,function(S,y){return!V.isUndefined(y[S])});let i=r.metaTokens,o=r.visitor||m,s=r.dots,l=r.indexes,f=(r.Blob||typeof Blob<"u"&&Blob)&&V.isSpecCompliantForm(t);if(!V.isFunction(o))throw new TypeError("visitor must be a function");function d(g){if(g===null)return"";if(V.isDate(g))return g.toISOString();if(V.isBoolean(g))return g.toString();if(!f&&V.isBlob(g))throw new Pe("Blob is not supported. Use a Buffer instead.");return V.isArrayBuffer(g)||V.isTypedArray(g)?f&&typeof Blob=="function"?new Blob([g]):Buffer.from(g):g}function m(g,S,y){let x=g;if(g&&!y&&typeof g=="object"){if(V.endsWith(S,"{}"))S=i?S:S.slice(0,-2),g=JSON.stringify(g);else if(V.isArray(g)&&Lq(g)||(V.isFileList(g)||V.endsWith(S,"[]"))&&(x=V.toArray(g)))return S=hx(S),x.forEach(function(C,O){!(V.isUndefined(C)||C===null)&&t.append(l===!0?G4([S],O,s):l===null?S:S+"[]",d(C))}),!1}return lh(g)?!0:(t.append(G4(y,S,s),d(g)),!1)}let p=[],v=Object.assign(Rq,{defaultVisitor:m,convertValue:d,isVisitable:lh});function w(g,S){if(!V.isUndefined(g)){if(p.indexOf(g)!==-1)throw Error("Circular reference detected in "+S.join("."));
vendor: 9,725 bytes, lines 23-25
23p.push(g),V.forEach(g,function(x,T){(!(V.isUndefined(x)||x===null)&&o.call(t,x,V.isString(T)?T.trim():T,S,v))===!0&&w(x,S?S.concat(T):[T])}),p.pop()}}if(!V.isObject(e))throw new TypeError("data must be an object");return w(e),t}function Z4(e){let t={"!":"%21","'":"%27","(":"%28",")":"%29","~":"%7E","%20":"+","%00":"\0"};return encodeURIComponent(e).replace(/[!'()~]|%20|%00/g,function(i){return t[i]})}function vh(e,t){this._pairs=[],e&&dd(e,this,t)}var vx=vh.prototype;vx.append=function(t,r){this._pairs.push([t,r])};vx.toString=function(t){let r=t?function(i){return t.call(this,i,Z4)}:Z4;return this._pairs.map(function(o){return r(o[0])+"="+r(o[1])},"").join("&")};function Iq(e){return encodeURIComponent(e).replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}function gx(e,t,r){if(!t)return e;let i=r&&r.encode||Iq;V.isFunction(r)&&(r={serialize:r});let o=r&&r.serialize,s;if(o?s=o(t,r):s=V.isURLSearchParams(t)?t.toString():new vh(t,r).toString(i),s){let l=e.indexOf("#");l!==-1&&(e=e.slice(0,l)),e+=(e.indexOf("?")===-1?"?":"&")+s}return e}var uh=class{constructor(){this.handlers=[]}use(t,r,i){return this.handlers.push({fulfilled:t,rejected:r,synchronous:i?i.synchronous:!1,runWhen:i?i.runWhen:null}),this.handlers.length-1}eject(t){this.handlers[t]&&(this.handlers[t]=null)}clear(){this.handlers&&(this.handlers=[])}forEach(t){V.forEach(this.handlers,function(i){i!==null&&t(i)})}},K4=uh,_x={silentJSONParsing:!0,forcedJSONParsing:!0,clarifyTimeoutError:!1},Pq=typeof URLSearchParams<"u"?URLSearchParams:vh,Mq=typeof FormData<"u"?FormData:null,Dq=typeof Blob<"u"?Blob:null,Nq={isBrowser:!0,classes:{URLSearchParams:Pq,FormData:Mq,Blob:Dq},protocols:["http","https","file","blob","url","data"]},gh=typeof window<"u"&&typeof document<"u",ch=typeof navigator=="object"&&navigator||void 0,Bq=gh&&(!ch||["ReactNative","NativeScript","NS"].indexOf(ch.product)<0),Fq=typeof WorkerGlobalScope<"u"&&self instanceof WorkerGlobalScope&&typeof self.importScripts=="function",Hq=gh&&window.location.href||"http://localhost",kq=Object.freeze({__proto__:null,hasBrowserEnv:gh,hasStandardBrowserWebWorkerEnv:Fq,hasStandardBrowserEnv:Bq,navigator:ch,origin:Hq}),Xt=re(re({},kq),Nq);function Uq(e,t){return dd(e,new Xt.classes.URLSearchParams,re({visitor:function(r,i,o,s){return Xt.isNode&&V.isBuffer(r)?(this.append(i,r.toString("base64")),!1):s.defaultVisitor.apply(this,arguments)}},t))}function $q(e){return V.matchAll(/\w+|\[(\w*)]/g,e).map(t=>t[0]==="[]"?"":t[1]||t[0])}function Vq(e){let t={},r=Object.keys(e),i,o=r.length,s;for(i=0;i<o;i++)s=r[i],t[s]=e[s];return t}function yx(e){function t(r,i,o,s){let l=r[s++];if(l==="__proto__")return!0;let c=Number.isFinite(+l),f=s>=r.length;return l=!l&&V.isArray(o)?o.length:l,f?(V.hasOwnProp(o,l)?o[l]=[o[l],i]:o[l]=i,!c):((!o[l]||!V.isObject(o[l]))&&(o[l]=[]),t(r,i,o[l],s)&&V.isArray(o[l])&&(o[l]=Vq(o[l])),!c)}if(V.isFormData(e)&&V.isFunction(e.entries)){let r={};return V.forEachEntry(e,(i,o)=>{t($q(i),o,r,0)}),r}return null}function Wq(e,t,r){if(V.isString(e))try{return(t||JSON.parse)(e),V.trim(e)}catch(i){if(i.name!=="SyntaxError")throw i}return(r||JSON.stringify)(e)}var _h={transitional:_x,adapter:["xhr","http","fetch"],transformRequest:[function(t,r){let i=r.getContentType()||"",o=i.indexOf("application/json")>-1,s=V.isObject(t);if(s&&V.isHTMLForm(t)&&(t=new FormData(t)),V.isFormData(t))return o?JSON.stringify(yx(t)):t;if(V.isArrayBuffer(t)||V.isBuffer(t)||V.isStream(t)||V.isFile(t)||V.isBlob(t)||V.isReadableStream(t))return t;if(V.isArrayBufferView(t))return t.buffer;if(V.isURLSearchParams(t))return r.setContentType("application/x-www-form-urlencoded;charset=utf-8",!1),t.toString();let c;if(s){if(i.indexOf("application/x-www-form-urlencoded")>-1)return Uq(t,this.formSerializer).toString();if((c=V.isFileList(t))||i.indexOf("multipart/form-data")>-1){let f=this.env&&this.env.FormData;return dd(c?{"files[]":t}:t,f&&new f,this.formSerializer)}}return s||o?(r.setContentType("application/json",!1),Wq(t)):t}],transformResponse:[function(t){let r=this.transitional||_h.transitional,i=r&&r.forcedJSONParsing,o=this.responseType==="json";if(V.isResponse(t)||V.isReadableStream(t))return t;if(t&&V.isString(t)&&(i&&!this.responseType||o)){let l=!(r&&r.silentJSONParsing)&&o;try{return JSON.parse(t)}catch(c){if(l)throw c.name==="SyntaxError"?Pe.from(c,Pe.ERR_BAD_RESPONSE,this,null,this.response):c}}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,maxBodyLength:-1,env:{FormData:Xt.classes.FormData,Blob:Xt.classes.Blob},validateStatus:function(t){return t>=200&&t<300},headers:{common:{Accept:"application/json, text/plain, */*","Content-Type":void 0}}};V.forEach(["delete","get","head","post","put","patch"],e=>{_h.headers[e]={}});var yh=_h,qq=V.toObjectSet(["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"]),zq=e=>{let t={},r,i,o;return e&&e.split(` 24`).forEach(function(l){o=l.indexOf(":"),r=l.substring(0,o).trim().toLowerCase(),i=l.substring(o+1).trim(),!(!r||t[r]&&qq[r])&&(r==="set-cookie"?t[r]?t[r].push(i):t[r]=[i]:t[r]=t[r]?t[r]+", "+i:i)}),t},Y4=Symbol("internals");function eu(e){return e&&String(e).trim().toLowerCase()}function id(e){return e===!1||e==null?e:V.isArray(e)?e.map(id):String(e)}function jq(e){let t=Object.create(null),r=/([^\s,;=]+)\s*(?:=\s*([^,;]+))?/g,i;for(;i=r.exec(e);)t[i[1]]=i[2];return t}var Gq=e=>/^[-_a-zA-Z0-9^`|~,!#$%&'*+.]+$/.test(e.trim());function ih(e,t,r,i,o){if(V.isFunction(i))return i.call(this,t,r);if(o&&(t=r),!!V.isString(t)){if(V.isString(i))return t.indexOf(i)!==-1;if(V.isRegExp(i))return i.test(t)}}function Zq(e){return e.trim().toLowerCase().replace(/([a-z\d])(\w*)/g,(t,r,i)=>r.toUpperCase()+i)}function Kq(e,t){let r=V.toCamelCase(" "+t);["get","set","has"].forEach(i=>{Object.defineProperty(e,i+r,{value:function(o,s,l){return this[i].call(this,t,o,s,l)},configurable:!0})})}var hs=class{constructor(t){t&&this.set(t)}set(t,r,i){let o=this;function s(c,f,d){let m=eu(f);if(!m)throw new Error("header name must be a non-empty string");let p=V.findKey(o,m);(!p||o[p]===void 0||d===!0||d===void 0&&o[p]!==!1)&&(o[p||f]=id(c))}let l=(c,f)=>V.forEach(c,(d,m)=>s(d,m,f));if(V.isPlainObject(t)||t instanceof this.constructor)l(t,r);else if(V.isString(t)&&(t=t.trim())&&!Gq(t))l(zq(t),r);else if(V.isObject(t)&&V.isIterable(t)){let c={},f,d;for(let m of t){if(!V.isArray(m))throw TypeError("Object iterator must return a key-value pair");c[d=m[0]]=(f=c[d])?V.isArray(f)?[...f,m[1]]:[f,m[1]]:m[1]}l(c,r)}else t!=null&&s(r,t,i);return this}get(t,r){if(t=eu(t),t){let i=V.findKey(this,t);if(i){let o=this[i];if(!r)return o;if(r===!0)return jq(o);if(V.isFunction(r))return r.call(this,o,i);if(V.isRegExp(r))return r.exec(o);throw new TypeError("parser must be boolean|regexp|function")}}}has(t,r){if(t=eu(t),t){let i=V.findKey(this,t);return!!(i&&this[i]!==void 0&&(!r||ih(this,this[i],i,r)))}return!1}delete(t,r){let i=this,o=!1;function s(l){if(l=eu(l),l){let c=V.findKey(i,l);c&&(!r||ih(i,i[c],c,r))&&(delete i[c],o=!0)}}return V.isArray(t)?t.forEach(s):s(t),o}clear(t){let r=Object.keys(this),i=r.length,o=!1;for(;i--;){let s=r[i];(!t||ih(this,this[s],s,t,!0))&&(delete this[s],o=!0)}return o}normalize(t){let r=this,i={};return V.forEach(this,(o,s)=>{let l=V.findKey(i,s);if(l){r[l]=id(o),delete r[s];return}let c=t?Zq(s):String(s).trim();c!==s&&delete r[s],r[c]=id(o),i[c]=!0}),this}concat(...t){return this.constructor.concat(this,...t)}toJSON(t){let r=Object.create(null);return V.forEach(this,(i,o)=>{i!=null&&i!==!1&&(r[o]=t&&V.isArray(i)?i.join(", "):i)}),r}[Symbol.iterator](){return Object.entries(this.toJSON())[Symbol.iterator]()}toString(){return Object.entries(this.toJSON()).map(([t,r])=>t+": "+r).join(` 25`)}getSetCookie(){return this.get("set-cookie")||[]}get[Symbol.toStringTag](){return"AxiosHeaders"}static from(t){return t instanceof this?t:new this(t)}static concat(t,...r){let i=new this(t);return r.forEach(o=>i.set(o)),i}static accessor(t){let i=(this[Y4]=this[Y4]={accessors:{}}).accessors,o=this.prototype;function s(l){let c=eu(l);i[c]||(Kq(o,l),i[c]=!0)}return V.isArray(t)?t.forEach(s):s(t),this}};hs.accessor(["Content-Type","Content-Length","Accept","Accept-Encoding","User-Agent","Authorization"]);V.reduceDescriptors(hs.prototype,({value:e},t)=>{let r=t[0].toUpperCase()+t.slice(1);return{get:()=>e,set(i){this[r]=i}}});V.freezeMethods(hs);var dn=hs;function oh(e,t){let r=this||yh,i=t||r,o=dn.from(i.headers),s=i.data;return V.forEach(e,function(c){s=c.call(r,s,o.normalize(),t?t.status:void 0)}),o.normalize(),s}function bx(e){return!!(e&&e.__CANCEL__)}function _s(e,t,r){Pe.call(this,e??"canceled",Pe.ERR_CANCELED,t,r),this.name="CanceledError"}V.inherits(_s,Pe,{__CANCEL__:!0});function xx(e,t,r){let i=r.config.validateStatus;!r.status||!i||i(r.status)?e(r):t(new Pe("Request failed with status code "+r.status,[Pe.ERR_BAD_REQUEST,Pe.ERR_BAD_RESPONSE][Math.floor(r.status/100)-4],r.config,r.request,r))}function Yq(e){let t=/^([-+\w]{1,25})(:?\/\/|:)/.exec(e);return t&&t[1]||""}function Xq(e,t){e=e||10;let r=new Array(e),i=new Array(e),o=0,s=0,l;return t=t!==void 0?t:1e3,function(f){let d=Date.now(),m=i[s];l||(l=d),r[o]=f,i[o]=d;let p=s,v=0;for(;p!==o;)v+=r[p++],p=p%e;if(o=(o+1)%e,o===s&&(s=(s+1)%e),d-l<t)return;let w=m&&d-m;return w?Math.round(v*1e3/w):void 0}}function Jq(e,t){let r=0,i=1e3/t,o,s,l=(d,m=Date.now())=>{r=m,o=null,s&&(clearTimeout(s),s=null),e(...d)};return[(...d)=>{let m=Date.now(),p=m-r;p>=i?l(d,m):(o=d,s||(s=setTimeout(()=>{s=null,l(o)}
vendor: 4,150 bytes, line 25
25,i-p)))},()=>o&&l(o)]}var sd=(e,t,r=3)=>{let i=0,o=Xq(50,250);return Jq(s=>{let l=s.loaded,c=s.lengthComputable?s.total:void 0,f=l-i,d=o(f),m=l<=c;i=l;let p={loaded:l,total:c,progress:c?l/c:void 0,bytes:f,rate:d||void 0,estimated:d&&c&&m?(c-l)/d:void 0,event:s,lengthComputable:c!=null,[t?"download":"upload"]:!0};e(p)},r)},X4=(e,t)=>{let r=e!=null;return[i=>t[0]({lengthComputable:r,total:e,loaded:i}),t[1]]},J4=e=>(...t)=>V.asap(()=>e(...t)),Qq=Xt.hasStandardBrowserEnv?((e,t)=>r=>(r=new URL(r,Xt.origin),e.protocol===r.protocol&&e.host===r.host&&(t||e.port===r.port)))(new URL(Xt.origin),Xt.navigator&&/(msie|trident)/i.test(Xt.navigator.userAgent)):()=>!0,ez=Xt.hasStandardBrowserEnv?{write(e,t,r,i,o,s){let l=[e+"="+encodeURIComponent(t)];V.isNumber(r)&&l.push("expires="+new Date(r).toGMTString()),V.isString(i)&&l.push("path="+i),V.isString(o)&&l.push("domain="+o),s===!0&&l.push("secure"),document.cookie=l.join("; ")},read(e){let t=document.cookie.match(new RegExp("(^|;\\s*)("+e+")=([^;]*)"));return t?decodeURIComponent(t[3]):null},remove(e){this.write(e,"",Date.now()-864e5)}}:{write(){},read(){return null},remove(){}};function tz(e){return/^([a-z][a-z\d+\-.]*:)?\/\//i.test(e)}function rz(e,t){return t?e.replace(/\/?\/$/,"")+"/"+t.replace(/^\/+/,""):e}function wx(e,t,r){let i=!tz(t);return e&&(i||r==!1)?rz(e,t):t}var Q4=e=>e instanceof dn?re({},e):e;function ko(e,t){t=t||{};let r={};function i(d,m,p,v){return V.isPlainObject(d)&&V.isPlainObject(m)?V.merge.call({caseless:v},d,m):V.isPlainObject(m)?V.merge({},m):V.isArray(m)?m.slice():m}function o(d,m,p,v){if(V.isUndefined(m)){if(!V.isUndefined(d))return i(void 0,d,p,v)}else return i(d,m,p,v)}function s(d,m){if(!V.isUndefined(m))return i(void 0,m)}function l(d,m){if(V.isUndefined(m)){if(!V.isUndefined(d))return i(void 0,d)}else return i(void 0,m)}function c(d,m,p){if(p in t)return i(d,m);if(p in e)return i(void 0,d)}let f={url:s,method:s,data:s,baseURL:l,transformRequest:l,transformResponse:l,paramsSerializer:l,timeout:l,timeoutMessage:l,withCredentials:l,withXSRFToken:l,adapter:l,responseType:l,xsrfCookieName:l,xsrfHeaderName:l,onUploadProgress:l,onDownloadProgress:l,decompress:l,maxContentLength:l,maxBodyLength:l,beforeRedirect:l,transport:l,httpAgent:l,httpsAgent:l,cancelToken:l,socketPath:l,responseEncoding:l,validateStatus:c,headers:(d,m,p)=>o(Q4(d),Q4(m),p,!0)};return V.forEach(Object.keys(re(re({},e),t)),function(m){let p=f[m]||o,v=p(e[m],t[m],m);V.isUndefined(v)&&p!==c||(r[m]=v)}),r}var Cx=e=>{let t=ko({},e),{data:r,withXSRFToken:i,xsrfHeaderName:o,xsrfCookieName:s,headers:l,auth:c}=t;t.headers=l=dn.from(l),t.url=gx(wx(t.baseURL,t.url,t.allowAbsoluteUrls),e.params,e.paramsSerializer),c&&l.set("Authorization","Basic "+btoa((c.username||"")+":"+(c.password?unescape(encodeURIComponent(c.password)):"")));let f;if(V.isFormData(r)){if(Xt.hasStandardBrowserEnv||Xt.hasStandardBrowserWebWorkerEnv)l.setContentType(void 0);else if((f=l.getContentType())!==!1){let[d,...m]=f?f.split(";").map(p=>p.trim()).filter(Boolean):[];l.setContentType([d||"multipart/form-data",...m].join("; "))}}if(Xt.hasStandardBrowserEnv&&(i&&V.isFunction(i)&&(i=i(t)),i||i!==!1&&Qq(t.url))){let d=o&&s&&ez.read(s);d&&l.set(o,d)}return t},nz=typeof XMLHttpRequest<"u",iz=nz&&function(e){return new Promise(function(r,i){let o=Cx(e),s=o.data,l=dn.from(o.headers).normalize(),{responseType:c,onUploadProgress:f,onDownloadProgress:d}=o,m,p,v,w,g;function S(){w&&w(),g&&g(),o.cancelToken&&o.cancelToken.unsubscribe(m),o.signal&&o.signal.removeEventListener("abort",m)}let y=new XMLHttpRequest;y.open(o.method.toUpperCase(),o.url,!0),y.timeout=o.timeout;function x(){if(!y)return;let C=dn.from("getAllResponseHeaders"in y&&y.getAllResponseHeaders()),I={data:!c||c==="text"||c==="json"?y.responseText:y.response,status:y.status,statusText:y.statusText,headers:C,config:e,request:y};xx(function($){r($),S()},function($){i($),S()},I),y=null}"onloadend"in y?y.onloadend=x:y.onreadystatechange=function(){!y||y.readyState!==4||y.status===0&&!(y.responseURL&&y.responseURL.indexOf("file:")===0)||setTimeout(x)},y.onabort=function(){y&&(i(new Pe("Request aborted",Pe.ECONNABORTED,e,y)),y=null)}
25,y.onerror=function(){i(new Pe("Network Error",Pe.ERR_NETWORK,e,y)),y=null},y.ontimeout=function(){let O=o.timeout?"timeout of "+o.timeout+"ms exceeded":"timeout exceeded",I=o.transitional||_x;o.timeoutErrorMessage&&(O=o.timeoutErrorMessage),i(new Pe(O,I.clarifyTimeoutError?Pe.ETIMEDOUT:Pe.ECONNABORTED,e,y)),y=null},s===void 0&&l.setContentType(null),"setRequestHeader"in y&&V.forEach(l.toJSON(),function(O,I){y.setRequestHeader(I,O)}),V.isUndefined(o.withCredentials)||(y.withCredentials=!!o.withCredentials),c&&c!=="json"&&(y.responseType=o.responseType),d&&([v,g]=sd(d,!0),y.addEventListener("progress",v)),f&&y.upload&&([p,w]=sd(f),y.upload.addEventListener("progress",p),y.upload.addEventListener("loadend",w)),(o.cancelToken||o.signal)&&(m=C=>{y&&(i(!C||C.type?new _s(null,e,y):C),y.abort(),y=null)},o.cancelToken&&o.cancelToken.subscribe(m),o.signal&&(o.signal.aborted?m():o.signal.addEventListener("abort",m)));let T=Yq(o.url);if(T&&Xt.protocols.indexOf(T)===-1){i(new Pe("Unsupported protocol "+T+":",Pe.ERR_BAD_REQUEST,e));return}y.send(s||null)})},oz=(e,t)=>{let{length:r}=e=e?e.filter(Boolean):[];if(t||r){let i=new AbortController,o,s=function(d){if(!o){o=!0,c();let m=d instanceof Error?d:this.reason;i.abort(m instanceof Pe?m:new _s(m instanceof Error?m.message:m))}},l=t&&setTimeout(()=>{l=null,s(new Pe(`timeout ${t} of ms exceeded`,Pe.ETIMEDOUT))},t),c=()=>{e&&(l&&clearTimeout(l),l=null,e.forEach(d=>{d.unsubscribe?d.unsubscribe(s):d.removeEventListener("abort",s)}),e=null)};e.forEach(d=>d.addEventListener("abort",s));let{signal:f}=i;return f.unsubscribe=()=>V.asap(c),f}},az=oz,sz=function*(e,t){let r=e.byteLength;if(!t||r<t){yield e;return}let i=0,o;for(;i<r;)o=i+t,yield e.slice(i,o),i=o},lz=function(e,t){return Up(this,null,function*(){try{for(var r=ag(uz(e)),i,o,s;i=!(o=yield new $s(r.next())).done;i=!1){let l=o.value;yield*$p(sz(l,t))}}catch{s=[o]}finally{try{i&&(o=r.return)&&(yield new $s(o.call(r)))}finally{if(s)throw s[0]}}})},uz=function(e){return Up(this,null,function*(){if(e[Symbol.asyncIterator]){yield*$p(e);return}let t=e.getReader();try{for(;;){let{done:r,value:i}=yield new $s(t.read());if(r)break;yield i}}finally{yield new $s(t.cancel())}})},ex=(e,t,r,i)=>{let o=lz(e,t),s=0,l,c=d=>{l||(l=!0,i&&i(d))};return new ReadableStream({pull(d){return K(this,null,function*(){try{let{done:m,value:p}=yield o.next();if(m){c(),d.close();return}let v=p.byteLength;if(r){let w=s+=v;r(w)}d.enqueue(new Uint8Array(p))}catch(m){throw c(m),m}})},cancel(d){return c(d),o.return()}},{highWaterMark:2})},pd=typeof fetch=="function"&&typeof Request=="function"&&typeof Response=="function",Ex=pd&&typeof ReadableStream=="function",cz=pd&&(typeof TextEncoder=="function"?(e=>t=>e.encode(t))(new TextEncoder):e=>K(ou,null,function*(){return new Uint8Array(yield new Response(e).arrayBuffer())})),Sx=(e,...t)=>{try{return!!e(...t)}catch{return!1}},fz=Ex&&Sx(()=>{let e=!1,t=new Request(Xt.origin,{body:new ReadableStream,method:"POST",get duplex(){return e=!0,"half"}}).headers.has("Content-Type");return e&&!t}),tx=64*1024,fh=Ex&&Sx(()=>V.isReadableStream(new Response("").body)),ld={stream:fh&&(e=>e.body)};pd&&(e=>{["text","arrayBuffer","blob","formData","stream"].forEach(t=>{!ld[t]&&(ld[t]=V.isFunction(e[t])?r=>r[t]():(r,i)=>{throw new Pe(`Response type '${t}' is not supported`,Pe.ERR_NOT_SUPPORT,i)})})})(new Response);var dz=e=>K(ou,null,function*(){if(e==null)return 0;if(V.isBlob(e))return e.size;if(V.isSpecCompliantForm(e))return(yield new Request(Xt.origin,{method:"POST",body:e}).arrayBuffer()).byteLength;if(V.isArrayBufferView(e)||V.isArrayBuffer(e))return e.byteLength;if(V.isURLSearchParams(e)&&(e=e+""),V.isString(e))return(yield cz(e)).byteLength}),pz=(e,t)=>K(ou,null,function*(){let r=V.toFiniteNumber(e.getContentLength());return r??dz(t)}),mz=pd&&(e=>K(ou,null,function*(){let{url:t,method:r,data:i,signal:o,cancelToken:s,timeout:l,onDownloadProgress:c,onUploadProgress:f,responseType:d,headers:m,withCredentials:p="same-origin",fetchOptions:v}=Cx(e);d=d?(d+"").toLowerCase():"text";let w=az([o,s&&s.toAbortSignal()],l),g,S=w&&w.unsubscribe&&(()=>{w.unsubscribe()}),y;try{if(f&&fz&&r!=="get"&&r!=="head"&&(y=yield pz(m,i))!==0){let I=new Request
vendor: 7,257 bytes, lines 25-28
25(t,{method:"POST",body:i,duplex:"half"}),M;if(V.isFormData(i)&&(M=I.headers.get("content-type"))&&m.setContentType(M),I.body){let[$,k]=X4(y,sd(J4(f)));i=ex(I.body,tx,$,k)}}V.isString(p)||(p=p?"include":"omit");let x="credentials"in Request.prototype;g=new Request(t,ge(re({},v),{signal:w,method:r.toUpperCase(),headers:m.normalize().toJSON(),body:i,duplex:"half",credentials:x?p:void 0}));let T=yield fetch(g,v),C=fh&&(d==="stream"||d==="response");if(fh&&(c||C&&S)){let I={};["status","statusText","headers"].forEach(H=>{I[H]=T[H]});let M=V.toFiniteNumber(T.headers.get("content-length")),[$,k]=c&&X4(M,sd(J4(c),!0))||[];T=new Response(ex(T.body,tx,$,()=>{k&&k(),S&&S()}),I)}d=d||"text";let O=yield ld[V.findKey(ld,d)||"text"](T,e);return!C&&S&&S(),yield new Promise((I,M)=>{xx(I,M,{data:O,headers:dn.from(T.headers),status:T.status,statusText:T.statusText,config:e,request:g})})}catch(x){throw S&&S(),x&&x.name==="TypeError"&&/Load failed|fetch/i.test(x.message)?Object.assign(new Pe("Network Error",Pe.ERR_NETWORK,e,g),{cause:x.cause||x}):Pe.from(x,x&&x.code,e,g)}})),dh={http:Oq,xhr:iz,fetch:mz};V.forEach(dh,(e,t)=>{if(e){try{Object.defineProperty(e,"name",{value:t})}catch{}Object.defineProperty(e,"adapterName",{value:t})}});var rx=e=>`- ${e}`,hz=e=>V.isFunction(e)||e===null||e===!1,Ax={getAdapter:e=>{e=V.isArray(e)?e:[e];let{length:t}=e,r,i,o={};for(let s=0;s<t;s++){r=e[s];let l;if(i=r,!hz(r)&&(i=dh[(l=String(r)).toLowerCase()],i===void 0))throw new Pe(`Unknown adapter '${l}'`);if(i)break;o[l||"#"+s]=i}if(!i){let s=Object.entries(o).map(([c,f])=>`adapter ${c} `+(f===!1?"is not supported by the environment":"is not available in the build")),l=t?s.length>1?`since : 26`+s.map(rx).join(` 27`):" "+rx(s[0]):"as no adapter specified";throw new Pe("There is no suitable adapter to dispatch the request "+l,"ERR_NOT_SUPPORT")}return i},adapters:dh};function ah(e){if(e.cancelToken&&e.cancelToken.throwIfRequested(),e.signal&&e.signal.aborted)throw new _s(null,e)}function nx(e){return ah(e),e.headers=dn.from(e.headers),e.data=oh.call(e,e.transformRequest),["post","put","patch"].indexOf(e.method)!==-1&&e.headers.setContentType("application/x-www-form-urlencoded",!1),Ax.getAdapter(e.adapter||yh.adapter)(e).then(function(i){return ah(e),i.data=oh.call(e,e.transformResponse,i),i.headers=dn.from(i.headers),i},function(i){return bx(i)||(ah(e),i&&i.response&&(i.response.data=oh.call(e,e.transformResponse,i.response),i.response.headers=dn.from(i.response.headers))),Promise.reject(i)})}var Tx="1.11.0",md={};["object","boolean","number","function","string","symbol"].forEach((e,t)=>{md[e]=function(i){return typeof i===e||"a"+(t<1?"n ":" ")+e}});var ix={};md.transitional=function(t,r,i){function o(s,l){return"[Axios v"+Tx+"] Transitional option '"+s+"'"+l+(i?". "+i:"")}return(s,l,c)=>{if(t===!1)throw new Pe(o(l," has been removed"+(r?" in "+r:"")),Pe.ERR_DEPRECATED);return r&&!ix[l]&&(ix[l]=!0,console.warn(o(l," has been deprecated since v"+r+" and will be removed in the near future"))),t?t(s,l,c):!0}};md.spelling=function(t){return(r,i)=>(console.warn(`${i} is likely a misspelling of ${t}`),!0)};function vz(e,t,r){if(typeof e!="object")throw new Pe("options must be an object",Pe.ERR_BAD_OPTION_VALUE);let i=Object.keys(e),o=i.length;for(;o-- >0;){let s=i[o],l=t[s];if(l){let c=e[s],f=c===void 0||l(c,s,e);if(f!==!0)throw new Pe("option "+s+" must be "+f,Pe.ERR_BAD_OPTION_VALUE);continue}if(r!==!0)throw new Pe("Unknown option "+s,Pe.ERR_BAD_OPTION)}}var od={assertOptions:vz,validators:md},Mn=od.validators,vs=class{constructor(t){this.defaults=t||{},this.interceptors={request:new K4,response:new K4}}request(t,r){return K(this,null,function*(){try{return yield this._request(t,r)}catch(i){if(i instanceof Error){let o={};Error.captureStackTrace?Error.captureStackTrace(o):o=new Error;let s=o.stack?o.stack.replace(/^.+\n/,""):"";try{i.stack?s&&!String(i.stack).endsWith(s.replace(/^.+\n.+\n/,""))&&(i.stack+=` 28`+s):i.stack=s}catch{}}throw i}})}_request(t,r){typeof t=="string"?(r=r||{},r.url=t):r=t||{},r=ko(this.defaults,r);let{transitional:i,paramsSerializer:o,headers:s}=r;i!==void 0&&od.assertOptions(i,{silentJSONParsing:Mn.transitional(Mn.boolean),forcedJSONParsing:Mn.transitional(Mn.boolean),clarifyTimeoutError:Mn.transitional(Mn.boolean)},!1),o!=null&&(V.isFunction(o)?r.paramsSerializer={serialize:o}:od.assertOptions(o,{encode:Mn.function,serialize:Mn.function},!0)),r.allowAbsoluteUrls!==void 0||(this.defaults.allowAbsoluteUrls!==void 0?r.allowAbsoluteUrls=this.defaults.allowAbsoluteUrls:r.allowAbsoluteUrls=!0),od.assertOptions(r,{baseUrl:Mn.spelling("baseURL"),withXsrfToken:Mn.spelling("withXSRFToken")},!0),r.method=(r.method||this.defaults.method||"get").toLowerCase();let l=s&&V.merge(s.common,s[r.method]);s&&V.forEach(["delete","get","head","post","put","patch","common"],g=>{delete s[g]}),r.headers=dn.concat(l,s);let c=[],f=!0;this.interceptors.request.forEach(function(S){typeof S.runWhen=="function"&&S.runWhen(r)===!1||(f=f&&S.synchronous,c.unshift(S.fulfilled,S.rejected))});let d=[];this.interceptors.response.forEach(function(S){d.push(S.fulfilled,S.rejected)});let m,p=0,v;if(!f){let g=[nx.bind(this),void 0];for(g.unshift(...c),g.push(...d),v=g.length,m=Promise.resolve(r);p<v;)m=m.then(g[p++],g[p++]);return m}v=c.length;let w=r;for(p=0;p<v;){let g=c[p++],S=c[p++];try{w=g(w)}catch(y){S.call(this,y);break}}try{m=nx.call(this,w)}catch(g){return Promise.reject(g)}for(p=0,v=d.length;p<v;)m=m.then(d[p++],d[p++]);return m}getUri(t){t=ko(this.defaults,t);let r=wx(t.baseURL,t.url,t.allowAbsoluteUrls);return gx(r,t.params,t.paramsSerializer)}};V.forEach(["delete","get","head","options"],function(t){vs.prototype[t]=function(r,i){return this.request(ko(i||{},{method:t,url:r,data:(i||{}).data}))}});V.forEach(["post","put","patch"],function(t){function r(i){return function(s,l,c){return this.request(ko(c||{},{method:t,headers:i?{"Content-Type":"multipart/form-data"}:{},url:s,data:l}))}}vs.prototype[t]=r(),vs.prototype[t+"Form"]=r(!0)});var ad=vs,ph=class e{constructor(t){if(typeof t!="function")throw new TypeError("executor must be a function.");let r;this.promise=new Promise(function(s){r=s});let i=this;this.promise.then(o=>{if(!i._listeners)return;let s=i._listeners.length;for(;s-- >0;)i._listeners[s](o);i._listeners=null}),this.promise.then=o=>{let s,l=new Promise(c=>{i.subscribe(c),s=c}).then(o);return l.cancel=function(){i.unsubscribe(s)},l},t(function(s,l,c){i.reason||(i.reason=new _s(s,l,c),r(i.reason))})}throwIfRequested(){if(this.reason)throw this.reason}subscribe(t){if(this.reason){t(this.reason);return}this._listeners?this._listeners.push(t):this._listeners=[t]}unsubscribe(t){if(!this._listeners)return;let r=this._listeners.indexOf(t);r!==-1&&this._listeners.splice(r,1)}toAbortSignal(){let t=new AbortController,r=i=>{t.abort(i)};return this.subscribe(r),t.signal.unsubscribe=()=>this.unsubscribe(r),t.signal}static source(){let t;return{token:new e(function(o){t=o}),cancel:t}}},gz=ph;function _z(e){return function(r){return e.apply(null,r)}}function yz(e){return V.isObject(e)&&e.isAxiosError===!0}var mh={Continue:100,SwitchingProtocols:101,Processing:102,EarlyHints:103,Ok:200,Created:201,Accepted:202,NonAuthoritativeInformation:203,NoContent:204,ResetContent:205,Parti
28alContent:206,MultiStatus:207,AlreadyReported:208,ImUsed:226,MultipleChoices:300,MovedPermanently:301,Found:302,SeeOther:303,NotModified:304,UseProxy:305,Unused:306,TemporaryRedirect:307,PermanentRedirect:308,BadRequest:400,Unauthorized:401,PaymentRequired:402,Forbidden:403,NotFound:404,MethodNotAllowed:405,NotAcceptable:406,ProxyAuthenticationRequired:407,RequestTimeout:408,Conflict:409,Gone:410,LengthRequired:411,PreconditionFailed:412,PayloadTooLarge:413,UriTooLong:414,UnsupportedMediaType:415,RangeNotSatisfiable:416,ExpectationFailed:417,ImATeapot:418,MisdirectedRequest:421,UnprocessableEntity:422,Locked:423,FailedDependency:424,TooEarly:425,UpgradeRequired:426,PreconditionRequired:428,TooManyRequests:429,RequestHeaderFieldsTooLarge:431,UnavailableForLegalReasons:451,InternalServerError:500,NotImplemented:501,BadGateway:502,ServiceUnavailable:503,GatewayTimeout:504,HttpVersionNotSupported:505,VariantAlsoNegotiates:506,InsufficientStorage:507,LoopDetected:508,NotExtended:510,NetworkAuthenticationRequired:511};Object.entries(mh).forEach(([e,t])=>{mh[t]=e});var bz=mh;function Ox(e){let t=new ad(e),r=ox(ad.prototype.request,t);return V.extend(r,ad.prototype,t,{allOwnKeys:!0}),V.extend(r,t,null,{allOwnKeys:!0}),r.create=function(o){return Ox(ko(e,o))},r}var Rt=Ox(yh);Rt.Axios=ad;Rt.CanceledError=_s;Rt.CancelToken=gz;Rt.isCancel=bx;Rt.VERSION=Tx;Rt.toFormData=dd;Rt.AxiosError=Pe;Rt.Cancel=Rt.CanceledError;Rt.all=function(t){return Promise.all(t)};Rt.spread=_z;Rt.isAxiosError=yz;Rt.mergeConfig=ko;Rt.AxiosHeaders=dn;Rt.formToJSON=e=>yx(V.isHTMLForm(e)?new FormData(e):e);Rt.getAdapter=Ax.getAdapter;Rt.HttpStatusCode=bz;Rt.default=Rt;Lx.exports=Rt});var Ix=ve(hd=>{"use strict";Object.defineProperty(hd,"__esModule",{value:!0});hd.httpClient=void 0;var xz=(Ws(),Us(Vs)),wz=M7(),Cz=z4(),bh=xz.__importStar(Rx());function Ez(e){let r=Object.assign(Object.assign({},{insecure:!1,retryOnError:!0,headers:{},basePath:"",proxy:!1,httpAgent:!1,httpsAgent:!1,timeout:3e4,logHandler:(d,m)=>{if(d==="error"&&m){let p=[m.name,m.message].filter(v=>v).join(" - ");console.error(`[error] ${p}`);return}console.log(`[${d}] ${m}`)},retryCondition:d=>!!(d.response&&d.response.status===429),versioningStrategy:"path"}),(0,wz.cloneDeep)(e));r.apiKey&&r.headers&&(r.headers.api_key=r.apiKey),r.accessToken&&r.headers&&(r.headers.access_token=r.accessToken);let i=r.insecure?"http":"https",o=r.defaultHostname,s=r.port||443,l=r.ver
28sion||"v3",c=r.endpoint||`${i}://${o}:${s}${r.basePath}/${l}`,f=bh.default.create(Object.assign(Object.assign({baseURL:c,adapter:(0,bh.getAdapter)(bh.default.defaults.adapter)},r),{paramsSerializer:{serialize:Cz.serialize}}));return f.httpClientParams=e,r.onError&&f.interceptors.response.use(d=>d,r.onError),f}hd.httpClient=Ez});var Mx=ve(Px=>{"use strict";Object.defineProperty(Px,"__esModule",{value:!0})});var Dx=ve(vd=>{"use strict";Object.defineProperty(vd,"__esModule",{value:!0});vd.error=void 0;function Sz(e){let t=e.config,r=e.response;if(!t||!r){let l=new Error;throw Object.assign(l,e),l.message=JSON.stringify(e),l}let i=r.data,o={status:r.status,statusText:r.statusText};if(t.headers&&t.headers.authtoken){let l=`...${t.headers.authtoken.substr(-5)}`;t.headers.authtoken=l}if(t.headers&&t.headers.authorization){let l=`...${t.headers.authorization.substr(-5)}`;t.headers.authorization=l}o.request={url:t.url,method:t.method,data:t.data,headers:t.headers},i&&(o.errorMessage=i.error_message||i.message||"",o.errorCode=i.error_code||0,o.errors=i.errors||{},o.error=i.error||"");let s=new Error;return Object.assign(s,o),s.message=JSON.stringify(o),s}vd.error=Sz});var Bx=ve(gd=>{"use strict";Object.defineProperty(gd,"__esModule",{value:!0});gd.getData=void 0;var Nx=(Ws(),Us(Vs));function Az(e){if(!e)return"";let t=[];return Object.keys(e).forEach(r=>{let i=e[r];Array.isArray(i)?i.forEach(o=>{t.push(`${encodeURIComponent(r)}=${encodeURIComponent(o)}`)}):i!=null&&t.push(`${encodeURIComponent(r)}=${encodeURIComponent(i)}`)}),t.join("&")}function Tz(e,t,r){return`${e||""}${t}?${r}`}function Oz(e,t,r,i){return Nx.__awaiter(this,void 0,void 0,function*(){return i.length>2e3?yield e.request({method:"get",url:i,headers:e.defaults.headers,maxContentLength:1/0,maxBodyLength:1/0}):yield e.get(t,r)})}function Lz(e,t,r){return Nx.__awaiter(this,void 0,void 0,function*(){try{if(e.stackConfig&&e.stackConfig.live_preview){let c=e.stackConfig.live_preview;if(c.enable&&(r.live_preview=c.live_preview||"init"),c.preview_token&&(e.defaults.headers.preview_token=c.preview_token,e.defaults.headers.live_preview=c.live_preview),c.enable&&c.live_preview&&c.live_preview!=="init"){if(!c.host)throw new Error("Host is required for live preview");t=(c.host.startsWith("https://")?"":"https://")+c.host+t}}let i=Object.assign(Object.assign({},r),{maxContentLength:1/0,maxBodyLength:1/0}),o=Az(i.params),s=Tz(e.defaults.baseURL,t,o),l=yield Oz(e,t,i,s);if(l&&l.data)return l.data;throw l}catch(i){throw i}})}gd.getData=Lz});var Fx=ve(mn=>{"use strict";Object.defineProperty(mn,"__esModule",{value:!0});mn.calculateRateLimitDelay=mn.retryResponseErrorHandler=mn.retryResponseHandler=mn.retryRequestHandler=void 0;var Rz=(Ws(),Us(Vs)),Iz={maxRequests:5,retryLimit:5,retryDelay:300},Pz=e=>(e.retryCount=e.retryCount||1,e);mn.retryRequestHandler=Pz;var Mz=e=>e;mn.retryResponseHandler=Mz;var Dz=(e,t,r)=>{try{let i=e.config.retryCount;if(t=Object.assign(Object.assign({},Iz),t),!e.config.retryOnError||i>t.retryLimit)throw e;let o=e.response;if(o){let s=o.headers["x-ratelimit-remaining"];if(s!==void 0&&parseInt(s)<=0){if(i++,i>=t.retryLimit)return Promise.reject(e.response.data);e.config.retryCount=i;let l=(0,mn.calculateRateLimitDelay)(o.headers);return new Promise((c,f)=>{setTimeout(()=>Rz.__awaiter(void 0,void 0,void 0,function*(){try{let d=yield r(e.config);c(d)}catch(d){f(d)}}),l)})}if(o.status==429||o.status==401)return i++,i>=t.retryLimit?e.response&&e.response.data?Promise.reject(e.response.data):Promise.reject(e):(e.config.retryCount=i,r(e.config))}else throw e.code==="ECONNABORTED"?{error_message:`Timeout of ${t.timeout}ms exceeded`,error_code:408,errors:null}:e;if(t.retryCondition&&t.retryCondition(e))return i++,Nz(e,t,i,t.retryDelay,r);throw e}catch(i){throw i}};mn.retryResponseErrorHandler=Dz;var Nz=(e,t,r,i,o)=>{let s=i;return r>t.retryLimit?Promise.reject(e):(s=t.retryDelay,e.config.retryCount=r,new Promise(function(l){return setTimeout(function(){return l(o(e.request))},s)}))},Bz=e=>{let t=e["retry-after"];if(t)return parseInt(t)*1e3;let r=e["x-ratelimit-reset"];if(r){let o=parseInt(r)*1e3,s=Date.now(),l=o-s;return Math.max(l+1e3,1e3)}let i=e["x-ratelimit-reset-time"];if(i){let o=new Date(i).getTime(),s=Date.now(),l=o-s;return Math.max(l+1e3,1e3)}return 1e3};mn.calculateRateLimitDelay=Bz});var Dn=ve(Uo=>{"use strict";Object.defineProperty(Uo,"__esModule",{value:!0});var au=(Ws(),Us(Vs));au.__exportStar(Ix(),Uo);au.__exportStar(Mx(),Uo);au.__exportStar(Dx(),Uo);au.__exportStar(Bx(),Uo);au.__exportStar(Fx(),Uo)});var nw=ve((rw,yd)=>{(function(e){var t=function(y,x,T){if(!f(x)||m(x)||p(x)||v(x)||c(x))return x;var C,O=0,I=0;if(d(x))for(C=[],I=x.length;O<I;O++)C.push(t(y,x[O],T));else{C={};for(var M in x)Object.prototype.hasOwnProperty.call(x,M)&&(C[y(M,T)]=t(y,x[M],T))}return C},r=function(y,x){x=x||{};var T=x.separator||"_",C=x.split||/(?=[A-Z])/;return y.split(C).join(T)},i=function(y){return w(y)?y:(y=y.replace(/[\-_\s]+(.)?/g,function(x,T){return T?T.toUpperCase():""}),y.substr(0,1).toLowerCase()+y.substr(1))},o=function(y){var x=i(y);return x.substr(0,1).toUpperCase()+x.substr(1)},s=function(y,x){return r(y,x).toLowerCase()},l=Object.prototype.toString,c=function(y){return typeof y=="function"},f=function(y){return y===Object(y)},d=function(y){return l.call(y)=="[object Array]"},m=function(y){return l.call(y)=="[object Date]"},p=function(y){return l.call(y)=="[object RegExp]"},v=function(y){return l.call(y)=="[object Boolean]"},w=function(y){return y=y-0,y===y},g=function(y,x){var T=x&&"process"in x?x.process:x;return typeof T!="function"?y:function(C,O){return T(C,y,O)}}
28,S={camelize:i,decamelize:s,pascalize:o,depascalize:s,camelizeKeys:function(y,x){return t(g(i,x),y)},decamelizeKeys:function(y,x){return t(g(s,x),y,x)},pascalizeKeys:function(y,x){return t(g(o,x),y)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};typeof define=="function"&&define.amd?define(S):typeof yd<"u"&&yd.exports?yd.exports=S:e.humps=S})(rw)});var Tw=ve(ur=>{"use strict";Object.defineProperty(ur,"__esModule",{value:!0});var Lh=function(e,t){return Lh=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(r,i){r.__proto__=i}||function(r,i){for(var o in i)Object.prototype.hasOwnProperty.call(i,o)&&(r[o]=i[o])},Lh(e,t)};function hw(e,t){if(typeof t!="function"&&t!==null)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");Lh(e,t);function r(){this.constructor=e}e.prototype=t===null?Object.create(t):(r.prototype=t.prototype,new r)}var qo=function(){return qo=Object.assign||function(t){for(var r,i=1,o=arguments.length;i<o;i++){r=arguments[i];
28for(var s in r)Object.prototype.hasOwnProperty.call(r,s)&&(t[s]=r[s])}return t},qo.apply(this,arguments)},vw=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CLASSNAME_OR_ID="classnameOrId",e.STRIKE_THROUGH="strikethrough",e.INLINE_CODE="inlineCode",e.SUBSCRIPT="subscript",e.SUPERSCRIPT="superscript",e.BREAK="break",e}(vw||{}),Dt=vw,gw=function(e){return e.DOCUMENT="doc",e.PARAGRAPH="p",e.LINK="a",e.IMAGE="img",e.EMBED="embed",e.HEADING_1="h1",e.HEADING_2="h2",e.HEADING_3="h3",e.HEADING_4="h4",e.HEADING_5="h5",e.HEADING_6="h6",e.ORDER_LIST="ol",e.UNORDER_LIST="ul",e.LIST_ITEM="li",e.FRAGMENT="fragment",e.HR="hr",e.TABLE="table",e.TABLE_HEADER="thead",e.TABLE_BODY="tbody",e.TABLE_FOOTER="tfoot",e.TABLE_ROW="tr",e.TABLE_HEAD="th",e.TABLE_DATA="td",e.COL_GROUP="colgroup",e.COL="col",e.BLOCK_QUOTE="blockquote",e.CODE="code",e.TEXT="text",e.REFERENCE="reference",e}(gw||{}),Je=gw;function Ae(e,t,r){t===void 0&&(t=["p","a","strong","em","ul","ol","li","h1","h2","h3","h4","h5","h6","sub","u","table","thead","tbody","tr","th","td","span","fragment","sup","strike","br","img","colgroup","col","div"]),r===void 0&&(r=["href","title","target","alt","src","class","id","style","colspan","rowspan","content-type-uid","data-sys-asset-uid","sys-style-type","data-type","data-width","data-rows","data-cols","data-mtec"]),e=e.replace(/\n/g,"<br />");var i=e.replace(/<\/?([a-z][a-z0-9]*)\b[^<>]*>/gi,function(s,l){return t.includes(l.toLowerCase())?s:""}),o=i.replace(/<([a-z][a-z0-9]*)\b[^<>]*>/gi,function(s,l){return t.includes(l.toLowerCase())?s.replace(/\s([a-z\-]+)=['"][^'"]*['"]/gi,function(c,f){return r.includes(f.toLowerCase())?c:""}):s});return o}var He,jz=(He={},He[Je.DOCUMENT]=function(e){return""},He[Je.PARAGRAPH]=function(e,t){return"<p".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</p>")},He[Je.LINK]=function(e,t){var r=Ae(e.attrs.href||e.attrs.url);return e.attrs.target?"<a".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' href="').concat(r,'" target="').concat(e.attrs.target,'">').concat(Ae(t(e.children)),"</a>"):"<a".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' href="').concat(r,'">').concat(Ae(t(e.children)),"</a>")},He[Je.IMAGE]=function(e,t){var r=encodeURI(Ae(e.attrs.src||e.attrs.url));return"<img".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' src="').concat(r,'" />').concat(Ae(t(e.children)))},He[Je.EMBED]=function(e,t){var r=encodeURI(Ae(e.attrs.src||e.attrs.url));return"<iframe".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' src="').concat(r,'">').concat(Ae(t(e.children)),"</iframe>")},He[Je.HEADING_1]=function(e,t){return"<h1".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h1>")},He[Je.HEADING_2]=function(e,t){return"<h2".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h2>")},He[Je.HEADING_3]=function(e,t){return"<h3".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h3>")},He[Je.HEADING_4]=function(e,t){return"<h4".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h4>")},He[Je.HEADING_5]=function(e,t){return"<h5".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h5>")},He[Je.HEADING_6]=function(e,t){return"<h6".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</h6>")},He[Je.ORDER_LIST]=function(e,t){return"<ol".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</ol>")},He[Je.FRAGMENT]=function(e,t){return"<fragment>".concat(Ae(t(e.children)),"</fragment>")},He[Je.UNORDER_LIST]=function(e,t){return"<ul".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</ul>")},He[Je.LIST_ITEM]=function(e,t){return"<li".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</li>")},He[Je.HR]=function(e,t){return"<hr>"},He[Je.TABLE]=function(e,t){var r="";if(e.attrs.colWidths&&Array.isArray(e.attrs.colWidths)){var i=e.attrs.colWidths.reduce(function(o,s){return o+s},0);r="<".concat(Je.COL_GROUP,' data-width="').concat(i,'">'),e.attrs.colWidths.forEach(function(o){var s=o/i*100;r+="<".concat(Je.COL,' style="width:').concat(s.toFixed(2),'%"/>')}),r+="</".concat(Je.COL_GROUP,">")}return"<table".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"")+"".concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"")+"".concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">")+"".concat(r)+"".concat(Ae(t(e.children)))+"</table>"},He[Je.TABLE_HEADER]=function(e,t){return"<thead".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</thead>")},He[Je.TABLE_BODY]=function(e,t){return"<tbody".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</tbody>")},He[Je.TABLE_FOOTER]=function(e,t){return"<tfoot".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</tfoot>")},He[Je.TABLE_ROW]=function(e,t){return"<tr".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</tr>")},He[Je.TABLE_HEAD]=function(e,t){return e.attrs.void?"":"<th"+"".concat(e.attrs.rowSpan?' rowspan="'.concat(e.attrs.rowSpan,'"'):"")+"".concat(e.attrs.colSpan?' colspan="'.concat(e.attrs.colSpan,'"'):"")+"".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"")+"".concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"")+"".concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)))+"</th>"},He[Je.TABLE_DATA]=function(e,t){return e.attrs.void?"":"<td"+"".concat(e.attrs.rowSpan?' rowspan="'.concat(e.attrs.rowSpan,'"'):"")+"".concat(e.attrs.colSpan?' colspan="'.concat(e.attrs.colSpan,'"'):"")+"".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"")+"".concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"")+"".concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)))+"</td>"},He[Je.BLOCK_QUOTE]=function(e,t){return"<blockquote".concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</blockquote>")},He[Je.CODE]=function(e,t){return"<code".concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",">").concat(Ae(t(e.children)),"</code>")},He.reference=function(e,t){var r,i,o,s,l;if((e.attrs.type==="entry"||e.attrs.type==="asset")&&e.attrs["display-type"]==="link"){var c="".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' href="').concat(e.attrs.href||e.attrs.url,'"');e.attrs.target&&(c+=' target="'.concat(e.attrs.target,'"')),e.attrs.type=="asset"&&(c+=' type="asset" content-type-uid="sys_assets" '.concat(e.attrs["asset-uid"]?'data-sys-asset-uid="'.concat(e.attrs["asset-uid"],'"'):"",' sys-style-type="download"'));var f="<a".concat(c,">").concat(Ae(t(e.children)),"</a>");return f}if(e.attrs.type==="asset"){var d=encodeURI(e.attrs["asset-link"]),m=(i=(r=e.attrs)===null||r===void 0?void 0:r["redactor-attributes"])===null||i===void 0?void 0:i.alt,p=e.attrs.link,v=e.attrs.target||"",w=((s=(o=e.attrs)===null||o===void 0?void 0:o["redactor-attributes"])===null||s===void 0?void 0:s["asset-caption"])||((l=e.attrs)===null||l===void 0?void 0:l["asset-caption"])||"",g=e.attrs.style,S=e.attrs["asset-uid"],y="<img".concat(S?' asset_uid="'.concat(S,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(Ae(e.attrs["class-name"]),'"'):"").concat(d?' src="'.concat(Ae(d),'"'):"").concat(m?' alt="'.concat(m,'"'):"").concat(v==="_blank"?' target="_blank"':"").concat(g?' style="'.concat(g,'"'):""," />");return"<figure".concat(g?' style="'.concat(g,'"'):"",">")+(p?'<a href="'.concat(p,'" target="').concat(v||"",'">'):"")+y+(p?"</a>":"")+(w?"<figcaption>
28".concat(w,"</figcaption>"):"")+"</figure>"}return""},He.default=function(e,t){return Ae(t(e.children))},He[Dt.BOLD]=function(e){return"<strong>".concat(Ae(e),"</strong>")},He[Dt.ITALIC]=function(e){return"<em>".concat(Ae(e),"</em>")},He[Dt.UNDERLINE]=function(e){return"<u>".concat(Ae(e),"</u>")},He[Dt.STRIKE_THROUGH]=function(e){return"<strike>".concat(Ae(e),"</strike>")},He[Dt.INLINE_CODE]=function(e){return"<span data-type='inlineCode'>".concat(Ae(e),"</span>")},He[Dt.SUBSCRIPT]=function(e){return"<sub>".concat(Ae(e),"</sub>")},He[Dt.SUPERSCRIPT]=function(e){return"<sup>".concat(Ae(e),"</sup>")},He[Dt.BREAK]=function(e){return"<br />".concat(Ae(e))},He[Dt.CLASSNAME_OR_ID]=function(e,t,r){return"<span".concat(t?' class="'.concat(t,'"'):"").concat(r?' id="'.concat(r,'"'):"",">").concat(Ae(e),"</span>")},He),_w=function(e){return e.BLOCK="block",e.INLINE="inline",e.LINK="link",e.DISPLAY="display",e.DOWNLOAD="download",e}(_w||{}),bs=_w,Wo,Gz=(Wo={},Wo[bs.BLOCK]=function(e){var t=Ae(e.title||e.uid),r=Ae(e._content_type_uid||(e.system?e.system.content_type_uid:""));return"<div><p>".concat(t,"</p><p>Content type: <span>").concat(r,"</span></p></div>")},Wo[bs.INLINE]=function(e){var t=Ae(e.title||e.uid);return"<span>".concat(t,"</span>")},Wo[bs.LINK]=function(e,t){var r=encodeURI(Ae(e.url||"undefined")),i=Ae(t.text||e.title||e.uid||(e.system?e.system.uid:""));return'<a href="'.concat(r,'">').concat(i,"</a>")},Wo[bs.DISPLAY]=function(e,t){var r=encodeURI(Ae(e.url||"undefined")),i=Ae(t.attributes.alt||e.title||e.filename||e.uid||(e.system?e.system.uid:""));return'<img src="'.concat(r,'" alt="').concat(i,'" />')},Wo[bs.DOWNLOAD]=function(e,t){var r=encodeURI(Ae(e.url||"undefined")),i=Ae(t.text||e.title||e.uid||(e.system?e.system.content_type_uid:""));return'<a href="'.concat(r,'">').concat(i,"</a>")},Wo);function Zz(e,t,r){return r===void 0&&(r=[]),r.filter(function(i){return i?i.uid&&i.uid===e&&i._content_type_uid===t||i.system&&i.system.uid===e&&i.system.content_type_uid===t:!1})}function Kz(e,t){return t===void 0&&(t=[]),t.filter(function(r){return r?r.uid&&r.uid===e||r.system&&r.system.uid===e:!1})}function yw(e,t){return!e||!t?[]:e.itemType==="entry"?Zz(e.itemUid,e.contentTypeUid,t):Kz(e.itemUid,t)}function bw(e,t){if(e&&e!==void 0&&t&&t!==void 0&&t._embedded_items!==void 0){var r=t,i=Object.values(r._embedded_items||[]).reduce(function(o,s){return o.concat(s)},[]);return yw(e,i)}return[]}function xw(e,t,r){if(!e&&e===void 0||!t&&t===void 0)return"";if(r&&r[t.styleType]!==void 0){var i=r[t.styleType];if(t.attributes["data-sys-content-type-uid"]!==void 0&&typeof i!="function"&&i[t.attributes["data-sys-content-type-uid"]]!==void 0)return i[t.attributes["data-sys-content-type-uid"]](e,t);if(t.attributes["data-sys-content-type-uid"]!==void 0&&typeof i!="function"&&i.$default!==void 0)return i.$default(e,t);if(t.contentTypeUid!==void 0&&typeof i!="function"&&i[t.contentTypeUid]!==void 0)return i[t.contentTypeUid](e,t);if(t.contentTypeUid!==void 0&&typeof i!="function"&&i.$default!==void 0)return i.$default(e,t);if(typeof i=="function")return i(e,t)}var o=Gz[t.styleType];return o(e,t)}function ww(e,t){for(var r=0,i=e;r<i.length;r++){var o=i[r];t(o)}}function Ph(e,t,r){if(!(e instanceof Array)&&e.type!=="doc")return e;if(e instanceof Array){var i=[];return e.forEach(function(s){i.push(Ph(s,t,r))}),i}var o=qo(qo({},jz),t);return xd(e.children,o,r)}function Yz(e,t){var r=Cw(e.text);return(e.classname||e.id)&&(r=t[Dt.CLASSNAME_OR_ID](r,e.classname,e.id)),e.break&&(r=t[Dt.BREAK](r)),e.superscript&&(r=t[Dt.SUPERSCRIPT](r)),e.subscript&&(r=t[Dt.SUBSCRIPT](r)),e.inlineCode&&(r=t[Dt.INLINE_CODE](r)),e.strikethrough&&(r=t[Dt.STRIKE_THROUGH](r)),e.underline&&(r=t[Dt.UNDERLINE](r)),e.italic&&(r=t[Dt.ITALIC](r)),e.bold&&(r=t[Dt.BOLD](r)),r}function Xz(e,t,r){function i(d){var m=function(p){return xd(p,t,r)};return t[d.type](d,m)}if((e.attrs.type==="entry"||e.attrs.type==="asset")&&e.attrs["display-type"]==="link"){var o=e.children?xd(e.children,t,r):"";if(t[e.type]!==void 0)return i(e);var s="".concat(e.attrs.style?' style="'.concat(e.attrs.style,'"'):"").concat(e.attrs["class-name"]?' class="'.concat(e.attrs["class-name"],'"'):"").concat(e.attrs.id?' id="'.concat(e.attrs.id,'"'):"",' href="').concat(e.attrs.href||e.attrs.url,'"');e.attrs.target&&(s+=' target="'.concat(e.attrs.target,'"')),e.attrs.type=="asset"&&(s+=' type="asset" content-type-uid="sys_assets" '.concat(e.attrs["asset-uid"]?'data-sys-asset-uid="'.concat(e.attrs["asset-uid"],'"'):"",' sys-style-type="download"'));var l="<a".concat(s,">").concat(o,"</a>");return l}if(!r&&t[e.type]!==void 0)return i(e);if(!r)return"";var c=tj(e.attrs,e.children&&e.children.length>0?e.children[0]:{}),f=r(c);return!f&&t[e.type]!==void 0?i(e):xw(f,c,t)}function xd(e,t,r){return e.map(function(i){return Qz(i,t,r)}).join("")}function Jz(e){if(!e)return"";if(typeof e=="string")return e;var t="";for(var r in e)if(e.hasOwnProperty(r)){var i=e[r];t+="".concat(r,":").concat(i,";")}return t}function Qz(e,t,r){var i;if(!((i=e?.attrs)===null||i===void 0)&&i.style&&(e.attrs.style=Jz(e.attrs.style)),e.type){if(e.type==="reference")return Xz(e,t,r);var o=function(s){return xd(s,t,r)};return t[e.type]!==void 0?t[e.type](e,o):t.default(e,o)}else return Yz(e,t)}function Cw(e){return e.replace(/&/g,"&").replace(/</g,"<").replace(/>/g,">").replace(/"/g,""")}var ej=['"',"'",">","<","/","="];function fw(e){return{text:e["#text"],itemUid:e["data-sys-entry-uid"]||e["data-sys-asset-uid"],itemType:e.type,styleType:e["sys-style-type"],attributes:e,contentTypeUid:e["data-sys-content-type-uid"]}}function tj(e,t){return{text:t.text,itemUid:e["entry-uid"]||e["asset-uid"],itemType:e.type,styleType:e["display-type"],attributes:e,contentTypeUid:e["content-type-uid"]}}
28function rj(e){var t="",r=function(o){if(Object.prototype.hasOwnProperty.call(e,o)){if(ej.some(function(d){return o.includes(d)}))return"continue";var s=e[o];if(Array.isArray(s))s=s.join(", ");else if(typeof s=="object"){var l="";for(var c in s)if(Object.prototype.hasOwnProperty.call(s,c)){var f=s[c];f!=null&&f!==""&&(l+="".concat(c,":").concat(f,"; "))}s=l}t+=" ".concat(o,'="').concat(Cw(String(s)),'"')}};for(var i in e)r(i);return t}function Rh(e){for(var t={},r=0;r<e.attributes.length;r++)t[e.attributes.item(r).name]=e.attributes.item(r).value;return e.childNodes.forEach(function(i){var o=i;t=qo(qo({},t),nj(o))}),t}function nj(e){var t={};return e.nodeType===3?t["#text"]=e.textContent:e.nodeType===1&&(t[e.nodeName.toLowerCase()]=Rh(e)),t}var dw="documentfragmentcontainer";String.prototype.forEachEmbeddedItem=function(e){var t="<".concat(dw,">").concat(this.toString(),"</").concat(dw,">"),r=new DOMParser().parseFromString(t,"text/html"),i=r.querySelectorAll(".embedded-entry");i.forEach(function(s){e(s.outerHTML,fw(Rh(s)))});var o=r.querySelectorAll(".embedded-asset");o.forEach(function(s){e(s.outerHTML,fw(Rh(s)))})};function Mh(e,t,r){Ih(e.split("."),t,r)}function Ih(e,t,r){if(e){var i=e[0];if(e.length===1&&t[i])t[i]=r(t[i]);else if(e.length>0&&t[i]){var o=e.slice(1);if(Array.isArray(t[i]))for(var s=0,l=t[i];s<l.length;s++){var c=l[s];Ih(o,c,r)}else typeof t[i]=="object"&&Ih(o,t[i],r)}}}function ij(e){function t(i,o){Mh(i,o,function(s){return Dh(s,{entry:o,renderOption:e.renderOption})})}function r(i){!e.paths||e.paths.length===0?Object.keys(qo({},i._embedded_items)).forEach(function(o){t(o,i)}):e.paths.forEach(function(o){t(o,i)})}e.entry instanceof Array?e.entry.forEach(function(i){r(i)}):r(e.entry)}function Dh(e,t){if(!e||e===void 0)return"";if(typeof e=="string"){var r=e;return e.forEachEmbeddedItem(function(o,s){r=oj(r,o,s,t)}),r}var i=[];return e.forEach(function(o){i.push(Dh(o,t))}),i}function oj(e,t,r,i){var o=bw(r,i.entry),s=xw(o[0],r,i.renderOption);return e.replace(t,s)}var Nh=function(){function e(){}return e}(),aj=function(e){hw(t,e);function t(){var r=e.call(this)||this;return r.type=Je.DOCUMENT,r}return t}(Nh),sj=function(e){hw(t,e);function t(r){var i=e.call(this)||this;return i.text=r,i}return t}(Nh);function Ew(e){e.entry instanceof Array?ww(e.entry,function(t){Ew({entry:t,paths:e.paths,renderOption:e.renderOption})}):lj({entry:e.entry,paths:e.paths,renderOption:e.renderOption})}function lj(e){for(var t=0,r=e.paths;t<r.length;t++){var i=r[t];Mh(i,e.entry,function(o){return Ph(o,e.renderOption,function(s){return bw(s,e.entry)[0]})})}}function Sw(e){e.entry instanceof Array?ww(e.entry,function(t){Sw({entry:t,paths:e.paths,renderOption:e.renderOption})}):uj({entry:e.entry,paths:e.paths,renderOption:e.renderOption})}function uj(e){for(var t=0,r=e.paths;t<r.length;t++){var i=r[t];Mh(i,e.entry,function(o){if(o&&o.json){var s=o.embedded_itemsConnection?o.embedded_itemsConnection.edges:[],l=Object.values(s||[]).reduce(function(c,f){return c.concat(f.node)},[]);return Ph(o.json,e.renderOption,function(c){return yw(c,l)[0]})}return o})}}var cj={jsonToHTML:Sw};function fj(e,t,r,i){var o;if(i===void 0&&(i="en-us"),e){t=t.toLowerCase(),i=i.toLowerCase();var s=e._applied_variants||((o=e?.system)===null||o===void 0?void 0:o.applied_variants)||null;e.$=bd(e,"".concat(t,".").concat(e.uid,".").concat(i),r,i,{_applied_variants:s,shouldApplyVariant:!!s,metaKey:""})}}function bd(e,t,r,i,o){var s={};o.metaKey;var l=o.shouldApplyVariant,c=o._applied_variants;return Object.entries(e).forEach(function(f){var d=f[0],m=f[1];if(d!=="$"){var p=m&&typeof m=="object"&&m!==null&&m._metadata&&m._metadata.uid?m._metadata.uid:"",v=o.shouldApplyVariant?"".concat(o.metaKey?o.metaKey+".":"").concat(d):"";switch(p&&v&&(v=v+"."+p),typeof m){case"object":Array.isArray(m)?m.forEach(function(w,g){var S,y="".concat(d,"__").concat(g),x="".concat(d,"__parent");if(p=m&&typeof m=="object"&&w!==null&&w._metadata&&w._metadata.uid?w._metadata.uid:"",v=o.shouldApplyVariant?"".concat(o.metaKey?o.metaKey+".":"").concat(d):"",p&&v&&(v=v+"."+p),s[y]=Oh("".concat(t,".").concat(d,".").concat(g),r,{_applied_variants:c,shouldApplyVariant:l,metaKey:v}),s[x]=dj("".concat(t,".").concat(d),r),typeof w<"u"&&w!==null&&w._content_type_uid!==void 0&&w.uid!==void 0){var T=w._applied_variants||((S=w?.system)===null||S===void 0?void 0:S.applied_variants)||c,C=!!T;
28m[g].$=bd(w,"".concat(w._content_type_uid,".").concat(w.uid,".").concat(w.locale||i),r,i,{_applied_variants:T,shouldApplyVariant:C,metaKey:""})}else typeof w=="object"&&(w.$=bd(w,"".concat(t,".").concat(d,".").concat(g),r,i,{_applied_variants:c,shouldApplyVariant:l,metaKey:v}))}):m&&(m.$=bd(m,"".concat(t,".").concat(d),r,i,{_applied_variants:c,shouldApplyVariant:l,metaKey:v})),s[d]=Oh("".concat(t,".").concat(d),r,{_applied_variants:c,shouldApplyVariant:l,metaKey:v});break;default:s[d]=Oh("".concat(t,".").concat(d),r,{_applied_variants:c,shouldApplyVariant:l,metaKey:v})}}}),s}function Oh(e,t,r){if(r.shouldApplyVariant&&r._applied_variants&&r._applied_variants[r.metaKey]){var i=r._applied_variants[r.metaKey],o=("v2:"+e).split(".");o[1]=o[1]+"_"+i,e=o.join(".")}return t?{"data-cslp":e}:"data-cslp=".concat(e)}function dj(e,t){return t?{"data-cslp-parent-field":e}:"data-cslp-parent-field=".concat(e)}function pj(e){try{var t=e?.data;for(var r in t)if("items"in t[r]){var i=t[r].items;i.forEach(function(o){pw(o)})}else pw(t[r])}catch(o){console.error("Error in updating asset URL for GQL response",o)}}function pw(e){for(var t in e){var r=e[t];r instanceof Array?r.forEach(function(i){mw(i)}):r&&typeof r=="object"&&mw(r)}}function mw(e){var t,r=Aw(e);if(r){var i=(t=r?.embedded_itemsConnection)===null||t===void 0?void 0:t.edges;i.forEach(function(o){var s,l,c,f=o.node;if(f?.url&&f?.filename){if(!(!((s=f?.system)===null||s===void 0)&&s.uid))throw new Error("Asset UID not found in the response");var d=(c=(l=r?.json)===null||l===void 0?void 0:l.children)===null||c===void 0?void 0:c.find(function(m){return m.attrs["asset-uid"]===f.system.uid});d.attrs["asset-link"]=f.url}})}}function Aw(e){if(e&&e.embedded_itemsConnection)return e;for(var t in e)if(e[t]&&typeof e[t]=="object"){var r=Aw(e[t]);if(r)return r}}ur.Document=aj;ur.GQL=cj;ur.MarkType=Dt;ur.Node=Nh;ur.NodeType=Je;ur.StyleType=bs;ur.TextNode=sj;ur.addEditableTags=fj;ur.attributeToString=rj;ur.jsonToHTML=Ew;ur.render=ij;ur.renderContent=Dh;ur.updateAssetURLForGQL=pj});var RO=Object.create,hg=Object.defineProperty,IO=Object.getOwnPropertyDescriptor,vg=Object.getOwnPropertyNames,PO=Object.getPrototypeOf,MO=Object.prototype.hasOwnProperty,gg=(e,t)=>function(){return t||(0,e[vg(e)[0]])((t={exports:{}}).exports,t),t.exports},DO=(e,t,r,i)=>{if(t&&typeof t=="object"||typeof t=="function")for(let o of vg(t))!MO.call(e,o)&&o!==r&&hg(e,o,{get:()=>t[o],enumerable:!(i=IO(t,o))||i.enumerable});return e},ca=(e,t,r)=>(r=e!=null?RO(PO(e)):{},DO(t||!e||!e.__esModule?hg(r,"default",{value:e,enumerable:!0}):r,e));var NO=typeof global=="object"&&global&&global.Object===Object&&global,ic=NO;var BO=typeof self=="object"&&self&&self.Object===Object&&self,FO=ic||BO||Function("return this")(),ct=FO;var HO=ct.Symbol,kt=HO;var _g=Object.prototype,kO=_g.hasOwnProperty,UO=_g.toString,qs=kt?kt.toStringTag:void 0;function $O(e){var t=kO.call(e,qs),r=e[qs];try{e[qs]=void 0;var i=!0}catch{}var o=UO.call(e);return i&&(t?e[qs]=r:delete e[qs]),o}var yg=$O;var VO=Object.prototype,WO=VO.toString;function qO(e){return WO.call(e)}var bg=qO;var zO="[object Null]",jO="[object Undefined]",xg=kt?kt.toStringTag:void 0;function GO(e){return e==null?e===void 0?jO:zO:xg&&xg in Object(e)?yg(e):bg(e)}var tn=GO;function ZO(e){return e!=null&&typeof e=="object"}var tr=ZO;var KO="[object Symbol]";function YO(e){return typeof e=="symbol"||tr(e)&&tn(e)==KO}var Ci=YO;function XO(e,t){for(var r=-1,i=e==null?0:e.length,o=Array(i);++r<i;)o[r]=t(e[r],r,e);return o}var wg=XO;var JO=Array.isArray,dt=JO;var QO=1/0,Cg=kt?kt.prototype:void 0,Eg=Cg?Cg.toString:void 0;function Sg(e){if(typeof e=="string")return e;if(dt(e))return wg(e,Sg)+"";if(Ci(e))return Eg?Eg.call(e):"";var t=e+"";return t=="0"&&1/e==-QO?"-0":t}var Ag=Sg;var eL=/\s/;function tL(e){for(var t=e.length;t--&&eL.test(e.charAt(t)););return t}var Tg=tL;var rL=/^\s+/;function nL(e){return e&&e.slice(0,Tg(e)+1).replace(rL,"")}var Og=nL;function iL(e){var t=typeof e;return e!=null&&(t=="object"||t=="function")}var gt=iL;var Lg=NaN,oL=/^[-+]0x[0-9a-f]+$/i,aL=/^0b[01]+$/i,sL=/^0o[0-7]+$/i,lL=parseInt;function uL(e){if(typeof e=="number")return e;if(Ci(e))return Lg;if(gt(e)){var t=typeof e.valueOf=="function"?e.valueOf():e;e=gt(t)?t+"":t}if(typeof e!="string")return e===0?e:+e;e=Og(e);var r=aL.test(e);return r||sL.test(e)?lL(e.slice(2),r?2:8):oL.test(e)?Lg:+e}var zs=uL;var Rg=1/0,cL=17976931348623157e292;function fL(e){if(!e)return e===0?e:0;if(e=zs(e),e===Rg||e===-Rg){var t=e<0?-1:1;return t*cL}return e===e?e:0}var Ig=fL;function dL(e){var t=Ig(e),r=t%1;return t===t?r?t-r:t:0}var oc=dL;function pL(e){return e}var ac=pL;var mL="[object AsyncFunction]",hL="[object Function]",vL="[object GeneratorFunction]",gL="[object Proxy]";function _L(e){if(!gt(e))return!1;var t=tn(e);return t==hL||t==vL||t==mL||t==gL}var sc=_L;var yL=ct["__core-js_shared__"],lc=yL;
28var Pg=function(){var e=/[^.]+$/.exec(lc&&lc.keys&&lc.keys.IE_PROTO||"");return e?"Symbol(src)_1."+e:""}();function bL(e){return!!Pg&&Pg in e}var Mg=bL;var xL=Function.prototype,wL=xL.toString;function CL(e){if(e!=null){try{return wL.call(e)}catch{}try{return e+""}catch{}}return""}var Gn=CL;var EL=/[\\^$.*+?()[\]{}|]/g,SL=/^\[object .+?Constructor\]$/,AL=Function.prototype,TL=Object.prototype,OL=AL.toString,LL=TL.hasOwnProperty,RL=RegExp("^"+OL.call(LL).replace(EL,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function IL(e){if(!gt(e)||Mg(e))return!1;var t=sc(e)?RL:SL;return t.test(Gn(e))}var Dg=IL;function PL(e,t){return e?.[t]}var Ng=PL;function ML(e,t){var r=Ng(e,t);return Dg(r)?r:void 0}var vr=ML;var DL=vr(ct,"WeakMap"),uc=DL;var Bg=Object.create,NL=function(){function e(){}return function(t){if(!gt(t))return{};if(Bg)return Bg(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}(),Fg=NL;function BL(e,t,r){switch(r.length){case 0:return e.call(t);case 1:return e.call(t,r[0]);case 2:return e.call(t,r[0],r[1]);case 3:return e.call(t,r[0],r[1],r[2])}return e.apply(t,r)}var Hg=BL;function FL(){}var kg=FL;function HL(e,t){var r=-1,i=e.length;for(t||(t=Array(i));++r<i;)t[r]=e[r];return t}var Ug=HL;var kL=800,UL=16,$L=Date.now;function VL(e){var t=0,r=0;return function(){var i=$L(),o=UL-(i-r);if(r=i,o>0){if(++t>=kL)return arguments[0]}else t=0;return e.apply(void 0,arguments)}}var $g=VL;function WL(e){return function(){return e}}var Vg=WL;var qL=function(){try{var e=vr(Object,"defineProperty");return e({},"",{}),e}catch{}}(),fa=qL;var zL=fa?function(e,t){return fa(e,"toString",{configurable:!0,enumerable:!1,value:Vg(t),writable:!0})}:ac,Wg=zL;var jL=$g(Wg),qg=jL;function GL(e,t){for(var r=-1,i=e==null?0:e.length;++r<i&&t(e[r],r,e)!==!1;);return e}var zg=GL;function ZL(e,t,r,i){for(var o=e.length,s=r+(i?1:-1);i?s--:++s<o;)if(t(e[s],s,e))return s;return-1}var da=ZL;function KL(e){return e!==e}var jg=KL;function YL(e,t,r){for(var i=r-1,o=e.length;++i<o;)if(e[i]===t)return i;return-1}var Gg=YL;function XL(e,t,r){return t===t?Gg(e,t,r):da(e,jg,r)}var Zg=XL;function JL(e,t){var r=e==null?0:e.length;return!!r&&Zg(e,t,0)>-1}var Kg=JL;var QL=9007199254740991,eR=/^(?:0|[1-9]\d*)$/;function tR(e,t){var r=typeof e;return t=t??QL,!!t&&(r=="number"||r!="symbol"&&eR.test(e))&&e>-1&&e%1==0&&e<t}var pa=tR;function rR(e,t,r){t=="__proto__"&&fa?fa(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}var cc=rR;function nR(e,t){return e===t||e!==e&&t!==t}var ma=nR;var iR=Object.prototype,oR=iR.hasOwnProperty;function aR(e,t,r){var i=e[t];(!(oR.call(e,t)&&ma(i,r))||r===void 0&&!(t in e))&&cc(e,t,r)}var ha=aR;function sR(e,t,r,i){var o=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],f=i?i(r[c],e[c],c,r,e):void 0;f===void 0&&(f=e[c]),o?cc(r,c,f):ha(r,c,f)}return r}var Ei=sR;var Yg=Math.max;function lR(e,t,r){return t=Yg(t===void 0?e.length-1:t,0),function(){for(var i=arguments,o=-1,s=Yg(i.length-t,0),l=Array(s);++o<s;)l[o]=i[t+o];o=-1;for(var c=Array(t+1);++o<t;)c[o]=i[o];return c[t]=r(l),Hg(e,this,c)}}var Xg=lR;var uR=9007199254740991;function cR(e){return typeof e=="number"&&e>-1&&e%1==0&&e<=uR}var va=cR;function fR(e){return e!=null&&va(e.length)&&!sc(e)}var Si=fR;var dR=Object.prototype;function pR(e){var t=e&&e.constructor,r=typeof t=="function"&&t.prototype||dR;return e===r}var Ai=pR;function mR(e,t){for(var r=-1,i=Array(e);++r<e;)i[r]=t(r);return i}var Jg=mR;var hR="[object Arguments]";function vR(e){return tr(e)&&tn(e)==hR}var qp=vR;var Qg=Object.prototype,gR=Qg.hasOwnProperty,_R=Qg.propertyIsEnumerable,yR=qp(function(){return arguments}())?qp:function(e){return tr(e)&&gR.call(e,"callee")&&!_R.call(e,"callee")},Ti=yR;function bR(){return!1}var e2=bR;var n2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,t2=n2&&typeof module=="object"&&module&&!module.nodeType&&module,xR=t2&&t2.exports===n2,r2=xR?ct.Buffer:void 0,wR=r2?r2.isBuffer:void 0,CR=wR||e2,Zn=CR;var ER="[object Arguments]",SR="[object Array]",AR="[object Boolean]",TR="[object Date]",OR="[object Error]",LR="[object Function]",RR="[object Map]",IR="[object Number]",PR="[object Object]",MR="[object RegExp]",DR="[object Set]",NR="[object String]",BR="[object WeakMap]",FR="[object ArrayBuffer]",HR="[object DataView]",kR="[object Float32Array]",UR="[object Float64Array
28]",$R="[object Int8Array]",VR="[object Int16Array]",WR="[object Int32Array]",qR="[object Uint8Array]",zR="[object Uint8ClampedArray]",jR="[object Uint16Array]",GR="[object Uint32Array]",st={};st[kR]=st[UR]=st[$R]=st[VR]=st[WR]=st[qR]=st[zR]=st[jR]=st[GR]=!0;st[ER]=st[SR]=st[FR]=st[AR]=st[HR]=st[TR]=st[OR]=st[LR]=st[RR]=st[IR]=st[PR]=st[MR]=st[DR]=st[NR]=st[BR]=!1;function ZR(e){return tr(e)&&va(e.length)&&!!st[tn(e)]}var i2=ZR;function KR(e){return function(t){return e(t)}}var ga=KR;var o2=typeof exports=="object"&&exports&&!exports.nodeType&&exports,js=o2&&typeof module=="object"&&module&&!module.nodeType&&module,YR=js&&js.exports===o2,zp=YR&&ic.process,XR=function(){try{var e=js&&js.require&&js.require("util").types;return e||zp&&zp.binding&&zp.binding("util")}catch{}}(),Kn=XR;var a2=Kn&&Kn.isTypedArray,JR=a2?ga(a2):i2,_a=JR;var QR=Object.prototype,eI=QR.hasOwnProperty;function tI(e,t){var r=dt(e),i=!r&&Ti(e),o=!r&&!i&&Zn(e),s=!r&&!i&&!o&&_a(e),l=r||i||o||s,c=l?Jg(e.length,String):[],f=c.length;for(var d in e)(t||eI.call(e,d))&&!(l&&(d=="length"||o&&(d=="offset"||d=="parent")||s&&(d=="buffer"||d=="byteLength"||d=="byteOffset")||pa(d,f)))&&c.push(d);return c}var fc=tI;function rI(e,t){return function(r){return e(t(r))}}var dc=rI;var nI=dc(Object.keys,Object),s2=nI;var iI=Object.prototype,oI=iI.hasOwnProperty;function aI(e){if(!Ai(e))return s2(e);var t=[];for(var r in Object(e))oI.call(e,r)&&r!="constructor"&&t.push(r);return t}var pc=aI;function sI(e){return Si(e)?fc(e):pc(e)}var yn=sI;function lI(e){var t=[];if(e!=null)for(var r in Object(e))t.push(r);return t}var l2=lI;var uI=Object.prototype,cI=uI.hasOwnProperty;function fI(e){if(!gt(e))return l2(e);var t=Ai(e),r=[];for(var i in e)i=="constructor"&&(t||!cI.call(e,i))||r.push(i);return r}var u2=fI;function dI(e){return Si(e)?fc(e,!0):u2(e)}var ya=dI;var pI=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,mI=/^\w*$/;function hI(e,t){if(dt(e))return!1;var r=typeof e;return r=="number"||r=="symbol"||r=="boolean"||e==null||Ci(e)?!0:mI.test(e)||!pI.test(e)||t!=null&&e in Object(t)}var ba=hI;var vI=vr(Object,"create"),Yn=vI;function gI(){this.__data__=Yn?Yn(null):{},this.size=0}var c2=gI;function _I(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}var f2=_I;var yI="__lodash_hash_undefined__",bI=Object.prototype,xI=bI.hasOwnProperty;function wI(e){var t=this.__data__;if(Yn){var r=t[e];return r===yI?void 0:r}return xI.call(t,e)?t[e]:void 0}var d2=wI;var CI=Object.prototype,EI=CI.hasOwnProperty;function SI(e){var t=this.__data__;return Yn?t[e]!==void 0:EI.call(t,e)}var p2=SI;var AI="__lodash_hash_undefined__";function TI(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=Yn&&t===void 0?AI:t,this}var m2=TI;function xa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}xa.prototype.clear=c2;xa.prototype.delete=f2;xa.prototype.get=d2;xa.prototype.has=p2;xa.prototype.set=m2;var jp=xa;function OI(){this.__data__=[],this.size=0}var h2=OI;function LI(e,t){for(var r=e.length;r--;)if(ma(e[r][0],t))return r;return-1}var Oi=LI;var RI=Array.prototype,II=RI.splice;function PI(e){var t=this.__data__,r=Oi(t,e);if(r<0)return!1;var i=t.length-1;return r==i?t.pop():II.call(t,r,1),--this.size,!0}var v2=PI;function MI(e){var t=this.__data__,r=Oi(t,e);return r<0?void 0:t[r][1]}var g2=MI;function DI(e){return Oi(this.__data__,e)>-1}var _2=DI;function NI(e,t){var r=this.__data__,i=Oi(r,e);return i<0?(++this.size,r.push([e,t])):r[i][1]=t,this}var y2=NI;function wa(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}wa.prototype.clear=h2;wa.prototype.delete=v2;wa.prototype.get=g2;wa.prototype.has=_2;wa.prototype.set=y2;var Li=wa;var BI=vr(ct,"Map"),Ri=BI;function FI(){this.size=0,this.__data__={hash:new jp,map:new(Ri||Li),string:new jp}}var b2=FI;function HI(e){var t=typeof e;return t=="string"||t=="number"||t=="symbol"||t=="boolean"?e!=="__proto__":e===null}var x2=HI;function kI(e,t){var r=e.__data__;return x2(t)?r[typeof t=="string"?"string":"hash"]:r.map}var Ii=kI;function UI(e){var t=Ii(this,e).delete(e);return this.size-=t?1:0,t}var w2=UI;function $I(e){return Ii(this,e).get(e)}var C2=$I;function VI(e){return Ii(this,e).has(e)}var E2=VI;function WI(e,t){var r=Ii(this,e),i=r.size;return r.set(e,t),this.size+=r.size==i?0:1,this}var S2=WI;function Ca(e){var t=-1,r=e==null?0:e.length;for(this.clear();++t<r;){var i=e[t];this.set(i[0],i[1])}}Ca.prototype.clear=b2;Ca.prototype.delete=w2;Ca.prototype.get=C2;Ca.prototype.has=E2;Ca.prototype.set=S2;var mo=Ca;var qI="Expected a function";function Gp(e,t){if(typeof e!="function"||t!=null&&typeof t!="function")throw new TypeError(qI);var r=function(){var i=arguments,o=t?t.apply(this,i):i[0],s=r.cache;if(s.has(o))return s.get(o);var l=e.apply(this,i);return r.cache=s.set(o,l)||s,l};return r.cache=new(Gp.Cache||mo),r}Gp.Cache=mo;var A2=Gp;var zI=500;function jI(e){var t=A2(e,function(i){return r.size===zI&&r.clear(),i}),r=t.cache;return t}var T2=jI;var GI=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,ZI=/\\(\\)?/g,KI=T2(function(e){var t=[];
28return e.charCodeAt(0)===46&&t.push(""),e.replace(GI,function(r,i,o,s){t.push(o?s.replace(ZI,"$1"):i||r)}),t}),O2=KI;function YI(e){return e==null?"":Ag(e)}var Wr=YI;function XI(e,t){return dt(e)?e:ba(e,t)?[e]:O2(Wr(e))}var Pi=XI;var JI=1/0;function QI(e){if(typeof e=="string"||Ci(e))return e;var t=e+"";return t=="0"&&1/e==-JI?"-0":t}var bn=QI;function eP(e,t){t=Pi(t,e);for(var r=0,i=t.length;e!=null&&r<i;)e=e[bn(t[r++])];return r&&r==i?e:void 0}var Ea=eP;function tP(e,t,r){var i=e==null?void 0:Ea(e,t);return i===void 0?r:i}var L2=tP;function rP(e,t){for(var r=-1,i=t.length,o=e.length;++r<i;)e[o+r]=t[r];return e}var Sa=rP;var R2=kt?kt.isConcatSpreadable:void 0;function nP(e){return dt(e)||Ti(e)||!!(R2&&e&&e[R2])}var I2=nP;function P2(e,t,r,i,o){var s=-1,l=e.length;for(r||(r=I2),o||(o=[]);++s<l;){var c=e[s];t>0&&r(c)?t>1?P2(c,t-1,r,i,o):Sa(o,c):i||(o[o.length]=c)}return o}var M2=P2;function iP(e){var t=e==null?0:e.length;return t?M2(e,1):[]}var D2=iP;function oP(e){return qg(Xg(e,void 0,D2),e+"")}var N2=oP;var aP=dc(Object.getPrototypeOf,Object),mc=aP;function sP(e,t,r){var i=-1,o=e.length;t<0&&(t=-t>o?0:o+t),r=r>o?o:r,r<0&&(r+=o),o=t>r?0:r-t>>>0,t>>>=0;for(var s=Array(o);++i<o;)s[i]=e[i+t];return s}var B2=sP;function lP(e,t,r){var i=e.length;return r=r===void 0?i:r,!t&&r>=i?e:B2(e,t,r)}var F2=lP;var uP="\\ud800-\\udfff",cP="\\u0300-\\u036f",fP="\\ufe20-\\ufe2f",dP="\\u20d0-\\u20ff",pP=cP+fP+dP,mP="\\ufe0e\\ufe0f",hP="\\u200d",vP=Reg
28Exp("["+hP+uP+pP+mP+"]");function gP(e){return vP.test(e)}var hc=gP;function _P(e){return e.split("")}var H2=_P;var k2="\\ud800-\\udfff",yP="\\u0300-\\u036f",bP="\\ufe20-\\ufe2f",xP="\\u20d0-\\u20ff",wP=yP+bP+xP,CP="\\ufe0e\\ufe0f",EP="["+k2+"]",Zp="["+wP+"]",Kp="\\ud83c[\\udffb-\\udfff]",SP="(?:"+Zp+"|"+Kp+")",U2="[^"+k2+"]",$2="(?:\\ud83c[\\udde6-\\uddff]){2}",V2="[\\ud800-\\udbff][\\udc00-\\udfff]",AP="\\u200d",W2=SP+"?",q2="["+CP+"]?",TP="(?:"+AP+"(?:"+[U2,$2,V2].join("|")+")"+q2+W2+")*",OP=q2+W2+TP,LP="(?:"+[U2+Zp+"?",Zp,$2,V2,EP].join("|")+")",RP=RegExp(Kp+"(?="+Kp+")|"+LP+OP,"g");function IP(e){return e.match(RP)||[]}var z2=IP;function PP(e){return hc(e)?z2(e):H2(e)}var j2=PP;function MP(e){return function(t){t=Wr(t);var r=hc(t)?j2(t):void 0,i=r?r[0]:t.charAt(0),o=r?F2(r,1).join(""):t.slice(1);return i[e]()+o}}var G2=MP;var DP=G2("toUpperCase"),vc=DP;function NP(e){return vc(Wr(e).toLowerCase())}var Z2=NP;function BP(e,t,r,i){var o=-1,s=e==null?0:e.length;for(i&&s&&(r=e[++o]);++o<s;)r=t(r,e[o],o,e);return r}var K2=BP;function FP(e){return function(t){return e?.[t]}}var Y2=FP;var HP={\u00C0:"A",\u00C1:"A",\u00C2:"A",\u00C3:"A",\u00C4:"A",\u00C5:"A",\u00E0:"a",\u00E1:"a",\u00E2:"a",\u00E3:"a",\u00E4:"a",\u00E5:"a",\u00C7:"C",\u00E7:"c",\u00D0:"D",\u00F0:"d",\u00C8:"E",\u00C9:"E",\u00CA:"E",\u00CB:"E",\u00E8:"e",\u00E9:"e",\u00EA:"e",\u00EB:"e",\u00CC:"I",\u00CD:"I",\u00CE:"I",\u00CF:"I",\u00EC:"i",\u00ED:"i",\u00EE:"i",\u00EF:"i",\u00D1:"N",\u00F1:"n",\u00D2:"O",\u00D3:"O",\u00D4:"O",\u00D5:"O",\u00D6:"O",\u00D8:"O",\u00F2:"o",\u00F3:"o",\u00F4:"o",\u00F5:"o",\u00F6:"o",\u00F8:"o",\u00D9:"U",\u00DA:"U",\u00DB:"U",\u00DC:"U",\u00F9:"u",\u00FA:"u",\u00FB:"u",\u00FC:"u",\u00DD:"Y",\u00FD:"y",\u00FF:"y",\u00C6:"Ae",\u00E6:"ae",\u00DE:"Th",\u00FE:"th",\u00DF:"ss",\u0100:"A",\u0102:"A",\u0104:"A",\u0101:"a",\u0103:"a",\u0105:"a",\u0106:"C",\u0108:"C",\u010A:"C",\u010C:"C",\u0107:"c",\u0109:"c",\u010B:"c",\u010D:"c",\u010E:"D",\u0110:"D",\u010F:"d",\u0111:"d",\u0112:"E",\u0114:"E",\u0116:"E",\u0118:"E",\u011A:"E",\u0113:"e",\u0115:"e",\u0117:"e",\u0119:"e",\u011B:"e",\u011C:"G",\u011E:"G",\u0120:"G",\u0122:"G",\u011D:"g",\u011F:"g",\u0121:"g",\u0123:"g",\u0124:"H",\u0126:"H",\u0125:"h",\u0127:"h",\u0128:"I",\u012A:"I",\u012C:"I",\u012E:"I",\u0130:"I",\u0129:"i",\u012B:"i",\u012D:"i",\u012F:"i",\u0131:"i",\u0134:"J",\u0135:"j",\u0136:"K",\u0137:"k",\u0138:"k",\u0139:"L",\u013B:"L",\u013D:"L",\u013F:"L",\u0141:"L",\u013A:"l",\u013C:"l",\u013E:"l",\u0140:"l",\u0142:"l",\u0143:"N",\u0145:"N",\u0147:"N",\u014A:"N",\u0144:"n",\u0146:"n",\u0148:"n",\u014B:"n",\u014C:"O",\u014E:"O",\u0150:"O",\u014D:"o",\u014F:"o",\u0151:"o",\u0154:"R",\u0156:"R",\u0158:"R",\u0155:"r",\u0157:"r",\u0159:"r",\u015A:"S",\u015C:"S",\u015E:"S",\u0160:"S",\u015B:"s",\u015D:"s",\u015F:"s",\u0161:"s",\u0162:"T",\u0164:"T",\u0166:"T",\u0163:"t",\u0165:"t",\u0167:"t",\u0168:"U",\u016A:"U",\u016C:"U",\u016E:"U",\u0170:"U",\u0172:"U",\u0169:"u",\u016B:"u",\u016D:"u",\u016F:"u",\u0171:"u",\u0173:"u",\u0174:"W",\u0175:"w",\u0176:"Y",\u0177:"y",\u0178:"Y",\u0179:"Z",\u017B:"Z",\u017D:"Z",\u017A:"z",\u017C:"z",\u017E:"z",\u0132:"IJ",\u0133:"ij",\u0152:"Oe",\u0153:"oe",\u0149:"'n",\u017F:"s"},kP=Y2(HP),X2=kP;
28var UP=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,$P="\\u0300-\\u036f",VP="\\ufe20-\\ufe2f",WP="\\u20d0-\\u20ff",qP=$P+VP+WP,zP="["+qP+"]",jP=RegExp(zP,"g");function GP(e){return e=Wr(e),e&&e.replace(UP,X2).replace(jP,"")}var J2=GP;var ZP=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;function KP(e){return e.match(ZP)||[]}var Q2=KP;var YP=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;function XP(e){return YP.test(e)}var e_=XP;var o_="\\ud800-\\udfff",JP="\\u0300-\\u036f",QP="\\ufe20-\\ufe2f",eM="\\u20d0-\\u20ff",tM=JP+QP+eM,a_="\\u2700-\\u27bf",s_="a-z\\xdf-\\xf6\\xf8-\\xff",rM="\\xac\\xb1\\xd7\\xf7",nM="\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf",iM="\\u2000-\\u206f",oM=" \\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",l_="A-Z\\xc0-\\xd6\\xd8-\\xde",aM="\\ufe0e\\ufe0f",u_=rM+nM+iM+oM,c_="['\u2019]",t_="["+u_+"]",sM="["+tM+"]",f_="\\d+",lM="["+a_+"]",d_="["+s_+"]",p_="[^"+o_+u_+f_+a_+s_+l_+"]",uM="\\ud83c[\\udffb-\\udfff]",cM="(?:"+sM+"|"+uM+")",fM="[^"+o_+"]",m_="(?:\\ud83c[\\udde6-\\uddff]){2}",h_="[\\ud800-\\udbff][\\udc00-\\udfff]",Aa="["+l_+"]",dM="\\u200d",r_="(?:"+d_+"|"+p_+")",pM="(?:"+Aa+"|"+p_+")",n_="(?:"+c_+"(?:d|ll|m|re|s|t|ve))?",i_="(?:"+c_+"(?:D|LL|M|RE|S|T|VE))?",v_=cM+"?",g_="["+aM+"]?",mM="(?:"+dM+"(?:"+[fM,m_,h_].join("|")+")"+g_+v_+")*",hM="\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",vM="\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])",gM=g_+v_+mM,_M="(?:"+[lM,m_,h_].join("|")+")"+gM,yM=RegExp([Aa+"?"+d_+"+"+n_+"(?="+[t_,Aa,"$"].join("|")+")",pM+"+"+i_+"(?="+[t_,Aa+r_,"$"].join("|")+")",Aa+"?"+r_+"+"+n_,Aa+"+"+i_,vM,hM,f_,_M].join("|"),"g");function bM(e){return e.match(yM)||[]}var __=bM;function xM(e,t,r){return e=Wr(e),t=r?void 0:t,t===void 0?e_(e)?__(e):Q2(e):e.match(t)||[]}var y_=xM;var wM="['\u2019]",CM=RegExp(wM,"g");function EM(e){return function(t){return K2(y_(J2(t).replace(CM,"")),e,"")}}var gc=EM;var SM=gc(function(e,t,r){return t=t.toLowerCase(),e+(r?Z2(t):t)}),Yp=SM;function AM(){this.__data__=new Li,this.size=0}var b_=AM;function TM(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}var x_=TM;function OM(e){return this.__data__.get(e)}var w_=OM;function LM(e){return this.__data__.has(e)}var C_=LM;var RM=200;function IM(e,t){var r=this.__data__;if(r instanceof Li){var i=r.__data__;if(!Ri||i.length<RM-1)return i.push([e,t]),this.size=++r.size,this;r=this.__data__=new mo(i)}return r.set(e,t),this.size=r.size,this}var E_=IM;function Ta(e){var t=this.__data__=new Li(e);this.size=t.size}Ta.prototype.clear=b_;Ta.prototype.delete=x_;Ta.prototype.get=w_;Ta.prototype.has=C_;Ta.prototype.set=E_;var Mi=Ta;function PM(e,t){return e&&Ei(t,yn(t),e)}var S_=PM;function MM(e,t){return e&&Ei(t,ya(t),e)}var A_=MM;var R_=typeof exports=="object"&&exports&&!exports.nodeType&&exports,T_=R_&&typeof module=="object"&&module&&!module.nodeType&&module,DM=T_&&T_.exports===R_,O_=DM?ct.Buffer:void 0,L_=O_?O_.allocUnsafe:void 0;function NM(e,t){if(t)return e.slice();var r=e.length,i=L_?L_(r):new e.constructor(r);return e.copy(i),i}var I_=NM;function BM(e,t){for(var r=-1,i=e==null?0:e.length,o=0,s=[];++r<i;){var l=e[r];t(l,r,e)&&(s[o++]=l)}return s}var P_=BM;function FM(){return[]}var _c=FM;var HM=Object.prototype,kM=HM.propertyIsEnumerable,M_=Object.getOwnPropertySymbols,UM=M_?function(e){return e==null?[]:(e=Object(e),P_(M_(e),function(t){return kM.call(e,t)}))}:_c,Oa=UM;function $M(e,t){return Ei(e,Oa(e),t)}var D_=$M;var VM=Object.getOwnPropertySymbols,WM=VM?function(e){for(var t=[];e;)Sa(t,Oa(e)),e=mc(e);return t}:_c,yc=WM;function qM(e,t){return Ei(e,yc(e),t)}var N_=qM;function zM(e,t,r){var i=t(e);return dt(e)?i:Sa(i,r(e))}var bc=zM;function jM(e){return bc(e,yn,Oa)}var Gs=jM;function GM(e){return bc(e,ya,yc)}var B_=GM;var ZM=vr(ct,"DataView"),xc=ZM;var KM=vr(ct,"Promise"),wc=KM;var YM=vr(ct,"Set"),Di=YM;var F_="[object Map]",XM="[object Object]",H_="[object Promise]",k_="[object Set]",U_="[object WeakMap]",$_="[object DataView]",JM=Gn(xc),QM=Gn(Ri),eD=Gn(wc),tD=Gn(Di),rD=Gn(uc),ho=tn;(xc&&ho(new xc(new ArrayBuffer(1)))!=$_||Ri&&ho(new Ri)!=F_||wc&&ho(wc.resolve())!=H_||Di&&ho(new Di)!=k_||uc&&ho(new uc)!=U_)&&(ho=function(e){var t=tn(e),r=t==XM?e.constructor:void 0,i=r?Gn(r):"";if(i)switch(i){case JM:return $_;case QM:return F_;case eD:return H_;case tD:return k_;case rD:return U_}return t});var rn=ho;var nD=Object.prototype,iD=nD.hasOwnProperty;function oD(e){var t=e.length,r=new e.constructor(t);return t&&typeof e[0]=="string"&&iD.call(e,"index")&&(r.index=e.index,r.input
vendor: 6,316 bytes, line 28
28=e.input),r}var V_=oD;var aD=ct.Uint8Array,La=aD;function sD(e){var t=new e.constructor(e.byteLength);return new La(t).set(new La(e)),t}var Ra=sD;function lD(e,t){var r=t?Ra(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}var W_=lD;var uD=/\w*$/;function cD(e){var t=new e.constructor(e.source,uD.exec(e));return t.lastIndex=e.lastIndex,t}var q_=cD;var z_=kt?kt.prototype:void 0,j_=z_?z_.valueOf:void 0;function fD(e){return j_?Object(j_.call(e)):{}}var G_=fD;function dD(e,t){var r=t?Ra(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}var Z_=dD;var pD="[object Boolean]",mD="[object Date]",hD="[object Map]",vD="[object Number]",gD="[object RegExp]",_D="[object Set]",yD="[object String]",bD="[object Symbol]",xD="[object ArrayBuffer]",wD="[object DataView]",CD="[object Float32Array]",ED="[object Float64Array]",SD="[object Int8Array]",AD="[object Int16Array]",TD="[object Int32Array]",OD="[object Uint8Array]",LD="[object Uint8ClampedArray]",RD="[object Uint16Array]",ID="[object Uint32Array]";function PD(e,t,r){var i=e.constructor;switch(t){case xD:return Ra(e);case pD:case mD:return new i(+e);case wD:return W_(e,r);case CD:case ED:case SD:case AD:case TD:case OD:case LD:case RD:case ID:return Z_(e,r);case hD:return new i;case vD:case yD:return new i(e);case gD:return q_(e);case _D:return new i;case bD:return G_(e)}}var K_=PD;function MD(e){return typeof e.constructor=="function"&&!Ai(e)?Fg(mc(e)):{}}var Y_=MD;var DD="[object Map]";function ND(e){return tr(e)&&rn(e)==DD}var X_=ND;var J_=Kn&&Kn.isMap,BD=J_?ga(J_):X_,Q_=BD;var FD="[object Set]";function HD(e){return tr(e)&&rn(e)==FD}var e5=HD;var t5=Kn&&Kn.isSet,kD=t5?ga(t5):e5,r5=kD;var UD=1,$D=2,VD=4,n5="[object Arguments]",WD="[object Array]",qD="[object Boolean]",zD="[object Date]",jD="[object Error]",i5="[object Function]",GD="[object GeneratorFunction]",ZD="[object Map]",KD="[object Number]",o5="[object Object]",YD="[object RegExp]",XD="[object Set]",JD="[object String]",QD="[object Symbol]",eN="[object WeakMap]",tN="[object ArrayBuffer]",rN="[object DataView]",nN="[object Float32Array]",iN="[object Float64Array]",oN="[object Int8Array]",aN="[object Int16Array]",sN="[object Int32Array]",lN="[object Uint8Array]",uN="[object Uint8ClampedArray]",cN="[object Uint16Array]",fN="[object Uint32Array]",ot={};ot[n5]=ot[WD]=ot[tN]=ot[rN]=ot[qD]=ot[zD]=ot[nN]=ot[iN]=ot[oN]=ot[aN]=ot[sN]=ot[ZD]=ot[KD]=ot[o5]=ot[YD]=ot[XD]=ot[JD]=ot[QD]=ot[lN]=ot[uN]=ot[cN]=ot[fN]=!0;ot[jD]=ot[i5]=ot[eN]=!1;function Cc(e,t,r,i,o,s){var l,c=t&UD,f=t&$D,d=t&VD;if(r&&(l=o?r(e,i,o,s):r(e)),l!==void 0)return l;if(!gt(e))return e;var m=dt(e);if(m){if(l=V_(e),!c)return Ug(e,l)}else{var p=rn(e),v=p==i5||p==GD;if(Zn(e))return I_(e,c);if(p==o5||p==n5||v&&!o){if(l=f||v?{}:Y_(e),!c)return f?N_(e,A_(l,e)):D_(e,S_(l,e))}else{if(!ot[p])return o?e:{};l=K_(e,p,c)}}s||(s=new Mi);var w=s.get(e);if(w)return w;s.set(e,l),r5(e)?e.forEach(function(y){l.add(Cc(y,t,r,y,e,s))}):Q_(e)&&e.forEach(function(y,x){l.set(x,Cc(y,t,r,x,e,s))});var g=d?f?B_:Gs:f?ya:yn,S=m?void 0:g(e);return zg(S||e,function(y,x){S&&(x=y,y=e[x]),ha(l,x,Cc(y,t,r,x,e,s))}),l}var a5=Cc;var dN=1,pN=4;function mN(e){return a5(e,dN|pN)}var Zs=mN;var hN="__lodash_hash_undefined__";function vN(e){return this.__data__.set(e,hN),this}var s5=vN;function gN(e){return this.__data__.has(e)}var l5=gN;function Ec(e){var t=-1,r=e==null?0:e.length;for(this.__data__=new mo;++t<r;)this.add(e[t])}Ec.prototype.add=Ec.prototype.push=s5;Ec.prototype.has=l5;var Sc=Ec;function _N(e,t){for(var r=-1,i=e==null?0:e.length;++r<i;)if(t(e[r],r,e))return!0;return!1}var u5=_N;function yN(e,t){return e.has(t)}var Ac=yN;var bN=1,xN=2;function wN(e,t,r,i,o,s){var l=r&bN,c=e.length,f=t.length;if(c!=f&&!(l&&f>c))return!1;var d=s.get(e),m=s.get(t);if(d&&m)return d==t&&m==e;var p=-1,v=!0,w=r&xN?new Sc:void 0;for(s.set(e,t),s.set(t,e);++p<c;){var g=e[p],S=t[p];if(i)var y=l?i(S,g,p,t,e,s):i(g,S,p,e,t,s);if(y!==void 0){if(y)continue;v=!1;break}if(w){if(!u5(t,function(x,T){if(!Ac(w,T)&&(g===x||o(g,x,r,i,s)))return w.push(T)})){v=!1;break}}else if(!(g===S||o(g,S,r,i,s))){v=!1;break}}return s.delete(e),s.delete(t),v}var Tc=wN;function CN(e){var t=-1,r=Array(e.size);return e.forEach(function(i,o){r[++t]=[o,i]}),r}var c5=CN;function EN(e){var t=-1,r=Array(e.size);return e.forEach(function(i){r[++t]=i}),r}var Ia=EN;var SN=1,AN=2,TN="[object Boolean]",ON="[object Date]",LN="[object Error]",RN="[object Map]",IN="[object Number]",PN="[object RegExp]",MN="[object Set]",DN="[object String]",NN="[object Symbol]",BN="[object ArrayBuffer]",FN="[object DataView]",f5=kt?kt.prototype:void 0,Xp=f5?f5.valueOf:void 0;function HN(e,t,r,i,o,s,l){switch(r){case FN:if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case BN:return!(e.byteLength!=t.byteLength||!s(new La(e),new La(t)));case TN:case ON:case IN:return ma(+e,+t);case LN:return e.name==t.name&&e.message==t.message;case PN:case DN:return e==t+"";case RN:var c=c5;case MN:var f=i&SN;if(c||(c=Ia),e.size!=t.size&&!f)return!1;var d=l.get(e);if(d)return d==t;i|=AN,l.set(e,t);var m=Tc(c(e),c(t),i,o,s,l);return l.delete(e),m;case NN:if(Xp)return Xp.call(e)==Xp.call(t)}return!1}var d5=HN;var kN=1,UN=Object.prototype,$N=UN.hasOwnProperty;function VN(e,t,r,i,o,s){var l=r&kN,c=Gs(e),f=c.length,d=Gs(t),m=d.length;if(f!=m&&!l)return!1;for(var p=f;p--;){var v=c[p];if(!(l?v in t:$N.call(t,v)))return!1}var w=s.get(e),g=s.get(t);if(w&&g)return w==t&&g==e;var S=!0;s.set(e,t),s.set(t,e);for(var y=l;++p<f;){v=c[p];var x=e[v],T=t[v];if(i)var C=l?i(T,x,v,t,e,s):i(x,T,v,e,t,s);if(!(C===void 0?x===T||o(x,T,r,i,s):C)){S=!1;break}y||(y=v=="constructor")}if(S&&!y){var O=e.constructor,I=t.constructor;O!=I&&"constructor"in e&&"constructor"in t&&!(typeof O=="function"&&O instanceof O&&typeof I=="function"&&I instanceof I)&&(S=!1)}return s.delete(e),s.delete(t),S}var p5=VN;var WN=1,m5="[object Arguments]",h5="[object Array]",Oc="[object Object]",qN=Object.prototype,v5=qN.hasOwnProperty;function zN(e,t,r,i,o,s){var l=dt(e),c=dt(t),f=l?h5:rn(e),d=c?h5:rn(t);f=f==m5?Oc:f,d=d==m5?Oc:d;var m=f==Oc,p=d==Oc,v=f==d;if(v&&Zn(e)){if(!Zn(t))return!1;l=!0,m=!1}if(v&&!m)return s||(s=new Mi),l||_a(e)?Tc(e,t,r,i,o,s):d5(e,t,f,r,i,o,s);if(!(r&WN)){var w=m&&v5.call(e,"__wrapped__"),g=p&&v5.call(t,"__wrapped__");
28if(w||g){var S=w?e.value():e,y=g?t.value():t;return s||(s=new Mi),o(S,y,r,i,s)}}return v?(s||(s=new Mi),p5(e,t,r,i,o,s)):!1}var g5=zN;function _5(e,t,r,i,o){return e===t?!0:e==null||t==null||!tr(e)&&!tr(t)?e!==e&&t!==t:g5(e,t,r,i,_5,o)}var Pa=_5;var jN=1,GN=2;function ZN(e,t,r,i){var o=r.length,s=o,l=!i;if(e==null)return!s;for(e=Object(e);o--;){var c=r[o];if(l&&c[2]?c[1]!==e[c[0]]:!(c[0]in e))return!1}for(;++o<s;){c=r[o];var f=c[0],d=e[f],m=c[1];if(l&&c[2]){if(d===void 0&&!(f in e))return!1}else{var p=new Mi;if(i)var v=i(d,m,f,e,t,p);if(!(v===void 0?Pa(m,d,jN|GN,i,p):v))return!1}}return!0}var y5=ZN;function KN(e){return e===e&&!gt(e)}var Lc=KN;function YN(e){for(var t=yn(e),r=t.length;r--;){var i=t[r],o=e[i];t[r]=[i,o,Lc(o)]}return t}var b5=YN;function XN(e,t){return function(r){return r==null?!1:r[e]===t&&(t!==void 0||e in Object(r))}}var Rc=XN;function JN(e){var t=b5(e);return t.length==1&&t[0][2]?Rc(t[0][0],t[0][1]):function(r){return r===e||y5(r,e,t)}}var x5=JN;function QN(e,t){return e!=null&&t in Object(e)}var w5=QN;function eB(e,t,r){t=Pi(t,e);for(var i=-1,o=t.length,s=!1;++i<o;){var l=bn(t[i]);if(!(s=e!=null&&r(e,l)))break;e=e[l]}return s||++i!=o?s:(o=e==null?0:e.length,!!o&&va(o)&&pa(l,o)&&(dt(e)||Ti(e)))}var Ic=eB;function tB(e,t){return e!=null&&Ic(e,t,w5)}var Pc=tB;var rB=1,nB=2;function iB(e,t){return ba(e)&&Lc(t)?Rc(bn(e),t):function(r){var i=L2(r,e);return i===void 0&&i===t?Pc(r,e):Pa(t,i,rB|nB)}}var C5=iB;function oB(e){return function(t){return t?.[e]}}var E5=oB;function aB(e){return function(t){return Ea(t,e)}}var S5=aB;function sB(e){return ba(e)?E5(bn(e)):S5(e)}var A5=sB;function lB(e){return typeof e=="function"?e:e==null?ac:typeof e=="object"?dt(e)?C5(e[0],e[1]):x5(e):A5(e)}var Ni=lB;var uB=function(){return ct.Date.now()},Mc=uB;var cB="Expected a function",fB=Math.max,dB=Math.min;function pB(e,t,r){var i,o,s,l,c,f,d=0,m=!1,p=!1,v=!0;if(typeof e!="function")throw new TypeError(cB);t=zs(t)||0,gt(r)&&(m=!!r.leading,p="maxWait"in r,s=p?fB(zs(r.maxWait)||0,t):s,v="trailing"in r?!!r.trailing:v);function w(M){var $=i,k=o;return i=o=void 0,d=M,l=e.apply(k,$),l}function g(M){return d=M,c=setTimeout(x,t),m?w(M):l}function S(M){var $=M-f,k=M-d,H=t-$;return p?dB(H,s-k):H}function y(M){var $=M-f,k=M-d;return f===void 0||$>=t||$<0||p&&k>=s}function x(){var M=Mc();if(y(M))return T(M);c=setTimeout(x,S(M))}function T(M){return c=void 0,v&&i?w(M):(i=o=void 0,l)}function C(){c!==void 0&&clearTimeout(c),d=0,i=f=o=c=void 0}function O(){return c===void 0?l:T(Mc())}function I(){var M=Mc(),$=y(M);if(i=arguments,o=this,f=M,$){if(c===void 0)return g(f);if(p)return clearTimeout(c),c=setTimeout(x,t),w(f)}return c===void 0&&(c=setTimeout(x,t)),l}return I.cancel=C,I.flush=O,I}var nn=pB;function mB(e,t,r){for(var i=-1,o=e==null?0:e.length;++i<o;)if(r(t,e[i]))return!0;return!1}var T5=mB;function hB(e){return function(t,r,i){var o=Object(t);if(!Si(t)){var s=Ni(r,3);t=yn(t),r=function(c){return s(o[c],c,o)}}var l=e(t,r,i);return l>-1?o[s?t[l]:l]:void 0}}var O5=hB;var vB=Math.max;function gB(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=r==null?0:oc(r);return o<0&&(o=vB(i+o,0)),da(e,Ni(t,3),o)}var Jp=gB;var _B=Math.max,yB=Math.min;function bB(e,t,r){var i=e==null?0:e.length;if(!i)return-1;var o=i-1;return r!==void 0&&(o=oc(r),o=r<0?_B(i+o,0):yB(o,i-1)),da(e,Ni(t,3),o,!0)}var Ks=bB;var xB=O5(Ks),Qp=xB;var wB=Object.prototype,CB=wB.hasOwnProperty;
28function EB(e,t){return e!=null&&CB.call(e,t)}var L5=EB;function SB(e,t){return e!=null&&Ic(e,t,L5)}var Ys=SB;var AB="[object Map]",TB="[object Set]",OB=Object.prototype,LB=OB.hasOwnProperty;function RB(e){if(e==null)return!0;if(Si(e)&&(dt(e)||typeof e=="string"||typeof e.splice=="function"||Zn(e)||_a(e)||Ti(e)))return!e.length;var t=rn(e);if(t==AB||t==TB)return!e.size;if(Ai(e))return!pc(e).length;for(var r in e)if(LB.call(e,r))return!1;return!0}var e1=RB;function IB(e,t){return Pa(e,t)}var Xs=IB;var PB=ct.isFinite;function MB(e){return typeof e=="number"&&PB(e)}var Ma=MB;function DB(e){return e==null}var Dc=DB;function NB(e,t,r,i){if(!gt(e))return e;t=Pi(t,e);for(var o=-1,s=t.length,l=s-1,c=e;c!=null&&++o<s;){var f=bn(t[o]),d=r;if(f==="__proto__"||f==="constructor"||f==="prototype")return e;if(o!=l){var m=c[f];d=i?i(m,f,c):void 0,d===void 0&&(d=gt(m)?m:pa(t[o+1])?[]:{})}ha(c,f,d),c=c[f]}return e}var Nc=NB;function BB(e,t,r){for(var i=-1,o=t.length,s={};++i<o;){var l=t[i],c=Ea(e,l);r(c,l)&&Nc(s,Pi(l,e),c)}return s}var R5=BB;function FB(e,t){return R5(e,t,function(r,i){return Pc(e,i)})}var I5=FB;var HB=N2(function(e,t){return e==null?{}:I5(e,t)}),t1=HB;function kB(e,t,r){return e==null?e:Nc(e,t,r)}var Bc=kB;var UB=gc(function(e,t,r){return e+(r?" ":"")+vc(t)}),r1=UB;var $B="Expected a function";function VB(e,t,r){var i=!0,o=!0;if(typeof e!="function")throw new TypeError($B);return gt(r)&&(i="leading"in r?!!r.leading:i,o="trailing"in r?!!r.trailing:o),nn(e,t,{leading:i,maxWait:t,trailing:o})}var vo=VB;function WB(e){return Wr(e).toLowerCase()}var n1=WB;var qB=1/0,zB=Di&&1/Ia(new Di([,-0]))[1]==qB?function(e){return new Di(e)}:kg,P5=zB;var jB=200;function GB(e,t,r){var i=-1,o=Kg,s=e.length,l=!0,c=[],f=c;if(r)l=!1,o=T5;else if(s>=jB){var d=t?null:P5(e);if(d)return Ia(d);l=!1,o=Ac,f=new Sc}else f=t?[]:c;e:for(;++i<s;){var m=e[i],p=t?t(m):m;if(m=r||m!==0?m:0,l&&p===p){for(var v=f.length;v--;)if(f[v]===p)continue e;t&&f.push(p),c.push(m)}else o(f,p,r)||(f!==c&&f.push(p),c.push(m))}return c}var M5=GB;function ZB(e,t){return e&&e.length?M5(e,Ni(t,2)):[]}var Js=ZB;var Fc,KB=new Uint8Array(16);function i1(){if(!Fc&&(Fc=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||typeof msCrypto<"u"&&typeof msCrypto.getRandomValues=="function"&&msCrypto.getRandomValues.bind(msCrypto),!Fc))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return Fc(KB)}var D5=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i;function YB(e){return typeof e=="string"&&D5.test(e)}var N5=YB;var Wt=[];for(Hc=0;Hc<256;++Hc)Wt.push((Hc+256).toString(16).substr(1));var Hc;function XB(e){var t=arguments.length>1&&arguments[1]!==void 0?arguments[1]:0,r=(Wt[e[t+0]]+Wt[e[t+1]]+Wt[e[t+2]]+Wt[e[t+3]]+"-"+Wt[e[t+4]]+Wt[e[t+5]]+"-"+Wt[e[t+6]]+Wt[e[t+7]]+"-"+Wt[e[t+8]]+Wt[e[t+9]]+"-"+Wt[e[t+10]]+Wt[e[t+11]]+Wt[e[t+12]]+Wt[e[t+13]]+Wt[e[t+14]]+Wt[e[t+15]]).toLowerCase();if(!N5(r))throw TypeError("Stringified UUID is invalid");return r}var B5=XB;function JB(e,t,r){e=e||{};var i=e.random||(e.rng||i1)();if(i[6]=i[6]&15|64,i[8]=i[8]&63|128,t){r=r||0;for(var o=0;o<16;++o)t[r+o]=i[o];return t}return B5(i)}var Qs=JB;var Xn=(e=>(e[e.PREVIEW=1]="PREVIEW",e[e.BUILDER=2]="BUILDER",e))(Xn||{}),qr=(e=>(e.PREVIEW="preview",e.PREVIEW_SHARE="preview-share",e.BUILDER="builder",e.INDEPENDENT="independent",e))(qr||{});function kc(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"},mode:"preview",stackDetails:{apiKey:"",environment:"",branch:""},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443},stackSdk:{live_preview:{},environment:""},runScriptsOnUpdate:!1}}function o1(){return{ssr:!0,enable:!0,debug:!1,cleanCslpOnProduction:!0,editButton:{enable:!0,exclude:[],position:"top",includeByQueryParameter:!0},editInVisualBuilderButton:{enable:!0,position:"bottom-right"}
28,hash:"",mode:1,windowType:qr.INDEPENDENT,stackDetails:{apiKey:"",environment:"",contentTypeUid:"",entryUid:"",locale:"en-us",branch:"main",masterLocale:"en-us"},clientUrlParams:{protocol:"https",host:"app.contentstack.com",port:443,url:"https://app.contentstack.com:443"},stackSdk:{live_preview:{},headers:{api_key:""},environment:""},runScriptsOnUpdate:!1,onChange(){},elements:{highlightedElement:null},collab:{enable:!1,fromShare:!1,pauseFeedback:!1,isFeedbackMode:!1,inviteMetadata:{currentUser:{email:"",uid:""},users:[],inviteUid:""},payload:[]}}}var rl,Se,$5,c1,go,F5,V5,a1,W5,tl={},f1=[],QB=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,Vc=Array.isArray;function Jn(e,t){for(var r in t)e[r]=t[r];return e}function q5(e){var t=e.parentNode;t&&t.removeChild(e)}function rr(e,t,r){var i,o,s,l={};for(s in t)s=="key"?i=t[s]:s=="ref"?o=t[s]:l[s]=t[s];if(arguments.length>2&&(l.children=arguments.length>3?rl.call(arguments,2):r),typeof e=="function"&&e.defaultProps!=null)for(s in e.defaultProps)l[s]===void 0&&(l[s]=e.defaultProps[s]);return el(e,l,i,o,null)}function el(e,t,r,i,o){var s={type:e,props:t,key:r,ref:i,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:o??++$5,__i:-1,__u:0};return o==null&&Se.vnode!=null&&Se.vnode(s),s}function d1(){return{current:null}}function Ke(e){return e.children}function gr(e,t){this.props=e,this.context=t}function Da(e,t){if(t==null)return e.__?Da(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null)return r.__e;return typeof e.type=="function"?Da(e):null}function eF(e,t,r){var i,o=e.__v,s=o.__e,l=e.__P;if(l)return(i=Jn({},o)).__v=o.__v+1,Se.vnode&&Se.vnode(i),p1(l,i,o,e.__n,l.ownerSVGElement!==void 0,32&o.__u?[s]:null,t,s??Da(o),!!(32&o.__u),r),i.__v=o.__v,i.__.__k[i.__i]=i,i.__d=void 0,i.__e!=s&&z5(i),i}function z5(e){var t,r;if((e=e.__)!=null&&e.__c!=null){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if((r=e.__k[t])!=null&&r.__e!=null){e.__e=e.__c.base=r.__e;break}return z5(e)}}function s1(e){(!e.__d&&(e.__d=!0)&&go.push(e)&&!$c.__r++||F5!==Se.debounceRendering)&&((F5=Se.debounceRendering)||V5)($c)}function $c(){var e,t,r,i=[],o=[];for(go.sort(a1);e=go.shift();)e.__d&&(r=go.length,t=eF(e,i,o)||t,r===0||go.length>r?(l1(i,t,o),o.length=i.length=0,t=void 0,go.sort(a1)):t&&Se.__c&&Se.__c(t,f1));t&&l1(i,t,o),$c.__r=0}function j5(e,t,r,i,o,s,l,c,f,d,m){var p,v,w,g,S,y=i&&i.__k||f1,x=t.length;for(r.__d=f,tF(r,t,y),f=r.__d,p=0;p<x;p++)(w=r.__k[p])!=null&&typeof w!="boolean"&&typeof w!="function"&&(v=w.__i===-1?tl:y[w.__i]||tl,w.__i=p,p1(e,w,v,o,s,l,c,f,d,m),g=w.__e,w.ref&&v.ref!=w.ref&&(v.ref&&m1(v.ref,null,w),m.push(w.ref,w.__c||g,w)),S==null&&g!=null&&(S=g),65536&w.__u||v.__k===w.__k?f=G5(w,f,e):typeof w.type=="function"&&w.__d!==void 0?f=w.__d:g&&(f=g.nextSibling),w.__d=void 0,w.__u&=-196609);r.__d=f,r.__e=S}function tF(e,t,r){var i,o,s,l,c,f=t.length,d=r.length,m=d,p=0;for(e.__k=[],i=0;i<f;i++)(o=e.__k[i]=(o=t[i])==null||typeof o=="boolean"||typeof o=="function"?null:typeof o=="string"||typeof o=="number"||typeof o=="bigint"||o.constructor==String?el(null,o,null,null,o):Vc(o)?el(Ke,{children:o},null,null,null):o.constructor===void 0&&o.__b>0?el(o.type,o.props,o.key,o.ref?o.ref:null,o.__v):o)!=null?(o.__=e,o.__b=e.__b+1,c=rF(o,r,l=i+p,m),o.__i=c,s=null,c!==-1&&(m--,(s=r[c])&&(s.__u|=131072)),s==null||s.__v===null?(c==-1&&p--,typeof o.type!="function"&&(o.__u|=65536)):c!==l&&(c===l+1?p++:c>l?m>f-l?p+=c-l:p--:p=c<l&&c==l-1?c-l:0,c!==i+p&&(o.__u|=65536))):(s=r[i])&&s.key==null&&s.__e&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Da(s)),u1(s,s,!1),r[i]=null,m--);if(m)for(i=0;i<d;i++)(s=r[i])!=null&&!(131072&s.__u)&&(s.__e==e.__d&&(e.__d=Da(s)),u1(s,s))}function G5(e,t,r){var i,o;if(typeof e.type=="function"){for(i=e.__k,o=0;i&&o<i.length;o++)i[o]&&(i[o].__=e,t=G5(i[o],t,r));return t}e.__e!=t&&(r.insertBefore(e.__e,t||null),t=e.__e);do t=t&&t.nextSibling;while(t!=null&&t.nodeType===8);return t}function xn(e,t){return t=t||[],e==null||typeof e=="boolean"||(Vc(e)?e.some(function(r){xn(r,t)}):t.push(e)),t}function rF(e,t,r,i){var o=e.key,s=e.type,l=r-1,c=r+1,f=t[r];if(f===null||f&&o==f.key&&s===f.type)return r;if(i>(f!=null&&!(131072&f.__u)?1:0))for(;l>=0||c<t.length;){if(l>=0){if((f=t[l])&&!(131072&f.__u)&&o==f.key&&s===f.type)return l;l--}if(c<t.length){if((f=t[c])&&!(131072&f.__u)&&o==f.key&&s===f.type)return c;c++}}return-1}function H5(e,t,r){t[0]==="-"?e.setProperty(t,r??""):e[t]=r==null?"":typeof r!="number"||QB.test(t)?r:r+"px"}function Uc(e,t,r,i,o){var s;e:if(t==="style")if(typeof r=="string")e.style.cssText=r;else{if(typeof i=="string"&&(e.style.cssText=i=""),i)for(t in i)r&&t in r||H5(e.style,t,"");if(r)for(t in r)i&&r[t]===i[t]||H5(e.style,t,r[t])}else if(t[0]==="o"&&t[1]==="n")s=t!==(t=t.replace(/(PointerCapture)$|Capture$/i,"$1")),t=t.toLowerCase()in e?t.toLowerCase().slice(2):t.slice(2),e.l||(e.l={}
vendor: 6,731 bytes, line 28
28),e.l[t+s]=r,r?i?r.u=i.u:(r.u=Date.now(),e.addEventListener(t,s?U5:k5,s)):e.removeEventListener(t,s?U5:k5,s);else{if(o)t=t.replace(/xlink(H|:h)/,"h").replace(/sName$/,"s");else if(t!=="width"&&t!=="height"&&t!=="href"&&t!=="list"&&t!=="form"&&t!=="tabIndex"&&t!=="download"&&t!=="rowSpan"&&t!=="colSpan"&&t!=="role"&&t in e)try{e[t]=r??"";break e}catch{}typeof r=="function"||(r==null||r===!1&&t[4]!=="-"?e.removeAttribute(t):e.setAttribute(t,r))}}function k5(e){if(this.l){var t=this.l[e.type+!1];if(e.t){if(e.t<=t.u)return}else e.t=Date.now();return t(Se.event?Se.event(e):e)}}function U5(e){if(this.l)return this.l[e.type+!0](Se.event?Se.event(e):e)}function p1(e,t,r,i,o,s,l,c,f,d){var m,p,v,w,g,S,y,x,T,C,O,I,M,$,k,H=t.type;if(t.constructor!==void 0)return null;128&r.__u&&(f=!!(32&r.__u),s=[c=t.__e=r.__e]),(m=Se.__b)&&m(t);e:if(typeof H=="function")try{if(x=t.props,T=(m=H.contextType)&&i[m.__c],C=m?T?T.props.value:m.__:i,r.__c?y=(p=t.__c=r.__c).__=p.__E:("prototype"in H&&H.prototype.render?t.__c=p=new H(x,C):(t.__c=p=new gr(x,C),p.constructor=H,p.render=iF),T&&T.sub(p),p.props=x,p.state||(p.state={}),p.context=C,p.__n=i,v=p.__d=!0,p.__h=[],p._sb=[]),p.__s==null&&(p.__s=p.state),H.getDerivedStateFromProps!=null&&(p.__s==p.state&&(p.__s=Jn({},p.__s)),Jn(p.__s,H.getDerivedStateFromProps(x,p.__s))),w=p.props,g=p.state,p.__v=t,v)H.getDerivedStateFromProps==null&&p.componentWillMount!=null&&p.componentWillMount(),p.componentDidMount!=null&&p.__h.push(p.componentDidMount);else{if(H.getDerivedStateFromProps==null&&x!==w&&p.componentWillReceiveProps!=null&&p.componentWillReceiveProps(x,C),!p.__e&&(p.shouldComponentUpdate!=null&&p.shouldComponentUpdate(x,p.__s,C)===!1||t.__v===r.__v)){for(t.__v!==r.__v&&(p.props=x,p.state=p.__s,p.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.forEach(function(oe){oe&&(oe.__=t)}),O=0;O<p._sb.length;O++)p.__h.push(p._sb[O]);p._sb=[],p.__h.length&&l.push(p);break e}p.componentWillUpdate!=null&&p.componentWillUpdate(x,p.__s,C),p.componentDidUpdate!=null&&p.__h.push(function(){p.componentDidUpdate(w,g,S)})}if(p.context=C,p.props=x,p.__P=e,p.__e=!1,I=Se.__r,M=0,"prototype"in H&&H.prototype.render){for(p.state=p.__s,p.__d=!1,I&&I(t),m=p.render(p.props,p.state,p.context),$=0;$<p._sb.length;$++)p.__h.push(p._sb[$]);p._sb=[]}else do p.__d=!1,I&&I(t),m=p.render(p.props,p.state,p.context),p.state=p.__s;while(p.__d&&++M<25);p.state=p.__s,p.getChildContext!=null&&(i=Jn(Jn({},i),p.getChildContext())),v||p.getSnapshotBeforeUpdate==null||(S=p.getSnapshotBeforeUpdate(w,g)),j5(e,Vc(k=m!=null&&m.type===Ke&&m.key==null?m.props.children:m)?k:[k],t,r,i,o,s,l,c,f,d),p.base=t.__e,t.__u&=-161,p.__h.length&&l.push(p),y&&(p.__E=p.__=null)}catch(oe){t.__v=null,f||s!=null?(t.__e=c,t.__u|=f?160:32,s[s.indexOf(c)]=null):(t.__e=r.__e,t.__k=r.__k),Se.__e(oe,t,r)}else s==null&&t.__v===r.__v?(t.__k=r.__k,t.__e=r.__e):t.__e=nF(r.__e,t,r,i,o,s,l,f,d);(m=Se.diffed)&&m(t)}function l1(e,t,r){for(var i=0;i<r.length;i++)m1(r[i],r[++i],r[++i]);Se.__c&&Se.__c(t,e),e.some(function(o){try{e=o.__h,o.__h=[],e.some(function(s){s.call(o)})}catch(s){Se.__e(s,o.__v)}})}function nF(e,t,r,i,o,s,l,c,f){var d,m,p,v,w,g,S,y=r.props,x=t.props,T=t.type;if(T==="svg"&&(o=!0),s!=null){for(d=0;d<s.length;d++)if((w=s[d])&&"setAttribute"in w==!!T&&(T?w.localName===T:w.nodeType===3)){e=w,s[d]=null;break}}if(e==null){if(T===null)return document.createTextNode(x);e=o?document.createElementNS("http://www.w3.org/2000/svg",T):document.createElement(T,x.is&&x),s=null,c=!1}if(T===null)y===x||c&&e.data===x||(e.data=x);else{if(s=s&&rl.call(e.childNodes),y=r.props||tl,!c&&s!=null)for(y={},d=0;d<e.attributes.length;d++)y[(w=e.attributes[d]).name]=w.value;for(d in y)w=y[d],d=="children"||(d=="dangerouslySetInnerHTML"?p=w:d==="key"||d in x||Uc(e,d,null,w,o));for(d in x)w=x[d],d=="children"?v=w:d=="dangerouslySetInnerHTML"?m=w:d=="value"?g=w:d=="checked"?S=w:d==="key"||c&&typeof w!="function"||y[d]===w||Uc(e,d,w,y[d],o);if(m)c||p&&(m.__html===p.__html||m.__html===e.innerHTML)||(e.innerHTML=m.__html),t.__k=[];else if(p&&(e.innerHTML=""),j5(e,Vc(v)?v:[v],t,r,i,o&&T!=="foreignObject",s,l,s?s[0]:r.__k&&Da(r,0),c,f),s!=null)for(d=s.length;d--;)s[d]!=null&&q5(s[d]);c||(d="value",g!==void 0&&(g!==e[d]||T==="progress"&&!g||T==="option"&&g!==y[d])&&Uc(e,d,g,y[d],!1),d="checked",S!==void 0&&S!==e[d]&&Uc(e,d,S,y[d],!1))}return e}function m1(e,t,r){try{typeof e=="function"?e(t):e.current=t}catch(i){Se.__e(i,r)}}function u1(e,t,r){var i,o;if(Se.unmount&&Se.unmount(e),(i=e.ref)&&(i.current&&i.current!==e.__e||m1(i,null,t)),(i=e.__c)!=null){if(i.componentWillUnmount)try{i.componentWillUnmount()}catch(s){Se.__e(s,t)}i.base=i.__P=null,e.__c=void 0}if(i=e.__k)for(o=0;o<i.length;o++)i[o]&&u1(i[o],t,r||typeof e.type!="function");r||e.__e==null||q5(e.__e),e.__=e.__e=e.__d=void 0}function iF(e,t,r){return this.constructor(e,r)}function At(e,t,r){var i,o,s,l;Se.__&&Se.__(e,t),o=(i=typeof r=="function")?null:r&&r.__k||t.__k,s=[],l=[],p1(t,e=(!i&&r||t).__k=rr(Ke,null,[e]),o||tl,tl,t.ownerSVGElement!==void 0,!i&&r?[r]:o?null:t.firstChild?rl.call(t.childNodes):null,s,!i&&r?r:o?o.__e:t.firstChild,i,l),e.__d=void 0,l1(s,e,l)}function nl(e,t){At(e,t,nl)}function Wc(e,t,r){var i,o,s,l,c=Jn({},e.props);for(s in e.type&&e.type.defaultProps&&(l=e.type.defaultProps),t)s=="key"?i=t[s]:s=="ref"?o=t[s]:c[s]=t[s]===void 0&&l!==void 0?l[s]:t[s];return arguments.length>2&&(c.children=arguments.length>3?rl.call(arguments,2):r),el(e.type,c,i||e.key,o||e.ref,null)}function h1(e,t){var r={__c:t="__cC"+W5++,__:e,Consumer:function(i,o){return i.children(o)},Provider:function(i){var o,s;return this.getChildContext||(o=[],(s={})[t]=this,this.getChildContext=function(){return s},this.shouldComponentUpdate=function(l){this.props.value!==l.value&&o.some(function(c){c.__e=!0,s1(c)})},this.sub=function(l){o.push(l);var c=l.componentWillUnmount;l.componentWillUnmount=function(){o.splice(o.indexOf(l),1),c&&c.call(l)}}),i.children}};return r.Provider.__=r.Consumer.contextType=r}rl=f1.slice,Se={__e:function(e,t,r,i){for(var o,s,l;t=t.__;)if((o=t.__c)&&!o.__)try{if((s=o.constructor)&&s.getDerivedStateFromError!=null&&(o.setState(s.getDerivedStateFromError(e)),l=o.__d),o.componentDidCatch!=null&&(o.componentDidCatch(e,i||{}),l=o.__d),l)return o.__E=o}catch(c){e=c}throw e}},$5=0,c1=function(e){return e!=null&&e.constructor==null},gr.prototype.setState=function(e,t){var r;r=this.__s!=null&&this.__s!==this.state?this.__s:this.__s=Jn({},this.state),typeof e=="function"&&(e=e(Jn({},r),this.props)),e&&Jn(r,e),e!=null&&this.__v&&(t&&this._sb.push(t),s1(this))},gr.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),s1(this))},gr.prototype.render=Ke,go=[],V5=typeof Promise=="function"?Promise.prototype.then.bind(Prom
28ise.resolve()):setTimeout,a1=function(e,t){return e.__v.__b-t.__v.__b},$c.__r=0,W5=0;var Bi,lt,v1,Z5,Na=0,ry=[],qc=[],pt=Se,K5=pt.__b,Y5=pt.__r,X5=pt.diffed,J5=pt.__c,Q5=pt.unmount,ey=pt.__;function Ba(e,t){pt.__h&&pt.__h(lt,e,Na||t),Na=0;var r=lt.__H||(lt.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({__V:qc}),r.__[e]}function ye(e){return Na=1,_1(ay,e)}function _1(e,t,r){var i=Ba(Bi++,2);if(i.t=e,!i.__c&&(i.__=[r?r(t):ay(void 0,t),function(c){var f=i.__N?i.__N[0]:i.__[0],d=i.t(f,c);f!==d&&(i.__N=[d,i.__[1]],i.__c.setState({}))}],i.__c=lt,!lt.u)){var o=function(c,f,d){if(!i.__c.__H)return!0;var m=i.__c.__H.__.filter(function(v){return!!v.__c});if(m.every(function(v){return!v.__N}))return!s||s.call(this,c,f,d);var p=!1;return m.forEach(function(v){if(v.__N){var w=v.__[0];v.__=v.__N,v.__N=void 0,w!==v.__[0]&&(p=!0)}}),!(!p&&i.__c.props===c)&&(!s||s.call(this,c,f,d))};lt.u=!0;var s=lt.shouldComponentUpdate,l=lt.componentWillUpdate;lt.componentWillUpdate=function(c,f,d){if(this.__e){var m=s;s=void 0,o(c,f,d),s=m}l&&l.call(this,c,f,d)},lt.shouldComponentUpdate=o}return i.__N||i.__}function Le(e,t){var r=Ba(Bi++,3);!pt.__s&&y1(r.__H,t)&&(r.__=e,r.i=t,lt.__H.__h.push(r))}function il(e,t){var r=Ba(Bi++,4);!pt.__s&&y1(r.__H,t)&&(r.__=e,r.i=t,lt.__h.push(r))}function nt(e){return Na=5,Kt(function(){return{current:e}},[])}function ny(e,t,r){Na=6,il(function(){return typeof e=="function"?(e(t()),function(){return e(null)}):e?(e.current=t(),function(){return e.current=null}):void 0},r==null?r:r.concat(e))}function Kt(e,t){var r=Ba(Bi++,7);return y1(r.__H,t)?(r.__V=e(),r.i=t,r.__h=e,r.__V):r.__}function on(e,t){return Na=8,Kt(function(){return e},t)}function Fa(e){var t=lt.context[e.__c],r=Ba(Bi++,9);return r.c=e,t?(r.__==null&&(r.__=!0,t.sub(lt)),t.props.value):e.__}function iy(e,t){pt.useDebugValue&&pt.useDebugValue(t?t(e):e)}function oy(){var e=Ba(Bi++,11);if(!e.__){for(var t=lt.__v;t!==null&&!t.__m&&t.__!==null;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__="P"+r[0]+"-"+r[1]++}return e.__}function oF(){for(var e;e=ry.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(zc),e.__H.__h.forEach(g1),e.__H.__h=[]}catch(t){e.__H.__h=[],pt.__e(t,e.__v)}}pt.__b=function(e){lt=null,K5&&K5(e)},pt.__=function(e,t){e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),ey&&ey(e,t)},pt.__r=function(e){Y5&&Y5(e),Bi=0;var t=(lt=e.__c).__H;t&&(v1===lt?(t.__h=[],lt.__h=[],t.__.forEach(function(r){r.__N&&(r.__=r.__N),r.__V=qc,r.__N=r.i=void 0})):(t.__h.forEach(zc),t.__h.forEach(g1),t.__h=[],Bi=0)),v1=lt},pt.diffed=function(e){X5&&X5(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(ry.push(t)!==1&&Z5===pt.requestAnimationFrame||((Z5=pt.requestAnimationFrame)||aF)(oF)),t.__H.__.forEach(function(r){r.i&&(r.__H=r.i),r.__V!==qc&&(r.__=r.__V),r.i=void 0,r.__V=qc})),v1=lt=null},pt.__c=function(e,t){t.some(function(r){try{r.__h.forEach(zc),r.__h=r.__h.filter(function(i){return!i.__||g1(i)})}catch(i){t.some(function(o){o.__h&&(o.__h=[])}),t=[],pt.__e(i,r.__v)}}),J5&&J5(e,t)},pt.unmount=function(e){Q5&&Q5(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach(function(i){try{zc(i)}catch(o){t=o}}),r.__H=void 0,t&&pt.__e(t,r.__v))};var ty=typeof requestAnimationFrame=="function";function aF(e){var t,r=function(){clearTimeout(i),ty&&cancelAnimationFrame(t),setTimeout(e)},i=setTimeout(r,100);ty&&(t=requestAnimationFrame(r))}function zc(e){var t=lt,r=e.__c;typeof r=="function"&&(e.__c=void 0,r()),lt=t}function g1(e){var t=lt;e.__c=e.__(),lt=t}function y1(e,t){return!e||e.length!==t.length||t.some(function(r,i){return r!==e[i]})}function ay(e,t){return typeof t=="function"?t(e):t}var sF=Symbol.for("preact-signals");function x1(){if(Ha>1)Ha--;else{for(var e,t=!1;ol!==void 0;){var r=ol;for(ol=void 0,b1++;r!==void 0;){var i=r.o;if(r.o=void 0,r.f&=-3,!(8&r.f)&&ly(r))try{r.c()}catch(o){t||(e=o,t=!0)}r=i}}if(b1=0,Ha--,t)throw e}}var Xe=void 0;function w1(e){var t=Xe;Xe=void 0;try{return e()}finally{Xe=t}}var ol=void 0,Ha=0,b1=0,jc=0;function sy(e){if(Xe!==void 0){var t=e.n;if(t===void 0||t.t!==Xe)return t={i:0,S:e,p:Xe.s,n:void 0,t:Xe,e:void 0,x:void 0,r:t},Xe.s!==void 0&&(Xe.s.n=t),Xe.s=t,e.n=t,32&Xe.f&&e.S(t),t;if(t.i===-1)return t.i=0,t.n!==void 0&&(t.n.p=t.p,t.p!==void 0&&(t.p.n=t.n),t.p=Xe.s,t.n=void 0,Xe.s.n=t,Xe.s=t),t}}function Tt(e,t){this.v=e,this.i=0,this.n=void 0,this.t=void 0,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}Tt.prototype.brand=sF;Tt.prototype.h=function(){return!0};Tt.prototype.S=function(e){var t=this,r=this.t;r!==e&&e.e===void 0&&(e.x=r,this.t=e,r!==void 0?r.e=e:w1(function(){var i;(i=t.W)==null||i.call(t)}))};Tt.prototype.U=function(e){var t=this;if(this.t!==void 0){var r=e.e,i=e.x;r!==void 0&&(r.x=i,e.e=void 0),i!==void 0&&(i.e=r,e.x=void 0),e===this.t&&(this.t=i,i===void 0&&w1(function(){var o;(o=t.Z)==null||o.call(t)}))}};Tt.prototype.subscribe=function(e){var t=this;return yo(function(){var r=t.value,i=Xe;Xe=void 0;try{e(r)}finally{Xe=i}},{name:"sub"})};Tt.prototype.valueOf=function(){return this.value};Tt.prototype.toString=function(){return this.value+""};Tt.prototype.toJSON=function(){return this.value};Tt.prototype.peek=function(){var e=Xe;Xe=void 0;try{return this.value}finally{Xe=e}}
vendor: 4,148 bytes, line 28
28;Object.defineProperty(Tt.prototype,"value",{get:function(){var e=sy(this);return e!==void 0&&(e.i=this.i),this.v},set:function(e){if(e!==this.v){if(b1>100)throw new Error("Cycle detected");this.v=e,this.i++,jc++,Ha++;try{for(var t=this.t;t!==void 0;t=t.x)t.t.N()}finally{x1()}}}});function zr(e,t){return new Tt(e,t)}function ly(e){for(var t=e.s;t!==void 0;t=t.n)if(t.S.i!==t.i||!t.S.h()||t.S.i!==t.i)return!0;return!1}function uy(e){for(var t=e.s;t!==void 0;t=t.n){var r=t.S.n;if(r!==void 0&&(t.r=r),t.S.n=t,t.i=-1,t.n===void 0){e.s=t;break}}}function cy(e){for(var t=e.s,r=void 0;t!==void 0;){var i=t.p;t.i===-1?(t.S.U(t),i!==void 0&&(i.n=t.n),t.n!==void 0&&(t.n.p=i)):r=t,t.S.n=t.r,t.r!==void 0&&(t.r=void 0),t=i}e.s=r}function _o(e,t){Tt.call(this,void 0),this.x=e,this.s=void 0,this.g=jc-1,this.f=4,this.W=t?.watched,this.Z=t?.unwatched,this.name=t?.name}_o.prototype=new Tt;_o.prototype.h=function(){if(this.f&=-3,1&this.f)return!1;if((36&this.f)==32||(this.f&=-5,this.g===jc))return!0;if(this.g=jc,this.f|=1,this.i>0&&!ly(this))return this.f&=-2,!0;var e=Xe;try{uy(this),Xe=this;var t=this.x();(16&this.f||this.v!==t||this.i===0)&&(this.v=t,this.f&=-17,this.i++)}catch(r){this.v=r,this.f|=16,this.i++}return Xe=e,cy(this),this.f&=-2,!0};_o.prototype.S=function(e){if(this.t===void 0){this.f|=36;for(var t=this.s;t!==void 0;t=t.n)t.S.S(t)}Tt.prototype.S.call(this,e)};_o.prototype.U=function(e){if(this.t!==void 0&&(Tt.prototype.U.call(this,e),this.t===void 0)){this.f&=-33;for(var t=this.s;t!==void 0;t=t.n)t.S.U(t)}};_o.prototype.N=function(){if(!(2&this.f)){this.f|=6;for(var e=this.t;e!==void 0;e=e.x)e.t.N()}};Object.defineProperty(_o.prototype,"value",{get:function(){if(1&this.f)throw new Error("Cycle detected");var e=sy(this);if(this.h(),e!==void 0&&(e.i=this.i),16&this.f)throw this.v;return this.v}});function al(e,t){return new _o(e,t)}function fy(e){var t=e.u;if(e.u=void 0,typeof t=="function"){Ha++;var r=Xe;Xe=void 0;try{t()}catch(i){throw e.f&=-2,e.f|=8,C1(e),i}finally{Xe=r,x1()}}}function C1(e){for(var t=e.s;t!==void 0;t=t.n)t.S.U(t);e.x=void 0,e.s=void 0,fy(e)}function lF(e){if(Xe!==this)throw new Error("Out-of-order effect");cy(this),Xe=e,this.f&=-2,8&this.f&&C1(this),x1()}function ka(e,t){this.x=e,this.u=void 0,this.s=void 0,this.o=void 0,this.f=32,this.name=t?.name}ka.prototype.c=function(){var e=this.S();try{if(8&this.f||this.x===void 0)return;var t=this.x();typeof t=="function"&&(this.u=t)}finally{e()}};ka.prototype.S=function(){if(1&this.f)throw new Error("Cycle detected");this.f|=1,this.f&=-9,fy(this),uy(this),Ha++;var e=Xe;return Xe=this,lF.bind(this,e)};ka.prototype.N=function(){2&this.f||(this.f|=2,this.o=ol,ol=this)};ka.prototype.d=function(){this.f|=8,1&this.f||C1(this)};ka.prototype.dispose=function(){this.d()};function yo(e,t){var r=new ka(e,t);try{r.c()}catch(o){throw r.d(),o}var i=r.d.bind(r);return i[Symbol.dispose]=i,i}var S1,E1;function Ua(e,t){Se[e]=t.bind(null,Se[e]||function(){})}function Gc(e){E1&&E1(),E1=e&&e.S()}function dy(e){var t=this,r=e.data,i=cF(r);i.value=r;var o=Kt(function(){for(var s=t.__v;s=s.__;)if(s.__c){s.__c.__$f|=4;break}return t.__$u.c=function(){var l;!c1(o.peek())&&((l=t.base)==null?void 0:l.nodeType)===3?t.base.data=o.peek():(t.__$f|=1,t.setState({}))},al(function(){var l=i.value.value;return l===0?0:l===!0?"":l||""})},[]);return o.value}dy.displayName="_st";Object.defineProperties(Tt.prototype,{constructor:{configurable:!0,value:void 0},type:{configurable:!0,value:dy},props:{configurable:!0,get:function(){return{data:this}}},__b:{configurable:!0,value:1}});Ua("__b",function(e,t){if(typeof t.type=="string"){var r,i=t.props;for(var o in i)if(o!=="children"){var s=i[o];s instanceof Tt&&(r||(t.__np=r={}),r[o]=s,i[o]=s.peek())}}e(t)});Ua("__r",function(e,t){Gc();var r,i=t.__c;i&&(i.__$f&=-2,(r=i.__$u)===void 0&&(i.__$u=r=function(o){var s;return yo(function(){s=this}),s.c=function(){i.__$f|=1,i.setState({})},s}())),S1=i,Gc(r),e(t)});Ua("__e",function(e,t,r,i){Gc(),S1=void 0,e(t,r,i)});Ua("diffed",function(e,t){Gc(),S1=void 0;var r;if(typeof t.type=="string"&&(r=t.__e)){var i=t.__np,o=t.props;if(i){var s=r.U;if(s)for(var l in s){var c=s[l];
28c!==void 0&&!(l in i)&&(c.d(),s[l]=void 0)}else r.U=s={};for(var f in i){var d=s[f],m=i[f];d===void 0?(d=uF(r,f,m,o),s[f]=d):d.o(m,o)}}}e(t)});function uF(e,t,r,i){var o=t in e&&e.ownerSVGElement===void 0,s=zr(r);return{o:function(l,c){s.value=l,i=c},d:yo(function(){var l=s.value.value;i[t]!==l&&(i[t]=l,o?e[t]=l:l?e.setAttribute(t,l):e.removeAttribute(t))})}}Ua("unmount",function(e,t){if(typeof t.type=="string"){var r=t.__e;if(r){var i=r.U;if(i){r.U=void 0;for(var o in i){var s=i[o];s&&s.d()}}}}else{var l=t.__c;if(l){var c=l.__$u;c&&(l.__$u=void 0,c.d())}}e(t)});Ua("__h",function(e,t,r,i){(i<3||i===9)&&(t.__$f|=2),e(t,r,i)});gr.prototype.shouldComponentUpdate=function(e,t){var r=this.__$u;if(!(r&&r.s!==void 0||4&this.__$f)||3&this.__$f)return!0;for(var i in t)return!0;for(var o in e)if(o!=="__source"&&e[o]!==this.props[o])return!0;for(var s in this.props)if(!(s in e))return!0;return!1};function cF(e){return Kt(function(){return zr(e)},[])}var bo=new WeakMap,wn=new WeakMap,A1=new WeakMap,py=new WeakSet,Fi=new WeakMap,my=/^\$/,hy=Object.getOwnPropertyDescriptor,fF=!1,vy=function(e){if(!O1(e))throw new Error("This object can't be observed.");return wn.has(e)||wn.set(e,Zc(e,T1)),wn.get(e)};var Zc=function(e,t){var r=new Proxy(e,t);return py.add(r),r},Kc=function(){throw new Error("Don't mutate the signals directly.")},gy=function(e){return function(t,r,i){var o;if(fF)return Reflect.get(t,r,i);var s=e||r[0]==="$";if(!e&&s&&Array.isArray(t)){if(r==="$")return A1.has(t)||A1.set(t,Zc(t,dF)),A1.get(t);s=r==="$length"}bo.has(i)||bo.set(i,new Map);var l=bo.get(i),c=s?r.replace(my,""):r;if(l.has(c)||typeof((o=hy(t,c))==null?void 0:o.get)!="function"){var f=Reflect.get(t,c,i);if(s&&typeof f=="function")return;if(typeof c=="symbol"&&pF.has(c))return f;l.has(c)||(O1(f)&&(wn.has(f)||wn.set(f,Zc(f,T1)),f=wn.get(f)),l.set(c,zr(f)))}else l.set(c,al(function(){return Reflect.get(t,c,i)}));return s?l.get(c):l.get(c).value}},T1={get:gy(!1),set:function(e,t,r,i){var o;if(typeof((o=hy(e,t))==null?void 0:o.set)=="function")return Reflect.set(e,t,r,i);bo.has(i)||bo.set(i,new Map);var s=bo.get(i);if(t[0]==="$"){r instanceof Tt||Kc();var l=t.replace(my,"");return s.set(l,r),Reflect.set(e,l,r.peek(),i)}var c=r;O1(r)&&(wn.has(r)||wn.set(r,Zc(r,T1)),c=wn.get(r));var f=!(t in e),d=Reflect.set(e,t,r,i);return s.has(t)?s.get(t).value=c:s.set(t,zr(c)),f&&Fi.has(e)&&Fi.get(e).value++,Array.isArray(e)&&s.has("length")&&(s.get("length").value=e.length),d},deleteProperty:function(e,t){t[0]==="$"&&Kc();var r=bo.get(wn.get(e)),i=Reflect.deleteProperty(e,t);return r&&r.has(t)&&(r.get(t).value=void 0),Fi.has(e)&&Fi.get(e).value++,i},ownKeys:function(e){return Fi.has(e)||Fi.set(e,zr(0)),Fi._=Fi.get(e).value,Reflect.ownKeys(e)}},dF={get:gy(!0),set:Kc,deleteProperty:Kc},pF=new Set(Object.getOwnPropertyNames(Symbol).map(function(e){return Symbol[e]}).filter(function(e){return typeof e=="symbol"})),mF=new Set([Object,Array]),O1=function(e){return typeof e=="object"&&e!==null&&mF.has(e.constructor)&&!py.has(e)};var hF=e=>{let t=Q.get(),r=t.clientUrlParams;if(Q.set("clientUrlParams.host",e.host??t.clientUrlParams.host),Q.set("clientUrlParams.protocol",e.protocol??r.protocol),Q.set("clientUrlParams.port",e.port??r.port),e.protocol!==void 0&&e.port===void 0)switch(e.protocol){case"http":{Q.set("clientUrlParams.port",80);break}case"https":{Q.set("clientUrlParams.port",443);break}}let i=t.clientUrlParams.host;typeof i=="string"&&i.endsWith("/")&&(i=i.slice(0,-1),Q.set("clientUrlParams.host",i));let o=`${r.protocol}://${t.clientUrlParams.host}:${r.port}`;Q.set("clientUrlParams.url",o)},_y=e=>{let t=Q.get(),r=e.stackSdk||t.stackSdk;if(Q.set("enable",e.enable??r.live_preview?.enable??t.enable),Q.set("ssr",r.live_preview?.ssr??e.ssr??typeof e.stackSdk!="object"??!0),Q.set("runScriptsOnUpdate",e.runScriptsOnUpdate??r.live_preview?.runScriptsOnUpdate??t.runScriptsOnUpdate),Q.set("stackSdk",e.stackSdk??t.stackSdk),Q.set("cleanCslpOnProduction",e.cleanCslpOnProduction??r.live_preview?.cleanCslpOnProduction??t.cleanCslpOnProduction),Q.set("editButton",{enable:e.editButton?.enable??r.live_preview?.editButton?.enable??t.editButton.enable,exclude:Array.isArray(e.editButton?.exclude)&&e.editButton?.exclude?e.editButton?.exclude:Array.isArray(r.live_preview?.exclude)&&r.live_preview?.exclude?r.live_preview?.exclude:t.editButton.exclude??[],position:e.editButton?.position??r.live_preview?.position??t.editButton.position??"top",includeByQueryParameter:e.editButton?.includeByQueryParameter??r.live_preview?.includeByQueryParameter??t.editButton.includeByQueryParameter??!0}),Q.set("editInVisualBuilderButton",{enable:e.editInVisualBuilderButton?.enable??r.live_preview?.editInVisualBuilderButton?.enable??t.editInVisualBuilderButton.enable,position:e.editInVisualBuilderButton?.position??r.live_preview?.position??t.editInVisualBuilderButton.position??"bottom-right"}),hF(e.clientUrlParams??r.live_preview?.clientUrlParams??t.clientUrlParams),e.mode)switch(e.mode){case"preview":{Q.set("mode",Xn.PREVIEW);break}case"builder":{Q.set("mode",Xn.BUILDER);break}default:throw new TypeError("Live Preview SDK: The mode must be either 'builder' or 'preview'")}Q.set("debug",e.debug??r.live_preview?.debug??t.debug),vF(e,r)};function vF(e,t){let r=Q.get();
28if(Q.set("stackDetails.apiKey",e.stackDetails?.apiKey??r.stackDetails.apiKey),Q.set("stackDetails.environment",e.stackDetails?.environment??t.environment??r.stackDetails.environment),Q.set("stackDetails.branch",e.stackDetails?.branch??t.branch??t.headers?.branch??r.stackDetails.branch),Q.set("stackDetails.locale",e.stackDetails?.locale??r.stackDetails.locale),r.mode>=Xn.BUILDER){if(!r.stackDetails.environment)throw Error("Live preview SDK: environment is required");if(!r.stackDetails.apiKey)throw Error("Live preview SDK: api key is required")}}var xo=class{static replace(e=kc()){_y(e)}static set(e,t){if(!Ys(this.config.state,e))throw new Error(`Invalid key: ${e}`);Bc(this.config.state,e,t)}static get(){return this.config.state}static reset(){Bc(this.config,"state",o1())}};xo.config={state:vy(o1())};var Q=xo;function Yc(){let e=new URLSearchParams(window.location.search);Xc(e.toString())}function Xc(e={}){let t=new URLSearchParams(e),r=t.get("live_preview"),i=t.get("content_type_uid"),o=t.get("entry_uid"),s=xo.get().stackSdk.live_preview;r&&(xo.set("hash",r),s.hash=r,s.live_preview=r),i&&(xo.set("stackDetails.contentTypeUid",i),s.content_type_uid=i),o&&(xo.set("stackDetails.entryUid",o),s.entry_uid=o),xo.set("stackSdk.live_preview",s)}var nr=class{static logEvent(e,t){typeof process<"u"&&e("Live_Preview_SDK:",...t)}static error(...e){this.logEvent(console.error,e)}static warn(...e){this.logEvent(console.warn,e)}static debug(...e){this.logEvent(console.debug,e)}};function yy(e){try{let t=new URL(document.location.href),r=new URL(e),i=t.searchParams.get("live_preview"),o=t.searchParams.get("content_type_uid"),s=t.searchParams.get("entry_uid"),l=t.searchParams.get("preview_timestamp");return i&&r.searchParams.set("live_preview",i),o&&s&&(r.searchParams.set("content_type_uid",o),r.searchParams.set("entry_uid",s)),l&&r.searchParams.set("preview_timestamp",l),r.href}catch{return nr.error("Error while adding live preview to URL"),e}}function by(){return typeof window<"u"}function xy(){window.addEventListener("click",e=>{let t=e.target,r=t.closest("a");if(!r||!r.contains(t))return;let i=r.href,o=document.location.origin;if(i&&i.includes(o)&&!i.includes("live_preview")){let s=yy(i);r.href=s||i}})}function $a(){return by()?!!new URLSearchParams(window.location.search).get("preview_timestamp"):!1}function Jc(){return by()?!!new URLSearchParams(window.location.search).get("builder"):!1}function sl(){try{return window.self!==window.top}catch{return!0}}var gF={data:""},_F=e=>typeof window=="object"?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||gF;var yF=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,bF=/\/\*[^]*?\*\/| +/g,wy=/\n+/g,Hi=(e,t)=>{let r="",i="",o="";for(let s in e){let l=e[s];s[0]=="@"?s[1]=="i"?r=s+" "+l+";":i+=s[1]=="f"?Hi(l,s):s+"{"+Hi(l,s[1]=="k"?"":t)+"}":typeof l=="object"?i+=Hi(l,t?t.replace(/([^,])+/g,c=>s.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,f=>/&/.test(f)?f.replace(/&/g,c):c?c+" "+f:f)):s):l!=null&&(s=/^--/.test(s)?s:s.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=Hi.p?Hi.p(s,l):s+":"+l+";")}return r+(t&&o?t+"{"+o+"}":o)+i},Qn={},Cy=e=>{if(typeof e=="object"){let t="";for(let r in e)t+=r+Cy(e[r]);return t}return e},xF=(e,t,r,i,o)=>{let s=Cy(e),l=Qn[s]||(Qn[s]=(f=>{let d=0,m=11;for(;d<f.length;)m=101*m+f.charCodeAt(d++)>>>0;return"go"+m})(s));if(!Qn[l]){let f=s!==e?e:(d=>{let m,p,v=[{}];for(;m=yF.exec(d.replace(bF,""));)m[4]?v.shift():m[3]?(p=m[3].replace(wy," ").trim(),v.unshift(v[0][p]=v[0][p]||{})):v[0][m[1]]=m[2].replace(wy," ").trim();return v[0]})(e);Qn[l]=Hi(o?{["@keyframes "+l]:f}:f,r?"":"."+l)}let c=r&&Qn.g?Qn.g:null;return r&&(Qn.g=Qn[l]),((f,d,m,p)=>{p?d.data=d.data.replace(p,f):d.data.indexOf(f)===-1&&(d.data=m?f+d.data:d.data+f)})(Qn[l],t,i,c),l},wF=(e,t,r)=>e.reduce((i,o,s)=>{let l=t[s];if(l&&l.call){let c=l(r),f=c&&c.props&&c.props.className||/^go/.test(c)&&c;l=f?"."+f:c&&typeof c=="object"?c.props?"":Hi(c,""):c===!1?"":c}return i+o+(l??"")},"");function B(e){let t=this||{},r=e.call?e(t.p):e;
28return xF(r.unshift?r.raw?wF(r,[].slice.call(arguments,1),t.p):r.reduce((i,o)=>Object.assign(i,o&&o.call?o(t.p):o),{}):r,_F(t.target),t.g,t.o,t.k)}var CF,EF,SF,Ey=B.bind({g:1}),L1=B.bind({k:1});function Sy(e,t,r,i){Hi.p=t,CF=e,EF=r,SF=i}function wo(){return{"cslp-edit-mode":B` 29 outline: 1px dashed #6c5ce7 !important; 30 `,"cslp-tooltip":B` 31 padding: 0; 32 display: flex; 33 outline: none; 34 border: none; 35 z-index: 200 !important; 36 position: fixed; 37 margin: 0; 38 height: 35px; 39 width: 72px; 40 background: white; 41 font-weight: 400 !important; 42 color: #718096 !important; 43 transition: background 0.2s; 44 text-align: center !important; 45 border-radius: 8px !important; 46 font-size: 14px !important; 47 justify-content: space-around; 48 align-items: center; 49 box-shadow: 0px 8px 20px 0px #2222221a; 50 box-sizing: border-box; 51 top: -100%; 52 & div { 53 display: flex; 54 justify-content: space-around; 55 border-radius: 6px !important; 56 cursor: pointer; 57 } 58 59 & div.cslp-tooltip-child:hover { 60 background: #edf2f7; 61 } 62 63 & div.cslp-tooltip-child:active:hover { 64 background: #c7d0e1; 65 } 66 67 & > div { 68 display: flex; 69 justify-content: space-evenly; 70 white-space: nowrap; 71 width: 70px; 72 } 73 74 & .cslp-tooltip-child.singular { 75 padding: 9px 1px; 76 } 77 `,multiple:B` 78 & div.cslp-tooltip-child { 79 padding: 9px; 80 } 81 82 & div.cslp-tooltip-child:before { 83 opacity: 0; 84 font-size: 12px; 85 font-weight: 400; 86 pointer-events: none; 87 content: attr(data-title); 88 color: white; 89 padding: 5px 10px; 90 border-radius: 4px; 91 position: absolute; 92 background: #4a5568; 93 top: -30px; 94 transition: 0.2s all ease-in-out; 95 } 96 97 & div.cslp-tooltip-child:hover:before { 98 opacity: 1; 99 } 100 `}}function Ot(e){let[t,r]=e.split(":");t.length>2&&(r=t,t="v1");let[i,o,s,...l]=r.split("."),c,f;switch(t){case"v2":{let[v,w]=o.split("_");c=v,f=w;break}default:{c=o;break}}let d=l.join("."),m=l.filter(v=>{let w=Dc(v),g=Ma(+v);return!w&&!g||!1}),p=TF(i,c,s,l);return Ma(+l[l.length-1])&&l.pop(),{entry_uid:c,content_type_uid:i,variant:f,locale:s,cslpValue:e,fieldPath:m.join("."),fieldPathWithIndex:l.join("."),multipleFieldMetadata:p,instance:{fieldPathWithIndex:d}}}function AF(e,t,r,i){let o=Ks(i,l=>Ma(+l));if(o===-1)return null;let s=i.slice(0,o);return{parentPath:s.join("."),parentCslpValue:[e,t,r,...s].join(".")}}function TF(e,t,r,i){let o=AF(e,t,r,i),s=Qp(i,l=>Ma(+l));return{parentDetails:o,index:Dc(s)?-1:+s}}function Ay(e,t){let r=Q.get().elements,i=!0,o=e.composedPath();for(let s of o){let l=s;if(l.nodeName==="BODY")break;if(typeof l?.getAttribute!="function")continue;let c=l.getAttribute("data-cslp");if(i&&c){r.highlightedElement&&r.highlightedElement.classList.remove(wo()["cslp-edit-mode"]),l.classList.add(wo()["cslp-edit-mode"]);let f=r;f.highlightedElement=l,Q.set("elements",f),t?.({cslpTag:c,highlightedElement:l}),i=!1}else i||l.classList.remove(wo()["cslp-edit-mode"])}}var Va=gg({"node_modules/@contentstack/advanced-post-message/dist/index.js"(e,t){"use strict";(function(r,i){typeof e=="object"&&typeof t=="object"?t.exports=i():typeof define=="function"&&define.amd?define([],i):typeof e=="object"?e.ContentstackAdvPostMessage=i():r.ContentstackAdvPostMessage=i()})(e,()=>{return r={706:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.Config=void 0;var c=l(450),f=l(666),d=l(628),m=function(){function p(){this.config=(0,f.getDefaultConfig)()}return p.prototype.replace=function(v){(function(w,g){var S,y,x,T;if(g.debug=(S=w.debug)!==null&&S!==void 0?S:g.debug,w.channelId==="")throw new Error((0,d.getErrorMessage)(c.ERROR_MESSAGES.common.channelIdRequired));g.channelId=(y=w.channelId)!==null&&y!==void 0?y:g.channelId,g.suppressErrors=(x=w.suppressErrors)!==null&&x!==void 0?x:g.suppressErrors,g.targetOrigin=(T=w.targetOrigin)!==null&&T!==void 0?T:g.targetOrigin,w.target?g.targetWindow=w.target:window?g.targetWindow=window:g.targetWindow={postMessage:function(){}}})(v,this.config)},p.prototype.set=function(v,w){this.config[v]=w},p.prototype.get=function(v){return this.config[v]},p.prototype.getAll=function(){return this.config},p.prototype.reset=function(){this.config=(0,f.getDefaultConfig)()},p}();s.Config=m},851:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.ERROR_CODES=s.ERROR_MESSAGES=void 0,s.ERROR_MESSAGES={common:{windowClosed:"The window closed before the response was received",windowNotFound:"The window was not found.",channelIdRequired:"The channelId is required"},sendEvent:{receiverReturnedError:"The receiver returned an error",eventCancelled:"The event was cancelled",noAckReceived:"The ACK was not received"},receiveEvent:{noRequestListenerFound:function(l){return'No request listener found for event "'.concat(l,'"')},codeReturnedError:"The code returned an error",noResponseListenerFound:function(l){return'No response listener found for hash "'.concat(l,'"')},noAckListenerFound:function(l){return'No ack listener found for hash "'.concat(l,'"')},unknownNature:function(l){return'The nature "'.concat(l,'" is unknown')}},registerEvent:{eventAlreadyRegistered:function(l){return'The event "'.concat(l,'" is already registered')}},unregisterEvent:{eventDoesNotExist:function(l){return'The event "'.concat(l,'" does not exist')}}},s.ERROR_CODES={common:{windowClosed:"WINDOW_CLOSED",windowNotFound:"WINDOW_NOT_FOUND"},sendEvent:{receiverReturnedError:"RECEIVER_RETURNED_ERROR",eventCancelled:"EVENT_CANCELLED",noAckReceived:"NO_ACK_RECEIVED"},receiveEvent:{noRequestListenerFound:"NO_REQUEST_LISTENER_FOUND",codeReturnedError:"CODE_RETURNED_ERROR",noResponseListenerFound:"NO_RESPONSE_LISTENER_FOUND",noAckListenerFound:"NO_ACK_LISTENER_FOUND",unknownNature:"UNKNOWN_NATURE"},registerEvent:{eventAlreadyRegistered:"EVENT_ALREADY_REGISTERED"},unregisterEvent:{eventDoesNotExist:"EVENT_DOES_NOT_EXIST"}}},450:function(o,s,l){"use strict";var c=this&&this.__createBinding||(Object.create?function(d,m,p,v){v===void 0&&(v=p);var w=Object.getOwnPropertyDescriptor(m,p);w&&!("get"in w?!m.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return m[p]}}),Object.defineProperty(d,v,w)}:function(d,m,p,v){v===void 0&&(v=p),d[v]=m[p]}),f=this&&this.__exportStar||function(d,m){for(var p in d)p==="default"||Object.prototype.hasOwnProperty.call(m,p)||c(m,d,p)};Object.defineProperty(s,"__esModule",{value:!0}),s.EVENT_MANAGER_NAME=s.ANY_ORIGIN=s.RESPONSE_CYCLE=void 0,s.RESPONSE_CYCLE=500,s.ANY_ORIGIN="*",s.EVENT_MANAGER_NAME="contentstack-adv-post-message",f(l(851),s)},666:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.getDefaultConfig=void 0;var c=l(450);s.getDefaultConfig=function(){return{targetOrigin:c.ANY_ORIGIN,targetWindow:{postMessage:function(){}},debug:!1,channelId:"",suppressErrors:!1}}},156:function(o,s,l){"use strict";var c=this&&this.__assign||function(){return c=Object.assign||function(I){for(var M,$=1,k=arguments.length;$<k;$++)for(var H in M=arguments[$])Object.prototype.hasOwnProperty.call(M,H)&&(I[H]=M[H]);return I},c.apply(this,arguments)},f=this&&this.__createBinding||(Object.create?function(I,M,$,k){k===void 0&&(k=$);var H=Object.getOwnPropertyDescriptor(M,$);H&&!("get"in H?!M.__esModule:H.writable||H.configurable)||(H={enumerable:!0,get:function(){return M[$]}}),Object.defineProperty(I,k,H)}:function(I,M,$,k){k===void 0&&(k=$),I[k]=M[$]}),d=this&&this.__exportStar||function(I,M){for(var $ in I)$==="default"||Object.prototype.hasOwnProperty.call(M,$)||f(M,I,$)},m=this&&this.__awaiter||function(I,M,$,k){return new($||($=Promise))(function(H,oe){function ie(z){try{q(k.next(z))}catch(W){oe(W)}}function ee(z){try{q(k.throw(z))}catch(W){oe(W)}}function q(z){var W;z.done?H(z.value):(W=z.value,W instanceof $?W:new $(function(G){G(W)})).then(ie,ee)}q((k=k.apply(I,M||[])).next())})},p=this&&this.__generator||function(I,M){var $,k,H,oe,ie={label:0,sent:function(){if(1&H[0])throw H[1];return H[1]},trys:[],ops:[]};return oe={next:ee(0),throw:ee(1),return:ee(2)},typeof Symbol=="function"&&(oe[Symbol.iterator]=function(){return this}),oe;function ee(q){return function(z){return function(W){if($)throw new TypeError("Generator is already executing.");for(;oe&&(oe=0,W[0]&&(ie=0)),ie;)try{if($=1,k&&(H=2&W[0]?k.return:W[0]?k.throw||((H=k.return)&&H.call(k),0):k.next)&&!(H=H.call(k,W[1])).done)return H;switch(k=0,H&&(W=[2&W[0],H.value]),W[0]){case 0:case 1:H=W;break;case 4:return ie.label++,{value:W[1],done:!1};case 5:ie.label++,k=W[1],W=[0];continue;case 7:W=ie.ops.pop(),ie.trys.pop();continue;default:if(!((H=(H=ie.trys).length>0&&H[H.length-1])||W[0]!==6&&W[0]!==2)){ie=0;continue}if(W[0]===3&&(!H||W[1]>H[0]&&W[1]<H[3])){ie.label=W[1];break}if(W[0]===6&&ie.label<H[1]){ie.label=H[1],H=W;break}if(H&&ie.label<H[2]){ie.label=H[2],ie.ops.push(W);break}H[2]&&ie.ops.pop(),ie.trys.pop();continue}W=M.call(I,ie)}catch(G){W=[6,G],k=0}finally{$=H=0}
100if(5&W[0])throw W[1];return{value:W[0]?W[1]:void 0,done:!0}}([q,z])}}};Object.defineProperty(s,"__esModule",{value:!0}),s.EventManager=void 0;var v=l(834),w=l(706),g=l(450),S=l(897),y=l(628),x=l(768),T=l(610),C=l(574),O=function(){function I(M,$){if($===void 0&&($={}),this.requestMessageHandlers=new Map,this.responseMessageHandlers=new Map,!M)throw new Error((0,y.getErrorMessage)(g.ERROR_MESSAGES.common.channelIdRequired));this.config=new w.Config,this.config.replace(c(c({},$),{channelId:M})),this.logger=new y.Logger(this.config),this.postMessage=new S.PostMessage(this.logger,this.config),this.handleIncomingMessage=this.handleIncomingMessage.bind(this),this.send=this.send.bind(this),this.on=this.on.bind(this),this.unregisterEvent=this.unregisterEvent.bind(this),window?window.addEventListener("message",this.handleIncomingMessage):this.logger.debug((0,y.getErrorMessage)(g.ERROR_MESSAGES.common.windowNotFound))}return I.prototype.handleIncomingMessage=function(M){return m(this,void 0,void 0,function(){var $,k,H,oe,ie,ee,q,z,W,G,J,Z,ce=this;return p(this,function(pe){if($=M.data,k=$.type,H=$.channel,oe=$.payload,ie=$.eventManager,ee=$.metadata,q=$.error,ie!==g.EVENT_MANAGER_NAME||H!==this.config.get("channelId"))return[2];switch(z=ee.hash,W=ee.nature){case C.EditorPostMessageNature.REQUEST:return this.logger.debug("REQUEST received",M.data),this.config.get("targetWindow").closed&&this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.common.windowClosed)),this.postMessage.sendAck({type:k,hash:z}),this.requestMessageHandlers.has(k)?(G=this.requestMessageHandlers.get(k).handler,J={data:oe},[2,v.ZalgoPromise.all([v.ZalgoPromise.try(function(){return G(J)}).then(function(le){ce.postMessage.sendResponse({type:k,hash:z,payload:le,error:void 0})}).catch(function(le){ce.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.codeReturnedError),le)})])]):(this.logger.debug((0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.noRequestListenerFound(k))),this.postMessage.sendResponse({type:k,hash:z,payload:void 0,error:{code:g.ERROR_CODES.receiveEvent.noRequestListenerFound,message:(0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.noRequestListenerFound(k))}}),[2]);case C.EditorPostMessageNature.RESPONSE:if(this.logger.debug("RESPONSE received",M.data),!this.responseMessageHandlers.has(z))return this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.noResponseListenerFound(z))),[2];Z=this.responseMessageHandlers.get(z),q?Z.promise.reject(q):Z.promise.resolve(oe);break;case C.EditorPostMessageNature.ACK:if(this.logger.debug("ACK received",M.data),!this.responseMessageHandlers.has(z))return this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.noAckListenerFound(z))),[2];(Z=this.responseMessageHandlers.get(z)).hasReceivedAck=!0;break;default:this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.receiveEvent.unknownNature(W)),M.data)}return[2]})})},I.prototype.send=function(M,$){return m(this,void 0,void 0,function(){var k,H,oe,ie,ee,q=this;return p(this,function(z){return k=new v.ZalgoPromise,H=(0,T.uniqueId)(M),oe={type:M,promise:k,hasCancelled:!1,hasReceivedAck:!1},this.responseMessageHandlers.set(H,oe),ie=1e3,ee=(0,x.safeInterval)(function(){return q.config.get("targetWindow").closed?k.reject(new Error((0,y.getErrorMessage)(g.ERROR_MESSAGES.common.windowClosed))):(ie=Math.max(ie-g.RESPONSE_CYCLE,0),!oe.hasReceivedAck&&ie<=0?k.reject((0,y.getErrorMessage)(g.ERROR_MESSAGES.sendEvent.noAckReceived)):void 0)},g.RESPONSE_CYCLE),k.finally(function(){q.responseMessageHandlers.delete(H),ee.cancel()}).catch(function(W){q.logger.debug((0,y.getErrorMessage)(g.ERROR_MESSAGES.sendEvent.receiverReturnedError),W)}),this.postMessage.sendRequest({type:M,hash:H,error:void 0,payload:$}),[2,k]})})},I.prototype.on=function(M,$){var k=this;this.requestMessageHandlers.has(M)&&this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.registerEvent.eventAlreadyRegistered(M)));var H={handler:$};return this.requestMessageHandlers.set(M,H),{unregister:function(){k.unregisterEvent(M)}}},I.prototype.unregisterEvent=function(M){this.requestMessageHandlers.has(M)?(this.logger.debug("Unregistering event",M),this.requestMessageHandlers.delete(M)):this.logger.error((0,y.getErrorMessage)(g.ERROR_MESSAGES.unregisterEvent.eventDoesNotExist(M)))},I.prototype.updateConfig=function(M){this.config.replace(M)},I.prototype.destroy=function(M){this.requestMessageHandlers.clear(),this.responseMessageHandlers.clear(),M?.soft||window.removeEventListener("message",this.handleIncomingMessage)},I}();s.EventManager=O,d(l(574),s)},897:function(o,s,l){"use strict";var c=this&&this.__assign||function(){return c=Object.assign||function(m){for(var p,v=1,w=arguments.length;v<w;v++)for(var g in p=arguments[v])Object.prototype.hasOwnProperty.call(p,g)&&(m[g]=p[g]);return m},c.apply(this,arguments)};Object.defineProperty(s,"__esModule",{value:!0}),s.PostMessage=void 0;var f=l(574),d=function(){function m(p,v){this.logger=p,this.sendResponse=this.sendResponse.bind(this),this.sendRequest=this.sendRequest.bind(this),this.sendAck=this.sendAck.bind(this),this.getMessage=this.getMessage.bind(this),this.config=v.getAll()}return m.prototype.sendRequest=function(p){var v=c(c({}
100,p),{nature:f.EditorPostMessageNature.REQUEST});this.logger.debug("Sending REQUEST",v);var w=this.getMessage(v);this.config.targetWindow.postMessage(w,this.config.targetOrigin)},m.prototype.sendResponse=function(p){var v=c(c({},p),{nature:f.EditorPostMessageNature.RESPONSE});this.logger.debug("Sending RESPONSE",v);var w=this.getMessage(v);this.config.targetWindow.postMessage(w,this.config.targetOrigin)},m.prototype.sendAck=function(p){var v=c(c({},p),{payload:void 0,error:void 0,nature:f.EditorPostMessageNature.ACK});this.logger.debug("Sending ACK",v);var w=this.getMessage(v);this.config.targetWindow.postMessage(w,this.config.targetOrigin)},m.prototype.getMessage=function(p){var v=p.nature,w=p.hash,g=p.payload,S=p.type,y=p.error;return{eventManager:"contentstack-adv-post-message",metadata:{hash:w,nature:v},channel:this.config.channelId,error:y,payload:g,type:S}},m}();s.PostMessage=d},255:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0})},884:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0})},574:function(o,s,l){"use strict";var c=this&&this.__createBinding||(Object.create?function(d,m,p,v){v===void 0&&(v=p);var w=Object.getOwnPropertyDescriptor(m,p);w&&!("get"in w?!m.__esModule:w.writable||w.configurable)||(w={enumerable:!0,get:function(){return m[p]}}),Object.defineProperty(d,v,w)}:function(d,m,p,v){v===void 0&&(v=p),d[v]=m[p]}),f=this&&this.__exportStar||function(d,m){for(var p in d)p==="default"||Object.prototype.hasOwnProperty.call(m,p)||c(m,d,p)};Object.defineProperty(s,"__esModule",{value:!0}),f(l(884),s),f(l(145),s),f(l(255),s)},145:(o,s)=>{"use strict";var l;Object.defineProperty(s,"__esModule",{value:!0}),s.EditorPostMessageNature=void 0,function(c){c.ACK="ACK",c.RESPONSE="RESPONSE",c.REQUEST="REQUEST"}(l||(s.EditorPostMessageNature=l={}))},628:function(o,s,l){"use strict";var c=this&&this.__spreadArray||function(m,p,v){if(v||arguments.length===2)for(var w,g=0,S=p.length;g<S;g++)!w&&g in p||(w||(w=Array.prototype.slice.call(p,0,g)),w[g]=p[g]);return m.concat(w||Array.prototype.slice.call(p))};Object.defineProperty(s,"__esModule",{value:!0}),s.getErrorMessage=s.Logger=void 0;var f=l(450),d=function(){function m(p){this.config=p,this.prefix=f.EVENT_MANAGER_NAME,this.log=this.log.bind(this),this.info=this.info.bind(this),this.debug=this.debug.bind(this),this.error=this.error.bind(this)}return m.prototype.log=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];console.log.apply(console,c([this.prefix],p,!1))},m.prototype.info=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];console.info.apply(console,c([this.prefix],p,!1))},m.prototype.debug=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];this.config.get("debug")&&console.debug.apply(console,c(c([this.prefix,"DEBUG:"],p,!1),[this.getDebugOptions()],!1))},m.prototype.error=function(){for(var p=[],v=0;v<arguments.length;v++)p[v]=arguments[v];this.config.get("suppressErrors")||console.error.apply(console,c([this.prefix],p,!1))},m.prototype.getDebugOptions=function(){return{targetOrigin:this.config.get("targetOrigin"),targetWindow:this.config.get("targetWindow")}},m}();s.Logger=d,s.getErrorMessage=function(m){return f.EVENT_MANAGER_NAME+": "+m}},768:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.safeInterval=void 0,s.safeInterval=function(l,c){var f;return function d(){f=setTimeout(function(){l(),d()},c)}(),{cancel:function(){clearTimeout(f)}}}},610:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.uniqueId=void 0;var c=l(831);s.uniqueId=function(f){var d=(0,c.v4)().split("-")[0];return f?"".concat(f,"-").concat(d):d}},831:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),Object.defineProperty(s,"NIL",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(s,"parse",{enumerable:!0,get:function(){return S.default}}),Object.defineProperty(s,"stringify",{enumerable:!0,get:function(){return g.default}}),Object.defineProperty(s,"v1",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(s,"v3",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(s,"v4",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(s,"v5",{enumerable:!0,get:function(){return m.default}}),Object.defineProperty(s,"validate",{enumerable:!0,get:function(){return w.default}}),Object.defineProperty(s,"version",{enumerable:!0,get:function(){return v.default}});var c=y(l(518)),f=y(l(948)),d=y(l(73)),m=y(l(186)),p=y(l(808)),v=y(l(775)),w=y(l(37)),g=y(l(910)),S=y(l(792));function y(x){return x&&x.__esModule?x:{default:x}}},311:(o,s)=>{"use strict";function l(w){return 14+(w+64>>>9<<4)+1}function c(w,g){let S=(65535&w)+(65535&g);return(w>>16)+(g>>16)+(S>>16)<<16|65535&S}function f(w,g,S,y,x,T){return c((C=c(c(g,w),c(y,T)))<<(O=x)|C>>>32-O,S);var C,O}function d(w,g,S,y,x,T,C){return f(g&S|~g&y,w,g,x,T,C)}function m(w,g,S,y,x,T,C){return f(g&y|S&~y,w,g,x,T,C)}function p(w,g,S,y,x,T,C){return f(g^S^y,w,g,x,T,C)}function v(w,g,S,y,x,T,C){return f(S^(g|~y),w,g,x,T,C)}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=function(w){if(typeof w=="string"){let g=unescape(encodeURIComponent(w));w=new Uint8Array(g.length);for(let S=0;S<g.length;++S)w[S]=g.charCodeAt(S)}return function(g){let S=[],y=32*g.length,x="0123456789abcdef";for(let T=0;T<y;T+=8){let C=g[T>>5]>>>T%32&255,O=parseInt(x.charAt(C>>>4&15)+x.charAt(15&C),16);S.push(O)}return S}(function(g,S){g[S>>5]|=128<<S%32,g[l(S)-1]=S;let y=1732584193,x=-271733879,T=-1732584194,C=271733878;for(let O=0;O<g.length;O+=16){let I=y,M=x,$=T,k=C;y=d(y,x,T,C,g[O],7,-680876936),C=d(C,y,x,T,g[O+1],12,-389564586),T=d(T,C,y,x,g[O+2],17,606105819),x=d(x,T,C,y,g[O+3],22,-1044525330),y=d(y,x,T,C,g[O+4],7,-176418897),C=d(C,y,x,T,g[O+5],12,1200080426),T=d(T,C,y,x,g[O+6],17,-1473231341),x=d(x,T,C,y,g[O+7],22,-45705983),y=d(y,x,T,C,g[O+8],7,1770035416),C=d(C,y,x,T,g[O+9],12,-1958414417),T=d(T,C,y,x,g[O+10],17,-42063),x=d(x,T,C,y,g[O+11],22,-1990404162),y=d(y,x,T,C,g[O+12],7,1804603682),C=d(C,y,x,T,g[O+13],12,-40341101),T=d(T,C,y,x,g[O+14],17,-1502002290),x=d(x,T,C,y,g[O+15],22,1236535329),y=m(y,x,T,C,g[O+1],5,-165796510),C=m(C,y,x,T,g[O+6
100],9,-1069501632),T=m(T,C,y,x,g[O+11],14,643717713),x=m(x,T,C,y,g[O],20,-373897302),y=m(y,x,T,C,g[O+5],5,-701558691),C=m(C,y,x,T,g[O+10],9,38016083),T=m(T,C,y,x,g[O+15],14,-660478335),x=m(x,T,C,y,g[O+4],20,-405537848),y=m(y,x,T,C,g[O+9],5,568446438),C=m(C,y,x,T,g[O+14],9,-1019803690),T=m(T,C,y,x,g[O+3],14,-187363961),x=m(x,T,C,y,g[O+8],20,1163531501),y=m(y,x,T,C,g[O+13],5,-1444681467),C=m(C,y,x,T,g[O+2],9,-51403784),T=m(T,C,y,x,g[O+7],14,1735328473),x=m(x,T,C,y,g[O+12],20,-1926607734),y=p(y,x,T,C,g[O+5],4,-378558),C=p(C,y,x,T,g[O+8],11,-2022574463),T=p(T,C,y,x,g[O+11],16,1839030562),x=p(x,T,C,y,g[O+14],23,-35309556),y=p(y,x,T,C,g[O+1],4,-1530992060),C=p(C,y,x,T,g[O+4],11,1272893353),T=p(T,C,y,x,g[O+7],16,-155497632),x=p(x,T,C,y,g[O+10],23,-1094730640),y=p(y,x,T,C,g[O+13],4,681279174),C=p(C,y,x,T,g[O],11,-358537222),T=p(T,C,y,x,g[O+3],16,-722521979),x=p(x,T,C,y,g[O+6],23,76029189),y=p(y,x,T,C,g[O+9],4,-640364487),C=p(C,y,x,T,g[O+12],11,-421815835),T=p(T,C,y,x,g[O+15],16,530742520),x=p(x,T,C,y,g[O+2],23,-995338651),y=v(y,x,T,C,g[O],6,-198630844),C=v(C,y,x,T,g[O+7],10,1126891415),T=v(T,C,y,x,g[O+14],15,-1416354905),x=v(x,T,C,y,g[O+5],21,-57434055),y=v(y,x,T,C,g[O+12],6,1700485571),C=v(C,y,x,T,g[O+3],10,-1894986606),T=v(T,C,y,x,g[O+10],15,-1051523),x=v(x,T,C,y,g[O+1],21,-2054922799),y=v(y,x,T,C,g[O+8],6,1873313359),C=v(C,y,x,T,g[O+15],10,-30611744),T=v(T,C,y,x,g[O+6],15,-1560198380),x=v(x,T,C,y,g[O+13],21,1309151649),y=v(y,x,T,C,g[O+4],6,-145523070),C=v(C,y,x,T,g[O+11],10,-1120210379),T=v(T,C,y,x,g[O+2],15,718787259),x=v(x,T,C,y,g[O+9],21,-343485551),y=c(y,I),x=c(x,M),T=c(T,$),C=c(C,k)}return[y,x,T,C]}(function(g){if(g.length===0)return[];let S=8*g.length,y=new Uint32Array(l(S));for(let x=0;x<S;x+=8)y[x>>5]|=(255&g[x/8])<<x%32;return y}(w),8*w.length))}},140:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var l={randomUUID:typeof crypto<"u"&&crypto.randomUUID&&crypto.randomUUID.bind(crypto)};s.default=l},808:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default="00000000-0000-0000-0000-000000000000"},792:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c,f=(c=l(37))&&c.__esModule?c:{default:c};s.default=function(d){if(!(0,f.default)(d))throw TypeError("Invalid UUID");let m,p=new Uint8Array(16);return p[0]=(m=parseInt(d.slice(0,8),16))>>>24,p[1]=m>>>16&255,p[2]=m>>>8&255,p[3]=255&m,p[4]=(m=parseInt(d.slice(9,13),16))>>>8,p[5]=255&m,p[6]=(m=parseInt(d.slice(14,18),16))>>>8,p[7]=255&m,p[8]=(m=parseInt(d.slice(19,23),16))>>>8,p[9]=255&m,p[10]=(m=parseInt(d.slice(24,36),16))/1099511627776&255,p[11]=m/4294967296&255,p[12]=m>>>24&255,p[13]=m>>>16&255,p[14]=m>>>8&255,p[15]=255&m,p}},656:(o,s)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=/^(?:[0-9a-f]{8}-[0-9a-f]{4}-[1-5][0-9a-f]{3}-[89ab][0-9a-f]{3}-[0-9a-f]{12}|00000000-0000-0000-0000-000000000000)$/i},858:(o,s)=>{"use strict";let l;Object.defineProperty(s,"__esModule",{value:!0}),s.default=function(){if(!l&&(l=typeof crypto<"u"&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto),!l))throw new Error("crypto.getRandomValues() not supported. See https://github.com/uuidjs/uuid#getrandomvalues-not-supported");return l(c)};let c=new Uint8Array(16)},42:(o,s)=>{"use strict";function l(f,d,m,p){switch(f){case 0:return d&m^~d&p;case 1:case 3:return d^m^p;case 2:return d&m^d&p^m&p}}function c(f,d){return f<<d|f>>>32-d}Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.default=function(f){let d=[1518500249,1859775393,2400959708,3395469782],m=[1732584193,4023233417,2562383102,271733878,3285377520];if(typeof f=="string"){let g=unescape(encodeURIComponent(f));f=[];for(let S=0;S<g.length;++S)f.push(g.charCodeAt(S))}else Array.isArray(f)||(f=Array.prototype.slice.call(f));f.push(128);let p=f.length/4+2,v=Math.ceil(p/16),w=new Array(v);for(let g=0;g<v;++g){let S=new Uint32Array(16);for(let y=0;y<16;++y)S[y]=f[64*g+4*y]<<24|f[64*g+4*y+1]<<16|f[64*g+4*y+2]<<8|f[64*g+4*y+3];w[g]=S}w[v-1][14]=8*(f.length-1)/Math.pow(2,32),w[v-1][14]=Math.floor(w[v-1][14]),w[v-1
100][15]=8*(f.length-1)&4294967295;for(let g=0;g<v;++g){let S=new Uint32Array(80);for(let I=0;I<16;++I)S[I]=w[g][I];for(let I=16;I<80;++I)S[I]=c(S[I-3]^S[I-8]^S[I-14]^S[I-16],1);let y=m[0],x=m[1],T=m[2],C=m[3],O=m[4];for(let I=0;I<80;++I){let M=Math.floor(I/20),$=c(y,5)+l(M,x,T,C)+O+d[M]+S[I]>>>0;O=C,C=T,T=c(x,30)>>>0,x=y,y=$}m[0]=m[0]+y>>>0,m[1]=m[1]+x>>>0,m[2]=m[2]+T>>>0,m[3]=m[3]+C>>>0,m[4]=m[4]+O>>>0}return[m[0]>>24&255,m[0]>>16&255,m[0]>>8&255,255&m[0],m[1]>>24&255,m[1]>>16&255,m[1]>>8&255,255&m[1],m[2]>>24&255,m[2]>>16&255,m[2]>>8&255,255&m[2],m[3]>>24&255,m[3]>>16&255,m[3]>>8&255,255&m[3],m[4]>>24&255,m[4]>>16&255,m[4]>>8&255,255&m[4]]}},910:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0,s.unsafeStringify=m;var c,f=(c=l(37))&&c.__esModule?c:{default:c};let d=[];for(let p=0;p<256;++p)d.push((p+256).toString(16).slice(1));function m(p,v=0){return(d[p[v+0]]+d[p[v+1]]+d[p[v+2]]+d[p[v+3]]+"-"+d[p[v+4]]+d[p[v+5]]+"-"+d[p[v+6]]+d[p[v+7]]+"-"+d[p[v+8]]+d[p[v+9]]+"-"+d[p[v+10]]+d[p[v+11]]+d[p[v+12]]+d[p[v+13]]+d[p[v+14]]+d[p[v+15]]).toLowerCase()}s.default=function(p,v=0){let w=m(p,v);if(!(0,f.default)(w))throw TypeError("Stringified UUID is invalid");return w}},518:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c,f=(c=l(858))&&c.__esModule?c:{default:c},d=l(910);let m,p,v=0,w=0;s.default=function(g,S,y){let x=S&&y||0,T=S||new Array(16),C=(g=g||{}).node||m,O=g.clockseq!==void 0?g.clockseq:p;if(C==null||O==null){let oe=g.random||(g.rng||f.default)();C==null&&(C=m=[1|oe[0],oe[1],oe[2],oe[3],oe[4],oe[5]]),O==null&&(O=p=16383&(oe[6]<<8|oe[7]))}let I=g.msecs!==void 0?g.msecs:Date.now(),M=g.nsecs!==void 0?g.nsecs:w+1,$=I-v+(M-w)/1e4;if($<0&&g.clockseq===void 0&&(O=O+1&16383),($<0||I>v)&&g.nsecs===void 0&&(M=0),M>=1e4)throw new Error("uuid.v1(): Can't create more than 10M uuids/sec");v=I,w=M,p=O,I+=122192928e5;let k=(1e4*(268435455&I)+M)%4294967296;T[x++]=k>>>24&255,T[x++]=k>>>16&255,T[x++]=k>>>8&255,T[x++]=255&k;let H=I/4294967296*1e4&268435455;T[x++]=H>>>8&255,T[x++]=255&H,T[x++]=H>>>24&15|16,T[x++]=H>>>16&255,T[x++]=O>>>8|128,T[x++]=255&O;for(let oe=0;oe<6;++oe)T[x+oe]=C[oe];return S||(0,d.unsafeStringify)(T)}},948:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c=d(l(25)),f=d(l(311));function d(p){return p&&p.__esModule?p:{default:p}}var m=(0,c.default)("v3",48,f.default);s.default=m},25:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.URL=s.DNS=void 0,s.default=function(v,w,g){function S(y,x,T,C){var O;if(typeof y=="string"&&(y=function(M){M=unescape(encodeURIComponent(M));let $=[];for(let k=0;k<M.length;++k)$.push(M.charCodeAt(k));return $}(y)),typeof x=="string"&&(x=(0,d.default)(x)),((O=x)===null||O===void 0?void 0:O.length)!==16)throw TypeError("Namespace must be array-like (16 iterable integer values, 0-255)");let I=new Uint8Array(16+y.length);if(I.set(x),I.set(y,x.length),I=g(I),I[6]=15&I[6]|w,I[8]=63&I[8]|128,T){C=C||0;for(let M=0;M<16;++M)T[C+M]=I[M];return T}return(0,f.unsafeStringify)(I)}try{S.name=v}catch{}return S.DNS=m,S.URL=p,S};var c,f=l(910),d=(c=l(792))&&c.__esModule?c:{default:c};let m="6ba7b810-9dad-11d1-80b4-00c04fd430c8";s.DNS=m;let p="6ba7b811-9dad-11d1-80b4-00c04fd430c8";s.URL=p},73:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c=m(l(140)),f=m(l(858)),d=l(910);function m(p){return p&&p.__esModule?p:{default:p}}s.default=function(p,v,w){if(c.default.randomUUID&&!v&&!p)return c.default.randomUUID();let g=(p=p||{}).random||(p.rng||f.default)();if(g[6]=15&g[6]|64,g[8]=63&g[8]|128,v){w=w||0;for(let S=0;S<16;++S)v[w+S]=g[S];return v}return(0,d.unsafeStringify)(g)}},186:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c=d(l(25)),f=d(l(42));function d(p){return p&&p.__esModule?p:{default:p}}var m=(0,c.default)("v5",80,f.default);s.default=m},37:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c,f=(c=l(656))&&c.__esModule?c:{default:c};
100s.default=function(d){return typeof d=="string"&&f.default.test(d)}},775:(o,s,l)=>{"use strict";Object.defineProperty(s,"__esModule",{value:!0}),s.default=void 0;var c,f=(c=l(37))&&c.__esModule?c:{default:c};s.default=function(d){if(!(0,f.default)(d))throw TypeError("Invalid UUID");return parseInt(d.slice(14,15),16)}},994:function(o){typeof self<"u",o.exports=function(s){var l={};function c(f){if(l[f])return l[f].exports;var d=l[f]={i:f,l:!1,exports:{}};return s[f].call(d.exports,d,d.exports,c),d.l=!0,d.exports}return c.m=s,c.c=l,c.d=function(f,d,m){c.o(f,d)||Object.defineProperty(f,d,{enumerable:!0,get:m})},c.r=function(f){typeof Symbol<"u"&&Symbol.toStringTag&&Object.defineProperty(f,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(f,"__esModule",{value:!0})},c.t=function(f,d){if(1&d&&(f=c(f)),8&d||4&d&&typeof f=="object"&&f&&f.__esModule)return f;var m=Object.create(null);if(c.r(m),Object.defineProperty(m,"default",{enumerable:!0,value:f}),2&d&&typeof f!="string")for(var p in f)c.d(m,p,function(v){return f[v]}.bind(null,p));return m},c.n=function(f){var d=f&&f.__esModule?function(){return f.default}:function(){return f};return c.d(d,"a",d),d},c.o=function(f,d){return{}.hasOwnProperty.call(f,d)},c.p="",c(c.s=0)}([function(s,l,c){"use strict";function f(x){try{if(!x)return!1;if(typeof Promise<"u"&&x instanceof Promise)return!0;if(typeof window<"u"&&typeof window.Window=="function"&&x instanceof window.Window||typeof window<"u"&&typeof window.constructor=="function"&&x instanceof window.constructor)return!1;var T={}.toString;if(T){var C=T.call(x);if(C==="[object Window]"||C==="[object global]"||C==="[object DOMWindow]")return!1}if(typeof x.then=="function")return!0}catch{return!1}return!1}c.r(l),c.d(l,"ZalgoPromise",function(){return y});var d,m=[],p=[],v=0;function w(){if(!v&&d){var x=d;d=null,x.resolve()}}function g(){v+=1}function S(){v-=1,w()}var y=function(){function x(C){var O=this;if(this.resolved=void 0,this.rejected=void 0,this.errorHandled=void 0,this.value=void 0,this.error=void 0,this.handlers=void 0,this.dispatching=void 0,this.stack=void 0,this.resolved=!1,this.rejected=!1,this.errorHandled=!1,this.handlers=[],C){var I,M,$=!1,k=!1,H=!1;g();try{C(function(oe){H?O.resolve(oe):($=!0,I=oe)},function(oe){H?O.reject(oe):(k=!0,M=oe)})}catch(oe){return S(),void this.reject(oe)}S(),H=!0,$?this.resolve(I):k&&this.reject(M)}}var T=x.prototype;return T.resolve=function(C){if(this.resolved||this.rejected)return this;if(f(C))throw new Error("Can not resolve promise with another promise");return this.resolved=!0,this.value=C,this.dispatch(),this},T.reject=function(C){var O=this;if(this.resolved||this.rejected)return this;if(f(C))throw new Error("Can not reject promise with another promise");if(!C){var I=C&&typeof C.toString=="function"?C.toString():{}.toString.call(C);C=new Error("Expected reject to be called with Error, got "+I)}return this.rejected=!0,this.error=C,this.errorHandled||setTimeout(function(){O.errorHandled||function(M,$){if(m.indexOf(M)===-1){m.push(M),setTimeout(function(){throw M},1);for(var k=0;k<p.length;k++)p[k](M,$)}}(C,O)},1),this.dispatch(),this},T.asyncReject=function(C){return this.errorHandled=!0,this.reject(C),this},T.dispatch=function(){var C=this.resolved,O=this.rejected,I=this.handlers;if(!this.dispatching&&(C||O)){this.dispatching=!0,g();for(var M=function(z,W){return z.then(function(G){W.resolve(G)},function(G){W.reject(G)})},$=0;$<I.length;$++){var k=I[$],H=k.onSuccess,oe=k.onError,ie=k.promise,ee=void 0;if(C)try{ee=H?H(this.value):this.value}catch(z){ie.reject(z);continue}else if(O){if(!oe){ie.reject(this.error);continue}try{ee=oe(this.error)}catch(z){ie.reject(z);continue}}if(ee instanceof x&&(ee.resolved||ee.rejected)){var q=ee;q.resolved?ie.resolve(q.value):ie.reject(q.error),q.errorHandled=!0}else f(ee)?ee instanceof x&&(ee.resolved||ee.rejected)?ee.resolved?ie.resolve(ee.value):ie.reject(ee.error):M(ee,ie):ie.resolve(ee)}I.length=0,this.dispatching=!1,S()}},T.then=function(C,O){if(C&&typeof C!="function"&&!C.call)throw new Error("Promise.then expected a function for success handler");if(O&&typeof O!="function"&&!O.call)throw new Error("Promise.then expected a function for error handler");var I=new x;return this.handlers.push({promise:I,onSuccess:C,onError:O}),this.errorHandled=!0,this.dispatch(),I},T.catch=function(C){return this.then(void 0,C)},T.finally=function(C){if(C&&typeof C!="function"&&!C.call)throw new Error("Promise.finally expected a function");return this.then(function(O){return x.try(C).then(function(){return O})},function(O){return x.try(C).then(function(){throw O})})},T.timeout=function(C,O){var I=this;if(this.resolved||this.rejected)return this;var M=setTimeout(function(){I.resolved||I.rejected||I.reject(O||new Error("Promise timed out after "+C+"ms"))},C);
100return this.then(function($){return clearTimeout(M),$})},T.toPromise=function(){if(typeof Promise>"u")throw new TypeError("Could not find Promise");return Promise.resolve(this)},T.lazy=function(){return this.errorHandled=!0,this},x.resolve=function(C){return C instanceof x?C:f(C)?new x(function(O,I){return C.then(O,I)}):new x().resolve(C)},x.reject=function(C){return new x().reject(C)},x.asyncReject=function(C){return new x().asyncReject(C)},x.all=function(C){var O=new x,I=C.length,M=[].slice();if(!I)return O.resolve(M),O;for(var $=function(oe,ie,ee){return ie.then(function(q){M[oe]=q,(I-=1)==0&&O.resolve(M)},function(q){ee.reject(q)})},k=0;k<C.length;k++){var H=C[k];if(H instanceof x){if(H.resolved){M[k]=H.value,I-=1;continue}}else if(!f(H)){M[k]=H,I-=1;continue}$(k,x.resolve(H),O)}return I===0&&O.resolve(M),O},x.hash=function(C){var O={},I=[],M=function(k){if(C.hasOwnProperty(k)){var H=C[k];f(H)?I.push(H.then(function(oe){O[k]=oe})):O[k]=H}};for(var $ in C)M($);return x.all(I).then(function(){return O})},x.map=function(C,O){return x.all(C.map(O))},x.onPossiblyUnhandledException=function(C){return function(O){return p.push(O),{cancel:function(){p.splice(p.indexOf(O),1)}}}(C)},x.try=function(C,O,I){if(C&&typeof C!="function"&&!C.call)throw new Error("Promise.try expected a function");var M;g();try{M=C.apply(O,I||[])}catch($){return S(),x.reject($)}return S(),x.resolve(M)},x.delay=function(C){return new x(function(O){setTimeout(O,C)})},x.isPromise=function(C){return!!(C&&C instanceof x)||f(C)},x.flush=function(){return C=d=d||new x,w(),C;var C},x}()}])},834:(o,s,l)=>{o.exports=l(994)}},i={},function o(s){var l=i[s];if(l!==void 0)return l.exports;var c=i[s]={exports:{}};return r[s].call(c.exports,c,c.exports,o),c.exports}(156);var r,i})}});var ei={INIT:"init",ON_CHANGE:"client-data-send",HISTORY:"history",CHECK_ENTRY_PAGE:"check-entry-page",URL_CHANGE:"url-change",VARIANT_PATCH:"variant-patch-update"},Ty="live-preview";var OF=ca(Va(),1),Oy;typeof window<"u"&&(Oy=new OF.EventManager(Ty,{target:window.parent,debug:!1,suppressErrors:!0}));var an=Oy;var Qc="cslp-tooltip";function Ly(e,t){let r={upperBoundOfTooltip:0,leftBoundOfTooltip:0},i=e.getBoundingClientRect();try{let o={width:72,halfWidth:36,height:40,basicMargin:5,widthWithMargin:77};switch(t){case"top-center":r.upperBoundOfTooltip=i.top-o.height,r.leftBoundOfTooltip=i.width/2-o.halfWidth+i.left;break;case"top-right":r.upperBoundOfTooltip=i.top-o.height,r.leftBoundOfTooltip=i.right-o.width;break;case"right":r.upperBoundOfTooltip=i.top-o.basicMargin,r.leftBoundOfTooltip=i.right+o.basicMargin;break;case"bottom":r.upperBoundOfTooltip=i.bottom+o.basicMargin,r.leftBoundOfTooltip=i.left-o.basicMargin;break;case"bottom-left":r.upperBoundOfTooltip=i.bottom+o.basicMargin,r.leftBoundOfTooltip=i.left-o.basicMargin;break;case"bottom-center":r.upperBoundOfTooltip=i.bottom+o.basicMargin,r.leftBoundOfTooltip=i.width/2-o.halfWidth+i.left;break;case"bottom-right":r.upperBoundOfTooltip=i.bottom+o.basicMargin,r.leftBoundOfTooltip=i.right-o.width;break;case"left":r.upperBoundOfTooltip=i.top-o.basicMargin,r.leftBoundOfTooltip=i.left-o.widthWithMargin;break;default:r.upperBoundOfTooltip=i.top-o.height,r.leftBoundOfTooltip=i.left-o.basicMargin;break}return r}catch(o){return nr.error(o),r}}var LF=e=>{let t=document.createElement("div");return t.classList.add("cslp-tooltip-child","singular"),t.setAttribute("data-test-id","cslp-singular-edit-button"),t.innerHTML=`<svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 101 <path d="M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z" fill="#718096"></path> 102 <path d="M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z" fill="#718096"></path> 103 </svg>Edit`,t.addEventListener("click",e),t},RF=(e,t)=>{let r=document.createElement("div");r.classList.add("cslp-tooltip-child"),r.setAttribute("data-title","Edit"),r.setAttribute("data-test-id","cslp-multiple-edit-button"),r.innerHTML=` <svg width="16" height="16" viewB
103ox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 104 <path d="M8.1 3.5L0.3 11.3C0.1 11.5 0 11.7 0 12V15C0 15.6 0.4 16 1 16H4C4.3 16 4.5 15.9 4.7 15.7L12.5 7.9L8.1 3.5Z" fill="#718096"></path> 105 <path d="M15.7 3.3L12.7 0.3C12.3 -0.1 11.7 -0.1 11.3 0.3L9.5 2.1L13.9 6.5L15.7 4.7C16.1 4.3 16.1 3.7 15.7 3.3Z" fill="#718096"></path> 106 </svg>`,r.addEventListener("click",e);let i=document.createElement("div");i.classList.add("cslp-tooltip-child"),i.setAttribute("data-title","Go to link"),i.setAttribute("data-test-id","cslp-multiple-external-link-button"),i.innerHTML=` <svg width="16" height="16" viewBox="0 0 16 16" fill="none" xmlns="http://www.w3.org/2000/svg"> 107 <path d="M2.66654 2.66758H13.3332V13.3342H6.66654V16.0009H13.3332C14.0405 16.0009 14.7187 15.72 15.2188 15.2199C15.7189 14.7198 15.9999 14.0415 15.9999 13.3342V2.66758C15.9999 1.96034 15.7189 1.28206 15.2188 0.781964C14.7187 0.281867 14.0405 0.000915527 13.3332 0.000915527H2.66654C1.9593 0.000915527 1.28102 0.281867 0.780927 0.781964C0.280829 1.28206 -0.00012207 1.96034 -0.00012207 2.66758V9.33425H2.66654V2.66758Z" fill="#718096" /> 108 <path d="M6.94263 7.05734L0.999958 13L2.88529 14.8853L8.82796 8.94267L10.8853 11V5.00001H4.88529L6.94263 7.05734Z" fill="#718096" /> 109 </svg>`,i.addEventListener("click",t);let o=document.createDocumentFragment();o.appendChild(r),o.appendChild(i);let s=document.createElement("div");return s.appendChild(o),s.classList.add(wo().multiple),s};function IF(e,t){if(!e)return{upperBoundOfTooltip:0,leftBoundOfTooltip:0};let r=e.getAttribute("data-cslp-button-position");return r?Ly(e,r):Ly(e,t||"top")}function Ry(){let e=Q.get();if(!e.editButton.enable)return e.editButton.enable===void 0&&nr.error("enable key is required inside editButton object"),!1;try{let i=new URL(window.location.href).searchParams.get("cslp-buttons");if(i!==null&&e.editButton.includeByQueryParameter!==!1)return i!=="false"}catch(r){nr.error(r)}let t=sl();return!t&&e.editButton.exclude?.find(r=>r==="outsideLivePreviewPortal")||t&&e.editButton.exclude?.find(r=>r==="insideLivePreviewPortal")?!1:t?e.windowType!=="builder":!0}function PF(){let e=Ry(),t=MF();e&&!t?ki.livePreviewEditButton=new ki:!e&&t&&ki.livePreviewEditButton?.destroy()}function MF(){return document.getElementById(Qc)!==null}var ki=class{constructor(){this.tooltip=null,this.typeOfCurrentChild="singular",this.tooltipChild={singular:null,multiple:null},this.createCslpTooltip=this.createCslpTooltip.bind(this),this.updateTooltipPosition=this.updateTooltipPosition.bind(this),this.addEditStyleOnHover=this.addEditStyleOnHover.bind(this),this.scrollHandler=this.scrollHandler.bind(this),this.generateRedirectUrl=this.generateRedirectUrl.bind(this),this.linkClickHandler=this.linkClickHandler.bind(this),this.destroy=this.destroy.bind(this),this.createCslpTooltip()&&(this.updateTooltipPosition(),window.addEventListener("scroll",this.updateTooltipPosition),window.addEventListener("mouseover",this.addEditStyleOnHover))}createCslpTooltip(){let e=Q.get().editButton;if(!document.getElementById(Qc)&&e.enable&&Ry()){let t=document.createElement("button");return this.tooltip=t,this.tooltip.classList.add(wo()["cslp-tooltip"]),this.tooltip.setAttribute("data-test-id","cs-cslp-tooltip"),this.tooltip.id=Qc,window.document.body.insertAdjacentElement("beforeend",this.tooltip),this.tooltipChild.singular=LF(this.scrollHandler),this.tooltipChild.multiple=RF(this.scrollHandler,this.linkClickHandler),this.tooltip.appendChild(this.tooltipChild.singular),!0}return!1}updateTooltipPosition(){document.getElementById("cslp-tooltip")||this.createCslpTooltip();let e=Q.get().editButton,t=Q.get().elements;if(!t.highlightedElement||!this.tooltip)return!1;let r=t.highlightedElement.getBoundingClientRect(),i=this.tooltip.parentElement?.getBoundingClientRect();if(r&&i){let o=IF(t.highlightedElement,e.position),s=o.upperBoundOfTooltip,l=o.leftBoundOfTooltip;return s<0&&(r.top<0?s=r.top:s=0),this.tooltip.style.top=s+"px",this.tooltip.style.zIndex=t.highlightedElement.style.zIndex||"200",this.tooltip.style.left=l+"px",this.tooltipChild.singular&&this.tooltipChild.multiple&&(t.highlightedElement.hasAttribute("href")&&this.typeOfCurrentChild!=="multiple"?(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.multiple),this.typeOfCurrentChild="multiple"):this.typeOfCurrentChild!=="singular"&&(this.tooltip.innerHTML="",this.tooltip.appendChild(this.tooltipChild.singular),this.typeOfCurrentChild="singular")),!0}return!1}
109addEditStyleOnHover(e){let t=this.shouldUpdateStyle(e);if(!(typeof t>"u"?!0:t))return;let i=({cslpTag:l,highlightedElement:c})=>{this.updateTooltipPosition()&&(this.tooltip?.setAttribute("current-data-cslp",l),this.tooltip?.setAttribute("current-href",c.getAttribute("href")??""))},o=Q.get().editButton,s=Q.get().windowType;(s===qr.PREVIEW||s===qr.INDEPENDENT)&&o.enable&&Ay(e,i)}shouldUpdateStyle(e){let t=Q.get().editButton.position,r=this.tooltip?.getBoundingClientRect();return DF({event:e,editButtonPos:t,editButtonDomRect:r})}scrollHandler(){if(!this.tooltip)return;let e=this.tooltip.getAttribute("current-data-cslp");if(e){let{content_type_uid:t,entry_uid:r,locale:i,variant:o,fieldPathWithIndex:s}=Ot(e);if(sl())an?.send("scroll",{field:s,content_type_uid:t,entry_uid:r,variant:o,locale:i});else try{let l=this.generateRedirectUrl(t,i,r,o,s);window.open(l,"_blank")}catch(l){nr.error(l)}}}generateRedirectUrl(e,t="en-us",r,i,o){let s=Q.get();if(!s.stackDetails.apiKey)throw`To use edit tags, you must provide the stack API key. Specify the API key while initializing the Live Preview SDK. 110 111 ContentstackLivePreview.init({ 112 ..., 113 stackDetails: { 114 apiKey: 'your-api-key' 115 }, 116 ... 117 })`;if(!s.stackDetails.environment)throw`To use edit tags, you must provide the preview environment. Specify the preview environment while initializing the Live Preview SDK. 118 119 ContentstackLivePreview.init({ 120 ..., 121 stackDetails: { 122 environment: 'Your-environment' 123 }, 124 ... 125 })`;let l=String(s.clientUrlParams.protocol),c=String(s.clientUrlParams.host),f=String(s.clientUrlParams.port),d=String(s.stackDetails.environment),m=String(s.stackDetails.branch||"main"),p=`!/stack/${s.stackDetails.apiKey}/content-type/${e}/${t??"en-us"}/entry/${r}`;i?p+=`/variant/${i}/edit`:p+="/edit";let v=new URL(`${l}://${c}`);return v.port=f,v.hash=p,s.stackDetails.branch&&v.searchParams.append("branch",m),v.searchParams.append("preview-field",o),v.searchParams.append("preview-locale",t??"en-us"),v.searchParams.append("preview-environment",d),`${v.origin}/${v.hash}${v.search}`}linkClickHandler(){if(!this.tooltip)return;let e=this.tooltip.getAttribute("current-href");e&&window.location.assign(e)}destroy(){window.removeEventListener("scroll",this.updateTooltipPosition),window.removeEventListener("mouseover",this.addEditStyleOnHover),this.tooltip?.remove()}};ki.livePreviewEditButton=null;yo(function(){typeof window>"u"||(Q.get().windowType,ki&&!$a()&&PF())});function DF({event:e,editButtonDomRect:t,editButtonPos:r}){if(!t||!r||!(t.x>0)||!(t.y>0))return;let s=r.includes("top"),l=r.includes("left"),c=r.includes("bottom"),f=s||c,d=e.composedPath().find(C=>{let O=C;return O.nodeName==="BODY"||typeof O?.hasAttribute!="function"?!1:O.hasAttribute("data-cslp")});if(!d)return;let p=d.getBoundingClientRect(),v=f?p.width*.1:p.height*.1;v=v>30?30:v;let w=t.x+t.width,g=t.y+t.height,S=t.x-v,y=w+v,x=t.y-v,T=g+v;if(s||c){let C=Math.abs(s?g-e.clientY:t.y-e.clientY);if(e.clientX>S&&e.clientX<y&&C<v)return!1}else{let C=Math.abs(l?w-e.clientX:t.x-e.clientX);if(e.clientY>x&&e.clientY<T&&C<v)return!1}return!0}function R1(){an?.on(ei.HISTORY,e=>{switch(e.data.type){case"forward":{window.history.forward();break}case"backward":{window.history.back();break}case"reload":{window.history.go();break}default:{let t=e.data.type;throw new Error(`Unhandled event: ${t}`)}}})}function I1(){an?.on(ei.ON_CHANGE,e=>{Xc({live_preview:e.data.hash});let{ssr:t,onChange:r}=Q.get();t||r()})}function Iy(){an?.send(ei.INIT,{config:{shouldReload:Q.get().ssr,href:window.location.href,sdkVersion:"3.4.0",mode:Q.get().mode}}).then(e=>{let{contentTypeUid:t,entryUid:r,windowType:i=qr.PREVIEW}=e||{};Q?.get()?.windowType&&Q.get().windowType===qr.BUILDER||(t&&r&&Xc({content_type_uid:t,entry_uid:r}),(Q.get().ssr||$a())&&xy(),Q.set("windowType",i),Q.get().ssr||setInterval(()=>{NF()},1500),R1(),I1())}).catch(e=>{})}function NF(){an?.send(ei.CHECK_ENTRY_PAGE,{href:window.location.href}).catch(()=>{})}function Py(){document.querySelectorAll("[data-cslp]").forEach(t=>{t.removeAttribute("data-cslp"),t.removeAttribute("data-cslp-button-position")})}function ef(e,t){typeof t=="string"?(e[t]||nr.warn("No subscriber found with the given id."),delete e[t]):typeof t=="function"&&(Object.entries(e).some(([i,o])=>o===t?(delete e[i],!0):!1)||nr.warn("No subscriber found with the given callback."))}var My=class{constructor(){this.subscribers={},this.requestDataSync=this.requestDataSync.bind(this),this.subscribeToOnEntryChange=this.subscribeToOnEntryChange.bind(this),this.publish=this.publish.bind(this),this.unsubscribeOnEntryChange=this.unsubscribeOnEntryChange.bind(this);let e=Q.get();e.debug&&nr.debug("Contentstack Live Preview Debugging mode: config --",Q.config),e.enable?(typeof document!==void 0?document.readyState==="interactive"||document.readyState==="complete"?this.requestDataSync():document.addEventListener("DOMContentLoaded",this.requestDataSync):window.addEventListener("load",this.requestDataSync),!$a()&&(e.editButton.enable||e.mode>=Xn.BUILDER)&&(ki.livePreviewEditButton=new ki)):e.cleanCslpOnProduction&&Py()}requestDataSync(){let e=Q.get();Q.set("onChange",this.publish),e.onChange(),Iy()}subscribeToOnEntryChange(e,t){return this.subscribers[t]=e,t}
125publish(){Object.values(this.subscribers).forEach(e=>{e()})}unsubscribeOnEntryChange(e){ef(this.subscribers,e)}};function Dy(){window.addEventListener("unload",()=>{let e=document.activeElement.href;e&&an?.send(ei.URL_CHANGE,{targetURL:e})})}var Ny="timeline",ll={SEND_CURRENT_BASE_ROUTE:"send-current-base-route",SEND_CSLP_DATA:"send-cslp-data",DIFF_VALUE:"diff-value",REMOVE_DIFF:"remove-diff"};var BF=ca(Va(),1),By;typeof window<"u"&&(By=new BF.EventManager(Ny,{target:window.parent,debug:!1}));var ul=By;var Fy=()=>{Ey` 126 cs-compare { 127 &.cs-compare--added { 128 background: rgba(0, 122, 82, 0.2); 129 border-bottom: 2px solid rgba(0, 122, 82); 130 } 131 132 &.cs-compare--removed { 133 background: rgba(214, 36, 0, 0.2); 134 text-decoration: line-through 2px solid rgba(214, 36, 0, 1); 135 } 136 } 137 .cs-compare__void--added { 138 background: rgba(0, 122, 82, 0.2); 139 outline: 2px solid rgba(0, 122, 82); 140 } 141 142 .cs-compare__void--removed { 143 background: rgba(214, 36, 0, 0.2); 144 outline: 2px solid rgba(214, 36, 0, 1); 145 } 146 `};var Hy=new Set(["area","base","br","col","embed","hr","img","input","keygen","link","meta","param","source","track","wbr","video"]),ky="[data-cslp]:not(:has([data-cslp]))",Uy="cs-compare";function FF(){class e extends HTMLSpanElement{constructor(){super()}}customElements.get(Uy)||customElements.define(Uy,e,{extends:"span"})}function $y(){if(typeof window>"u"||typeof document>"u")return;Fy(),FF(),ul?.on(ll.SEND_CURRENT_BASE_ROUTE,()=>K(this,null,function*(){return{url:window.location.href.split("?")[0]}})),ul?.on(ll.SEND_CSLP_DATA,()=>K(this,null,function*(){let t=Array.from(document.querySelectorAll(ky)),r={};for(let i of t){let o=i.getAttribute("data-cslp");if(i.hasAttributes()&&Hy.has(i.tagName.toLowerCase())){let s="";for(let l of i.attributes)s+=`${l.name} -> ${l.value} 147`;r[o]=s}else r[o]=i.innerHTML}return r}));let e=(t=".cs-compare--added")=>{let r=Array.from(document.querySelectorAll(t));for(let i=1;i<r.length;i++){let o=r[i-1],s=r[i];o.nextElementSibling===s&&o.appendChild(o.nextSibling)}};ul?.on(ll.DIFF_VALUE,t=>K(this,null,function*(){let{diff:r,type:i}=t.data,o=i==="base"?"removed":"added",s=Array.from(document.querySelectorAll(ky));for(let l of s){let c=l.getAttribute("data-cslp");r[c]&&(Hy.has(l.tagName.toLowerCase())?l.classList.add(`cs-compare__void--${o}`):l.innerHTML=r[c])}e(`.cs-compare--${o}`)})),ul?.on(ll.REMOVE_DIFF,()=>K(this,null,function*(){let t=Array.from(document.querySelectorAll("cs-compare"));for(let i of t){let o=i.parentElement;for(;i.firstChild;)o.insertBefore(i.firstChild,i);o.removeChild(i)}let r=Array.from(document.querySelectorAll(".cs-compare__void--added, .cs-compare__void--removed"));for(let i of r)i.classList.remove("cs-compare__void--added"),i.classList.remove("cs-compare__void--removed")}))}var ib=Te(ze(),1);function P1(){let{stackDetails:e,clientUrlParams:t}=Q.get(),{branch:r,apiKey:i,environment:o,locale:s}=e,{url:l}=t,c=new URLSearchParams;r&&c.set("branch",r),o&&c.set("environment",o),c.set("target-url",window.location.href);let f=document.querySelector("[data-cslp]");if(f){let m=f.getAttribute("data-cslp"),{locale:p}=Ot(m);c.set("locale",p)}else s&&c.set("locale",s);return new URL(`/#!/stack/${i}/visual-builder?${c.toString()}`,l)}var Vy=` 148 pointer-events: all; 149 svg { 150 pointer-events: none; 151 } 152 &:before { 153 content: attr(data-tooltip); 154 position: absolute; 155 bottom: 20px; 156 margin-bottom: 24px; 157 padding: 12px; 158 border-radius: 4px; 159 width: max-content; 160 max-width: 200px; 161 color: #fff; 162 font-family: Inter; 163 font-size: 0.75rem; 164 font-style: normal; 165 font-weight: 400; 166 line-height: 132%; /* 0.99rem */ 167 letter-spacing: 0.015rem; 168 background: #767676; 169 } 170 &:after { 171 content: ""; 172 position: absolute; 173 bottom: 28px; 174 /* the arrow */ 175 border: 10px solid #000; 176 border-color: #767676 transparent transparent transparent; 177 } 178`;function F(){return{"visual-builder__container":B` 179 --outline-transition: all 0.15s ease-in; 180 font-family: "Inter", sans-serif; 181 `,"visual-builder__cursor":B` 182 visibility: hidden; 183 height: 0; 184 185 &.visible { 186 visibility: visible; 187 position: fixed; 188 top: 0; 189 left: 0; 190 z-index: 2147483647 !important; 191 192 color: #fff; 193 194 height: auto; 195 padding: 0 10px; 196 197 display: flex; 198 align-items: center; 199 justify-content: center; 200 201 pointer-events: none !important; 202 position: fixed !important;
203 cursor: none; 204 } 205 `,"tooltip-container":B` 206 position: absolute; 207 background-color: #767676; 208 color: white; 209 padding: 12px; 210 border-radius: 4px; 211 font-size: 12px; 212 line-height: 1.4; 213 z-index: 1000; 214 pointer-events: none; 215 max-width: 250px; 216 text-align: center; 217 `,"tooltip-arrow":B` 218 position: absolute; 219 background: #767676; 220 width: 8px; 221 height: 8px; 222 transform: rotate(45deg); 223 `,"toolbar-tooltip-content":B` 224 display: flex; 225 flex-direction: column; 226 gap: 4px; 227 `,"toolbar-tooltip-content-item":B` 228 display: flex; 229 align-items: center; 230 justify-content: start; 231 gap: 4px; 232 white-space: nowrap; 233 overflow: hidden; 234 text-overflow: ellipsis; 235 236 p { 237 margin: 0; 238 color: #fff; 239 overflow: hidden; 240 text-overflow: ellipsis; 241 max-width: 100%; 242 } 243 `,"visual-builder__overlay__wrapper":B` 244 position: absolute; 245 top: 0; 246 left: 0; 247 width: 100%; 248 height: 100vh; 249 visibility: hidden; 250 z-index: 99999; 251 252 pointer-events: none; 253 254 &.visible { 255 visibility: visible; 256 } 257 `,"visual-builder__empty-block-plus-icon":B` 258 font-size: 22px; 259 font-weight: 300; 260 display: flex; 261 align-items: center; 262 justify-content: center; 263 `,"visual-builder__overlay--outline":B` 264 position: absolute; 265 outline: 4px solid #715cdd; 266 transition: var(--outline-transition); 267 `,"visual-builder__overlay":B` 268 background: rgba(0, 0, 0, 0.3); 269 box-sizing: content-box; 270 pointer-events: all; 271 position: absolute; 272 transition: var(--outline-transition); 273 `,"visual-builder__add-button":B` 274 position: absolute; 275 pointer-events: all; 276 277 background: #ffffff; 278 color: #475161; 279 280 border-radius: 4px; 281 border: 1px solid #6c5ce7; 282 283 height: 32px; 284 min-width: 32px; 285 max-width: 180px; 286 padding: 8px 6px; 287 transform: translate(-50%, -50%); 288 289 font-weight: 600; 290 color: #6c5ce7; 291 overflow: hidden; 292 293 z-index: 2147483646 !important; 294 295 display: grid; 296 grid-template-columns: min-content 0fr; 297 align-content: center; 298 gap: 0; 299 300 transition: 301 grid-template-columns 0.25s, 302 left 0.15s ease-in, 303 top 0.15s ease-in, 304 gap 0.15s ease-in; 305 306 &:has(.visual-builder__add-button-label):hover { 307 grid-template-columns: min-content 1fr; 308 gap: 8px; 309 padding: 8px 16px; 310 } 311 312 svg { 313 fill: #6c5ce7; 314 } 315 316 &:disabled { 317 border-color: #bbbec3; 318 cursor: not-allowed; 319 } 320 321 &:disabled svg { 322 fill: #bbbec3; 323 } 324 `,"visual-builder__add-button-label":B` 325 white-space: nowrap; 326 overflow: hidden; 327 text-overflow: ellipsis; 328 `,"visual-builder__add-button--loading":B` 329 cursor: wait; 330 /* we have not-allowed on disabled, so we need this */ 331 &:disabled { 332 cursor: wait; 333 } 334 `,"visual-builder__start-editing-btn":B` 335 z-index: 1000; 336 text-decoration: none; 337 position: fixed; 338 box-shadow: 339 0px 4px 15px 0px rgba(108, 92, 231, 0.2), 340 0px 3px 14px 3px rgba(0, 0, 0, 0.12), 341 0px 8px 10px 1px rgba(0, 0, 0, 0.14); 342 display: inline-flex; 343 padding: 0.5rem 1rem; 344 justify-content: center; 345 align-items: center; 346 gap: 0.5rem; 347 348 border-radius: 4px; 349 border: 1px solid transparent; 350 background: #6c5ce7; 351 transition: 352 background-color 0.15s ease-in-out, 353 border-color 0.15s ease-in-out, 354 box-shadow 0.15s ease-in-out, 355 -webkit-box-shadow 0.15s ease-in-out; 356 357 &:hover { 358 background-color: #5d50be; 359 } 360 &:focus { 361 outline: none; 362 box-shadow: 0 0 0 2px #ada4f4; 363 } 364 & > span { 365 color: #fff; 366 /* Body/P1 Bold */ 367 font-size: 1rem; 368 font-family: Inter; 369 font-weight: 600; 370 line-height: 150%; 371 letter-spacing: 0.01rem; 372 text-transform: capitalize; 373 } 374 375 & > svg { 376 color: #fff; 377 font-size: 1rem; 378 font-family: Inter; 379 font-weight: 600; 380 line-height: 150%; 381 letter-spacing: 0.01rem; 382 text-transform: capitalize; 383 } 384 `,"visual-builder__start-editing-btn__bottom-right":B` 385 bottom: 30px; 386 right: 30px; 387 `,"visual-builder__start-editing-btn__bottom-left":B` 388 bottom: 30px; 389 left: 30px; 390 `,"visual-builder__start-editing-btn__top-right":B` 391 top: 30px; 392 right: 30px; 393 `,"visual-builder__start-editing-btn__top-left":B` 394 top: 30px; 395 left: 30px; 396 `,"visual-builder__cursor-icon":B` 397 height: 40px; 398 width: 40px; 399 display: flex; 400 align-items: center; 401 justify-content: center; 402 background: #5d50be; 403 border-radius: 50%; 404 position: absolute; 405 top: 0; 406 left: 0; 407 `,"visual-builder__cursor-pointer":B` 408 position: absolute; 409 top: -8px; 410 left: -8px; 411 `,"visual-builder__cursor-icon--loader":B`
412 animation: visual-builder__spinner 1s linear infinite; 413 `,"visual-builder__focused-toolbar":B` 414 position: absolute; 415 transform: translateY(-100%); 416 z-index: 100000; 417 gap: 8px; 418 width: 0; 419 display: flex; 420 align-items: end; 421 transition: var(--outline-transition); 422 `,"visual-builder__focused-toolbar__field-label-wrapper__current-field":B` 423 padding: 4px 8px !important; 424 background: #6c5ce7; 425 color: #fff; 426 z-index: 1; 427 border-radius: 2px !important; 428 display: flex; 429 align-items: center; 430 justify-content: space-between; 431 width: fit-content; 432 433 &:disabled { 434 filter: contrast(0.7); 435 } 436 437 .visual-builder__focused-toolbar__text { 438 padding-right: 3px; 439 height: 16px; 440 } 441 `,"visual-builder__focused-toolbar__field-label-wrapper__parent-field":B` 442 pointer-events: none; 443 color: #5d50be; 444 padding: 4px !important; 445 margin-bottom: 3px; 446 display: none; 447 width: fit-content; 448 position: absolute; 449 z-index: 100000; 450 `,"field-label-dropdown-open":B` 451 .visual-builder__focused-toolbar__field-label-wrapper__parent-field { 452 pointer-events: all; 453 visibility: visible; 454 display: initial; 455 } 456 457 .visual-builder__button--secondary:hover { 458 background-color: #6c5ce7; 459 color: #f9f8ff; 460 } 461 `,"visual-builder__focused-toolbar__field-label-wrapper":B` 462 display: flex; 463 flex-direction: column-reverse; 464 position: relative; 465 `,"visual-builder__focused-toolbar__field-label-container":B` 466 display: flex; 467 column-gap: 0.5rem; 468 align-items: center; 469 `,"visual-builder__button":B` 470 background-color: transparent; 471 border: 1px solid transparent; 472 border-radius: 4px; 473 font-size: 16px; 474 font-weight: 600; 475 line-height: 100%; 476 padding: 8px 16px; 477 text-align: center; 478 z-index: 2147483647 !important; 479 transition: 480 color 0.15s ease-in-out, 481 background-color 0.15s ease-in-out, 482 border-color 0.15s ease-in-out, 483 box-shadow 0.15s ease-in-out; 484 // vertical-align: middle; 485 &:disabled { 486 cursor: not-allowed; 487 svg { 488 fill: #999; 489 path { 490 fill: #999; 491 } 492 } 493 } 494 `,"visual-builder__button--primary":B` 495 background-color: #6c5ce7; 496 color: #fff; 497 498 &:hover { 499 background-color: #5d50be; 500 } 501 `,"visual-builder__button--secondary":B` 502 background-color: #f9f8ff; 503 border: 1px solid #6c5ce7; 504 color: #6c5ce7; 505 `,"visual-builder__button--edit":B` 506 svg { 507 height: 16px; 508 width: 16px; 509 510 path { 511 fill: #475161; 512 } 513 } 514 `,"visual-builder__button-loader":B` 515 svg.loader { 516 height: 16px; 517 width: 16px; 518 519 path { 520 fill: #ffffff; 521 } 522 } 523 `,"visual-builder__button--comment-loader":B` 524 cursor: wait !important; 525 svg.loader { 526 height: 16px; 527 width: 16px; 528 529 path { 530 fill: #475161; 531 } 532 } 533 `,"visual-builder__field-icon":B` 534 svg { 535 height: 16px; 536 width: 16px; 537 margin-right: 3px; 538 } 539 `,"visual-builder__content-type-icon":B` 540 svg { 541 height: 16px; 542 width: 16px; 543 margin-right: 3px; 544 } 545 `,"visual-builder__caret-right-icon":B` 546 svg { 547 height: 16px; 548 width: 16px; 549 } 550 `,"visual-builder__reference-icon-container":B` 551 display: flex; 552 align-items: center; 553 554 .visual-builder__field-icon { 555 svg { 556 margin-right: 0px; 557 } 558 } 559 `,"visual-builder__focused-toolbar__button-group":B` 560 display: flex; 561 background: #fff; 562 border-radius: 2px; 563 height: 100%; 564 padding: 4px !important; 565 z-index: 2147483647 !important; 566 567 &:has(.visual-builder__button) { 568 padding: 2px; 569 gap: 8px; 570 } 571 572 .visual-builder__button:enabled:hover { 573 background-color: #f5f5f5; 574 575 svg { 576 color: #5d50be; 577 } 578 } 579 580 .visual-builder__button { 581 background-color: #fff; 582 border-color: transparent; 583 color: #475161; 584 padding: 4px; 585 min-width: 32px; 586 min-height: 32px; 587 } 588 `,"visual-builder__focused-toolbar__text":B` 589 font-family: Inter, "sans-serif"; 590 font-size: 0.75rem; 591 font-style: normal; 592 font-weight: 400; 593 line-height: 150%; 594 letter-spacing: 0.015rem; 595 max-width: 150px; 596 overflow: hidden; 597 text-overflow: ellipsis; 598 text-wrap: nowrap; 599 `,"visual-builder__focused-toolbar__multiple-field-toolbar":B` 600 height: 40px; 601 z-index: 2147483647 !important; 602 603 svg { 604 height: 100%; 605 width: 100%; 606 } 607 `,"visual-builder__rotate--90":B` 608 transform: rotate(90deg);
609 `,"visual-builder__focused-toolbar--field-disabled":B` 610 pointer-events: none; 611 cursor: not-allowed; 612 .visual-builder__focused-toolbar__field-label-wrapper__current-field { 613 background: #909090; 614 } 615 `,"visual-builder__cursor-disabled":B` 616 .visual-builder__cursor-icon { 617 background: #909090; 618 } 619 620 .visual-builder__cursor-pointer path { 621 fill: #909090; 622 } 623 `,"visual-builder__tooltip":B` 624 ${Vy} 625 626 &:before { 627 display: none; 628 } 629 630 &:hover:before, 631 &:hover:after { 632 display: block; 633 z-index: 2147483647 !important; 634 } 635 636 &:after { 637 display: none; 638 } 639 `,"visual-builder__tooltip--bottom":B` 640 &:before { 641 bottom: -66px; 642 } 643 &:after { 644 bottom: -6px; 645 transform: rotate(180deg); 646 } 647 `,"visual-builder__tooltip--persistent":B` 648 ${Vy} 649 650 &:before { 651 display: block; 652 } 653 654 &:after { 655 display: block; 656 } 657 `,"visual-builder__empty-block":B` 658 width: 100%; 659 height: 100%; 660 display: flex; 661 align-items: center; 662 justify-content: center; 663 flex-direction: column; 664 gap: 1rem; 665 min-height: 100px; 666 `,"visual-builder__empty-block-title":B` 667 font-size: 0.95rem; 668 font-family: Inter; 669 font-weight: 400; 670 line-height: 100%; 671 color: #647696; 672 `,"visual-builder__empty-block-field-name":B` 673 font-weight: 700; 674 `,"visual-builder__empty-block-add-button":B` 675 height: 32px; 676 border-radius: 4px; 677 background: #f9f8ff; 678 border-color: #6c5ce7; 679 border-width: 1px; 680 padding: 0 16px; 681 font-size: 0.9rem; 682 font-family: Inter; 683 font-weight: 600; 684 color: #6c5ce7; 685 letter-spacing: 0.01rem; 686 display: inline-flex; 687 align-items: center; 688 justify-content: center; 689 `,"visual-builder__hover-outline":B` 690 position: absolute; 691 outline: 2px dashed #6c5ce7; 692 transition: var(--outline-transition); 693 z-index: 2147483646 !important; 694 `,"visual-builder__hover-outline--hidden":B` 695 visibility: hidden; 696 `,"visual-builder__hover-outline--unclickable":B` 697 pointer-events: none; 698 `,"visual-builder__hover-outline--disabled":B` 699 outline: 2px dashed #909090; 700 `,"visual-builder__default-cursor--disabled":B` 701 cursor: none; 702 `,"visual-builder__draft-field":B` 703 outline: 2px dashed #eb5646; 704 `,"visual-builder__variant-field":B` 705 outline: 2px solid #bd59fa; 706 `,"visual-builder__pseudo-editable-element":B` 707 z-index: 99999 !important; 708 `,"visual-builder__button-error":B` 709 background-color: #ffeeeb; 710 padding: 0px !important; 711 &:hover { 712 background-color: #ffeeeb; 713 } 714 `,"visual-builder__focused-toolbar__error":B` 715 display: flex; 716 justify-content: center; 717 align-items: center; 718 column-gap: 3px; 719 padding: 4px 8px; 720 `,"visual-builder__focused-toolbar__error-text":B` 721 font-weight: 400; 722 font-size: 12px; 723 line-height: 18px; 724 color: #a31b00; 725 `,"visual-builder__focused-toolbar__error-toolip":B` 726 position: absolute; 727 width: 400px; 728 background-color: red; 729 left: 0; 730 top: -7px; 731 transform: translateY(-100%); 732 background-color: #767676; 733 border-radius: 4px; 734 box-shadow: 735 0px 1px 10px 0px #6c5ce733, 736 0px 5px 5px 0px #0000001f, 737 0px 2px 4px 0px #00000024; 738 padding: 12px; 739 text-align: left; 740 741 &:before { 742 content: ""; 743 position: absolute; 744 bottom: -3px; 745 left: 4%; 746 transform: translateX(-50%) rotate(45deg); 747 width: 10px; 748 height: 10px; 749 background-color: #767676; 750 } 751 752 > p { 753 margin: 0; 754 color: #ffffff; 755 font-size: 14px; 756 font-weight: 600; 757 line-height: 21px; 758 margin-bottom: 4px; 759 } 760 761 > span { 762 color: #ffffff; 763 font-size: 12px; 764 font-weight: 400; 765 line-height: 18px; 766 } 767 `,"variant-field-revert-component":B` 768 position: relative; 769 display: inline-block; 770 z-index: 2147483647 !important; 771 `,"variant-field-revert-component__dropdown-content":B` 772 position: absolute; 773 top: -12px; 774 left: -4px; 775 background-color: #ffffff; 776 min-width: max-content; 777 box-shadow: 778 0 4px 15px 0 rgba(108, 92, 231, 0.2), 779 0 3px 14px 3px rgba(0, 0, 0, 0.12), 780 0 8px 10px 1px rgba(0, 0, 0, 0.14); 781 z-index: 2147483647 !important; 782 margin-top: 4px; 783 padding: 4px 0px; 784 border-radius: 2px; 785 `,"variant-field-revert-component__dropdown-content__list-item":B` 786 color: black; 787 font-weight: 400; 788 padding: 9.6px 16px; 789 text-decoration: none; 790 display: block; 791 font-size: 0.75rem; 792 height: 32px; 793 line-height: 2rem; 794 display: flex; 795 align-items: center; 796 z-index: 2147483647 !important; 797 cursor: pointer; 798 &:hover { 799 background-color: #f1f1f1; 800 } 801 &:hover > span { 802 color: #5d50be; 803 } 804 & > span { 805 margin-top: 4px; 806 margin-bottom: 4px; 807 } 808 `,"visual-builder__no-cursor-style":B`
809 cursor: none !important; 810 `,"visual-builder__field-toolbar-container":B` 811 display: flex; 812 flex-direction: column-reverse; 813 z-index: 2147483647 !important; 814 position: relative; 815 `,"visual-builder__variant-button":B` 816 display: flex; 817 min-width: 3rem !important; 818 gap: 0.25rem; 819 align-items: center; 820 justify-content: center; 821 display: flex; 822 & svg path { 823 fill: #475161; 824 } 825 `,"visual-builder__field-location-icons-container":B` 826 display: flex; 827 gap: 0.25rem; 828 align-items: center; 829 justify-content: center; 830 margin-left: 0.25rem; 831 832 `,"visual-builder__field-location-icons-container__divider":B` 833 height: 32px !important; 834 width: 1px; 835 border-radius: 2px; 836 background-color: #8a8f99; 837 `,"visual-builder__field-location-icons-container__app-icon":B` 838 width: 24px; 839 height: 24px; 840 object-fit: cover; 841 `,"visual-builder__field-location-app-list":B` 842 position: absolute; 843 top: 0; 844 background: #fff; 845 border: 1px solid #e0e0e0; 846 border-radius: 8px; 847 box-shadow: 0 2px 8px rgba(0,0,0,0.15); 848 z-index: 1000; 849 min-width: 230px; 850 max-height: 250px; 851 min-height: 250px; 852 overflow-y: auto; 853 display: flex; 854 flex-direction: column; 855 `,"visual-builder__field-location-app-list--left":B` 856 right: 100%; 857 margin-right: 8px; 858 `,"visual-builder__field-location-app-list--right":B` 859 left: 100%; 860 margin-left: 8px; 861 `,"visual-builder__field-location-app-list__search-container":B` 862 display: flex; 863 align-items: center; 864 padding: 10px 16px 0px 16px; 865 border: none; 866 border-bottom: 1px solid #f0f0f0; 867 `,"visual-builder__field-location-app-list__search-input":B` 868 width: 100%; 869 padding: 10px 12px; 870 font-size: 14px; 871 outline: none; 872 box-sizing: border-box; 873 border: none; 874 `,"visual-builder__field-location-app-list__search-icon":B` 875 width: 14px; 876 height: 14px; 877 `,"visual-builder__field-location-app-list__content":B` 878 flex: 1; 879 overflow-y: auto; 880 `,"visual-builder__field-location-app-list__no-results":B` 881 display: flex; 882 align-items: center; 883 justify-content: center; 884 height: 100%; 885 width: 100%; 886 text-align: center; 887 `,"visual-builder__field-location-app-list__no-results-text":B` 888 color: #373b40; 889 font-weight: 400; 890 `,"visual-builder__field-location-app-list__item":B` 891 display: flex; 892 align-items: center; 893 padding: 10px 16px; 894 cursor: pointer; 895 font-size: 14px; 896 `,"visual-builder__field-location-app-list__item-icon-container":B` 897 width: 24px; 898 height: 24px; 899 margin-right: 12px; 900 display: flex; 901 align-items: center; 902 justify-content: center; 903 `,"visual-builder__field-location-app-list__item-icon":B` 904 width: 24px; 905 height: 24px; 906 border-radius: 50%; 907 object-fit: cover; 908 `,"visual-builder__field-location-app-list__item-title":B` 909 color: #373b40; 910 font-weight: 400; 911 `}}var Wy=` 912 @import url("https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap"); 913 914 [data-cslp] [contenteditable="true"] { 915 outline: none; 916 } 917 918 @keyframes visual-builder__spinner { 919 0% { 920 transform: rotate(0deg); 921 } 922 100% { 923 transform: rotate(360deg); 924 } 925 } 926 927`;var M1=Te(ze(),1);var HF=0,woe=Array.isArray;function b(e,t,r,i,o,s){var l,c,f={};for(c in t)c=="ref"?l=t[c]:f[c]=t[c];var d={type:e,props:f,key:r,ref:l,__k:null,__:null,__b:0,__e:null,__d:void 0,__c:null,constructor:void 0,__v:--HF,__i:-1,__u:0,__source:o,__self:s};if(typeof e=="function"&&(l=e.defaultProps))for(c in l)f[c]===void 0&&(f[c]=l[c]);
927return Se.vnode&&Se.vnode(d),d}var qy=({disabled:e=!1})=>({opacity:e?.5:1,cursor:e?"not-allowed":"pointer"});function Co({open:e=!1}){return b("svg",{"data-testid":"visual-builder__caret-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",style:{transform:e?"rotate(180deg)":"rotate(0deg)"},children:b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.73483 5.73483C2.88128 5.58839 3.11872 5.58839 3.26517 5.73483L8 10.4697L12.7348 5.73483C12.8813 5.58839 13.1187 5.58839 13.2652 5.73483C13.4116 5.88128 13.4116 6.11872 13.2652 6.26517L8.26516 11.2652C8.11872 11.4116 7.88128 11.4116 7.73484 11.2652L2.73483 6.26517C2.58839 6.11872 2.58839 5.88128 2.73483 5.73483Z",fill:"white"})})}function zy(){return b("svg",{"data-testid":"visual-builder__delete-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{d:"M6.5 6.125C6.70711 6.125 6.875 6.29289 6.875 6.5V10.5C6.875 10.7071 6.70711 10.875 6.5 10.875C6.29289 10.875 6.125 10.7071 6.125 10.5V6.5C6.125 6.29289 6.29289 6.125 6.5 6.125Z",fill:"currentColor"}),b("path",{d:"M9.875 6.5C9.875 6.29289 9.70711 6.125 9.5 6.125C9.29289 6.125 9.125 6.29289 9.125 6.5V10.5C9.125 10.7071 9.29289 10.875 9.5 10.875C9.70711 10.875 9.875 10.7071 9.875 10.5V6.5Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M6.5 1.125C6.13533 1.125 5.78559 1.26987 5.52773 1.52773C5.26987 1.78559 5.125 2.13533 5.125 2.5V3.125H2.5C2.29289 3.125 2.125 3.29289 2.125 3.5C2.125 3.70711 2.29289 3.875 2.5 3.875H3.125V13C3.125 13.2321 3.21719 13.4546 3.38128 13.6187C3.54538 13.7828 3.76794 13.875 4 13.875H12C12.2321 13.875 12.4546 13.7828 12.6187 13.6187C12.7828 13.4546 12.875 13.2321 12.875 13V3.875H13.5C13.7071 3.875 13.875 3.70711 13.875 3.5C13.875 3.29289 13.7071 3.125 13.5 3.125H10.875V2.5C10.875 2.13533 10.7301 1.78559 10.4723 1.52773C10.2144 1.26987 9.86467 1.125 9.5 1.125H6.5ZM10.125 3.125V2.5C10.125 2.33424 10.0592 2.17527 9.94194 2.05806C9.82473 1.94085 9.66576 1.875 9.5 1.875H6.5C6.33424 1.875 6.17527 1.94085 6.05806 2.05806C5.94085 2.17527 5.875 2.33424 5.875 2.5V3.125H10.125ZM3.875 3.875V13C3.875 13.0332 3.88817 13.0649 3.91161 13.0884C3.93505 13.1118 3.96685 13.125 4 13.125H12C12.0332 13.125 12.0649 13.1118 12.0884 13.0884C12.1118 13.0649 12.125 13.0332 12.125 13V3.875H3.875Z",fill:"currentColor"})]})}function jy(){return b("svg",{width:"17",height:"21",viewBox:"0 0 17 21",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.75223 0.900517C5.05206 0.712906 4.33237 1.12842 4.14475 1.82859L3.44577 4.43724H1.75C1.02513 4.43724 0.4375 5.02486 0.4375 5.74974V19.2497C0.4375 19.9746 1.02513 20.5622 1.75 20.5622H12.25C12.9749 20.5622 13.5625 19.9746 13.5625 19.2497V17.3922L16.8225 5.22559C17.0101 4.52542 16.5946 3.80573 15.8945 3.61812L5.75223 0.900517ZM13.5625 13.0455L15.7359 4.93442C15.7627 4.8344 15.7033 4.73158 15.6033 4.70478L5.46106 1.98718C5.36104 1.96038 5.25822 2.01974 5.23142 2.11977L4.61046 4.43724H12.25C12.9749 4.43724 13.5625 5.02486 13.5625 5.74974V13.0455ZM1.5625 5.74974C1.5625 5.64618 1.64645 5.56224 1.75 5.56224H12.25C12.3536 5.56224 12.4375 5.64618 12.4375 5.74974V19.2497C12.4375 19.3533 12.3536 19.4372 12.25 19.4372H1.75C1.64645 19.4372 1.5625 19.3533 1.5625 19.2497V5.74974Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 8.74974C3.4375 8.43908 3.68934 8.18724 4 8.18724H10C10.3107 8.18724 10.5625 8.43908 10.5625 8.74974C10.5625 9.0604 10.3107 9.31224 10 9.31224H4C3.68934 9.31224 3.4375 9.0604 3.4375 8.74974Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 11.7497C3.4375 11.4391 3.68934 11.1872 4 11.1872H10C10.3107 11.1872 10.5625 11.4391 10.5625 11.7497C10.5625 12.0604 10.3107 12.3122 10 12.3122H4C3.68934 12.3122 3.4375 12.0604 3.4375 11.7497Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.4375 14.7497C3.4375 14.4391 3.68934 14.1872 4 14.1872H10C10.3107 14.1872 10.5625 14.4391 10.5625 14.7497C10.5625 15.0604 10.3107 15.3122 10 15.3122H4C3.68934 15.3122 3.4375 15.0604 3.4375 14.7497Z",fill:"currentColor"})]})}function Gy(e){return b("svg",{"data-testid":"visual-builder__move-left-icon",className:e.className,width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:qy(e),children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M7.26516 3.23483C7.41161 3.38128 7.41161 3.61872 7.26516 3.76517L3.03033 8L7.26516 12.2348C7.41161 12.3813 7.41161 12.6187 7.26516 12.7652C7.11872 12.9116 6.88128 12.9116 6.73484 12.7652L2.23483 8.26516C2.08839 8.11872 2.08839 7.88128 2.23483 7.73484L6.73484 3.23483C6.88128 3.08839 7.11872 3.08839 7.26516 3.23483Z",fill:"currentColor"})]})}function Zy(e){return b("svg",{className:e.className,"data-testid":"visual-builder__move-right-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",style:qy(e),children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M2.125 8C2.125 7.79289 2.29289 7.625 2.5 7.625H13.5C13.7071 7.625 13.875 7.79289 13.875 8C13.875 8.20711 13.7071 8.375 13.5 8.375H2.5C2.29289 8.375 2.125 8.20711 2.125 8Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.73484 3.23483C8.88128 3.08839 9.11872 3.08839 9.26516 3.23483L13.7652 7.73484C13.9116 7.88128 13.9116 8.11872 13.7652 8.26516L9.26516 12.7652C9.11872 12.9116 8.88128 12.9116 8.73484 12.7652C8.58839 12.6187 8.58839 12.3813 8.73484 12.2348L12.9697 8L8.73484 3.76517C8.58839 3.61872 8.58839 3.38128 8.73484 3.23483Z",fill:"currentColor"})]})}function Ky(){return b("svg",{"data-testid":"visual-builder__info-icon",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{d:"M8 5.5C7.72386 5.5 7.5 5.72386 7.5 6C7.5 6.27614 7.72386 6.5 8 6.5C8.27614 6.5 8.5 6.27614 8.5 6C8.5 5.72386 8.27614 5.5 8 5.5Z",fill:"white"}),b("path",{d:"M8 10.875C7.79289 10.875 7.625 10.7071 7.625 10.5V7.5C7.625 7.29289 7.79289 7.125 8 7.125C8.20711 7.125 8.375 7.29289 8.375 7.5V10.5C8.375 10.7071 8.20711 10.875 8 10.875Z",fill:"white"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M14 8C14 11.3137 11.3137 14 8 14C4.68629 14 2 11.3137 2 8C2 4.68629 4.68629 2 8 2C11.3137 2 14 4.68629 14 8ZM13.25 8C13.25 10.8995 10.8995 13.25 8 13.25C5.10051 13.25 2.75 10.8995 2.75 8C2.75 5.10051 5.10051 2.75 8 2.75C10.8995 2.75 13.25 5.10051 13.25 8Z",fill:"white"})]})}function Cn(){return b("svg",{"data-testid":"visual-builder__edit-icon",width:"24",height:"24",viewBox:"0 0 24 24",fill:"
927currentColor",xmlns:"http://www.w3.org/2000/svg",children:b("g",{id:"Edit",children:b("path",{id:"Edit_2","fill-rule":"evenodd","clip-rule":"evenodd",d:"M3.58347 15.3803C3.35617 15.6076 3.22019 15.9104 3.20131 16.2313L3.00244 19.6122C2.95629 20.3967 3.60524 21.0456 4.38975 20.9995L7.7706 20.8006C8.0915 20.7817 8.39431 20.6458 8.62161 20.4185L20.6176 8.4225C21.1301 7.90993 21.1301 7.07891 20.6176 6.56634L17.4356 3.38436C16.923 2.8718 16.092 2.8718 15.5794 3.38436L3.58347 15.3803ZM4.32437 16.2974C4.32707 16.2515 4.3465 16.2083 4.37897 16.1758L14.2003 6.35446L17.4954 9.64949C17.5492 9.70337 17.6113 9.74403 17.6776 9.77148L7.82611 19.623C7.79364 19.6554 7.75038 19.6749 7.70454 19.6776L4.32369 19.8764C4.21161 19.883 4.11891 19.7903 4.1255 19.6782L4.32437 16.2974ZM18.4128 9.03624L19.8221 7.627C19.8953 7.55378 19.8953 7.43506 19.8221 7.36184L16.6401 4.17986C16.5669 4.10663 16.4481 4.10663 16.3749 4.17986L14.9958 5.55897L18.2908 8.854C18.3447 8.90788 18.3854 8.96996 18.4128 9.03624Z",fill:"currentColor"})})})}function Yy(){return b("svg",{"data-testid":"visual-builder__plus-icon",xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",children:b("path",{d:"M10.4688 4.375C10.4688 4.11612 10.259 3.90625 10.0001 3.90625C9.74121 3.90625 9.53135 4.11612 9.53135 4.375V9.27307H4.37402C4.11514 9.27307 3.90527 9.48294 3.90527 9.74182C3.90527 10.0007 4.11514 10.2106 4.37402 10.2106H9.53135V15.625C9.53135 15.8839 9.74121 16.0937 10.0001 16.0937C10.259 16.0937 10.4688 15.8839 10.4688 15.625V10.2106H15.6259C15.8847 10.2106 16.0946 10.0007 16.0946 9.74182C16.0946 9.48294 15.8847 9.27307 15.6259 9.27307H10.4688V4.375Z"})})}function Xy(){return b("svg",{width:"18",height:"18",viewBox:"-1 -1 20 20",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M9.88235 1.23529C9.88235 0.942908 10.1194 0.705882 10.4118 0.705882H14.1641C14.8463 0.705882 15.3994 1.25894 15.3994 1.94118V6.47441L17.1363 5.06006C17.363 4.87544 17.6965 4.90958 17.8811 5.1363C18.0657 5.36303 18.0316 5.69649 17.8049 5.88111L15.2042 7.99876C15.0096 8.15728 14.7303 8.15728 14.5357 7.99876L11.9351 5.88111C11.7083 5.69649 11.6742 5.36303 11.8588 5.1363C12.0434 4.90958 12.3769 4.87544 12.6036 5.06006L14.3405 6.47441V1.94118C14.3405 1.84371 14.2615 1.76471 14.1641 1.76471H10.4118C10.1194 1.76471 9.88235 1.52768 9.88235 1.23529Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 16.7647C8.11765 17.0571 7.88062 17.2941 7.58824 17.2941H3.83592C3.15369 17.2941 2.60063 16.7411 2.60063 16.0588V11.5256L0.863711 12.9399C0.636985 13.1246 0.303523 13.0904 0.118903 12.8637C-0.0657165 12.637 -0.0315828 12.3035 0.195144 12.1189L2.79576 10.0012C2.99043 9.84272 3.26966 9.84272 3.46433 10.0012L6.06494 12.1189C6.29167 12.3035 6.3258 12.637 6.14118 12.8637C5.95656 13.0904 5.6231 13.1246 5.39637 12.9399L3.65945 11.5256V16.0588C3.65945 16.1563 3.73846 16.2353 3.83592 16.2353H7.58824C7.88062 16.2353 8.11765 16.4723 8.11765 16.7647Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.11765 1.23529C8.11765 0.55306 7.56459 0 6.88236 0H1.23531C0.553077 0 1.69415e-05 0.55306 1.69415e-05 1.23529V6.88235C1.69415e-05 7.56459 0.553076 8.11765 1.23531 8.11765H6.88236C7.56459 8.11765 8.11765 7.56459 8.11765 6.88235V1.23529ZM6.88236 1.05882C6.97982 1.05882 7.05883 1.13783 7.05883 1.23529V6.88235C7.05883 6.97982 6.97982 7.05882 6.88236 7.05882H1.23531C1.13785 7.05882 1.05884 6.97982 1.05884 6.88235V1.23529C1.05884 1.13783 1.13785 1.05882 1.23531 1.05882H6.88236Z",fill:"currentColor"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M18 11.1176C18 10.4354 17.4469 9.88235 16.7647 9.88235H11.1176C10.4354 9.88235 9.88235 10.4354 9.88235 11.1176V16.7647C9.88235 17.4469 10.4354 18 11.1176 18H16.7647C17.4469 18 18 17.4469 18 16.7647V11.1176ZM16.7647 10.9412C16.8622 10.9412 16.9412 11.0202 16.9412 11.1176V16.7647C16.9412 16.8622 16.8622 16.9412 16.7647 16.9412H11.1176C11.0202 16.9412 10.9412 16.8622 10.9412 16.7647V11.1176C10.9412 11.0202 11.0202 10.9412 11.1176 10.9412H16.7647Z",fill:"currentColor"})]})}function Jy(){return b("svg",{className:"collab-icon__svg",width:"50",height:"50",viewBox:"0 0 50 50",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("g",{className:"collab-icon__svg",filter:"url
927(#filter0_d_13652_461491)",children:b("circle",{className:"collab-icon__svg",cx:"25",cy:"21",r:"21",fill:"#777777","fill-opacity":"0.84","shape-rendering":"crispEdges"})}),b("path",{className:"collab-icon__svg",d:"M21.4375 20C21.4375 19.6893 21.6893 19.4375 22 19.4375H28C28.3107 19.4375 28.5625 19.6893 28.5625 20C28.5625 20.3107 28.3107 20.5625 28 20.5625H22C21.6893 20.5625 21.4375 20.3107 21.4375 20Z",fill:"white"}),b("path",{className:"collab-icon__svg",d:"M21.4375 23C21.4375 22.6893 21.6893 22.4375 22 22.4375H28C28.3107 22.4375 28.5625 22.6893 28.5625 23C28.5625 23.3107 28.3107 23.5625 28 23.5625H22C21.6893 23.5625 21.4375 23.3107 21.4375 23Z",fill:"white"}),b("path",{className:"collab-icon__svg","fill-rule":"evenodd","clip-rule":"evenodd",d:"M16 16.25C16 15.8358 16.3358 15.5 16.75 15.5H33.25C33.6642 15.5 34 15.8358 34 16.25V27.4423C34 27.8565 33.6642 28.1923 33.25 28.1923H27.9804C27.853 28.1923 27.7343 28.257 27.6652 28.3641L25.9633 31.0042C25.6651 31.4669 24.9866 31.4613 24.696 30.9938L23.1746 28.5464C23.0378 28.3262 22.7969 28.1923 22.5377 28.1923H16.75C16.3358 28.1923 16 27.8565 16 27.4423V16.25ZM17.125 27.0673V16.625H32.875V27.0673H27.9804C27.4707 27.0673 26.9958 27.3262 26.7197 27.7546L25.3387 29.8968L24.1301 27.9524C23.7879 27.402 23.1858 27.0673 22.5377 27.0673H17.125Z",fill:"white"}),b("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4",fill:"#EB5646"}),b("circle",{className:"collab-icon__svg",cx:"34",cy:"15",r:"4.5",stroke:"white","stroke-opacity":"0.6"}),b("defs",{className:"collab-icon__svg",children:b("filter",{className:"collab-icon__svg",id:"filter0_d_13652_461491",x:"0",y:"0",width:"50",height:"50",filterUnits:"userSpaceOnUse","color-interpolation-filters":"sRGB",children:[b("feFlood",{className:"collab-icon__svg","flood-opacity":"0",result:"BackgroundImageFix"}),b("feColorMatrix",{className:"collab-icon__svg",in:"SourceAlpha",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0",result:"hardAlpha"}),b("feOffset",{className:"collab-icon__svg",dy:"4"}),b("feGaussianBlur",{className:"collab-icon__svg",stdDeviation:"2"}),b("feComposite",{className:"collab-icon__svg",in2:"hardAlpha",operator:"out"}),b("feColorMatrix",{className:"collab-icon__svg",type:"matrix",values:"0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0.25 0"}),b("feBlend",{className:"collab-icon__svg",mode:"normal",in2:"BackgroundImageFix",result:"effect1_dropShadow_13652_461491"}),b("feBlend",{className:"collab-icon__svg",mode:"normal",in:"SourceGraphic",in2:"effect1_dropShadow_13652_461491",result:"shape"})]})})]})}function Qy(){return b("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{d:"M11.25 12C11.25 11.5858 11.5858 11.25 12 11.25H20C20.4142 11.25 20.75 11.5858 20.75 12C20.75 12.4142 20.4142 12.75 20 12.75H12C11.5858 12.75 11.25 12.4142 11.25 12Z",fill:"#475161"}),b("path",{d:"M11.25 16C11.25 15.5858 11.5858 15.25 12 15.25H20C20.4142 15.25 20.75 15.5858 20.75 16C20.75 16.4142 20.4142 16.75 20 16.75H12C11.5858 16.75 11.25 16.4142 11.25 16Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function eb(){return b("svg",{width:"24",height:"24",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{d:"M16 10.25C16.4142 10.25 16.75 10.5858 16.75 11V13.25H19C19.4142 13.25 19.75 13.5858 19.75 14C19.75 14.4142 19.4142 14.75 19 14.75H16.75V17C16.75 17.4142 16.4142 17.75 16 17.75C15.5858 17.75 15.25 17.4142 15.25 17V14.75H13C12.5858 14.75 12.25 14.4142 12.25 14C12.25 13.5858 12.5858 13.25 13 13.25H15.25V11C15.25 10.5858 15.5858 10.25 16 10.25Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4 7C4 6.44772 4.44772 6 5 6H27C27.5523 6 28 6.44772 28 7V21.9231C28 22.4754 27.5523 22.9231 27 22.9231H19.9739C19.804 22.9231 19.6457 23.0094 19.5536 23.1522L17.2844 26.6723C16.8868 27.2892 15.9821 27.2818 15.5946 26.6584L13.5662 23.3952C13.3837 23.1016 13.0625 22.9231 12.7169 22.9231H5C4.44771 22.9231 4 22.4754 4 21.9231V7ZM5.5 21.4231V7.5H26.5V21.4231H19.9739C19.2942 21.4231 18.6611 21.7682 18.2929 22.3395L16.4516 25.1958L14.8401 22.6033C14.3839 21.8694 13.581 21.4231 12.7169 21.4231H5.5Z",fill:"#475161"})]})}function tb(){return b("svg",{width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M8.49999 5.00389C8.71574 5.00389 8.89
927065 5.1788 8.89065 5.39456V9.04076C8.89065 9.25652 8.71574 9.43142 8.49999 9.43142C8.28423 9.43142 8.10932 9.25652 8.10932 9.04076V5.39456C8.10932 5.1788 8.28423 5.00389 8.49999 5.00389Z",fill:"#A31B00"}),b("path",{d:"M8.49999 12.0359C8.85958 12.0359 9.15109 11.7443 9.15109 11.3847C9.15109 11.0252 8.85958 10.7336 8.49999 10.7336C8.14039 10.7336 7.84888 11.0252 7.84888 11.3847C7.84888 11.7443 8.14039 12.0359 8.49999 12.0359Z",fill:"#A31B00"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M5.54062 2.26699C5.71157 2.09604 5.94343 2 6.18519 2L10.8148 2C11.0566 2 11.2884 2.09604 11.4594 2.26699L14.733 5.54062C14.904 5.71157 15 5.94343 15 6.18519L15 10.8148C15 11.0566 14.904 11.2884 14.733 11.4594L11.4594 14.733C11.2884 14.904 11.0566 15 10.8148 15L6.18519 15C5.94343 15 5.71157 14.904 5.54062 14.733L2.26699 11.4594C2.09604 11.2884 2 11.0566 2 10.8148L2 6.18519C2 5.94343 2.09604 5.71157 2.26699 5.54062L5.54062 2.26699ZM6.18519 2.78133C6.15065 2.78133 6.11753 2.79505 6.09311 2.81947L2.81947 6.09311C2.79505 6.11753 2.78133 6.15065 2.78133 6.18519V10.8148C2.78133 10.8493 2.79505 10.8825 2.81947 10.9069L6.09311 14.1805C6.11753 14.205 6.15065 14.2187 6.18519 14.2187H10.8148C10.8493 14.2187 10.8825 14.205 10.9069 14.1805L14.1805 10.9069C14.205 10.8825 14.2187 10.8493 14.2187 10.8148V6.18519C14.2187 6.15065 14.205 6.11753 14.1805 6.09311L10.9069 2.81947C10.8825 2.79505 10.8493 2.78133 10.8148 2.78133L6.18519 2.78133Z",fill:"#A31B00"})]})}function rb(){return b("svg",{width:"32",height:"32",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("circle",{cx:"12",cy:"6",r:"2",fill:"#475161"}),b("circle",{cx:"12",cy:"12",r:"2",fill:"#475161"}),b("circle",{cx:"12",cy:"18",r:"2",fill:"#475161"})]})}function rf(){return b("div",{className:(0,M1.default)("visual-builder__content-type-icon",F()["visual-builder__content-type-icon"]),children:b("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{d:"M4 22L16 29L28 22",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),b("path",{d:"M4 16L16 23L28 16",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"}),b("path",{d:"M4 10L16 17L28 10L16 3L4 10Z",stroke:"#fff","stroke-width":"1.5","stroke-linecap":"round","stroke-linejoin":"round"})]})})}function nb(){return b("div",{className:(0,M1.default)("visual-builder__caret-right-icon",F()["visual-builder__caret-right-icon"]),children:b("svg",{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M11.4697 5.46967C11.7626 5.17678 12.2374 5.17678 12.5303 5.46967L22.5303 15.4697C22.8232 15.7626 22.8232 16.2374 22.5303 16.5303L12.5303 26.5303C12.2374 26.8232 11.7626 26.8232 11.4697 26.5303C11.1768 26.2374 11.1768 25.7626 11.4697 25.4697L20.9393 16L11.4697 6.53033C11.1768 6.23744 11.1768 5.76256 11.4697 5.46967Z",fill:"#fff"})})})}var kF={"bottom-right":F()["visual-builder__start-editing-btn__bottom-right"],"bottom-left":F()["visual-builder__start-editing-btn__bottom-left"],"top-left":F()["visual-builder__start-editing-btn__top-left"],"top-right":F()["visual-builder__start-editing-btn__top-right"]};function UF(e){return["bottom-left","bottom-right","top-left","top-right"].includes(e)?e:"bottom-right"}function $F(){let e=Q.get(),t=e.editInVisualBuilderButton.enable,r=e.editInVisualBuilderButton.position||"bottom-right";function i(o){o.target.setAttribute("href",P1().toString())}return t?b("a",{href:P1().toString(),className:(0,ib.default)("visual-builder__start-editing-btn",F()["visual-builder__start-editing-btn"],kF[UF(r)]),"data-testid":"vcms-start-editing-btn",onMouseEnter:o=>i(o),onFocus:o=>i(o),onClick:o=>i(o),children:[b(Cn,{}),b("span",{children:"Start Editing"})]}):null}var ob=$F;function ab(){let e=document.querySelector(".visual-builder__start-editing-btn");if(e)return e;let t=document.createDocumentFragment();return At(b(ob,{}),t),t.children.length===0?void 0:(document.body.appendChild(t),document.querySelector(".visual-builder__start-editing-btn"))}var Fe=(e=>(e.CUSTOM_FIELD="custom_field",e.MULTILINE="multiline",e.HTML_RTE="html_rte",e.MARKDOWN_RTE="markdown_rte",e.SELECT="select",e.URL="url",e.SINGLELINE="singleline",e.JSON_RTE="json_rte",e.MODULAR_BLOCK="modular_block",e.LINK="link",e.ISODATE="isodate",e.BOOLEAN="boolean",e.BLOCK="block",e.NUMBER="number",e.REFERENCE="reference",e.GROUP="group",e.EXPERIENCE_CONTAINER="experience_container",e.FILE="file",e.GLOBAL_FIELD="global_field",e.TAXONOMY="taxonomy",e))(Fe||{});var sb=/^-?\d*(\.\d*)?([eE][-+]?\d*)?$/,Ui="data-cslp-field-type",lb="visual-builder",En=2,$i=42,cl=180,Vi=8,Lr="data-cslp",nf=[Fe.SINGLELINE,Fe.MULTILINE,Fe.NUMBER],ub=[Fe.HTML_RTE,Fe.MARKDOWN_RTE,Fe.JSON_RTE,Fe.CUSTOM_FIELD,Fe.LINK,Fe.ISODATE,Fe.URL],cb=[Fe.REFERENCE,Fe.FILE],Uoe=[Fe.GLOBAL_FIELD,Fe.GROUP,Fe.BLOCK],fb="\xA0",D1=20,fl=500;var VF=ca(Va(),1),db;typeof window<"u"&&(db=new VF.EventManager(lb,{target:window.parent,debug:!1}));var ae=db;var se=(e=>(e.INIT="init",e.ADD_INSTANCE="add-instance",e.UPDATE_FIELD="update-field",e.SYNC_FIELD="sync-field",e.OPEN_ASSET_MODAL="open-asset-modal",e.OPEN_REFERENCE_MODAL="open-reference-modal",e.OPEN_QUICK_FORM="open-quick-form",e.TOGGLE_FORM="toggle-quick-form",e.GET_FIELD_SCHEMA="get-field-schema",e.GET_FIELD_DATA="get-field-data",e.GET_FIELD_PATH_WITH_UID="get-field-path-with-uid",e.GET_FIELD_DISPLAY_NAMES="get-field-display-names",e.MOUSE_CLICK="mouse-click",e.FOCUS_FIELD="focus-field",e.OPEN_FIELD_EDIT_MODAL="open-field-edit-modal",e.DELETE_INSTANCE="delete-instance",e.MOVE_INSTANCE="move-instance",e.GET_DISCUSSION_ID="get-discussion-id-for-comment-modal",e.OPEN_FIELD_COMMENT_MODAL="open-field-comment-modal",e.COLLAB_CREATE_THREAD="collab-create-thread",e.COLLAB_CREATE_COMMENT="collab-create-comment",e.COLLAB_FETCH_COMMENTS="collab-fetch-comments",e.COLLAB_EDIT_COMMENT="collab-edit-comment",e.COLLAB_DELETE_COMMENT="collab-delete-comment",e.COLLAB_RESOLVE_THREAD="collab-resolve-thread",e.COLLAB_DELETE_THREAD="collab-delete-thread",e.COLLAB_MISSING_THREADS="collab-missing-threads",e.FIELD_LOCATION_DATA="field-location-data",e.FIELD_LOCATION_
927SELECTED_APP="field-location-selected-app",e.GET_ALL_ENTRIES_IN_CURRENT_PAGE="get-entries-in-current-page",e.HIDE_FOCUS_OVERLAY="hide-focus-overlay",e.SHOW_DRAFT_FIELDS="show-draft-fields",e.REMOVE_DRAFT_FIELDS="remove-draft-fields",e.SHOW_VARIANT_FIELDS="show-variant-fields",e.REMOVE_VARIANT_FIELDS="remove-variant-fields",e.SET_AUDIENCE_MODE="set-audience-mode",e.UPDATE_DISCUSSION_ID="update-discussion-id-for-focus-field",e.SCROLL_TO_FIELD="scroll-to-view-field-by-cslp-value",e.HIGHLIGHT_ACTIVE_COMMENTS="highlight-active-comments-by-data-cs",e.REMOVE_HIGHLIGHTED_COMMENTS="remove-highlighted-comments",e.GET_VARIANT_ID="get-variant-id",e.GET_LOCALE="get-locale",e.SEND_VARIANT_AND_LOCALE="send-variant-and-locale",e.GET_CONTENT_TYPE_NAME="get-content-type-name",e.REFERENCE_MAP="get-reference-map",e.COLLAB_ENABLE="collab-enable",e.COLLAB_DATA_UPDATE="collab-data-update",e.COLLAB_DISABLE="collab-disable",e.COLLAB_THREADS_REMOVE="collab-threads-remove",e.COLLAB_THREAD_REOPEN="collab-thread-reopen",e.COLLAB_THREAD_HIGHLIGHT="collab-thread-highlight",e.TOGGLE_SCROLL="toggle-scroll",e))(se||{});var WF=(()=>{let e=class Rr{static fetchFieldSchema(r){return K(this,null,function*(){return Rr.fieldSchemaPromise?.[r]||(Rr.fieldSchemaPromise[r]=ae?.send(se.GET_FIELD_SCHEMA,{contentTypeUid:r})),Rr.fieldSchemaPromise[r]})}static getFieldSchema(r,i){return K(this,null,function*(){if(Rr.hasFieldSchema(r,i))return Promise.resolve(Rr.fieldSchema[r][i]);let o=yield Rr.fetchFieldSchema(r);return o?.fieldSchemaMap&&(Rr.fieldSchema[r]=o.fieldSchemaMap),Rr?.fieldSchema?.[r]?.[i]||null})}static hasFieldSchema(r,i){return Ys(Rr.fieldSchema,[r,i])}static areFieldSchemaEqual(r,i){return Xs(r,i)}static setFieldSchema(r,i){Rr.fieldSchema[r]=i}static clear(){Rr.fieldSchema={},Rr.fieldSchemaPromise={}}};return e.fieldSchema={},e.fieldSchemaPromise={},e})(),_t=WF;function Wa(e){return e?.error===!0}function pb(e,t){return K(this,null,function*(){let r=yield ae?.send(se.GET_FIELD_DATA,{fieldMetadata:e,entryPath:t??""});return Wa(r)?"":r?.fieldData})}function Sn(e){if(e){if(Object.hasOwnProperty.call(e,"extension_uid"))return Fe.CUSTOM_FIELD;switch(e.data_type){case"text":return e.field_metadata?.multiline?Fe.MULTILINE:e.field_metadata?.allow_rich_text?Fe.HTML_RTE:e.field_metadata?.markdown?Fe.MARKDOWN_RTE:e.enum?Fe.SELECT:e.uid==="url"&&e.field_metadata?._default?Fe.URL:Fe.SINGLELINE;case"json":{if(e.field_metadata?.allow_json_rte)return Fe.JSON_RTE;break}case"blocks":return"modular_block";case"link":case"isodate":case"boolean":case"block":case"number":case"reference":case"group":case"experience_container":case"file":case"taxonomy":case"global_field":return Fe[e.data_type.toUpperCase()]}return""}}function mb(e){let t=window.getSelection();if(t&&t.rangeCount>0){let r=t.getRangeAt(0),i=document.createTextNode(fb);r.deleteContents(),r.insertNode(i),r.setStartAfter(i),r.setEndAfter(i),t.removeAllRanges(),t.addRange(r)}}function of(e){let t=e,i=t.target.getAttribute(Ui);t.type==="input"&&nf.includes(i)&&(be.VisualBuilderGlobalState.value.focusFieldReceivedInput||(be.VisualBuilderGlobalState.value.focusFieldReceivedInput=!0),hb())}var hb=vo(()=>{try{let e=document.querySelector(".visual-builder__container");if(!e)return;N1({visualBuilderContainer:e,eventType:se.SYNC_FIELD})}catch(e){console.error("Error in throttledFieldSync",e)}},300);function af(e){let t=e,i=t.target.getAttribute(Ui);t.composedPath().some(o=>o instanceof Element&&o.tagName==="BUTTON")&&qF(t),i===Fe.NUMBER?jF(t):i===Fe.SINGLELINE&&zF(t)}function qF(e){e.code==="Space"&&e.target&&(e.preventDefault(),mb(e.target),hb())}function zF(e){e.code==="Enter"&&e.preventDefault()}function jF(e){let t=e.target,r=["Backspace","Tab","Enter","End","Home","ArrowLeft","ArrowRight","Delete"];if(e.ctrlKey||e.metaKey||e.altKey||r.includes(e.code)||e.code.includes("Digit"))return;if(!["-",".","e","E"].includes(e.key)){e.preventDefault();return}let o={startOffset:window.getSelection()?.getRangeAt(0).startOffset||0,endOffset:window.getSelection()?.getRangeAt(0).endOffset||0},l=(t.textContent||"").split("");l.splice(o.startOffset,o.endOffset-o.startOffset,e.key);let c=l.join("");sb.test(c)||e.preventDefault()}var GF=e=>e.updateRestrictDueToEntryUpdateRestriction?"You do not have permission to edit this entry":e.updateRestrictDueToRole?"You have only read access to this field":e.updateRestrictDueToNonLocalizableFields?"Editing this field is restricted in localized entries":e.updateRestrictDueToUnlocalizedVariant?"This field is not editable as it is not localized":e.updateRestrictDueToUnlinkVariant?"This field is not editable as it is not linked to the selected variant":e.updateRestrictDueToAudienceMode?"Open an Experience from Audience widget to start editing":e.updateRestrictDueToDisabledVariant?"This field is not editable as it doesn't match the selected variant":"",ir=(e,t,r)=>{let{editableElement:i,fieldMetadata:o}
927=t,s=Q.get().stackDetails.masterLocale||"en-us",{locale:l,variant:c}=be.VisualBuilderGlobalState.value,f={updateRestrictDueToRole:!!e?.field_metadata?.updateRestrict,updateRestrictDueToUnlinkVariant:!!e?.field_metadata?.isUnlinkedVariant,updateRestrictDueToUnlocalizedVariant:!!(c&&o.locale!==l),updateRestrictDueToNonLocalizableFields:!!(e?.non_localizable&&s!==o.locale),updateRestrictDueToAudienceMode:!1,updateRestrictDueToDisabledVariant:!1};r&&!r.update&&(f.updateRestrictDueToEntryUpdateRestriction=!0),be.VisualBuilderGlobalState.value.audienceMode&&!i.classList.contains("visual-builder__variant-field")&&!i.classList.contains("visual-builder__base-field")&&(i.classList.contains("visual-builder__disabled-variant-field")?f.updateRestrictDueToDisabledVariant=!0:f.updateRestrictDueToAudienceMode=!0);let d=Object.values(f).some(Boolean),m=GF(f);return{isDisabled:d,reason:m}};var B1=Te(ze(),1);function ZF(e){let t=e.fieldSchema,r=e.fieldMetadata,i=e.index,o=e.loading,s=m=>K(this,null,function*(){o.value=!0;try{yield ae?.send(se.ADD_INSTANCE,{fieldMetadata:r,index:i})}catch(p){console.error("Visual Builder: Failed to add instance",p)}o.value=!1,e.onClick(m)}),l=(0,B1.default)("visual-builder__add-button",F()["visual-builder__add-button"],{"visual-builder__add-button--with-label":e.label},{[F()["visual-builder__add-button--loading"]]:o.value},F()["visual-builder__tooltip"]),c=t&&t.data_type!=="block"?t.max_instance:void 0,f=c?e.value.length>=c:!1,d=o.value||f;return b("button",{className:l,"data-tooltip":"Add section","data-testid":"visual-builder
927-add-instance-button",disabled:d,title:c&&f?`Max ${c} instances allowed`:void 0,onClick:m=>{s(m)},children:[b(Yy,{}),e.label?b("span",{title:e.label,className:(0,B1.default)("visual-builder__add-button-label",F()["visual-builder__add-button-label"]),children:e.label}):null]})}var vb=ZF;function F1({value:e,fieldSchema:t,fieldMetadata:r,index:i,loading:o,onClick:s,label:l}){let c=document.createDocumentFragment();return At(b(vb,{loading:o,index:i,value:e,label:l,onClick:s,fieldSchema:t,fieldMetadata:r}),c),c.children[0]}function dl(e,t=!1){let r=e.getElementsByClassName("visual-builder__add-button");if(t)return Array.from(r);if(r.length<2)return null;let i=r[0],o=r[1];return[i,o]}function gb(e,t){let r=e.querySelectorAll(`[data-cslp^="${t+"."}"]`),i=Array.from(r).filter(d=>d.getAttribute("data-cslp")?.match(/\.\d+$/)!==null),o=i.at(0);if(!o)return[null,null,()=>{}];let s=i.at(1);if(s)return[o,s,()=>{}];let l=document.createElement(o.tagName);l.setAttribute("class",o.getAttribute("class")??""),l.setAttribute("style","overflow: hidden !important; width: 0 !important; height: 0 !important; padding: 0 !important; border: 0 !important;"),e.appendChild(l);function f(){e.removeChild(l)}return[o,l,f]}var KF=["vertical","horizontal","none"];function qa(e,t){if(!e)return"none";let r=e.closest(`[data-cslp="${t}"]`);if(!r)return"none";let i=r.getAttribute("data-add-direction"),o=KF.includes(i);if(i&&o)return i;let[s,l,c]=gb(r,t);if(!s)return"none";let f=s.getBoundingClientRect(),d=l.getBoundingClientRect(),m=Math.abs(f.left-d.left),p=Math.abs(f.top-d.top),v=m>p?"horizontal":"vertical";return c(),v}function pl(e){let t=e.target;if(!t)return;let r=t.closest("[data-cslp]");if(!r)return;let i=r.getAttribute("data-cslp");if(!i)return;let o=Ot(i);return{editableElement:r,cslpData:i,fieldMetadata:o}}function _b(e){let t;if(e.startsWith("v2:")){let r=e.split(":")[1],i=r.split(".")[0],o=r.split(".")[1].split("_")[0],s=r.split(".")[2];t=`${i}.${o}.${s}`}else t=e;return t.split(".").slice(0,3).join(".")}function za(e){let t=[],r=e.closest(`[${Lr}]`);for(;r;){let i=r.getAttribute(Lr),o=_b(i);_b(t.at(0)||"").startsWith(o)||t.unshift(i),r=r.parentElement?.closest(`[${Lr}]`)}return t.map(i=>Ot(i))}var ml=Te(ze(),1);var yb='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.25 3.5625C2.25 2.83763 2.83763 2.25 3.5625 2.25H20.441C21.1659 2.25 21.7535 2.83763 21.7535 3.5625V20.441C21.7535 21.1659 21.1659 21.7535 20.441 21.7535H3.5625C2.83763 21.7535 2.25 21.1659 2.25 20.441V3.5625ZM3.375 12.5643V20.441C3.375 20.5446 3.45895 20.6285 3.5625 20.6285H11.4393V12.5643L3.375 12.5643ZM11.4393 11.4393L3.375 11.4393V3.5625C3.375 3.45895 3.45895 3.375 3.5625 3.375H11.4393V11.4393ZM12.5643 12.5643V20.6285H20.441C20.5446 20.6285 20.6285 20.5446 20.6285 20.441V12.5643L12.5643 12.5643ZM20.6285 11.4393L12.5643 11.4393V3.375H20.441C20.5446 3.375 20.6285 3.45895 20.6285 3.5625V11.4393Z" fill="white"/></svg>',bb='<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M15.5747 8.4136C15.7945 8.63311 15.7948 8.98927 15.5753 9.2091L9.21902 15.5747C8.99952 15.7946 8.64336 15.7948 8.42353 15.5753C8.2037 15.3558 8.20344 14.9996 8.42294 14.7798L14.7792 8.41419C14.9987 8.19436 15.3549 8.1941 15.5747 8.4136Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M7.6251 10.0076C7.84477 10.2273 7.84477 10.5835 7.6251 10.8031L4.97197 13.4563C4.23333 14.1949 3.81836 15.1967 3.81836 16.2413C3.81836 17.2859 4.23333 18.2878 4.97197 19.0264C5.71062 19.765 6.71243 20.18 7.75704 20.18C8.27427 20.18 8.78644 20.0781 9.2643 19.8802C9.74216 19.6823 10.1764 19.3921 10.5421 19.0264L13.1952 16.3733C13.4149 16.1536 13.7711 16.1536 13.9907 16.3733C14.2104 16.5929 14.2104 16.9491 13.9907 17.1688L11.3376 19.8219C10.8674 20.2921 10.3092 20.6651 9.69482 20.9196C9.08047 21.174 8.42201 21.305 7.75704 21.305C6.41406 21.305 5.1261 20.7715 4.17648 19.8219C3.22685 18.8723 2.69336 17.5843 2.69336 16.2413C2.69336 14.8984 3.22685 13.6104 4.17648 12.6608L6.8296 10.0076C7.04927 9.78798 7.40543 9.78798 7.6251 10.0076Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M12.6608 4.17648C13.6104 3.22685 14.8984 2.69336 16.2413 2.69336C17.5843 2.69336 18.8723 3.22685 19.8219 4.17648C20.7715 5.1261 21.305 6.41406 21.305 7.75704C21.305 9.10001 20.7715 10.388 19.8219 11.3376L17.1688 13.9907C16.9491 14.2104 16.5929 14.2104 16.3733 13.9907C16.1536 13.7711 16.1536 13.4149 16.3733 13.1952L19.0264 10.5421C19.765 9.80345 20.18 8.80164 20.18 7.75704C20.18 6.71243 19.765 5.71062 19.0264 4.97197C18.2878 4.23333 17.2859 3.8
9271836 16.2413 3.81836C15.1967 3.81836 14.1949 4.23333 13.4563 4.97197L10.8031 7.6251C10.5835 7.84477 10.2273 7.84477 10.0076 7.6251C9.78798 7.40543 9.78798 7.04927 10.0076 6.8296L12.6608 4.17648Z" fill="white"/></svg>',ja={singleline:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.94958 7.8294C5.85419 7.6199 5.64077 7.48967 5.41084 7.50064C5.1809 7.51162 4.98086 7.66158 4.90585 7.87921L3.19036 12.8566L2.2835 15.3717C2.17813 15.664 2.32962 15.9863 2.62186 16.0917C2.9141 16.197 3.23643 16.0455 3.34181 15.7533L3.95144 14.0625H7.53908L8.29768 15.7888C8.42266 16.0732 8.75454 16.2025 9.03895 16.0775C9.32336 15.9525 9.4526 15.6206 9.32762 15.3362L8.22073 12.8173L8.21769 12.8105L5.94958 7.8294ZM7.03937 12.9375L5.51002 9.57881L4.35242 12.9375H7.03937Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M11.625 8.0625C11.625 7.75184 11.3732 7.5 11.0625 7.5C10.7518 7.5 10.5 7.75184 10.5 8.0625V15.5625C10.5 15.8732 10.7518 16.125 11.0625 16.125C11.3731 16.125 11.6249 15.8733 11.625 15.5627C12.0951 15.9158 12.6793 16.125 13.3125 16.125C14.8658 16.125 16.125 14.8658 16.125 13.3125C16.125 11.7592 14.8658 10.5 13.3125 10.5C12.6793 10.5 12.0951 10.7092 11.625 11.0623V8.0625ZM11.625 13.3116C11.625 13.3119 11.625 13.3122 11.625 13.3125C11.625 13.3128 11.625 13.3131 11.625 13.3134C11.6255 14.245 12.3808 15 13.3125 15C14.2445 15 15 14.2445 15 13.3125C15 12.3805 14.2445 11.625 13.3125 11.625C12.3808 11.625 11.6255 12.38 11.625 13.3116Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M19.9448 10.5025C20.4222 10.4825 20.8969 10.5844 21.324 10.7988C21.6017 10.9381 21.7138 11.2762 21.5744 11.5538C21.4351 11.8315 21.0971 11.9436 20.8194 11.8043C20.5631 11.6757 20.2783 11.6145 19.9919 11.6265C19.7054 11.6385 19.4267 11.7233 19.1821 11.8729C18.9375 12.0224 18.735 12.2319 18.5938 12.4814C18.4526 12.731 18.3773 13.0124 18.375 13.2991C18.3728 13.5858 18.4436 13.8684 18.5808 14.1201C18.718 14.3719 18.9171 14.5845 19.1593 14.738C19.4015 14.8914 19.6788 14.9806 19.9651 14.9972C20.2513 15.0137 20.5371 14.9571 20.7953 14.8326C21.0752 14.6977 21.4114 14.8151 21.5463 15.095C21.6812 15.3748 21.5637 15.711 21.2839 15.846C20.8534 16.0535 20.3772 16.1479 19.9001 16.1203C19.423 16.0927 18.9609 15.944 18.5572 15.6883C18.1535 15.4325 17.8217 15.0781 17.593 14.6585C17.3643 14.2389 17.2463 13.768 17.2501 13.2901C17.2539 12.8123 17.3794 12.3433 17.6147 11.9274C17.8501 11.5115 18.1875 11.1624 18.5952 10.9131C19.0029 10.6638 19.4673 10.5225 19.9448 10.5025Z" fill="white"/></svg>',multiline:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 6.75C20.8125 7.06066 20.5607 7.3125 20.25 7.3125L12.75 7.3125C12.4393 7.3125 12.1875 7.06066 12.1875 6.75C12.1875 6.43934 12.4393 6.1875 12.75 6.1875L20.25 6.1875C20.5607 6.1875 20.8125 6.43934 20.8125 6.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 11.25C20.8125 11.5607 20.5607 11.8125 20.25 11.8125H12.75C12.4393 11.8125 12.1875 11.5607 12.1875 11.25C12.1875 10.9393 12.4393 10.6875 12.75 10.6875H20.25C20.5607 10.6875 20.8125 10.9393 20.8125 11.25Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 15.75C20.8125 16.0607 20.5607 16.3125 20.25 16.3125L3.75 16.3125C3.43934 16.3125 3.1875 16.0607 3.1875 15.75C3.1875 15.4393 3.43934 15.1875 3.75 15.1875L20.25 15.1875C20.5607 15.1875 20.8125 15.4393 20.8125 15.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M20.8125 20.25C20.8125 20.5607 20.5607 20.8125 20.25 20.8125L3.75 20.8125C3.43934 20.8125 3.1875 20.5607 3.1875 20.25C3.1875 19.9393 3.43934 19.6875 3.75 19.6875L20.25 19.6875C20.5607 19.6875 20.8125 19.9393 20.8125 20.25Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.69958 4.0794C6.60419 3.8699 6.39077 3.73967 6.16084 3.75064C5.9309 3.76162 5.73086 3.91158 5.65585 4.12921L3.94036 9.10658L3.0335 11.6217C2.92813 11.914 3.07962 12.2363 3.37186 12.3417C3.6641 12.447 3.98643 12.2955 4.09181 12.0033L4.70145 10.3125H8.28908L9.04768 12.0388C9.17266 12.3232 9.50454 12.4525 9.78895 12.3275C10.0734 12.2025 10.2026 11.8706 10.0776 11.5862L8.97074 9.06732L8.96769 9.06052L6.69958 4.0794ZM7.78938 9.1875L6.26002 5.8288L5.10242 9.1875H7.78938Z" fill="white"/></svg>',html_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3.5625 11.4375V5.0625H11.4375V10.7422L10.1108 8.0888C9.82462 7.51646 9.06183 7.39267 8.60936 7.84515L5.017 11.4375H3.5625ZM6.608 11.4375H10.5274L9.2209 8.82459L6.608 11.4375ZM3.375 3.9375C2.85723 3.9375 2.4375 4.35723 2.4375 4.875V11.625C2.4375 12.1428 2.85723 12.5625 3.375 12.5625H11.625C12.1428 12.5625 12.5625 12.1428 12.5625 11.625V4.875C12.5625 4.35723 12.1428 3.9375 11.625 3.9375H3.375Z" fill="white"/><path d="M6.11566 7.73132C6.59375 7.73132 6.98132 7.34375 6.98132 6.86566C6.98132 6.38757 6.59375 6 6.11566 6C5.63757 6 5.25 6.38757 5.25 6.86566C5.25 7.34375 5.63757 7.73132 6.11566 7.73132Z" fill="#475161"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 6C21.5625 6.31066 21.3107 6.5625 21 6.5625L15 6.5625C14.6893 6.5625 14.4375 6.31066 14.4375 6C14.4375 5.68934 14.6893 5.4375 15 5.4375L21 5.4375C21.3107 5.4375 21.5625 5.68934 21.5625 6Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 10.5C21.5625 10.8107 21.3107 11.0625 21 11.0625H15C14.6893 11.0625 14.4375 10.8107 14.4375 10.5C14.4375 10.
9271893 14.6893 9.9375 15 9.9375L21 9.9375C21.3107 9.9375 21.5625 10.1893 21.5625 10.5Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 15C21.5625 15.3107 21.3107 15.5625 21 15.5625L3.75 15.5625C3.43934 15.5625 3.1875 15.3107 3.1875 15C3.1875 14.6893 3.43934 14.4375 3.75 14.4375L21 14.4375C21.3107 14.4375 21.5625 14.6893 21.5625 15Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M21.5625 19.5C21.5625 19.8107 21.3107 20.0625 21 20.0625L3.75 20.0625C3.43934 20.0625 3.1875 19.8107 3.1875 19.5C3.1875 19.1893 3.43934 18.9375 3.75 18.9375L21 18.9375C21.3107 18.9375 21.5625 19.1893 21.5625 19.5Z" fill="white"/></svg>',json_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M8.67113 7.5005C7.94625 7.5005 7.35863 8.08812 7.35863 8.813V9.87593C7.35863 10.1866 7.61047 10.4384 7.92113 10.4384C8.23179 10.4384 8.48363 10.1866 8.48363 9.87593V8.813C8.48363 8.70944 8.56757 8.6255 8.67113 8.6255H11.4375V15.6584H10.3575C10.0468 15.6584 9.79501 15.9103 9.79501 16.2209C9.79501 16.5316 10.0468 16.7834 10.3575 16.7834H13.9834C14.294 16.7834 14.5459 16.5316 14.5459 16.2209C14.5459 15.9103 14.294 15.6584 13.9834 15.6584H12.5625V8.6255H15.3293C15.4329 8.6255 15.5168 8.70945 15.5168 8.813V9.87593C15.5168 10.1866 15.7687 10.4384 16.0793 10.4384C16.39 10.4384 16.6418 10.1866 16.6418 9.87593V8.813C16.6418 8.08812 16.0542 7.5005 15.3293 7.5005H8.67113Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M6.97059 2.99805C5.00307 2.99805 3.40809 4.59303 3.40809 6.56055V9.51691C3.40809 10.5707 2.55381 11.425 1.5 11.425V12.55C2.55381 12.55 3.40809 13.4043 3.40809 14.4581V17.4145C3.40809 19.382 5.00307 20.977 6.97059 20.977H7.5V19.852H6.97059C5.6244 19.852 4.53309 18.7607 4.53309 17.4145V14.4581C4.53309 13.4391 4.03059 12.5375 3.25988 11.9875C4.03059 11.4375 4.53309 10.5359 4.53309 9.51691V6.56055C4.53309 5.21435 5.6244 4.12305 6.97059 4.12305H7.5V2.99805H6.97059Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M17.0294 2.99805C18.9969 2.99805 20.5919 4.59303 20.5919 6.56055V9.51691C20.5919 10.5707 21.4462 11.425 22.5 11.425V12.55C21.4462 12.55 20.5919 13.4043 20.5919 14.4581V17.4145C20.5919 19.382 18.9969 20.977 17.0294 20.977H16.5V19.852H17.0294C18.3756 19.852 19.4669 18.7607 19.4669 17.4145V14.4581C19.4669 13.4391 19.9694 12.5375 20.7401 11.9875C19.9694 11.4375 19.4669 10.5359 19.4669 9.51691V6.56055C19.4669 5.21435 18.3756 4.12305 17.0294 4.12305H16.5V2.99805H17.0294Z" fill="white"/></svg>',markdown_rte:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path d="M11.3163 16.1134L11.3051 11.4011L8.9938 15.2831H8.17475L5.87469 11.502V16.1134H4.16928V8.25951H5.67273L8.61232 13.1401L11.507 8.25951H12.9993L13.0217 16.1134H11.3163Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M1.6875 6C1.6875 5.27513 2.27513 4.6875 3 4.6875H21C21.7249 4.6875 22.3125 5.27513 22.3125 6V18C22.3125 18.7249 21.7249 19.3125 21 19.3125H3C2.27513 19.3125 1.6875 18.7249 1.6875 18V6ZM3 5.8125C2.89645 5.8125 2.8125 5.89645 2.8125 6V18C2.8125 18.1036 2.89645 18.1875 3 18.1875H21C21.1036 18.1875 21.1875 18.1036 21.1875 18V6C21.1875 5.89645 21.1036 5.8125 21 5.8125H3Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M18.1818 12.408H20.1013L17.4168 16.1134L14.7323 12.408H16.6518V8.27225H18.1818V12.408Z" fill="white"/></svg>',select:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M3 8.8125C2.89645 8.8125 2.8125 8.89645 2.8125 9V10.5C2.8125 10.8107 2.56066 11.0625 2.25 11.0625C1.93934 11.0625 1.6875 10.8107 1.6875 10.5V9C1.6875 8.27513 2.27513 7.6875 3 7.6875H4.5C4.81066 7.6875 5.0625 7.93934 5.0625 8.25C5.0625 8.56066 4.81066 8.8125 4.5 8.8125H3ZM6.9375 8.25C6.9375 7.93934 7.18934 7.6875 7.5 7.6875H10.5C10.8107 7.6875 11.0625 7.93934 11.0625 8.25C11.0625 8.56066 10.8107 8.8125 10.5 8.8125H7.5C7.18934 8.8125 6.9375 8.56066 6.9375 8.25ZM12.9375 8.25C12.9375 7.93934 13.1893 7.6875 13.5 7.687
9275H16.5C16.8107 7.6875 17.0625 7.93934 17.0625 8.25C17.0625 8.56066 16.8107 8.8125 16.5 8.8125H13.5C13.1893 8.8125 12.9375 8.56066 12.9375 8.25ZM18.9375 8.25C18.9375 7.93934 19.1893 7.6875 19.5 7.6875H21C21.7249 7.6875 22.3125 8.27513 22.3125 9V10.6875C22.3125 10.9982 22.0607 11.25 21.75 11.25C21.4393 11.25 21.1875 10.9982 21.1875 10.6875V9C21.1875 8.89645 21.1036 8.8125 21 8.8125H19.5C19.1893 8.8125 18.9375 8.56066 18.9375 8.25ZM2.25 12.9375C2.56066 12.9375 2.8125 13.1893 2.8125 13.5V15C2.8125 15.1036 2.89645 15.1875 3 15.1875H4.125C4.43566 15.1875 4.6875 15.4393 4.6875 15.75C4.6875 16.0607 4.43566 16.3125 4.125 16.3125H3C2.27513 16.3125 1.6875 15.7249 1.6875 15V13.5C1.6875 13.1893 1.93934 12.9375 2.25 12.9375ZM21.75 13.5C22.0607 13.5 22.3125 13.7518 22.3125 14.0625V15.75C22.3125 16.0607 22.0607 16.3125 21.75 16.3125C21.4393 16.3125 21.1875 16.0607 21.1875 15.75V14.0625C21.1875 13.7518 21.4393 13.5 21.75 13.5ZM5.8125 15.75C5.8125 15.4393 6.06434 15.1875 6.375 15.1875H8.625C8.93566 15.1875 9.1875 15.4393 9.1875 15.75C9.1875 16.0607 8.93566 16.3125 8.625 16.3125H6.375C6.06434 16.3125 5.8125 16.0607 5.8125 15.75ZM10.3125 15.75C10.3125 15.4393 10.5643 15.1875 10.875 15.1875H12C12.3107 15.1875 12.5625 15.4393 12.5625 15.75C12.5625 16.0607 12.3107 16.3125 12 16.3125H10.875C10.5643 16.3125 10.3125 16.0607 10.3125 15.75Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M13.4457 13.3706C13.3603 12.5628 14.2727 12.036 14.9296 12.5139L21.2889 17.1406C21.9906 17.6511 21.6818 18.7589 20.8172 18.8328L17.7404 19.0958L15.9742 21.6289C15.4779 22.3407 14.3642 22.0543 14.2729 21.1913L13.4457 13.3706ZM14.6089 13.6718L15.3388 20.5732L16.8678 18.3803C17.027 18.1519 17.2796 18.0061 17.557 17.9823L20.2207 17.7547L14.6089 13.6718Z" fill="white"/></svg>',modular_block:yb,block:yb,number:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M6.46172 8.08704C6.45117 8.02147 6.42928 7.9597 6.39813 7.90379C6.35727 7.8301 6.3012 7.7682 6.23536 7.72082C6.16973 7.67343 6.09347 7.63985 6.01084 7.62433C5.94777 7.61236 5.88203 7.61108 5.81629 7.62183C5.78173 7.6274 5.74822 7.63611 5.71607 7.64767L3.47852 8.39352C3.18381 8.49176 3.02453 8.81031 3.12277 9.10503C3.22101 9.39975 3.53956 9.55903 3.83428 9.46079L5.3439 8.95758L5.3439 15.302H4.59375C4.28309 15.302 4.03125 15.5538 4.03125 15.8645C4.03125 16.1752 4.28309 16.427 4.59375 16.427H7.33594C7.6466 16.427 7.89844 16.1752 7.89844 15.8645C7.89844 15.5538 7.6466 15.302 7.33594 15.302H6.4689L6.4689 8.19029C6.4697 8.15613 6.46737 8.12159 6.46172 8.08704Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M9.51562 9.32004C9.51562 8.35585 10.2973 7.57422 11.2614 7.57422H12.8054C13.6809 7.57422 14.3906 8.28395 14.3906 9.15945V10.9828C14.3906 11.6816 13.9922 12.3191 13.3642 12.6254L12.2817 13.1533C12.2739 13.1571 12.266 13.1607 12.258 13.1641L11.3359 13.562C10.6003 13.8794 10.0831 14.537 9.93348 15.302H13.8281C14.1388 15.302 14.3906 15.5538 14.3906 15.8645C14.3906 16.1752 14.1388 16.427 13.8281 16.427H9.36208C9.03756 16.427 8.77241 16.1679 8.76493 15.8435C8.73182 14.4088 9.57261 13.0976 10.8902 12.5291L11.8003 12.1364L12.8711 11.6142C13.1125 11.4965 13.2656 11.2514 13.2656 10.9828V9.15945C13.2656 8.90527 13.0596 8.69922 12.8054 8.69922H11.2614C10.9186 8.69922 10.6406 8.97717 10.6406 9.32004C10.6406 9.6307 10.3888 9.88254 10.0781 9.88254C9.76746 9.88254 9.51562 9.6307 9.51562 9.32004Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.5938 7.62677C16.2831 7.62677 16.0312 7.87861 16.0312 8.18927C16.0312 8.49993 16.2831 8.75177 16.5938 8.75177H19.5938C19.6973 8.75177 19.7812 8.83572 19.7812 8.93927V11.4583H16.5938C16.2831 11.4583 16.0312 11.7101 16.0312 12.0208C16.0312 12.3315 16.2831 12.5833 16.5938 12.5833H19.7812V15.1023C19.7812 15.2059 19.6973 15.2898 19.5938 15.2898H16.5938C16.2831 15.2898 16.0312 15.5417 16.0312 15.8523C16.0312 16.163 16.2831 16.4148 16.5938 16.4148H19.5938C20.3186 16.4148 20.9062 15.8272 20.9062 15.1023V8.93927C20.9062 8.2144 20.3186 7.62677 19.5938 7.62677H16.5938Z" fill="white"/></svg>',boolean:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
927<path fill-rule="evenodd" clip-rule="evenodd" d="M1.6875 12C1.6875 8.78984 4.28985 6.1875 7.5 6.1875H16.5C19.7102 6.1875 22.3125 8.78984 22.3125 12C22.3125 15.2102 19.7102 17.8125 16.5 17.8125H7.5C4.28985 17.8125 1.6875 15.2102 1.6875 12ZM7.5 7.3125C4.91117 7.3125 2.8125 9.41117 2.8125 12C2.8125 14.5888 4.91117 16.6875 7.5 16.6875H16.5C19.0888 16.6875 21.1875 14.5888 21.1875 12C21.1875 9.41117 19.0888 7.3125 16.5 7.3125H7.5Z" fill="white"/><path d="M19.5 12C19.5 13.6569 18.1569 15 16.5 15C14.8431 15 13.5 13.6569 13.5 12C13.5 10.3431 14.8431 9 16.5 9C18.1569 9 19.5 10.3431 19.5 12Z" fill="white"/></svg>',isodate:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M7.18616 2.22852C7.49682 2.22852 7.74866 2.48036 7.74866 2.79102V3.90302H14.9956V2.79102C14.9956 2.48036 15.2474 2.22852 15.5581 2.22852C15.8688 2.22852 16.1206 2.48036 16.1206 2.79102V3.90302H18.9942C19.7191 3.90302 20.3067 4.49064 20.3067 5.21552V11.1632C20.3067 11.4739 20.0548 11.7257 19.7442 11.7257C19.4335 11.7257 19.1817 11.4739 19.1817 11.1632V9.48865L3.5625 9.48865V18.7853C3.5625 18.8888 3.64645 18.9728 3.75 18.9728H10.5349C10.8455 18.9728 11.0974 19.2246 11.0974 19.5353C11.0974 19.8459 10.8455 20.0978 10.5349 20.0978H3.75C3.02513 20.0978 2.4375 19.5102 2.4375 18.7853V5.21551C2.4375 4.49064 3.02513 3.90302 3.75 3.90302H6.62366V2.79102C6.62366 2.48036 6.8755 2.22852 7.18616 2.22852ZM14.9956 5.02802V6.13985C14.9956 6.45051 15.2474 6.70235 15.5581 6.70235C15.8688 6.70235 16.1206 6.45051 16.1206 6.13985V5.02802H18.9942C19.0977 5.02802 19.1817 5.11196 19.1817 5.21552V8.36365L3.5625 8.36365V5.21551C3.5625 5.11196 3.64645 5.02802 3.75 5.02802H6.62366V6.13985C6.62366 6.45051 6.8755 6.70235 7.18616 6.70235C7.49682 6.70235 7.74866 6.45051 7.74866 6.13985V5.02802H14.9956Z" fill="white"/><path d="M7.18589 12.0004C7.18589 12.4627 6.81106 12.8376 6.34868 12.8376C5.88631 12.8376 5.51147 12.4627 5.51147 12.0004C5.51147 11.538 5.88631 11.1631 6.34868 11.1631C6.81106 11.1631 7.18589 11.538 7.18589 12.0004Z" fill="white"/><path d="M11.3721 12.0004C11.3721 12.4627 10.9972 12.8376 10.5348 12.8376C10.0725 12.8376 9.69763 12.4627 9.69763 12.0004C9.69763 11.538 10.0725 11.1631 10.5348 11.1631C10.9972 11.1631 11.3721 11.538 11.3721 12.0004Z" fill="white"/><path d="M7.18589 16.1863C7.18589 16.6487 6.81106 17.0235 6.34868 17.0235C5.88631 17.0235 5.51147 16.6487 5.51147 16.1863C5.51147 15.724 5.88631 15.3491 6.34868 15.3491C6.81106 15.3491 7.18589 15.724 7.18589 16.1863Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.8141 13.4C14.8129 13.4 13.1906 15.0223 13.1906 17.0235C13.1906 19.0247 14.8129 20.6471 16.8141 20.6471C18.8153 20.6471 20.4376 19.0247 20.4376 17.0235C20.4376 15.0223 18.8153 13.4 16.8141 13.4ZM12.0656 17.0235C12.0656 14.401 14.1915 12.275 16.8141 12.275C19.4366 12.275 21.5626 14.401 21.5626 17.0235C21.5626 19.6461 19.4366 21.7721 16.8141 21.7721C14.1915 21.7721 12.0656 19.6461 12.0656 17.0235Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M16.6307 14.9959C16.9414 14.9959 17.1932 15.2478 17.1932 15.5584V17.2959L17.9186 17.6404C18.1992 17.7737 18.3
927186 18.1093 18.1853 18.3899C18.0521 18.6705 17.7165 18.7899 17.4359 18.6566L16.3894 18.1595C16.1932 18.0664 16.0682 17.8686 16.0682 17.6514V15.5584C16.0682 15.2478 16.3201 14.9959 16.6307 14.9959Z" fill="white"/></svg>',file:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25 3.5625C5.20027 3.5625 5.15258 3.58225 5.11742 3.61742C5.08225 3.65258 5.0625 3.70027 5.0625 3.75V20.25C5.0625 20.2997 5.08225 20.3474 5.11742 20.3826C5.15258 20.4177 5.20027 20.4375 5.25 20.4375H18.75C18.7997 20.4375 18.8474 20.4177 18.8826 20.3826C18.9177 20.3474 18.9375 20.2997 18.9375 20.25V8.483L14.017 3.5625H5.25ZM4.32192 2.82192C4.56806 2.57578 4.9019 2.4375 5.25 2.4375H14.25C14.3992 2.4375 14.5423 2.49676 14.6477 2.60225L19.8977 7.85225C20.0032 7.95774 20.0625 8.10082 20.0625 8.25V20.25C20.0625 20.5981 19.9242 20.9319 19.6781 21.1781C19.4319 21.4242 19.0981 21.5625 18.75 21.5625H5.25C4.9019 21.5625 4.56806 21.4242 4.32192 21.1781C4.07578 20.9319 3.9375 20.5981 3.9375 20.25V3.75C3.9375 3.4019 4.07578 3.06806 4.32192 2.82192Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M14.25 2.4375C14.5607 2.4375 14.8125 2.68934 14.8125 3V7.6875H19.5C19.8107 7.6875 20.0625 7.93934 20.0625 8.25C20.0625 8.56066 19.8107 8.8125 19.5 8.8125H14.25C13.9393 8.8125 13.6875 8.56066 13.6875 8.25V3C13.6875 2.68934 13.9393 2.4375 14.25 2.4375Z" fill="white"/></svg>',link:bb,url:bb,reference:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M4.5 3.9375C4.81066 3.9375 5.0625 4.18934 5.0625 4.5V18.9375H19.5C19.8107 18.9375 20.0625 19.1893 20.0625 19.5C20.0625 19.8107 19.8107 20.0625 19.5 20.0625H4.5C4.18934 20.0625 3.9375 19.8107 3.9375 19.5V4.5C3.9375 4.18934 4.18934 3.9375 4.5 3.9375Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M15.3756 7.08021C15.6074 6.87343 15.963 6.89375 16.1698 7.12559L18.4198 9.64832C18.6151 9.86727 18.6093 10.1995 18.4065 10.4115L16.1565 12.7638C15.9417 12.9883 15.5857 12.9962 15.3612 12.7815C15.1367 12.5668 15.1288 12.2107 15.3435 11.9862L16.6836 10.5852H11.3182C9.52012 10.5852 8.0625 12.0428 8.0625 13.8409V15.75C8.0625 16.0607 7.81066 16.3125 7.5 16.3125C7.18934 16.3125 6.9375 16.0607 6.9375 15.75V13.8409C6.9375 11.4215 8.8988 9.46023 11.3182 9.46023H16.7446L15.3302 7.87441C15.1234 7.64256 15.1437 7.28699 15.3756 7.08021Z" fill="white"/></svg>',group:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M2.8125 3.75C2.8125 3.23223 3.23223 2.8125 3.75 2.8125C4.26777 2.8125 4.6875 3.23223 4.6875 3.75C4.6875 4.26777 4.26777 4.6875 3.75 4.6875C3.23223 4.6875 2.8125 4.26777 2.8125 3.75ZM3.75 1.6875C4.69408 1.6875 5.49001 2.32181 5.73486 3.1875H18.2651C18.51 2.32181 19.3059 1.6875 20.25 1.6875C21.3891 1.6875 22.3125 2.61091 22.3125 3.75C22.3125 4.69408 21.6782 5.49002 20.8125 5.73486V18.2651C21.6782 18.51 22.3125 19.3059 22.3125 20.25C22.3125 21.3891 21.3891 22.3125 20.25 22.3125C19.3059 22.3125 18.51 21.6782 18.2651 20.8125H5.73486C5.49001 21.6782 4.69408 22.3125 3.75 22.3125C2.61091 22.3125 1.6875 21.3891 1.6875 20.25C1.6875 19.3059 2.32181 18.51 3.1875 18.2651V5.73486C2.32181 5.49001 1.6875 4.69408 1.6875 3.75C1.6875 2.61091 2.61091 1.6875 3.75 1.6875ZM20.25 4.6875C20.7678 4.6875 21.1875 4.26777 21.1875 3.75C21.1875 3.23223 20.7678 2.8125 20.25 2.8125C19.7322 2.8125 19.3125 3.23223 19.3125 3.75C19.3125 4.26777 19.7322 4.6875 20.25 4.6875ZM18.2651 4.3125C18.4594 4.99938 19.0006 5.54059 19.6875 5.73486V18.2651C19.0006 18.4594 18.4594 19.0006 18.2651 19.6875H5.73486C5.54059 19.0006 4.99938 18.4594 4.3125 18.2651V5.73486C4.99938 5.54059 5.54059 4.99938 5.73486 4.3125H18.2651ZM19.3125 20.25C19.3125 19.7322 19.7322 19.3125 20.25 19.3125C20.7678 19.3125 21.1875 19.7322 21.1875 20.25C21.1875 20.7678 20.7678 21.1875 20.25 21.1875C19.7322 21.1875 19.3125 20.7678 19.3125 20.25ZM4.6875 20.25C4.6875 19.7322 4.26777 19.3125 3.75 19.3125C3.23223 19.3125 2.8125 19.7322 2.8125 20.25C2.8125 20.7678 3.23223 21.1875 3.75 21.1875C4.26777 21.1875 4.6875 20.7678 4.6875 20.25ZM9.75 7.6875C9.75 6.96263 10.3376 6.375 11.0625 6.375H15.5625C16.2874 6.375 16.875 6.96263 16.875 7.6875V13.6875C16.875 14.4124 16.2874 15 15.5625 15H14.625V15.9375C14.625 16.6624 14.0374 17.25 13.3125 17.25H8.8125C8.08763 17.25 7.5 16.6624 7.5 15.9375V9.1875C7.5 8.46263 8.08763 7.875 8.8125 7.875H9.75V7.6875ZM9.75 9H8.8125C8.70895 9 8.625 9.08395 8.625 9.1875V15.9375C8.625 16.0411 8.70895 16.
927125 8.8125 16.125H13.3125C13.4161 16.125 13.5 16.0411 13.5 15.9375V15H11.0625C10.3376 15 9.75 14.4124 9.75 13.6875V9ZM11.0625 7.5C10.9589 7.5 10.875 7.58395 10.875 7.6875V13.6875C10.875 13.7911 10.9589 13.875 11.0625 13.875H15.5625C15.6661 13.875 15.75 13.7911 15.75 13.6875V7.6875C15.75 7.58395 15.6661 7.5 15.5625 7.5H11.0625Z" fill="white"/></svg>',global_field:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M12.375 3C17.3456 3 21.375 7.02944 21.375 12C21.375 16.9706 17.3456 21 12.375 21C7.40444 21 3.375 16.9706 3.375 12C3.375 7.02944 7.40444 3 12.375 3ZM12.375 19.875C12.5009 19.875 12.7226 19.8185 13.0332 19.5032C13.3478 19.184 13.6828 18.6642 13.9882 17.9313C14.1866 17.455 14.3632 16.9113 14.5111 16.3125H10.2389C10.3868 16.9113 10.5634 17.455 10.7618 17.9313C11.0672 18.6642 11.4022 19.184 11.7168 19.5032C12.0274 19.8185 12.2491 19.875 12.375 19.875ZM10.0068 15.1875C9.84289 14.2154 9.75 13.1397 9.75 12C9.75 10.8603 9.84289 9.78464 10.0068 8.8125H14.7432C14.9071 9.78464 15 10.8603 15 12C15 13.1397 14.9071 14.2154 14.7432 15.1875H10.0068ZM15.6673 16.3125C15.3597 17.6622 14.9122 18.8021 14.3716 19.6197C16.2825 19.1203 17.9105 17.9212 18.9653 16.3125H15.6673ZM19.5782 15.1875H15.883C16.0394 14.1967 16.125 13.1223 16.125 12C16.125 10.8777 16.0394 9.80332 15.883 8.8125H19.5782C20.0101 9.78699 20.25 10.8655 20.25 12C20.25 13.1345 20.0101 14.213 19.5782 15.1875ZM8.86698 15.1875H5.17177C4.73991 14.213 4.5 13.1345 4.5 12C4.5 10.8655 4.73991 9.78699 5.17177 8.8125H8.86698C8.7106 9.80332 8.625 10.8777 8.625 12C8.625 13.1223 8.7106 14.1967 8.86698 15.1875ZM5.7847 16.3125H9.08273C9.39032 17.6622 9.83781 18.8021 10.3784 19.6197C8.46751 19.1203 6.83953 17.9212 5.7847 16.3125ZM10.2389 7.6875H14.5111C14.3632 7.08867 14.1866 6.54495 13.9882 6.06873C13.6828 5.33576 13.3478 4.81605 13.0332 4.49677C12.7226 4.18146 12.5009 4.125 12.375 4.125C12.2491 4.125 12.0274 4.18146 11.7168 4.49677C11.4022 4.81605 11.0672 5.33576 10.7618 6.06873C10.5634 6.54495 10.3868 7.08867 10.2389 7.6875ZM15.6673 7.6875H18.9653C17.9105 6.07879 16.2825 4.87965 14.3716 4.38032C14.9122 5.19795 15.3597 6.33778 15.6673 7.6875ZM10.3784 4.38032C9.83781 5.19795 9.39032 6.33778 9.08273 7.6875H5.7847C6.83953 6.07879 8.46751 4.87965 10.3784 4.38032Z" fill="white"/></svg>',custom_field:'<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25 3.9375H9.05319C9.16513 3.35112 9.45051 2.80685 9.87868 2.37868C10.4413 1.81607 11.2044 1.5 12 1.5C12.7956 1.5 13.5587 1.81607 14.1213 2.37868C14.5495 2.80685 14.8349 3.35112 14.9468 3.9375H18.75C19.4749 3.9375 20.0625 4.52513 20.0625 5.25V9.05319C20.6489 9.16513 21.1931 9.45051 21.6213 9.87868C22.1839 10.4413 22.5 11.2044 22.5 12C22.5 12.7956 22.1839 13.5587 21.6213 14.1213C21.1931 14.5495 20.6489 14.8349 20.0625 14.9468V18.75C20.0625 19.4749 19.4749 20.0625 18.75 20.0625H14.7137C14.4215 20.0625 14.1613 19.8779 14.0648 19.6021C13.3812 17.6489 10.6188 17.6489 9.93522 19.6021C9.83871 19.8779 9.57846 20.0625 9.28631 20.0625H5.25C4.52513 20.0625 3.9375 19.4749 3.9375 18.75V14.7343C3.9375 14.4269 4.13421 14.154 4.42585 14.0568C6.40245 13.3979 6.40245 10.6021 4.42585 9.94321C4.13421 9.846 3.9375 9.57307 3.9375 9.26566V5.25C3.9375 4.52513 4.52513 3.9375 5.25 3.9375ZM5.25 5.0625C5.14645 5.0625 5.0625 5.14645 5.0625 5.25V8.98259C7.69023 10.1082 7.69023 13.8918 5.0625 15.0174V18.75C5.0625 18.8536 5.14645 18.9375 5.25 18.9375H8.99033C10.1484 16.3704 13.8516 16.3704 15.0097 18.9375H18.75C18.8536 18.9375 18.9375 18.8536 18.9375 18.75V5.25C18.9375 5.14645 18.8536 5.0625 18.75 5.0625H5.25Z" fill="white"/></svg>',experience_container:"",empty:"",loading:`<svg width="20" height="20" viewBox="0 0 20 20" fill="none" xmlns="http://www.w3.org/2000/svg" class="${(0,ml.default)("visual-builder__cursor-icon--loader",F()["visual-builder__cursor-icon--loader"])}"><path d="M15.5023 18.3501C13.5466 19.6388 11.2007 20.2002 8.87354 19.9364C6.54637 19.6725 4.38563 18.6002 2.76808 16.9065C1.15053 15.2127 0.178807 13.0049 0.0223406 10.6681C-0.134126 8.33122 0.534595 6.0136 1.9119 4.1193C3.2892 2.22501 5.2877 0.874235 7.55893 0.302518C9.83015 -0.2692 12.23 -0.0255895 14.34 0.990871C16.45 2.00733 18.1363 3.73215 19.1048 5.86457C20.0734 7.997 20.2627 10.4017 19.6399 12.6595L17.7119 12.1276C18.2102 10.3214 18.0587 8.3976 17.2839 6.69166C16.509 4.98572 15.16 3.60586 13.472 2.7927C11.784 1.97953 9.86412 1.78464 8.04714 2.24201C6.23016 2.69939 4.63136 3.78001 3.52952 5.29544C2.42768 6.81088 1.8927 8.66498 2.01787 10.5345C2.14305 12.4039 2.92043 14.1702 4.21446 15.5252C5.5085 16.8802 7.23709 17.738 9.09883 17.9491C10.9606 18.1601 12.8373 17.711 14.4018 16.6801L15.5023 18.3501Z" fill="white"/></svg>`,taxonomy:'<svg width="20" height="20" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M0 1.52727C0 0.683783 0.683783 0 1.52727 0H22.4727C23.3162 0 24 0.683783 24
9271.52727V5.01818C24 5.86167 23.3162 6.54545 22.4727 6.54545H4.8V11.3455H8.72727V10.2545C8.72727 9.41106 9.41106 8.72727 10.2545 8.72727H17.2364C18.0799 8.72727 18.7636 9.41106 18.7636 10.2545V13.7455C18.7636 14.5889 18.0799 15.2727 17.2364 15.2727H10.2545C9.41106 15.2727 8.72727 14.5889 8.72727 13.7455V12.6545H4.8V20.0727H8.72727V18.9818C8.72727 18.1383 9.41106 17.4545 10.2545 17.4545H17.2364C18.0799 17.4545 18.7636 18.1383 18.7636 18.9818V22.4727C18.7636 23.3162 18.0799 24 17.2364 24H10.2545C9.41106 24 8.72727 23.3162 8.72727 22.4727V21.3818H4.14545C3.78396 21.3818 3.49091 21.0888 3.49091 20.7273V6.54545H1.52727C0.683785 6.54545 0 5.86167 0 5.01818V1.52727ZM10.0364 22.4727C10.0364 22.5932 10.134 22.6909 10.2545 22.6909H17.2364C17.3569 22.6909 17.4545 22.5932 17.4545 22.4727V18.9818C17.4545 18.8613 17.3569 18.7636 17.2364 18.7636H10.2545C10.134 18.7636 10.0364 18.8613 10.0364 18.9818V22.4727ZM10.0364 13.7455V10.2545C10.0364 10.134 10.134 10.0364 10.2545 10.0364H17.2364C17.3569 10.0364 17.4545 10.134 17.4545 10.2545V13.7455C17.4545 13.866 17.3569 13.9636 17.2364 13.9636H10.2545C10.134 13.9636 10.0364 13.866 10.0364 13.7455ZM22.4727 5.23636H1.52727C1.40677 5.23636 1.30909 5.13868 1.30909 5.01818V1.52727C1.30909 1.40677 1.40677 1.30909 1.52727 1.30909H22.4727C22.5932 1.30909 22.6909 1.40677 22.6909 1.52727V5.01818C22.6909 5.13868 22.5932 5.23636 22.4727 5.23636Z" fill="white"/></svg>',discussion:'<svg width="17" height="16" viewBox="0 0 17 16" fill="none" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" clip-rule="evenodd" d="M1.15007 0.985773C1.1065 0.985773 1.06471 1.00308 1.03389 1.03389C1.00308 1.06471 0.985773 1.1065 0.985773 1.15007V14.1925C0.986259 14.2231 0.995289 14.253 1.01186 14.2788C1.02866 14.3049 1.05253 14.3258 1.08069 14.3389C1.10886 14.352 1.14017 14.3568 1.17098 14.3529C1.20142 14.349 1.23014 14.3366 1.25391 14.3172L1.25479 14.3165L3.95491 12.0514C4.00036 12.0132 4.05232 11.9836 4.1083 11.9639L4.41225 11.8571C4.46474 11.8387 4.51999 11.8293 4.57563 11.8293H15.6081C15.6517 11.8293 15.6934 11.812 15.7243 11.7812C15.7551 11.7503 15.7724 11.7086 15.7724 11.665V1.15007C15.7724 1.10649 15.7551 1.06471 15.7243 1.03389C15.6934 1.00308 15.6517 0.985773 15.6081 0.985773H1.15007ZM0.336848 0.336848C0.552527 0.121168 0.845051 0 1.15007 0H15.6081C15.9131 0 16.2056 0.121168 16.4213 0.336848C16.637 0.552528 16.7581 0.845053 16.7581 1.15007V11.665C16.7581 11.97 16.637 12.2625 16.4213 12.4782C16.2056 12.6939 15.9131 12.8151 15.6081 12.8151H4.6597L4.51972 12.8642L1.88326 15.076C1.71571 15.2146 1.51228 15.3029 1.29657 15.3306C1.08086 15.3583 0.861722 15.3243 0.664572 15.2325C0.467421 15.1407 0.300341 14.9949 0.182714 14.812C0.0650888 14.629 0.00173885 14.4165 1.54726e-05 14.199L0 14.1951V1.15007C0 0.845051 0.121168 0.552527 0.336848 0.336848Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25746 5.09316C5.25746 4.82095 5.47813 4.60028 5.75034 4.60028H11.0078C11.28 4.60028 11.5007 4.82095 11.5007 5.09316C11.5007 5.36538 11.28 5.58605 11.0078 5.58605H5.75034C5.47813 5.58605 5.25746 5.36538 5.25746 5.09316Z" fill="white"/><path fill-rule="evenodd" clip-rule="evenodd" d="M5.25746 7.72189C5.25746 7.44968 5.47813 7.229 5.75034 7.229H11.0078C11.28 7.229 11.5007 7.44968 11.5007 7.72189C11.5007 7.99411 11.28 8.21478 11.0078 8.21478H5.75034C5.47813 8.21478 5.25746 7.99411 5.25746 7.72189Z" fill="white"/></svg>'},YF='<svg xmlns="http://www.w3.org/2000/svg" width="16" height="16" viewBox="0 0 16 16" fill="none"><path d="M0.0167948 0.602214C-0.0784404 0.246792 0.246794 -0.0784402 0.602216 0.0167948L15.6457 4.04767C16.0914 4.1671 16.1259 4.78625 15.6962 4.95447L8.17161 7.90048C8.04753 7.94906 7.94936 8.04723 7.90078 8.17131L4.95449 15.6962C4.78627 16.1259 4.16712 16.0914 4.04769 15.6457L0.0167948 0.602214Z" fill="#5D50BE"/></svg>';function hl({fieldType:e,customCursor:t,fieldDisabled:r=!1}){let i=e?ja[e]:"";t.getAttribute("data-icon")!==e&&(t.innerHTML=`<div class="${(0,ml.default)("visual-builder__cursor-wrapper",{"visual-builder__cursor-disabled":r,[F()["visual-builder__cursor-disabled"]]:r})}"><div class="${(0,ml.default)("visual-builder__cursor-pointer",F()["visual-builder__cursor-pointer"])}">${YF}</div><div class="${(0,ml.default)("visual-builder__cursor-icon",F()["visual-builder__cursor-icon"])}">${i}</div>`,t.setAttribute("data-icon",e))}function xb(e){let t=Sn(e);return ja[t]}function H1(e,t){let r=e.getBoundingClientRect(),i=document.querySelector(".visual-builder__hover-outline");i&&(i.classList.remove(F()["visual-builder__hover-outline--hidden"]),t?i.classList.add(F()["visual-builder__hover-outline--disabled"]):i.classList.remove(F()["visual-builder__hover-outline--disabled"]),i.style.top=`${r.top+window.scrollY}px`,i.style.left=`${r.left}px`,i.style.width=`${r.width}px`,i.style.height=`${r.height}px`)}var XF=L1` 928 0%, 100% { 929 fill: #edf1f7; 930 } 931 60% { 932 opacity: 0.4; 933 } 934`,JF=L1`
935 0% { 936 opacity: 0.2; 937 transform: scale(0.8, 0.8); 938 } 939 940 50% { 941 opacity: 1; 942 transform: scale(1.2, 1.2); 943 } 944 945 100% { 946 opacity: 0; 947 transform: scale(1, 1); 948 } 949`;function ue(){return{"collab-indicator":B` 950 width: 2.25rem; 951 height: 2.25rem; 952 background-color: gray; 953 border-radius: 50% 50% 50% 0%; 954 border: 2px solid white; 955 display: flex; 956 align-items: center; 957 justify-content: center; 958 cursor: pointer; 959 box-shadow: 0 4px 8px rgba(0, 0, 0, 0.2); 960 `,"collab-popup":B` 961 position: fixed; 962 z-index: 1000; 963 background: white; 964 border-radius: 8px; 965 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 966 border: 1px solid #e5e7eb; 967 overflow: auto; 968 `,"collab-avatar":B` 969 background-color: #edf1f7; 970 border: 1.5px solid #ffffff; 971 border-radius: 50%; 972 font-family: Inter; 973 font-weight: 600; 974 justify-content: center; 975 position: relative; 976 `,"collab-avatar--single":B` 977 border: none; 978 font-size: 0.6875rem; 979 height: 2rem; 980 width: 2rem; 981 border-radius: 22.5rem; 982 border: 0.125rem solid #dde3ee; 983 background: #ffffff; 984 position: relative; 985 overflow: hidden; 986 987 &:hover .collab-avatar__image { 988 filter: grayscale(0); 989 } 990 `,"collab-avatar__image":B` 991 filter: grayscale(1); 992 transition: filter 300ms ease; 993 border-radius: 50%; 994 height: 0; 995 left: 50%; 996 min-width: 100%; 997 position: absolute; 998 top: 50%; 999 transform: translate(-50%, -50%); 1000 width: 0; 1001 `,"collab-avatar__link":B` 1002 color: #475161; 1003 cursor: pointer; 1004 height: 100%; 1005 justify-content: center; 1006 overflow: hidden; 1007 text-decoration: none; 1008 text-transform: uppercase; 1009 transition: 1010 background-color 300ms ease, 1011 color 300ms ease; 1012 width: 100%; 1013 font-weight: 600; 1014 font-size: 0.75rem; 1015 `,"collab-tooltip--wrapper":B` 1016 position: relative; 1017 display: inline-block; 1018 `,"collab-tooltip":B` 1019 position: fixed; 1020 z-index: 2147483647 !important; 1021 padding: 8px 12px; 1022 font-size: 14px; 1023 color: #f7f9fc; 1024 background-color: #767676; 1025 border-radius: 4px; 1026 box-shadow: 0 2px 4px rgba(0, 0, 0, 0.1); 1027 1028 opacity: 0; 1029 animation: simpleFade 0.15s ease-in forwards; 1030 1031 @keyframes simpleFade { 1032 from { 1033 opacity: 0; 1034 } 1035 to { 1036 opacity: 1; 1037 } 1038 } 1039 `,"collab-tooltip--top":B` 1040 &::before { 1041 content: ""; 1042 position: absolute; 1043 bottom: -5px; 1044 left: 50%; 1045 transform: translateX(-50%); 1046 border-width: 5px 5px 0; 1047 border-style: solid; 1048 border-color: #767676 transparent transparent; 1049 } 1050 `,"collab-tooltip--bottom":B` 1051 &::before { 1052 content: ""; 1053 position: absolute; 1054 top: -5px; 1055 left: 50%; 1056 transform: translateX(-50%); 1057 border-width: 0 5px 5px; 1058 border-style: solid; 1059 border-color: transparent transparent #767676; 1060 } 1061 `,"collab-tooltip--left":B` 1062 &::before { 1063 content: ""; 1064 position: absolute; 1065 right: -5px; 1066 top: 50%; 1067 transform: translateY(-50%); 1068 border-width: 5px 0 5px 5px; 1069 border-style: solid; 1070 border-color: transparent transparent transparent #767676; 1071 } 1072 `,"collab-tooltip--right":B` 1073 &::before { 1074 content: ""; 1075 position: absolute; 1076 left: -5px; 1077 top: 50%; 1078 transform: translateY(-50%); 1079 border-width: 5px 5px 5px 0; 1080 border-style: solid; 1081 border-color: transparent #767676 transparent transparent; 1082 } 1083 `,"collab-icon":B` 1084 height: 1.25rem; 1085 width: 1.25rem; 1086 cursor: pointer; 1087 `,"collab-icon-wrapper":B` 1088 padding: 0 0.5rem; 1089 `,"collab-button--basestyle":B` 1090 box-sizing: border-box; 1091 -moz-box-sizing: border-box; 1092 -webkit-box-sizing: border-box; 1093 background-color: transparent; 1094 border: 1px solid transparent; 1095 border-radius: 4px; 1096 cursor: pointer; 1097 font-family: Inter, sans-serif; 1098 font-size: 1rem; 1099 font-weight: 600; 1100 line-height: 1; 1101 min-height: 2rem; 1102 min-width: 2rem; 1103 padding: 0.5rem 1rem; 1104 position: relative; 1105 text-align: center; 1106 transition: 1107 color 0.15s ease-in-out, 1108 background-color 0.15s ease-in-out, 1109 border-color 0.15s ease-in-out, 1110 box-shadow 0.15s ease-in-out; 1111 vertical-align: middle; 1112 cursor: pointer; 1113 opacity: 1; 1114 pointer-events: auto;
1115 `,"collab-button--disabled":B` 1116 cursor: not-allowed; 1117 opacity: 0.4; 1118 pointer-events: auto; 1119 `,"collab-button--loading":B` 1120 cursor: default; 1121 pointer-events: none; 1122 `,"collab-button--loader":B` 1123 display: flex; 1124 justify-content: center; 1125 text-align: center; 1126 `,"collab-button--loader--wrapper":B` 1127 left: 50%; 1128 position: absolute; 1129 top: 50%; 1130 -webkit-transform: translateX(-50%) translateY(-50%); 1131 -moz-transform: translateX(-50%) translateY(-50%); 1132 `,"collab-button--loader--animation":B` 1133 animation: ${JF} 1.5s infinite ease-in-out; 1134 1135 border-radius: 0.625rem; 1136 display: inline-block; 1137 height: 0.3125rem; 1138 margin-right: 0.25rem; 1139 width: 0.3125rem; 1140 1141 &:nth-child(2) { 1142 animation-delay: 0.5s; 1143 } 1144 1145 &:nth-child(3) { 1146 animation-delay: 1s; 1147 margin-right: 0; 1148 } 1149 `,"collab-button--visible":B` 1150 visibility: visible; 1151 `,"collab-button--hidden":B` 1152 visibility: hidden; 1153 `,"collab-button--loading--color":{primary:B` 1154 background-color: #f9f8ff !important; 1155 `,secondary:B` 1156 background-color: #6c5ce7 !important; 1157 `,tertiary:B` 1158 background-color: #6c5ce7 !important; 1159 `,destructive:B` 1160 background-color: #f9f8ff !important; 1161 `},"collab-button--type":{primary:B` 1162 background-color: #6c5ce7 !important; 1163 color: #ffffff; 1164 &:hover { 1165 background-color: #5d50be !important; 1166 } 1167 &:focus { 1168 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1169 } 1170 &:active { 1171 background-color: #3e3871 !important; 1172 } 1173 `,secondary:B` 1174 background-color: #f9f8ff !important; 1175 border: 1px solid #6c5ce7 !important; 1176 color: #6c5ce7 !important; 1177 &:hover { 1178 border-color: #5d50be !important; 1179 color: #5d50be !important; 1180 } 1181 &:focus { 1182 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1183 } 1184 &:active { 1185 border-color: #3e3871 !important; 1186 color: #3e3871 !important; 1187 } 1188 `,tertiary:B` 1189 color: #6c5ce7 !important; 1190 &:hover { 1191 color: #5d50be !important; 1192 } 1193 &:focus { 1194 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1195 } 1196 `,destructive:B` 1197 background-color: #a31b00 !important; 1198 color: #ffffff !important; 1199 &:hover { 1200 background-color: #701300 !important; 1201 } 1202 &:focus { 1203 box-shadow: 0px 0px 0px 2px #ada4f4 !important; 1204 } 1205 `},"collab-button--size":{large:B` 1206 font-size: 1rem; 1207 min-height: 2.5rem; 1208 max-height: 2.5rem; 1209 `,regular:B` 1210 margin-top: -1px; 1211 `,small:B` 1212 font-size: 0.875rem; 1213 min-height: 2rem; 1214 max-height: 2rem; 1215 padding: 0.3125rem 1rem; 1216 `},"collab-button--icon-allignment":{left:B` 1217 svg:first-child { 1218 float: left; 1219 margin-left: 0; 1220 margin-right: 0.5rem; 1221 } 1222 `,right:B` 1223 svg:first-child { 1224 float: right; 1225 margin-left: 0.5rem; 1226 margin-right: 0; 1227 } 1228 `,both:B` 1229 svg:first-child { 1230 float: left; 1231 margin-right: 0.5rem; 1232 margin-left: 0; 1233 } 1234 svg:last-child { 1235 float: right; 1236 margin-left: 0.5rem; 1237 margin-right: 0; 1238 } 1239 `},"collab-button-group":B` 1240 display: flex; 1241 & > button { 1242 margin-right: 1rem; 1243 &:last-child { 1244 margin-right: 0; 1245 } 1246 } 1247 `,"collab-skeletonTileSvgClass":B` 1248 & > g rect { 1249 animation: ${XF} 1.8s infinite; 1250 } 1251 `,"collab-thread-body-comment--loader":B` 1252 padding: 0.625rem; 1253 `,"collab-thread--wrapper":B` 1254 cursor: default; 1255 position: relative; 1256 padding: 0 !important; 1257 font-family: Inter; 1258 color: #475161; 1259 width: 20.75rem; 1260 `,"collab-thread--container":B` 1261 max-height: 23.125rem; 1262 display: flex; 1263 flex-direction: column; 1264 overflow: hidden; 1265 `,"collab-thread-header--wrapper":B` 1266 height: 2.5rem; 1267 padding: 0.2rem 0.1rem 0rem 0.625rem; 1268 `,"collab-thread-header--container":B` 1269 justify-content: space-between; 1270 width: 100%; 1271 `,"collab-thread-header--title":B` 1272 font-weight: 600; 1273 font-size: 0.875rem; 1274 `,"collab-thread-header--resolve":B` 1275 border-radius: 6px !important; 1276 `,"collab-thread-header--resolve--icon":B` 1277 width: 1.25rem; 1278 height: 1.25rem; 1279 margin-right: 0.5rem !important; 1280 `,"collab-thread-header--resolve--text":B` 1281 font-size: 0.875rem; 1282 `,"collab-thread-footer--wrapper":B` 1283 height: 3.5rem; 1284 width: 100%; 1285 flex-direction: row-reverse; 1286 padding: 0 0.9375rem; 1287 flex-shrink: 0; 1288 `,"collab-thread-body--wrapper":B` 1289 border: solid #edf1f7; 1290 border-width: 0.0625rem 0; 1291 flex: 1; 1292 overflow: auto; 1293 display: flex; 1294 flex-direction: column; 1295 `,"collab-thread-input-indicator--wrapper":B` 1296 padding: 0 0.5rem; 1297 font-weight: 400; 1298 font-size: 0.875rem; 1299 line-height: 150%; 1300 letter-spacing: 0.01em; 1301 min-height: 1.3125rem !important; 1302 `,"collab-thread-input-indicator--error":B` 1303 width: 100%; 1304 margin-right: 0.5rem; 1305 color: #d62400; 1306 `,"collab-thread-input-indicator--count":B` 1307 color: #475161; 1308 `,"collab-thread-comment--user-details":B` 1309 display: flex; 1310 align-items: center; 1311 justify-content: space-between; 1312 width: 100%; 1313 `,"collab-thread-comment--user-details__text":B` 1314 padding-left: 0.625rem; 1315 flex-grow: 1; 1316 min-width: 0; 1317 `,"collab-thread-comment--user-name":B` 1318 font-style: normal; 1319 font-weight: 600; 1320 font-size: 0.75rem; 1321 line-height: 150%; 1322 letter-spacing: 0.015rem; 1323 color: #475161; 1324 white-space: nowrap; 1325 overflow: hidden; 1326 text-overflow: ellipsis; 1327 `,"collab-thread-comment--list":B` 1328 max-height: 10.9rem; 1329 display: flex; 1330 overflow: auto; 1331 flex-flow: column-reverse; 1332 `,"collab-thread-comment-seperator":B` 1333 width: 100%; 1334 height: 1.5rem; 1335 stroke-width: 0.0625rem; 1336 stroke: #dde3ee; 1337 `,"collab-thread-comment--time-details":B` 1338 font-weight: 400; 1339 font-size: 0.75rem; 1340 line-height: 150%; 1341 font-style: Inter; 1342 letter-spacing: 0.015rem; 1343 color: #6e6b86; 1344 `,"collab-thread-comment--message":B` 1345 font-weight: 400; 1346 font-size: 1rem; 1347 line-height: 1.5rem; 1348 color: #475161; 1349 word-break: break-all;
1350 width: calc(100% - 10px); 1351 min-height: 2.25rem; 1352 white-space: pre-wrap; 1353 1354 b { 1355 color: #6c5ce7; 1356 font-weight: 400; 1357 } 1358 `,"collab-thread-comment--wrapper":B` 1359 display: flex; 1360 flex-direction: column; 1361 align-items: flex-start; 1362 gap: 0.625rem; 1363 padding: 0.625rem; 1364 `,"collab-thread-comment-action--wrapper":B` 1365 margin-left: auto; 1366 display: flex; 1367 `,"collab-thread-body--input--wrapper":B` 1368 width: 100%; 1369 display: flex; 1370 flex-direction: column; 1371 gap: 0.25rem; 1372 grid-gap: 0.25rem; 1373 `,"collab-thread-body--input":B` 1374 position: relative; 1375 overflow-y: visible; 1376 `,"collab-thread-body--input--textarea--wrapper":B` 1377 width: 100%; 1378 transition: height 0.2s ease-in 0s; 1379 `,"collab-thread-body--input--textarea":B` 1380 display: block; 1381 width: 100%; 1382 position: relative; 1383 top: 0; 1384 left: 0; 1385 box-sizing: border-box; 1386 background-color: #ffffff; 1387 font-family: inherit; 1388 font-size: 1rem; 1389 letter-spacing: inherit; 1390 height: 100%; 1391 bottom: 0; 1392 overflow: auto; 1393 resize: vertical; 1394 border-radius: 4px; 1395 border: 0.0625rem solid #dde3ee; 1396 line-height: 1.375rem; 1397 color: #222222; 1398 padding: 0.5rem 1rem; 1399 max-height: 6.25rem; 1400 min-height: 4.125rem; 1401 transition: 1402 border 0.2s ease, 1403 box-shadow 0.2s ease, 1404 background-color 0.2s ease; 1405 `,"collab-thread-body--input--textarea--focus":B` 1406 background-color: #ffffff !important; 1407 border: 0.0625rem solid #5d50be !important; 1408 box-shadow: 0 0 0 0.0625rem #5d50be !important; 1409 border-radius: 4px !important; 1410 outline: none; 1411 `,"collab-thread-body--input--textarea--hover":B` 1412 background-color: #edf1f7; 1413 border: 0.0625rem solid #5d50be !important; 1414 box-shadow: 0 0 0 0.0625rem #5d50be !important; 1415 `,"collab-thread-body--input--textarea--suggestionsList":B` 1416 list-style: none; 1417 padding-inline: unset; 1418 position: fixed; 1419 background-color: #ffffff; 1420 border: 1px solid #e2e8f0; 1421 border-radius: 8px; 1422 box-shadow: 1423 0 4px 6px -1px rgba(0, 0, 0, 0.1), 1424 0 2px 4px -1px rgba(0, 0, 0, 0.06); 1425 max-height: 192px; 1426 overflow-y: auto; 1427 width: 256px; 1428 max-height: 160px; 1429 z-index: 50; 1430 animation: fadeIn 0.2s ease-in-out; 1431 1432 @keyframes fadeIn { 1433 from { 1434 opacity: 0; 1435 transform: translateY(-4px); 1436 } 1437 to { 1438 opacity: 1; 1439 transform: translateY(0); 1440 } 1441 } 1442 `,"collab-thread-body--input--textarea--suggestionsList--item":B` 1443 width: 100%; 1444 padding: 8px 16px; 1445 text-align: left; 1446 border: none; 1447 background: none; 1448 cursor: pointer; 1449 font-size: 14px; 1450 transition: background-color 0.2s; 1451 1452 &:hover { 1453 background-color: #f3f4f6; 1454 color: #5d50be; 1455 } 1456 `,"collab-thread-body--input--textarea--suggestionsList--item-selected":B` 1457 background-color: #f3f4f6; 1458 color: #5d50be; 1459 `}}var wb=B` 1460 display: flex; 1461 align-items: center; 1462 justify-content: center; 1463`,Yt=B` 1464 display: flex; 1465 align-items: center; 1466`;var am=Te(ze(),1);function Ib(e,t){for(var r in t)e[r]=t[r];return e}function U1(e,t){for(var r in e)if(r!=="__source"&&!(r in t))return!0;for(var i in t)if(i!=="__source"&&e[i]!==t[i])return!0;return!1}function $1(e,t){this.props=e,this.context=t}function QF(e,t){function r(o){var s=this.props.ref,l=s==o.ref;return!l&&s&&(s.call?s(null):s.current=null),t?!t(this.props,o)||!l:U1(this.props,o)}function i(o){return this.shouldComponentUpdate=r,rr(e,o)}return i.displayName="Memo("+(e.displayName||e.name)+")",i.prototype.isReactComponent=!0,i.__f=!0,i}($1.prototype=new gr).isPureReactComponent=!0,$1.prototype.shouldComponentUpdate=function(e,t){return U1(this.props,e)||U1(this.state,t)};var Cb=Se.__b;Se.__b=function(e){e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),Cb&&Cb(e)};var eH=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.forward_ref")||3911;function tH(e){function t(r){var i=Ib({},r);return delete i.ref,e(i,r.ref||null)}return t.$$typeof=eH,t.render=t,t.prototype.isReactComponent=t.__f=!0,t.displayName="ForwardRef("+(e.displayName||e.name)+")",t}var Eb=function(e,t){return e==null?null:xn(xn(e).map(t))},rH={map:Eb,forEach:Eb,count:function(e){return e?xn(e).length:0},only:function(e){var t=xn(e);if(t.length!==1)throw"Children.only";return t[0]},toArray:xn},nH=Se.__e;Se.__e=function(e,t,r,i){if(e.then){for(var o,s=t;s=s.__;)if((o=s.__c)&&o.__c)return t.__e==null&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t)}nH(e,t,r,i)};var Sb=Se.unmount;function Pb(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach(function(i){typeof i.__c=="function"&&i.__c()}),e.__c.__H=null),(e=Ib({},e)).__c!=null&&(e.__c.__P===r&&(e.__c.__P=t),e.__c=null),e.__k=e.__k&&e.__k.map(function(i){return Pb(i,t,r)})),e}function Mb(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map(function(i){return Mb(i,t,r)}),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function sf(){this.__u=0,this.t=null,this.__b=null}function Db(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function iH(e){var t,r,i;function o(s){if(t||(t=e()).then(function(l){r=l.default||l},function(l){i=l}),i)throw i;if(!r)throw t;return rr(r,s)}return o.displayName="Lazy",o.__f=!0,o}function vl(){this.u=null,this.o=null}Se.unmount=function(e){var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),Sb&&Sb(e)},(sf.prototype=new gr).__c=function(e,t){var r=t.__c,i=this;i.t==null&&(i.t=[]),i.t.push(r);var o=Db(i.__v),s=!1,l=function(){s||(s=!0,r.__R=null,o?o(c):c())};r.__R=l;var c=function(){if(!--i.__u){if(i.state.__a){var f=i.state.__a;i.__v.__k[0]=Mb(f,f.__c.__P,f.__c.__O)}var d;for(i.setState({__a:i.__b=null});d=i.t.pop();)d.forceUpdate()}};i.__u++||32&t.__u||i.setState({__a:i.__b=i.__v.__k[0]}),e.then(l,l)},sf.prototype.componentWillUnmount=function(){this.t=[]},sf.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement("div"),i=this.__v.__k[0].__c;this.__v.__k[0]=Pb(this.__b,r,i.__O=i.__P)}this.__b=null}var o=t.__a&&rr(Ke,null,e.fallback);return o&&(o.__u&=-33),[rr(Ke,null,t.__a?null:e.children),o]};var Ab=function(e,t,r){if(++r[1]===r[0]&&e.o.delete(t),e.props.revealOrder&&(e.props.revealOrder[0]!=="t"||!e.o.size))for(r=e.u;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.u=r=r[2]}};function oH(e){return this.getChildContext=function(){return e.context},e.children}function aH(e){var t=this,r=e.i;t.componentWillUnmount=function(){At(null,t.l),t.l=null,t.i=null},t.i&&t.i!==r&&t.componentWillUnmount(),t.l||(t.i=r,t.l={nodeType:1,parentNode:r,childNodes:[],appendChild:function(i){this.childNodes.push(i),t.i.appendChild(i)},insertBefore:function(i,o){this.childNodes.push(i),t.i.appendChild(i)},removeChild:function(i){this.childNodes.splice(this.childNodes.indexOf(i)>>>1,1),t.i.removeChild(i)}}),At(rr(oH,{context:t.context},e.__v),t.l)}function sH(e,t){var r=rr(aH,{__v:e,i:t});return r.containerInfo=t,r}(vl.prototype=new gr).__a=function(e){var t=this,r=Db(t.__v),i=t.o.get(e);return i[0]++,function(o){var s=function(){t.props.revealOrder?(i.push(o),Ab(t,e,i)):o()};r?r(s):s()}},vl.prototype.render=function(e){this.u=null,this.o=new Map;var t=xn(e.children);e.revealOrder&&e.revealOrder[0]==="b"&&t.reverse();for(var r=t.length;r--;)this.o.set(t[r],this.u=[1,0,this.u]);return e.children},vl.prototype.componentDidUpdate=vl.prototype.componentDidMount=function(){var e=this;this.o.forEach(function(t,r){Ab(e,r,t)})};var Nb=typeof Symbol<"u"&&Symbol.for&&Symbol.for("react.element")||60103,lH=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,uH=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,cH=/[A-Z0-9]/g,fH=typeof document<"u",dH=function(e){return(typeof Symbol<"u"&&typeof Symbol()=="symbol"?/fil|che|rad/:/fil|che|ra/).test(e)};function pH(e,t,r){return t.__k==null&&(t.textContent=""),At(e,t),typeof r=="function"&&r(),e?e.__c:null}function mH(e,t,r){return nl(e,t),typeof r=="function"&&r(),e?e.__c:null}gr.prototype.isReactComponent={},["componentWillMount","componentWillReceiveProps","componentWillUpdate"].forEach(function(e){Object.defineProperty(gr.prototype,e,{configurable:!0,get:function(){return this["UNSAFE_"+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})});var Tb=Se.event;function hH(){}function vH(){return this.cancelBubble}function gH(){return this.defaultPrevented}Se.event=function(e){return Tb&&(e=Tb(e)),e.persist=hH,e.isPropagationStopped=vH,e.isDefaultPrevented=gH,e.nativeEvent=e};
1466var V1,_H={enumerable:!1,configurable:!0,get:function(){return this.class}},Ob=Se.vnode;Se.vnode=function(e){typeof e.type=="string"&&function(t){var r=t.props,i=t.type,o={};for(var s in r){var l=r[s];if(!(s==="value"&&"defaultValue"in r&&l==null||fH&&s==="children"&&i==="noscript"||s==="class"||s==="className")){var c=s.toLowerCase();s==="defaultValue"&&"value"in r&&r.value==null?s="value":s==="download"&&l===!0?l="":c==="translate"&&l==="no"?l=!1:c==="ondoubleclick"?s="ondblclick":c!=="onchange"||i!=="input"&&i!=="textarea"||dH(r.type)?c==="onfocus"?s="onfocusin":c==="onblur"?s="onfocusout":uH.test(s)?s=c:i.indexOf("-")===-1&&lH.test(s)?s=s.replace(cH,"-$&").toLowerCase():l===null&&(l=void 0):c=s="oninput",c==="oninput"&&o[s=c]&&(s="oninputCapture"),o[s]=l}}i=="select"&&o.multiple&&Array.isArray(o.value)&&(o.value=xn(r.children).forEach(function(f){f.props.selected=o.value.indexOf(f.props.value)!=-1})),i=="select"&&o.defaultValue!=null&&(o.value=xn(r.children).forEach(function(f){f.props.selected=o.multiple?o.defaultValue.indexOf(f.props.value)!=-1:o.defaultValue==f.props.value})),r.class&&!r.className?(o.class=r.class,Object.defineProperty(o,"className",_H)):(r.className&&!r.class||r.class&&r.className)&&(o.class=o.className=r.className),t.props=o}(e),e.$$typeof=Nb,Ob&&Ob(e)};var Lb=Se.__r;Se.__r=function(e){Lb&&Lb(e),V1=e.__c};var Rb=Se.diffed;Se.diffed=function(e){Rb&&Rb(e);var t=e.props,r=e.__e;r!=null&&e.type==="textarea"&&"value"in t&&t.value!==r.value&&(r.value=t.value==null?"":t.value),V1=null};var yH={ReactCurrentDispatcher:{current:{readContext:function(e){return V1.__n[e.__c].props.value}}}};function bH(e){return rr.bind(null,e)}function lf(e){return!!e&&e.$$typeof===Nb}function xH(e){return lf(e)&&e.type===Ke}function wH(e){return lf(e)?Wc.apply(null,arguments):e}function CH(e){return!!e.__k&&(At(null,e),!0)}function EH(e){return e&&(e.base||e.nodeType===1&&e)||null}var SH=function(e,t){return e(t)},AH=function(e,t){return e(t)},TH=Ke;function Bb(e){e()}function OH(e){return e}function LH(){return[!1,Bb]}var RH=il,IH=lf;function PH(e,t){var r=t(),i=ye({h:{__:r,v:t}}),o=i[0].h,s=i[1];return il(function(){o.__=r,o.v=t,k1(o)&&s({h:o})},[e,r,t]),Le(function(){return k1(o)&&s({h:o}),e(function(){k1(o)&&s({h:o})})},[e]),r}function k1(e){var t,r,i=e.v,o=e.__;try{var s=i();return!((t=o)===(r=s)&&(t!==0||1/t==1/r)||t!=t&&r!=r)}catch{return!0}}var or={useState:ye,useId:oy,useReducer:_1,useEffect:Le,useLayoutEffect:il,useInsertionEffect:RH,useTransition:LH,useDeferredValue:OH,useSyncExternalStore:PH,startTransition:Bb,useRef:nt,useImperativeHandle:ny,useMemo:Kt,useCallback:on,useContext:Fa,useDebugValue:iy,version:"17.0.2",Children:rH,render:pH,hydrate:mH,unmountComponentAtNode:CH,createPortal:sH,createElement:rr,createContext:h1,createFactory:bH,cloneElement:wH,createRef:d1,Fragment:Ke,isValidElement:lf,isElement:IH,isFragment:xH,findDOMNode:EH,Component:gr,PureComponent:$1,memo:QF,forwardRef:tH,flushSync:AH,unstable_batchedUpdates:SH,StrictMode:TH,Suspense:sf,SuspenseList:vl,lazy:iH,__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED:yH};var rm=Te(ze(),1);var El=Te(ze(),1);var wl=Te(ze(),1);var{entries:jb,setPrototypeOf:Fb,isFrozen:MH,getPrototypeOf:DH,getOwnPropertyDescriptor:NH}=Object,{freeze:sr,seal:jr,create:Gb}=Object,{apply:Z1,construct:K1}=typeof Reflect<"u"&&Reflect;sr||(sr=function(t){return t});jr||(jr=function(t){return t});Z1||(Z1=function(t,r,i){return t.apply(r,i)});K1||(K1=function(t,r){return new t(...r)});var uf=lr(Array.prototype.forEach),BH=lr(Array.prototype.lastIndexOf),Hb=lr(Array.prototype.pop),gl=lr(Array.prototype.push),FH=lr(Array.prototype.splice),ff=lr(String.prototype.toLowerCase),W1=lr(String.prototype.toString),kb=lr(String.prototype.match),_l=lr(String.prototype.replace),HH=lr(String.prototype.indexOf),kH=lr(String.prototype.trim),sn=lr(Object.prototype.hasOwnProperty),ar=lr(RegExp.prototype.test),yl=UH(TypeError);function lr(e){return function(t){t instanceof RegExp&&(t.lastIndex=0);for(var r=arguments.length,i=new Array(r>1?r-1:0),o=1;o<r;o++)i[o-1]=arguments[o];return Z1(e,t,i)}}function UH(e){return function(){for(var t=arguments.length,r=new Array(t),i=0;i<t;i++)r[i]=arguments[i];return K1(e,r)}}function $e(e,t){let r=arguments.length>2&&arguments[2]!==void 0?arguments[2]:ff;Fb&&Fb(e,null);let i=t.length;for(;i--;){let o=t[i];
vendor: 6,742 bytes, line 1466
1466if(typeof o=="string"){let s=r(o);s!==o&&(MH(t)||(t[i]=s),o=s)}e[o]=!0}return e}function $H(e){for(let t=0;t<e.length;t++)sn(e,t)||(e[t]=null);return e}function ti(e){let t=Gb(null);for(let[r,i]of jb(e))sn(e,r)&&(Array.isArray(i)?t[r]=$H(i):i&&typeof i=="object"&&i.constructor===Object?t[r]=ti(i):t[r]=i);return t}function bl(e,t){for(;e!==null;){let i=NH(e,t);if(i){if(i.get)return lr(i.get);if(typeof i.value=="function")return lr(i.value)}e=DH(e)}function r(){return null}return r}var Ub=sr(["a","abbr","acronym","address","area","article","aside","audio","b","bdi","bdo","big","blink","blockquote","body","br","button","canvas","caption","center","cite","code","col","colgroup","content","data","datalist","dd","decorator","del","details","dfn","dialog","dir","div","dl","dt","element","em","fieldset","figcaption","figure","font","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","img","input","ins","kbd","label","legend","li","main","map","mark","marquee","menu","menuitem","meter","nav","nobr","ol","optgroup","option","output","p","picture","pre","progress","q","rp","rt","ruby","s","samp","section","select","shadow","small","source","spacer","span","strike","strong","style","sub","summary","sup","table","tbody","td","template","textarea","tfoot","th","thead","time","tr","track","tt","u","ul","var","video","wbr"]),q1=sr(["svg","a","altglyph","altglyphdef","altglyphitem","animatecolor","animatemotion","animatetransform","circle","clippath","defs","desc","ellipse","filter","font","g","glyph","glyphref","hkern","image","line","lineargradient","marker","mask","metadata","mpath","path","pattern","polygon","polyline","radialgradient","rect","stop","style","switch","symbol","text","textpath","title","tref","tspan","view","vkern"]),z1=sr(["feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDistantLight","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence"]),VH=sr(["animate","color-profile","cursor","discard","font-face","font-face-format","font-face-name","font-face-src","font-face-uri","foreignobject","hatch","hatchpath","mesh","meshgradient","meshpatch","meshrow","missing-glyph","script","set","solidcolor","unknown","use"]),j1=sr(["math","menclose","merror","mfenced","mfrac","mglyph","mi","mlabeledtr","mmultiscripts","mn","mo","mover","mpadded","mphantom","mroot","mrow","ms","mspace","msqrt","mstyle","msub","msup","msubsup","mtable","mtd","mtext","mtr","munder","munderover","mprescripts"]),WH=sr(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),$b=sr(["#text"]),Vb=sr(["accept","action","align","alt","autocapitalize","autocomplete","autopictureinpicture","autoplay","background","bgcolor","border","capture","cellpadding","cellspacing","checked","cite","class","clear","color","cols","colspan","controls","controlslist","coords","crossorigin","datetime","decoding","default","dir","disabled","disablepictureinpicture","disableremoteplayback","download","draggable","enctype","enterkeyhint","face","for","headers","height","hidden","high","href","hreflang","id","inputmode","integrity","ismap","kind","label","lang","list","loading","loop","low","max","maxlength","media","method","min","minlength","multiple","muted","name","nonce","noshade","novalidate","nowrap","open","optimum","pattern","placeholder","playsinline","popover","popovertarget","popovertargetaction","poster","preload","pubdate","radiogroup","readonly","rel","required","rev","reversed","role","rows","rowspan","spellcheck","scope","selected","shape","size","sizes","span","srclang","start","src","srcset","step","style","summary","tabindex","title","translate","type","usemap","valign","value","width","wrap","xmlns","slot"]),G1=sr(["accent-height","accumulate","additive","alignment-baseline","amplitude","ascent","attributename","attributetype","azimuth","basefrequency","baseline-shift","begin","bias","by","class","clip","clippathunits","clip-path","clip-rule","color","color-interpolation","color-interpolation-filters","color-profile","color-rendering","cx","cy","d","dx","dy","diffuseconstant","direction","display","divisor","dur","edgemode","elevation","end","exponent","fill","fill-opacity","fill-rule","filter","filterunits","flood-color","flood-opacity","font-family","font-size","font-size-adjust","font-stretch","font-style","font-variant","font-weight","fx","fy","g1","g2","glyph-name","glyphref","gradientunits","gradienttransform","height","href","id","image-rendering","in","in2","intercept","k","k1","k2","k3","k4","kerning","keypoints","keysplines","keytimes","lang","lengthadjust","letter-spacing","kernelmatrix","kernelunitlength","lighting-color","local","marker-end","marker-mid","marker-start","markerheight","markerunits","markerwidth","maskcontentunits","maskunits","max","mask","media","method","mode","min","name","numoctaves","offset","operator","opacity","order","orient","orientation","origin","overflow","paint-order","path","pathlength","patterncontentunits","patterntransform","patternunits","points","preservealpha","preserveaspectratio","primitiveunits","r","rx","ry","radius","refx","refy","repeatcount","repeatdur","restart","result","rotate","scale","seed","shape-rendering","slope","specularconstant","specularexponent","spreadmethod","startoffset","stddeviation","stitchtiles","stop-color","stop-opacity","stroke-dasharray","stroke-dashoffset","stroke-linecap","stroke-linejoin","stroke-miterlimit","stroke-opacity","stroke","stroke-width","style","surfacescale","systemlanguage","tabindex","tablevalues","targetx","targety","transform","transform-origin","text-anchor","text-decoration","text-rendering","textlength","type","u1","u2","unicode","values","viewbox","visibility","version","vert-adv-y","vert-origin-x","vert-origin-y","width","word-spacing","wrap","writing-mode","xchannelselector","ychannelselector","x","x1","x2","xmlns","y","y1","y2","z","zoomandpan"]),Wb=sr(["accent","accentunder","align","bevelled","close","columnsalign","columnlines","columnspan","denomalign","depth","dir","display","displaystyle","encoding","fence","frame","height","href","id","largeop","length","linethickness","lspace","lquote","mathbackground","mathcolor","mathsize","mathvariant","maxsize","minsize","movablelimits","notation","numalign","open","rowalign","rowlines","rowspacing","rowspan","rspace","rquote","scriptlevel","scriptminsize","scriptsizemultiplier","selection","separator","separators","stretchy","
1466subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),cf=sr(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),qH=jr(/\{\{[\w\W]*|[\w\W]*\}\}/gm),zH=jr(/<%[\w\W]*|[\w\W]*%>/gm),jH=jr(/\$\{[\w\W]*/gm),GH=jr(/^data-[\-\w.\u00B7-\uFFFF]+$/),ZH=jr(/^aria-[\-\w]+$/),Zb=jr(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp|matrix):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),KH=jr(/^(?:\w+script|data):/i),YH=jr(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Kb=jr(/^html$/i),XH=jr(/^[a-z][.\w]*(-[.\w]+)+$/i),qb=Object.freeze({__proto__:null,ARIA_ATTR:ZH,ATTR_WHITESPACE:YH,CUSTOM_ELEMENT:XH,DATA_ATTR:GH,DOCTYPE_NAME:Kb,ERB_EXPR:zH,IS_ALLOWED_URI:Zb,IS_SCRIPT_OR_DATA:KH,MUSTACHE_EXPR:qH,TMPLIT_EXPR:jH}),xl={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},JH=function(){return typeof window>"u"?null:window},QH=function(t,r){if(typeof t!="object"||typeof t.createPolicy!="function")return null;let i=null,o="data-tt-policy-suffix";r&&r.hasAttribute(o)&&(i=r.getAttribute(o));let s="dompurify"+(i?"#"+i:"");try{return t.createPolicy(s,{createHTML(l){return l},createScriptURL(l){return l}})}catch{return console.warn("TrustedTypes policy "+s+" could not be created."),null}},zb=function(){return{afterSanitizeAttributes:[],afterSanitizeElements:[],afterSanitizeShadowDOM:[],beforeSanitizeAttributes:[],beforeSanitizeElements:[],beforeSanitizeShadowDOM:[],uponSanitizeAttribute:[],uponSanitizeElement:[],uponSanitizeShadowNode:[]}};function Yb(){let e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:JH(),t=_e=>Yb(_e);if(t.version="3.2.6",t.removed=[],!e||!e.document||e.document.nodeType!==xl.document||!e.Element)return t.isSupported=!1,t;let{document:r}=e,i=r,o=i.currentScript,{DocumentFragment:s,HTMLTemplateElement:l,Node:c,Element:f,NodeFilter:d,NamedNodeMap:m=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:p,DOMParser:v,trustedTypes:w}=e,g=f.prototype,S=bl(g,"cloneNode"),y=bl(g,"remove"),x=bl(g,"nextSibling"),T=bl(g,"childNodes"),C=bl(g,"parentNode");if(typeof l=="function"){let _e=r.createElement("template");_e.content&&_e.content.ownerDocument&&(r=_e.content.ownerDocument)}let O,I="",{implementation:M,createNodeIterator:$,createDocumentFragment:k,getElementsByTagName:H}=r,{importNode:oe}=i,ie=zb();t.isSupported=typeof jb=="function"&&typeof C=="function"&&M&&M.createHTMLDocument!==void 0;let{MUSTACHE_EXPR:ee,ERB_EXPR:q,TMPLIT_EXPR:z,DATA_ATTR:W,ARIA_ATTR:G,IS_SCRIPT_OR_DATA:J,ATTR_WHITESPACE:Z,CUSTOM_ELEMENT:ce}=qb,{IS_ALLOWED_URI:pe}=qb,le=null,Oe=$e({},[...Ub,...q1,...z1,...j1,...$b]),xe=null,tt=$e({},[...Vb,...G1,...Wb,...cf]),ke=Object.seal(Gb(null,{tagNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},attributeNameCheck:{writable:!0,configurable:!1,enumerable:!0,value:null},allowCustomizedBuiltInElements:{writable:!0,configurable:!1,enumerable:!0,value:!1}})),bt=null,mt=null,Ge=!0,ht=!0,xt=!1,Me=!0,je=!1,qt=!0,zt=!1,cr=!1,Nn=!1,Bn=!1,br=!1,$t=!1,si=!0,Xi=!1,wd="user-content-",Fn=!0,Ji=!1,Pr={},xr=null,zo=$e({},["annotation-xml","audio","colgroup","desc","foreignobject","head","iframe","math","mi","mn","mo","ms","mtext","noembed","noframes","noscript","plaintext","script","style","svg","template","thead","title","video","xmp"]),jo=null,Go=$e({},["audio","video","img","source","image","track"]),Qi=null,Zo=$e({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),li="http://www.w3.org/1998/Math/MathML",ui="http://www.w3.org/2000/svg",wr="http://www.w3.org/1999/xhtml",hn=wr,xs=!1,ws=null,Cd=$e({},[li,ui,wr],W1),eo=$e({},["mi","mo","mn","ms","mtext"]),to=$e({},["annotation-xml"]),Ed=$e({},["title","style","font","a","script"]),ro=null,Sd=["application/xhtml+xml","text/html"],Ad="text/html",wt=null,ci=null,Td=r.createElement("form"),lu=function(P){return P instanceof RegExp||P instanceof Function},no=function(){let P=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};if(!(ci&&ci===P)){if((!P||typeof P!="object")&&(P={}
vendor: 9,118 bytes, line 1466
1466),P=ti(P),ro=Sd.indexOf(P.PARSER_MEDIA_TYPE)===-1?Ad:P.PARSER_MEDIA_TYPE,wt=ro==="application/xhtml+xml"?W1:ff,le=sn(P,"ALLOWED_TAGS")?$e({},P.ALLOWED_TAGS,wt):Oe,xe=sn(P,"ALLOWED_ATTR")?$e({},P.ALLOWED_ATTR,wt):tt,ws=sn(P,"ALLOWED_NAMESPACES")?$e({},P.ALLOWED_NAMESPACES,W1):Cd,Qi=sn(P,"ADD_URI_SAFE_ATTR")?$e(ti(Zo),P.ADD_URI_SAFE_ATTR,wt):Zo,jo=sn(P,"ADD_DATA_URI_TAGS")?$e(ti(Go),P.ADD_DATA_URI_TAGS,wt):Go,xr=sn(P,"FORBID_CONTENTS")?$e({},P.FORBID_CONTENTS,wt):zo,bt=sn(P,"FORBID_TAGS")?$e({},P.FORBID_TAGS,wt):ti({}),mt=sn(P,"FORBID_ATTR")?$e({},P.FORBID_ATTR,wt):ti({}),Pr=sn(P,"USE_PROFILES")?P.USE_PROFILES:!1,Ge=P.ALLOW_ARIA_ATTR!==!1,ht=P.ALLOW_DATA_ATTR!==!1,xt=P.ALLOW_UNKNOWN_PROTOCOLS||!1,Me=P.ALLOW_SELF_CLOSE_IN_ATTR!==!1,je=P.SAFE_FOR_TEMPLATES||!1,qt=P.SAFE_FOR_XML!==!1,zt=P.WHOLE_DOCUMENT||!1,Bn=P.RETURN_DOM||!1,br=P.RETURN_DOM_FRAGMENT||!1,$t=P.RETURN_TRUSTED_TYPE||!1,Nn=P.FORCE_BODY||!1,si=P.SANITIZE_DOM!==!1,Xi=P.SANITIZE_NAMED_PROPS||!1,Fn=P.KEEP_CONTENT!==!1,Ji=P.IN_PLACE||!1,pe=P.ALLOWED_URI_REGEXP||Zb,hn=P.NAMESPACE||wr,eo=P.MATHML_TEXT_INTEGRATION_POINTS||eo,to=P.HTML_INTEGRATION_POINTS||to,ke=P.CUSTOM_ELEMENT_HANDLING||{},P.CUSTOM_ELEMENT_HANDLING&&lu(P.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(ke.tagNameCheck=P.CUSTOM_ELEMENT_HANDLING.tagNameCheck),P.CUSTOM_ELEMENT_HANDLING&&lu(P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(ke.attributeNameCheck=P.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),P.CUSTOM_ELEMENT_HANDLING&&typeof P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements=="boolean"&&(ke.allowCustomizedBuiltInElements=P.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),je&&(ht=!1),br&&(Bn=!0),Pr&&(le=$e({},$b),xe=[],Pr.html===!0&&($e(le,Ub),$e(xe,Vb)),Pr.svg===!0&&($e(le,q1),$e(xe,G1),$e(xe,cf)),Pr.svgFilters===!0&&($e(le,z1),$e(xe,G1),$e(xe,cf)),Pr.mathMl===!0&&($e(le,j1),$e(xe,Wb),$e(xe,cf))),P.ADD_TAGS&&(le===Oe&&(le=ti(le)),$e(le,P.ADD_TAGS,wt)),P.ADD_ATTR&&(xe===tt&&(xe=ti(xe)),$e(xe,P.ADD_ATTR,wt)),P.ADD_URI_SAFE_ATTR&&$e(Qi,P.ADD_URI_SAFE_ATTR,wt),P.FORBID_CONTENTS&&(xr===zo&&(xr=ti(xr)),$e(xr,P.FORBID_CONTENTS,wt)),Fn&&(le["#text"]=!0),zt&&$e(le,["html","head","body"]),le.table&&($e(le,["tbody"]),delete bt.tbody),P.TRUSTED_TYPES_POLICY){if(typeof P.TRUSTED_TYPES_POLICY.createHTML!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if(typeof P.TRUSTED_TYPES_POLICY.createScriptURL!="function")throw yl('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');O=P.TRUSTED_TYPES_POLICY,I=O.createHTML("")}else O===void 0&&(O=QH(w,o)),O!==null&&typeof I=="string"&&(I=O.createHTML(""));sr&&sr(P),ci=P}},uu=$e({},[...q1,...z1,...VH]),Ko=$e({},[...j1,...WH]),Od=function(P){let ne=C(P);(!ne||!ne.tagName)&&(ne={namespaceURI:hn,tagName:"template"});let me=ff(P.tagName),Qe=ff(ne.tagName);return ws[P.namespaceURI]?P.namespaceURI===ui?ne.namespaceURI===wr?me==="svg":ne.namespaceURI===li?me==="svg"&&(Qe==="annotation-xml"||eo[Qe]):!!uu[me]:P.namespaceURI===li?ne.namespaceURI===wr?me==="math":ne.namespaceURI===ui?me==="math"&&to[Qe]:!!Ko[me]:P.namespaceURI===wr?ne.namespaceURI===ui&&!to[Qe]||ne.namespaceURI===li&&!eo[Qe]?!1:!Ko[me]&&(Ed[me]||!uu[me]):!!(ro==="application/xhtml+xml"&&ws[P.namespaceURI]):!1},Mr=function(P){gl(t.removed,{element:P});try{C(P).removeChild(P)}catch{y(P)}},fi=function(P,ne){try{gl(t.removed,{attribute:ne.getAttributeNode(P),from:ne})}catch{gl(t.removed,{attribute:null,from:ne})}if(ne.removeAttribute(P),P==="is")if(Bn||br)try{Mr(ne)}catch{}else try{ne.setAttribute(P,"")}catch{}},cu=function(P){let ne=null,me=null;if(Nn)P="<remove></remove>"+P;else{let Ct=kb(P,/^[\r\n\t ]+/);me=Ct&&Ct[0]}ro==="application/xhtml+xml"&&hn===wr&&(P='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+P+"</body></html>");let Qe=O?O.createHTML(P):P;if(hn===wr)try{ne=new v().parseFromString(Qe,ro)}catch{}if(!ne||!ne.documentElement){ne=M.createDocument(hn,"template",null);try{ne.documentElement.innerHTML=xs?I:Qe}catch{}}let Nt=ne.body||ne.documentElement;return P&&me&&Nt.insertBefore(r.createTextNode(me),Nt.childNodes[0]||null),hn===wr?H.call(ne,zt?"html":"body")[0]:zt?ne.documentElement:Nt},fu=function(P){return $.call(P.ownerDocument||P,P,d.SHOW_ELEMENT|d.SHOW_COMMENT|d.SHOW_TEXT|d.SHOW_PROCESSING_INSTRUCTION|d.SHOW_CDATA_SECTION,null)},Cs=function(P){return P instanceof p&&(typeof P.nodeName!="string"||typeof P.textContent!="string"||typeof P.removeChild!="function"||!(P.attributes instanceof m)||typeof P.removeAttribute!="function"||typeof P.setAttribute!="function"||typeof P.namespaceURI!="string"||typeof P.insertBefore!="function"||typeof P.hasChildNodes!="function")},du=function(P){return typeof c=="function"&&P instanceof c};function Yr(_e,P,ne){uf(_e,me=>{me.call(t,P,ne,ci)})}let Es=function(P){let ne=null;if(Yr(ie.beforeSanitizeElements,P,null),Cs(P))return Mr(P),!0;let me=wt(P.nodeName);if(Yr(ie.uponSanitizeElement,P,{tagName:me,allowedTags:le}),qt&&P.hasChildNodes()&&!du(P.firstElementChild)&&ar(/<[/\w!]/g,P.innerHTML)&&ar(/<[/\w!]/g,P.textContent)||P.nodeType===xl.progressingInstruction||qt&&P.nodeType===xl.comment&&ar(/<[/\w]/g,P.data))return Mr(P),!0;if(!le[me]||bt[me]){if(!bt[me]&&mu(me)&&(ke.tagNameCheck instanceof RegExp&&ar(ke.tagNameCheck,me)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(me)))return!1;if(Fn&&!xr[me]){let Qe=C(P)||P.parentNode,Nt=T(P)||P.childNodes;if(Nt&&Qe){let Ct=Nt.length;for(let jt=Ct-1;jt>=0;--jt){let Dr=S(Nt[jt],!0);Dr.__removalCount=(P.__removalCount||0)+1,Qe.insertBefore(Dr,x(P))}}}return Mr(P),!0}return P instanceof f&&!Od(P)||(me==="noscript"||me==="noembed"||me==="noframes")&&ar(/<\/no(script|embed|frames)/i,P.innerHTML)?(Mr(P),!0):(je&&P.nodeType===xl.text&&(ne=P.textContent,uf([ee,q,z],Qe=>{ne=_l(ne,Qe," ")}),P.textContent!==ne&&(gl(t.removed,{element:P.cloneNode()}),P.textContent=ne)),Yr(ie.afterSanitizeElements,P,null),!1)},pu=function(P,ne,me){if(si&&(ne==="id"||ne==="name")&&(me in r||me in Td))return!1;if(!(ht&&!mt[ne]&&ar(W,ne))){if(!(Ge&&ar(G,ne))){if(!xe[ne]||mt[ne]){if(!(mu(P)&&(ke.tagNameCheck instanceof RegExp&&ar(ke.tagNameCheck,P)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(P))&&(ke.attributeNameCheck instanceof RegExp&&ar(ke.attributeNameCheck,ne)||ke.attributeNameCheck instanceof Function&&ke.attributeNameCheck(ne))||ne==="is"&&ke.allowCustomizedBuiltInElements&&(ke.tagNameCheck instanceof RegExp&&ar(ke.tagNameCheck,me)||ke.tagNameCheck instanceof Function&&ke.tagNameCheck(me))))return!1}else if(!Qi[ne]){if(!ar(pe,_l(me,Z,""))){if(!((ne==="src"||ne==="xlink:href"||ne==="href")&&P!=="script"&&HH(me,"data:")===0&&jo[P])){if(!(xt&&!ar(J,_l(me,Z,"")))){if(me)return!1}}}}}}return!0},mu=function(P){return P!=="annotation-xml"&&kb(P,ce)},hu=function(P){Yr(ie.beforeSanitizeAttributes,P,null);let{attributes:ne}=P;if(!ne||Cs(P))return;let me={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:xe,forceKeepAttr:void 0},Qe=ne.length;for(;Qe--;){let Nt=ne[Qe],{name:Ct,namespaceURI:jt,value:Dr}=Nt,di=wt(Ct),Yo=Dr,Bt=Ct==="value"?Yo:kH(Yo);if(me.attrName=di,me.attrValue=Bt,me.keepAttr=!0,me.forceKeepAttr=void 0,Yr(ie.uponSanitizeAttribute,P,me),Bt=me.attrValue,Xi&&(di==="id"||di==="name")&&(fi(Ct,P),Bt=wd+Bt),qt&&ar(/((--!?|])>)|<\/(style|title)/i,Bt)){fi(Ct,P);continue}if(me.forceKeepAttr)continue;if(!me.keepAttr){fi(Ct,P);continue}if(!Me&&ar(/\/>/i,Bt)){fi(Ct,P);continue}je&&uf([ee,q,z],gu=>{Bt=_l(Bt,gu," ")});let vu=wt(P.nodeName);if(!pu(vu,di,Bt)){fi(Ct,P);continue}if(O&&typeof w=="object"&&typeof w.getAttributeType=="function"&&!jt)switch(w.getAttributeType(vu,di)){case"TrustedHTML":{Bt=O.createHTML(Bt);break}case"TrustedScriptURL":{Bt=O.createScriptURL(Bt);break}}if(Bt!==Yo)try{jt?P.setAttributeNS(jt,Ct,Bt):P.setAttribute(Ct,Bt),Cs(P)?Mr(P):Hb(t.removed)}catch{fi(Ct,P)}}Yr(ie.afterSanitizeAttributes,P,null)},Ld=function _e(P){let ne=null,me=fu(P);for(Yr(ie.beforeSanitizeShadowDOM,P,null);ne=me.nextNode();)Yr(ie.uponSanitizeShadowNode,ne,null),Es(ne),hu(ne),ne.content instanceof s&&_e(ne.content);Yr(ie.afterSanitizeShadowDOM,P,null)};return t.sanitize=function(_e){let P=arguments.length>1&&arguments[1]!==void 0?arguments[1]:{},ne=null,me=null,Qe=null,Nt=null;if(xs=!_e,xs&&(_e="<!-->"),typeof _e!="string"&&!du(_e))if(typeof _e.toString=="function"){if(_e=_e.toString(),typeof _e!="string")throw yl("dirty is not a string, aborting")}else throw yl("toString is not a function");if(!t.isSupported)return _e;if(cr||no(P),t.removed=[],typeof _e=="string"&&(Ji=!1),Ji){if(_e.nodeName){let Dr=wt(_e.nodeName);if(!le[Dr]||bt[Dr])throw yl("root node is forbidden and cannot be sanitized in-place")}}else if(_e instanceof c)ne=cu("<!---->"),me=ne.ownerDocument.importNode(_e,!0),me.nodeType===xl.element&&me.nodeName==="BODY"||me.nodeName==="HTML"?ne=me:ne.appendChild(me);else{if(!Bn&&!je&&!zt&&_e.indexOf("<")===-1)return O&&$t?O.createHTML(_e):_e;if(ne=cu(_e),!ne)return Bn?null:$t?I:""}ne&&Nn&&Mr(ne.firstChild);let Ct=fu(Ji?_e:ne);for(;Qe=Ct.nextNode();)Es(Qe),hu(Qe),Qe.content instanceof s&&Ld(Qe.content);if(Ji)return _e;if(Bn){if(br)for(Nt=k.call(ne.ownerDocument);ne.firstChild;
1466)Nt.appendChild(ne.firstChild);else Nt=ne;return(xe.shadowroot||xe.shadowrootmode)&&(Nt=oe.call(i,Nt,!0)),Nt}let jt=zt?ne.outerHTML:ne.innerHTML;return zt&&le["!doctype"]&&ne.ownerDocument&&ne.ownerDocument.doctype&&ne.ownerDocument.doctype.name&&ar(Kb,ne.ownerDocument.doctype.name)&&(jt="<!DOCTYPE "+ne.ownerDocument.doctype.name+`> 1467`+jt),je&&uf([ee,q,z],Dr=>{jt=_l(jt,Dr," ")}),O&&$t?O.createHTML(jt):jt},t.setConfig=function(){let _e=arguments.length>0&&arguments[0]!==void 0?arguments[0]:{};no(_e),cr=!0},t.clearConfig=function(){ci=null,cr=!1},t.isValidAttribute=function(_e,P,ne){ci||no({});let me=wt(_e),Qe=wt(P);return pu(me,Qe,ne)},t.addHook=function(_e,P){typeof P=="function"&&gl(ie[_e],P)},t.removeHook=function(_e,P){if(P!==void 0){let ne=BH(ie[_e],P);return ne===-1?void 0:FH(ie[_e],ne,1)[0]}return Hb(ie[_e])},t.removeHooks=function(_e){ie[_e]=[]},t.removeAllHooks=function(){ie=zb()},t}var Xb=Yb();var Qb=Te(Jb(),1),ek=e=>e.replace(/[.*+?^${}()|[\]\\]/g,"\\$&"),e3=e=>e===0?"Add New Comment":e===1?"1 Comment":`${e} Comments`,Wi=e=>e.firstName&&e.lastName?`${e.firstName} ${e.lastName}`:e.firstName||e.lastName||e.email,t3=(e,t)=>e.length>fl?`Limit exceeded. You can have a maximum length of ${fl} characters.`:t.length>D1?`Limit exceeded. You can tag a maximum of ${D1} users.`:"",r3=(e,t)=>{let r=t.filter(i=>e.includes(i.display));return{toUsers:Js(r,"id")}},df=(e,t,r)=>{if(!e)return;let i=n3(e.message).replace(/<[^>]*>/g,"");return e.toUsers?.forEach(o=>{let s=new RegExp(`{{${o}}}`,"g"),l=t.userMap[o],c=l?l.display||Wi(l):"unknown user",f=r==="html"?`<b class="collab-thread-comment--message">@${c}</b>`:`@${c}`;i=i.replace(s,f)}),i},n3=e=>Xb.sanitize(e,{USE_PROFILES:{html:!0}}),i3=e=>{let t=n3(e.message).replace(/[^\S\r\n]+/g," ").replace(/ *\n */g,` 1468`).replace(/<[^>]*>/g,"").trim(),r={message:t,toUsers:[],images:[],createdBy:e.createdBy,author:e.author},i=(o,s)=>{let l=o.display,c=ek(`@${l}`),f=new RegExp(c,"g");t=t.replace(f,`{{${o.id}}}`),s.push(o.id)};return e.toUsers?.forEach(o=>i(o,r.toUsers)),r.message=t,r};function o3(e){return e==="/"?e:e.endsWith("/")?e.slice(0,-1):e}function a3(e){return e?e.replace(/\/svg/g,"/*[name()='svg']"):""}function J1(e,t={}){let{top:r,left:i}=e,o=window.innerWidth,s=t.safeMargin??16,l=t.topSafeMargin??42,c=t.threadWidth??16,f=i,d=r;return f+c>o-s&&(f=o-s-c),d-window.scrollY<l&&(d=window.scrollY+l),{top:d,left:f}}function s3(e){return e?(0,Qb.default)(e).format("MMM DD, YYYY, hh:mm A"):""}var l3=(e,t,r,i)=>{if(!e.current||!t.current)return;let o=t.current.getBoundingClientRect(),s=e.current.getBoundingClientRect(),l=8,c={bottom:{top:o.bottom+l,left:o.left+(o.width-s.width)/2},top:{top:o.top-s.height-l,left:o.left+(o.width-s.width)/2},left:{top:o.top+(o.height-s.height)/2,left:o.left-s.width-l},right:{top:o.top+(o.height-s.height)/2,left:o.right+l}},f=r,d=c[r],m=window.innerWidth,p=window.innerHeight,v={bottom:d.top+s.height>p,top:d.top<0,left:d.left<0,right:d.left+s.width>m},w=d.left<0||d.left+s.width>m;if(v[r]||w){let g=["bottom","top","right","left"];g.splice(g.indexOf(r),1),g.push(r);for(let S of g){let y=c[S];if(y.top>=0&&y.top+s.height<=p&&y.left>=0&&y.left+s.width<=m){f=S,d=y;break}}}d.left<0?d.left=l:d.left+s.width>m&&(d.left=m-s.width-l),d.top<0?d.top=l:d.top+s.height>p&&(d.top=p-s.height-l),i(f),Object.assign(e.current.style,{top:`${d.top}px`,left:`${d.left}px`})};var Q1=Te(ze(),1);var u3=e=>{let g=e,{content:t,children:r,position:i="bottom",className:o,testId:s}=g,l=hr(g,["content","children","position","className","testId"]),[c,f]=ye(!1),[d,m]=ye(i),p=nt(null),v=nt(null),w=nt(r);return Le(()=>{w.current!==r&&(f(!1),w.current=r)},[r]),Le(()=>{let S=()=>l3(p,v,i,m);return S(),window.addEventListener("scroll",S),window.addEventListener("resize",S),()=>{window.removeEventListener("scroll",S),window.removeEventListener("resize",S)}},[c,i]),b("div",ge(re({ref:v,className:(0,Q1.default)("collab-tooltip--wrapper",ue()["collab-tooltip--wrapper"],o),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),"data-testid":s},l),{children:[r,c&&b("div",{ref:p,className:(0,Q1.default)("collab-tooltip",`collab-tooltip--${d}`,ue()["collab-tooltip"],ue()[`collab-tooltip--${d}`]),role:"tooltip","aria-hidden":!c,"data-position":d,children:t})]}))};u3.defaultProps={testId:"collab-tooltip"};var Eo=u3;var pf={Cancel:e=>b("svg",ge(re({},e),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{class:"collab-icon__svg",d:"M25.5303 7.53033C25.8232 7.23744 25.8232 6.76256 25.5303 6.46967C25.2374 6.17678 24.7626 6.17678 24.4697 6.46967L16 14.9393L7.53033 6.46967C7.23744 6.17678 6.76256 6.17678 6.46967 6.46967C6.17678 6.76256 6.17678 7.23744 6.46967 7.53033L14.9393 16L6.46967 24.4697C6.17678 24.7626 6.17678 25.2374 6.46967 25.5303C6.76256 25.8232 7.23744 25.8232 7.53033 25.5303L16 17.0607L24.4697 25.5303C24.7626 25.8232 25.2374 25.8232 25.5303 25.5303C25.8232 25.2374 25.8232 24.7626 25.5303 24.4697L17.0607 16L25.5303 7.53033Z",fill:"#475161"})})),Delete:e=>b("svg",ge(re({},e),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:[b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.25 7C4.25 6.58579 4.58579 6.25 5 6.25H27C27.4142 6.25 27.75 6.58579 27.75 7C27.75 7.41421 27.4142 7.75 27 7.75H5C4.58579 7.75 4.25 7.41421 4.25 7Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M13 12.25C13.4142 12.25 13.75 12.5858 13.75 13V21C13.75 21.4142 13.4142 21.75 13 21.75C12.5858 21.75 12.25 21.4142 12.25 21V13C12.25 12.5858 12.5858 12.25 13 12.25Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M19 12.25C19.4142 12.25 19.75 12.5858 19.75 13V21C19.75 21.4142 19.4142 21.75 19 21.75C18.5858 21.75 18.25 21.4142 18.25 21V13C18.25 12.5858 18.5858 12.25 19 12.25Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M7 6.25C7.41421 6.25 7.75 6.58579 7.75 7V26C7.75 26.0663 7.77634 26.1299 7.82322 26.1768C7.87011 26.2237 7.93369 26.25 8 26.25H24C24.0663 26.25 24.1299 26.2237 24.1768 26.1768C24.2237 26.1299 24.25 26.0663 24.25 26V7C24.25 6.58579 24.5858 6.25 25 6.25C25.4142 6.25 25.75 6.58579 25.75 7V26C25.75 26.4641 25.5656 26.9092 25.2374 27.2374C24.9092 27.5656 24.4641 27.75 24 27.75H8C7.53587 27.75 7.09075 27.56
146856 6.76256 27.2374C6.43437 26.9092 6.25 26.4641 6.25 26V7C6.25 6.58579 6.58579 6.25 7 6.25Z",fill:"#475161"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M11.0555 3.05546C11.5712 2.53973 12.2707 2.25 13 2.25H19C19.7293 2.25 20.4288 2.53973 20.9445 3.05546C21.4603 3.57118 21.75 4.27065 21.75 5V7C21.75 7.41421 21.4142 7.75 21 7.75C20.5858 7.75 20.25 7.41421 20.25 7V5C20.25 4.66848 20.1183 4.35054 19.8839 4.11612C19.6495 3.8817 19.3315 3.75 19 3.75H13C12.6685 3.75 12.3505 3.8817 12.1161 4.11612C11.8817 4.35054 11.75 4.66848 11.75 5V7C11.75 7.41421 11.4142 7.75 11 7.75C10.5858 7.75 10.25 7.41421 10.25 7V5C10.25 4.27065 10.5397 3.57118 11.0555 3.05546Z",fill:"#475161"})]})),Edit:e=>b("svg",ge(re({},e),{width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M4.7778 20.5072C4.47473 20.8102 4.29342 21.214 4.26826 21.6418L4.00309 26.1497C3.94156 27.1957 4.80682 28.0609 5.85284 27.9994L10.3606 27.7342C10.7885 27.7091 11.1922 27.5278 11.4953 27.2247L27.4899 11.2301C28.1733 10.5467 28.1733 9.43862 27.4899 8.7552L23.2473 4.51256C22.5639 3.82915 21.4558 3.82915 20.7724 4.51256L4.7778 20.5072ZM5.76567 21.7299C5.76926 21.6688 5.79516 21.6111 5.83846 21.5678L18.9336 8.4727L23.327 12.8661C23.3988 12.9379 23.4816 12.9921 23.57 13.0287L10.4347 26.164C10.3914 26.2073 10.3337 26.2332 10.2726 26.2368L5.76475 26.502C5.61532 26.5108 5.49171 26.3872 5.5005 26.2377L5.76567 21.7299ZM24.5503 12.0484L26.4293 10.1694C26.5269 10.0718 26.5269 9.9135 26.4293 9.81586L22.1866 5.57322C22.089 5.47559 21.9307 5.47559 21.8331 5.57322L19.9943 7.41204L24.3876 11.8054C24.4595 11.8772 24.5137 11.96 24.5503 12.0484Z",fill:"#475161"})})),RightMarkActive:e=>b("svg",ge(re({},e),{xmlns:"http://www.w3.org/2000/svg",width:"20",height:"20",viewBox:"0 0 20 20",fill:"none",children:b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M17.2065 5.29354C17.3895 5.4766 17.3895 5.7734 17.2065 5.95646L8.45646 14.7065C8.2734 14.8895 7.9766 14.8895 7.79354 14.7065L3.41854 10.3315C3.23549 10.1484 3.23549 9.8516 3.41854 9.66854C3.6016 9.48549 3.8984 9.48549 4.08146 9.66854L8.125 13.7121L16.5435 5.29354C16.7266 5.11049 17.0234 5.11049 17.2065 5.29354Z",fill:"#6C5CE7"})})),Indicator:({active:e})=>b("svg",{width:e?"25":"24",height:"24",viewBox:`0 0 ${e?25:24} 24`,fill:"none",class:"collab-icon",xmlns:"http://www.w3.org/2000/svg",style:{marginTop:"2px"},children:[b("path",{class:"collab-icon__svg",d:"M8.4375 9C8.4375 8.68934 8.68934 8.4375 9 8.4375H15C15.3107 8.4375 15.5625 8.68934 15.5625 9C15.5625 9.31066 15.3107 9.5625 15 9.5625H9C8.68934 9.5625 8.4375 9.31066 8.4375 9Z",fill:"white"}),b("path",{class:"collab-icon__svg",d:"M8.4375 12C8.4375 11.6893 8.68934 11.4375 9 11.4375H15C15.3107 11.4375 15.5625 11.6893 15.5625 12C15.5625 12.3107 15.3107 12.5625 15 12.5625H9C8.68934 12.5625 8.4375 12.3107 8.4375 12Z",fill:"white"}),b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",class:"collab-icon__svg",d:"M3 5.25C3 4.83579 3.33579 4.5 3.75 4.5H20.25C20.6642 4.5 21 4.83579 21 5.25V16.4423C21 16.8565 20.6642 17.1923 20.25 17.1923H14.9804C14.853 17.1923 14.7343 17.257 14.6652 17.3641L12.9633 20.0042C12.6651 20.4669 11.9866 20.4613 11.696 19.9938L10.1746 17.5464C10.0378 17.3262 9.79691 17.1923 9.53766 17.1923H3.75C3.33579 17.1923 3 16.8565 3 16.4423V5.25ZM4.125 16.0673V5.625H19.875V16.0673H14.9804C14.4707 16.0673 13.9958 16.3262 13.7197 16.7546L12.3387 18.8968L11.1301 16.9524C10.7879 16.402 10.1858 16.0673 9.53766 16.0673H4.125Z",fill:"white"}),e&&b("g",{children:[b("circle",{cx:"20",cy:"5",r:"4",fill:"#EB5646",class:"collab-icon__svg"}),b("circle",{cx:"20",cy:"5",r:"4.5",stroke:"white","stroke-opacity":"0.6",class:"collab-icon__svg"})]})]})};var em=Te(ze(),1);var tk=l=>{var c=l,{icon:e,className:t,onClick:r,testId:i,disabled:o}=c,s=hr(c,["icon","className","onClick","testId","disabled"]);let f=pf[e],d=m=>{o||r?.(m)};return b("div",ge(re({className:(0,em.default)("collab-icon-wrapper",ue()["collab-icon-wrapper"]),onClick:d,"data-testid":i},s),{children:f?b(f,{className:(0,em.default)("collab-icon",ue()["collab-icon"],t)}):null}))},rk=e=>s=>{var l=s,{withTooltip:t=!1,tooltipContent:r="",testId:i="collab-icon"}=l,o=hr(l,["withTooltip","tooltipContent","testId"]);return t&&r?b("div",{"data-testid":i,children:b(Eo,{content:r,position:"bottom",testId:"collab-icon-tooltip",children:b(e,re({},o))})}):b(e,ge(re({},o),{testId:i}))},nk=rk(tk),Ga=nk;var tm=Te(ze(),1);var ik=o=>{var s=o,{className:e,color:t="primary",testId:r="collab-async-loader"}=s,i=hr(s,["className","color","testId"]);let l=(0,tm.default)(ue()["collab-button--loader--animation"],ue()["collab-button--loading--color"][t],"collab-button--loader--animation",`collab-button--loading--${t}`);return b("div",ge(re({className:(0,tm.default)("collab-button--loader",ue()["collab-button--loader"],e)},i),{"data-testid":r,children:[b("div",{className:l}),b("div",{className:l}),b("div",{className:l})]}))},c3=ik;var ok=({buttonType:e="primary",children:t,className:r="",testId:i,onClick:o,isLoading:s,loadingColor:l="primary",disabled:c=!1,type:f="button",style:d,href:m,id:p,size:v="large",icon:w,iconProps:g,iconAlignment:S="left"})=>{let y=m?"a":"button",x=t&&or.Children.toArray([t]);if(w){let O=b(Ga,re({icon:w},g));switch(S){case"left":x=or.Children.toArray([O,x]);break;case"right":x=or.Children.toArray([x,O]);break;case"both":x=or.Children.toArray([O,x,O]);break;default:break}}let T=(0,wl.default)(ue()["collab-button--basestyle"],ue()["collab-button--type"][e],ue()["collab-button--size"][v],w&&ue()["collab-button--icon-allignment"][S],c&&ue()["collab-button--disabled"],s&&ue()["collab-button--loading"],r,`collab-button collab-button--${e} collab-button--${v} ${w?`collab-button--icon-${S}`:""} ${c?"collab-button--disabled":""} 1469 ${s?"collab-button--loading":""}`),C=Object.fromEntries(Object.entries(d||{}).filter(([O,I])=>I!=null));return b(y,{className:T,id:p,onClick:o,type:f,style:C,disabled:c,href:m,"data-testid":i,children:b("div",{className:(0,wl.default)("flex-center",wb),children:[s&&b("div",{className:(0,wl.default)(ue()["collab-button--loader--wrapper"],"collab-button--loader--wrapper"),children:b(c3,{c
1469olor:l})}),b("div",{className:(0,wl.default)("flex-v-center",Yt,{[`${ue()["collab-button--size"].regular} collab-button--regular`]:v!=="small"},s?`${ue()["collab-button--hidden"]} collab-button--hidden`:`${ue()["collab-button--visible"]} collab-button--visible`),children:x})]})})},Cl=ok;var ak=({commentCount:e,displayResolve:t,handleResolve:r,isResolving:i})=>b(Ke,{children:[b("div",{className:(0,El.default)("collab-thread-header--title",ue()["collab-thread-header--title"]),children:e3(e)}),t&&b(Cl,{buttonType:"tertiary",className:(0,El.default)("collab-thread-header--resolve",ue()["collab-thread-header--resolve"]),icon:"RightMarkActive",iconProps:{className:(0,El.default)(ue()["collab-thread-header--resolve--icon"],"collab-thread-header--resolve--icon")},onClick:r,testId:"collab-thread-resolve-btn",isLoading:i,loadingColor:"secondary",children:b("span",{className:(0,El.default)("collab-thread-header--resolve--text",ue()["collab-thread-header--resolve--text"]),children:"Resolve"})})]}),f3=ak;var sk=or.memo(({onClose:e,displayResolve:t,onResolve:r,commentCount:i,activeThread:o})=>{let[s,l]=ye(!1),c=on(()=>K(void 0,null,function*(){if(!s)try{l(!0);let f={threadUid:o._id,payload:{threadState:2}};yield r(f)}finally{e(!0),l(!1)}}),[o,s,r,e]);return b("div",{className:(0,rm.default)("collab-thread-header--wrapper","flex-v-center",ue()["collab-thread-header--wrapper"],Yt),children:b("div",{className:(0,rm.default)("collab-thread-header--container","flex-v-center",ue()["collab-thread-header--container"],Yt),children:b(f3,{commentCount:i,displayResolve:t,handleResolve:c,isResolving:s})})})}),d3=sk;var p3=Te(ze(),1);var m3=e=>{let c=e,{className:t,children:r,style:i,testId:o}=c,s=hr(c,["className","children","style","testId"]),l=(0,p3.default)("collab-button-group",ue()["collab-button-group"],t);return b("div",ge(re({className:l,style:i,"data-testid":o},s),{children:r}))};m3.defaultProps={testId:"collab-button-group"};var h3=m3;var v3=Te(ze(),1);var lk=({onClose:e,handleOnSaveRef:t,isDisabled:r,editComment:i})=>{let[o,s]=ye(!1),l=c=>K(void 0,null,function*(){s(!0),c.preventDefault(),yield t.current?.(),s(!1)});return b("div",{className:(0,v3.default)("collab-thread-footer--wrapper","flex-v-center",ue()["collab-thread-footer--wrapper"],Yt),children:b(h3,{children:[b(Cl,{type:"button",buttonType:"tertiary",testId:"thread-cancel-btn",onClick:()=>e(!1),children:"Cancel"}),b(Cl,{type:"button",buttonType:"primary",onClick:l,testId:"thread-save-btn",disabled:r||o,isLoading:o,children:i===""?"Post":"Update"})]})})},g3=lk;var _3=Te(ze(),1);var y3=e=>{let{numberOfTiles:t,tileleftSpace:r,tileTopSpace:i,tileHeight:o,tileBottomSpace:s,tileWidth:l,testId:c,tileRadius:f=7}=e,d=t*o+t*s+t*i,m=typeof l=="string"?l:l+r;return b("svg",{"data-testid":c,height:d,width:m,className:(0,_3.default)("collab-skeletonTileSvgClass",ue()["collab-skeletonTileSvgClass"]),fill:"#EDF1F7",children:Array.from({length:t}).map((p,v)=>b("g",{children:b("rect",{"data-testid":"rect",x:r,y:v*(o+s)+i,rx:f,width:l,height:o})},v))})};y3.defaultProps={testId:"collab-skeletonTile"};var Sl=y3;var b3=Te(ze(),1);var uk=()=>b("div",{className:(0,b3.default)("collab-thread-body-comment--loader",ue()["collab-thread-body-comment--loader"]),children:[b("div",{style:{display:"flex"},children:[b(Sl,{numberOfTiles:1,tileHeight:32,tileWidth:32,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0,tileRadius:50}),b(Sl,{numberOfTiles:2,tileHeight:10,tileWidth:130,tileBottomSpace:7,tileTopSpace:3,tileleftSpace:10})]}),b(Sl,{numberOfTiles:1,tileHeight:14,tileWidth:300,tileBottomSpace:5,tileTopSpace:0,tileleftSpace:0}),b(Sl,{numberOfTiles:1,tileHeight:14,tileWidth:230,tileBottomSpace:0,tileTopSpace:0,tileleftSpace:0})]}),Al=uk;var Za=or.createContext(null);var ck=(e,t,r=1,i=3)=>{Le(()=>{let o=document.querySelector(e);return o&&o.setAttribute("rows",t.length>0?`${i}`:`${r}`),()=>{o?.setAttribute("rows",`${r}`)}},[t,e,r,i])},x3=ck;var w3={message:"",toUsers:[],images:[],createdBy:"",author:""},C3=(e,t,r)=>{let[i,o]=ye(w3),[s,l]=ye(!1),[c,f]=ye({top:0,left:0,showAbove:!1}),[d,m]=ye(""),[p,v]=ye(0),[w,g]=ye([]),S=nt(null),y=nt(null),x=nt([]),{error:T,setError:C,onCreateComment:O,onEditComment:I,editComment:M,setThreadState:$,activeThread:k,setActiveThread:H,createNewThread:oe}=Fa(Za);
1469x3(".collab-thread-body--input--textarea",i.message),Le(()=>{x.current=x.current.slice(0,e.mentionsList.length)},[e.mentionsList]),Le(()=>{let J=e.mentionsList.filter(Z=>d?Z.display.toLowerCase().includes(d.toLowerCase()):!0);g(J)},[d,e.mentionsList]),Le(()=>{let J=document.getElementById("collab-thread-body--input--textarea");if(!J)return;let Z={focus:{base:"collab-thread-body--input--textarea--focus",goober:ue()["collab-thread-body--input--textarea--focus"]},hover:{base:"collab-thread-body--input--textarea--hover",goober:ue()["collab-thread-body--input--textarea--hover"]}},ce=()=>{J.classList.add(Z.focus.base,Z.focus.goober)},pe=()=>{J.classList.remove(Z.focus.base,Z.focus.goober)},le=()=>{J.classList.add(Z.hover.base,Z.hover.goober)},Oe=()=>{J.classList.remove(Z.hover.base,Z.hover.goober)};return J.addEventListener("focus",ce),J.addEventListener("blur",pe),J.addEventListener("mouseenter",le),J.addEventListener("mouseleave",Oe),()=>{J.removeEventListener("focus",ce),J.removeEventListener("blur",pe),J.removeEventListener("mouseenter",le),J.removeEventListener("mouseleave",Oe)}},[]),Le(()=>{if(!t)return;let J=[];t?.toUsers?.forEach(Z=>{let ce=e.userMap[Z];J.push({display:`${ce.display||Wi(ce)}`,id:Z})}),o({message:df(t,e,"text")??"",toUsers:J,images:t?.images??[],createdBy:t?.createdBy??"",author:t?.author??""})},[t,e]);let ie=on((J,Z)=>{let ce=J.slice(0,Z),pe=ce.lastIndexOf("@");if(pe===-1)return null;let le=ce.slice(pe+1);return le.includes(" ")?null:{start:pe,searchTerm:le}},[]),ee=on((J,Z)=>{let le=J?.value?.slice(0,Z)?.split(` 1470`),Oe=(le?.length||0)-1,xe=le?.[Oe],tt=window.getComputedStyle(J),ke=parseInt(tt.lineHeight),bt=parseInt(tt.paddingLeft),mt=parseInt(tt.paddingTop),Ge=document.createElement("span");Ge.style.font=tt.font,Ge.style.visibility="hidden",Ge.style.position="absolute",Ge.style.whiteSpace="pre",Ge.textContent=xe||"",document.body.appendChild(Ge);let ht=Math.min(Ge.offsetWidth+bt,J.offsetWidth-200);document.body.removeChild(Ge);let xt=J.scrollTop,Me=Oe*ke+mt-xt,je=Me+ke,qt=window.innerHeight,zt=160,Nn=J.getBoundingClientRect().top+je,br=qt-Nn<zt;return{top:br?Me:je,left:ht,showAbove:br,absoluteTop:Nn,scrollTop:xt,currentLineNumber:Oe}},[]),q=on(J=>{let Z=ie(i.message,S.current?.selectionStart||0);if(!Z)return;let ce=i.message.slice(0,Z.start),pe=i.message.slice(S.current?.selectionStart||0),le=`${ce}@${J.display} ${pe}`,Oe=r3(le,[...i.toUsers||[],{display:J.display,id:J.uid||""}]);o(tt=>ge(re({},tt),{message:le,toUsers:Oe.toUsers})),l(!1);let xe=S.current;xe&&xe.focus()},[i.message,i.toUsers,ie]),z=on(J=>{let Z=J.target;if(!Z)return;let ce=Z.value,pe=ce.trim(),le=Z.selectionStart,Oe=ie(ce,le);Oe?(m(Oe.searchTerm),l(!0),f(ee(S.current,le)),v(0)):l(!1);let xe=t3(ce,i.toUsers??[]);C({hasError:xe!==""||pe==="",message:xe}),o(tt=>ge(re({},tt),{message:ce}))},[i.toUsers,ie,ee,C]),W=on(J=>{if(J.key==="@"){let Z=ee(S.current,J.target.selectionStart);f(Z),v(0)}if(s)switch(J.key){case"ArrowDown":J.preventDefault(),v(Z=>Z<w.length-1?Z+1:Z);break;case"ArrowUp":J.preventDefault(),v(Z=>Z>0?Z-1:Z);break;case"Enter":J.preventDefault(),s&&q(w[p]);break;case"Escape":l(!1),S.current?.focus();break}},[s,w,p,q,ee]);Le(()=>{x.current[p]?.scrollIntoView({behavior:"smooth",block:"nearest",inline:"nearest"})},[p]);let G=on(()=>K(void 0,null,function*(){if(!T.hasError)try{let J=k?._id;if(k?._id=="new"){let le=yield oe();J=le?.thread?._id,H(le?.thread)}let Z=ge(re({},i),{createdBy:e.currentUser.uid,author:e.currentUser.email}),ce=re({},i3(Z)),pe={threadUid:J,commentPayload:ce};if(M){let le=yield I({threadUid:J,commentUid:M,payload:ce});$(Oe=>{let xe=Zs(Oe.comments),tt=Jp(xe,ke=>ke._id===t?._id);return xe.splice(tt,1,le?.comment),ge(re({},Oe),{editComment:"",comments:xe})}),r(!1)}else{let le=yield O(pe);$(Oe=>ge(re({},Oe),{comments:[le.comment,...Oe.comments],commentCount:Oe.commentCount+1})),o(w3),r(!1)}}catch(J){console.error("Error submitting comment:",J)}}),[T.hasError,i,k]);return Le(()=>{i.message.length===0&&C({hasError:!0,message:""})},[i.message,C]),{state:i,setState:o,error:T,showSuggestions:s,cursorPosition:c,selectedIndex:p,filteredUsers:w,inputRef:S,listRef:y,itemRefs:x,handleInputChange:z,handleKeyDown:W,handleSubmit:G,insertMention:q,maxMessageLength:fl}};var An=Te(ze(),1);var fk=({errorMessage:e})=>b("div",{className:(0,An.default)("collab-thread-input-indicator--error",ue()["collab-thread-input-indicator--error"]),children:e}),dk=({currentLength:e,maxLength:t})=>b("div",{className:(0,An.default)("collab-thread-input-indicator--count",ue()["collab-thread-input-indicator--count"]),children:[e,"/",t]}),pk=({filteredUsers:e,selectedIndex:t,cursorPosition:r,inputRef:i,listRef:o,itemRefs:s,insertMention:l,handleKeyDown:c})=>e.length===0?null:b("ul",{className:(0,An.default)("collab-thread-body--in
1470put--textarea--suggestionsList",ue()["collab-thread-body--input--textarea--suggestionsList"]),style:re({},r.showAbove?{bottom:`${window.innerHeight-(i.current?.getBoundingClientRect().top||0)-r.top}px`,top:"auto"}:{top:`${(i.current?.getBoundingClientRect().top||0)+r.top}px`}),ref:o,children:e.map((f,d)=>b("li",{onClick:()=>l(f),className:(0,An.default)("collab-thread-body--input--textarea--suggestionsList--item",ue()["collab-thread-body--input--textarea--suggestionsList--item"],d===t?ue()["collab-thread-body--input--textarea--suggestionsList--item-selected"]:""),ref:m=>s.current[d]=m,onKeyDown:m=>m.key==="Enter"?l(f):c(m),tabIndex:-1,"aria-selected":d===t,children:f.display===f.email?f.display.length>20?b(Eo,{content:f.display||"",children:(f.display||"").substring(0,18)+"..."}):f.display:b(Eo,{content:f.display+" - "+f.email||"",children:f.display.length>20?(f.display||"").substring(0,18)+"...":f.display})},f.uid))}),mk=or.memo(({userState:e,handleOnSaveRef:t,comment:r,onClose:i})=>{let{state:o,error:s,showSuggestions:l,cursorPosition:c,selectedIndex:f,filteredUsers:d,inputRef:m,listRef:p,itemRefs:v,handleInputChange:w,handleKeyDown:g,handleSubmit:S,insertMention:y,maxMessageLength:x}=C3(e,r,i),T=O=>w(O),C=O=>g(O);return Le(()=>{t.current=S},[S,t]),b("div",{className:(0,An.default)("collab-thread-body--input--wrapper",ue()["collab-thread-body--input--wrapper"]),children:[b("div",{className:(0,An.default)("collab-thread-body--input",ue()["collab-thread-body--input"]),children:b("div",{className:(0,An.default)("collab-thread-body--input--textarea--wrapper",ue()["collab-thread-body--input--textarea--wrapper"]),children:[b("textarea",{name:"collab-thread-body--input--textarea",id:"collab-thread-body--input--textarea",rows:1,className:(0,An.default)("collab-thread-body--input--textarea",ue()["collab-thread-body--input--textarea"]),value:o.message,onChange:T,onKeyDown:C,maxLength:x,placeholder:"Enter a comment or tag others using \u201C@\u201D",ref:m}),l&&b(pk,{filteredUsers:d,selectedIndex:f,cursorPosition:c,inputRef:m,listRef:p,itemRefs:v,insertMention:y,handleKeyDown:g})]})}),b("div",{className:(0,An.default)("collab-thread-input-indicator--wrapper","flex-v-center",ue()["collab-thread-input-indicator--wrapper"],Yt),children:[b(fk,{errorMessage:s.message}),b(dk,{currentLength:o.message.length,maxLength:x})]})]})}),E3=mk;var nm=Te(ze(),1);var hk=({mode:e,commentUser:t,currentUser:r,commentUID:i})=>{let{setThreadState:o,onDeleteComment:s,activeThread:l,onDeleteThread:c}=Fa(Za),[f,d]=ye(!1),m=g=>{o(S=>ge(re({},S),{editComment:g||""}))},p=()=>{m(null)},v=()=>{i&&m(i)},w=()=>K(void 0,null,function*(){if(!(!i||f)){d(!0);try{let g=yield s({threadUid:l?._id,commentUid:i});o(S=>{let y=S.comments.filter(x=>x._id!==i);return S.commentCount-1===0&&c({threadUid:l?._id}),ge(re({},S),{comments:y,commentCount:S.commentCount-1})})}catch{}finally{d(!1)}}});return e==="edit"&&i?b("div",{className:(0,nm.default)("collab-thread-comment-action--wrapper",ue()["collab-thread-comment-action--wrapper"]),children:b(Ga,{icon:"Cancel",withTooltip:!0,tooltipContent:"Cancel",onClick:p})}):t?.uid!==r?.uid||!i?null:b("div",{className:(0,nm.default)("collab-thread-comment-action--wrapper",ue()["collab-thread-comment-action--wrapper"]),"data-testid":"collab-thread-comment-action--wrapper",children:[b(Ga,{icon:"Edit",tooltipContent:"Edit",withTooltip:!0,testId:"collab-thread-comment-edit",onClick:v}),b(Ga,{icon:"Delete",tooltipContent:"Delete",withTooltip:!0,testId:"collab-thread-comment-delete",onClick:w,disabled:f})]})},S3=hk;var A3=Te(ze(),1);var vk=({comment:e,userState:t})=>{let r=Kt(()=>df(e,t,"html")??"",[e.message,t.userMap,e.toUsers]);return b("div",{"data-testid":"collab-thread-comment--message",className:(0,A3.default)("collab-thread-comment--message",ue()["collab-thread-comment--message"]),dangerouslySetInnerHTML:{__html:r}})},T3=vk;var mf=Te(ze(),1);function gk(e){if(!e)return"";let t=e.trim().split(" ");return t.length===1?e.substring(0,2):t[0][0]+t[t.length-1][0]}function _k({type:e,avatar:t,initials:r}){return e==="image"&&t.image?b("img",{"data-testid":"collab-avatar-image",src:t.image,alt:t.name,className:(0,mf.default)("collab-avatar__image",ue()["collab-avatar__image"])}):b("span",{className:"collab-avatar-link__initials",children:r})}function yk({avatar:e,type:t="text",testId:r="collab-avatar"}){let i=gk(e.name);return b("div",{"data-testid":r,children:b(Eo,{content:e.name||e.email||"",position:"bottom",children:b("div",{className:(0,mf.default)("collab-avatar","collab-avatar--single","flex-v-center",ue()["collab-avatar"],ue()["collab-avatar--single"],Yt),children:b("span",{className:(0,mf.default)("collab-avatar__link","flex-v-center",ue()["collab-avatar__link"],Yt),children:b(_k,{type:t,avatar:e,initials:i})})})})})}var O3=yk;var Ka=Te(ze(),1);var bk=e=>e?s3(e.updatedAt||e.createdAt):"",xk=({userState:e,comment:t,onClose:r,handleOnSaveRef:i,mode:o})=>{let[s,l]=ye(null),[c,f]=ye(!1);Le(()=>{l(t?e.userMap[t.createdBy]:e.currentUser)},[t,e]);let d=Kt(()=>bk(t),[t]);return s?b("div",{className:(0,Ka.default)("collab-thread-comment--wrapper",ue()["collab-thread-comment--wrapper"]),onMouseEnter:()=>f(!0),onMouseLeave:()=>f(!1),children:[b("div",{className:(0,Ka.default)("collab-thread-comment--user-details","flex-v-center",ue()["collab-thread-comment--user-details"],Yt),children:[b(O3,{avatar:{name:Wi(s),id:s.uid}}),b("div",{className:(0,Ka.default)("collab-thread-comment--user-details__text",ue()["collab-thread-comment--user-details__text"]),children:[b("div",{className:(0,Ka.default)("collab-thread-comment--user-name",ue()["collab-thread-comment--user-name"]),children:Wi(s)}),t&&b("div",{className:(0,Ka.default)("collab-thread-comment--time-details",ue(
1470)["collab-thread-comment--time-details"]),children:d})]}),c&&b(S3,{mode:o,commentUser:s,currentUser:e.currentUser,commentUID:t?._id})]}),o==="edit"?b(E3,{onClose:r,userState:e,handleOnSaveRef:i,comment:t}):t&&b(T3,{comment:t,userState:e})]}):b(Al,{},"collab-thread-body--comment-loader")},im=xk;var hf=Te(ze(),1);var wk=({isLoading:e,children:t})=>e?b(Al,{},"collab-thread-body--comment-loader"):b(Ke,{children:t}),Ck=({comments:e,userState:t,onClose:r,handleOnSaveRef:i,editComment:o,fetchingMore:s})=>b("div",{className:(0,hf.default)("collab-thread-comment--list",ue()["collab-thread-comment--list"]),id:"collab-thread-comment--list",children:[e?.map(l=>b(Ke,{children:[b("div",{className:(0,hf.default)("collab-thread-comment-seperator","flex-v-center",ue()["collab-thread-comment-seperator"],Yt),children:b("svg",{class:"collab-thread-comment-seperator--svg",xmlns:"http://www.w3.org/2000/svg",width:"100%",height:"2",viewBox:"0 0 332 2",fill:"none",preserveAspectRatio:"none",children:b("path",{d:"M0 1H332",stroke:"#DDE3EE",strokeDasharray:"2 2"})})}),b(im,{userState:t,comment:l,onClose:r,handleOnSaveRef:i,mode:o===l._id?"edit":"view"})]})),s&&b(Al,{})]}),Ek=or.memo(({handleOnSaveRef:e,onClose:t,userState:r,isLoading:i,comments:o,fetchingMore:s,editComment:l})=>b("div",{className:(0,hf.default)("collab-thread-body--wrapper",ue()["collab-thread-body--wrapper"]),children:[b(wk,{isLoading:i,children:b(Ck,{comments:o,userState:r,onClose:t,handleOnSaveRef:e,editComment:l,fetchingMore:s})}),l===""&&b(im,{userState:r,comment:null,onClose:t,handleOnSaveRef:e,mode:"edit"})]})),L3=Ek;var Sk=3,Ak=({containerId:e,isFetching:t,canFetchMore:r,loadMore:i,offset:o,limit:s})=>{let[l,c]=ye(t);return Le(()=>{let f=document.getElementById(e);if(!f)return;let d=()=>K(void 0,null,function*(){if(f.scrollHeight+f.scrollTop-f.clientHeight<Sk&&!l&&r){c(!0);try{yield i(o,s)}finally{c(!1)}}});return f.addEventListener("scroll",d,!0),()=>{f.removeEventListener("scroll",d,!0)}},[e,l,r,i,o,s]),l},R3=Ak;var om=Te(ze(),1);var Tk={hasError:!1,message:""},Ok=or.memo(({onCreateComment:e,onEditComment:t,onDeleteComment:r,onDeleteThread:i,onClose:o,onResolve:s,inviteMetadata:l,loadMoreMessages:c,activeThread:f,setActiveThread:d,createNewThread:m})=>{let p=nt(null),[v,w]=ye({isLoading:!1,commentCount:0,comments:[],editComment:"",userState:{mentionsList:[],currentUser:l?.currentUser,userMap:{}}}),[g,S]=ye(Tk),y=R3({containerId:"collab-thread-comment--list",isFetching:!1,canFetchMore:v.commentCount>v.comments.length,loadMore:(T,C)=>K(void 0,null,function*(){try{let O={offset:T,limit:C,threadUid:f?._id},I=yield c(O);w(M=>ge(re({},M),{commentCount:I.count,comments:[...M.comments,...I.comments]}))}catch(O){console.error(O)}}),offset:v.comments.length,limit:10});Le(()=>{let T=[],C={};l?.users?.forEach(O=>{if(O){let I=Wi(O);T.push({display:I,email:O.email,uid:O.uid}),C[O.uid]=ge(re({},O),{display:I})}}),w(O=>ge(re({},O),{userState:{mentionsList:T,userMap:C,currentUser:l?.currentUser}}))},[l]),Le(()=>{if(!f){w(C=>ge(re({},C),{isLoading:!0}));return}if(f?._id=="new")return;K(void 0,null,function*(){w(C=>ge(re({},C),{isLoading:!0}));try{let C={offset:0,limit:10,threadUid:f?._id},O=yield c(C);w(I=>ge(re({},I),{isLoading:!1,commentCount:O.count,comments:O.comments}))}catch(C){w(O=>ge(re({},O),{isLoading:!1})),console.error(C)}})},[]);let x=Kt(()=>({inviteMetadata:l,userState:v.userState,commentCount:v.commentCount,setThreadState:w,error:g,setError:S,onCreateComment:e,onEditComment:t,onDeleteComment:r,onDeleteThread:i,onClose:o,editComment:v.editComment,activeThread:f,setActiveThread:d,createNewThread:m}),[l,v.userState,v.commentCount,g,v.editComment,f]);return b(Za.Provider,{value:x,children:b("div",{className:(0,om.default)("collab-thread--wrapper",ue()["collab-thread--wrapper"]),children:[b(d3,{onClose:o,onResolve:s,displayResolve:!!f&&f?._id!=="new",commentCount:v.commentCount,activeThread:f}),b("div",{class:(0,om.default)("collab-thread--container",ue()["collab-thread--container"]),children:[b(L3,{handleOnSaveRef:p,onClose:o,userState:v.userState,isLoading:v.isLoading,comments:v.comments,fetchingMore:y,editComment:v.editComment}),b(g3,{onClose:o,handleOnSaveRef:p,isDisabled:g.hasError,editComment:v.editComment})]})]})})}),I3=Ok;var P3=({newThread:e,thread:t})=>{let r=nt(null),i=nt(null),o=Q.get(),[s,l]=ye(e||!1),[c,f]=ye(()=>e?{_id:"new"}:t||{_id:"new"}),d=()=>{r.current&&i.current&&vf(r.current,i.current)};return Le(()=>{s&&d()},[s]),Le(()=>
1470{let p=v=>{let{threadUid:w,action:g}=v.detail,S=document.querySelector(`div[threaduid='${w}']`);gf();let y=r.current?.closest("div[field-path]");if(y&&(y.style.zIndex="999"),l(!1),g==="open"&&S&&S.contains(r.current)){l(!0);let x=r.current?.closest("div[field-path]");S.scrollIntoView({behavior:"smooth",block:"center"}),x&&(x.style.zIndex="1000"),o?.collab?.isFeedbackMode===!0&&Q.set("collab.isFeedbackMode",!1)}};return document.addEventListener("toggleCollabPopup",p),()=>{document.removeEventListener("toggleCollabPopup",p)}},[]),{buttonRef:r,popupRef:i,showPopup:s,setShowPopup:l,activeThread:c,setActiveThread:f,togglePopup:()=>{if(s){l(!1);let p=r.current?.closest("div[field-path]");p?.hasAttribute("threaduid")||p?.remove(),o?.collab?.isFeedbackMode===!1&&Q.set("collab.isFeedbackMode",!0)}else{qi({threadUid:"",action:"close"}),l(!0);let p=r.current?.closest("div[field-path]");p&&(p.style.zIndex="1000")}}}};var M3=()=>({createComment:c=>K(void 0,null,function*(){let f=yield ae?.send(se.COLLAB_CREATE_COMMENT,c);if(!f)throw new Error("Failed to create comment");return f}),editComment:c=>K(void 0,null,function*(){let f=yield ae?.send(se.COLLAB_EDIT_COMMENT,c);if(!f)throw new Error("Failed to update comment");return f}),deleteComment:c=>K(void 0,null,function*(){let f=yield ae?.send(se.COLLAB_DELETE_COMMENT,c);if(!f)throw new Error("Failed to delete comment");return f}),resolveThread:c=>K(void 0,null,function*(){let f=yield ae?.send(se.COLLAB_RESOLVE_THREAD,c);if(!f)throw new Error("Failed to resolve thread");return f}),fetchComments:c=>K(void 0,null,function*(){return yield ae?.send(se.COLLAB_FETCH_COMMENTS,c)}),createNewThread:(c,f)=>K(void 0,null,function*(){if(!c.current)throw new Error("Button ref not found");let d=c.current.closest("div[field-path]");if(!d)throw new Error("Count not find parent div");let m=d.getAttribute("field-path"),p=d.getAttribute("relative");if(!m||!p)throw new Error("Invalid field attributes");let v=p?.match(/x: ([\d.]+), y: ([\d.]+)/);if(!v)throw new Error("Invalid relative attribute");let w=parseFloat(v[1]),g=parseFloat(v[2]),S={elementXPath:m,position:{x:w,y:g},author:f.currentUser.email,pageRoute:o3(window.location.pathname),inviteUid:f.inviteUid,createdBy:f.currentUser.uid},y=yield ae?.send(se.COLLAB_CREATE_THREAD,S);return d.setAttribute("threaduid",y.thread._id),y}),deleteThread:c=>K(void 0,null,function*(){let f=yield ae?.send(se.COLLAB_DELETE_THREAD,c);if(!f)throw new Error("Failed to delete thread");
1470return _f(c.threadUid),Q.get()?.collab?.isFeedbackMode===!1&&Q.set("collab.isFeedbackMode",!0),f})});var Lk=e=>{let t=Q.get(),[r,i]=ye(t?.collab?.inviteMetadata);Le(()=>{i(t?.collab?.inviteMetadata)},[t?.collab?.inviteMetadata]);let{buttonRef:o,popupRef:s,showPopup:l,setShowPopup:c,activeThread:f,setActiveThread:d,togglePopup:m}=P3({newThread:e.newThread??!1,thread:e.activeThread||{_id:"new"}}),{createComment:p,editComment:v,deleteComment:w,resolveThread:g,fetchComments:S,createNewThread:y,deleteThread:x}=M3(),T=(O=!1)=>{O&&o.current?.closest("div[field-path]")?.remove(),gf(),c(!1),t?.collab?.isFeedbackMode===!1&&Q.set("collab.isFeedbackMode",!0)},C=pf.Indicator;return b(Ke,{children:[b("button",{ref:o,"data-testid":"collab-indicator",className:(0,am.default)("collab-indicator",ue()["collab-indicator"]),onClick:m,children:b(C,{active:!l})}),l&&b("div",{ref:s,className:(0,am.default)("collab-popup",ue()["collab-popup"]),"data-testid":"collab-popup",children:b(I3,{onCreateComment:p,onEditComment:v,onDeleteComment:w,onClose:T,onResolve:g,inviteMetadata:r,loadMoreMessages:S,activeThread:f,setActiveThread:d,onDeleteThread:x,createNewThread:()=>y(o,r)})})]})},D3=Lk;var B3=43,F3=9,Ll=B` 1471 display: none; 1472`;function Rk(e,t,r,i,o,s,l,c){let f=document.createElement("div");return f.setAttribute("field-path",e),f.setAttribute("relative",`x: ${t}, y: ${r}`),f.style.position="absolute",f.style.top=`${i-B3}px`,f.style.left=`${o-F3}px`,f.style.zIndex=s?"1000":"999",f.style.cursor="pointer",f.className="collab-thread",l&&f.classList.add(Ll),c?._id&&f.setAttribute("threaduid",c._id),f}function Ik(e){let t=document.querySelector(".visual-builder__container");if(t){let r=t.querySelector(".visual-builder__collab-wrapper");r||(r=document.createElement("div"),r.className="visual-builder__collab-wrapper",t.appendChild(r)),r.appendChild(e)}else document.body.appendChild(e)}function Ya(e,t={}){let{isNewThread:r=!1,updateConfig:i=!1,hidden:o=!1}=t,s=Q.get?.(),l,c,f;if(r)({relativeX:l,relativeY:c,xpath:f}=e);else{let{position:S,elementXPath:y}=e;({x:l,y:c}=S),f=y}if(e?._id&&document.querySelector(`div[threaduid='${e._id}']`))return;let d=q3(f);if(!d)return e._id;let m=d.getBoundingClientRect(),p=m.top+window.scrollY+c*m.height,v=m.left+window.scrollX+l*m.width,w=J1({top:p,left:v});p=w.top,v=w.left;let g=Rk(f,l,c,p,v,i,o,e);i&&s?.collab?.enable&&s?.collab.isFeedbackMode&&Q.set("collab.isFeedbackMode",!1),At(b(D3,{activeThread:r?void 0:e,newThread:r}),g),Ik(g)}function um(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread");Q.get?.()?.collab?.pauseFeedback||e.forEach(r=>{if(!(r instanceof HTMLElement))return;let i=r.getAttribute("field-path"),o=r.getAttribute("relative");if(!i||!o){console.error("Missing field-path or relative attribute.");return}let s=o.match(/x: ([\d.]+), y: ([\d.]+)/);if(!s){console.error("Invalid relative attribute format.");return}let l=parseFloat(s[1]),c=parseFloat(s[2]),f=q3(i);if(!f){r.classList.add(Ll);return}let d=f.getBoundingClientRect(),m=d.left+d.width*l+window.scrollX,p=d.top+d.height*c+window.scrollY,v=J1({top:p,left:m});p=v.top,m=v.left,r.style.top=`${p-B3}px`,r.style.left=`${m-F3}px`,r.classList.remove(Ll)})}function cm(){let e=document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread .collab-popup");Q.get?.()?.collab?.pauseFeedback||e.forEach(r=>{if(r&&r instanceof HTMLElement){let i=r.closest(".visual-builder__collab-wrapper .collab-thread");if(!i){console.error("Parent element with class 'collab-thread' not found.");return}let o=i.querySelector(".visual-builder__collab-wrapper .collab-thread .collab-indicator");if(!o||!(o instanceof HTMLElement)){console.error("Button with class 'collab-indicator' not found.");return}vf(o,r)}})}function fm(){let e=document.querySelectorAll(".collab-thread-body--input--textarea--suggestionsList");e.length&&e.forEach(t=>{if(!(t instanceof HTMLElement))return;let r=document.querySelector(".collab-thread-body--input--textarea");if(!r)return;let i=t.getAttribute("data-position"),o=i?JSON.parse(i):null,s=window.getComputedStyle(t).bottom!=="auto",l=r.getBoundingClientRect();if(s){let f=parseInt(window.getComputedStyle(r).lineHeight)||20,d=parseInt(window.getComputedStyle(r).paddingTop)||8,m=o?.cursorLineY||d+f;t.style.position="fixed",t.style.bottom=`${window.innerHeight-l.top-m+f}px`,t.style.top="auto"}else{let f=parseInt(window.getComputedStyle(r).lineHeight)||20,d=parseInt(window.getComputedStyle(r).paddingTop)||8,m=o?.cursorLineY||d+f;t.style.position="fixed",t.style.top=`${l.top+m}px`,t.style.bottom="auto"}if(!i&&l){let f=parseInt(window.getComputedStyle(r).lineHeight)||20,d=parseInt(window.getComputedStyle(r).paddingTop)||8,m={showAbove:s,cursorLineY:d+f};t.setAttribute("data-position",JSON.stringify(m))}let c=t.getBoundingClientRect();if(!s&&c.bottom>window.innerHeight){let f=parseInt(window.getComputedStyle(r).lineHeight)||20,d=parseInt(window.getComputedStyle(r).paddingTop)||8,m=o?.cursorLineY||d+f;if(t.style.bottom=`${window.innerHeight-l.top-m+f}px`,t.style.top="auto",i){let p=JSON.parse(i);p.showAbove=!0,t.setAttribute("data-position",JSON.stringify(p))}}else if(s&&c.top<0){let f=parseInt(window.getComputedStyle(r).lineHeight)||20,d=parseInt(window.getComputedStyle(r).paddingTop)||8,m=o?.cursorLineY||d+f;if(t.style.top=`${l.top+m}px`,t.style.bottom="auto",i){let p=JSON.parse(i);p.showAbove=!1,t.setAttribute("data-position",JSON.stringify(p))}}})}function vf(e,t){let r=e.getBoundingClientRect(),i=window.innerHeight,o=window.innerWidth,s=t.offsetHeight||198,l=t.offsetWidth||334,c=r.top,f=i-r.bottom,d,m;c>=s?d=r.top-s-8:f>=s?d=r.bottom+8:d=f>
1472c?r.bottom+8:Math.max(r.top-s-8,0),m=r.left+r.width/2-l/2,d=Math.max(d,0),m=Math.max(m,0),m=Math.min(m,o-l),t.style.top=`${d}px`,t.style.left=`${m}px`,requestAnimationFrame(()=>{t.offsetHeight!==s&&vf(e,t)})}function H3(){document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread")?.forEach(t=>t?.remove())}function k3(){document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread")?.forEach(t=>t?.classList.add(Ll)),qi({threadUid:"",action:"close"})}function U3(){document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread")?.forEach(t=>t?.classList.remove(Ll))}function _f(e){document.querySelector(`div[threaduid='${e}']`)?.remove()}function qi({threadUid:e="",action:t}){document.dispatchEvent(new CustomEvent("toggleCollabPopup",{detail:{threadUid:e,action:t}}))}function $3(e){qi({threadUid:e,action:"open"})}function Rl(e){return Array.from(e.classList).some(t=>t.startsWith("collab"))}function Il(e){ae?.send(se.COLLAB_MISSING_THREADS,e)}function gf(){document.querySelectorAll(".visual-builder__collab-wrapper .collab-thread")?.forEach(t=>{t.hasAttribute("threaduid")||t.remove()})}var Tl={maxRetries:5,retryDelay:1e3},sm=!1,Ol=new Map;function N3(e){return new Promise(t=>setTimeout(t,e))}function V3(e){return Ol.has(e)||Ol.set(e,{threadId:e,attempts:0,isRendered:!1}),Ol.get(e)}function lm(e,t){let r=V3(e);r.isRendered=t,Ol.set(e,r)}function dm(e){Ol.delete(e)}function Pk(e){return K(this,null,function*(){let t=V3(e._id);for(;t.attempts<Tl.maxRetries;)try{if(Ya(e)===void 0){lm(e._id,!0);return}t.attempts++,lm(e._id,!1),t.attempts<Tl.maxRetries&&(yield N3(Tl.retryDelay))}catch(r){if(console.error(`Error rendering thread ${e._id}:`,r),t.attempts++,t.attempts>=Tl.maxRetries)break;yield N3(Tl.retryDelay)}return e._id})}function W3(e){return K(this,null,function*(){if(sm)return[];try{sm=!0;let t=pm(e);if(t.length===0)return[];let r=(yield Promise.all(t.map(i=>Pk(i)))).filter(Boolean);return r.forEach(dm),r}finally{sm=!1}})}function pm(e){return e.filter(t=>document.querySelector(`[threaduid="${t._id}"]`)?(lm(t._id,!0),!1):!0)}function q3(e){return document.evaluate(e,document,null,XPathResult.FIRST_ORDERED_NODE_TYPE,null).singleNodeValue}function z3(i){return K(this,arguments,function*({entryUid:e,contentTypeUid:t,locale:r}){try{let o=yield ae?.send("get-permissions",{type:"entry",entryUid:e,contentTypeUid:t,locale:r});if(o)return o}catch(o){console.debug("[Visual Builder] Error fetching permissions",o)}return{create:!0,read:!0,update:!0,delete:!0,publish:!0}})}function j3(e,t=(...r)=>JSON.stringify(r)){let r=new Map,i=new Map;function o(...s){return K(this,null,function*(){let l=t(...s);if(r.has(l))return r.get(l);if(i.has(l))return i.get(l);let c=e(...s).then(f=>(r.set(l,f),i.delete(l),f)).catch(f=>{throw i.delete(l),f});return i.set(l,c),c})}return o.clearCache=()=>{r.clear(),i.clear()},o}var Ir=j3(z3,({entryUid:e,contentTypeUid:t,locale:r})=>`${e}.${t}.${r}`);function G3(e){ae?.send(se.DELETE_INSTANCE,{data:e.fieldPathWithIndex+"."+e.multipleFieldMetadata.index,fieldMetadata:e}).finally(Z3)}function mm(e,t){ae?.send(se.MOVE_INSTANCE,{data:e.fieldPathWithIndex+"."+e.multipleFieldMetadata.index,direction:t,fieldMetadata:e}).finally(Z3)}function Z3(){document.querySelector(".visual-builder__overlay--top")?.click()}var K3={link:Cn,json_rte:Cn,html_rte:Cn,markdown_rte:Cn,custom_field:Cn,isodate:Cn,url:Cn};var ln=Te(ze(),1);function Y3(e){return K(this,null,function*(){let{fieldMetadata:t,fieldSchema:r}=e,i=(yield ae?.send(se.GET_DISCUSSION_ID,{fieldMetadata:t,fieldSchema:r}))??null;return Wa(i)?null:i})}var X3=Te(ze(),1);function Xa(){return b("svg",{viewBox:"0 0 20 20",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,X3.default)("visual-builder__cursor-icon--loader loader",F()["visual-builder__cursor-icon--loader"]),children:b("path",{d:"M15.5023 18.3501C13.5466 19.6388 11.2007 20.2002 8.87354 19.9364C6.54637 19.6725 4.38563 18.6002 2.76808 16.9065C1.15053 15.2127 0.178807 13.0049 0.0223406 10.6681C-0.134126 8.33122 0.534595 6.0136 1.9119 4.1193C3.2892 2.22501 5.2877 0.874235 7.55893 0.302518C9.83015 -0.2692 12.23 -0.0255895 14.34 0.990871C16.45 2.00733 18.1363 3.73215 19.1048 5.86457C20.0734 7.997 20.2627 10.4017 19.6399 12.6595L17.7119 12.1276C18.2102 10.3214 18.0587 8.3976 17.2839 6.69166C16.509 4.98572 15.16 3.60586 13.472 2.7927C11.784 1.97953 9.86412 1.78464 8.04714 2.24201C6.23016 2.69939 4.63136 3.78001 3.52952 5.29544C2.42768 6.81088 1.8927 8.66498 2.01787 10.5345C2.14305 12.4039 2.92043 14.1702 4.21446 15.5252C5.5085 16.8802 7.23709 17.738 9.09883 17.9491C10.9606 18.1601 12.8373 17.711 14.4018 16.6801L15.5023 18.3501Z"})})}var hm=Te(ze(),1);function J3(e){let{fieldMetadata:t,fieldSchema:r,invertTooltipPosition:i=!1}
1472=e,[o,s]=ye(null),[l,c]=ye(!1);Le(()=>{K(this,null,function*(){try{c(!0);let m=yield Y3({fieldMetadata:t,fieldSchema:r});s(m)}catch(m){console.error("Failed to fetch discussion ID:",m),s({uid:"new"})}finally{c(!1)}})},[t]),Le(()=>{let d=p=>{let{entryId:v,discussion:w,contentTypeId:g,fieldPath:S}=p.data;t.entry_uid===v&&t.content_type_uid===g&&t.fieldPathWithIndex===S&&s(w??{uid:"new"})},m=ae?.on(se.UPDATE_DISCUSSION_ID,d);return()=>{m?.unregister()}},[]);let f=()=>K(this,null,function*(){ae?.send(se.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t,discussion:o,fieldSchema:r})});if(l)return b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button-loading",className:(0,hm.default)("visual-builder__button visual-builder__button--secondary visual-builder__button--comment-loader",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__button--comment-loader"]),children:b(Xa,{})});if(o?.uid)return b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__comment-button",className:(0,hm.default)("visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":i,[F()["visual-builder__tooltip--bottom"]]:i}),"data-tooltip":"Add comment",onClick:d=>{d.preventDefault(),d.stopPropagation(),f()},children:o?.uid==="new"?b(eb,{}):b(Qy,{})})}function Pl(){return b("svg",{width:"12",height:"12",viewBox:"0 0 12 12",fill:"none",xmlns:"http://www.w3.org/2000/svg",children:b("path",{"fill-rule":"evenodd","clip-rule":"evenodd",d:"M4.41131 0.157165C4.34585 0.0589769 4.23565 0 4.11765 0C3.99964 0 3.88944 0.0589769 3.82398 0.157165L0.0592764 5.80422C-0.0197588 5.92278 -0.0197588 6.07722 0.0592764 6.19578L3.82398 11.8428C3.88944 11.941 3.99964 12 4.11765 12C4.23565 12 4.34585 11.941 4.41131 11.8428L6 9.4598L7.58869 11.8428C7.65415 11.941 7.76435 12 7.88235 12C8.00036 12 8.11056 11.941 8.17602 11.8428L11.9407 6.19578C12.0198 6.07722 12.0198 5.92278 11.9407 5.80422L8.17602 0.157165C8.11056 0.0589769 8.00036 0 7.88235 0C7.76435 0 7.65415 0.0589769 7.58869 0.157165L6 2.5402L4.41131 0.157165ZM5.57582 3.17647L4.11765 0.989215L0.777124 6L4.11765 11.0108L5.57582 8.82353L3.82398 6.19578C3.74495 6.07722 3.74495 5.92278 3.82398 5.80422
1472L5.57582 3.17647ZM6 8.18726L4.54183 6L6 3.81274L7.45817 6L6 8.18726ZM6.42418 8.82353L8.17602 6.19578C8.25505 6.07722 8.25505 5.92278 8.17602 5.80422L6.42418 3.17647L7.88235 0.989215L11.2229 6L7.88235 11.0108L6.42418 8.82353Z",fill:"currentColor"})})}var So=Te(ze(),1);var Mk=(e,t)=>{Le(()=>{let r=i=>{e.current&&!e.current.contains(i.target)&&t()};return document.addEventListener("mousedown",r),()=>{document.removeEventListener("mousedown",r)}},[e,t])},Q3=Mk;var Ml={isAddedInstances:!1,isBaseModified:!1,isDeletedInstances:!1,isOrderChanged:!1,fieldLevelCustomizations:!1};function yf(e){return K(this,null,function*(){try{return yield ae?.send("get-field-variant-status",e)}catch(t){console.error("Failed to get field variant status:",t)}})}var Dk=e=>{let{fieldDataName:t,fieldMetadata:r,variantStatus:i=Ml,isOpen:o,closeDropdown:s}=e,c=(()=>{let{isAddedInstances:d,isDeletedInstances:m,isBaseModified:p,isOrderChanged:v,fieldLevelCustomizations:w}=i,g=[];return p&&g.push({label:"Revert to base entry value",action:"revert_to_base_entry_value",id:`iframe-cs-variant-field-${t}-revert`,testId:`iframe-cs-variant-field-${t}-revert`,fieldDataName:t}),d&&g.push({label:"Revert added instances",action:"revert_added_instances",id:`iframe-cs-variant-field-${t}-revert-added-instances`,testId:`iframe-cs-variant-field-${t}-revert-added-instances`,fieldDataName:t}),m&&g.push({label:"Restore deleted instances",action:"restore_deleted_instances",id:`iframe-cs-variant-field-${t}-restore-deleted-instances`,testId:`iframe-cs-variant-field-${t}-restore-deleted-instances`,fieldDataName:t}),w&&g.push({label:"Reset field-level customizations",action:"reset_field_level_customizations",id:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,testId:`iframe-cs-variant-field-${t}-reset-field-level-customizations`,fieldDataName:t}),v&&g.push({label:"Restore sorted instances",action:"restore_sorted_instances",id:`iframe-cs-variant-field-${t}-restore-sorted-instances`,testId:`iframe-cs-variant-field-${t}-restore-sorted-instances`,fieldDataName:t}),g})();function f(d){let{fieldDataName:m,action:p}=d;ae?.send("send-variant-revert-action-trigger",{fieldDataName:m,action:p,euid:r.entry_uid,ct_uid:r.content_type_uid,locale:r.locale})}return b("div",{className:(0,So.default)("variant-field-revert-component",F()["variant-field-revert-component"]),onClick:d=>d.stopPropagation(),children:o&&b("div",{"data-testid":"variant-field-revert-component__dropdown-content",className:(0,So.default)("variant-field-revert-component__dropdown-content",F()["variant-field-revert-component__dropdown-content"]),children:c.map(d=>b("div",{className:(0,So.default)("variant-field-revert-component__dropdown-content__list-item",F()["variant-field-revert-component__dropdown-content__list-item"]),onClick:m=>{m.preventDefault(),f(d),s()},"data-testid":d.testId,children:b("span",{children:d.label})},d.id))})})},e6=e=>{let{closeDropdown:t,invertTooltipPosition:r,toggleVariantDropdown:i,variantStatus:o=Ml,disabled:s}=e,l=nt(null);Q3(l,t);let c=Object.values(o).some(d=>d),f=(0,So.default)("visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":r,[F()["visual-builder__tooltip--bottom"]]:r});return c?b("div",{ref:l,children:[b("button",{className:(0,So.default)(f,F()["visual-builder__variant-button"]),"data-tooltip":"Variant Revert","data-testid":"visual-builder
1472-canvas-variant-revert",onClick:i,disabled:s,children:[b(Pl,{}),b(Co,{open:e.isOpen})]}),b(Dk,re({},e))]}):b("button",{className:(0,So.default)(f),style:{padding:"6px"},"data-tooltip":"Variant","data-testid":"visual-builder-canvas-variant-icon",disabled:s,children:b(Pl,{})})};var bf=r=>{var i=r,{id:e=""}=i,t=hr(i,["id"]);return b("svg",ge(re({width:"35",height:"35",viewBox:"0 0 72 72",fill:"none",xmlns:"http://www.w3.org/2000/svg"},t),{children:[b("circle",{cx:"36",cy:"36",r:"36",fill:Bk(e)}),b("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M32.0577 27.3091H25.7747C25.1627 27.3091 24.6667 27.8052 24.6667 28.4171V31.6933H25.4351C28.2423 31.6933 30.9099 33.6523 30.9099 36.8808C30.9099 40.0525 28.3048 42.1467 25.4351 42.1467H24.6667V47.2253C24.6667 47.8372 25.1627 48.3333 25.7747 48.3333H30.8533V47.5649C30.8533 44.6952 32.9475 42.0901 36.1192 42.0901C39.3477 42.0901 41.3067 44.7577 41.3067 47.5649V48.3333H44.5829C45.1948 48.3333 45.6909 47.8372 45.6909 47.2253V40.8782L47.9921 40.5598C49.9596 40.2875 51.3333 38.7771 51.3333 36.8808C51.3333 35.0149 49.9935 33.5515 47.9984 33.2804L45.6909 32.9668V28.4171C45.6909 27.8052 45.1948 27.3091 44.5829 27.3091H40.0974L39.7801 25.0065C39.5081 23.0327 38.0085 21.6667 36.1192 21.6667C34.1999 21.6667 32.6528 23.0659 32.3798 25.0128L32.0577 27.3091ZM38.64 51V47.5649C38.64 45.9382 37.5988 44.7567 36.1192 44.7567C34.6198 44.7567 33.52 45.9602 33.52 47.5649V51H25.7747C23.69 51 22 49.31 22 47.2253V39.48H25.4351C27.0398 39.48 28.2433 38.3802 28.2433 36.8808C28.2433 35.4012 27.0618 34.36 25.4351 34.36H22V28.4171C22 26.3324 23.69 24.6424 25.7747 24.6424H29.739C30.1842 21.4681 32.7819 19 36.1192 19C39.4662 19 41.9856 21.4774 42.4218 24.6424H44.5829C46.6676 24.6424 48.3576 26.3324 48.3576 28.4171V30.638C51.5153 31.0671 54 33.5263 54 36.8808C54 40.2256 51.5248 42.763 48.3576 43.2013V47.2253C48.3576 49.31 46.6676 51 44.5829 51H38.64Z",fill:"white"})]}))},Nk=e=>[...e].reduce((t,r)=>t+r.charCodeAt(0),0),Bk=(e="")=>{let t=["#99D8CE","#6BC3FE","#5060C1","#835EC3","#B16DBD","#FF85BC","#FF7E83","#A2D959","#59BA5E"];return t[Nk(e)%t.length]};var vm=Te(ze(),1);var t6=e=>e.toLowerCase().replace(/[^a-z0-9 ]/gi,"").trim(),r6=({apps:e,position:t,toolbarRef:r,domEditStack:i,setDisplayAllApps:o})=>{let s=e.filter((m,p)=>p!==0),[l,c]=ye(""),f=Kt(()=>{if(!l.trim())return s;let m=t6(l);return s.filter(p=>t6(p.title).includes(m))},[l,s]),d=m=>{ae?.send(se.FIELD_LOCATION_SELECTED_APP,{app:m,position:r.current?.getBoundingClientRect(),DomEditStack:i}),o(!1)};return b("div",{className:(0,vm.default)(F()["visual-builder__field-location-app-list"],{[F()["visual-builder__field-location-app-list--left"]]:t==="left",[F()["visual-builder__field-location-app-list--right"]]:t==="right"}),children:[b("div",{className:F()["visual-builder__field-location-app-list__search-container"],children:[b("svg",{width:"14",height:"14",viewBox:"0 0 14 14",fill:"none",xmlns:"http://www.w3.org/2000/svg",className:(0,vm.default)("Search__search-icon Icon--mini",F()["visual-builder__field-location-app-list__search-icon"]),children:b("path",{d:"M12.438 12.438L9.624 9.624M6.25 10.75a4.5 4.5 0 100-9 4.5 4.5 0 000 9z",stroke:"#A9B6CB",strokeWidth:"2",strokeMiterlimit:"10",strokeLinecap:"round",strokeLinejoin:"round"})}),b("input",{type:"text",value:l,onInput:m=>c(m.target.value),placeholder:"Search for Apps",className:F()["visual-builder__field-location-app-list__search-input"]})]}),b("div",{className:F()["visual-builder__field-location-app-list__content"],children:[f.length===0&&b("div",{className:F()["visual-builder__field-location-app-list__no-results"],children:b("span",{className:F()["visual-builder__field-location-app-list__no-results-text"],children:"No matching results found!"})}),f.map(m=>b("div",{className:F()["visual-builder__field-location-app-list__item"],onClick:()=>d(m),children:[b("div",{className:F()["visual-builder__field-location-app-list__item-icon-container"],children:m.icon?b("img",{src:m.icon,alt:m.title,className:F()["visual-builder__field-location-app-list__item-icon"]}):b(bf,{id:m.app_installation_uid})}),b("span",{className:F()["visual-builder__field-location-app-list__item-title"],children:m.title})]},m.uid))]})]})};var n6=Te(ze(),1);
1472var i6=({fieldLocationData:e,multipleFieldToolbarButtonClasses:t,handleMoreIconClick:r,moreButtonRef:i,toolbarRef:o,domEditStack:s})=>{if(!e?.apps||e?.apps?.length===0)return null;let l=c=>{o.current&&ae?.send(se.FIELD_LOCATION_SELECTED_APP,{app:c,position:o.current?.getBoundingClientRect(),DomEditStack:s})};return b("div",{ref:o,className:(0,n6.default)(F()["visual-builder__field-location-icons-container"]),children:[b("hr",{className:F()["visual-builder__field-location-icons-container__divider"]}),b("button",{title:e.apps[0].title,className:t,"data-tooltip":e.apps[0].title,onClick:c=>{c.preventDefault(),c.stopPropagation(),l(e.apps[0])},"data-testid":"field-location-icon",children:e.apps[0].icon?b("img",{src:e.apps[0].icon,alt:e.apps[0].title,className:F()["visual-builder__field-location-icons-container__app-icon"]}):b(bf,{id:e.apps[0].app_installation_uid})},`${e.apps[0].uid}`),e.apps.length>1&&b("button",{ref:i,className:t,"data-tooltip":"More",onClick:r,"data-testid":"field-location-more-button",children:b(rb,{})})]})};var Fk=96;function Hk(e){ae?.send(se.OPEN_ASSET_MODAL,{fieldMetadata:e})}function kk(e){let r=e.multipleFieldMetadata.index>-1&&e.fieldPathWithIndex===e.multipleFieldMetadata.parentDetails?.parentPath?e.instance.fieldPathWithIndex:e.fieldPathWithIndex;ae?.send(se.OPEN_REFERENCE_MODAL,{entry_uid:e.entry_uid,content_type_uid:e.content_type_uid,locale:e.locale,fieldPath:e.fieldPath,fieldPathWithIndex:e.fieldPathWithIndex,entryPath:r})}function Uk(e){ae?.send(se.OPEN_FIELD_EDIT_MODAL,{fieldMetadata:e})}function $k(e){let{editableElement:t}=e;return ae?.send(se.FOCUS_FIELD,{DOMEditStack:za(t),toggleVisibility:!0})}function Vk(e){let{eventDetails:t,isVariant:r,entryPermissions:i}=e,{fieldMetadata:o,editableElement:s}=t,[l,c]=ye(!1),[f,d]=ye(null),[m,p]=ye(!1),v=nt(null),w=nt(null),[g,S]=ye("right"),y=o?.multipleFieldMetadata?.parentDetails?.parentCslpValue||"",x=!!o?.variant||r,T=qa(s,y),[C,O]=ye(null),[I,M]=ye(Ml),[$,k]=ye(!1),H=!1,oe=!1,ie=!1,ee=null,q=null,z=!1,W=230,G=!1;if(C){let{isDisabled:Me}=ir(C,{editableElement:s,fieldMetadata:o},i);G=Me,q=Sn(C),ee=K3[q],ie=C.multiple||!1,q===Fe.REFERENCE&&(ie=C.field_metadata.ref_multiple),z=ie&&(o.fieldPathWithIndex===o.instance.fieldPathWithIndex||o.multipleFieldMetadata?.index===-1),H=ub.includes(q)&&!z,oe=cb.includes(q)&&!z}let J=za(t.editableElement),Z=s.getBoundingClientRect().top<=Fk,ce=()=>{if(w.current){let Me=w.current.getBoundingClientRect(),je=window.innerWidth-Me.right,qt=Me.left,zt="";je<W?zt="left":je>W?zt="right":zt=je>qt?"right":"left",S(zt)}p(!m)},pe=ee?b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__edit-button",className:(0,ln.default)("visual-builder__button visual-builder__button--secondary visual-builder__button--edit",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__button--edit"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":Z,[F()["visual-builder__tooltip--bottom"]]:Z}),"data-tooltip":"Edit",onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),Uk(o)},disabled:G,children:b(ee,{})}):null,le=q?b("button",{className:(0,ln.default)("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":Z,[F()["visual-builder__tooltip--bottom"]]:Z}
1472),"data-tooltip":"Replace","data-testid":`visual-builder-replace-${q}`,onClick:Me=>{if(Me.stopPropagation(),Me.preventDefault(),q===Fe.REFERENCE){kk(o);return}else if(q===Fe.FILE){Hk(o);return}},disabled:G,children:b(Xy,{})}):null,Oe=b("button",{className:(0,ln.default)("visual-builder__replace-button visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":Z,[F()["visual-builder__tooltip--bottom"]]:Z},{[F()["visual-builder__button--comment-loader"]]:l,"visual-builder__button--comment-loader":l}),"data-tooltip":"Form","data-testid":"visual-builder-form",onClick:Me=>K(this,null,function*(){Me.preventDefault(),Me.stopPropagation(),c(!0);try{yield $k(t)}finally{c(!1)}}),disabled:l,children:l?b(Xa,{}):b(jy,{})}),xe=()=>{k(!$)},tt=()=>{k(!1)},ke=b("button",{className:(0,ln.default)("visual-builder__variant-button visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],F()["visual-builder__variant-button"],{"visual-builder__tooltip--bottom":Z,[F()["visual-builder__tooltip--bottom"]]:Z}
1472),"data-tooltip":"Variant Revert","data-testid":"visual-builder-canvas-variant-revert",onClick:xe,children:[b(Pl,{}),b(Co,{open:$})]}),bt=s?.parentNode?.childElementCount??1,mt=o?.multipleFieldMetadata?.index,Ge=mt===0,ht=mt===bt-1;Le(()=>{function Me(){return K(this,null,function*(){let je=yield _t.getFieldSchema(o.content_type_uid,o.fieldPath);je&&O(je);let qt=yield yf(o);M(qt??Ml)})}Me()},[o]),Le(()=>{let Me=ae?.on(se.DELETE_INSTANCE,je=>{je.data?.path===o.instance.fieldPathWithIndex&&e.hideOverlay()});return()=>{Me?.unregister()}},[]),Le(()=>{K(this,null,function*(){try{let je=yield ae?.send(se.FIELD_LOCATION_DATA,{domEditStack:za(t.editableElement)});d(je)}catch(je){console.error("Error fetching field location data:",je)}})},[t.editableElement]);let xt=(0,ln.default)("visual-builder__button visual-builder__button--secondary",F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__tooltip"],{"visual-builder__tooltip--bottom":Z,[F()["visual-builder__tooltip--bottom"]]:Z});return b("div",{className:(0,ln.default)("visual-builder__field-toolbar-container",F()["visual-builder__field-toolbar-container"]),children:[b("div",{className:(0,ln.default)("visual-builder__focused-toolbar__multiple-field-toolbar",F()["visual-builder__focused-toolbar__multiple-field-toolbar"]),"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar",children:b("div",{className:(0,ln.default)("visual-builder__focused-toolbar__button-group",F()["visual-builder__focused-toolbar__button-group"]),children:b(Ke,{children:[x?b(e6,{fieldDataName:o.fieldPathWithIndex,fieldMetadata:o,variantStatus:I,isOpen:$,closeDropdown:tt,invertTooltipPosition:Z,toggleVariantDropdown:xe,disabled:G}):null,ie&&!z?b(Ke,{children:[b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-left-button",className:xt,"data-tooltip":T==="vertical"?"Move up":"Move left",onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),mm(o,"previous")},disabled:G||Ge,children:b(Gy,{className:(0,ln.default)({"visual-builder__rotate--90":T==="vertical",[F()["visual-builder__rotate--90"]]:T==="vertical"}),disabled:G||Ge})}),b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__move-right-button",className:xt,"data-tooltip":T==="vertical"?"Move down":"Move right",onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),mm(o,"next")},disabled:G||ht,children:b(Zy,{className:(0,ln.default)({"visual-builder__rotate--90":T==="vertical",[F()["visual-builder__rotate--90"]]:T==="vertical"}),disabled:G||ht})}),H?pe:null,Oe,oe?le:null,b("button",{"data-testid":"visual-builder__focused-toolbar__multiple-field-toolbar__delete-button",className:xt,"data-tooltip":"Delete",onClick:Me=>{Me.preventDefault(),Me.stopPropagation(),G3(o)},disabled:G,children:b(zy,{})})]}):b(Ke,{children:[H?pe:null,oe?le:null,Oe,C?b(J3,{fieldMetadata:o,fieldSchema:C,invertTooltipPosition:Z}):null]}),b(i6,{fieldLocationData:f,multipleFieldToolbarButtonClasses:xt,handleMoreIconClick:ce,moreButtonRef:v,toolbarRef:w,domEditStack:J})]})})}),m&&b(r6,{toolbarRef:w,apps:f?.apps||[],position:g,domEditStack:J,setDisplayAllApps:p,displayAllApps:m})]})}var o6=Vk;var fn=Te(ze(),1);var xf=Te(ze(),1);function a6({}){let e=nt(null),[t,r]=ye(!1);return Le(()=>{let i=e.current,o=()=>{r(!0)},s=()=>{r(!1)};return i&&(i.addEventListener("mouseenter",o),i.addEventListener("mouseleave",s)),()=>{i&&(i.removeEventListener("mouseenter",o),i.removeEventListener("mouseleave",s))}},[]),b("div",{className:(0,xf.default)(F()["visual-builder__focused-toolbar__error"]),ref:e,children:[b(tb,{}),b("span",{className:(0,xf.default)(F()["visual-builder__focused-toolbar__error-text"]),children:"Error"}),t?b("div",{className:(0,xf.default)(F()["visual-builder__focused-toolbar__error-toolip"]),children:[b("p",{children:"Invalid CSLP tag"}),b("span",{children:"The CSLP is invalid or incorrectly generated."})]}):null]})}var Ao=Math.min,zi=Math.max,Nl=Math.round;var un=e=>({x:e,y:e}),Wk={left:"right",right:"left",bottom:"top",top:"bottom"},qk={start:"end",end:"start"};function Cf(e,t,r){return zi(e,Ao(t,r))}function Ja(e,t){return typeof e=="function"?e(t):e}function ji(e){return e.split("-")[0]}function Qa(e){return e.split("-")[1]}function gm(e){return e==="x"?"y":"x"}function Ef(e){return e==="y"?"height":"width"}var zk=new Set(["top","bottom"]);function ri(e){return zk.has(ji(e))?"y":"x"}function Sf(e){return gm(ri(e))}function u6(e,t,r){r===void 0&&(r=!1);let i=Qa(e),o=Sf(e),s=Ef(o),l=o==="x"?i===(r?"end":"start")?"right":"left":i==="start"?"bottom":"top";return t.reference[s]>t.floating[s]&&(l=Dl(l)),[l,Dl(l)]}function c6(e){let t=Dl(e);return[wf(e),t,wf(t)]}function wf(e){return e.replace(/start|end/g,t=>qk[t])}var s6=["left","right"],l6=["right","left"],jk=["top","bottom"],Gk=["bottom","top"];function Zk(e,t,r){switch(e){case"top":case"bottom":return r?t?l6:s6:t?s6:l6;case"left":case"right":return t?jk:Gk;default:return[]}}function f6(e,t,r,i){let o=Qa(e),s=Zk(ji(e),r==="start",i);return o&&(s=s.map(l=>l+"-"+o),t&&(s=s.concat(s.map(wf)))),s}function Dl(e){return e.replace(/left|right|bottom|top/g,t=>Wk[t])}function Kk(e){return re({top:0,right:0,bottom:0,left:0},e)}function _m(e){return typeof e!="number"?Kk(e):{top:e,right:e,bottom:e,left:e}}function To(e){let{x:t,y:r,width:i,height:o}=e;return{width:i,height:o,top:r,left:t,right:t+i,bottom:r+o,x:t,y:r}}function d6(e,t,r){let{reference:i,floating:o}=e,s=ri(t),l=Sf(t),c=Ef(l),f=ji(t),d=s==="y",m=i.x+i.width/2-o.width/2,p=i.y+i.height/2-o.height/2,v=i[c]/2-o[c]/2,w;switch(f){case"top":w={x:m,y:i.y-o.height};break;case"bottom":w={x:m,y:i.y+i.height};break;case"right":w={x:i.x+i.width,y:p};break;case"left":w={x:i.x-o.width,y:p};break;default:w={x:i.x,y:i.y}}switch(Qa(t)){case"start":w[l]-=v*(r&&d?-1:1);break;case"end":w[l]+=v*(r&&d?-1:1);break}return w}var p6=(e,t,r)=>K(void 0,null,function*(){let{placement:i="bottom",strategy:o="absolute",middleware:s=[],platform:l}
1472=r,c=s.filter(Boolean),f=yield l.isRTL==null?void 0:l.isRTL(t),d=yield l.getElementRects({reference:e,floating:t,strategy:o}),{x:m,y:p}=d6(d,i,f),v=i,w={},g=0;for(let S=0;S<c.length;S++){let{name:y,fn:x}=c[S],{x:T,y:C,data:O,reset:I}=yield x({x:m,y:p,initialPlacement:i,placement:v,strategy:o,middlewareData:w,rects:d,platform:l,elements:{reference:e,floating:t}});m=T??m,p=C??p,w=ge(re({},w),{[y]:re(re({},w[y]),O)}),I&&g<=50&&(g++,typeof I=="object"&&(I.placement&&(v=I.placement),I.rects&&(d=I.rects===!0?yield l.getElementRects({reference:e,floating:t,strategy:o}):I.rects),{x:m,y:p}=d6(d,v,f)),S=-1)}return{x:m,y:p,placement:v,strategy:o,middlewareData:w}});function ym(e,t){return K(this,null,function*(){var r;t===void 0&&(t={});let{x:i,y:o,platform:s,rects:l,elements:c,strategy:f}=e,{boundary:d="clippingAncestors",rootBoundary:m="viewport",elementContext:p="floating",altBoundary:v=!1,padding:w=0}=Ja(t,e),g=_m(w),y=c[v?p==="floating"?"reference":"floating":p],x=To(yield s.getClippingRect({element:(r=yield s.isElement==null?void 0:s.isElement(y))==null||r?y:y.contextElement||(yield s.getDocumentElement==null?void 0:s.getDocumentElement(c.floating)),boundary:d,rootBoundary:m,strategy:f})),T=p==="floating"?{x:i,y:o,width:l.floating.width,height:l.floating.height}:l.reference,C=yield s.getOffsetParent==null?void 0:s.getOffsetParent(c.floating),O=(yield s.isElement==null?void 0:s.isElement(C))?(yield s.getScale==null?void 0:s.getScale(C))||{x:1,y:1}:{x:1,y:1},I=To(s.convertOffsetParentRelativeRectToViewportRelativeRect?yield s.convertOffsetParentRelativeRectToViewportRelativeRect({elements:c,rect:T,offsetParent:C,strategy:f}):T);return{top:(x.top-I.top+g.top)/O.y,bottom:(I.bottom-x.bottom+g.bottom)/O.y,left:(x.left-I.left+g.left)/O.x,right:(I.right-x.right+g.right)/O.x}})}var m6=e=>({name:"arrow",options:e,fn(r){return K(this,null,function*(){let{x:i,y:o,placement:s,rects:l,platform:c,elements:f,middlewareData:d}=r,{element:m,padding:p=0}=Ja(e,r)||{};if(m==null)return{};let v=_m(p),w={x:i,y:o},g=Sf(s),S=Ef(g),y=yield c.getDimensions(m),x=g==="y",T=x?"top":"left",C=x?"bottom":"right",O=x?"clientHeight":"clientWidth",I=l.reference[S]+l.reference[g]-w[g]-l.floating[S],M=w[g]-l.reference[g],$=yield c.getOffsetParent==null?void 0:c.getOffsetParent(m),k=$?$[O]:0;(!k||!(yield c.isElement==null?void 0:c.isElement($)))&&(k=f.floating[O]||l.floating[S]);let H=I/2-M/2,oe=k/2-y[S]/2-1,ie=Ao(v[T],oe),ee=Ao(v[C],oe),q=ie,z=k-y[S]-ee,W=k/2-y[S]/2+H,G=Cf(q,W,z),J=!d.arrow&&Qa(s)!=null&&W!==G&&l.reference[S]/2-(W<q?ie:ee)-y[S]/2<0,Z=J?W<q?W-q:W-z:0;return{[g]:w[g]+Z,data:re({[g]:G,centerOffset:W-G-Z},J&&{alignmentOffset:Z}),reset:J}})}});var h6=function(e){return e===void 0&&(e={}),{name:"flip",options:e,fn(r){return K(this,null,function*(){var i,o;let{placement:s,middlewareData:l,rects:c,initialPlacement:f,platform:d,elements:m}=r,W=Ja(e,r),{mainAxis:p=!0,crossAxis:v=!0,fallbackPlacements:w,fallbackStrategy:g="bestFit",fallbackAxisSideDirection:S="none",flipAlignment:y=!0}=W,x=hr(W,["mainAxis","crossAxis","fallbackPlacements","fallbackStrategy","fallbackAxisSideDirection","flipAlignment"]);if((i=l.arrow)!=null&&i.alignmentOffset)return{};let T=ji(s),C=ri(f),O=ji(f)===f,I=yield d.isRTL==null?void 0:d.isRTL(m.floating),M=w||(O||!y?[Dl(f)]:c6(f)),$=S!=="none";!w&&$&&M.push(...f6(f,y,S,I));let k=[f,...M],H=yield ym(r,x),oe=[],ie=((o=l.flip)==null?void 0:o.overflows)||[];if(p&&oe.push(H[T]),v){let G=u6(s,c,I);oe.push(H[G[0]],H[G[1]])}if(ie=[...ie,{placement:s,overflows:oe}],!oe.every(G=>G<=0)){var ee,q;let G=(((ee=l.flip)==null?void 0:ee.index)||0)+1,J=k[G];if(J&&(!(v==="alignment"?C!==ri(J):!1)||ie.every(pe=>ri(pe.placement)===C?pe.overflows[0]>0:!0)))return{data:{index:G,overflows:ie},reset:{placement:J}};let Z=(q=ie.filter(ce=>ce.overflows[0]<=0).sort((ce,pe)=>ce.overflows[1]-pe.overflows[1])[0])==null?void 0:q.placement;if(!Z)switch(g){case"bestFit":{var z;let ce=(z=ie.filter(pe=>{if($){let le=ri(pe.placement);return le===C||le==="y"}return!0}).map(pe=>[pe.placement,pe.overflows.filter(le=>le>0).reduce((le,Oe)=>le+Oe,0)]).sort((pe,le)=>pe[1]-le[1])[0])==null?void 0:z[0];ce&&(Z=ce);break}case"initialPlacement":Z=f;break}if(s!==Z)return{reset:{placement:Z}}}return{}})}}};var Yk=new Set(["left","top"]);function Xk(e,t){return K(this,null,function*(){let{placement:r,platform:i,elements:o}=e,s=yield i.isRTL==null?void 0:i.isRTL(o.floating),l=ji(r),c=Qa(r),f=ri(r)==="y",d=Yk.has(l)?-1:1,m=s&&f?-1:1,p=Ja(t,e),{mainAxis:v,crossAxis:w,alignmentAxis:g}=typeof p=="number"?{mainAxis:p,crossAxis:0,alignmentAxis:null}
1472:{mainAxis:p.mainAxis||0,crossAxis:p.crossAxis||0,alignmentAxis:p.alignmentAxis};return c&&typeof g=="number"&&(w=c==="end"?g*-1:g),f?{x:w*m,y:v*d}:{x:v*d,y:w*m}})}var v6=function(e){return e===void 0&&(e=0),{name:"offset",options:e,fn(r){return K(this,null,function*(){var i,o;let{x:s,y:l,placement:c,middlewareData:f}=r,d=yield Xk(r,e);return c===((i=f.offset)==null?void 0:i.placement)&&(o=f.arrow)!=null&&o.alignmentOffset?{}:{x:s+d.x,y:l+d.y,data:ge(re({},d),{placement:c})}})}}},g6=function(e){return e===void 0&&(e={}),{name:"shift",options:e,fn(r){return K(this,null,function*(){let{x:i,y:o,placement:s}=r,x=Ja(e,r),{mainAxis:l=!0,crossAxis:c=!1,limiter:f={fn:T=>{let{x:C,y:O}=T;return{x:C,y:O}}}}=x,d=hr(x,["mainAxis","crossAxis","limiter"]),m={x:i,y:o},p=yield ym(r,d),v=ri(ji(s)),w=gm(v),g=m[w],S=m[v];if(l){let T=w==="y"?"top":"left",C=w==="y"?"bottom":"right",O=g+p[T],I=g-p[C];g=Cf(O,g,I)}if(c){let T=v==="y"?"top":"left",C=v==="y"?"bottom":"right",O=S+p[T],I=S-p[C];S=Cf(O,S,I)}let y=f.fn(ge(re({},r),{[w]:g,[v]:S}));return ge(re({},y),{data:{x:y.x-i,y:y.y-o,enabled:{[w]:l,[v]:c}}})})}}};function Tf(){return typeof window<"u"}function Oo(e){return y6(e)?(e.nodeName||"").toLowerCase():"#document"}function _r(e){var t;return(e==null||(t=e.ownerDocument)==null?void 0:t.defaultView)||window}function Tn(e){var t;return(t=(y6(e)?e.ownerDocument:e.document)||window.document)==null?void 0:t.documentElement}function y6(e){return Tf()?e instanceof Node||e instanceof _r(e).Node:!1}function Gr(e){return Tf()?e instanceof Element||e instanceof _r(e).Element:!1}function cn(e){return Tf()?e instanceof HTMLElement||e instanceof _r(e).HTMLElement:!1}function _6(e){return!Tf()||typeof ShadowRoot>"u"?!1:e instanceof ShadowRoot||e instanceof _r(e).ShadowRoot}var Jk=new Set(["inline","contents"]);function es(e){let{overflow:t,overflowX:r,overflowY:i,display:o}=Zr(e);return/auto|scroll|overlay|hidden|clip/.test(t+i+r)&&!Jk.has(o)}var Qk=new Set(["table","td","th"]);function b6(e){return Qk.has(Oo(e))}var eU=[":popover-open",":modal"];function Bl(e){return eU.some(t=>{try{return e.matches(t)}catch{return!1}})}var tU=["transform","translate","scale","rotate","perspective"],rU=["transform","translate","scale","rotate","perspective","filter"],nU=["paint","layout","strict","content"];function Of(e){let t=Lf(),r=Gr(e)?Zr(e):e;return tU.some(i=>r[i]?r[i]!=="none":!1)||(r.containerType?r.containerType!=="normal":!1)||!t&&(r.backdropFilter?r.backdropFilter!=="none":!1)||!t&&(r.filter?r.filter!=="none":!1)||rU.some(i=>(r.willChange||"").includes(i))||nU.some(i=>(r.contain||"").includes(i))}function x6(e){let t=ni(e);for(;cn(t)&&!Lo(t);){if(Of(t))return t;if(Bl(t))return null;t=ni(t)}return null}function Lf(){return typeof CSS>"u"||!CSS.supports?!1:CSS.supports("-webkit-backdrop-filter","none")}var iU=new Set(["html","body","#document"]);function Lo(e){return iU.has(Oo(e))}function Zr(e){return _r(e).getComputedStyle(e)}function Fl(e){return Gr(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function ni(e){if(Oo(e)==="html")return e;let t=e.assignedSlot||e.parentNode||_6(e)&&e.host||Tn(e);return _6(t)?t.host:t}function w6(e){let t=ni(e);return Lo(t)?e.ownerDocument?e.ownerDocument.body:e.body:cn(t)&&es(t)?t:w6(t)}function Af(e,t,r){var i;t===void 0&&(t=[]),r===void 0&&(r=!0);let o=w6(e),s=o===((i=e.ownerDocument)==null?void 0:i.body),l=_r(o);if(s){let c=Rf(l);return t.concat(l,l.visualViewport||[],es(o)?o:[],c&&r?Af(c):[])}return t.concat(o,Af(o,[],r))}function Rf(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function A6(e){let t=Zr(e),r=parseFloat(t.width)||0,i=parseFloat(t.height)||0,o=cn(e),s=o?e.offsetWidth:r,l=o?e.offsetHeight:i,c=Nl(r)!==s||Nl(i)!==l;return c&&(r=s,i=l),{width:r,height:i,$:c}}function T6(e){return Gr(e)?e:e.contextElement}function ts(e){let t=T6(e);if(!cn(t))return un(1);let r=t.getBoundingClientRect(),{width:i,height:o,$:s}=A6(t),l=(s?Nl(r.width):r.width)/i,c=(s?Nl(r.height):r.height)/o;return(!l||!Number.isFinite(l))&&(l=1),(!c||!Number.isFinite(c))&&(c=1),{x:l,y:c}}var oU=un(0);function O6(e){let t=_r(e);
1472return!Lf()||!t.visualViewport?oU:{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}}function aU(e,t,r){return t===void 0&&(t=!1),!r||t&&r!==_r(e)?!1:t}function Hl(e,t,r,i){t===void 0&&(t=!1),r===void 0&&(r=!1);let o=e.getBoundingClientRect(),s=T6(e),l=un(1);t&&(i?Gr(i)&&(l=ts(i)):l=ts(e));let c=aU(s,r,i)?O6(s):un(0),f=(o.left+c.x)/l.x,d=(o.top+c.y)/l.y,m=o.width/l.x,p=o.height/l.y;if(s){let v=_r(s),w=i&&Gr(i)?_r(i):i,g=v,S=Rf(g);for(;S&&i&&w!==g;){let y=ts(S),x=S.getBoundingClientRect(),T=Zr(S),C=x.left+(S.clientLeft+parseFloat(T.paddingLeft))*y.x,O=x.top+(S.clientTop+parseFloat(T.paddingTop))*y.y;f*=y.x,d*=y.y,m*=y.x,p*=y.y,f+=C,d+=O,g=_r(S),S=Rf(g)}}return To({width:m,height:p,x:f,y:d})}function If(e,t){let r=Fl(e).scrollLeft;return t?t.left+r:Hl(Tn(e)).left+r}function L6(e,t){let r=e.getBoundingClientRect(),i=r.left+t.scrollLeft-If(e,r),o=r.top+t.scrollTop;return{x:i,y:o}}function sU(e){let{elements:t,rect:r,offsetParent:i,strategy:o}=e,s=o==="fixed",l=Tn(i),c=t?Bl(t.floating):!1;if(i===l||c&&s)return r;let f={scrollLeft:0,scrollTop:0},d=un(1),m=un(0),p=cn(i);if((p||!p&&!s)&&((Oo(i)!=="body"||es(l))&&(f=Fl(i)),cn(i))){let w=Hl(i);d=ts(i),m.x=w.x+i.clientLeft,m.y=w.y+i.clientTop}let v=l&&!p&&!s?L6(l,f):un(0);return{width:r.width*d.x,height:r.height*d.y,x:r.x*d.x-f.scrollLeft*d.x+m.x+v.x,y:r.y*d.y-f.scrollTop*d.y+m.y+v.y}}function lU(e){return Array.from(e.getClientRects())}function uU(e){let t=Tn(e),r=Fl(e),i=e.ownerDocument.body,o=zi(t.scrollWidth,t.clientWidth,i.scrollWidth,i.clientWidth),s=zi(t.scrollHeight,t.clientHeight,i.scrollHeight,i.clientHeight),l=-r.scrollLeft+If(e),c=-r.scrollTop;return Zr(i).direction==="rtl"&&(l+=zi(t.clientWidth,i.clientWidth)-o),{width:o,height:s,x:l,y:c}}var C6=25;function cU(e,t){let r=_r(e),i=Tn(e),o=r.visualViewport,s=i.clientWidth,l=i.clientHeight,c=0,f=0;if(o){s=o.width,l=o.height;let m=Lf();(!m||m&&t==="fixed")&&(c=o.offsetLeft,f=o.offsetTop)}let d=If(i);if(d<=0){let m=i.ownerDocument,p=m.body,v=getComputedStyle(p),w=m.compatMode==="CSS1Compat"&&parseFloat(v.marginLeft)+parseFloat(v.marginRight)||0,g=Math.abs(i.clientWidth-p.clientWidth-w);g<=C6&&(s-=g)}else d<=C6&&(s+=d);return{width:s,height:l,x:c,y:f}}var fU=new Set(["absolute","fixed"]);function dU(e,t){let r=Hl(e,!0,t==="fixed"),i=r.top+e.clientTop,o=r.left+e.clientLeft,s=cn(e)?ts(e):un(1),l=e.clientWidth*s.x,c=e.clientHeight*s.y,f=o*s.x,d=i*s.y;return{width:l,height:c,x:f,y:d}}function E6(e,t,r){let i;if(t==="viewport")i=cU(e,r);else if(t==="document")i=uU(Tn(e));else if(Gr(t))i=dU(t,r);else{let o=O6(e);i={x:t.x-o.x,y:t.y-o.y,width:t.width,height:t.height}}return To(i)}function R6(e,t){let r=ni(e);return r===t||!Gr(r)||Lo(r)?!1:Zr(r).position==="fixed"||R6(r,t)}function pU(e,t){let r=t.get(e);if(r)return r;let i=Af(e,[],!1).filter(c=>Gr(c)&&Oo(c)!=="body"),o=null,s=Zr(e).position==="fixed",l=s?ni(e):e;for(;Gr(l)&&!Lo(l);){let c=Zr(l),f=Of(l);!f&&c.position==="fixed"&&(o=null),(s?!f&&!o:!f&&c.position==="static"&&!!o&&fU.has(o.position)||es(l)&&!f&&R6(e,l))?i=i.filter(m=>m!==l):o=c,l=ni(l)}return t.set(e,i),i}function mU(e){let{element:t,boundary:r,rootBoundary:i,strategy:o}=e,l=[...r==="clippingAncestors"?Bl(t)?[]:pU(t,this._c):[].concat(r),i],c=l[0],f=l.reduce((d,m)=>{let p=E6(t,m,o);return d.top=zi(p.top,d.top),d.right=Ao(p.right,d.right),d.bottom=Ao(p.bottom,d.bottom),d.left=zi(p.left,d.left),d},E6(t,c,o));return{width:f.right-f.left,height:f.bottom-f.top,x:f.left,y:f.top}}function hU(e){let{width:t,height:r}=A6(e);return{width:t,height:r}}function vU(e,t,r){let i=cn(t),o=Tn(t),s=r==="fixed",l=Hl(e,!0,s,t),c={scrollLeft:0,scrollTop:0},f=un(0);function d(){f.x=If(o)}if(i||!i&&!s)if((Oo(t)!=="body"||es(o))&&(c=Fl(t)),i){let w=Hl(t,!0,s,t);f.x=w.x+t.clientLeft,f.y=w.y+t.clientTop}else o&&d();s&&!i&&o&&d();let m=o&&!i&&!s?L6(o,c):un(0),p=l.left+c.scrollLeft-f.x-m.x,v=l.top+c.scrollTop-f.y-m.y;return{x:p,y:v,width:l.width,height:l.height}}function bm(e){return Zr(e).position==="static"}function S6(e,t){if(!cn(e)||Zr(e).position==="fixed")return null;if(t)return t(e);let r=e.offsetParent;return Tn(e)===r&&(r=r.ownerDocument.body),r}function I6(e,t){let r=_r(e);if(Bl(e))return r;if(!cn(e)){let o=ni(e);for(;o&&!Lo(o);){if(Gr(o)&&!bm(o))return o;o=ni(o)}return r}let i=S6(e,t);for(;i&&b6(i)&&bm(i);)i=S6(i,t);return i&&Lo(i)&&bm(i)&&!Of(i)?r:i||x6(e)||r}var gU=function(e){return K(this,null,function*(){let t=this.getOffsetParent||I6,r=this.getDimensions,i=yield r(e.floating);return{reference:vU(e.reference,yield t(e.floating),e.strategy),floating:{x:0,y:0,width:i.width,height:i.height}}})};function _U(e){return Zr(e).direction==="rtl"}var yU={convertOffsetParentRelativeRectToViewportRelativeRect:sU,getDocumentElement:Tn,getClippingRect:mU,getOffsetParent:I6,getElementRects:gU,getClientRects:lU,getDimensions:hU,getScale:ts,isElement:Gr,isRTL:_U};var P6=v6;var M6=g6,D6=h6;var N6=m6;var B6=(e,t,r)=>{let i=new Map,o=re({platform:yU},r),s=ge(re({},o.platform),{_c:i});return p6(e,t,ge(re({},o),{platform:s}))};var Ro=Te(ze(),1);var bU=({children:e,content:t,placement:r="top-start"})=>{let[i,o]=ye(!1),s=nt(null),l=nt(null),c=nt(null),f=()=>o(!0),d=()=>o(!1);Le(()=>{if(!i||!s.current||!l.current)return;let p=s.current,v=l.current;B6(p,v,{placement:r,middleware:[P6(8),D6(),M6({padding:5}),...c.current?[N6({element:c.current})]:[]]}).then(({x:w,y:g,placement:S,middlewareData:y})=>{if(Object.assign(v.style,{left:`${w}px`,top:`${g}px`}),y.arrow&&c.current){let{x,y:T}=y.arrow,C=S.split("-")[0],O={top:"bottom",right:"left",bottom:"top",left:"r
1472ight"}[C],I=c.current;if(Object.assign(I.style,{left:"",top:"",right:"",bottom:""}),S.includes("-start")||S.includes("-end")){let M=v.getBoundingClientRect();C==="top"||C==="bottom"?(I.style.left="14px",T!=null&&(I.style.top=`${T}px`)):(I.style.top=`${M.height/2-4}px`,x!=null&&(I.style.left=`${x}px`))}else x!=null&&(I.style.left=`${x}px`),T!=null&&(I.style.top=`${T}px`);I.style[O]="-4px"}})},[i,r,t]);let m=Wc(e,{ref:s,onMouseEnter:f,onMouseLeave:d,onFocus:f,onBlur:d,"aria-describedby":"lightweight-tooltip"});return b(Ke,{children:[m,i&&b("div",{ref:l,role:"tooltip",id:"lightweight-tooltip",className:(0,Ro.default)("tooltip-container",F()["tooltip-container"]),children:[t,b("div",{ref:c,className:(0,Ro.default)("tooltip-arrow",F()["tooltip-arrow"])})]})]})};function xU({contentTypeName:e,referenceFieldName:t}){return b("div",{className:(0,Ro.default)("toolbar-tooltip-content",F()["toolbar-tooltip-content"]),children:[e&&b("div",{className:(0,Ro.default)("toolbar-tooltip-content-item",F()["toolbar-tooltip-content-item"]),children:[b(rf,{}),b("p",{children:e})]}),t&&b("div",{className:(0,Ro.default)("toolbar-tooltip-content-item",F()["toolbar-tooltip-content-item"]),children:[b("div",{dangerouslySetInnerHTML:{__html:ja.reference},className:(0,Ro.default)("visual-builder__field-icon",F()["visual-builder__field-icon"])}),b("p",{children:t})]})]})}function F6({children:e,data:t,disabled:r=!1}){if(r)return e;let{contentTypeName:i,referenceFieldName:o}=t;return b(bU,{content:b(xU,{contentTypeName:i,referenceFieldName:o}),children:e})}function wU(e){return K(this,null,function*(){return yield ae?.send(se.GET_FIELD_DISPLAY_NAMES,e)})}function CU(e){return K(this,null,function*(){try{return(yield ae?.send(se.GET_CONTENT_TYPE_NAME,{content_type_uid:e}))?.contentTypeName}catch(t){return console.warn("[getFieldLabelWrapper] Error getting content type name",t),""}})}function EU(){return K(this,null,function*(){try{return(yield ae?.send(se.REFERENCE_MAP,{}))??{}}catch(e){return console.warn("[getFieldLabelWrapper] Error getting reference parent map",e),{}}})}function SU(e){let{eventDetails:t}=e,[r,i]=ye({text:"",contentTypeName:"",icon:b(Co,{}),prefixIcon:null,disabled:!1,isVariant:!1,isReference:!1,referenceFieldName:"",parentContentTypeName:""}),[o,s]=ye({}),[l,c]=ye(!0),[f,d]=ye(!1),[m,p]=ye(!1);function v(S){return`${(S+1)*-30}px`}Le(()=>{let S=()=>K(this,null,function*(){c(!0);let y=Js([e.fieldMetadata,...e.parentPaths.map(G=>Ot(G))],"cslpValue"),[x,T,C,O]=yield Promise.all([wU(y),_t.getFieldSchema(e.fieldMetadata.content_type_uid,e.fieldMetadata.fieldPath),CU(e.fieldMetadata.content_type_uid),EU()]),I=e.fieldMetadata.entry_uid,M=O[I],$=!!M,k=M?M[0].referenceFieldName:"",H=M?M[0].contentTypeTitle:"";if($){let G=t.editableElement.closest(`[data-cslp]:not([data-cslp^="${e.fieldMetadata.content_type_uid}"])`);if(G){let J=G.getAttribute("data-cslp"),ce=Ot(J).content_type_uid,pe=M?.find(le=>le.contentTypeUid===ce);pe&&(k=pe.referenceFieldName,H=pe.contentTypeTitle)}}if(Wa(x)||!T){c(!1),d(!0);return}let oe=yield Ir({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale}),{isDisabled:ie,reason:ee}=ir(T,t,oe),q=x?.[e.fieldMetadata.cslpValue]??T.display_name,z=!!e?.parentPaths?.length,W=!!e.fieldMetadata.variant;i({text:q,contentTypeName:C??"",icon:ie?b("div",{className:(0,fn.default)(F()["visual-builder__tooltip--persistent"]),"data-tooltip":ee,children:b(Ky,{})}):z?b(Co,{}):b(Ke,{}),isReference:$,prefixIcon:xb(T),disabled:ie,referenceFieldName:k,parentContentTypeName:H,isVariant:W}),x&&s(x),Object.keys(x||{})?.length===y.length&&c(!1)});try{S()}catch(y){console.warn("[getFieldLabelWrapper] Error fetching field label data",y)}},[e]);let w=S=>{let y=e.getParentEditableElement(S);y&&y.click()};function g(){return f?null:l?b(Xa,{}):r.icon}return b("div",{className:(0,fn.default)("visual-builder__focused-toolbar__field-label-container",F()["visual-builder__focused-toolbar__field-label-container"]),children:b(F6,{data:{contentTypeName:r.parentContentTypeName,referenceFieldName:r.referenceFieldName},disabled:!r.isReference||m,children:b("div",{className:(0,fn.default)("visual-builder__focused-toolbar__field-label-wrapper",F()["visual-builder__focused-toolbar__field-label-wrapper"],{"visual-builder__focused-toolbar--field-disabled":r.disabled},{[F()["visual-builder__focused-toolbar--field-disabled"]]:r.disabled},{"field-label-dropdown-open":m,[F()["field-label-dropdown-open"]]:m}),onClick:()=>p(S=>!S),"data-testid":"visual-builder__focused-toolbar__field-label-wrapper","data-hovered-cslp":e.fieldMetadata.cslpValue,children:[b("button",{className:(0,fn.default)("visual-builder__focused-toolbar__field-label-wrapper__current-field visual-builder__button visual-builder__button--primary visual-builder__button-loader",F()["visual-builder__focused-toolbar__field-label-wrapper__current-field"],F()["visual-builder__button"],F()["visual-builder__button--primary"],F()["visual-builder__button-loader"],f&&F()["visual-builder__button-error"]),disabled:l,children:[r.isReference&&!l&&!f?b("div",{className:(0,fn.default)("visual-builder__reference-icon-container",F()["visual-builder__reference-icon-container"]),children:[b("div",{className:(0,fn.default)("visual-builder__field-icon",F()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:ja.reference},"data-testid":"visual-builder__field-icon-caret"}),b(nb,{})]}):null,r.contentTypeName&&!l&&!f?b(Ke,{children:[b(rf,{}),b("div",{className:(0,fn.default)("visual-builder__focused-toolbar__text",F()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__ct-name",children:r.contentTypeName+" : "})]}):null,r.prefixIcon?b("div",{className:(0,fn.default)("visual-builder__field-icon",F()["visual-builder__field-icon"]),dangerouslySetInnerHTML:{__html:r.prefixIcon},"data-testid":"visual-builder__field-icon"}):null,r.text?b("div",{className:(0,fn.default)("visual-builder__focused-toolbar__text",F()["visual-builder__focused-toolbar__text"]),"data-testid":"visual-builder__focused-toolbar__text",children:r.text}):null,g(),f?b(a6,{}):null]}),e.parentPaths.map((S,y)=>b("button",{className:(0,fn.default)("visual-builder__focused-toolbar__field-label-wrapper__parent-field visual-builder__button visual-builder__button--secondary visual-builder__focused-toolbar__text",F()["visual-builder__focused-toolbar__field-label-wrapper__parent-field"],F()["visual-builder__button"],F()["visual-builder__button--secondary"],F()["visual-builder__focused-toolbar__text"]),"data-target-cslp":S,style:{to
1472p:v(y)},onClick:()=>w(S),children:o[S]},S))]})})})}var H6=SU;function k6(e,t,r,i=!1,o){xm(e,t,o),!o?.isHover&&AU(e,t,r,i)}function AU(e,t,r,i=!1,o){return K(this,null,function*(){let{isHover:s}=o||{};if(t.querySelector(".visual-builder__focused-toolbar__multiple-field-toolbar")&&!s)return;let l=yield Ir({entryUid:e.fieldMetadata.entry_uid,contentTypeUid:e.fieldMetadata.content_type_uid,locale:e.fieldMetadata.locale}),c=document.createDocumentFragment();At(b(o6,{eventDetails:e,hideOverlay:r,isVariant:i,entryPermissions:l}),c),t.append(c)})}function xm(e,t,r){let{isHover:i}=r||{},o=document.querySelector(".visual-builder__focused-toolbar__field-label-wrapper"),{editableElement:s,fieldMetadata:l}=e;if(o)if(i){if(o.getAttribute("data-hovered-cslp")===l.cslpValue)return;wm(t)}else return;let c=s.getBoundingClientRect(),f=c.top+window.scrollY-Vi,d=c.top+window.scrollY<$i?f+c.height+$i:f,m=c.left-En,p=Math.max(m,Vi);window.scrollX+window.innerWidth-c.left<cl?(t.style.justifyContent="flex-end",t.style.left=`${c.right+En}px`):(t.style.justifyContent="flex-start",t.style.left=`${p}px`),t.style.top=`${d}px`;let w=TU(s,2),g=document.createDocumentFragment();At(b(H6,{fieldMetadata:l,eventDetails:e,parentPaths:w,getParentEditableElement:S=>s.closest(`[${Lr}="${S}"]`)}),g),t.appendChild(g)}function TU(e,t){let r=[],i=e.parentElement;for(;t>0||i===window.document.body;){if(!i)return r;i.hasAttribute(Lr)&&(r.push(i.getAttribute(Lr)),t--),i=i.parentElement}return r}function wm(e){e.innerHTML="",[se.DELETE_INSTANCE,se.UPDATE_DISCUSSION_ID,se.FIELD_LOCATION_DATA].forEach(r=>{ae?.requestMessageHandlers?.has(r)&&ae?.unregisterEvent?.(r)})}var Kr=Q.get();function U6(e){e&&hl({fieldType:"empty",customCursor:e})}function $6(e){e&&hl({fieldType:"discussion",customCursor:e})}function Pf(e,t){if(t){let r=e.clientY,i=e.clientX;t.style.left=`${i}px`,t.style.top=`${r}px`}}function OU(e){if(!e)return;let{editableElement:t,eventDetails:r,content_type_uid:i,fieldPath:o,fieldMetadata:s,fieldDisabled:l}=e;t&&(H1(t,l),_t.getFieldSchema(i,o).then(c=>{let f;c&&Ir({entryUid:s.entry_uid,contentTypeUid:s.content_type_uid,locale:s.locale}).then(d=>{f=d}).catch(d=>{console.error("[Visual Builder] Error retrieving entry permissions:",d)}).finally(()=>{let{isDisabled:d}=ir(c,r,f);H1(t,d)})}))}var LU=nn(OU,50,{trailing:!0}),V6=e=>LU(e);function RU(){document?.body&&!document.body.classList.contains(F()["visual-builder__default-cursor--disabled"])&&document.body.classList.add(F()["visual-builder__default-cursor--disabled"])}function IU(){document?.body&&document.body.classList.contains(F()["visual-builder__default-cursor--disabled"])&&document.body.classList.remove(F()["visual-builder__default-cursor--disabled"])}function ns(e){if(!e)return;let t=e.querySelector(".visual-builder__hover-outline");t&&t.classList.add(F()["visual-builder__hover-outline--hidden"])}function Io(e){IU(),e?.classList.remove("visible")}function kl(e){RU(),!(Kr.collab.enable&&(!Kr.collab.isFeedbackMode||Kr.collab.pauseFeedback))&&e?.classList.add("visible")}var PU=nn(e=>K(void 0,null,function*(){let t=pl(e.event);!t||!e.overlayWrapper||!e.visualBuilderContainer||!e.focusedToolbar||xm(t,e.focusedToolbar,{isHover:!0})}),50,{trailing:!0}),W6=e=>K(void 0,null,function*(){return yield PU(e)});function MU(e){return e.classList.contains("visual-builder__overlay")}function DU(e){return e.hasAttribute("contenteditable")?e.getAttribute("contenteditable")==="true":!1}function NU(e){return e.classList.contains("visual-builder__focused-toolbar__field-label-wrapper")||e.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__current-field")}function BU(e){return e.classList.contains("visual-builder__focused-toolbar__field-label-wrapper__parent-field")}var FU=vo(e=>K(void 0,null,function*(){let t=pl(e.event),r=e.event.target;if(Kr?.collab.enable&&Kr?.collab.pauseFeedback){Io(e.customCursor);return}if(!t){if(r&&(MU(r)||DU(r)||Rl(r))){Pf(e.event,e.customCursor),Io(e.customCursor);return}r&&(NU(r)||BU(r))&&(e.customCursor&&Io(e.customCursor),V6(),W6({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:be.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focu
1472sedToolbar,resizeObserver:e.resizeObserver})),Kr?.collab.enable||U6(e.customCursor),rs({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper}),Pf(e.event,e.customCursor),Kr?.collab.enable&&Kr?.collab.isFeedbackMode&&(kl(e.customCursor),$6(e.customCursor));return}let{editableElement:i,fieldMetadata:o}=t,{content_type_uid:s,fieldPath:l}=o;if(be.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&be.VisualBuilderGlobalState.value.previousSelectedEditableDOM.isSameNode(i)){Io(e.customCursor);return}if(e.customCursor){let c=document.elementFromPoint(e.event.clientX,e.event.clientY);if(c&&(c.nodeName==="A"||c.nodeName==="BUTTON")&&c.classList.add(F()["visual-builder__no-cursor-style"]),Kr?.collab.enable&&Kr?.collab.isFeedbackMode){$6(e.customCursor),Pf(e.event,e.customCursor),kl(e.customCursor);return}else if(Kr?.collab.enable&&!Kr?.collab.isFeedbackMode){Io(e.customCursor);return}be.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==i&&(U6(e.customCursor),rs({eventTarget:e.event.target,visualBuilderContainer:e.visualBuilderContainer,overlayWrapper:e.overlayWrapper})),_t.hasFieldSchema(s,l)||hl({fieldType:"loading",customCursor:e.customCursor}),_t.getFieldSchema(s,l).then(f=>{if(!f)return;let d;Ir({entryUid:o.entry_uid,contentTypeUid:o.content_type_uid,locale:o.locale}).then(m=>{d=m}).catch(m=>{console.error("[Visual Builder] Error retrieving entry permissions:",m)}).finally(()=>{if(!e.customCursor)return;let{isDisabled:m}=ir(f,t,d),p=Sn(f);hl({fieldType:p,customCursor:e.customCursor,fieldDisabled:m})})}),Pf(e.event,e.customCursor),kl(e.customCursor)}!i.classList.contains(is)&&!i.classList.contains("visual-builder__empty-block")&&(V6({editableElement:i,eventDetails:t,content_type_uid:s,fieldPath:l,fieldMetadata:o}),be.VisualBuilderGlobalState.value.isFocussed||W6({event:e.event,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:be.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})),be.VisualBuilderGlobalState.value.previousHoveredTargetDOM!==i&&(be.VisualBuilderGlobalState.value.previousHoveredTargetDOM=i)}),10),HU=e=>K(void 0,null,function*(){return yield FU(e)}),q6=HU;var kU=4e3;function z6(e,t,r){let{editableElement:i,visualBuilderContainer:o,resizeObserver:s}=t,{expectedFieldData:l,fieldSchema:c,disabled:f,label:d}=r,m=e.fieldMetadata.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(!i||!m)return;let p=qa(i,m);if(p==="none"||!o)return;let v=i.getBoundingClientRect();rs({visualBuilderContainer:o,eventTarget:null,overlayWrapper:null},!0);let w=o.querySelector(".visual-builder__overlay__wrapper"),g=o.querySelector(".visual-builder__focused-toolbar"),S=()=>{ns(o),On({visualBuilderContainer:o,visualBuilderOverlayWrapper:w,focusedToolbar:g,resizeObserver:s})};if(f)return;let y=e.fieldMetadata.instance.fieldPathWithIndex===e.fieldMetadata.fieldPathWithIndex,x=y?0:e.fieldMetadata.multipleFieldMetadata.index,T=y?l.length:e.fieldMetadata.multipleFieldMetadata.index+1,C=y?e.cslpData:m,O=k=>{S(),Cm({parentCslp:C,index:k})},I=zr(!1),M=F1({fieldSchema:c,value:l,fieldMetadata:e.fieldMetadata,index:x,onClick:O.bind(null,x),loading:I,label:d}),$=F1({fieldSchema:c,value:l,fieldMetadata:e.fieldMetadata,index:T,onClick:O.bind(null,T),loading:I,label:d});if(o.contains(M)||o.appendChild(M),o.contains($)||o.appendChild($),p==="horizontal"){let k=v.top+(v.bottom-v.top)/2+window.scrollY;M.style.left=`${v.left}px`,M.style.top=`${k}px`,$.style.left=`${v.right}px`,$.style.top=`${k}px`}else{let k=v.left+(v.right-v.left)/2;M.style.left=`${k}px`,M.style.top=`${v.top+window.scrollY}px`,$.style.left=`${k}px`,$.style.top=`${v.bottom+window.scrollY}px`}}function rs(e,t=!1){let{visualBuilderContainer:r,overlayWrapper:i,eventTarget:o}=e;if(!r)return;t&&dl(r,!0)?.forEach(d=>d.remove());let s=dl(r);if(!s)return;let[l,c]=s;i?.classList.contains("visible")||o&&(l.contains(o)||c.contains(o))||(c.remove(),l.remove())}function Cm({parentCslp:e,index:t}){let r=document.querySelector(`[data-cslp='${e}']`);if(r){let i=[e,t].join("."),o=!1,s=null;new MutationObserver((c,f)=>{let d=r.querySelector(`[data-cslp='${i}']`);if(d){setTimeout(()=>d.click(),350),f.disconnect(),o=!0;return}!o&&!s&&(s=setTimeout(()=>{f.disconnect(),o=!1},kU))}).observe(r,{childList:!0,subtree:!0,attributes:!1})}}function Mf(e){return e&&(e.multiple||e.data_type==="reference"&&e.field_metadata.ref_multiple)}var Z6=Te(ze(),1);function Df(e){return Object.keys(e).reduce((t,r)=>(t[Yp(r)]=e[r],t),{})}function j6({rect:e,camelCase:t}){let r={position:"absolute",top:`${e.top+window.scrollY}px`,left:`${e.left+window.scrollX}px`,height:"auto","min-height":`${Math.abs(e.height)}px`,"white-space":"normal","text-transform":"none","text-wrap-mode":"wrap","text-overflow":"visible"};return t?Df(r):r}function G6(e){let t=window.getComputedStyle(e),r=Array.from(t),i=["position","left","top","right","bottom","text-overflow","text-transform","margin","margin-block-end","margin-block-start","margin-inline-end","margin-inline-start","margin-left","margin-right","margin-top","margin-bottom","-webkit-user-modify","cursor"],o={};return r.forEach(s=>{if(!i.includes(s)){let l=t.getPropertyValue(s);o[s]=l}}),o}function Ul(e,t){let r=G6(e),i=e.getBoundingClientRect();t&&(r=Df(r));let o=j6({rect:i,camelCase:t});return re(re({},r),o)}function UU(e){let t=Ul(e.editableElement,!0);return b("div",{className:(0,Z6.default)("visual-builder__pseudo-editable-element",F()["visual-builder__pseudo-editable-element"]),"data-testid":"visual-builder__pseudo-editable-element",style:t,children:e.config.textContent})}var K6=UU;function Y6(e){return e.offsetWidth<e.scrollWidth}function X6(e,t){let{editableElement:r}=e,i=document.querySelector(".visual-builder__container"),o=document.createDocumentFragment();return At(b(K6,{editableElement:r,config:t}),o),i?.appendChild(o),document.querySelector(".visual-builder__pseudo-editable-element")}function Nf(e){let t="",r=!0;function i(o){for(let s=0;s<o.length;s++){let l=o[s];if(l.nodeName==="BR"){t+=` 1473`,r=!0;continue}l.nodeName==="DIV"&&r===!1&&s!==0&&(t+=` 1474`),r=!1,l.nodeType===3&&l.textContent&&l.textContent.trim()!==""&&(t+=l.textContent),i(l.childNodes)}}return i(e.childNodes),t}function $U({focusedToolbar:e,selectedElementDimension:t}){if(e){let r=window.scrollX+window.innerWidth-t.left,i=t.top+window.scrollY-Vi,o=t.to
1474p+window.scrollY<$i?i+t.height+$i:i,s=t.left-En,l=Math.max(s,Vi);r<cl&&(e.style.justifyContent!=="flex-end"||e.style.left!==`${t.right+En}px`)?(e.style.justifyContent="flex-end",e.style.left=`${t.right+En}px`):(e.style.justifyContent!=="flex-start"||e.style.left!==`${l}px`)&&(e.style.justifyContent="flex-start",e.style.left=`${l}px`),e.style.top!==`${o}px`&&(e.style.top=`${o}px`)}}function Bf(s){return K(this,arguments,function*({editableElement:e,visualBuilderContainer:t,overlayWrapper:r,focusedToolbar:i,resizeObserver:o}){let l=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!t||!e||!l||!r)return;let c=e?.getAttribute("data-cslp")||"",f=l?.getAttribute("data-cslp-unique-id"),d=document.querySelector(`[data-cslp-unique-id="${f}"]`)||document.querySelector(`[data-cslp="${c}"]`);if(!d&&o){Ff({visualBuilderOverlayWrapper:r,focusedToolbar:i,visualBuilderContainer:t,resizeObserver:o,noTrigger:!0});return}d!==l&&(l=d,be.VisualBuilderGlobalState.value.previousSelectedEditableDOM=l);let m=e?.getAttribute("data-cslp")||"",p=Ot(m);ns(t);let v=yield _t.getFieldSchema(p.content_type_uid,p.fieldPath),w=yield Ir({entryUid:p.entry_uid,contentTypeUid:p.content_type_uid,locale:p.locale}),{isDisabled:g}=ir(v,{editableElement:e,fieldMetadata:p},w);Po(l,r,g);let S=t.querySelector(".visual-builder__pseudo-editable-element");if(S){let C=Ul(e),O=Object.entries(C).reduce((I,[M,$])=>`${I}${M}:${$};`,"");S.style.cssText=O,S.style.visibility="visible"}let y=e.getBoundingClientRect();if(y.width&&y.height){let C=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!C)return;$U({focusedToolbar:i,selectedElementDimension:C.getBoundingClientRect()})}let x=dl(t),T=p.multipleFieldMetadata?.parentDetails?.parentCslpValue;if(x&&T&&x.length>1&&x[0]&&x[1]){let[C,O]=x,I=qa(e,T),M=e.getBoundingClientRect();if(I==="horizontal"){let $=M.top+(M.bottom-M.top)/2+window.scrollY;C.style.left=`${M.left}px`,C.style.top=`${$}px`,O.style.left=`${M.right}px`,O.style.top=`${$}px`}else if(I==="vertical"){let $=M.left+(M.right-M.left)/2;C.style.left=`${$}px`,C.style.top=`${M.top+window.scrollY}px`,O.style.left=`${$}px`,O.style.top=`${M.bottom+window.scrollY}px`}}})}function J6(e,t,r,i){if(!e)return;let o=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!o)return;let s=o?.getAttribute("data-cslp"),l=o?.getAttribute("data-cslp-unique-id"),c=document.querySelector(`[data-cslp-unique-id="${l}"]`)||document.querySelector(`[data-cslp="${s}"]`);if(!c&&i){Ff({visualBuilderOverlayWrapper:e,focusedToolbar:t,visualBuilderContainer:r,resizeObserver:i,noTrigger:!0});return}c!==o&&(o=c,be.VisualBuilderGlobalState.value.previousSelectedEditableDOM=o);let f=o.getBoundingClientRect(),d=e.querySelector(".visual-builder__overlay--outline");if(d){let S=d.getBoundingClientRect();VU(f,S)||(d.style.top=`${f.top+window.scrollY}px`,d.style.left=`${f.left}px`,d.style.width=`${f.width}px`,d.style.height=`${f.height}px`)}let m=e.querySelector(".visual-builder__overlay--top"),p=e.querySelector(".visual-builder__overlay--bottom"),v=e.querySelector(".visual-builder__overlay--left"),w=e.querySelector(".visual-builder__overlay--right"),g=f.top+window.scrollY;if(m&&m.getBoundingClientRect().height!==g&&(m.style.height=`calc(${g}px)`),p){let S=p.getBoundingClientRect();(S.top!==f.bottom||S.height!==window.document.body.scrollHeight-f.bottom-window.scrollY)&&(p.style.top=`${f.bottom+window.scrollY}px`,p.style.height=`${window.document.body.scrollHeight-f.bottom-window.scrollY}px`)}if(v){let S=v.getBoundingClientRect();(S.top+window.scrollY!==g||S.height!==f.height||S.width!==f.left)&&(v.style.top=`${g}px`,v.style.height=`${f.height}px`,v.style.width=`${f.left}px`)}if(w){let S=w.getBoundingClientRect();(S.left!==f.right||S.top+window.scrollY!==g||S.height!==f.height||S.width!==document.documentElement.clientWidth-f.right)&&(w.style.left=`${f.right}px`,w.style.top=`${g}px`,w.style.height=`${f.height}px`,w.style.width=`${document.documentElement.clientWidth-f.right}px`)}if(t){let S=window.scrollX+window.innerWidth-f.left,y=f.top+window.scrollY-Vi,x=f.top+window.scrollY<$i?y+f.height+$i:y,T=f.left-En,C=Math.max(T,Vi);S<cl&&(t.style.justifyContent!=="flex-end"||t.style.left!==`${f.right+En}px`)?(t.style.justifyContent="flex-end",t.style.left=`${f.right+En}px`):(t.style.justifyContent!=="flex-start"||t.style.left!==`${C}px`)&&(t.style.justifyContent="flex-start",t.style.left=`${C}px`),t.style.top!==`${x}px`&&(t.style.top=`${x}px`)}if(r){let S=r.querySelector(".visual-builder__pseudo-editable-element"),x=Ul(o),T=Object.entries(x).reduce((C,[O,I])=>`${C}${O}:${I};`,"");S&&(S.style.cssText!==T||S.style.visibility!=="visible")&&(S.style.cssText=T,S.style.visibility="visible")}}function VU(e,t){return e.top===t.top&&e.left===t.left&&e.width===t.width&&e.height===t.height}var os=nn(e=>{e.preventDefault();let t=e.clipboardData;document.execCommand("inserttext",!1,t?.getData("text/plain"))},100,{leading:!0});function Em({expectedFieldData:e,editableElement:t,fieldType:r,elements:i}){let{visualBuilderContainer:o,resizeObserver:s}=i,l=t;be.VisualBuilderGlobalState.value.focusFieldValue=l?.innerText;let c=window.getComputedStyle(l).display,f=t.innerText||t.textContent||"";r===Fe.MULTILINE&&(f=Nf(l),l.addEventListener("paste",os));let d=e;if(d&&f!==d||Y6(t)){let m=X6({editableElement:t},{textContent:e});t.style.visibility="hidden",m.setAttribute(Ui,r),o.appendChild(m),l=m,r===Fe.MULTILINE&&l.addEventListener("paste",os),i.resizeObserver.observe(m)}else if(c==="inline"){let m=vo(()=>{let p=o.querySelector(".visual-builder__overlay__wrapper"),v=o.querySelector(".visual-builder__focused-toolbar");Bf({editableElement:l,visualBuilderContainer:o,overlayWrapper:p,focusedToolbar:v,resizeObserver:s})},200);l.addEventListener("input",m)}l.setAttribute("contenteditable","true"),l.addEventListener("input",of),l.addEventListener("keydown",af),l.focus()}function Q6({fieldType:e,fieldSchema:t,fieldMetadata:r,expectedFieldData:i,editableElement:o,elements:s}){if(!nf.includes(e))return;let l=Number(r.instance.fieldPathWithIndex.split(".").at(-1)),c=Number.isFinite(l);if(Mf(t)){let f=null;if(Array.isArray(i)){if(!c)return;l>=i.length||(f=i.at(l))}else f=i;Em({fieldType:e,expectedFieldData:f,editableElement:o,elements:s})}else{let f=null;if(c){if(l!==0)return;f=Array.isArray(i)?i.at(0):i}Em({fieldType:e,expectedFieldData:f??i,editableElement:o,elements:s})}}function e7(e,t){return K(this,null,function*(){let{fieldMetadata:r,editableElement:i}=e,{visualBuilderContainer:o,lastEditedField:s,resizeObserver:l}=t,{content_type_uid:c,entry_uid:f,locale:d,fieldPath:m,fieldPathWithIndex:p}=r,[v,w]=yield Promise.all([_t.getFieldSchema(c,m),pb({content_type_uid:c,entry_uid:f,locale:d},p)]),g=Sn(v),S=yield Ir({entryUid:f,contentTypeUid:c,locale:d}),{isDisabled:y}=ir(v,e,S);if(i.setAttribute(Ui,g),Mf(v)&&s!==i){let x=v.data_type==="blocks"?"Add Section":void 0;z6(e,{editableElement:e.editableElement,visualBuilderContainer:o,resizeObserver:l}
1474,{fieldSchema:v,expectedFieldData:w,disabled:y,label:x})}y||Q6({fieldType:g,fieldSchema:v,fieldMetadata:r,expectedFieldData:w,editableElement:i,elements:t})})}function Hf(e){let{overlayWrapper:t,visualBuilderContainer:r,focusedToolbar:i}=e;rs({eventTarget:null,visualBuilderContainer:r,overlayWrapper:t},!0);let o=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;o&&(o.removeAttribute(Ui),o.removeAttribute("contenteditable"),o.removeEventListener("input",of),o.removeEventListener("keydown",af),o.removeEventListener("paste",os),e.resizeObserver.unobserve(o));let s=r?.querySelector(".visual-builder__pseudo-editable-element");s&&(e.resizeObserver.unobserve(s),s.removeEventListener("paste",os),s.remove(),o&&o.style.removeProperty("visibility")),i&&wm(i)}var WU=e=>{let{data:t}=e,r=Q.get();return b("div",{className:"collab-icon",onClick:()=>K(void 0,null,function*(){ae?.send(se.OPEN_FIELD_COMMENT_MODAL,{fieldMetadata:t?.fieldMetadata,discussion:t?.discussion,fieldSchema:t?.fieldSchema,absolutePath:t.absolutePath}),qi({threadUid:"",action:"close"}),Q.set("collab.isFeedbackMode",!0)}),children:b(Jy,{})})},t7=WU;var kf=25;function r7(e){let t={};e.forEach(r=>{let i=r?.fieldMetadata?.cslpValue;if(!i||t[i])return;t[i]=!0;let o=document.querySelector(`[data-cslp="${i}"]`);if(o&&o instanceof HTMLElement){let{top:s,left:l}=o.getBoundingClientRect(),c=document.createElement("div");c.setAttribute("field-path",i),c.style.position="fixed",c.style.top=`${s-kf}px`,c.style.left=`${l-kf}px`,c.style.zIndex="900",c.style.cursor="pointer",c.className="highlighted-comment collab-icon",At(rr(t7,{data:r}),c);let f=document.querySelector(".visual-builder__container");if(f){let d=f.querySelector(".visual-builder__highlighted-comment-wrapper");d||(d=document.createElement("div"),d.className="visual-builder__highlighted-comment-wrapper",f.appendChild(d)),d.appendChild(c)}}})}function Sm(){document.querySelectorAll(".highlighted-comment").forEach(t=>{if(t&&t instanceof HTMLElement){let r=t.getAttribute("field-path");if(r){let i=document.querySelector(`[data-cslp="${r}"]`);if(i&&i instanceof HTMLElement){let{top:o,left:s}=i.getBoundingClientRect();t.style.top=`${o-kf}px`,t.style.left=`${s-kf}px`}}}})}function n7(){document.querySelectorAll(".highlighted-comment")?.forEach(t=>t?.remove())}var Uf=B` 1475 display: none; 1476`;function i7(e,t){document.querySelectorAll(`.highlighted-comment[field-path="${e}"]`).forEach(i=>{t?i.classList.remove(Uf):i.classList.add(Uf)})}function o7(){document.querySelectorAll(`.highlighted-comment.${Uf}`).forEach(t=>{t.classList.remove(Uf)})}function Po(e,t,r){let i=e.getBoundingClientRect();if(i.width===0||i.height===0)return;t.classList.add("visible");let o=i.top+window.scrollY,s=t.querySelector(".visual-builder__overlay--top");s&&(s.style.top="0",s.style.left="0",s.style.width="100%",s.style.height=`calc(${o}px)`);let l=t.querySelector(".visual-builder__overlay--bottom");l&&(l.style.top=`${i.bottom+window.scrollY}px`,l.style.height=`${window.document.body.scrollHeight-i.bottom-window.scrollY}px`,l.style.left="0",l.style.width="100%");let c=t.querySelector(".visual-builder__overlay--left");c&&(c.style.left="0",c.style.top=`${o}px`,c.style.height=`${i.height}px`,c.style.width=`${i.left}px`);let f=t.querySelector(".visual-builder__overlay--right");f&&(f.style.left=`${i.right}px`,f.style.top=`${o}px`,f.style.height=`${i.height}px`,f.style.width=`${document.documentElement.clientWidth-i.right}px`);let d=t.querySelector(".visual-builder__overlay--outline");d&&(d.style.top=`${i.top+window.scrollY}px`,d.style.height=`${i.height}px`,d.style.width=`${i.width}px`,d.style.left=`${i.left}px`,d.style.outlineColor=r?"#909090":"#715cdd")}function Ff(e){let{visualBuilderContainer:t,visualBuilderOverlayWrapper:r,focusedToolbar:i,resizeObserver:o,noTrigger:s}=e;if(r){if(r.classList.remove("visible"),r.childNodes.forEach(l=>{l instanceof Element&&l.removeAttribute("style")}),!s&&be.VisualBuilderGlobalState.value.focusFieldReceivedInput)N1({visualBuilderContainer:t,eventType:se.UPDATE_FIELD});
1476else if(s){let{previousSelectedEditableDOM:l,focusFieldValue:c}=be.VisualBuilderGlobalState.value||{};l&&"innerText"in l&&c!=null&&(l.innerText=c)}be.VisualBuilderGlobalState.value.focusFieldValue=null,be.VisualBuilderGlobalState.value.focusFieldReceivedInput=!1,Hf({overlayWrapper:r,visualBuilderContainer:t,focusedToolbar:i,resizeObserver:o})}}function N1(e){let{visualBuilderContainer:t,eventType:r}=e,i=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM,o=t?.querySelector("div.visual-builder__pseudo-editable-element");if(i&&(i.hasAttribute("contenteditable")||o)){let s=o||i,l="innerText"in s?s.innerText:s.textContent,c=Ot(i.getAttribute("data-cslp"));_t.getFieldSchema(c.content_type_uid,c.fieldPath).then(f=>{if(f&&r===se.UPDATE_FIELD){let d=Sn(f);d&&d===Fe.MULTILINE&&(l=Nf(s),s.innerText=l)}}).finally(()=>{ae?.send(r,{data:l,fieldMetadata:c})})}}function On(e){be.VisualBuilderGlobalState.value.isFocussed=!1;let t=be.VisualBuilderGlobalState.value.focusElementObserver;t&&(t.disconnect(),be.VisualBuilderGlobalState.value.focusElementObserver=null),Ff({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:e.visualBuilderOverlayWrapper,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver,noTrigger:!!e.noTrigger}),o7(),be.VisualBuilderGlobalState.value.previousSelectedEditableDOM&&(e.resizeObserver.unobserve(be.VisualBuilderGlobalState.value.previousSelectedEditableDOM),be.VisualBuilderGlobalState.value.previousSelectedEditableDOM=null)}function a7(){let e=Array.from(document.querySelectorAll("[data-cslp]")),t=new Map;return e.forEach(i=>{let o=Ot(i.getAttribute("data-cslp"));t.set(o.entry_uid,{entryUid:o.entry_uid,contentTypeUid:o.content_type_uid,locale:o.locale})}),{entriesInCurrentPage:Array.from(t.values())}}var Ln=Te(ze(),1);function qU(e){return Jc()?b(Ke,{children:[b("style",{dangerouslySetInnerHTML:{__html:Wy}}),b("div",{className:(0,Ln.default)(F()["visual-builder__cursor"],"visual-builder__cursor"),"data-testid":"visual-builder__cursor"}),b("div",{className:(0,Ln.default)(F()["visual-builder__overlay__wrapper"],"visual-builder__overlay__wrapper"),"data-testid":"visual-builder__overlay__wrapper",onClick:t=>{let r=t.currentTarget,i=document.querySelector(".visual-builder__focused-toolbar");On({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:r,focusedToolbar:i,resizeObserver:e.resizeObserver})},children:[b("div",{className:(0,Ln.default)("visual-builder__overlay visual-builder__overlay--top",F()["visual-builder__overlay"]),"data-testid":"visual-builder__overlay--top"}),b("div",{"data-testid":"visual-builder__overlay--left",className:(0,Ln.default)("visual-builder__overlay visual-builder__overlay--left",F()["visual-builder__overlay"])}),b("div",{"data-testid":"visual-builder__overlay--right",className:(0,Ln.default)("visual-builder__overlay visual-builder__overlay--right",F()["visual-builder__overlay"])}),b("div",{"data-testid":"visual-builder__overlay--bottom",className:(0,Ln.default)("visual-builder__overlay visual-builder__overlay--bottom",F()["visual-builder__overlay"])}),b("div",{"data-testid":"visual-builder__overlay--outline",className:(0,Ln.default)("visual-builder__overlay--outline",F()["visual-builder__overlay--outline"])})]}),b("div",{className:(0,Ln.default)("visual-builder__hover-outline visual-builder__hover-outline--unclickable",F()["visual-builder__hover-outline"],F()["visual-builder__hover-outline--unclickable"]),"data-testid":"visual-builder__hover-outline"}),b("div",{className:(0,Ln.default)("visual-builder__focused-toolbar",F()["visual-builder__focused-toolbar"]),"data-testid":"visual-builder__focused-toolbar"})]}):null}var s7=qU;function zU(e){let t=document.querySelector(".visual-builder__container"),r=Jc();if(!t&&r){let i=document.createElement("div");i.classList.add(F()["visual-builder__container"],"visual-builder__container"),i.setAttribute("data-testid","visual-builder__container"),document.body.appendChild(i),At(b(s7,{visualBuilderContainer:i,resizeObserver:e.resizeObserver}),i)}}var l7=zU;function u7(){document.querySelectorAll(`.${F()["visual-builder__draft-field"]}`).forEach(t=>{t.classList.remove(F()["visual-builder__draft-field"])})}function jU(e){e.forEach(t=>{let r=document.querySelector(`[data-cslp="${t}"]`);r&&r.classList.add(F()["visual-builder__draft-field"])})}function c7(){ae?.on(se.SHOW_DRAFT_FIELDS,e=>{u7(),jU(e.data.fields)}),ae?.on(se.REMOVE_DRAFT_FIELDS,()=>{u7()})}function f7({visualBuilderContainer:e,overlayWrapper:t,focusedToolbar:r,resizeObserver:i}){ae?.on(se.HIDE_FOCUS_OVERLAY,o=>{o?.data?.fromCollab&&(Q.set("collab.enable",!0),Q.set("collab.pauseFeedback",!0)),On({visualBuilderOverlayWrapper:t,visualBuilderContainer:e,focusedToolbar:r,resizeObserver:i,noTrigger:!!o?.data?.noTrigger})})}var GU=e=>{let{content_type_uid:t,entry_uid:r,locale:i,path:o}=e.data.cslpData,s=`${t}.${r}.${i}.${o}`,l=document.querySelector(`[data-cslp="${s}"]`);l&&l.scrollIntoView({behavior:"smooth",block:"center"})},d7=()=>{ae?.on(se.SCROLL_TO_FIELD,GU)};function ZU(e,t){document.querySelectorAll("[data-cslp]").forEach(i=>
1476{let o=i.getAttribute("data-cslp");o&&(o?.includes(e)?(t&&i.classList.add(F()["visual-builder__variant-field"]),i.classList.add("visual-builder__variant-field")):o.startsWith("v2:")?i.classList.add("visual-builder__disabled-variant-field"):i.classList.add("visual-builder__base-field"))})}function p7(e=!1){e?document.querySelectorAll(`.${F()["visual-builder__variant-field"]}`).forEach(r=>{r.classList.remove(F()["visual-builder__variant-field"])}):document.querySelectorAll(".visual-builder__disabled-variant-field, .visual-builder__variant-field, .visual-builder__base-field").forEach(r=>{r.classList.remove("visual-builder__disabled-variant-field","visual-builder__variant-field",F()["visual-builder__variant-field"],"visual-builder__base-field")})}function KU(e){be.VisualBuilderGlobalState.value.audienceMode=e}function YU(e){be.VisualBuilderGlobalState.value.variant=e}function XU(e){be.VisualBuilderGlobalState.value.locale=e}function m7(){ae?.on(se.GET_VARIANT_ID,e=>{YU(e.data.variant),_t.clear()}),ae?.on(se.GET_LOCALE,e=>{XU(e.data.locale)}),ae?.on(se.SET_AUDIENCE_MODE,e=>{KU(e.data.audienceMode)}),ae?.on(se.SHOW_VARIANT_FIELDS,e=>{p7(),ZU(e.data.variant_data.variant,e.data.variant_data.highlightVariantFields)}),ae?.on(se.REMOVE_VARIANT_FIELDS,e=>{p7(e?.data?.onlyHighlighted)})}var as=Te(ze(),1);function h7(e){let{details:t}=e,r=t.fieldSchema.display_name;function i(){return K(this,null,function*(){yield ae?.send(se.ADD_INSTANCE,{fieldMetadata:t.fieldMetadata,index:0}),Cm({parentCslp:t.fieldMetadata.cslpValue,index:0})})}return b("div",{className:(0,as.default)("visual-builder__empty-block",F()["visual-builder__empty-block"]),children:[b("div",{className:(0,as.default)("visual-builder__empty-block-title",F()["visual-builder__empty-block-title"]),children:["This page doesn\u2019t have any"," ",b("span",{className:(0,as.default)("visual-builder__empty-block-field-name",F()["visual-builder__empty-block-field-name"]),children:r1(n1(r))})," ","added. Click the button below to add one."]}),b("button",{className:(0,as.default)("visual-builder__empty-block-add-button",F()["visual-builder__empty-block-add-button"]),onClick:()=>i(),type:"button","data-testid":"visual-builder__empty-block-add-button",children:[b("span",{className:(0,as.default)("visual-builder__empty-block-plus-icon",F()["visual-builder__empty-block-plus-icon"]),children:"+"}),"\xA0 Add ",r]})]})}function v7(e){return K(this,null,function*(){for(let t of e){let r=t.getAttribute("data-cslp");if(!r)return;let i=Ot(r),o=yield _t.getFieldSchema(i.content_type_uid,i.fieldPath);if(!o)return;nl(b(h7,{details:{fieldSchema:o,fieldMetadata:i}}),t)}})}function g7(e){e?.forEach(t=>{let r=t.querySelector(".visual-builder__empty-block");r&&r.remove()})}var y7=Te(_7(),1);function b7(e){!e.overlayWrapper||!e.editableElement||(Po(e.editableElement,e.overlayWrapper,e.isFieldDisabled),e.resizeObserver.observe(e.editableElement))}function JU(e){let{editableElement:t}=e.eventDetails;!t||!e.focusedToolbar||k6(e.eventDetails,e.focusedToolbar,e.hideOverlay,e.isVariant,e.options)}function x7(e){return K(this,null,function*(){let t=e.event.target,r=t instanceof HTMLAnchorElement,i=t&&(t.hasAttribute("data-cslp")||t.closest("[data-cslp]")),o=document.querySelectorAll(`[data-cslp="${t?.getAttribute("data-cslp")}"]`);if(o.length>1&&o.forEach(w=>{if(!w.hasAttribute("data-cslp-unique-id")){let g=`cslp-${Qs()}`;w.setAttribute("data-cslp-unique-id",g)}}),t?.getAttribute("data-studio-ui")==="true")return;if(e.event.altKey){r&&(e.event.preventDefault(),e.event.stopPropagation());return}(r||i&&!t.closest(".visual-builder__empty-block"))&&(e.event.preventDefault(),e.event.stopPropagation());let s=Q.get();if(s?.collab.enable===!0){if(s?.collab.pauseFeedback)return;let w=a3((0,y7.default)(t));if(!t)return;let g=t.getBoundingClientRect(),S=(e.event.clientX-g.left)/g.width,y=(e.event.clientY-g.top)/g.height;Rl(t)||(e.event.preventDefault(),e.event.stopPropagation()),Rl(t)?Q.set("collab.isFeedbackMode",!1):s?.collab.isFeedbackMode?Ya({xpath:w,relativeX:S,relativeY:y},{isNewThread:!0,updateConfig:!0}):(qi({threadUid:"",action:"close"}),Q.set("collab.isFeedbackMode",!0));return}let l=pl(e.event);if(QU(l),!l||!e.overlayWrapper||!e.visualBuilderContainer)return;let{editableElement:c,fieldMetadata:f}=l,d=yield yf(f),m=d?Object.values(d).some(w=>w===!0):!1;if(e$(e,c),t$(c))return;let p=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(r$(p,c,e))return;be.VisualBuilderGlobalState.value.previousSelectedEditableDOM=c,n$(e,l,c,m);let{cslpValue:v}=f;i7(v,!1),yield i$(e,l,f,c,p),o$(e,c)})}function QU(e){ae?.send(se.MOUSE_CLICK,{cslpData:e?.cslpData,fieldMetadata:e?.fieldMetadata}).catch(t=>{console.warn("Error while sending post message",t)})}function e$(e,t){let r=be.VisualBuilderGlobalState.value.previousSelectedEditableDOM;(r&&r!==t||e.reEvaluate)&&Hf({overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,focusedToolbar:e.focu
1476sedToolbar,resizeObserver:e.resizeObserver})}function t$(e){return e.classList.contains(is)||e.classList.contains("visual-builder__empty-block")}function r$(e,t,r){return!!(e&&e===t&&!r.reEvaluate)}function n$(e,t,r,i){be.VisualBuilderGlobalState.value.isFocussed=!0,b7({overlayWrapper:e.overlayWrapper,resizeObserver:e.resizeObserver,editableElement:r}),JU({eventDetails:t,focusedToolbar:e.focusedToolbar,hideOverlay:()=>{On({visualBuilderContainer:e.visualBuilderContainer,visualBuilderOverlayWrapper:e.overlayWrapper,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})},isVariant:i})}function i$(e,t,r,i,o){return K(this,null,function*(){let{content_type_uid:s,entry_uid:l,fieldPath:c,locale:f}=r,d=yield _t.getFieldSchema(s,c),m;try{m=yield Ir({entryUid:l,contentTypeUid:s,locale:f})}catch(p){console.error("[Visual Builder] Error retrieving entry permissions:",p);return}if(d){let{isDisabled:p}=ir(d,t,m);p&&b7({overlayWrapper:e.overlayWrapper,resizeObserver:e.resizeObserver,editableElement:i,isFieldDisabled:!0})}ae?.send(se.FOCUS_FIELD,{DOMEditStack:za(i)}),yield e7(t,{visualBuilderContainer:e.visualBuilderContainer,resizeObserver:e.resizeObserver,lastEditedField:o})})}function o$(e,t){let r=new MutationObserver(i=>{i.forEach(o=>{o.type==="attributes"&&o.attributeName==="data-cslp"&&(r?.disconnect(),be.VisualBuilderGlobalState.value.focusElementObserver=null,x7(ge(re({},e),{reEvaluate:!0})))})});be.VisualBuilderGlobalState.value.focusElementObserver=r,r.observe(t,{attributes:!0})}var w7=x7;var $f={click:e=>t=>{w7({event:t,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,previousSelectedEditableDOM:be.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:e.focusedToolbar,resizeObserver:e.resizeObserver})},mousemove:e=>t=>{q6({event:t,overlayWrapper:e.overlayWrapper,visualBuilderContainer:e.visualBuilderContainer,customCursor:e.customCursor,resizeObserver:e.resizeObserver,focusedToolbar:e.focusedToolbar})},mouseleave:e=>()=>{Io(e.customCursor),ns(e.visualBuilderContainer)},mouseenter:e=>()=>{kl(e.customCursor)}},ii=new Map;function C7(e){let t=$f.click(e),r=$f.mousemove(e),i=$f.mouseleave(e),o=$f.mouseenter(e);ii.set("click",t),ii.set("mousemove",r),ii.set("mouseleave",i),ii.set("mouseenter",o),window.addEventListener("click",t,{capture:!0}),window.addEventListener("mousemove",r),document.documentElement.addEventListener("mouseleave",i),document.documentElement.addEventListener("mouseenter",o)}function E7(e){let t=ii.get("click"),r=ii.get("mousemove"),i=ii.get("mouseleave"),o=ii.get("mouseenter");t&&window.removeEventListener("click",t,{capture:!0}),r&&window.removeEventListener("mousemove",r),i&&document.documentElement.removeEventListener("mouseleave",i),o&&document.documentElement.removeEventListener("mouseenter",o),ii.clear()}function S7({overlayWrapper:e,visualBuilderContainer:t,focusedToolbar:r,resizeObserver:i}){document.addEventListener("keydown",o=>{o.key==="Escape"&&On({visualBuilderOverlayWrapper:e,visualBuilderContainer:t,focusedToolbar:r,resizeObserver:i})})}var a$=e=>{let{payload:t}=e.data;r7(t)},s$=()=>{n7()},A7=()=>{ae?.on(se.HIGHLIGHT_ACTIVE_COMMENTS,a$),ae?.on(se.REMOVE_HIGHLIGHTED_COMMENTS,s$)};var l$=8e3;function T7(){an?.on(ei.VARIANT_PATCH,e=>{be.VisualBuilderGlobalState.value.audienceMode&&u$(e.data)})}function u$({highlightVariantFields:e,expectedCSLPValues:t}){let r=be.VisualBuilderGlobalState.value.variant,i=[],o=(c,f,d)=>{if(!f||(f.startsWith("v2:")&&!c.classList.contains("visual-builder__variant-field")?(c.classList.contains("visual-builder__base-field")&&c.classList.remove("visual-builder__base-field"),e?c.classList.add(F()["visual-builder__variant-field"],"visual-builder__variant-field"):c.classList.add("visual-builder__variant-field")):!f.startsWith("v2:")&&c.classList.contains("visual-builder__variant-field")?(c.classList.remove(F()["visual-builder__variant-field"],"visual-builder__variant-field"),c.classList.add("visual-builder__base-field")):f.startsWith("v2:")&&r&&!f.includes(r)&&c.classList.contains("visual-builder__variant-field")&&(c.classList.remove(F()["visual-builder__variant-field"],"visual-builder__variant-field"),c.classList.add("visual-builder__disabled-variant-field")),!d))return;d.disconnect();let m=i.indexOf(d);m>-1&&i.splice(m,1)},s=c=>{let f=c.getAttribute(Lr);
1476if(!f){c.childNodes.forEach(d=>{d instanceof HTMLElement&&s(d)});return}f.startsWith("v2:")&&c.classList.contains("visual-builder__variant-field")||(f.startsWith("v2:")&&!c.classList.contains("visual-builder__variant-field")?(c.classList.contains("visual-builder__base-field")&&c.classList.remove("visual-builder__base-field"),e?c.classList.add(F()["visual-builder__variant-field"],"visual-builder__variant-field"):c.classList.add("visual-builder__variant-field")):f.startsWith("v2:")||(c.classList.contains("visual-builder__variant-field")&&c.classList.remove(F()["visual-builder__variant-field"],"visual-builder__variant-field"),c.classList.add("visual-builder__base-field")),c.childNodes.forEach(d=>{d instanceof HTMLElement&&s(d)}))};document.querySelectorAll(`[${Lr}]`).forEach(c=>{let f=c,d=new MutationObserver(m=>{m.forEach(p=>{if(p.type==="attributes"&&p.attributeName===Lr||p.type==="childList"){p.addedNodes.length>0&&p.addedNodes.forEach(w=>{w instanceof HTMLElement&&s(w)});let v=f.getAttribute(Lr);o(f,v||"",d)}})});i.push(d),d.observe(f,{attributes:!0,childList:!0,subtree:!0})}),setTimeout(()=>{i.length>0&&(i.forEach(c=>c.disconnect()),i.length=0)},l$)}var O7=(e=!1)=>{if(e){k3();return}H3()},L7=()=>{let e=Q.get(),t=ae?.on(se.COLLAB_ENABLE,c=>{if(!c?.data?.collab){console.error("Invalid collab data structure:",c);return}if(c?.data?.collab?.fromShare){Q.set("collab.pauseFeedback",c?.data?.collab?.pauseFeedback),Q.set("collab.isFeedbackMode",c?.data?.collab?.isFeedbackMode),U3();return}Q.set("collab.enable",c.data.collab.enable??!1),Q.set("collab.isFeedbackMode",c.data.collab.isFeedbackMode??!1),Q.set("collab.pauseFeedback",c?.data?.collab?.pauseFeedback),Q.set("collab.inviteMetadata",c.data.collab.inviteMetadata)}),r=ae?.on(se.COLLAB_DATA_UPDATE,c=>{if(!e?.collab?.enable)return;if(!c?.data?.collab){console.error("Invalid collab data structure:",c);return}if(c?.data?.collab?.inviteMetadata){Q.set("collab.inviteMetadata",c?.data?.collab?.inviteMetadata);return}let f=c?.data?.collab?.payload?.map(d=>Ya(d)).filter(d=>d!==void 0)||[];f.length>0&&Il({payload:{isElementPresent:!1},threadUids:f})}),i=ae?.on(se.COLLAB_DISABLE,c=>{if(c?.data?.collab?.fromShare){Q.set("collab.pauseFeedback",c?.data?.collab?.pauseFeedback),O7(!0);return}Q.set("collab.enable",!1),Q.set("collab.isFeedbackMode",!1),O7()}),o=ae?.on(se.COLLAB_THREADS_REMOVE,c=>{let f=c?.data?.threadUids;e?.collab?.enable&&(c?.data?.updateConfig&&Q.set("collab.isFeedbackMode",!0),f.length>0&&f.forEach(d=>{_f(d)}))}),s=ae?.on(se.COLLAB_THREAD_REOPEN,c=>{let f=c.data.thread;if(!e?.collab?.enable)return;let d=Ya(f,{hidden:!!e?.collab?.pauseFeedback});d&&Il({payload:{isElementPresent:!1},threadUids:[d]})}),l=ae?.on(se.COLLAB_THREAD_HIGHLIGHT,c=>{let{threadUid:f}=c.data;!e?.collab?.enable||e?.collab?.pauseFeedback||$3(f)});return()=>{t?.unregister(),r?.unregister(),i?.unregister(),o?.unregister(),s?.unregister(),l?.unregister()}};var $l=[],R7=class oi{constructor(){this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null,this.scrollEventHandler=()=>{um(),cm(),fm(),Sm()},this.resizeEventHandler=()=>{let r=oi.VisualBuilderGlobalState.value.previousSelectedEditableDOM;Sm(),um(),cm(),fm(),r&&this.handlePositionChange(r)},this.resizeObserver=new ResizeObserver(([r])=>{let i=oi.VisualBuilderGlobalState.value.previousSelectedEditableDOM;if(!this.overlayWrapper||!i||!r.target.isSameNode(i)&&!r.target.classList.contains("visual-builder__pseudo-editable-element"))return;let o=r.target.classList.contains("visual-builder__pseudo-editable-element"),s=o?i:r.target.closest("[data-cslp]");o?Po(r.target,this.overlayWrapper):s&&this.handlePositionChange(s);let l=s&&s.getAttribute("data-cslp");if(!s||!l)return;let c=Ot(l);_t.getFieldSchema(c.content_type_uid,c.fieldPath).then(f=>{if(!f)return;let{isDisabled:d}=ir(f,{editableElement:s,fieldMetadata:c});d&&Po(s,this.overlayWrapper,d)})}),this.mutationObserver=new MutationObserver(nn(()=>K(this,null,function*(){J6(this.overlayWrapper,this.focusedToolbar,this.visualBuilderContainer,this.resizeObserver);let r=Array.from(document.querySelectorAll(`.${is}`)),i=oi.VisualBuilderGlobalState.value.previousEmptyBlockParents;if(!Xs(r,i)){let o=i.filter(l=>!r.includes(l)),s=r.filter(l=>!i.includes(l));g7(o),yield v7(s),oi.VisualBuilderGlobalState.value=ge(re({},oi.VisualBuilderGlobalState.value),{previousEmptyBlockParents:r})}}),100,{trailing:!0})),this.threadMutationObserver=new MutationObserver(nn(()=>{document.querySelector(".visual-builder__container")&&$l&&(pm($l).length>0&&W3($l).then(o=>{o.forEach(dm),o.length>0&&Il({payload:{isElementPresent:!1},threadUids:o})}),$l=[])},1e3)),this.destroy=()=>{window.removeEventListener("resize",this.resizeEventHandler),window.removeEventListener("scroll",this.scrollEventHandler),E7({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,previousSelectedEditableDOM:oi.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver,customCursor:this.customCursor}),this.resizeObserver.disconnect(),this.mutationObserver.disconnect(),this.threadMutationObserver.disconnect(),oi.VisualBuilderGlobalState.value={previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:"en-us",variant:null,focusElementObserver:null,referenceParentMap:{},isFocussed:!1},this.visualBuilderContainer&&window.document.body.removeChild(this.visualBuilderContainer),this.customCursor&&this.customCursor.remove(),this.overlayWrapper&&this.overlayWrapper.remove(),this.focusedToolbar&&this.focusedToolbar.remove(),this.customCursor=null,this.overlayWrapper=null,this.visualBuilderContainer=null,this.focusedToolbar=null},window.addEventListener("resize",this.resizeEventHandler),window.addEventListener("scroll",this.scrollEventHandler),l7({resizeObserver:this.resizeObserver}),Sy(rr),this.visualBuilderContainer=document.querySelector(".visual-builder__container"),this.overlayWrapper=document.querySelector(".visual-builder__overlay__wrapper"),this.customCursor=d
1476ocument.querySelector(".visual-builder__cursor"),this.focusedToolbar=document.querySelector(".visual-builder__focused-toolbar");let t=Q.get();!t.enable||t.mode<Xn.BUILDER||ae?.send("init",{isSSR:t.ssr,href:window.location.href}).then(r=>{let{windowType:i=qr.BUILDER,stackDetails:o,collab:s}=r||{};Q.set("windowType",i),Q.set("stackDetails.masterLocale",o?.masterLocale||"en-us"),s&&(Q.set("collab.enable",s.enable),Q.set("collab.isFeedbackMode",s.isFeedbackMode),Q.set("collab.inviteMetadata",s.inviteMetadata)),s?.payload&&($l=s?.payload),C7({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,previousSelectedEditableDOM:oi.VisualBuilderGlobalState.value.previousSelectedEditableDOM,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver,customCursor:this.customCursor}),this.threadMutationObserver.observe(document.body,{childList:!0,subtree:!0,attributes:!1}),R1(),L7(),i===qr.BUILDER&&(S7({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),d7(),A7(),this.mutationObserver.observe(document.body,{childList:!0,subtree:!0}),ae?.on(se.GET_ALL_ENTRIES_IN_CURRENT_PAGE,a7),ae?.send(se.SEND_VARIANT_AND_LOCALE),ae?.on(se.TOGGLE_SCROLL,l=>{l.data.scroll?document.body.style.overflow="auto":document.body.style.overflow="hidden"}),f7({overlayWrapper:this.overlayWrapper,visualBuilderContainer:this.visualBuilderContainer,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver}),I1(),T7(),c7(),m7())}).catch(()=>{sl()||ab()})}handlePositionChange(t){Bf({editableElement:t,visualBuilderContainer:this.visualBuilderContainer,overlayWrapper:this.overlayWrapper,focusedToolbar:this.focusedToolbar,resizeObserver:this.resizeObserver})}};R7.VisualBuilderGlobalState=zr({previousSelectedEditableDOM:null,previousHoveredTargetDOM:null,previousEmptyBlockParents:[],focusFieldValue:null,focusFieldReceivedInput:!1,audienceMode:!1,locale:Q.get().stackDetails.masterLocale||"en-us",variant:null,focusElementObserver:null,referenceParentMap:{},isFocussed:!1});var be=R7;var c$=(()=>{let e=class Lt{static init(r=kc()){return typeof window>"u"?(nr.warn("The SDK is not initialized in the browser."),Promise.resolve(Lt.previewConstructors)):(Q.replace(r),Yc(),Lt.isInitialized()?(nr.warn("You have already initialized the Live Preview SDK. So, any subsequent initialization returns the existing SDK instance."),Promise.resolve(Lt.previewConstructors)):Lt.initializePreview())}static get hash(){return Lt.isInitialized()||Yc(),Q.get().hash}static get config(){Lt.isInitialized()||Yc();let r=Q.get(),i=Zs(r);return t1(i,["ssr","enable","cleanCslpOnProduction","stackDetails","clientUrlParams","windowType","hash","editButton","mode"])}static isInitialized(){return!e1(Lt.previewConstructors)}static initializePreview(){Lt.previewConstructors={livePreview:new My,visualBuilder:new be};let r=Lt.previewConstructors.livePreview;
1476return Object.entries(Lt.onEntryChangeCallbacks).forEach(([i,o])=>{r.subscribeToOnEntryChange(o,i)}),Lt.onEntryChangeCallbacks={},Dy(),$y(),Promise.resolve(Lt.previewConstructors)}static onEntryChange(r,i={}){let{skipInitialRender:o=!1}=i,s=Qs();Lt.isInitialized()?Lt.previewConstructors.livePreview.subscribeToOnEntryChange(r,s):Lt.onEntryChangeCallbacks[s]=r;let l=typeof window<"u"?new URLSearchParams(window.location.search):null,c=l&&l.has("live_preview"),f=l&&l.has("builder");return(!o||c&&f)&&r(),s}static onLiveEdit(r){return Lt.onEntryChange(r,{skipInitialRender:!0})}static unsubscribeOnEntryChange(r){if(!Lt.isInitialized()){ef(Lt.onEntryChangeCallbacks,r);return}Lt.previewConstructors.livePreview.unsubscribeOnEntryChange(r)}static getSdkVersion(){return"3.4.0"}};return e.previewConstructors={},e.onEntryChangeCallbacks={},e})(),f$=c$,I7=f$;var d$=(()=>{let e=class ss{static init(){return typeof window>"u"?Promise.resolve(ss.previewConstructors):ss.initializePreview()}static initializePreview(){return ss.previewConstructors={livePreview:{},visualBuilder:{}},ss.onEntryChangeCallbacks={},Promise.resolve(ss.previewConstructors)}static get hash(){return""}static get config(){return{}}static isInitialized(){return!1}static onEntryChange(r,i={}){let{skipInitialRender:o=!1}=i;return o||r(),"live-preview-id"}static onLiveEdit(r){return"live-preview-id"}static unsubscribeOnEntryChange(){}static getSdkVersion(){return"3.4.0"}};return e.previewConstructors={},e.onEntryChangeCallbacks={},e})(),p$=d$,P7=p$;var m$=typeof process<"u"&&(process.env.PURGE_PREVIEW_SDK==="true"||process.env.REACT_APP_PURGE_PREVIEW_SDK==="true")?P7:I7,is="visual-builder__empty-block-parent",Om=m$;var Bh={};LO(Bh,{Utils:()=>mj,stack:()=>vj});var Yi=Te(Dn(),1);var Hx=typeof window<"u"?window:global;var wh={name:"localStorage",clear:Fz,each:Hz,getItem:xh,removeItem:Uz,setItem:kz};function ys(){return Hx.localStorage}function Fz(){ys().clear()}function Hz(e){for(let t=ys().length-1;t>=0;t--){let r=ys().key(t);if(r&&xh(r)){let i=xh(r);e(i,r)}}}function kz(e,t){e&&ys().setItem(e,t)}function xh(e){return ys().getItem(e)}function Uz(e){ys().removeItem(e)}var Ch={name:"memoryStorage",clear:$z,each:Vz,getItem:kx,removeItem:qz,setItem:Wz},su={};function $z(){su={}}function Vz(e){for(let t in su){let r=kx(t);e(r,t)}}function Wz(e,t){e&&(su[e]=t)}function kx(e){return su[e]}function qz(e){delete su[e]}var Ux=class{constructor(e){this.store=wh;let t={storeType:"localStorage",maxAge:1e3*60*60*24,serializer:JSON.stringify,deserializer:JSON.parse};t=re(re({},t),e),this.setStore(t.storeType,t.storage),this.config=t,this.name=""}setStore(e,t){switch(e){case"localStorage":break;case"memoryStorage":this.store=Ch;break;case"customStorage":if(t)this.store=t;else throw new TypeError("StorageType `customStorage` should have `storage`.");break}}setItem(e,t,r,i){if(!e)return;let o=this.generateCSKey(e,r);if(!t){this.store.removeItem(o);return}let s=this.calculateExpiry(i),l={value:t,expiry:s};this.config.serializer&&(l=this.config.serializer(l)),this.store.setItem(o,l)}getItem(e,t){let r=this.generateCSKey(e,t),i=this.store.getItem(r);if(i&&this.config.deserializer){let o=this.config.deserializer(i);if(this.isExpire(o.expiry))this.removeItem(e,t);else return o.value}}removeItem(e,t){let r=this.generateCSKey(e,t);this.store.removeItem(r)}clear(e){e?this.store.each((t,r)=>{r.match(e)&&this.store.removeItem(r)}):this.store.clear()}generateCSKey(e,t){let r="cs_store_js";return t&&(r=t+"_"+r),r=this.name+"_"+r+"_"+e,r}calculateExpiry(e){let r=new Date().getTime();return e?r+e:this.config.maxAge?r+this.config.maxAge:0}isExpire(e){return e?e<new Date().getTime():!0}};var _d=(e=>(e.US="us",e.EU="eu",e.AU="au",e.AZURE_NA="azure-na",e.AZURE_EU="azure-eu",e.GCP_NA="gcp-na",e.GCP_EU="gcp-eu",e))(_d||{}),$o=(e=>(e.IGNORE_CACHE="IGNORE_CACHE",e.CACHE_THEN_NETWORK="CACHE_THEN_NETWORK",e.CACHE_ELSE_NETWORK="CACHE_ELSE_NETWORK",e.NETWORK_ELSE_CACHE="NETWORK_ELSE_CACHE",e))($o||{});var Eh=(e=>(e.EQUALS="",e.NOT_EQUALS="$ne",e.INCLUDES="$in",e.EXCLUDES="$nin",e.IS_LESS_THAN="$lt",e.IS_LESS_THAN_OR_EQUAL="$lte",e.IS_GREATER_THAN="$gt",e.IS_GREATER_THAN_OR_EQUAL="$gte",e.EXISTS="$exists",e.MATCHES="$regex",e))(Eh||{});function $x(e,t,r,i,o,s){return K(this,null,function*(){let l=new Ux(e);switch(e.policy){case $o.NETWORK_ELSE_CACHE:{let c=yield r(s);if(c.data)return l.setItem(t,JSON.parse(c.data),s.contentTypeUid,e.maxAge),i({data:JSON.parse(c.data)});{let f=l.getItem(t,s.contentTypeUid);if(f)return i({data:f,status:200,statusText:"OK",headers:{},config:{}})}return o(c)}case $o.CACHE_THEN_NETWORK:{let c=l.getItem(t,s.contentTypeUid);if(c)return i({data:c,status:200,statusText:"OK",headers:{},config:{}});let f=yield r(s);return f.data?(l.setItem(t,JSON.parse(f.data),s.contentTypeUid,e.maxAge),i({data:JSON.parse(f.data)})):o(f)}case $o.CACHE_ELSE_NETWORK:{let c=l.getItem(t,s.contentTypeUid);if(c)return i({data:c,status:200,statusText:"OK",headers:{},config:{}});{let f=yield r(s);return f.data?(l.setItem(t,JSON.parse(f.data),s.contentTypeUid,e.maxAge),i({data:JSON.parse(f.data)})):o(f)}}}})}
1476var uw=Te(Dn(),1);var Vx=Te(Dn(),1);var Wx=class{constructor(e,t){this._queryParams={},this._client=e,this._urlPath=`/assets/${t}`}includeFallback(){return this._queryParams.include_fallback="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeDimension(){return this._queryParams.include_dimension="true",this}includeBranch(){return this._queryParams.include_branch="true",this}relativeUrls(){return this._queryParams.relative_urls="true",this}version(e){return this._queryParams.version=String(e),this}locale(e){return this._queryParams.locale=e,this}fetch(){return K(this,null,function*(){let e=yield(0,Vx.getData)(this._client,this._urlPath,{params:this._queryParams});return e.asset?e.asset:e})}};var Gx=Te(Dn(),1);var qx=class{constructor(){this._queryParams={}}paginate(e){return this._queryParams.skip=e?.skip||0,this._queryParams.limit=e?.limit||10,this}next(){return this._queryParams.skip||this.paginate(),this._queryParams.skip+=this._queryParams.limit,this}previous(){this._queryParams.skip||this.paginate();let e=this._queryParams.skip-this._queryParams.limit;return this._queryParams.skip=e<0?0:e,this}};function zx(e=_d.US,t){if(t)return t;let r="cdn.contentstack.io";return e!==_d.US&&(r=e.toString().toLowerCase()+"-cdn.contentstack.com"),r}function jx(){return typeof window<"u"}function Sh(e){let t={};for(let[r,i]of Object.entries(e))typeof i=="string"?t[r]=encodeURIComponent(i):typeof i=="object"&&i!==null?t[r]=Sh(i):t[r]=i;return t}var Ki=class extends qx{constructor(){super(...arguments),this._parameters={}}includeCount(){return this._queryParams.include_count="true",this}orderByAscending(e){return this._queryParams.asc=e,this}orderByDescending(e){return this._queryParams.desc=e,this}limit(e){return this._queryParams.limit=e,this}skip(e){return this._queryParams.skip=e,this}param(e,t){return this._queryParams[e]=t,this}addParams(e){return this._queryParams=re(re({},this._queryParams),e),this}removeParam(e){return delete this._queryParams[e],this}find(e=!1){return K(this,null,function*(){let t=this._queryParams;if(Object.keys(this._parameters).length>0){let o=re({},this._parameters);e&&(o=Sh(o)),t=ge(re({},this._queryParams),{query:o})}let r={params:t};return this._variants&&(r.headers=ge(re({},r.headers),{"x-cs-variant-uid":this._variants})),yield(0,Gx.getData)(this._client,this._urlPath,r)})}};var Vo=class extends Ki{constructor(e,t,r,i,o,s){super(),this._client=e,this._contentTypeUid=o,this._urlPath=`/content_types/${this._contentTypeUid}/entries`,this._parameters=t||{},this._queryParams=r||{},this._variants=i||"",o||(this._urlPath="/assets"),s&&(this._parameters=re(re({},this._parameters),s))}isValidAlphanumeric(e){return/^[a-zA-Z0-9_.-]+$/.test(e)}isValidRegexPattern(e){if(!/^[a-zA-Z0-9|^$.*+?()[\]{}\\-]+$/.test(e))return!1;try{return new RegExp(e),!0}catch{return!1}}isValidValue(e){return Array.isArray(e)&&e.every(t=>typeof t=="string"||typeof t=="number"||typeof t=="boolean")}
1476where(e,t,r,i){if(!this.isValidAlphanumeric(e))return console.error("Invalid fieldUid:",e),this;if(t==Eh.EQUALS)this._parameters[e]=r;else{let o=re({[t]:r},i);this._parameters[e]=o}return this}regex(e,t,r){if(!this.isValidAlphanumeric(e))return console.error("Invalid fieldUid:",e),this;if(this.isValidRegexPattern(t))return this._parameters[e]={$regex:t},r&&(this._parameters[e].$options=r),this;throw new Error("Invalid regexPattern: Must be a valid regular expression")}whereIn(e,t){if(!this.isValidAlphanumeric(e))throw new Error("Invalid referenceUid: Must be alphanumeric.");return this._parameters[e]={$in_query:t._parameters},this}whereNotIn(e,t){if(!this.isValidAlphanumeric(e))throw new Error("Invalid referenceUid: Must be alphanumeric.");return this._parameters[e]={$nin_query:t._parameters},this}queryOperator(e,...t){let r=[];for(let i of t)r.push(i._parameters);return this._parameters[e]=r,this}getQuery(){return this._parameters}containedIn(e,t){return this.isValidAlphanumeric(e)?this.isValidValue(t)?(this._parameters[e]={$in:t},this):(console.error("Invalid value:",t),this):(console.error("Invalid key:",e),this)}notContainedIn(e,t){return this.isValidAlphanumeric(e)?this.isValidValue(t)?(this._parameters[e]={$nin:t},this):(console.error("Invalid value:",t),this):(console.error("Invalid key:",e),this)}exists(e){return this.isValidAlphanumeric(e)?(this._parameters[e]={$exists:!0},this):(console.error("Invalid key:",e),this)}notExists(e){return this.isValidAlphanumeric(e)?(this._parameters[e]={$exists:!1},this):(console.error("Invalid key:",e),this)}or(...e){let t=[];for(let r of e)t.push(r._parameters);return this._parameters.$or=t,this}and(...e){let t=[];for(let r of e)t.push(r._parameters);return this._parameters.$and=t,this}equalTo(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]=t,this):(console.error("Invalid key:",e),this)}notEqualTo(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]={$ne:t},this):(console.error("Invalid key:",e),this)}referenceIn(e,t){return this.isValidAlphanumeric(e)?(this._parameters[e]={$in_query:t._parameters},this):(console.error("Invalid key:",e),this)}referenceNotIn(e,t){return this.isValidAlphanumeric(e)?(this._parameters[e]={$nin_query:t._parameters},this):(console.error("Invalid key:",e),this)}tags(e){return this.isValidValue(e)?(this._parameters.tags=e,this):(console.error("Invalid value:",e),this)}search(e){return this.isValidAlphanumeric(e)?(this._queryParams.typeahead=e,this):(console.error("Invalid key:",e),this)}lessThan(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]={$lt:t},this):(console.error("Invalid key:",e),this)}lessThanOrEqualTo(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]={$lte:t},this):(console.error("Invalid key:",e),this)}greaterThan(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]={$gt:t},this):(console.error("Invalid key:",e),this)}greaterThanOrEqualTo(e,t){return this.isValidAlphanumeric(e)?typeof t!="string"&&typeof t!="number"?(console.error("Invalid value (expected string or number):",t),this):(this._parameters[e]={$gte:t},this):(console.error("Invalid key:",e),this)}};var Zx=class extends Ki{constructor(e){super(),this._client=e,this._urlPath="/assets"}version(e){return this._queryParams.version=String(e),this}includeDimension(){return this._queryParams.include_dimension="true",this}includeBranch(){return this._queryParams.include_branch="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}relativeUrls(){return this._queryParams.relative_url="true",this}includeFallback(){return this._queryParams.include_fallback="true",this}locale(e){return this._queryParams.locale=e,this}query(){return new Vo(this._client,this._parameters,this._queryParams)}};var Jx=Te(Dn(),1);var Kx=Te(Dn(),1);var Yx=class{constructor(e,t,r){this._queryParams={},this._client=e,this._contentTypeUid=t,this._entryUid=r,this._urlPath=`/content_types/${this._contentTypeUid}/entries/${this._entryUid}`,this._variants=""}includeFallback(){return this._queryParams.include_fallback="true",this}variants(e){return Array.isArray(e)&&e.length>0?this._variants=e.join(","):typeof e=="string"&&e.length>0&&(this._variants=e),this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeEmbeddedItems(){return this._queryParams["include_embedded_items[]"]="BASE",this}includeReference(...e){return e.length?e.forEach(t=>{Array.isArray(this._queryParams["include[]"])||(this._queryParams["include[]"]=[]),this._queryParams["include[]"].push(...Array.isArray(t)?t:[t])}):console.error("Argument should be a String or an Array."),this}includeContentType(){return this._queryParams.include_content_type="true",this}includeBranch(){return this._queryParams.include_branch="true",this}locale(e){return this._queryParams.locale=e,this}fetch(){return K(this,null,function*(){let e={params:this._queryParams};this._variants&&(e.headers=ge(re({},e.headers),{"x-cs-variant-uid":this._variants}));let t=yield(0,Kx.getData)(this._client,this._urlPath,e);return t.entry?t.entry:t})}addParams(e){return this._queryParams=re(re({},this._queryParams),e),this}except(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`except[BASE][${t}]`]=r,t++}else this._queryParams["except[BASE][]"]=e;return this}only(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`only[BASE][${t}]`]=r,t++}else this._queryParams["only[BASE][]"]=e;return this}};var Xx=class extends Ki{constructor(e,t){super(),this._client=e,this._contentTypeUid=t,this._urlPath=`/content_types/${this._contentTypeUid}/entries`,this._variants=""}except(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`except[BASE][${t}]`]=r,t++}else this._queryParams["except[BASE][]"]=e;return this}includeBranch(){return this._queryParams.include_branch="true",this}includeContentType(){return this._queryParams.include_content_type="true",this}includeEmbeddedItems(){return this._queryParams["include_embedded_items[]"]="BASE",this}includeFallback(){return this._queryParams.include_fallback="true",this}includeMetadata(){return this._queryParams.include_metadata="true",this}includeReference(...e){return e.length?e.forEach(t=>{Array.isArray(this._queryParams["include[]"])||(this._queryParams["include[]"]=[]),this._queryParams["include[]"].push(...Array.isArray(t)?t:[t])}):console.error("Argument should be a String or an Array."),this}includeReferenceContentTypeUID(){return this._queryParams.include_reference_content_type_uid="true",this}
1476includeSchema(){return this._queryParams.include_schema="true",this}locale(e){return this._queryParams.locale=e,this}only(e){if(Array.isArray(e)){let t=0;for(let r of e)this._queryParams[`only[BASE][${t}]`]=r,t++}else this._queryParams["only[BASE][]"]=e;return this}query(e){return e?new Vo(this._client,this._parameters,this._queryParams,this._variants,this._contentTypeUid,e):new Vo(this._client,this._parameters,this._queryParams,this._variants,this._contentTypeUid)}variants(e){return Array.isArray(e)&&e.length>0?this._variants=e.join(","):typeof e=="string"&&e.length>0&&(this._variants=e),this}};var Qx=class{constructor(e,t){this._queryParams={},this._client=e,this._contentTypeUid=t,this._urlPath=`/content_types/${this._contentTypeUid}`}entry(e){return e?new Yx(this._client,this._contentTypeUid,e):new Xx(this._client,this._contentTypeUid)}fetch(){return K(this,null,function*(){let e=yield(0,Jx.getData)(this._client,this._urlPath);return e.content_type?e.content_type:e})}};var ew=Te(Dn(),1);var tw=class{constructor(e){this._queryParams={},this._client=e,this._urlPath="/content_types"}includeGlobalFieldSchema(){return this._queryParams.include_global_field_schema="true",this}find(){return K(this,null,function*(){return yield(0,ew.getData)(this._client,this._urlPath,{params:this._queryParams})})}};var Ah=Te(Dn(),1),Th=Te(nw(),1);function iw(i){return K(this,arguments,function*(e,t={},r=!1){let o={params:t},s="/stacks/sync";if("paginationToken"in t||"syncToken"in t||(o.params=ge(re({},t),{init:!0})),t.type&&typeof t.type!="string"){let f=t.type;o.params=ge(re({},o.params),{type:f.join(",")})}let l=yield(0,Ah.getData)(e,s,{params:Th.default.decamelizeKeys(o.params)}),c=l.data;for(;r&&"pagination_token"in l.data;){let f=yield(0,Ah.getData)(e,s,Th.default.decamelizeKeys({paginationToken:c.pagination_token}));f.data.items=re(re({},l.data.items),f.data.items),l=re({},f)}return l.data})}var ow=class extends Vo{constructor(e){super(e,{},{}),this._client=e,this._urlPath="/taxonomies/entries"}};var aw=class extends Ki{constructor(e){super(),this._client=e,this._urlPath="/global_fields"}includeBranch(){return this._queryParams.include_branch="true",this}};var sw=Te(Dn(),1);var lw=class{constructor(e,t){this._queryParams={},this._client=e,this._urlPath=`/global_fields/${t}`}includeBranch(){return this._queryParams.include_branch="true",this}fetch(){return K(this,null,function*(){return(yield(0,sw.getData)(this._client,this._urlPath,{params:this._queryParams})).global_field})}};var cw=class{constructor(e,t){this._client=e,this.config=t,this._client.stackConfig=this.config}asset(e){return e?new Wx(this._client,e):new Zx(this._client)}contentType(e){return e?new Qx(this._client,e):new tw(this._client)}taxonomy(){return new ow(this._client)}globalField(e){return e?new lw(this._client,e):new aw(this._client)}setLocale(e){this.config.locale=e,this._client.defaults.params.locale=e}sync(){return K(this,arguments,function*(e={},t=!1){return yield iw(this._client,e,t)})}livePreviewQuery(e){if(this.config.live_preview){let t=re({},this.config.live_preview);e.live_preview?t=ge(re({},t),{live_preview:e.live_preview,contentTypeUid:e.contentTypeUid||e.content_type_uid,entryUid:e.entryUid||e.entry_uid,preview_timestamp:e.preview_timestamp||"",include_applied_variants:e.include_applied_variants||!1}):t=ge(re({},t),{live_preview:"",contentTypeUid:"",entryUid:"",preview_timestamp:"",include_applied_variants:!1}),this._client.stackConfig.live_preview=t}e.hasOwnProperty("release_id")?this._client.defaults.headers.release_id=e.release_id:delete this._client.defaults.headers.release_id,e.hasOwnProperty("preview_timestamp")?this._client.defaults.headers.preview_timestamp=e.preview_timestamp:delete this._client.defaults.headers.preview_timestamp}getClient(){return this._client}getLastActivities(){return K(this,null,function*(){try{return yield(0,uw.getData)(this._client,"/content_types",{params:{only_last_activity:!0,environment:this.config.environment}})}catch{throw new Error("Error fetching last activities")}})}setPort(e){return typeof e=="number"&&(this.config.port=e),this}setDebug(e){return typeof e=="boolean"&&(this.config.debug=e),this}};var mj=Te(Tw(),1);var hj="{{VERSION}}";function vj(e){let t=re({defaultHostname:"cdn.contentstack.io",headers:{},params:{},live_preview:{},port:e.port},e);if(t.defaultHostname=e.host||zx(e.region,e.host),e.host=t.defaultHostname,e.apiKey)t.headers.api_key=e.apiKey;else throw new Error("API key for Stack is required.");
1476if(e.deliveryToken)t.headers.access_token=e.deliveryToken;else throw new Error("Delivery token for Stack is required.");if(e.environment)t.params.environment=e.environment;else throw new Error("Environment for Stack is required");if(e.locale&&(t.params.locale=e.locale),e.live_preview&&jx()){let o=new URL(document.location.toString()).searchParams;o.has("live_preview")&&(e.live_preview.live_preview=o.get("live_preview")||e.live_preview.live_preview),o.has("release_id")&&(t.headers.release_id=o.get("release_id")),o.has("preview_timestamp")&&(t.headers.preview_timestamp=o.get("preview_timestamp"))}e.branch&&(t.headers.branch=e.branch),e.early_access&&(t.headers["x-header-ea"]=e.early_access.join(",")),t.headers["X-User-Agent"]="contentstack-delivery-typescript/"+hj;let r=(0,Yi.httpClient)(t);if(e.logHandler&&(r.defaults.logHandler=e.logHandler),e.cacheOptions&&e.cacheOptions.policy!==$o.IGNORE_CACHE){let o=r.defaults.adapter;r.defaults.adapter=s=>new Promise((l,c)=>K(this,null,function*(){e.cacheOptions&&(yield $x(e.cacheOptions,e.apiKey,o,l,c,s))}))}let i=o=>(0,Yi.retryResponseErrorHandler)(o,e,r);return r.interceptors.request.use(Yi.retryRequestHandler),r.interceptors.response.use(Yi.retryResponseHandler,i),e.plugins&&(r.interceptors.request.use(o=>(e&&e.plugins&&e.plugins.forEach(s=>{o=s.onRequest(o)}),o)),r.interceptors.response.use(o=>(e&&e.plugins&&e.plugins.forEach(s=>{o=s.onResponse(o.request,o,o.data)}),o))),new cw(r,e)}var Fh=Bh;var e2e=(()=>{let t=class t{constructor(i,o){this.http=i,this._occEndpoints=o,this.isLocal=!Wp.production,this.apiVersion=this.isLocal?"v2":"v3",this.stackConfig={},this.Stack={},this.isCSPage=new sg(!1)}stack(){return{contentstack:Fh.stack(this.stackConfig),livePreview:Om.onEntryChange}}setContentStackPage(i){this.isCSPage.next(i)}getContentStackPage(){return this.isCSPage.asObservable()}getStackFromBFF(i){let o=this._occEndpoints.buildUrl(mg,{urlParams:{},queryParams:{environment:i}},{baseUrl:!0,prefix:!0,baseSite:!0}).replace("v2",this.apiVersion);return this.isLocal&&(o=o.replace(/^https?:\/\/[^/]+/,Wp.bffBaseUrl)),this.http.get(o).pipe(ug(s=>(this.stackConfig=s?.config,this.stackConfig.host=this.stackConfig.live_preview.host,this.Stack=Fh.stack(this.stackConfig),Om.init({ssr:!1,enable:!0,debug:!0,mode:"preview",stackDetails:{apiKey:this.stackConfig.apiKey,environment:this.stackConfig.environment,branch:this.stackConfig.branch},stackSdk:this.Stack.live_preview}),s)),cg(()=>lg(!1)))}};t.\u0275fac=function(o){return new(o||t)(Vp(dg),Vp(pg))},t.\u0275prov=fg({token:t,factory:t.\u0275fac,providedIn:"root"});let e=t;return e})();export{Om as a,e2e as b};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.