@processmaker/modeler 1.69.22 → 1.69.24

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@processmaker/modeler",
3
- "version": "1.69.22",
3
+ "version": "1.69.24",
4
4
  "scripts": {
5
5
  "serve": "vue-cli-service serve --mode development",
6
6
  "test:unit": "vue-cli-service test:unit",
@@ -43,8 +43,8 @@
43
43
  "@fortawesome/free-brands-svg-icons": "^6.4.2",
44
44
  "@fortawesome/free-solid-svg-icons": "^5.11.2",
45
45
  "@fortawesome/vue-fontawesome": "^0.1.8",
46
- "@processmaker/screen-builder": "3.8.17",
47
- "@processmaker/vue-form-elements": "0.65.5",
46
+ "@processmaker/screen-builder": "3.8.19",
47
+ "@processmaker/vue-form-elements": "0.65.6",
48
48
  "@processmaker/vue-multiselect": "2.3.0",
49
49
  "bootstrap": "^4.3.1",
50
50
  "bootstrap-vue": "^2.0.4",
@@ -9290,6 +9290,11 @@ const tG = eG.exports, v8 = {
9290
9290
  selected: []
9291
9291
  };
9292
9292
  },
9293
+ computed: {
9294
+ inputName() {
9295
+ return `${this.name}-${this._uid}`;
9296
+ }
9297
+ },
9293
9298
  watch: {
9294
9299
  value(O) {
9295
9300
  this.selected = O;
@@ -9305,7 +9310,7 @@ const tG = eG.exports, v8 = {
9305
9310
  var aG = function() {
9306
9311
  var g = this, w = g._self._c;
9307
9312
  return w("div", { attrs: { "aria-label": g.$attrs["aria-label"] } }, g._l(g.options, function($, Y) {
9308
- return w("div", { key: g.getOptionValue($), class: g.divClass, attrs: { role: "radio" } }, [w("input", g._b({ directives: [{ name: "model", rawName: "v-model", value: g.selected, expression: "selected" }, { name: "uni-id", rawName: "v-uni-id", value: g.getOptionId($, Y), expression: "getOptionId(option, index)" }], class: g.inputClass, attrs: { type: "radio", name: `${g.name}`, disabled: g.isReadOnly, "aria-label": g.getOptionAriaLabel($) }, domProps: { value: g.emitObjects ? $ : g.getOptionValue($), checked: g._q(g.selected, g.emitObjects ? $ : g.getOptionValue($)) }, on: { change: function(_e) {
9313
+ return w("div", { key: g.getOptionValue($), class: g.divClass, attrs: { role: "radio" } }, [w("input", g._b({ directives: [{ name: "model", rawName: "v-model", value: g.selected, expression: "selected" }, { name: "uni-id", rawName: "v-uni-id", value: g.getOptionId($, Y), expression: "getOptionId(option, index)" }], class: g.inputClass, attrs: { type: "radio", name: g.inputName, disabled: g.isReadOnly, "aria-label": g.getOptionAriaLabel($) }, domProps: { value: g.emitObjects ? $ : g.getOptionValue($), checked: g._q(g.selected, g.emitObjects ? $ : g.getOptionValue($)) }, on: { change: function(_e) {
9309
9314
  g.selected = g.emitObjects ? $ : g.getOptionValue($);
9310
9315
  } } }, "input", g.$attrs, !1)), w("label", { directives: [{ name: "uni-for", rawName: "v-uni-for", value: g.getOptionId($, Y), expression: "getOptionId(option, index)" }], class: g.labelClass }, [g._v(" " + g._s(g.getOptionContent($)) + " ")])]);
9311
9316
  }), 0);
@@ -30,7 +30,7 @@ function print() { __p += __j.call(arguments, '') }
30
30
  */var w=Object.prototype.toString,$=Array.isArray||function(Se){return w.call(Se)==="[object Array]"};function Y(re){return typeof re=="function"}function _e(re){return $(re)?"array":typeof re}function Ee(re){return re.replace(/[\-\[\]{}()*+?.,\\\^$|#\s]/g,"\\$&")}function At(re,Se){return re!=null&&typeof re=="object"&&Se in re}function Tt(re,Se){return re!=null&&typeof re!="object"&&re.hasOwnProperty&&re.hasOwnProperty(Se)}var cr=RegExp.prototype.test;function Nr(re,Se){return cr.call(re,Se)}var Ft=/\S/;function wr(re){return!Nr(Ft,re)}var En={"&":"&amp;","<":"&lt;",">":"&gt;",'"':"&quot;","'":"&#39;","/":"&#x2F;","`":"&#x60;","=":"&#x3D;"};function da(re){return String(re).replace(/[&<>"'`=\/]/g,function(Xe){return En[Xe]})}var it=/\s*/,Tr=/\s+/,An=/\s*=/,ta=/\s*\}/,se=/#|\^|\/|>|\{|&|=|!/;function fr(re,Se){if(!re)return[];var Xe=!1,$t=[],Pe=[],ur=[],G=!1,C=!1,Le="",ot=0;function Mt(){if(G&&!C)for(;ur.length;)delete Pe[ur.pop()];else ur=[];G=!1,C=!1}var mn,sa,jr;function zn(ct){if(typeof ct=="string"&&(ct=ct.split(Tr,2)),!$(ct)||ct.length!==2)throw new Error("Invalid tags: "+ct);mn=new RegExp(Ee(ct[0])+"\\s*"),sa=new RegExp("\\s*"+Ee(ct[1])),jr=new RegExp("\\s*"+Ee("}"+ct[1]))}zn(Se||_t.tags);for(var X=new vr(re),Ln,je,Pt,ya,Ma,Vt;!X.eos();){if(Ln=X.pos,Pt=X.scanUntil(mn),Pt)for(var Wr=0,Cr=Pt.length;Wr<Cr;++Wr)ya=Pt.charAt(Wr),wr(ya)?(ur.push(Pe.length),Le+=ya):(C=!0,Xe=!0,Le+=" "),Pe.push(["text",ya,Ln,Ln+1]),Ln+=1,ya===`
31
31
  `&&(Mt(),Le="",ot=0,Xe=!1);if(!X.scan(mn))break;if(G=!0,je=X.scan(se)||"name",X.scan(it),je==="="?(Pt=X.scanUntil(An),X.scan(An),X.scanUntil(sa)):je==="{"?(Pt=X.scanUntil(jr),X.scan(ta),X.scanUntil(sa),je="&"):Pt=X.scanUntil(sa),!X.scan(sa))throw new Error("Unclosed tag at "+X.pos);if(je==">"?Ma=[je,Pt,Ln,X.pos,Le,ot,Xe]:Ma=[je,Pt,Ln,X.pos],ot++,Pe.push(Ma),je==="#"||je==="^")$t.push(Ma);else if(je==="/"){if(Vt=$t.pop(),!Vt)throw new Error('Unopened section "'+Pt+'" at '+Ln);if(Vt[1]!==Pt)throw new Error('Unclosed section "'+Vt[1]+'" at '+Ln)}else je==="name"||je==="{"||je==="&"?C=!0:je==="="&&zn(Pt)}if(Mt(),Vt=$t.pop(),Vt)throw new Error('Unclosed section "'+Vt[1]+'" at '+X.pos);return xr(bt(Pe))}function bt(re){for(var Se=[],Xe,$t,Pe=0,ur=re.length;Pe<ur;++Pe)Xe=re[Pe],Xe&&(Xe[0]==="text"&&$t&&$t[0]==="text"?($t[1]+=Xe[1],$t[3]=Xe[3]):(Se.push(Xe),$t=Xe));return Se}function xr(re){for(var Se=[],Xe=Se,$t=[],Pe,ur,G=0,C=re.length;G<C;++G)switch(Pe=re[G],Pe[0]){case"#":case"^":Xe.push(Pe),$t.push(Pe),Xe=Pe[4]=[];break;case"/":ur=$t.pop(),ur[5]=Pe[2],Xe=$t.length>0?$t[$t.length-1][4]:Se;break;default:Xe.push(Pe)}return Se}function vr(re){this.string=re,this.tail=re,this.pos=0}vr.prototype.eos=function(){return this.tail===""},vr.prototype.scan=function(Se){var Xe=this.tail.match(Se);if(!Xe||Xe.index!==0)return"";var $t=Xe[0];return this.tail=this.tail.substring($t.length),this.pos+=$t.length,$t},vr.prototype.scanUntil=function(Se){var Xe=this.tail.search(Se),$t;switch(Xe){case-1:$t=this.tail,this.tail="";break;case 0:$t="";break;default:$t=this.tail.substring(0,Xe),this.tail=this.tail.substring(Xe)}return this.pos+=$t.length,$t};function Xt(re,Se){this.view=re,this.cache={".":this.view},this.parent=Se}Xt.prototype.push=function(Se){return new Xt(Se,this)},Xt.prototype.lookup=function(Se){var Xe=this.cache,$t;if(Xe.hasOwnProperty(Se))$t=Xe[Se];else{for(var Pe=this,ur,G,C,Le=!1;Pe;){if(Se.indexOf(".")>0)for(ur=Pe.view,G=Se.split("."),C=0;ur!=null&&C<G.length;)C===G.length-1&&(Le=At(ur,G[C])||Tt(ur,G[C])),ur=ur[G[C++]];else ur=Pe.view[Se],Le=At(Pe.view,Se);if(Le){$t=ur;break}Pe=Pe.parent}Xe[Se]=$t}return Y($t)&&($t=$t.call(this.view)),$t};function Gt(){this.cache={}}Gt.prototype.clearCache=function(){this.cache={}},Gt.prototype.parse=function(Se,Xe){var $t=this.cache,Pe=Se+":"+(Xe||_t.tags).join(":"),ur=$t[Pe];return ur==null&&(ur=$t[Pe]=fr(Se,Xe)),ur},Gt.prototype.render=function(Se,Xe,$t,Pe){var ur=this.parse(Se,Pe),G=Xe instanceof Xt?Xe:new Xt(Xe,void 0);return this.renderTokens(ur,G,$t,Se,Pe)},Gt.prototype.renderTokens=function(Se,Xe,$t,Pe,ur){for(var G="",C,Le,ot,Mt=0,mn=Se.length;Mt<mn;++Mt)ot=void 0,C=Se[Mt],Le=C[0],Le==="#"?ot=this.renderSection(C,Xe,$t,Pe):Le==="^"?ot=this.renderInverted(C,Xe,$t,Pe):Le===">"?ot=this.renderPartial(C,Xe,$t,ur):Le==="&"?ot=this.unescapedValue(C,Xe):Le==="name"?ot=this.escapedValue(C,Xe):Le==="text"&&(ot=this.rawValue(C)),ot!==void 0&&(G+=ot);return G},Gt.prototype.renderSection=function(Se,Xe,$t,Pe){var ur=this,G="",C=Xe.lookup(Se[1]);function Le(mn){return ur.render(mn,Xe,$t)}if(C){if($(C))for(var ot=0,Mt=C.length;ot<Mt;++ot)G+=this.renderTokens(Se[4],Xe.push(C[ot]),$t,Pe);else if(typeof C=="object"||typeof C=="string"||typeof C=="number")G+=this.renderTokens(Se[4],Xe.push(C),$t,Pe);else if(Y(C)){if(typeof Pe!="string")throw new Error("Cannot use higher-order sections without the original template");C=C.call(Xe.view,Pe.slice(Se[3],Se[5]),Le),C!=null&&(G+=C)}else G+=this.renderTokens(Se[4],Xe,$t,Pe);return G}},Gt.prototype.renderInverted=function(Se,Xe,$t,Pe){var ur=Xe.lookup(Se[1]);if(!ur||$(ur)&&ur.length===0)return this.renderTokens(Se[4],Xe,$t,Pe)},Gt.prototype.indentPartial=function(Se,Xe,$t){for(var Pe=Xe.replace(/[^ \t]/g,""),ur=Se.split(`
32
32
  `),G=0;G<ur.length;G++)ur[G].length&&(G>0||!$t)&&(ur[G]=Pe+ur[G]);return ur.join(`
33
- `)},Gt.prototype.renderPartial=function(Se,Xe,$t,Pe){if($t){var ur=Y($t)?$t(Se[1]):$t[Se[1]];if(ur!=null){var G=Se[6],C=Se[5],Le=Se[4],ot=ur;return C==0&&Le&&(ot=this.indentPartial(ur,Le,G)),this.renderTokens(this.parse(ot,Pe),Xe,$t,ot)}}},Gt.prototype.unescapedValue=function(Se,Xe){var $t=Xe.lookup(Se[1]);if($t!=null)return $t},Gt.prototype.escapedValue=function(Se,Xe){var $t=Xe.lookup(Se[1]);if($t!=null)return _t.escape($t)},Gt.prototype.rawValue=function(Se){return Se[1]};var _t={name:"mustache.js",version:"3.2.1",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,to_html:void 0,Scanner:void 0,Context:void 0,Writer:void 0},zi=new Gt;return _t.clearCache=function(){return zi.clearCache()},_t.parse=function(Se,Xe){return zi.parse(Se,Xe)},_t.render=function(Se,Xe,$t,Pe){if(typeof Se!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+_e(Se)+'" was given as the first argument for mustache#render(template, view, partials)');return zi.render(Se,Xe,$t,Pe)},_t.to_html=function(Se,Xe,$t,Pe){var ur=_t.render(Se,Xe,$t);if(Y(Pe))Pe(ur);else return ur},_t.escape=da,_t.Scanner=vr,_t.Context=Xt,_t.Writer=Gt,_t})})(f6);var a7=f6.exports;const xo=Lx(a7),dl={name:"ValidationMixin",mixins:[eD],props:["validation","validationData","validationField","validationMessages","config"],computed:{isReadOnly(){return!!(this.readonly||this.disabled||this.$attrs.readonly||this.$attrs.disabled)},required(){for(const O of Zr.get(this.config,"validation",[])||[]){const g=Zr.get(O,"value","").split(":")[0];if(g==="required")return!0;if(g==="required_if"||g==="required_unless"){const w=O.configs[0].value,$=O.configs[1].value;let Y=this.$parent;"$v"in Y||(Y=Y.$parent);const _e=Zr.get(Y,w)||Zr.get(this.transientData,w);if(g==="required_if"){if(_e==$)return!0}else if(_e!=$)return!0}}return!1}},data(){return{validator:null}},mounted(){this.setValidatorLanguage(),this.updateValidation(),this.observeElementMutations()},watch:{value(){this.updateValidation()},validation(){this.updateValidation()},label(){this.updateValidation()},readonly(){this.updateValidation()},disabled(){this.updateValidation()},validationData:{handler:function(){this.updateValidation()},deep:!0}},methods:{observeElementMutations(){new MutationObserver(this.handleMutations).observe(this.$el,{attributes:!0,attributeFilter:["readonly","disabled"],subtree:!0})},handleMutations(O){O.forEach(g=>{g.type=="attributes"&&this.updateValidation()})},setValidatorLanguage(){let O=typeof window>"u"?global:window;if(O.validatorLanguageSet)return;let g="en";Zr.has(O,"ProcessMaker.user.lang")?g=O.ProcessMaker.user.lang:document.documentElement.lang&&(g=document.documentElement.lang),typeof O.ProcessMaker.setValidatorLanguage=="function"&&O.ProcessMaker.setValidatorLanguage(xu,g),O.validatorLanguageSet=!0},updateValidation(){if(this.validation&&!this.isReadOnly){let O=this.validationField?this.validationField:this.name,g=this.validationData?this.validationData:{[O]:this.value},w="";if(Array.isArray(this.validation)){let _e=[];this.validation.forEach(Ee=>{if(!Ee.value)return;const At=Ee.value.replace("after:","after_date:").replace("before:","before_date:").replace("after_or_equal:","after_or_equal_date:").replace("before_or_equal:","before_or_equal_date:");_e.push(At)}),w=_e}else w=this.validation.replace("after:","after_date:").replace("before:","before_date:").replace("after_or_equal:","after_or_equal_date:").replace("before_or_equal:","before_or_equal_date:");let $={[O]:w};this.registerCustomRules(g),this.validator=new xu(g,$,{validationMessages:this.validationMessages?this.validationMessages:null});const Y=xo.render(this.label,g);this.validator.setAttributeNames({[O]:Y}),this.validator.errors.first(this.name),this.validator.passes()}else this.validator=null},registerCustomRules(O){xu.register("custom-same",function(g,w){let $,Y=g;return w.includes(".")?$=w.split(".").reduce((_e,Ee)=>_e[Ee],this.validator.input):$=this.validator._flattenObject(this.validator.input)[w],$===Y},"The :attribute and :custom-same fields must match."),xu.register("after_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y>_e},"The :attribute must be after :after_date."),xu.register("after_or_equal_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y>=_e},"The :attribute must be equal or after :after_or_equal_date."),xu.register("before_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y<_e},"The :attribute must be before :before_date."),xu.register("before_or_equal_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y<=_e},"The :attribute must be equal or before :before_or_equal_date."),xu.register("required_if",function(g,w,$){typeof w=="string"&&(w=w.split(","));let Y=this.validator._objectPath(this.validator.input,w[0]);switch(typeof Y){case"boolean":case"number":if(Y.toString()==w[1])return this.validator.getRule("required").validate(g);break;default:if(Y==w[1])return this.validator.getRule("required").validate(g);break}return!0},"The :attribute field is required."),xu.register("required_unless",function(g,w,$){typeof w=="string"&&(w=w.split(","));let Y=this.validator._objectPath(this.validator.input,w[0]);switch(typeof Y){case"boolean":case"number":if(Y.toString()!==w[1])return this.validator.getRule("required").validate(g);break;default:if(Y!==w[1])return this.validator.getRule("required").validate(g);break}return!0},"The :attribute field is required."),xu.register("between",function(g,w){const $=Number(g),Y=w.split(",")[0],_e=w.split(",")[1];return $>=Y&&$<=_e},"Must have a value between :between"),xu.register("dot_notation",g=>{const w=g.split("."),$=/^[a-zA-Z][a-zA-Z0-9_]*$/;for(let Y of w)if(!$.test(Y))return!1;return!0},"Invalid variable name")}}};Kr.tz.setDefault(m0());const i7=/^\d{4}-/;function tD(O){if(typeof ProcessMaker<"u"&&ProcessMaker.user)return ProcessMaker.user[O]}function m0(){return tD("timezone")||Kr.tz.guess()}function v6(){return tD("lang")||"en"}function Ap(){return typeof ProcessMaker<"u"&&ProcessMaker.user&&ProcessMaker.user.datetime_format?ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,""):"MM/DD/YYYY"}function h0(){return tD("datetime_format")||"MM/DD/YYYY h:mm A"}function d6(O,g=Ap()){return Kr(O,g).isValid()}function rD(O){let g;return i7.test(O)?(g=Kr(O,"YYYY-MM-DDTHH:mm:ss.SSSZ",!0),g.isValid()?g.format(h0()):(g=Kr(O,"YYYY-MM-DD",!0),g.isValid()?g.format(Ap()):O)):O}const o7=Object.freeze(Object.defineProperty({__proto__:null,formatIfDate:rD,getLang:v6,getTimezone:m0,getUserDateFormat:Ap,getUserDateTimeFormat:h0,isValidDate:d6},Symbol.toStringTag,{value:"Module"}));let dT=typeof window>"u"?global:window;(Y6=(K6=dT.ProcessMaker)==null?void 0:K6.user)!=null&&Y6.lang&&typeof dT.ProcessMaker.setValidatorLanguage=="function"&&dT.ProcessMaker.setValidatorLanguage(xu,dT.ProcessMaker.user.lang),xu.register("custom-date",function(O){return Kr(O,[Ap(),Kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date."),xu.register("custom-datetime",function(O){return Kr(O,[h0(),Kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date and time.");const zp={name:"DataFormatMixin",props:{dataFormat:{type:String,default(){return"string"}}},computed:{componentName(){return this.$vnode.tag?this.$vnode.tag.replace(/vue-component-\d+-/i,""):""}},data(){return{dataTypeValidator:null,dataTypeValidatorPasses:!0,formatted:""}},watch:{value(O){const g=this.formatValue(O);if(g!==O){if(this.dataFormat==="date"&&this.formatValue(O)===g&&this.componentName!=="FormDatePicker")return;this.$emit("input",g)}}},methods:{formatValueWith(O,g){return this.$set(this,"dataFormat",g),this.formatValue(O)},formatValue(O){return!O&&this.dataFormat!=="boolean"?O:(this.dataTypeValidatorPasses=this.validateRuleFormat(O),this.dataTypeValidatorPasses?this.formatValueIfValid(O):O)},validateRuleFormat(O){if(!this.dataFormat)return!0;const g={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array"};return this.$options._componentTag==="FormSelectList"||!g.hasOwnProperty(this.dataFormat)?!0:(this.dataTypeValidator=new xu({[this.name]:O},{[this.name]:g[this.dataFormat]}),this.dataTypeValidator.passes())},formatFloatValue(){if(this.dataFormat=="float"&&this.dataTypeValidator.passes())return this.value=Number(this.value),this.$emit("input",this.value)},formatValueIfValid(O){switch(this.dataFormat){case"string":O=O.toString();break;case"boolean":O=!!O;break;case"currency":case"percentage":O=parseFloat(O);break;case"int":O=parseInt(O);break;case"date":this.componentName==="FormDatePicker"&&(O=Kr.utc(O,[Ap(),Kr.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(O=Kr(O,[h0(),Kr.ISO_8601],!0).toISOString());break;case"array":break;default:O=O.toString();break}return O}}};function Mo(O,g,w,$,Y,_e,Ee,At){var Tt=typeof O=="function"?O.options:O;g&&(Tt.render=g,Tt.staticRenderFns=w,Tt._compiled=!0),$&&(Tt.functional=!0),_e&&(Tt._scopeId="data-v-"+_e);var cr;if(Ee?(cr=function(wr){wr=wr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!wr&&typeof __VUE_SSR_CONTEXT__<"u"&&(wr=__VUE_SSR_CONTEXT__),Y&&Y.call(this,wr),wr&&wr._registeredComponents&&wr._registeredComponents.add(Ee)},Tt._ssrRegister=cr):Y&&(cr=At?function(){Y.call(this,(Tt.functional?this.parent:this).$root.$options.shadowRoot)}:Y),cr)if(Tt.functional){Tt._injectStyles=cr;var Nr=Tt.render;Tt.render=function(En,da){return cr.call(da),Nr(En,da)}}else{var Ft=Tt.beforeCreate;Tt.beforeCreate=Ft?[].concat(Ft,cr):[cr]}return{exports:O,options:Tt}}const u7={props:["name","error","validator"],computed:{displayErrors(){let O=[];return this.error&&O.push(this.error),this.name&&this.validator&&this.validator.errors.errors[this.name]&&this.validator.errors.errors[this.name].forEach(g=>{O.push(g)}),O}}};var s7=function(){var g=this,w=g._self._c;return g.displayErrors?w("div",{staticClass:"invalid-feedback"},g._l(g.displayErrors,function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),0):g._e()},l7=[],c7=Mo(u7,s7,l7,!1,null,null,null,null);const mT=c7.exports,YY="",f7={};var v7=function(){var g=this,w=g._self._c;return g.$parent.required?w("span",{staticClass:"required-asterisk",attrs:{title:g.$t("required")}},[g._v("*")]):g._e()},d7=[],m7=Mo(f7,v7,d7,!1,null,null,null,null);const Dp=m7.exports,h7=Yl(),g7={inheritAttrs:!1,components:{DisplayErrors:mT,RequiredAsterisk:Dp},mixins:[h7,dl,zp],props:["value","label","error","helper","name","controlClass","validateKeyStrokes"],data(){return{validator:null}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},methods:{handleInput(O){if(this.validateKeyStrokes&&!new RegExp(this.validateKeyStrokes).test(O.target.value)){this.$emit("input",this.value),O.target.value=this.value;return}this.$emit("input",O.target.value)}}};var p7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],staticClass:"form-control",class:g.classList,attrs:{name:g.name},domProps:{value:g.value},on:{input:g.handleInput,blur:function($){return g.formatFloatValue()}}},"input",g.$attrs,!1)),g.error||g.validator&&g.validator.errorCount?w("display-errors",{attrs:{name:g.name,error:g.error,validator:g.validator}}):g._e(),g.helper?w("small",{staticClass:"form-text text-muted",domProps:{innerHTML:g._s(g.helper)}}):g._e()],1)},b7=[],y7=Mo(g7,p7,b7,!1,null,null,null,null);const m6=y7.exports,x7=Yl(),_7={components:{RequiredAsterisk:Dp},inheritAttrs:!1,mixins:[x7,dl,zp],model:{prop:"checked",event:"change"},props:["error","label","name","helper","controlClass","toggle","checked","initiallyChecked","transientData"],computed:{validatorErrors(){return this.validator&&this.validator.errors.get(this.name)||[]},isChecked(){let O=new Boolean(this.initiallyChecked)==!0;return typeof this.checked>"u"||this.checked==null?(this.$emit("change",O),O):this.checked},divClass(){return this.toggle?"custom-control custom-switch":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},classList(){return[this.toggle?"custom-control-input":"form-check-input",{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}]}}};var w7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("div",{class:g.divClass},[w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{type:"checkbox",name:g.name},domProps:{checked:g.isChecked},on:{change:function($){return g.$emit("change",$.target.checked)}}},"input",g.$attrs,!1)),w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}],class:g.labelClass},[g._v(g._s(g.label))]),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback"},[g._l(g.validatorErrors,function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)])},C7=[],k7=Mo(_7,w7,C7,!1,null,null,null,null);const h6=k7.exports,hT={name:"hasDefaultOptionKeyMixin",computed:{valueOrDefault(){return this.value||this.options.defaultOptionKey}},watch:{"options.defaultOptionKey":{immediate:!0,handler(O){this.value||this.$emit("input",O)}},value:{immediate:!0,handler(){!this.value&&this.options.defaultOptionKey&&this.$emit("input",this.options.defaultOptionKey)}}}},S7=Yl();function g6(O){return Object.keys(O).includes("value","contemnt")&&O.content!=null}const T7={inheritAttrs:!1,mixins:[S7,zp,hT],props:["name","label","error","value","options","helper","controlClass","toggle","validationData"],computed:{radioOptions(){return Array.isArray(this.options)?this.options:this.optionsFromDataSource},optionsFromDataSource(){const{jsonData:O,key:g,value:w,dataName:$}=this.options;let Y=[];const _e=Ee=>({value:Ee[g||"value"],content:Ee[w||"content"]});if(O)try{Y=JSON.parse(O).map(_e).filter(g6)}catch{}if($)try{Y=Object.values(this.validationData[$]).map(_e).filter(g6)}catch{}return Y},divClass(){return this.toggle?"custom-control custom-radio":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},inputClass(){return[{[this.controlClass]:!!this.controlClass},{"is-invalid":this.validator&&this.validator.errorCount||this.error},this.toggle?"custom-control-input":"form-check-input"]}}};var O7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",[g._v(g._s(g.label))]),g._l(g.radioOptions,function($){return w("div",{key:$.value,class:g.divClass},[w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:`${g.name}-${$.value}`,expression:"`${name}-${option.value}`"}],class:g.inputClass,attrs:{type:"radio"},domProps:{value:$.value,checked:$.value==g.valueOrDefault},on:{change:function(Y){return g.$emit("input",Y.target.value)}}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:`${g.name}-${$.value}`,expression:"`${name}-${option.value}`"}],class:g.labelClass},[g._v(g._s($.content))])])}),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],2)},E7=[],A7=Mo(T7,O7,E7,!1,null,null,null,null);const p6=A7.exports,z7=Yl();function b6(O){return Object.keys(O).includes("value","contemnt")&&O.content!=null}const D7={inheritAttrs:!1,components:{DisplayErrors:mT},mixins:[z7,dl,zp,hT],props:["label","error","value","options","helper","name","controlClass","validationData","placeholder"],computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},selectOptions(){return Array.isArray(this.options)?this.options:this.optionsFromDataSource},optionsFromDataSource(){const{jsonData:O,key:g,value:w,dataName:$}=this.options;let Y=[];const _e=Ee=>({value:Ee[g||"value"],content:Ee[w||"content"]});if(O)try{Y=JSON.parse(O).map(_e).filter(b6)}catch{}if($)try{Y=Object.values(this.validationData[$]).map(_e).filter(b6)}catch{}return Y}}};var P7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w("select",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],staticClass:"form-control",class:g.classList,attrs:{name:g.name},on:{change:function($){return g.$emit("input",$.target.value)}}},"select",g.$attrs,!1),[w("option",{domProps:{value:null}},[g._v(g._s(g.placeholder?g.placeholder:g.$t("Select")))]),g._l(g.selectOptions,function($,Y){return w("option",{key:Y,domProps:{selected:$.value==g.valueOrDefault,value:$.value}},[g._v(" "+g._s($.content)+" ")])})],2),g.error||g.validator&&g.validator.errorCount?w("display-errors",{attrs:{name:g.name,error:g.error,validator:g.validator}}):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},R7=[],M7=Mo(D7,P7,R7,!1,null,null,null,null);const y6=M7.exports,XY="",B7=Yl(),I7={mounted(){this.value===null&&this.emitArray&&this.$emit("input",[])},inheritAttrs:!1,mixins:[B7,dl],props:["value","optionValue","optionContent","options","label","error","helper","name","controlClass","placeholder","emitObjects","emitArray","loading"],computed:{valueProxy:{get(){return this.toMultiSelectFormat(this.value,this.optionValue,this.options,this.emitArray,this.emitObjects)},set(O){const g=this.convertForEmit(O,this.optionValue,this.emitArray,this.emitObjects);this.$emit("input",g)}},classList(){return{"is-invalid border border-danger":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},methods:{convertForEmit(O,g,w,$){if(w&&$)return O||[];if(w&&!$)return O?O.map(Y=>Y[g]):[];if(!w&&$)return O||null;if(!w&&!$)return O?O[g]:null},toMultiSelectFormat(O,g,w,$,Y){const _e=O===null||typeof O>"u",Ee=Array.isArray(O),At=Ee&&O.length>0?typeof O[0]=="object":typeof O=="object";if(_e)return null;if(Ee&&O.length===0)return $?[]:null;if(Ee!==$||At!==Y)return null;if(Ee&&At)return O;if(Ee&&!At)return w.filter(Tt=>{const cr=Tt[g]?Tt[g]:null;return O.findIndex(Nr=>Nr===cr)>=0&&cr!==null});if(!Ee&&At)return O;if(!Ee&&!At){const Tt=w.filter(cr=>{const Nr=g in cr?cr[g]:null;return O==Nr&&Nr!==null});return Tt.length>0?Tt[0]:[]}}}};var F7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("multiselect",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{options:g.options,multiple:g.emitArray,name:g.name,"track-by":g.emitObjects?g.optionContent:g.optionValue,label:g.optionContent,placeholder:g.placeholder?g.placeholder:g.$t("type here to search"),disabled:g.isReadOnly,loading:g.loading},on:{"search-change":function($){return g.$emit("search-change",$)}},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"multiselect",g.$attrs,!1),[w("template",{slot:"noResult"},[g._v(" "+g._s(g.$t("No elements found. Consider changing the search query."))+" ")]),w("template",{slot:"noOptions"},[g._v(" "+g._s(g.$t("No Data Available"))+" ")])],2)],1)},$7=[],N7=Mo(I7,F7,$7,!1,null,null,null,null);const L7=N7.exports,x6={computed:{divClass(){return this.toggle?"custom-control custom-radio":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},inputClass(){return[{[this.controlClass]:!!this.controlClass},{"is-invalid":this.validator&&this.validator.errorCount||this.error},this.toggle?"custom-control-input":"form-check-input"]}},methods:{getOptionValue(O){return O[this.optionValue||"value"]},getOptionContent(O){return O[this.optionContent||"content"]},getOptionAriaLabel(O){var w;let g="";if((w=this.optionsExtra)!=null&&w.length){const $=this.optionsExtra.find(Y=>Y.hasOwnProperty(this.optionValue)&&Y[this.optionValue]===O[this.optionValue]);$&&(g=$[this.optionAriaLabel||"ariaLabel"]??"")}else g=O[this.optionAriaLabel||"ariaLabel"]??"";return!g||g===""?this.getOptionContent(O):g},getOptionId(O,g){return`${this.name}-${this.getOptionValue(O)}-${g}`}}},H7={mixins:[Yl(),dl,x6],inheritAttrs:!1,props:["value","optionValue","optionContent","optionAriaLabel","options","optionsExtra","error","helper","name","controlClass","emitObjects","emitArray","allowMultiselect"],data(){return{selected:[]}},watch:{value(O){this.selected=O},selected(){this.$emit("input",this.selected)}},mounted(){this.selected=this.value}};var V7=function(){var g=this,w=g._self._c;return w("div",{attrs:{"aria-label":g.$attrs["aria-label"]}},g._l(g.options,function($,Y){return w("div",{key:g.getOptionValue($),class:g.divClass,attrs:{role:"radio"}},[w("input",g._b({directives:[{name:"model",rawName:"v-model",value:g.selected,expression:"selected"},{name:"uni-id",rawName:"v-uni-id",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.inputClass,attrs:{type:"radio",name:`${g.name}`,disabled:g.isReadOnly,"aria-label":g.getOptionAriaLabel($)},domProps:{value:g.emitObjects?$:g.getOptionValue($),checked:g._q(g.selected,g.emitObjects?$:g.getOptionValue($))},on:{change:function(_e){g.selected=g.emitObjects?$:g.getOptionValue($)}}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.labelClass},[g._v(" "+g._s(g.getOptionContent($))+" ")])])}),0)},j7=[],q7=Mo(H7,V7,j7,!1,null,null,null,null);const U7=q7.exports,W7={mixins:[Yl(),dl,x6],inheritAttrs:!1,props:["value","optionValue","optionContent","optionAriaLabel","options","optionsExtra","error","helper","name","controlClass","emitObjects","emitArray"],data(){return{selected:[]}},watch:{value(O){this.selected=O instanceof Array?O:[]}},mounted(){this.selected=this.value instanceof Array?this.value:[]}};var G7=function(){var g=this,w=g._self._c;return w("div",{attrs:{"aria-label":g.$attrs["aria-label"]}},g._l(g.options,function($,Y){return w("div",{key:g.getOptionValue($),class:g.divClass,attrs:{role:"checkbox"}},[w("input",g._b({directives:[{name:"model",rawName:"v-model",value:g.selected,expression:"selected"},{name:"uni-id",rawName:"v-uni-id",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.inputClass,attrs:{type:"checkbox",name:`${g.name}`,disabled:g.isReadOnly,"aria-label":g.getOptionAriaLabel($)},domProps:{value:g.emitObjects?$:g.getOptionValue($),checked:Array.isArray(g.selected)?g._i(g.selected,g.emitObjects?$:g.getOptionValue($))>-1:g.selected},on:{change:[function(_e){var Ee=g.selected,At=_e.target,Tt=!!At.checked;if(Array.isArray(Ee)){var cr=g.emitObjects?$:g.getOptionValue($),Nr=g._i(Ee,cr);At.checked?Nr<0&&(g.selected=Ee.concat([cr])):Nr>-1&&(g.selected=Ee.slice(0,Nr).concat(Ee.slice(Nr+1)))}else g.selected=Tt},function(_e){return g.$emit("input",g.selected)}]}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.labelClass},[g._v(" "+g._s(g.getOptionContent($))+" ")])])}),0)},K7=[],Y7=Mo(W7,G7,K7,!1,null,null,null,null);const X7=Y7.exports,J7=Yl(),_6=100,Z7={components:{OptionboxView:U7,CheckboxView:X7,MultiSelectView:L7,RequiredAsterisk:Dp},mixins:[J7,dl],inheritAttrs:!1,props:["label","error","value","options","helper","name","controlClass","validationData","placeholder","multiple","transientData"],data(){return{lastRequest:{},previousSourceConfig:null,previousValidationData:null,previousValidationDataParent:null,selectListOptions:[],selectedOption:null,loading:!1,loaded:!1,previousDependentValue:null,filter:"",countWithoutFilter:null}},computed:{selectListOptionsWithSelected(){return this.selectedOption&&!this.selectListOptions.some(O=>O.value===this.selectedOption.value)?[this.selectedOption,...this.selectListOptions]:this.selectListOptions},collectionOptions(){return Zr.get(this.options,"collectionOptions")},isDataConnector(){return Zr.get(this.options,"dataSource")==="dataConnector"},isCollection(){return Zr.get(this.options,"dataSource")==="collection"},mode(){return this.$root.$children[0].mode},validatorErrors(){return this.validator&&this.validator.errors.get(this.name)||[]},divClass(){return this.toggle?"custom-control custom-radio":"form-check"},reactOptions(){const O=typeof this.value=="string";let g=!0;!this.loaded&&O&&(g=!1),this.loaded=!0,this.fillSelectListOptions(g)},sourceConfig(){return{dataSource:this.options.dataSource,collectionOptions:this.options.collectionOptions,selectedEndPoint:this.options.selectedEndPoint,selectedDataSource:this.options.selectedDataSource,valueTypeReturned:this.options.valueTypeReturned,dataName:this.options.dataName,value:this.options.value,key:this.options.key,ariaLabel:this.options.optionAriaLabel}},valueProxy:{get(){if(this.options.renderAs==="dropdown"){let O=this.value;return this.options.valueTypeReturned==="object"&&this.value&&(Array.isArray(this.value)||(O=[this.value]),O.forEach(g=>{this.addObjectContentProp(g)})),this.areItemsInSelectListOptions(O)?this.value:[]}return this.value},set(O){return this.selectedOption=O?this.selectListOptions.find(g=>g.value===O):null,this.$emit("input",O)}},optionsKey(){if(this.options.dataSource&&this.options.dataSource==="provideData")return"value";if(this.options.dataSource&&this.options.dataSource==="dataConnector"&&this.options.valueTypeReturned==="object")return this.optionsValue;const O=this.options.key||"value";return this.stripMustache(O)},optionsValue(){return this.options.dataSource&&(this.options.dataSource==="provideData"||this.isCollection)?"content":"__content__"},optionsAriaLabel(){return this.options.dataSource&&(this.options.dataSource==="provideData"||this.isCollection)?"ariaLabel":"__ariaLabel__"},classList(){return{"has-errors":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},watch:{selectListOptions:{handler(){this.isCollection&&this.value&&!this.selectListOptions.some(O=>O.value===this.value)&&this.loadIndividualRecord()}}},methods:{isMultiSelectDisabled(){return this.options.allowMultiSelect===!1},hasNestedProperty(O,g){return g.split(".").reduce((w,$)=>w&&w[$],O)},renderPmql(O){if(typeof O<"u"&&O!==""&&O!==null){const g=this.makeProxyData(),w=O.replace(/{{\s*([\w.]+)\s*}}/g,(_e,Ee)=>this.hasNestedProperty(g,Ee)?_e:`[[[${Ee}]]]`),$=xo.render(w,g);return xo.render($.replace("[[[","{{").replace("]]]","}}"),{data:g})}return""},async loadOptionsFromDataConnector(O){const{selectedEndPoint:g,selectedDataSource:w,dataName:$}=O;if(!this.shouldLoadOptionsFromDataConnector(w,g))return!1;const Y=this.prepareParamsForDataConnector(g),_e={selectedDataSource:w,params:Y};return Zr.isEqual(this.lastRequest,_e)?!1:(this.lastRequest=Zr.cloneDeep(_e),await this.fetchDataSourceOptions(w,Y,$))},shouldLoadOptionsFromDataConnector(O,g){return!(this.isEditorMode()||this.isNoDataSourceSelected(O)||this.isNoEndpointSelected(g)||this.isStandaloneMode())},isEditorMode(){return this.mode==="editor"},isNoDataSourceSelected(O){return O===null||typeof O>"u"||O.toString().trim().length===0},isNoEndpointSelected(O){return O===null||typeof O>"u"||O.toString().trim().length===0},isStandaloneMode(){return!this.$dataProvider},prepareParamsForDataConnector(O){const g={config:{endpoint:O}},w=this.renderPmql(this.options.pmqlQuery);return w&&(g.config.outboundConfig=[{type:"PARAM",key:"pmql",value:w}]),g},async fetchDataSourceOptions(O,g,w){try{let $=null,Y=null;if(this.nonce=Math.random(),[Y,$]=await this.$dataProvider.getDataSource(O,g,this.nonce),$!==this.nonce)return;this.nonce=null;const _e=w?Zr.get(Y.data,w):Y.data,Ee=this.transformOptions(_e);return this.$root.$emit("selectListOptionsUpdated",Ee),this.selectListOptions=Ee,!0}catch($){return console.warn($),!1}},async loadOptionsFromCollection(){if(this.mode==="editor"||!this.collectionOptions||!this.collectionOptions.collectionId||!this.collectionOptions.labelField||!this.collectionOptions.valueField)return!1;const O={params:{per_page:_6}};let g=this.renderPmql(this.collectionOptions.pmql);return g=this.includeFilterInPmql(g),g&&(O.params.pmql=g),this.collectionOptions.unique&&(O.params.groupBy=this.collectionOptions.labelField),await this.getCollectionRecords(O),!0},formatCollectionRecordResults(O){let g=Zr.get(O,this.collectionOptions.labelField),w=Zr.get(O,this.collectionOptions.valueField);const $=Zr.get(O,this.collectionOptions.ariaLabelField||this.collectionOptions.labelField);return g&&typeof g=="object"&&"name"in g&&(g=g.name),w&&typeof w=="object"&&"id"in w&&(w=w.id),{value:String(w??""),content:String(g??""),ariaLabel:String($??"")}},includeFilterInPmql(O){if(this.filter){const g=`lower(${this.collectionOptions.labelField}) like "%${this.filter.toLowerCase()}%"`;O?O=`(${O}) AND ${g}`:O=g}return O},async loadIndividualRecord(){let O=this.renderPmql(this.collectionOptions.pmql);const g=`${this.collectionOptions.valueField} = "${this.value}"`;O?O+=` AND ${g}`:O=g,this.loading=!0;const[w]=await this.$dataProvider.getCollectionRecords(this.collectionOptions.collectionId,{params:{pmql:O}});this.loading=!1,w.data&&w.data.length>0?this.selectedOption=this.formatCollectionRecordResults(w.data[0]):(this.selectedOption=null,this.updateWatcherDependentFieldValue(!0))},async getCollectionRecords(O){let g={data:[]},w=null;this.nonce=Math.random(),this.loading=!0,[g,w]=await this.$dataProvider.getCollectionRecords(this.collectionOptions.collectionId,O,this.nonce),this.loading=!1,w===this.nonce&&(this.nonce=null,this.filter||(this.countWithoutFilter=g.meta?g.meta.total:null),this.selectListOptions=g.data.map(this.formatCollectionRecordResults))},debouncedSetFilter:Zr.debounce(function(O){this.filter=O},300),searchChange(O){if(this.isCollection){if(this.countWithoutFilter&&this.countWithoutFilter<_6)return;this.loading=!0,this.debouncedSetFilter(O)}},async fillSelectListOptions(O){let g=!1;if(this.options.dataSource&&this.options.dataSource==="provideData"&&(this.options&&this.options.optionsList&&!Zr.isEqual(this.selectListOptions,this.options.optionsList)&&(this.selectListOptions=this.options.optionsList),this.selectListOptions=this.selectListOptions||[],g=!0),this.options.dataSource&&this.options.dataSource==="dataObject"){let w=[];try{const Y=this.makeProxyData();w=Zr.get(Y,this.options.dataName)}catch{w=[]}const $=w||[];this.selectListOptions=this.transformOptions($),g=!0}this.options.dataSource&&this.options.dataSource==="dataConnector"&&(g=await this.loadOptionsFromDataConnector(this.sourceConfig)),this.isCollection&&(await this.loadOptionsFromCollection(),g=!1),g&&this.$nextTick(()=>{this.updateWatcherDependentFieldValue(O)})},transformOptions(O){const g=this.attributeParent(this.options.value),w=[];return Array.isArray(O)?(O.forEach($=>{const{escape:Y}=xo;xo.escape=Tt=>Tt;let _e={};if(this.options.key){const Tt=this.options.key.indexOf("{{")>=0?xo.render(this.options.key,$):xo.render(`{{${this.options.key||"value"}}}`,$);_e[this.optionsKey]=Tt}const Ee=this.options.value.indexOf("{{")>=0?xo.render(this.options.value,$):xo.render(`{{${this.options.value||"content"}}}`,$);let At=Ee;this.options.optionAriaLabel&&(At=this.options.optionAriaLabel.indexOf("{{")>=0?xo.render(this.options.optionAriaLabel,$):xo.render(`{{${this.options.optionAriaLabel||"ariaLabel"}}}`,$)),xo.escape=Y,_e[this.optionsValue]=Ee,_e[this.optionsAriaLabel]=At,this.options.valueTypeReturned==="object"&&(_e=g.length>0?Zr.get($,g):$,_e.hasOwnProperty(this.optionsValue)||Object.defineProperty(_e,this.optionsValue,{get(){return Ee}}),_e.hasOwnProperty(this.optionsAriaLabel)||Object.defineProperty(_e,this.optionsAriaLabel,{get(){return At}})),w.push(_e)}),w):(console.warn(`The retrieved data is not an array. Please check the data sources options of the select list \`${this.name}\``),w)},addObjectContentProp(O){if(!(O instanceof Object))return O;const g=this.attributeParent(this.options.value);let w=this.options.value,$=this.options.ariaLabel||this.options.value;return w.indexOf("{{")===-1&&(w=`{{ ${w} }}`),$.indexOf("{{")===-1&&($=`{{ ${$} }}`),O.hasOwnProperty(this.optionsValue)||Object.defineProperty(O,this.optionsValue,{get(){let Y={};return g?Zr.set(Y,g,this):Y=this,xo.render(w,Y)}}),O.hasOwnProperty(this.optionsAriaLabel)||Object.defineProperty(O,this.optionsAriaLabel,{get(){let Y={};return g?Zr.set(Y,g,this):Y=this,xo.render($,Y)}}),O},stripMustache(O){return O.replace(/{{/g,"").replace(/}}/g,"").split(".").pop()||O},attributeParent(O){if(O.indexOf("{{")>=0){const w=O.match(/{{[^}]+}}/g);if(w){let $;return w.forEach(Y=>{const Ee=Y.substr(2,Y.length-4).trim().split(".");Ee.pop();const At=Ee.join(".");(!$||$.length>At.length)&&($=At)}),$}}else{const w=O.trim().split(".");return w.pop(),w.join(".")}},updateWatcherDependentFieldValue(O){let g=!0;Array.isArray(this.value)?(g=!0,this.value.forEach(w=>{const $=this.selectListOptionsWithSelected.find(Y=>this.options.valueTypeReturned==="object"?Zr.isEqual(Y,w):Zr.get(Y,this.optionsKey)===w);g=g&&$})):g=this.selectListOptionsWithSelected.find(w=>this.options.valueTypeReturned==="object"?Zr.isEqual(w,this.value):Zr.get(w,this.optionsKey)===this.value),!g&&O&&this.$emit("reset",this.name)},areItemsInSelectListOptions(O){return Array.isArray(O)?O.filter(w=>this.selectListOptions.find(Y=>this.options.valueTypeReturned==="object"?Zr.isEqual(Y,w):Zr.get(Y,this.optionsKey)===w)!==void 0).length>0:!0}}};var Q7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),g.options.renderAs==="dropdown"?w("multi-select-view",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,placeholder:g.placeholder?g.placeholder:g.$t("Select..."),"show-labels":!1,options:g.selectListOptionsWithSelected,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object","emit-array":g.options.allowMultiSelect,loading:g.loading},on:{"search-change":g.searchChange},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"multi-select-view",g.$attrs,!1)):g._e(),g.options.renderAs==="checkbox"&&g.options.allowMultiSelect?w("div",[w("checkbox-view",g._b({attrs:{name:g.name,"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,options:g.selectListOptionsWithSelected,"options-extra":g.options.optionsListExtra,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object"},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"checkbox-view",g.$attrs,!1))],1):g._e(),g.options.renderAs==="checkbox"&&!g.options.allowMultiSelect?w("div",[w("optionbox-view",g._b({attrs:{name:g.name,"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,options:g.selectListOptionsWithSelected,"options-extra":g.options.optionsListExtra,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object"},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"optionbox-view",g.$attrs,!1))],1):g._e(),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback d-block"},[g._l(g.validatorErrors,function($,Y){return w("div",{key:Y},[g._v(" "+g._s($)+" ")])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},eH=[],tH=Mo(Z7,Q7,eH,!1,null,null,null,null);const w6=tH.exports;function rH(O){var g=typeof O;return O!=null&&(g=="object"||g=="function")}var nD=rH,nH=typeof yo=="object"&&yo&&yo.Object===Object&&yo,aH=nH,iH=aH,oH=typeof self=="object"&&self&&self.Object===Object&&self,uH=iH||oH||Function("return this")(),C6=uH,sH=C6,lH=function(){return sH.Date.now()},cH=lH,fH=/\s/;function vH(O){for(var g=O.length;g--&&fH.test(O.charAt(g)););return g}var dH=vH,mH=dH,hH=/^\s+/;function gH(O){return O&&O.slice(0,mH(O)+1).replace(hH,"")}var pH=gH,bH=C6,yH=bH.Symbol,k6=yH,S6=k6,T6=Object.prototype,xH=T6.hasOwnProperty,_H=T6.toString,Vx=S6?S6.toStringTag:void 0;function wH(O){var g=xH.call(O,Vx),w=O[Vx];try{O[Vx]=void 0;var $=!0}catch{}var Y=_H.call(O);return $&&(g?O[Vx]=w:delete O[Vx]),Y}var CH=wH,kH=Object.prototype,SH=kH.toString;function TH(O){return SH.call(O)}var OH=TH,O6=k6,EH=CH,AH=OH,zH="[object Null]",DH="[object Undefined]",E6=O6?O6.toStringTag:void 0;function PH(O){return O==null?O===void 0?DH:zH:E6&&E6 in Object(O)?EH(O):AH(O)}var RH=PH;function MH(O){return O!=null&&typeof O=="object"}var BH=MH,IH=RH,FH=BH,$H="[object Symbol]";function NH(O){return typeof O=="symbol"||FH(O)&&IH(O)==$H}var LH=NH,HH=pH,A6=nD,VH=LH,z6=0/0,jH=/^[-+]0x[0-9a-f]+$/i,qH=/^0b[01]+$/i,UH=/^0o[0-7]+$/i,WH=parseInt;function GH(O){if(typeof O=="number")return O;if(VH(O))return z6;if(A6(O)){var g=typeof O.valueOf=="function"?O.valueOf():O;O=A6(g)?g+"":g}if(typeof O!="string")return O===0?O:+O;O=HH(O);var w=qH.test(O);return w||UH.test(O)?WH(O.slice(2),w?2:8):jH.test(O)?z6:+O}var KH=GH,YH=nD,aD=cH,D6=KH,XH="Expected a function",JH=Math.max,ZH=Math.min;function QH(O,g,w){var $,Y,_e,Ee,At,Tt,cr=0,Nr=!1,Ft=!1,wr=!0;if(typeof O!="function")throw new TypeError(XH);g=D6(g)||0,YH(w)&&(Nr=!!w.leading,Ft="maxWait"in w,_e=Ft?JH(D6(w.maxWait)||0,g):_e,wr="trailing"in w?!!w.trailing:wr);function En(xr){var vr=$,Xt=Y;return $=Y=void 0,cr=xr,Ee=O.apply(Xt,vr),Ee}function da(xr){return cr=xr,At=setTimeout(An,g),Nr?En(xr):Ee}function it(xr){var vr=xr-Tt,Xt=xr-cr,Gt=g-vr;return Ft?ZH(Gt,_e-Xt):Gt}function Tr(xr){var vr=xr-Tt,Xt=xr-cr;return Tt===void 0||vr>=g||vr<0||Ft&&Xt>=_e}function An(){var xr=aD();if(Tr(xr))return ta(xr);At=setTimeout(An,it(xr))}function ta(xr){return At=void 0,wr&&$?En(xr):($=Y=void 0,Ee)}function se(){At!==void 0&&clearTimeout(At),cr=0,$=Tt=Y=At=void 0}function fr(){return At===void 0?Ee:ta(aD())}function bt(){var xr=aD(),vr=Tr(xr);if($=arguments,Y=this,Tt=xr,vr){if(At===void 0)return da(Tt);if(Ft)return clearTimeout(At),At=setTimeout(An,g),En(Tt)}return At===void 0&&(At=setTimeout(An,g)),Ee}return bt.cancel=se,bt.flush=fr,bt}var eV=QH,tV=eV,rV=nD,nV="Expected a function";function aV(O,g,w){var $=!0,Y=!0;if(typeof O!="function")throw new TypeError(nV);return rV(w)&&($="leading"in w?!!w.leading:$,Y="trailing"in w?!!w.trailing:Y),tV(O,g,{leading:$,maxWait:g,trailing:Y})}var iV=aV;const oV=Lx(iV);var uV=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],sV=function(O){return uV.indexOf(O)!==-1},lV=function(O,g,w){Object.keys(g).filter(sV).forEach(function($){var Y=g[$];typeof Y=="function"&&($==="onInit"?Y(O,w):w.on($.substring(2),function(_e){return Y(_e,w)}))})},cV=function(O,g){var w=O.$props.modelEvents?O.$props.modelEvents:null,$=Array.isArray(w)?w.join(" "):w,Y;O.$watch("value",function(_e,Ee){g&&typeof _e=="string"&&_e!==Y&&_e!==Ee&&(g.setContent(_e),Y=_e)}),g.on($||"change keyup undo redo",function(){Y=g.getContent(),O.$emit("input",Y)})},fV=function(O,g,w){var $=g.$props.value?g.$props.value:"",Y=g.$props.initialValue?g.$props.initialValue:"";w.setContent($||Y),g.$listeners.input&&cV(g,w),lV(O,g.$listeners,w)},P6=0,R6=function(O){var g=Date.now(),w=Math.floor(Math.random()*1e9);return P6++,O+"_"+w+P6+String(g)},vV=function(O){return O!==null&&O.tagName.toLowerCase()==="textarea"},M6=function(O){return typeof O>"u"||O===""?[]:Array.isArray(O)?O:O.split(" ")},dV=function(O,g){return M6(O).concat(M6(g))},mV=function(O,g,w,$){var Y=g.createElement("script");Y.type="application/javascript",Y.id=O,Y.addEventListener("load",$),Y.src=w,g.head&&g.head.appendChild(Y)},hV=function(){return{listeners:[],scriptId:R6("tiny-script"),scriptLoaded:!1}},gV=function(O,g,w,$){O.scriptLoaded?$():(O.listeners.push($),g.getElementById(O.scriptId)||mV(O.scriptId,g,w,function(){O.listeners.forEach(function(Y){return Y()}),O.scriptLoaded=!0}))},pV=function(){return typeof window<"u"?window:global},gT=function(){var O=pV();return O&&O.tinymce?O.tinymce:null},bV={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},iD=globalThis&&globalThis.__assign||function(){return iD=Object.assign||function(O){for(var g,w=1,$=arguments.length;w<$;w++){g=arguments[w];for(var Y in g)Object.prototype.hasOwnProperty.call(g,Y)&&(O[Y]=g[Y])}return O},iD.apply(this,arguments)},yV=hV(),xV=function(O,g,w){return O(w||"div",{attrs:{id:g}})},_V=function(O,g){return O("textarea",{attrs:{id:g},style:{visibility:"hidden"}})},B6=function(O){return function(){var g=iD({},O.$props.init,{readonly:O.$props.disabled,selector:"#"+O.elementId,plugins:dV(O.$props.init&&O.$props.init.plugins,O.$props.plugins),toolbar:O.$props.toolbar||O.$props.init&&O.$props.init.toolbar,inline:O.inlineEditor,setup:function(w){O.editor=w,w.on("init",function($){return fV($,O,w)}),O.$props.init&&typeof O.$props.init.setup=="function"&&O.$props.init.setup(w)}});vV(O.element)&&(O.element.style.visibility=""),gT().init(g)}},I6={props:bV,created:function(){this.elementId=this.$props.id||R6("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,gT()!==null)B6(this)();else if(this.element&&this.element.ownerDocument){var O=this.element.ownerDocument,g=this.$props.cloudChannel?this.$props.cloudChannel:"5",w=this.$props.apiKey?this.$props.apiKey:"",$="https://cloud.tinymce.com/"+g+"/tinymce.min.js?apiKey="+w;gV(yV,O,$,B6(this))}},beforeDestroy:function(){gT()!==null&&gT().remove(this.editor)},render:function(O){return this.inlineEditor?xV(O,this.elementId,this.$props.tagName):_V(O,this.elementId)}},wV={exports:{}};(function(O){(function(){var g=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var r=typeof e;return r==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":r==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":r},w=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},$=function(e,r){var a=Array.prototype.slice.call(e);return a.sort(r)},Y=function(e,r){return _e(function(a,o){return e.eq(r(a),r(o))})},_e=function(e){return{eq:e}},Ee=_e(function(e,r){return e===r}),At=Ee,Tt=function(e){return _e(function(r,a){if(r.length!==a.length)return!1;for(var o=r.length,u=0;u<o;u++)if(!e.eq(r[u],a[u]))return!1;return!0})},cr=function(e,r){return Y(Tt(e),function(a){return $(a,r)})},Nr=function(e){return _e(function(r,a){var o=Object.keys(r),u=Object.keys(a);if(!cr(At).eq(o,u))return!1;for(var l=o.length,m=0;m<l;m++){var p=o[m];if(!e.eq(r[p],a[p]))return!1}return!0})},Ft=_e(function(e,r){if(e===r)return!0;var a=g(e),o=g(r);return a!==o?!1:w(a)?e===r:a==="array"?Tt(Ft).eq(e,r):a==="object"?Nr(Ft).eq(e,r):!1}),wr=function(e){var r=typeof e;return e===null?"null":r==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":r==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":r},En=function(e){return function(r){return wr(r)===e}},da=function(e){return function(r){return typeof r===e}},it=function(e){return function(r){return e===r}},Tr=En("string"),An=En("object"),ta=En("array"),se=it(null),fr=da("boolean"),bt=it(void 0),xr=function(e){return e==null},vr=function(e){return!xr(e)},Xt=da("function"),Gt=da("number"),_t=function(){},zi=function(e,r){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return e(r.apply(null,a))}},re=function(e,r){return function(a){return e(r(a))}},Se=function(e){return function(){return e}},Xe=function(e){return e},$t=function(e,r){return e===r};function Pe(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var l=r.concat(o);return e.apply(null,l)}}var ur=function(e){return function(r){return!e(r)}},G=function(e){return function(){throw new Error(e)}},C=function(e){return e()},Le=function(e){e()},ot=Se(!1),Mt=Se(!0),mn=function(){return sa},sa=function(){var e=function(o){return o()},r=Xe,a={fold:function(o,u){return o()},isSome:ot,isNone:Mt,getOr:r,getOrThunk:e,getOrDie:function(o){throw new Error(o||"error: getOrDie called on none.")},getOrNull:Se(null),getOrUndefined:Se(void 0),or:r,orThunk:e,map:mn,each:_t,bind:mn,exists:ot,forall:Mt,filter:function(){return mn()},toArray:function(){return[]},toString:Se("none()")};return a}(),jr=function(e){var r=Se(e),a=function(){return u},o=function(l){return l(e)},u={fold:function(l,m){return m(e)},isSome:Mt,isNone:ot,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:a,orThunk:a,map:function(l){return jr(l(e))},each:function(l){l(e)},bind:o,exists:o,forall:o,filter:function(l){return l(e)?u:sa},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return u},zn=function(e){return e==null?sa:jr(e)},X={some:jr,none:mn,from:zn},Ln=Array.prototype.slice,je=Array.prototype.indexOf,Pt=Array.prototype.push,ya=function(e,r){return je.call(e,r)},Ma=function(e,r){var a=ya(e,r);return a===-1?X.none():X.some(a)},Vt=function(e,r){return ya(e,r)>-1},Wr=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];if(r(u,a))return!0}return!1},Cr=function(e,r){for(var a=e.length,o=new Array(a),u=0;u<a;u++){var l=e[u];o[u]=r(l,u)}return o},ct=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];r(u,a)}},Hr=function(e,r){for(var a=e.length-1;a>=0;a--){var o=e[a];r(o,a)}},Xa=function(e,r){for(var a=[],o=[],u=0,l=e.length;u<l;u++){var m=e[u],p=r(m,u)?a:o;p.push(m)}return{pass:a,fail:o}},tr=function(e,r){for(var a=[],o=0,u=e.length;o<u;o++){var l=e[o];r(l,o)&&a.push(l)}return a},Fn=function(e,r,a){return Hr(e,function(o,u){a=r(a,o,u)}),a},Xn=function(e,r,a){return ct(e,function(o,u){a=r(a,o,u)}),a},Ja=function(e,r,a){for(var o=0,u=e.length;o<u;o++){var l=e[o];if(r(l,o))return X.some(l);if(a(l,o))break}return X.none()},ma=function(e,r){return Ja(e,r,ot)},ml=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];if(r(u,a))return X.some(a)}return X.none()},$u=function(e){for(var r=[],a=0,o=e.length;a<o;++a){if(!ta(e[a]))throw new Error("Arr.flatten item "+a+" was not an array, input: "+e);Pt.apply(r,e[a])}return r},Nu=function(e,r){return $u(Cr(e,r))},Bo=function(e,r){for(var a=0,o=e.length;a<o;++a){var u=e[a];if(r(u,a)!==!0)return!1}return!0},Za=function(e){var r=Ln.call(e,0);return r.reverse(),r},Lu=function(e,r){return tr(e,function(a){return!Vt(r,a)})},Io=function(e,r){for(var a={},o=0,u=e.length;o<u;o++){var l=e[o];a[String(l)]=r(l,o)}return a},Ba=function(e,r){var a=Ln.call(e,0);return a.sort(r),a},Jn=function(e,r){return r>=0&&r<e.length?X.some(e[r]):X.none()},Qa=function(e){return Jn(e,0)},Zn=function(e){return Jn(e,e.length-1)},xn=Xt(Array.from)?Array.from:function(e){return Ln.call(e)},Di=function(e,r){for(var a=0;a<e.length;a++){var o=r(e[a],a);if(o.isSome())return o}return X.none()},Fo=Object.keys,qi=Object.hasOwnProperty,oa=function(e,r){for(var a=Fo(e),o=0,u=a.length;o<u;o++){var l=a[o],m=e[l];r(m,l)}},Hu=function(e,r){return Vu(e,function(a,o){return{k:o,v:r(a,o)}})},Vu=function(e,r){var a={};return oa(e,function(o,u){var l=r(o,u);a[l.k]=l.v}),a},uo=function(e){return function(r,a){e[a]=r}},Yt=function(e,r,a,o){var u={};return oa(e,function(l,m){(r(l,m)?a:o)(l,m)}),u},hn=function(e,r){var a={},o={};return Yt(e,r,uo(a),uo(o)),{t:a,f:o}},Ta=function(e,r){var a={};return Yt(e,r,uo(a),_t),a},iu=function(e,r){var a=[];return oa(e,function(o,u){a.push(r(o,u))}),a},$f=function(e){return iu(e,Xe)},ra=function(e,r){return $r(e,r)?X.from(e[r]):X.none()},$r=function(e,r){return qi.call(e,r)},ou=function(e,r){return $r(e,r)&&e[r]!==void 0&&e[r]!==null},Xl=function(e,r,a){return a===void 0&&(a=Ft),Nr(a).eq(e,r)},hl=Array.isArray,$o=function(e){if(hl(e))return e;for(var r=[],a=0,o=e.length;a<o;a++)r[a]=e[a];return r},Ms=function(e,r,a){var o,u;if(!e)return!1;if(a=a||e,e.length!==void 0){for(o=0,u=e.length;o<u;o++)if(r.call(a,e[o],o,e)===!1)return!1}else for(o in e)if($r(e,o)&&r.call(a,e[o],o,e)===!1)return!1;return!0},Jl=function(e,r){var a=[];return Ms(e,function(o,u){a.push(r(o,u,e))}),a},cs=function(e,r){var a=[];return Ms(e,function(o,u){(!r||r(o,u,e))&&a.push(o)}),a},_u=function(e,r){if(e){for(var a=0,o=e.length;a<o;a++)if(e[a]===r)return a}return-1},gl=function(e,r,a,o){for(var u=bt(a)?e[0]:a,l=0;l<e.length;l++)u=r.call(o,u,e[l],l);return u},_n=function(e,r,a){var o,u;for(o=0,u=e.length;o<u;o++)if(r.call(a,e[o],o,e))return o;return-1},ju=function(e){return e[e.length-1]},rr=function(){return rr=Object.assign||function(r){for(var a,o=1,u=arguments.length;o<u;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},rr.apply(this,arguments)};function Nf(e,r){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(e);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(e,o[u])&&(a[o[u]]=e[o[u]]);return a}function No(e,r,a){if(a||arguments.length===2)for(var o=0,u=r.length,l;o<u;o++)(l||!(o in r))&&(l||(l=Array.prototype.slice.call(r,0,o)),l[o]=r[o]);return e.concat(l||Array.prototype.slice.call(r))}var Bs=function(e){var r=!1,a;return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return r||(r=!0,a=e.apply(null,o)),a}},Lo=function(e,r,a,o){var u=e.isiOS()&&/ipad/i.test(a)===!0,l=e.isiOS()&&!u,m=e.isiOS()||e.isAndroid(),p=m||o("(pointer:coarse)"),b=u||!l&&m&&o("(min-device-width:768px)"),T=l||m&&!b,R=r.isSafari()&&e.isiOS()&&/safari/i.test(a)===!1,B=!T&&!b&&!R;return{isiPad:Se(u),isiPhone:Se(l),isTablet:Se(b),isPhone:Se(T),isTouch:Se(p),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:Se(R),isDesktop:Se(B)}},fs=function(e,r){for(var a=0;a<e.length;a++){var o=e[a];if(o.test(r))return o}},Tv=function(e,r){var a=fs(e,r);if(!a)return{major:0,minor:0};var o=function(u){return Number(r.replace(a,"$"+u))};return so(o(1),o(2))},qu=function(e,r){var a=String(r).toLowerCase();return e.length===0?Is():Tv(e,a)},Is=function(){return so(0,0)},so=function(e,r){return{major:e,minor:r}},Ho={nu:so,detect:qu,unknown:Is},yt=function(e,r){return Di(r.brands,function(a){var o=a.brand.toLowerCase();return ma(e,function(u){var l;return o===((l=u.brand)===null||l===void 0?void 0:l.toLowerCase())}).map(function(u){return{current:u.name,version:Ho.nu(parseInt(a.version,10),0)}})})},Ic=function(e,r){var a=String(r).toLowerCase();return ma(e,function(o){return o.search(a)})},Zl=function(e,r){return Ic(e,r).map(function(a){var o=Ho.detect(a.versionRegexes,r);return{current:a.name,version:o}})},pl=function(e,r){return Ic(e,r).map(function(a){var o=Ho.detect(a.versionRegexes,r);return{current:a.name,version:o}})},Fc=function(e,r){return e.substring(r)},_o=function(e,r,a){return r===""||e.length>=r.length&&e.substr(a,a+r.length)===r},Lf=function(e,r){return Pa(e,r)?Fc(e,r.length):e},Ia=function(e,r){return e.indexOf(r)!==-1},Pa=function(e,r){return _o(e,r,0)},Vo=function(e){return function(r){return r.replace(e,"")}},wo=Vo(/^\s+|\s+$/g),Ql=Vo(/^\s+/g),Co=Vo(/\s+$/g),Uu=function(e){return e.length>0},ec=function(e){return!Uu(e)},bl=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yi=function(e){return function(r){return Ia(r,e)}},tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ia(e,"edge/")&&Ia(e,"chrome")&&Ia(e,"safari")&&Ia(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,bl],search:function(e){return Ia(e,"chrome")&&!Ia(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ia(e,"msie")||Ia(e,"trident")}},{name:"Opera",versionRegexes:[bl,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yi("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yi("firefox")},{name:"Safari",versionRegexes:[bl,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ia(e,"safari")||Ia(e,"mobile/"))&&Ia(e,"applewebkit")}}],yl=[{name:"Windows",search:yi("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ia(e,"iphone")||Ia(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yi("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yi("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yi("linux"),versionRegexes:[]},{name:"Solaris",search:yi("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yi("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:yi("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Wu={browsers:Se(tc),oses:Se(yl)},rc="Edge",Fs="Chrome",Gu="IE",xl="Opera",uu="Firefox",xa="Safari",su=function(){return vs({current:void 0,version:Ho.unknown()})},vs=function(e){var r=e.current,a=e.version,o=function(u){return function(){return r===u}};return{current:r,version:a,isEdge:o(rc),isChrome:o(Fs),isIE:o(Gu),isOpera:o(xl),isFirefox:o(uu),isSafari:o(xa)}},ko={unknown:su,nu:vs,edge:Se(rc),chrome:Se(Fs),ie:Se(Gu),opera:Se(xl),firefox:Se(uu),safari:Se(xa)},Pi="Windows",_l="iOS",$s="Android",ds="Linux",wl="OSX",$c="Solaris",Ku="FreeBSD",Nc="ChromeOS",Cl=function(){return nc({current:void 0,version:Ho.unknown()})},nc=function(e){var r=e.current,a=e.version,o=function(u){return function(){return r===u}};return{current:r,version:a,isWindows:o(Pi),isiOS:o(_l),isAndroid:o($s),isOSX:o(wl),isLinux:o(ds),isSolaris:o($c),isFreeBSD:o(Ku),isChromeOS:o(Nc)}},V={unknown:Cl,nu:nc,windows:Se(Pi),ios:Se(_l),android:Se($s),linux:Se(ds),osx:Se(wl),solaris:Se($c),freebsd:Se(Ku),chromeos:Se(Nc)},le=function(e,r,a){var o=Wu.browsers(),u=Wu.oses(),l=r.bind(function(b){return yt(o,b)}).orThunk(function(){return Zl(o,e)}).fold(ko.unknown,ko.nu),m=pl(u,e).fold(V.unknown,V.nu),p=Lo(m,l,e,a);return{browser:l,os:m,deviceType:p}},ye={detect:le},$e=function(e){return window.matchMedia(e).matches},st=Bs(function(){return ye.detect(navigator.userAgent,X.from(navigator.userAgentData),$e)}),Ht=function(){return st()},fn=navigator.userAgent,Tn=Ht(),Or=Tn.browser,kr=Tn.os,Rr=Tn.deviceType,Ns=/WebKit/.test(fn)&&!Or.isEdge(),Ov="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ev=fn.indexOf("Windows Phone")!==-1,Jt={opera:Or.isOpera(),webkit:Ns,ie:Or.isIE()||Or.isEdge()?Or.version.major:!1,gecko:Or.isFirefox(),mac:kr.isOSX()||kr.isiOS(),iOS:Rr.isiPad()||Rr.isiPhone(),android:kr.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Or.isIE()?document.documentMode||7:10,fileApi:Ov,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Or.isIE(),desktop:Rr.isDesktop(),windowsPhone:Ev,browser:{current:Or.current,version:Or.version,isChrome:Or.isChrome,isEdge:Or.isEdge,isFirefox:Or.isFirefox,isIE:Or.isIE,isOpera:Or.isOpera,isSafari:Or.isSafari},os:{current:kr.current,version:kr.version,isAndroid:kr.isAndroid,isChromeOS:kr.isChromeOS,isFreeBSD:kr.isFreeBSD,isiOS:kr.isiOS,isLinux:kr.isLinux,isOSX:kr.isOSX,isSolaris:kr.isSolaris,isWindows:kr.isWindows},deviceType:{isDesktop:Rr.isDesktop,isiPad:Rr.isiPad,isiPhone:Rr.isiPhone,isPhone:Rr.isPhone,isTablet:Rr.isTablet,isTouch:Rr.isTouch,isWebView:Rr.isWebView}},Hf=/^\s*|\s*$/g,Av=function(e){return e==null?"":(""+e).replace(Hf,"")},Yu=function(e,r){return r?r==="array"&&hl(e)?!0:typeof e===r:e!==void 0},dd=function(e,r,a){var o;for(e=e||[],r=r||",",typeof e=="string"&&(e=e.split(r)),a=a||{},o=e.length;o--;)a[e[o]]={};return a},Ri=$r,zv=function(e,r,a){var o=this,u,l,m,p=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var b=e[3].match(/(^|\.)(\w+)$/i)[2],T=o.createNS(e[3].replace(/\.\w+$/,""),a);if(!T[b]){if(e[2]==="static"){T[b]=r,this.onCreate&&this.onCreate(e[2],e[3],T[b]);return}r[b]||(r[b]=function(){},p=1),T[b]=r[b],o.extend(T[b].prototype,r),e[5]&&(u=o.resolve(e[5]).prototype,l=e[5].match(/\.(\w+)$/i)[1],m=T[b],p?T[b]=function(){return u[l].apply(this,arguments)}:T[b]=function(){return this.parent=u[l],m.apply(this,arguments)},T[b].prototype[b]=T[b],o.each(u,function(R,B){T[b].prototype[B]=u[B]}),o.each(r,function(R,B){u[B]?T[b].prototype[B]=function(){return this.parent=u[B],R.apply(this,arguments)}:B!==b&&(T[b].prototype[B]=R)})),o.each(r.static,function(R,B){T[b][B]=R})}},Hn=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];for(var o=0;o<r.length;o++){var u=r[o];for(var l in u)if($r(u,l)){var m=u[l];m!==void 0&&(e[l]=m)}}return e},Lc=function(e,r,a,o){o=o||this,e&&(a&&(e=e[a]),Ms(e,function(u,l){if(r.call(o,u,l,a)===!1)return!1;Lc(u,r,a,o)}))},Dv=function(e,r){var a,o;for(r=r||window,e=e.split("."),a=0;a<e.length;a++)o=e[a],r[o]||(r[o]={}),r=r[o];return r},Va=function(e,r){var a,o;for(r=r||window,e=e.split("."),a=0,o=e.length;a<o&&(r=r[e[a]],!!r);a++);return r},lo=function(e,r){return!e||Yu(e,"array")?e:Jl(e.split(r||","),Av)},Hc=function(e){var r=Jt.cacheSuffix;return r&&(e+=(e.indexOf("?")===-1?"?":"&")+r),e},Ie={trim:Av,isArray:hl,is:Yu,toArray:$o,makeMap:dd,each:Ms,map:Jl,grep:cs,inArray:_u,hasOwn:Ri,extend:Hn,create:zv,walk:Lc,createNS:Dv,resolve:Va,explode:lo,_addCacheSuffix:Hc},ac=function(e,r){var a=r||document,o=a.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return _i(o.childNodes[0])},xi=function(e,r){var a=r||document,o=a.createElement(e);return _i(o)},Pv=function(e,r){var a=r||document,o=a.createTextNode(e);return _i(o)},_i=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},z=function(e,r,a){return X.from(e.dom.elementFromPoint(r,a)).map(_i)},D={fromHtml:ac,fromTag:xi,fromText:Pv,fromDom:_i,fromPoint:z},ne=function(e,r){var a=[],o=function(l){return a.push(l),r(l)},u=r(e);do u=u.bind(o);while(u.isSome());return a},ze=function(e,r,a){return(e.compareDocumentPosition(r)&a)!==0},wt=function(e,r){return ze(e,r,Node.DOCUMENT_POSITION_CONTAINED_BY)},gr=8,on=9,vn=11,Mi=1,si=3,li=function(e,r){var a=e.dom;if(a.nodeType!==Mi)return!1;var o=a;if(o.matches!==void 0)return o.matches(r);if(o.msMatchesSelector!==void 0)return o.msMatchesSelector(r);if(o.webkitMatchesSelector!==void 0)return o.webkitMatchesSelector(r);if(o.mozMatchesSelector!==void 0)return o.mozMatchesSelector(r);throw new Error("Browser lacks native selectors")},Ls=function(e){return e.nodeType!==Mi&&e.nodeType!==on&&e.nodeType!==vn||e.childElementCount===0},md=function(e,r){var a=r===void 0?document:r.dom;return Ls(a)?[]:Cr(a.querySelectorAll(e),D.fromDom)},km=function(e,r){var a=r===void 0?document:r.dom;return Ls(a)?X.none():X.from(a.querySelector(e)).map(D.fromDom)},Vn=function(e,r){return e.dom===r.dom},hd=function(e,r){var a=e.dom,o=r.dom;return a===o?!1:a.contains(o)},ha=function(e,r){return wt(e.dom,r.dom)},Fa=function(e,r){return Ht().browser.isIE()?ha(e,r):hd(e,r)};typeof window<"u"||Function("return this;")();var ja=function(e){var r=e.dom.nodeName;return r.toLowerCase()},Rv=function(e){return e.dom.nodeType},Er=function(e){return function(r){return Rv(r)===e}},Sm=function(e){return Rv(e)===gr||ja(e)==="#comment"},la=Er(Mi),$a=Er(si),Ah=Er(on),ci=Er(vn),Mv=function(e){return function(r){return la(r)&&ja(r)===e}},gd=function(e){return D.fromDom(e.dom.ownerDocument)},pr=function(e){return Ah(e)?e:gd(e)},Ui=function(e){return D.fromDom(pr(e).dom.documentElement)},Hs=function(e){return D.fromDom(pr(e).dom.defaultView)},_a=function(e){return X.from(e.dom.parentNode).map(D.fromDom)},Tm=function(e,r){for(var a=Xt(r)?r:ot,o=e.dom,u=[];o.parentNode!==null&&o.parentNode!==void 0;){var l=o.parentNode,m=D.fromDom(l);if(u.push(m),a(m)===!0)break;o=l}return u},wi=function(e){var r=function(a){return tr(a,function(o){return!Vn(e,o)})};return _a(e).map(jo).map(r).getOr([])},Vc=function(e){return X.from(e.dom.previousSibling).map(D.fromDom)},Vf=function(e){return X.from(e.dom.nextSibling).map(D.fromDom)},jn=function(e){return Za(ne(e,Vc))},jc=function(e){return ne(e,Vf)},jo=function(e){return Cr(e.dom.childNodes,D.fromDom)},Xu=function(e,r){var a=e.dom.childNodes;return X.from(a[r]).map(D.fromDom)},fi=function(e){return Xu(e,0)},Ju=function(e){return Xu(e,e.dom.childNodes.length-1)},pd=function(e){return e.dom.childNodes.length},ic=function(e){var r=e.dom.head;if(r==null)throw new Error("Head is not available yet");return D.fromDom(r)},gn=function(e){return ci(e)&&vr(e.dom.host)},kl=Xt(Element.prototype.attachShadow)&&Xt(Node.prototype.getRootNode),qc=Se(kl),qo=kl?function(e){return D.fromDom(e.dom.getRootNode())}:pr,Uc=function(e){return gn(e)?e:ic(pr(e))},Sl=function(e){var r=qo(e);return gn(r)?X.some(r):X.none()},Zu=function(e){return D.fromDom(e.dom.host)},co=function(e){if(qc()&&vr(e.target)){var r=D.fromDom(e.target);if(la(r)&&oc(r)&&e.composed&&e.composedPath){var a=e.composedPath();if(a)return Qa(a)}}return X.from(e.target)},oc=function(e){return vr(e.dom.shadowRoot)},ms=function(e,r){var a=_a(e);a.each(function(o){o.dom.insertBefore(r.dom,e.dom)})},jf=function(e,r){var a=Vf(e);a.fold(function(){var o=_a(e);o.each(function(u){Wi(u,r)})},function(o){ms(o,r)})},Om=function(e,r){var a=fi(e);a.fold(function(){Wi(e,r)},function(o){e.dom.insertBefore(r.dom,o.dom)})},Wi=function(e,r){e.dom.appendChild(r.dom)},Tl=function(e,r){ms(e,r),Wi(r,e)},Ce=function(e,r){ct(r,function(a){ms(e,a)})},nt=function(e,r){ct(r,function(a){Wi(e,a)})},Ge=function(e){e.dom.textContent="",ct(jo(e),function(r){Rt(r)})},Rt=function(e){var r=e.dom;r.parentNode!==null&&r.parentNode.removeChild(r)},qr=function(e){var r=jo(e);r.length>0&&Ce(e,r),Rt(e)},Dn=function(e){var r=$a(e)?e.dom.parentNode:e.dom;if(r==null||r.ownerDocument===null)return!1;var a=r.ownerDocument;return Sl(D.fromDom(r)).fold(function(){return a.body.contains(r)},re(Dn,Zu))},na=function(e,r){var a=function(o,u){return na(e+o,r+u)};return{left:e,top:r,translate:a}},qn=na,Em=function(e){var r=e.getBoundingClientRect();return qn(r.left,r.top)},Wc=function(e,r){return e!==void 0?e:r!==void 0?r:0},Uo=function(e){var r=e.dom.ownerDocument,a=r.body,o=r.defaultView,u=r.documentElement;if(a===e.dom)return qn(a.offsetLeft,a.offsetTop);var l=Wc(o==null?void 0:o.pageYOffset,u.scrollTop),m=Wc(o==null?void 0:o.pageXOffset,u.scrollLeft),p=Wc(u.clientTop,a.clientTop),b=Wc(u.clientLeft,a.clientLeft);return wu(e).translate(m-b,l-p)},wu=function(e){var r=e.dom,a=r.ownerDocument,o=a.body;return o===r?qn(o.offsetLeft,o.offsetTop):Dn(e)?Em(r):qn(0,0)},Am=function(e){var r=e!==void 0?e.dom:document,a=r.body.scrollLeft||r.documentElement.scrollLeft,o=r.body.scrollTop||r.documentElement.scrollTop;return qn(a,o)},fo=function(e,r,a){var o=a!==void 0?a.dom:document,u=o.defaultView;u&&u.scrollTo(e,r)},Gc=function(e,r){var a=Ht().browser.isSafari();a&&Xt(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(r)},bd=function(e){var r=e===void 0?window:e;return Ht().browser.isFirefox()?X.none():X.from(r.visualViewport)},aa=function(e,r,a,o){return{x:e,y:r,width:a,height:o,right:e+a,bottom:r+o}},Bv=function(e){var r=e===void 0?window:e,a=r.document,o=Am(D.fromDom(a));return bd(r).fold(function(){var u=r.document.documentElement,l=u.clientWidth,m=u.clientHeight;return aa(o.left,o.top,l,m)},function(u){return aa(Math.max(u.pageLeft,o.left),Math.max(u.pageTop,o.top),u.width,u.height)})},Kc=function(e){return function(r){return!!r&&r.nodeType===e}},Yc=function(e){return!!e&&!Object.getPrototypeOf(e)},mr=Kc(1),Qu=function(e){var r=e.map(function(a){return a.toLowerCase()});return function(a){if(a&&a.nodeName){var o=a.nodeName.toLowerCase();return Vt(r,o)}return!1}},yd=function(e,r){var a=r.toLowerCase().split(" ");return function(o){if(mr(o))for(var u=0;u<a.length;u++){var l=o.ownerDocument.defaultView.getComputedStyle(o,null),m=l?l.getPropertyValue(e):null;if(m===a[u])return!0}return!1}},Xc=function(e){return function(r){return mr(r)&&r.hasAttribute(e)}},uc=function(e,r){return function(a){return mr(a)&&a.getAttribute(e)===r}},Vs=function(e){return mr(e)&&e.hasAttribute("data-mce-bogus")},vi=function(e){return mr(e)&&e.getAttribute("data-mce-bogus")==="all"},qa=function(e){return mr(e)&&e.tagName==="TABLE"},Ol=function(e){return function(r){return!!(mr(r)&&(r.contentEditable===e||r.getAttribute("data-mce-contenteditable")===e))}},Cu=Qu(["textarea","input"]),Et=Kc(3),sc=Kc(8),Jc=Kc(9),br=Kc(11),wn=Qu(["br"]),zm=Qu(["img"]),js=Ol("true"),ca=Ol("false"),Zc=Qu(["td","th"]),vo=Qu(["video","audio","object","embed"]),Qc=function(e,r,a){return a===void 0&&(a=$t),e.exists(function(o){return a(o,r)})},zh=function(e){for(var r=[],a=function(u){r.push(u)},o=0;o<e.length;o++)e[o].each(a);return r},mo=function(e,r,a){return e.isSome()&&r.isSome()?X.some(a(e.getOrDie(),r.getOrDie())):X.none()},Rp=function(e,r,a,o){return e.isSome()&&r.isSome()&&a.isSome()?X.some(o(e.getOrDie(),r.getOrDie(),a.getOrDie())):X.none()},Mp=function(e,r){return e?X.some(r):X.none()},Gr=function(e){return e.style!==void 0&&Xt(e.style.getPropertyValue)},Gi=function(e,r,a){if(Tr(a)||fr(a)||Gt(a))e.setAttribute(r,a+"");else throw console.error("Invalid call to Attribute.set. Key ",r,":: Value ",a,":: Element ",e),new Error("Attribute value was not simple")},S=function(e,r,a){Gi(e.dom,r,a)},M=function(e,r){var a=e.dom;oa(r,function(o,u){Gi(a,u,o)})},N=function(e,r){var a=e.dom.getAttribute(r);return a===null?void 0:a},ee=function(e,r){return X.from(N(e,r))},ge=function(e,r){var a=e.dom;return a&&a.hasAttribute?a.hasAttribute(r):!1},Me=function(e,r){e.dom.removeAttribute(r)},Nt=function(e){return Xn(e.dom.attributes,function(r,a){return r[a.name]=a.value,r},{})},sr=function(e,r,a){if(!Tr(a))throw console.error("Invalid call to CSS.set. Property ",r,":: Value ",a,":: Element ",e),new Error("CSS value must be a string: "+a);Gr(e)&&e.style.setProperty(r,a)},Vr=function(e,r){var a=e.dom;oa(r,function(o,u){sr(a,u,o)})},zr=function(e,r){var a=e.dom,o=window.getComputedStyle(a),u=o.getPropertyValue(r);return u===""&&!Dn(e)?Un(a,r):u},Un=function(e,r){return Gr(e)?e.style.getPropertyValue(r):""},di=function(e,r){var a=e.dom,o=Un(a,r);return X.from(o).filter(function(u){return u.length>0})},Dh=function(e){var r={},a=e.dom;if(Gr(a))for(var o=0;o<a.style.length;o++){var u=a.style.item(o);r[u]=a.style[u]}return r},qx=function(e){return e.dom.offsetWidth},b0=Ht().browser,y0=function(e){return ma(e,la)},Ux=function(e){return b0.isFirefox()&&ja(e)==="table"?y0(jo(e)).filter(function(r){return ja(r)==="caption"}).bind(function(r){return y0(jc(r)).map(function(a){var o=a.dom.offsetTop,u=r.dom.offsetTop,l=r.dom.offsetHeight;return o<=u?-l:0})}).getOr(0):0},xd=function(e,r){return e.children&&Vt(e.children,r)},Iv=function(e,r,a){var o=0,u=0,l=e.ownerDocument;if(a=a||e,r){if(a===e&&r.getBoundingClientRect&&zr(D.fromDom(e),"position")==="static"){var m=r.getBoundingClientRect();return o=m.left+(l.documentElement.scrollLeft||e.scrollLeft)-l.documentElement.clientLeft,u=m.top+(l.documentElement.scrollTop||e.scrollTop)-l.documentElement.clientTop,{x:o,y:u}}for(var p=r;p&&p!==a&&p.nodeType&&!xd(p,a);){var b=p;o+=b.offsetLeft||0,u+=b.offsetTop||0,p=b.offsetParent}for(p=r.parentNode;p&&p!==a&&p.nodeType&&!xd(p,a);)o-=p.scrollLeft||0,u-=p.scrollTop||0,p=p.parentNode;u+=Ux(D.fromDom(r))}return{x:o,y:u}},Bp={},W={exports:Bp};(function(e,r,a,o){(function(u,l){typeof r=="object"&&typeof a<"u"?a.exports=l():typeof e=="function"&&e.amd?e(l):(u=typeof globalThis<"u"?globalThis:u||self,u.EphoxContactWrapper=l())})(this,function(){var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof yo<"u"?yo:typeof self<"u"?self:{},l={exports:{}};(function(T){(function(R){var B=setTimeout;function I(){}function j(ue,xe){return function(){ue.apply(xe,arguments)}}function q(ue){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof ue!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],be(ue,this)}function K(ue,xe){for(;ue._state===3;)ue=ue._value;if(ue._state===0){ue._deferreds.push(xe);return}ue._handled=!0,q._immediateFn(function(){var Re=ue._state===1?xe.onFulfilled:xe.onRejected;if(Re===null){(ue._state===1?Z:ie)(xe.promise,ue._value);return}var tt;try{tt=Re(ue._value)}catch(ar){ie(xe.promise,ar);return}Z(xe.promise,tt)})}function Z(ue,xe){try{if(xe===ue)throw new TypeError("A promise cannot be resolved with itself.");if(xe&&(typeof xe=="object"||typeof xe=="function")){var Re=xe.then;if(xe instanceof q){ue._state=3,ue._value=xe,ae(ue);return}else if(typeof Re=="function"){be(j(Re,xe),ue);return}}ue._state=1,ue._value=xe,ae(ue)}catch(tt){ie(ue,tt)}}function ie(ue,xe){ue._state=2,ue._value=xe,ae(ue)}function ae(ue){ue._state===2&&ue._deferreds.length===0&&q._immediateFn(function(){ue._handled||q._unhandledRejectionFn(ue._value)});for(var xe=0,Re=ue._deferreds.length;xe<Re;xe++)K(ue,ue._deferreds[xe]);ue._deferreds=null}function ce(ue,xe,Re){this.onFulfilled=typeof ue=="function"?ue:null,this.onRejected=typeof xe=="function"?xe:null,this.promise=Re}function be(ue,xe){var Re=!1;try{ue(function(tt){Re||(Re=!0,Z(xe,tt))},function(tt){Re||(Re=!0,ie(xe,tt))})}catch(tt){if(Re)return;Re=!0,ie(xe,tt)}}q.prototype.catch=function(ue){return this.then(null,ue)},q.prototype.then=function(ue,xe){var Re=new this.constructor(I);return K(this,new ce(ue,xe,Re)),Re},q.all=function(ue){var xe=Array.prototype.slice.call(ue);return new q(function(Re,tt){if(xe.length===0)return Re([]);var ar=xe.length;function Ct(lr,at){try{if(at&&(typeof at=="object"||typeof at=="function")){var kt=at.then;if(typeof kt=="function"){kt.call(at,function(Je){Ct(lr,Je)},tt);return}}xe[lr]=at,--ar===0&&Re(xe)}catch(Je){tt(Je)}}for(var Ze=0;Ze<xe.length;Ze++)Ct(Ze,xe[Ze])})},q.resolve=function(ue){return ue&&typeof ue=="object"&&ue.constructor===q?ue:new q(function(xe){xe(ue)})},q.reject=function(ue){return new q(function(xe,Re){Re(ue)})},q.race=function(ue){return new q(function(xe,Re){for(var tt=0,ar=ue.length;tt<ar;tt++)ue[tt].then(xe,Re)})},q._immediateFn=typeof setImmediate=="function"?function(ue){setImmediate(ue)}:function(ue){B(ue,0)},q._unhandledRejectionFn=function(xe){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",xe)},q._setImmediateFn=function(xe){q._immediateFn=xe},q._setUnhandledRejectionFn=function(xe){q._unhandledRejectionFn=xe},T.exports?T.exports=q:R.Promise||(R.Promise=q)})(u)})(l);var m=l.exports,p=function(){return typeof window<"u"?window:Function("return this;")()}(),b={boltExport:p.Promise||m};return b})})(void 0,Bp,W);var qf=W.exports.boltExport,_d=function(e){var r=X.none(),a=[],o=function(T){return _d(function(R){u(function(B){R(T(B))})})},u=function(T){m()?b(T):a.push(T)},l=function(T){m()||(r=X.some(T),p(a),a=[])},m=function(){return r.isSome()},p=function(T){ct(T,b)},b=function(T){r.each(function(R){setTimeout(function(){T(R)},0)})};return e(l),{get:u,map:o,isReady:m}},qs=function(e){return _d(function(r){r(e)})},$n={nu:_d,pure:qs},Wx=function(e){setTimeout(function(){throw e},0)},El=function(e){var r=function(b){e().then(b,Wx)},a=function(b){return El(function(){return e().then(b)})},o=function(b){return El(function(){return e().then(function(T){return b(T).toPromise()})})},u=function(b){return El(function(){return e().then(function(){return b.toPromise()})})},l=function(){return $n.nu(r)},m=function(){var b=null;return El(function(){return b===null&&(b=e()),b})},p=e;return{map:a,bind:o,anonBind:u,toLazy:l,toCached:m,toPromise:p,get:r}},x0=function(e){return El(function(){return new qf(e)})},Fv=function(e){return El(function(){return qf.resolve(e)})},Ip={nu:x0,pure:Fv},Gx=function(e,r){return r(function(a){var o=[],u=0,l=function(m){return function(p){o[m]=p,u++,u>=e.length&&a(o)}};e.length===0?a([]):ct(e,function(m,p){m.get(l(p))})})},Kx=function(e){return Gx(e,Ip.nu)},wd=function(e){var r=function(B){return wd(e)},a=function(B){return wd(e)},o=function(B){return wd(B(e))},u=function(B){return wd(e)},l=function(B){B(e)},m=function(B){return B(e)},p=function(B,I){return I(e)},b=function(B){return B(e)},T=function(B){return B(e)},R=function(){return X.some(e)};return{isValue:Mt,isError:ot,getOr:Se(e),getOrThunk:Se(e),getOrDie:Se(e),or:r,orThunk:a,fold:p,map:o,mapError:u,each:l,bind:m,exists:b,forall:T,toOptional:R}},Dm=function(e){var r=function(T){return T()},a=function(){return G(String(e))()},o=Xe,u=function(T){return T()},l=function(T){return Dm(e)},m=function(T){return Dm(T(e))},p=function(T){return Dm(e)},b=function(T,R){return T(e)};return{isValue:ot,isError:Mt,getOr:Xe,getOrThunk:r,getOrDie:a,or:o,orThunk:u,fold:b,map:l,mapError:m,each:_t,bind:p,exists:ot,forall:Mt,toOptional:X.none}},lc=function(e,r){return e.fold(function(){return Dm(r)},wd)},_0={value:wd,error:Dm,fromOption:lc},es=function(e){if(!ta(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var r=[],a={};return ct(e,function(o,u){var l=Fo(o);if(l.length!==1)throw new Error("one and only one name per case");var m=l[0],p=o[m];if(a[m]!==void 0)throw new Error("duplicate key detected:"+m);if(m==="cata")throw new Error("cannot have a case named cata (sorry)");if(!ta(p))throw new Error("case arguments must be an array");r.push(m),a[m]=function(){for(var b=[],T=0;T<arguments.length;T++)b[T]=arguments[T];var R=b.length;if(R!==p.length)throw new Error("Wrong number of arguments to case "+m+". Expected "+p.length+" ("+p+"), got "+R);var B=function(I){var j=Fo(I);if(r.length!==j.length)throw new Error("Wrong number of arguments to match. Expected: "+r.join(",")+`
33
+ `)},Gt.prototype.renderPartial=function(Se,Xe,$t,Pe){if($t){var ur=Y($t)?$t(Se[1]):$t[Se[1]];if(ur!=null){var G=Se[6],C=Se[5],Le=Se[4],ot=ur;return C==0&&Le&&(ot=this.indentPartial(ur,Le,G)),this.renderTokens(this.parse(ot,Pe),Xe,$t,ot)}}},Gt.prototype.unescapedValue=function(Se,Xe){var $t=Xe.lookup(Se[1]);if($t!=null)return $t},Gt.prototype.escapedValue=function(Se,Xe){var $t=Xe.lookup(Se[1]);if($t!=null)return _t.escape($t)},Gt.prototype.rawValue=function(Se){return Se[1]};var _t={name:"mustache.js",version:"3.2.1",tags:["{{","}}"],clearCache:void 0,escape:void 0,parse:void 0,render:void 0,to_html:void 0,Scanner:void 0,Context:void 0,Writer:void 0},zi=new Gt;return _t.clearCache=function(){return zi.clearCache()},_t.parse=function(Se,Xe){return zi.parse(Se,Xe)},_t.render=function(Se,Xe,$t,Pe){if(typeof Se!="string")throw new TypeError('Invalid template! Template should be a "string" but "'+_e(Se)+'" was given as the first argument for mustache#render(template, view, partials)');return zi.render(Se,Xe,$t,Pe)},_t.to_html=function(Se,Xe,$t,Pe){var ur=_t.render(Se,Xe,$t);if(Y(Pe))Pe(ur);else return ur},_t.escape=da,_t.Scanner=vr,_t.Context=Xt,_t.Writer=Gt,_t})})(f6);var a7=f6.exports;const xo=Lx(a7),dl={name:"ValidationMixin",mixins:[eD],props:["validation","validationData","validationField","validationMessages","config"],computed:{isReadOnly(){return!!(this.readonly||this.disabled||this.$attrs.readonly||this.$attrs.disabled)},required(){for(const O of Zr.get(this.config,"validation",[])||[]){const g=Zr.get(O,"value","").split(":")[0];if(g==="required")return!0;if(g==="required_if"||g==="required_unless"){const w=O.configs[0].value,$=O.configs[1].value;let Y=this.$parent;"$v"in Y||(Y=Y.$parent);const _e=Zr.get(Y,w)||Zr.get(this.transientData,w);if(g==="required_if"){if(_e==$)return!0}else if(_e!=$)return!0}}return!1}},data(){return{validator:null}},mounted(){this.setValidatorLanguage(),this.updateValidation(),this.observeElementMutations()},watch:{value(){this.updateValidation()},validation(){this.updateValidation()},label(){this.updateValidation()},readonly(){this.updateValidation()},disabled(){this.updateValidation()},validationData:{handler:function(){this.updateValidation()},deep:!0}},methods:{observeElementMutations(){new MutationObserver(this.handleMutations).observe(this.$el,{attributes:!0,attributeFilter:["readonly","disabled"],subtree:!0})},handleMutations(O){O.forEach(g=>{g.type=="attributes"&&this.updateValidation()})},setValidatorLanguage(){let O=typeof window>"u"?global:window;if(O.validatorLanguageSet)return;let g="en";Zr.has(O,"ProcessMaker.user.lang")?g=O.ProcessMaker.user.lang:document.documentElement.lang&&(g=document.documentElement.lang),typeof O.ProcessMaker.setValidatorLanguage=="function"&&O.ProcessMaker.setValidatorLanguage(xu,g),O.validatorLanguageSet=!0},updateValidation(){if(this.validation&&!this.isReadOnly){let O=this.validationField?this.validationField:this.name,g=this.validationData?this.validationData:{[O]:this.value},w="";if(Array.isArray(this.validation)){let _e=[];this.validation.forEach(Ee=>{if(!Ee.value)return;const At=Ee.value.replace("after:","after_date:").replace("before:","before_date:").replace("after_or_equal:","after_or_equal_date:").replace("before_or_equal:","before_or_equal_date:");_e.push(At)}),w=_e}else w=this.validation.replace("after:","after_date:").replace("before:","before_date:").replace("after_or_equal:","after_or_equal_date:").replace("before_or_equal:","before_or_equal_date:");let $={[O]:w};this.registerCustomRules(g),this.validator=new xu(g,$,{validationMessages:this.validationMessages?this.validationMessages:null});const Y=xo.render(this.label,g);this.validator.setAttributeNames({[O]:Y}),this.validator.errors.first(this.name),this.validator.passes()}else this.validator=null},registerCustomRules(O){xu.register("custom-same",function(g,w){let $,Y=g;return w.includes(".")?$=w.split(".").reduce((_e,Ee)=>_e[Ee],this.validator.input):$=this.validator._flattenObject(this.validator.input)[w],$===Y},"The :attribute and :custom-same fields must match."),xu.register("after_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y>_e},"The :attribute must be after :after_date."),xu.register("after_or_equal_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y>=_e},"The :attribute must be equal or after :after_or_equal_date."),xu.register("before_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y<_e},"The :attribute must be before :before_date."),xu.register("before_or_equal_date",function(g,w){Kr(w).isValid()||(w=O[w]);const Y=Kr(g).toISOString(),_e=Kr(w).toISOString();return Y<=_e},"The :attribute must be equal or before :before_or_equal_date."),xu.register("required_if",function(g,w,$){typeof w=="string"&&(w=w.split(","));let Y=this.validator._objectPath(this.validator.input,w[0]);switch(typeof Y){case"boolean":case"number":if(Y.toString()==w[1])return this.validator.getRule("required").validate(g);break;default:if(Y==w[1])return this.validator.getRule("required").validate(g);break}return!0},"The :attribute field is required."),xu.register("required_unless",function(g,w,$){typeof w=="string"&&(w=w.split(","));let Y=this.validator._objectPath(this.validator.input,w[0]);switch(typeof Y){case"boolean":case"number":if(Y.toString()!==w[1])return this.validator.getRule("required").validate(g);break;default:if(Y!==w[1])return this.validator.getRule("required").validate(g);break}return!0},"The :attribute field is required."),xu.register("between",function(g,w){const $=Number(g),Y=w.split(",")[0],_e=w.split(",")[1];return $>=Y&&$<=_e},"Must have a value between :between"),xu.register("dot_notation",g=>{const w=g.split("."),$=/^[a-zA-Z][a-zA-Z0-9_]*$/;for(let Y of w)if(!$.test(Y))return!1;return!0},"Invalid variable name")}}};Kr.tz.setDefault(m0());const i7=/^\d{4}-/;function tD(O){if(typeof ProcessMaker<"u"&&ProcessMaker.user)return ProcessMaker.user[O]}function m0(){return tD("timezone")||Kr.tz.guess()}function v6(){return tD("lang")||"en"}function Ap(){return typeof ProcessMaker<"u"&&ProcessMaker.user&&ProcessMaker.user.datetime_format?ProcessMaker.user.datetime_format.replace(/[\sHh:msaAzZ]/g,""):"MM/DD/YYYY"}function h0(){return tD("datetime_format")||"MM/DD/YYYY h:mm A"}function d6(O,g=Ap()){return Kr(O,g).isValid()}function rD(O){let g;return i7.test(O)?(g=Kr(O,"YYYY-MM-DDTHH:mm:ss.SSSZ",!0),g.isValid()?g.format(h0()):(g=Kr(O,"YYYY-MM-DD",!0),g.isValid()?g.format(Ap()):O)):O}const o7=Object.freeze(Object.defineProperty({__proto__:null,formatIfDate:rD,getLang:v6,getTimezone:m0,getUserDateFormat:Ap,getUserDateTimeFormat:h0,isValidDate:d6},Symbol.toStringTag,{value:"Module"}));let dT=typeof window>"u"?global:window;(Y6=(K6=dT.ProcessMaker)==null?void 0:K6.user)!=null&&Y6.lang&&typeof dT.ProcessMaker.setValidatorLanguage=="function"&&dT.ProcessMaker.setValidatorLanguage(xu,dT.ProcessMaker.user.lang),xu.register("custom-date",function(O){return Kr(O,[Ap(),Kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date."),xu.register("custom-datetime",function(O){return Kr(O,[h0(),Kr.ISO_8601],!0).isValid()},"The :attribute must be a valid date and time.");const zp={name:"DataFormatMixin",props:{dataFormat:{type:String,default(){return"string"}}},computed:{componentName(){return this.$vnode.tag?this.$vnode.tag.replace(/vue-component-\d+-/i,""):""}},data(){return{dataTypeValidator:null,dataTypeValidatorPasses:!0,formatted:""}},watch:{value(O){const g=this.formatValue(O);if(g!==O){if(this.dataFormat==="date"&&this.formatValue(O)===g&&this.componentName!=="FormDatePicker")return;this.$emit("input",g)}}},methods:{formatValueWith(O,g){return this.$set(this,"dataFormat",g),this.formatValue(O)},formatValue(O){return!O&&this.dataFormat!=="boolean"?O:(this.dataTypeValidatorPasses=this.validateRuleFormat(O),this.dataTypeValidatorPasses?this.formatValueIfValid(O):O)},validateRuleFormat(O){if(!this.dataFormat)return!0;const g={int:"integer",boolean:"boolean",string:"string",datetime:"custom-datetime",date:"custom-date",float:"regex:/^[+-]?\\d+(\\.\\d+)?$/",currency:"regex:/^[+-]?\\d+(\\.\\d+)?$/",array:"array"};return this.$options._componentTag==="FormSelectList"||!g.hasOwnProperty(this.dataFormat)?!0:(this.dataTypeValidator=new xu({[this.name]:O},{[this.name]:g[this.dataFormat]}),this.dataTypeValidator.passes())},formatFloatValue(){if(this.dataFormat=="float"&&this.dataTypeValidator.passes())return this.value=Number(this.value),this.$emit("input",this.value)},formatValueIfValid(O){switch(this.dataFormat){case"string":O=O.toString();break;case"boolean":O=!!O;break;case"currency":case"percentage":O=parseFloat(O);break;case"int":O=parseInt(O);break;case"date":this.componentName==="FormDatePicker"&&(O=Kr.utc(O,[Ap(),Kr.ISO_8601],!0).toISOString().split(RegExp("T[0-9]"))[0]);break;case"datetime":this.componentName==="FormDatePicker"&&(O=Kr(O,[h0(),Kr.ISO_8601],!0).toISOString());break;case"array":break;default:O=O.toString();break}return O}}};function Mo(O,g,w,$,Y,_e,Ee,At){var Tt=typeof O=="function"?O.options:O;g&&(Tt.render=g,Tt.staticRenderFns=w,Tt._compiled=!0),$&&(Tt.functional=!0),_e&&(Tt._scopeId="data-v-"+_e);var cr;if(Ee?(cr=function(wr){wr=wr||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!wr&&typeof __VUE_SSR_CONTEXT__<"u"&&(wr=__VUE_SSR_CONTEXT__),Y&&Y.call(this,wr),wr&&wr._registeredComponents&&wr._registeredComponents.add(Ee)},Tt._ssrRegister=cr):Y&&(cr=At?function(){Y.call(this,(Tt.functional?this.parent:this).$root.$options.shadowRoot)}:Y),cr)if(Tt.functional){Tt._injectStyles=cr;var Nr=Tt.render;Tt.render=function(En,da){return cr.call(da),Nr(En,da)}}else{var Ft=Tt.beforeCreate;Tt.beforeCreate=Ft?[].concat(Ft,cr):[cr]}return{exports:O,options:Tt}}const u7={props:["name","error","validator"],computed:{displayErrors(){let O=[];return this.error&&O.push(this.error),this.name&&this.validator&&this.validator.errors.errors[this.name]&&this.validator.errors.errors[this.name].forEach(g=>{O.push(g)}),O}}};var s7=function(){var g=this,w=g._self._c;return g.displayErrors?w("div",{staticClass:"invalid-feedback"},g._l(g.displayErrors,function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),0):g._e()},l7=[],c7=Mo(u7,s7,l7,!1,null,null,null,null);const mT=c7.exports,YY="",f7={};var v7=function(){var g=this,w=g._self._c;return g.$parent.required?w("span",{staticClass:"required-asterisk",attrs:{title:g.$t("required")}},[g._v("*")]):g._e()},d7=[],m7=Mo(f7,v7,d7,!1,null,null,null,null);const Dp=m7.exports,h7=Yl(),g7={inheritAttrs:!1,components:{DisplayErrors:mT,RequiredAsterisk:Dp},mixins:[h7,dl,zp],props:["value","label","error","helper","name","controlClass","validateKeyStrokes"],data(){return{validator:null}},computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},methods:{handleInput(O){if(this.validateKeyStrokes&&!new RegExp(this.validateKeyStrokes).test(O.target.value)){this.$emit("input",this.value),O.target.value=this.value;return}this.$emit("input",O.target.value)}}};var p7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],staticClass:"form-control",class:g.classList,attrs:{name:g.name},domProps:{value:g.value},on:{input:g.handleInput,blur:function($){return g.formatFloatValue()}}},"input",g.$attrs,!1)),g.error||g.validator&&g.validator.errorCount?w("display-errors",{attrs:{name:g.name,error:g.error,validator:g.validator}}):g._e(),g.helper?w("small",{staticClass:"form-text text-muted",domProps:{innerHTML:g._s(g.helper)}}):g._e()],1)},b7=[],y7=Mo(g7,p7,b7,!1,null,null,null,null);const m6=y7.exports,x7=Yl(),_7={components:{RequiredAsterisk:Dp},inheritAttrs:!1,mixins:[x7,dl,zp],model:{prop:"checked",event:"change"},props:["error","label","name","helper","controlClass","toggle","checked","initiallyChecked","transientData"],computed:{validatorErrors(){return this.validator&&this.validator.errors.get(this.name)||[]},isChecked(){let O=new Boolean(this.initiallyChecked)==!0;return typeof this.checked>"u"||this.checked==null?(this.$emit("change",O),O):this.checked},divClass(){return this.toggle?"custom-control custom-switch":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},classList(){return[this.toggle?"custom-control-input":"form-check-input",{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}]}}};var w7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("div",{class:g.divClass},[w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{type:"checkbox",name:g.name},domProps:{checked:g.isChecked},on:{change:function($){return g.$emit("change",$.target.checked)}}},"input",g.$attrs,!1)),w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}],class:g.labelClass},[g._v(g._s(g.label))]),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback"},[g._l(g.validatorErrors,function($,Y){return w("div",{key:Y},[g._v(g._s($))])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)])},C7=[],k7=Mo(_7,w7,C7,!1,null,null,null,null);const h6=k7.exports,hT={name:"hasDefaultOptionKeyMixin",computed:{valueOrDefault(){return this.value||this.options.defaultOptionKey}},watch:{"options.defaultOptionKey":{immediate:!0,handler(O){this.value||this.$emit("input",O)}},value:{immediate:!0,handler(){!this.value&&this.options.defaultOptionKey&&this.$emit("input",this.options.defaultOptionKey)}}}},S7=Yl();function g6(O){return Object.keys(O).includes("value","contemnt")&&O.content!=null}const T7={inheritAttrs:!1,mixins:[S7,zp,hT],props:["name","label","error","value","options","helper","controlClass","toggle","validationData"],computed:{radioOptions(){return Array.isArray(this.options)?this.options:this.optionsFromDataSource},optionsFromDataSource(){const{jsonData:O,key:g,value:w,dataName:$}=this.options;let Y=[];const _e=Ee=>({value:Ee[g||"value"],content:Ee[w||"content"]});if(O)try{Y=JSON.parse(O).map(_e).filter(g6)}catch{}if($)try{Y=Object.values(this.validationData[$]).map(_e).filter(g6)}catch{}return Y},divClass(){return this.toggle?"custom-control custom-radio":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},inputClass(){return[{[this.controlClass]:!!this.controlClass},{"is-invalid":this.validator&&this.validator.errorCount||this.error},this.toggle?"custom-control-input":"form-check-input"]}}};var O7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",[g._v(g._s(g.label))]),g._l(g.radioOptions,function($){return w("div",{key:$.value,class:g.divClass},[w("input",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:`${g.name}-${$.value}`,expression:"`${name}-${option.value}`"}],class:g.inputClass,attrs:{type:"radio"},domProps:{value:$.value,checked:$.value==g.valueOrDefault},on:{change:function(Y){return g.$emit("input",Y.target.value)}}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:`${g.name}-${$.value}`,expression:"`${name}-${option.value}`"}],class:g.labelClass},[g._v(g._s($.content))])])}),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],2)},E7=[],A7=Mo(T7,O7,E7,!1,null,null,null,null);const p6=A7.exports,z7=Yl();function b6(O){return Object.keys(O).includes("value","contemnt")&&O.content!=null}const D7={inheritAttrs:!1,components:{DisplayErrors:mT},mixins:[z7,dl,zp,hT],props:["label","error","value","options","helper","name","controlClass","validationData","placeholder"],computed:{classList(){return{"is-invalid":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}},selectOptions(){return Array.isArray(this.options)?this.options:this.optionsFromDataSource},optionsFromDataSource(){const{jsonData:O,key:g,value:w,dataName:$}=this.options;let Y=[];const _e=Ee=>({value:Ee[g||"value"],content:Ee[w||"content"]});if(O)try{Y=JSON.parse(O).map(_e).filter(b6)}catch{}if($)try{Y=Object.values(this.validationData[$]).map(_e).filter(b6)}catch{}return Y}}};var P7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),w("select",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],staticClass:"form-control",class:g.classList,attrs:{name:g.name},on:{change:function($){return g.$emit("input",$.target.value)}}},"select",g.$attrs,!1),[w("option",{domProps:{value:null}},[g._v(g._s(g.placeholder?g.placeholder:g.$t("Select")))]),g._l(g.selectOptions,function($,Y){return w("option",{key:Y,domProps:{selected:$.value==g.valueOrDefault,value:$.value}},[g._v(" "+g._s($.content)+" ")])})],2),g.error||g.validator&&g.validator.errorCount?w("display-errors",{attrs:{name:g.name,error:g.error,validator:g.validator}}):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},R7=[],M7=Mo(D7,P7,R7,!1,null,null,null,null);const y6=M7.exports,XY="",B7=Yl(),I7={mounted(){this.value===null&&this.emitArray&&this.$emit("input",[])},inheritAttrs:!1,mixins:[B7,dl],props:["value","optionValue","optionContent","options","label","error","helper","name","controlClass","placeholder","emitObjects","emitArray","loading"],computed:{valueProxy:{get(){return this.toMultiSelectFormat(this.value,this.optionValue,this.options,this.emitArray,this.emitObjects)},set(O){const g=this.convertForEmit(O,this.optionValue,this.emitArray,this.emitObjects);this.$emit("input",g)}},classList(){return{"is-invalid border border-danger":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},methods:{convertForEmit(O,g,w,$){if(w&&$)return O||[];if(w&&!$)return O?O.map(Y=>Y[g]):[];if(!w&&$)return O||null;if(!w&&!$)return O?O[g]:null},toMultiSelectFormat(O,g,w,$,Y){const _e=O===null||typeof O>"u",Ee=Array.isArray(O),At=Ee&&O.length>0?typeof O[0]=="object":typeof O=="object";if(_e)return null;if(Ee&&O.length===0)return $?[]:null;if(Ee!==$||At!==Y)return null;if(Ee&&At)return O;if(Ee&&!At)return w.filter(Tt=>{const cr=Tt[g]?Tt[g]:null;return O.findIndex(Nr=>Nr===cr)>=0&&cr!==null});if(!Ee&&At)return O;if(!Ee&&!At){const Tt=w.filter(cr=>{const Nr=g in cr?cr[g]:null;return O==Nr&&Nr!==null});return Tt.length>0?Tt[0]:[]}}}};var F7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("multiselect",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{options:g.options,multiple:g.emitArray,name:g.name,"track-by":g.emitObjects?g.optionContent:g.optionValue,label:g.optionContent,placeholder:g.placeholder?g.placeholder:g.$t("type here to search"),disabled:g.isReadOnly,loading:g.loading},on:{"search-change":function($){return g.$emit("search-change",$)}},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"multiselect",g.$attrs,!1),[w("template",{slot:"noResult"},[g._v(" "+g._s(g.$t("No elements found. Consider changing the search query."))+" ")]),w("template",{slot:"noOptions"},[g._v(" "+g._s(g.$t("No Data Available"))+" ")])],2)],1)},$7=[],N7=Mo(I7,F7,$7,!1,null,null,null,null);const L7=N7.exports,x6={computed:{divClass(){return this.toggle?"custom-control custom-radio":"form-check"},labelClass(){return this.toggle?"custom-control-label":"form-check-label"},inputClass(){return[{[this.controlClass]:!!this.controlClass},{"is-invalid":this.validator&&this.validator.errorCount||this.error},this.toggle?"custom-control-input":"form-check-input"]}},methods:{getOptionValue(O){return O[this.optionValue||"value"]},getOptionContent(O){return O[this.optionContent||"content"]},getOptionAriaLabel(O){var w;let g="";if((w=this.optionsExtra)!=null&&w.length){const $=this.optionsExtra.find(Y=>Y.hasOwnProperty(this.optionValue)&&Y[this.optionValue]===O[this.optionValue]);$&&(g=$[this.optionAriaLabel||"ariaLabel"]??"")}else g=O[this.optionAriaLabel||"ariaLabel"]??"";return!g||g===""?this.getOptionContent(O):g},getOptionId(O,g){return`${this.name}-${this.getOptionValue(O)}-${g}`}}},H7={mixins:[Yl(),dl,x6],inheritAttrs:!1,props:["value","optionValue","optionContent","optionAriaLabel","options","optionsExtra","error","helper","name","controlClass","emitObjects","emitArray","allowMultiselect"],data(){return{selected:[]}},computed:{inputName(){return`${this.name}-${this._uid}`}},watch:{value(O){this.selected=O},selected(){this.$emit("input",this.selected)}},mounted(){this.selected=this.value}};var V7=function(){var g=this,w=g._self._c;return w("div",{attrs:{"aria-label":g.$attrs["aria-label"]}},g._l(g.options,function($,Y){return w("div",{key:g.getOptionValue($),class:g.divClass,attrs:{role:"radio"}},[w("input",g._b({directives:[{name:"model",rawName:"v-model",value:g.selected,expression:"selected"},{name:"uni-id",rawName:"v-uni-id",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.inputClass,attrs:{type:"radio",name:g.inputName,disabled:g.isReadOnly,"aria-label":g.getOptionAriaLabel($)},domProps:{value:g.emitObjects?$:g.getOptionValue($),checked:g._q(g.selected,g.emitObjects?$:g.getOptionValue($))},on:{change:function(_e){g.selected=g.emitObjects?$:g.getOptionValue($)}}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.labelClass},[g._v(" "+g._s(g.getOptionContent($))+" ")])])}),0)},j7=[],q7=Mo(H7,V7,j7,!1,null,null,null,null);const U7=q7.exports,W7={mixins:[Yl(),dl,x6],inheritAttrs:!1,props:["value","optionValue","optionContent","optionAriaLabel","options","optionsExtra","error","helper","name","controlClass","emitObjects","emitArray"],data(){return{selected:[]}},watch:{value(O){this.selected=O instanceof Array?O:[]}},mounted(){this.selected=this.value instanceof Array?this.value:[]}};var G7=function(){var g=this,w=g._self._c;return w("div",{attrs:{"aria-label":g.$attrs["aria-label"]}},g._l(g.options,function($,Y){return w("div",{key:g.getOptionValue($),class:g.divClass,attrs:{role:"checkbox"}},[w("input",g._b({directives:[{name:"model",rawName:"v-model",value:g.selected,expression:"selected"},{name:"uni-id",rawName:"v-uni-id",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.inputClass,attrs:{type:"checkbox",name:`${g.name}`,disabled:g.isReadOnly,"aria-label":g.getOptionAriaLabel($)},domProps:{value:g.emitObjects?$:g.getOptionValue($),checked:Array.isArray(g.selected)?g._i(g.selected,g.emitObjects?$:g.getOptionValue($))>-1:g.selected},on:{change:[function(_e){var Ee=g.selected,At=_e.target,Tt=!!At.checked;if(Array.isArray(Ee)){var cr=g.emitObjects?$:g.getOptionValue($),Nr=g._i(Ee,cr);At.checked?Nr<0&&(g.selected=Ee.concat([cr])):Nr>-1&&(g.selected=Ee.slice(0,Nr).concat(Ee.slice(Nr+1)))}else g.selected=Tt},function(_e){return g.$emit("input",g.selected)}]}},"input",g.$attrs,!1)),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.getOptionId($,Y),expression:"getOptionId(option, index)"}],class:g.labelClass},[g._v(" "+g._s(g.getOptionContent($))+" ")])])}),0)},K7=[],Y7=Mo(W7,G7,K7,!1,null,null,null,null);const X7=Y7.exports,J7=Yl(),_6=100,Z7={components:{OptionboxView:U7,CheckboxView:X7,MultiSelectView:L7,RequiredAsterisk:Dp},mixins:[J7,dl],inheritAttrs:!1,props:["label","error","value","options","helper","name","controlClass","validationData","placeholder","multiple","transientData"],data(){return{lastRequest:{},previousSourceConfig:null,previousValidationData:null,previousValidationDataParent:null,selectListOptions:[],selectedOption:null,loading:!1,loaded:!1,previousDependentValue:null,filter:"",countWithoutFilter:null}},computed:{selectListOptionsWithSelected(){return this.selectedOption&&!this.selectListOptions.some(O=>O.value===this.selectedOption.value)?[this.selectedOption,...this.selectListOptions]:this.selectListOptions},collectionOptions(){return Zr.get(this.options,"collectionOptions")},isDataConnector(){return Zr.get(this.options,"dataSource")==="dataConnector"},isCollection(){return Zr.get(this.options,"dataSource")==="collection"},mode(){return this.$root.$children[0].mode},validatorErrors(){return this.validator&&this.validator.errors.get(this.name)||[]},divClass(){return this.toggle?"custom-control custom-radio":"form-check"},reactOptions(){const O=typeof this.value=="string";let g=!0;!this.loaded&&O&&(g=!1),this.loaded=!0,this.fillSelectListOptions(g)},sourceConfig(){return{dataSource:this.options.dataSource,collectionOptions:this.options.collectionOptions,selectedEndPoint:this.options.selectedEndPoint,selectedDataSource:this.options.selectedDataSource,valueTypeReturned:this.options.valueTypeReturned,dataName:this.options.dataName,value:this.options.value,key:this.options.key,ariaLabel:this.options.optionAriaLabel}},valueProxy:{get(){if(this.options.renderAs==="dropdown"){let O=this.value;return this.options.valueTypeReturned==="object"&&this.value&&(Array.isArray(this.value)||(O=[this.value]),O.forEach(g=>{this.addObjectContentProp(g)})),this.areItemsInSelectListOptions(O)?this.value:[]}return this.value},set(O){return this.selectedOption=O?this.selectListOptions.find(g=>g.value===O):null,this.$emit("input",O)}},optionsKey(){if(this.options.dataSource&&this.options.dataSource==="provideData")return"value";if(this.options.dataSource&&this.options.dataSource==="dataConnector"&&this.options.valueTypeReturned==="object")return this.optionsValue;const O=this.options.key||"value";return this.stripMustache(O)},optionsValue(){return this.options.dataSource&&(this.options.dataSource==="provideData"||this.isCollection)?"content":"__content__"},optionsAriaLabel(){return this.options.dataSource&&(this.options.dataSource==="provideData"||this.isCollection)?"ariaLabel":"__ariaLabel__"},classList(){return{"has-errors":this.validator&&this.validator.errorCount||this.error,[this.controlClass]:!!this.controlClass}}},watch:{selectListOptions:{handler(){this.isCollection&&this.value&&!this.selectListOptions.some(O=>O.value===this.value)&&this.loadIndividualRecord()}}},methods:{isMultiSelectDisabled(){return this.options.allowMultiSelect===!1},hasNestedProperty(O,g){return g.split(".").reduce((w,$)=>w&&w[$],O)},renderPmql(O){if(typeof O<"u"&&O!==""&&O!==null){const g=this.makeProxyData(),w=O.replace(/{{\s*([\w.]+)\s*}}/g,(_e,Ee)=>this.hasNestedProperty(g,Ee)?_e:`[[[${Ee}]]]`),$=xo.render(w,g);return xo.render($.replace("[[[","{{").replace("]]]","}}"),{data:g})}return""},async loadOptionsFromDataConnector(O){const{selectedEndPoint:g,selectedDataSource:w,dataName:$}=O;if(!this.shouldLoadOptionsFromDataConnector(w,g))return!1;const Y=this.prepareParamsForDataConnector(g),_e={selectedDataSource:w,params:Y};return Zr.isEqual(this.lastRequest,_e)?!1:(this.lastRequest=Zr.cloneDeep(_e),await this.fetchDataSourceOptions(w,Y,$))},shouldLoadOptionsFromDataConnector(O,g){return!(this.isEditorMode()||this.isNoDataSourceSelected(O)||this.isNoEndpointSelected(g)||this.isStandaloneMode())},isEditorMode(){return this.mode==="editor"},isNoDataSourceSelected(O){return O===null||typeof O>"u"||O.toString().trim().length===0},isNoEndpointSelected(O){return O===null||typeof O>"u"||O.toString().trim().length===0},isStandaloneMode(){return!this.$dataProvider},prepareParamsForDataConnector(O){const g={config:{endpoint:O}},w=this.renderPmql(this.options.pmqlQuery);return w&&(g.config.outboundConfig=[{type:"PARAM",key:"pmql",value:w}]),g},async fetchDataSourceOptions(O,g,w){try{let $=null,Y=null;if(this.nonce=Math.random(),[Y,$]=await this.$dataProvider.getDataSource(O,g,this.nonce),$!==this.nonce)return;this.nonce=null;const _e=w?Zr.get(Y.data,w):Y.data,Ee=this.transformOptions(_e);return this.$root.$emit("selectListOptionsUpdated",Ee),this.selectListOptions=Ee,!0}catch($){return console.warn($),!1}},async loadOptionsFromCollection(){if(this.mode==="editor"||!this.collectionOptions||!this.collectionOptions.collectionId||!this.collectionOptions.labelField||!this.collectionOptions.valueField)return!1;const O={params:{per_page:_6}};let g=this.renderPmql(this.collectionOptions.pmql);return g=this.includeFilterInPmql(g),g&&(O.params.pmql=g),this.collectionOptions.unique&&(O.params.groupBy=this.collectionOptions.labelField),await this.getCollectionRecords(O),!0},formatCollectionRecordResults(O){let g=Zr.get(O,this.collectionOptions.labelField),w=Zr.get(O,this.collectionOptions.valueField);const $=Zr.get(O,this.collectionOptions.ariaLabelField||this.collectionOptions.labelField);return g&&typeof g=="object"&&"name"in g&&(g=g.name),w&&typeof w=="object"&&"id"in w&&(w=w.id),{value:String(w??""),content:String(g??""),ariaLabel:String($??"")}},includeFilterInPmql(O){if(this.filter){const g=`lower(${this.collectionOptions.labelField}) like "%${this.filter.toLowerCase()}%"`;O?O=`(${O}) AND ${g}`:O=g}return O},async loadIndividualRecord(){let O=this.renderPmql(this.collectionOptions.pmql);const g=`${this.collectionOptions.valueField} = "${this.value}"`;O?O+=` AND ${g}`:O=g,this.loading=!0;const[w]=await this.$dataProvider.getCollectionRecords(this.collectionOptions.collectionId,{params:{pmql:O}});this.loading=!1,w.data&&w.data.length>0?this.selectedOption=this.formatCollectionRecordResults(w.data[0]):(this.selectedOption=null,this.updateWatcherDependentFieldValue(!0))},async getCollectionRecords(O){let g={data:[]},w=null;this.nonce=Math.random(),this.loading=!0,[g,w]=await this.$dataProvider.getCollectionRecords(this.collectionOptions.collectionId,O,this.nonce),this.loading=!1,w===this.nonce&&(this.nonce=null,this.filter||(this.countWithoutFilter=g.meta?g.meta.total:null),this.selectListOptions=g.data.map(this.formatCollectionRecordResults))},debouncedSetFilter:Zr.debounce(function(O){this.filter=O},300),searchChange(O){if(this.isCollection){if(this.countWithoutFilter&&this.countWithoutFilter<_6)return;this.loading=!0,this.debouncedSetFilter(O)}},async fillSelectListOptions(O){let g=!1;if(this.options.dataSource&&this.options.dataSource==="provideData"&&(this.options&&this.options.optionsList&&!Zr.isEqual(this.selectListOptions,this.options.optionsList)&&(this.selectListOptions=this.options.optionsList),this.selectListOptions=this.selectListOptions||[],g=!0),this.options.dataSource&&this.options.dataSource==="dataObject"){let w=[];try{const Y=this.makeProxyData();w=Zr.get(Y,this.options.dataName)}catch{w=[]}const $=w||[];this.selectListOptions=this.transformOptions($),g=!0}this.options.dataSource&&this.options.dataSource==="dataConnector"&&(g=await this.loadOptionsFromDataConnector(this.sourceConfig)),this.isCollection&&(await this.loadOptionsFromCollection(),g=!1),g&&this.$nextTick(()=>{this.updateWatcherDependentFieldValue(O)})},transformOptions(O){const g=this.attributeParent(this.options.value),w=[];return Array.isArray(O)?(O.forEach($=>{const{escape:Y}=xo;xo.escape=Tt=>Tt;let _e={};if(this.options.key){const Tt=this.options.key.indexOf("{{")>=0?xo.render(this.options.key,$):xo.render(`{{${this.options.key||"value"}}}`,$);_e[this.optionsKey]=Tt}const Ee=this.options.value.indexOf("{{")>=0?xo.render(this.options.value,$):xo.render(`{{${this.options.value||"content"}}}`,$);let At=Ee;this.options.optionAriaLabel&&(At=this.options.optionAriaLabel.indexOf("{{")>=0?xo.render(this.options.optionAriaLabel,$):xo.render(`{{${this.options.optionAriaLabel||"ariaLabel"}}}`,$)),xo.escape=Y,_e[this.optionsValue]=Ee,_e[this.optionsAriaLabel]=At,this.options.valueTypeReturned==="object"&&(_e=g.length>0?Zr.get($,g):$,_e.hasOwnProperty(this.optionsValue)||Object.defineProperty(_e,this.optionsValue,{get(){return Ee}}),_e.hasOwnProperty(this.optionsAriaLabel)||Object.defineProperty(_e,this.optionsAriaLabel,{get(){return At}})),w.push(_e)}),w):(console.warn(`The retrieved data is not an array. Please check the data sources options of the select list \`${this.name}\``),w)},addObjectContentProp(O){if(!(O instanceof Object))return O;const g=this.attributeParent(this.options.value);let w=this.options.value,$=this.options.ariaLabel||this.options.value;return w.indexOf("{{")===-1&&(w=`{{ ${w} }}`),$.indexOf("{{")===-1&&($=`{{ ${$} }}`),O.hasOwnProperty(this.optionsValue)||Object.defineProperty(O,this.optionsValue,{get(){let Y={};return g?Zr.set(Y,g,this):Y=this,xo.render(w,Y)}}),O.hasOwnProperty(this.optionsAriaLabel)||Object.defineProperty(O,this.optionsAriaLabel,{get(){let Y={};return g?Zr.set(Y,g,this):Y=this,xo.render($,Y)}}),O},stripMustache(O){return O.replace(/{{/g,"").replace(/}}/g,"").split(".").pop()||O},attributeParent(O){if(O.indexOf("{{")>=0){const w=O.match(/{{[^}]+}}/g);if(w){let $;return w.forEach(Y=>{const Ee=Y.substr(2,Y.length-4).trim().split(".");Ee.pop();const At=Ee.join(".");(!$||$.length>At.length)&&($=At)}),$}}else{const w=O.trim().split(".");return w.pop(),w.join(".")}},updateWatcherDependentFieldValue(O){let g=!0;Array.isArray(this.value)?(g=!0,this.value.forEach(w=>{const $=this.selectListOptionsWithSelected.find(Y=>this.options.valueTypeReturned==="object"?Zr.isEqual(Y,w):Zr.get(Y,this.optionsKey)===w);g=g&&$})):g=this.selectListOptionsWithSelected.find(w=>this.options.valueTypeReturned==="object"?Zr.isEqual(w,this.value):Zr.get(w,this.optionsKey)===this.value),!g&&O&&this.$emit("reset",this.name)},areItemsInSelectListOptions(O){return Array.isArray(O)?O.filter(w=>this.selectListOptions.find(Y=>this.options.valueTypeReturned==="object"?Zr.isEqual(Y,w):Zr.get(Y,this.optionsKey)===w)!==void 0).length>0:!0}}};var Q7=function(){var g=this,w=g._self._c;return w("div",{staticClass:"form-group"},[w("required-asterisk"),w("label",{directives:[{name:"uni-for",rawName:"v-uni-for",value:g.name,expression:"name"}]},[g._v(g._s(g.label))]),g.options.renderAs==="dropdown"?w("multi-select-view",g._b({directives:[{name:"uni-id",rawName:"v-uni-id",value:g.name,expression:"name"}],class:g.classList,attrs:{"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,placeholder:g.placeholder?g.placeholder:g.$t("Select..."),"show-labels":!1,options:g.selectListOptionsWithSelected,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object","emit-array":g.options.allowMultiSelect,loading:g.loading},on:{"search-change":g.searchChange},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"multi-select-view",g.$attrs,!1)):g._e(),g.options.renderAs==="checkbox"&&g.options.allowMultiSelect?w("div",[w("checkbox-view",g._b({attrs:{name:g.name,"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,options:g.selectListOptionsWithSelected,"options-extra":g.options.optionsListExtra,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object"},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"checkbox-view",g.$attrs,!1))],1):g._e(),g.options.renderAs==="checkbox"&&!g.options.allowMultiSelect?w("div",[w("optionbox-view",g._b({attrs:{name:g.name,"option-value":g.optionsKey,"option-content":g.optionsValue,"option-aria-label":g.optionsAriaLabel,options:g.selectListOptionsWithSelected,"options-extra":g.options.optionsListExtra,"react-options":g.reactOptions,"emit-objects":g.options.valueTypeReturned==="object"},model:{value:g.valueProxy,callback:function($){g.valueProxy=$},expression:"valueProxy"}},"optionbox-view",g.$attrs,!1))],1):g._e(),g.validator&&g.validator.errorCount||g.error?w("div",{staticClass:"invalid-feedback d-block"},[g._l(g.validatorErrors,function($,Y){return w("div",{key:Y},[g._v(" "+g._s($)+" ")])}),g.error?w("div",[g._v(g._s(g.error))]):g._e()],2):g._e(),g.helper?w("small",{staticClass:"form-text text-muted"},[g._v(g._s(g.helper))]):g._e()],1)},eH=[],tH=Mo(Z7,Q7,eH,!1,null,null,null,null);const w6=tH.exports;function rH(O){var g=typeof O;return O!=null&&(g=="object"||g=="function")}var nD=rH,nH=typeof yo=="object"&&yo&&yo.Object===Object&&yo,aH=nH,iH=aH,oH=typeof self=="object"&&self&&self.Object===Object&&self,uH=iH||oH||Function("return this")(),C6=uH,sH=C6,lH=function(){return sH.Date.now()},cH=lH,fH=/\s/;function vH(O){for(var g=O.length;g--&&fH.test(O.charAt(g)););return g}var dH=vH,mH=dH,hH=/^\s+/;function gH(O){return O&&O.slice(0,mH(O)+1).replace(hH,"")}var pH=gH,bH=C6,yH=bH.Symbol,k6=yH,S6=k6,T6=Object.prototype,xH=T6.hasOwnProperty,_H=T6.toString,Vx=S6?S6.toStringTag:void 0;function wH(O){var g=xH.call(O,Vx),w=O[Vx];try{O[Vx]=void 0;var $=!0}catch{}var Y=_H.call(O);return $&&(g?O[Vx]=w:delete O[Vx]),Y}var CH=wH,kH=Object.prototype,SH=kH.toString;function TH(O){return SH.call(O)}var OH=TH,O6=k6,EH=CH,AH=OH,zH="[object Null]",DH="[object Undefined]",E6=O6?O6.toStringTag:void 0;function PH(O){return O==null?O===void 0?DH:zH:E6&&E6 in Object(O)?EH(O):AH(O)}var RH=PH;function MH(O){return O!=null&&typeof O=="object"}var BH=MH,IH=RH,FH=BH,$H="[object Symbol]";function NH(O){return typeof O=="symbol"||FH(O)&&IH(O)==$H}var LH=NH,HH=pH,A6=nD,VH=LH,z6=0/0,jH=/^[-+]0x[0-9a-f]+$/i,qH=/^0b[01]+$/i,UH=/^0o[0-7]+$/i,WH=parseInt;function GH(O){if(typeof O=="number")return O;if(VH(O))return z6;if(A6(O)){var g=typeof O.valueOf=="function"?O.valueOf():O;O=A6(g)?g+"":g}if(typeof O!="string")return O===0?O:+O;O=HH(O);var w=qH.test(O);return w||UH.test(O)?WH(O.slice(2),w?2:8):jH.test(O)?z6:+O}var KH=GH,YH=nD,aD=cH,D6=KH,XH="Expected a function",JH=Math.max,ZH=Math.min;function QH(O,g,w){var $,Y,_e,Ee,At,Tt,cr=0,Nr=!1,Ft=!1,wr=!0;if(typeof O!="function")throw new TypeError(XH);g=D6(g)||0,YH(w)&&(Nr=!!w.leading,Ft="maxWait"in w,_e=Ft?JH(D6(w.maxWait)||0,g):_e,wr="trailing"in w?!!w.trailing:wr);function En(xr){var vr=$,Xt=Y;return $=Y=void 0,cr=xr,Ee=O.apply(Xt,vr),Ee}function da(xr){return cr=xr,At=setTimeout(An,g),Nr?En(xr):Ee}function it(xr){var vr=xr-Tt,Xt=xr-cr,Gt=g-vr;return Ft?ZH(Gt,_e-Xt):Gt}function Tr(xr){var vr=xr-Tt,Xt=xr-cr;return Tt===void 0||vr>=g||vr<0||Ft&&Xt>=_e}function An(){var xr=aD();if(Tr(xr))return ta(xr);At=setTimeout(An,it(xr))}function ta(xr){return At=void 0,wr&&$?En(xr):($=Y=void 0,Ee)}function se(){At!==void 0&&clearTimeout(At),cr=0,$=Tt=Y=At=void 0}function fr(){return At===void 0?Ee:ta(aD())}function bt(){var xr=aD(),vr=Tr(xr);if($=arguments,Y=this,Tt=xr,vr){if(At===void 0)return da(Tt);if(Ft)return clearTimeout(At),At=setTimeout(An,g),En(Tt)}return At===void 0&&(At=setTimeout(An,g)),Ee}return bt.cancel=se,bt.flush=fr,bt}var eV=QH,tV=eV,rV=nD,nV="Expected a function";function aV(O,g,w){var $=!0,Y=!0;if(typeof O!="function")throw new TypeError(nV);return rV(w)&&($="leading"in w?!!w.leading:$,Y="trailing"in w?!!w.trailing:Y),tV(O,g,{leading:$,maxWait:g,trailing:Y})}var iV=aV;const oV=Lx(iV);var uV=["onActivate","onAddUndo","onBeforeAddUndo","onBeforeExecCommand","onBeforeGetContent","onBeforeRenderUI","onBeforeSetContent","onBeforePaste","onBlur","onChange","onClearUndos","onClick","onContextMenu","onCopy","onCut","onDblclick","onDeactivate","onDirty","onDrag","onDragDrop","onDragEnd","onDragGesture","onDragOver","onDrop","onExecCommand","onFocus","onFocusIn","onFocusOut","onGetContent","onHide","onInit","onKeyDown","onKeyPress","onKeyUp","onLoadContent","onMouseDown","onMouseEnter","onMouseLeave","onMouseMove","onMouseOut","onMouseOver","onMouseUp","onNodeChange","onObjectResizeStart","onObjectResized","onObjectSelected","onPaste","onPostProcess","onPostRender","onPreProcess","onProgressState","onRedo","onRemove","onReset","onSaveContent","onSelectionChange","onSetAttrib","onSetContent","onShow","onSubmit","onUndo","onVisualAid"],sV=function(O){return uV.indexOf(O)!==-1},lV=function(O,g,w){Object.keys(g).filter(sV).forEach(function($){var Y=g[$];typeof Y=="function"&&($==="onInit"?Y(O,w):w.on($.substring(2),function(_e){return Y(_e,w)}))})},cV=function(O,g){var w=O.$props.modelEvents?O.$props.modelEvents:null,$=Array.isArray(w)?w.join(" "):w,Y;O.$watch("value",function(_e,Ee){g&&typeof _e=="string"&&_e!==Y&&_e!==Ee&&(g.setContent(_e),Y=_e)}),g.on($||"change keyup undo redo",function(){Y=g.getContent(),O.$emit("input",Y)})},fV=function(O,g,w){var $=g.$props.value?g.$props.value:"",Y=g.$props.initialValue?g.$props.initialValue:"";w.setContent($||Y),g.$listeners.input&&cV(g,w),lV(O,g.$listeners,w)},P6=0,R6=function(O){var g=Date.now(),w=Math.floor(Math.random()*1e9);return P6++,O+"_"+w+P6+String(g)},vV=function(O){return O!==null&&O.tagName.toLowerCase()==="textarea"},M6=function(O){return typeof O>"u"||O===""?[]:Array.isArray(O)?O:O.split(" ")},dV=function(O,g){return M6(O).concat(M6(g))},mV=function(O,g,w,$){var Y=g.createElement("script");Y.type="application/javascript",Y.id=O,Y.addEventListener("load",$),Y.src=w,g.head&&g.head.appendChild(Y)},hV=function(){return{listeners:[],scriptId:R6("tiny-script"),scriptLoaded:!1}},gV=function(O,g,w,$){O.scriptLoaded?$():(O.listeners.push($),g.getElementById(O.scriptId)||mV(O.scriptId,g,w,function(){O.listeners.forEach(function(Y){return Y()}),O.scriptLoaded=!0}))},pV=function(){return typeof window<"u"?window:global},gT=function(){var O=pV();return O&&O.tinymce?O.tinymce:null},bV={apiKey:String,cloudChannel:String,id:String,init:Object,initialValue:String,inline:Boolean,modelEvents:[String,Array],plugins:[String,Array],tagName:String,toolbar:[String,Array],value:String,disabled:Boolean},iD=globalThis&&globalThis.__assign||function(){return iD=Object.assign||function(O){for(var g,w=1,$=arguments.length;w<$;w++){g=arguments[w];for(var Y in g)Object.prototype.hasOwnProperty.call(g,Y)&&(O[Y]=g[Y])}return O},iD.apply(this,arguments)},yV=hV(),xV=function(O,g,w){return O(w||"div",{attrs:{id:g}})},_V=function(O,g){return O("textarea",{attrs:{id:g},style:{visibility:"hidden"}})},B6=function(O){return function(){var g=iD({},O.$props.init,{readonly:O.$props.disabled,selector:"#"+O.elementId,plugins:dV(O.$props.init&&O.$props.init.plugins,O.$props.plugins),toolbar:O.$props.toolbar||O.$props.init&&O.$props.init.toolbar,inline:O.inlineEditor,setup:function(w){O.editor=w,w.on("init",function($){return fV($,O,w)}),O.$props.init&&typeof O.$props.init.setup=="function"&&O.$props.init.setup(w)}});vV(O.element)&&(O.element.style.visibility=""),gT().init(g)}},I6={props:bV,created:function(){this.elementId=this.$props.id||R6("tiny-vue"),this.inlineEditor=this.$props.init&&this.$props.init.inline||this.$props.inline},watch:{disabled:function(){this.editor.setMode(this.disabled?"readonly":"design")}},mounted:function(){if(this.element=this.$el,gT()!==null)B6(this)();else if(this.element&&this.element.ownerDocument){var O=this.element.ownerDocument,g=this.$props.cloudChannel?this.$props.cloudChannel:"5",w=this.$props.apiKey?this.$props.apiKey:"",$="https://cloud.tinymce.com/"+g+"/tinymce.min.js?apiKey="+w;gV(yV,O,$,B6(this))}},beforeDestroy:function(){gT()!==null&&gT().remove(this.editor)},render:function(O){return this.inlineEditor?xV(O,this.elementId,this.$props.tagName):_V(O,this.elementId)}},wV={exports:{}};(function(O){(function(){var g=function(e){if(e===null)return"null";if(e===void 0)return"undefined";var r=typeof e;return r==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":r==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":r},w=function(e){return["undefined","boolean","number","string","function","xml","null"].indexOf(e)!==-1},$=function(e,r){var a=Array.prototype.slice.call(e);return a.sort(r)},Y=function(e,r){return _e(function(a,o){return e.eq(r(a),r(o))})},_e=function(e){return{eq:e}},Ee=_e(function(e,r){return e===r}),At=Ee,Tt=function(e){return _e(function(r,a){if(r.length!==a.length)return!1;for(var o=r.length,u=0;u<o;u++)if(!e.eq(r[u],a[u]))return!1;return!0})},cr=function(e,r){return Y(Tt(e),function(a){return $(a,r)})},Nr=function(e){return _e(function(r,a){var o=Object.keys(r),u=Object.keys(a);if(!cr(At).eq(o,u))return!1;for(var l=o.length,m=0;m<l;m++){var p=o[m];if(!e.eq(r[p],a[p]))return!1}return!0})},Ft=_e(function(e,r){if(e===r)return!0;var a=g(e),o=g(r);return a!==o?!1:w(a)?e===r:a==="array"?Tt(Ft).eq(e,r):a==="object"?Nr(Ft).eq(e,r):!1}),wr=function(e){var r=typeof e;return e===null?"null":r==="object"&&(Array.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="Array")?"array":r==="object"&&(String.prototype.isPrototypeOf(e)||e.constructor&&e.constructor.name==="String")?"string":r},En=function(e){return function(r){return wr(r)===e}},da=function(e){return function(r){return typeof r===e}},it=function(e){return function(r){return e===r}},Tr=En("string"),An=En("object"),ta=En("array"),se=it(null),fr=da("boolean"),bt=it(void 0),xr=function(e){return e==null},vr=function(e){return!xr(e)},Xt=da("function"),Gt=da("number"),_t=function(){},zi=function(e,r){return function(){for(var a=[],o=0;o<arguments.length;o++)a[o]=arguments[o];return e(r.apply(null,a))}},re=function(e,r){return function(a){return e(r(a))}},Se=function(e){return function(){return e}},Xe=function(e){return e},$t=function(e,r){return e===r};function Pe(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];var l=r.concat(o);return e.apply(null,l)}}var ur=function(e){return function(r){return!e(r)}},G=function(e){return function(){throw new Error(e)}},C=function(e){return e()},Le=function(e){e()},ot=Se(!1),Mt=Se(!0),mn=function(){return sa},sa=function(){var e=function(o){return o()},r=Xe,a={fold:function(o,u){return o()},isSome:ot,isNone:Mt,getOr:r,getOrThunk:e,getOrDie:function(o){throw new Error(o||"error: getOrDie called on none.")},getOrNull:Se(null),getOrUndefined:Se(void 0),or:r,orThunk:e,map:mn,each:_t,bind:mn,exists:ot,forall:Mt,filter:function(){return mn()},toArray:function(){return[]},toString:Se("none()")};return a}(),jr=function(e){var r=Se(e),a=function(){return u},o=function(l){return l(e)},u={fold:function(l,m){return m(e)},isSome:Mt,isNone:ot,getOr:r,getOrThunk:r,getOrDie:r,getOrNull:r,getOrUndefined:r,or:a,orThunk:a,map:function(l){return jr(l(e))},each:function(l){l(e)},bind:o,exists:o,forall:o,filter:function(l){return l(e)?u:sa},toArray:function(){return[e]},toString:function(){return"some("+e+")"}};return u},zn=function(e){return e==null?sa:jr(e)},X={some:jr,none:mn,from:zn},Ln=Array.prototype.slice,je=Array.prototype.indexOf,Pt=Array.prototype.push,ya=function(e,r){return je.call(e,r)},Ma=function(e,r){var a=ya(e,r);return a===-1?X.none():X.some(a)},Vt=function(e,r){return ya(e,r)>-1},Wr=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];if(r(u,a))return!0}return!1},Cr=function(e,r){for(var a=e.length,o=new Array(a),u=0;u<a;u++){var l=e[u];o[u]=r(l,u)}return o},ct=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];r(u,a)}},Hr=function(e,r){for(var a=e.length-1;a>=0;a--){var o=e[a];r(o,a)}},Xa=function(e,r){for(var a=[],o=[],u=0,l=e.length;u<l;u++){var m=e[u],p=r(m,u)?a:o;p.push(m)}return{pass:a,fail:o}},tr=function(e,r){for(var a=[],o=0,u=e.length;o<u;o++){var l=e[o];r(l,o)&&a.push(l)}return a},Fn=function(e,r,a){return Hr(e,function(o,u){a=r(a,o,u)}),a},Xn=function(e,r,a){return ct(e,function(o,u){a=r(a,o,u)}),a},Ja=function(e,r,a){for(var o=0,u=e.length;o<u;o++){var l=e[o];if(r(l,o))return X.some(l);if(a(l,o))break}return X.none()},ma=function(e,r){return Ja(e,r,ot)},ml=function(e,r){for(var a=0,o=e.length;a<o;a++){var u=e[a];if(r(u,a))return X.some(a)}return X.none()},$u=function(e){for(var r=[],a=0,o=e.length;a<o;++a){if(!ta(e[a]))throw new Error("Arr.flatten item "+a+" was not an array, input: "+e);Pt.apply(r,e[a])}return r},Nu=function(e,r){return $u(Cr(e,r))},Bo=function(e,r){for(var a=0,o=e.length;a<o;++a){var u=e[a];if(r(u,a)!==!0)return!1}return!0},Za=function(e){var r=Ln.call(e,0);return r.reverse(),r},Lu=function(e,r){return tr(e,function(a){return!Vt(r,a)})},Io=function(e,r){for(var a={},o=0,u=e.length;o<u;o++){var l=e[o];a[String(l)]=r(l,o)}return a},Ba=function(e,r){var a=Ln.call(e,0);return a.sort(r),a},Jn=function(e,r){return r>=0&&r<e.length?X.some(e[r]):X.none()},Qa=function(e){return Jn(e,0)},Zn=function(e){return Jn(e,e.length-1)},xn=Xt(Array.from)?Array.from:function(e){return Ln.call(e)},Di=function(e,r){for(var a=0;a<e.length;a++){var o=r(e[a],a);if(o.isSome())return o}return X.none()},Fo=Object.keys,qi=Object.hasOwnProperty,oa=function(e,r){for(var a=Fo(e),o=0,u=a.length;o<u;o++){var l=a[o],m=e[l];r(m,l)}},Hu=function(e,r){return Vu(e,function(a,o){return{k:o,v:r(a,o)}})},Vu=function(e,r){var a={};return oa(e,function(o,u){var l=r(o,u);a[l.k]=l.v}),a},uo=function(e){return function(r,a){e[a]=r}},Yt=function(e,r,a,o){var u={};return oa(e,function(l,m){(r(l,m)?a:o)(l,m)}),u},hn=function(e,r){var a={},o={};return Yt(e,r,uo(a),uo(o)),{t:a,f:o}},Ta=function(e,r){var a={};return Yt(e,r,uo(a),_t),a},iu=function(e,r){var a=[];return oa(e,function(o,u){a.push(r(o,u))}),a},$f=function(e){return iu(e,Xe)},ra=function(e,r){return $r(e,r)?X.from(e[r]):X.none()},$r=function(e,r){return qi.call(e,r)},ou=function(e,r){return $r(e,r)&&e[r]!==void 0&&e[r]!==null},Xl=function(e,r,a){return a===void 0&&(a=Ft),Nr(a).eq(e,r)},hl=Array.isArray,$o=function(e){if(hl(e))return e;for(var r=[],a=0,o=e.length;a<o;a++)r[a]=e[a];return r},Ms=function(e,r,a){var o,u;if(!e)return!1;if(a=a||e,e.length!==void 0){for(o=0,u=e.length;o<u;o++)if(r.call(a,e[o],o,e)===!1)return!1}else for(o in e)if($r(e,o)&&r.call(a,e[o],o,e)===!1)return!1;return!0},Jl=function(e,r){var a=[];return Ms(e,function(o,u){a.push(r(o,u,e))}),a},cs=function(e,r){var a=[];return Ms(e,function(o,u){(!r||r(o,u,e))&&a.push(o)}),a},_u=function(e,r){if(e){for(var a=0,o=e.length;a<o;a++)if(e[a]===r)return a}return-1},gl=function(e,r,a,o){for(var u=bt(a)?e[0]:a,l=0;l<e.length;l++)u=r.call(o,u,e[l],l);return u},_n=function(e,r,a){var o,u;for(o=0,u=e.length;o<u;o++)if(r.call(a,e[o],o,e))return o;return-1},ju=function(e){return e[e.length-1]},rr=function(){return rr=Object.assign||function(r){for(var a,o=1,u=arguments.length;o<u;o++){a=arguments[o];for(var l in a)Object.prototype.hasOwnProperty.call(a,l)&&(r[l]=a[l])}return r},rr.apply(this,arguments)};function Nf(e,r){var a={};for(var o in e)Object.prototype.hasOwnProperty.call(e,o)&&r.indexOf(o)<0&&(a[o]=e[o]);if(e!=null&&typeof Object.getOwnPropertySymbols=="function")for(var u=0,o=Object.getOwnPropertySymbols(e);u<o.length;u++)r.indexOf(o[u])<0&&Object.prototype.propertyIsEnumerable.call(e,o[u])&&(a[o[u]]=e[o[u]]);return a}function No(e,r,a){if(a||arguments.length===2)for(var o=0,u=r.length,l;o<u;o++)(l||!(o in r))&&(l||(l=Array.prototype.slice.call(r,0,o)),l[o]=r[o]);return e.concat(l||Array.prototype.slice.call(r))}var Bs=function(e){var r=!1,a;return function(){for(var o=[],u=0;u<arguments.length;u++)o[u]=arguments[u];return r||(r=!0,a=e.apply(null,o)),a}},Lo=function(e,r,a,o){var u=e.isiOS()&&/ipad/i.test(a)===!0,l=e.isiOS()&&!u,m=e.isiOS()||e.isAndroid(),p=m||o("(pointer:coarse)"),b=u||!l&&m&&o("(min-device-width:768px)"),T=l||m&&!b,R=r.isSafari()&&e.isiOS()&&/safari/i.test(a)===!1,B=!T&&!b&&!R;return{isiPad:Se(u),isiPhone:Se(l),isTablet:Se(b),isPhone:Se(T),isTouch:Se(p),isAndroid:e.isAndroid,isiOS:e.isiOS,isWebView:Se(R),isDesktop:Se(B)}},fs=function(e,r){for(var a=0;a<e.length;a++){var o=e[a];if(o.test(r))return o}},Tv=function(e,r){var a=fs(e,r);if(!a)return{major:0,minor:0};var o=function(u){return Number(r.replace(a,"$"+u))};return so(o(1),o(2))},qu=function(e,r){var a=String(r).toLowerCase();return e.length===0?Is():Tv(e,a)},Is=function(){return so(0,0)},so=function(e,r){return{major:e,minor:r}},Ho={nu:so,detect:qu,unknown:Is},yt=function(e,r){return Di(r.brands,function(a){var o=a.brand.toLowerCase();return ma(e,function(u){var l;return o===((l=u.brand)===null||l===void 0?void 0:l.toLowerCase())}).map(function(u){return{current:u.name,version:Ho.nu(parseInt(a.version,10),0)}})})},Ic=function(e,r){var a=String(r).toLowerCase();return ma(e,function(o){return o.search(a)})},Zl=function(e,r){return Ic(e,r).map(function(a){var o=Ho.detect(a.versionRegexes,r);return{current:a.name,version:o}})},pl=function(e,r){return Ic(e,r).map(function(a){var o=Ho.detect(a.versionRegexes,r);return{current:a.name,version:o}})},Fc=function(e,r){return e.substring(r)},_o=function(e,r,a){return r===""||e.length>=r.length&&e.substr(a,a+r.length)===r},Lf=function(e,r){return Pa(e,r)?Fc(e,r.length):e},Ia=function(e,r){return e.indexOf(r)!==-1},Pa=function(e,r){return _o(e,r,0)},Vo=function(e){return function(r){return r.replace(e,"")}},wo=Vo(/^\s+|\s+$/g),Ql=Vo(/^\s+/g),Co=Vo(/\s+$/g),Uu=function(e){return e.length>0},ec=function(e){return!Uu(e)},bl=/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,yi=function(e){return function(r){return Ia(r,e)}},tc=[{name:"Edge",versionRegexes:[/.*?edge\/ ?([0-9]+)\.([0-9]+)$/],search:function(e){return Ia(e,"edge/")&&Ia(e,"chrome")&&Ia(e,"safari")&&Ia(e,"applewebkit")}},{name:"Chrome",brand:"Chromium",versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/,bl],search:function(e){return Ia(e,"chrome")&&!Ia(e,"chromeframe")}},{name:"IE",versionRegexes:[/.*?msie\ ?([0-9]+)\.([0-9]+).*/,/.*?rv:([0-9]+)\.([0-9]+).*/],search:function(e){return Ia(e,"msie")||Ia(e,"trident")}},{name:"Opera",versionRegexes:[bl,/.*?opera\/([0-9]+)\.([0-9]+).*/],search:yi("opera")},{name:"Firefox",versionRegexes:[/.*?firefox\/\ ?([0-9]+)\.([0-9]+).*/],search:yi("firefox")},{name:"Safari",versionRegexes:[bl,/.*?cpu os ([0-9]+)_([0-9]+).*/],search:function(e){return(Ia(e,"safari")||Ia(e,"mobile/"))&&Ia(e,"applewebkit")}}],yl=[{name:"Windows",search:yi("win"),versionRegexes:[/.*?windows\ nt\ ?([0-9]+)\.([0-9]+).*/]},{name:"iOS",search:function(e){return Ia(e,"iphone")||Ia(e,"ipad")},versionRegexes:[/.*?version\/\ ?([0-9]+)\.([0-9]+).*/,/.*cpu os ([0-9]+)_([0-9]+).*/,/.*cpu iphone os ([0-9]+)_([0-9]+).*/]},{name:"Android",search:yi("android"),versionRegexes:[/.*?android\ ?([0-9]+)\.([0-9]+).*/]},{name:"OSX",search:yi("mac os x"),versionRegexes:[/.*?mac\ os\ x\ ?([0-9]+)_([0-9]+).*/]},{name:"Linux",search:yi("linux"),versionRegexes:[]},{name:"Solaris",search:yi("sunos"),versionRegexes:[]},{name:"FreeBSD",search:yi("freebsd"),versionRegexes:[]},{name:"ChromeOS",search:yi("cros"),versionRegexes:[/.*?chrome\/([0-9]+)\.([0-9]+).*/]}],Wu={browsers:Se(tc),oses:Se(yl)},rc="Edge",Fs="Chrome",Gu="IE",xl="Opera",uu="Firefox",xa="Safari",su=function(){return vs({current:void 0,version:Ho.unknown()})},vs=function(e){var r=e.current,a=e.version,o=function(u){return function(){return r===u}};return{current:r,version:a,isEdge:o(rc),isChrome:o(Fs),isIE:o(Gu),isOpera:o(xl),isFirefox:o(uu),isSafari:o(xa)}},ko={unknown:su,nu:vs,edge:Se(rc),chrome:Se(Fs),ie:Se(Gu),opera:Se(xl),firefox:Se(uu),safari:Se(xa)},Pi="Windows",_l="iOS",$s="Android",ds="Linux",wl="OSX",$c="Solaris",Ku="FreeBSD",Nc="ChromeOS",Cl=function(){return nc({current:void 0,version:Ho.unknown()})},nc=function(e){var r=e.current,a=e.version,o=function(u){return function(){return r===u}};return{current:r,version:a,isWindows:o(Pi),isiOS:o(_l),isAndroid:o($s),isOSX:o(wl),isLinux:o(ds),isSolaris:o($c),isFreeBSD:o(Ku),isChromeOS:o(Nc)}},V={unknown:Cl,nu:nc,windows:Se(Pi),ios:Se(_l),android:Se($s),linux:Se(ds),osx:Se(wl),solaris:Se($c),freebsd:Se(Ku),chromeos:Se(Nc)},le=function(e,r,a){var o=Wu.browsers(),u=Wu.oses(),l=r.bind(function(b){return yt(o,b)}).orThunk(function(){return Zl(o,e)}).fold(ko.unknown,ko.nu),m=pl(u,e).fold(V.unknown,V.nu),p=Lo(m,l,e,a);return{browser:l,os:m,deviceType:p}},ye={detect:le},$e=function(e){return window.matchMedia(e).matches},st=Bs(function(){return ye.detect(navigator.userAgent,X.from(navigator.userAgentData),$e)}),Ht=function(){return st()},fn=navigator.userAgent,Tn=Ht(),Or=Tn.browser,kr=Tn.os,Rr=Tn.deviceType,Ns=/WebKit/.test(fn)&&!Or.isEdge(),Ov="FormData"in window&&"FileReader"in window&&"URL"in window&&!!URL.createObjectURL,Ev=fn.indexOf("Windows Phone")!==-1,Jt={opera:Or.isOpera(),webkit:Ns,ie:Or.isIE()||Or.isEdge()?Or.version.major:!1,gecko:Or.isFirefox(),mac:kr.isOSX()||kr.isiOS(),iOS:Rr.isiPad()||Rr.isiPhone(),android:kr.isAndroid(),contentEditable:!0,transparentSrc:"data:image/gif;base64,R0lGODlhAQABAIAAAAAAAP///yH5BAEAAAAALAAAAAABAAEAAAIBRAA7",caretAfter:!0,range:window.getSelection&&"Range"in window,documentMode:Or.isIE()?document.documentMode||7:10,fileApi:Ov,ceFalse:!0,cacheSuffix:null,container:null,experimentalShadowDom:!1,canHaveCSP:!Or.isIE(),desktop:Rr.isDesktop(),windowsPhone:Ev,browser:{current:Or.current,version:Or.version,isChrome:Or.isChrome,isEdge:Or.isEdge,isFirefox:Or.isFirefox,isIE:Or.isIE,isOpera:Or.isOpera,isSafari:Or.isSafari},os:{current:kr.current,version:kr.version,isAndroid:kr.isAndroid,isChromeOS:kr.isChromeOS,isFreeBSD:kr.isFreeBSD,isiOS:kr.isiOS,isLinux:kr.isLinux,isOSX:kr.isOSX,isSolaris:kr.isSolaris,isWindows:kr.isWindows},deviceType:{isDesktop:Rr.isDesktop,isiPad:Rr.isiPad,isiPhone:Rr.isiPhone,isPhone:Rr.isPhone,isTablet:Rr.isTablet,isTouch:Rr.isTouch,isWebView:Rr.isWebView}},Hf=/^\s*|\s*$/g,Av=function(e){return e==null?"":(""+e).replace(Hf,"")},Yu=function(e,r){return r?r==="array"&&hl(e)?!0:typeof e===r:e!==void 0},dd=function(e,r,a){var o;for(e=e||[],r=r||",",typeof e=="string"&&(e=e.split(r)),a=a||{},o=e.length;o--;)a[e[o]]={};return a},Ri=$r,zv=function(e,r,a){var o=this,u,l,m,p=0;e=/^((static) )?([\w.]+)(:([\w.]+))?/.exec(e);var b=e[3].match(/(^|\.)(\w+)$/i)[2],T=o.createNS(e[3].replace(/\.\w+$/,""),a);if(!T[b]){if(e[2]==="static"){T[b]=r,this.onCreate&&this.onCreate(e[2],e[3],T[b]);return}r[b]||(r[b]=function(){},p=1),T[b]=r[b],o.extend(T[b].prototype,r),e[5]&&(u=o.resolve(e[5]).prototype,l=e[5].match(/\.(\w+)$/i)[1],m=T[b],p?T[b]=function(){return u[l].apply(this,arguments)}:T[b]=function(){return this.parent=u[l],m.apply(this,arguments)},T[b].prototype[b]=T[b],o.each(u,function(R,B){T[b].prototype[B]=u[B]}),o.each(r,function(R,B){u[B]?T[b].prototype[B]=function(){return this.parent=u[B],R.apply(this,arguments)}:B!==b&&(T[b].prototype[B]=R)})),o.each(r.static,function(R,B){T[b][B]=R})}},Hn=function(e){for(var r=[],a=1;a<arguments.length;a++)r[a-1]=arguments[a];for(var o=0;o<r.length;o++){var u=r[o];for(var l in u)if($r(u,l)){var m=u[l];m!==void 0&&(e[l]=m)}}return e},Lc=function(e,r,a,o){o=o||this,e&&(a&&(e=e[a]),Ms(e,function(u,l){if(r.call(o,u,l,a)===!1)return!1;Lc(u,r,a,o)}))},Dv=function(e,r){var a,o;for(r=r||window,e=e.split("."),a=0;a<e.length;a++)o=e[a],r[o]||(r[o]={}),r=r[o];return r},Va=function(e,r){var a,o;for(r=r||window,e=e.split("."),a=0,o=e.length;a<o&&(r=r[e[a]],!!r);a++);return r},lo=function(e,r){return!e||Yu(e,"array")?e:Jl(e.split(r||","),Av)},Hc=function(e){var r=Jt.cacheSuffix;return r&&(e+=(e.indexOf("?")===-1?"?":"&")+r),e},Ie={trim:Av,isArray:hl,is:Yu,toArray:$o,makeMap:dd,each:Ms,map:Jl,grep:cs,inArray:_u,hasOwn:Ri,extend:Hn,create:zv,walk:Lc,createNS:Dv,resolve:Va,explode:lo,_addCacheSuffix:Hc},ac=function(e,r){var a=r||document,o=a.createElement("div");if(o.innerHTML=e,!o.hasChildNodes()||o.childNodes.length>1)throw console.error("HTML does not have a single root node",e),new Error("HTML must have a single root node");return _i(o.childNodes[0])},xi=function(e,r){var a=r||document,o=a.createElement(e);return _i(o)},Pv=function(e,r){var a=r||document,o=a.createTextNode(e);return _i(o)},_i=function(e){if(e==null)throw new Error("Node cannot be null or undefined");return{dom:e}},z=function(e,r,a){return X.from(e.dom.elementFromPoint(r,a)).map(_i)},D={fromHtml:ac,fromTag:xi,fromText:Pv,fromDom:_i,fromPoint:z},ne=function(e,r){var a=[],o=function(l){return a.push(l),r(l)},u=r(e);do u=u.bind(o);while(u.isSome());return a},ze=function(e,r,a){return(e.compareDocumentPosition(r)&a)!==0},wt=function(e,r){return ze(e,r,Node.DOCUMENT_POSITION_CONTAINED_BY)},gr=8,on=9,vn=11,Mi=1,si=3,li=function(e,r){var a=e.dom;if(a.nodeType!==Mi)return!1;var o=a;if(o.matches!==void 0)return o.matches(r);if(o.msMatchesSelector!==void 0)return o.msMatchesSelector(r);if(o.webkitMatchesSelector!==void 0)return o.webkitMatchesSelector(r);if(o.mozMatchesSelector!==void 0)return o.mozMatchesSelector(r);throw new Error("Browser lacks native selectors")},Ls=function(e){return e.nodeType!==Mi&&e.nodeType!==on&&e.nodeType!==vn||e.childElementCount===0},md=function(e,r){var a=r===void 0?document:r.dom;return Ls(a)?[]:Cr(a.querySelectorAll(e),D.fromDom)},km=function(e,r){var a=r===void 0?document:r.dom;return Ls(a)?X.none():X.from(a.querySelector(e)).map(D.fromDom)},Vn=function(e,r){return e.dom===r.dom},hd=function(e,r){var a=e.dom,o=r.dom;return a===o?!1:a.contains(o)},ha=function(e,r){return wt(e.dom,r.dom)},Fa=function(e,r){return Ht().browser.isIE()?ha(e,r):hd(e,r)};typeof window<"u"||Function("return this;")();var ja=function(e){var r=e.dom.nodeName;return r.toLowerCase()},Rv=function(e){return e.dom.nodeType},Er=function(e){return function(r){return Rv(r)===e}},Sm=function(e){return Rv(e)===gr||ja(e)==="#comment"},la=Er(Mi),$a=Er(si),Ah=Er(on),ci=Er(vn),Mv=function(e){return function(r){return la(r)&&ja(r)===e}},gd=function(e){return D.fromDom(e.dom.ownerDocument)},pr=function(e){return Ah(e)?e:gd(e)},Ui=function(e){return D.fromDom(pr(e).dom.documentElement)},Hs=function(e){return D.fromDom(pr(e).dom.defaultView)},_a=function(e){return X.from(e.dom.parentNode).map(D.fromDom)},Tm=function(e,r){for(var a=Xt(r)?r:ot,o=e.dom,u=[];o.parentNode!==null&&o.parentNode!==void 0;){var l=o.parentNode,m=D.fromDom(l);if(u.push(m),a(m)===!0)break;o=l}return u},wi=function(e){var r=function(a){return tr(a,function(o){return!Vn(e,o)})};return _a(e).map(jo).map(r).getOr([])},Vc=function(e){return X.from(e.dom.previousSibling).map(D.fromDom)},Vf=function(e){return X.from(e.dom.nextSibling).map(D.fromDom)},jn=function(e){return Za(ne(e,Vc))},jc=function(e){return ne(e,Vf)},jo=function(e){return Cr(e.dom.childNodes,D.fromDom)},Xu=function(e,r){var a=e.dom.childNodes;return X.from(a[r]).map(D.fromDom)},fi=function(e){return Xu(e,0)},Ju=function(e){return Xu(e,e.dom.childNodes.length-1)},pd=function(e){return e.dom.childNodes.length},ic=function(e){var r=e.dom.head;if(r==null)throw new Error("Head is not available yet");return D.fromDom(r)},gn=function(e){return ci(e)&&vr(e.dom.host)},kl=Xt(Element.prototype.attachShadow)&&Xt(Node.prototype.getRootNode),qc=Se(kl),qo=kl?function(e){return D.fromDom(e.dom.getRootNode())}:pr,Uc=function(e){return gn(e)?e:ic(pr(e))},Sl=function(e){var r=qo(e);return gn(r)?X.some(r):X.none()},Zu=function(e){return D.fromDom(e.dom.host)},co=function(e){if(qc()&&vr(e.target)){var r=D.fromDom(e.target);if(la(r)&&oc(r)&&e.composed&&e.composedPath){var a=e.composedPath();if(a)return Qa(a)}}return X.from(e.target)},oc=function(e){return vr(e.dom.shadowRoot)},ms=function(e,r){var a=_a(e);a.each(function(o){o.dom.insertBefore(r.dom,e.dom)})},jf=function(e,r){var a=Vf(e);a.fold(function(){var o=_a(e);o.each(function(u){Wi(u,r)})},function(o){ms(o,r)})},Om=function(e,r){var a=fi(e);a.fold(function(){Wi(e,r)},function(o){e.dom.insertBefore(r.dom,o.dom)})},Wi=function(e,r){e.dom.appendChild(r.dom)},Tl=function(e,r){ms(e,r),Wi(r,e)},Ce=function(e,r){ct(r,function(a){ms(e,a)})},nt=function(e,r){ct(r,function(a){Wi(e,a)})},Ge=function(e){e.dom.textContent="",ct(jo(e),function(r){Rt(r)})},Rt=function(e){var r=e.dom;r.parentNode!==null&&r.parentNode.removeChild(r)},qr=function(e){var r=jo(e);r.length>0&&Ce(e,r),Rt(e)},Dn=function(e){var r=$a(e)?e.dom.parentNode:e.dom;if(r==null||r.ownerDocument===null)return!1;var a=r.ownerDocument;return Sl(D.fromDom(r)).fold(function(){return a.body.contains(r)},re(Dn,Zu))},na=function(e,r){var a=function(o,u){return na(e+o,r+u)};return{left:e,top:r,translate:a}},qn=na,Em=function(e){var r=e.getBoundingClientRect();return qn(r.left,r.top)},Wc=function(e,r){return e!==void 0?e:r!==void 0?r:0},Uo=function(e){var r=e.dom.ownerDocument,a=r.body,o=r.defaultView,u=r.documentElement;if(a===e.dom)return qn(a.offsetLeft,a.offsetTop);var l=Wc(o==null?void 0:o.pageYOffset,u.scrollTop),m=Wc(o==null?void 0:o.pageXOffset,u.scrollLeft),p=Wc(u.clientTop,a.clientTop),b=Wc(u.clientLeft,a.clientLeft);return wu(e).translate(m-b,l-p)},wu=function(e){var r=e.dom,a=r.ownerDocument,o=a.body;return o===r?qn(o.offsetLeft,o.offsetTop):Dn(e)?Em(r):qn(0,0)},Am=function(e){var r=e!==void 0?e.dom:document,a=r.body.scrollLeft||r.documentElement.scrollLeft,o=r.body.scrollTop||r.documentElement.scrollTop;return qn(a,o)},fo=function(e,r,a){var o=a!==void 0?a.dom:document,u=o.defaultView;u&&u.scrollTo(e,r)},Gc=function(e,r){var a=Ht().browser.isSafari();a&&Xt(e.dom.scrollIntoViewIfNeeded)?e.dom.scrollIntoViewIfNeeded(!1):e.dom.scrollIntoView(r)},bd=function(e){var r=e===void 0?window:e;return Ht().browser.isFirefox()?X.none():X.from(r.visualViewport)},aa=function(e,r,a,o){return{x:e,y:r,width:a,height:o,right:e+a,bottom:r+o}},Bv=function(e){var r=e===void 0?window:e,a=r.document,o=Am(D.fromDom(a));return bd(r).fold(function(){var u=r.document.documentElement,l=u.clientWidth,m=u.clientHeight;return aa(o.left,o.top,l,m)},function(u){return aa(Math.max(u.pageLeft,o.left),Math.max(u.pageTop,o.top),u.width,u.height)})},Kc=function(e){return function(r){return!!r&&r.nodeType===e}},Yc=function(e){return!!e&&!Object.getPrototypeOf(e)},mr=Kc(1),Qu=function(e){var r=e.map(function(a){return a.toLowerCase()});return function(a){if(a&&a.nodeName){var o=a.nodeName.toLowerCase();return Vt(r,o)}return!1}},yd=function(e,r){var a=r.toLowerCase().split(" ");return function(o){if(mr(o))for(var u=0;u<a.length;u++){var l=o.ownerDocument.defaultView.getComputedStyle(o,null),m=l?l.getPropertyValue(e):null;if(m===a[u])return!0}return!1}},Xc=function(e){return function(r){return mr(r)&&r.hasAttribute(e)}},uc=function(e,r){return function(a){return mr(a)&&a.getAttribute(e)===r}},Vs=function(e){return mr(e)&&e.hasAttribute("data-mce-bogus")},vi=function(e){return mr(e)&&e.getAttribute("data-mce-bogus")==="all"},qa=function(e){return mr(e)&&e.tagName==="TABLE"},Ol=function(e){return function(r){return!!(mr(r)&&(r.contentEditable===e||r.getAttribute("data-mce-contenteditable")===e))}},Cu=Qu(["textarea","input"]),Et=Kc(3),sc=Kc(8),Jc=Kc(9),br=Kc(11),wn=Qu(["br"]),zm=Qu(["img"]),js=Ol("true"),ca=Ol("false"),Zc=Qu(["td","th"]),vo=Qu(["video","audio","object","embed"]),Qc=function(e,r,a){return a===void 0&&(a=$t),e.exists(function(o){return a(o,r)})},zh=function(e){for(var r=[],a=function(u){r.push(u)},o=0;o<e.length;o++)e[o].each(a);return r},mo=function(e,r,a){return e.isSome()&&r.isSome()?X.some(a(e.getOrDie(),r.getOrDie())):X.none()},Rp=function(e,r,a,o){return e.isSome()&&r.isSome()&&a.isSome()?X.some(o(e.getOrDie(),r.getOrDie(),a.getOrDie())):X.none()},Mp=function(e,r){return e?X.some(r):X.none()},Gr=function(e){return e.style!==void 0&&Xt(e.style.getPropertyValue)},Gi=function(e,r,a){if(Tr(a)||fr(a)||Gt(a))e.setAttribute(r,a+"");else throw console.error("Invalid call to Attribute.set. Key ",r,":: Value ",a,":: Element ",e),new Error("Attribute value was not simple")},S=function(e,r,a){Gi(e.dom,r,a)},M=function(e,r){var a=e.dom;oa(r,function(o,u){Gi(a,u,o)})},N=function(e,r){var a=e.dom.getAttribute(r);return a===null?void 0:a},ee=function(e,r){return X.from(N(e,r))},ge=function(e,r){var a=e.dom;return a&&a.hasAttribute?a.hasAttribute(r):!1},Me=function(e,r){e.dom.removeAttribute(r)},Nt=function(e){return Xn(e.dom.attributes,function(r,a){return r[a.name]=a.value,r},{})},sr=function(e,r,a){if(!Tr(a))throw console.error("Invalid call to CSS.set. Property ",r,":: Value ",a,":: Element ",e),new Error("CSS value must be a string: "+a);Gr(e)&&e.style.setProperty(r,a)},Vr=function(e,r){var a=e.dom;oa(r,function(o,u){sr(a,u,o)})},zr=function(e,r){var a=e.dom,o=window.getComputedStyle(a),u=o.getPropertyValue(r);return u===""&&!Dn(e)?Un(a,r):u},Un=function(e,r){return Gr(e)?e.style.getPropertyValue(r):""},di=function(e,r){var a=e.dom,o=Un(a,r);return X.from(o).filter(function(u){return u.length>0})},Dh=function(e){var r={},a=e.dom;if(Gr(a))for(var o=0;o<a.style.length;o++){var u=a.style.item(o);r[u]=a.style[u]}return r},qx=function(e){return e.dom.offsetWidth},b0=Ht().browser,y0=function(e){return ma(e,la)},Ux=function(e){return b0.isFirefox()&&ja(e)==="table"?y0(jo(e)).filter(function(r){return ja(r)==="caption"}).bind(function(r){return y0(jc(r)).map(function(a){var o=a.dom.offsetTop,u=r.dom.offsetTop,l=r.dom.offsetHeight;return o<=u?-l:0})}).getOr(0):0},xd=function(e,r){return e.children&&Vt(e.children,r)},Iv=function(e,r,a){var o=0,u=0,l=e.ownerDocument;if(a=a||e,r){if(a===e&&r.getBoundingClientRect&&zr(D.fromDom(e),"position")==="static"){var m=r.getBoundingClientRect();return o=m.left+(l.documentElement.scrollLeft||e.scrollLeft)-l.documentElement.clientLeft,u=m.top+(l.documentElement.scrollTop||e.scrollTop)-l.documentElement.clientTop,{x:o,y:u}}for(var p=r;p&&p!==a&&p.nodeType&&!xd(p,a);){var b=p;o+=b.offsetLeft||0,u+=b.offsetTop||0,p=b.offsetParent}for(p=r.parentNode;p&&p!==a&&p.nodeType&&!xd(p,a);)o-=p.scrollLeft||0,u-=p.scrollTop||0,p=p.parentNode;u+=Ux(D.fromDom(r))}return{x:o,y:u}},Bp={},W={exports:Bp};(function(e,r,a,o){(function(u,l){typeof r=="object"&&typeof a<"u"?a.exports=l():typeof e=="function"&&e.amd?e(l):(u=typeof globalThis<"u"?globalThis:u||self,u.EphoxContactWrapper=l())})(this,function(){var u=typeof globalThis<"u"?globalThis:typeof window<"u"?window:typeof yo<"u"?yo:typeof self<"u"?self:{},l={exports:{}};(function(T){(function(R){var B=setTimeout;function I(){}function j(ue,xe){return function(){ue.apply(xe,arguments)}}function q(ue){if(typeof this!="object")throw new TypeError("Promises must be constructed via new");if(typeof ue!="function")throw new TypeError("not a function");this._state=0,this._handled=!1,this._value=void 0,this._deferreds=[],be(ue,this)}function K(ue,xe){for(;ue._state===3;)ue=ue._value;if(ue._state===0){ue._deferreds.push(xe);return}ue._handled=!0,q._immediateFn(function(){var Re=ue._state===1?xe.onFulfilled:xe.onRejected;if(Re===null){(ue._state===1?Z:ie)(xe.promise,ue._value);return}var tt;try{tt=Re(ue._value)}catch(ar){ie(xe.promise,ar);return}Z(xe.promise,tt)})}function Z(ue,xe){try{if(xe===ue)throw new TypeError("A promise cannot be resolved with itself.");if(xe&&(typeof xe=="object"||typeof xe=="function")){var Re=xe.then;if(xe instanceof q){ue._state=3,ue._value=xe,ae(ue);return}else if(typeof Re=="function"){be(j(Re,xe),ue);return}}ue._state=1,ue._value=xe,ae(ue)}catch(tt){ie(ue,tt)}}function ie(ue,xe){ue._state=2,ue._value=xe,ae(ue)}function ae(ue){ue._state===2&&ue._deferreds.length===0&&q._immediateFn(function(){ue._handled||q._unhandledRejectionFn(ue._value)});for(var xe=0,Re=ue._deferreds.length;xe<Re;xe++)K(ue,ue._deferreds[xe]);ue._deferreds=null}function ce(ue,xe,Re){this.onFulfilled=typeof ue=="function"?ue:null,this.onRejected=typeof xe=="function"?xe:null,this.promise=Re}function be(ue,xe){var Re=!1;try{ue(function(tt){Re||(Re=!0,Z(xe,tt))},function(tt){Re||(Re=!0,ie(xe,tt))})}catch(tt){if(Re)return;Re=!0,ie(xe,tt)}}q.prototype.catch=function(ue){return this.then(null,ue)},q.prototype.then=function(ue,xe){var Re=new this.constructor(I);return K(this,new ce(ue,xe,Re)),Re},q.all=function(ue){var xe=Array.prototype.slice.call(ue);return new q(function(Re,tt){if(xe.length===0)return Re([]);var ar=xe.length;function Ct(lr,at){try{if(at&&(typeof at=="object"||typeof at=="function")){var kt=at.then;if(typeof kt=="function"){kt.call(at,function(Je){Ct(lr,Je)},tt);return}}xe[lr]=at,--ar===0&&Re(xe)}catch(Je){tt(Je)}}for(var Ze=0;Ze<xe.length;Ze++)Ct(Ze,xe[Ze])})},q.resolve=function(ue){return ue&&typeof ue=="object"&&ue.constructor===q?ue:new q(function(xe){xe(ue)})},q.reject=function(ue){return new q(function(xe,Re){Re(ue)})},q.race=function(ue){return new q(function(xe,Re){for(var tt=0,ar=ue.length;tt<ar;tt++)ue[tt].then(xe,Re)})},q._immediateFn=typeof setImmediate=="function"?function(ue){setImmediate(ue)}:function(ue){B(ue,0)},q._unhandledRejectionFn=function(xe){typeof console<"u"&&console&&console.warn("Possible Unhandled Promise Rejection:",xe)},q._setImmediateFn=function(xe){q._immediateFn=xe},q._setUnhandledRejectionFn=function(xe){q._unhandledRejectionFn=xe},T.exports?T.exports=q:R.Promise||(R.Promise=q)})(u)})(l);var m=l.exports,p=function(){return typeof window<"u"?window:Function("return this;")()}(),b={boltExport:p.Promise||m};return b})})(void 0,Bp,W);var qf=W.exports.boltExport,_d=function(e){var r=X.none(),a=[],o=function(T){return _d(function(R){u(function(B){R(T(B))})})},u=function(T){m()?b(T):a.push(T)},l=function(T){m()||(r=X.some(T),p(a),a=[])},m=function(){return r.isSome()},p=function(T){ct(T,b)},b=function(T){r.each(function(R){setTimeout(function(){T(R)},0)})};return e(l),{get:u,map:o,isReady:m}},qs=function(e){return _d(function(r){r(e)})},$n={nu:_d,pure:qs},Wx=function(e){setTimeout(function(){throw e},0)},El=function(e){var r=function(b){e().then(b,Wx)},a=function(b){return El(function(){return e().then(b)})},o=function(b){return El(function(){return e().then(function(T){return b(T).toPromise()})})},u=function(b){return El(function(){return e().then(function(){return b.toPromise()})})},l=function(){return $n.nu(r)},m=function(){var b=null;return El(function(){return b===null&&(b=e()),b})},p=e;return{map:a,bind:o,anonBind:u,toLazy:l,toCached:m,toPromise:p,get:r}},x0=function(e){return El(function(){return new qf(e)})},Fv=function(e){return El(function(){return qf.resolve(e)})},Ip={nu:x0,pure:Fv},Gx=function(e,r){return r(function(a){var o=[],u=0,l=function(m){return function(p){o[m]=p,u++,u>=e.length&&a(o)}};e.length===0?a([]):ct(e,function(m,p){m.get(l(p))})})},Kx=function(e){return Gx(e,Ip.nu)},wd=function(e){var r=function(B){return wd(e)},a=function(B){return wd(e)},o=function(B){return wd(B(e))},u=function(B){return wd(e)},l=function(B){B(e)},m=function(B){return B(e)},p=function(B,I){return I(e)},b=function(B){return B(e)},T=function(B){return B(e)},R=function(){return X.some(e)};return{isValue:Mt,isError:ot,getOr:Se(e),getOrThunk:Se(e),getOrDie:Se(e),or:r,orThunk:a,fold:p,map:o,mapError:u,each:l,bind:m,exists:b,forall:T,toOptional:R}},Dm=function(e){var r=function(T){return T()},a=function(){return G(String(e))()},o=Xe,u=function(T){return T()},l=function(T){return Dm(e)},m=function(T){return Dm(T(e))},p=function(T){return Dm(e)},b=function(T,R){return T(e)};return{isValue:ot,isError:Mt,getOr:Xe,getOrThunk:r,getOrDie:a,or:o,orThunk:u,fold:b,map:l,mapError:m,each:_t,bind:p,exists:ot,forall:Mt,toOptional:X.none}},lc=function(e,r){return e.fold(function(){return Dm(r)},wd)},_0={value:wd,error:Dm,fromOption:lc},es=function(e){if(!ta(e))throw new Error("cases must be an array");if(e.length===0)throw new Error("there must be at least one case");var r=[],a={};return ct(e,function(o,u){var l=Fo(o);if(l.length!==1)throw new Error("one and only one name per case");var m=l[0],p=o[m];if(a[m]!==void 0)throw new Error("duplicate key detected:"+m);if(m==="cata")throw new Error("cannot have a case named cata (sorry)");if(!ta(p))throw new Error("case arguments must be an array");r.push(m),a[m]=function(){for(var b=[],T=0;T<arguments.length;T++)b[T]=arguments[T];var R=b.length;if(R!==p.length)throw new Error("Wrong number of arguments to case "+m+". Expected "+p.length+" ("+p+"), got "+R);var B=function(I){var j=Fo(I);if(r.length!==j.length)throw new Error("Wrong number of arguments to match. Expected: "+r.join(",")+`
34
34
  Actual: `+j.join(","));var q=Bo(r,function(K){return Vt(j,K)});if(!q)throw new Error("Not all branches were specified when using match. Specified: "+j.join(", ")+`
35
35
  Required: `+r.join(", "));return I[m].apply(null,b)};return{fold:function(){for(var I=[],j=0;j<arguments.length;j++)I[j]=arguments[j];if(I.length!==e.length)throw new Error("Wrong number of arguments to fold. Expected "+e.length+", got "+I.length);var q=I[u];return q.apply(null,b)},match:B,log:function(I){console.log(I,{constructors:r,constructor:m,params:b})}}}}),a},Ut={generate:es};Ut.generate([{bothErrors:["error1","error2"]},{firstError:["error1","value2"]},{secondError:["value1","error2"]},{bothValues:["value1","value2"]}]);var ef=function(e){return e.fold(Xe,Xe)};function Fp(e,r,a,o,u){return e(a,o)?X.some(a):Xt(u)&&u(a)?X.none():r(a,o,u)}var hs=function(e,r,a){for(var o=e.dom,u=Xt(a)?a:ot;o.parentNode;){o=o.parentNode;var l=D.fromDom(o);if(r(l))return X.some(l);if(u(l))break}return X.none()},Ph=function(e,r,a){var o=function(u,l){return l(u)};return Fp(o,hs,e,r,a)},$p=function(e,r){var a=e.dom;return a.parentNode?Al(D.fromDom(a.parentNode),function(o){return!Vn(e,o)&&r(o)}):X.none()},Al=function(e,r){var a=function(u){return r(D.fromDom(u))},o=ma(e.dom.childNodes,a);return o.map(D.fromDom)},$v=function(e,r,a){return hs(e,function(o){return li(o,r)},a)},Cd=function(e,r){return km(r,e)},fa=function(e,r,a){var o=function(u,l){return li(u,l)};return Fp(o,$v,e,r,a)},Bi=window.Promise?window.Promise:qf,Pm,Us=function(e,r){for(var a=window.requestAnimationFrame,o=["ms","moz","webkit"],u=function(m){window.setTimeout(m,0)},l=0;l<o.length&&!a;l++)a=window[o[l]+"RequestAnimationFrame"];a||(a=u),a(e,r)},Np=function(e,r){return typeof r!="number"&&(r=0),setTimeout(e,r)},w0=function(e,r){return typeof r!="number"&&(r=1),setInterval(e,r)},Rh=function(e){return clearTimeout(e)},Yx=function(e){return clearInterval(e)},kd=function(e,r){var a,o=function(){for(var u=[],l=0;l<arguments.length;l++)u[l]=arguments[l];clearTimeout(a),a=Np(function(){e.apply(this,u)},r)};return o.stop=function(){clearTimeout(a)},o},Ki={requestAnimationFrame:function(e,r){if(Pm){Pm.then(e);return}Pm=new Bi(function(a){r||(r=document.body),Us(a,r)}).then(e)},setTimeout:Np,setInterval:w0,setEditorTimeout:function(e,r,a){return Np(function(){e.removed||r()},a)},setEditorInterval:function(e,r,a){var o=w0(function(){e.removed?clearInterval(o):r()},a);return o},debounce:kd,throttle:kd,clearInterval:Yx,clearTimeout:Rh},Lp=function(e,r){r===void 0&&(r={});var a=0,o={},u=D.fromDom(e),l=pr(u),m=r.maxLoadTime||5e3,p=function(Z){r.referrerPolicy=Z},b=function(Z){Wi(Uc(u),Z)},T=function(Z){var ie=Uc(u);Cd(ie,"#"+Z).each(Rt)},R=function(Z){return ra(o,Z).getOrThunk(function(){return{id:"mce-u"+a++,passed:[],failed:[],count:0}})},B=function(Z,ie,ae){var ce,be=Ie._addCacheSuffix(Z),ue=R(be);o[be]=ue,ue.count++;var xe=function(at,kt){for(var Je=at.length;Je--;)at[Je]();ue.status=kt,ue.passed=[],ue.failed=[],ce&&(ce.onload=null,ce.onerror=null,ce=null)},Re=function(){return xe(ue.passed,2)},tt=function(){return xe(ue.failed,3)},ar=function(at,kt){at()||(Date.now()-lr<m?Ki.setTimeout(kt):tt())},Ct=function(){ar(function(){for(var at=e.styleSheets,kt=at.length;kt--;){var Je=at[kt],ht=Je.ownerNode;if(ht&&ht.id===ce.id)return Re(),!0}return!1},Ct)};if(ie&&ue.passed.push(ie),ae&&ue.failed.push(ae),ue.status!==1){if(ue.status===2){Re();return}if(ue.status===3){tt();return}ue.status=1;var Ze=D.fromTag("link",l.dom);M(Ze,{rel:"stylesheet",type:"text/css",id:ue.id});var lr=Date.now();r.contentCssCors&&S(Ze,"crossOrigin","anonymous"),r.referrerPolicy&&S(Ze,"referrerpolicy",r.referrerPolicy),ce=Ze.dom,ce.onload=Ct,ce.onerror=tt,b(Ze),S(Ze,"href",be)}},I=function(Z){return Ip.nu(function(ie){B(Z,zi(ie,Se(_0.value(Z))),zi(ie,Se(_0.error(Z))))})},j=function(Z,ie,ae){Kx(Cr(Z,I)).get(function(ce){var be=Xa(ce,function(ue){return ue.isValue()});be.fail.length>0?ae(be.fail.map(ef)):ie(be.pass.map(ef))})},q=function(Z){var ie=Ie._addCacheSuffix(Z);ra(o,ie).each(function(ae){var ce=--ae.count;ce===0&&(delete o[ie],T(ae.id))})},K=function(Z){ct(Z,function(ie){q(ie)})};return{load:B,loadAll:j,unload:q,unloadAll:K,_setReferrerPolicy:p}},Oa=function(){var e=new WeakMap,r=function(a,o){var u=qo(a),l=u.dom;return X.from(e.get(l)).getOrThunk(function(){var m=Lp(l,o);return e.set(l,m),m})};return{forElement:r}},zl=Oa(),Pn=function(){function e(r,a){this.node=r,this.rootNode=a,this.current=this.current.bind(this),this.next=this.next.bind(this),this.prev=this.prev.bind(this),this.prev2=this.prev2.bind(this)}return e.prototype.current=function(){return this.node},e.prototype.next=function(r){return this.node=this.findSibling(this.node,"firstChild","nextSibling",r),this.node},e.prototype.prev=function(r){return this.node=this.findSibling(this.node,"lastChild","previousSibling",r),this.node},e.prototype.prev2=function(r){return this.node=this.findPreviousNode(this.node,"lastChild","previousSibling",r),this.node},e.prototype.findSibling=function(r,a,o,u){var l,m;if(r){if(!u&&r[a])return r[a];if(r!==this.rootNode){if(l=r[o],l)return l;for(m=r.parentNode;m&&m!==this.rootNode;m=m.parentNode)if(l=m[o],l)return l}}},e.prototype.findPreviousNode=function(r,a,o,u){var l,m,p;if(r){if(l=r[o],this.rootNode&&l===this.rootNode)return;if(l){if(!u){for(p=l[a];p;p=p[a])if(!p[a])return p}return l}if(m=r.parentNode,m&&m!==this.rootNode)return m}},e}(),Dl=["article","aside","details","div","dt","figcaption","footer","form","fieldset","header","hgroup","html","main","nav","section","summary","body","p","dl","multicol","dd","figure","address","center","blockquote","h1","h2","h3","h4","h5","h6","listing","xmp","pre","plaintext","menu","dir","ul","ol","li","hr","table","tbody","thead","tfoot","th","tr","td","caption"],lu=["td","th"],Xx=["thead","tbody","tfoot"],mi=["h1","h2","h3","h4","h5","h6","p","div","address","pre","form","blockquote","center","dir","fieldset","header","footer","article","section","hgroup","aside","nav","figure"],cu=["h1","h2","h3","h4","h5","h6"],cc=["li","dd","dt"],He=["ul","ol","dl"],Ii=["pre","script","textarea","style"],ho=function(e){var r;return function(a){return r=r||Io(e,Mt),$r(r,ja(a))}},dr=ho(cu),ts=ho(Dl),C0=function(e){return ja(e)==="table"},Ci=function(e){return la(e)&&!ts(e)},gs=function(e){return la(e)&&ja(e)==="br"},fc=ho(mi),Mh=ho(He),Yi=ho(cc),pn=ho(Xx),Ws=ho(lu),Fi=ho(Ii),Wn=function(e,r,a){return $v(e,r,a).isSome()},Uf="\uFEFF",ei=" ",fu=function(e){return e===Uf},Bh=function(e){return e.replace(/\uFEFF/g,"")},ve=Uf,vu=fu,ti=Bh,Wf=mr,ps=Et,Ea=function(e){return ps(e)&&(e=e.parentNode),Wf(e)&&e.hasAttribute("data-mce-caret")},Qn=function(e){return ps(e)&&vu(e.data)},ku=function(e){return Ea(e)||Qn(e)},Rm=function(e){return e.firstChild!==e.lastChild||!wn(e.firstChild)},Nv=function(e,r){var a=e.ownerDocument,o=a.createTextNode(ve),u=e.parentNode;if(r){var l=e.previousSibling;if(ps(l)){if(ku(l))return l;if(Fh(l))return l.splitText(l.data.length-1)}u.insertBefore(o,e)}else{var l=e.nextSibling;if(ps(l)){if(ku(l))return l;if(Ih(l))return l.splitText(1),l}e.nextSibling?u.insertBefore(o,e.nextSibling):u.appendChild(o)}return o},Zt=function(e){var r=e.container();return Et(r)?r.data.charAt(e.offset())===ve||e.isAtStart()&&Qn(r.previousSibling):!1},Hp=function(e){var r=e.container();return Et(r)?r.data.charAt(e.offset()-1)===ve||e.isAtEnd()&&Qn(r.nextSibling):!1},bs=function(){var e=document.createElement("br");return e.setAttribute("data-mce-bogus","1"),e},Mm=function(e,r,a){var o=r.ownerDocument,u=o.createElement(e);u.setAttribute("data-mce-caret",a?"before":"after"),u.setAttribute("data-mce-bogus","all"),u.appendChild(bs());var l=r.parentNode;return a?l.insertBefore(u,r):r.nextSibling?l.insertBefore(u,r.nextSibling):l.appendChild(u),u},Ih=function(e){return ps(e)&&e.data[0]===ve},Fh=function(e){return ps(e)&&e.data[e.data.length-1]===ve},Vp=function(e){var r=e.getElementsByTagName("br"),a=r[r.length-1];Vs(a)&&a.parentNode.removeChild(a)},$h=function(e){return e&&e.hasAttribute("data-mce-caret")?(Vp(e),e.removeAttribute("data-mce-caret"),e.removeAttribute("data-mce-bogus"),e.removeAttribute("style"),e.removeAttribute("_moz_abspos"),e):null},vc=function(e){return Ea(e.startContainer)},Lv=js,Jx=ca,k0=wn,jp=Et,S0=Qu(["script","style","textarea"]),Bm=Qu(["img","input","textarea","hr","iframe","video","audio","object","embed"]),Nh=Qu(["table"]),qp=ku,Pl=function(e){return qp(e)?!1:jp(e)?!S0(e.parentNode):Bm(e)||k0(e)||Nh(e)||Up(e)},tf=function(e){return mr(e)&&e.getAttribute("unselectable")==="true"},Up=function(e){return tf(e)===!1&&Jx(e)},T0=function(e,r){for(e=e.parentNode;e&&e!==r;e=e.parentNode){if(Up(e))return!1;if(Lv(e))return!0}return!0},O0=function(e){return Up(e)?Xn(xn(e.getElementsByTagName("*")),function(r,a){return r||Lv(a)},!1)!==!0:!1},Zx=function(e){return Bm(e)||O0(e)},ri=function(e,r){return Pl(e)&&T0(e,r)},rf=/^[ \t\r\n]*$/,ys=function(e){return rf.test(e)},Sd=function(e,r){var a=D.fromDom(r),o=D.fromDom(e);return Wn(o,"pre,code",Pe(Vn,a))},Lh=function(e,r){return Et(e)&&ys(e.data)&&Sd(e,r)===!1},Gs=function(e){return mr(e)&&e.nodeName==="A"&&!e.hasAttribute("href")&&(e.hasAttribute("name")||e.hasAttribute("id"))},nf=function(e,r){return Pl(e)&&Lh(e,r)===!1||Gs(e)||bn(e)},bn=Xc("data-mce-bookmark"),Wp=Xc("data-mce-bogus"),Gf=uc("data-mce-bogus","all"),Ks=function(e,r){var a=0;if(nf(e,e))return!1;var o=e.firstChild;if(!o)return!0;var u=new Pn(o,e);do{if(r){if(Gf(o)){o=u.next(!0);continue}if(Wp(o)){o=u.next();continue}}if(wn(o)){a++,o=u.next();continue}if(nf(o,e))return!1;o=u.next()}while(o);return a<=1},$i=function(e,r){return r===void 0&&(r=!0),Ks(e.dom,r)},Hh=function(e){return e.nodeName.toLowerCase()==="span"},E0=function(e,r){return vr(e)&&(nf(e,r)||Ci(D.fromDom(e)))},Wo=function(e,r){var a=new Pn(e,r).prev(!1),o=new Pn(e,r).next(!1),u=bt(a)||E0(a,r),l=bt(o)||E0(o,r);return u&&l},Td=function(e){return Hh(e)&&e.getAttribute("data-mce-type")==="bookmark"},Kf=function(e,r){return Et(e)&&e.data.length>0&&Wo(e,r)},Gp=function(e){return mr(e)?e.childNodes.length>0:!1},Od=function(e){return br(e)||Jc(e)},Vh=function(e,r,a){var o=a||r;if(mr(r)&&Td(r))return r;for(var u=r.childNodes,l=u.length-1;l>=0;l--)Vh(e,u[l],o);if(mr(r)){var m=r.childNodes;m.length===1&&Td(m[0])&&r.parentNode.insertBefore(m[0],r)}return!Od(r)&&!nf(r,o)&&!Gp(r)&&!Kf(r,o)&&e.remove(r),r},xs=Ie.makeMap,Gn=/[&<>\"\u0060\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,Ed=/[<>&\u007E-\uD7FF\uE000-\uFFEF]|[\uD800-\uDBFF][\uDC00-\uDFFF]/g,af=/[<>&\"\']/g,Ad=/&#([a-z0-9]+);?|&([a-z0-9]+);/gi,jh={128:"€",130:"‚",131:"ƒ",132:"„",133:"…",134:"†",135:"‡",136:"ˆ",137:"‰",138:"Š",139:"‹",140:"Œ",142:"Ž",145:"‘",146:"’",147:"“",148:"”",149:"•",150:"–",151:"—",152:"˜",153:"™",154:"š",155:"›",156:"œ",158:"ž",159:"Ÿ"},Su={'"':"&quot;","'":"&#39;","<":"&lt;",">":"&gt;","&":"&amp;","`":"&#96;"},Tu={"&lt;":"<","&gt;":">","&amp;":"&","&quot;":'"',"&apos;":"'"},Hv=function(e){var r=D.fromTag("div").dom;return r.innerHTML=e,r.textContent||r.innerText||e},Yf=function(e,r){var a,o,u,l={};if(e){for(e=e.split(","),r=r||10,a=0;a<e.length;a+=2)o=String.fromCharCode(parseInt(e[a],r)),Su[o]||(u="&"+e[a+1]+";",l[o]=u,l[u]=o);return l}},dc=Yf("50,nbsp,51,iexcl,52,cent,53,pound,54,curren,55,yen,56,brvbar,57,sect,58,uml,59,copy,5a,ordf,5b,laquo,5c,not,5d,shy,5e,reg,5f,macr,5g,deg,5h,plusmn,5i,sup2,5j,sup3,5k,acute,5l,micro,5m,para,5n,middot,5o,cedil,5p,sup1,5q,ordm,5r,raquo,5s,frac14,5t,frac12,5u,frac34,5v,iquest,60,Agrave,61,Aacute,62,Acirc,63,Atilde,64,Auml,65,Aring,66,AElig,67,Ccedil,68,Egrave,69,Eacute,6a,Ecirc,6b,Euml,6c,Igrave,6d,Iacute,6e,Icirc,6f,Iuml,6g,ETH,6h,Ntilde,6i,Ograve,6j,Oacute,6k,Ocirc,6l,Otilde,6m,Ouml,6n,times,6o,Oslash,6p,Ugrave,6q,Uacute,6r,Ucirc,6s,Uuml,6t,Yacute,6u,THORN,6v,szlig,70,agrave,71,aacute,72,acirc,73,atilde,74,auml,75,aring,76,aelig,77,ccedil,78,egrave,79,eacute,7a,ecirc,7b,euml,7c,igrave,7d,iacute,7e,icirc,7f,iuml,7g,eth,7h,ntilde,7i,ograve,7j,oacute,7k,ocirc,7l,otilde,7m,ouml,7n,divide,7o,oslash,7p,ugrave,7q,uacute,7r,ucirc,7s,uuml,7t,yacute,7u,thorn,7v,yuml,ci,fnof,sh,Alpha,si,Beta,sj,Gamma,sk,Delta,sl,Epsilon,sm,Zeta,sn,Eta,so,Theta,sp,Iota,sq,Kappa,sr,Lambda,ss,Mu,st,Nu,su,Xi,sv,Omicron,t0,Pi,t1,Rho,t3,Sigma,t4,Tau,t5,Upsilon,t6,Phi,t7,Chi,t8,Psi,t9,Omega,th,alpha,ti,beta,tj,gamma,tk,delta,tl,epsilon,tm,zeta,tn,eta,to,theta,tp,iota,tq,kappa,tr,lambda,ts,mu,tt,nu,tu,xi,tv,omicron,u0,pi,u1,rho,u2,sigmaf,u3,sigma,u4,tau,u5,upsilon,u6,phi,u7,chi,u8,psi,u9,omega,uh,thetasym,ui,upsih,um,piv,812,bull,816,hellip,81i,prime,81j,Prime,81u,oline,824,frasl,88o,weierp,88h,image,88s,real,892,trade,89l,alefsym,8cg,larr,8ch,uarr,8ci,rarr,8cj,darr,8ck,harr,8dl,crarr,8eg,lArr,8eh,uArr,8ei,rArr,8ej,dArr,8ek,hArr,8g0,forall,8g2,part,8g3,exist,8g5,empty,8g7,nabla,8g8,isin,8g9,notin,8gb,ni,8gf,prod,8gh,sum,8gi,minus,8gn,lowast,8gq,radic,8gt,prop,8gu,infin,8h0,ang,8h7,and,8h8,or,8h9,cap,8ha,cup,8hb,int,8hk,there4,8hs,sim,8i5,cong,8i8,asymp,8j0,ne,8j1,equiv,8j4,le,8j5,ge,8k2,sub,8k3,sup,8k4,nsub,8k6,sube,8k7,supe,8kl,oplus,8kn,otimes,8l5,perp,8m5,sdot,8o8,lceil,8o9,rceil,8oa,lfloor,8ob,rfloor,8p9,lang,8pa,rang,9ea,loz,9j0,spades,9j3,clubs,9j5,hearts,9j6,diams,ai,OElig,aj,oelig,b0,Scaron,b1,scaron,bo,Yuml,m6,circ,ms,tilde,802,ensp,803,emsp,809,thinsp,80c,zwnj,80d,zwj,80e,lrm,80f,rlm,80j,ndash,80k,mdash,80o,lsquo,80p,rsquo,80q,sbquo,80s,ldquo,80t,rdquo,80u,bdquo,810,dagger,811,Dagger,81g,permil,81p,lsaquo,81q,rsaquo,85c,euro",32),Im=function(e,r){return e.replace(r?Gn:Ed,function(a){return Su[a]||a})},mc=function(e){return(""+e).replace(af,function(r){return Su[r]||r})},zd=function(e,r){return e.replace(r?Gn:Ed,function(a){return a.length>1?"&#"+((a.charCodeAt(0)-55296)*1024+(a.charCodeAt(1)-56320)+65536)+";":Su[a]||"&#"+a.charCodeAt(0)+";"})},qh=function(e,r,a){return a=a||dc,e.replace(r?Gn:Ed,function(o){return Su[o]||a[o]||o})},Kp=function(e,r){var a=Yf(r)||dc,o=function(m,p){return m.replace(p?Gn:Ed,function(b){return Su[b]!==void 0?Su[b]:a[b]!==void 0?a[b]:b.length>1?"&#"+((b.charCodeAt(0)-55296)*1024+(b.charCodeAt(1)-56320)+65536)+";":"&#"+b.charCodeAt(0)+";"})},u=function(m,p){return qh(m,p,a)},l=xs(e.replace(/\+/g,","));return l.named&&l.numeric?o:l.named?r?u:qh:l.numeric?zd:Im},Yp=function(e){return e.replace(Ad,function(r,a){return a?(a.charAt(0).toLowerCase()==="x"?a=parseInt(a.substr(1),16):a=parseInt(a,10),a>65535?(a-=65536,String.fromCharCode(55296+(a>>10),56320+(a&1023))):jh[a]||String.fromCharCode(a)):Tu[r]||dc[r]||Hv(r)})},Rl={encodeRaw:Im,encodeAllRaw:mc,encodeNumeric:zd,encodeNamed:qh,getEncodeFunc:Kp,decode:Yp},rs={},Dd={},Ys=Ie.makeMap,So=Ie.each,Fm=Ie.extend,$m=Ie.explode,Ou=Ie.inArray,wa=function(e,r){return e=Ie.trim(e),e?e.split(r||" "):[]},A0=function(e){var r={},a,o,u,l,m,p,b=function(R,B,I){var j,q,K,Z=function(ae,ce){var be={},ue,xe;for(ue=0,xe=ae.length;ue<xe;ue++)be[ae[ue]]=ce||{};return be};I=I||[],B=B||"",typeof I=="string"&&(I=wa(I));var ie=wa(R);for(j=ie.length;j--;)q=wa([a,B].join(" ")),K={attributes:Z(q),attributesOrder:q,children:Z(I,Dd)},r[ie[j]]=K},T=function(R,B){var I,j,q,K,Z=wa(R);I=Z.length;for(var ie=wa(B);I--;)for(j=r[Z[I]],q=0,K=ie.length;q<K;q++)j.attributes[ie[q]]={},j.attributesOrder.push(ie[q])};return rs[e]?rs[e]:(a="id accesskey class dir lang style tabindex title role",o="address blockquote div dl fieldset form h1 h2 h3 h4 h5 h6 hr menu ol p pre table ul",u="a abbr b bdo br button cite code del dfn em embed i iframe img input ins kbd label map noscript object q s samp script select small span strong sub sup textarea u var #text #comment",e!=="html4"&&(a+=" contenteditable contextmenu draggable dropzone hidden spellcheck translate",o+=" article aside details dialog figure main header footer hgroup section nav",u+=" audio canvas command datalist mark meter output picture progress time wbr video ruby bdi keygen"),e!=="html5-strict"&&(a+=" xml:lang",p="acronym applet basefont big font strike tt",u=[u,p].join(" "),So(wa(p),function(R){b(R,"",u)}),m="center dir isindex noframes",o=[o,m].join(" "),l=[o,u].join(" "),So(wa(m),function(R){b(R,"",l)})),l=l||[o,u].join(" "),b("html","manifest","head body"),b("head","","base command link meta noscript script style title"),b("title hr noscript br"),b("base","href target"),b("link","href rel media hreflang type sizes hreflang"),b("meta","name http-equiv content charset"),b("style","media type scoped"),b("script","src async defer type charset"),b("body","onafterprint onbeforeprint onbeforeunload onblur onerror onfocus onhashchange onload onmessage onoffline ononline onpagehide onpageshow onpopstate onresize onscroll onstorage onunload",l),b("address dt dd div caption","",l),b("h1 h2 h3 h4 h5 h6 pre p abbr code var samp kbd sub sup i b u bdo span legend em strong small s cite dfn","",u),b("blockquote","cite",l),b("ol","reversed start type","li"),b("ul","","li"),b("li","value",l),b("dl","","dt dd"),b("a","href target rel media hreflang type",u),b("q","cite",u),b("ins del","cite datetime",l),b("img","src sizes srcset alt usemap ismap width height"),b("iframe","src name width height",l),b("embed","src type width height"),b("object","data type typemustmatch name usemap form width height",[l,"param"].join(" ")),b("param","name value"),b("map","name",[l,"area"].join(" ")),b("area","alt coords shape href target rel media hreflang type"),b("table","border","caption colgroup thead tfoot tbody tr"+(e==="html4"?" col":"")),b("colgroup","span","col"),b("col","span"),b("tbody thead tfoot","","tr"),b("tr","","td th"),b("td","colspan rowspan headers",l),b("th","colspan rowspan headers scope abbr",l),b("form","accept-charset action autocomplete enctype method name novalidate target",l),b("fieldset","disabled form name",[l,"legend"].join(" ")),b("label","form for",u),b("input","accept alt autocomplete checked dirname disabled form formaction formenctype formmethod formnovalidate formtarget height list max maxlength min multiple name pattern readonly required size src step type value width"),b("button","disabled form formaction formenctype formmethod formnovalidate formtarget name type value",e==="html4"?l:u),b("select","disabled form multiple name required size","option optgroup"),b("optgroup","disabled label","option"),b("option","disabled label selected value"),b("textarea","cols dirname disabled form maxlength name readonly required rows wrap"),b("menu","type label",[l,"li"].join(" ")),b("noscript","",l),e!=="html4"&&(b("wbr"),b("ruby","",[u,"rt rp"].join(" ")),b("figcaption","",l),b("mark rt rp summary bdi","",u),b("canvas","width height",l),b("video","src crossorigin poster preload autoplay mediagroup loop muted controls width height buffered",[l,"track source"].join(" ")),b("audio","src crossorigin preload autoplay mediagroup loop muted controls buffered volume",[l,"track source"].join(" ")),b("picture","","img source"),b("source","src srcset type media sizes"),b("track","kind src srclang label default"),b("datalist","",[u,"option"].join(" ")),b("article section nav aside main header footer","",l),b("hgroup","","h1 h2 h3 h4 h5 h6"),b("figure","",[l,"figcaption"].join(" ")),b("time","datetime",u),b("dialog","open",l),b("command","type label icon disabled checked radiogroup command"),b("output","for form name",u),b("progress","value max",u),b("meter","value min max low high optimum",u),b("details","open",[l,"summary"].join(" ")),b("keygen","autofocus challenge disabled form keytype name")),e!=="html5-strict"&&(T("script","language xml:space"),T("style","xml:space"),T("object","declare classid code codebase codetype archive standby align border hspace vspace"),T("embed","align name hspace vspace"),T("param","valuetype type"),T("a","charset name rev shape coords"),T("br","clear"),T("applet","codebase archive code object alt name width height align hspace vspace"),T("img","name longdesc align border hspace vspace"),T("iframe","longdesc frameborder marginwidth marginheight scrolling align"),T("font basefont","size color face"),T("input","usemap align"),T("select"),T("textarea"),T("h1 h2 h3 h4 h5 h6 div p legend caption","align"),T("ul","type compact"),T("li","type"),T("ol dl menu dir","compact"),T("pre","width xml:space"),T("hr","align noshade size width"),T("isindex","prompt"),T("table","summary width frame rules cellspacing cellpadding align bgcolor"),T("col","width align char charoff valign"),T("colgroup","width align char charoff valign"),T("thead","align char charoff valign"),T("tr","align char charoff valign bgcolor"),T("th","axis align char charoff valign nowrap bgcolor width height"),T("form","accept"),T("td","abbr axis scope align char charoff valign nowrap bgcolor width height"),T("tfoot","align char charoff valign"),T("tbody","align char charoff valign"),T("area","nohref"),T("body","background bgcolor text link vlink alink")),e!=="html4"&&(T("input button select textarea","autofocus"),T("input textarea","placeholder"),T("a","download"),T("link script img","crossorigin"),T("img","loading"),T("iframe","sandbox seamless allowfullscreen loading")),So(wa("a form meter progress dfn"),function(R){r[R]&&delete r[R].children[R]}),delete r.caption.children.table,delete r.script,rs[e]=r,r)},Nm=function(e,r){var a;return e&&(a={},typeof e=="string"&&(e={"*":e}),So(e,function(o,u){a[u]=a[u.toUpperCase()]=r==="map"?Ys(o,/[, ]/):$m(o,/[, ]/)})),a},Mr=function(e){var r={},a={},o=[],u={},l={},m=function(Ke,Oe,Qe){var Ae=e[Ke];return Ae?Ae=Ys(Ae,/[, ]/,Ys(Ae.toUpperCase(),/[, ]/)):(Ae=rs[Ke],Ae||(Ae=Ys(Oe," ",Ys(Oe.toUpperCase()," ")),Ae=Fm(Ae,Qe),rs[Ke]=Ae)),Ae};e=e||{};var p=A0(e.schema);e.verify_html===!1&&(e.valid_elements="*[*]");var b=Nm(e.valid_styles),T=Nm(e.invalid_styles,"map"),R=Nm(e.valid_classes,"map"),B=m("whitespace_elements","pre script noscript style textarea video audio iframe object code"),I=m("self_closing_elements","colgroup dd dt li option p td tfoot th thead tr"),j=m("short_ended_elements","area base basefont br col frame hr img input isindex link meta param embed source wbr track"),q=m("boolean_attributes","checked compact declare defer disabled ismap multiple nohref noresize noshade nowrap readonly selected autoplay loop controls"),K="td th iframe video audio object script code",Z=m("non_empty_elements",K+" pre",j),ie=m("move_caret_before_on_enter_elements",K+" table",j),ae=m("text_block_elements","h1 h2 h3 h4 h5 h6 p div address pre form blockquote center dir fieldset header footer article section hgroup aside main nav figure"),ce=m("block_elements","hr table tbody thead tfoot th tr td li ol ul caption dl dt dd noscript menu isindex option datalist select optgroup figcaption details summary",ae),be=m("text_inline_elements","span strong b em i font strike u var cite dfn code mark q sup sub samp");So((e.special||"script noscript iframe noframes noembed title style textarea xmp").split(" "),function(Ke){l[Ke]=new RegExp("</"+Ke+"[^>]*>","gi")});var ue=function(Ke){return new RegExp("^"+Ke.replace(/([?+*])/g,".$1")+"$")},xe=function(Ke){var Oe,Qe,Ae,Bt,gt,or,Lr,pa,nu,Iu,Gl,au,Fu,Vi,zf,bo,Df,Pf,ba=/^([#+\-])?([^\[!\/]+)(?:\/([^\[!]+))?(?:(!?)\[([^\]]+)])?$/,ia=/^([!\-])?(\w+[\\:]:\w+|[^=:<]+)?(?:([=:<])(.*))?$/,ji=/[*?+]/;if(Ke){var Rf=wa(Ke,",");for(r["@"]&&(bo=r["@"].attributes,Df=r["@"].attributesOrder),Oe=0,Qe=Rf.length;Oe<Qe;Oe++)if(gt=ba.exec(Rf[Oe]),gt){if(Vi=gt[1],nu=gt[2],zf=gt[3],pa=gt[5],au={},Fu=[],or={attributes:au,attributesOrder:Fu},Vi==="#"&&(or.paddEmpty=!0),Vi==="-"&&(or.removeEmpty=!0),gt[4]==="!"&&(or.removeEmptyAttrs=!0),bo&&(oa(bo,function(ss,Mc){au[Mc]=ss}),Fu.push.apply(Fu,Df)),pa){for(pa=wa(pa,"|"),Ae=0,Bt=pa.length;Ae<Bt;Ae++)if(gt=ia.exec(pa[Ae]),gt){if(Lr={},Gl=gt[1],Iu=gt[2].replace(/[\\:]:/g,":"),Vi=gt[3],Pf=gt[4],Gl==="!"&&(or.attributesRequired=or.attributesRequired||[],or.attributesRequired.push(Iu),Lr.required=!0),Gl==="-"){delete au[Iu],Fu.splice(Ou(Fu,Iu),1);continue}Vi&&(Vi==="="&&(or.attributesDefault=or.attributesDefault||[],or.attributesDefault.push({name:Iu,value:Pf}),Lr.defaultValue=Pf),Vi===":"&&(or.attributesForced=or.attributesForced||[],or.attributesForced.push({name:Iu,value:Pf}),Lr.forcedValue=Pf),Vi==="<"&&(Lr.validValues=Ys(Pf,"?"))),ji.test(Iu)?(or.attributePatterns=or.attributePatterns||[],Lr.pattern=ue(Iu),or.attributePatterns.push(Lr)):(au[Iu]||Fu.push(Iu),au[Iu]=Lr)}}!bo&&nu==="@"&&(bo=au,Df=Fu),zf&&(or.outputName=nu,r[zf]=or),ji.test(nu)?(or.pattern=ue(nu),o.push(or)):r[nu]=or}}},Re=function(Ke){r={},o=[],xe(Ke),So(p,function(Oe,Qe){a[Qe]=Oe.children})},tt=function(Ke){var Oe=/^(~)?(.+)$/;Ke&&(rs.text_block_elements=rs.block_elements=null,So(wa(Ke,","),function(Qe){var Ae=Oe.exec(Qe),Bt=Ae[1]==="~",gt=Bt?"span":"div",or=Ae[2];if(a[or]=a[gt],u[or]=gt,Bt||(ce[or.toUpperCase()]={},ce[or]={}),!r[or]){var Lr=r[gt];Lr=Fm({},Lr),delete Lr.removeEmptyAttrs,delete Lr.removeEmpty,r[or]=Lr}So(a,function(pa,nu){pa[gt]&&(a[nu]=pa=Fm({},a[nu]),pa[or]=pa[gt])})}))},ar=function(Ke){var Oe=/^([+\-]?)([A-Za-z0-9_\-.\u00b7\u00c0-\u00d6\u00d8-\u00f6\u00f8-\u037d\u037f-\u1fff\u200c-\u200d\u203f-\u2040\u2070-\u218f\u2c00-\u2fef\u3001-\ud7ff\uf900-\ufdcf\ufdf0-\ufffd]+)\[([^\]]+)]$/;rs[e.schema]=null,Ke&&So(wa(Ke,","),function(Qe){var Ae=Oe.exec(Qe),Bt,gt;Ae&&(gt=Ae[1],gt?Bt=a[Ae[2]]:Bt=a[Ae[2]]={"#comment":{}},Bt=a[Ae[2]],So(wa(Ae[3],"|"),function(or){gt==="-"?delete Bt[or]:Bt[or]={}}))})},Ct=function(Ke){var Oe=r[Ke],Qe;if(Oe)return Oe;for(Qe=o.length;Qe--;)if(Oe=o[Qe],Oe.pattern.test(Ke))return Oe};e.valid_elements?Re(e.valid_elements):(So(p,function(Ke,Oe){r[Oe]={attributes:Ke.attributes,attributesOrder:Ke.attributesOrder},a[Oe]=Ke.children}),e.schema!=="html5"&&So(wa("strong/b em/i"),function(Ke){var Oe=wa(Ke,"/");r[Oe[1]].outputName=Oe[0]}),So(wa("ol ul sub sup blockquote span font a table tbody strong em b i"),function(Ke){r[Ke]&&(r[Ke].removeEmpty=!0)}),So(wa("p h1 h2 h3 h4 h5 h6 th td pre div address caption li"),function(Ke){r[Ke].paddEmpty=!0}),So(wa("span"),function(Ke){r[Ke].removeEmptyAttrs=!0})),tt(e.custom_elements),ar(e.valid_children),xe(e.extended_valid_elements),ar("+ol[ul|ol],+ul[ul|ol]"),So({dd:"dl",dt:"dl",li:"ul ol",td:"tr",th:"tr",tr:"tbody thead tfoot",tbody:"table",thead:"table",tfoot:"table",legend:"fieldset",area:"map",param:"video audio object"},function(Ke,Oe){r[Oe]&&(r[Oe].parentsRequired=wa(Ke))}),e.invalid_elements&&So($m(e.invalid_elements),function(Ke){r[Ke]&&delete r[Ke]}),Ct("span")||xe("span[!data-mce-type|*]");var Ze=Se(b),lr=Se(T),at=Se(R),kt=Se(q),Je=Se(ce),ht=Se(ae),It=Se(be),Ve=Se(j),zt=Se(I),Pr=Se(Z),On=Se(ie),nn=Se(B),oi=Se(l),La=function(Ke,Oe){var Qe=a[Ke.toLowerCase()];return!!(Qe&&Qe[Oe.toLowerCase()])},us=function(Ke,Oe){var Qe,Ae,Bt=Ct(Ke);if(Bt)if(Oe){if(Bt.attributes[Oe])return!0;if(Qe=Bt.attributePatterns,Qe){for(Ae=Qe.length;Ae--;)if(Qe[Ae].pattern.test(Ke))return!0}}else return!0;return!1},Rs=Se(u);return{children:a,elements:r,getValidStyles:Ze,getValidClasses:at,getBlockElements:Je,getInvalidStyles:lr,getShortEndedElements:Ve,getTextBlockElements:ht,getTextInlineElements:It,getBoolAttrs:kt,getElementRule:Ct,getSelfClosingElements:zt,getNonEmptyElements:Pr,getMoveCaretBeforeOnEnterElements:On,getWhiteSpaceElements:nn,getSpecialElements:oi,isValidChild:La,isValid:us,getCustomElements:Rs,addValidElements:xe,setValidElements:Re,addCustomElements:tt,addValidChildren:ar}},qt=function(e,r,a,o){var u=function(l){return l=parseInt(l,10).toString(16),l.length>1?l:"0"+l};return"#"+u(r)+u(a)+u(o)},hc=function(e,r){var a=this,o=/rgb\s*\(\s*([0-9]+)\s*,\s*([0-9]+)\s*,\s*([0-9]+)\s*\)/gi,u=/(?:url(?:(?:\(\s*\"([^\"]+)\"\s*\))|(?:\(\s*\'([^\']+)\'\s*\))|(?:\(\s*([^)\s]+)\s*\))))|(?:\'([^\']+)\')|(?:\"([^\"]+)\")/gi,l=/\s*([^:]+):\s*([^;]+);?/g,m=/\s+$/,p,b={},T,R,B=Uf;e=e||{},r&&(T=r.getValidStyles(),R=r.getInvalidStyles());var I=(`\\" \\' \\; \\: ; : `+B).split(" ");for(p=0;p<I.length;p++)b[I[p]]=B+p,b[B+p]=I[p];return{toHex:function(j){return j.replace(o,qt)},parse:function(j){var q={},K,Z,ie,ae,ce=e.url_converter,be=e.url_converter_scope||a,ue=function(at,kt,Je){var ht=q[at+"-top"+kt];if(ht){var It=q[at+"-right"+kt];if(It){var Ve=q[at+"-bottom"+kt];if(Ve){var zt=q[at+"-left"+kt];if(zt){var Pr=[ht,It,Ve,zt];for(p=Pr.length-1;p--&&Pr[p]===Pr[p+1];);p>-1&&Je||(q[at+kt]=p===-1?Pr[0]:Pr.join(" "),delete q[at+"-top"+kt],delete q[at+"-right"+kt],delete q[at+"-bottom"+kt],delete q[at+"-left"+kt])}}}}},xe=function(at){var kt=q[at],Je;if(kt){for(kt=kt.split(" "),Je=kt.length;Je--;)if(kt[Je]!==kt[0])return!1;return q[at]=kt[0],!0}},Re=function(at,kt,Je,ht){xe(kt)&&xe(Je)&&xe(ht)&&(q[at]=q[kt]+" "+q[Je]+" "+q[ht],delete q[kt],delete q[Je],delete q[ht])},tt=function(at){return ae=!0,b[at]},ar=function(at,kt){return ae&&(at=at.replace(/\uFEFF[0-9]/g,function(Je){return b[Je]})),kt||(at=at.replace(/\\([\'\";:])/g,"$1")),at},Ct=function(at){return String.fromCharCode(parseInt(at.slice(1),16))},Ze=function(at){return at.replace(/\\[0-9a-f]+/gi,Ct)},lr=function(at,kt,Je,ht,It,Ve){if(It=It||Ve,It)return It=ar(It),"'"+It.replace(/\'/g,"\\'")+"'";if(kt=ar(kt||Je||ht),!e.allow_script_urls){var zt=kt.replace(/[\s\r\n]+/g,"");if(/(java|vb)script:/i.test(zt)||!e.allow_svg_data_urls&&/^data:image\/svg/i.test(zt))return""}return ce&&(kt=ce.call(be,kt,"style")),"url('"+kt.replace(/\'/g,"\\'")+"')"};if(j){for(j=j.replace(/[\u0000-\u001F]/g,""),j=j.replace(/\\[\"\';:\uFEFF]/g,tt).replace(/\"[^\"]+\"|\'[^\']+\'/g,function(at){return at.replace(/[;:]/g,tt)});K=l.exec(j);)if(l.lastIndex=K.index+K[0].length,Z=K[1].replace(m,"").toLowerCase(),ie=K[2].replace(m,""),Z&&ie){if(Z=Ze(Z),ie=Ze(ie),Z.indexOf(B)!==-1||Z.indexOf('"')!==-1||!e.allow_script_urls&&(Z==="behavior"||/expression\s*\(|\/\*|\*\//.test(ie)))continue;Z==="font-weight"&&ie==="700"?ie="bold":(Z==="color"||Z==="background-color")&&(ie=ie.toLowerCase()),ie=ie.replace(o,qt),ie=ie.replace(u,lr),q[Z]=ae?ar(ie,!0):ie}ue("border","",!0),ue("border","-width"),ue("border","-color"),ue("border","-style"),ue("padding",""),ue("margin",""),Re("border","border-width","border-style","border-color"),q.border==="medium none"&&delete q.border,q["border-image"]==="none"&&delete q["border-image"]}return q},serialize:function(j,q){var K="",Z=function(ae){var ce,be=T[ae];if(be)for(var ue=0,xe=be.length;ue<xe;ue++)ae=be[ue],ce=j[ae],ce&&(K+=(K.length>0?" ":"")+ae+": "+ce+";")},ie=function(ae,ce){var be=R["*"];return be&&be[ae]?!1:(be=R[ce],!(be&&be[ae]))};return q&&T?(Z("*"),Z(q)):oa(j,function(ae,ce){ae&&(!R||ie(ce,q))&&(K+=(K.length>0?" ":"")+ce+": "+ae+";")}),K}}},Uh={keyLocation:!0,layerX:!0,layerY:!0,returnValue:!0,webkitMovementX:!0,webkitMovementY:!0,keyIdentifier:!0,mozPressure:!0},Lm=function(e){return e instanceof Event||Xt(e.initEvent)},Xp=function(e){return e.isDefaultPrevented===Mt||e.isDefaultPrevented===ot},Cn=function(e){return xr(e.preventDefault)||Lm(e)},Pd=function(e,r){var a=r??{};for(var o in e)$r(Uh,o)||(a[o]=e[o]);return vr(a.composedPath)&&(a.composedPath=function(){return e.composedPath()}),a},z0=function(e,r,a,o){var u,l=Pd(r,o);return l.type=e,xr(l.target)&&(l.target=(u=l.srcElement)!==null&&u!==void 0?u:a),Cn(r)&&(l.preventDefault=function(){l.defaultPrevented=!0,l.isDefaultPrevented=Mt,Xt(r.preventDefault)?r.preventDefault():Lm(r)&&(r.returnValue=!1)},l.stopPropagation=function(){l.cancelBubble=!0,l.isPropagationStopped=Mt,Xt(r.stopPropagation)?r.stopPropagation():Lm(r)&&(r.cancelBubble=!0)},l.stopImmediatePropagation=function(){l.isImmediatePropagationStopped=Mt,l.stopPropagation()},Xp(l)||(l.isDefaultPrevented=l.defaultPrevented===!0?Mt:ot,l.isPropagationStopped=l.cancelBubble===!0?Mt:ot,l.isImmediatePropagationStopped=ot)),l},Jp="mce-data-",qe=/^(?:mouse|contextmenu)|click/,Xf=function(e,r,a,o){e.addEventListener?e.addEventListener(r,a,o||!1):e.attachEvent&&e.attachEvent("on"+r,a)},Hm=function(e,r,a,o){e.removeEventListener?e.removeEventListener(r,a,o||!1):e.detachEvent&&e.detachEvent("on"+r,a)},Vv=function(e){return vr(e)&&qe.test(e.type)},Jf=function(e,r){var a=z0(e.type,e,document,r);if(Vv(e)&&bt(e.pageX)&&!bt(e.clientX)){var o=a.target.ownerDocument||document,u=o.documentElement,l=o.body,m=a;m.pageX=e.clientX+(u&&u.scrollLeft||l&&l.scrollLeft||0)-(u&&u.clientLeft||l&&l.clientLeft||0),m.pageY=e.clientY+(u&&u.scrollTop||l&&l.scrollTop||0)-(u&&u.clientTop||l&&l.clientTop||0)}return bt(a.metaKey)&&(a.metaKey=!1),a},of=function(e,r,a){var o=e.document,u={type:"ready"};if(a.domLoaded){r(u);return}var l=function(){return o.readyState==="complete"||o.readyState==="interactive"&&o.body},m=function(){Hm(e,"DOMContentLoaded",m),Hm(e,"load",m),a.domLoaded||(a.domLoaded=!0,r(u)),e=null};l()?m():Xf(e,"DOMContentLoaded",m),a.domLoaded||Xf(e,"load",m)},Zf=function(){function e(){this.domLoaded=!1,this.events={},this.count=1,this.expando=Jp+(+new Date).toString(32),this.hasMouseEnterLeave="onmouseenter"in document.documentElement,this.hasFocusIn="onfocusin"in document.documentElement,this.count=1}return e.prototype.bind=function(r,a,o,u){var l=this,m,p,b,T,R,B,I,j=window,q=function(Z){l.executeHandlers(Jf(Z||j.event),m)};if(!(!r||r.nodeType===3||r.nodeType===8)){r[l.expando]?m=r[l.expando]:(m=l.count++,r[l.expando]=m,l.events[m]={}),u=u||r;var K=a.split(" ");for(b=K.length;b--;){if(T=K[b],B=q,R=I=!1,T==="DOMContentLoaded"&&(T="ready"),l.domLoaded&&T==="ready"&&r.readyState==="complete"){o.call(u,Jf({type:T}));continue}l.hasMouseEnterLeave||(R=l.mouseEnterLeave[T],R&&(B=function(Z){var ie=Z.currentTarget,ae=Z.relatedTarget;if(ae&&ie.contains)ae=ie.contains(ae);else for(;ae&&ae!==ie;)ae=ae.parentNode;ae||(Z=Jf(Z||j.event),Z.type=Z.type==="mouseout"?"mouseleave":"mouseenter",Z.target=ie,l.executeHandlers(Z,m))})),!l.hasFocusIn&&(T==="focusin"||T==="focusout")&&(I=!0,R=T==="focusin"?"focus":"blur",B=function(Z){Z=Jf(Z||j.event),Z.type=Z.type==="focus"?"focusin":"focusout",l.executeHandlers(Z,m)}),p=l.events[m][T],p?T==="ready"&&l.domLoaded?o(Jf({type:T})):p.push({func:o,scope:u}):(l.events[m][T]=p=[{func:o,scope:u}],p.fakeName=R,p.capture=I,p.nativeHandler=B,T==="ready"?of(r,B,l):Xf(r,R||T,B,I))}return r=p=null,o}},e.prototype.unbind=function(r,a,o){var u,l,m,p,b;if(!r||r.nodeType===3||r.nodeType===8)return this;var T=r[this.expando];if(T){if(b=this.events[T],a){var R=a.split(" ");for(l=R.length;l--;)if(p=R[l],u=b[p],u){if(o){for(m=u.length;m--;)if(u[m].func===o){var B=u.nativeHandler,I=u.fakeName,j=u.capture;u=u.slice(0,m).concat(u.slice(m+1)),u.nativeHandler=B,u.fakeName=I,u.capture=j,b[p]=u}}(!o||u.length===0)&&(delete b[p],Hm(r,u.fakeName||p,u.nativeHandler,u.capture))}}else oa(b,function(q,K){Hm(r,q.fakeName||K,q.nativeHandler,q.capture)}),b={};for(p in b)if($r(b,p))return this;delete this.events[T];try{delete r[this.expando]}catch{r[this.expando]=null}}return this},e.prototype.fire=function(r,a,o){var u;if(!r||r.nodeType===3||r.nodeType===8)return this;var l=Jf({type:a,target:r},o);do u=r[this.expando],u&&this.executeHandlers(l,u),r=r.parentNode||r.ownerDocument||r.defaultView||r.parentWindow;while(r&&!l.isPropagationStopped());return this},e.prototype.clean=function(r){var a,o;if(!r||r.nodeType===3||r.nodeType===8)return this;if(r[this.expando]&&this.unbind(r),r.getElementsByTagName||(r=r.document),r&&r.getElementsByTagName)for(this.unbind(r),o=r.getElementsByTagName("*"),a=o.length;a--;)r=o[a],r[this.expando]&&this.unbind(r);return this},e.prototype.destroy=function(){this.events={}},e.prototype.cancel=function(r){return r&&(r.preventDefault(),r.stopImmediatePropagation()),!1},e.prototype.executeHandlers=function(r,a){var o=this.events[a],u=o&&o[r.type];if(u)for(var l=0,m=u.length;l<m;l++){var p=u[l];if(p&&p.func.call(p.scope,r)===!1&&r.preventDefault(),r.isImmediatePropagationStopped())return}},e.Event=new e,e}(),Ra,Kn,gc,Ca,_s,Wh,To,Vm,Ml,pc,uf,ws,Gh,Oo,Go,Qf,Zp,ev,ni="sizzle"+-new Date,We=window.document,Cs=0,Qp=0,tv=Zh(),eb=Zh(),Kh=Zh(),Rd=function(e,r){return e===r&&(pc=!0),0},hi="undefined",jv=1<<31,Qx={}.hasOwnProperty,Xs=[],e_=Xs.pop,D0=Xs.push,bc=Xs.push,Yh=Xs.slice,qv=Xs.indexOf||function(e){for(var r=0,a=this.length;r<a;r++)if(this[r]===e)return r;return-1},yc="checked|selected|async|autofocus|autoplay|controls|defer|disabled|hidden|ismap|loop|multiple|open|readonly|required|scoped",kn="[\\x20\\t\\r\\n\\f]",sf="(?:\\\\.|[\\w-]|[^\\x00-\\xa0])+",jm="\\["+kn+"*("+sf+")(?:"+kn+"*([*^$|!~]?=)"+kn+`*(?:'((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)"|(`+sf+"))|)"+kn+"*\\]",ns=":("+sf+`)(?:\\((('((?:\\\\.|[^\\\\'])*)'|"((?:\\\\.|[^\\\\"])*)")|((?:\\\\.|[^\\\\()[\\]]|`+jm+")*)|.*)\\)|)",Ko=new RegExp("^"+kn+"+|((?:^|[^\\\\])(?:\\\\.)*)"+kn+"+$","g"),t_=new RegExp("^"+kn+"*,"+kn+"*"),qm=new RegExp("^"+kn+"*([>+~]|"+kn+")"+kn+"*"),P0=new RegExp("="+kn+`*([^\\]'"]*?)`+kn+"*\\]","g"),tb=new RegExp(ns),Js=new RegExp("^"+sf+"$"),Xh={ID:new RegExp("^#("+sf+")"),CLASS:new RegExp("^\\.("+sf+")"),TAG:new RegExp("^("+sf+"|[*])"),ATTR:new RegExp("^"+jm),PSEUDO:new RegExp("^"+ns),CHILD:new RegExp("^:(only|first|last|nth|nth-last)-(child|of-type)(?:\\("+kn+"*(even|odd|(([+-]|)(\\d*)n|)"+kn+"*(?:([+-]|)"+kn+"*(\\d+)|))"+kn+"*\\)|)","i"),bool:new RegExp("^(?:"+yc+")$","i"),needsContext:new RegExp("^"+kn+"*[>+~]|:(even|odd|eq|gt|lt|nth|first|last)(?:\\("+kn+"*((?:-\\d)?\\d*)"+kn+"*\\)|)(?=[^-]|$)","i")},r_=/^(?:input|select|textarea|button)$/i,n_=/^h\d$/i,Jh=/^[^{]+\{\s*\[native \w/,R0=/^(?:#([\w-]+)|(\w+)|\.([\w-]+))$/,rb=/[+~]/,Um=/'|\\/g,lf=new RegExp("\\\\([\\da-f]{1,6}"+kn+"?|("+kn+")|.)","ig"),Zs=function(e,r,a){var o="0x"+r-65536;return o!==o||a?r:o<0?String.fromCharCode(o+65536):String.fromCharCode(o>>10|55296,o&1023|56320)};try{bc.apply(Xs=Yh.call(We.childNodes),We.childNodes),Xs[We.childNodes.length].nodeType}catch{bc={apply:Xs.length?function(r,a){D0.apply(r,Yh.call(a))}:function(r,a){for(var o=r.length,u=0;r[o++]=a[u++];);r.length=o-1}}}var Rn=function(e,r,a,o){var u,l,m,p,b,T,R,B,I,j;if((r?r.ownerDocument||r:We)!==ws&&uf(r),r=r||ws,a=a||[],!e||typeof e!="string")return a;if((p=r.nodeType)!==1&&p!==9)return[];if(Oo&&!o){if(u=R0.exec(e))if(m=u[1]){if(p===9)if(l=r.getElementById(m),l&&l.parentNode){if(l.id===m)return a.push(l),a}else return a;else if(r.ownerDocument&&(l=r.ownerDocument.getElementById(m))&&ev(r,l)&&l.id===m)return a.push(l),a}else{if(u[2])return bc.apply(a,r.getElementsByTagName(e)),a;if((m=u[3])&&Ra.getElementsByClassName)return bc.apply(a,r.getElementsByClassName(m)),a}if(Ra.qsa&&(!Go||!Go.test(e))){if(B=R=ni,I=r,j=p===9&&e,p===1&&r.nodeName.toLowerCase()!=="object"){for(T=_s(e),(R=r.getAttribute("id"))?B=R.replace(Um,"\\$&"):r.setAttribute("id",B),B="[id='"+B+"'] ",b=T.length;b--;)T[b]=B+Qh(T[b]);I=rb.test(e)&&cf(r.parentNode)||r,j=T.join(",")}if(j)try{return bc.apply(a,I.querySelectorAll(j)),a}catch{}finally{R||r.removeAttribute("id")}}}return To(e.replace(Ko,"$1"),r,a,o)};function Zh(){var e=[];function r(a,o){return e.push(a+" ")>Kn.cacheLength&&delete r[e.shift()],r[a+" "]=o}return r}function Qs(e){return e[ni]=!0,e}function Wm(e,r){var a=r&&e,o=a&&e.nodeType===1&&r.nodeType===1&&(~r.sourceIndex||jv)-(~e.sourceIndex||jv);if(o)return o;if(a){for(;a=a.nextSibling;)if(a===r)return-1}return e?1:-1}function M0(e){return function(r){var a=r.nodeName.toLowerCase();return a==="input"&&r.type===e}}function xc(e){return function(r){var a=r.nodeName.toLowerCase();return(a==="input"||a==="button")&&r.type===e}}function gi(e){return Qs(function(r){return r=+r,Qs(function(a,o){for(var u,l=e([],a.length,r),m=l.length;m--;)a[u=l[m]]&&(a[u]=!(o[u]=a[u]))})})}function cf(e){return e&&typeof e.getElementsByTagName!==hi&&e}Ra=Rn.support={},Ca=Rn.isXML=function(e){var r=e&&(e.ownerDocument||e).documentElement;return r?r.nodeName!=="HTML":!1},uf=Rn.setDocument=function(e){var r,a=e?e.ownerDocument||e:We,o=a.defaultView;function u(l){try{return l.top}catch{}return null}return a===ws||a.nodeType!==9||!a.documentElement?ws:(ws=a,Gh=a.documentElement,Oo=!Ca(a),o&&o!==u(o)&&(o.addEventListener?o.addEventListener("unload",function(){uf()},!1):o.attachEvent&&o.attachEvent("onunload",function(){uf()})),Ra.attributes=!0,Ra.getElementsByTagName=!0,Ra.getElementsByClassName=Jh.test(a.getElementsByClassName),Ra.getById=!0,Kn.find.ID=function(l,m){if(typeof m.getElementById!==hi&&Oo){var p=m.getElementById(l);return p&&p.parentNode?[p]:[]}},Kn.filter.ID=function(l){var m=l.replace(lf,Zs);return function(p){return p.getAttribute("id")===m}},Kn.find.TAG=Ra.getElementsByTagName?function(l,m){if(typeof m.getElementsByTagName!==hi)return m.getElementsByTagName(l)}:function(l,m){var p,b=[],T=0,R=m.getElementsByTagName(l);if(l==="*"){for(;p=R[T++];)p.nodeType===1&&b.push(p);return b}return R},Kn.find.CLASS=Ra.getElementsByClassName&&function(l,m){if(Oo)return m.getElementsByClassName(l)},Qf=[],Go=[],Ra.disconnectedMatch=!0,Go=Go.length&&new RegExp(Go.join("|")),Qf=Qf.length&&new RegExp(Qf.join("|")),r=Jh.test(Gh.compareDocumentPosition),ev=r||Jh.test(Gh.contains)?function(l,m){var p=l.nodeType===9?l.documentElement:l,b=m&&m.parentNode;return l===b||!!(b&&b.nodeType===1&&(p.contains?p.contains(b):l.compareDocumentPosition&&l.compareDocumentPosition(b)&16))}:function(l,m){if(m){for(;m=m.parentNode;)if(m===l)return!0}return!1},Rd=r?function(l,m){if(l===m)return pc=!0,0;var p=!l.compareDocumentPosition-!m.compareDocumentPosition;return p||(p=(l.ownerDocument||l)===(m.ownerDocument||m)?l.compareDocumentPosition(m):1,p&1||!Ra.sortDetached&&m.compareDocumentPosition(l)===p?l===a||l.ownerDocument===We&&ev(We,l)?-1:m===a||m.ownerDocument===We&&ev(We,m)?1:Ml?qv.call(Ml,l)-qv.call(Ml,m):0:p&4?-1:1)}:function(l,m){if(l===m)return pc=!0,0;var p,b=0,T=l.parentNode,R=m.parentNode,B=[l],I=[m];if(!T||!R)return l===a?-1:m===a?1:T?-1:R?1:Ml?qv.call(Ml,l)-qv.call(Ml,m):0;if(T===R)return Wm(l,m);for(p=l;p=p.parentNode;)B.unshift(p);for(p=m;p=p.parentNode;)I.unshift(p);for(;B[b]===I[b];)b++;return b?Wm(B[b],I[b]):B[b]===We?-1:I[b]===We?1:0},a)},Rn.matches=function(e,r){return Rn(e,null,null,r)},Rn.matchesSelector=function(e,r){if((e.ownerDocument||e)!==ws&&uf(e),r=r.replace(P0,"='$1']"),Ra.matchesSelector&&Oo&&(!Qf||!Qf.test(r))&&(!Go||!Go.test(r)))try{var a=Zp.call(e,r);if(a||Ra.disconnectedMatch||e.document&&e.document.nodeType!==11)return a}catch{}return Rn(r,ws,null,[e]).length>0},Rn.contains=function(e,r){return(e.ownerDocument||e)!==ws&&uf(e),ev(e,r)},Rn.attr=function(e,r){(e.ownerDocument||e)!==ws&&uf(e);var a=Kn.attrHandle[r.toLowerCase()],o=a&&Qx.call(Kn.attrHandle,r.toLowerCase())?a(e,r,!Oo):void 0;return o!==void 0?o:Ra.attributes||!Oo?e.getAttribute(r):(o=e.getAttributeNode(r))&&o.specified?o.value:null},Rn.error=function(e){throw new Error("Syntax error, unrecognized expression: "+e)},Rn.uniqueSort=function(e){var r,a=[],o=0,u=0;if(pc=!Ra.detectDuplicates,Ml=!Ra.sortStable&&e.slice(0),e.sort(Rd),pc){for(;r=e[u++];)r===e[u]&&(o=a.push(u));for(;o--;)e.splice(a[o],1)}return Ml=null,e},gc=Rn.getText=function(e){var r,a="",o=0,u=e.nodeType;if(u){if(u===1||u===9||u===11){if(typeof e.textContent=="string")return e.textContent;for(e=e.firstChild;e;e=e.nextSibling)a+=gc(e)}else if(u===3||u===4)return e.nodeValue}else for(;r=e[o++];)a+=gc(r);return a},Kn=Rn.selectors={cacheLength:50,createPseudo:Qs,match:Xh,attrHandle:{},find:{},relative:{">":{dir:"parentNode",first:!0}," ":{dir:"parentNode"},"+":{dir:"previousSibling",first:!0},"~":{dir:"previousSibling"}},preFilter:{ATTR:function(e){return e[1]=e[1].replace(lf,Zs),e[3]=(e[3]||e[4]||e[5]||"").replace(lf,Zs),e[2]==="~="&&(e[3]=" "+e[3]+" "),e.slice(0,4)},CHILD:function(e){return e[1]=e[1].toLowerCase(),e[1].slice(0,3)==="nth"?(e[3]||Rn.error(e[0]),e[4]=+(e[4]?e[5]+(e[6]||1):2*(e[3]==="even"||e[3]==="odd")),e[5]=+(e[7]+e[8]||e[3]==="odd")):e[3]&&Rn.error(e[0]),e},PSEUDO:function(e){var r,a=!e[6]&&e[2];return Xh.CHILD.test(e[0])?null:(e[3]?e[2]=e[4]||e[5]||"":a&&tb.test(a)&&(r=_s(a,!0))&&(r=a.indexOf(")",a.length-r)-a.length)&&(e[0]=e[0].slice(0,r),e[2]=a.slice(0,r)),e.slice(0,3))}},filter:{TAG:function(e){var r=e.replace(lf,Zs).toLowerCase();return e==="*"?function(){return!0}:function(a){return a.nodeName&&a.nodeName.toLowerCase()===r}},CLASS:function(e){var r=tv[e+" "];return r||(r=new RegExp("(^|"+kn+")"+e+"("+kn+"|$)"))&&tv(e,function(a){return r.test(typeof a.className=="string"&&a.className||typeof a.getAttribute!==hi&&a.getAttribute("class")||"")})},ATTR:function(e,r,a){return function(o){var u=Rn.attr(o,e);return u==null?r==="!=":r?(u+="",r==="="?u===a:r==="!="?u!==a:r==="^="?a&&u.indexOf(a)===0:r==="*="?a&&u.indexOf(a)>-1:r==="$="?a&&u.slice(-a.length)===a:r==="~="?(" "+u+" ").indexOf(a)>-1:r==="|="?u===a||u.slice(0,a.length+1)===a+"-":!1):!0}},CHILD:function(e,r,a,o,u){var l=e.slice(0,3)!=="nth",m=e.slice(-4)!=="last",p=r==="of-type";return o===1&&u===0?function(b){return!!b.parentNode}:function(b,T,R){var B,I,j,q,K,Z,ie=l!==m?"nextSibling":"previousSibling",ae=b.parentNode,ce=p&&b.nodeName.toLowerCase(),be=!R&&!p;if(ae){if(l){for(;ie;){for(j=b;j=j[ie];)if(p?j.nodeName.toLowerCase()===ce:j.nodeType===1)return!1;Z=ie=e==="only"&&!Z&&"nextSibling"}return!0}if(Z=[m?ae.firstChild:ae.lastChild],m&&be){for(I=ae[ni]||(ae[ni]={}),B=I[e]||[],K=B[0]===Cs&&B[1],q=B[0]===Cs&&B[2],j=K&&ae.childNodes[K];j=++K&&j&&j[ie]||(q=K=0)||Z.pop();)if(j.nodeType===1&&++q&&j===b){I[e]=[Cs,K,q];break}}else if(be&&(B=(b[ni]||(b[ni]={}))[e])&&B[0]===Cs)q=B[1];else for(;(j=++K&&j&&j[ie]||(q=K=0)||Z.pop())&&!((p?j.nodeName.toLowerCase()===ce:j.nodeType===1)&&++q&&(be&&((j[ni]||(j[ni]={}))[e]=[Cs,q]),j===b)););return q-=u,q===o||q%o===0&&q/o>=0}}},PSEUDO:function(e,r){var a,o=Kn.pseudos[e]||Kn.setFilters[e.toLowerCase()]||Rn.error("unsupported pseudo: "+e);return o[ni]?o(r):o.length>1?(a=[e,e,"",r],Kn.setFilters.hasOwnProperty(e.toLowerCase())?Qs(function(u,l){for(var m,p=o(u,r),b=p.length;b--;)m=qv.call(u,p[b]),u[m]=!(l[m]=p[b])}):function(u){return o(u,0,a)}):o}},pseudos:{not:Qs(function(e){var r=[],a=[],o=Wh(e.replace(Ko,"$1"));return o[ni]?Qs(function(u,l,m,p){for(var b,T=o(u,null,p,[]),R=u.length;R--;)(b=T[R])&&(u[R]=!(l[R]=b))}):function(u,l,m){return r[0]=u,o(r,null,m,a),r[0]=null,!a.pop()}}),has:Qs(function(e){return function(r){return Rn(e,r).length>0}}),contains:Qs(function(e){return e=e.replace(lf,Zs),function(r){return(r.textContent||r.innerText||gc(r)).indexOf(e)>-1}}),lang:Qs(function(e){return Js.test(e||"")||Rn.error("unsupported lang: "+e),e=e.replace(lf,Zs).toLowerCase(),function(r){var a;do if(a=Oo?r.lang:r.getAttribute("xml:lang")||r.getAttribute("lang"))return a=a.toLowerCase(),a===e||a.indexOf(e+"-")===0;while((r=r.parentNode)&&r.nodeType===1);return!1}}),target:function(e){var r=window.location&&window.location.hash;return r&&r.slice(1)===e.id},root:function(e){return e===Gh},focus:function(e){return e===ws.activeElement&&(!ws.hasFocus||ws.hasFocus())&&!!(e.type||e.href||~e.tabIndex)},enabled:function(e){return e.disabled===!1},disabled:function(e){return e.disabled===!0},checked:function(e){var r=e.nodeName.toLowerCase();return r==="input"&&!!e.checked||r==="option"&&!!e.selected},selected:function(e){return e.parentNode&&e.parentNode.selectedIndex,e.selected===!0},empty:function(e){for(e=e.firstChild;e;e=e.nextSibling)if(e.nodeType<6)return!1;return!0},parent:function(e){return!Kn.pseudos.empty(e)},header:function(e){return n_.test(e.nodeName)},input:function(e){return r_.test(e.nodeName)},button:function(e){var r=e.nodeName.toLowerCase();return r==="input"&&e.type==="button"||r==="button"},text:function(e){var r;return e.nodeName.toLowerCase()==="input"&&e.type==="text"&&((r=e.getAttribute("type"))==null||r.toLowerCase()==="text")},first:gi(function(){return[0]}),last:gi(function(e,r){return[r-1]}),eq:gi(function(e,r,a){return[a<0?a+r:a]}),even:gi(function(e,r){for(var a=0;a<r;a+=2)e.push(a);return e}),odd:gi(function(e,r){for(var a=1;a<r;a+=2)e.push(a);return e}),lt:gi(function(e,r,a){for(var o=a<0?a+r:a;--o>=0;)e.push(o);return e}),gt:gi(function(e,r,a){for(var o=a<0?a+r:a;++o<r;)e.push(o);return e})}},Kn.pseudos.nth=Kn.pseudos.eq,ct(["radio","checkbox","file","password","image"],function(e){Kn.pseudos[e]=M0(e)}),ct(["submit","reset"],function(e){Kn.pseudos[e]=xc(e)});function nb(){}nb.prototype=Kn.filters=Kn.pseudos,Kn.setFilters=new nb,_s=Rn.tokenize=function(e,r){var a,o,u,l,m,p,b,T=eb[e+" "];if(T)return r?0:T.slice(0);for(m=e,p=[],b=Kn.preFilter;m;){(!a||(o=t_.exec(m)))&&(o&&(m=m.slice(o[0].length)||m),p.push(u=[])),a=!1,(o=qm.exec(m))&&(a=o.shift(),u.push({value:a,type:o[0].replace(Ko," ")}),m=m.slice(a.length));for(l in Kn.filter)Kn.filter.hasOwnProperty(l)&&(o=Xh[l].exec(m))&&(!b[l]||(o=b[l](o)))&&(a=o.shift(),u.push({value:a,type:l,matches:o}),m=m.slice(a.length));if(!a)break}return r?m.length:m?Rn.error(e):eb(e,p).slice(0)};function Qh(e){for(var r=0,a=e.length,o="";r<a;r++)o+=e[r].value;return o}function ab(e,r,a){var o=r.dir,u=a&&o==="parentNode",l=Qp++;return r.first?function(m,p,b){for(;m=m[o];)if(m.nodeType===1||u)return e(m,p,b)}:function(m,p,b){var T,R,B=[Cs,l];if(b){for(;m=m[o];)if((m.nodeType===1||u)&&e(m,p,b))return!0}else for(;m=m[o];)if(m.nodeType===1||u){if(R=m[ni]||(m[ni]={}),(T=R[o])&&T[0]===Cs&&T[1]===l)return B[2]=T[2];if(R[o]=B,B[2]=e(m,p,b))return!0}}}function ib(e){return e.length>1?function(r,a,o){for(var u=e.length;u--;)if(!e[u](r,a,o))return!1;return!0}:e[0]}function a_(e,r,a){for(var o=0,u=r.length;o<u;o++)Rn(e,r[o],a);return a}function Md(e,r,a,o,u){for(var l,m=[],p=0,b=e.length,T=r!=null;p<b;p++)(l=e[p])&&(!a||a(l,o,u))&&(m.push(l),T&&r.push(p));return m}function ob(e,r,a,o,u,l){return o&&!o[ni]&&(o=ob(o)),u&&!u[ni]&&(u=ob(u,l)),Qs(function(m,p,b,T){var R,B,I,j=[],q=[],K=p.length,Z=m||a_(r||"*",b.nodeType?[b]:b,[]),ie=e&&(m||!r)?Md(Z,j,e,b,T):Z,ae=a?u||(m?e:K||o)?[]:p:ie;if(a&&a(ie,ae,b,T),o)for(R=Md(ae,q),o(R,[],b,T),B=R.length;B--;)(I=R[B])&&(ae[q[B]]=!(ie[q[B]]=I));if(m){if(u||e){if(u){for(R=[],B=ae.length;B--;)(I=ae[B])&&R.push(ie[B]=I);u(null,ae=[],R,T)}for(B=ae.length;B--;)(I=ae[B])&&(R=u?qv.call(m,I):j[B])>-1&&(m[R]=!(p[R]=I))}}else ae=Md(ae===p?ae.splice(K,ae.length):ae),u?u(null,p,ae,T):bc.apply(p,ae)})}function ub(e){for(var r,a,o,u=e.length,l=Kn.relative[e[0].type],m=l||Kn.relative[" "],p=l?1:0,b=ab(function(B){return B===r},m,!0),T=ab(function(B){return qv.call(r,B)>-1},m,!0),R=[function(B,I,j){var q=!l&&(j||I!==Vm)||((r=I).nodeType?b(B,I,j):T(B,I,j));return r=null,q}];p<u;p++)if(a=Kn.relative[e[p].type])R=[ab(ib(R),a)];else{if(a=Kn.filter[e[p].type].apply(null,e[p].matches),a[ni]){for(o=++p;o<u&&!Kn.relative[e[o].type];o++);return ob(p>1&&ib(R),p>1&&Qh(e.slice(0,p-1).concat({value:e[p-2].type===" "?"*":""})).replace(Ko,"$1"),a,p<o&&ub(e.slice(p,o)),o<u&&ub(e=e.slice(o)),o<u&&Qh(e))}R.push(a)}return ib(R)}function eg(e,r){var a=r.length>0,o=e.length>0,u=function(l,m,p,b,T){var R,B,I,j=0,q="0",K=l&&[],Z=[],ie=Vm,ae=l||o&&Kn.find.TAG("*",T),ce=Cs+=ie==null?1:Math.random()||.1,be=ae.length;for(T&&(Vm=m!==ws&&m);q!==be&&(R=ae[q])!=null;q++){if(o&&R){for(B=0;I=e[B++];)if(I(R,m,p)){b.push(R);break}T&&(Cs=ce)}a&&((R=!I&&R)&&j--,l&&K.push(R))}if(j+=q,a&&q!==j){for(B=0;I=r[B++];)I(K,Z,m,p);if(l){if(j>0)for(;q--;)K[q]||Z[q]||(Z[q]=e_.call(b));Z=Md(Z)}bc.apply(b,Z),T&&!l&&Z.length>0&&j+r.length>1&&Rn.uniqueSort(b)}return T&&(Cs=ce,Vm=ie),K};return a?Qs(u):u}Wh=Rn.compile=function(e,r){var a,o=[],u=[],l=Kh[e+" "];if(!l){for(r||(r=_s(e)),a=r.length;a--;)l=ub(r[a]),l[ni]?o.push(l):u.push(l);l=Kh(e,eg(u,o)),l.selector=e}return l},To=Rn.select=function(e,r,a,o){var u,l,m,p,b,T=typeof e=="function"&&e,R=!o&&_s(e=T.selector||e);if(a=a||[],R.length===1){if(l=R[0]=R[0].slice(0),l.length>2&&(m=l[0]).type==="ID"&&Ra.getById&&r.nodeType===9&&Oo&&Kn.relative[l[1].type]){if(r=(Kn.find.ID(m.matches[0].replace(lf,Zs),r)||[])[0],r)T&&(r=r.parentNode);else return a;e=e.slice(l.shift().value.length)}for(u=Xh.needsContext.test(e)?0:l.length;u--&&(m=l[u],!Kn.relative[p=m.type]);)if((b=Kn.find[p])&&(o=b(m.matches[0].replace(lf,Zs),rb.test(l[0].type)&&cf(r.parentNode)||r))){if(l.splice(u,1),e=o.length&&Qh(l),!e)return bc.apply(a,o),a;break}}return(T||Wh(e,R))(o,r,!Oo,a,rb.test(e)&&cf(r.parentNode)||r),a},Ra.sortStable=ni.split("").sort(Rd).join("")===ni,Ra.detectDuplicates=!!pc,uf(),Ra.sortDetached=!0;var B0=document,sb=Array.prototype.push,i_=Array.prototype.slice,ki=/^(?:[^#<]*(<[\w\W]+>)[^>]*$|#([\w\-]*)$)/,Bd=Zf.Event,Ua=Ie.makeMap("children,contents,next,prev"),Yo=function(e){return typeof e<"u"},rv=function(e){return typeof e=="string"},_c=function(e){return e&&e===e.window},lb=function(e,r){r=r||B0;var a=r.createElement("div"),o=r.createDocumentFragment();a.innerHTML=e;for(var u;u=a.firstChild;)o.appendChild(u);return o},ks=function(e,r,a,o){var u;if(rv(r))r=lb(r,Ni(e[0]));else if(r.length&&!r.nodeType){if(r=_r.makeArray(r),o)for(u=r.length-1;u>=0;u--)ks(e,r[u],a,o);else for(u=0;u<r.length;u++)ks(e,r[u],a,o);return e}if(r.nodeType)for(u=e.length;u--;)a.call(e[u],r);return e},Id=function(e,r){return e&&r&&(" "+e.className+" ").indexOf(" "+r+" ")!==-1},I0=function(e,r,a){var o,u;return r=_r(r)[0],e.each(function(){var l=this;(!a||o!==l.parentNode)&&(o=l.parentNode,u=r.cloneNode(!1),l.parentNode.insertBefore(u,l)),u.appendChild(l)}),e},o_=Ie.makeMap("fillOpacity fontWeight lineHeight opacity orphans widows zIndex zoom"," "),u_=Ie.makeMap("checked compact declare defer disabled ismap multiple nohref noshade nowrap readonly selected"," "),s_={for:"htmlFor",class:"className",readonly:"readOnly"},el={float:"cssFloat"},cb={},fb={},Ss=function(e,r){return new _r.fn.init(e,r)},F0=function(e,r){var a;if(r.indexOf)return r.indexOf(e);for(a=r.length;a--;)if(r[a]===e)return a;return-1},nv=/^\s*|\s*$/g,tg=function(e){return e==null?"":(""+e).replace(nv,"")},ff=function(e,r){var a,o,u,l;if(e)if(a=e.length,a===void 0){for(o in e)if(e.hasOwnProperty(o)&&(l=e[o],r.call(l,o,l)===!1))break}else for(u=0;u<a&&(l=e[u],r.call(l,u,l)!==!1);u++);return e},$0=function(e,r){var a=[];return ff(e,function(o,u){r(u,o)&&a.push(u)}),a},Ni=function(e){return e?e.nodeType===9?e:e.ownerDocument:B0};Ss.fn=Ss.prototype={constructor:Ss,selector:"",context:null,length:0,init:function(e,r){var a=this,o,u;if(!e)return a;if(e.nodeType)return a.context=a[0]=e,a.length=1,a;if(r&&r.nodeType)a.context=r;else{if(r)return _r(e).attr(r);a.context=r=document}if(rv(e))if(a.selector=e,e.charAt(0)==="<"&&e.charAt(e.length-1)===">"&&e.length>=3?o=[null,e,null]:o=ki.exec(e),o)if(o[1])for(u=lb(e,Ni(r)).firstChild;u;)sb.call(a,u),u=u.nextSibling;else{if(u=Ni(r).getElementById(o[2]),!u)return a;if(u.id!==o[2])return a.find(e);a.length=1,a[0]=u}else return _r(r).find(e);else this.add(e,!1);return a},toArray:function(){return Ie.toArray(this)},add:function(e,r){var a=this,o,u;if(rv(e))return a.add(_r(e));if(r!==!1)for(o=_r.unique(a.toArray().concat(_r.makeArray(e))),a.length=o.length,u=0;u<o.length;u++)a[u]=o[u];else sb.apply(a,_r.makeArray(e));return a},attr:function(e,r){var a=this,o;if(typeof e=="object")ff(e,function(u,l){a.attr(u,l)});else if(Yo(r))this.each(function(){var u;if(this.nodeType===1){if(u=cb[e],u&&u.set){u.set(this,r);return}r===null?this.removeAttribute(e,2):this.setAttribute(e,r,2)}});else{if(a[0]&&a[0].nodeType===1){if(o=cb[e],o&&o.get)return o.get(a[0],e);if(u_[e])return a.prop(e)?e:void 0;r=a[0].getAttribute(e,2),r===null&&(r=void 0)}return r}return a},removeAttr:function(e){return this.attr(e,null)},prop:function(e,r){var a=this;if(e=s_[e]||e,typeof e=="object")ff(e,function(o,u){a.prop(o,u)});else if(Yo(r))this.each(function(){this.nodeType===1&&(this[e]=r)});else return a[0]&&a[0].nodeType&&e in a[0]?a[0][e]:r;return a},css:function(e,r){var a=this,o,u,l=function(p){return p.replace(/-(\D)/g,function(b,T){return T.toUpperCase()})},m=function(p){return p.replace(/[A-Z]/g,function(b){return"-"+b})};if(typeof e=="object")ff(e,function(p,b){a.css(p,b)});else if(Yo(r))e=l(e),typeof r=="number"&&!o_[e]&&(r=r.toString()+"px"),a.each(function(){var p=this.style;if(u=fb[e],u&&u.set){u.set(this,r);return}try{this.style[el[e]||e]=r}catch{}(r===null||r==="")&&(p.removeProperty?p.removeProperty(m(e)):p.removeAttribute(e))});else{if(o=a[0],u=fb[e],u&&u.get)return u.get(o);if(o.ownerDocument.defaultView)try{return o.ownerDocument.defaultView.getComputedStyle(o,null).getPropertyValue(m(e))}catch{return}else return o.currentStyle?o.currentStyle[l(e)]:""}return a},remove:function(){for(var e=this,r,a=this.length;a--;)r=e[a],Bd.clean(r),r.parentNode&&r.parentNode.removeChild(r);return this},empty:function(){for(var e=this,r,a=this.length;a--;)for(r=e[a];r.firstChild;)r.removeChild(r.firstChild);return this},html:function(e){var r=this,a;if(Yo(e)){a=r.length;try{for(;a--;)r[a].innerHTML=e}catch{_r(r[a]).empty().append(e)}return r}return r[0]?r[0].innerHTML:""},text:function(e){var r=this,a;if(Yo(e)){for(a=r.length;a--;)"innerText"in r[a]?r[a].innerText=e:r[0].textContent=e;return r}return r[0]?r[0].innerText||r[0].textContent:""},append:function(){return ks(this,arguments,function(e){(this.nodeType===1||this.host&&this.host.nodeType===1)&&this.appendChild(e)})},prepend:function(){return ks(this,arguments,function(e){(this.nodeType===1||this.host&&this.host.nodeType===1)&&this.insertBefore(e,this.firstChild)},!0)},before:function(){var e=this;return e[0]&&e[0].parentNode?ks(e,arguments,function(r){this.parentNode.insertBefore(r,this)}):e},after:function(){var e=this;return e[0]&&e[0].parentNode?ks(e,arguments,function(r){this.parentNode.insertBefore(r,this.nextSibling)},!0):e},appendTo:function(e){return _r(e).append(this),this},prependTo:function(e){return _r(e).prepend(this),this},replaceWith:function(e){return this.before(e).remove()},wrap:function(e){return I0(this,e)},wrapAll:function(e){return I0(this,e,!0)},wrapInner:function(e){return this.each(function(){_r(this).contents().wrapAll(e)}),this},unwrap:function(){return this.parent().each(function(){_r(this).replaceWith(this.childNodes)})},clone:function(){var e=[];return this.each(function(){e.push(this.cloneNode(!0))}),_r(e)},addClass:function(e){return this.toggleClass(e,!0)},removeClass:function(e){return this.toggleClass(e,!1)},toggleClass:function(e,r){var a=this;return typeof e!="string"||(e.indexOf(" ")!==-1?ff(e.split(" "),function(){a.toggleClass(this,r)}):a.each(function(o,u){var l=Id(u,e);if(l!==r){var m=u.className;l?u.className=tg((" "+m+" ").replace(" "+e+" "," ")):u.className+=m?" "+e:e}})),a},hasClass:function(e){return Id(this[0],e)},each:function(e){return ff(this,e)},on:function(e,r){return this.each(function(){Bd.bind(this,e,r)})},off:function(e,r){return this.each(function(){Bd.unbind(this,e,r)})},trigger:function(e){return this.each(function(){typeof e=="object"?Bd.fire(this,e.type,e):Bd.fire(this,e)})},show:function(){return this.css("display","")},hide:function(){return this.css("display","none")},slice:function(){return _r(i_.apply(this,arguments))},eq:function(e){return e===-1?this.slice(e):this.slice(e,+e+1)},first:function(){return this.eq(0)},last:function(){return this.eq(-1)},find:function(e){var r,a,o=[];for(r=0,a=this.length;r<a;r++)_r.find(e,this[r],o);return _r(o)},filter:function(e){return _r(typeof e=="function"?$0(this.toArray(),function(r,a){return e(a,r)}):_r.filter(e,this.toArray()))},closest:function(e){var r=[];return e instanceof _r&&(e=e[0]),this.each(function(a,o){for(;o;){if(typeof e=="string"&&_r(o).is(e)){r.push(o);break}else if(o===e){r.push(o);break}o=o.parentNode}}),_r(r)},offset:function(e){var r,a,o,u=0,l=0,m;return e?this.css(e):(r=this[0],r&&(a=r.ownerDocument,o=a.documentElement,r.getBoundingClientRect&&(m=r.getBoundingClientRect(),u=m.left+(o.scrollLeft||a.body.scrollLeft)-o.clientLeft,l=m.top+(o.scrollTop||a.body.scrollTop)-o.clientTop)),{left:u,top:l})},push:sb,sort:Array.prototype.sort,splice:Array.prototype.splice},Ie.extend(Ss,{extend:Ie.extend,makeArray:function(e){return _c(e)||e.nodeType?[e]:Ie.toArray(e)},inArray:F0,isArray:Ie.isArray,each:ff,trim:tg,grep:$0,find:Rn,expr:Rn.selectors,unique:Rn.uniqueSort,text:Rn.getText,contains:Rn.contains,filter:function(e,r,a){var o=r.length;for(a&&(e=":not("+e+")");o--;)r[o].nodeType!==1&&r.splice(o,1);return r.length===1?r=_r.find.matchesSelector(r[0],e)?[r[0]]:[]:r=_r.find.matches(e,r),r}});var as=function(e,r,a){var o=[],u=e[r];for(typeof a!="string"&&a instanceof _r&&(a=a[0]);u&&u.nodeType!==9&&!(a!==void 0&&(u===a||typeof a=="string"&&_r(u).is(a)));)u.nodeType===1&&o.push(u),u=u[r];return o},rg=function(e,r,a,o){var u=[];for(o instanceof _r&&(o=o[0]);e;e=e[r])if(!(a&&e.nodeType!==a)){if(o!==void 0&&(e===o||typeof o=="string"&&_r(e).is(o)))break;u.push(e)}return u},vb=function(e,r,a){for(e=e[r];e;e=e[r])if(e.nodeType===a)return e;return null};ff({parent:function(e){var r=e.parentNode;return r&&r.nodeType!==11?r:null},parents:function(e){return as(e,"parentNode")},next:function(e){return vb(e,"nextSibling",1)},prev:function(e){return vb(e,"previousSibling",1)},children:function(e){return rg(e.firstChild,"nextSibling",1)},contents:function(e){return Ie.toArray((e.nodeName==="iframe"?e.contentDocument||e.contentWindow.document:e).childNodes)}},function(e,r){Ss.fn[e]=function(a){var o=this,u=[];o.each(function(){var m=r.call(u,this,a,u);m&&(_r.isArray(m)?u.push.apply(u,m):u.push(m))}),this.length>1&&(Ua[e]||(u=_r.unique(u)),e.indexOf("parents")===0&&(u=u.reverse()));var l=_r(u);return a?l.filter(a):l}}),ff({parentsUntil:function(e,r){return as(e,"parentNode",r)},nextUntil:function(e,r){return rg(e,"nextSibling",1,r).slice(1)},prevUntil:function(e,r){return rg(e,"previousSibling",1,r).slice(1)}},function(e,r){Ss.fn[e]=function(a,o){var u=this,l=[];u.each(function(){var p=r.call(l,this,a,l);p&&(_r.isArray(p)?l.push.apply(l,p):l.push(p))}),this.length>1&&(l=_r.unique(l),(e.indexOf("parents")===0||e==="prevUntil")&&(l=l.reverse()));var m=_r(l);return o?m.filter(o):m}}),Ss.fn.is=function(e){return!!e&&this.filter(e).length>0},Ss.fn.init.prototype=Ss.fn,Ss.overrideDefaults=function(e){var r,a=function(o,u){return r=r||e(),arguments.length===0&&(o=r.element),u||(u=r.context),new a.fn.init(o,u)};return _r.extend(a,this),a},Ss.attrHooks=cb,Ss.cssHooks=fb;var _r=Ss,Gm=Ie.each,l_=Ie.grep,ng=Jt.ie,ag=/^([a-z0-9],?)+$/i,c_=function(e,r,a){var o=r.keep_values,u={set:function(m,p,b){r.url_converter&&p!==null&&(p=r.url_converter.call(r.url_converter_scope||a(),p,b,m[0])),m.attr("data-mce-"+b,p).attr(b,p)},get:function(m,p){return m.attr("data-mce-"+p)||m.attr(p)}},l={style:{set:function(m,p){if(p!==null&&typeof p=="object"){m.css(p);return}o&&m.attr("data-mce-style",p),p!==null&&typeof p=="string"?(m.removeAttr("style"),m.css(e.parse(p))):m.attr("style",p)},get:function(m){var p=m.attr("data-mce-style")||m.attr("style");return p=e.serialize(e.parse(p),m[0].nodeName),p}}};return o&&(l.href=l.src=u),l},Xi=function(e,r){var a=r.attr("style"),o=e.serialize(e.parse(a),r[0].nodeName);o||(o=null),r.attr("data-mce-style",o)},du=function(e,r){var a=0,o,u;if(e)for(o=e.nodeType,e=e.previousSibling;e;e=e.previousSibling)u=e.nodeType,!(r&&u===3&&(u===o||!e.nodeValue.length))&&(a++,o=u);return a},ua=function(e,r){r===void 0&&(r={});var a={},o=window,u={},l=0,m=!0,p=!0,b=zl.forElement(D.fromDom(e),{contentCssCors:r.contentCssCors,referrerPolicy:r.referrerPolicy}),T=[],R=r.schema?r.schema:Mr({}),B=hc({url_converter:r.url_converter,url_converter_scope:r.url_converter_scope},r.schema),I=r.ownEvents?new Zf:Zf.Event,j=R.getBlockElements(),q=_r.overrideDefaults(function(){return{context:e,element:vd.getRoot()}}),K=function(fe){if(typeof fe=="string")return!!j[fe];if(fe){var De=fe.nodeType;if(De)return!!(De===1&&j[fe.nodeName])}return!1},Z=function(fe){return fe&&e&&Tr(fe)?e.getElementById(fe):fe},ie=function(fe){return q(typeof fe=="string"?Z(fe):fe)},ae=function(fe,De,ut){var mt,Sr,yn=ie(fe);return yn.length&&(mt=Bz[De],mt&&mt.get?Sr=mt.get(yn,De):Sr=yn.attr(De)),typeof Sr>"u"&&(Sr=ut||""),Sr},ce=function(fe){var De=Z(fe);return De?De.attributes:[]},be=function(fe,De,ut){ut===""&&(ut=null);var mt=ie(fe),Sr=mt.attr(De);if(mt.length){var yn=Bz[De];yn&&yn.set?yn.set(mt,ut,De):mt.attr(De,ut),Sr!==ut&&r.onSetAttrib&&r.onSetAttrib({attrElm:mt,attrName:De,attrValue:ut})}},ue=function(fe,De){if(!ng||fe.nodeType!==1||De)return fe.cloneNode(De);var ut=e.createElement(fe.nodeName);return Gm(ce(fe),function(mt){be(ut,mt.nodeName,ae(fe,mt.nodeName))}),ut},xe=function(){return r.root_element||e.body},Re=function(fe){var De=Bv(fe);return{x:De.x,y:De.y,w:De.width,h:De.height}},tt=function(fe,De){return Iv(e.body,Z(fe),De)},ar=function(fe,De,ut){var mt=Tr(De)?ie(fe).css(De,ut):ie(fe).css(De);r.update_styles&&Xi(B,mt)},Ct=function(fe,De){var ut=ie(fe).css(De);r.update_styles&&Xi(B,ut)},Ze=function(fe,De,ut){var mt=ie(fe);return ut?mt.css(De):(De=De.replace(/-(\D)/g,function(Sr,yn){return yn.toUpperCase()}),De==="float"&&(De=Jt.browser.isIE()?"styleFloat":"cssFloat"),mt[0]&&mt[0].style?mt[0].style[De]:void 0)},lr=function(fe){var De,ut;return fe=Z(fe),De=Ze(fe,"width"),ut=Ze(fe,"height"),De.indexOf("px")===-1&&(De=0),ut.indexOf("px")===-1&&(ut=0),{w:parseInt(De,10)||fe.offsetWidth||fe.clientWidth,h:parseInt(ut,10)||fe.offsetHeight||fe.clientHeight}},at=function(fe){fe=Z(fe);var De=tt(fe),ut=lr(fe);return{x:De.x,y:De.y,w:ut.w,h:ut.h}},kt=function(fe,De){var ut;if(!fe)return!1;if(!Array.isArray(fe)){if(De==="*")return fe.nodeType===1;if(ag.test(De)){var mt=De.toLowerCase().split(/,/),Sr=fe.nodeName.toLowerCase();for(ut=mt.length-1;ut>=0;ut--)if(mt[ut]===Sr)return!0;return!1}if(fe.nodeType&&fe.nodeType!==1)return!1}var yn=Array.isArray(fe)?fe:[fe];return Rn(De,yn[0].ownerDocument||yn[0],null,yn).length>0},Je=function(fe,De,ut,mt){var Sr=[],yn,Sa=Z(fe);for(mt=mt===void 0,ut=ut||(xe().nodeName!=="BODY"?xe().parentNode:null),Ie.is(De,"string")&&(yn=De,De==="*"?De=function(Mf){return Mf.nodeType===1}:De=function(Mf){return kt(Mf,yn)});Sa&&!(Sa===ut||xr(Sa.nodeType)||Jc(Sa)||br(Sa));){if(!De||typeof De=="function"&&De(Sa))if(mt)Sr.push(Sa);else return[Sa];Sa=Sa.parentNode}return mt?Sr:null},ht=function(fe,De,ut){var mt=Je(fe,De,ut,!1);return mt&&mt.length>0?mt[0]:null},It=function(fe,De,ut){var mt=De;if(fe){for(typeof De=="string"&&(mt=function(Sr){return kt(Sr,De)}),fe=fe[ut];fe;fe=fe[ut])if(typeof mt=="function"&&mt(fe))return fe}return null},Ve=function(fe,De){return It(fe,De,"nextSibling")},zt=function(fe,De){return It(fe,De,"previousSibling")},Pr=function(fe,De){return Rn(fe,Z(De)||r.root_element||e,[])},On=function(fe,De,ut){var mt,Sr=typeof fe=="string"?Z(fe):fe;if(!Sr)return!1;if(Ie.isArray(Sr)&&(Sr.length||Sr.length===0))return mt=[],Gm(Sr,function(Sa,Mf){Sa&&mt.push(De.call(ut,typeof Sa=="string"?Z(Sa):Sa,Mf))}),mt;var yn=ut||this;return De.call(yn,Sr)},nn=function(fe,De){ie(fe).each(function(ut,mt){Gm(De,function(Sr,yn){be(mt,yn,Sr)})})},oi=function(fe,De){var ut=ie(fe);ng?ut.each(function(mt,Sr){if(Sr.canHaveHTML!==!1){for(;Sr.firstChild;)Sr.removeChild(Sr.firstChild);try{Sr.innerHTML="<br>"+De,Sr.removeChild(Sr.firstChild)}catch{_r("<div></div>").html("<br>"+De).contents().slice(1).appendTo(Sr)}return De}}):ut.html(De)},La=function(fe,De,ut,mt,Sr){return On(fe,function(yn){var Sa=typeof De=="string"?e.createElement(De):De;return nn(Sa,ut),mt&&(typeof mt!="string"&&mt.nodeType?Sa.appendChild(mt):typeof mt=="string"&&oi(Sa,mt)),Sr?Sa:yn.appendChild(Sa)})},us=function(fe,De,ut){return La(e.createElement(fe),fe,De,ut,!0)},Rs=Rl.decode,Ke=Rl.encodeAllRaw,Oe=function(fe,De,ut){var mt="",Sr;mt+="<"+fe;for(Sr in De)ou(De,Sr)&&(mt+=" "+Sr+'="'+Ke(De[Sr])+'"');return typeof ut<"u"?mt+">"+ut+"</"+fe+">":mt+" />"},Qe=function(fe){var De,ut=e.createElement("div"),mt=e.createDocumentFragment();for(mt.appendChild(ut),fe&&(ut.innerHTML=fe);De=ut.firstChild;)mt.appendChild(De);return mt.removeChild(ut),mt},Ae=function(fe,De){var ut=ie(fe);return De?ut.each(function(){for(var mt;mt=this.firstChild;)mt.nodeType===3&&mt.data.length===0?this.removeChild(mt):this.parentNode.insertBefore(mt,this)}).remove():ut.remove(),ut.length>1?ut.toArray():ut[0]},Bt=function(fe){return On(fe,function(De){var ut,mt=De.attributes;for(ut=mt.length-1;ut>=0;ut--)De.removeAttributeNode(mt.item(ut))})},gt=function(fe){return B.parse(fe)},or=function(fe,De){return B.serialize(fe,De)},Lr=function(fe){var De,ut;if(vd!==ua.DOM&&e===document){if(a[fe])return;a[fe]=!0}ut=e.getElementById("mceDefaultStyles"),ut||(ut=e.createElement("style"),ut.id="mceDefaultStyles",ut.type="text/css",De=e.getElementsByTagName("head")[0],De.firstChild?De.insertBefore(ut,De.firstChild):De.appendChild(ut)),ut.styleSheet?ut.styleSheet.cssText+=fe:ut.appendChild(e.createTextNode(fe))},pa=function(fe){fe||(fe=""),ct(fe.split(","),function(De){u[De]=!0,b.load(De,_t)})},nu=function(fe,De,ut){ie(fe).toggleClass(De,ut).each(function(){this.className===""&&_r(this).attr("class",null)})},Iu=function(fe,De){ie(fe).addClass(De)},Gl=function(fe,De){nu(fe,De,!1)},au=function(fe,De){return ie(fe).hasClass(De)},Fu=function(fe){ie(fe).show()},Vi=function(fe){ie(fe).hide()},zf=function(fe){return ie(fe).css("display")==="none"},bo=function(fe){return(fe||"mce_")+l++},Df=function(fe){var De=typeof fe=="string"?Z(fe):fe;return mr(De)?De.outerHTML:_r("<div></div>").append(_r(De).clone()).html()},Pf=function(fe,De){ie(fe).each(function(){try{if("outerHTML"in this){this.outerHTML=De;return}}catch{}Ae(_r(this).html(De),!0)})},ba=function(fe,De){var ut=Z(De);return On(fe,function(mt){var Sr=ut.parentNode,yn=ut.nextSibling;return yn?Sr.insertBefore(mt,yn):Sr.appendChild(mt),mt})},ia=function(fe,De,ut){return On(De,function(mt){return Ie.is(mt,"array")&&(fe=fe.cloneNode(!0)),ut&&Gm(l_(mt.childNodes),function(Sr){fe.appendChild(Sr)}),mt.parentNode.replaceChild(fe,mt)})},ji=function(fe,De){var ut;return fe.nodeName!==De.toUpperCase()&&(ut=us(De),Gm(ce(fe),function(mt){be(ut,mt.nodeName,ae(fe,mt.nodeName))}),ia(ut,fe,!0)),ut||fe},Rf=function(fe,De){for(var ut=fe,mt;ut;){for(mt=De;mt&&ut!==mt;)mt=mt.parentNode;if(ut===mt)break;ut=ut.parentNode}return!ut&&fe.ownerDocument?fe.ownerDocument.documentElement:ut},ss=function(fe){return B.toHex(Ie.trim(fe))},Mc=function(fe){if(mr(fe)){var De=fe.nodeName.toLowerCase()==="a"&&!ae(fe,"href")&&ae(fe,"id");if(ae(fe,"name")||ae(fe,"data-mce-bookmark")||De)return!0}return!1},s0=function(fe,De){var ut,mt,Sr=0;if(Mc(fe))return!1;if(fe=fe.firstChild,fe){var yn=new Pn(fe,fe.parentNode),Sa=R?R.getWhiteSpaceElements():{};De=De||(R?R.getNonEmptyElements():null);do{if(ut=fe.nodeType,mr(fe)){var Mf=fe.getAttribute("data-mce-bogus");if(Mf){fe=yn.next(Mf==="all");continue}if(mt=fe.nodeName.toLowerCase(),De&&De[mt]){if(mt==="br"){Sr++,fe=yn.next();continue}return!1}if(Mc(fe))return!1}if(ut===8||ut===3&&!ys(fe.nodeValue)||ut===3&&fe.parentNode&&Sa[fe.parentNode.nodeName]&&ys(fe.nodeValue))return!1;fe=yn.next()}while(fe)}return Sr<=1},l0=function(){return e.createRange()},Dx=function(fe,De,ut){var mt=l0(),Sr,yn,Sa;if(fe&&De)return mt.setStart(fe.parentNode,du(fe)),mt.setEnd(De.parentNode,du(De)),Sr=mt.extractContents(),mt=l0(),mt.setStart(De.parentNode,du(De)+1),mt.setEnd(fe.parentNode,du(fe)+1),yn=mt.extractContents(),Sa=fe.parentNode,Sa.insertBefore(Vh(vd,Sr),fe),ut?Sa.insertBefore(ut,fe):Sa.insertBefore(De,fe),Sa.insertBefore(Vh(vd,yn),fe),Ae(fe),ut||De},rT=function(fe,De,ut,mt){if(Ie.isArray(fe)){for(var Sr=fe.length,yn=[];Sr--;)yn[Sr]=rT(fe[Sr],De,ut,mt);return yn}r.collect&&(fe===e||fe===o)&&T.push([fe,De,ut,mt]);var Sa=I.bind(fe,De,ut,mt||vd);return Sa},nT=function(fe,De,ut){if(Ie.isArray(fe)){for(var mt=fe.length,Sr=[];mt--;)Sr[mt]=nT(fe[mt],De,ut);return Sr}else{if(T.length>0&&(fe===e||fe===o))for(var mt=T.length;mt--;){var yn=T[mt];fe===yn[0]&&(!De||De===yn[1])&&(!ut||ut===yn[2])&&I.unbind(yn[0],yn[1],yn[2])}return I.unbind(fe,De,ut)}},mN=function(fe,De,ut){return I.fire(fe,De,ut)},aT=function(fe){if(fe&&mr(fe)){var De=fe.getAttribute("data-mce-contenteditable");return De&&De!=="inherit"?De:fe.contentEditable!=="inherit"?fe.contentEditable:null}else return null},hN=function(fe){for(var De=xe(),ut=null;fe&&fe!==De&&(ut=aT(fe),ut===null);fe=fe.parentNode);return ut},gN=function(){if(T.length>0)for(var fe=T.length;fe--;){var De=T[fe];I.unbind(De[0],De[1],De[2])}oa(u,function(ut,mt){b.unload(mt),delete u[mt]}),Rn.setDocument&&Rn.setDocument()},pN=function(fe,De){if(ng){for(;fe;){if(De===fe)return!0;fe=fe.parentNode}return!1}else return fe===De||De.contains(fe)},Mz=function(fe){return"startContainer: "+fe.startContainer.nodeName+", startOffset: "+fe.startOffset+", endContainer: "+fe.endContainer.nodeName+", endOffset: "+fe.endOffset},vd={doc:e,settings:r,win:o,files:u,stdMode:m,boxModel:p,styleSheetLoader:b,boundEvents:T,styles:B,schema:R,events:I,isBlock:K,$:q,$$:ie,root:null,clone:ue,getRoot:xe,getViewPort:Re,getRect:at,getSize:lr,getParent:ht,getParents:Je,get:Z,getNext:Ve,getPrev:zt,select:Pr,is:kt,add:La,create:us,createHTML:Oe,createFragment:Qe,remove:Ae,setStyle:ar,getStyle:Ze,setStyles:Ct,removeAllAttribs:Bt,setAttrib:be,setAttribs:nn,getAttrib:ae,getPos:tt,parseStyle:gt,serializeStyle:or,addStyle:Lr,loadCSS:pa,addClass:Iu,removeClass:Gl,hasClass:au,toggleClass:nu,show:Fu,hide:Vi,isHidden:zf,uniqueId:bo,setHTML:oi,getOuterHTML:Df,setOuterHTML:Pf,decode:Rs,encode:Ke,insertAfter:ba,replace:ia,rename:ji,findCommonAncestor:Rf,toHex:ss,run:On,getAttribs:ce,isEmpty:s0,createRng:l0,nodeIndex:du,split:Dx,bind:rT,unbind:nT,fire:mN,getContentEditable:aT,getContentEditableParent:hN,destroy:gN,isChildOf:pN,dumpRng:Mz},Bz=c_(B,r,Se(vd));return vd};ua.DOM=ua(document),ua.nodeIndex=du;var N0=ua.DOM,db=Ie.each,Uv=Ie.grep,L0=0,Wv=1,Fd=2,H0=3,vf=function(){function e(r){r===void 0&&(r={}),this.states={},this.queue=[],this.scriptLoadedCallbacks={},this.queueLoadedCallbacks=[],this.loading=0,this.settings=r}return e.prototype._setReferrerPolicy=function(r){this.settings.referrerPolicy=r},e.prototype.loadScript=function(r,a,o){var u=N0,l,m=function(){u.remove(T),l&&(l.onerror=l.onload=l=null)},p=function(){m(),a()},b=function(){m(),Xt(o)?o():typeof console<"u"&&console.log&&console.log("Failed to load script: "+r)},T=u.uniqueId();l=document.createElement("script"),l.id=T,l.type="text/javascript",l.src=Ie._addCacheSuffix(r),this.settings.referrerPolicy&&u.setAttrib(l,"referrerpolicy",this.settings.referrerPolicy),l.onload=p,l.onerror=b,(document.getElementsByTagName("head")[0]||document.body).appendChild(l)},e.prototype.isDone=function(r){return this.states[r]===Fd},e.prototype.markDone=function(r){this.states[r]=Fd},e.prototype.add=function(r,a,o,u){var l=this.states[r];this.queue.push(r),l===void 0&&(this.states[r]=L0),a&&(this.scriptLoadedCallbacks[r]||(this.scriptLoadedCallbacks[r]=[]),this.scriptLoadedCallbacks[r].push({success:a,failure:u,scope:o||this}))},e.prototype.load=function(r,a,o,u){return this.add(r,a,o,u)},e.prototype.remove=function(r){delete this.states[r],delete this.scriptLoadedCallbacks[r]},e.prototype.loadQueue=function(r,a,o){this.loadScripts(this.queue,r,a,o)},e.prototype.loadScripts=function(r,a,o,u){var l=this,m=[],p=function(T,R){db(l.scriptLoadedCallbacks[R],function(B){Xt(B[T])&&B[T].call(B.scope)}),l.scriptLoadedCallbacks[R]=void 0};l.queueLoadedCallbacks.push({success:a,failure:u,scope:o||this});var b=function(){var T=Uv(r);if(r.length=0,db(T,function(B){if(l.states[B]===Fd){p("success",B);return}if(l.states[B]===H0){p("failure",B);return}l.states[B]!==Wv&&(l.states[B]=Wv,l.loading++,l.loadScript(B,function(){l.states[B]=Fd,l.loading--,p("success",B),b()},function(){l.states[B]=H0,l.loading--,m.push(B),p("failure",B),b()}))}),!l.loading){var R=l.queueLoadedCallbacks.slice(0);l.queueLoadedCallbacks.length=0,db(R,function(B){m.length===0?Xt(B.success)&&B.success.call(B.scope):Xt(B.failure)&&B.failure.call(B.scope,m)})}};b()},e.ScriptLoader=new e,e}(),go=function(e){var r=e,a=function(){return r},o=function(u){r=u};return{get:a,set:o}},V0=function(e){return An(e)&&$r(e,"raw")},f_=function(e){return ta(e)&&e.length>1},Gv={},mb=go("en"),hb=function(){return ra(Gv,mb.get())},gb=function(){return Hu(Gv,function(e){return rr({},e)})},v_=function(e){e&&mb.set(e)},d_=function(){return mb.get()},m_=function(e,r){var a=Gv[e];a||(Gv[e]=a={}),oa(r,function(o,u){a[u.toLowerCase()]=o})},Km=function(e){var r=hb().getOr({}),a=function(b){return Xt(b)?Object.prototype.toString.call(b):o(b)?"":""+b},o=function(b){return b===""||b===null||b===void 0},u=function(b){var T=a(b);return ra(r,T.toLowerCase()).map(a).getOr(T)},l=function(b){return b.replace(/{context:\w+}$/,"")};if(o(e))return"";if(V0(e))return a(e.raw);if(f_(e)){var m=e.slice(1),p=u(e[0]).replace(/\{([0-9]+)\}/g,function(b,T){return $r(m,T)?a(m[T]):b});return l(p)}return l(u(e))},Kv=function(){return hb().bind(function(e){return ra(e,"_dir")}).exists(function(e){return e==="rtl"})},Yv=function(e){return $r(Gv,e)},Fr={getData:gb,setCode:v_,getCode:d_,add:m_,translate:Km,isRtl:Kv,hasCode:Yv},Aa=function(){var e=[],r={},a={},o=[],u=function(K,Z){var ie=tr(o,function(ae){return ae.name===K&&ae.state===Z});ct(ie,function(ae){return ae.callback()})},l=function(K){if(a[K])return a[K].instance},m=function(K){var Z;return a[K]&&(Z=a[K].dependencies),Z||[]},p=function(K,Z){Aa.languageLoad!==!1&&q(K,function(){var ie=Fr.getCode(),ae=","+(Z||"")+",";!ie||Z&&ae.indexOf(","+ie+",")===-1||vf.ScriptLoader.add(r[K]+"/langs/"+ie+".js")},"loaded")},b=function(K,Z,ie){var ae=Z;return e.push(ae),a[K]={instance:ae,dependencies:ie},u(K,"added"),ae},T=function(K){delete r[K],delete a[K]},R=function(K,Z){return typeof Z=="object"?Z:typeof K=="string"?{prefix:"",resource:Z,suffix:""}:{prefix:K.prefix,resource:Z,suffix:K.suffix}},B=function(K,Z){var ie=r[K];ct(Z,function(ae){vf.ScriptLoader.add(ie+"/"+ae)})},I=function(K,Z,ie,ae){var ce=m(K);ct(ce,function(be){var ue=R(Z,be);j(ue.resource,ue,void 0,void 0)}),ie&&(ae?ie.call(ae):ie.call(vf))},j=function(K,Z,ie,ae,ce){if(!r[K]){var be=typeof Z=="string"?Z:Z.prefix+Z.resource+Z.suffix;be.indexOf("/")!==0&&be.indexOf("://")===-1&&(be=Aa.baseURL+"/"+be),r[K]=be.substring(0,be.lastIndexOf("/"));var ue=function(){u(K,"loaded"),I(K,Z,ie,ae)};a[K]?ue():vf.ScriptLoader.add(be,ue,ae,ce)}},q=function(K,Z,ie){ie===void 0&&(ie="added"),$r(a,K)&&ie==="added"||$r(r,K)&&ie==="loaded"?Z():o.push({name:K,state:ie,callback:Z})};return{items:e,urls:r,lookup:a,_listeners:o,get:l,dependencies:m,requireLangPack:p,add:b,remove:T,createUrl:R,addComponents:B,load:j,waitFor:q}};Aa.languageLoad=!0,Aa.baseURL="",Aa.PluginManager=Aa(),Aa.ThemeManager=Aa();var Xv=function(e){var r=go(X.none()),a=function(){return r.get().each(e)},o=function(){a(),r.set(X.none())},u=function(){return r.get().isSome()},l=function(){return r.get()},m=function(p){a(),r.set(X.some(p))};return{clear:o,isSet:u,get:l,set:m}},av=function(){var e=Xv(_t),r=function(a){return e.get().each(a)};return rr(rr({},e),{on:r})},Yn=function(e,r){var a=null,o=function(){se(a)||(clearTimeout(a),a=null)},u=function(){for(var l=[],m=0;m<arguments.length;m++)l[m]=arguments[m];se(a)&&(a=setTimeout(function(){a=null,e.apply(null,l)},r))};return{cancel:o,throttle:u}},pb=function(e,r){var a=null,o=function(){se(a)||(clearTimeout(a),a=null)},u=function(){for(var l=[],m=0;m<arguments.length;m++)l[m]=arguments[m];o(),a=setTimeout(function(){a=null,e.apply(null,l)},r)};return{cancel:o,throttle:u}},ig=function(e,r){var a=N(e,r);return a===void 0||a===""?[]:a.split(" ")},Ji=function(e,r,a){var o=ig(e,r),u=o.concat([a]);return S(e,r,u.join(" ")),!0},iv=function(e,r,a){var o=tr(ig(e,r),function(u){return u!==a});return o.length>0?S(e,r,o.join(" ")):Me(e,r),!1},og=function(e){return e.dom.classList!==void 0},h_=function(e){return ig(e,"class")},g_=function(e,r){return Ji(e,"class",r)},ug=function(e,r){return iv(e,"class",r)},$d=function(e,r){og(e)?e.dom.classList.add(r):g_(e,r)},bb=function(e){var r=og(e)?e.dom.classList:h_(e);r.length===0&&Me(e,"class")},yb=function(e,r){if(og(e)){var a=e.dom.classList;a.remove(r)}else ug(e,r);bb(e)},sg=function(e,r){return og(e)&&e.dom.classList.contains(r)},lg=function(e,r){var a=[];return ct(jo(e),function(o){r(o)&&(a=a.concat([o])),a=a.concat(lg(o,r))}),a},mu=function(e,r){return md(r,e)},cg=Se("mce-annotation"),wc=Se("data-mce-annotation"),hu=Se("data-mce-annotation-uid"),Ym=function(e,r){var a=e.selection.getRng(),o=D.fromDom(a.startContainer),u=D.fromDom(e.getBody()),l=r.fold(function(){return"."+cg()},function(T){return"["+wc()+'="'+T+'"]'}),m=Xu(o,a.startOffset).getOr(o),p=fa(m,l,function(T){return Vn(T,u)}),b=function(T,R){return ge(T,R)?X.some(N(T,R)):X.none()};return p.bind(function(T){return b(T,""+hu()).bind(function(R){return b(T,""+wc()).map(function(B){var I=p_(e,R);return{uid:R,name:B,elements:I}})})})},Zi=function(e){return la(e)&&sg(e,cg())},p_=function(e,r){var a=D.fromDom(e.getBody());return mu(a,"["+hu()+'="'+r+'"]')},ov=function(e,r){var a=D.fromDom(e.getBody()),o=mu(a,"["+wc()+'="'+r+'"]'),u={};return ct(o,function(l){var m=N(l,hu()),p=ra(u,m).getOr([]);u[m]=p.concat([l])}),u},j0=function(e,r){var a=go({}),o=function(){return{listeners:[],previous:av()}},u=function(R,B){l(R,function(I){return B(I),I})},l=function(R,B){var I=a.get(),j=ra(I,R).getOrThunk(o),q=B(j);I[R]=q,a.set(I)},m=function(R,B,I){u(R,function(j){ct(j.listeners,function(q){return q(!0,R,{uid:B,nodes:Cr(I,function(K){return K.dom})})})})},p=function(R){u(R,function(B){ct(B.listeners,function(I){return I(!1,R)})})},b=pb(function(){var R=a.get(),B=Ba(Fo(R));ct(B,function(I){l(I,function(j){var q=j.previous.get();return Ym(e,X.some(I)).fold(function(){q.isSome()&&(p(I),j.previous.clear())},function(K){var Z=K.uid,ie=K.name,ae=K.elements;Qc(q,Z)||(m(ie,Z,ae),j.previous.set(Z))}),{previous:j.previous,listeners:j.listeners}})})},30);e.on("remove",function(){b.cancel()}),e.on("NodeChange",function(){b.throttle()});var T=function(R,B){l(R,function(I){return{previous:I.previous,listeners:I.listeners.concat([B])}})};return{addListener:T}},q0=function(e,r){var a=function(o){return X.from(o.attr(wc())).bind(r.lookup)};e.on("init",function(){e.serializer.addNodeFilter("span",function(o){ct(o,function(u){a(u).each(function(l){l.persistent===!1&&u.unwrap()})})})})},U0=function(){var e={},r=function(o,u){e[o]={name:o,settings:u}},a=function(o){return ra(e,o).map(function(u){return u.settings})};return{register:r,lookup:a}},fg=0,vg=function(e){var r=new Date,a=r.getTime(),o=Math.floor(Math.random()*1e9);return fg++,e+"_"+o+fg+String(a)},W0=function(e,r){ct(r,function(a){$d(e,a)})},b_=function(e,r){var a=r||document,o=a.createElement("div");return o.innerHTML=e,jo(D.fromDom(o))},y_=function(e){return Cr(e,D.fromDom)},Si=function(e){return e.dom.innerHTML},Qi=function(e,r){var a=gd(e),o=a.dom,u=D.fromDom(o.createDocumentFragment()),l=b_(r,o);nt(u,l),Ge(e),Wi(e,u)},Eo=function(e,r){return D.fromDom(e.dom.cloneNode(r))},Ti=function(e){return Eo(e,!1)},Ao=function(e){return Eo(e,!0)},Li=function(e,r,a){a===void 0&&(a=ot);var o=new Pn(e,r),u=function(l){var m;do m=o[l]();while(m&&!Et(m)&&!a(m));return X.from(m).filter(Et)};return{current:function(){return X.from(o.current()).filter(Et)},next:function(){return u("next")},prev:function(){return u("prev")},prev2:function(){return u("prev2")}}},Xm=function(e,r){var a=r||function(m){return e.isBlock(m)||wn(m)||ca(m)},o=function(m,p,b,T){if(Et(m)){var R=T(m,p,m.data);if(R!==-1)return X.some({container:m,offset:R})}return b().bind(function(B){return o(B.container,B.offset,b,T)})},u=function(m,p,b,T){var R=Li(m,T,a);return o(m,p,function(){return R.prev().map(function(B){return{container:B,offset:B.length}})},b).getOrNull()},l=function(m,p,b,T){var R=Li(m,T,a);return o(m,p,function(){return R.next().map(function(B){return{container:B,offset:0}})},b).getOrNull()};return{backwards:u,forwards:l}},df=Math.round,mf=function(e){return e?{left:df(e.left),top:df(e.top),bottom:df(e.bottom),right:df(e.right),width:df(e.width),height:df(e.height)}:{left:0,top:0,bottom:0,right:0,width:0,height:0}},xb=function(e,r){return e=mf(e),r||(e.left=e.left+e.width),e.right=e.left,e.width=0,e},G0=function(e,r){return e.left===r.left&&e.top===r.top&&e.bottom===r.bottom&&e.right===r.right},_b=function(e,r,a){return e>=0&&e<=Math.min(r.height,a.height)/2},Bl=function(e,r){var a=Math.min(r.height/2,e.height/2);return e.bottom-a<r.top?!0:e.top>r.bottom?!1:_b(r.top-e.bottom,e,r)},Il=function(e,r){return e.top>r.bottom?!0:e.bottom<r.top?!1:_b(r.bottom-e.top,e,r)},K0=function(e,r,a){return r>=e.left&&r<=e.right&&a>=e.top&&a<=e.bottom},x_=function(e,r,a){return Math.min(Math.max(e,r),a)},Nd=function(e){var r=e.startContainer,a=e.startOffset;return r.hasChildNodes()&&e.endOffset===a+1?r.childNodes[a]:null},hf=function(e,r){if(mr(e)&&e.hasChildNodes()){var a=e.childNodes,o=x_(r,0,a.length-1);return a[o]}else return e},__=function(e,r){if(!(r<0&&mr(e)&&e.hasChildNodes()))return hf(e,r)},wb=new RegExp("[̀-ͯ҃-҇҈-҉֑-ֽֿׁ-ׂׄ-ׇׅؐ-ًؚ-ٰٟۖ-ۜ۟-ۤۧ-۪ۨ-ܑۭܰ-݊ަ-ް߫-߳ࠖ-࠙ࠛ-ࠣࠥ-ࠧࠩ-࡙࠭-࡛ࣣ-ंऺ़ु-ै्॑-ॗॢ-ॣঁ়াু-ৄ্ৗৢ-ৣਁ-ਂ਼ੁ-ੂੇ-ੈੋ-੍ੑੰ-ੱੵઁ-ં઼ુ-ૅે-ૈ્ૢ-ૣଁ଼ାିୁ-ୄ୍ୖୗୢ-ୣஂாீ்ௗఀా-ీె-ైొ-్ౕ-ౖౢ-ౣಁ಼ಿೂೆೌ-್ೕ-ೖೢ-ೣഁാു-ൄ്ൗൢ-ൣ්ාි-ුූෟัิ-ฺ็-๎ັິ-ູົ-ຼ່-ໍ༘-ཱ༹༙༵༷-ཾྀ-྄྆-྇ྍ-ྗྙ-ྼ࿆ိ-ူဲ-့္-်ွ-ှၘ-ၙၞ-ၠၱ-ၴႂႅ-ႆႍႝ፝-፟ᜒ-᜔ᜲ-᜴ᝒ-ᝓᝲ-ᝳ឴-឵ិ-ួំ៉-៓៝᠋-᠍ᢩᤠ-ᤢᤧ-ᤨᤲ᤹-᤻ᨗ-ᨘᨛᩖᩘ-ᩞ᩠ᩢᩥ-ᩬᩳ-᩿᩼᪰-᪽᪾ᬀ-ᬃ᬴ᬶ-ᬺᬼᭂ᭫-᭳ᮀ-ᮁᮢ-ᮥᮨ-ᮩ᮫-ᮭ᯦ᯨ-ᯩᯭᯯ-ᯱᰬ-ᰳᰶ-᰷᳐-᳔᳒-᳢᳠-᳨᳭᳴᳸-᳹᷀-᷵᷼-᷿‌-‍⃐-⃜⃝-⃠⃡⃢-⃤⃥-⃰⳯-⵿⳱ⷠ-〪ⷿ-〭〮-゙〯-゚꙯꙰-꙲ꙴ-꙽ꚞ-ꚟ꛰-꛱ꠂ꠆ꠋꠥ-ꠦ꣄꣠-꣱ꤦ-꤭ꥇ-ꥑꦀ-ꦂ꦳ꦶ-ꦹꦼꧥꨩ-ꨮꨱ-ꨲꨵ-ꨶꩃꩌꩼꪰꪲ-ꪴꪷ-ꪸꪾ-꪿꫁ꫬ-ꫭ꫶ꯥꯨ꯭ﬞ︀-️︠-゙︯-゚]"),Y0=function(e){return typeof e=="string"&&e.charCodeAt(0)>=768&&wb.test(e)},w_=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(a){for(var o=0;o<e.length;o++)if(e[o](a))return!0;return!1}},C_=function(){for(var e=[],r=0;r<arguments.length;r++)e[r]=arguments[r];return function(a){for(var o=0;o<e.length;o++)if(!e[o](a))return!1;return!0}},X0=mr,J0=Pl,ft=yd("display","block table"),k_=yd("float","left right"),Wa=C_(X0,J0,ur(k_)),S_=ur(yd("white-space","pre pre-line pre-wrap")),Ld=Et,Ts=wn,Os=ua.nodeIndex,dg=__,gf=function(e){return"createRange"in e?e.createRange():ua.DOM.createRng()},Qr=function(e){return e&&/[\r\n\t ]/.test(e)},Cc=function(e){return!!e.setStart&&!!e.setEnd},gu=function(e){var r=e.startContainer,a=e.startOffset;if(Qr(e.toString())&&S_(r.parentNode)&&Et(r)){var o=r.data;if(Qr(o[a-1])||Qr(o[a+1]))return!0}return!1},Oi=function(e){var r=e.ownerDocument,a=gf(r),o=r.createTextNode(ei),u=e.parentNode;u.insertBefore(o,e),a.setStart(o,0),a.setEnd(o,1);var l=mf(a.getBoundingClientRect());return u.removeChild(o),l},pf=function(e){var r=e.startContainer,a=e.endContainer,o=e.startOffset,u=e.endOffset;if(r===a&&Et(a)&&o===0&&u===1){var l=e.cloneRange();return l.setEndAfter(a),bf(l)}else return null},po=function(e){return e.left===0&&e.right===0&&e.top===0&&e.bottom===0},bf=function(e){var r,a=e.getClientRects();return a.length>0?r=mf(a[0]):r=mf(e.getBoundingClientRect()),!Cc(e)&&Ts(e)&&po(r)?Oi(e):po(r)&&Cc(e)?pf(e):r},Xo=function(e,r){var a=xb(e,r);return a.width=1,a.right=a.left+1,a},T_=function(e){var r=[],a=function(b){b.height!==0&&(r.length>0&&G0(b,r[r.length-1])||r.push(b))},o=function(b,T){var R=gf(b.ownerDocument);if(T<b.data.length){if(Y0(b.data[T]))return r;if(Y0(b.data[T-1])&&(R.setStart(b,T),R.setEnd(b,T+1),!gu(R)))return a(Xo(bf(R),!1)),r}T>0&&(R.setStart(b,T-1),R.setEnd(b,T),gu(R)||a(Xo(bf(R),!1))),T<b.data.length&&(R.setStart(b,T),R.setEnd(b,T+1),gu(R)||a(Xo(bf(R),!0)))},u=e.container(),l=e.offset();if(Ld(u))return o(u,l),r;if(X0(u))if(e.isAtEnd()){var m=dg(u,l);Ld(m)&&o(m,m.data.length),Wa(m)&&!Ts(m)&&a(Xo(bf(m),!1))}else{var m=dg(u,l);if(Ld(m)&&o(m,0),Wa(m)&&e.isAtEnd())return a(Xo(bf(m),!1)),r;var p=dg(e.container(),e.offset()-1);Wa(p)&&!Ts(p)&&(ft(p)||ft(m)||!Wa(m))&&a(Xo(bf(p),!1)),Wa(m)&&a(Xo(bf(m),!0))}return r},Be=function(e,r,a){var o=function(){return Ld(e),r===0},u=function(){return Ld(e)?r>=e.data.length:r>=e.childNodes.length},l=function(){var R=gf(e.ownerDocument);return R.setStart(e,r),R.setEnd(e,r),R},m=function(){return a||(a=T_(Be(e,r))),a},p=function(){return m().length>0},b=function(R){return R&&e===R.container()&&r===R.offset()},T=function(R){return dg(e,R?r-1:r)};return{container:Se(e),offset:Se(r),toRange:l,getClientRects:m,isVisible:p,isAtStart:o,isAtEnd:u,isEqual:b,getNode:T}};Be.fromRangeStart=function(e){return Be(e.startContainer,e.startOffset)},Be.fromRangeEnd=function(e){return Be(e.endContainer,e.endOffset)},Be.after=function(e){return Be(e.parentNode,Os(e)+1)},Be.before=function(e){return Be(e.parentNode,Os(e))},Be.isAbove=function(e,r){return mo(Qa(r.getClientRects()),Zn(e.getClientRects()),Bl).getOr(!1)},Be.isBelow=function(e,r){return mo(Zn(r.getClientRects()),Qa(e.getClientRects()),Il).getOr(!1)},Be.isAtStart=function(e){return e?e.isAtStart():!1},Be.isAtEnd=function(e){return e?e.isAtEnd():!1},Be.isTextPosition=function(e){return e?Et(e.container()):!1},Be.isElementPosition=function(e){return Be.isTextPosition(e)===!1};var Hd=function(e,r){Et(r)&&r.data.length===0&&e.remove(r)},mg=function(e,r,a){r.insertNode(a),Hd(e,a.previousSibling),Hd(e,a.nextSibling)},Z0=function(e,r,a){var o=X.from(a.firstChild),u=X.from(a.lastChild);r.insertNode(a),o.each(function(l){return Hd(e,l.previousSibling)}),u.each(function(l){return Hd(e,l.nextSibling)})},Es=function(e,r,a){br(a)?Z0(e,r,a):mg(e,r,a)},tl=Et,Vd=Vs,ai=ua.nodeIndex,pi=function(e){var r=e.parentNode;return Vd(r)?pi(r):r},hg=function(e){return e?gl(e.childNodes,function(r,a){return Vd(a)&&a.nodeName!=="BR"?r=r.concat(hg(a)):r.push(a),r},[]):[]},O_=function(e,r){for(;(e=e.previousSibling)&&tl(e);)r+=e.data.length;return r},Q0=function(e){return function(r){return e===r}},Cb=function(e){var r,a;r=hg(pi(e)),a=_n(r,Q0(e),e),r=r.slice(0,a+1);var o=gl(r,function(u,l,m){return tl(l)&&tl(r[m-1])&&u++,u},0);return r=cs(r,Qu([e.nodeName])),a=_n(r,Q0(e),e),a-o},ey=function(e){var r;return tl(e)?r="text()":r=e.nodeName.toLowerCase(),r+"["+Cb(e)+"]"},ty=function(e,r,a){var o=[];for(r=r.parentNode;r!==e&&!(a&&a(r));r=r.parentNode)o.push(r);return o},ry=function(e,r){var a,o,u=[],l,m,p;return a=r.container(),o=r.offset(),tl(a)?l=O_(a,o):(m=a.childNodes,o>=m.length?(l="after",o=m.length-1):l="before",a=m[o]),u.push(ey(a)),p=ty(e,a),p=cs(p,ur(Vs)),u=u.concat(Jl(p,function(b){return ey(b)})),u.reverse().join("/")+","+l},Jm=function(e,r,a){var o=hg(e);return o=cs(o,function(u,l){return!tl(u)||!tl(o[l-1])}),o=cs(o,Qu([r])),o[a]},Zm=function(e,r){for(var a=e,o=0,u;tl(a);){if(u=a.data.length,r>=o&&r<=o+u){e=a,r=r-o;break}if(!tl(a.nextSibling)){e=a,r=u;break}o+=u,a=a.nextSibling}return tl(e)&&r>e.data.length&&(r=e.data.length),Be(e,r)},gg=function(e,r){var a;if(!r)return null;var o=r.split(","),u=o[0].split("/");a=o.length>1?o[1]:"before";var l=gl(u,function(m,p){var b=/([\w\-\(\)]+)\[([0-9]+)\]/.exec(p);return b?(b[1]==="text()"&&(b[1]="#text"),Jm(m,b[1],parseInt(b[2],10))):null},e);return l?tl(l)?Zm(l,parseInt(a,10)):(a==="after"?a=ai(l)+1:a=ai(l),Be(l.parentNode,a)):null},pg=ca,ny=function(e,r,a){var o,u;for(u=e(r.data.slice(0,a)).length,o=r.previousSibling;o&&Et(o);o=o.previousSibling)u+=e(o.data).length;return u},Qm=function(e,r,a,o,u){var l=o[u?"startContainer":"endContainer"],m=o[u?"startOffset":"endOffset"],p=[],b,T=0,R=e.getRoot();for(Et(l)?p.push(a?ny(r,l,m):m):(b=l.childNodes,m>=b.length&&b.length&&(T=1,m=Math.max(0,b.length-1)),p.push(e.nodeIndex(b[m],a)+T));l&&l!==R;l=l.parentNode)p.push(e.nodeIndex(l,a));return p},Eu=function(e,r,a,o){var u=r.dom,l={};return l.start=Qm(u,e,a,o,!0),r.isCollapsed()||(l.end=Qm(u,e,a,o,!1)),vc(o)&&(l.isFakeCaret=!0),l},uv=function(e,r,a){var o=0;return Ie.each(e.select(r),function(u){if(u.getAttribute("data-mce-bogus")!=="all"){if(u===a)return!1;o++}}),o},Jv=function(e,r){var a,o,u,l=r?"start":"end";a=e[l+"Container"],o=e[l+"Offset"],mr(a)&&a.nodeName==="TR"&&(u=a.childNodes,a=u[Math.min(r?o:o-1,u.length-1)],a&&(o=r?0:a.childNodes.length,e["set"+(r?"Start":"End")](a,o)))},za=function(e){return Jv(e,!0),Jv(e,!1),e},kb=function(e,r){var a;if(mr(e)&&(e=hf(e,r),pg(e)))return e;if(ku(e)&&(Et(e)&&Ea(e)&&(e=e.parentNode),a=e.previousSibling,pg(a)||(a=e.nextSibling,pg(a))))return a},Au=function(e){return kb(e.startContainer,e.startOffset)||kb(e.endContainer,e.endOffset)},eh=function(e,r,a){var o=a.getNode(),u=o?o.nodeName:null,l=a.getRng();if(pg(o)||u==="IMG")return{name:u,index:uv(a.dom,u,o)};var m=Au(l);return m?(u=m.tagName,{name:u,index:uv(a.dom,u,m)}):Eu(e,a,r,l)},Sb=function(e){var r=e.getRng();return{start:ry(e.dom.getRoot(),Be.fromRangeStart(r)),end:ry(e.dom.getRoot(),Be.fromRangeEnd(r))}},kc=function(e){return{rng:e.getRng()}},un=function(e,r,a){var o={"data-mce-type":"bookmark",id:r,style:"overflow:hidden;line-height:0px"};return a?e.create("span",o,"&#xFEFF;"):e.create("span",o)},Tb=function(e,r){var a=e.dom,o=e.getRng(),u=a.uniqueId(),l=e.isCollapsed(),m=e.getNode(),p=m.nodeName;if(p==="IMG")return{name:p,index:uv(a,p,m)};var b=za(o.cloneRange());if(!l){b.collapse(!1);var T=un(a,u+"_end",r);Es(a,b,T)}o=za(o),o.collapse(!0);var R=un(a,u+"_start",r);return Es(a,o,R),e.moveToBookmark({id:u,keep:!0}),{id:u}},rl=function(e,r,a){return r===2?eh(ti,a,e):r===3?Sb(e):r?kc(e):Tb(e,!1)},Ob=Pe(eh,Xe,!0),E_=ua.DOM,ga="font-family font-size font-weight font-style text-decoration text-transform color background-color border border-radius outline text-shadow",ay=function(e,r,a){var o=e.getParam(r,a);if(o.indexOf("=")!==-1){var u=e.getParam(r,"","hash");return ra(u,e.id).getOr(a)}else return o},iy=function(e){return e.getParam("iframe_attrs",{})},bg=function(e){return e.getParam("doctype","<!DOCTYPE html>")},A_=function(e){return e.getParam("document_base_url","")},z_=function(e){return ay(e,"body_id","tinymce")},D_=function(e){return ay(e,"body_class","")},oy=function(e){return e.getParam("content_security_policy","")},P_=function(e){return e.getParam("br_in_pre",!0)},zo=function(e){if(e.getParam("force_p_newlines",!1))return"p";var r=e.getParam("forced_root_block","p");return r===!1?"":r===!0?"p":r},jd=function(e){return e.getParam("forced_root_block_attrs",{})},R_=function(e){return e.getParam("br_newline_selector",".mce-toc h2,figcaption,caption")},th=function(e){return e.getParam("no_newline_selector","")},uy=function(e){return e.getParam("keep_styles",!0)},M_=function(e){return e.getParam("end_container_on_empty_block",!1)},B_=function(e){return Ie.explode(e.getParam("font_size_style_values","xx-small,x-small,small,medium,large,x-large,xx-large"))},I_=function(e){return Ie.explode(e.getParam("font_size_classes",""))},sv=function(e){return e.getParam("images_dataimg_filter",Mt,"function")},rh=function(e){return e.getParam("automatic_uploads",!0,"boolean")},qd=function(e){return e.getParam("images_reuse_filename",!1,"boolean")},Eb=function(e){return e.getParam("images_replace_blob_uris",!0,"boolean")},sy=function(e){return e.getParam("icons","","string")},yf=function(e){return e.getParam("icons_url","","string")},eo=function(e){return e.getParam("images_upload_url","","string")},is=function(e){return e.getParam("images_upload_base_path","","string")},lv=function(e){return e.getParam("images_upload_credentials",!1,"boolean")},yg=function(e){return e.getParam("images_upload_handler",null,"function")},F_=function(e){return e.getParam("content_css_cors",!1,"boolean")},Ab=function(e){return e.getParam("referrer_policy","","string")},ly=function(e){return e.getParam("language","en","string")},$_=function(e){return e.getParam("language_url","","string")},zb=function(e){return e.getParam("indent_use_margin",!1)},cy=function(e){return e.getParam("indentation","40px","string")},N_=function(e){var r=e.getParam("content_css");return Tr(r)?Cr(r.split(","),wo):ta(r)?r:r===!1||e.inline?[]:["default"]},Db=function(e){var r=e.getParam("font_css",[]);return ta(r)?r:Cr(r.split(","),wo)},L_=function(e){return e.getParam("directionality",Fr.isRtl()?"rtl":void 0)},Pb=function(e){return e.getParam("inline_boundaries_selector","a[href],code,.mce-annotation","string")},Rb=function(e){var r=e.getParam("object_resizing");return r===!1||Jt.iOS?!1:Tr(r)?r:"table,img,figure.image,div,video,iframe"},H_=function(e){return e.getParam("resize_img_proportional",!0,"boolean")},V_=function(e){return e.getParam("placeholder",E_.getAttrib(e.getElement(),"placeholder"),"string")},Mb=function(e){return e.getParam("event_root")},fy=function(e){return e.getParam("service_message")},Fl=function(e){return e.getParam("theme")},j_=function(e){return e.getParam("validate")},nh=function(e){return e.getParam("inline_boundaries")!==!1},q_=function(e){return e.getParam("formats")},U_=function(e){var r=e.getParam("preview_styles",ga);return Tr(r)?r:""},W_=function(e){return e.getParam("format_empty_lines",!1,"boolean")},xg=function(e){return e.getParam("custom_ui_selector","","string")},_g=function(e){return e.getParam("theme_url")},G_=function(e){return e.getParam("inline")},K_=function(e){return e.getParam("hidden_input")},Y_=function(e){return e.getParam("submit_patch")},X_=function(e){return e.getParam("encoding")==="xml"},J_=function(e){return e.getParam("add_form_submit_trigger")},Z_=function(e){return e.getParam("add_unload_trigger")},wg=function(e){return zo(e)!==""},Q_=function(e){return e.getParam("custom_undo_redo_levels",0,"number")},ew=function(e){return e.getParam("disable_nodechange")},tw=function(e){return e.getParam("readonly")},rw=function(e){return e.getParam("content_css_cors")},Bb=function(e){return e.getParam("plugins","","string")},nw=function(e){return e.getParam("external_plugins")},aw=function(e){return e.getParam("block_unsupported_drop",!0,"boolean")},ah=function(e){return e.getParam("visual",!0,"boolean")},iw=function(e){return e.getParam("visual_table_class","mce-item-table","string")},ow=function(e){return e.getParam("visual_anchor_class","mce-item-anchor","string")},vy=function(e){return e.getParam("iframe_aria_text","Rich Text Area. Press ALT-0 for help.","string")},dy=mr,Ib=Et,my=function(e){var r=e.parentNode;r&&r.removeChild(e)},hy=function(e){var r=ti(e);return{count:e.length-r.length,text:r}},Ud=function(e){for(var r;(r=e.data.lastIndexOf(ve))!==-1;)e.deleteData(r,1)},Fb=function(e,r){return cv(e),r},uw=function(e,r){var a=hy(e.data.substr(0,r.offset())),o=hy(e.data.substr(r.offset())),u=a.text+o.text;return u.length>0?(Ud(e),Be(e,r.offset()-a.count)):r},$b=function(e,r){var a=r.container(),o=Ma(xn(a.childNodes),e).map(function(u){return u<r.offset()?Be(a,r.offset()-1):r}).getOr(r);return cv(e),o},gy=function(e,r){return Ib(e)&&r.container()===e?uw(e,r):Fb(e,r)},Nb=function(e,r){return r.container()===e.parentNode?$b(e,r):Fb(e,r)},sw=function(e,r){return Be.isTextPosition(r)?gy(e,r):Nb(e,r)},cv=function(e){dy(e)&&ku(e)&&(Rm(e)?e.removeAttribute("data-mce-caret"):my(e)),Ib(e)&&(Ud(e),e.data.length===0&&my(e))},Lb=Ht().browser,Cg=ca,lw=vo,cw=Zc,fw="*[contentEditable=false],video,audio,embed,object",zu=function(e,r,a){var o=xb(r.getBoundingClientRect(),a),u,l;if(e.tagName==="BODY"){var m=e.ownerDocument.documentElement;u=e.scrollLeft||m.scrollLeft,l=e.scrollTop||m.scrollTop}else{var p=e.getBoundingClientRect();u=e.scrollLeft-p.left,l=e.scrollTop-p.top}o.left+=u,o.right+=u,o.top+=l,o.bottom+=l,o.width=1;var b=r.offsetWidth-r.clientWidth;return b>0&&(a&&(b*=-1),o.left+=b,o.right+=b),o},Hb=function(e){for(var r=mu(D.fromDom(e),fw),a=0;a<r.length;a++){var o=r[a].dom,u=o.previousSibling;if(Fh(u)){var l=u.data;l.length===1?u.parentNode.removeChild(u):u.deleteData(l.length-1,1)}if(u=o.nextSibling,Ih(u)){var l=u.data;l.length===1?u.parentNode.removeChild(u):u.deleteData(0,1)}}},vw=function(e,r,a,o){var u=av(),l,m,p=zo(e),b=p.length>0?p:"p",T=function(K,Z){var ie;if(R(),cw(Z))return null;if(a(Z)){m=Mm(b,Z,K);var ae=zu(r,Z,K);_r(m).css("top",ae.top);var ce=_r('<div class="mce-visual-caret" data-mce-bogus="all"></div>').css(rr({},ae)).appendTo(r)[0];u.set({caret:ce,element:Z,before:K}),K&&_r(ce).addClass("mce-visual-caret-before"),B(),ie=Z.ownerDocument.createRange(),ie.setStart(m,0),ie.setEnd(m,0)}else return m=Nv(Z,K),ie=Z.ownerDocument.createRange(),ih(m.nextSibling)?(ie.setStart(m,0),ie.setEnd(m,0)):(ie.setStart(m,1),ie.setEnd(m,1)),ie;return ie},R=function(){Hb(r),m&&(cv(m),m=null),u.on(function(K){_r(K.caret).remove(),u.clear()}),l&&(Ki.clearInterval(l),l=void 0)},B=function(){l=Ki.setInterval(function(){o()?_r("div.mce-visual-caret",r).toggleClass("mce-visual-caret-hidden"):_r("div.mce-visual-caret",r).addClass("mce-visual-caret-hidden")},500)},I=function(){u.on(function(K){var Z=zu(r,K.element,K.before);_r(K.caret).css(rr({},Z))})},j=function(){return Ki.clearInterval(l)},q=function(){return".mce-visual-caret {position: absolute;background-color: black;background-color: currentcolor;}.mce-visual-caret-hidden {display: none;}*[data-mce-caret] {position: absolute;left: -1000px;right: auto;top: 0;margin: 0;padding: 0;}"};return{show:T,hide:R,getCss:q,reposition:I,destroy:j}},Jo=function(){return Lb.isIE()||Lb.isEdge()||Lb.isFirefox()},ih=function(e){return Cg(e)||lw(e)},Zv=function(e){return ih(e)||qa(e)&&Jo()},oh=ca,py=vo,Vb=yd("display","block table table-cell table-caption list-item"),by=ku,jb=Ea,yy=mr,kg=Pl,Qv=function(e){return e>0},fv=function(e){return e<0},uh=function(e,r){for(var a;a=e(r);)if(!jb(a))return a;return null},Wd=function(e,r,a,o,u){var l=new Pn(e,o),m=oh(e)||jb(e);if(fv(r)){if(m&&(e=uh(l.prev.bind(l),!0),a(e)))return e;for(;e=uh(l.prev.bind(l),u);)if(a(e))return e}if(Qv(r)){if(m&&(e=uh(l.next.bind(l),!0),a(e)))return e;for(;e=uh(l.next.bind(l),u);)if(a(e))return e}return null},Sc=function(e,r){for(;e&&e!==r;){if(Vb(e))return e;e=e.parentNode}return null},Du=function(e,r,a){return Sc(e.container(),a)===Sc(r.container(),a)},Sg=function(e,r){if(!r)return null;var a=r.container(),o=r.offset();return yy(a)?a.childNodes[o+e]:null},qb=function(e,r){var a=r.ownerDocument.createRange();return e?(a.setStartBefore(r),a.setEndBefore(r)):(a.setStartAfter(r),a.setEndAfter(r)),a},xy=function(e,r,a){return Sc(r,e)===Sc(a,e)},Ub=function(e,r,a){for(var o=e?"previousSibling":"nextSibling";a&&a!==r;){var u=a[o];if(by(u)&&(u=u[o]),oh(u)||py(u)){if(xy(r,u,a))return u;break}if(kg(u))break;a=a.parentNode}return null},Gd=Pe(qb,!0),Kd=Pe(qb,!1),Tg=function(e,r,a){var o,u=Pe(Ub,!0,r),l=Pe(Ub,!1,r),m=a.startContainer,p=a.startOffset;if(Ea(m)){yy(m)||(m=m.parentNode);var b=m.getAttribute("data-mce-caret");if(b==="before"&&(o=m.nextSibling,Zv(o)))return Gd(o);if(b==="after"&&(o=m.previousSibling,Zv(o)))return Kd(o)}if(!a.collapsed)return a;if(Et(m)){if(by(m)){if(e===1){if(o=l(m),o)return Gd(o);if(o=u(m),o)return Kd(o)}if(e===-1){if(o=u(m),o)return Kd(o);if(o=l(m),o)return Gd(o)}return a}if(Fh(m)&&p>=m.data.length-1)return e===1&&(o=l(m),o)?Gd(o):a;if(Ih(m)&&p<=1)return e===-1&&(o=u(m),o)?Kd(o):a;if(p===m.data.length)return o=l(m),o?Gd(o):a;if(p===0)return o=u(m),o?Kd(o):a}return a},Wb=function(e,r){return X.from(Sg(e?0:-1,r)).filter(oh)},Yd=function(e,r,a){var o=Tg(e,r,a);return e===-1?Be.fromRangeStart(o):Be.fromRangeEnd(o)},sh=function(e){return X.from(e.getNode()).map(D.fromDom)},dw=function(e){return X.from(e.getNode(!0)).map(D.fromDom)},Gb=function(e,r){for(;r=e(r);)if(r.isVisible())return r;return r},Og=function(e,r){var a=Du(e,r);return!a&&wn(e.getNode())?!0:a},to;(function(e){e[e.Backwards=-1]="Backwards",e[e.Forwards=1]="Forwards"})(to||(to={}));var mw=ca,Tc=Et,_y=mr,Kb=wn,Xd=Pl,wy=Zx,lh=ri,f=function(e,r){for(var a=[];e&&e!==r;)a.push(e),e=e.parentNode;return a},d=function(e,r){return e.hasChildNodes()&&r<e.childNodes.length?e.childNodes[r]:null},x=function(e,r){if(Qv(e)){if(Xd(r.previousSibling)&&!Tc(r.previousSibling))return Be.before(r);if(Tc(r))return Be(r,0)}if(fv(e)){if(Xd(r.nextSibling)&&!Tc(r.nextSibling))return Be.after(r);if(Tc(r))return Be(r,r.data.length)}return fv(e)?Kb(r)?Be.before(r):Be.after(r):Be.before(r)},A=function(e,r){var a=r.nextSibling;return a&&Xd(a)?Tc(a)?Be(a,0):Be.before(a):H(to.Forwards,Be.after(r),e)},H=function(e,r,a){var o,u,l,m;if(!_y(a)||!r)return null;if(r.isEqual(Be.after(a))&&a.lastChild){if(m=Be.after(a.lastChild),fv(e)&&Xd(a.lastChild)&&_y(a.lastChild))return Kb(a.lastChild)?Be.before(a.lastChild):m}else m=r;var p=m.container(),b=m.offset();if(Tc(p)){if(fv(e)&&b>0)return Be(p,--b);if(Qv(e)&&b<p.length)return Be(p,++b);o=p}else{if(fv(e)&&b>0&&(u=d(p,b-1),Xd(u)))return!wy(u)&&(l=Wd(u,e,lh,u),l)?Tc(l)?Be(l,l.data.length):Be.after(l):Tc(u)?Be(u,u.data.length):Be.before(u);if(Qv(e)&&b<p.childNodes.length&&(u=d(p,b),Xd(u)))return Kb(u)?A(a,u):!wy(u)&&(l=Wd(u,e,lh,u),l)?Tc(l)?Be(l,0):Be.before(l):Tc(u)?Be(u,0):Be.after(u);o=u||m.getNode()}if((Qv(e)&&m.isAtEnd()||fv(e)&&m.isAtStart())&&(o=Wd(o,e,Mt,a,!0),lh(o,a)))return x(e,o);u=Wd(o,e,lh,a);var T=ju(tr(f(p,a),mw));return T&&(!u||!T.contains(u))?(Qv(e)?m=Be.after(T):m=Be.before(T),m):u?x(e,u):null},J=function(e){return{next:function(r){return H(to.Forwards,r,e)},prev:function(r){return H(to.Backwards,r,e)}}},oe=function(e,r,a){var o=e?Be.before(a):Be.after(a);return nr(e,r,o)},pe=function(e){return wn(e)?Be.before(e):Be.after(e)},Te=function(e){return Be.isTextPosition(e)?e.offset()===0:Pl(e.getNode())},vt=function(e){if(Be.isTextPosition(e)){var r=e.container();return e.offset()===r.data.length}else return Pl(e.getNode(!0))},dt=function(e,r){return!Be.isTextPosition(e)&&!Be.isTextPosition(r)&&e.getNode()===r.getNode(!0)},xt=function(e){return!Be.isTextPosition(e)&&wn(e.getNode())},jt=function(e,r,a){return e?!dt(r,a)&&!xt(r)&&vt(r)&&Te(a):!dt(a,r)&&Te(r)&&vt(a)},nr=function(e,r,a){var o=J(r);return X.from(e?o.next(a):o.prev(a))},Br=function(e,r,a){return nr(e,r,a).bind(function(o){return Du(a,o,r)&&jt(e,a,o)?nr(e,r,o):X.some(o)})},Yr=function(e,r,a,o){return Br(e,r,a).bind(function(u){return o(u)?Yr(e,r,u,o):X.some(u)})},Ar=function(e,r){var a=e?r.firstChild:r.lastChild;return Et(a)?X.some(Be(a,e?0:a.data.length)):a?Pl(a)?X.some(e?Be.before(a):pe(a)):oe(e,r,a):X.none()},Ur=Pe(nr,!0),cn=Pe(nr,!1),ka=Pe(Ar,!0),Ga=Pe(Ar,!1),Pu="_mce_caret",va=function(e){return mr(e)&&e.id===Pu},Zo=function(e,r){for(;r&&r!==e;){if(r.id===Pu)return r;r=r.parentNode}return null},xf=function(e){return Tr(e.start)},Yb=function(e){return $r(e,"rng")},pT=function(e){return $r(e,"id")},sD=function(e){return $r(e,"name")},bT=function(e){return Ie.isArray(e.start)},yT=function(e,r){return mr(r)&&e.isBlock(r)&&!r.innerHTML&&!Jt.ie&&(r.innerHTML='<br data-mce-bogus="1" />'),r},lD=function(e,r){var a,o=e.createRng();return a=gg(e.getRoot(),r.start),o.setStart(a.container(),a.offset()),a=gg(e.getRoot(),r.end),o.setEnd(a.container(),a.offset()),o},xT=function(e,r){var a=e.ownerDocument.createTextNode(ve);e.appendChild(a),r.setStart(a,0),r.setEnd(a,0)},cD=function(e){return e.hasChildNodes()===!1},_T=function(e,r){return Ga(e).fold(ot,function(a){return r.setStart(a.container(),a.offset()),r.setEnd(a.container(),a.offset()),!0})},wT=function(e,r,a){return cD(r)&&Zo(e,r)?(xT(r,a),!0):!1},CT=function(e,r,a,o){var u=a[r?"start":"end"],l,m,p,b,T=e.getRoot();if(u){for(p=u[0],m=T,l=u.length-1;l>=1;l--){if(b=m.childNodes,wT(T,m,o))return!0;if(u[l]>b.length-1)return wT(T,m,o)?!0:_T(m,o);m=b[u[l]]}m.nodeType===3&&(p=Math.min(u[0],m.nodeValue.length)),m.nodeType===1&&(p=Math.min(u[0],m.childNodes.length)),r?o.setStart(m,p):o.setEnd(m,p)}return!0},hw=function(e){return Et(e)&&e.data.length>0},kT=function(e,r,a){var o=e.get(a.id+"_"+r),u,l,m,p,b=a.keep,T,R;if(o){if(u=o.parentNode,r==="start"?(b?o.hasChildNodes()?(u=o.firstChild,l=1):hw(o.nextSibling)?(u=o.nextSibling,l=0):hw(o.previousSibling)?(u=o.previousSibling,l=o.previousSibling.data.length):(u=o.parentNode,l=e.nodeIndex(o)+1):l=e.nodeIndex(o),T=u,R=l):(b?o.hasChildNodes()?(u=o.firstChild,l=1):hw(o.previousSibling)?(u=o.previousSibling,l=o.previousSibling.data.length):(u=o.parentNode,l=e.nodeIndex(o)):l=e.nodeIndex(o),T=u,R=l),!b){for(p=o.previousSibling,m=o.nextSibling,Ie.each(Ie.grep(o.childNodes),function(B){Et(B)&&(B.nodeValue=B.nodeValue.replace(/\uFEFF/g,""))});o=e.get(a.id+"_"+r);)e.remove(o,!0);p&&m&&p.nodeType===m.nodeType&&Et(p)&&!Jt.opera&&(l=p.nodeValue.length,p.appendData(m.nodeValue),e.remove(m),T=p,R=l)}return X.some(Be(T,R))}else return X.none()},fD=function(e,r){var a=e.createRng();return CT(e,!0,r,a)&&CT(e,!1,r,a)?X.some(a):X.none()},vD=function(e,r){var a=kT(e,"start",r),o=kT(e,"end",r);return mo(a,o.or(a),function(u,l){var m=e.createRng();return m.setStart(yT(e,u.container()),u.offset()),m.setEnd(yT(e,l.container()),l.offset()),m})},en=function(e,r){return X.from(e.select(r.name)[r.index]).map(function(a){var o=e.createRng();return o.selectNode(a),o})},ch=function(e,r){var a=e.dom;if(r){if(bT(r))return fD(a,r);if(xf(r))return X.some(lD(a,r));if(pT(r))return vD(a,r);if(sD(r))return en(a,r);if(Yb(r))return X.some(r.rng)}return X.none()},Eg=function(e,r,a){return rl(e,r,a)},gw=function(e,r){ch(e,r).each(function(a){e.setRng(a)})},$l=function(e){return mr(e)&&e.tagName==="SPAN"&&e.getAttribute("data-mce-type")==="bookmark"},pw=function(e){return function(r){return e===r}},Xb=pw(ei),Jd=function(e){return e!==""&&` \f
36
36
  \r \v`.indexOf(e)!==-1},Jb=function(e){return!Jd(e)&&!Xb(e)},Zb=function(e){return!!e.nodeType},dD=function(e){return e&&/^(IMG)$/.test(e.nodeName)},ST=function(e,r,a){var o=a.startOffset,u=a.startContainer;if(!(u===a.endContainer&&dD(u.childNodes[o]))&&mr(u)){var l=u.childNodes,m=void 0;o<l.length?(u=l[o],m=new Pn(u,e.getParent(u,e.isBlock))):(u=l[l.length-1],m=new Pn(u,e.getParent(u,e.isBlock)),m.next(!0));for(var p=m.current();p;p=m.next())if(Et(p)&&!xw(p)){a.setStart(p,0),r.setRng(a);return}}},bw=function(e,r,a){if(e){var o=r?"nextSibling":"previousSibling";for(e=a?e:e[o];e;e=e[o])if(mr(e)||!xw(e))return e}},yw=function(e,r){return Zb(r)&&(r=r.nodeName),!!e.schema.getTextBlockElements()[r.toLowerCase()]},Ag=function(e,r,a){return e.schema.isValidChild(r,a)},xw=function(e,r){if(r===void 0&&(r=!1),vr(e)&&Et(e)){var a=r?e.data.replace(/ /g," "):e.data;return ys(a)}else return!1},TT=function(e){return vr(e)&&Et(e)&&e.length===0},ed=function(e,r){return Xt(e)?e=e(r):vr(r)&&(e=e.replace(/%(\w+)/g,function(a,o){return r[o]||a})),e},Cy=function(e,r){return e=e||"",r=r||"",e=""+(e.nodeName||e),r=""+(r.nodeName||r),e.toLowerCase()===r.toLowerCase()},_w=function(e,r,a){return(a==="color"||a==="backgroundColor")&&(r=e.toHex(r)),a==="fontWeight"&&r===700&&(r="bold"),a==="fontFamily"&&(r=r.replace(/[\'\"]/g,"").replace(/,\s+/g,",")),""+r},ky=function(e,r,a){return _w(e,e.getStyle(r,a),a)},ww=function(e,r){var a;return e.getParent(r,function(o){return a=e.getStyle(o,"text-decoration"),a&&a!=="none"}),a},Sy=function(e,r,a){return e.getParents(r,a,e.getRoot())},mD=function(e,r){var a=function(o){var u=function(l){return l.length>1&&l.charAt(0)==="%"};return Wr(["styles","attributes"],function(l){return ra(o,l).exists(function(m){var p=ta(m)?m:$f(m);return Wr(p,u)})})};return Wr(e.formatter.get(r),a)},hD=function(e,r,a){var o=["inline","block","selector","attributes","styles","classes"],u=function(l){return Ta(l,function(m,p){return Wr(o,function(b){return b===p})})};return Wr(e.formatter.get(r),function(l){var m=u(l);return Wr(e.formatter.get(a),function(p){var b=u(p);return Xl(m,b)})})},vv=function(e){return ou(e,"block")},nl=function(e){return ou(e,"selector")},Do=function(e){return ou(e,"inline")},gD=function(e){return nl(e)&&Do(e)&&Qc(ra(e,"mixed"),!0)},Cw=function(e){return nl(e)&&e.expand!==!1&&!Do(e)},zg=$l,OT=Sy,ET=xw,pD=yw,bD=function(e){return wn(e)&&e.getAttribute("data-mce-bogus")&&!e.nextSibling},AT=function(e,r){for(var a=r;a;){if(mr(a)&&e.getContentEditable(a))return e.getContentEditable(a)==="false"?a:r;a=a.parentNode}return r},pt=function(e,r,a,o){for(var u=r.data,l=a;e?l>=0:l<u.length;e?l--:l++)if(o(u.charAt(l)))return e?l+1:l;return-1},ro=function(e,r,a){return pt(e,r,a,function(o){return Xb(o)||Jd(o)})},Ty=function(e,r,a){return pt(e,r,a,Jb)},no=function(e,r,a,o,u,l){var m,p=e.getParent(a,e.isBlock)||r,b=function(R,B,I){var j=Xm(e),q=u?j.backwards:j.forwards;return X.from(q(R,B,function(K,Z){return zg(K.parentNode)?-1:(m=K,I(u,K,Z))},p))},T=b(a,o,ro);return T.bind(function(R){return l?b(R.container,R.offset+(u?-1:0),Ty):X.some(R)}).orThunk(function(){return m?X.some({container:m,offset:u?0:m.length}):X.none()})},Nl=function(e,r,a,o,u){Et(o)&&ec(o.data)&&o[u]&&(o=o[u]);for(var l=OT(e,o),m=0;m<l.length;m++)for(var p=0;p<r.length;p++){var b=r[p];if(!(vr(b.collapsed)&&b.collapsed!==a.collapsed)&&nl(b)&&e.is(l[m],b.selector))return l[m]}return o},kw=function(e,r,a,o){var u=a,l=e.dom,m=l.getRoot(),p=r[0];if(vv(p)&&(u=p.wrapper?null:l.getParent(a,p.block,m)),!u){var b=l.getParent(a,"LI,TD,TH");u=l.getParent(Et(a)?a.parentNode:a,function(T){return T!==m&&pD(e,T)},b)}if(u&&vv(p)&&p.wrapper&&(u=OT(l,u,"ul,ol").reverse()[0]||u),!u)for(u=a;u[o]&&!l.isBlock(u[o])&&(u=u[o],!Cy(u,"br")););return u||a},Qb=function(e,r,a,o){var u=a.parentNode;return vr(a[o])?!1:u===r||xr(u)||e.isBlock(u)?!0:Qb(e,r,u,o)},Dg=function(e,r,a,o,u){var l=a,m=u?"previousSibling":"nextSibling",p=e.getRoot();if(Et(a)&&!ET(a)&&(u?o>0:o<a.data.length))return a;for(;;){if(!r[0].block_expand&&e.isBlock(l))return l;for(var b=l[m];b;b=b[m]){var T=Et(b)&&!Qb(e,p,b,m);if(!zg(b)&&!bD(b)&&!ET(b,T))return l}if(l===p||l.parentNode===p){a=l;break}l=l.parentNode}return a},zT=function(e){return zg(e.parentNode)||zg(e)},Pg=function(e,r,a,o){o===void 0&&(o=!1);var u=r.startContainer,l=r.startOffset,m=r.endContainer,p=r.endOffset,b=e.dom,T=a[0];if(mr(u)&&u.hasChildNodes()&&(u=hf(u,l),Et(u)&&(l=0)),mr(m)&&m.hasChildNodes()&&(m=hf(m,r.collapsed?p:p-1),Et(m)&&(p=m.nodeValue.length)),u=AT(b,u),m=AT(b,m),zT(u)&&(u=zg(u)?u:u.parentNode,r.collapsed?u=u.previousSibling||u:u=u.nextSibling||u,Et(u)&&(l=r.collapsed?u.length:0)),zT(m)&&(m=zg(m)?m:m.parentNode,r.collapsed?m=m.nextSibling||m:m=m.previousSibling||m,Et(m)&&(p=r.collapsed?0:m.length)),r.collapsed){var R=no(b,e.getBody(),u,l,!0,o);R.each(function(I){var j=I.container,q=I.offset;u=j,l=q});var B=no(b,e.getBody(),m,p,!1,o);B.each(function(I){var j=I.container,q=I.offset;m=j,p=q})}return(Do(T)||T.block_expand)&&((!Do(T)||!Et(u)||l===0)&&(u=Dg(b,a,u,l,!0)),(!Do(T)||!Et(m)||p===m.nodeValue.length)&&(m=Dg(b,a,m,p,!1))),Cw(T)&&(u=Nl(b,a,r,u,"previousSibling"),m=Nl(b,a,r,m,"nextSibling")),(vv(T)||nl(T))&&(u=kw(e,a,u,"previousSibling"),m=kw(e,a,m,"nextSibling"),vv(T)&&(b.isBlock(u)||(u=Dg(b,a,u,l,!0)),b.isBlock(m)||(m=Dg(b,a,m,p,!1)))),mr(u)&&(l=b.nodeIndex(u),u=u.parentNode),mr(m)&&(p=b.nodeIndex(m)+1,m=m.parentNode),{startContainer:u,startOffset:l,endContainer:m,endOffset:p}},Rg=function(e,r,a){var o=r.startOffset,u=hf(r.startContainer,o),l=r.endOffset,m=hf(r.endContainer,l-1),p=function(K){var Z=K[0];Et(Z)&&Z===u&&o>=Z.data.length&&K.splice(0,1);var ie=K[K.length-1];return l===0&&K.length>0&&ie===m&&Et(ie)&&K.splice(K.length-1,1),K},b=function(K,Z,ie){for(var ae=[];K&&K!==ie;K=K[Z])ae.push(K);return ae},T=function(K,Z){return e.getParent(K,function(ie){return ie.parentNode===Z},Z)},R=function(K,Z,ie){for(var ae=ie?"nextSibling":"previousSibling",ce=K,be=ce.parentNode;ce&&ce!==Z;ce=be){be=ce.parentNode;var ue=b(ce===K?ce:ce[ae],ae);ue.length&&(ie||ue.reverse(),a(p(ue)))}};if(u===m)return a(p([u]));var B=e.findCommonAncestor(u,m);if(e.isChildOf(u,m))return R(u,B,!0);if(e.isChildOf(m,u))return R(m,B);var I=T(u,B)||u,j=T(m,B)||m;R(u,I,!0);var q=b(I===u?I:I.nextSibling,"nextSibling",j===m?j.nextSibling:j);q.length&&a(p(q)),R(m,j)},Sw=function(e){var r=[];if(e)for(var a=0;a<e.rangeCount;a++)r.push(e.getRangeAt(a));return r},yD=function(e){return Nu(e,function(r){var a=Nd(r);return a?[D.fromDom(a)]:[]})},xD=function(e){return Sw(e).length>1},DT=function(e){return tr(yD(e),Ws)},_D=function(e){return mu(e,"td[data-mce-selected],th[data-mce-selected]")},Tw=function(e,r){var a=_D(r);return a.length>0?a:DT(e)},td=function(e){return Tw(Sw(e.selection.getSel()),D.fromDom(e.getBody()))},Zd=function(e,r){return $v(e,"table",r)},Ow=function(e){var r=e.startContainer,a=e.startOffset;return Et(r)?a===0?X.some(D.fromDom(r)):X.none():X.from(r.childNodes[a]).map(D.fromDom)},Oy=function(e){var r=e.endContainer,a=e.endOffset;return Et(r)?a===r.data.length?X.some(D.fromDom(r)):X.none():X.from(r.childNodes[a-1]).map(D.fromDom)},Ey=function(e){return fi(e).fold(Se([e]),function(r){return[e].concat(Ey(r))})},Ew=function(e){return Ju(e).fold(Se([e]),function(r){return ja(r)==="br"?Vc(r).map(function(a){return[e].concat(Ew(a))}).getOr([]):[e].concat(Ew(r))})},Mg=function(e,r){return mo(Ow(r),Oy(r),function(a,o){var u=ma(Ey(e),Pe(Vn,a)),l=ma(Ew(e),Pe(Vn,o));return u.isSome()&&l.isSome()}).getOr(!1)},Bg=function(e,r,a,o){var u=a,l=new Pn(a,u),m=Ta(e.schema.getMoveCaretBeforeOnEnterElements(),function(p,b){return!Vt(["td","th","table"],b.toLowerCase())});do{if(Et(a)&&Ie.trim(a.nodeValue).length!==0){o?r.setStart(a,0):r.setEnd(a,a.nodeValue.length);return}if(m[a.nodeName]){o?r.setStartBefore(a):a.nodeName==="BR"?r.setEndBefore(a):r.setEndAfter(a);return}}while(a=o?l.next():l.prev());u.nodeName==="BODY"&&(o?r.setStart(u,0):r.setEnd(u,u.childNodes.length))},Ay=function(e){var r=e.selection.getSel();return r&&r.rangeCount>0},Aw=function(e,r){var a=td(e);a.length>0?ct(a,function(o){var u=o.dom,l=e.dom.createRng();l.setStartBefore(u),l.setEndAfter(u),r(l,!0)}):r(e.selection.getRng(),!1)},zw=function(e,r,a){var o=Tb(e,r);a(o),e.moveToBookmark(o)},wD=function(e,r){var a=function(l){if(!e(l))throw new Error("Can only get "+r+" value of a "+r+" node");return o(l).getOr("")},o=function(l){return e(l)?X.from(l.dom.nodeValue):X.none()},u=function(l,m){if(!e(l))throw new Error("Can only set raw "+r+" value of a "+r+" node");l.dom.nodeValue=m};return{get:a,getOption:o,set:u}},PT=wD($a,"text"),zy=function(e){return PT.get(e)},CD=function(e){return $a(e)&&zy(e)===ve},Dy=function(e,r,a,o){return _a(r).fold(function(){return"skipping"},function(u){return o==="br"||CD(r)?"valid":Zi(r)?"existing":va(r.dom)?"caret":!Ag(e,a,o)||!Ag(e,ja(u),a)?"invalid-child":"valid"})},Qo=function(e,r){var a=Pg(e,r,[{inline:"span"}]);r.setStart(a.startContainer,a.startOffset),r.setEnd(a.endContainer,a.endOffset),e.selection.setRng(r)},Ll=function(e,r,a,o){var u=r.uid,l=u===void 0?vg("mce-annotation"):u,m=Nf(r,["uid"]),p=D.fromTag("span",e);$d(p,cg()),S(p,""+hu(),l),S(p,""+wc(),a);var b=o(l,m),T=b.attributes,R=T===void 0?{}:T,B=b.classes,I=B===void 0?[]:B;return M(p,R),W0(p,I),p},_f=function(e,r,a,o,u){var l=[],m=Ll(e.getDoc(),u,a,o),p=av(),b=function(){p.clear()},T=function(){return p.get().getOrThunk(function(){var j=Ti(m);return l.push(j),p.set(j),j})},R=function(j){ct(j,B)},B=function(j){var q=Dy(e,j,"span",ja(j));switch(q){case"invalid-child":{b();var K=jo(j);R(K),b();break}case"valid":{var Z=T();Tl(j,Z);break}}},I=function(j){var q=Cr(j,D.fromDom);R(q)};return Rg(e.dom,r,function(j){b(),I(j)}),l},Py=function(e,r,a,o){e.undoManager.transact(function(){var u=e.selection,l=u.getRng(),m=td(e).length>0;if(l.collapsed&&!m&&Qo(e,l),u.getRng().collapsed&&!m){var p=Ll(e.getDoc(),o,r,a.decorate);Qi(p,ei),u.getRng().insertNode(p.dom),u.select(p.dom)}else zw(u,!1,function(){Aw(e,function(b){_f(e,b,r,a.decorate,o)})})})},Ry=function(e){var r=U0();q0(e,r);var a=j0(e);return{register:function(o,u){r.register(o,u)},annotate:function(o,u){r.lookup(o).each(function(l){Py(e,o,l,u)})},annotationChanged:function(o,u){a.addListener(o,u)},remove:function(o){Ym(e,X.some(o)).each(function(u){var l=u.elements;ct(l,qr)})},getAll:function(o){var u=ov(e,o);return Hu(u,function(l){return Cr(l,function(m){return m.dom})})}}},e1=function(e){return{getBookmark:Pe(Eg,e),moveToBookmark:Pe(gw,e)}};e1.isBookmarkNode=$l;var Qd=function(e,r){for(;r&&r!==e;){if(js(r)||ca(r))return r;r=r.parentNode}return null},Dw=function(e,r,a){if(a.collapsed)return!1;if(Jt.browser.isIE()&&a.startOffset===a.endOffset-1&&a.startContainer===a.endContainer){var o=a.startContainer.childNodes[a.startOffset];if(mr(o))return Wr(o.getClientRects(),function(u){return K0(u,e,r)})}return Wr(a.getClientRects(),function(u){return K0(u,e,r)})},Pw=function(e,r){return e.fire("PreProcess",r)},kD=function(e,r){return e.fire("PostProcess",r)},Rw=function(e){return e.fire("remove")},RT=function(e){return e.fire("detach")},MT=function(e,r){return e.fire("SwitchMode",{mode:r})},Mw=function(e,r,a,o,u){e.fire("ObjectResizeStart",{target:r,width:a,height:o,origin:u})},Bw=function(e,r,a,o,u){e.fire("ObjectResized",{target:r,width:a,height:o,origin:u})},ea=function(e){return e.fire("PreInit")},dv=function(e){return e.fire("PostRender")},BT=function(e){return e.fire("Init")},IT=function(e,r){return e.fire("PlaceholderToggle",{state:r})},Iw=function(e,r,a){return e.fire(r,a)},My=function(e,r,a,o){return e.fire("FormatApply",{format:r,node:a,vars:o})},By=function(e,r,a,o){return e.fire("FormatRemove",{format:r,node:a,vars:o})},ir={BACKSPACE:8,DELETE:46,DOWN:40,ENTER:13,ESC:27,LEFT:37,RIGHT:39,SPACEBAR:32,TAB:9,UP:38,PAGE_UP:33,PAGE_DOWN:34,END:35,HOME:36,modifierPressed:function(e){return e.shiftKey||e.ctrlKey||e.altKey||ir.metaKeyPressed(e)},metaKeyPressed:function(e){return Jt.mac?e.metaKey:e.ctrlKey&&!e.altKey}},SD=ca,FT=function(e,r){var a="data-mce-selected",o=r.dom,u=Ie.each,l,m,p,b,T,R,B,I,j,q,K,Z,ie,ae,ce,be=r.getDoc(),ue=document,xe=Math.abs,Re=Math.round,tt=r.getBody(),ar,Ct,Ze={nw:[0,0,-1,-1],ne:[1,0,1,-1],se:[1,1,1,1],sw:[0,1,-1,1]},lr=function(Ae){return Ae&&(Ae.nodeName==="IMG"||r.dom.is(Ae,"figure.image"))},at=function(Ae){return vo(Ae)||o.hasClass(Ae,"mce-preview-object")},kt=function(Ae,Bt){if(Ae.type==="longpress"||Ae.type.indexOf("touch")===0){var gt=Ae.touches[0];return lr(Ae.target)&&!Dw(gt.clientX,gt.clientY,Bt)}else return lr(Ae.target)&&!Dw(Ae.clientX,Ae.clientY,Bt)},Je=function(Ae){var Bt=Ae.target;kt(Ae,r.selection.getRng())&&!Ae.isDefaultPrevented()&&r.selection.select(Bt)},ht=function(Ae){return o.is(Ae,"figure.image")?[Ae.querySelector("img")]:o.hasClass(Ae,"mce-preview-object")&&vr(Ae.firstElementChild)?[Ae,Ae.firstElementChild]:[Ae]},It=function(Ae){var Bt=Rb(r);return!Bt||Ae.getAttribute("data-mce-resize")==="false"||Ae===r.getBody()?!1:o.hasClass(Ae,"mce-preview-object")?li(D.fromDom(Ae.firstElementChild),Bt):li(D.fromDom(Ae),Bt)},Ve=function(Ae){return at(Ae)?o.create("img",{src:Jt.transparentSrc}):Ae.cloneNode(!0)},zt=function(Ae,Bt,gt){if(vr(gt)){var or=ht(Ae);ct(or,function(Lr){Lr.style[Bt]||!r.schema.isValid(Lr.nodeName.toLowerCase(),Bt)?o.setStyle(Lr,Bt,gt):o.setAttrib(Lr,Bt,""+gt)})}},Pr=function(Ae,Bt,gt){zt(Ae,"width",Bt),zt(Ae,"height",gt)},On=function(Ae){var Bt,gt,or,Lr,pa;Bt=Ae.screenX-R,gt=Ae.screenY-B,ae=Bt*b[2]+q,ce=gt*b[3]+K,ae=ae<5?5:ae,ce=ce<5?5:ce,(lr(l)||at(l))&&H_(r)!==!1?or=!ir.modifierPressed(Ae):or=ir.modifierPressed(Ae),or&&(xe(Bt)>xe(gt)?(ce=Re(ae*Z),ae=Re(ce/Z)):(ae=Re(ce/Z),ce=Re(ae*Z))),Pr(m,ae,ce),Lr=b.startPos.x+Bt,pa=b.startPos.y+gt,Lr=Lr>0?Lr:0,pa=pa>0?pa:0,o.setStyles(p,{left:Lr,top:pa,display:"block"}),p.innerHTML=ae+" &times; "+ce,b[2]<0&&m.clientWidth<=ae&&o.setStyle(m,"left",I+(q-ae)),b[3]<0&&m.clientHeight<=ce&&o.setStyle(m,"top",j+(K-ce)),Bt=tt.scrollWidth-ar,gt=tt.scrollHeight-Ct,Bt+gt!==0&&o.setStyles(p,{left:Lr-Bt,top:pa-gt}),ie||(Mw(r,l,q,K,"corner-"+b.name),ie=!0)},nn=function(){var Ae=ie;ie=!1,Ae&&(zt(l,"width",ae),zt(l,"height",ce)),o.unbind(be,"mousemove",On),o.unbind(be,"mouseup",nn),ue!==be&&(o.unbind(ue,"mousemove",On),o.unbind(ue,"mouseup",nn)),o.remove(m),o.remove(p),o.remove(T),oi(l),Ae&&(Bw(r,l,ae,ce,"corner-"+b.name),o.setAttrib(l,"style",o.getAttrib(l,"style"))),r.nodeChanged()},oi=function(Ae){Ke();var Bt=o.getPos(Ae,tt),gt=Bt.x,or=Bt.y,Lr=Ae.getBoundingClientRect(),pa=Lr.width||Lr.right-Lr.left,nu=Lr.height||Lr.bottom-Lr.top;l!==Ae&&(La(),l=Ae,ae=ce=0);var Iu=r.fire("ObjectSelected",{target:Ae}),Gl=o.getAttrib(l,a,"1");It(Ae)&&!Iu.isDefaultPrevented()?u(Ze,function(au,Fu){var Vi,zf=function(bo){var Df=ht(l)[0];R=bo.screenX,B=bo.screenY,q=Df.clientWidth,K=Df.clientHeight,Z=K/q,b=au,b.name=Fu,b.startPos={x:pa*au[0]+gt,y:nu*au[1]+or},ar=tt.scrollWidth,Ct=tt.scrollHeight,T=o.add(tt,"div",{class:"mce-resize-backdrop","data-mce-bogus":"all"}),o.setStyles(T,{position:"fixed",left:"0",top:"0",width:"100%",height:"100%"}),m=Ve(l),o.addClass(m,"mce-clonedresizable"),o.setAttrib(m,"data-mce-bogus","all"),m.contentEditable="false",o.setStyles(m,{left:gt,top:or,margin:0}),Pr(m,pa,nu),m.removeAttribute(a),tt.appendChild(m),o.bind(be,"mousemove",On),o.bind(be,"mouseup",nn),ue!==be&&(o.bind(ue,"mousemove",On),o.bind(ue,"mouseup",nn)),p=o.add(tt,"div",{class:"mce-resize-helper","data-mce-bogus":"all"},q+" &times; "+K)};Vi=o.get("mceResizeHandle"+Fu),Vi&&o.remove(Vi),Vi=o.add(tt,"div",{id:"mceResizeHandle"+Fu,"data-mce-bogus":"all",class:"mce-resizehandle",unselectable:!0,style:"cursor:"+Fu+"-resize; margin:0; padding:0"}),Jt.ie===11&&(Vi.contentEditable=!1),o.bind(Vi,"mousedown",function(bo){bo.stopImmediatePropagation(),bo.preventDefault(),zf(bo)}),au.elm=Vi,o.setStyles(Vi,{left:pa*au[0]+gt-Vi.offsetWidth/2,top:nu*au[1]+or-Vi.offsetHeight/2})}):La(),o.getAttrib(l,a)||l.setAttribute(a,Gl)},La=function(){Ke(),l&&l.removeAttribute(a),oa(Ze,function(Ae,Bt){var gt=o.get("mceResizeHandle"+Bt);gt&&(o.unbind(gt),o.remove(gt))})},us=function(Ae){var Bt,gt,or=function(Lr,pa){if(Lr)do if(Lr===pa)return!0;while(Lr=Lr.parentNode)};if(!(ie||r.removed)){if(u(o.select("img[data-mce-selected],hr[data-mce-selected]"),function(Lr){Lr.removeAttribute(a)}),gt=Ae.type==="mousedown"?Ae.target:e.getNode(),gt=o.$(gt).closest("table,img,figure.image,hr,video,span.mce-preview-object")[0],or(gt,tt)&&(Oe(),Bt=e.getStart(!0),or(Bt,gt)&&or(e.getEnd(!0),gt))){oi(gt);return}La()}},Rs=function(Ae){return SD(Qd(r.getBody(),Ae))},Ke=function(){oa(Ze,function(Ae){Ae.elm&&(o.unbind(Ae.elm),delete Ae.elm)})},Oe=function(){try{r.getDoc().execCommand("enableObjectResizing",!1,"false")}catch{}};r.on("init",function(){if(Oe(),Jt.browser.isIE()||Jt.browser.isEdge()){r.on("mousedown click",function(gt){var or=gt.target,Lr=or.nodeName;!ie&&/^(TABLE|IMG|HR)$/.test(Lr)&&!Rs(or)&&(gt.button!==2&&r.selection.select(or,Lr==="TABLE"),gt.type==="mousedown"&&r.nodeChanged())});var Ae=function(gt){var or=function(Lr){Ki.setEditorTimeout(r,function(){return r.selection.select(Lr)})};if(Rs(gt.target)||vo(gt.target)){gt.preventDefault(),or(gt.target);return}/^(TABLE|IMG|HR)$/.test(gt.target.nodeName)&&(gt.preventDefault(),gt.target.tagName==="IMG"&&or(gt.target))};o.bind(tt,"mscontrolselect",Ae),r.on("remove",function(){return o.unbind(tt,"mscontrolselect",Ae)})}var Bt=Ki.throttle(function(gt){r.composing||us(gt)});r.on("nodechange ResizeEditor ResizeWindow ResizeContent drop FullscreenStateChanged",Bt),r.on("keyup compositionend",function(gt){l&&l.nodeName==="TABLE"&&Bt(gt)}),r.on("hide blur",La),r.on("contextmenu longpress",Je,!0)}),r.on("remove",Ke);var Qe=function(){l=m=T=null};return{isResizable:It,showResizeRect:oi,hideResizeRect:La,updateResizeRect:us,destroy:Qe}},$T=function(e){return js(e)||ca(e)},TD=function(e,r,a){for(;e&&e!==r;){if(a(e))return e;e=e.parentNode}return null},Fw=function(e,r,a){var o,u=a.elementFromPoint(e,r),l=a.body.createTextRange();if((!u||u.tagName==="HTML")&&(u=a.body),l.moveToElementText(u),o=Ie.toArray(l.getClientRects()),o=o.sort(function(m,p){return m=Math.abs(Math.max(m.top-r,m.bottom-r)),p=Math.abs(Math.max(p.top-r,p.bottom-r)),m-p}),o.length>0){r=(o[0].bottom+o[0].top)/2;try{return l.moveToPoint(e,r),l.collapse(!0),l}catch{}}return null},OD=function(e,r){var a=e&&e.parentElement?e.parentElement():null;return ca(TD(a,r,$T))?null:e},Iy=function(e,r,a){var o,u,l=a;if(l.caretPositionFromPoint)u=l.caretPositionFromPoint(e,r),u&&(o=a.createRange(),o.setStart(u.offsetNode,u.offset),o.collapse(!0));else if(l.caretRangeFromPoint)o=l.caretRangeFromPoint(e,r);else if(l.body.createTextRange){o=l.body.createTextRange();try{o.moveToPoint(e,r),o.collapse(!0)}catch{o=Fw(e,r,a)}return OD(o,a.body)}return o},$w=function(e,r){return e&&r&&e.startContainer===r.startContainer&&e.startOffset===r.startOffset&&e.endContainer===r.endContainer&&e.endOffset===r.endOffset},ED=function(e,r,a){for(;e&&e!==r;){if(a(e))return e;e=e.parentNode}return null},NT=function(e,r,a){return ED(e,r,a)!==null},Hl=function(e,r,a){return NT(e,r,function(o){return o.nodeName===a})},eu=function(e){return e&&e.nodeName==="TABLE"},Ig=function(e){return e&&/^(TD|TH|CAPTION)$/.test(e.nodeName)},AD=function(e,r){return ku(e)&&NT(e,r,va)===!1},LT=function(e,r,a){for(var o=new Pn(r,e.getParent(r.parentNode,e.isBlock)||e.getRoot());r=o[a?"prev":"next"]();)if(wn(r))return!0},zD=function(e,r){return e.previousSibling&&e.previousSibling.nodeName===r},Xr=function(e,r){for(;r&&r!==e;){if(ca(r))return!0;r=r.parentNode}return!1},Nw=function(e,r,a,o,u){var l,m=e.getRoot(),p,b=e.schema.getNonEmptyElements(),T=e.getParent(u.parentNode,e.isBlock)||m;if(o&&wn(u)&&r&&e.isEmpty(T))return X.some(Be(u.parentNode,e.nodeIndex(u)));for(var R=new Pn(u,T);p=R[o?"prev":"next"]();){if(e.getContentEditableParent(p)==="false"||AD(p,m))return X.none();if(Et(p)&&p.nodeValue.length>0)return Hl(p,m,"A")===!1?X.some(Be(p,o?p.nodeValue.length:0)):X.none();if(e.isBlock(p)||b[p.nodeName.toLowerCase()])return X.none();l=p}return a&&l?X.some(Be(l,0)):X.none()},Lw=function(e,r,a,o){var u,l,m=e.getRoot(),p,b,T=!1;u=o[(a?"start":"end")+"Container"],l=o[(a?"start":"end")+"Offset"];var R=mr(u)&&l===u.childNodes.length,B=e.schema.getNonEmptyElements();if(b=a,ku(u))return X.none();if(mr(u)&&l>u.childNodes.length-1&&(b=!1),Jc(u)&&(u=m,l=0),u===m){if(b&&(p=u.childNodes[l>0?l-1:0],p&&(ku(p)||B[p.nodeName]||eu(p))))return X.none();if(u.hasChildNodes()){if(l=Math.min(!b&&l>0?l-1:l,u.childNodes.length-1),u=u.childNodes[l],l=Et(u)&&R?u.data.length:0,!r&&u===m.lastChild&&eu(u)||Xr(m,u)||ku(u))return X.none();if(u.hasChildNodes()&&eu(u)===!1){p=u;var I=new Pn(u,m);do{if(ca(p)||ku(p)){T=!1;break}if(Et(p)&&p.nodeValue.length>0){l=b?0:p.nodeValue.length,u=p,T=!0;break}if(B[p.nodeName.toLowerCase()]&&!Ig(p)){l=e.nodeIndex(p),u=p.parentNode,b||l++,T=!0;break}}while(p=b?I.next():I.prev())}}}return r&&(Et(u)&&l===0&&Nw(e,R,r,!0,u).each(function(j){u=j.container(),l=j.offset(),T=!0}),mr(u)&&(p=u.childNodes[l],p||(p=u.childNodes[l-1]),p&&wn(p)&&!zD(p,"A")&&!LT(e,p,!1)&&!LT(e,p,!0)&&Nw(e,R,r,!0,p).each(function(j){u=j.container(),l=j.offset(),T=!0}))),b&&!r&&Et(u)&&l===u.nodeValue.length&&Nw(e,R,r,!1,u).each(function(j){u=j.container(),l=j.offset(),T=!0}),T?X.some(Be(u,l)):X.none()},Fg=function(e,r){var a=r.collapsed,o=r.cloneRange(),u=Be.fromRangeStart(r);return Lw(e,a,!0,o).each(function(l){(!a||!Be.isAbove(u,l))&&o.setStart(l.container(),l.offset())}),a||Lw(e,a,!1,o).each(function(l){o.setEnd(l.container(),l.offset())}),a&&o.collapse(!0),$w(r,o)?X.none():X.some(o)},Fy=function(e,r){return e.splitText(r)},$y=function(e){var r=e.startContainer,a=e.startOffset,o=e.endContainer,u=e.endOffset;return r===o&&Et(r)?a>0&&a<r.nodeValue.length&&(o=Fy(r,a),r=o.previousSibling,u>a?(u=u-a,r=o=Fy(o,u).previousSibling,u=o.nodeValue.length,a=0):u=0):(Et(r)&&a>0&&a<r.nodeValue.length&&(r=Fy(r,a),a=0),Et(o)&&u>0&&u<o.nodeValue.length&&(o=Fy(o,u).previousSibling,u=o.nodeValue.length)),{startContainer:r,startOffset:a,endContainer:o,endOffset:u}},t1=function(e){var r=function(u,l){return Rg(e,u,l)},a=$y,o=function(u){return Fg(e,u).fold(ot,function(l){return u.setStart(l.startContainer,l.startOffset),u.setEnd(l.endContainer,l.endOffset),!0})};return{walk:r,split:a,normalize:o}};t1.compareRanges=$w,t1.getCaretRangeFromPoint=Iy,t1.getSelectedNode=Nd,t1.getNode=hf;var DD=function(e,r){var a=function(p,b){if(!Gt(b)&&!b.match(/^[0-9]+$/))throw new Error(e+".set accepts only positive integer values. Value was "+b);var T=p.dom;Gr(T)&&(T.style[e]=b+"px")},o=function(p){var b=r(p);if(b<=0||b===null){var T=zr(p,e);return parseFloat(T)||0}return b},u=o,l=function(p,b){return Xn(b,function(T,R){var B=zr(p,R),I=B===void 0?0:parseInt(B,10);return isNaN(I)?T:T+I},0)},m=function(p,b,T){var R=l(p,T),B=b>R?b-R:0;return B};return{set:a,get:o,getOuter:u,aggregate:l,max:m}},PD=DD("height",function(e){var r=e.dom;return Dn(e)?r.getBoundingClientRect().height:r.offsetHeight}),RD=function(e){return PD.get(e)},Ny=function(e,r){var a=e.view(r);return a.fold(Se([]),function(o){var u=e.owner(o),l=Ny(e,u);return[o].concat(l)})},Hw=function(e,r){var a=r.owner(e);return Ny(r,a)},HT=function(e){var r,a=e.dom===document?X.none():X.from((r=e.dom.defaultView)===null||r===void 0?void 0:r.frameElement);return a.map(D.fromDom)},MD=function(e){return pr(e)},BD=Object.freeze({__proto__:null,view:HT,owner:MD}),ID=function(e){var r=D.fromDom(document),a=Am(r),o=Hw(e,BD),u=wu(e),l=Fn(o,function(m,p){var b=wu(p);return{left:m.left+b.left,top:m.top+b.top}},{left:0,top:0});return qn(l.left+u.left+a.left,l.top+u.top+a.top)},Vw=function(e){return ja(e)==="textarea"},FD=function(e,r){var a=e.fire("ScrollIntoView",r);return a.isDefaultPrevented()},$D=function(e,r){e.fire("AfterScrollIntoView",r)},Qt=function(e,r){var a=jo(e);if(a.length===0||Vw(e))return{element:e,offset:r};if(r<a.length&&!Vw(a[r]))return{element:a[r],offset:0};var o=a[a.length-1];return Vw(o)?{element:e,offset:r}:ja(o)==="img"?{element:o,offset:1}:$a(o)?{element:o,offset:zy(o).length}:{element:o,offset:jo(o).length}},jw=function(e,r){var a=Uo(e),o=RD(e);return{element:e,bottom:a.top+o,height:o,pos:a,cleanup:r}},ND=function(e,r){var a=Qt(e,r),o=D.fromHtml('<span data-mce-bogus="all" style="display: inline-block;">'+ve+"</span>");return ms(a.element,o),jw(o,function(){return Rt(o)})},LD=function(e){return jw(D.fromDom(e),_t)},$g=function(e,r,a,o){VD(e,function(u,l){return HD(e,r,a,o)},a)},VT=function(e,r,a,o,u){var l={elm:o.element.dom,alignToTop:u};if(!FD(e,l)){var m=Am(r).top;a(r,m,o,u),$D(e,l)}},HD=function(e,r,a,o){var u=D.fromDom(e.getBody()),l=D.fromDom(e.getDoc());qx(u);var m=ND(D.fromDom(a.startContainer),a.startOffset);VT(e,l,r,m,o),m.cleanup()},jT=function(e,r,a,o){var u=D.fromDom(e.getDoc());VT(e,u,a,LD(r),o)},VD=function(e,r,a){var o=a.startContainer,u=a.startOffset,l=a.endContainer,m=a.endOffset;r(D.fromDom(o),D.fromDom(l));var p=e.dom.createRng();p.setStart(o,u),p.setEnd(l,m),e.selection.setRng(a)},r1=function(e,r,a,o){var u=e.pos;if(a)fo(u.left,u.top,o);else{var l=u.top-r+e.height;fo(u.left,l,o)}},qT=function(e,r,a,o,u){var l=a+r,m=o.pos.top,p=o.bottom,b=p-m>=a;if(m<r)r1(o,a,u!==!1,e);else if(m>l){var T=b?u!==!1:u===!0;r1(o,a,T,e)}else p>l&&!b&&r1(o,a,u===!0,e)},UT=function(e,r,a,o){var u=e.dom.defaultView.innerHeight;qT(e,r,u,a,o)},qw=function(e,r,a,o){var u=e.dom.defaultView.innerHeight;qT(e,r,u,a,o);var l=ID(a.element),m=Bv(window);l.top<m.y?Gc(a.element,o!==!1):l.top>m.bottom&&Gc(a.element,o===!0)},WT=function(e,r,a){return $g(e,UT,r,a)},GT=function(e,r,a){return jT(e,r,UT,a)},jD=function(e,r,a){return $g(e,qw,r,a)},qD=function(e,r,a){return jT(e,r,qw,a)},KT=function(e,r,a){var o=e.inline?GT:qD;o(e,r,a)},n1=function(e,r,a){var o=e.inline?WT:jD;o(e,r,a)},UD=function(){return D.fromDom(document)},Sn=function(e){return e.dom.focus()},YT=function(e){var r=qo(e).dom;return e.dom===r.activeElement},mv=function(e){return e===void 0&&(e=UD()),X.from(e.dom.activeElement).map(D.fromDom)},hv=function(e){return mv(qo(e)).filter(function(r){return e.dom.contains(r.dom)})},Ly=function(e,r,a,o){return{start:e,soffset:r,finish:a,foffset:o}},As={create:Ly},Ng=Ut.generate([{before:["element"]},{on:["element","offset"]},{after:["element"]}]),a1=function(e,r,a,o){return e.fold(r,a,o)},Hy=function(e){return e.fold(Xe,Xe,Xe)},Lg=Ng.before,WD=Ng.on,GD=Ng.after,KD={before:Lg,on:WD,after:GD,cata:a1,getStart:Hy},Vy=Ut.generate([{domRange:["rng"]},{relative:["startSitu","finishSitu"]},{exact:["start","soffset","finish","foffset"]}]),Jr=function(e){return Vy.exact(e.start,e.soffset,e.finish,e.foffset)},wf=function(e){return e.match({domRange:function(r){return D.fromDom(r.startContainer)},relative:function(r,a){return KD.getStart(r)},exact:function(r,a,o,u){return r}})},Hg=Vy.domRange,YD=Vy.relative,i1=Vy.exact,sn=function(e){var r=wf(e);return Hs(r)},XD=As.create,Uw={domRange:Hg,relative:YD,exact:i1,exactFromRange:Jr,getWin:sn,range:XD},jy=Ht().browser,Ww=function(e,r){var a=$a(r)?zy(r).length:jo(r).length+1;return e>a?a:e<0?0:e},qy=function(e){return Uw.range(e.start,Ww(e.soffset,e.start),e.finish,Ww(e.foffset,e.finish))},em=function(e,r){return!Yc(r.dom)&&(Fa(e,r)||Vn(e,r))},Uy=function(e){return function(r){return em(e,r.start)&&em(e,r.finish)}},XT=function(e){return e.inline===!0||jy.isIE()},JT=function(e){return Uw.range(D.fromDom(e.startContainer),e.startOffset,D.fromDom(e.endContainer),e.endOffset)},JD=function(e){var r=e.getSelection(),a=!r||r.rangeCount===0?X.none():X.from(r.getRangeAt(0));return a.map(JT)},o1=function(e){var r=Hs(e);return JD(r.dom).filter(Uy(e))},Vg=function(e,r){return X.from(r).filter(Uy(e)).map(qy)},ZD=function(e){var r=document.createRange();try{return r.setStart(e.start.dom,e.soffset),r.setEnd(e.finish.dom,e.foffset),X.some(r)}catch{return X.none()}},u1=function(e){var r=XT(e)?o1(D.fromDom(e.getBody())):X.none();e.bookmark=r.isSome()?r:e.bookmark},QD=function(e,r){var a=D.fromDom(e.getBody()),o=XT(e)?X.from(r):X.none(),u=o.map(JT).filter(Uy(a));e.bookmark=u.isSome()?u:e.bookmark},Gw=function(e){var r=e.bookmark?e.bookmark:X.none();return r.bind(function(a){return Vg(D.fromDom(e.getBody()),a)}).bind(ZD)},eP=function(e){Gw(e).each(function(r){return e.selection.setRng(r)})},ZT=function(e){var r=e.className.toString();return r.indexOf("tox-")!==-1||r.indexOf("mce-")!==-1},QT={isEditorUIElement:ZT},tP=function(e){return e.type==="nodechange"&&e.selectionChange},e4=function(e,r){var a=function(){r.throttle()};ua.DOM.bind(document,"mouseup",a),e.on("remove",function(){ua.DOM.unbind(document,"mouseup",a)})},Kw=function(e){e.on("focusout",function(){u1(e)})},Yw=function(e,r){e.on("mouseup touchend",function(a){r.throttle()})},Xw=function(e,r){var a=Ht().browser;a.isIE()?Kw(e):Yw(e,r),e.on("keyup NodeChange",function(o){tP(o)||u1(e)})},t4=function(e){var r=Yn(function(){u1(e)},0);e.on("init",function(){e.inline&&e4(e,r),Xw(e,r)}),e.on("remove",function(){r.cancel()})},jg,Wy=ua.DOM,Gy=function(e){return QT.isEditorUIElement(e)},rP=function(e){var r=e.classList;return r!==void 0?r.contains("tox-edit-area")||r.contains("tox-edit-area__iframe")||r.contains("mce-content-body"):!1},s1=function(e,r){var a=xg(e),o=Wy.getParent(r,function(u){return Gy(u)||(a?e.dom.is(u,a):!1)});return o!==null},nP=function(e){try{var r=qo(D.fromDom(e.getElement()));return mv(r).fold(function(){return document.body},function(a){return a.dom})}catch{return document.body}},r4=function(e,r){var a=r.editor;t4(a),a.on("focusin",function(){var o=e.focusedEditor;o!==a&&(o&&o.fire("blur",{focusedEditor:a}),e.setActive(a),e.focusedEditor=a,a.fire("focus",{blurredEditor:o}),a.focus(!0))}),a.on("focusout",function(){Ki.setEditorTimeout(a,function(){var o=e.focusedEditor;!s1(a,nP(a))&&o===a&&(a.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})}),jg||(jg=function(o){var u=e.activeEditor;u&&co(o).each(function(l){l.ownerDocument===document&&l!==document.body&&!s1(u,l)&&e.focusedEditor===u&&(u.fire("blur",{focusedEditor:null}),e.focusedEditor=null)})},Wy.bind(document,"focusin",jg))},n4=function(e,r){e.focusedEditor===r.editor&&(e.focusedEditor=null),e.activeEditor||(Wy.unbind(document,"focusin",jg),jg=null)},a4=function(e){e.on("AddEditor",Pe(r4,e)),e.on("RemoveEditor",Pe(n4,e))},i4=function(e,r){return e.dom.getParent(r,function(a){return e.dom.getContentEditable(a)==="true"})},o4=function(e){return e.collapsed?X.from(hf(e.startContainer,e.startOffset)).map(D.fromDom):X.none()},aP=function(e,r){return o4(r).bind(function(a){return pn(a)?X.some(a):Fa(e,a)===!1?X.some(e):X.none()})},u4=function(e,r){aP(D.fromDom(e.getBody()),r).bind(function(a){return ka(a.dom)}).fold(function(){e.selection.normalize()},function(a){return e.selection.setRng(a.toRange())})},Jw=function(e){if(e.setActive)try{e.setActive()}catch{e.focus()}else e.focus()},iP=function(e){return YT(e)||hv(e).isSome()},oP=function(e){return e.iframeElement&&YT(D.fromDom(e.iframeElement))},uP=function(e){var r=e.getBody();return r&&iP(D.fromDom(r))},sP=function(e){var r=qo(D.fromDom(e.getElement()));return mv(r).filter(function(a){return!rP(a.dom)&&s1(e,a.dom)}).isSome()},fh=function(e){return e.inline?uP(e):oP(e)},Ky=function(e){return fh(e)||sP(e)},s4=function(e){var r=e.selection,a=e.getBody(),o=r.getRng();e.quirks.refreshContentEditable(),e.bookmark!==void 0&&fh(e)===!1&&Gw(e).each(function(l){e.selection.setRng(l),o=l});var u=i4(e,r.getNode());if(e.$.contains(a,u)){Jw(u),u4(e,o),Zw(e);return}e.inline||(Jt.opera||Jw(a),e.getWin().focus()),(Jt.gecko||e.inline)&&(Jw(a),u4(e,o)),Zw(e)},Zw=function(e){return e.editorManager.setActive(e)},l4=function(e,r){e.removed||(r?Zw(e):s4(e))},Qw=function(e,r,a,o,u){var l=a?r.startContainer:r.endContainer,m=a?r.startOffset:r.endOffset;return X.from(l).map(D.fromDom).map(function(p){return!o||!r.collapsed?Xu(p,u(p,m)).getOr(p):p}).bind(function(p){return la(p)?X.some(p):_a(p).filter(la)}).map(function(p){return p.dom}).getOr(e)},c4=function(e,r,a){return Qw(e,r,!0,a,function(o,u){return Math.min(pd(o),u)})},f4=function(e,r,a){return Qw(e,r,!1,a,function(o,u){return u>0?u-1:u})},v4=function(e,r){for(var a=e;e&&Et(e)&&e.length===0;)e=r?e.nextSibling:e.previousSibling;return e||a},lP=function(e,r){var a,o,u;if(!r)return e;o=r.startContainer,u=r.endContainer;var l=r.startOffset,m=r.endOffset;return a=r.commonAncestorContainer,!r.collapsed&&(o===u&&m-l<2&&o.hasChildNodes()&&(a=o.childNodes[l]),o.nodeType===3&&u.nodeType===3&&(o.length===l?o=v4(o.nextSibling,!0):o=o.parentNode,m===0?u=v4(u.previousSibling,!1):u=u.parentNode,o&&o===u))?o:a&&a.nodeType===3?a.parentNode:a},cP=function(e,r,a,o){var u,l=[],m=e.getRoot();if(a=e.getParent(a||c4(m,r,r.collapsed),e.isBlock),o=e.getParent(o||f4(m,r,r.collapsed),e.isBlock),a&&a!==m&&l.push(a),a&&o&&a!==o){u=a;for(var p=new Pn(a,m);(u=p.next())&&u!==o;)e.isBlock(u)&&l.push(u)}return o&&a!==o&&o!==m&&l.push(o),l},Yy=function(e,r,a){return X.from(r).map(function(o){var u=e.nodeIndex(o),l=e.createRng();return l.setStart(o.parentNode,u),l.setEnd(o.parentNode,u+1),a&&(Bg(e,l,o,!0),Bg(e,l,o,!1)),l})},eC=function(e,r){return Cr(r,function(a){var o=e.fire("GetSelectionRange",{range:a});return o.range!==a?o.range:a})},fP={"#text":3,"#comment":8,"#cdata":4,"#pi":7,"#doctype":10,"#document-fragment":11},qg=function(e,r,a){var o=a?"lastChild":"firstChild",u=a?"prev":"next";if(e[o])return e[o];if(e!==r){var l=e[u];if(l)return l;for(var m=e.parent;m&&m!==r;m=m.parent)if(l=m[u],l)return l}},vP=function(e){if(!ys(e.value))return!1;var r=e.parent;return!(r&&(r.name!=="span"||r.attr("style"))&&/^[ ]+$/.test(e.value))},tC=function(e){var r=e.name==="a"&&!e.attr("href")&&e.attr("id");return e.attr("name")||e.attr("id")&&!e.firstChild||e.attr("data-mce-bookmark")||r},Vl=function(){function e(r,a){this.name=r,this.type=a,a===1&&(this.attributes=[],this.attributes.map={})}return e.create=function(r,a){var o=new e(r,fP[r]||1);return a&&oa(a,function(u,l){o.attr(l,u)}),o},e.prototype.replace=function(r){var a=this;return r.parent&&r.remove(),a.insert(r,a),a.remove(),a},e.prototype.attr=function(r,a){var o=this,u;if(typeof r!="string")return r!=null&&oa(r,function(m,p){o.attr(p,m)}),o;if(u=o.attributes){if(a!==void 0){if(a===null){if(r in u.map){delete u.map[r];for(var l=u.length;l--;)if(u[l].name===r)return u.splice(l,1),o}return o}if(r in u.map){for(var l=u.length;l--;)if(u[l].name===r){u[l].value=a;break}}else u.push({name:r,value:a});return u.map[r]=a,o}return u.map[r]}},e.prototype.clone=function(){var r=this,a=new e(r.name,r.type),o;if(o=r.attributes){var u=[];u.map={};for(var l=0,m=o.length;l<m;l++){var p=o[l];p.name!=="id"&&(u[u.length]={name:p.name,value:p.value},u.map[p.name]=p.value)}a.attributes=u}return a.value=r.value,a.shortEnded=r.shortEnded,a},e.prototype.wrap=function(r){var a=this;return a.parent.insert(r,a),r.append(a),a},e.prototype.unwrap=function(){for(var r=this,a=r.firstChild;a;){var o=a.next;r.insert(a,r,!0),a=o}r.remove()},e.prototype.remove=function(){var r=this,a=r.parent,o=r.next,u=r.prev;return a&&(a.firstChild===r?(a.firstChild=o,o&&(o.prev=null)):u.next=o,a.lastChild===r?(a.lastChild=u,u&&(u.next=null)):o.prev=u,r.parent=r.next=r.prev=null),r},e.prototype.append=function(r){var a=this;r.parent&&r.remove();var o=a.lastChild;return o?(o.next=r,r.prev=o,a.lastChild=r):a.lastChild=a.firstChild=r,r.parent=a,r},e.prototype.insert=function(r,a,o){r.parent&&r.remove();var u=a.parent||this;return o?(a===u.firstChild?u.firstChild=r:a.prev.next=r,r.prev=a.prev,r.next=a,a.prev=r):(a===u.lastChild?u.lastChild=r:a.next.prev=r,r.next=a.next,r.prev=a,a.next=r),r.parent=u,r},e.prototype.getAll=function(r){for(var a=this,o=[],u=a.firstChild;u;u=qg(u,a))u.name===r&&o.push(u);return o},e.prototype.children=function(){for(var r=this,a=[],o=r.firstChild;o;o=o.next)a.push(o);return a},e.prototype.empty=function(){var r=this;if(r.firstChild){for(var a=[],o=r.firstChild;o;o=qg(o,r))a.push(o);for(var u=a.length;u--;){var o=a[u];o.parent=o.firstChild=o.lastChild=o.next=o.prev=null}}return r.firstChild=r.lastChild=null,r},e.prototype.isEmpty=function(r,a,o){a===void 0&&(a={});var u=this,l=u.firstChild;if(tC(u))return!1;if(l)do{if(l.type===1){if(l.attr("data-mce-bogus"))continue;if(r[l.name]||tC(l))return!1}if(l.type===8||l.type===3&&!vP(l)||l.type===3&&l.parent&&a[l.parent.name]&&ys(l.value)||o&&o(l))return!1}while(l=qg(l,u));return!0},e.prototype.walk=function(r){return qg(this,null,r)},e}(),d4=function(e){for(var r=/data:[^;]+;base64,([a-z0-9\+\/=\s]+)/gi,a=[],o={},u=vg("img"),l,m=0,p=0;l=r.exec(e);){var b=l[0],T=u+"_"+p++;o[T]=b,m<l.index&&a.push(e.substr(m,l.index-m)),a.push(T),m=l.index+b.length}var R=new RegExp(u+"_[0-9]+","g");return m===0?{prefix:u,uris:o,html:e,re:R}:(m<e.length&&a.push(e.substr(m)),{prefix:u,uris:o,html:a.join(""),re:R})},rC=function(e,r){return e.replace(r.re,function(a){return ra(r.uris,a).getOr(a)})},dP=function(e){var r=/data:([^;]+);base64,([a-z0-9\+\/=\s]+)/i.exec(e);return r?X.some({type:r[1],data:decodeURIComponent(r[2])}):X.none()},m4=Ie.each,mP=Ie.trim,Xy="source protocol authority userInfo user password host port relative path directory file query anchor".split(" "),h4={ftp:21,http:80,https:443,mailto:25},g4=["img","video"],p4=function(e,r){return vr(e)?!e:vr(r)?!Vt(g4,r):!0},b4=function(e,r,a){return e.allow_html_data_urls?!1:/^data:image\//i.test(r)?p4(e.allow_svg_data_urls,a)&&/^data:image\/svg\+xml/i.test(r):/^data:/i.test(r)},tm=function(){function e(r,a){r=mP(r),this.settings=a||{};var o=this.settings.base_uri,u=this;if(/^([\w\-]+):([^\/]{2})/i.test(r)||/^\s*#/.test(r)){u.source=r;return}var l=r.indexOf("//")===0;if(r.indexOf("/")===0&&!l&&(r=(o&&o.protocol||"http")+"://mce_host"+r),!/^[\w\-]*:?\/\//.test(r)){var m=this.settings.base_uri?this.settings.base_uri.path:new e(document.location.href).directory;if(this.settings.base_uri&&this.settings.base_uri.protocol=="")r="//mce_host"+u.toAbsPath(m,r);else{var p=/([^#?]*)([#?]?.*)/.exec(r);r=(o&&o.protocol||"http")+"://mce_host"+u.toAbsPath(m,p[1])+p[2]}}r=r.replace(/@@/g,"(mce_at)");var b=/^(?:(?![^:@]+:[^:@\/]*@)([^:\/?#.]+):)?(?:\/\/)?((?:(([^:@\/]*):?([^:@\/]*))?@)?(\[[a-zA-Z0-9:.%]+\]|[^:\/?#]*)(?::(\d*))?)(((\/(?:[^?#](?![^?#\/]*\.[^?#\/.]+(?:[?#]|$)))*\/?)?([^?#\/]*))(?:\?([^#]*))?(?:#(.*))?)/.exec(r);m4(Xy,function(T,R){var B=b[R];B&&(B=B.replace(/\(mce_at\)/g,"@@")),u[T]=B}),o&&(u.protocol||(u.protocol=o.protocol),u.userInfo||(u.userInfo=o.userInfo),!u.port&&u.host==="mce_host"&&(u.port=o.port),(!u.host||u.host==="mce_host")&&(u.host=o.host),u.source=""),l&&(u.protocol="")}return e.parseDataUri=function(r){var a,o=decodeURIComponent(r).split(","),u=/data:([^;]+)/.exec(o[0]);return u&&(a=u[1]),{type:a,data:o[1]}},e.isDomSafe=function(r,a,o){if(o===void 0&&(o={}),o.allow_script_urls)return!0;var u=Rl.decode(r).replace(/[\s\u0000-\u001F]+/g,"");try{u=decodeURIComponent(u)}catch{u=unescape(u)}return/((java|vb)script|mhtml):/i.test(u)?!1:!b4(o,u,a)},e.getDocumentBaseUrl=function(r){var a;return r.protocol.indexOf("http")!==0&&r.protocol!=="file:"?a=r.href:a=r.protocol+"//"+r.host+r.pathname,/^[^:]+:\/\/\/?[^\/]+\//.test(a)&&(a=a.replace(/[\?#].*$/,"").replace(/[\/\\][^\/]+$/,""),/[\/\\]$/.test(a)||(a+="/")),a},e.prototype.setPath=function(r){var a=/^(.*?)\/?(\w+)?$/.exec(r);this.path=a[0],this.directory=a[1],this.file=a[2],this.source="",this.getURI()},e.prototype.toRelative=function(r){var a;if(r==="./")return r;var o=new e(r,{base_uri:this});if(o.host!=="mce_host"&&this.host!==o.host&&o.host||this.port!==o.port||this.protocol!==o.protocol&&o.protocol!=="")return o.getURI();var u=this.getURI(),l=o.getURI();return u===l||u.charAt(u.length-1)==="/"&&u.substr(0,u.length-1)===l?u:(a=this.toRelPath(this.path,o.path),o.query&&(a+="?"+o.query),o.anchor&&(a+="#"+o.anchor),a)},e.prototype.toAbsolute=function(r,a){var o=new e(r,{base_uri:this});return o.getURI(a&&this.isSameOrigin(o))},e.prototype.isSameOrigin=function(r){if(this.host==r.host&&this.protocol==r.protocol){if(this.port==r.port)return!0;var a=h4[this.protocol];if(a&&(this.port||a)==(r.port||a))return!0}return!1},e.prototype.toRelPath=function(r,a){var o=0,u="",l,m,p=r.substring(0,r.lastIndexOf("/")).split("/"),b=a.split("/");if(p.length>=b.length){for(l=0,m=p.length;l<m;l++)if(l>=b.length||p[l]!==b[l]){o=l+1;break}}if(p.length<b.length){for(l=0,m=b.length;l<m;l++)if(l>=p.length||p[l]!==b[l]){o=l+1;break}}if(o===1)return a;for(l=0,m=p.length-(o-1);l<m;l++)u+="../";for(l=o-1,m=b.length;l<m;l++)l!==o-1?u+="/"+b[l]:u+=b[l];return u},e.prototype.toAbsPath=function(r,a){var o,u=0,l=[],m,p=/\/$/.test(a)?"/":"",b=r.split("/"),T=a.split("/");for(m4(b,function(R){R&&l.push(R)}),b=l,o=T.length-1,l=[];o>=0;o--)if(!(T[o].length===0||T[o]===".")){if(T[o]===".."){u++;continue}if(u>0){u--;continue}l.push(T[o])}return o=b.length-u,o<=0?m=Za(l).join("/"):m=b.slice(0,o).join("/")+"/"+Za(l).join("/"),m.indexOf("/")!==0&&(m="/"+m),p&&m.lastIndexOf("/")!==m.length-1&&(m+=p),m},e.prototype.getURI=function(r){r===void 0&&(r=!1);var a;return(!this.source||r)&&(a="",r||(this.protocol?a+=this.protocol+"://":a+="//",this.userInfo&&(a+=this.userInfo+"@"),this.host&&(a+=this.host),this.port&&(a+=":"+this.port)),this.path&&(a+=this.path),this.query&&(a+="?"+this.query),this.anchor&&(a+="#"+this.anchor),this.source=a),this.source},e}(),hP=Ie.makeMap("button,fieldset,form,iframe,img,image,input,object,output,select,textarea"),gP=function(e){return e.indexOf("data-")===0||e.indexOf("aria-")===0},nC=function(e,r,a){for(var o=/<([!?\/])?([A-Za-z0-9\-_:.]+)/g,u=/(?:\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\s*|\/)>/g,l=e.getShortEndedElements(),m=1,p=a;m!==0;)for(o.lastIndex=p;;){var b=o.exec(r);if(b===null)return p;if(b[1]==="!"){Pa(b[2],"--")?p=aC(r,!1,b.index+3):p=aC(r,!0,b.index+1);break}else{u.lastIndex=o.lastIndex;var T=u.exec(r);if(se(T)||T.index!==o.lastIndex)continue;b[1]==="/"?m-=1:$r(l,b[2])||(m+=1),p=o.lastIndex+T[0].length;break}}return p},pP=function(e,r){return/^\s*\[if [\w\W]+\]>.*<!\[endif\](--!?)?>/.test(e.substr(r))},aC=function(e,r,a){a===void 0&&(a=0);var o=e.toLowerCase();if(o.indexOf("[if ",a)!==-1&&pP(o,a)){var u=o.indexOf("[endif]",a);return o.indexOf(">",u)}else if(r){var l=o.indexOf(">",a);return l!==-1?l:o.length}else{var m=/--!?>/g;m.lastIndex=a;var p=m.exec(e);return p?p.index+p[0].length:o.length}},bP=function(e,r){var a=e.exec(r);if(a){var o=a[1],u=a[2];return typeof o=="string"&&o.toLowerCase()==="data-mce-bogus"?u:null}else return null},Jy=function(e,r){var a;r===void 0&&(r=Mr()),e=e||{};var o=(a=e.document)!==null&&a!==void 0?a:document,u=o.createElement("form");e.fix_self_closing!==!1&&(e.fix_self_closing=!0);var l=e.comment?e.comment:_t,m=e.cdata?e.cdata:_t,p=e.text?e.text:_t,b=e.start?e.start:_t,T=e.end?e.end:_t,R=e.pi?e.pi:_t,B=e.doctype?e.doctype:_t,I=function(q,K){K===void 0&&(K="html");for(var Z=q.html,ie,ae=0,ce,be,ue=[],xe,Re,tt,ar,Ct,Ze,lr,at,kt,Je,ht,It,Ve,zt,Pr,On,nn,oi=0,La=Rl.decode,us=Ie.makeMap("src,href,data,background,action,formaction,poster,xlink:href"),Rs=K==="html"?0:1,Ke=function(ba){var ia,ji;for(ia=ue.length;ia--&&ue[ia].name!==ba;);if(ia>=0){for(ji=ue.length-1;ji>=ia;ji--)ba=ue[ji],ba.valid&&T(ba.name);ue.length=ia}},Oe=function(ba,ia){return p(rC(ba,q),ia)},Qe=function(ba){ba!==""&&(ba.charAt(0)===">"&&(ba=" "+ba),!e.allow_conditional_comments&&ba.substr(0,3).toLowerCase()==="[if"&&(ba=" "+ba),l(rC(ba,q)))},Ae=function(ba){return rC(ba,q)},Bt=function(ba,ia){var ji=ba||"",Rf=!Pa(ji,"--"),ss=aC(Z,Rf,ia);return ba=Z.substr(ia,ss-ia),Qe(Rf?ji+ba:ba),ss+1},gt=function(ba,ia,ji,Rf,ss){if(ia=ia.toLowerCase(),ji=Ae(ia in Iu?ia:La(ji||Rf||ss||"")),Gl&&!Ct&&gP(ia)===!1){var Mc=ht[ia];if(!Mc&&It){for(var s0=It.length;s0--&&(Mc=It[s0],!Mc.pattern.test(ia)););s0===-1&&(Mc=null)}if(!Mc||Mc.validValues&&!(ji in Mc.validValues))return}var l0=ia==="name"||ia==="id";l0&&ba in hP&&(ji in o||ji in u)||us[ia]&&!tm.isDomSafe(ji,ba,e)||Ct&&(ia in us||ia.indexOf("on")===0)||(xe.map[ia]=ji,xe.push({name:ia,value:ji}))},or=new RegExp(`<(?:(?:!--([\\w\\W]*?)--!?>)|(?:!\\[CDATA\\[([\\w\\W]*?)\\]\\]>)|(?:![Dd][Oo][Cc][Tt][Yy][Pp][Ee]([\\w\\W]*?)>)|(?:!(--)?)|(?:\\?([^\\s\\/<>]+) ?([\\w\\W]*?)[?/]>)|(?:\\/([A-Za-z][A-Za-z0-9\\-_\\:\\.]*)>)|(?:([A-Za-z][A-Za-z0-9\\-_:.]*)(\\s(?:[^'">]+(?:"[^"]*"|'[^']*'))*[^"'>]*(?:"[^">]*|'[^'>]*)?|\\s*|\\/)>))`,"g"),Lr=/([\w:\-]+)(?:\s*=\s*(?:(?:\"((?:[^\"])*)\")|(?:\'((?:[^\'])*)\')|([^>\s]+)))?/g,pa=r.getShortEndedElements(),nu=e.self_closing_elements||r.getSelfClosingElements(),Iu=r.getBoolAttrs(),Gl=e.validate,au=e.remove_internals,Fu=e.fix_self_closing,Vi=r.getSpecialElements(),zf=Z+">";ie=or.exec(zf);){var bo=ie[0];if(ae<ie.index&&Oe(La(Z.substr(ae,ie.index-ae))),ce=ie[7])ce=ce.toLowerCase(),ce.charAt(0)===":"&&(ce=ce.substr(1)),Ke(ce);else if(ce=ie[8]){if(ie.index+bo.length>Z.length){Oe(La(Z.substr(ie.index))),ae=ie.index+bo.length;continue}ce=ce.toLowerCase(),ce.charAt(0)===":"&&(ce=ce.substr(1)),Ze=ce in pa,Fu&&nu[ce]&&ue.length>0&&ue[ue.length-1].name===ce&&Ke(ce);var Df=bP(Lr,ie[9]);if(Df!==null){if(Df==="all"){ae=nC(r,Z,or.lastIndex),or.lastIndex=ae;continue}at=!1}if(!Gl||(lr=r.getElementRule(ce))){if(at=!0,Gl&&(ht=lr.attributes,It=lr.attributePatterns),(Je=ie[9])?(Ct=Je.indexOf("data-mce-type")!==-1,Ct&&au&&(at=!1),xe=[],xe.map={},Je.replace(Lr,function(ba,ia,ji,Rf,ss){return gt(ce,ia,ji,Rf,ss),""})):(xe=[],xe.map={}),Gl&&!Ct){if(Ve=lr.attributesRequired,zt=lr.attributesDefault,Pr=lr.attributesForced,On=lr.removeEmptyAttrs,On&&!xe.length&&(at=!1),Pr)for(Re=Pr.length;Re--;)kt=Pr[Re],ar=kt.name,nn=kt.value,nn==="{$uid}"&&(nn="mce_"+oi++),xe.map[ar]=nn,xe.push({name:ar,value:nn});if(zt)for(Re=zt.length;Re--;)kt=zt[Re],ar=kt.name,ar in xe.map||(nn=kt.value,nn==="{$uid}"&&(nn="mce_"+oi++),xe.map[ar]=nn,xe.push({name:ar,value:nn}));if(Ve){for(Re=Ve.length;Re--&&!(Ve[Re]in xe.map););Re===-1&&(at=!1)}if(kt=xe.map["data-mce-bogus"]){if(kt==="all"){ae=nC(r,Z,or.lastIndex),or.lastIndex=ae;continue}at=!1}}at&&b(ce,xe,Ze)}else at=!1;if(be=Vi[ce]){be.lastIndex=ae=ie.index+bo.length,(ie=be.exec(Z))?(at&&(tt=Z.substr(ae,ie.index-ae)),ae=ie.index+ie[0].length):(tt=Z.substr(ae),ae=Z.length),at&&(tt.length>0&&Oe(tt,!0),T(ce)),or.lastIndex=ae;continue}Ze||(!Je||Je.indexOf("/")!==Je.length-1?ue.push({name:ce,valid:at}):at&&T(ce))}else if(ce=ie[1])Qe(ce);else if(ce=ie[2]){var Pf=Rs===1||e.preserve_cdata||ue.length>0&&r.isValidChild(ue[ue.length-1].name,"#cdata");if(Pf)m(ce);else{ae=Bt("",ie.index+2),or.lastIndex=ae;continue}}else if(ce=ie[3])B(ce);else if((ce=ie[4])||bo==="<!"){ae=Bt(ce,ie.index+bo.length),or.lastIndex=ae;continue}else if(ce=ie[5])if(Rs===1)R(ce,ie[6]);else{ae=Bt("?",ie.index+2),or.lastIndex=ae;continue}ae=ie.index+bo.length}for(ae<Z.length&&Oe(La(Z.substr(ae))),Re=ue.length-1;Re>=0;Re--)ce=ue[Re],ce.valid&&T(ce.name)},j=function(q,K){K===void 0&&(K="html"),I(d4(q),K)};return{parse:j}};Jy.findEndTag=nC;var yP=function(e,r){var a=new RegExp(["\\s?("+e.join("|")+')="[^"]+"'].join("|"),"gi");return r.replace(a,"")},y4=function(e,r){for(var a=/<(\w+) [^>]*data-mce-bogus="all"[^>]*>/g,o=e.schema,u=yP(e.getTempAttrs(),r),l=o.getShortEndedElements(),m;m=a.exec(u);){var p=a.lastIndex,b=m[0].length,T=void 0;l[m[1]]?T=p:T=Jy.findEndTag(o,u,p),u=u.substring(0,p-b)+u.substring(T),a.lastIndex=p-b}return ti(u)},xP=y4,_P=function(e,r){var a=zo(e),o=new RegExp("^(<"+a+"[^>]*>(&nbsp;|&#160;|\\s| |<br \\/>|)<\\/"+a+`>[\r