@kademi/keditor
Version:
KEditor is a jQuery plugin which provides a content editor with drag n drop, configurable contents
6 lines • 183 kB
JavaScript
/*!
* formBuilder - https://formbuilder.online/
* Version: 2.5.3
* Author: Kevin Chappell <kevin.b.chappell@gmail.com>
*/
var _Mathsqrt=Math.sqrt,_StringfromCharCode=String.fromCharCode,_MathLN=Math.LN2,_Mathlog=Math.log,_Mathabs=Math.abs,_Mathpow=Math.pow,_Mathexp=Math.exp,_Mathexpm=Math.expm1,_Mathceil=Math.ceil,_Mathmin=Math.min,_Mathfloor=Math.floor;!function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="/assets/js/",e(e.s=148)}([function(t,e,n){var r=n(2),o=n(27),i=n(13),u=n(14),a=n(28),s="prototype",c=function(t,e,n){var f,l,p,h,d=t&c.F,v=t&c.G,y=t&c.S,g=t&c.P,b=t&c.B,m=v?r:y?r[e]||(r[e]={}):(r[e]||{})[s],w=v?o:o[e]||(o[e]={}),x=w[s]||(w[s]={});for(f in v&&(n=e),n)l=!d&&m&&void 0!==m[f],p=(l?m:n)[f],h=b&&l?a(p,r):g&&"function"==typeof p?a(Function.call,p):p,m&&u(m,f,p,t&c.U),w[f]!=p&&i(w,f,h),g&&x[f]!=p&&(x[f]=p)};r.core=o,c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){var r=n(4);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t){var e=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=e)},function(t){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e,n){var r=n(70)("wks"),o=n(44),i=n(2).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function i(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var u="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},a=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(19),c=r(s),f=n(26),l=r(f),p=function(){function t(e,n){i(this,t),this.rawConfig=$.extend({},e),e=$.extend({},e),this.preview=n,delete e.isPreview,this.preview&&delete e.required;for(var r=["label","description","subtype","required"],o=r,u=Array.isArray(o),a=0,o=u?o:o[Symbol.iterator]();;){var s;if(u){if(a>=o.length)break;s=o[a++]}else{if(a=o.next(),a.done)break;s=a.value}var c=s;this[c]=e[c],delete e[c]}e.id||(e.name?e.id=e.name:e.id="control-"+_Mathfloor(1e7*Math.random()+1)),this.id=e.id,this.type=e.type,this.description&&(e.title=this.description),t.controlConfig||(t.controlConfig={});var f=this.subtype?this.type+"."+this.subtype:this.type;this.classConfig=$.extend({},t.controlConfig[f]||{}),this.subtype&&(e.type=this.subtype),this.required&&(e.required="required",e["aria-required"]="true"),this.config=e,this.configure()}return t.register=function(e,n,r){var o=r?r+".":"";t.classRegister||(t.classRegister={}),Array.isArray(e)||(e=[e]);for(var i=e,u=Array.isArray(i),a=0,i=u?i:i[Symbol.iterator]();;){var s;if(u){if(a>=i.length)break;s=i[a++]}else{if(a=i.next(),a.done)break;s=a.value}var c=s;-1<c.indexOf(".")?t.error("Ignoring type "+c+". Cannot use the character '.' in a type name."):t.classRegister[o+c]=n}},t.getRegistered=function(){var e=0<arguments.length&&void 0!==arguments[0]&&arguments[0],n=Object.keys(t.classRegister);return n.length?n.filter(function(t){return e?-1<t.indexOf(e+"."):-1==t.indexOf(".")}):n},t.getRegisteredSubtypes=function(){var e={};for(var n in t.classRegister)if(t.classRegister.hasOwnProperty(n)){var r=n.split("."),o=r[0],i=r[1];if(!i)continue;e[o]||(e[o]=[]),e[o].push(i)}return e},t.getClass=function(e,n){var r=n?e+"."+n:e,o=t.classRegister[r]||t.classRegister[e];return o||t.error("Invalid control type. (Type: "+e+", Subtype: "+n+"). Please ensure you have registered it, and imported it correctly.")},t.loadCustom=function(e){var n=[];if(e&&(n=n.concat(e)),window.fbControls&&(n=n.concat(window.fbControls)),!window.fbControlsLoaded){for(var r=n,o=Array.isArray(r),i=0,r=o?r:r[Symbol.iterator]();;){var u;if(o){if(i>=r.length)break;u=r[i++]}else{if(i=r.next(),i.done)break;u=i.value}u(t,t.classRegister)}window.fbControlsLoaded=!0}},t.mi18n=function(t,e){var n=this.definition,r=n.i18n||{};r=r[l.default.locale]||r.default||r;var o=this.camelCase(t),i="object"==(void 0===r?"undefined":u(r))?r[o]||r[t]:r;if(i)return i;var a=n.mi18n;return"object"===(void 0===a?"undefined":u(a))&&(a=a[o]||a[t]),a||(a=o),l.default.get(a,e)},t.active=function(t){return!Array.isArray(this.definition.inactive)||-1==this.definition.inactive.indexOf(t)},t.label=function(t){return this.mi18n(t)},t.icon=function(t){var e=this.definition;return e&&"object"===u(e.icon)?e.icon[t]:e.icon},t.prototype.configure=function(){},t.prototype.build=function(){var t=this.config,e=t.label,n=t.type,r=o(t,["label","type"]);return this.markup(n,c.default.parsedHtml(e),r)},t.prototype.on=function(t){var e=this,n={prerender:function(){},render:function(){var t=function(){e.onRender&&e.onRender()};e.css&&c.default.getStyles(e.css),e.js&&!c.default.isCached(e.js)?c.default.getScripts(e.js).done(t):t()}};return t?n[t]:n},t.error=function(t){throw new Error(t)},t.prototype.markup=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return this.element=c.default.markup(t,e,n),this.element},t.prototype.parsedHtml=function(t){return c.default.parsedHtml(t)},t.camelCase=function(t){return c.default.camelCase(t)},a(t,null,[{key:"definition",get:function(){return{}}}]),t}();e.default=p},function(t,e,n){t.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(1),o=n(123),i=n(25),u=Object.defineProperty;e.f=n(7)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)try{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){var r=n(33);t.exports=function(t){return 0<t?_Mathmin(r(t),9007199254740991):0}},function(t,e,n){var r=n(21);t.exports=function(t){return Object(r(t))}},function(t){var e={}.hasOwnProperty;t.exports=function(t,n){return e.call(t,n)}},function(t){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){var r=n(8),o=n(32);t.exports=n(7)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(2),o=n(13),i=n(11),u=n(44)("src"),a="toString",s=Function[a],c=(""+s).split(a);n(27).inspectSource=function(t){return s.call(t)},(t.exports=function(t,e,n,a){var s="function"==typeof n;s&&(i(n,"name")||o(n,"name",e)),t[e]===n||(s&&(i(n,u)||o(n,u,t[e]?""+t[e]:c.join(e+""))),t===r?t[e]=n:a?t[e]?t[e]=n:o(t,e,n):(delete t[e],o(t,e,n)))})(Function.prototype,a,function(){return"function"==typeof this&&this[u]||s.call(this)})},function(t,e,n){var r=n(0),o=n(3),i=n(21),u=function(t,e,n,r){var o=i(t)+"",u="<"+e;return""!==n&&(u+=" "+n+'="'+(r+"").replace(/"/g,""")+'"'),u+">"+o+"</"+e+">"};t.exports=function(t,e){var n={};n[t]=e(u),r(r.P+r.F*o(function(){var e=""[t]('"');return e!==e.toLowerCase()||3<e.split('"').length}),"String",n)}},function(t,e,n){var r=n(56),o=n(21);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(57),o=n(32),i=n(16),u=n(25),a=n(11),s=n(123),c=Object.getOwnPropertyDescriptor;e.f=n(7)?c:function(t,e){if(t=i(t),e=u(e,!0),s)try{return c(t,e)}catch(t){}return a(t,e)?o(!r.f.call(t,e),t[e]):void 0}},function(t,e,n){var r=n(11),o=n(10),i=n(97)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e){"use strict";function n(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}Object.defineProperty(e,"__esModule",{value:!0});var r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},o={};window.fbLoaded={js:[],css:[]},window.fbEditors={quill:{},tinymce:{}},o.inArray=function(t,e){return-1!==e.indexOf(t)},o.trimObj=function(t){var e=[null,void 0,"",!1,"false"];for(var n in t)o.inArray(t[n],e)?delete t[n]:Array.isArray(t[n])&&(t[n].length||delete t[n]);return t},o.validAttr=function(t){return!o.inArray(t,["values","enableOther","other","label","subtype"])},o.attrString=function(t){var e=[];for(var n in t)t.hasOwnProperty(n)&&o.validAttr(n)&&(n=o.safeAttr(n,t[n]),e.push(n.name+n.value));return e.join(" ")},o.safeAttr=function(t,e){t=o.safeAttrName(t);var n;return e&&(Array.isArray(e)?n=o.escapeAttr(e.join(" ")):("boolean"==typeof e&&(e=e.toString()),n=o.escapeAttr(e.replace(","," ").trim()))),e=e?'="'+n+'"':"",{name:t,value:e}},o.safeAttrName=function(t){return{className:"class"}[t]||o.hyphenCase(t)},o.hyphenCase=function(t){return t=t.replace(/[^\w\s\-]/gi,""),t=t.replace(/([A-Z])/g,function(t){return"-"+t.toLowerCase()}),t.replace(/\s/g,"-").replace(/^-+/g,"")},o.camelCase=function(t){return t.replace(/-([a-z])/g,function(t,e){return e.toUpperCase()})},o.contentType=function(t){var e=void 0===t?"undefined":r(t);return t instanceof Node||t instanceof HTMLElement?e="node":Array.isArray(t)&&(e="array"),e},o.bindEvents=function(t,e){if(e){for(var n in e)!function(n){e.hasOwnProperty(n)&&t.addEventListener(n,function(t){return e[n](t)})}(n)}},o.nameAttr=function(t){var e=(new Date).getTime();return(t.type||o.hyphenCase(t.label))+"-"+e},o.markup=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",r=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{},i=o.contentType(e),u=r.events,a=n(r,["events"]),s=document.createElement(t),c={string:function(t){s.innerHTML+=t},object:function(t){var e=t.tag,r=t.content,i=n(t,["tag","content"]);return s.appendChild(o.markup(e,r,i))},node:function(t){return s.appendChild(t)},array:function(t){for(var e=0;e<t.length;e++)i=o.contentType(t[e]),c[i](t[e])},function:function(t){t=t(),i=o.contentType(t),c[i](t)},undefined:function(){}};for(var f in a)if(a.hasOwnProperty(f)){var l=o.safeAttrName(f);s.setAttribute(l,a[f])}return e&&c[i].call(this,e),o.bindEvents(s,u),s},o.parseAttrs=function(t){var e=t.attributes,n={};return o.forEach(e,function(t){var r=e[t].value||"";r.match(/false|true/g)?r="true"===r:r.match(/undefined/g)&&(r=void 0),r&&(n[e[t].name]=r)}),n},o.parseOptions=function(t){for(var e={},n=[],r=0;r<t.length;r++)e=o.parseAttrs(t[r]),e.label=t[r].textContent,n.push(e);return n},o.parseXML=function(t){var e=new window.DOMParser,n=e.parseFromString(t,"text/xml"),r=[];if(n)for(var i=n.getElementsByTagName("field"),u=0;u<i.length;u++){var a=o.parseAttrs(i[u]),s=i[u].getElementsByTagName("option");s&&s.length&&(a.values=o.parseOptions(s)),r.push(a)}return r},o.parsedHtml=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.textContent},o.escapeHtml=function(t){var e=document.createElement("textarea");return e.textContent=t,e.innerHTML},o.escapeAttr=function(t){var e={'"':""","&":"&","<":"<",">":">"};return"string"==typeof t?t.replace(/["&<>]/g,function(t){return e[t]||t}):t},o.escapeAttrs=function(t){for(var e in t)t.hasOwnProperty(e)&&(t[e]=o.escapeAttr(t[e]));return t},o.forEach=function(t,e,n){for(var r=0;r<t.length;r++)e.call(n,r,t[r])},o.unique=function(t){return t.filter(function(t,e,n){return n.indexOf(t)===e})},o.remove=function(t,e){var n=e.indexOf(t);-1<n&&e.splice(n,1)},o.getScripts=function(t,e){var n=jQuery,r=[];return Array.isArray(t)||(t=[t]),o.isCached(t)||(r=n.map(t,function(t){return n.ajax({dataType:"script",cache:!0,url:(e||"")+t}).done(function(){return window.fbLoaded.js.push(t)})})),r.push(n.Deferred(function(t){return n(t.resolve)})),n.when.apply(n,r)},o.isCached=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"js",n=window.fbLoaded[e];return Array.isArray(t)?t.every(function(t){return o.inArray(t,n)}):o.inArray(t,n)},o.getStyles=function(t,e){Array.isArray(t)||(t=[t]),t.forEach(function(t){var n="href",i=t,u="";if("object"==(void 0===t?"undefined":r(t))&&(n=t.type||(t.style?"inline":"href"),u=t.id,t="inline"==n?t.style:t.href,i=u||t.href||t.style),!o.isCached(i,"css")){if("href"==n){var a=document.createElement("link");a.type="text/css",a.rel="stylesheet",a.href=(e||"")+t,document.head.appendChild(a)}else $('<style type="text/css">'+t+"</style>").attr("id",u).appendTo($(document.head));window.fbLoaded.css.push(i)}})},o.capitalize=function(t){return t.replace(/\b\w/g,function(t){return t.toUpperCase()})},o.merge=function(t,e){var n=Object.assign({},t,e);for(var i in e)n.hasOwnProperty(i)&&(n[i]=Array.isArray(e[i])?Array.isArray(t[i])?o.unique(t[i].concat(e[i])):e[i]:"object"===r(e[i])?o.merge(t[i],e[i]):e[i]);return n},o.addEventListeners=function(t,e,n){return e.split(" ").forEach(function(e){return t.addEventListener(e,n,!1)})},o.closest=function(t,e){for(var n=e.replace(".","");(t=t.parentElement)&&!t.classList.contains(n););return t},o.noop=function(){return null},o.debounce=function(t){var e,n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:250,r=2<arguments.length&&void 0!==arguments[2]&&arguments[2];return function(){for(var o=arguments.length,i=Array(o),u=0;u<o;u++)i[u]=arguments[u];var a=this,s=r&&!e;clearTimeout(e),e=setTimeout(function(){e=null,r||t.apply(a,i)},n),s&&t.apply(a,i)}},o.mobileClass=function(){var t="";return function(e){(/(android|bb\d+|meego).+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|mobile.+firefox|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|series(4|6)0|symbian|treo|up\.(browser|link)|vodafone|wap|windows ce|xda|xiino/i.test(e)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|yas\-|your|zeto|zte\-/i.test(e.substr(0,4)))&&(t=" fb-mobile")}(navigator.userAgent||navigator.vendor||window.opera),t},o.makeClassName=function(t){return o.hyphenCase(t.replace(/[^\w\s\-]/gi,""))},o.safename=function(t){return t.replace(/\s/g,"-").replace(/[^a-zA-Z0-9\[\]\_-]/g,"").toLowerCase()},o.forceNumber=function(t){return t.replace(/[^0-9]/g,"")},e.default=o},function(t){var e={}.toString;t.exports=function(t){return e.call(t).slice(8,-1)}},function(t){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e,n){var r=n(3);t.exports=function(t,e){return!!t&&r(function(){e?t.call(null,function(){},1):t.call(null)})}},function(t,e,n){var r=n(28),o=n(56),i=n(10),u=n(9),a=n(151);t.exports=function(t,e){var n=1==t,s=4==t,c=6==t,f=e||a;return function(e,a,l){for(var p,h,d=i(e),v=o(d),y=r(a,l,3),g=u(v.length),b=0,m=n?f(e,g):2==t?f(e,0):void 0;g>b;b++)if((5==t||c||b in v)&&(p=v[b],h=y(p,b,d),t))if(n)m[b]=h;else if(h)switch(t){case 3:return!0;case 5:return p;case 6:return b;case 2:m.push(p)}else if(s)return!1;return c?-1:3==t||s?s:m}}},function(t,e,n){var r=n(0),o=n(27),i=n(3);t.exports=function(t,e){var n=(o.Object||{})[t]||Object[t],u={};u[t]=e(n),r(r.S+r.F*i(function(){n(1)}),"Object",u)}},function(t,e,n){var r=n(4);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t){t.exports=function(t){function e(r){if(n[r])return n[r].exports;var o=n[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,e),o.l=!0,o.exports}var n={};return e.m=t,e.c=n,e.i=function(t){return t},e.d=function(t,n,r){e.o(t,n)||Object.defineProperty(t,n,{configurable:!1,enumerable:!0,get:r})},e.n=function(t){var n=t&&t.__esModule?function(){return t.default}:function(){return t};return e.d(n,"a",n),n},e.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},e.p="",e(e.s=0)}([function(t,e){"use strict";function n(t){return function(){var e=t.apply(this,arguments);return new Promise(function(t,n){function r(o,i){try{var u=e[o](i),a=u.value}catch(t){return void n(t)}return u.done?void t(a):Promise.resolve(a).then(function(t){r("next",t)},function(t){r("throw",t)})}return r("next")})}}function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),u=function(){function t(){var e=this;r(this,t);var n={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",preloaded:{}};this.init=function(t){return e.config=Object.assign({},n,t),e.langs=Object.assign({},e.config.preloaded),e.locale=e.config.locale||e.config.langs[0],e.setCurrent(e.locale)}}return t.prototype.getValue=function(t){return this.current&&this.current[t]||t},t.prototype.makeSafe=function(t){var e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/\{|\}|\|/g,function(t){return e[t]}),new RegExp(t,"g")},t.prototype.put=function(t,e){return this.current[t]=e},t.prototype.get=function(t,e){var n,r=this,i=this.getValue(t),u=i.match(/\{[^\}]+?\}/g);if(e&&u)if("object"===(void 0===e?"undefined":o(e)))for(var a=0;a<u.length;a++)n=u[a].substring(1,u[a].length-1),i=i.replace(r.makeSafe(u[a]),e[n]||"");else i=i.replace(/\{[^\}]+?\}/g,e);return i},t.prototype.fromFile=function(t){for(var e,n=t.split("\n"),r={},o=0;o<n.length;o++)if(e=n[o].match(/^(.+?) *?= *?([^\n]+)/)){var i=e[2].replace(/^\s+|\s+$/,"");r[e[1]]=i}return r},t.prototype.processFile=function(t){var e=t.replace(/\n\n/g,"\n");return this.fromFile(e)},t.prototype.loadLang=function(t){var e=this;return new Promise(function(n,r){if(e.langs[t])n(e.langs[t]);else{var o=new XMLHttpRequest,i=e.config.location+t+e.config.extension;o.open("GET",i,!0),o.onload=function(){if(304>=this.status){var i=e.processFile(o.responseText);e.langs[t]=i,n(i)}else r({status:this.status,statusText:o.statusText})},o.onerror=function(){r({status:this.status,statusText:o.statusText})},o.send()}})},t.prototype.setCurrent=function(){var t=n(regeneratorRuntime.mark(function t(){var e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"en-US";return regeneratorRuntime.wrap(function(t){for(;;)switch(t.prev=t.next){case 0:return t.next=2,this.loadLang(e);case 2:return this.locale=e,this.current=this.langs[e],t.abrupt("return",this.current);case 5:case"end":return t.stop()}},t,this)}));return function(){return t.apply(this,arguments)}}(),i(t,[{key:"getLangs",get:function(){return this.config.langs}}]),t}();e.default=new u}])},function(t){var e=t.exports={version:"2.4.0"};"number"==typeof __e&&(__e=e)},function(t,e,n){var r=n(12);t.exports=function(t,e,n){return r(t),void 0===e?t:1===n?function(n){return t.call(e,n)}:2===n?function(n,r){return t.call(e,n,r)}:3===n?function(n,r,o){return t.call(e,n,r,o)}:function(){return t.apply(e,arguments)}}},function(t,e,n){var r=n(139),o=n(0),i=n(70)("metadata"),u=i.store||(i.store=new(n(142))),a=function(t,e,n){var o=u.get(t);if(!o){if(!n)return;u.set(t,o=new r)}var i=o.get(e);if(!i){if(!n)return;o.set(e,i=new r)}return i};t.exports={store:u,map:a,has:function(t,e,n){var r=a(e,n,!1);return void 0!==r&&r.has(t)},get:function(t,e,n){var r=a(e,n,!1);return void 0===r?void 0:r.get(t)},set:function(t,e,n,r){a(n,r,!0).set(t,e)},keys:function(t,e){var n=a(t,e,!1),r=[];return n&&n.forEach(function(t,e){r.push(e)}),r},key:function(t){return void 0===t||"symbol"==typeof t?t:t+""},exp:function(t){o(o.S,"Reflect",t)}}},function(t,e,n){"use strict";if(n(7)){var r=n(37),o=n(2),i=n(3),u=n(0),a=n(71),s=n(104),c=n(28),f=n(36),l=n(32),p=n(13),h=n(41),d=n(33),v=n(9),y=n(43),g=n(25),b=n(11),m=n(136),w=n(55),x=n(4),_=n(10),E=n(89),O=n(38),S=n(18),A=n(39).f,j=n(106),P=n(44),k=n(5),R=n(23),T=n(61),M=n(98),q=n(107),C=n(48),L=n(67),F=n(42),N=n(82),I=n(116),U=n(8),B=n(17),D=U.f,z=B.f,Y=o.RangeError,G=o.TypeError,W=o.Uint8Array,V="ArrayBuffer",$="Shared"+V,H="BYTES_PER_ELEMENT",J="prototype",X=Array[J],K=s.ArrayBuffer,Q=s.DataView,Z=R(0),tt=R(2),et=R(3),nt=R(4),rt=R(5),ot=R(6),it=T(!0),ut=T(!1),at=q.values,st=q.keys,ct=q.entries,ft=X.lastIndexOf,lt=X.reduce,pt=X.reduceRight,ht=X.join,dt=X.sort,vt=X.slice,yt=X.toString,gt=X.toLocaleString,bt=k("iterator"),mt=k("toStringTag"),wt=P("typed_constructor"),xt=P("def_constructor"),_t=a.CONSTR,Et=a.TYPED,Ot=a.VIEW,St="Wrong length!",At=R(1,function(t,e){return Mt(M(t,t[xt]),e)}),jt=i(function(){return 1===new W(new Uint16Array([1]).buffer)[0]}),Pt=!!W&&!!W[J].set&&i(function(){new W(1).set({})}),kt=function(t,e){if(void 0===t)throw G(St);var n=v(t);if(e&&!m(+t,n))throw Y(St);return n},Rt=function(t,e){var n=d(t);if(0>n||n%e)throw Y("Wrong offset!");return n},Tt=function(t){if(x(t)&&Et in t)return t;throw G(t+" is not a typed array!")},Mt=function(t,e){if(!(x(t)&&wt in t))throw G("It is not a typed array constructor!");return new t(e)},qt=function(t,e){return Ct(M(t,t[xt]),e)},Ct=function(t,e){for(var n=0,r=e.length,o=Mt(t,r);r>n;)o[n]=e[n++];return o},Lt=function(t,e,n){D(t,e,{get:function(){return this._d[n]}})},Ft=function(t){var e,n,r,o,i,u,a=_(t),s=arguments.length,f=1<s?arguments[1]:void 0,l=void 0!==f,p=j(a);if(void 0!=p&&!E(p)){for(u=p.call(a),r=[],e=0;!(i=u.next()).done;e++)r.push(i.value);a=r}for(l&&2<s&&(f=c(f,arguments[2],2)),e=0,n=v(a.length),o=Mt(this,n);n>e;e++)o[e]=l?f(a[e],e):a[e];return o},Nt=function(){for(var t=0,e=arguments.length,n=Mt(this,e);e>t;)n[t]=arguments[t++];return n},It=!!W&&i(function(){gt.call(new W(1))}),Ut=function(){return gt.apply(It?vt.call(Tt(this)):Tt(this),arguments)},Bt={copyWithin:function(t,e){return I.call(Tt(this),t,e,2<arguments.length?arguments[2]:void 0)},every:function(t){return nt(Tt(this),t,1<arguments.length?arguments[1]:void 0)},fill:function(){return N.apply(Tt(this),arguments)},filter:function(t){return qt(this,tt(Tt(this),t,1<arguments.length?arguments[1]:void 0))},find:function(t){return rt(Tt(this),t,1<arguments.length?arguments[1]:void 0)},findIndex:function(t){return ot(Tt(this),t,1<arguments.length?arguments[1]:void 0)},forEach:function(t){Z(Tt(this),t,1<arguments.length?arguments[1]:void 0)},indexOf:function(t){return ut(Tt(this),t,1<arguments.length?arguments[1]:void 0)},includes:function(t){return it(Tt(this),t,1<arguments.length?arguments[1]:void 0)},join:function(){return ht.apply(Tt(this),arguments)},lastIndexOf:function(){return ft.apply(Tt(this),arguments)},map:function(t){return At(Tt(this),t,1<arguments.length?arguments[1]:void 0)},reduce:function(){return lt.apply(Tt(this),arguments)},reduceRight:function(){return pt.apply(Tt(this),arguments)},reverse:function(){for(var t,e=this,n=Tt(e).length,r=_Mathfloor(n/2),o=0;o<r;)t=e[o],e[o++]=e[--n],e[n]=t;return e},some:function(t){return et(Tt(this),t,1<arguments.length?arguments[1]:void 0)},sort:function(t){return dt.call(Tt(this),t)},subarray:function(t,e){var n=Tt(this),r=n.length,o=y(t,r);return new(M(n,n[xt]))(n.buffer,n.byteOffset+o*n.BYTES_PER_ELEMENT,v((void 0===e?r:y(e,r))-o))}},Dt=function(t,e){return qt(this,vt.call(Tt(this),t,e))},zt=function(t){Tt(this);var e=Rt(arguments[1],1),n=this.length,r=_(t),o=v(r.length),i=0;if(o+e>n)throw Y(St);for(;i<o;)this[e+i]=r[i++]},Yt={entries:function(){return ct.call(Tt(this))},keys:function(){return st.call(Tt(this))},values:function(){return at.call(Tt(this))}},Gt=function(t,e){return x(t)&&t[Et]&&"symbol"!=typeof e&&e in t&&+e+""==e+""},Wt=function(t,e){return Gt(t,e=g(e,!0))?l(2,t[e]):z(t,e)},Vt=function(t,e,n){return!(Gt(t,e=g(e,!0))&&x(n)&&b(n,"value"))||b(n,"get")||b(n,"set")||n.configurable||b(n,"writable")&&!n.writable||b(n,"enumerable")&&!n.enumerable?D(t,e,n):(t[e]=n.value,t)};_t||(B.f=Wt,U.f=Vt),u(u.S+u.F*!_t,"Object",{getOwnPropertyDescriptor:Wt,defineProperty:Vt}),i(function(){yt.call({})})&&(yt=gt=function(){return ht.call(this)});var $t=h({},Bt);h($t,Yt),p($t,bt,Yt.values),h($t,{slice:Dt,set:zt,constructor:function(){},toString:yt,toLocaleString:Ut}),Lt($t,"buffer","b"),Lt($t,"byteOffset","o"),Lt($t,"byteLength","l"),Lt($t,"length","e"),D($t,mt,{get:function(){return this[Et]}}),t.exports=function(t,e,n,s){s=!!s;var c=t+(s?"Clamped":"")+"Array",l=o[c],h=l||{},d=l&&S(l),y=!l||!a.ABV,g={},b=l&&l[J],m=function(n,r){var o=n._d;return o.v["get"+t](r*e+o.o,jt)},_=function(n,r,o){var i=n._d;s&&(o=0>(o=Math.round(o))?0:255<o?255:255&o),i.v["set"+t](r*e+i.o,o,jt)},E=function(t,e){D(t,e,{get:function(){return m(this,e)},set:function(t){return _(this,e,t)},enumerable:!0})};y?(l=n(function(t,n,r,o){f(t,l,c,"_d");var i,u,a,s,h=0,d=0;if(x(n)){if(!(n instanceof K||(s=w(n))==V||s==$))return Et in n?Ct(l,n):Ft.call(l,n);i=n,d=Rt(r,e);var y=n.byteLength;if(void 0===o){if(y%e)throw Y(St);if(0>(u=y-d))throw Y(St)}else if((u=v(o)*e)+d>y)throw Y(St);a=u/e}else a=kt(n,!0),u=a*e,i=new K(u);for(p(t,"_d",{b:i,o:d,l:u,e:a,v:new Q(i)});h<a;)E(t,h++)}),b=l[J]=O($t),p(b,"constructor",l)):!L(function(t){new l(null),new l(t)},!0)&&(l=n(function(t,n,r,o){f(t,l,c);var i;return x(n)?n instanceof K||(i=w(n))==V||i==$?void 0===o?void 0===r?new h(n):new h(n,Rt(r,e)):new h(n,Rt(r,e),o):Et in n?Ct(l,n):Ft.call(l,n):new h(kt(n,"Uint8Array"!=c))}),Z(d===Function.prototype?A(h):A(h).concat(A(d)),function(t){t in l||p(l,t,h[t])}),l[J]=b,!r&&(b.constructor=l));var j=b[bt],P=!!j&&("values"==j.name||void 0==j.name),k=Yt.values;p(l,wt,!0),p(b,Et,c),p(b,Ot,!0),p(b,xt,l),(s?new l(1)[mt]!=c:!(mt in b))&&D(b,mt,{get:function(){return c}}),g[c]=l,u(u.G+u.W+u.F*(l!=h),g),u(u.S,c,{BYTES_PER_ELEMENT:e,from:Ft,of:Nt}),H in b||p(b,H,e),u(u.P,c,Bt),F(c),u(u.P+u.F*Pt,c,{set:zt}),u(u.P+u.F*!P,c,Yt),u(u.P+u.F*(b.toString!=yt),c,{toString:yt}),u(u.P+u.F*i(function(){new l(1).slice()}),c,{slice:Dt}),u(u.P+u.F*(i(function(){return[1,2].toLocaleString()!=new l([1,2]).toLocaleString()})||!i(function(){b.toLocaleString.call([1,2])})),c,{toLocaleString:Ut}),C[c]=P?j:k,r||P||p(b,bt,k)}}else t.exports=function(){}},function(t,e,n){var r=n(44)("meta"),o=n(4),i=n(11),u=n(8).f,a=0,s=Object.isExtensible||function(){return!0},c=!n(3)(function(){return s(Object.preventExtensions({}))}),f=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!s(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!s(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return c&&l.NEED&&s(t)&&!i(t,r)&&f(t),t}}},function(t){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t){t.exports=function(t){return isNaN(t=+t)?0:(0<t?_Mathfloor:_Mathceil)(t)}},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(6),c=r(s),f=n(26),l=r(f),p=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return u(e,t),e.register=function(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:{},n=1<arguments.length&&void 0!==arguments[1]?arguments[1]:[];e.def||(e.def={icon:{},i18n:{}}),e.templates=t;var r=l.default.locale;e.def.i18n[r]||(e.def.i18n[r]={}),c.default.register(Object.keys(t),e);for(var o=n,i=Array.isArray(o),u=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(u>=o.length)break;a=o[u++]}else{if(u=o.next(),u.done)break;a=u.value}var s=a,f=s.type;if(s.attrs=s.attrs||{},!f){if(!s.attrs.type){this.error("Ignoring invalid custom field definition. Please specify a type property.");continue}f=s.attrs.type}var p=s.subtype||f;if(!t[f]){var h=c.default.getClass(f,s.subtype);if(!h){this.error("Error while registering custom field: "+f+(s.subtype?":"+s.subtype:"")+". Unable to find any existing defined control or template for rendering.");continue}p=f+"-"+_Mathfloor(9e3*Math.random()+1e3),e.customRegister[p]=$.extend(s,{type:f,class:h})}e.def.i18n[r][p]=s.label,e.def.icon[p]=s.icon}},e.getRegistered=function(){var t=0<arguments.length&&void 0!==arguments[0]&&arguments[0];return t?c.default.getRegistered(t):Object.keys(e.customRegister)},e.lookup=function(t){return e.customRegister[t]},e.prototype.build=function(){var t=e.templates[this.type];if(!t)return this.error("Invalid custom control type. Please ensure you have registered it correctly as a template option.");for(var n=Object.assign(this.config),r=["label","description","subtype","id","isPreview","required","title","aria-required","type"],o=r,i=Array.isArray(o),u=0,o=i?o:o[Symbol.iterator]();;){var a;if(i){if(u>=o.length)break;a=o[u++]}else{if(u=o.next(),u.done)break;a=u.value}var s=a;n[s]=this.config[s]||this[s]}return t=t.bind(this),t=t(n),t.js&&(this.js=t.js),t.css&&(this.css=t.css),this.onRender=t.onRender,{field:t.field,layout:t.layout}},a(e,null,[{key:"definition",get:function(){return e.def}}]),e}(c.default);e.default=p,p.customRegister={}},function(t,e,n){"use strict";function r(t,e){var n={};for(var r in t)0<=e.indexOf(r)||Object.prototype.hasOwnProperty.call(t,r)&&(n[r]=t[r]);return n}function o(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function i(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function u(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var a=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),s=n(6),c=function(t){return t&&t.__esModule?t:{default:t}}(s),f=function(t){function e(){return o(this,e),i(this,t.apply(this,arguments))}return u(e,t),e.prototype.build=function(){var t=this.config,e=t.value,n=void 0===e?"":e,o=r(t,["value"]);return this.field=this.markup("textarea",this.parsedHtml(n),o),this.field},e.prototype.on=function(e){var n=this;return"prerender"==e&&this.preview?function(t){n.field&&(t=n.field),$(t).on("mousedown",function(t){t.stopPropagation()})}:t.prototype.on.call(this,e)},a(e,null,[{key:"definition",get:function(){return{mi18n:{textarea:"textArea"}}}}]),e}(c.default);e.default=f,c.default.register("textarea",f),c.default.register("textarea",f,"textarea")},function(t){t.exports=function(t,e,n,r){if(!(t instanceof e)||void 0!==r&&r in t)throw TypeError(n+": incorrect invocation!");return t}},function(t){t.exports=!1},function(t,e,n){var r=n(1),o=n(129),i=n(85),u=n(97)("IE_PROTO"),a=function(){},s="prototype",c=function(){var t,e=n(84)("iframe"),r=i.length;for(e.style.display="none",n(87).appendChild(e),e.src="javascript:",t=e.contentWindow.document,t.open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c[s][i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null===t?n=c():(a[s]=r(t),n=new a,a[s]=null,n[u]=t),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(131),o=n(85).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){var r=n(131),o=n(85);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(14);t.exports=function(t,e,n){for(var o in e)r(t,o,e[o],n);return t}},function(t,e,n){"use strict";var r=n(2),o=n(8),i=n(7),u=n(5)("species");t.exports=function(t){var e=r[t];i&&e&&!e[u]&&o.f(e,u,{configurable:!0,get:function(){return this}})}},function(t,e,n){var r=n(33),o=Math.max;t.exports=function(t,e){return t=r(t),0>t?o(t+e,0):_Mathmin(t,e)}},function(t){var e=0,n=Math.random();t.exports=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++e+n).toString(36))}},function(t){var e=function(){return this}();try{e=e||Function("return this")()||(0,eval)("this")}catch(t){"object"==typeof window&&(e=window)}t.exports=e},function(t,e,n){var r=n(5)("unscopables"),o=Array.prototype;void 0==o[r]&&n(13)(o,r,{}),t.exports=function(t){o[r][t]=!0}},function(t,e,n){var r=n(28),o=n(125),i=n(89),u=n(1),a=n(9),s=n(106),c={},f={},e=t.exports=function(t,e,n,l,p){var h,d,v,y,g=p?function(){return t}:s(t),b=r(n,l,e?2:1),m=0;if("function"!=typeof g)throw TypeError(t+" is not iterable!");if(i(g)){for(h=a(t.length);h>m;m++)if((y=e?b(u(d=t[m])[0],d[1]):b(t[m]))===c||y===f)return y}else for(v=g.call(t);!(d=v.next()).done;)if((y=o(v,b,d.value,e))===c||y===f)return y};e.BREAK=c,e.RETURN=f},function(t){t.exports={}},function(t,e,n){var r=n(8).f,o=n(11),i=n(5)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){var r=n(0),o=n(21),i=n(3),u=n(102),a="["+u+"]",s="
",c=RegExp("^"+a+a+"*"),f=RegExp(a+a+"*$"),l=function(t,e,n){var o={},a=i(function(){return!!u[t]()||s[t]()!=s}),c=o[t]=a?e(p):u[t];n&&(o[n]=c),r(r.P+r.F*a,"String",o)},p=l.trim=function(t,e){return t=o(t)+"",1&e&&(t=t.replace(c,"")),2&e&&(t=t.replace(f,"")),t};t.exports=l},function(t,e){"use strict";function n(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var r=e.instanceDom={},o=e.defaultSubtypes={text:["text","password","email","color","tel"],header:["h1","h2","h3"],button:["button","submit","reset"],paragraph:["p","address","blockquote","canvas","output"],textarea:["textarea","quill"]},i=(e.remove=function(t){t.parentNode&&t.parentNode.removeChild(t)},e.empty=function(t){for(;t.firstChild;)t.removeChild(t.firstChild);return t}),u=e.filter=function(t,e){var n=!(2<arguments.length&&void 0!==arguments[2])||arguments[2],r=[],o=["none","block"];n&&(o=o.reverse());for(var i,u=t.length-1;0<=u;u--)i=t[u].textContent.toLowerCase(),-1===i.indexOf(e.toLowerCase())?t[u].style.display=o[1]:(t[u].style.display=o[0],r.push(t[u]));return r},a=e.optionFields=["select","checkbox-group","checkbox","radio-group","autocomplete"],s=e.optionFieldsRegEx=new RegExp("("+a.join("|")+")");e.default=function t(e){return n(this,t),this.optionFields=a,this.optionFieldsRegEx=s,this.subtypes=o,this.empty=i,this.filter=u,r[e]=this,r[e]}},function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0});e.defaultOptions={controlPosition:"right",append:!1,actionButtons:[],controlOrder:["autocomplete","button","checkbox","checkbox-group","date","file","header","hidden","paragraph","number","radio-group","select","text","textarea"],dataType:"json",disableFields:[],disabledAttrs:[],disabledActionButtons:[],editOnAdd:!1,defaultFields:[],fields:[],fieldRemoveWarn:!1,inputSets:[],roles:{1:"Administrator"},notify:{error:function(t){return console.error(t)},success:function(t){return console.log(t)},warning:function(t){return console.warn(t)}},onSave:function(){return null},onClearAll:function(){return null},prepend:!1,sortableControls:!1,stickyControls:{enable:!0,offset:{top:5,bottom:"auto",right:"auto"}},templates:{},showActionButtons:!0,typeUserDisabledAttrs:{},typeUserAttrs:{},typeUserEvents:{},prefix:"form-builder-"},e.styles={btn:["default","danger","info","primary","success","warning"]},e.defaultI18n={location:"https://formbuilder.online/assets/lang/",langs:["en-US"],preloaded:{"en-US":{addOption:"Add Option +",allFieldsRemoved:"All fields were removed.",allowMultipleFiles:"Allow users to upload multiple files",autocomplete:"Autocomplete",button:"Button",cannotBeEmpty:"This field cannot be empty",checkboxGroup:"Checkbox Group",checkbox:"Checkbox",checkboxes:"Checkboxes",className:"Class",clearAllMessage:"Are you sure you want to clear all fields?",clear:"Clear",close:"Close",content:"Content",copy:"Copy To Clipboard",copyButton:"+",copyButtonTooltip:"Copy",dateField:"Date Field",description:"Help Text",descriptionField:"Description",devMode:"Developer Mode",editNames:"Edit Names",editorTitle:"Form Elements",editXML:"Edit XML",enableOther:"Enable "Other"",enableOtherMsg:"Let users to enter an unlisted option",fieldNonEditable:"This field cannot be edited.",fieldRemoveWarning:"Are you sure you want to remove this field?",fileUpload:"File Upload",formUpdated:"Form Updated",getStarted:"Drag a field from the right to this area",header:"Header",hide:"Edit",hidden:"Hidden Input",inline:"Inline",inlineDesc:"Display {type} inline",label:"Label",labelEmpty:"Field Label cannot be empty",limitRole:"Limit access to one or more of the following roles:",mandatory:"Mandatory",maxlength:"Max Length",minOptionMessage:"This field requires a minimum of 2 options",minSelectionRequired:"Minimum {min} selections required",multipleFiles:"Multiple Files",name:"Name",no:"No",noFieldsToClear:"There are no fields to clear",number:"Number",off:"Off",on:"On",option:"Option",options:"Options",optional:"optional",optionLabelPlaceholder:"Label",optionValuePlaceholder:"Value",optionEmpty:"Option value required",other:"Other",paragraph:"Paragraph",placeholder:"Placeholder","placeholder.value":"Value","placeholder.label":"Label","placeholder.text":"","placeholder.textarea":"","placeholder.email":"Enter you email","placeholder.placeholder":"","placeholder.className":"space separated classes","placeholder.password":"Enter your password",preview:"Preview",radioGroup:"Radio Group",radio:"Radio",removeMessage:"Remove Element",removeOption:"Remove Option",remove:"×",required:"Required",richText:"Rich Text Editor",roles:"Access",rows:"Rows",save:"Save",selectOptions:"Options",select:"Select",selectColor:"Select Color",selectionsMessage:"Allow Multiple Selections",size:"Size","size.xs":"Extra Small","size.sm":"Small","size.m":"Default","size.lg":"Large",style:"Style","styles.btn.default":"Default","styles.btn.danger":"Danger","styles.btn.info":"Info","styles.btn.primary":"Primary","styles.btn.success":"Success","styles.btn.warning":"Warning",subtype:"Type",text:"Text Field",textArea:"Text Area",toggle:"Toggle",warning:"Warning!",value:"Value",viewJSON:"{ }",viewXML:"</>",yes:"Yes"}}},e.config={}},function(t,e){"use strict";function n(t){var e;return"function"==typeof Event?e=new Event(t):(e=document.createEvent("Event"),e.initEvent(t,!0,!0)),e}Object.defineProperty(e,"__esModule",{value:!0});var r={loaded:n("loaded"),viewData:n("viewData"),userDeclined:n("userDeclined"),modalClosed:n("modalClosed"),modalOpened:n("modalOpened"),formSaved:n("formSaved"),fieldAdded:n("fieldAdded"),fieldRemoved:n("fieldRemoved"),fieldRendered:n("fieldRendered")};e.default=r},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}function o(t,e){if(!t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!e||"object"!=typeof e&&"function"!=typeof e?t:e}function i(t,e){if("function"!=typeof e&&null!==e)throw new TypeError("Super expression must either be null or a function, not "+typeof e);t.prototype=Object.create(e&&e.prototype,{constructor:{value:t,enumerable:!1,writable:!0,configurable:!0}}),e&&(Object.setPrototypeOf?Object.setPrototypeOf(t,e):t.__proto__=e)}Object.defineProperty(e,"__esModule",{value:!0});var u=function(){function t(t,e){for(var n,r=0;r<e.length;r++)n=e[r],n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(t,n.key,n)}return function(e,n,r){return n&&t(e.prototype,n),r&&t(e,r),e}}(),a=n(6),s=function(t){return t&&t.__esModule?t:{default:t}}(a),c=function(t){function e(){return r(this,e),o(this,t.apply(this,arguments))}return i(e,t),e.prototype.build=function(){return this.markup("input",null,this.config)},u(e,null,[{key:"definition",get:function(){return{mi18n:{date:"dateField",file:"fileUpload"}}}}]),e}(s.default);e.default=c,s.default.register(["text","file","date","number"],c),s.default.register(["text","password","email","color","tel"],c,"text")},function(t,e,n){var r=n(20),o=n(5)("toStringTag"),i="Arguments"==r(function(){return arguments}()),u=function(t,e){try{return t[e]}catch(t){}};t.exports=function(t){var e,n,a;return void 0===t?"Undefined":null===t?"Null":"string"==typeof(n=u(e=Object(t),o))?n:i?r(e):"Object"==(a=r(e))&&"function"==typeof e.callee?"Arguments":a}},function(t,e,n){var r=n(20);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";function r(t){return t&&t.__esModule?t:{default:t}}Object.defineProperty(e,"__esModule",{value:!0});var o=n(73),i=r(o),u=n(74),a=r(u),s=n(34),c=r(s),f=n(76),l=r(f),p=n(77),h=r(p),d=n(78),v=r(d),y=n(54),g=r(y),b=n(75),m=r(b),w=n(35),x=r(w),_=n(80),E=r(_),O=n(79),S=r(O);e.default={controlAutocomplete:i.default,controlButton:a.default,controlCustom:c.default,controlHidden:l.default,controlParagraph:h.default,controlSelect:v.default,controlText:g.default,controlFineUploader:m.default,controlTextarea:x.default,controlTinymce:E.default,controlQuill:S.default}},function(t,e,n){"use strict";function r(t,e){if(!(t instanceof e))throw new TypeError("Cannot call a class as a function")}Object.defineProperty(e,"__esModule",{value:!0});var o="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},i=n(19),u=function(t){return t&&t.__esModule?t:{default:t}}(i),a=function(){function t(e,n){var o=this;r(this,t),this.preview=n,this.templates={label:null,help:null,default:function(t,e,n,r){n&&e.append(n);var i=r.id?"fb-"+r.type+" form-group field-"+r.id:"";return o.markup("div",[e,t],{className:i})},noLabel:function(t,e,n,r){var i=r.id?"fb-"+r.type+" form-group field-"+r.id:"";return o.markup("div",t,{className:i})},hidden:function(t){return t}},e&&(this.templates=$.extend(this.templates,e)),this.configure()}return t.prototype.configure=function(){},t.prototype.build=function(t,e,n){this.preview&&(e.name?e.name+="-preview":e.name=u.default.nameAttr(e)+"-preview"),e.id=e.name,this.data=$.extend({},e);var r=new t(e,this.preview),i=r.build();"object"===(void 0===i?"undefined":o(i))&&i.field||(i={field:i});var a,s=this.label(),c=this.help();a=n&&this.isTemplate(n)?n:this.isTemplate(i.layout)?i.layout:"default";var f=this.processTemplate(a,i.field,s,c);return r.on("prerender")(f),f.addEventListener("fieldRendered",r.on("render")),f},t.prototype.label=function(){var t=this.data.label||"",e=u.default.parsedHtml(t),n=[e];return this.data.required&&n.push(this.markup("span","*",{className:"fb-required"})),this.isTemplate("label")?this.processTemplate("label",n):this.markup("label",n,{for:this.data.id,className:"fb-"+this.data.type+"-label"})},t.prototype.help=function(){return this.data.description?this.isTemplate("help")?this.processTemplate("help",this.data.description):this.markup("span","?",{className:"tooltip-element",tooltip:this.data.description}):null},t.prototype.isTemplate=function(t){return"function"==typeof this.templates[t]},t.prototype.processTemplate=function(t){for(var e,n=arguments.length,r=Array(1<n?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];var i=(e=this.templates)[t].apply(e,r.concat([this.data]));return i.jquery&&(i=i[0]),i},t.prototype.markup=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:"",n=2<arguments.length&&void 0!==arguments[2]?arguments[2]:{};return u.default.markup(t,e,n)},t}();e.default=a},function(t,e,n){(function(e,n){!function(e){"use strict";function r(t,e,n,r){var o=Object.create((e||i).prototype),u=new d(r||[]);return o._invoke=l(t,n,u),o}function o(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}function i(){}function u(){}function a(){}function s(t){["next","throw","return"].forEach(function(e){t[e]=function(t){return this._invoke(e,t)}})}function c(t){this.arg=t}function f(t){function e(e,n){var r=t[e](n),u=r.value;return u instanceof c?Promise.resolve(u.arg).then(o,i):Promise.resolve(u).then(function(t){return r.value=t,r})}"object"==typeof n&&n.domain&&(e=n.domain.bind(e));var r,o=e.bind(t,"next"),i=e.bind(t,"throw");e.bind(t,"return");this._invoke=function(t,n){function o(){return e(t,n)}return r=r?r.then(o,o):new Promise(function(t){t(o())})}}function l(t,e,n){var r=_;return function(i,u){if(r==O)throw new Error("Generator is already running");if(r==S){if("throw"===i)throw u;return y()}for(;;){var a=n.delegate;if(a){if("return"===i||"throw"===i&&a.iterator[i]===g){n.delegate=null;var s=a.iterator.return;if(s){var c=o(s,a.iterator,u);if("throw"===c.type){i="throw",u=c.arg;continue}}if("return"===i)continue}var c=o(a.iterator[i],a.iterator,u);if("throw"===c.type){n.delegate=null,i="throw",u=c.arg;continue}i="next",u=g;var f=c.arg;if(!f.done)return r=E,f;n[a.resultName]=f.value,n.next=a.nextLoc,n.delegate=null}if("next"===i)n._sent=u,n.sent=r==E?u:g;else if("throw"===i){if(r==_)throw r=S,u;n.dispatchException(u)&&(i="next",u=g)}else"return"===i&&n.abrupt("return",u);r=O;var c=o(t,e,n);if("normal"===c.type){r=n.done?S:E;var f={value:c.arg,done:n.done};if(c.arg!==A)return f;n.delegate&&"next"===i&&(u=g)}else"throw"===c.type&&(r=S,i="throw",u=c.arg)}}}function p(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function h(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function d(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(p,this),this.reset(!0)}function v(t){if(t){var e=t[m];if(e)return e.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var n=-1,r=function e(){for(;++n<t.length;)if(b.call(t,n))return e.value=t[n],e.done=!1,e;return e.value=g,e.done=!0,e};return r.next=r}}return{next:y}}function y(){return{value:g,done:!0}}var g,b=Object.prototype.hasOwnProperty,m="function"==typeof Symbol&&Symbol.iterator||"@@iterator",w="object"==typeof t,x=e.regeneratorRuntime;if(x)return void(w&&(t.exports=x));x=e.regeneratorRuntime=w?t.exports:{},x.wrap=r;var _="suspendedStart",E="suspendedYield",O="executing",S="completed",A={},j=a.prototype=i.prototype;u.prototype=j.constructor=a,a.constructor=u,u.displayName="GeneratorFunction",x.isGeneratorFunction=function(t){var e="function"==typeof t&&t.constructor;return!!e&&(e===u||"GeneratorFunction"===(e.displayName||e.name))},x.mark=function(t){return Object.setPrototypeO