HEX
Server: LiteSpeed
System: Linux standart9.isimtescil.net 3.10.0-962.3.2.lve1.5.26.7.el7.x86_64 #1 SMP Wed Oct 2 07:53:12 EDT 2019 x86_64
User: karalev (5310)
PHP: 8.2.29
Disabled: NONE
Upload Files
File: /home/karalev/www/wp-content/plugins/wp-whatsapp/assets/dist/js/app.js
(()=>{var t={353:function(t){t.exports=function(){"use strict";var t=1e3,e=6e4,n=36e5,i="millisecond",o="second",r="minute",a="hour",s="day",c="week",u="month",l="quarter",d="year",f="date",p="Invalid Date",h=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[^0-9]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,m=/\[([^\]]+)]|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,g={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("_")},v=function(t,e,n){var i=String(t);return!i||i.length>=e?t:""+Array(e+1-i.length).join(n)+t},b={s:v,z:function(t){var e=-t.utcOffset(),n=Math.abs(e),i=Math.floor(n/60),o=n%60;return(e<=0?"+":"-")+v(i,2,"0")+":"+v(o,2,"0")},m:function t(e,n){if(e.date()<n.date())return-t(n,e);var i=12*(n.year()-e.year())+(n.month()-e.month()),o=e.clone().add(i,u),r=n-o<0,a=e.clone().add(i+(r?-1:1),u);return+(-(i+(n-o)/(r?o-a:a-o))||0)},a:function(t){return t<0?Math.ceil(t)||0:Math.floor(t)},p:function(t){return{M:u,y:d,w:c,d:s,D:f,h:a,m:r,s:o,ms:i,Q:l}[t]||String(t||"").toLowerCase().replace(/s$/,"")},u:function(t){return void 0===t}},y="en",w={};w[y]=g;var _=function(t){return t instanceof A},x=function(t,e,n){var i;if(!t)return y;if("string"==typeof t)w[t]&&(i=t),e&&(w[t]=e,i=t);else{var o=t.name;w[o]=t,i=o}return!n&&i&&(y=i),i||!n&&y},T=function(t,e){if(_(t))return t.clone();var n="object"==typeof e?e:{};return n.date=t,n.args=arguments,new A(n)},O=b;O.l=x,O.i=_,O.w=function(t,e){return T(t,{locale:e.$L,utc:e.$u,x:e.$x,$offset:e.$offset})};var A=function(){function g(t){this.$L=x(t.locale,null,!0),this.parse(t)}var v=g.prototype;return v.parse=function(t){this.$d=function(t){var e=t.date,n=t.utc;if(null===e)return new Date(NaN);if(O.u(e))return new Date;if(e instanceof Date)return new Date(e);if("string"==typeof e&&!/Z$/i.test(e)){var i=e.match(h);if(i){var o=i[2]-1||0,r=(i[7]||"0").substring(0,3);return n?new Date(Date.UTC(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)):new Date(i[1],o,i[3]||1,i[4]||0,i[5]||0,i[6]||0,r)}}return new Date(e)}(t),this.$x=t.x||{},this.init()},v.init=function(){var t=this.$d;this.$y=t.getFullYear(),this.$M=t.getMonth(),this.$D=t.getDate(),this.$W=t.getDay(),this.$H=t.getHours(),this.$m=t.getMinutes(),this.$s=t.getSeconds(),this.$ms=t.getMilliseconds()},v.$utils=function(){return O},v.isValid=function(){return!(this.$d.toString()===p)},v.isSame=function(t,e){var n=T(t);return this.startOf(e)<=n&&n<=this.endOf(e)},v.isAfter=function(t,e){return T(t)<this.startOf(e)},v.isBefore=function(t,e){return this.endOf(e)<T(t)},v.$g=function(t,e,n){return O.u(t)?this[e]:this.set(n,t)},v.unix=function(){return Math.floor(this.valueOf()/1e3)},v.valueOf=function(){return this.$d.getTime()},v.startOf=function(t,e){var n=this,i=!!O.u(e)||e,l=O.p(t),p=function(t,e){var o=O.w(n.$u?Date.UTC(n.$y,e,t):new Date(n.$y,e,t),n);return i?o:o.endOf(s)},h=function(t,e){return O.w(n.toDate()[t].apply(n.toDate("s"),(i?[0,0,0,0]:[23,59,59,999]).slice(e)),n)},m=this.$W,g=this.$M,v=this.$D,b="set"+(this.$u?"UTC":"");switch(l){case d:return i?p(1,0):p(31,11);case u:return i?p(1,g):p(0,g+1);case c:var y=this.$locale().weekStart||0,w=(m<y?m+7:m)-y;return p(i?v-w:v+(6-w),g);case s:case f:return h(b+"Hours",0);case a:return h(b+"Minutes",1);case r:return h(b+"Seconds",2);case o:return h(b+"Milliseconds",3);default:return this.clone()}},v.endOf=function(t){return this.startOf(t,!1)},v.$set=function(t,e){var n,c=O.p(t),l="set"+(this.$u?"UTC":""),p=(n={},n[s]=l+"Date",n[f]=l+"Date",n[u]=l+"Month",n[d]=l+"FullYear",n[a]=l+"Hours",n[r]=l+"Minutes",n[o]=l+"Seconds",n[i]=l+"Milliseconds",n)[c],h=c===s?this.$D+(e-this.$W):e;if(c===u||c===d){var m=this.clone().set(f,1);m.$d[p](h),m.init(),this.$d=m.set(f,Math.min(this.$D,m.daysInMonth())).$d}else p&&this.$d[p](h);return this.init(),this},v.set=function(t,e){return this.clone().$set(t,e)},v.get=function(t){return this[O.p(t)]()},v.add=function(i,l){var f,p=this;i=Number(i);var h=O.p(l),m=function(t){var e=T(p);return O.w(e.date(e.date()+Math.round(t*i)),p)};if(h===u)return this.set(u,this.$M+i);if(h===d)return this.set(d,this.$y+i);if(h===s)return m(1);if(h===c)return m(7);var g=(f={},f[r]=e,f[a]=n,f[o]=t,f)[h]||1,v=this.$d.getTime()+i*g;return O.w(v,this)},v.subtract=function(t,e){return this.add(-1*t,e)},v.format=function(t){var e=this;if(!this.isValid())return p;var n=t||"YYYY-MM-DDTHH:mm:ssZ",i=O.z(this),o=this.$locale(),r=this.$H,a=this.$m,s=this.$M,c=o.weekdays,u=o.months,l=function(t,i,o,r){return t&&(t[i]||t(e,n))||o[i].substr(0,r)},d=function(t){return O.s(r%12||12,t,"0")},f=o.meridiem||function(t,e,n){var i=t<12?"AM":"PM";return n?i.toLowerCase():i},h={YY:String(this.$y).slice(-2),YYYY:this.$y,M:s+1,MM:O.s(s+1,2,"0"),MMM:l(o.monthsShort,s,u,3),MMMM:l(u,s),D:this.$D,DD:O.s(this.$D,2,"0"),d:String(this.$W),dd:l(o.weekdaysMin,this.$W,c,2),ddd:l(o.weekdaysShort,this.$W,c,3),dddd:c[this.$W],H:String(r),HH:O.s(r,2,"0"),h:d(1),hh:d(2),a:f(r,a,!0),A:f(r,a,!1),m:String(a),mm:O.s(a,2,"0"),s:String(this.$s),ss:O.s(this.$s,2,"0"),SSS:O.s(this.$ms,3,"0"),Z:i};return n.replace(m,(function(t,e){return e||h[t]||i.replace(":","")}))},v.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},v.diff=function(i,f,p){var h,m=O.p(f),g=T(i),v=(g.utcOffset()-this.utcOffset())*e,b=this-g,y=O.m(this,g);return y=(h={},h[d]=y/12,h[u]=y,h[l]=y/3,h[c]=(b-v)/6048e5,h[s]=(b-v)/864e5,h[a]=b/n,h[r]=b/e,h[o]=b/t,h)[m]||b,p?y:O.a(y)},v.daysInMonth=function(){return this.endOf(u).$D},v.$locale=function(){return w[this.$L]},v.locale=function(t,e){if(!t)return this.$L;var n=this.clone(),i=x(t,e,!0);return i&&(n.$L=i),n},v.clone=function(){return O.w(this.$d,this)},v.toDate=function(){return new Date(this.valueOf())},v.toJSON=function(){return this.isValid()?this.toISOString():null},v.toISOString=function(){return this.$d.toISOString()},v.toString=function(){return this.$d.toUTCString()},g}(),S=A.prototype;return T.prototype=S,[["$ms",i],["$s",o],["$m",r],["$H",a],["$W",s],["$M",u],["$y",d],["$D",f]].forEach((function(t){S[t[1]]=function(e){return this.$g(e,t[0],t[1])}})),T.extend=function(t,e){return t.$i||(t(e,A,T),t.$i=!0),T},T.locale=x,T.isDayjs=_,T.unix=function(t){return T(1e3*t)},T.en=w[y],T.Ls=w,T.p={},T}()},522:function(t){t.exports=function(){"use strict";var t,e,n=1e3,i=6e4,o=36e5,r=864e5,a=/\[([^\]]+)]|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,s=31536e6,c=2592e6,u=/^(-|\+)?P(?:([-+]?[0-9,.]*)Y)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)W)?(?:([-+]?[0-9,.]*)D)?(?:T(?:([-+]?[0-9,.]*)H)?(?:([-+]?[0-9,.]*)M)?(?:([-+]?[0-9,.]*)S)?)?$/,l={years:s,months:c,days:r,hours:o,minutes:i,seconds:n,milliseconds:1,weeks:6048e5},d=function(t){return t instanceof b},f=function(t,e,n){return new b(t,n,e.$l)},p=function(t){return e.p(t)+"s"},h=function(t){return t<0},m=function(t){return h(t)?Math.ceil(t):Math.floor(t)},g=function(t){return Math.abs(t)},v=function(t,e){return t?h(t)?{negative:!0,format:""+g(t)+e}:{negative:!1,format:""+t+e}:{negative:!1,format:""}},b=function(){function h(t,e,n){var i=this;if(this.$d={},this.$l=n,void 0===t&&(this.$ms=0,this.parseFromMilliseconds()),e)return f(t*l[p(e)],this);if("number"==typeof t)return this.$ms=t,this.parseFromMilliseconds(),this;if("object"==typeof t)return Object.keys(t).forEach((function(e){i.$d[p(e)]=t[e]})),this.calMilliseconds(),this;if("string"==typeof t){var o=t.match(u);if(o){var r=o.slice(2).map((function(t){return Number(t)}));return this.$d.years=r[0],this.$d.months=r[1],this.$d.weeks=r[2],this.$d.days=r[3],this.$d.hours=r[4],this.$d.minutes=r[5],this.$d.seconds=r[6],this.calMilliseconds(),this}}return this}var g=h.prototype;return g.calMilliseconds=function(){var t=this;this.$ms=Object.keys(this.$d).reduce((function(e,n){return e+(t.$d[n]||0)*l[n]}),0)},g.parseFromMilliseconds=function(){var t=this.$ms;this.$d.years=m(t/s),t%=s,this.$d.months=m(t/c),t%=c,this.$d.days=m(t/r),t%=r,this.$d.hours=m(t/o),t%=o,this.$d.minutes=m(t/i),t%=i,this.$d.seconds=m(t/n),t%=n,this.$d.milliseconds=t},g.toISOString=function(){var t=v(this.$d.years,"Y"),e=v(this.$d.months,"M"),n=+this.$d.days||0;this.$d.weeks&&(n+=7*this.$d.weeks);var i=v(n,"D"),o=v(this.$d.hours,"H"),r=v(this.$d.minutes,"M"),a=this.$d.seconds||0;this.$d.milliseconds&&(a+=this.$d.milliseconds/1e3);var s=v(a,"S"),c=t.negative||e.negative||i.negative||o.negative||r.negative||s.negative,u=o.format||r.format||s.format?"T":"",l=(c?"-":"")+"P"+t.format+e.format+i.format+u+o.format+r.format+s.format;return"P"===l||"-P"===l?"P0D":l},g.toJSON=function(){return this.toISOString()},g.format=function(t){var n=t||"YYYY-MM-DDTHH:mm:ss",i={Y:this.$d.years,YY:e.s(this.$d.years,2,"0"),YYYY:e.s(this.$d.years,4,"0"),M:this.$d.months,MM:e.s(this.$d.months,2,"0"),D:this.$d.days,DD:e.s(this.$d.days,2,"0"),H:this.$d.hours,HH:e.s(this.$d.hours,2,"0"),m:this.$d.minutes,mm:e.s(this.$d.minutes,2,"0"),s:this.$d.seconds,ss:e.s(this.$d.seconds,2,"0"),SSS:e.s(this.$d.milliseconds,3,"0")};return n.replace(a,(function(t,e){return e||String(i[t])}))},g.as=function(t){return this.$ms/l[p(t)]},g.get=function(t){var e=this.$ms,n=p(t);return"milliseconds"===n?e%=1e3:e="weeks"===n?m(e/l[n]):this.$d[n],0===e?0:e},g.add=function(t,e,n){var i;return i=e?t*l[p(e)]:d(t)?t.$ms:f(t,this).$ms,f(this.$ms+i*(n?-1:1),this)},g.subtract=function(t,e){return this.add(t,e,!0)},g.locale=function(t){var e=this.clone();return e.$l=t,e},g.clone=function(){return f(this.$ms,this)},g.humanize=function(e){return t().add(this.$ms,"ms").locale(this.$l).fromNow(!e)},g.milliseconds=function(){return this.get("milliseconds")},g.asMilliseconds=function(){return this.as("milliseconds")},g.seconds=function(){return this.get("seconds")},g.asSeconds=function(){return this.as("seconds")},g.minutes=function(){return this.get("minutes")},g.asMinutes=function(){return this.as("minutes")},g.hours=function(){return this.get("hours")},g.asHours=function(){return this.as("hours")},g.days=function(){return this.get("days")},g.asDays=function(){return this.as("days")},g.weeks=function(){return this.get("weeks")},g.asWeeks=function(){return this.as("weeks")},g.months=function(){return this.get("months")},g.asMonths=function(){return this.as("months")},g.years=function(){return this.get("years")},g.asYears=function(){return this.as("years")},h}();return function(n,i,o){t=o,e=o().$utils(),o.duration=function(t,e){var n=o.locale();return f(t,{$l:n},e)},o.isDuration=d;var r=i.prototype.add,a=i.prototype.subtract;i.prototype.add=function(t,e){return d(t)&&(t=t.asMilliseconds()),r.bind(this)(t,e)},i.prototype.subtract=function(t,e){return d(t)&&(t=t.asMilliseconds()),a.bind(this)(t,e)}}}()},569:function(t){t.exports=function(){"use strict";var t={year:0,month:1,day:2,hour:3,minute:4,second:5},e={};return function(n,i,o){var r,a=function(t,n,i){void 0===i&&(i={});var o=new Date(t);return function(t,n){void 0===n&&(n={});var i=n.timeZoneName||"short",o=t+"|"+i,r=e[o];return r||(r=new Intl.DateTimeFormat("en-US",{hour12:!1,timeZone:t,year:"numeric",month:"2-digit",day:"2-digit",hour:"2-digit",minute:"2-digit",second:"2-digit",timeZoneName:i}),e[o]=r),r}(n,i).formatToParts(o)},s=function(e,n){for(var i=a(e,n),r=[],s=0;s<i.length;s+=1){var c=i[s],u=c.type,l=c.value,d=t[u];d>=0&&(r[d]=parseInt(l,10))}var f=r[3],p=24===f?0:f,h=r[0]+"-"+r[1]+"-"+r[2]+" "+p+":"+r[4]+":"+r[5]+":000",m=+e;return(o.utc(h).valueOf()-(m-=m%1e3))/6e4},c=i.prototype;c.tz=function(t,e){void 0===t&&(t=r);var n=this.utcOffset(),i=this.toDate(),a=i.toLocaleString("en-US",{timeZone:t}),s=Math.round((i-new Date(a))/1e3/60),c=o(a).$set("millisecond",this.$ms).utcOffset(15*-Math.round(i.getTimezoneOffset()/15)-s,!0);if(e){var u=c.utcOffset();c=c.add(n-u,"minute")}return c.$x.$timezone=t,c},c.offsetName=function(t){var e=this.$x.$timezone||o.tz.guess(),n=a(this.valueOf(),e,{timeZoneName:t}).find((function(t){return"timezonename"===t.type.toLowerCase()}));return n&&n.value};var u=c.startOf;c.startOf=function(t,e){if(!this.$x||!this.$x.$timezone)return u.call(this,t,e);var n=o(this.format("YYYY-MM-DD HH:mm:ss:SSS"));return u.call(n,t,e).tz(this.$x.$timezone,!0)},o.tz=function(t,e,n){var i=n&&e,a=n||e||r,c=s(+o(),a);if("string"!=typeof t)return o(t).tz(a);var u=function(t,e,n){var i=t-60*e*1e3,o=s(i,n);if(e===o)return[i,e];var r=s(i-=60*(o-e)*1e3,n);return o===r?[i,o]:[t-60*Math.min(o,r)*1e3,Math.max(o,r)]}(o.utc(t,i).valueOf(),c,a),l=u[0],d=u[1],f=o(l).utcOffset(d);return f.$x.$timezone=a,f},o.tz.guess=function(){return Intl.DateTimeFormat().resolvedOptions().timeZone},o.tz.setDefault=function(t){r=t}}}()},826:function(t){t.exports=function(){"use strict";var t="minute",e=/[+-]\d\d(?::?\d\d)?/g,n=/([+-]|\d\d)/g;return function(i,o,r){var a=o.prototype;r.utc=function(t){return new o({date:t,utc:!0,args:arguments})},a.utc=function(e){var n=r(this.toDate(),{locale:this.$L,utc:!0});return e?n.add(this.utcOffset(),t):n},a.local=function(){return r(this.toDate(),{locale:this.$L,utc:!1})};var s=a.parse;a.parse=function(t){t.utc&&(this.$u=!0),this.$utils().u(t.$offset)||(this.$offset=t.$offset),s.call(this,t)};var c=a.init;a.init=function(){if(this.$u){var t=this.$d;this.$y=t.getUTCFullYear(),this.$M=t.getUTCMonth(),this.$D=t.getUTCDate(),this.$W=t.getUTCDay(),this.$H=t.getUTCHours(),this.$m=t.getUTCMinutes(),this.$s=t.getUTCSeconds(),this.$ms=t.getUTCMilliseconds()}else c.call(this)};var u=a.utcOffset;a.utcOffset=function(i,o){var r=this.$utils().u;if(r(i))return this.$u?0:r(this.$offset)?u.call(this):this.$offset;if("string"==typeof i&&null===(i=function(t){void 0===t&&(t="");var i=t.match(e);if(!i)return null;var o=(""+i[0]).match(n)||["-",0,0],r=o[0],a=60*+o[1]+ +o[2];return 0===a?0:"+"===r?a:-a}(i)))return this;var a=Math.abs(i)<=16?60*i:i,s=this;if(o)return s.$offset=a,s.$u=0===i,s;if(0!==i){var c=this.$u?this.toDate().getTimezoneOffset():-1*this.utcOffset();(s=this.local().add(a+c,t)).$offset=a,s.$x.$localOffset=c}else s=this.utc();return s};var l=a.format;a.format=function(t){var e=t||(this.$u?"YYYY-MM-DDTHH:mm:ss[Z]":"");return l.call(this,e)},a.valueOf=function(){var t=this.$utils().u(this.$offset)?0:this.$offset+(this.$x.$localOffset||(new Date).getTimezoneOffset());return this.$d.valueOf()-6e4*t},a.isUTC=function(){return!!this.$u},a.toISOString=function(){return this.toDate().toISOString()},a.toString=function(){return this.toDate().toUTCString()};var d=a.toDate;a.toDate=function(t){return"s"===t&&this.$offset?r(this.format("YYYY-MM-DD HH:mm:ss:SSS")).toDate():d.call(this)};var f=a.diff;a.diff=function(t,e,n){if(t&&this.$u===t.$u)return f.call(this,t,e,n);var i=this.local(),o=r(t).local();return f.call(i,o,e,n)}}}()},838:function(t){t.exports=function(){"use strict";const{entries:t,setPrototypeOf:e,isFrozen:n,getPrototypeOf:i,getOwnPropertyDescriptor:o}=Object;let{freeze:r,seal:a,create:s}=Object,{apply:c,construct:u}="undefined"!=typeof Reflect&&Reflect;r||(r=function(t){return t}),a||(a=function(t){return t}),c||(c=function(t,e,n){return t.apply(e,n)}),u||(u=function(t,e){return new t(...e)});const l=x(Array.prototype.forEach),d=x(Array.prototype.pop),f=x(Array.prototype.push),p=x(String.prototype.toLowerCase),h=x(String.prototype.toString),m=x(String.prototype.match),g=x(String.prototype.replace),v=x(String.prototype.indexOf),b=x(String.prototype.trim),y=x(Object.prototype.hasOwnProperty),w=x(RegExp.prototype.test),_=T(TypeError);function x(t){return function(e){for(var n=arguments.length,i=new Array(n>1?n-1:0),o=1;o<n;o++)i[o-1]=arguments[o];return c(t,e,i)}}function T(t){return function(){for(var e=arguments.length,n=new Array(e),i=0;i<e;i++)n[i]=arguments[i];return u(t,n)}}function O(t,i){let o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:p;e&&e(t,null);let r=i.length;for(;r--;){let e=i[r];if("string"==typeof e){const t=o(e);t!==e&&(n(i)||(i[r]=t),e=t)}t[e]=!0}return t}function A(t){for(let e=0;e<t.length;e++)y(t,e)||(t[e]=null);return t}function S(e){const n=s(null);for(const[i,o]of t(e))y(e,i)&&(Array.isArray(o)?n[i]=A(o):o&&"object"==typeof o&&o.constructor===Object?n[i]=S(o):n[i]=o);return n}function E(t,e){for(;null!==t;){const n=o(t,e);if(n){if(n.get)return x(n.get);if("function"==typeof n.value)return x(n.value)}t=i(t)}function n(){return null}return n}const C=r(["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"]),D=r(["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"]),k=r(["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"]),$=r(["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"]),M=r(["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"]),L=r(["maction","maligngroup","malignmark","mlongdiv","mscarries","mscarry","msgroup","mstack","msline","msrow","semantics","annotation","annotation-xml","mprescripts","none"]),N=r(["#text"]),j=r(["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"]),I=r(["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"]),R=r(["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","subscriptshift","supscriptshift","symmetric","voffset","width","xmlns"]),P=r(["xlink:href","xml:id","xlink:title","xml:space","xmlns:xlink"]),H=a(/\{\{[\w\W]*|[\w\W]*\}\}/gm),B=a(/<%[\w\W]*|[\w\W]*%>/gm),U=a(/\${[\w\W]*}/gm),z=a(/^data-[\-\w.\u00B7-\uFFFF]/),W=a(/^aria-[\-\w]+$/),F=a(/^(?:(?:(?:f|ht)tps?|mailto|tel|callto|sms|cid|xmpp):|[^a-z]|[a-z+.\-]+(?:[^a-z+.\-:]|$))/i),Y=a(/^(?:\w+script|data):/i),V=a(/[\u0000-\u0020\u00A0\u1680\u180E\u2000-\u2029\u205F\u3000]/g),Q=a(/^html$/i),q=a(/^[a-z][.\w]*(-[.\w]+)+$/i);var G=Object.freeze({__proto__:null,MUSTACHE_EXPR:H,ERB_EXPR:B,TMPLIT_EXPR:U,DATA_ATTR:z,ARIA_ATTR:W,IS_ALLOWED_URI:F,IS_SCRIPT_OR_DATA:Y,ATTR_WHITESPACE:V,DOCTYPE_NAME:Q,CUSTOM_ELEMENT:q});const Z={element:1,attribute:2,text:3,cdataSection:4,entityReference:5,entityNode:6,progressingInstruction:7,comment:8,document:9,documentType:10,documentFragment:11,notation:12},X=function(){return"undefined"==typeof window?null:window},J=function(t,e){if("object"!=typeof t||"function"!=typeof t.createPolicy)return null;let n=null;const i="data-tt-policy-suffix";e&&e.hasAttribute(i)&&(n=e.getAttribute(i));const o="dompurify"+(n?"#"+n:"");try{return t.createPolicy(o,{createHTML:t=>t,createScriptURL:t=>t})}catch(t){return console.warn("TrustedTypes policy "+o+" could not be created."),null}};function K(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:X();const n=t=>K(t);if(n.version="3.1.7",n.removed=[],!e||!e.document||e.document.nodeType!==Z.document)return n.isSupported=!1,n;let{document:i}=e;const o=i,a=o.currentScript,{DocumentFragment:c,HTMLTemplateElement:u,Node:x,Element:T,NodeFilter:A,NamedNodeMap:H=e.NamedNodeMap||e.MozNamedAttrMap,HTMLFormElement:B,DOMParser:U,trustedTypes:z}=e,W=T.prototype,Y=E(W,"cloneNode"),V=E(W,"remove"),q=E(W,"nextSibling"),tt=E(W,"childNodes"),et=E(W,"parentNode");if("function"==typeof u){const t=i.createElement("template");t.content&&t.content.ownerDocument&&(i=t.content.ownerDocument)}let nt,it="";const{implementation:ot,createNodeIterator:rt,createDocumentFragment:at,getElementsByTagName:st}=i,{importNode:ct}=o;let ut={};n.isSupported="function"==typeof t&&"function"==typeof et&&ot&&void 0!==ot.createHTMLDocument;const{MUSTACHE_EXPR:lt,ERB_EXPR:dt,TMPLIT_EXPR:ft,DATA_ATTR:pt,ARIA_ATTR:ht,IS_SCRIPT_OR_DATA:mt,ATTR_WHITESPACE:gt,CUSTOM_ELEMENT:vt}=G;let{IS_ALLOWED_URI:bt}=G,yt=null;const wt=O({},[...C,...D,...k,...M,...N]);let _t=null;const xt=O({},[...j,...I,...R,...P]);let Tt=Object.seal(s(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}})),Ot=null,At=null,St=!0,Et=!0,Ct=!1,Dt=!0,kt=!1,$t=!0,Mt=!1,Lt=!1,Nt=!1,jt=!1,It=!1,Rt=!1,Pt=!0,Ht=!1;const Bt="user-content-";let Ut=!0,zt=!1,Wt={},Ft=null;const Yt=O({},["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"]);let Vt=null;const Qt=O({},["audio","video","img","source","image","track"]);let qt=null;const Gt=O({},["alt","class","for","id","label","name","pattern","placeholder","role","summary","title","value","style","xmlns"]),Zt="http://www.w3.org/1998/Math/MathML",Xt="http://www.w3.org/2000/svg",Jt="http://www.w3.org/1999/xhtml";let Kt=Jt,te=!1,ee=null;const ne=O({},[Zt,Xt,Jt],h);let ie=null;const oe=["application/xhtml+xml","text/html"],re="text/html";let ae=null,se=null;const ce=i.createElement("form"),ue=function(t){return t instanceof RegExp||t instanceof Function},le=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};if(!se||se!==t){if(t&&"object"==typeof t||(t={}),t=S(t),ie=-1===oe.indexOf(t.PARSER_MEDIA_TYPE)?re:t.PARSER_MEDIA_TYPE,ae="application/xhtml+xml"===ie?h:p,yt=y(t,"ALLOWED_TAGS")?O({},t.ALLOWED_TAGS,ae):wt,_t=y(t,"ALLOWED_ATTR")?O({},t.ALLOWED_ATTR,ae):xt,ee=y(t,"ALLOWED_NAMESPACES")?O({},t.ALLOWED_NAMESPACES,h):ne,qt=y(t,"ADD_URI_SAFE_ATTR")?O(S(Gt),t.ADD_URI_SAFE_ATTR,ae):Gt,Vt=y(t,"ADD_DATA_URI_TAGS")?O(S(Qt),t.ADD_DATA_URI_TAGS,ae):Qt,Ft=y(t,"FORBID_CONTENTS")?O({},t.FORBID_CONTENTS,ae):Yt,Ot=y(t,"FORBID_TAGS")?O({},t.FORBID_TAGS,ae):{},At=y(t,"FORBID_ATTR")?O({},t.FORBID_ATTR,ae):{},Wt=!!y(t,"USE_PROFILES")&&t.USE_PROFILES,St=!1!==t.ALLOW_ARIA_ATTR,Et=!1!==t.ALLOW_DATA_ATTR,Ct=t.ALLOW_UNKNOWN_PROTOCOLS||!1,Dt=!1!==t.ALLOW_SELF_CLOSE_IN_ATTR,kt=t.SAFE_FOR_TEMPLATES||!1,$t=!1!==t.SAFE_FOR_XML,Mt=t.WHOLE_DOCUMENT||!1,jt=t.RETURN_DOM||!1,It=t.RETURN_DOM_FRAGMENT||!1,Rt=t.RETURN_TRUSTED_TYPE||!1,Nt=t.FORCE_BODY||!1,Pt=!1!==t.SANITIZE_DOM,Ht=t.SANITIZE_NAMED_PROPS||!1,Ut=!1!==t.KEEP_CONTENT,zt=t.IN_PLACE||!1,bt=t.ALLOWED_URI_REGEXP||F,Kt=t.NAMESPACE||Jt,Tt=t.CUSTOM_ELEMENT_HANDLING||{},t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.tagNameCheck)&&(Tt.tagNameCheck=t.CUSTOM_ELEMENT_HANDLING.tagNameCheck),t.CUSTOM_ELEMENT_HANDLING&&ue(t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck)&&(Tt.attributeNameCheck=t.CUSTOM_ELEMENT_HANDLING.attributeNameCheck),t.CUSTOM_ELEMENT_HANDLING&&"boolean"==typeof t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements&&(Tt.allowCustomizedBuiltInElements=t.CUSTOM_ELEMENT_HANDLING.allowCustomizedBuiltInElements),kt&&(Et=!1),It&&(jt=!0),Wt&&(yt=O({},N),_t=[],!0===Wt.html&&(O(yt,C),O(_t,j)),!0===Wt.svg&&(O(yt,D),O(_t,I),O(_t,P)),!0===Wt.svgFilters&&(O(yt,k),O(_t,I),O(_t,P)),!0===Wt.mathMl&&(O(yt,M),O(_t,R),O(_t,P))),t.ADD_TAGS&&(yt===wt&&(yt=S(yt)),O(yt,t.ADD_TAGS,ae)),t.ADD_ATTR&&(_t===xt&&(_t=S(_t)),O(_t,t.ADD_ATTR,ae)),t.ADD_URI_SAFE_ATTR&&O(qt,t.ADD_URI_SAFE_ATTR,ae),t.FORBID_CONTENTS&&(Ft===Yt&&(Ft=S(Ft)),O(Ft,t.FORBID_CONTENTS,ae)),Ut&&(yt["#text"]=!0),Mt&&O(yt,["html","head","body"]),yt.table&&(O(yt,["tbody"]),delete Ot.tbody),t.TRUSTED_TYPES_POLICY){if("function"!=typeof t.TRUSTED_TYPES_POLICY.createHTML)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createHTML" hook.');if("function"!=typeof t.TRUSTED_TYPES_POLICY.createScriptURL)throw _('TRUSTED_TYPES_POLICY configuration option must provide a "createScriptURL" hook.');nt=t.TRUSTED_TYPES_POLICY,it=nt.createHTML("")}else void 0===nt&&(nt=J(z,a)),null!==nt&&"string"==typeof it&&(it=nt.createHTML(""));r&&r(t),se=t}},de=O({},["mi","mo","mn","ms","mtext"]),fe=O({},["annotation-xml"]),pe=O({},["title","style","font","a","script"]),he=O({},[...D,...k,...$]),me=O({},[...M,...L]),ge=function(t){let e=et(t);e&&e.tagName||(e={namespaceURI:Kt,tagName:"template"});const n=p(t.tagName),i=p(e.tagName);return!!ee[t.namespaceURI]&&(t.namespaceURI===Xt?e.namespaceURI===Jt?"svg"===n:e.namespaceURI===Zt?"svg"===n&&("annotation-xml"===i||de[i]):Boolean(he[n]):t.namespaceURI===Zt?e.namespaceURI===Jt?"math"===n:e.namespaceURI===Xt?"math"===n&&fe[i]:Boolean(me[n]):t.namespaceURI===Jt?!(e.namespaceURI===Xt&&!fe[i])&&!(e.namespaceURI===Zt&&!de[i])&&!me[n]&&(pe[n]||!he[n]):!("application/xhtml+xml"!==ie||!ee[t.namespaceURI]))},ve=function(t){f(n.removed,{element:t});try{et(t).removeChild(t)}catch(e){V(t)}},be=function(t,e){try{f(n.removed,{attribute:e.getAttributeNode(t),from:e})}catch(t){f(n.removed,{attribute:null,from:e})}if(e.removeAttribute(t),"is"===t&&!_t[t])if(jt||It)try{ve(e)}catch(t){}else try{e.setAttribute(t,"")}catch(t){}},ye=function(t){let e=null,n=null;if(Nt)t="<remove></remove>"+t;else{const e=m(t,/^[\r\n\t ]+/);n=e&&e[0]}"application/xhtml+xml"===ie&&Kt===Jt&&(t='<html xmlns="http://www.w3.org/1999/xhtml"><head></head><body>'+t+"</body></html>");const o=nt?nt.createHTML(t):t;if(Kt===Jt)try{e=(new U).parseFromString(o,ie)}catch(t){}if(!e||!e.documentElement){e=ot.createDocument(Kt,"template",null);try{e.documentElement.innerHTML=te?it:o}catch(t){}}const r=e.body||e.documentElement;return t&&n&&r.insertBefore(i.createTextNode(n),r.childNodes[0]||null),Kt===Jt?st.call(e,Mt?"html":"body")[0]:Mt?e.documentElement:r},we=function(t){return rt.call(t.ownerDocument||t,t,A.SHOW_ELEMENT|A.SHOW_COMMENT|A.SHOW_TEXT|A.SHOW_PROCESSING_INSTRUCTION|A.SHOW_CDATA_SECTION,null)},_e=function(t){return t instanceof B&&("string"!=typeof t.nodeName||"string"!=typeof t.textContent||"function"!=typeof t.removeChild||!(t.attributes instanceof H)||"function"!=typeof t.removeAttribute||"function"!=typeof t.setAttribute||"string"!=typeof t.namespaceURI||"function"!=typeof t.insertBefore||"function"!=typeof t.hasChildNodes)},xe=function(t){return"function"==typeof x&&t instanceof x},Te=function(t,e,i){ut[t]&&l(ut[t],(t=>{t.call(n,e,i,se)}))},Oe=function(t){let e=null;if(Te("beforeSanitizeElements",t,null),_e(t))return ve(t),!0;const i=ae(t.nodeName);if(Te("uponSanitizeElement",t,{tagName:i,allowedTags:yt}),t.hasChildNodes()&&!xe(t.firstElementChild)&&w(/<[/\w]/g,t.innerHTML)&&w(/<[/\w]/g,t.textContent))return ve(t),!0;if(t.nodeType===Z.progressingInstruction)return ve(t),!0;if($t&&t.nodeType===Z.comment&&w(/<[/\w]/g,t.data))return ve(t),!0;if(!yt[i]||Ot[i]){if(!Ot[i]&&Se(i)){if(Tt.tagNameCheck instanceof RegExp&&w(Tt.tagNameCheck,i))return!1;if(Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(i))return!1}if(Ut&&!Ft[i]){const e=et(t)||t.parentNode,n=tt(t)||t.childNodes;if(n&&e)for(let i=n.length-1;i>=0;--i){const o=Y(n[i],!0);o.__removalCount=(t.__removalCount||0)+1,e.insertBefore(o,q(t))}}return ve(t),!0}return t instanceof T&&!ge(t)?(ve(t),!0):"noscript"!==i&&"noembed"!==i&&"noframes"!==i||!w(/<\/no(script|embed|frames)/i,t.innerHTML)?(kt&&t.nodeType===Z.text&&(e=t.textContent,l([lt,dt,ft],(t=>{e=g(e,t," ")})),t.textContent!==e&&(f(n.removed,{element:t.cloneNode()}),t.textContent=e)),Te("afterSanitizeElements",t,null),!1):(ve(t),!0)},Ae=function(t,e,n){if(Pt&&("id"===e||"name"===e)&&(n in i||n in ce))return!1;if(Et&&!At[e]&&w(pt,e));else if(St&&w(ht,e));else if(!_t[e]||At[e]){if(!(Se(t)&&(Tt.tagNameCheck instanceof RegExp&&w(Tt.tagNameCheck,t)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(t))&&(Tt.attributeNameCheck instanceof RegExp&&w(Tt.attributeNameCheck,e)||Tt.attributeNameCheck instanceof Function&&Tt.attributeNameCheck(e))||"is"===e&&Tt.allowCustomizedBuiltInElements&&(Tt.tagNameCheck instanceof RegExp&&w(Tt.tagNameCheck,n)||Tt.tagNameCheck instanceof Function&&Tt.tagNameCheck(n))))return!1}else if(qt[e]);else if(w(bt,g(n,gt,"")));else if("src"!==e&&"xlink:href"!==e&&"href"!==e||"script"===t||0!==v(n,"data:")||!Vt[t])if(Ct&&!w(mt,g(n,gt,"")));else if(n)return!1;return!0},Se=function(t){return"annotation-xml"!==t&&m(t,vt)},Ee=function(t){Te("beforeSanitizeAttributes",t,null);const{attributes:e}=t;if(!e)return;const i={attrName:"",attrValue:"",keepAttr:!0,allowedAttributes:_t};let o=e.length;for(;o--;){const r=e[o],{name:a,namespaceURI:s,value:c}=r,u=ae(a);let f="value"===a?c:b(c);if(i.attrName=u,i.attrValue=f,i.keepAttr=!0,i.forceKeepAttr=void 0,Te("uponSanitizeAttribute",t,i),f=i.attrValue,i.forceKeepAttr)continue;if(be(a,t),!i.keepAttr)continue;if(!Dt&&w(/\/>/i,f)){be(a,t);continue}kt&&l([lt,dt,ft],(t=>{f=g(f,t," ")}));const p=ae(t.nodeName);if(Ae(p,u,f))if(!Ht||"id"!==u&&"name"!==u||(be(a,t),f=Bt+f),$t&&w(/((--!?|])>)|<\/(style|title)/i,f))be(a,t);else{if(nt&&"object"==typeof z&&"function"==typeof z.getAttributeType)if(s);else switch(z.getAttributeType(p,u)){case"TrustedHTML":f=nt.createHTML(f);break;case"TrustedScriptURL":f=nt.createScriptURL(f)}try{s?t.setAttributeNS(s,a,f):t.setAttribute(a,f),_e(t)?ve(t):d(n.removed)}catch(t){}}}Te("afterSanitizeAttributes",t,null)},Ce=function t(e){let n=null;const i=we(e);for(Te("beforeSanitizeShadowDOM",e,null);n=i.nextNode();)Te("uponSanitizeShadowNode",n,null),Oe(n)||(n.content instanceof c&&t(n.content),Ee(n));Te("afterSanitizeShadowDOM",e,null)};return n.sanitize=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},i=null,r=null,a=null,s=null;if(te=!t,te&&(t="\x3c!--\x3e"),"string"!=typeof t&&!xe(t)){if("function"!=typeof t.toString)throw _("toString is not a function");if("string"!=typeof(t=t.toString()))throw _("dirty is not a string, aborting")}if(!n.isSupported)return t;if(Lt||le(e),n.removed=[],"string"==typeof t&&(zt=!1),zt){if(t.nodeName){const e=ae(t.nodeName);if(!yt[e]||Ot[e])throw _("root node is forbidden and cannot be sanitized in-place")}}else if(t instanceof x)i=ye("\x3c!----\x3e"),r=i.ownerDocument.importNode(t,!0),r.nodeType===Z.element&&"BODY"===r.nodeName||"HTML"===r.nodeName?i=r:i.appendChild(r);else{if(!jt&&!kt&&!Mt&&-1===t.indexOf("<"))return nt&&Rt?nt.createHTML(t):t;if(i=ye(t),!i)return jt?null:Rt?it:""}i&&Nt&&ve(i.firstChild);const u=we(zt?t:i);for(;a=u.nextNode();)Oe(a)||(a.content instanceof c&&Ce(a.content),Ee(a));if(zt)return t;if(jt){if(It)for(s=at.call(i.ownerDocument);i.firstChild;)s.appendChild(i.firstChild);else s=i;return(_t.shadowroot||_t.shadowrootmode)&&(s=ct.call(o,s,!0)),s}let d=Mt?i.outerHTML:i.innerHTML;return Mt&&yt["!doctype"]&&i.ownerDocument&&i.ownerDocument.doctype&&i.ownerDocument.doctype.name&&w(Q,i.ownerDocument.doctype.name)&&(d="<!DOCTYPE "+i.ownerDocument.doctype.name+">\n"+d),kt&&l([lt,dt,ft],(t=>{d=g(d,t," ")})),nt&&Rt?nt.createHTML(d):d},n.setConfig=function(){le(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}),Lt=!0},n.clearConfig=function(){se=null,Lt=!1},n.isValidAttribute=function(t,e,n){se||le({});const i=ae(t),o=ae(e);return Ae(i,o,n)},n.addHook=function(t,e){"function"==typeof e&&(ut[t]=ut[t]||[],f(ut[t],e))},n.removeHook=function(t){if(ut[t])return d(ut[t])},n.removeHooks=function(t){ut[t]&&(ut[t]=[])},n.removeAllHooks=function(){ut={}},n}return K()}()}},e={};function n(i){var o=e[i];if(void 0!==o)return o.exports;var r=e[i]={exports:{}};return t[i].call(r.exports,r,r.exports,n),r.exports}n.n=t=>{var e=t&&t.__esModule?()=>t.default:()=>t;return n.d(e,{a:e}),e},n.d=(t,e)=>{for(var i in e)n.o(e,i)&&!n.o(t,i)&&Object.defineProperty(t,i,{enumerable:!0,get:e[i]})},n.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),(()=>{"use strict";var t=n(353),e=n.n(t),i=n(826),o=n.n(i),r=n(522),a=n.n(r),s=n(569),c=n.n(s);e().extend(o()),e().extend(a()),e().extend(c());const u=window.jQuery,l={autocompleteLoading:function(t){!0!==t?u("#input-users").removeClass("ui-autocomplete-loading"):u("#input-users").addClass("ui-autocomplete-loading")},saveLoading:function(t){t?(u(".wa-save").addClass("disabled"),u(".wa-save span").addClass("dashicons dashicons-update wa-save-loading")):(u(".wa-save").removeClass("disabled"),u(".wa-save span").removeClass("dashicons dashicons-update wa-save-loading"))},parseUtcOffset:function(t){const e=t.split(":");let n,i;return 2===e.length?(n=parseInt(e[0]),i=parseInt(e[1])):(n=parseInt(e[0]),i=0),-1!==t.indexOf("-")?-(60*Math.abs(n)+i):60*n+i},parseTime:function(t){const e=(t||"").split(":");if(e.length>=2){return{hours:parseInt(e[0],10),minutes:parseInt(e[1],10)}}return null},compareTime:function(t,e){const n=this.parseTime(t),i=this.parseTime(e),o=n.minutes+60*n.hours,r=i.minutes+60*i.hours;return o===r?0:o>r?1:-1},hasNumber:function(t){return/\d/.test(t)},calcDiffDuration:function(t,e){return 1e3*(3600*(t.hour-e.hour)+60*(t.minute-e.minute))},getBackTime:function(t){return"online"}},d=l;var f=n(838),p=n.n(f);const h=window.jQuery;var m=[["sunday","Sun"],["monday","Mon"],["tuesday","Tue"],["wednesday","Wed"],["thursday","Thur"],["friday","Fri"],["saturday","Sat"]];const g=function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(h("#selectedAccountTemplate").html()),events:{"click a.btn-remove-account":"setDeactive","click #input-users":"focusInputUser"},initialize:function(){const t=this;this.collection.fetch({reset:!0,data:{action:"njt_wa_load_accounts_ajax",nonce:njt_wa.nonce},type:"POST",beforeSend:function(){d.autocompleteLoading(!0)},success:function(){d.autocompleteLoading(!1),t.registerAutocomplete()},error:function(){console.log("error")}}),this.accountsListView=new(function(t=null){if(null!==t)return Backbone.View.extend({template:_.template(h(t).html()),initialize:function(){this.render()},registerSortable(){void 0===h("#sortable").sortable("instance")&&h("#sortable").sortable({update:function(t,e){const n=h("#sortable").sortable("toArray",{attribute:"data-index"});h.ajax({url:njt_wa.url,type:"POST",data:{action:"njt_wa_set_account_position",type:njt_wa.selectedAccounts.attrPosition,positions:n,nonce:njt_wa.nonce},beforeSend:function(){d.autocompleteLoading(!0)}}).done((function(t){d.autocompleteLoading(!1),t.success}))}})},render:function(){const t=_.sortBy(this.collection.active(),njt_wa.selectedAccounts.attrPosition);return this.$el.html(this.template({activeAccounts:t,daysOfWeek:m})),this.registerSortable(),this}})}("#accountListTemplate"))({collection:this.collection}),this.listenTo(this.collection,"sync",this.renderAccountList),this.render()},registerAutocomplete:function(){const t=this;h("#input-users").autocomplete({minLength:0,source:this.collection.deactive(),classes:{"ui-autocomplete":"nta-list-box-select"},select:function(e,n){return t.collection.get(n.item.accountId).setActive({onDone:function(){h("#input-users").autocomplete("option","source",t.collection.deactive())}}),!1}}).autocomplete("instance")._renderItem=function(t,e){const n=new(function(t=null){if(null!==t)return Backbone.View.extend({template:_.template(h(t).html()),initialize:function(){this.render()},render:function(){return this.$el.html(this.template({account:this.model,daysOfWeek:m})),this}})}("#accountItemView"))({model:e});return h("<li>").append(n.$el).appendTo(t)}},setDeactive(t){const e=h(t.target).data("remove"),n=this.collection.get(e),i=this;n.setDeactive({onDone:function(){h("#input-users").autocomplete("option","source",i.collection.deactive())}})},focusInputUser(){h("#input-users").autocomplete("search","")},renderAccountList:function(){this.accountsListView.render()},render:function(){return this.$el.html(this.template()),this.$el.append(this.accountsListView.$el),this}})},v=window.jQuery,{styles:b}=window.njt_wa.settings.widget,y=window.buttonStyles,w=Backbone.Model.extend({defaults:{...b},isLaunch:!1}),x=Backbone.Model.extend({defaults:{...y}}),T=Backbone.Model.extend({idAttribute:"accountId",url:njt_wa.url,defaults:{accountId:"",avatar:"",accountName:"",dayOffsText:"",daysOfWeekWorking:[],isAlwaysAvailable:"ON",number:"",predefinedText:"",title:"",wc_position:"",wc_show:"OFF",widget_position:"",widget_show:"OFF",willBeBackText:""},setActive:function(t){this.save(null,{type:"POST",contentType:"application/x-www-form-urlencoded",data:v.param({action:"njt_wa_set_account_status",nonce:njt_wa.nonce,status:"ON",accountId:this.get("accountId"),type:njt_wa.selectedAccounts.attrActive}),beforeSend:function(){d.autocompleteLoading(!0)},success:function(e,n){d.autocompleteLoading(!1),n.success?(e.set(njt_wa.selectedAccounts.attrActive,"ON"),t.onDone()):console.log("Can't update active!")},error:function(t,e){d.autocompleteLoading(!1),console.log("Something went wrong!")}})},setDeactive:function(t){this.save(null,{type:"POST",contentType:"application/x-www-form-urlencoded",data:v.param({action:"njt_wa_set_account_status",nonce:njt_wa.nonce,status:"OFF",accountId:this.get("accountId"),type:njt_wa.selectedAccounts.attrActive}),beforeSend:function(){d.autocompleteLoading(!0)},success:function(e,n){d.autocompleteLoading(!1),n.success?(e.set(njt_wa.selectedAccounts.attrActive,"OFF"),t.onDone()):console.log("Can't update active!")},error:function(t,e){d.autocompleteLoading(!1),console.log("Something went wrong!")}})}}),O=Backbone.Collection.extend({url:njt_wa.url,parse:function(t){return t.data},deactive:function(){return this.where({[njt_wa.selectedAccounts.attrActive]:"OFF"}).map((function(t){return t.toJSON()}))},active:function(){return this.where({[njt_wa.selectedAccounts.attrActive]:"ON"}).map((function(t){return t.attributes.status=d.getBackTime(t.attributes),t.toJSON()}))},model:T});function A(t){var e=t.getBoundingClientRect();return{width:e.width,height:e.height,top:e.top,right:e.right,bottom:e.bottom,left:e.left,x:e.left,y:e.top}}function S(t){if(null==t)return window;if("[object Window]"!==t.toString()){var e=t.ownerDocument;return e&&e.defaultView||window}return t}function E(t){var e=S(t);return{scrollLeft:e.pageXOffset,scrollTop:e.pageYOffset}}function C(t){return t instanceof S(t).Element||t instanceof Element}function D(t){return t instanceof S(t).HTMLElement||t instanceof HTMLElement}function k(t){return"undefined"!=typeof ShadowRoot&&(t instanceof S(t).ShadowRoot||t instanceof ShadowRoot)}function $(t){return t?(t.nodeName||"").toLowerCase():null}function M(t){return((C(t)?t.ownerDocument:t.document)||window.document).documentElement}function L(t){return A(M(t)).left+E(t).scrollLeft}function N(t){return S(t).getComputedStyle(t)}function j(t){var e=N(t),n=e.overflow,i=e.overflowX,o=e.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+i)}function I(t,e,n){void 0===n&&(n=!1);var i,o,r=M(e),a=A(t),s=D(e),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(s||!s&&!n)&&(("body"!==$(e)||j(r))&&(c=(i=e)!==S(i)&&D(i)?{scrollLeft:(o=i).scrollLeft,scrollTop:o.scrollTop}:E(i)),D(e)?((u=A(e)).x+=e.clientLeft,u.y+=e.clientTop):r&&(u.x=L(r))),{x:a.left+c.scrollLeft-u.x,y:a.top+c.scrollTop-u.y,width:a.width,height:a.height}}function R(t){var e=A(t),n=t.offsetWidth,i=t.offsetHeight;return Math.abs(e.width-n)<=1&&(n=e.width),Math.abs(e.height-i)<=1&&(i=e.height),{x:t.offsetLeft,y:t.offsetTop,width:n,height:i}}function P(t){return"html"===$(t)?t:t.assignedSlot||t.parentNode||(k(t)?t.host:null)||M(t)}function H(t){return["html","body","#document"].indexOf($(t))>=0?t.ownerDocument.body:D(t)&&j(t)?t:H(P(t))}function B(t,e){var n;void 0===e&&(e=[]);var i=H(t),o=i===(null==(n=t.ownerDocument)?void 0:n.body),r=S(i),a=o?[r].concat(r.visualViewport||[],j(i)?i:[]):i,s=e.concat(a);return o?s:s.concat(B(P(a)))}function U(t){return["table","td","th"].indexOf($(t))>=0}function z(t){return D(t)&&"fixed"!==N(t).position?t.offsetParent:null}function W(t){for(var e=S(t),n=z(t);n&&U(n)&&"static"===N(n).position;)n=z(n);return n&&("html"===$(n)||"body"===$(n)&&"static"===N(n).position)?e:n||function(t){var e=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&D(t)&&"fixed"===N(t).position)return null;for(var n=P(t);D(n)&&["html","body"].indexOf($(n))<0;){var i=N(n);if("none"!==i.transform||"none"!==i.perspective||"paint"===i.contain||-1!==["transform","perspective"].indexOf(i.willChange)||e&&"filter"===i.willChange||e&&i.filter&&"none"!==i.filter)return n;n=n.parentNode}return null}(t)||e}var F="top",Y="bottom",V="right",Q="left",q="auto",G=[F,Y,V,Q],Z="start",X="end",J="viewport",K="popper",tt=G.reduce((function(t,e){return t.concat([e+"-"+Z,e+"-"+X])}),[]),et=[].concat(G,[q]).reduce((function(t,e){return t.concat([e,e+"-"+Z,e+"-"+X])}),[]),nt=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function it(t){var e=new Map,n=new Set,i=[];function o(t){n.add(t.name),[].concat(t.requires||[],t.requiresIfExists||[]).forEach((function(t){if(!n.has(t)){var i=e.get(t);i&&o(i)}})),i.push(t)}return t.forEach((function(t){e.set(t.name,t)})),t.forEach((function(t){n.has(t.name)||o(t)})),i}var ot={placement:"bottom",modifiers:[],strategy:"absolute"};function rt(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return!e.some((function(t){return!(t&&"function"==typeof t.getBoundingClientRect)}))}function at(t){void 0===t&&(t={});var e=t,n=e.defaultModifiers,i=void 0===n?[]:n,o=e.defaultOptions,r=void 0===o?ot:o;return function(t,e,n){void 0===n&&(n=r);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ot,r),modifiersData:{},elements:{reference:t,popper:e},attributes:{},styles:{}},c=[],u=!1,l={state:s,setOptions:function(n){d(),s.options=Object.assign({},r,s.options,n),s.scrollParents={reference:C(t)?B(t):t.contextElement?B(t.contextElement):[],popper:B(e)};var o=function(t){var e=it(t);return nt.reduce((function(t,n){return t.concat(e.filter((function(t){return t.phase===n})))}),[])}(function(t){var e=t.reduce((function(t,e){var n=t[e.name];return t[e.name]=n?Object.assign({},n,e,{options:Object.assign({},n.options,e.options),data:Object.assign({},n.data,e.data)}):e,t}),{});return Object.keys(e).map((function(t){return e[t]}))}([].concat(i,s.options.modifiers)));return s.orderedModifiers=o.filter((function(t){return t.enabled})),s.orderedModifiers.forEach((function(t){var e=t.name,n=t.options,i=void 0===n?{}:n,o=t.effect;if("function"==typeof o){var r=o({state:s,name:e,instance:l,options:i}),a=function(){};c.push(r||a)}})),l.update()},forceUpdate:function(){if(!u){var t=s.elements,e=t.reference,n=t.popper;if(rt(e,n)){s.rects={reference:I(e,W(n),"fixed"===s.options.strategy),popper:R(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(t){return s.modifiersData[t.name]=Object.assign({},t.data)}));for(var i=0;i<s.orderedModifiers.length;i++)if(!0!==s.reset){var o=s.orderedModifiers[i],r=o.fn,a=o.options,c=void 0===a?{}:a,d=o.name;"function"==typeof r&&(s=r({state:s,options:c,name:d,instance:l})||s)}else s.reset=!1,i=-1}}},update:(o=function(){return new Promise((function(t){l.forceUpdate(),t(s)}))},function(){return a||(a=new Promise((function(t){Promise.resolve().then((function(){a=void 0,t(o())}))}))),a}),destroy:function(){d(),u=!0}};if(!rt(t,e))return l;function d(){c.forEach((function(t){return t()})),c=[]}return l.setOptions(n).then((function(t){!u&&n.onFirstUpdate&&n.onFirstUpdate(t)})),l}}var st={passive:!0};const ct={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(t){var e=t.state,n=t.instance,i=t.options,o=i.scroll,r=void 0===o||o,a=i.resize,s=void 0===a||a,c=S(e.elements.popper),u=[].concat(e.scrollParents.reference,e.scrollParents.popper);return r&&u.forEach((function(t){t.addEventListener("scroll",n.update,st)})),s&&c.addEventListener("resize",n.update,st),function(){r&&u.forEach((function(t){t.removeEventListener("scroll",n.update,st)})),s&&c.removeEventListener("resize",n.update,st)}},data:{}};function ut(t){return t.split("-")[0]}function lt(t){return t.split("-")[1]}function dt(t){return["top","bottom"].indexOf(t)>=0?"x":"y"}function ft(t){var e,n=t.reference,i=t.element,o=t.placement,r=o?ut(o):null,a=o?lt(o):null,s=n.x+n.width/2-i.width/2,c=n.y+n.height/2-i.height/2;switch(r){case F:e={x:s,y:n.y-i.height};break;case Y:e={x:s,y:n.y+n.height};break;case V:e={x:n.x+n.width,y:c};break;case Q:e={x:n.x-i.width,y:c};break;default:e={x:n.x,y:n.y}}var u=r?dt(r):null;if(null!=u){var l="y"===u?"height":"width";switch(a){case Z:e[u]=e[u]-(n[l]/2-i[l]/2);break;case X:e[u]=e[u]+(n[l]/2-i[l]/2)}}return e}const pt={name:"popperOffsets",enabled:!0,phase:"read",fn:function(t){var e=t.state,n=t.name;e.modifiersData[n]=ft({reference:e.rects.reference,element:e.rects.popper,strategy:"absolute",placement:e.placement})},data:{}};var ht=Math.max,mt=Math.min,gt=Math.round,vt={top:"auto",right:"auto",bottom:"auto",left:"auto"};function bt(t){var e,n=t.popper,i=t.popperRect,o=t.placement,r=t.offsets,a=t.position,s=t.gpuAcceleration,c=t.adaptive,u=t.roundOffsets,l=!0===u?function(t){var e=t.x,n=t.y,i=window.devicePixelRatio||1;return{x:gt(gt(e*i)/i)||0,y:gt(gt(n*i)/i)||0}}(r):"function"==typeof u?u(r):r,d=l.x,f=void 0===d?0:d,p=l.y,h=void 0===p?0:p,m=r.hasOwnProperty("x"),g=r.hasOwnProperty("y"),v=Q,b=F,y=window;if(c){var w=W(n),_="clientHeight",x="clientWidth";w===S(n)&&"static"!==N(w=M(n)).position&&(_="scrollHeight",x="scrollWidth"),o===F&&(b=Y,h-=w[_]-i.height,h*=s?1:-1),o===Q&&(v=V,f-=w[x]-i.width,f*=s?1:-1)}var T,O=Object.assign({position:a},c&&vt);return s?Object.assign({},O,((T={})[b]=g?"0":"",T[v]=m?"0":"",T.transform=(y.devicePixelRatio||1)<2?"translate("+f+"px, "+h+"px)":"translate3d("+f+"px, "+h+"px, 0)",T)):Object.assign({},O,((e={})[b]=g?h+"px":"",e[v]=m?f+"px":"",e.transform="",e))}const yt={name:"applyStyles",enabled:!0,phase:"write",fn:function(t){var e=t.state;Object.keys(e.elements).forEach((function(t){var n=e.styles[t]||{},i=e.attributes[t]||{},o=e.elements[t];D(o)&&$(o)&&(Object.assign(o.style,n),Object.keys(i).forEach((function(t){var e=i[t];!1===e?o.removeAttribute(t):o.setAttribute(t,!0===e?"":e)})))}))},effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow),function(){Object.keys(e.elements).forEach((function(t){var i=e.elements[t],o=e.attributes[t]||{},r=Object.keys(e.styles.hasOwnProperty(t)?e.styles[t]:n[t]).reduce((function(t,e){return t[e]="",t}),{});D(i)&&$(i)&&(Object.assign(i.style,r),Object.keys(o).forEach((function(t){i.removeAttribute(t)})))}))}},requires:["computeStyles"]};const wt={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.offset,r=void 0===o?[0,0]:o,a=et.reduce((function(t,n){return t[n]=function(t,e,n){var i=ut(t),o=[Q,F].indexOf(i)>=0?-1:1,r="function"==typeof n?n(Object.assign({},e,{placement:t})):n,a=r[0],s=r[1];return a=a||0,s=(s||0)*o,[Q,V].indexOf(i)>=0?{x:s,y:a}:{x:a,y:s}}(n,e.rects,r),t}),{}),s=a[e.placement],c=s.x,u=s.y;null!=e.modifiersData.popperOffsets&&(e.modifiersData.popperOffsets.x+=c,e.modifiersData.popperOffsets.y+=u),e.modifiersData[i]=a}};var _t={left:"right",right:"left",bottom:"top",top:"bottom"};function xt(t){return t.replace(/left|right|bottom|top/g,(function(t){return _t[t]}))}var Tt={start:"end",end:"start"};function Ot(t){return t.replace(/start|end/g,(function(t){return Tt[t]}))}function At(t,e){var n=e.getRootNode&&e.getRootNode();if(t.contains(e))return!0;if(n&&k(n)){var i=e;do{if(i&&t.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function St(t){return Object.assign({},t,{left:t.x,top:t.y,right:t.x+t.width,bottom:t.y+t.height})}function Et(t,e){return e===J?St(function(t){var e=S(t),n=M(t),i=e.visualViewport,o=n.clientWidth,r=n.clientHeight,a=0,s=0;return i&&(o=i.width,r=i.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=i.offsetLeft,s=i.offsetTop)),{width:o,height:r,x:a+L(t),y:s}}(t)):D(e)?function(t){var e=A(t);return e.top=e.top+t.clientTop,e.left=e.left+t.clientLeft,e.bottom=e.top+t.clientHeight,e.right=e.left+t.clientWidth,e.width=t.clientWidth,e.height=t.clientHeight,e.x=e.left,e.y=e.top,e}(e):St(function(t){var e,n=M(t),i=E(t),o=null==(e=t.ownerDocument)?void 0:e.body,r=ht(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=ht(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-i.scrollLeft+L(t),c=-i.scrollTop;return"rtl"===N(o||n).direction&&(s+=ht(n.clientWidth,o?o.clientWidth:0)-r),{width:r,height:a,x:s,y:c}}(M(t)))}function Ct(t,e,n){var i="clippingParents"===e?function(t){var e=B(P(t)),n=["absolute","fixed"].indexOf(N(t).position)>=0&&D(t)?W(t):t;return C(n)?e.filter((function(t){return C(t)&&At(t,n)&&"body"!==$(t)})):[]}(t):[].concat(e),o=[].concat(i,[n]),r=o[0],a=o.reduce((function(e,n){var i=Et(t,n);return e.top=ht(i.top,e.top),e.right=mt(i.right,e.right),e.bottom=mt(i.bottom,e.bottom),e.left=ht(i.left,e.left),e}),Et(t,r));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Dt(t){return Object.assign({},{top:0,right:0,bottom:0,left:0},t)}function kt(t,e){return e.reduce((function(e,n){return e[n]=t,e}),{})}function $t(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=void 0===i?t.placement:i,r=n.boundary,a=void 0===r?"clippingParents":r,s=n.rootBoundary,c=void 0===s?J:s,u=n.elementContext,l=void 0===u?K:u,d=n.altBoundary,f=void 0!==d&&d,p=n.padding,h=void 0===p?0:p,m=Dt("number"!=typeof h?h:kt(h,G)),g=l===K?"reference":K,v=t.elements.reference,b=t.rects.popper,y=t.elements[f?g:l],w=Ct(C(y)?y:y.contextElement||M(t.elements.popper),a,c),_=A(v),x=ft({reference:_,element:b,strategy:"absolute",placement:o}),T=St(Object.assign({},b,x)),O=l===K?T:_,S={top:w.top-O.top+m.top,bottom:O.bottom-w.bottom+m.bottom,left:w.left-O.left+m.left,right:O.right-w.right+m.right},E=t.modifiersData.offset;if(l===K&&E){var D=E[o];Object.keys(S).forEach((function(t){var e=[V,Y].indexOf(t)>=0?1:-1,n=[F,Y].indexOf(t)>=0?"y":"x";S[t]+=D[n]*e}))}return S}function Mt(t,e,n){return ht(t,mt(e,n))}const Lt={name:"preventOverflow",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name,o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0!==a&&a,c=n.boundary,u=n.rootBoundary,l=n.altBoundary,d=n.padding,f=n.tether,p=void 0===f||f,h=n.tetherOffset,m=void 0===h?0:h,g=$t(e,{boundary:c,rootBoundary:u,padding:d,altBoundary:l}),v=ut(e.placement),b=lt(e.placement),y=!b,w=dt(v),_="x"===w?"y":"x",x=e.modifiersData.popperOffsets,T=e.rects.reference,O=e.rects.popper,A="function"==typeof m?m(Object.assign({},e.rects,{placement:e.placement})):m,S={x:0,y:0};if(x){if(r||s){var E="y"===w?F:Q,C="y"===w?Y:V,D="y"===w?"height":"width",k=x[w],$=x[w]+g[E],M=x[w]-g[C],L=p?-O[D]/2:0,N=b===Z?T[D]:O[D],j=b===Z?-O[D]:-T[D],I=e.elements.arrow,P=p&&I?R(I):{width:0,height:0},H=e.modifiersData["arrow#persistent"]?e.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},B=H[E],U=H[C],z=Mt(0,T[D],P[D]),q=y?T[D]/2-L-z-B-A:N-z-B-A,G=y?-T[D]/2+L+z+U+A:j+z+U+A,X=e.elements.arrow&&W(e.elements.arrow),J=X?"y"===w?X.clientTop||0:X.clientLeft||0:0,K=e.modifiersData.offset?e.modifiersData.offset[e.placement][w]:0,tt=x[w]+q-K-J,et=x[w]+G-K;if(r){var nt=Mt(p?mt($,tt):$,k,p?ht(M,et):M);x[w]=nt,S[w]=nt-k}if(s){var it="x"===w?F:Q,ot="x"===w?Y:V,rt=x[_],at=rt+g[it],st=rt-g[ot],ct=Mt(p?mt(at,tt):at,rt,p?ht(st,et):st);x[_]=ct,S[_]=ct-rt}}e.modifiersData[i]=S}},requiresIfExists:["offset"]};const Nt={name:"arrow",enabled:!0,phase:"main",fn:function(t){var e,n=t.state,i=t.name,o=t.options,r=n.elements.arrow,a=n.modifiersData.popperOffsets,s=ut(n.placement),c=dt(s),u=[Q,V].indexOf(s)>=0?"height":"width";if(r&&a){var l=function(t,e){return Dt("number"!=typeof(t="function"==typeof t?t(Object.assign({},e.rects,{placement:e.placement})):t)?t:kt(t,G))}(o.padding,n),d=R(r),f="y"===c?F:Q,p="y"===c?Y:V,h=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],g=W(r),v=g?"y"===c?g.clientHeight||0:g.clientWidth||0:0,b=h/2-m/2,y=l[f],w=v-d[u]-l[p],_=v/2-d[u]/2+b,x=Mt(y,_,w),T=c;n.modifiersData[i]=((e={})[T]=x,e.centerOffset=x-_,e)}},effect:function(t){var e=t.state,n=t.options.element,i=void 0===n?"[data-popper-arrow]":n;null!=i&&("string"!=typeof i||(i=e.elements.popper.querySelector(i)))&&At(e.elements.popper,i)&&(e.elements.arrow=i)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function jt(t,e,n){return void 0===n&&(n={x:0,y:0}),{top:t.top-e.height-n.y,right:t.right-e.width+n.x,bottom:t.bottom-e.height+n.y,left:t.left-e.width-n.x}}function It(t){return[F,V,Y,Q].some((function(e){return t[e]>=0}))}var Rt=at({defaultModifiers:[ct,pt,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(t){var e=t.state,n=t.options,i=n.gpuAcceleration,o=void 0===i||i,r=n.adaptive,a=void 0===r||r,s=n.roundOffsets,c=void 0===s||s,u={placement:ut(e.placement),popper:e.elements.popper,popperRect:e.rects.popper,gpuAcceleration:o};null!=e.modifiersData.popperOffsets&&(e.styles.popper=Object.assign({},e.styles.popper,bt(Object.assign({},u,{offsets:e.modifiersData.popperOffsets,position:e.options.strategy,adaptive:a,roundOffsets:c})))),null!=e.modifiersData.arrow&&(e.styles.arrow=Object.assign({},e.styles.arrow,bt(Object.assign({},u,{offsets:e.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-placement":e.placement})},data:{}},yt,wt,{name:"flip",enabled:!0,phase:"main",fn:function(t){var e=t.state,n=t.options,i=t.name;if(!e.modifiersData[i]._skip){for(var o=n.mainAxis,r=void 0===o||o,a=n.altAxis,s=void 0===a||a,c=n.fallbackPlacements,u=n.padding,l=n.boundary,d=n.rootBoundary,f=n.altBoundary,p=n.flipVariations,h=void 0===p||p,m=n.allowedAutoPlacements,g=e.options.placement,v=ut(g),b=c||(v===g||!h?[xt(g)]:function(t){if(ut(t)===q)return[];var e=xt(t);return[Ot(t),e,Ot(e)]}(g)),y=[g].concat(b).reduce((function(t,n){return t.concat(ut(n)===q?function(t,e){void 0===e&&(e={});var n=e,i=n.placement,o=n.boundary,r=n.rootBoundary,a=n.padding,s=n.flipVariations,c=n.allowedAutoPlacements,u=void 0===c?et:c,l=lt(i),d=l?s?tt:tt.filter((function(t){return lt(t)===l})):G,f=d.filter((function(t){return u.indexOf(t)>=0}));0===f.length&&(f=d);var p=f.reduce((function(e,n){return e[n]=$t(t,{placement:n,boundary:o,rootBoundary:r,padding:a})[ut(n)],e}),{});return Object.keys(p).sort((function(t,e){return p[t]-p[e]}))}(e,{placement:n,boundary:l,rootBoundary:d,padding:u,flipVariations:h,allowedAutoPlacements:m}):n)}),[]),w=e.rects.reference,_=e.rects.popper,x=new Map,T=!0,O=y[0],A=0;A<y.length;A++){var S=y[A],E=ut(S),C=lt(S)===Z,D=[F,Y].indexOf(E)>=0,k=D?"width":"height",$=$t(e,{placement:S,boundary:l,rootBoundary:d,altBoundary:f,padding:u}),M=D?C?V:Q:C?Y:F;w[k]>_[k]&&(M=xt(M));var L=xt(M),N=[];if(r&&N.push($[E]<=0),s&&N.push($[M]<=0,$[L]<=0),N.every((function(t){return t}))){O=S,T=!1;break}x.set(S,N)}if(T)for(var j=function(t){var e=y.find((function(e){var n=x.get(e);if(n)return n.slice(0,t).every((function(t){return t}))}));if(e)return O=e,"break"},I=h?3:1;I>0;I--){if("break"===j(I))break}e.placement!==O&&(e.modifiersData[i]._skip=!0,e.placement=O,e.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},Lt,Nt,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(t){var e=t.state,n=t.name,i=e.rects.reference,o=e.rects.popper,r=e.modifiersData.preventOverflow,a=$t(e,{elementContext:"reference"}),s=$t(e,{altBoundary:!0}),c=jt(a,i),u=jt(s,o,r),l=It(c),d=It(u);e.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:l,hasPopperEscaped:d},e.attributes.popper=Object.assign({},e.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":d})}}]}),Pt="njt-tippy-content",Ht="njt-tippy-backdrop",Bt="njt-tippy-arrow",Ut="njt-tippy-svg-arrow",zt={passive:!0,capture:!0};function Wt(t,e,n){if(Array.isArray(t)){var i=t[e];return null==i?Array.isArray(n)?n[e]:n:i}return t}function Ft(t,e){var n={}.toString.call(t);return 0===n.indexOf("[object")&&n.indexOf(e+"]")>-1}function Yt(t,e){return"function"==typeof t?t.apply(void 0,e):t}function Vt(t,e){return 0===e?t:function(i){clearTimeout(n),n=setTimeout((function(){t(i)}),e)};var n}function Qt(t){return[].concat(t)}function qt(t,e){-1===t.indexOf(e)&&t.push(e)}function Gt(t){return t.split("-")[0]}function Zt(t){return[].slice.call(t)}function Xt(){return document.createElement("div")}function Jt(t){return["Element","Fragment"].some((function(e){return Ft(t,e)}))}function Kt(t){return Ft(t,"MouseEvent")}function te(t){return!(!t||!t._tippy||t._tippy.reference!==t)}function ee(t){return Jt(t)?[t]:function(t){return Ft(t,"NodeList")}(t)?Zt(t):Array.isArray(t)?t:Zt(document.querySelectorAll(t))}function ne(t,e){t.forEach((function(t){t&&(t.style.transitionDuration=e+"ms")}))}function ie(t,e){t.forEach((function(t){t&&t.setAttribute("data-state",e)}))}function oe(t){var e,n=Qt(t)[0];return(null==n||null==(e=n.ownerDocument)?void 0:e.body)?n.ownerDocument:document}function re(t,e,n){var i=e+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(e){t[i](e,n)}))}var ae={isTouch:!1},se=0;function ce(){ae.isTouch||(ae.isTouch=!0,window.performance&&document.addEventListener("mousemove",ue))}function ue(){var t=performance.now();t-se<20&&(ae.isTouch=!1,document.removeEventListener("mousemove",ue)),se=t}function le(){var t=document.activeElement;if(te(t)){var e=t._tippy;t.blur&&!e.state.isVisible&&t.blur()}}var de="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",fe=/MSIE |Trident\//.test(de);var pe={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},he=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},pe,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),me=Object.keys(he);function ge(t){var e=(t.plugins||[]).reduce((function(e,n){var i=n.name,o=n.defaultValue;return i&&(e[i]=void 0!==t[i]?t[i]:o),e}),{});return Object.assign({},t,{},e)}function ve(t,e){var n=Object.assign({},e,{content:Yt(e.content,[t])},e.ignoreAttributes?{}:function(t,e){return(e?Object.keys(ge(Object.assign({},he,{plugins:e}))):me).reduce((function(e,n){var i=(t.getAttribute("data-tippy-"+n)||"").trim();if(!i)return e;if("content"===n)e[n]=i;else try{e[n]=JSON.parse(i)}catch(t){e[n]=i}return e}),{})}(t,e.plugins));return n.aria=Object.assign({},he.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?e.interactive:n.aria.expanded,content:"auto"===n.aria.content?e.interactive?null:"describedby":n.aria.content},n}function be(t,e){t.innerHTML=e}function ye(t){var e=Xt();return!0===t?e.className=Bt:(e.className=Ut,Jt(t)?e.appendChild(t):be(e,t)),e}function we(t,e){Jt(e.content)?(be(t,""),t.appendChild(e.content)):"function"!=typeof e.content&&(e.allowHTML?be(t,e.content):t.textContent=e.content)}function _e(t){var e=t.firstElementChild,n=Zt(e.children);return{box:e,content:n.find((function(t){return t.classList.contains(Pt)})),arrow:n.find((function(t){return t.classList.contains(Bt)||t.classList.contains(Ut)})),backdrop:n.find((function(t){return t.classList.contains(Ht)}))}}function xe(t){var e=Xt(),n=Xt();n.className="njt-tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var i=Xt();function o(n,i){var o=_e(e),r=o.box,a=o.content,s=o.arrow;i.theme?r.setAttribute("data-theme",i.theme):r.removeAttribute("data-theme"),"string"==typeof i.animation?r.setAttribute("data-animation",i.animation):r.removeAttribute("data-animation"),i.inertia?r.setAttribute("data-inertia",""):r.removeAttribute("data-inertia"),r.style.maxWidth="number"==typeof i.maxWidth?i.maxWidth+"px":i.maxWidth,i.role?r.setAttribute("role",i.role):r.removeAttribute("role"),n.content===i.content&&n.allowHTML===i.allowHTML||we(a,t.props),i.arrow?s?n.arrow!==i.arrow&&(r.removeChild(s),r.appendChild(ye(i.arrow))):r.appendChild(ye(i.arrow)):s&&r.removeChild(s)}return i.className=Pt,i.setAttribute("data-state","hidden"),we(i,t.props),e.appendChild(n),n.appendChild(i),o(t.props,t.props),{popper:e,onUpdate:o}}xe.$$tippy=!0;var Te=1,Oe=[],Ae=[];function Se(t,e){var n,i,o,r,a,s,c,u,l,d=ve(t,Object.assign({},he,{},ge((n=e,Object.keys(n).reduce((function(t,e){return void 0!==n[e]&&(t[e]=n[e]),t}),{}))))),f=!1,p=!1,h=!1,m=!1,g=[],v=Vt(q,d.interactiveDebounce),b=Te++,y=(l=d.plugins).filter((function(t,e){return l.indexOf(t)===e})),w={id:b,reference:t,popper:Xt(),popperInstance:null,props:d,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(i),clearTimeout(o),cancelAnimationFrame(r)},setProps:function(e){0;if(w.state.isDestroyed)return;N("onBeforeUpdate",[w,e]),V();var n=w.props,i=ve(t,Object.assign({},w.props,{},e,{ignoreAttributes:!0}));w.props=i,Y(),n.interactiveDebounce!==i.interactiveDebounce&&(R(),v=Vt(q,i.interactiveDebounce));n.triggerTarget&&!i.triggerTarget?Qt(n.triggerTarget).forEach((function(t){t.removeAttribute("aria-expanded")})):i.triggerTarget&&t.removeAttribute("aria-expanded");I(),L(),T&&T(n,i);w.popperInstance&&(J(),tt().forEach((function(t){requestAnimationFrame(t._tippy.popperInstance.forceUpdate)})));N("onAfterUpdate",[w,e])},setContent:function(t){w.setProps({content:t})},show:function(){0;var t=w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,i=ae.isTouch&&!w.props.touch,o=Wt(w.props.duration,0,he.duration);if(t||e||n||i)return;if(D().hasAttribute("disabled"))return;if(N("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,C()&&(x.style.visibility="visible");L(),U(),w.state.isMounted||(x.style.transition="none");if(C()){var r=$();ne([r.box,r.content],0)}c=function(){var t;if(w.state.isVisible&&!m){if(m=!0,x.offsetHeight,x.style.transition=w.props.moveTransition,C()&&w.props.animation){var e=$(),n=e.box,i=e.content;ne([n,i],o),ie([n,i],"visible")}j(),I(),qt(Ae,w),null==(t=w.popperInstance)||t.forceUpdate(),w.state.isMounted=!0,N("onMount",[w]),w.props.animation&&C()&&function(t,e){W(t,e)}(o,(function(){w.state.isShown=!0,N("onShown",[w])}))}},function(){var t,e=w.props.appendTo,n=D();t=w.props.interactive&&e===he.appendTo||"parent"===e?n.parentNode:Yt(e,[n]);t.contains(x)||t.appendChild(x);J(),!1}()},hide:function(){0;var t=!w.state.isVisible,e=w.state.isDestroyed,n=!w.state.isEnabled,i=Wt(w.props.duration,1,he.duration);if(t||e||n)return;if(N("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,m=!1,f=!1,C()&&(x.style.visibility="hidden");if(R(),z(),L(),C()){var o=$(),r=o.box,a=o.content;w.props.animation&&(ne([r,a],i),ie([r,a],"hidden"))}j(),I(),w.props.animation?C()&&function(t,e){W(t,(function(){!w.state.isVisible&&x.parentNode&&x.parentNode.contains(x)&&e()}))}(i,w.unmount):w.unmount()},hideWithInteractivity:function(t){0;k().addEventListener("mousemove",v),qt(Oe,v),v(t)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){0;w.state.isVisible&&w.hide();if(!w.state.isMounted)return;K(),tt().forEach((function(t){t._tippy.unmount()})),x.parentNode&&x.parentNode.removeChild(x);Ae=Ae.filter((function(t){return t!==w})),w.state.isMounted=!1,N("onHidden",[w])},destroy:function(){0;if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),V(),delete t._tippy,w.state.isDestroyed=!0,N("onDestroy",[w])}};if(!d.render)return w;var _=d.render(w),x=_.popper,T=_.onUpdate;x.setAttribute("data-tippy-root",""),x.id="tippy-"+w.id,w.popper=x,t._tippy=w,x._tippy=w;var O=y.map((function(t){return t.fn(w)})),A=t.hasAttribute("aria-expanded");return Y(),I(),L(),N("onCreate",[w]),d.showOnCreate&&et(),x.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),x.addEventListener("mouseleave",(function(t){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(k().addEventListener("mousemove",v),v(t))})),w;function S(){var t=w.props.touch;return Array.isArray(t)?t:[t,0]}function E(){return"hold"===S()[0]}function C(){var t;return!!(null==(t=w.props.render)?void 0:t.$$tippy)}function D(){return u||t}function k(){var t=D().parentNode;return t?oe(t):document}function $(){return _e(x)}function M(t){return w.state.isMounted&&!w.state.isVisible||ae.isTouch||a&&"focus"===a.type?0:Wt(w.props.delay,t?0:1,he.delay)}function L(){x.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",x.style.zIndex=""+w.props.zIndex}function N(t,e,n){var i;(void 0===n&&(n=!0),O.forEach((function(n){n[t]&&n[t].apply(void 0,e)})),n)&&(i=w.props)[t].apply(i,e)}function j(){var e=w.props.aria;if(e.content){var n="aria-"+e.content,i=x.id;Qt(w.props.triggerTarget||t).forEach((function(t){var e=t.getAttribute(n);if(w.state.isVisible)t.setAttribute(n,e?e+" "+i:i);else{var o=e&&e.replace(i,"").trim();o?t.setAttribute(n,o):t.removeAttribute(n)}}))}}function I(){!A&&w.props.aria.expanded&&Qt(w.props.triggerTarget||t).forEach((function(t){w.props.interactive?t.setAttribute("aria-expanded",w.state.isVisible&&t===D()?"true":"false"):t.removeAttribute("aria-expanded")}))}function R(){k().removeEventListener("mousemove",v),Oe=Oe.filter((function(t){return t!==v}))}function P(t){if(!(ae.isTouch&&(h||"mousedown"===t.type)||w.props.interactive&&x.contains(t.target))){if(D().contains(t.target)){if(ae.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else N("onClickOutside",[w,t]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),p=!0,setTimeout((function(){p=!1})),w.state.isMounted||z())}}function H(){h=!0}function B(){h=!1}function U(){var t=k();t.addEventListener("mousedown",P,!0),t.addEventListener("touchend",P,zt),t.addEventListener("touchstart",B,zt),t.addEventListener("touchmove",H,zt)}function z(){var t=k();t.removeEventListener("mousedown",P,!0),t.removeEventListener("touchend",P,zt),t.removeEventListener("touchstart",B,zt),t.removeEventListener("touchmove",H,zt)}function W(t,e){var n=$().box;function i(t){t.target===n&&(re(n,"remove",i),e())}if(0===t)return e();re(n,"remove",s),re(n,"add",i),s=i}function F(e,n,i){void 0===i&&(i=!1),Qt(w.props.triggerTarget||t).forEach((function(t){t.addEventListener(e,n,i),g.push({node:t,eventType:e,handler:n,options:i})}))}function Y(){var t;E()&&(F("touchstart",Q,{passive:!0}),F("touchend",G,{passive:!0})),(t=w.props.trigger,t.split(/\s+/).filter(Boolean)).forEach((function(t){if("manual"!==t)switch(F(t,Q),t){case"mouseenter":F("mouseleave",G);break;case"focus":F(fe?"focusout":"blur",Z);break;case"focusin":F("focusout",Z)}}))}function V(){g.forEach((function(t){var e=t.node,n=t.eventType,i=t.handler,o=t.options;e.removeEventListener(n,i,o)})),g=[]}function Q(t){var e,n=!1;if(w.state.isEnabled&&!X(t)&&!p){var i="focus"===(null==(e=a)?void 0:e.type);a=t,u=t.currentTarget,I(),!w.state.isVisible&&Kt(t)&&Oe.forEach((function(e){return e(t)})),"click"===t.type&&(w.props.trigger.indexOf("mouseenter")<0||f)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:et(t),"click"===t.type&&(f=!n),n&&!i&&nt(t)}}function q(t){var e=t.target,n=D().contains(e)||x.contains(e);if("mousemove"!==t.type||!n){var i=tt().concat(x).map((function(t){var e,n=null==(e=t._tippy.popperInstance)?void 0:e.state;return n?{popperRect:t.getBoundingClientRect(),popperState:n,props:d}:null})).filter(Boolean);(function(t,e){var n=e.clientX,i=e.clientY;return t.every((function(t){var e=t.popperRect,o=t.popperState,r=t.props.interactiveBorder,a=Gt(o.placement),s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,l="right"===a?s.left.x:0,d="left"===a?s.right.x:0,f=e.top-i+c>r,p=i-e.bottom-u>r,h=e.left-n+l>r,m=n-e.right-d>r;return f||p||h||m}))})(i,t)&&(R(),nt(t))}}function G(t){X(t)||w.props.trigger.indexOf("click")>=0&&f||(w.props.interactive?w.hideWithInteractivity(t):nt(t))}function Z(t){w.props.trigger.indexOf("focusin")<0&&t.target!==D()||w.props.interactive&&t.relatedTarget&&x.contains(t.relatedTarget)||nt(t)}function X(t){return!!ae.isTouch&&E()!==t.type.indexOf("touch")>=0}function J(){K();var e=w.props,n=e.popperOptions,i=e.placement,o=e.offset,r=e.getReferenceClientRect,a=e.moveTransition,s=C()?_e(x).arrow:null,u=r?{getBoundingClientRect:r,contextElement:r.contextElement||D()}:t,l={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(t){var e=t.state;if(C()){var n=$().box;["placement","reference-hidden","escaped"].forEach((function(t){"placement"===t?n.setAttribute("data-placement",e.placement):e.attributes.popper["data-popper-"+t]?n.setAttribute("data-"+t,""):n.removeAttribute("data-"+t)})),e.attributes.popper={}}}},d=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},l];C()&&s&&d.push({name:"arrow",options:{element:s,padding:3}}),d.push.apply(d,(null==n?void 0:n.modifiers)||[]),w.popperInstance=Rt(u,x,Object.assign({},n,{placement:i,onFirstUpdate:c,modifiers:d}))}function K(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function tt(){return Zt(x.querySelectorAll("[data-tippy-root]"))}function et(t){w.clearDelayTimeouts(),t&&N("onTrigger",[w,t]),U();var e=M(!0),n=S(),o=n[0],r=n[1];ae.isTouch&&"hold"===o&&r&&(e=r),e?i=setTimeout((function(){w.show()}),e):w.show()}function nt(t){if(w.clearDelayTimeouts(),N("onUntrigger",[w,t]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(t.type)>=0&&f)){var e=M(!1);e?o=setTimeout((function(){w.state.isVisible&&w.hide()}),e):r=requestAnimationFrame((function(){w.hide()}))}}else z()}}function Ee(t,e){void 0===e&&(e={});var n=he.plugins.concat(e.plugins||[]);document.addEventListener("touchstart",ce,zt),window.addEventListener("blur",le);var i=Object.assign({},e,{plugins:n}),o=ee(t).reduce((function(t,e){var n=e&&Se(e,i);return n&&t.push(n),t}),[]);return Jt(t)?o[0]:o}Ee.defaultProps=he,Ee.setDefaultProps=function(t){Object.keys(t).forEach((function(e){he[e]=t[e]}))},Ee.currentInput=ae;Object.assign({},yt,{effect:function(t){var e=t.state,n={popper:{position:e.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(e.elements.popper.style,n.popper),e.styles=n,e.elements.arrow&&Object.assign(e.elements.arrow.style,n.arrow)}});Ee.setDefaultProps({render:xe});const Ce=Ee,De=window.jQuery,ke={reorder_attribute_for_custom_time:function(){["sunday","monday","tuesday","wednesday","thursday","friday","saturday"].forEach((t=>{const e=jQuery(".working-"+t);for(let n=1;n<e.length;n++)De(".start-time",e[n]).attr("name",`daysOfWeekWorking[${t}][workHours][${n}][startTime]`),De(".end-time",e[n]).attr("name",`daysOfWeekWorking[${t}][workHours][${n}][endTime]`)}))},add_custom_time:function(){De(".nta-btncustom-offline").on("click",".add-custom-time",(function(){const t=De(this).closest("tr"),e=De("."+t.attr("class"));if(e.length>=3)return;const n=t.clone();De("#btn-apply-time",n).closest("td").remove(),De("td",n).first().empty(),De("td",n).last().remove(),n.append('<td><a style="color: #a00" href="javascript:;" class="remove-custom-time">Remove</a></td>'),De(n).insertAfter(e.last()),ke.reorder_attribute_for_custom_time()}))},remove_custom_time:function(){De(".nta-btncustom-offline").on("click",".remove-custom-time",(function(){De(this).closest("tr").remove(),ke.reorder_attribute_for_custom_time()}))},copy_clipboard_shortcode:function(){De("#nta-button-shortcode-copy").click((function(){De(this).focus(),De(this).select(),document.execCommand("copy"),De(".nta-shortcode-copy-status").show()}))},selectAll_table_input_shortcode:function(){De(".nta-shortcode-table").click((function(){De(this).focus(),De(this).select()}))},btn_apply_time_all:function(){De("#btn-apply-time").on("click",(function(){const t=["monday","tuesday","wednesday","thursday","friday","saturday"],e=De(".working-sunday");for(let n=0;n<e.length;n++){const i=De(".start-time",e[n]).val(),o=De(".end-time",e[n]).val();t.forEach((t=>{De(".working-"+t).slice(n+1).remove();const e=De(".working-"+t)[n];if(void 0===e){De(".add-custom-time",De(".working-"+t)[0]).trigger("click");const e=De(".working-"+t)[n];De(".start-time",e).val(i),De(".end-time",e).val(o)}else De(".start-time",e).val(i),De(".end-time",e).val(o)}))}}))},btn_always_available:function(){De("body.post-type-whatsapp-accounts input#nta-wa-switch").click((function(){De(this).prop("checked")?De(".nta-btncustom-offline").hide():De(".nta-btncustom-offline").show()}))},select_display_pages_option:function(){De("#displayCondition").change((function(){var t=De(this).val();"includePages"==t?(De(".nta-wa-pages-content.include-pages").removeClass("hide-select"),De(".nta-wa-pages-content.exclude-pages").addClass("hide-select")):"excludePages"==t?(De(".nta-wa-pages-content.exclude-pages").removeClass("hide-select"),De(".nta-wa-pages-content.include-pages").addClass("hide-select")):(De(".nta-wa-pages-content.include-pages").addClass("hide-select"),De(".nta-wa-pages-content.exclude-pages").addClass("hide-select"))}))},checkAll_SelectPages_List:function(){De("#exclude-pages-checkall").change((function(){De(".excludePages").prop("checked",De(this).prop("checked"))})),De("#include-pages-checkall").change((function(){De(".includePages").prop("checked",De(this).prop("checked"))}))},registerTab:function(){De("#njt-tabs").tabs({active:0,create:function(t,e){const n=De("#njt-tabs").tabs("option","active");e.tab.children().addClass("nav-tab-active"),1!=n?De("#app-preview").hide():De("#app-preview").show()},activate:function(t,e){1!=De("#njt-tabs").tabs("option","active")?De("#app-preview").hide():De("#app-preview").show(),e.oldTab.children().removeClass("nav-tab-active"),e.newTab.children().addClass("nav-tab-active")}}),De("#tabs-setting").tabs({active:0})},changeUrlSetting:function(t){const e='div[data-setting="onDesktop"] button';De(e).click((function(t){De(e).removeClass("active"),De(t.target).addClass("active"),De("#urlOnDesktop").val(t.target.value)}));const n='div[data-setting="onMobile"] button';De(n).click((function(t){De(n).removeClass("active"),De(t.target).addClass("active"),De("#urlOnMobile").val(t.target.value)}))},changeAnalytics:function(){const t="#enabledGoogleGA4";De("#enabledGoogle").change((function(e){e.target.checked?De(t).closest("tr").show():De(t).closest("tr").hide()}))},saveSetting:function(){De(".wa-save").click((function(t){t.preventDefault(),"undefined"!=typeof tinyMCE&&tinyMCE.triggerSave();const e=De(".nta-tab-wrapper .nav-tab-active").data("action");let n=De(".nta-tabs-content form").serializeArray();n.push({name:"action",value:e},{name:"nonce",value:njt_wa.nonce}),n=De.param(n),De.ajax({url:njt_wa.url,type:"POST",data:n,beforeSend:function(){d.saveLoading(!0)}}).done((function(t){const e=De("<p/>",{html:De("<strong/>",{html:"Settings saved."}).append(De("<button/>",{class:"notice-dismiss",html:De("<span/>",{class:"screen-reader-text",html:"Dismiss this notice."}),click:function(){De(".njt-wa-alert").hide("slow")}}))}),n=De("<div/>",{class:"notice notice-success settings-error is-dismissible njt-wa-alert",html:De("<div/>",{class:"wa__popup_notice"}).append(e)});De(".nta-tab-wrapper").before(n),setTimeout((()=>{n.first().hide("slow")}),3e3),d.saveLoading(!1)}))}))},blockFeature:function(){jQuery("#set-post-thumbnail img").length||jQuery("#set-post-thumbnail").attr({id:"",href:"javascript:;"}).removeClass().addClass("njt-wa-pro-tooltip"),De("body").on("DOMSubtreeModified","#postimagediv",(function(){jQuery("#set-post-thumbnail img").length||(jQuery("#set-post-thumbnail").attr({id:"",href:"javascript:;"}).removeClass().addClass("njt-wa-pro-tooltip-thumbnail"),Ce(".njt-wa-pro-tooltip-thumbnail",{content:"This feature is available in Pro version.",animation:"shift-away"}))})),jQuery(".njt-wa-pro-tooltip").each((function(t,e){if(jQuery(e).parent().hasClass("nta-wa-switch-control")){const t=jQuery(e).prev();t.on("change",(function(t){!1===t.target.checked&&(jQuery(t.target).click((function(t){t.preventDefault()})),Ce(e,{content:"This feature is available in Pro version.",animation:"shift-away"}))})),t.is(":checked")&&"isShowPoweredBy"!=t.attr("name")||(jQuery(e).click((function(t){t.preventDefault()})),Ce(e,{content:"This feature is available in Pro version.",animation:"shift-away"}))}else Ce(e,{content:"This feature is available in Pro version.",animation:"shift-away"})})),jQuery(".njt-wa-pro-tooltip input, input.njt-wa-pro").click((function(t){t.preventDefault()})),jQuery("select.njt-wa-pro").on("mousedown",(function(t){t.preventDefault()}))},registerTooltip:function(){Ce(".njt-wa-tooltip",{content:"Add a scroll bar to your widget in case you have many agents",animation:"shift-away",maxWidth:250}),Ce('div[data-setting="onDesktop"] .btn-api',{content:"https://api.whatsapp.com/",animation:"shift-away"}),Ce('div[data-setting="onDesktop"] .btn-web',{content:"https://web.whatsapp.com/",animation:"shift-away"}),Ce('div[data-setting="onMobile"] .btn-api',{content:"https://api.whatsapp.com/",animation:"shift-away"}),Ce('div[data-setting="onMobile"] .btn-protocol',{content:"whatsapp://send?phone=",animation:"shift-away"})}},$e=function(){Object.values(ke).forEach((t=>t())),jQuery.validator.addMethod("domain",(function(t,e){return this.optional(e)||/^https:\/\/chat.whatsapp.com/.test(t)||/^(\+)\d+$/.test(t)}),"Please enter a valid phone number or group link"),jQuery.validator.setDefaults({errorClass:"wa-validate-error",success:"valid"}),De(".post-type-whatsapp-accounts #post").validate({rules:{number:{required:!0,domain:!0},title:{maxlength:60},predefinedText:{maxlength:200},post_title:{maxlength:60}}})};void 0===String.prototype.njtReplaceAll&&(String.prototype.njtReplaceAll=function(t,e){return this.replace(new RegExp(t,"g"),(()=>e))}),function(t){t(document).ready((function(){const e=jQuery("#app, #app-woo"),n=e.attr("id"),i=new O;if($e(),t.extend(njt_wa,{selectedAccounts:{renderId:"#"+n,attrActive:"app"===n?"widget_show":"wc_show",attrPosition:"app"===n?"widget_position":"wc_position",init(){new(g(this.renderId))({collection:i})}}}),e.length&&njt_wa.selectedAccounts.init(),t("#app-design, #app-preview").length){const e=new w;t("#app-design").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,events:{"keypress #title":"setAttributeByEvent","keyup #title":"setAttributeByEvent","keypress #btnLabel":"setAttributeByEvent","keyup #btnLabel":"setAttributeByEvent","change #nta-wa-switch-gdpr":"setGDPR","change #isShowBtnLabel":"setAttributeByCheck","change #isShowScroll":"setAttributeByCheck","input .range input":"setRangeSlider","click .btn-left:not(.disabled)":"changeWidgetPosition","click .btn-right:not(.disabled)":"changeWidgetPosition"},initialize:function(){var t=this,e="{ margin: 0 !important; font-size: 16px !important}";jQuery(document).on("tinymce-editor-init",(function(n,i){i&&"description"==i.id&&(i.on("keypress keyup",(function(){t.setAttributeByEditor("description")})),i.dom.addStyle(`p ${e}`)),i&&"gdprContent"==i.id&&(i.on("keypress keyup",(function(){t.setAttributeByEditor("gdprContent")})),i.dom.addStyle(`p ${e}`)),i&&"responseText"==i.id&&(i.on("keypress keyup",(function(){t.setAttributeByEditor("responseText")})),i.dom.addStyle(`p ${e}`))})),h(".textColor").wpColorPicker({defaultColor:t.model.get("textColor"),change:function(e,n){t.setAttribute("textColor",n.color.toString())}}),h(".backgroundColor").wpColorPicker({defaultColor:t.model.get("backgroundColor"),change:function(e,n){t.setAttribute("backgroundColor",n.color.toString())}}),h("body").on("click",".wa__btn_popup",(function(){t.changeWidgetLaunch()})),this.model.view=this},changeWidgetLaunch(){const t=this;var e,n;h(".wa__popup_chat_box").hasClass("wa__active")?(h(".wa__popup_chat_box").removeClass("wa__active"),h(".wa__btn_popup").removeClass("wa__active"),clearTimeout(e),h(".wa__popup_chat_box").hasClass("wa__lauch")&&new Promise(((t,e)=>{n=setTimeout((function(){h(".wa__popup_chat_box").removeClass("wa__pending"),h(".wa__popup_chat_box").removeClass("wa__lauch"),t(n)}),400)})).then((()=>{t.setAttribute("isLaunch",!1)}))):(h(".wa__popup_chat_box").addClass("wa__pending"),h(".wa__popup_chat_box").addClass("wa__active"),h(".wa__btn_popup").addClass("wa__active"),clearTimeout(n),h(".wa__popup_chat_box").hasClass("wa__lauch")||(h(".wa__popup_chat_box").addClass("wa__pending"),h(".wa__popup_chat_box").addClass("wa__active"),h(".wa__btn_popup").addClass("wa__active"),new Promise(((t,n)=>{e=setTimeout((function(){h(".wa__popup_chat_box").addClass("wa__lauch"),t(e)}),300)})).then((()=>{t.setAttribute("isLaunch",!0)}))))},changeWidgetPosition(t){const e=t.target.value;h(".setting.align button").removeClass("active"),h(t.target).addClass("active"),h("#btnPosition").val(e),this.setAttribute("btnPosition",e),"left"==e&&(h("#left-range-slider").show(),h("#right-range-slider").hide()),"right"==e&&(h("#left-range-slider").hide(),h("#right-range-slider").show())},setAttribute(t,e){this.model.set({[t]:e})},setGDPR(t){const e=t.target.checked;e?h("#nta-gdpr-editor").removeClass("hidden").show():h("#nta-gdpr-editor").hide(),this.setAttribute("isShowGDPR",e?"ON":"OFF")},setAttributeByCheck:function(t){const e=jQuery(t.target).attr("id");let n=t.target.checked;"isShowBtnLabel"===e&&(n=n?"ON":"OFF","ON"==n?jQuery("#btnLabelWidth, #btnLabel").closest("tr").show():jQuery("#btnLabelWidth, #btnLabel").closest("tr").hide()),"isShowScroll"===e&&(n?jQuery("#scrollHeight").closest("tr").show():jQuery("#scrollHeight").closest("tr").hide()),this.setAttribute(e,n)},setAttributeByEvent:function(t){const e=jQuery(t.target).attr("id"),n=jQuery(t.target).val();this.setAttribute(e,p().sanitize(n))},setAttributeByEditor:function(t){const e=tinyMCE.get(t).getContent();this.setAttribute(t,e)},setRangeSlider:function(t){this.setAttribute(t.target.name,t.target.value)}})}("#app-design"))({model:e}),t("#app-preview").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(h("#widget-preview").html()),initialize:function(){this.listenTo(this.model,"change",this.render),this.listenTo(this.collection,"sync",this.render),this.render()},render:function(){const t=this.model.toJSON();return t.responseText=t.responseText.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),t.gdprContent=t.gdprContent.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),t.description=t.description.njtReplaceAll(/\r\n\r\n/gm,"<br/>"),this.$el.html(this.template({settings:t,accounts:this.collection.active()})),this.wgIcon=this.$el.find(".wa__btn_popup_icon"),this.wgBtnIcon=this.$el.find(".wa__btn_popup"),this.wgLabel=this.$el.find(".wa__btn_popup_txt"),this.wgPopup=this.$el.find(".wa__popup_chat_box"),this.wgPopupHeading=this.$el.find(".wa__popup_heading"),this.wgPopupContent=this.$el.find(".wa__popup_content_list"),this.wgPopupNotice=this.$el.find(".wa__popup_notice"),this.wgTitle=this.$el.find(".wa__popup_title"),this.wgAccountName=this.$el.find(".wa__member_name"),this.wgAccountDuty=this.$el.find(".wa__member_duty"),this.wgIntro=this.$el.find(".wa__popup_intro"),this.wgTitle.css({color:this.model.get("textColor"),fontSize:parseInt(this.model.get("titleSize"))}),this.wgIntro.css({color:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?"#D9EBC6":this.model.get("textColor"),opacity:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?1:.8,fontSize:parseInt(this.model.get("descriptionTextSize"))}),this.wgAccountName.css({fontSize:parseInt(this.model.get("accountNameSize"))}),this.wgAccountDuty.css({fontSize:parseInt(this.model.get("regularTextSize"))}),this.wgIcon.css({background:this.model.get("backgroundColor")}),this.wgBtnIcon.css({left:"left"===this.model.get("btnPosition")?parseInt(this.model.get("btnLeftDistance")):"unset",right:"right"===this.model.get("btnPosition")?parseInt(this.model.get("btnRightDistance")):"unset",bottom:parseInt(this.model.get("btnBottomDistance"))}),this.wgLabel.css({display:"ON"===this.model.get("isShowBtnLabel")?"block":"none",left:"left"===this.model.get("btnPosition")?"100%":"unset",right:"right"===this.model.get("btnPosition")?"100%":"unset",marginRight:"right"===this.model.get("btnPosition")?"7px":"0px",marginLeft:"left"===this.model.get("btnPosition")?"7px":"0px",width:this.model.get("btnLabelWidth")}),this.wgPopup.css({left:"left"===this.model.get("btnPosition")?parseInt(this.model.get("btnLeftDistance")):"unset",right:"right"===this.model.get("btnPosition")?parseInt(this.model.get("btnRightDistance")):"unset",bottom:parseInt(this.model.get("btnBottomDistance"))+72}),this.wgPopupHeading.css({background:this.model.get("backgroundColor")}),this.wgPopupNotice.css({fontSize:parseInt(this.model.get("regularTextSize"))}),"ON"!==this.model.get("isShowScroll")&&1!=this.model.get("isShowScroll")||this.wgPopupContent.css({maxHeight:parseInt(this.model.get("scrollHeight")),overflow:"auto"}),"left"==this.model.get("btnPosition")?(h("#left-range-slider").show(),h("#right-range-slider").hide()):(h("#left-range-slider").hide(),h("#right-range-slider").show()),"OFF"==this.model.get("isShowGDPR")?h(".nta-wa-gdpr").hide():h(".nta-wa-gdpr").show(),this}})}("#app-preview"))({model:e,collection:i})}if(t("#wa-button, #button-design").length){const e=new x;t("#wa-button").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,template:_.template(h("#button-preview").html()),initialize:function(){this.render(),this.listenTo(this.model,"change",this.render)},render:function(){let t="";return t+="round"===this.model.get("type")?"wa__r_button ":"wa__sq_button ",t+=_.isEmpty(this.model.get("avatar"))?"wa__btn_w_icon ":"wa__btn_w_img ",t+=_.isEmpty(this.model.get("title"))?"wa__button_text_only":"",this.model.attributes.buttonClass=t,this.$el.html(this.template({buttonStyles:this.model.toJSON()})),this.btn=this.$el.find(".wa__button").css({background:this.model.get("backgroundColor")}),this.$el.find(".wa__btn_txt .wa__cs_name").css({color:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?"#d5f0d9":this.model.get("textColor"),opacity:"#fff"==this.model.get("textColor")||"#ffffff"==this.model.get("textColor")?1:"0.8"}),this.$el.find(".wa__btn_txt .wa__btn_title").css({color:this.model.get("textColor")}),this}})}("#wa-button"))({model:e}),t("#button-design").length&&new(function(t=null){if(null!==t)return Backbone.View.extend({el:t,events:{"change #textColor":"setAttributeByEvent","change #backgroundColor":"setAttributeByEvent","change #label":"setAttributeByEvent","click .btn-round":"changeButtonType","click .btn-square":"changeButtonType"},initialize:function(){const t=this;this.model.view=this,h("#textColor").wpColorPicker({defaultColor:t.model.get("textColor"),change:function(e,n){t.setAttribute("textColor",n.color.toString())}}),h("#backgroundColor").wpColorPicker({defaultColor:t.model.get("backgroundColor"),change:function(e,n){t.setAttribute("backgroundColor",n.color.toString())}})},setAttribute(t,e){this.model.set({[t]:e})},setAttributeByEvent:function(t){const e=jQuery(t.target).attr("id"),n=jQuery(t.target).val();this.setAttribute(e,n)},changeButtonType(t){const e=t.target.value;h(".setting.align button").removeClass("active"),h(t.target).addClass("active"),h("#btnType").val(e);const n="round"==e?"wa__sq_button":"wa__r_button",i="round"==e?"wa__r_button":"wa__sq_button";h("#njt-wabutton > a").removeClass(n).addClass(i),setTimeout((()=>{this.setAttribute("type",e)}),300)},render:function(){let t="";return t+="round"===this.model.get("type")?"wa__r_button ":"wa__sq_button ",t+=_.isEmpty(this.model.get("avatar"))?"wa__btn_w_icon ":"wa__btn_w_img ",t+=_.isEmpty(this.model.get("title"))?"wa__button_text_only":"",this.model.attributes.buttonClass=t,this.$el.html(this.template({buttonStyles:this.model.toJSON()})),this}})}("#button-design"))({model:e})}}))}(jQuery)})()})();