formeo 1.7.0 → 2.0.0
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/dist/demo/assets/demo-BzV-27E4.js +1 -0
- package/dist/demo/assets/demo-DDZktgrl.css +1 -0
- package/dist/demo/assets/formeo-BbXJbC9p.js +191 -0
- package/dist/demo/assets/formeo-BbXJbC9p.js.gz +0 -0
- package/dist/demo/assets/formeo-Do8ZQSbZ.css +1 -0
- package/dist/demo/assets/formeo-Do8ZQSbZ.css.gz +0 -0
- package/dist/demo/index.html +1 -0
- package/dist/formeo.min.js +14 -18
- package/dist/formeo.min.js.gz +0 -0
- package/dist/style.css +8 -0
- package/dist/style.css.gz +0 -0
- package/package.json +33 -131
- package/CHANGELOG.md +0 -311
- package/demo/assets/css/demo.min.css +0 -5
- package/demo/assets/css/formeo.min.css +0 -5
- package/demo/assets/img/formeo-sprite.svg +0 -1
- package/demo/assets/img/noise.png +0 -0
- package/demo/assets/js/demo.min.js +0 -18
- package/demo/assets/js/demo.min.js.gz +0 -0
- package/demo/assets/js/formeo.min.js +0 -18
- package/demo/assets/js/formeo.min.js.gz +0 -0
- package/demo/assets/lang/af-ZA.lang +0 -184
- package/demo/assets/lang/ar-TN.lang +0 -96
- package/demo/assets/lang/de-DE.lang +0 -184
- package/demo/assets/lang/en-US.lang +0 -183
- package/demo/assets/lang/es-ES.lang +0 -184
- package/demo/assets/lang/fi-FI.lang +0 -184
- package/demo/assets/lang/hu-HU.lang +0 -184
- package/demo/assets/lang/it-IT.lang +0 -185
- package/demo/assets/lang/ja-JP.lang +0 -185
- package/demo/assets/lang/nb-NO.lang +0 -185
- package/demo/assets/lang/pl-PL.lang +0 -185
- package/demo/assets/lang/ro-RO.lang +0 -184
- package/demo/assets/lang/ru-RU.lang +0 -185
- package/demo/assets/lang/tr-TR.lang +0 -185
- package/demo/assets/lang/zh-CN.lang +0 -185
- package/demo/index.html +0 -98
- package/dist/formeo.min.css +0 -5
- /package/{demo/assets/img/formeo-logo.svg → dist/demo/assets/formeo-logo-Dn3NIg38.svg} +0 -0
- /package/{demo/assets/img/github.png → dist/demo/assets/github-C2KtZCcj.png} +0 -0
package/dist/formeo.min.js
CHANGED
|
@@ -1,18 +1,14 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
!function(t,e){if("object"==typeof exports&&"object"==typeof module)module.exports=e();else if("function"==typeof define&&define.amd)define([],e);else{var n=e();for(var r in n)("object"==typeof exports?exports:t)[r]=n[r]}}(window,function(){return function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="/dist",o(o.s=206)}([function(t,e,n){"use strict";var b=n(4),r=n(3),l=n.n(r),i=n(6),a=n(7),u=n(5),d=n(2),f=n(1);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){c(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function h(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var v=new(function(){function t(){var t,g=this;c(this,"render",function(t){return t.id="f-"+(t.id||Object(d.n)()),g.create(t)}),c(this,"create",function(t,e){if(void 0===e&&(e=!1),t){t=g.processTagName(t);var n,r,o=g,i=t.tag,a=["children","content"],s={attrs:{},className:[b.b.get(t,"config.inputWrap")||"f-field-group"],children:[],config:{}},c=document.createElement(i),l={string:function(t){c.innerHTML+=t},object:function(t){return t&&c.appendChild(o.create(t,e))},node:function(t){return c.appendChild(t)},component:function(t){return c.appendChild(t.dom)},array:function(t){for(var e=0;e<t.length;e++)n=o.childType(t[e]),l[n](t[e])},function:function(t){t=t(),n=o.childType(t),l[n](t)},undefined:function(){return null},boolean:function(){return null}};if(a.push("tag"),t.className){var u=t.className;t.attrs=Object.assign({},t.attrs,{className:u}),delete t.className}if(t.options){var d=t.options;if(d=g.processOptions(d,t,e),!g.holdsContent(c)||"button"===i)return b.b.forEach(d,function(t){s.children.push(o.create(t,e))}),t.attrs.className&&(s.className=t.attrs.className),s.config=Object.assign({},t.config),g.create(s,e);l.array.call(g,d),delete t.content,a.push("options")}if("OPTION"===c.tagName&&setTimeout(function(){c.selected=!1},0),t.attrs&&(o.processAttrs(t,c,e),a.push("attrs")),t.config){if(t.config.label&&(t.config.label&&"button"!==i||["radio","checkbox"].includes(b.b.get(t,"attrs.type")))&&!e){var f=o.label(t);if(!t.config.hideLabel){var p=[].concat(o.labelAfter(t)?[c,f]:[f,c]);s.children.push(p)}}a.push("config")}if(t.content||t.children){var h=t.content||t.children;n=o.childType(h),l[n]||console.error("childType: "+n+" is not supported"),l[n].call(g,h)}if(t.dataset){for(var v in t.dataset)t.dataset.hasOwnProperty(v)&&(c.dataset[v]="function"==typeof t.dataset[v]?t.dataset[v]():t.dataset[v]);a.push("dataset")}t.action&&(g.actionHandler(c,t.action),a.push("action"));var m=b.b.subtract(a,Object.keys(t));for(r=m.length-1;0<=r;r--)c[m[r]]=t[m[r]];return s.children.length&&(c=g.create(s)),c}}),c(this,"onRender",function(t,e){t.parentElement?e(t):window.requestAnimationFrame(function(){return g.onRender(t,e)})}),c(this,"toggleElementsByStr",function(t,e){var n=[];return v.elementsContainText(t,e,function(t,e){e?(t.style.display="block",n.push(t)):t.style.display="none"}),n}),c(this,"elementsContainText",function(t,n,r){var o=[];return Object(b.c)(t,function(t){var e=-1!==t.textContent.toLowerCase().indexOf(n.toLowerCase());r&&r(t,e),e&&o.push(t)}),o}),c(this,"generateOption",function(t){var e,n=t.type,r=void 0===n?"option":n,o=t.label,i=t.value,a=t.i,s=void 0===a?0:a,c=t.selected;return{tag:"option"===r?"option":"input",attrs:(e={type:r,value:i||r+"-"+s},e["option"===r?"selected":"checked"]=c||!s,e),config:{label:o||l.a.get("labelCount",{label:l.a.get("option"),count:s})}}}),c(this,"makeOption",function(t,e,n){var r=t[0],o=t[1],i={value:r,label:l.a.get(n+"."+o)||o};return r===e&&(i.selected=!0),i}),c(this,"requiredMark",function(){return{tag:"span",className:"text-error",children:"*"}}),c(this,"removeEmpty",function(t){var e=t.parentElement,n=Object(d.c)(t),r=e.getElementsByClassName("formeo-"+n);if(g.remove(t),!r.length){if(!g.isStage(e))return g.removeEmpty(e);g.emptyClass(e)}}),c(this,"btnTemplate",function(t){var e=t.title;return p({tag:"button",attrs:{type:"button",title:void 0===e?"":e}},h(t,["title"]))}),c(this,"isControls",function(t){return Object(d.c)(t)===f.o}),c(this,"isStage",function(t){return Object(d.c)(t)===f.H}),c(this,"isRow",function(t){return Object(d.c)(t)===f.E}),c(this,"isColumn",function(t){return Object(d.c)(t)===f.g}),c(this,"isField",function(t){return Object(d.c)(t)===f.z}),c(this,"asComponent",function(t){return u.e[Object(d.c)(t)+"s"].get(t.id)}),this.options=Object.create(null),this.styleSheet=((t=document.createElement("style")).setAttribute("media","screen"),t.setAttribute("type","text/css"),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet)}var e,n,r,o=t.prototype;return o.processTagName=function(t){var e;if("string"==typeof t&&(t={tag:e=t}),t.attrs){var n=t.attrs,r=n.tag,o=h(n,["tag"]);if(r)if("string"==typeof r)e=r;else e=(r.find(function(t){return!0===t.selected})||r[0]).value;t.attrs=o}return t.tag=e||t.tag||"div",t},o.actionHandler=function(o,t){var i={onRender:v.onRender},a=["focus","blur"];return Object.entries(t).map(function(t){var n,e=t[0],r=t[1];return(i[e]||(n=e,function(t,e){return t.addEventListener(n,e,a.includes(n))}))(o,r)})},o.icon=function(t){if(void 0===t&&(t=null),t){var e,n="f-i-",r={glyphicons:function(t){return'<span class="glyphicon glyphicon-'+t+'" aria-hidden="true"></span>'},"font-awesome":function(t){var e=t.split(" ");return'<i class="'+e[0]+" fa-"+e[1]+'"></i>'},fontello:function(t){return'<i class="'+n+t+'">'+t+"</i>"}};return e=document.getElementById(n+t)?'<svg class="svg-icon '+n+t+'"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#'+n+t+'"></use></svg>':v.options.iconFont?r[v.options.iconFont](t):t,e}},o.processAttrs=function(t,o,e){var n=t.attrs,i=void 0===n?{}:n;e||!i.name&&this.isInput(t.tag)&&o.setAttribute("name",Object(d.n)(t)),Object.keys(i).forEach(function(t){var e=b.b.safeAttrName(t),n=i[t]||"";if(Array.isArray(n))if("object"==typeof n[0]){var r=n.filter(function(t){return!0===t.selected});n=r.length?r[0].value:n[0].value}else n=n.join(" ");n&&("OPTION"===o.tagName&&"selected"===e?setTimeout(function(){o.setAttribute(e,n)},0):o.setAttribute(e,n))})},o.processOptions=function(t,a,s){var c=a.action,e=a.attrs,l=e.type||a.tag,u=e.id||a.id;return t.map(function(r,o){r.label;var i=h(r,["label"]),t=function(){var t={tag:"input",attrs:p({name:u,type:l,value:r.value||"",id:u+"-"+o},i),action:c},e={tag:"label",attrs:{for:u+"-"+o},config:{inputWrap:"form-check"},children:r.label},n={children:[t,e],className:["f-"+l]};return a.attrs.className&&(a.config.inputWrap=a.attrs.className),a.config.inline&&n.className.push("f-"+l+"-inline"),r.selected&&(t.attrs.checked=!0),s&&(e.attrs.contenteditable=!0),n},e={select:function(){return{tag:"option",attrs:r,children:r.label}},button:function(t){var e=t.type,n=t.label,r=t.className,o=t.id;return Object.assign({},a,{attrs:{type:e},className:r,id:o||Object(d.n)(),options:void 0,children:n,action:a.action})},checkbox:t,radio:t};return e[l]&&e[l](r)})},o.holdsContent=function(t){return-1!==t.outerHTML.indexOf("/")},o.isBlockInput=function(t){return!this.isInput(t)&&this.holdsContent(t)},o.isInput=function(t){return"string"!=typeof t&&(t=t.tagName),-1!==["input","textarea","select"].indexOf(t)},o.parsedHtml=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.textContent},o.labelAfter=function(t){var e=b.b.get(t,"attrs.type"),n=b.b.get(t,"config.labelAfter");return void 0!==n?n:"checkbox"===e||"radio"===e},o.label=function(t,e){var n=b.b.get(t,"attrs.required"),r=t.config.label,o=void 0===r?"":r,i=t.id,a=t.attrs;"function"==typeof o&&(o=o());var s={tag:"label",attrs:{for:i||a&&a.id},className:[],children:[o,n&&this.requiredMark()],action:{}};return e&&(delete s.attrs.for,s.attrs.contenteditable=!0,s.fMap=e),s},o.childType=function(e){return void 0===e?e:[["array",function(t){return Array.isArray(t)}],["node",function(t){return t instanceof window.Node||t instanceof window.HTMLElement}],["component",function(){return e&&e.dom}],[typeof e,function(){return!0}]].find(function(t){return t[1](e)})[0]},o.getStyle=function(t,e){var n;return void 0===e&&(e=!1),window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},o.getElement=function(t){var e={node:function(){return t},object:function(){return document.getElementById(t.id)},string:function(){return document.getElementById(t)}};return e[this.childType(t)]()},o.empty=function(t){for(;t.firstChild;)this.remove(t.firstChild);return t},o.clone=function(r,n){var t={},o=this,e=r.id,i=r.fType,a=Object(d.b)(t[i].get(e)),s=Object(b.f)(r)+1,c=!1;return a.id=Object(d.n)(),t[i].set(a.id,a),n||(n=r.parentElement,c=!0),{rows:function(){a.columns=[];var t=u.d.active,e=t.addRow(null,a.id),n=r.getElementsByClassName(f.g);return t.insertBefore(e,t.childNodes[s]),b.b.forEach(n,function(t){return o.clone(t,e)}),e},columns:function(){a.fields=[];var e=o.addColumn(n,a.id);n.insertBefore(e,n.childNodes[s]);var t=r.getElementsByClassName(f.z);return c&&v.columnWidths(n),b.b.forEach(t,function(t){return o.clone(t,e)}),e},fields:function(){var t=o.addField(n,a.id);return n.insertBefore(t,n.childNodes[s]),t}}[i]()},o.remove=function(t){var e=Object(d.c)(t);return e?u.e.remove(e+"s."+t.id):t.parentElement.removeChild(t)},o.removeClasses=function(t,n){var e={string:function(t){return t.classList.remove(n)},array:function(e){return n.forEach(function(t){return e.classList.remove(t)})}};e.object=e.string,b.b.forEach(t,e[this.childType(n)])},o.addClasses=function(t,n){var e={string:function(t){return t.classList.add(n)},array:function(e){return n.forEach(function(t){return e.classList.add(t)})}};b.b.forEach(t,e[this.childType(n)])},o.columnWidths=function(t){var e=t.getElementsByClassName(f.g);if(e.length){var n=parseFloat((100/e.length).toFixed(1))/1;this.removeClasses(e,f.J),b.b.forEach(e,function(t){u.a.get(t.id).refreshFieldPanels();var e=Object(d.i)(n);t.style.width=e,t.style.float="left",u.a.set(t.id+".config.width",e),t.dataset.colWidth=e,document.dispatchEvent(i.a.columnResized)}),v.updateColumnPreset(t)}},o.formGroup=function(t,e){return void 0===e&&(e=""),{className:["f-field-group",e],children:t}},o.coords=function(t){var e=t.getBoundingClientRect(),n=document.body.getBoundingClientRect();return{pageX:e.left+e.width/2,pageY:e.top-n.top-e.height/2}},o.clearStage=function(t){t.classList.add("removing-all-fields");a.a.slideUp(t,600,function(){v.empty(t),t.classList.remove("removing-all-fields"),v.emptyClass(t),a.a.slideDown(t,300)})},o.toggleSortable=function(t,e){var n=Object(d.c)(t);if(n){var r=Object(d.c)(t.parentElement),o=v[n].get(t.id).sortable;e||(e=!o.option("disabled")),o.option("disabled",e),r&&["rows","columns","stages"].includes(r)&&this.toggleSortable(t.parentElement,e)}},o.emptyClass=function(t){var e=t.getElementsByClassName(f.e.get(t.classList.item(0)));t.classList.toggle("empty",!e.length)},o.insertRule=function(t){for(var e=this.styleSheet,n=e.cssRules.length,r=0,o=t.length;r<o;r++){var i=1,a=t[r],s=t[r][0],c="";"[object Array]"===Object.prototype.toString.call(a[1][0])&&(a=a[1],i=0);for(var l=a.length;i<l;i++){var u=a[i],d=u[2]?" !important":"";c+=u[0]+":"+u[1]+d+";"}return e.insertRule(s+" { "+c+" }",n)}},e=t,(n=[{key:"setOptions",set:function(t){this.options=Object(d.h)(Object.assign({},this.options,t))}}])&&s(e.prototype,n),r&&s(e,r),t}());e.a=v},function(t,e,n){"use strict";n.d(e,"D",function(){return c}),n.d(e,"y",function(){return l}),n.d(e,"o",function(){return u}),n.d(e,"H",function(){return d}),n.d(e,"E",function(){return f}),n.d(e,"g",function(){return p}),n.d(e,"z",function(){return h}),n.d(e,"e",function(){return v}),n.d(e,"i",function(){return m}),n.d(e,"j",function(){return b}),n.d(e,"k",function(){return y}),n.d(e,"l",function(){return O}),n.d(e,"f",function(){return E}),n.d(e,"C",function(){return C}),n.d(e,"h",function(){return S}),n.d(e,"d",function(){return _}),n.d(e,"F",function(){return P}),n.d(e,"G",function(){return A}),n.d(e,"a",function(){return D}),n.d(e,"b",function(){return N}),n.d(e,"c",function(){return k}),n.d(e,"s",function(){return T}),n.d(e,"t",function(){return z}),n.d(e,"x",function(){return L}),n.d(e,"w",function(){return M}),n.d(e,"u",function(){return H}),n.d(e,"v",function(){return R}),n.d(e,"p",function(){return I}),n.d(e,"r",function(){return V}),n.d(e,"q",function(){return B}),n.d(e,"m",function(){return F}),n.d(e,"A",function(){return q}),n.d(e,"B",function(){return W}),n.d(e,"n",function(){return U}),n.d(e,"I",function(){return G}),n.d(e,"J",function(){return X});var r=n(28);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach(function(t){a(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function a(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var s=r.name,c=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],l="https://draggable.github.io/formeo/assets/img/formeo-sprite.svg",u="control-group",d=s+"-stage",f=s+"-row",p=s+"-column",h=s+"-field",v=new Map([[d,f],[f,p],[p,h]]),m=["external","stages","rows","columns","fields"],g=[{name:"controls",className:u},{name:"stage",className:d},{name:"row",className:f},{name:"column",className:p},{name:"field",className:h}],b={controls:u,stage:d,row:f,column:p,field:h},y=Object.entries(b).reduce(function(t,e){var n,r=e[0];return i({},t,((n={})[e[1]]=r,n))},{}),w=Object.values(b),O=new RegExp(""+w.join("|"),"g"),x=g.map(function(t,e,n){var r=t.name,o=(n[e+1]||{}).name;return o&&[r,o]}).filter(Boolean),j=x.slice().map(function(t){return t.slice().reverse()}).reverse(),E=new Map(x),C=new Map(j.slice()),S=(new Map([["stage",f],["row",p],["column",h]]),new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(function(t,e,n){return t.push([n,e]),t}))),_=[{type:"added",condition:function(t,e){return Boolean(void 0===t&&e)}}],P=r.name+"-formData",A=r.name+"-locale",D=333,N=Math.round(D/2),k=Math.round(2*D),T="formeoSaved",z="formeoUpdated",L="formeoUpdatedStage",M="formeoUpdatedRow",H="formeoUpdatedColumn",R="formeoUpdatedField",I="formeoCleared",V="formeoOnRender",B="formeoConditionUpdated",F=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],q=i({value:"attrs.value",checked:"attrs.checked"},{isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"}),W={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:q},U=function(){return{if:[{source:"",sourceProperty:"",comparison:"",target:"",targetProperty:""}],then:[{target:"",targetProperty:"",assignment:"",value:""}]}},G=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,X=/\bcol-\w+-\d+/g},function(t,e,n){"use strict";n.d(e,"g",function(){return c}),n.d(e,"k",function(){return l}),n.d(e,"c",function(){return u}),n.d(e,"m",function(){return d}),n.d(e,"n",function(){return f}),n.d(e,"h",function(){return p}),n.d(e,"b",function(){return h}),n.d(e,"j",function(){return v}),n.d(e,"i",function(){return m}),n.d(e,"a",function(){return g}),n.d(e,"l",function(){return b}),n.d(e,"d",function(){return y}),n.d(e,"f",function(){return w}),n.d(e,"e",function(){return O});var r=n(58),o=n.n(r),i=n(1),a=n(86),s=n.n(a),c=function(t,e){if(void 0===t&&(t=""),!e)return console.warn("utils.match missing argument 2."),!1;var n=/[|\\{}()[\]^*$+?.]/g,r="string"==typeof e?[e]:e,o=!0;return(r=r.map(function(t){return"*"===t?"":t.replace(n,"\\$&")})).length&&(o=!t.match(new RegExp(r.join("|"),"i"))),o},l=function(t,e){var n=t.indexOf(e);-1!==n&&t.splice(n,1)},u=function(t){var e=t.className&&t.className.match(i.l);return e&&i.k[e[0]]},d=function(t){return Array.from(new Set(t))},f=function(t){var e;if(t){var n=t.attrs;e=(void 0===n?{}:n).id||t.id||o()(),t.id=e}else e=o()();return e},p=function(t,e,n){void 0===n&&(n=Object.create(null));return s()({},t,e,function(t,e){if(Array.isArray(t))return Array.isArray(e)?d(n.mergeArray?t.concat(e):e):e})},h=function t(e){var n;if(null===e||"object"!=typeof e)return e;if(e instanceof Date)return(n=new Date).setTime(e.getTime()),n;if(e instanceof Array){n=[];for(var r=0,o=e.length;r<o;r++)n[r]=t(e[r]);return n}if(e instanceof Object){for(var i in n={},e)e.hasOwnProperty(i)&&(n[i]=t(e[i]));return n}throw new Error("Unable to copy Object, type not supported.")},v=function(t,e){return t/e*100},m=function(t){return t.toString()+"%"},g=function e(n){var r=Object.assign({},n),o={string:function(){return""},boolean:function(){return!1},object:function(t){return e(t)}};return Object.keys(n).forEach(function(t){var e=typeof n[t];o[e]&&(r[t]=o[e](n[t]))}),r},b=Object.create(null,{get:{value:function(t){var e=window.sessionStorage&&window.sessionStorage.getItem(t);try{return JSON.parse(e)}catch(t){console.error(t)}}},set:{value:function(t,e){try{return window.sessionStorage&&window.sessionStorage.setItem(t,JSON.stringify(e))}catch(t){console.error(t)}}}}),y=function(e){return i.i.some(function(t){return new RegExp("^"+t+".").test(e)})},w=function(t){return/^external/.test(t)},O=function(t){return/^is|^has/.test(t)}},function(t,e){
|
|
7
|
-
|
|
8
|
-
* mi18n - https://github.com/Draggable/mi18n
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
t.exports=function(n){var r={};function o(t){if(r[t])return r[t].exports;var e=r[t]={i:t,l:!1,exports:{}};return n[t].call(e.exports,e,e.exports,o),e.l=!0,e.exports}return o.m=n,o.c=r,o.d=function(t,e,n){o.o(t,e)||Object.defineProperty(t,e,{enumerable:!0,get:n})},o.r=function(t){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},o.t=function(e,t){if(1&t&&(e=o(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var n=Object.create(null);if(o.r(n),Object.defineProperty(n,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var r in e)o.d(n,r,function(t){return e[t]}.bind(null,r));return n},o.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return o.d(e,"a",e),e},o.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},o.p="",o(o.s=7)}([function(t,e,n){"use strict";var i="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=n(2),r=n(10),a=Object.prototype.toString;function s(t){return"[object Array]"===a.call(t)}function c(t){return null!==t&&"object"===(void 0===t?"undefined":i(t))}function l(t){return"[object Function]"===a.call(t)}function u(t,e){if(null!=t)if("object"!==(void 0===t?"undefined":i(t))&&(t=[t]),s(t))for(var n=0,r=t.length;n<r;n++)e.call(null,t[n],n,t);else for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&e.call(null,t[o],o,t)}t.exports={isArray:s,isArrayBuffer:function(t){return"[object ArrayBuffer]"===a.call(t)},isBuffer:r,isFormData:function(t){return"undefined"!=typeof FormData&&t instanceof FormData},isArrayBufferView:function(t){return"undefined"!=typeof ArrayBuffer&&ArrayBuffer.isView?ArrayBuffer.isView(t):t&&t.buffer&&t.buffer instanceof ArrayBuffer},isString:function(t){return"string"==typeof t},isNumber:function(t){return"number"==typeof t},isObject:c,isUndefined:function(t){return void 0===t},isDate:function(t){return"[object Date]"===a.call(t)},isFile:function(t){return"[object File]"===a.call(t)},isBlob:function(t){return"[object Blob]"===a.call(t)},isFunction:l,isStream:function(t){return c(t)&&l(t.pipe)},isURLSearchParams:function(t){return"undefined"!=typeof URLSearchParams&&t instanceof URLSearchParams},isStandardBrowserEnv:function(){return("undefined"==typeof navigator||"ReactNative"!==navigator.product)&&"undefined"!=typeof window&&"undefined"!=typeof document},forEach:u,merge:function n(){var r={};function t(t,e){"object"===i(r[e])&&"object"===(void 0===t?"undefined":i(t))?r[e]=n(r[e],t):r[e]=t}for(var e=0,o=arguments.length;e<o;e++)u(arguments[e],t);return r},extend:function(n,t,r){return u(t,function(t,e){n[e]=r&&"function"==typeof t?o(t,r):t}),n},trim:function(t){return t.replace(/^\s*/,"").replace(/\s*$/,"")}}},function(s,t,c){"use strict";(function(t){var n=c(0),r=c(13),e={"Content-Type":"application/x-www-form-urlencoded"};function o(t,e){!n.isUndefined(t)&&n.isUndefined(t["Content-Type"])&&(t["Content-Type"]=e)}var i,a={adapter:("undefined"!=typeof XMLHttpRequest?i=c(3):void 0!==t&&(i=c(3)),i),transformRequest:[function(t,e){return r(e,"Content-Type"),n.isFormData(t)||n.isArrayBuffer(t)||n.isBuffer(t)||n.isStream(t)||n.isFile(t)||n.isBlob(t)?t:n.isArrayBufferView(t)?t.buffer:n.isURLSearchParams(t)?(o(e,"application/x-www-form-urlencoded;charset=utf-8"),t.toString()):n.isObject(t)?(o(e,"application/json;charset=utf-8"),JSON.stringify(t)):t}],transformResponse:[function(t){if("string"==typeof t)try{t=JSON.parse(t)}catch(t){}return t}],timeout:0,xsrfCookieName:"XSRF-TOKEN",xsrfHeaderName:"X-XSRF-TOKEN",maxContentLength:-1,validateStatus:function(t){return 200<=t&&t<300},headers:{common:{Accept:"application/json, text/plain, */*"}}};n.forEach(["delete","get","head"],function(t){a.headers[t]={}}),n.forEach(["post","put","patch"],function(t){a.headers[t]=n.merge(e)}),s.exports=a}).call(this,c(12))},function(t,e,n){"use strict";t.exports=function(n,r){return function(){for(var t=new Array(arguments.length),e=0;e<t.length;e++)t[e]=arguments[e];return n.apply(r,t)}}},function(t,e,f){"use strict";var p=f(0),h=f(14),v=f(16),m=f(17),g=f(18),b=f(4),y="undefined"!=typeof window&&window.btoa&&window.btoa.bind(window)||f(19);t.exports=function(d){return new Promise(function(n,r){var o=d.data,i=d.headers;p.isFormData(o)&&delete i["Content-Type"];var a=new XMLHttpRequest,t="onreadystatechange",s=!1;if("undefined"==typeof window||!window.XDomainRequest||"withCredentials"in a||g(d.url)||(a=new window.XDomainRequest,t="onload",s=!0,a.onprogress=function(){},a.ontimeout=function(){}),d.auth){var e=d.auth.username||"",c=d.auth.password||"";i.Authorization="Basic "+y(e+":"+c)}if(a.open(d.method.toUpperCase(),v(d.url,d.params,d.paramsSerializer),!0),a.timeout=d.timeout,a[t]=function(){if(a&&(4===a.readyState||s)&&(0!==a.status||a.responseURL&&0===a.responseURL.indexOf("file:"))){var t="getAllResponseHeaders"in a?m(a.getAllResponseHeaders()):null,e={data:d.responseType&&"text"!==d.responseType?a.response:a.responseText,status:1223===a.status?204:a.status,statusText:1223===a.status?"No Content":a.statusText,headers:t,config:d,request:a};h(n,r,e),a=null}},a.onerror=function(){r(b("Network Error",d,null,a)),a=null},a.ontimeout=function(){r(b("timeout of "+d.timeout+"ms exceeded",d,"ECONNABORTED",a)),a=null},p.isStandardBrowserEnv()){var l=f(20),u=(d.withCredentials||g(d.url))&&d.xsrfCookieName?l.read(d.xsrfCookieName):void 0;u&&(i[d.xsrfHeaderName]=u)}if("setRequestHeader"in a&&p.forEach(i,function(t,e){void 0===o&&"content-type"===e.toLowerCase()?delete i[e]:a.setRequestHeader(e,t)}),d.withCredentials&&(a.withCredentials=!0),d.responseType)try{a.responseType=d.responseType}catch(n){if("json"!==d.responseType)throw n}"function"==typeof d.onDownloadProgress&&a.addEventListener("progress",d.onDownloadProgress),"function"==typeof d.onUploadProgress&&a.upload&&a.upload.addEventListener("progress",d.onUploadProgress),d.cancelToken&&d.cancelToken.promise.then(function(t){a&&(a.abort(),r(t),a=null)}),void 0===o&&(o=null),a.send(o)})}},function(t,e,n){"use strict";var a=n(15);t.exports=function(t,e,n,r,o){var i=new Error(t);return a(i,e,n,r,o)}},function(t,e,n){"use strict";t.exports=function(t){return!(!t||!t.__CANCEL__)}},function(t,e,n){"use strict";function r(t){this.message=t}r.prototype.toString=function(){return"Cancel"+(this.message?": "+this.message:"")},r.prototype.__CANCEL__=!0,t.exports=r},function(t,e,n){"use strict";e.__esModule=!0,e.I18N=void 0;var a="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},r=function(){function r(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}return function(t,e,n){return e&&r(t.prototype,e),n&&r(t,n),t}}(),s=n(8),d={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}},o=e.I18N=function(){function n(){var t=0<arguments.length&&void 0!==arguments[0]?arguments[0]:d;!function(t,e){if(!(t instanceof n))throw new TypeError("Cannot call a class as a function")}(this),this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}return n.prototype.processConfig=function(t){var o=this,e=Object.assign({},d,t),n=e.location,r=function(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}(e,["location"]),i=n.replace(/\/?$/,"/");this.config=Object.assign({},{location:i},r);var a=this.config,s=a.override,c=a.preloaded,l=void 0===c?{}:c,u=Object.entries(this.langs).concat(Object.entries(s||l));this.langs=u.reduce(function(t,e){var n=e[0],r=e[1];return t[n]=o.applyLanguage.call(o,n,r),t},{}),this.locale=this.config.locale||this.config.langs[0]},n.prototype.init=function(t){return this.processConfig.call(this,Object.assign({},this.config,t)),this.setCurrent(this.locale)},n.prototype.addLanguage=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{};e="string"==typeof e?this.processFile.call(this,e):e,this.applyLanguage.call(this,t,e),this.config.langs.push("locale")},n.prototype.getValue=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:this.locale;return this.langs[e]&&this.langs[e][t]||this.getFallbackValue(t)},n.prototype.getFallbackValue=function(e){var t=Object.values(this.langs).find(function(t){return t[e]});return t&&t[e]},n.prototype.makeSafe=function(t){var e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/\{|\}|\|/g,function(t){return e[t]}),new RegExp(t,"g")},n.prototype.put=function(t,e){return this.current[t]=e},n.prototype.get=function(t,e){var n=this.getValue(t);if(n){var r=n.match(/\{[^}]+?\}/g),o=void 0;if(e&&r)if("object"===(void 0===e?"undefined":a(e)))for(var i=0;i<r.length;i++)o=r[i].substring(1,r[i].length-1),n=n.replace(this.makeSafe(r[i]),e[o]||"");else n=n.replace(/\{[^}]+?\}/g,e);return n}},n.prototype.fromFile=function(t){for(var e,n=t.split("\n"),r={},o=0;o<n.length;o++)(e=n[o].match(/^(.+?) *?= *?([^\n]+)/))&&(r[e[1]]=e[2].replace(/^\s+|\s+$/,""));return r},n.prototype.processFile=function(t){return this.fromFile(t.replace(/\n\n/g,"\n"))},n.prototype.loadLang=function(o){var n=!(1<arguments.length&&void 0!==arguments[1])||arguments[1],i=this;return new Promise(function(r,t){if(-1!==i.loaded.indexOf(o)&&n)return i.applyLanguage.call(i,i.langs[o]),r(i.langs[o]);var e=[i.config.location,o,i.config.extension].join("");return(0,s.get)(e).then(function(t){var e=t.data,n=i.processFile(e);return i.applyLanguage.call(i,o,n),i.loaded.push(o),r(i.langs[o])}).catch(function(){var t=i.applyLanguage.call(i,o);r(t)})})},n.prototype.applyLanguage=function(t){var e=1<arguments.length&&void 0!==arguments[1]?arguments[1]:{},n=this.config.override[t]||{},r=this.langs[t]||{};return this.langs[t]=Object.assign({},r,e,n),this.langs[t]},n.prototype.setCurrent=function(){var t=this,e=0<arguments.length&&void 0!==arguments[0]?arguments[0]:"en-US";return this.loadLang(e).then(function(){return t.locale=e,t.current=t.langs[e],t.current})},r(n,[{key:"getLangs",get:function(){return this.config.langs}}]),n}();e.default=new o},function(t,e,n){"use strict";t.exports=n(9)},function(t,e,n){"use strict";var r=n(0),o=n(2),i=n(11),a=n(1);function s(t){var e=new i(t),n=o(i.prototype.request,e);return r.extend(n,i.prototype,e),r.extend(n,e),n}var c=s(a);c.Axios=i,c.create=function(t){return s(r.merge(a,t))},c.Cancel=n(6),c.CancelToken=n(26),c.isCancel=n(5),c.all=function(t){return Promise.all(t)},c.spread=n(27),t.exports=c,t.exports.default=c},function(t,e,n){"use strict";
|
|
13
|
-
|
|
14
|
-
* Determine if an object is a Buffer
|
|
15
|
-
*
|
|
16
|
-
* @author Feross Aboukhadijeh <https://feross.org>
|
|
17
|
-
* @license MIT
|
|
18
|
-
*/function r(t){return!!t.constructor&&"function"==typeof t.constructor.isBuffer&&t.constructor.isBuffer(t)}t.exports=function(t){return null!=t&&(r(t)||"function"==typeof(e=t).readFloatLE&&"function"==typeof e.slice&&r(e.slice(0,0))||!!t._isBuffer);var e}},function(t,e,n){"use strict";var r=n(1),o=n(0),i=n(21),a=n(22);function s(t){this.defaults=t,this.interceptors={request:new i,response:new i}}s.prototype.request=function(t){"string"==typeof t&&(t=o.merge({url:arguments[0]},arguments[1])),(t=o.merge(r,{method:"get"},this.defaults,t)).method=t.method.toLowerCase();var e=[a,void 0],n=Promise.resolve(t);for(this.interceptors.request.forEach(function(t){e.unshift(t.fulfilled,t.rejected)}),this.interceptors.response.forEach(function(t){e.push(t.fulfilled,t.rejected)});e.length;)n=n.then(e.shift(),e.shift());return n},o.forEach(["delete","get","head","options"],function(n){s.prototype[n]=function(t,e){return this.request(o.merge(e||{},{method:n,url:t}))}}),o.forEach(["post","put","patch"],function(r){s.prototype[r]=function(t,e,n){return this.request(o.merge(n||{},{method:r,url:t,data:e}))}}),t.exports=s},function(t,e,n){"use strict";var r,o,i=t.exports={};function a(){throw new Error("setTimeout has not been defined")}function s(){throw new Error("clearTimeout has not been defined")}function c(e){if(r===setTimeout)return setTimeout(e,0);if((r===a||!r)&&setTimeout)return r=setTimeout,setTimeout(e,0);try{return r(e,0)}catch(t){try{return r.call(null,e,0)}catch(t){return r.call(this,e,0)}}}!function(){try{r="function"==typeof setTimeout?setTimeout:a}catch(t){r=a}try{o="function"==typeof clearTimeout?clearTimeout:s}catch(t){o=s}}();var l,u=[],d=!1,f=-1;function p(){d&&l&&(d=!1,l.length?u=l.concat(u):f=-1,u.length&&h())}function h(){if(!d){var t=c(p);d=!0;for(var e=u.length;e;){for(l=u,u=[];++f<e;)l&&l[f].run();f=-1,e=u.length}l=null,d=!1,function(e){if(o===clearTimeout)return clearTimeout(e);if((o===s||!o)&&clearTimeout)return o=clearTimeout,clearTimeout(e);try{o(e)}catch(t){try{return o.call(null,e)}catch(t){return o.call(this,e)}}}(t)}}function v(t,e){this.fun=t,this.array=e}function m(){}i.nextTick=function(t){var e=new Array(arguments.length-1);if(1<arguments.length)for(var n=1;n<arguments.length;n++)e[n-1]=arguments[n];u.push(new v(t,e)),1!==u.length||d||c(h)},v.prototype.run=function(){this.fun.apply(null,this.array)},i.title="browser",i.browser=!0,i.env={},i.argv=[],i.version="",i.versions={},i.on=m,i.addListener=m,i.once=m,i.off=m,i.removeListener=m,i.removeAllListeners=m,i.emit=m,i.prependListener=m,i.prependOnceListener=m,i.listeners=function(t){return[]},i.binding=function(t){throw new Error("process.binding is not supported")},i.cwd=function(){return"/"},i.chdir=function(t){throw new Error("process.chdir is not supported")},i.umask=function(){return 0}},function(t,e,n){"use strict";var o=n(0);t.exports=function(n,r){o.forEach(n,function(t,e){e!==r&&e.toUpperCase()===r.toUpperCase()&&(n[r]=t,delete n[e])})}},function(t,e,n){"use strict";var o=n(4);t.exports=function(t,e,n){var r=n.config.validateStatus;n.status&&r&&!r(n.status)?e(o("Request failed with status code "+n.status,n.config,null,n.request,n)):t(n)}},function(t,e,n){"use strict";t.exports=function(t,e,n,r,o){return t.config=e,n&&(t.code=n),t.request=r,t.response=o,t}},function(t,e,n){"use strict";var i=n(0);function a(t){return encodeURIComponent(t).replace(/%40/gi,"@").replace(/%3A/gi,":").replace(/%24/g,"$").replace(/%2C/gi,",").replace(/%20/g,"+").replace(/%5B/gi,"[").replace(/%5D/gi,"]")}t.exports=function(t,e,n){if(!e)return t;var r;if(n)r=n(e);else if(i.isURLSearchParams(e))r=e.toString();else{var o=[];i.forEach(e,function(t,e){null!=t&&(i.isArray(t)?e+="[]":t=[t],i.forEach(t,function(t){i.isDate(t)?t=t.toISOString():i.isObject(t)&&(t=JSON.stringify(t)),o.push(a(e)+"="+a(t))}))}),r=o.join("&")}return r&&(t+=(-1===t.indexOf("?")?"?":"&")+r),t}},function(t,e,n){"use strict";var i=n(0),a=["age","authorization","content-length","content-type","etag","expires","from","host","if-modified-since","if-unmodified-since","last-modified","location","max-forwards","proxy-authorization","referer","retry-after","user-agent"];t.exports=function(t){var e,n,r,o={};return t&&i.forEach(t.split("\n"),function(t){if(r=t.indexOf(":"),e=i.trim(t.substr(0,r)).toLowerCase(),n=i.trim(t.substr(r+1)),e){if(o[e]&&0<=a.indexOf(e))return;o[e]="set-cookie"===e?(o[e]?o[e]:[]).concat([n]):o[e]?o[e]+", "+n:n}}),o}},function(t,e,n){"use strict";var a=n(0);t.exports=a.isStandardBrowserEnv()?function(){var n,r=/(msie|trident)/i.test(navigator.userAgent),o=document.createElement("a");function i(t){var e=t;return r&&(o.setAttribute("href",e),e=o.href),o.setAttribute("href",e),{href:o.href,protocol:o.protocol?o.protocol.replace(/:$/,""):"",host:o.host,search:o.search?o.search.replace(/^\?/,""):"",hash:o.hash?o.hash.replace(/^#/,""):"",hostname:o.hostname,port:o.port,pathname:"/"===o.pathname.charAt(0)?o.pathname:"/"+o.pathname}}return n=i(window.location.href),function(t){var e=a.isString(t)?i(t):t;return e.protocol===n.protocol&&e.host===n.host}}():function(){return!0}},function(t,e,n){"use strict";function s(){this.message="String contains an invalid character"}(s.prototype=new Error).code=5,s.prototype.name="InvalidCharacterError",t.exports=function(t){for(var e,n,r=String(t),o="",i=0,a="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/=";r.charAt(0|i)||(a="=",i%1);o+=a.charAt(63&e>>8-i%1*8)){if(255<(n=r.charCodeAt(i+=.75)))throw new s;e=e<<8|n}return o}},function(t,e,n){"use strict";var s=n(0);t.exports=s.isStandardBrowserEnv()?{write:function(t,e,n,r,o,i){var a=[];a.push(t+"="+encodeURIComponent(e)),s.isNumber(n)&&a.push("expires="+new Date(n).toGMTString()),s.isString(r)&&a.push("path="+r),s.isString(o)&&a.push("domain="+o),!0===i&&a.push("secure"),document.cookie=a.join("; ")},read:function(t){var e=document.cookie.match(new RegExp("(^|;\\s*)("+t+")=([^;]*)"));return e?decodeURIComponent(e[3]):null},remove:function(t){this.write(t,"",Date.now()-864e5)}}:{write:function(){},read:function(){return null},remove:function(){}}},function(t,e,n){"use strict";var r=n(0);function o(){this.handlers=[]}o.prototype.use=function(t,e){return this.handlers.push({fulfilled:t,rejected:e}),this.handlers.length-1},o.prototype.eject=function(t){this.handlers[t]&&(this.handlers[t]=null)},o.prototype.forEach=function(e){r.forEach(this.handlers,function(t){null!==t&&e(t)})},t.exports=o},function(t,e,n){"use strict";var r=n(0),o=n(23),i=n(5),a=n(1),s=n(24),c=n(25);function l(t){t.cancelToken&&t.cancelToken.throwIfRequested()}t.exports=function(e){return l(e),e.baseURL&&!s(e.url)&&(e.url=c(e.baseURL,e.url)),e.headers=e.headers||{},e.data=o(e.data,e.headers,e.transformRequest),e.headers=r.merge(e.headers.common||{},e.headers[e.method]||{},e.headers||{}),r.forEach(["delete","get","head","post","put","patch","common"],function(t){delete e.headers[t]}),(e.adapter||a.adapter)(e).then(function(t){return l(e),t.data=o(t.data,t.headers,e.transformResponse),t},function(t){return i(t)||(l(e),t&&t.response&&(t.response.data=o(t.response.data,t.response.headers,e.transformResponse))),Promise.reject(t)})}},function(t,e,n){"use strict";var r=n(0);t.exports=function(e,n,t){return r.forEach(t,function(t){e=t(e,n)}),e}},function(t,e,n){"use strict";t.exports=function(t){return/^([a-z][a-z\d\+\-\.]*:)?\/\//i.test(t)}},function(t,e,n){"use strict";t.exports=function(t,e){return e?t.replace(/\/+$/,"")+"/"+e.replace(/^\/+/,""):t}},function(t,e,n){"use strict";var r=n(6);function o(t){if("function"!=typeof t)throw new TypeError("executor must be a function.");var e;this.promise=new Promise(function(t){e=t});var n=this;t(function(t){n.reason||(n.reason=new r(t),e(n.reason))})}o.prototype.throwIfRequested=function(){if(this.reason)throw this.reason},o.source=function(){var e;return{token:new o(function(t){e=t}),cancel:e}},t.exports=o},function(t,e,n){"use strict";t.exports=function(e){return function(t){return e.apply(null,t)}}}])},function(t,e,n){"use strict";n.d(e,"h",function(){return f}),n.d(e,"f",function(){return p}),n.d(e,"j",function(){return h}),n.d(e,"d",function(){return v}),n.d(e,"k",function(){return m}),n.d(e,"c",function(){return g}),n.d(e,"e",function(){return b}),n.d(e,"i",function(){return y}),n.d(e,"a",function(){return w}),n.d(e,"g",function(){return O});var i=n(2),r=n(87),o=n.n(r),a=n(88),s=n.n(a),c=n(89),l=n.n(c),u=n(38),d=n.n(u),f=function(t){return Number.isInteger(Number(t))},p=function(t,e){var n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},h=function(t,e,n){var r=n.split("||"),o=Object(i.m)(e).map(function(n){return t.find(function(e){var t=r.find(function(t){return!!v(e,t)});return t&&v(e,t)===n})}).filter(Boolean).concat(t);return Object(i.m)(o)},v=s.a,m=o.a,g=function(t,e,n){for(var r=0;r<t.length;r++)e.call(n,t[r],r)},b=(l.a,function(t){return d()(t).replace(/\s/g,"-")}),y=function(t,n){var r=[];return g(t,function(t,e){return r.push(n(t,e))}),r},w=function(t){return t.replace(/\b\w/g,function(t){return t.toUpperCase()})},O=function(){return-1!==window.navigator.userAgent.indexOf("MSIE ")},x={hyphenCase:b,capitalize:w,safeAttrName:function(t){return{className:"class"}[t]||b(t)},forEach:g,copyObj:function(t){return window.JSON.parse(window.JSON.stringify(t))},map:y,subtract:function(e,t){return t.filter(function(t){return!~e.indexOf(t)})},indexOfNode:p,isInt:f,get:v,set:m,orderObjectsBy:h,isIE:O};e.b=x},function(t,e,n){"use strict";var r=n(21),p=n(2),a=n(16),l=n(4);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=function(r){var t,e,n,o,i;function a(){for(var o,t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return u(c(o=r.call.apply(r,[this].concat(e))||this),"load",function(t){return void 0===t&&(t=Object.create(null)),o.empty(),"string"==typeof t&&(t=JSON.parse(t)),Object.entries(t).forEach(function(t){var e=t[0],n=t[1];return o.add(e,n)}),o.data}),u(c(o),"get",function(t){return t?Object(l.d)(o.data,t):o.add()}),u(c(o),"add",function(t,e){void 0===e&&(e=Object.create(null));var n=t||Object(p.n)(),r=o.Component(Object.assign({},e,{id:n}));return o.set(n,r),o.active=r}),u(c(o),"remove",function(t){return Array.isArray(t)?t.forEach(function(t){o.get(t).remove()}):o.get(t).remove(),o.data}),u(c(o),"delete",function(t){return delete o.data[t],t}),u(c(o),"clearAll",function(e){void 0===e&&(e=!0);var t=Object.values(o.data).map(function(t){return t.empty(e)});return Promise.all(t)}),u(c(o),"conditionMap",new Map),o}return e=r,(t=a).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,n=a,(o=[{key:"config",set:function(t){return this.configVal=Object(p.h)(this.configVal,Object(p.b)(t)),this.configVal},get:function(){return this.configVal}}])&&s(n.prototype,o),i&&s(n,i),a}(r.a),d=n(13),h=n(0),i=n(14),v=n(1),f=n(7);function m(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}var g=function(i){var t,e;function n(t,e){var n,r=(n=i.call(this,"stage",Object.assign({},Object.freeze({children:[]}),t),e)||this).createChildWrap();return n.dom=h.a.create({attrs:{className:[v.H,"empty"],id:n.id},children:r}),n.sortable=d.a.create(r,{animation:150,fallbackClass:"row-moving",forceFallback:!0,group:{name:"stage",pull:!0,put:["row","column","controls"]},sort:!0,disabled:!1,onAdd:n.onAdd.bind(m(n)),onRemove:n.onRemove.bind(m(n)),onStart:function(){return b.active=m(n)},onSort:n.onSort.bind(m(n)),draggable:"."+v.E,handle:".item-handle"}),n}e=i,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var r=n.prototype;return r.empty=function(e){var n=this;return void 0===e&&(e=!0),new Promise(function(t){e?(n.dom.classList.add("removing-all-fields"),f.a.slideUp(n.dom,v.a,function(){t(i.prototype.empty.call(n,e)),n.dom.classList.remove("removing-all-fields"),f.a.slideDown(n.dom,v.a)})):t(i.prototype.empty.call(n))})},r.onAdd=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];var o=(t=i.prototype.onAdd).call.apply(t,[this].concat(n));o&&"column"===o.name&&o.parent.autoColumnWidths()},n}(i.a);var b=new(function(e){var t,n;function r(t){return e.call(this,"stages",t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.Component=function(t){return new g(t)},r}(o)),y=n(3),w=n.n(y),O=n(6),x="custom-column-widths",j="column-preset",E="resizing-columns";function C(t){var u=this,d=t.target.parentElement,f=d.nextSibling||d.previousSibling,e=d.closest("."+v.E),n=h.a.getStyle(e),r=parseFloat(n.paddingLeft)+parseFloat(n.paddingRight);if(t.target.removeEventListener("pointerdown",u),u.move=function(t){var e=t.touches,n=t.type,r=t.clientX;"touchmove"===n&&(r=e[0].clientX);var o=u.colStartWidth+r-u.startX,i=u.sibStartWidth-r+u.startX,a=parseFloat(Object(p.j)(o,u.rowWidth)),s=parseFloat(Object(p.j)(i,u.rowWidth)),c=Object(p.i)(a.toFixed(1)),l=Object(p.i)(s.toFixed(1));d.dataset.colWidth=c,f.dataset.colWidth=l,d.style.width=c,f.style.width=l,u.resized=!0},u.stop=function(){window.removeEventListener("pointermove",u.move),window.removeEventListener("pointerup",u.stop),window.removeEventListener("touchmove",u.move),window.removeEventListener("touchend",u.stop),u.resized&&(!function(t,e){var n=t.querySelector("."+j),r=n.querySelector("."+x),o=t.querySelector(".children").children,i=Object(l.i)(o,function(t){return Object(p.j)(t.clientWidth,e).toFixed(1)}),a=i.join(","),s=i.join(" | ");r&&S(t,n);var c=h.a.create({tag:"option",attrs:{className:x,value:a},content:s});n.add(c),n.value=a}(e,u.rowWidth),e.classList.remove(E),et.setAddress("columns."+d.id+".config.width",d.dataset.colWidth),et.setAddress("columns."+f.id+".config.width",f.dataset.colWidth),u.resized=!1)},"touchstart"===t.type){var o=t.touches[0];u.startX=o.clientX}else u.startX=t.clientX;e.classList.add(E),d.className.replace(v.J,""),f.className.replace(v.J,""),u.colStartWidth=d.offsetWidth||h.a.getStyle(d,"width"),u.sibStartWidth=f.offsetWidth||h.a.getStyle(f,"width"),u.rowWidth=e.offsetWidth-r,window.addEventListener("pointerup",u.stop,!1),window.addEventListener("pointermove",u.move,!1),window.addEventListener("touchend",u.stop,!1),window.addEventListener("touchmove",u.move,!1)}var S=function(t,e){void 0===e&&(e=t.querySelector("."+j));var n=e.querySelector("."+x);return n&&e.removeChild(n)};function _(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function P(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var D=function(o){var t,e;function n(t){var s;A(P(s=o.call(this,"row",Object.assign({},Object.freeze({config:{fieldset:!1,legend:"",inputGroup:!1},children:[],className:[v.E]}),t))||this),"autoColumnWidths",function(){var t=s.children;if(t.length){var o=parseFloat((100/t.length).toFixed(1))/1;t.forEach(function(t){t.removeClasses(v.J);var e=t.dom,n=Object(p.i)(o);t.set("config.width",n),e.style.width=n,e.dataset.colWidth=n;var r=setTimeout(function(){clearTimeout(r),t.refreshFieldPanels()},v.b);document.dispatchEvent(O.a.columnResized)}),s.updateColumnPreset()}}),A(P(s),"updateColumnPreset",function(){var t=s.dom.querySelector(".column-preset"),e=t.parentElement,n=s.columnPresetControl(s.id),r=h.a.create(n);return e.replaceChild(r,t),n}),A(P(s),"setColumnWidths",function(n){"custom"!==n&&("string"==typeof n&&(n=n.split(",")),s.children.forEach(function(t,e){t.setWidth(n[e]+"%"),t.refreshFieldPanels()}))}),A(P(s),"columnPresetControl",function(){var n=P(s),t={tag:"select",attrs:{ariaLabel:w.a.get("defineColumnLayout"),className:"column-preset"},action:{change:function(t){var e=t.target.value;"custom"!==e&&(S(s.dom),n.setColumnWidths(e))}},options:[]},e=v.h,r=s.children,o=e.get(r.length-1)||[],i=r.map(function(t){var e=t.get("config.width")||"";return Number(e.replace("%","")).toFixed(1)}).join(",");if(o.length){var a=o.slice();!a.find(function(t){return t.value===i})&&a.push({value:i,label:i.replace(/,/g," | "),className:"custom-column-widths"}),t.options=a.map(function(t){var e=Object.assign({},t);return t.value===i&&(e.selected=!0),e})}return t});var e=s.createChildWrap();return s.dom=h.a.create({tag:"li",className:[v.E,"empty"],dataset:{hoverTag:w.a.get("row"),editingHoverTag:w.a.get("editing.row")},id:s.id,content:[s.getActionButtons(),s.editWindow,e]}),s.sortable=d.a.create(e,{animation:150,fallbackClass:"column-moving",forceFallback:!0,group:{name:"row",pull:!0,put:["row","column","controls"]},sort:!0,disabled:!1,onRemove:s.onRemove.bind(P(s)),onEnd:s.onEnd.bind(P(s)),onAdd:s.onAdd.bind(P(s)),onSort:s.onSort.bind(P(s)),filter:".resize-x-handle",draggable:"."+v.g,handle:".item-handle"}),s.onRender(),s}e=o,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var r,i,a,s=n.prototype;return s.onAdd=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=o.prototype.onAdd).call.apply(t,[this].concat(n)),this.autoColumnWidths()},s.onRemove=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=o.prototype.onRemove).call.apply(t,[this].concat(n)),this.autoColumnWidths()},r=n,(i=[{key:"editWindow",get:function(){var n=this,r=this,t={className:this.name+"-edit group-config"},e={tag:"label",content:w.a.get("row.settings.fieldsetWrap")},o={tag:"input",id:r.id+"-fieldset",attrs:{type:"checkbox",checked:this.get("config.fieldset"),ariaLabel:w.a.get("row.settings.fieldsetWrap.aria")},action:{click:function(t){var e=t.target.checked;n.set("config.fieldset",Boolean(e))}}},i={tag:"input",id:this.id+"-inputGroup",attrs:{type:"checkbox",checked:this.get("config.inputGroup"),ariaLabel:w.a.get("row.settings.inputGroup.aria")},action:{click:function(t){var e=t.target.checked;return n.set("config.inputGroup",e)}},config:{label:w.a.get("row.makeInputGroup"),description:w.a.get("row.makeInputGroupDesc")}},a={className:"input-group",content:[{tag:"span",className:"input-group-addon",content:o},{tag:"input",attrs:{type:"text",ariaLabel:"Legend for fieldset",value:r.get("config.legend"),placeholder:"Legend"},action:{input:function(t){var e=t.target.value;return r.set("config.legend",e)}},className:""}]},s=h.a.formGroup([e,a]),c={tag:"label",content:w.a.get("defineColumnWidths"),className:"col-sm-4 form-control-label"},l={className:"col-sm-8",content:{className:"column-preset"},action:{onRender:function(t){n.updateColumnPreset()}}},u=h.a.formGroup([c,l],"row");return t.children=[i,h.a.create("hr"),s,h.a.create("hr"),u],t}}])&&_(r.prototype,i),a&&_(r,a),n}(i.a);var N={actionButtons:{buttons:["handle","edit","clone","remove"],disabled:[]}},k=new(function(n){var t,e;function r(t){var e;return(e=n.call(this,"rows",t)||this).config={all:N},e}return e=n,(t=r).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,r.prototype.Component=function(t){return new D(t)},r}(o));function T(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function z(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var L=function(){return{className:"resize-x-handle",action:{pointerdown:C},content:[h.a.icon("triangle-down"),h.a.icon("triangle-up")]}},M=function(){return{className:"column-edit group-config"}},H=function(o){var t,e;function n(t){var e;z(T(e=o.call(this,"column",Object.assign({},Object.freeze({config:{width:"100%"},children:[],className:v.g}),t))||this),"fieldOrderClasses",function(){var t=e.children.map(function(t){return t.dom});t.length&&(e.removeClasses(["first-field","last-field"]),t[0].classList.add("first-field"),t[t.length-1].classList.add("last-field"))}),z(T(e),"refreshFieldPanels",function(){e.children.forEach(function(t){return t.panels.nav.refresh()})}),z(T(e),"setWidth",function(t){return e.dom.dataset.colWidth=t,e.dom.style.width=t,e.set("config.width",t)});var n=T(e),r=e.createChildWrap();return e.dom=h.a.create({tag:"li",className:[v.g,"empty"],dataset:{hoverTag:w.a.get("column")},action:{mouseup:function(t){var e=t.target.parentElement;e.resizing&&(e.resizing=!1,e.parentElement.classList.remove("resizing-columns"))}},id:e.id,content:[e.getActionButtons(),M(),L(),r]}),e.processConfig(e.dom),O.a.columnResized=new window.CustomEvent("columnResized",{detail:{column:e.dom,instance:n}}),e.sortable=d.a.create(r,{animation:150,fallbackClass:"field-moving",forceFallback:!0,group:{name:"column",pull:!0,put:["column","controls"]},sort:!0,disabled:!1,onEnd:e.onEnd.bind(T(e)),onAdd:e.onAdd.bind(T(e)),onSort:e.onSort.bind(T(e)),onRemove:e.onRemove.bind(T(e)),onMove:function(t){t.from!==t.to&&t.from.classList.remove("hovering-column")},draggable:"."+v.z,handle:".item-handle"}),e}e=o,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var r=n.prototype;return r.processConfig=function(t){var e=l.b.get(this.data,"config.width");e&&(t.dataset.colWidth=e,t.style.width=e,t.style.float="left")},r.addChild=function(){for(var t,e=arguments.length,n=new Array(e),r=0;r<e;r++)n[r]=arguments[r];(t=o.prototype.addChild).call.apply(t,[this].concat(n)),this.fieldOrderClasses()},n}(i.a);var R={actionButtons:{buttons:["clone|copy|handle","handle","remove"],disabled:[]}},I=new(function(n){var t,e;function r(t){var e;return(e=n.call(this,"columns",t)||this).config={all:R},e}return e=n,(t=r).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,r.prototype.Component=function(t){return new H(t)},r}(o)),V=n(40);var B={actionButtons:{buttons:["handle","edit","clone","remove"],disabled:[]},panels:{disabled:[],attrs:{disabled:["type"],hideDisabled:!0,locked:[]},order:["attrs","options","conditions"]},label:{disableHTML:!1}},F=new(function(i){var t,e;function n(t){var r,e,n,o;return r=i.call(this,"fields",t)||this,e=function(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}(r),o=function(t){var e=t&&Object(l.d)(r.data,t);if(!e){var n=a.a.get(t);n&&(e=r.add(null,n.controlData))}return e},(n="get")in e?Object.defineProperty(e,n,{value:o,enumerable:!0,configurable:!0,writable:!0}):e[n]=o,r.config={all:B},r}return e=i,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,n.prototype.Component=function(t){return new V.a(t)},n}(o));var q=new(function(e){var t,n;function r(t){return e.call(this,"externals",t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r.prototype.Component=function(t){return new i.a("external",t)},r}(o));function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"d",function(){return X}),n.d(e,"c",function(){return Y}),n.d(e,"a",function(){return $}),n.d(e,"b",function(){return J});var X=b,Y=k,$=I,K=F,J=a.a,Z=q,Q={id:Object(p.n)()},tt=new(function(e){var t,n;function r(t){var d;return G(U(d=e.call(this,"components")||this),"sessionFormData",function(){if(d.opts&&d.opts.sessionStorage)return p.l.get(v.F)}),G(U(d),"load",function(t,e){var n;void 0===e&&(e=d.opts||Object.create(null)),d.empty(),"string"==typeof t&&(t=JSON.parse(t)),d.opts=e;var r=Object.assign({},d.sessionFormData(),t),o=r.stages,i=void 0===o?((n={})[Object(p.n)()]={},n):o,a=r.rows,s=r.columns,c=r.fields,l=r.id,u=void 0===l?Object(p.n)():l;return d.set("id",u),d.add("stages",X.load(i)),d.add("rows",Y.load(a)),d.add("columns",$.load(s)),d.add("fields",K.load(c)),d.add("externals",Z.load(e.external)),Object.values(d.get("stages")).forEach(function(t){return t.loadChildren()}),d.data}),d.opts=t,d.data=Q,d.disableEvents=!0,d.stages=X,d.rows=Y,d.columns=$,d.fields=K,d.controls=J,d.externals=Z,d}n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n;var o,i,a,s=r.prototype;return s.flatList=function(t,e){return void 0===t&&(t=this.data),void 0===e&&(e=Object.create(null)),Object.entries(t).reduce(function(r,t){var o=t[0],e=t[1];return"object"==typeof e&&Object.entries(e).forEach(function(t){var e=t[0],n=t[1];r[o+"."+e]=n}),r},e)},s.setAddress=function(t,e){var n=Array.isArray(t)?t:t.split("."),r=n[0],o=n[1],i=n.slice(2),a=this[r.replace(/s?$/,"s")].get(o);return a&&a.set(i,e),a},s.getAddress=function(t){if(Object(p.d)(t)){var e=Array.isArray(t)?t:t.split("."),n=e[0],r=e[1],o=e.slice(2),i=this[n.replace(/s?$/,"s")].get(r);return o.length?i.get(o):i}},s.getConditionMap=function(t){if(Object(p.d)(t)){var e=t.split(".");return e.every(function(t){return Boolean(t)})&&this[e[0]].conditionMap.get(e[1])}},s.setConditionMap=function(t,e){if(Object(p.d)(t)){var n=t.split(".");return n.every(function(t){return Boolean(t)})&&this[n[0]].conditionMap.set(n[1],e)}},s.removeConditionMap=function(t){if(Object(p.d)(t)){var e=t.split(".");return e.every(function(t){return Boolean(t)})&&this[e[0]].conditionMap.delete(e[1])}},o=r,(i=[{key:"json",get:function(){return window.JSON.stringify(this.formData)}},{key:"formData",get:function(){return{id:this.get("id"),stages:b.getData(),rows:k.getData(),columns:I.getData(),fields:F.getData()}}},{key:"config",set:function(t){var e=t.stages,n=t.rows,r=t.columns,o=t.fields;X.config=e,Y.config=n,$.config=r,K.config=o}}])&&W(o.prototype,i),a&&W(o,a),r}(r.a)),et=e.e=tt},function(t,e,n){"use strict";var r=n(26),o=n.n(r),i=n(1),a=n(5);var s,c="no-transition",l={debug:!1,bubbles:!0,formeoLoaded:function(t){},onAdd:function(){},onUpdate:function(t){return d.opts.debug&&console.log(t)},onUpdateStage:function(t){return d.opts.debug&&console.log(t)},onUpdateRow:function(t){return d.opts.debug&&console.log(t)},onUpdateColumn:function(t){return d.opts.debug&&console.log(t)},onUpdateField:function(t){return d.opts.debug&&console.log(t)},onRender:function(t){return d.opts.debug&&console.log(t)},onSave:function(t){},confirmClearAll:function(t){window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},u=function(t,e){void 0===e&&(e=i.t);var n=t.src,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,["src"]),o=new window.CustomEvent(e,{detail:r,bubbles:d.opts.debug||d.opts.bubbles});return o.data=(n||document).dispatchEvent(o),o},d={init:function(t){return this.opts=Object.assign({},l,t),this},formeoSaved:function(t){return u(t,i.s)},formeoUpdated:function(t){return u(t,i.t)},formeoCleared:function(t){return u(t,i.p)},formeoOnRender:function(t){return u(t,i.r)},formeoConditionUpdated:function(t){return u(t,i.q)}},f=o()(function(){d.opts.onUpdate({timeStamp:window.performance.now(),type:i.t,detail:a.e.formData})},i.b,{leading:!1});document.addEventListener(i.t,f),document.addEventListener(i.x,function(t){var e=t.timeStamp,n=t.type,r=t.detail;d.opts.onUpdate({timeStamp:e,type:n,detail:r})}),document.addEventListener(i.w,function(t){var e=t.timeStamp,n=t.type,r=t.detail;d.opts.onUpdate({timeStamp:e,type:n,detail:r})}),document.addEventListener(i.u,function(t){var e=t.timeStamp,n=t.type,r=t.detail;d.opts.onUpdate({timeStamp:e,type:n,detail:r})}),document.addEventListener(i.v,function(t){var e=t.timeStamp,n=t.type,r=t.detail;d.opts.onUpdate({timeStamp:e,type:n,detail:r})}),document.addEventListener(i.r,function(t){var e=t.timeStamp,n=t.type,r=t.detail;d.opts.onRender({timeStamp:e,type:n,detail:r})}),document.addEventListener("confirmClearAll",function(t){t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},d.opts.confirmClearAll(t)}),document.addEventListener(i.s,function(t){var e={timeStamp:t.timeStamp,type:t.type,formData:t.detail.formData};d.opts.onSave(e)}),document.addEventListener("formeoLoaded",function(t){d.opts.formeoLoaded(t.detail.formeo)}),window.addEventListener("resize",function(){s=s||window.requestAnimationFrame(function(){s=!1,Object.values(a.a.data).forEach(function(t){t.dom.classList.add(c),a.b.dom.classList.add(c),a.b.panels.nav.refresh(),t.refreshFieldPanels(),o()(function(){t.dom.classList.remove(c),a.b.dom.classList.remove(c)},1e3,{leading:!1})})})}),e.a=d},function(t,e,n){"use strict";var c={getStyle:function(t,e){var n;return void 0===e&&(e=!1),window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:function(n,t){void 0===t&&(t=250);var r=1/(t/60);n.style.opacity=1,function t(){var e=Number(n.style.opacity)-r;0<e?(n.style.opacity=e,window.requestAnimationFrame(t)):n.remove()}()},slideDown:function(r,t,o){void 0===t&&(t=250),void 0===o&&(o=!1),r.style.display="block";var e=c.getStyle(r),i=parseInt(e.height,10),a=i/(t/60);r.style.height="0px",function t(){var e=parseFloat(r.style.height),n=e+a;e<i?(r.style.height=n+"px",window.requestAnimationFrame(t)):(r.style.height="auto",o&&o(r))}()},slideUp:function(n,t,r){void 0===t&&(t=250),void 0===r&&(r=!1);var e=c.getStyle(n),o=parseInt(e.height),i=e.overflow;n.style.overflow="hidden",n.style.height=o+"px";var a=e.minHeight;n.style.minHeight="auto";var s=parseFloat(o/(t/60)).toFixed(2);!function t(){var e=parseInt(n.style.height,10)-s;0<e?(n.style.height=e+"px",window.requestAnimationFrame(t)):(n.style.overflow=i,n.style.display="none",n.style.minHeight=a,delete n.style.height,r&&r(n))}()},slideToggle:function(t,e,n){void 0===e&&(e=250),void 0===n&&(n="none"===c.getStyle(t,"display")),n?c.slideDown(t,e):c.slideUp(t,e)}};e.a=c},function(t,e,n){var r=n(55),o=n(78),i=r(function(t,e,n){return t+(n?" ":"")+o(e)});t.exports=i},function(t,e){t.exports=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)}},function(t,e,n){var r=n(62),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();t.exports=i},function(t,e,n){"use strict";n.d(e,"c",function(){return l}),n.d(e,"d",function(){return u}),n.d(e,"b",function(){return d}),n.d(e,"e",function(){return f}),n.d(e,"a",function(){return p});var r=n(90),i=n.n(r),a=n(0),o=n(1),s=void 0,c={js:[],css:[]},l=function(o){return new Promise(function(t,e){if(c.js.includes(o))return t(o);var n=a.a.create({tag:"script",attrs:{type:"text/javascript",async:!0,src:"//"+s.src},action:{load:function(){c.js.push(o),t(o)},error:function(){return e(new Error(s.src+" failed to load."))}}}),r=document.getElementsByTagName("script")[0];r.parentNode.insertBefore(n,r)})},u=function(t){var e=(t=Array.isArray(t)?t:[t]).map(function(r){return new Promise(function(e,t){if(c.css.includes(r))return e(r);var n=a.a.create({tag:"link",attrs:{rel:"preload",href:r,as:"style"},action:{load:function t(){this.removeEventListener("load",t),this.rel="stylesheet",c.css.push(r),e(r)},error:function(){return t(new Error(s.src+" failed to load."))}}});document.head.appendChild(n)})});return Promise.all(e)},d=function(t){return("string"==typeof t?Promise.resolve(t):t.text()).then(function(t){var e="formeo-sprite",n=document.getElementById(e);return n||(n=a.a.create({id:e,children:t,attrs:{hidden:!0,style:"display: none;"}}),document.body.insertBefore(n,document.body.childNodes[0])),n})},f=function(n){var t=Array.isArray(n)?o.D.filter(function(t){var e=t.name;return-1!==n.indexOf(e)}):o.D;return Promise.all(t.map(function(t){var e=t.src;return l(e)}))},p=function(t,r,o){return void 0===o&&(o=i.a),new Promise(function(e,n){return fetch(t).then(function(t){return e(r?r(t):t)}).catch(function(t){return n(o(t))})})}},function(t,e){t.exports=function(t){return t}},function(t,e,n){"use strict";function B(){return(B=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(t[r]=n[r])}return t}).apply(this,arguments)}function r(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var w=r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),O=r(/Edge/i),l=r(/firefox/i),u=r(/safari/i)&&!r(/chrome/i)&&!r(/android/i),o=r(/iP(ad|od|hone)/i),i=r(/chrome/i)&&r(/android/i),a={capture:!1,passive:!1};function d(t,e,n){t.addEventListener(e,n,!w&&a)}function s(t,e,n){t.removeEventListener(e,n,!w&&a)}function c(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(t){return!1}return!1}}function F(t,e,n,r){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&c(t,e):c(t,e))||r&&t===n)return t;if(t===n)break}while(t=(o=t).host&&o!==document&&o.host.nodeType?o.host:o.parentNode)}var o;return null}var f,p=/\s+/g;function q(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var r=(" "+t.className+" ").replace(p," ").replace(" "+e+" "," ");t.className=(r+(n?" "+e:"")).replace(p," ")}}function W(t,e,n){var r=t&&t.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in r||-1!==e.indexOf("webkit")||(e="-webkit-"+e),r[e]=n+("string"==typeof n?"":"px")}}function m(t,e){var n="";if("string"==typeof t)n=t;else do{var r=W(t,"transform");r&&"none"!==r&&(n=r+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function h(t,e,n){if(t){var r=t.getElementsByTagName(e),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function N(){return document.scrollingElement||document.documentElement}function U(t,e,n,r,o){if(t.getBoundingClientRect||t===window){var i,a,s,c,l,u,d;if(d=t!==window&&t!==N()?(a=(i=t.getBoundingClientRect()).top,s=i.left,c=i.bottom,l=i.right,u=i.height,i.width):(s=a=0,c=window.innerHeight,l=window.innerWidth,u=window.innerHeight,window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!w))do{if(o&&o.getBoundingClientRect&&("none"!==W(o,"transform")||n&&"static"!==W(o,"position"))){var f=o.getBoundingClientRect();a-=f.top+parseInt(W(o,"border-top-width")),s-=f.left+parseInt(W(o,"border-left-width")),c=a+i.height,l=s+i.width;break}}while(o=o.parentNode);if(r&&t!==window){var p=m(o||t),h=p&&p.a,v=p&&p.d;p&&(c=(a/=v)+(u/=v),l=(s/=h)+(d/=h))}return{top:a,left:s,bottom:c,right:l,width:d,height:u}}}function G(t,e,n){for(var r=k(t,!0),o=U(t)[e];r;){var i=U(r)[n];if(!("top"===n||"left"===n?i<=o:o<=i))return r;if(r===N())break;r=k(r,!1)}return!1}function v(t,e,n){for(var r=0,o=0,i=t.children;o<i.length;){if("none"!==i[o].style.display&&i[o]!==zt.ghost&&i[o]!==zt.dragged&&F(i[o],n.draggable,t,!1)){if(r===e)return i[o];r++}o++}return null}function X(t,e){for(var n=t.lastElementChild;n&&(n===zt.ghost||"none"===W(n,"display")||e&&!c(n,e));)n=n.previousElementSibling;return n||null}function Y(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===zt.clone||e&&!c(t,e)||n++;return n}function g(t){var e=0,n=0,r=N();if(t)do{var o=m(t);e+=t.scrollLeft*o.a,n+=t.scrollTop*o.d}while(t!==r&&(t=t.parentNode));return[e,n]}function k(t,e){if(!t||!t.getBoundingClientRect)return N();var n=t,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=W(n);if(n.clientWidth<n.scrollWidth&&("auto"==o.overflowX||"scroll"==o.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==o.overflowY||"scroll"==o.overflowY)){if(!n.getBoundingClientRect||n===document.body)return N();if(r||e)return n;r=!0}}}while(n=n.parentNode);return N()}function b(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function y(e,n){return function(){if(!f){var t=arguments;1===t.length?e.call(this,t[0]):e.apply(this,t),f=setTimeout(function(){f=void 0},n)}}}function $(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function x(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function j(t,e){W(t,"position","absolute"),W(t,"top",e.top),W(t,"left",e.left),W(t,"width",e.width),W(t,"height",e.height)}function E(t){W(t,"position",""),W(t,"top",""),W(t,"left",""),W(t,"width",""),W(t,"height","")}var K="Sortable"+(new Date).getTime(),C=[],S={initializeByDefault:!0},_={mount:function(t){for(var e in S)S.hasOwnProperty(e)&&!(e in t)&&(t[e]=S[e]);C.push(t)},pluginEvent:function(e,n,r){var t=this;this.eventCanceled=!1,r.cancel=function(){t.eventCanceled=!0};var o=e+"Global";C.forEach(function(t){n[t.pluginName]&&(n[t.pluginName][o]&&n[t.pluginName][o](B({sortable:n},r)),n.options[t.pluginName]&&n[t.pluginName][e]&&n[t.pluginName][e](B({sortable:n},r)))})},initializePlugins:function(r,o,i,t){for(var e in C.forEach(function(t){var e=t.pluginName;if(r.options[e]||t.initializeByDefault){var n=new t(r,o,r.options);n.sortable=r,n.options=r.options,r[e]=n,Object.assign(i,n.defaults)}}),r.options)if(r.options.hasOwnProperty(e)){var n=this.modifyOption(r,e,r.options[e]);void 0!==n&&(r.options[e]=n)}},getEventProperties:function(e,n){var r={};return C.forEach(function(t){"function"==typeof t.eventProperties&&Object.assign(r,t.eventProperties.call(n[t.pluginName],e))}),r},modifyOption:function(e,n,r){var o;return C.forEach(function(t){e[t.pluginName]&&t.optionListeners&&"function"==typeof t.optionListeners[n]&&(o=t.optionListeners[n].call(e[t.pluginName],r))}),o}};function P(t){var e=t.sortable,n=t.rootEl,r=t.name,o=t.targetEl,i=t.cloneEl,a=t.toEl,s=t.fromEl,c=t.oldIndex,l=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,f=t.originalEvent,p=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[K]){var v,m=e.options,g="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||w||O?(v=document.createEvent("Event")).initEvent(r,!0,!0):v=new CustomEvent(r,{bubbles:!0,cancelable:!0}),v.to=a||n,v.from=s||n,v.item=o||n,v.clone=i,v.oldIndex=c,v.newIndex=l,v.oldDraggableIndex=u,v.newDraggableIndex=d,v.originalEvent=f,v.pullMode=p?p.lastPutMode:void 0;var b=B({},h,_.getEventProperties(r,e));for(var y in b)v[y]=b[y];n&&n.dispatchEvent(v),m[g]&&m[g].call(e,v)}}var J=function(t,e,n){var r=void 0===n?{}:n,o=r.evt,i=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)0<=e.indexOf(n=i[r])||(o[n]=t[n]);return o}(r,["evt"]);_.pluginEvent.bind(zt)(t,e,B({dragEl:Q,parentEl:tt,ghostEl:et,rootEl:nt,nextEl:rt,lastDownEl:A,cloneEl:D,cloneHidden:T,dragStarted:lt,putSortable:st,activeSortable:zt.active,originalEvent:o,oldIndex:z,oldDraggableIndex:L,newIndex:ot,newDraggableIndex:it,hideGhostForTarget:At,unhideGhostForTarget:Dt,cloneNowHidden:function(){T=!0},cloneNowShown:function(){T=!1},dispatchSortableEvent:function(t){Z({sortable:e,name:t,originalEvent:o})}},i))};function Z(t){P(B({putSortable:st,cloneEl:D,targetEl:Q,rootEl:nt,oldIndex:z,oldDraggableIndex:L,newIndex:ot,newDraggableIndex:it},t))}var Q,tt,et,nt,rt,A,D,T,z,ot,L,it,at,st,M,H,R,I,V,ct,lt,ut,dt,ft,pt,ht=!1,vt=!1,mt=[],gt=!1,bt=!1,yt=[],wt=!1,Ot=[],xt="undefined"!=typeof document,jt=o,Et=O||w?"cssFloat":"float",Ct=xt&&!i&&!o&&"draggable"in document.createElement("div"),St=function(){if(xt){if(w)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),_t=function(t,e){var n=W(t),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=v(t,0,e),i=v(t,1,e),a=o&&W(o),s=i&&W(i),c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+U(o).width,l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+U(i).width;return"flex"===n.display?"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal":"grid"===n.display?n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal":o&&a.float&&"none"!==a.float?!i||"both"!==s.clear&&s.clear!==("left"===a.float?"left":"right")?"horizontal":"vertical":o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||r<=c&&"none"===n[Et]||i&&"none"===n[Et]&&r<c+l)?"vertical":"horizontal"},Pt=function(t){function s(i,a){return function(t,e,n,r){if(null==i&&(a||t.options.group.name&&e.options.group.name&&t.options.group.name===e.options.group.name))return!0;if(null==i||!1===i)return!1;if(a&&"clone"===i)return i;if("function"==typeof i)return s(i(t,e,n,r),a)(t,e,n,r);var o=(a?t:e).options.group.name;return!0===i||"string"==typeof i&&i===o||i.join&&-1<i.indexOf(o)}}var e={},n=t.group;n&&"object"==typeof n||(n={name:n}),e.name=n.name,e.checkPull=s(n.pull,!0),e.checkPut=s(n.put),e.revertClone=n.revertClone,t.group=e},At=function(){!St&&et&&W(et,"display","none")},Dt=function(){!St&&et&&W(et,"display","")};xt&&document.addEventListener("click",function(t){if(vt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),vt=!1},!0);var Nt,kt=function(t){if(Q){var e=(o=(t=t.touches?t.touches[0]:t).clientX,i=t.clientY,mt.some(function(t){if(!X(t)){var e=U(t),n=t[K].options.emptyInsertThreshold;return n&&o>=e.left-n&&o<=e.right+n&&i>=e.top-n&&i<=e.bottom+n?a=t:void 0}}),a);if(e){var n={};for(var r in t)t.hasOwnProperty(r)&&(n[r]=t[r]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[K]._onDragOver(n)}}var o,i,a},Tt=function(t){Q&&Q.parentNode[K]._isOutsideThisEl(t.target)};function zt(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not "+{}.toString.call(t);this.el=t,this.options=e=Object.assign({},e),t[K]=this;var n,r,o={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return _t(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==zt.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};for(var i in _.initializePlugins(this,t,o),o)!(i in e)&&(e[i]=o[i]);for(var a in Pt(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Ct,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?d(t,"pointerdown",this._onTapStart):(d(t,"mousedown",this._onTapStart),d(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(t,"dragover",this),d(t,"dragenter",this)),mt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),Object.assign(this,(r=[],{captureAnimationState:function(){r=[],this.options.animation&&[].slice.call(this.el.children).forEach(function(t){if("none"!==W(t,"display")&&void 0!==t){r.push({target:t,rect:U(t)});var e=B({},r[r.length-1].rect);if(t.thisAnimationDuration){var n=m(t,!0);n&&(e.top-=n.f,e.left-=n.e)}t.fromRect=e}})},addAnimationState:function(t){r.push(t)},removeAnimationState:function(t){r.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var r in e)if(e.hasOwnProperty(r)&&e[r]===t[n][r])return Number(n);return-1}(r,{target:t}),1)},animateAll:function(t){var p=this;if(!this.options.animation)return clearTimeout(n),void("function"==typeof t&&t());var h=!1,v=0;r.forEach(function(t){var e,n,r,o,i=0,a=t.target,s=a.fromRect,c=U(a),l=a.prevFromRect,u=a.prevToRect,d=t.rect,f=m(a,!0);f&&(c.top-=f.f,c.left-=f.e),a.toRect=c,a.thisAnimationDuration&&b(l,c)&&!b(s,c)&&(d.top-c.top)/(d.left-c.left)==(s.top-c.top)/(s.left-c.left)&&(e=d,n=l,r=u,o=p.options,i=Math.sqrt(Math.pow(n.top-e.top,2)+Math.pow(n.left-e.left,2))/Math.sqrt(Math.pow(n.top-r.top,2)+Math.pow(n.left-r.left,2))*o.animation),b(c,s)||(a.prevFromRect=s,a.prevToRect=c,i||(i=p.options.animation),p.animate(a,d,c,i)),i&&(h=!0,v=Math.max(v,i),clearTimeout(a.animationResetTimer),a.animationResetTimer=setTimeout(function(){a.animationTime=0,a.prevFromRect=null,a.fromRect=null,a.prevToRect=null,a.thisAnimationDuration=null},i),a.thisAnimationDuration=i)}),clearTimeout(n),h?n=setTimeout(function(){"function"==typeof t&&t()},v):"function"==typeof t&&t(),r=[]},animate:function(t,e,n,r){if(r){W(t,"transition",""),W(t,"transform","");var o=m(this.el),i=(e.left-n.left)/(o&&o.a||1),a=(e.top-n.top)/(o&&o.d||1);t.animatingX=!!i,t.animatingY=!!a,W(t,"transform","translate3d("+i+"px,"+a+"px,0)"),this.forRepaintDummy=t.offsetWidth,W(t,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),W(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){W(t,"transition",""),W(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},r)}}}))}function Lt(t,e,n,r,o,i,a,s){var c,l,u=t[K],d=u.options.onMove;return!window.CustomEvent||w||O?(c=document.createEvent("Event")).initEvent("move",!0,!0):c=new CustomEvent("move",{bubbles:!0,cancelable:!0}),c.to=e,c.from=t,c.dragged=n,c.draggedRect=r,c.related=o||e,c.relatedRect=i||U(e),c.willInsertAfter=s,c.originalEvent=a,t.dispatchEvent(c),d&&(l=d.call(u,c,a)),l}function Mt(t){t.draggable=!1}function Ht(){wt=!1}function Rt(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,r=0;n--;)r+=e.charCodeAt(n);return r.toString(36)}function It(t){return setTimeout(t,0)}function Vt(t){return clearTimeout(t)}zt.prototype={constructor:zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(ut=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Q):this.options.direction},_onTapStart:function(e){if(e.cancelable){var n=this,r=this.el,t=this.options,o=t.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,s=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||s,l=t.filter;if(function(t){Ot.length=0;for(var e=t.getElementsByTagName("input"),n=e.length;n--;){var r=e[n];r.checked&&Ot.push(r)}}(r),!Q&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||t.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!u||!s||"SELECT"!==s.tagName.toUpperCase())&&!((s=F(s,t.draggable,r,!1))&&s.animated||A===s)){if(z=Y(s),L=Y(s,t.draggable),"function"==typeof l){if(l.call(this,e,s,this))return Z({sortable:n,rootEl:c,name:"filter",targetEl:s,toEl:r,fromEl:r}),J("filter",n,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(l&&(l=l.split(",").some(function(t){if(t=F(c,t.trim(),r,!1))return Z({sortable:n,rootEl:t,name:"filter",targetEl:s,fromEl:r,toEl:r}),J("filter",n,{evt:e}),!0})))return void(o&&e.cancelable&&e.preventDefault());t.handle&&!F(c,t.handle,r,!1)||this._prepareDragStart(e,a,s)}}},_prepareDragStart:function(t,e,n){var r,o=this,i=o.el,a=o.options,s=i.ownerDocument;if(n&&!Q&&n.parentNode===i){var c=U(n);if(nt=i,tt=(Q=n).parentNode,rt=Q.nextSibling,A=n,at=a.group,V=(M={target:zt.dragged=Q,clientX:(e||t).clientX,clientY:(e||t).clientY}).clientX-c.left,ct=M.clientY-c.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Q.style["will-change"]="all",r=function(){J("delayEnded",o,{evt:t}),zt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!l&&o.nativeDraggable&&(Q.draggable=!0),o._triggerDragStart(t,e),Z({sortable:o,name:"choose",originalEvent:t}),q(Q,a.chosenClass,!0))},a.ignore.split(",").forEach(function(t){h(Q,t.trim(),Mt)}),d(s,"dragover",kt),d(s,"mousemove",kt),d(s,"touchmove",kt),d(s,"mouseup",o._onDrop),d(s,"touchend",o._onDrop),d(s,"touchcancel",o._onDrop),l&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Q.draggable=!0),J("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(O||w))r();else{if(zt.eventCanceled)return void this._onDrop();d(s,"mouseup",o._disableDelayedDrag),d(s,"touchend",o._disableDelayedDrag),d(s,"touchcancel",o._disableDelayedDrag),d(s,"mousemove",o._delayedDragTouchMoveHandler),d(s,"touchmove",o._delayedDragTouchMoveHandler),a.supportPointer&&d(s,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Q&&Mt(Q),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;s(t,"mouseup",this._disableDelayedDrag),s(t,"touchend",this._disableDelayedDrag),s(t,"touchcancel",this._disableDelayedDrag),s(t,"mousemove",this._delayedDragTouchMoveHandler),s(t,"touchmove",this._delayedDragTouchMoveHandler),s(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?d(document,this.options.supportPointer?"pointermove":e?"touchmove":"mousemove",this._onTouchMove):(d(Q,"dragend",this),d(nt,"dragstart",this._onDragStart));try{document.selection?It(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(ht=!1,nt&&Q){J("dragStarted",this,{evt:e}),this.nativeDraggable&&d(document,"dragover",Tt);var n=this.options;!t&&q(Q,n.dragClass,!1),q(Q,n.ghostClass,!0),zt.active=this,t&&this._appendGhost(),Z({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(H){this._lastX=H.clientX,this._lastY=H.clientY,At();for(var t=document.elementFromPoint(H.clientX,H.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(H.clientX,H.clientY))!==e;)e=t;if(Q.parentNode[K]._isOutsideThisEl(t),e)do{if(e[K]&&e[K]._onDragOver({clientX:H.clientX,clientY:H.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=e.parentNode);Dt()}},_onTouchMove:function(t){if(M){var e=this.options,n=e.fallbackTolerance,r=e.fallbackOffset,o=t.touches?t.touches[0]:t,i=et&&m(et,!0),a=et&&i&&i.a,s=et&&i&&i.d,c=jt&&pt&&g(pt),l=(o.clientX-M.clientX+r.x)/(a||1)+(c?c[0]-yt[0]:0)/(a||1),u=(o.clientY-M.clientY+r.y)/(s||1)+(c?c[1]-yt[1]:0)/(s||1);if(!zt.active&&!ht){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(et){i?(i.e+=l-(R||0),i.f+=u-(I||0)):i={a:1,b:0,c:0,d:1,e:l,f:u};var d="matrix("+i.a+","+i.b+","+i.c+","+i.d+","+i.e+","+i.f+")";W(et,"webkitTransform",d),W(et,"mozTransform",d),W(et,"msTransform",d),W(et,"transform",d),R=l,I=u,H=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:nt,e=U(Q,!0,jt,!0,t),n=this.options;if(jt){for(pt=t;"static"===W(pt,"position")&&"none"===W(pt,"transform")&&pt!==document;)pt=pt.parentNode;pt!==document.body&&pt!==document.documentElement?(pt===document&&(pt=N()),e.top+=pt.scrollTop,e.left+=pt.scrollLeft):pt=N(),yt=g(pt)}q(et=Q.cloneNode(!0),n.ghostClass,!1),q(et,n.fallbackClass,!0),q(et,n.dragClass,!0),W(et,"transition",""),W(et,"transform",""),W(et,"box-sizing","border-box"),W(et,"margin",0),W(et,"top",e.top),W(et,"left",e.left),W(et,"width",e.width),W(et,"height",e.height),W(et,"opacity","0.8"),W(et,"position",jt?"absolute":"fixed"),W(et,"zIndex","100000"),W(et,"pointerEvents","none"),zt.ghost=et,t.appendChild(et),W(et,"transform-origin",V/parseInt(et.style.width)*100+"% "+ct/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,r=t.dataTransfer,o=n.options;J("dragStart",this,{evt:t}),zt.eventCanceled?this._onDrop():(J("setupClone",this),zt.eventCanceled||((D=x(Q)).draggable=!1,D.style["will-change"]="",this._hideClone(),q(D,this.options.chosenClass,!1),zt.clone=D),n.cloneId=It(function(){J("clone",n),zt.eventCanceled||(n.options.removeCloneOnHide||nt.insertBefore(D,Q),n._hideClone(),Z({sortable:n,name:"clone"}))}),!e&&q(Q,o.dragClass,!0),e?(vt=!0,n._loopId=setInterval(n._emulateDragOver,50)):(s(document,"mouseup",n._onDrop),s(document,"touchend",n._onDrop),s(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Q)),d(document,"drop",n),W(Q,"transform","translateZ(0)")),ht=!0,n._dragStartId=It(n._dragStarted.bind(n,e,t)),d(document,"selectstart",n),lt=!0,u&&W(document.body,"user-select","none"))},_onDragOver:function(n){var r,o,i,a,t,e,s,c,l,u,d,f,p,h=this.el,v=n.target,m=this.options,g=m.group,b=zt.active,y=at===g,w=m.sort,O=st||b,x=this,j=!1;if(!wt){if(void 0!==n.preventDefault&&n.cancelable&&n.preventDefault(),v=F(v,m.draggable,h,!0),H("dragOver"),zt.eventCanceled)return j;if(Q.contains(n.target)||v.animated&&v.animatingX&&v.animatingY||x._ignoreWhileAnimating===v)return I(!1);if(vt=!1,b&&!m.disabled&&(y?w||(i=!nt.contains(Q)):st===this||(this.lastPutMode=at.checkPull(this,b,Q,n))&&g.checkPut(this,b,Q,n))){if(a="vertical"===this._getDirection(n,v),r=U(Q),H("dragOverValid"),zt.eventCanceled)return j;if(i)return tt=nt,R(),this._hideClone(),H("revert"),zt.eventCanceled||(rt?nt.insertBefore(Q,rt):nt.appendChild(Q)),I(!0);var E=X(h,m.draggable);if(E&&(u=n,d=a,p=U(X((f=this).el,f.options.draggable)),!(d?u.clientX>p.right+10||u.clientX<=p.right&&u.clientY>p.bottom&&u.clientX>=p.left:u.clientX>p.right&&u.clientY>p.top||u.clientX<=p.right&&u.clientY>p.bottom+10)||E.animated)){if(v.parentNode===h){o=U(v);var C,S,_,P=Q.parentNode!==h,A=(t=Q.animated&&Q.toRect||r,e=v.animated&&v.toRect||o,c=(s=a)?t.left:t.top,l=s?e.left:e.top,!(c===l||(s?t.right:t.bottom)===(s?e.right:e.bottom)||c+(s?t.width:t.height)/2===l+(s?e.width:e.height)/2)),D=a?"top":"left",N=G(v,"top","top")||G(Q,"top","top"),k=N?N.scrollTop:void 0;if(ut!==v&&(S=o[D],gt=!1,bt=!A&&m.invertSwap||P),0!==(C=function(t,e,n,r,o,i,a,s){var c,l=r?t.clientY:t.clientX,u=r?n.height:n.width,d=r?n.top:n.left,f=r?n.bottom:n.right,p=!1;if(!a)if(s&&ft<u*o){if(!gt&&(1===dt?d+u*i/2<l:l<f-u*i/2)&&(gt=!0),gt)p=!0;else if(1===dt?l<d+ft:f-ft<l)return-dt}else if(d+u*(1-o)/2<l&&l<f-u*(1-o)/2)return c=e,Y(Q)<Y(c)?1:-1;return(p=p||a)&&(l<d+u*i/2||f-u*i/2<l)?d+u/2<l?1:-1:0}(n,v,o,a,A?1:m.swapThreshold,null==m.invertedSwapThreshold?m.swapThreshold:m.invertedSwapThreshold,bt,ut===v)))for(var T=Y(Q);(_=tt.children[T-=C])&&("none"===W(_,"display")||_===et););if(0===C||_===v)return I(!1);dt=C;var z=(ut=v).nextElementSibling,L=!1,M=Lt(nt,h,Q,r,v,o,n,L=1===C);if(!1!==M)return 1!==M&&-1!==M||(L=1===M),wt=!0,setTimeout(Ht,30),R(),L&&!z?h.appendChild(Q):v.parentNode.insertBefore(Q,L?z:v),N&&$(N,0,k-N.scrollTop),tt=Q.parentNode,void 0===S||bt||(ft=Math.abs(S-U(v)[D])),V(),I(!0)}}else{if(E===Q)return I(!1);if(E&&h===n.target&&(v=E),v&&(o=U(v)),!1!==Lt(nt,h,Q,r,v,o,n,!!v))return R(),h.appendChild(Q),tt=h,V(),I(!0)}if(h.contains(Q))return I(!1)}return!1}function H(t,e){J(t,x,B({evt:n,isOwner:y,axis:a?"vertical":"horizontal",revert:i,dragRect:r,targetRect:o,canSort:w,fromSortable:O,target:v,completed:I,onMove:function(t,e){return Lt(nt,h,Q,r,t,U(t),n,e)},changed:V},e))}function R(){H("dragOverAnimationCapture"),x.captureAnimationState(),x!==O&&O.captureAnimationState()}function I(t){return H("dragOverCompleted",{insertion:t}),t&&(y?b._hideClone():b._showClone(x),x!==O&&(q(Q,st?st.options.ghostClass:b.options.ghostClass,!1),q(Q,m.ghostClass,!0)),st!==x&&x!==zt.active?st=x:x===zt.active&&st&&(st=null),O===x&&(x._ignoreWhileAnimating=v),x.animateAll(function(){H("dragOverAnimationComplete"),x._ignoreWhileAnimating=null}),x!==O&&(O.animateAll(),O._ignoreWhileAnimating=null)),(v===Q&&!Q.animated||v===h&&!v.animated)&&(ut=null),m.dragoverBubble||n.rootEl||v===document||(Q.parentNode[K]._isOutsideThisEl(n.target),!t&&kt(n)),!m.dragoverBubble&&n.stopPropagation&&n.stopPropagation(),j=!0}function V(){ot=Y(Q),it=Y(Q,m.draggable),Z({sortable:x,name:"change",toEl:h,newIndex:ot,newDraggableIndex:it,originalEvent:n})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){s(document,"mousemove",this._onTouchMove),s(document,"touchmove",this._onTouchMove),s(document,"pointermove",this._onTouchMove),s(document,"dragover",kt),s(document,"mousemove",kt),s(document,"touchmove",kt)},_offUpEvents:function(){var t=this.el.ownerDocument;s(t,"mouseup",this._onDrop),s(t,"touchend",this._onDrop),s(t,"pointerup",this._onDrop),s(t,"touchcancel",this._onDrop),s(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;ot=Y(Q),it=Y(Q,n.draggable),J("drop",this,{evt:t}),tt=Q&&Q.parentNode,ot=Y(Q),it=Y(Q,n.draggable),zt.eventCanceled||(gt=bt=ht=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Vt(this.cloneId),Vt(this._dragStartId),this.nativeDraggable&&(s(document,"drop",this),s(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),u&&W(document.body,"user-select",""),W(Q,"transform",""),t&&(lt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(nt===tt||st&&"clone"!==st.lastPutMode)&&D&&D.parentNode&&D.parentNode.removeChild(D),Q&&(this.nativeDraggable&&s(Q,"dragend",this),Mt(Q),Q.style["will-change"]="",lt&&!ht&&q(Q,st?st.options.ghostClass:this.options.ghostClass,!1),q(Q,this.options.chosenClass,!1),Z({sortable:this,name:"unchoose",toEl:tt,newIndex:null,newDraggableIndex:null,originalEvent:t}),nt!==tt?(0<=ot&&(Z({rootEl:tt,name:"add",toEl:tt,fromEl:nt,originalEvent:t}),Z({sortable:this,name:"remove",toEl:tt,originalEvent:t}),Z({rootEl:tt,name:"sort",toEl:tt,fromEl:nt,originalEvent:t}),Z({sortable:this,name:"sort",toEl:tt,originalEvent:t})),st&&st.save()):ot!==z&&0<=ot&&(Z({sortable:this,name:"update",toEl:tt,originalEvent:t}),Z({sortable:this,name:"sort",toEl:tt,originalEvent:t})),zt.active&&(null!=ot&&-1!==ot||(ot=z,it=L),Z({sortable:this,name:"end",toEl:tt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){J("nulling",this),nt=Q=tt=et=rt=D=A=T=M=H=lt=ot=it=z=L=ut=dt=st=at=zt.dragged=zt.ghost=zt.clone=zt.active=null,Ot.forEach(function(t){t.checked=!0}),Ot.length=R=I=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Q&&(this._onDragOver(t),(e=t).dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault());break;case"selectstart":t.preventDefault()}var e},toArray:function(){for(var t,e=[],n=this.el.children,r=0,o=n.length,i=this.options;r<o;r++)F(t=n[r],i.draggable,this.el,!1)&&e.push(t.getAttribute(i.dataIdAttr)||Rt(t));return e},sort:function(t){var r={},o=this.el;this.toArray().forEach(function(t,e){var n=o.children[e];F(n,this.options.draggable,o,!1)&&(r[t]=n)},this),t.forEach(function(t){r[t]&&(o.removeChild(r[t]),o.appendChild(r[t]))})},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return F(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var r=_.modifyOption(this,t,e);n[t]=void 0!==r?r:e,"group"===t&&Pt(n)},destroy:function(){J("destroy",this);var t=this.el;t[K]=null,s(t,"mousedown",this._onTapStart),s(t,"touchstart",this._onTapStart),s(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(s(t,"dragover",this),s(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),mt.splice(mt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!T){if(J("hideClone",this),zt.eventCanceled)return;W(D,"display","none"),this.options.removeCloneOnHide&&D.parentNode&&D.parentNode.removeChild(D),T=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(T){if(J("showClone",this),zt.eventCanceled)return;Q.parentNode!=nt||this.options.group.revertClone?rt?nt.insertBefore(D,rt):nt.appendChild(D):nt.insertBefore(D,Q),this.options.group.revertClone&&this.animate(Q,D),W(D,"display",""),T=!1}}else this._hideClone()}},xt&&d(document,"touchmove",function(t){(zt.active||ht)&&t.cancelable&&t.preventDefault()}),zt.utils={on:d,off:s,css:W,find:h,is:function(t,e){return!!F(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:y,closest:F,toggleClass:q,clone:x,index:Y,nextTick:It,cancelNextTick:Vt,detectDirection:_t,getChild:v},zt.get=function(t){return t[K]},zt.mount=function(){var t=[].slice.call(arguments);t[0].constructor===Array&&(t=t[0]),t.forEach(function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not "+{}.toString.call(t);t.utils&&(zt.utils=B({},zt.utils,t.utils)),_.mount(t)})},zt.create=function(t,e){return new zt(t,e)};var Bt,Ft,qt,Wt,Ut,Gt=[],Xt=[],Yt=!(zt.version="1.12.0"),$t=!1,Kt=!1;function Jt(r,o){Xt.forEach(function(t,e){var n=o.children[t.sortableIndex+(r?Number(e):0)];n?o.insertBefore(t,n):o.appendChild(t)})}function Zt(){Gt.forEach(function(t){t!==qt&&t.parentNode&&t.parentNode.removeChild(t)})}var Qt=function(t){var e=t.originalEvent,n=t.putSortable,r=t.dragEl,o=t.dispatchSortableEvent,i=t.unhideGhostForTarget;if(e){var a=n||t.activeSortable;(0,t.hideGhostForTarget)();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,c=document.elementFromPoint(s.clientX,s.clientY);i(),a&&!a.el.contains(c)&&(o("spill"),this.onSpill({dragEl:r,putSortable:n}))}};function te(){}function ee(){}te.prototype={startIndex:null,dragStart:function(t){this.startIndex=t.oldDraggableIndex},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var r=v(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(e,r):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:Qt},Object.assign(te,{pluginName:"revertOnSpill"}),ee.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:Qt},Object.assign(ee,{pluginName:"removeOnSpill"});var ne,re,oe,ie,ae,se,ce=[],le=!1;function ue(){ce.forEach(function(t){clearInterval(t.pid)}),ce=[]}function de(){clearInterval(se)}var fe=y(function(n,t,e,r){if(t.scroll){var o,i=(n.touches?n.touches[0]:n).clientX,a=(n.touches?n.touches[0]:n).clientY,s=t.scrollSensitivity,c=t.scrollSpeed,l=N(),u=!1;re!==e&&(re=e,ue(),o=t.scrollFn,!0===(ne=t.scroll)&&(ne=k(e,!0)));var d=0,f=ne;do{var p=f,h=U(p),v=h.top,m=h.bottom,g=h.left,b=h.right,y=h.width,w=h.height,O=void 0,x=void 0,j=p.scrollWidth,E=p.scrollHeight,C=W(p),S=p.scrollLeft,_=p.scrollTop;x=p===l?(O=y<j&&("auto"===C.overflowX||"scroll"===C.overflowX||"visible"===C.overflowX),w<E&&("auto"===C.overflowY||"scroll"===C.overflowY||"visible"===C.overflowY)):(O=y<j&&("auto"===C.overflowX||"scroll"===C.overflowX),w<E&&("auto"===C.overflowY||"scroll"===C.overflowY));var P=O&&(Math.abs(b-i)<=s&&S+y<j)-(Math.abs(g-i)<=s&&!!S),A=x&&(Math.abs(m-a)<=s&&_+w<E)-(Math.abs(v-a)<=s&&!!_);if(!ce[d])for(var D=0;D<=d;D++)ce[D]||(ce[D]={});ce[d].vx==P&&ce[d].vy==A&&ce[d].el===p||(ce[d].el=p,ce[d].vx=P,ce[d].vy=A,clearInterval(ce[d].pid),0==P&&0==A||(u=!0,ce[d].pid=setInterval(function(){r&&0===this.layer&&zt.active._onTouchMove(ae);var t=ce[this.layer].vy?ce[this.layer].vy*c:0,e=ce[this.layer].vx?ce[this.layer].vx*c:0;"function"==typeof o&&"continue"!==o.call(zt.dragged.parentNode[K],e,t,n,ae,ce[this.layer].el)||$(ce[this.layer].el,e,t)}.bind({layer:d}),24))),d++}while(t.bubbleScroll&&f!==l&&(f=k(f,!1)));le=u}},30);zt.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?d(document,"dragover",this._handleAutoScroll):d(document,this.options.supportPointer?"pointermove":e.touches?"touchmove":"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?s(document,"dragover",this._handleAutoScroll):(s(document,"pointermove",this._handleFallbackAutoScroll),s(document,"touchmove",this._handleFallbackAutoScroll),s(document,"mousemove",this._handleFallbackAutoScroll)),de(),ue(),clearTimeout(f),f=void 0},nulling:function(){ae=re=ne=le=se=oe=ie=null,ce.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(e,n){var r=this,o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,t=document.elementFromPoint(o,i);if(ae=e,n||O||w||u){fe(e,this.options,t,n);var a=k(t,!0);!le||se&&o===oe&&i===ie||(se&&de(),se=setInterval(function(){var t=k(document.elementFromPoint(o,i),!0);t!==a&&(a=t,ue()),fe(e,r.options,t,n)},10),oe=o,ie=i)}else{if(!this.options.bubbleScroll||k(t,!0)===N())return void ue();fe(e,this.options,k(t,!1),!1)}}},Object.assign(t,{pluginName:"scroll",initializeByDefault:!0})}),zt.mount(ee,te),zt.mount(new function(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){Nt=t.dragEl},dragOverValid:function(t){var e=t.completed,n=t.target,r=t.changed,o=t.cancel;if(t.activeSortable.options.swap){var i=this.options;if(n&&n!==this.sortable.el){var a=Nt;Nt=!1!==(0,t.onMove)(n)?(q(n,i.swapClass,!0),n):null,a&&a!==Nt&&q(a,i.swapClass,!1)}r(),e(!0),o()}},drop:function(t){var e,n,r,o,i,a,s=t.activeSortable,c=t.putSortable,l=t.dragEl,u=c||this.sortable,d=this.options;Nt&&q(Nt,d.swapClass,!1),Nt&&(d.swap||c&&c.options.swap)&&l!==Nt&&(u.captureAnimationState(),u!==s&&s.captureAnimationState(),a=(n=Nt).parentNode,(i=(e=l).parentNode)&&a&&!i.isEqualNode(n)&&!a.isEqualNode(e)&&(r=Y(e),o=Y(n),i.isEqualNode(a)&&r<o&&o++,i.insertBefore(n,i.children[r]),a.insertBefore(e,a.children[o])),u.animateAll(),u!==s&&s.animateAll())},nulling:function(){Nt=null}},Object.assign(t,{pluginName:"swap",eventProperties:function(){return{swapItem:Nt}}})}),zt.mount(new function(){function t(r){for(var t in this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this));r.options.supportPointer?d(document,"pointerup",this._deselectMultiDrag):(d(document,"mouseup",this._deselectMultiDrag),d(document,"touchend",this._deselectMultiDrag)),d(document,"keydown",this._checkKeyDown),d(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(t,e){var n="";Gt.length&&Ft===r?Gt.forEach(function(t,e){n+=(e?", ":"")+t.textContent}):n=e.textContent,t.setData("Text",n)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){qt=t.dragEl},delayEnded:function(){this.isMultiDrag=~Gt.indexOf(qt)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var r=0;r<Gt.length;r++)Xt.push(x(Gt[r])),Xt[r].sortableIndex=Gt[r].sortableIndex,Xt[r].draggable=!1,Xt[r].style["will-change"]="",q(Xt[r],this.options.selectedClass,!1),Gt[r]===qt&&q(Xt[r],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.dispatchSortableEvent,n=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||Gt.length&&Ft===t.sortable&&(Jt(!0,t.rootEl),e("clone"),n()))},showClone:function(t){var e=t.cloneNowShown,n=t.cancel;this.isMultiDrag&&(Jt(!1,t.rootEl),Xt.forEach(function(t){W(t,"display","")}),e(),Ut=!1,n())},hideClone:function(t){var e=this,n=t.cloneNowHidden,r=t.cancel;this.isMultiDrag&&(Xt.forEach(function(t){W(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),Ut=!0,r())},dragStartGlobal:function(t){!this.isMultiDrag&&Ft&&Ft.multiDrag._deselectMultiDrag(),Gt.forEach(function(t){t.sortableIndex=Y(t)}),Gt=Gt.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),Kt=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Gt.forEach(function(t){t!==qt&&W(t,"position","absolute")});var r=U(qt,!1,!0,!0);Gt.forEach(function(t){t!==qt&&j(t,r)}),Yt=$t=!0}n.animateAll(function(){Yt=$t=!1,e.options.animation&&Gt.forEach(function(t){E(t)}),e.options.sort&&Zt()})}},dragOver:function(t){var e=t.completed,n=t.cancel;$t&&~Gt.indexOf(t.target)&&(e(!1),n())},revert:function(t){var r,o,e=t.fromSortable,n=t.rootEl,i=t.sortable,a=t.dragRect;1<Gt.length&&(Gt.forEach(function(t){i.addAnimationState({target:t,rect:$t?U(t):a}),E(t),t.fromRect=a,e.removeAnimationState(t)}),$t=!1,r=!this.options.removeCloneOnHide,o=n,Gt.forEach(function(t,e){var n=o.children[t.sortableIndex+(r?Number(e):0)];n?o.insertBefore(t,n):o.appendChild(t)}))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,r=t.activeSortable,o=t.parentEl,i=t.putSortable,a=this.options;if(t.insertion){if(n&&r._hideClone(),Yt=!1,a.animation&&1<Gt.length&&($t||!n&&!r.options.sort&&!i)){var s=U(qt,!1,!0,!0);Gt.forEach(function(t){t!==qt&&(j(t,s),o.appendChild(t))}),$t=!0}if(!n)if($t||Zt(),1<Gt.length){var c=Ut;r._showClone(e),r.options.animation&&!Ut&&c&&Xt.forEach(function(t){r.addAnimationState({target:t,rect:Wt}),t.fromRect=Wt,t.thisAnimationDuration=null})}else r._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,r=t.activeSortable;if(Gt.forEach(function(t){t.thisAnimationDuration=null}),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Wt=Object.assign({},e);var o=m(qt,!0);Wt.top-=o.f,Wt.left-=o.e}},dragOverAnimationComplete:function(){$t&&($t=!1,Zt())},drop:function(t){var e=t.originalEvent,n=t.rootEl,r=t.parentEl,o=t.sortable,i=t.dispatchSortableEvent,a=t.oldIndex,s=t.putSortable,c=s||this.sortable;if(e){var l=this.options,u=r.children;if(!Kt)if(l.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),q(qt,l.selectedClass,!~Gt.indexOf(qt)),~Gt.indexOf(qt))Gt.splice(Gt.indexOf(qt),1),Bt=null,P({sortable:o,rootEl:n,name:"deselect",targetEl:qt,originalEvt:e});else{if(Gt.push(qt),P({sortable:o,rootEl:n,name:"select",targetEl:qt,originalEvt:e}),e.shiftKey&&Bt&&o.el.contains(Bt)){var d,f,p=Y(Bt),h=Y(qt);if(~p&&~h&&p!==h)for(d=p<h?(f=p,h):(f=h,p+1);f<d;f++)~Gt.indexOf(u[f])||(q(u[f],l.selectedClass,!0),Gt.push(u[f]),P({sortable:o,rootEl:n,name:"select",targetEl:u[f],originalEvt:e}))}else Bt=qt;Ft=c}if(Kt&&this.isMultiDrag){if((r[K].options.sort||r!==n)&&1<Gt.length){var v=U(qt),m=Y(qt,":not(."+this.options.selectedClass+")");if(!Yt&&l.animation&&(qt.thisAnimationDuration=null),c.captureAnimationState(),!Yt&&(l.animation&&(qt.fromRect=v,Gt.forEach(function(t){if(t.thisAnimationDuration=null,t!==qt){var e=$t?U(t):v;t.fromRect=e,c.addAnimationState({target:t,rect:e})}})),Zt(),Gt.forEach(function(t){u[m]?r.insertBefore(t,u[m]):r.appendChild(t),m++}),a===Y(qt))){var g=!1;Gt.forEach(function(t){t.sortableIndex===Y(t)||(g=!0)}),g&&i("update")}Gt.forEach(function(t){E(t)}),c.animateAll()}Ft=c}(n===r||s&&"clone"!==s.lastPutMode)&&Xt.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=Kt=!1,Xt.length=0},destroyGlobal:function(){this._deselectMultiDrag(),s(document,"pointerup",this._deselectMultiDrag),s(document,"mouseup",this._deselectMultiDrag),s(document,"touchend",this._deselectMultiDrag),s(document,"keydown",this._checkKeyDown),s(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==Kt&&Kt||Ft!==this.sortable||t&&F(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;Gt.length;){var e=Gt[0];q(e,this.options.selectedClass,!1),Gt.shift(),P({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:e,originalEvt:t})}},_checkKeyDown:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp:function(t){t.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Object.assign(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[K];e&&e.options.multiDrag&&!~Gt.indexOf(t)&&(Ft&&Ft!==e&&(Ft.multiDrag._deselectMultiDrag(),Ft=e),q(t,e.options.selectedClass,!0),Gt.push(t))},deselect:function(t){var e=t.parentNode[K],n=Gt.indexOf(t);e&&e.options.multiDrag&&~n&&(q(t,e.options.selectedClass,!1),Gt.splice(n,1))}},eventProperties:function(){var n=this,r=[],o=[];return Gt.forEach(function(t){var e;r.push({multiDragElement:t,index:t.sortableIndex}),e=$t&&t!==qt?-1:$t?Y(t,":not(."+n.options.selectedClass+")"):Y(t),o.push({multiDragElement:t,index:e})}),{items:[].concat(Gt),clones:[].concat(Xt),oldIndicies:r,newIndicies:o}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":1<t.length&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}),e.a=zt},function(t,e,n){"use strict";n.d(e,"a",function(){return a});var r=n(12),d=n.n(r),f=n(2),p=n(4),h=n(0),v=n(1),l=n(5),o=n(21),c=n(7),m=n(16);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach(function(t){y(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function g(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function b(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function y(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var a=function(r){var t,e;function n(t,e,n){var a;return void 0===e&&(e={}),y(b(a=r.call(this,t,Object.assign({},e,{id:e.id||Object(f.n)()}))||this),"mutationHandler",function(t){return t.map(function(t){})}),y(b(a),"remove",function(t){if(t){var e=t.split("."),n=e.pop(),r=a.get(e);return Array.isArray(r)?Object(p.h)(n)?r.splice(Number(n),1):a.set(e,r.filter(function(t){return t!==n})):delete r[n],r}if("stage"===a.name)return null;var o=a.parent,i=a.children;return Object(p.c)(i,function(t){return t.remove()}),a.dom.parentElement.removeChild(a.dom),Object(f.k)(l.e.getAddress(o.name+"s."+o.id+".children"),a.id),o.children.length||o.emptyClass(),"row"===o.name&&o.autoColumnWidths(),l.e[a.name+"s"].delete(a.id)}),y(b(a),"emptyClass",function(){return a.dom.classList.toggle("empty",!a.children.length)}),y(b(a),"removeClasses",function(t){var e={string:function(){return a.dom.classList.remove(t)},array:function(){return t.map(function(t){return a.dom.classList.remove(t)})}};return e.object=e.string,e[h.a.childType(t)](a.dom)}),y(b(a),"loadChildren",function(t){return void 0===t&&(t=a.data.children),t.map(function(t){return a.addChild({id:t})})}),y(b(a),"saveChildOrder",function(){if(!a.render){var t=a.children.map(function(t){return t.id});return a.set("children",t),t}}),y(b(a),"onSort",function(){return a.saveChildOrder()}),y(b(a),"onEnd",function(t){var e=t.to.parentElement,n=t.from.parentElement;e&&e.classList.remove("hovering-"+Object(f.c)(e)),n&&n.classList.remove("hovering-"+Object(f.c)(n))}),y(b(a),"runConditions",function(){var t=a.get("conditions");return t&&t.length?t.map(function(t){var e=a.processConditions(t.if),n=a.processResults(t.then);return e.map(function(t){return a.evaluateConditions(t)&&a.execResults(n)})}):null}),y(b(a),"value",function(t,e){var n=t.split("."),r=a.getComponent(t),o=r&&n.slice(2,n.length).join(".");return[!r,!o,!v.A[o]].some(Boolean)?t:e?r.set(v.A[o],e):r.get(v.A[o])}),y(b(a),"getResult",function(t){return{"=":function(t,e,n){return t.set(e,n)}}[t]}),y(b(a),"processResults",function(t){return t.map(function(t){var e=t.operator,n=t.target,r=t.value,o=a.getComponent(n);return{target:o,propertyPath:o&&n.split(".").slice(2,n.length).join("."),action:a.getResult(e),value:a.value(r)}})}),y(b(a),"execResults",function(t){var e=t.map(function(t){return a.execResult(t)});return Promise.all(e)}),y(b(a),"execResult",function(t){var n=t.target,r=t.action,o=t.value;t.propertyPath;return new Promise(function(t,e){try{return t(r(n,o))}catch(t){return e(t)}})}),y(b(a),"cloneData",function(){var t=u({},Object(f.b)(a.data),{id:Object(f.n)()});return"field"!==a.name&&(t.children=[]),t}),y(b(a),"clone",function(t){void 0===t&&(t=a.parent);var e=t.addChild(a.cloneData(),a.index+1);return"field"!==a.name&&a.cloneChildren(e),"column"===a.name&&t.autoColumnWidths(),e}),y(b(a),"cloneChildren",function(e){a.children.forEach(function(t){return t&&t.clone(e)})}),y(b(a),"createChildWrap",function(t){return h.a.create({tag:"ul",attrs:{className:"children"},children:t})}),a.id=a.data.id,a.name=t,a.config=l.e[a.name+"s"].config,Object(f.h)(a.config,e.config),a.dataPath=a.name+"s."+a.id+".",a.observer=new MutationObserver(a.mutationHandler),a.render=n,a}e=r,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var o,i,a,s=n.prototype;return s.observe=function(t){this.observer.disconnect(),this.observer.observe(t,{childList:!0})},s.empty=function(){var e=this.children.map(function(t){return t.remove()});return this.data.children=this.data.children.filter(function(t){return-1===e.indexOf(t)}),this.dom.classList.add("empty"),e},s.getActionButtons=function(){var n=this,r="97px",o="hovering-"+this.name;return{className:this.name+"-actions group-actions",action:{onRender:function(t){return r=24*t.getElementsByTagName("button").length+1+"px"},mouseenter:function(t){var e=t.target;n.dom.classList.add(o),e.style["row"===n.name?"height":"width"]=r},mouseleave:function(t){var e=t.target;n.dom.classList.remove(o),e.removeAttribute("style")}},children:{className:"action-btn-wrap",children:this.buttons}}},s.toggleEdit=function(t){void 0===t&&(t=!this.isEditing),this.isEditing=t;var e=this.dom,n="editing-"+this.name,r=this.dom.querySelector("."+this.name+"-edit");c.a.slideToggle(r,v.a,t),"field"===this.name&&(c.a.slideToggle(this.preview,v.a,!t),e.parentElement.classList.toggle("column-"+n,t)),e.classList.toggle(n,t)},s.addChild=function(t,e){void 0===t&&(t={}),void 0===e&&(e=this.domChildren.length),"object"!=typeof t&&(t={id:t});var n=this.dom.querySelector(".children"),r=t.id,o=void 0===r?Object(f.n)():r,i=v.f.get(this.name);if(!i)return null;var a=i+"s",s=l.e.getAddress(a+"."+o)||l.e[a].add(o,t);n.insertBefore(s.dom,n.children[e]);var c=s.get("children");return c&&c.length&&s.loadChildren(c),this.removeClasses("empty"),this.saveChildOrder(),s},s.onAdd=function(t){var e=t.from,n=t.to,i=t.item,a=t.newIndex,s=this;e.classList.contains(v.o)||(e=e.parentElement);var r=Object(f.c)(e),o=Object(f.c)(n.parentElement),c=new Map([[-2,function(){var t=s.addChild({},a).addChild();return t.addChild.bind(t)}],[-1,function(){var t=s.addChild({},a);return t.addChild.bind(t)}],[0,function(){return s.addChild.bind(s)}],[1,function(t){var e=Object(p.f)(s.dom);return function(){return s.parent.addChild(t,e+1)}}],[2,function(t){return function(){return s.parent.parent.addChild(t)}}]]),l={controls:function(){var t=m.a.get(i.id).controlData,e=t.meta.id,n=e.startsWith("layout-")?e.replace(/^layout-/,""):"field",r=Object(p.d)({stage:{row:0,column:-1,field:-2},row:{row:1,column:0,field:-1},column:{row:2,column:1,field:0},field:1},s.name+"."+n),o=c.get(r)();return h.a.remove(i),o(t,a)},row:function(){var t=(c.get({stage:-1,row:0,column:1}[o])||d.a)();return t&&t({id:i.id},a)},column:function(){var t=(c.get({stage:-2,row:-1}[o])||d.a)();return t&&t(i.id)}},u=l[r]&&l[r](i,a);return s.saveChildOrder(),s.removeClasses("empty"),u},s.onRemove=function(t){var e=t.from.parentElement;return e.classList.contains(v.g)&&e.classList.remove("column-editing-field"),"stage"===this.name||this.children.length?(this.emptyClass(),this.saveChildOrder()):this.remove()},s.onRender=function(){var t=this.config.events;if(!t)return null;t.onRender&&h.a.onRender(this.dom,t.onRender)},s.getComponent=function(t){var e=t.split("."),n=e[0],r=e[1],o=l.e[n];return r===this.id?this:o&&o.get(r)},o=n,(i=[{key:"js",get:function(){return this.data}},{key:"json",get:function(){return this.data}},{key:"buttons",get:function(){var e=this,n=this,r=function(t){return t.map(function(t){return h.a.icon(t)})},i={handle:function(t){return void 0===t&&(t=["move","handle"]),u({},h.a.btnTemplate({content:r(t)}),{className:["item-handle"],meta:{id:"handle"}})},edit:function(t){return void 0===t&&(t=["edit"]),u({},h.a.btnTemplate({content:r(t)}),{className:["item-edit-toggle"],meta:{id:"edit"},action:{click:function(t){n.toggleEdit()}}})},remove:function(t){return void 0===t&&(t=["remove"]),u({},h.a.btnTemplate({content:r(t)}),{className:["item-remove"],meta:{id:"remove"},action:{click:function(t,e){c.a.slideUp(n.dom,v.a,function(){"column"===n.name?(n.parent.autoColumnWidths(),n.remove()):n.remove()})}}})},clone:function(t){return void 0===t&&(t=["copy"]),u({},h.a.btnTemplate({content:r(t)}),{className:["item-clone"],meta:{id:"clone"},action:{click:function(){return e.clone()}}})}};return this.config.actionButtons.buttons.map(function(t){var e=t.split("|"),n=e[0],r=e.slice(1),o=r.length?r:void 0;return i[n]&&i[n](o)||t})}},{key:"index",get:function(){return Object(p.f)(this.dom)}},{key:"parentType",get:function(){return v.C.get(this.name)}},{key:"parent",get:function(){var t=this.parentType;if(!this.dom||!t)return null;var e=this.dom.closest("."+v.j[t]);return e&&h.a.asComponent(e)}},{key:"children",get:function(){if(!this.dom)return[];var t=this.domChildren,e=v.f.get(this.name);return Object(p.i)(t,function(t){return l.e.getAddress(e+"s."+t.id)}).filter(Boolean)}},{key:"domChildren",get:function(){var t=this.dom.querySelector(".children");return t?t.children:[]}},{key:"config",set:function(t){var e=Object(p.d)(this.data,"meta.id"),n=[Object(p.d)(t,"all"),e&&Object(p.d)(t,e),Object(p.d)(t,this.id)].reduce(function(t,e){return e?Object(f.h)(t,e):t},this.configVal);return this.configVal=n,this.configVal},get:function(){return this.configVal}}])&&g(o.prototype,i),a&&g(o,a),n}(o.a)},function(t,e){t.exports=function(t){return null!=t&&"object"==typeof t}},function(t,e,n){"use strict";var p=n(13),r=n(3),h=n.n(r),o=n(59),a=n.n(o),i=n(19),s=n(4),c=n(6),v=n(0),l=n(2),m=n(39),g=n(40),u=n(11),d=n(12),f=n.n(d);var b={js:u.c,css:u.d},y=function(){function t(t){void 0===t&&(t={});var e,n,r,o=t,i=o.events,a=void 0===i?{}:i,s=o.dependencies,c=void 0===s?{}:s,l=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(o,["events","dependencies"]);r=function(t){var e=document.createElement("textarea");return e.innerHTML=t,e.textContent},(n="parsedHtml")in(e=this)?Object.defineProperty(e,n,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[n]=r,this.events=a,this.controlData=l,this.depsLoaded=this.fetchDependencies(c)}var e=t.prototype;return e.onRenderPreview=function(){},e.fetchDependencies=function(t,e){void 0===e&&(e=!0);var n=Object.entries(t).map(function(t){var e=t[0],n=t[1];return b[e](n)});return Promise.all(n)},e.on=function(t){var e=this,n={prerender:f.a,renderComponent:f.a,render:function(t){e.depsLoaded.then(function(){e.onRender&&e.onRender(t)})}};return t?n[t]:n},t.i18n=function(t,e){var n=this.definition,r=n.i18n||{};r=r[r.locale]||r.default||r;var o="object"==typeof r?r[t]:r;if(o)return o;var i=n.i18n;return"object"==typeof i&&(i=i[t]),r.get(i,e)},t}(),w=n(1),O=n(5),x=[{config:{label:"row"},meta:{group:"layout",icon:"rows",id:"layout-row"}},{config:{label:"column"},meta:{group:"layout",icon:"columns",id:"layout-column"}}];var j=function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"hidden",value:""},config:{label:h.a.get("hidden"),hideLabel:!0},meta:{group:"common",icon:"hidden",id:"hidden"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var E=function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"number",required:!1,className:""},config:{label:h.a.get("number")},meta:{group:"common",icon:"hash",id:"number"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var C=function(e){var t,n;function r(){var t={tag:"textarea",config:{label:h.a.get("controls.form.textarea")},meta:{group:"common",icon:"textarea",id:"textarea"},attrs:{required:!1}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var S=function(e){var t,n;function r(){var t={tag:"input",attrs:{required:!1,type:"text",className:""},config:{label:h.a.get("controls.form.input.text")},meta:{group:"common",icon:"text-input",id:"text-input"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var _=function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"file",required:!1},config:{label:h.a.get("fileUpload")},meta:{group:"common",icon:"upload",id:"upload"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y),P=n(8),A=n.n(P),D=function(r,t){return void 0===t&&(t=3),Array.from({length:t},function(t,e){return e+1}).map(function(t){var e,n="checkbox"===r?"checked":"selected";return(e={label:h.a.get("labelCount",{label:A()(r),count:t}),value:r+"-"+t})[n]=!t,e})};var N=function(e){var t,n;function r(){var t={tag:"select",config:{label:h.a.get("controls.form.select")},attrs:{required:!1,className:""},meta:{group:"common",icon:"select",id:"select"},options:D("option")};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var k=function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"checkbox",required:!1},config:{label:h.a.get("controls.form.checkbox-group"),disabledAttrs:["type"]},meta:{group:"common",icon:"checkbox",id:"checkbox"},options:D("checkbox",1)};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var T=function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"radio",required:!1},config:{label:h.a.get("controls.form.radio-group"),disabledAttrs:["type"]},meta:{group:"common",icon:"radio-group",id:"radio"},options:D("radio")};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y);var z=[function(e){var t,n;function r(){var t={tag:"button",attrs:{className:[{label:"grouped",value:"f-btn-group"},{label:"ungrouped",value:"f-field-group"}]},config:{label:h.a.get("controls.form.button"),hideLabel:!0},meta:{group:"common",icon:"button",id:"button"},options:[{label:h.a.get("button"),type:["button","submit","reset"].map(function(t,e){return{label:t,type:t}}),className:[{label:"default",value:"",selected:!0},{label:"primary",value:"primary"},{label:"danger",value:"error"},{label:"success",value:"success"},{label:"warning",value:"warning"}]}]};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y),function(e){var t,n;function r(){var t={tag:"input",attrs:{type:"date",required:!1,className:""},config:{label:h.a.get("controls.form.input.date")},meta:{group:"common",icon:"calendar",id:"date-input"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y),j,E,C,S,_,N,k,T];function L(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var M=Array.from(Array(5).keys()).slice(1).map(function(t){return"h"+t}),H="controls.html.header";var R=[function(e){var t,n,r,o,i;function a(){var t={tag:M[0],attrs:{tag:M.map(function(t,e){return{label:t.toUpperCase(),value:t,selected:!e}}),className:""},config:{label:h.a.get(H),hideLabel:!0,editableContent:!0},meta:{group:"html",icon:"header",id:"html.header"},content:h.a.get(H)};return e.call(this,t)||this}return n=e,(t=a).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r=a,i=[{key:"definition",get:function(){return{i18n:{header:"Header222"}}}}],(o=[{key:"content",get:function(){return e.prototype.i18n.call(this,H)}}])&&L(r.prototype,o),i&&L(r,i),a}(y),function(e){var t,n;function r(){var t={tag:"p",attrs:{className:""},config:{label:h.a.get("controls.html.paragraph"),hideLabel:!0,editableContent:!0},meta:{group:"html",icon:"paragraph",id:"paragraph"},content:"Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment."};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y),function(e){var t,n;function r(){var t={tag:"hr",config:{label:h.a.get("controls.html.divider"),hideLabel:!0},meta:{group:"html",icon:"divider",id:"divider"}};return e.call(this,t)||this}return n=e,(t=r).prototype=Object.create(n.prototype),(t.prototype.constructor=t).__proto__=n,r}(y),function(n){var t,e;function r(){var e,t={tag:"textarea",config:{label:"WYSIWYG",editableContent:!0},meta:{group:"html",icon:"rich-text",id:"tinymce"},attrs:{required:!1},action:{onRender:function(t){t.id&&(e.textareaID=t.id,console.log("render ",t.id),window.tinymce.remove("textarea#"+t.id),window.tinymce.init({selector:"textarea#"+t.id}))}}};return e=n.call(this,t)||this}return e=n,(t=r).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e,r}(y)],I=Object.freeze({sortable:!0,elementOrder:{},groupOrder:[],groups:[{id:"layout",label:"controls.groups.layout",elementOrder:["row","column"]},{id:"common",label:"controls.groups.form",elementOrder:["button","checkbox"]},{id:"html",label:"controls.groups.html",elementOrder:["header","block-text"]}],disable:{groups:[],elements:[],formActions:[]},elements:[],container:null,panels:{displayType:"slider"}});function V(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function B(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?V(Object(n),!0).forEach(function(t){q(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):V(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function F(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}function q(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var W=[].concat(z,R,x),U=function(){function t(){var a=this;q(this,"applyControlEvents",function(t){var e=t.clone.querySelector("button");Object.keys(a.controlEvents).map(function(t){return e.addEventListener(t,a.controlEvents[t])})}),q(this,"groupLabel",function(t){return h.a.get(t)||t||""}),q(this,"addElement",function(t){var e=Object(s.d)(a.get(t),"controlData"),n=e.meta,r=n.group,o=n.id,i={row:function(){return O.d.active.addChild()},column:function(){return i.row().addChild()},field:function(t){return i.column().addChild(t)}};return"layout"!==r?i.field(e):i[o.replace("layout-","")]()}),q(this,"applyOptions",function(t){void 0===t&&(t={});var e=Object(l.h)(I,t),n=e.container,r=e.elements,o=e.groupOrder,i=F(e,["container","elements","groupOrder"]);a.container=n,a.groupOrder=Object(l.m)(o.concat(["common","html","layout"])),a.elements=r.concat(W),a.options=i}),this.data=new Map,this.controlEvents={focus:function(t){var e=t.target.closest("."+w.o);return e&&a.panels.nav.refresh(Object(s.f)(e))},click:function(t){var e=t.target;return a.addElement(e.parentElement.id)}}}var e=t.prototype;return e.init=function(t,e){return void 0===e&&(e=!1),this.applyOptions(t),this.registerControls(),this.buildDOM(e),this},e.registerControls=function(){var l=this;return this.controls=this.elements.map(function(t){var e="function"==typeof t,n=e?new t:new y(t),r=n.controlData,o=r.meta,i=r.config,a=e?i.label:h.a.get(i.label)||i.label,s=l.add(n).id,c={tag:"button",attrs:{type:"button"},content:[{tag:"span",className:"control-icon",children:v.a.icon(o.icon)},a],action:l.controlEvents};return n.dom=v.a.create({tag:"li",id:s,className:["field-control",o.group+"-control",o.id+"-control"],content:c,meta:o}),n.dom}),this.controls},e.groupElements=function(){var i=this,t=this.options.groups.slice(),r=this.controls.slice(),a=[];return(t=(t=Object(s.j)(t,this.groupOrder,"id")).filter(function(t){return Object(l.g)(t.id,i.options.disable.groups)})).map(function(o){var t={tag:"ul",attrs:{className:w.o,id:o.id+"-"+w.o},config:{label:i.groupLabel(o.label)}};if(i.options.elementOrder[o.id]){var e=i.options.elementOrder[o.id],n=Object(l.m)(e.concat(o.elementOrder));o.elementOrder=n}return r=Object(s.j)(r,o.elementOrder,"meta.id"),t.content=r.filter(function(t){var e,n=i.get(t.id).controlData,r=n.meta.id||"";return(e=[Object(l.g)(r,i.options.disable.elements),n.meta.group===o.id,!a.includes(n.meta.id)].every(function(t){return!0===t}))&&a.push(r),e}),t})},e.add=function(t){void 0===t&&(t=Object.create(null));var e=t,n=e.id,r=F(e,["id"]),o=n||Object(l.n)(),i=a()(r);return this.data.set(o,i),B({id:o},i)},e.get=function(t){return a()(this.data.get(t))},e.formActions=function(){var o=this;if(!0===this.options.disable.formActions)return null;var t=B({},v.a.btnTemplate({content:[v.a.icon("bin"),h.a.get("clear")],title:h.a.get("clearAll")}),{className:["clear-form"],action:{click:function(e){O.c.size?(c.a.confirmClearAll=new window.CustomEvent("confirmClearAll",{detail:{confirmationMessage:h.a.get("confirmClearAll"),clearAllAction:function(){O.d.clearAll().then(function(){var t={src:e.target};c.a.formeoCleared(t)})},btnCoords:v.a.coords(e.target)}}),document.dispatchEvent(c.a.confirmClearAll)):window.alert(h.a.get("cannotClearFields"))}}}),e=B({},v.a.btnTemplate({content:[v.a.icon("floppy-disk"),h.a.get("save")],title:h.a.get("save")}),{className:["save-form"],action:{click:function(t){var e=t.target,n=O.e.formData,r={action:function(){},coords:v.a.coords(e),message:"",button:e};return i.a.click.btn(r),i.a.save.form(n)}}}),n={className:"form-actions f-btn-group",content:Object.entries({clearBtn:t,saveBtn:e}).reduce(function(t,e){var n=e[0],r=e[1];return o.options.disable.formActions.includes(n)||t.push(r),t},[])};return n},e.buildDOM=function(t){var i=this,e=this.groupElements(),n=this.formActions(),r=this.options.panels.displayType;this.panels=new m.a({panels:e,type:"controls",displayType:r});var o=["control-groups","formeo-panels-wrap","panel-count-"+e.length],a=v.a.create({className:o,content:[this.panels.panelNav,this.panels.panelsWrap]}),s="formeo-controls";t&&(s+=" formeo-sticky");var c=v.a.create({className:s,content:[a,n]}),l=c.getElementsByClassName("control-group");this.dom=c;var u=(this.groups=l)[0];this.currentGroup=u,this.actions={filter:function(t){var e=""!==t,n=i.controls,r=a.querySelector(".filtered-term");if(v.a.toggleElementsByStr(n,t),e){var o=h.a.get("controls.filteringTerm",t);c.classList.add("filtered"),r?r.textContent=o:(r=v.a.create({tag:"h5",className:"filtered-term",content:o}),a.insertBefore(r,a.firstChild))}else r&&(c.classList.remove("filtered"),r.remove())},addElement:this.addElement,addGroup:function(t){return console.log(t)}};for(var d=function(t){var n="formeo-controls-"+l[t];i.options.sortable||window.localStorage.removeItem(n),p.a.create(l[t],{animation:150,forceFallback:!0,fallbackClass:"control-moving",fallbackOnBody:!0,group:{name:"controls",pull:"clone",put:!1},onRemove:i.applyControlEvents,onStart:function(t){var e=t.item,n=i.get(e.id).controlData;i.options.ghostPreview&&(e.innerHTML="",e.appendChild(new g.a(n).preview))},sort:i.options.sortable,store:{get:function(){var t=window.localStorage.getItem(n);return t?t.split("|"):[]},set:function(t){var e=t.toArray();window.localStorage.setItem(n,e.join("|"))}}})},f=l.length-1;0<=f;f--)d(f);return c},t}();e.a=new U},function(t,e){var n=Array.isArray;t.exports=n},function(t,e,n){var r=n(105),o=n(111);t.exports=function(t,e){var n=o(t,e);return r(n)?n:void 0}},function(t,e,n){"use strict";var r=n(12),o=n.n(r),i=n(3),a=n.n(i),s=n(1),c=n(2),l=n(6),u={add:{attr:function(t){var e,n=window.prompt(t.message.attr);if(n&&t.isDisabled(n))return window.alert(a.a.get("attributeNotPermitted",n||"")),d.add.attrs(t);n&&(e=String(window.prompt(t.message.value,"")),t.addAction(n,e))},option:function(t){t.addAction()},condition:function(t){t.addAction(t)}},click:{btn:function(t){t.action()}},save:{form:o.a}},d={init:function(n){var t=Object.keys(u);return this.opts=t.reduce(function(t,e){return t[e]=Object.assign({},u[e],n[e]),t},n),this},add:{attrs:function(t){return d.opts.add.attr(t)},options:function(t){return d.opts.add.option(t)},conditions:function(t){return t.template=Object(s.n)(),d.opts.add.condition(t)}},click:{btn:function(t){return d.opts.click.btn(t)}},save:{form:function(t){return d.opts.sessionStorage&&c.l.set(s.F,t),l.a.formeoSaved({formData:t}),d.opts.save.form(t)}}};e.a=d},function(t,e,n){var r=n(23),o=n(107),i=n(108),a=r?r.toStringTag:void 0;t.exports=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":a&&a in Object(t)?o(t):i(t)}},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(27),u=n.n(r),i=n(2),d=n(4),f=n(6),a=n(1);function s(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function c(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var o=function(){function t(t,e){var o=this;void 0===e&&(e=Object.create(null)),c(this,"toJSON",function(t,e){return JSON.stringify(t,null,e)}),c(this,"get",function(t){return Object(d.d)(o.data,t)}),c(this,"getChangeType",function(e,n){var t=a.d.find(function(t){return(0,t.condition)(e,n)})||{type:"unknown"};return t.desc="added"===!t.type?e+" to "+n:n,t}),c(this,"add",function(t,e){void 0===e&&(e=Object.create(null));var n=e.id,r=t||n||Object(i.n)();return o.set(r,e)}),c(this,"remove",function(t){var e=t.split("."),n=e.pop(),r=o.get(e);return Array.isArray(r)?r.splice(Number(n),1):delete r[n],r}),c(this,"getData",function(){return Object.entries(o.data).reduce(function(t,e){var n=e[0],r=e[1];return t[n]=(null==r?void 0:r.data)?r.getData():r,t},{})}),c(this,"setCallbacks",{}),c(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}var e,n,r,o=t.prototype;return o.set=function(t,e){var n=this,r=Object(d.d)(this.data,t);if(u()(r,e))return this.data;var o=Object(d.k)(this.data,t,e),i=Array.isArray(t)?t.join("."):t,a=Object.keys(this.setCallbacks).filter(function(t){return new RegExp(t).test(i)}),s={newVal:e,oldVal:r,path:t};if(a.forEach(function(t){return n.setCallbacks[t].forEach(function(t){return t(s)})}),!this.disableEvents){var c=this.getChangeType(r,e),l={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:c.type+": "+c.desc,src:this.dom};r&&(l.previousValue=r),f.a.formeoUpdated(l)}return o},o.addSetCallback=function(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]},o.removeSetCallback=function(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter(function(t){return t!==e})},o.empty=function(){this.data=Object.create(null)},e=t,(n=[{key:"size",get:function(){return Object.keys(this.data).length}},{key:"js",get:function(){return this.data}},{key:"json",get:function(){return this.data}}])&&s(e.prototype,n),r&&s(e,r),t}()},function(t,e){t.exports=function(t,e){return t===e||t!=t&&e!=e}},function(t,e,n){var r=n(10).Symbol;t.exports=r},function(t,e,n){var l=n(53),u=n(45);t.exports=function(t,e,n,r){var o=!n;n||(n={});for(var i=-1,a=e.length;++i<a;){var s=e[i],c=r?r(n[s],t[s],s,n,t):void 0;void 0===c&&(c=t[s]),o?u(n,s,c):l(n,s,c)}return n}},function(t,e,n){var r=n(151);t.exports=function(t){return null==t?"":r(t)}},function(t,e,n){var i=n(169),a=n(9);t.exports=function(t,e,n){var r=!0,o=!0;if("function"!=typeof t)throw new TypeError("Expected a function");return a(n)&&(r="leading"in n?!!n.leading:r,o="trailing"in n?!!n.trailing:o),i(t,e,{leading:r,maxWait:e,trailing:o})}},function(t,e,n){var r=n(172);t.exports=function(t,e){return r(t,e)}},function(t){t.exports=JSON.parse('{"name":"formeo","version":"1.6.3","main":"dist/formeo.min.js","files":["dist/*","demo/**/*"],"homepage":"https://formeo.io","repository":{"url":"https://github.com/Draggable/formeo","type":"git"},"author":"Draggable https://draggable.io","contributors":[{"name":"Kevin Chappell","email":"kevin.b.chappell@gmail.com","url":"https://kevin-chappell.com"}],"bugs":{"url":"https://github.com/draggable/formeo/issues"},"description":"A zero dependency JavaScript module for drag and drop form creation.","keywords":["drag and drop","form builder","form maker","forms"],"license":"MIT","ignore":["**/*","node_modules","test"],"config":{"files":{"test":["test/**/*.spec.js"],"formeo-editor":{"js":"src/js/editor.js"},"formeo-renderer":{"js":"src/js/renderer.js"},"site":["demo/assets/sass/site.scss"]}},"babel":{"presets":[["@babel/preset-env",{"targets":{"browsers":[">1%"]},"loose":true}]],"comments":false,"plugins":["@babel/plugin-proposal-object-rest-spread","@babel/plugin-proposal-class-properties","@babel/plugin-proposal-optional-chaining"]},"scripts":{"analyze":"webpack --mode production -p --progress --config tools/webpack.config --analyze","build":"npm-run-all -p build:icons build:formeo","build:formeo":"cross-env NODE_ENV=production webpack --mode production -p --progress --config tools/webpack.config","build:icons":"babel-node ./tools/generate-sprite","lint":"eslint ./src --ext .js || true","test":"jest src/","test:ci":"yarn test --coverage","start":"npm-run-all build:icons start:demo","start:demo":"cross-env NODE_ENV=development webpack-dev-server --mode development --open --config tools/webpack.config --copy","semantic-release":"semantic-release --ci --debug","travis-deploy-once":"travis-deploy-once --pro","prepush":"yarn test","defaults":"webpack-defaults"},"devDependencies":{"@babel/cli":"^7.2.3","@babel/core":"^7.4.0","@babel/node":"^7.2.2","@babel/plugin-proposal-class-properties":"^7.4.0","@babel/plugin-proposal-object-rest-spread":"^7.4.0","@babel/plugin-proposal-optional-chaining":"^7.9.0","@babel/preset-env":"^7.4.2","@commitlint/cli":"^7.5.2","@commitlint/config-angular":"^7.5.0","@semantic-release/changelog":"3.0.0","@semantic-release/git":"7.0.1","@semantic-release/npm":"5.0.2","autoprefixer":"8.4.1","babel-eslint":"^10.0.1","babel-jest":"^24.5.0","babel-loader":"^8.0.5","clean-webpack-plugin":"1.0.0","compression-webpack-plugin":"1.1.11","copy-webpack-plugin":"4.6.0","cross-env":"^5.2.0","css-loader":"0.28.11","enzyme":"^3.9.0","enzyme-to-json":"3.3.4","eslint":"4.19.1","eslint-config-prettier":"2.9.0","eslint-config-standard":"11.0.0","eslint-loader":"2.0.0","eslint-plugin-css-modules":"2.7.5","eslint-plugin-import":"2.11.0","eslint-plugin-jest":"21.20.2","eslint-plugin-node":"6.0.1","eslint-plugin-prettier":"2.6.0","eslint-plugin-promise":"3.7.0","eslint-plugin-react":"7.7.0","eslint-plugin-standard":"3.1.0","formeo-i18n":"^2.1.3","fs-extra":"^7.0.1","html-webpack-harddisk-plugin":"1.0.1","html-webpack-plugin":"3.2.0","husky":"^2.3.0","jest":"^24.5.0","lint-staged":"7.3.0","lodash":"^4.17.11","mi18n":"^0.4.8","mini-css-extract-plugin":"^0.9.0","node-sass":"^4.11.0","npm-run-all":"^4.1.5","optimize-css-assets-webpack-plugin":"5.0.1","postcss-loader":"2.1.4","prettier":"1.14.2","raw-loader":"^2.0.0","sass-loader":"7.0.1","semantic-release":"^15.13.4","style-loader":"0.21.0","svg-sprite":"^1.5.0","travis-deploy-once":"^5.0.11","uglifyjs-webpack-plugin":"2.0.1","uuid":"3.3.2","webpack":"^4.32.2","webpack-bundle-analyzer":"^3.3.2","webpack-cli":"^3.3.2","webpack-dev-server":"^3.4.1"},"engines":{},"dependencies":{"sortablejs":"1.12.0"},"lint-staged":{"src/**/*.js":["prettier --config package.json --write","git add"]},"prettier":{"singleQuote":true,"trailingComma":"es5","printWidth":120,"semi":false},"jest":{"browser":true,"setupFiles":["<rootDir>/jest.setup.js"],"snapshotSerializers":["enzyme-to-json/serializer"],"transform":{"^.+\\\\.(js|jsx|ts|tsx)$":"babel-jest"},"transformIgnorePatterns":["node_modules/"],"coverageReporters":["text"],"testRegex":"src/.*\\\\.spec\\\\.js$","testURL":"http://localhost"},"release":{"branch":"master","verifyConditions":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"],"prepare":["@semantic-release/changelog","@semantic-release/npm","@semantic-release/git"]},"husky":{"hooks":{"commit-msg":"commitlint -E HUSKY_GIT_PARAMS","pre-commit":"lint-staged","pre-push":"npm run lint"}},"commitlint":{"extends":["@commitlint/config-angular"],"rules":{"type-enum":[2,"always",["build","chore","ci","docs","feat","fix","perf","refactor","revert","style","test"]]}}}')},function(t,e,n){var r=n(95),o=n(96),i=n(97),a=n(98),s=n(99);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,n){var r=n(22);t.exports=function(t,e){for(var n=t.length;n--;)if(r(t[n][0],e))return n;return-1}},function(t,e,n){var r=n(18)(Object,"create");t.exports=r},function(t,e,n){var r=n(120);t.exports=function(t,e){var n=t.__data__;return r(e)?n["string"==typeof e?"string":"hash"]:n.map}},function(t,e,n){var r=n(43),o=n(73);t.exports=function(t){return null!=t&&o(t.length)&&!r(t)}},function(t,s,c){(function(t){var e=c(10),n=c(130),r=s&&!s.nodeType&&s,o=r&&"object"==typeof t&&t&&!t.nodeType&&t,i=o&&o.exports===r?e.Buffer:void 0,a=(i?i.isBuffer:void 0)||n;t.exports=a}).call(this,c(46)(t))},function(t,e,n){var r=n(75),o=n(135),i=n(33);t.exports=function(t){return i(t)?r(t,!0):o(t)}},function(t,e,n){var r=n(20),o=n(15);t.exports=function(t){return"symbol"==typeof t||o(t)&&"[object Symbol]"==r(t)}},function(t,e,n){var r=n(186),o=n(42),i=n(187),a=n(188),s=n(189),c=n(20),l=n(63),u="[object Map]",d="[object Promise]",f="[object Set]",p="[object WeakMap]",h="[object DataView]",v=l(r),m=l(o),g=l(i),b=l(a),y=l(s),w=c;(r&&w(new r(new ArrayBuffer(1)))!=h||o&&w(new o)!=u||i&&w(i.resolve())!=d||a&&w(new a)!=f||s&&w(new s)!=p)&&(w=function(t){var e=c(t),n="[object Object]"==e?t.constructor:void 0,r=n?l(n):"";if(r)switch(r){case v:return h;case m:return u;case g:return d;case b:return f;case y:return p}return e}),t.exports=w},function(t,e,n){var r=n(55)(function(t,e,n){return t+(n?" ":"")+e.toLowerCase()});t.exports=r},function(t,e,n){"use strict";n.d(e,"a",function(){return o});var r=n(3),i=n.n(r),a=n(13),s=n(4),g=n(0),b=n(1),c=n(2);function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function u(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function d(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var f=Object.freeze({type:"field",displayType:"slider"}),y=function(t){return{transform:"translateX("+(t?t+"px":0)+")"}},o=function(){function t(t){var n=this;d(this,"toggleTabbedLayout",function(){n.getPanelDisplay();var t=n.isTabbed;return n.panelsWrap.parentElement.classList.toggle("tabbed-panels",t),t&&n.panelNav.removeAttribute("style"),t}),d(this,"resizePanels",function(){n.toggleTabbedLayout();var t=n.panelsWrap.style,e=g.a.getStyle(n.currentPanel,"height");return t.height=e}),this.opts=Object(c.h)(f,t),this.panelDisplay=this.opts.displayType,this.activePanelIndex=0,this.panelNav=this.createPanelNav();var e=this.createPanelsWrap();this.nav=this.navActions();var r=new window.ResizeObserver(function(t){var e=t[0].contentRect.width;n.currentWidth!==e&&(n.toggleTabbedLayout(),n.currentWidth=e,n.nav.setTranslateX(n.activePanelIndex,!1))}),o=window.setTimeout(function(){r.observe(e),window.clearTimeout(o)},b.c)}var e,n,r,o=t.prototype;return o.getPanelDisplay=function(){var t=this.panelsWrap,e=390<parseInt(g.a.getStyle(t,"width"))?"tabbed":"slider",n="auto"===this.opts.displayType;return this.panelDisplay=n?e:this.opts.displayType||f.displayType,this.panelDisplay},o.createPanelsWrap=function(){var t=g.a.create({className:"panels",content:this.opts.panels.map(function(t){t.config.label;return function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,["config"])})});return"field"===this.opts.type&&this.sortableProperties(t),this.panelsWrap=t,this.panels=t.children,this.currentPanel=this.panels[this.activePanelIndex],t},o.sortableProperties=function(t){var n=this,e=t.getElementsByClassName("field-edit-group");return s.b.forEach(e,function(t,e){t.fieldId=n.opts.id,t.isSortable&&a.a.create(t,{animation:150,group:{name:"edit-"+t.editGroup,pull:!0,put:["properties"]},sort:!0,handle:".prop-order",onSort:function(t){n.propertySave(t.to),n.resizePanels()}})})},o.createPanelNavLabels=function(){var r=this,t=this.opts.panels.map(function(t){return{tag:"h5",action:{click:function(t){var e=Object(s.f)(t.target,t.target.parentElement);r.currentPanel=r.panels[e];var n=t.target.parentElement.childNodes;r.nav.refresh(e),g.a.removeClasses(n,"active-tab"),t.target.classList.add("active-tab")}},content:t.config.label}}),e={className:"panel-labels",content:{content:t}};return t[0].className="active-tab",g.a.create(e)},o.createPanelNav=function(){var e=this;this.labels=this.createPanelNavLabels();var t={tag:"button",attrs:{className:"next-group",title:i.a.get("controlGroups.nextGroup"),type:"button"},dataset:{toggle:"tooltip",placement:"top"},action:{click:function(t){return e.nav.nextGroup(t)}},content:g.a.icon("triangle-right")},n={tag:"button",attrs:{className:"prev-group",title:i.a.get("controlGroups.prevGroup"),type:"button"},dataset:{toggle:"tooltip",placement:"top"},action:{click:function(t){return e.nav.prevGroup(t)}},content:g.a.icon("triangle-left")};return g.a.create({tag:"nav",attrs:{className:"panel-nav"},content:[n,this.labels,t]})},o.navActions=function(){var p=this,e={},h=this.currentPanel.parentElement,v=this.labels.firstChild,n=this.currentPanel.parentElement.childNodes;this.activePanelIndex=Object(s.f)(this.currentPanel,h);var r={nav:0,panel:0},m=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){d(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},r),o=function(t){var e=v.children;return g.a.removeClasses(n,"active-panel"),g.a.removeClasses(e,"active-tab"),p.currentPanel=n[t],p.currentPanel.classList.add("active-panel"),e[t].classList.add("active-tab"),p.currentPanel},i=function(t){var e=t.offset,n=t.reset,r=t.duration,o=void 0===r?b.b:r,i=t.animate,a=void 0===i?!p.isTabbed:i,s=[y(m.panel),y(e.panel)],c=[y(m.nav),y(p.isTabbed?0:e.nav)];if(n){var l=s[0],u=c[0];s.push(l),c.push(u)}var d={easing:"ease-in-out",duration:a?o:0,fill:"forwards"},f=h.animate(s,d);v.animate(c,d);f.addEventListener("finish",function t(){p.panelsWrap.style.height=g.a.getStyle(p.currentPanel,"height"),f.removeEventListener("finish",t),n||(m=e)})};return e.setTranslateX=function(t,e){var n;void 0===e&&(e=!0),n=t||p.activePanelIndex,r={nav:-v.offsetWidth*n,panel:-h.offsetWidth*n},i({offset:r,animate:e})},e.refresh=function(t){void 0!==t&&(p.activePanelIndex=t,o(t)),p.resizePanels(),e.setTranslateX(p.activePanelIndex,!1)},e.nextGroup=function(){var t=p.activePanelIndex+1;if(t!==n.length){var e=o(t);r={nav:-v.offsetWidth*t,panel:-e.offsetLeft},i({offset:r}),p.activePanelIndex++}else r={nav:m.nav-8,panel:m.panel-8},i({offset:r,reset:!0});return p.currentPanel},e.prevGroup=function(){if(0!==p.activePanelIndex){var t=p.activePanelIndex-1,e=o(t);r={nav:-v.offsetWidth*t,panel:-e.offsetLeft},i({offset:r}),p.activePanelIndex--}else i({offset:r={nav:8,panel:8},reset:!0})},e},e=t,(n=[{key:"isTabbed",get:function(){return"tabbed"===this.panelDisplay}}])&&u(e.prototype,n),r&&u(e,r),t}()},function(t,e,n){"use strict";var r=n(3),l=n.n(r),o=n(8),d=n.n(o),i=n(26),s=n.n(i),f=n(0),u=n(39),p=n(2),c=n(19),a=n(38),h=n.n(a),v=n(4),m=n(7),g=n(1),b=n(6),y=n(5);var w,O="f-autocomplete",x="highlight-component",j=Date.now(),E=function(t){var e=t.name,n=t.id,r=function(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}(t,["name","id"]);return["config.label","attrs.id","meta.id"].reduce(function(t,e){return t||(t=r.get(e)),t},null)||"external"===e&&function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];return l.a.get(e.join("."))||d()(e.join(" "))}(e,n)},C=function(){function t(t,e,n){this.key=t,this.className=t.replace(/\./g,"-"),this.value=e,this.events=[],this.i18nKey=n,this.build()}var e=t.prototype;return e.build=function(){var o=this,i=function(t){var e=o.list,n=o.getActiveOption(),r=new Map([[38,function(){var t=o.getPreviousOption(n);t&&o.selectOption(t)}],[40,function(){var t=o.getNextOption(n);t&&o.selectOption(t)}],[13,function(){n&&(o.selectOption(n),o.setValue(n),"none"===e.style.display?o.showList(n):o.hideList()),t.preventDefault()}],[27,function(){o.hideList()}]]).get(t.keyCode);return r||(r=function(){return!1}),r()},t={focus:function(t){var e=t.target;o.updateOptions(),e.parentElement.classList.add(o.className+"-focused");var n=f.a.toggleElementsByStr(o.list.querySelectorAll("li"),e.value);e.addEventListener("keydown",i);var r=o.list.querySelector(".active-option")||n[0];o.showList(r)},blur:function(t){var e=t.target;e.parentElement.classList.remove(o.className+"-focused"),e.removeEventListener("keydown",i),o.hideList()},input:function(t){var e=f.a.toggleElementsByStr(o.list.querySelectorAll("li"),t.target.value);if(0===t.target.value.length&&o.clearValue(),0===e.length)o.hideList();else{var n=o.getActiveOption()||e[0];o.showList(n)}o.hiddenField.value=t.target.value,o.value=t.target.value,o.runEvent("onChange",{target:o.hiddenField})}};return this.displayField=f.a.create({tag:"input",autocomplete:"off",action:t,attrs:{type:"text",className:O+"-display-field",value:this.label||this.value,placeholder:l.a.get(this.i18nKey+"."+this.key+".placeholder")}}),this.hiddenField=f.a.create({tag:"input",attrs:{type:"hidden",className:this.className,value:this.value}}),this.list=f.a.create({tag:"ul",attrs:{className:O+"-list"}}),this.dom=f.a.create({children:[this.displayField,this.hiddenField,this.list],className:this.className,action:{onRender:function(){var t=o.value&&y.e.getAddress(o.value);o.label=t&&E(t),o.label&&(o.displayField.value=o.label),o.updateOptions()}}}),this.dom},e.updateOptions=function(){var e=this,t=Date.now();t-j>g.c&&(f.a.empty(this.list),this.generateOptions(),j=t),(w||this.generateOptions()).forEach(function(t){return e.list.appendChild(t)})},e.generateOptions=function(){var l,u,t,o=this,e=(u=[],t=y.e.flatList(),Object.entries(t).map(function(t){var n,e=t[0],r=t[1],o=E(r);if(o){var i={tag:"span",content:" "+d()(r.name),className:"component-type"},a=r.name+"."+o;u.push(a);var s=(n=a,u.reduce(function(t,e){return t+(e===n)},0)),c={tag:"span",content:1<s&&"("+s+")",className:"component-label-count"};return f.a.makeOption([e,[o+" ",c,i]],l)}}).filter(Boolean)),i=function(t){return t.classList.contains("f-autocomplete-list-item")||(t=t.parentElement),t};return w=e.map(function(t){var e=t.value,n=t.label[0];n=n.trim();var r={tag:"li",children:t.label,dataset:{value:e,label:n},className:O+"-list-item",action:{mousedown:function(t){var e=t.target;e=i(e),o.setValue(e),o.selectOption(e),o.hideList()},mouseover:function(t){var e=t.target;e=i(e),o.removeHighlight(),o.highlightComponent(e)}}};return f.a.create(r)})},e.hideList=function(t){void 0===t&&(t=this.list),m.a.slideUp(t,g.b),this.removeHighlight()},e.showList=function(t,e){void 0===e&&(e=this.list),this.selectOption(t),m.a.slideDown(e,g.b)},e.getActiveOption=function(t){void 0===t&&(t=this.list);var e=t.getElementsByClassName("active-option")[0];return e&&"none"!==e.style.display?e:null},e.getPreviousOption=function(t){for(var e=t;null!=(e=e?e.previousSibling:null)&&"none"===e.style.display;);return e},e.getNextOption=function(t){for(var e=t;null!=(e=e?e.nextSibling:null)&&"none"===e.style.display;);return e},e.selectOption=function(t,e){void 0===e&&(e=this.list);for(var n=e.querySelectorAll("li"),r=0;r<n.length;r++){var o=n[r].dataset.value;if(n[r].classList.remove("active-option"),o){var i=y.e.getAddress(o);i.dom&&i.dom.classList.remove(x)}}t&&(t.classList.add("active-option"),this.highlightComponent(t))},e.removeHighlight=function(){for(var t=document.getElementsByClassName(x),e=0;e<t.length;e++)t[e].classList.remove(x)},e.highlightComponent=function(t){var e=t.dataset.value;if(e){var n=y.e.getAddress(e);n.dom&&n.dom.classList.add(x)}},e.clearValue=function(){this.selectOption(null),this.displayField.value="",this.hiddenField.value="",this.value="",this.runEvent("onChange",{target:this.hiddenField})},e.setValue=function(t){var e=t.dataset,n=e.label,r=e.value;this.displayField.value=n,this.hiddenField.value=r,this.value=r,this.runEvent("onChange",{target:this.hiddenField})},e.addEvent=function(t,e){this.events.push([t,e])},e.runEvent=function(r,o){this.events.forEach(function(t){var e=t[0],n=t[1];e===r&&n(o)})},t}();function S(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach(function(t){A(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function A(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var D=function(i,a){var t,e,n,r,o,s=(t=i,n=Object(p.f)(t),r=P({"field.property":g.A},g.B),o=n?(e=t,y.e.getAddress(e).getData()):r[t],Object.keys(o).reduce(function(t,e){return t[e]=e,t},{}));return Object.entries(s).reduce(function(t,e){var n=e[0],r=e[1];if("id"!==n){var o={tag:"option",content:l.a.get(i+"."+n)||h()(n),attrs:{value:r}};a===r&&(o.attrs.selected=!0),t.push(f.a.create(o))}return t},[])},N=function(e,t){f.a.empty(e),t.forEach(function(t){return e.add(t)})},k=function(t){var e=t.key,n=t.value,r=t.type,o=void 0===r?"text":r,i=t.checked,a={tag:"input",attrs:{type:o,value:n,placeholder:l.a.get(e+".placeholder")||d()(e)},className:e.replace(/\./g,"-"),config:{}};return i&&(a.attrs.checked=!0),a},T=function(t){var e=l.a.get(t);if(e)return e;var n=t.split(".");return l.a.get(n[n.length-1])},z={autocomplete:function(t,e,n){return new C(t,e,n)},string:function(t,e){return k({key:t,value:e})},boolean:function(t,e){return k({key:t,value:e,type:"selected"===t?"radio":"checkbox",checked:e})},number:function(t,e){return k({key:t,value:e,type:"number"})},array:function(t,e){return void 0===e&&(e=[]),{tag:"select",attrs:{placeholder:T("placeholder."+t)},className:t.replace(/\./g,"-"),options:e}},object:function(t){return Object.entries(t).map(function(t){var e=t[0],n=t[1];return z[f.a.childType(n)](e,n)})}},L=["selected","checked"],M={boolean:function(o,i){return{click:function(t){var e,n,r=t.target.checked;"radio"===(null===(e=i.data)||void 0===e?void 0:null===(n=e.attrs)||void 0===n?void 0:n.type)&&i.set("options",i.data.options.map(function(t){return P({},t,{selected:!1})})),i.set(o,r),i.updatePreview()}}},string:function(n,r){return{input:function(t){var e=t.target.value;r.set(n,e)}}},number:function(n,r){return{input:function(t){var e=t.target.value;r.set(n,Number(e)),r.updatePreview()}}},array:function(n,r){return{change:function(t){var e=t.target.value;r.set(n,e),r.updatePreview()}}},object:function(){return{}}},H=function(){function t(t){var d=this,e=t.key,n=t.data,r=t.index,o=t.field;A(this,"generateConditionFields",function(a,t){var r={tag:"label",className:"condition-label "+a+"-condition-label",content:l.a.get(a)||a};return t.map(function(t,o){var i=[],e=Object.entries(t).map(function(t){var e=t[0],n=t[1],r=d.conditionInput(e,n,a,o);return r&&i.push([r.className,n.trim()].filter(Boolean).join("-")),r}).filter(Boolean),n=Object(v.j)(e,g.m.map(function(t){return"condition-"+t}),"className||dom.className");return d.processConditionUIState(n),o||n.unshift(r),d.itemFieldGroups.push(n),{children:n,className:"f-condition-row "+a+"-condition-row "+i.join(" ")}})}),A(this,"processConditionUIState",function(t){var i=function(e){return e=e.split("|"),t.filter(function(t){return e.includes(t.className)})},a=function(t){t=Array.isArray(t)?t:[t];var e=setTimeout(function(){t.forEach(function(t){t.dom&&(t=t.dom),t.style.display="none"}),clearTimeout(e)},g.a)},s=function(t){t=Array.isArray(t)?t:[t];var e=setTimeout(function(){t.forEach(function(t){t.dom&&(t=t.dom),t.removeAttribute("style")}),clearTimeout(e)},g.a)},n=new Map([["condition-source",function(t){var e=i("condition-sourceProperty"),n=e[0],r=Object(p.f)(t.value)?t.value:"field.property",o=D(r,n.value);return N(n,o),t.value?s(e):a(e)}],["condition-target",function(t){var e=i("condition-targetProperty");return Object(p.d)(t.value)&&t.value?s(e):a(e)}],["condition-sourceProperty",function(t){var e=i("condition-comparison|condition-targetProperty|condition-target"),n=t.value,r=n.substring(n.lastIndexOf(".")+1,n.length);return Object(p.e)(r)?a(e):s(e)}]]);t.forEach(function(t){var e=n.get(t.className);e&&e(t)})}),A(this,"conditionInput",function(t,e,r,n){var o=d.field,i=d.itemKey+"."+r+"."+n,a=d.field.id+"."+i,s=o.name+"s."+a+"."+t,c=function(t,e,n){var r=D(n||t,e),o=z.array("condition."+t);o.action={change:l,onRender:function(t){return l({target:t})}};var i=f.a.create(o);return N(i,r),i},l=function(t){var e=t.target,n=e.closest(".f-condition-row"),r=new RegExp(e.className+"(?:\\S?)+","gm");n.className=n.className.replace(r,""),n.classList.add([e.className,e.value].filter(Boolean).join("-"));var o={dataPath:s,value:e.value,src:e};b.a.formeoUpdated(o),y.e.setAddress(s,e.value);var i=e.closest(".f-condition-row"),a=Object(v.f)(i);d.processConditionUIState(d.itemFieldGroups[a])},u={comparison:function(t){return c("comparison",t)},logical:function(t){return c("logical",t)},source:function(t,e){void 0===e&&(e="source");var n=z.autocomplete("condition."+e,t,r);return y.e.setConditionMap(t,o),n.addEvent("onChange",function(t){y.e.removeConditionMap(y.e.getAddress(s)),l(t),y.e.setConditionMap(t.target.value,o)}),n},sourceProperty:function(t){return c("sourceProperty",t,"field.property")},targetProperty:function(t){return c("targetProperty",t,"field.property")},target:function(t){return u.source(t,"target")},value:function(t){var e=z.string("condition.value",t);return e.action={input:l},f.a.create(e)},assignment:function(t){return c("assignment",t)}};if(u[t])return u[t](e);console.error(t+": invalid condition attribute")}),this.itemValues=Object(v.j)(Object.entries(n),L,"0");var i=e.split("."),a=i[0],s=i[1];this.field=o,this.itemKey=e,this.itemIndex=r,this.panelName=a,this.isDisabled=o.isDisabledProp(s,a),this.isHidden=this.isDisabled&&o.config.panels[a].hideDisabled,this.isLocked=o.isLockedProp(s,a),this.dom=f.a.create({tag:"li",className:["field-"+e.replace(/\./g,"-"),"prop-wrap",this.isHidden&&"hidden-property"],children:{className:"field-prop",children:[this.itemInputs,this.itemControls]}})}var e,n,r;return t.prototype.itemInput=function(e,t){var n=this,r=f.a.childType(t)||"string",o=Object.assign({},{config:{},attrs:{}},z[r](e,t)),i=this.itemKey.replace(/.\d+$/,function(t){return t+"."+e}),a=i.split(".").filter(isNaN).join("."),s=[[].concat(this.itemKey.split("."),[e]),[e]].map(function(t){return[n.field.id].concat(t).filter(Boolean).join("-")}),c=s[0],l=s[1];return o.config=Object.assign({},o.config,{label:"options"!==this.panelName&&T(a),labelAfter:!1}),o.attrs=Object.assign({},o.attrs,{name:"checkbox"===o.attrs.type?l+"[]":l,id:c,disabled:this.isDisabled,locked:this.isLocked}),o.action=P({},M[r](i,this.field)),o},e=t,(n=[{key:"itemInputs",get:function(){var o=this;return this.itemFieldGroups=[],{className:this.panelName+"-prop-inputs prop-inputs f-input-group",children:this.itemValues.map(function(t){var e=t[0],n=t[1],r="conditions"===o.panelName?o.generateConditionFields(e,n):o.itemInput(e,n);return["selected","checked"].includes(e)&&(r={className:"f-addon",children:r}),r})}}},{key:"itemControls",get:function(){var e=this;if(this.isLocked)return{className:this.panelName+"-prop-controls prop-controls",content:[]};var t={tag:"button",attrs:{type:"button",className:"prop-remove prop-control"},action:{click:function(){m.a.slideUp(e.dom,250,function(t){e.field.remove(e.itemKey),f.a.remove(t),e.field.resizePanelWrap()})}},content:f.a.icon("remove")};return{className:this.panelName+"-prop-controls prop-controls",content:[t]}}}])&&S(e.prototype,n),r&&S(e,r),t}();function R(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function I(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}var V=function(){function t(t,e,n){var c=this;I(this,"addAttribute",function(t,e){var n,r=Object(v.e)(t),o="attrs."+r;l.a.current[o]||l.a.put(o,Object(v.a)(t)),"string"==typeof e&&["true","false"].includes(e)&&(e=JSON.parse(e)),c.field.set("attrs."+t,e);var i=c.props.querySelector(".field-attrs-"+r),a=new H({key:o,data:(n={},n[r]=e,n),field:c.field});i?c.props.replaceChild(a.dom,i):c.props.appendChild(a.dom),c.field.resizePanelWrap()}),I(this,"addOption",function(){var t=c.field.data.meta.id,e=c.field.get("options"),n="select"===t?"option":t,r=l.a.get("newOptionLabel",{type:n})||"New Option",o="options."+c.data.length,i=e.length?Object(p.a)(e[e.length-1]):{},a=Object.assign({},i,{label:r,value:Object(v.e)(r)}),s=new H({key:o,data:a,field:c.field,index:c.props.children.length});c.editPanelItems.push(s),c.props.appendChild(s.dom),c.field.set(o,a),c.field.resizePanelWrap()}),I(this,"addCondition",function(t){var e="conditions."+c.field.get("conditions").length,n=c.props.querySelector(".field-"+e.replace(".","-")),r=new H({key:e,data:t.template,field:c.field});n?c.props.replaceChild(r.dom,n):c.props.appendChild(r.dom),c.field.set(e,t.template),c.field.resizePanelWrap()}),this.type=f.a.childType(t),this.data="object"===this.type?Object.entries(t):t,this.name=e,this.field=n,this.panelConfig=this.getPanelConfig(this.data)}var e=t.prototype;return e.getPanelConfig=function(t){return this.props=this.createProps(t),this.editButtons=this.createEditButtons(),{id:this.field.id+"-"+this.name+"-panel",config:{label:l.a.get("panel.label."+this.name)},attrs:{className:"f-panel "+this.name+"-panel"},children:[this.props,this.editButtons]}},e.createProps=function(t){var a=this;this.editPanelItems=Array.from(t).map(function(t,e){var n,r="array"===a.type,o=[a.name,r?String(e):t[0]].join("."),i=r?t:((n={})[t[0]]=t[1],n);return new H({key:o,data:i,field:a.field})});var e={tag:"ul",attrs:{className:["field-edit-group","field-edit-"+this.name]},editGroup:this.name,isSortable:"options"===this.name,content:this.editPanelItems};return f.a.create(e)},e.createEditButtons=function(){var o=this,i=this.name,t=l.a.get("panelEditButtons."+i),a={attrs:o.addAttribute,options:o.addOption,conditions:o.addCondition};return{className:"panel-action-buttons",content:[function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?R(Object(n),!0).forEach(function(t){I(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):R(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}({},f.a.btnTemplate({content:t,title:t}),{className:"add-"+i,action:{click:function(t){var e={btnCoords:f.a.coords(t.target),addAction:a[i]};"attrs"===i&&(e.isDisabled=o.field.isDisabledProp,e.isLocked=o.field.isLockedProp,e.message={attr:l.a.get("action.add."+i+".attr"),value:l.a.get("action.add."+i+".value")});var n=d()(i),r=new window.CustomEvent("onAdd"+n,{detail:e});c.a.add[i](e),document.dispatchEvent(r)}}})]}},t}(),B=n(14);function F(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function q(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?F(Object(n),!0).forEach(function(t){G(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):F(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function W(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function U(t){if(void 0===t)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return t}function G(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}n.d(e,"a",function(){return X});var X=function(c){var t,e;function n(t){var o;void 0===t&&(t=Object.create(null)),G(U(o=c.call(this,"field",Object.assign({},{conditions:[Object(g.n)()]},t))||this),"updateConditionsPanel",function(){var r=setTimeout(function(){var t=o.editPanels.find(function(t){return"conditions"===t.name});if(!t)return null;var e=t.createProps(),n=o.dom.querySelector(".field-edit-conditions");n.parentElement.replaceChild(e,n),clearTimeout(r)},g.a)}),G(U(o),"updatePreview",s()(function(){if(!o.preview.parentElement)return null;o.updateLabel();var t=f.a.create(o.fieldPreview(),!0);o.preview.parentElement.replaceChild(t,o.preview),o.preview=t},g.a,{leading:!1})),G(U(o),"isDisabledProp",function(t,e){void 0===e&&(e="attrs");var n=o.config.panels[e];return!!n&&n.disabled.concat(o.get("config.disabled"+d()(e))).includes(t)}),G(U(o),"isLockedProp",function(t,e){void 0===e&&(e="attrs");var n=o.config.panels[e];return!!n&&n.locked.concat(o.get("config.locked"+d()(e))).includes(t)}),o.label=f.a.create(o.labelConfig),o.preview=f.a.create(o.fieldPreview()),o.editPanels=[];var e={tag:"li",attrs:{className:g.z},id:o.id,children:[o.label,o.getActionButtons(),o.fieldEdit,o.preview],panelNav:o.panelNav,dataset:{hoverTag:l.a.get("field")},action:{mouseenter:function(){return o.dom.classList.add("hovering-"+o.name)},mouseleave:function(){return o.dom.classList.remove("hovering-"+o.name)}}};return e=f.a.create(e),o.observe(e),o.dom=e,o.isEditing=!1,o.onRender(e),o}e=c,(t=n).prototype=Object.create(e.prototype),(t.prototype.constructor=t).__proto__=e;var r,o,i,a=n.prototype;return a.updateConditionSourceLabel=function(n,r){var t=this.editPanels.find(function(t){return"conditions"===t.name});if(!t)return null;t.editPanelItems.forEach(function(t){t.itemFieldGroups.forEach(function(t){var e=t.find(function(t){return t.value===n});e&&(e.displayField.value=r)})})},a.set=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];var r=e[0],o=e[1],i=c.prototype.set.call(this,r,o);return this.updatePreview(),i},a.updateLabel=function(){if(!this.label)return null;var t=f.a.create(this.labelConfig);this.label.parentElement.replaceChild(t,this.label),this.label=t},a.fieldPreview=function(){var t,a=this,e=Object(p.b)(this.data);e.id="prev-"+this.id,(null===(t=this.data)||void 0===t?void 0:t.config.editableContent)&&(e.attrs=Object.assign({},e.attrs,{contenteditable:!0}));var n={attrs:{className:"field-preview",style:this.isEditing&&"display: none;"},content:f.a.create(e,!0),action:{change:function(t){var e=t.target,n=e.checked,r=e.type;if(["checkbox","radio"].includes(r)){var o=+e.id.split("-").pop();"radio"===r&&a.set("options",a.get("options").map(function(t){return q({},t,{selected:!1})}));var i="checkbox"===r?"checked":"selected";a.set("options."+o+"."+i,n)}},click:function(t){"true"===t.target.contentEditable&&t.preventDefault()},input:function(t){["input","meter","progress","button"].includes(a.data.tag)&&c.prototype.set.call(a,"attrs.value",t.target.value),t.target.contentEditable&&c.prototype.set.call(a,"content",t.target.innerHTML)}}};return n},r=n,(o=[{key:"labelConfig",get:function(){var a=this;if(!!!this.get("config.hideLabel")){var t,e=this.get("config.editorLabel")||this.get("config.label"),n=this.get("attrs.required"),s=this.config.label.disableHTML;return{className:"prev-label",children:[q({},(t={tag:"label",attrs:{}},s?(t.tag="input",t.attrs.value=e):(t.attrs.contenteditable=!0,t.children=e),t),{action:{input:function(t){var e=t.target,n=e.innerHTML,r=e.innerText,o=e.value;c.prototype.set.call(a,"config.label",s?o:n);var i=y.e.getConditionMap("fields."+a.id);if(i)return i.updateConditionSourceLabel(a.name+"s."+a.id,s?o:r)}}}),n&&f.a.requiredMark()]}}}},{key:"fieldEdit",get:function(){var o=this;this.editPanels=[];var i=["object","array"],e=["config","meta","action","events"].concat(this.config.panels.disabled),t={className:["field-edit","slide-toggle","formeo-panels-wrap"]};Object(p.m)([].concat(this.config.panels.order,Object.keys(this.data))).filter(function(t){return!e.includes(t)}).forEach(function(t){var e=o.get(t),n=f.a.childType(e);if(i.includes(n)){var r=new V(e,t,o);o.editPanels.push(r)}});var n={panels:this.editPanels.map(function(t){return t.panelConfig}),id:this.id,displayType:"auto"},a=this.editPanels.length;return a&&(this.panels=new u.a(n),t.className.push("panel-count-"+a),t.content=[this.panels.panelNav,this.panels.panelsWrap],this.panelNav=this.panels.nav,this.resizePanelWrap=this.panels.nav.refresh,t.action={onRender:function(){if(o.resizePanelWrap(),!a){var t=o.dom,e=t.querySelector(".item-edit-toggle"),n=t.querySelector(".field-actions"),r=n.getElementsByTagName("button");n.style.maxWidth=r.length*r[0].clientWidth+"px",f.a.remove(e)}}}),t}}])&&W(r.prototype,o),i&&W(r,i),n}(B.a)},function(t,e,n){var r=n(29),o=n(100),i=n(101),a=n(102),s=n(103),c=n(104);function l(t){var e=this.__data__=new r(t);this.size=e.size}l.prototype.clear=o,l.prototype.delete=i,l.prototype.get=a,l.prototype.has=s,l.prototype.set=c,t.exports=l},function(t,e,n){var r=n(18)(n(10),"Map");t.exports=r},function(t,e,n){var r=n(20),o=n(9);t.exports=function(t){if(!o(t))return!1;var e=r(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e}},function(t,e,n){var r=n(112),o=n(119),i=n(121),a=n(122),s=n(123);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,n){var r=n(65);t.exports=function(t,e,n){"__proto__"==e&&r?r(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n}},function(t,e){t.exports=function(t){return t.webpackPolyfill||(t.deprecate=function(){},t.paths=[],t.children||(t.children=[]),Object.defineProperty(t,"loaded",{enumerable:!0,get:function(){return t.l}}),Object.defineProperty(t,"id",{enumerable:!0,get:function(){return t.i}}),t.webpackPolyfill=1),t}},function(t,e,n){var r=n(68);t.exports=function(t){var e=new t.constructor(t.byteLength);return new r(e).set(new r(t)),e}},function(t,e,n){var r=n(71)(Object.getPrototypeOf,Object);t.exports=r},function(t,e){var n=Object.prototype;t.exports=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||n)}},function(t,e,n){var r=n(132),o=n(51),i=n(52),a=i&&i.isTypedArray,s=a?o(a):r;t.exports=s},function(t,e){t.exports=function(e){return function(t){return e(t)}}},function(t,a,s){(function(t){var e=s(62),n=a&&!a.nodeType&&a,r=n&&"object"==typeof t&&t&&!t.nodeType&&t,o=r&&r.exports===n&&e.process,i=function(){try{var t=r&&r.require&&r.require("util").types;return t||o&&o.binding&&o.binding("util")}catch(t){}}();t.exports=i}).call(this,s(46)(t))},function(t,e,n){var o=n(45),i=n(22),a=Object.prototype.hasOwnProperty;t.exports=function(t,e,n){var r=t[e];a.call(t,e)&&i(r,n)&&(void 0!==n||e in t)||o(t,e,n)}},function(t,e){var r=/^(?:0|[1-9]\d*)$/;t.exports=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&r.test(t))&&-1<t&&t%1==0&&t<e}},function(t,e,n){var r=n(161),o=n(162),i=n(165),a=RegExp("['’]","g");t.exports=function(e){return function(t){return r(i(o(t).replace(a,"")),e,"")}}},function(t,e,n){var r=n(183),o=n(84),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),r(a(e),function(t){return i.call(e,t)}))}:o;t.exports=s},function(t,e,n){var r=n(75),o=n(184),i=n(33);t.exports=function(t){return i(t)?r(t):o(t)}},function(t,e,n){var a=n(92),s=n(93);t.exports=function(t,e,n){var r=e&&n||0;"string"==typeof t&&(e="binary"===t?new Array(16):null,t=null);var o=(t=t||{}).random||(t.rng||a)();if(o[6]=15&o[6]|64,o[8]=63&o[8]|128,e)for(var i=0;i<16;++i)e[r+i]=o[i];return e||s(o)}},function(t,e,n){var r=n(190);t.exports=function(t){return r(t,5)}},function(t,e,n){"use strict";n.d(e,"a",function(){return i});var r=n(27),f=n.n(r),p=n(0),h=n(2),v=n(1);function o(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}function m(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function g(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}var b=function(t){var e=t.match(v.I);return e&&e[0]||t},i=function(){function t(t,e){var l=this;void 0===e&&(e={}),m(this,"render",function(t){void 0===t&&(t=l.form),l.form=t;var e=document.getElementsByClassName("formeo-render").length,n={id:l.form.id,className:"formeo-render formeo formeo-rendered-"+e,children:l.processedData};l.renderedForm=p.a.render(n),p.a.empty(l.container),l.applyConditions(),l.container.appendChild(l.renderedForm)}),m(this,"orderChildren",function(n,t){return t.reduce(function(t,e){return[].concat(t,[l.form[n][e]])},[])}),m(this,"prefixId",function(t){return"f-"+t}),m(this,"processColumn",function(t){var e=t.id,n=g(t,["id"]);return Object.assign({},n,{id:l.prefixId(e),children:l.processFields(n.children),style:"width: "+(n.config.width||"100%")})}),m(this,"processRows",function(t){return l.orderChildren("rows",l.form.stages[t].children).reduce(function(t,e){return e?[].concat(t,[l.processRow(e)]):t},[])}),m(this,"cacheComponent",function(t){return l.components[b(t.id)]=t}),m(this,"processRow",function(t,e){void 0===e&&(e="row");var n=t.config,r=t.id,o=["formeo-"+e+"-wrap"],i=Object.assign({},t,{children:l.processColumns(t.id),id:l.prefixId(r)});l.cacheComponent(i);var a=[{condition:n.legend,result:function(){return{tag:n.fieldset?"legend":"h3",children:n.legend}}},{condition:!0,result:function(){return i}},{condition:n.inputGroup,result:function(){return l.addButton(r)}}].reduce(function(t,e){var n=e.condition,r=e.result;return n?[].concat(t,[r()]):t},[]);return n.inputGroup&&o.push("f-input-group-wrap"),{tag:n.fieldset?"fieldset":"div",id:Object(h.n)(),className:o,children:a}}),m(this,"cloneComponentData",function(t){var e,n=l.components[t],r=n.children,o=void 0===r?[]:r,i=n.id,a=g(n,["children","id"]);return Object.assign({},a,{id:(e=i,e.replace(v.I,Object(h.n)())),children:o.length&&o.map(function(t){var e=t.id;return l.cloneComponentData(b(e))})})}),m(this,"addButton",function(r){return p.a.render({tag:"button",attrs:{className:"add-input-group btn pull-right",type:"button"},children:"Add +",action:{click:function(t){var e=t.target.parentElement,n=p.a.render(l.cloneComponentData(r));e.insertBefore(n,e.lastChild),n.appendChild(p.a.render(p.a.btnTemplate({className:"remove-input-group",children:p.a.icon("remove"),action:{mouseover:function(t){return t.target.parentElement.classList.add("will-remove")},mouseleave:function(t){return t.target.parentElement.classList.remove("will-remove")},click:function(t){return t.target.parentElement.remove()}}})))}}})}),m(this,"processColumns",function(t){return l.orderChildren("columns",l.form.rows[t].children).map(function(t){return l.cacheComponent(l.processColumn(t))})}),m(this,"processFields",function(t){return l.orderChildren("fields",t).map(function(t){var e=t.id,n=g(t,["id"]);return l.cacheComponent(Object.assign({},n,{id:l.prefixId(e)}))})}),m(this,"applyConditions",function(){Object.values(l.components).forEach(function(t){var e=t.conditions;e&&e.forEach(function(t,e){var n=t.if,o=t.then;n.forEach(function(t){var e=t.source,r=g(t,["source"]);Object(h.d)(e)&&l.getComponents(e).forEach(function(t){var e=y(t);e&&t.addEventListener(e,function(e){return l.evaluateCondition(r,e)&&o.forEach(function(t){return l.execResult(t,e)})},!1);var n={target:t};l.evaluateCondition(r,n)&&o.forEach(function(t){return l.execResult(t,n)})})})})})}),m(this,"evaluateCondition",function(t,e){var n=t.sourceProperty,r=t.targetProperty,o=t.comparison,i=t.target,a={equals:f.a,notEquals:function(t,e){return!f()(t,e)},contains:function(t,e){return t.includes(e)},notContains:function(t,e){return!t.includes(e)}},s=String(e.target[n]),c=String(Object(h.d)(i)?l.getComponent(i)[r]:i);return a[o]&&a[o](s,c)}),m(this,"execResult",function(t){var e=t.assignment,n=t.target,r=t.targetProperty,o=t.value,i={equals:function(t){var e={value:function(){t[r]=o},isNotVisible:function(){t.parentElement.setAttribute("hidden",!0),t.required=!1},isVisible:function(){t.parentElement.removeAttribute("hidden"),t.required=t._required}};e[r]&&e[r]()}};if(Object(h.d)(n)){var a=l.getComponent(n);a&&void 0===a._required&&(a._required=a.required),i[e]&&i[e](a)}}),m(this,"getComponent",function(t){var e=t.slice(t.indexOf(".")+1);return Object(h.f)(t)?l.external[e]:l.renderedForm.querySelector("#f-"+e)}),m(this,"getComponents",function(t){var e=[],n=t.slice(t.indexOf(".")+1);return Object(h.f)(t)?e.push(l.external[n]):e.push.apply(e,l.renderedForm.querySelectorAll("[name=f-"+n+"]")),e});var n,r,o,i,a,s,c=(r=(n=t).editorContainer,o=n.renderContainer,i=g(n,["editorContainer","renderContainer"]),s={renderContainer:(a=function(t){return"string"==typeof t?document.querySelector(t):t})(o),editorContainer:a(r)},Object.assign({},i,s)),u=c.renderContainer,d=c.external;this.container=u,this.form=e,this.external=d,this.dom=p.a,this.components=Object.create(null)}var e,n,r;return e=t,(n=[{key:"processedData",get:function(){var e=this;return Object.values(this.form.stages).map(function(t){return t.children=e.processRows(t.id),t.className=v.H,p.a.render(t)})}}])&&o(e.prototype,n),r&&o(e,r),t}(),y=function(e){return([["input",function(t){return["textarea","text"].includes(t.type)}],["change",function(t){return["select"].includes(t.tagName.toLowerCase())||["checkbox","radio"].includes(t.type)}]].find(function(t){return t[1](e)})||[!1])[0]}},function(t,e,n){"use strict";n(91);var r=n(3),i=n.n(r),f=n(0),p=n(6),h=n(19),a=n(16),v=n(5),s=n(11),c=n(1),m=n(2),o=n(4);i.a.addLanguage("en-US",'en-US = English\ndir = ltr\n\naction.add.attrs.attr = What attribute would you like to add?\naction.add.attrs.value = Default Value\naddOption = Add Option\nallFieldsRemoved = All fields were removed.\nallowSelect = Allow Select\nattribute = Attribute\nattributes = Attributes\nattrs.class = Class\nattrs.className = Class\nattrs.dir = Direction\nattrs.id = Id\nattrs.required = Required\nattrs.style = Style\nattrs.title = Title\nattrs.type = Type\nattrs.value = Value\nautocomplete = Autocomplete\nbutton = Button\ncannotBeEmpty = This field cannot be empty\ncheckbox = Checkbox\ncheckboxes = Checkboxes\nclass = Class\nclear = Clear\nclearAllMessage = Are you sure you want to clear all fields?\nclose = Close\ncolumn = Column\nconfirmClearAll = Are you sure you want to remove all fields?\ncontent = Content\ncontrol = Control\ncontrolGroups.nextGroup = Next Group\ncontrolGroups.prevGroup = Previous Group\ncontrols.form.button = Button\ncontrols.form.checkbox-group = Checkbox Group\ncontrols.form.input.date = Date\ncontrols.form.input.email = Email\ncontrols.form.input.file = File Upload\ncontrols.form.input.hidden = Hidden Input\ncontrols.form.input.number = Number\ncontrols.form.input.text = Text Input\ncontrols.form.radio-group = Radio Group\ncontrols.form.select = Select\ncontrols.form.textarea = TextArea\ncontrols.groups.form = Form Fields\ncontrols.groups.html = HTML Elements\ncontrols.groups.layout = Layout\ncontrols.html.divider = Divider\ncontrols.html.header = Header\ncontrols.html.paragraph = Paragraph\ncontrols.layout.column = Column\ncontrols.layout.row = Row\ncontrols.filteringTerm = Filtering "{term}"\ncopy = Copy To Clipboard\ndanger = Danger\ndescription = Help Text\ndescriptionField = Description\ndefineColumnLayout = Define a column layout\ndefineColumnWidths = Define column widths\nediting.row = Editing Row\neditorTitle = Form Elements\nfield = Field\nfieldNonEditable = This field cannot be edited.\nfieldRemoveWarning = Are you sure you want to remove this field?\nfileUpload = File Upload\nformUpdated = Form Updated\ngetStarted = Drag a field from the right to get started.\ngroup = Group\ngrouped = Grouped\nhidden = Hidden Input\nhide = Edit\nhtmlElements = HTML Elements\nif = If\ninfo = Info\ninput.date = Date\ninput.text = Text\nlabel = Label\nlabelCount = {label} {count}\nlabelEmpty = Field Label cannot be empty\nlayout = Layout\nlimitRole = Limit access to one or more of the following roles:\nmandatory = Mandatory\nmaxlength = Max Length\nmeta.group = Group\nmeta.icon = Ico\nmeta.label = Label\nminOptionMessage = This field requires a minimum of 2 options\nname = Name\nno = No\nnumber = Number\noff = Off\non = On\noption = Option\noptional = optional\noptionEmpty = Option value required\noptionLabel = Option {count}\noptions = Options\norder = Order\npanel.label.attrs = Attributes\npanel.label.conditions = Conditions\npanel.label.config = Configuration\npanel.label.meta = Meta\npanel.label.options = Options\npanelEditButtons.attrs = + Attribute\npanelEditButtons.options = + Option\npanelEditButtons.conditions = + Condition\nplaceholder = Placeholder\nplaceholder.className = space separated classes\nplaceholder.email = Enter you email\nplaceholder.label = Label\nplaceholder.password = Enter your password\nplaceholder.placeholder = Placeholder\nplaceholder.text = Enter some Text\nplaceholder.textarea = Enter a lot of text\nplaceholder.value = Value\npreview = Preview\nprimary = Primary\nremove = Remove\nremoveType = Remove {type}\nremoveMessage = Remove Element\nrequired = Required\nreset = Reset\nrichText = Rich Text Editor\nroles = Access\nrow = Row\nrow.makeInputGroup = Make this row an input group.\nrow.makeInputGroupDesc = Input Groups enable users to add sets of inputs at a time.\nrow.settings.fieldsetWrap = Wrap row in a <fieldset> tag\nrow.settings.fieldsetWrap.aria = Wrap Row in Fieldset\ncannotClearFields = There are no fields to clear\nsave = Save\nsecondary = Secondary\nselect = Select\nselectColor = Select Color\nselectionsMessage = Allow Multiple Selections\nselectOptions = Options\nseparator = Separator\nsettings = Settings\nsize = Size\nsizes = Sizes\nsizes.lg = Large\nsizes.m = Default\nsizes.sm = Small\nsizes.xs = Extra Small\nstyle = Style\nstyles = Styles\nstyles.btn = Button Style\nstyles.btn.danger = Danger\nstyles.btn.default = Default\nstyles.btn.info = Info\nstyles.btn.primary = Primary\nstyles.btn.success = Success\nstyles.btn.warning = Warning\nsubtype = Type\nsuccess = Success\ntext = Text Field\nthen = Then\ntoggle = Toggle\nungrouped = Un-Grouped\nwarning = Warning\nyes = Yes\nand = and\nor = or\nfield.property.value = value\nfield.property.label = label\nfield.property.valid = valid\nfield.property.invalid = not valid\nfield.property.isVisible = is visible\nfield.property.isNotVisible = is not visible\nnewOptionLabel = New {type}\noperator.visible = visible\noperator.notVisible = not visible\noperator.equals = equals\noperator.notEquals = not equal\noperator.contains = contains\noperator.notContains = not contains\ncondition.target.placeholder = target\nif.condition.target.placeholder = target / value\nif.condition.source.placeholder = source\nthen.condition.target.placeholder = target\ncondition.value.placeholder = value\nattributeNotPermitted = Attribute "{attribute}" is not permitted, please choose another.\n');var g={get editor(){return{stickyControls:!1,allowEdit:!0,dataType:"json",debug:!1,sessionStorage:!1,editorContainer:null,external:{},svgSprite:null,iconFont:null,config:{},events:{},actions:{},controls:{},polyfills:Object(o.g)(),i18n:{location:"https://draggable.github.io/formeo/assets/lang/"}}}};function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter(function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable})),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach(function(t){u(e,t,n[t])}):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach(function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))})}return e}function u(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function y(t,e){if(null==t)return{};var n,r,o={},i=Object.keys(t);for(r=0;r<i.length;r++)n=i[r],0<=e.indexOf(n)||(o[n]=t[n]);return o}function d(t,e){for(var n=0;n<e.length;n++){var r=e[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(t,r.key,r)}}var w=function(){function t(t,e){var n=t.formData,r=y(t,["formData"]),o=this,i=Object(m.h)(g.editor,r),a=i.actions,s=i.events,c=i.debug,l=i.config,u=i.editorContainer,d=y(i,["actions","events","debug","config","editorContainer"]);u&&(this.editorContainer="string"==typeof u?document.querySelector(u):u),this.opts=d,f.a.setOptions=d,v.e.config=l,this.userFormData=e||n,this.Components=v.e,this.dom=f.a,p.a.init(b({debug:c},s)),h.a.init(b({debug:c,sessionStorage:d.sessionStorage},a)),o.loadResources().then(function(){d.allowEdit&&(o.edit=o.init.bind(o),o.init())})}var e,n,r,o=t.prototype;return o.loadResources=function(){var t=[];return this.opts.polyfills&&Object(s.e)(this.opts.polyfills),this.opts.style&&t.push(Object(s.d)(this.opts.style)),this.opts.svgSprite?t.push(Object(s.a)(this.opts.svgSprite,s.b,function(){return Object(s.a)(c.y,s.b)})):t.push(Object(s.b)('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol viewBox="0 0 16 16" id="f-i-autocomplete" xmlns="http://www.w3.org/2000/svg"><path d="M6 5h1v1H6V5zM4 4H3v1h1V4zm2 0H5v1h1V4zM2 5v1h1V5H2zm1 2h1V6H3v1zm2 0h1V6H5v1zM4 5v1h1V5H4zm-2 9h1v-1H2v1zm2 0h1v-1H4v1zm2 0h1v-1H6v1zm3-1H8v1h1v-1zm7-9.5v4c0 .8-.7 1.5-1.5 1.5H14v6c0 .6-.4 1-1 1H1c-.6 0-1-.4-1-1V3.5C0 2.7.7 2 1.5 2H8V1H6V0h5v1H9v1h5.5c.8 0 1.5.7 1.5 1.5zM13 12H1v3h12v-3zM3 11v-1H2v1h1zm2 0v-1H4v1h1zm10-7.5c0-.3-.2-.5-.5-.5H9v5H8V7H7V6h1V5H7V4h1V3H1.5c-.3 0-.5.2-.5.5v4c0 .3.2.5.5.5H8v1H6v1h5V9H9V8h5.5c.3 0 .5-.2.5-.5v-4z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-bin" xmlns="http://www.w3.org/2000/svg"><path d="M4 10v20c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2V10H4zm6 18H8V14h2v14zm4 0h-2V14h2v14zm4 0h-2V14h2v14zm4 0h-2V14h2v14zM26.5 4H20V1.5c0-.825-.675-1.5-1.5-1.5h-7c-.825 0-1.5.675-1.5 1.5V4H3.5C2.675 4 2 4.675 2 5.5V8h26V5.5c0-.825-.675-1.5-1.5-1.5zM18 4h-6V2.025h6V4z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-button" xmlns="http://www.w3.org/2000/svg"><path d="M.477 4A.477.477 0 000 4.477v7.046A.477.477 0 00.477 12h15.046a.477.477 0 00.477-.477V4.477A.477.477 0 0015.523 4H.477zm.476.953h14.094v6.094H.953V4.953z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/><g font-weight="400" font-size="5" font-family="Sans" letter-spacing="0" word-spacing="0"><path d="M6.17 6.51q-.537 0-.854.4Q5 7.31 5 8q0 .689.315 1.09.317.4.854.4.537 0 .85-.4.315-.401.315-1.09 0-.69-.315-1.091-.313-.4-.85-.4zm0-.4q.767 0 1.226.514.459.513.459 1.377 0 .862-.46 1.377-.458.513-1.225.513-.769 0-1.23-.513-.46-.513-.46-1.377t.46-1.377Q5.4 6.11 6.17 6.11zM8.626 6.175h.493v1.54l1.636-1.54h.635l-1.81 1.7 1.94 1.945h-.65L9.12 8.065V9.82h-.494V6.175z"/></g></symbol><symbol viewBox="0 0 32 32" id="f-i-calendar" xmlns="http://www.w3.org/2000/svg"><path d="M12.048 16.961c-.178.257-.395.901-.652 1.059a2.57 2.57 0 01-.869.328 4.594 4.594 0 01-1.002.079v1.527h2.467V26h1.991v-9.996h-1.584c-.056.381-.173.7-.351.957zM23 8h2a1 1 0 001-1V1a1 1 0 00-1-1h-2a1 1 0 00-1 1v6a1 1 0 001 1zM7 8h2a1 1 0 001-1V1a1 1 0 00-1-1H7a1 1 0 00-1 1v6a1 1 0 001 1zm23-4h-2v5a1 1 0 01-1 1h-6a1 1 0 01-1-1V4h-8v5a1 1 0 01-1 1H5a1 1 0 01-1-1V4H2a2 2 0 00-2 2v24a2 2 0 002 2h28a2 2 0 002-2V6a2 2 0 00-2-2zm0 25a1 1 0 01-1 1H3a1 1 0 01-1-1V13a1 1 0 011-1h26a1 1 0 011 1v16zM15.985 17.982h4.968c-.936 1.152-1.689 2.325-2.265 3.705-.575 1.381-.638 2.818-.749 4.312h2.131c.009-.666-.195-1.385-.051-2.156.146-.771.352-1.532.617-2.285.267-.752.598-1.461.996-2.127a7.049 7.049 0 011.367-1.686v-1.742h-7.015v1.979z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-checkbox" xmlns="http://www.w3.org/2000/svg"><path d="M13.5 5v8c0 .8-.7 1.5-1.5 1.5H3c-.8 0-1.5-.7-1.5-1.5V4c0-.8.7-1.5 1.5-1.5h9c.7 0 1.3.5 1.5 1.2l2.4-1.4L13.5 5zm-1 1.2L7.7 12 2.8 5.5l4.9 1.6 4.8-2.9V4c0-.3-.2-.5-.5-.5H3c-.3 0-.5.2-.5.5v9c0 .3.2.5.5.5h9c.3 0 .5-.2.5-.5V6.2z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-checkbox-group" xmlns="http://www.w3.org/2000/svg"><path d="M0 1h16V0H0v1zm0 2h16V2H0v1zm6 2v1h9V5H6zm9 9v-1H6v1h9zm-9-4h9V9H6v1zm-2 2l-2.5 1.5L0 13l1.5 2L4 12zm0-4L1.5 9.5 0 9l1.5 2L4 8zm0-4L1.5 5.5 0 5l1.5 2L4 4z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-columns" xmlns="http://www.w3.org/2000/svg"><path d="M16 .5a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v15a.5.5 0 00.5.5h15a.5.5 0 00.5-.5V.5zM15 1v14h-4V1h4zm-5 0v14H6V1h4zM5 1v14H1V1h4z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 32 32" id="f-i-copy" xmlns="http://www.w3.org/2000/svg"><path d="M20 8V0H6L0 6v18h12v8h20V8H20zM6 2.828V6H2.828L6 2.828zM2 22V8h6V2h10v6l-6 6v8H2zm16-11.172V14h-3.172L18 10.828zM30 30H14V16h6v-6h10v20z"/></symbol><symbol viewBox="0 0 15 15" id="f-i-divider" xmlns="http://www.w3.org/2000/svg"><path d="M0 7h15v1H0z"/></symbol><symbol viewBox="0 0 28 32" id="f-i-edit" xmlns="http://www.w3.org/2000/svg"><path d="M22 2l-4 4 6 6 4-4-6-6zM0 24l.021 6.018L6 30l16-16-6-6L0 24zm6 4H2v-4h2v2h2v2z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-floppy-disk" xmlns="http://www.w3.org/2000/svg"><path d="M28 0H0v32h32V4l-4-4zM16 4h4v8h-4V4zm12 24H4V4h2v10h18V4h2.343L28 5.657V28z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-handle" xmlns="http://www.w3.org/2000/svg"><path d="M2 5h2v2H2zM7 5h2v2H7zM12 5h2v2h-2z"/><g><path d="M2 9h2v2H2zM7 9h2v2H7zM12 9h2v2h-2z"/></g></symbol><symbol viewBox="0 0 448 512" id="f-i-hash" xmlns="http://www.w3.org/2000/svg"><path d="M448 192v-64h-80.064l16-128h-64l-16 128H175.968l16-128h-64l-16 128H0v64h103.968L88 320H0v64h80L64 512h64l16-128h127.968l-16 128H320l16-128h112v-64H344l15.936-128H448zM279.968 320H152l15.968-128h127.968l-15.968 128z"/></symbol><symbol viewBox="0 0 28 28" id="f-i-header" xmlns="http://www.w3.org/2000/svg"><path d="M26.281 26q-.688 0-2.07-.055t-2.086-.055q-.688 0-2.063.055T17.999 26q-.375 0-.578-.32t-.203-.711q0-.484.266-.719t.609-.266.797-.109.703-.234q.516-.328.516-2.188l-.016-6.109q0-.328-.016-.484-.203-.063-.781-.063H8.749q-.594 0-.797.063-.016.156-.016.484l-.016 5.797q0 2.219.578 2.562.25.156.75.203t.891.055.703.234.313.711q0 .406-.195.75t-.57.344q-.734 0-2.18-.055t-2.164-.055q-.672 0-2 .055T2.062 26q-.359 0-.555-.328t-.195-.703q0-.469.242-.703t.562-.273.742-.117.656-.234q.516-.359.516-2.234l-.016-.891V7.814l.008-.406q.008-.359 0-.57t-.023-.602-.055-.656-.102-.57-.172-.492-.25-.281q-.234-.156-.703-.187t-.828-.031-.641-.219-.281-.703q0-.406.187-.75t.562-.344q.719 0 2.164.055t2.164.055q.656 0 1.977-.055t1.977-.055q.391 0 .586.344t.195.75q0 .469-.266.68t-.602.227-.773.063-.672.203q-.547.328-.547 2.5l.016 5q0 .328.016.5.203.047.609.047h10.922q.391 0 .594-.047.016-.172.016-.5l.016-5q0-2.172-.547-2.5-.281-.172-.914-.195t-1.031-.203-.398-.773q0-.406.195-.75t.586-.344q.688 0 2.063.055t2.063.055q.672 0 2.016-.055t2.016-.055q.391 0 .586.344t.195.75q0 .469-.273.688t-.625.227-.805.047-.688.195Q24 4.615 24 6.772l.016 14.734q0 1.859.531 2.188.25.156.719.211t.836.07.648.242.281.695q0 .406-.187.75t-.562.344z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-hidden" xmlns="http://www.w3.org/2000/svg"><path d="M1 5h1V4H1zM3 5h1V4H3zM5 5h1V4H5zM7 5h1V4H7zM9 5h1V4H9zM11 5h1V4h-1zM13 5h1V4h-1zM0 6h1V5H0zM15 7h1V6h-1zM0 8h1V7H0zM15 9h1V8h-1zM0 10h1V9H0zM15 11h1v-1h-1zM2 12h1v-1H2zM4 12h1v-1H4zM6 12h1v-1H6zM8 12h1v-1H8zM10 12h1v-1h-1zM12 12h1v-1h-1zM14 12h1v-1h-1zM15 5h1V4h-1zM0 12h1v-1H0z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 384 512" id="f-i-menu" xmlns="http://www.w3.org/2000/svg"><path d="M0 96v64h384V96H0zm0 192h384v-64H0v64zm0 128h384v-64H0v64z"/></symbol><symbol viewBox="0 0 16 32" id="f-i-minus" xmlns="http://www.w3.org/2000/svg"><path d="M0 14v4h16v-4H0z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move" xmlns="http://www.w3.org/2000/svg"><path d="M287.744 94.736v129.008h128v-64L512 256l-96.256 96.24v-65.488h-128V415.76h64.496L256 512l-96.256-96.24h64V286.752h-128v64.992L0 256l95.744-95.744v63.488h128V94.736h-62.496L256 0l94.752 94.736h-63.008z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move-vertical" xmlns="http://www.w3.org/2000/svg"><path d="M287.744 94.736V415.76h64.496L256 512l-96.256-96.24h64V94.736h-62.496L256 0l94.752 94.736z"/></symbol><symbol viewBox="0 0 20 28" id="f-i-paragraph" xmlns="http://www.w3.org/2000/svg"><path d="M19.969 2.953v1.141q0 .453-.289.953t-.664.5q-.781 0-.844.016-.406.094-.5.484-.047.172-.047 1v18q0 .391-.281.672t-.672.281h-1.687q-.391 0-.672-.281t-.281-.672V6.016h-2.234v19.031q0 .391-.273.672t-.68.281H9.158q-.406 0-.68-.281t-.273-.672v-7.75q-2.297-.187-3.828-.922-1.969-.906-3-2.797-1-1.828-1-4.047 0-2.594 1.375-4.469 1.375-1.844 3.266-2.484Q6.752 2 11.534 2h7.484q.391 0 .672.281t.281.672z"/></symbol><symbol viewBox="0 0 578.106 578.106" id="f-i-phone-receiver" xmlns="http://www.w3.org/2000/svg"><path d="M577.83 456.128c1.225 9.385-1.635 17.545-8.568 24.48l-81.396 80.781c-3.672 4.08-8.465 7.551-14.381 10.404-5.916 2.857-11.729 4.693-17.439 5.508-.408 0-1.635.105-3.676.309-2.037.203-4.689.307-7.953.307-7.754 0-20.301-1.326-37.641-3.979s-38.555-9.182-63.645-19.584c-25.096-10.404-53.553-26.012-85.376-46.818-31.823-20.805-65.688-49.367-101.592-85.68-28.56-28.152-52.224-55.08-70.992-80.783-18.768-25.705-33.864-49.471-45.288-71.299-11.425-21.828-19.993-41.616-25.705-59.364S4.59 177.362 2.55 164.51-.306 141.56.102 134.216c.408-7.344.612-11.424.612-12.24.816-5.712 2.652-11.526 5.508-17.442s6.324-10.71 10.404-14.382L98.022 8.756c5.712-5.712 12.24-8.568 19.584-8.568 5.304 0 9.996 1.53 14.076 4.59s7.548 6.834 10.404 11.322l65.484 124.236c3.672 6.528 4.692 13.668 3.06 21.42-1.632 7.752-5.1 14.28-10.404 19.584l-29.988 29.988c-.816.816-1.53 2.142-2.142 3.978s-.918 3.366-.918 4.59c1.632 8.568 5.304 18.36 11.016 29.376 4.896 9.792 12.444 21.726 22.644 35.802s24.684 30.293 43.452 48.653c18.36 18.77 34.68 33.354 48.96 43.76 14.277 10.4 26.215 18.053 35.803 22.949 9.588 4.896 16.932 7.854 22.031 8.871l7.648 1.531c.816 0 2.145-.307 3.979-.918 1.836-.613 3.162-1.326 3.979-2.143l34.883-35.496c7.348-6.527 15.912-9.791 25.705-9.791 6.938 0 12.443 1.223 16.523 3.672h.611l118.115 69.768c8.571 5.308 13.67 12.038 15.303 20.198z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-radio-group" xmlns="http://www.w3.org/2000/svg"><path d="M0 1h16V0H0v1zm0 2h16V2H0v1zm5 3h10V5H5v1zm10 3H5v1h10V9zm0 5v-1H5v1h10zM1.5 7C.7 7 0 6.3 0 5.5S.7 4 1.5 4 3 4.7 3 5.5 2.3 7 1.5 7zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5zm0 6.1c-.8 0-1.5-.7-1.5-1.5s.7-1.5 1.5-1.5S3 8.7 3 9.6s-.7 1.5-1.5 1.5zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.3.5-.5-.2-.5-.5-.5zm0 5.9C.7 15 0 14.3 0 13.5S.7 12 1.5 12s1.5.7 1.5 1.5S2.3 15 1.5 15zm0-2c-.3 0-.5.2-.5.5s.2.5.5.5.5-.2.5-.5-.2-.5-.5-.5z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-remove" xmlns="http://www.w3.org/2000/svg"><path d="M44.491 106.237l61.746-61.746L467.51 405.763l-61.746 61.746z"/><path d="M405.763 44.491l61.746 61.746L106.237 467.51l-61.746-61.746z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-rich-text" xmlns="http://www.w3.org/2000/svg"><path d="M15 1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1V2c0-.6-.4-1-1-1zM1 3.1h.8v.3H1v-.3zm0 .5h.8v.3H1v-.3zM15 14H1V5.1h14V14zm0-9.1H1v-.3h14v.3zm0-.5H1v-.3h.8v.2h1.5v-.2h1.3v.2H6v-.2h1.3v.2h1.5v-.2H10v.2h1.5v-.2h1.3v.2h1.5v-.2h.7v.3zM4.5 3.6v.3H3.3v-.3h1.2zm-1.2-.2v-.3h1.3v.3H3.3zm4 .2v.3H6v-.3h1.3zM6 3.4v-.3h1.3v.3H6zm4 .2v.3H8.8v-.3H10zm-1.2-.2v-.3H10v.3H8.8zm4 .2v.3h-1.3v-.3h1.3zm-1.3-.2v-.3h1.3v.3h-1.3zm3.5.5h-.8v-.3h.8v.3zm0-.5h-.8v-.3h.8v.3zm0-.5h-.8v-.1h-1.5V3h-1.3v-.2H10V3H8.8v-.2H7.3V3H6v-.2H4.5V3H3.3v-.2H1.8V3H1v-.4h14v.3zm0-.5H1v-.3h14v.3zM3 12v-1h10v1H3zm10-2H3V9h10v1zm-2-2H3V7h8v1z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-rows" xmlns="http://www.w3.org/2000/svg"><path d="M15.5 16a.5.5 0 00.5-.5V.5a.5.5 0 00-.5-.5H.5a.5.5 0 00-.5.5v4.964A.5.5 0 000 5.5v4.965a.5.5 0 000 .035v5a.5.5 0 00.5.5h15zm-.5-1H1v-4h14v4zm0-5H1V6h14v4zm0-5H1V1h14v4z" color="#000" font-weight="400" font-family="sans-serif" overflow="visible"/></symbol><symbol viewBox="0 0 16 16" id="f-i-select" xmlns="http://www.w3.org/2000/svg"><path d="M0 0v14c0 .6.4 1 1 1h10c.6 0 1-.4 1-1V5h4V0H0zm1 1h10v3H1V1zm0 6h10v3H1V7zm0 7v-3h10v3H1zM15 4h-3V1h3v3zM2 2h1v1H2V2zm0 10h1v1H2v-1zm2 0h1v1H4v-1zm2 0h1v1H6v-1zm3 0v1H8v-1h1zM2 8h1v1H2V8zm2 0h1v1H4V8zm2 0h1v1H6V8zm7.5-4.9l-1-1.1h1.9l-.9 1.1zM2 6V5h1v1H2zm2 0V5h1v1H4z"/></symbol><symbol viewBox="0 0 448 512" id="f-i-settings" xmlns="http://www.w3.org/2000/svg"><path d="M223.969 175C179.266 175 143 211.266 143 256c0 44.688 36.266 81.031 80.969 81.031 44.719 0 80.719-36.344 80.719-81.031 0-44.734-36-81-80.719-81zm162.344 127.531l-14.594 35.156 29.469 57.875-36.094 36.094-59.218-27.969-35.156 14.438-17.844 54.625-2.281 7.25h-51.016l-22.078-61.656-35.156-14.5-57.952 29.344-36.078-36.063 27.938-59.25-14.484-35.125L.002 282.594V231.61l61.703-22.109 14.485-35.094-25.953-51.234-3.422-6.719 36.031-36.031 59.297 27.922 35.109-14.516 17.828-54.594 2.297-7.234h51l22.094 61.734 35.063 14.516 58.031-29.406 36.063 36.031-27.938 59.203 14.438 35.172 61.875 20.125v50.969l-61.688 22.187z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-text-input" xmlns="http://www.w3.org/2000/svg"><path d="M15 4H4.5V3H6V2H2v1h1.5v1H1c-.6 0-1 .5-1 1v6c0 .6.4 1 1 1h2.5v1H2v1h4v-1H4.5v-1H15c.6 0 1-.4 1-1V5c0-.5-.4-1-1-1zM1 11V5h2.5v6H1zm14 0H4.5V5H15v6z"/></symbol><symbol viewBox="0 0 16 16" id="f-i-textarea" xmlns="http://www.w3.org/2000/svg"><path d="M3 11v-1h8v1H3zm0-4h10V6H3v1zm0 1v1h10V8H3zm10-4H3v1h10V4zm3 10V2c0-.6-.4-1-1-1H1c-.6 0-1 .4-1 1v12c0 .6.4 1 1 1h14c.6 0 1-.4 1-1zM15 2v12H1V2h14z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-down" xmlns="http://www.w3.org/2000/svg"><path d="M0 12l11.992 11.992L23.984 12H0z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-left" xmlns="http://www.w3.org/2000/svg"><path d="M0 15.996l11.992 11.992V4.004L0 15.996z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-right" xmlns="http://www.w3.org/2000/svg"><path d="M.002 4.008L11.994 16 .002 27.992V4.008z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-up" xmlns="http://www.w3.org/2000/svg"><path d="M11.992 8L0 19.992h23.984L11.992 8z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-upload" xmlns="http://www.w3.org/2000/svg"><path d="M240 352H0v128h480V352H240zm208 64h-64v-32h64v32zM112 160L240 32l128 128h-80v160h-96V160z"/></symbol></svg>')),t.push(i.a.init(Object.assign({},this.opts.i18n,{locale:m.l.get(c.G)}))),Promise.all(t)},o.init=function(){var e=this,n=this;this.load(this.userFormData,n.opts),this.controls=a.a.init(n.opts.controls,n.opts.stickyControls),n.formId=v.e.get("id"),this.i18n={setLang:function(t){m.l.set(c.G,t),i.a.setCurrent(t).then(function(){e.controls=a.a.init(n.opts.controls),n.render()},console.error)}},n.render()},o.load=function(t,e){return void 0===t&&(t=this.userFormData),void 0===e&&(e=this.opts),this.Components.load(t,e)},o.render=function(){var t=document.createElement("script");t.src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.js",document.head.appendChild(t),this.stages=Object.values(v.e.get("stages")),this.opts.controlOnLeft&&this.stages.forEach(function(t){t.dom.style.order=1});var e={attrs:{className:"formeo formeo-editor",id:this.formId},content:[this.stages.map(function(t){return t.dom})]};i.a.current.dir&&(e.attrs.dir=i.a.current.dir,f.a.dir=i.a.current.dir),this.editor=f.a.create(e),(this.controls.container||this.editor).appendChild(this.controls.dom),this.editorContainer&&(f.a.empty(this.editorContainer),this.editorContainer.appendChild(this.editor)),p.a.formeoLoaded=new window.CustomEvent("formeoLoaded",{detail:{formeo:this}}),document.dispatchEvent(p.a.formeoLoaded)},e=t,(n=[{key:"formData",get:function(){return this.Components.formData},set:function(t){return void 0===t&&(t={}),this.load(b({},this.userFormData,{},t),this.opts)}},{key:"json",get:function(){return this.Components.json}}])&&d(e.prototype,n),r&&d(e,r),t}();e.a=w},function(n,t,e){(function(t){var e="object"==typeof t&&t&&t.Object===Object&&t;n.exports=e}).call(this,e(106))},function(t,e){var n=Function.prototype.toString;t.exports=function(t){if(null!=t){try{return n.call(t)}catch(t){}try{return t+""}catch(t){}}return""}},function(t,e,n){var r=n(45),o=n(22);t.exports=function(t,e,n){(void 0===n||o(t[e],n))&&(void 0!==n||e in t)||r(t,e,n)}},function(t,e,n){var r=n(18),o=function(){try{var t=r(Object,"defineProperty");return t({},"",{}),t}catch(t){}}();t.exports=o},function(t,a,s){(function(t){var e=s(10),n=a&&!a.nodeType&&a,r=n&&"object"==typeof t&&t&&!t.nodeType&&t,o=r&&r.exports===n?e.Buffer:void 0,i=o?o.allocUnsafe:void 0;t.exports=function(t,e){if(e)return t.slice();var n=t.length,r=i?i(n):new t.constructor(n);return t.copy(r),r}}).call(this,s(46)(t))},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)}},function(t,e,n){var r=n(10).Uint8Array;t.exports=r},function(t,e){t.exports=function(t,e){var n=-1,r=t.length;for(e||(e=Array(r));++n<r;)e[n]=t[n];return e}},function(t,e,n){var r=n(127),o=n(48),i=n(49);t.exports=function(t){return"function"!=typeof t.constructor||i(t)?{}:r(o(t))}},function(t,e){t.exports=function(e,n){return function(t){return e(n(t))}}},function(t,e,n){var r=n(128),o=n(15),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,c=r(function(){return arguments}())?r:function(t){return o(t)&&a.call(t,"callee")&&!s.call(t,"callee")};t.exports=c},function(t,e){t.exports=function(t){return"number"==typeof t&&-1<t&&t%1==0&&t<=9007199254740991}},function(t,e){t.exports=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]}},function(t,e,n){var u=n(134),d=n(72),f=n(17),p=n(34),h=n(54),v=n(50),m=Object.prototype.hasOwnProperty;t.exports=function(t,e){var n=f(t),r=!n&&d(t),o=!n&&!r&&p(t),i=!n&&!r&&!o&&v(t),a=n||r||o||i,s=a?u(t.length,String):[],c=s.length;for(var l in t)!e&&!m.call(t,l)||a&&("length"==l||o&&("offset"==l||"parent"==l)||i&&("buffer"==l||"byteLength"==l||"byteOffset"==l)||h(l,c))||s.push(l);return s}},function(t,e,n){var r=n(17),o=n(147),i=n(148),a=n(25);t.exports=function(t,e){return r(t)?t:o(t,e)?[t]:i(a(t))}},function(t,e,n){var r=n(36);t.exports=function(t){if("string"==typeof t||r(t))return t;var e=t+"";return"0"==e&&1/t==-1/0?"-0":e}},function(t,e,n){var r=n(155)("toUpperCase");t.exports=r},function(t,e){var n=RegExp("[\\u200d\\ud800-\\udfff\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff\\ufe0e\\ufe0f]");t.exports=function(t){return n.test(t)}},function(t,e,n){var m=n(174),g=n(177),b=n(178);t.exports=function(t,e,n,r,o,i){var a=1&n,s=t.length,c=e.length;if(s!=c&&!(a&&s<c))return!1;var l=i.get(t);if(l&&i.get(e))return l==e;var u=-1,d=!0,f=2&n?new m:void 0;for(i.set(t,e),i.set(e,t);++u<s;){var p=t[u],h=e[u];if(r)var v=a?r(h,p,u,e,t,i):r(p,h,u,t,e,i);if(void 0!==v){if(v)continue;d=!1;break}if(f){if(!g(e,function(t,e){if(!b(f,e)&&(p===t||o(p,t,n,r,i)))return f.push(e)})){d=!1;break}}else if(p!==h&&!o(p,h,n,r,i)){d=!1;break}}return i.delete(t),i.delete(e),d}},function(t,e,n){var r=n(82),o=n(56),i=n(57);t.exports=function(t){return r(t,i,o)}},function(t,e,n){var o=n(83),i=n(17);t.exports=function(t,e,n){var r=e(t);return i(t)?r:o(r,n(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=e.length,o=t.length;++n<r;)t[o+n]=e[n];return t}},function(t,e){t.exports=function(){return[]}},function(t,e,n){var r=n(83),o=n(48),i=n(56),a=n(84),s=Object.getOwnPropertySymbols?function(t){for(var e=[];t;)r(e,i(t)),t=o(t);return e}:a;t.exports=s},function(t,e,n){var o=n(94),r=n(137)(function(t,e,n,r){o(t,e,n,r)});t.exports=r},function(t,e,n){var r=n(146);t.exports=function(t,e,n){return null==t?t:r(t,e,n)}},function(t,e,n){var o=n(153);t.exports=function(t,e,n){var r=null==t?void 0:o(t,e);return void 0===r?n:r}},function(t,e,n){var r=n(154),o=n(55)(function(t,e,n){return e=e.toLowerCase(),t+(n?r(e):e)});t.exports=o},function(t,e){t.exports=function(){}},function(t,e,n){},function(t,e){var n="undefined"!=typeof crypto&&crypto.getRandomValues&&crypto.getRandomValues.bind(crypto)||"undefined"!=typeof msCrypto&&"function"==typeof window.msCrypto.getRandomValues&&msCrypto.getRandomValues.bind(msCrypto);if(n){var r=new Uint8Array(16);t.exports=function(){return n(r),r}}else{var o=new Array(16);t.exports=function(){for(var t,e=0;e<16;e++)0==(3&e)&&(t=4294967296*Math.random()),o[e]=t>>>((3&e)<<3)&255;return o}}},function(t,e){for(var o=[],n=0;n<256;++n)o[n]=(n+256).toString(16).substr(1);t.exports=function(t,e){var n=e||0,r=o;return[r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],"-",r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]],r[t[n++]]].join("")}},function(t,e,n){var l=n(41),u=n(64),d=n(124),f=n(126),p=n(9),h=n(35),v=n(74);t.exports=function r(o,i,a,s,c){o!==i&&d(i,function(t,e){if(c||(c=new l),p(t))f(o,i,e,a,r,s,c);else{var n=s?s(v(o,e),t,e+"",o,i,c):void 0;void 0===n&&(n=t),u(o,e,n)}},h)}},function(t,e){t.exports=function(){this.__data__=[],this.size=0}},function(t,e,n){var r=n(30),o=Array.prototype.splice;t.exports=function(t){var e=this.__data__,n=r(e,t);return!(n<0||(n==e.length-1?e.pop():o.call(e,n,1),--this.size,0))}},function(t,e,n){var r=n(30);t.exports=function(t){var e=this.__data__,n=r(e,t);return n<0?void 0:e[n][1]}},function(t,e,n){var r=n(30);t.exports=function(t){return-1<r(this.__data__,t)}},function(t,e,n){var o=n(30);t.exports=function(t,e){var n=this.__data__,r=o(n,t);return r<0?(++this.size,n.push([t,e])):n[r][1]=e,this}},function(t,e,n){var r=n(29);t.exports=function(){this.__data__=new r,this.size=0}},function(t,e){t.exports=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n}},function(t,e){t.exports=function(t){return this.__data__.get(t)}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e,n){var o=n(29),i=n(42),a=n(44);t.exports=function(t,e){var n=this.__data__;if(n instanceof o){var r=n.__data__;if(!i||r.length<199)return r.push([t,e]),this.size=++n.size,this;n=this.__data__=new a(r)}return n.set(t,e),this.size=n.size,this}},function(t,e,n){var r=n(43),o=n(109),i=n(9),a=n(63),s=/^\[object .+?Constructor\]$/,c=Function.prototype,l=Object.prototype,u=c.toString,d=l.hasOwnProperty,f=RegExp("^"+u.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");t.exports=function(t){return!(!i(t)||o(t))&&(r(t)?f:s).test(a(t))}},function(t,e){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(t){"object"==typeof window&&(n=window)}t.exports=n},function(t,e,n){var r=n(23),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=r?r.toStringTag:void 0;t.exports=function(t){var e=i.call(t,s),n=t[s];try{var r=!(t[s]=void 0)}catch(t){}var o=a.call(t);return r&&(e?t[s]=n:delete t[s]),o}},function(t,e){var n=Object.prototype.toString;t.exports=function(t){return n.call(t)}},function(t,e,n){var r,o=n(110),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";t.exports=function(t){return!!i&&i in t}},function(t,e,n){var r=n(10)["__core-js_shared__"];t.exports=r},function(t,e){t.exports=function(t,e){return null==t?void 0:t[e]}},function(t,e,n){var r=n(113),o=n(29),i=n(42);t.exports=function(){this.size=0,this.__data__={hash:new r,map:new(i||o),string:new r}}},function(t,e,n){var r=n(114),o=n(115),i=n(116),a=n(117),s=n(118);function c(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var r=t[e];this.set(r[0],r[1])}}c.prototype.clear=r,c.prototype.delete=o,c.prototype.get=i,c.prototype.has=a,c.prototype.set=s,t.exports=c},function(t,e,n){var r=n(31);t.exports=function(){this.__data__=r?r(null):{},this.size=0}},function(t,e){t.exports=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e}},function(t,e,n){var r=n(31),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;if(r){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return o.call(e,t)?e[t]:void 0}},function(t,e,n){var r=n(31),o=Object.prototype.hasOwnProperty;t.exports=function(t){var e=this.__data__;return r?void 0!==e[t]:o.call(e,t)}},function(t,e,n){var r=n(31);t.exports=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=r&&void 0===e?"__lodash_hash_undefined__":e,this}},function(t,e,n){var r=n(32);t.exports=function(t){var e=r(this,t).delete(t);return this.size-=e?1:0,e}},function(t,e){t.exports=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t}},function(t,e,n){var r=n(32);t.exports=function(t){return r(this,t).get(t)}},function(t,e,n){var r=n(32);t.exports=function(t){return r(this,t).has(t)}},function(t,e,n){var o=n(32);t.exports=function(t,e){var n=o(this,t),r=n.size;return n.set(t,e),this.size+=n.size==r?0:1,this}},function(t,e,n){var r=n(125)();t.exports=r},function(t,e){t.exports=function(c){return function(t,e,n){for(var r=-1,o=Object(t),i=n(t),a=i.length;a--;){var s=i[c?a:++r];if(!1===e(o[s],s,o))break}return t}}},function(t,e,n){var v=n(64),m=n(66),g=n(67),b=n(69),y=n(70),w=n(72),O=n(17),x=n(129),j=n(34),E=n(43),C=n(9),S=n(131),_=n(50),P=n(74),A=n(133);t.exports=function(t,e,n,r,o,i,a){var s=P(t,n),c=P(e,n),l=a.get(c);if(l)v(t,n,l);else{var u=i?i(s,c,n+"",t,e,a):void 0,d=void 0===u;if(d){var f=O(c),p=!f&&j(c),h=!f&&!p&&_(c);u=c,f||p||h?u=O(s)?s:x(s)?b(s):p?m(c,!(d=!1)):h?g(c,!(d=!1)):[]:S(c)||w(c)?w(u=s)?u=A(s):C(s)&&!E(s)||(u=y(c)):d=!1}d&&(a.set(c,u),o(u,c,r,i,a),a.delete(c)),v(t,n,u)}}},function(t,e,n){var r=n(9),o=Object.create,i=function(){function n(){}return function(t){if(!r(t))return{};if(o)return o(t);n.prototype=t;var e=new n;return n.prototype=void 0,e}}();t.exports=i},function(t,e,n){var r=n(20),o=n(15);t.exports=function(t){return o(t)&&"[object Arguments]"==r(t)}},function(t,e,n){var r=n(33),o=n(15);t.exports=function(t){return o(t)&&r(t)}},function(t,e){t.exports=function(){return!1}},function(t,e,n){var r=n(20),o=n(48),i=n(15),a=Function.prototype,s=Object.prototype,c=a.toString,l=s.hasOwnProperty,u=c.call(Object);t.exports=function(t){if(!i(t)||"[object Object]"!=r(t))return!1;var e=o(t);if(null===e)return!0;var n=l.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&c.call(n)==u}},function(t,e,n){var r=n(20),o=n(73),i=n(15),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,t.exports=function(t){return i(t)&&o(t.length)&&!!a[r(t)]}},function(t,e,n){var r=n(24),o=n(35);t.exports=function(t){return r(t,o(t))}},function(t,e){t.exports=function(t,e){for(var n=-1,r=Array(t);++n<t;)r[n]=e(n);return r}},function(t,e,n){var o=n(9),i=n(49),a=n(136),s=Object.prototype.hasOwnProperty;t.exports=function(t){if(!o(t))return a(t);var e=i(t),n=[];for(var r in t)("constructor"!=r||!e&&s.call(t,r))&&n.push(r);return n}},function(t,e){t.exports=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e}},function(t,e,n){var r=n(138),c=n(145);t.exports=function(s){return r(function(t,e){var n=-1,r=e.length,o=1<r?e[r-1]:void 0,i=2<r?e[2]:void 0;for(o=3<s.length&&"function"==typeof o?(r--,o):void 0,i&&c(e[0],e[1],i)&&(o=r<3?void 0:o,r=1),t=Object(t);++n<r;){var a=e[n];a&&s(t,a,n,o)}return t})}},function(t,e,n){var r=n(12),o=n(139),i=n(141);t.exports=function(t,e){return i(o(t,e,r),t+"")}},function(t,e,n){var c=n(140),l=Math.max;t.exports=function(i,a,s){return a=l(void 0===a?i.length-1:a,0),function(){for(var t=arguments,e=-1,n=l(t.length-a,0),r=Array(n);++e<n;)r[e]=t[a+e];e=-1;for(var o=Array(a+1);++e<a;)o[e]=t[e];return o[a]=s(r),c(i,this,o)}}},function(t,e){t.exports=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)}},function(t,e,n){var r=n(142),o=n(144)(r);t.exports=o},function(t,e,n){var r=n(143),o=n(65),i=n(12),a=o?function(t,e){return o(t,"toString",{configurable:!0,enumerable:!1,value:r(e),writable:!0})}:i;t.exports=a},function(t,e){t.exports=function(t){return function(){return t}}},function(t,e){var i=Date.now;t.exports=function(n){var r=0,o=0;return function(){var t=i(),e=16-(t-o);if(o=t,0<e){if(800<=++r)return arguments[0]}else r=0;return n.apply(void 0,arguments)}}},function(t,e,n){var o=n(22),i=n(33),a=n(54),s=n(9);t.exports=function(t,e,n){if(!s(n))return!1;var r=typeof e;return!!("number"==r?i(n)&&a(e,n.length):"string"==r&&e in n)&&o(n[e],t)}},function(t,e,n){var d=n(53),f=n(76),p=n(54),h=n(9),v=n(77);t.exports=function(t,e,n,r){if(!h(t))return t;for(var o=-1,i=(e=f(e,t)).length,a=i-1,s=t;null!=s&&++o<i;){var c=v(e[o]),l=n;if(o!=a){var u=s[c];void 0===(l=r?r(u,c,s):void 0)&&(l=h(u)?u:p(e[o+1])?[]:{})}d(s,c,l),s=s[c]}return t}},function(t,e,n){var r=n(17),o=n(36),i=/\.|\[(?:[^[\]]*|(["'])(?:(?!\1)[^\\]|\\.)*?\1)\]/,a=/^\w*$/;t.exports=function(t,e){if(r(t))return!1;var n=typeof t;return!("number"!=n&&"symbol"!=n&&"boolean"!=n&&null!=t&&!o(t))||a.test(t)||!i.test(t)||null!=e&&t in Object(e)}},function(t,e,n){var r=n(149),i=/[^.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|$))/g,a=/\\(\\)?/g,o=r(function(t){var o=[];return 46===t.charCodeAt(0)&&o.push(""),t.replace(i,function(t,e,n,r){o.push(n?r.replace(a,"$1"):e||t)}),o});t.exports=o},function(t,e,n){var r=n(150);t.exports=function(t){var e=r(t,function(t){return 500===n.size&&n.clear(),t}),n=e.cache;return e}},function(t,e,n){var r=n(44),s="Expected a function";function c(o,i){if("function"!=typeof o||null!=i&&"function"!=typeof i)throw new TypeError(s);var a=function(){var t=arguments,e=i?i.apply(this,t):t[0],n=a.cache;if(n.has(e))return n.get(e);var r=o.apply(this,t);return a.cache=n.set(e,r)||n,r};return a.cache=new(c.Cache||r),a}c.Cache=r,t.exports=c},function(t,e,n){var r=n(23),o=n(152),i=n(17),a=n(36),s=1/0,c=r?r.prototype:void 0,l=c?c.toString:void 0;t.exports=function t(e){if("string"==typeof e)return e;if(i(e))return o(e,t)+"";if(a(e))return l?l.call(e):"";var n=e+"";return"0"==n&&1/e==-s?"-0":n}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=Array(r);++n<r;)o[n]=e(t[n],n,t);return o}},function(t,e,n){var o=n(76),i=n(77);t.exports=function(t,e){for(var n=0,r=(e=o(e,t)).length;null!=t&&n<r;)t=t[i(e[n++])];return n&&n==r?t:void 0}},function(t,e,n){var r=n(25),o=n(78);t.exports=function(t){return o(r(t).toLowerCase())}},function(t,e,n){var i=n(156),a=n(79),s=n(158),c=n(25);t.exports=function(o){return function(t){t=c(t);var e=a(t)?s(t):void 0,n=e?e[0]:t.charAt(0),r=e?i(e,1).join(""):t.slice(1);return n[o]()+r}}},function(t,e,n){var o=n(157);t.exports=function(t,e,n){var r=t.length;return n=void 0===n?r:n,!e&&r<=n?t:o(t,e,n)}},function(t,e){t.exports=function(t,e,n){var r=-1,o=t.length;e<0&&(e=o<-e?0:o+e),(n=o<n?o:n)<0&&(n+=o),o=n<e?0:n-e>>>0,e>>>=0;for(var i=Array(o);++r<o;)i[r]=t[r+e];return i}},function(t,e,n){var r=n(159),o=n(79),i=n(160);t.exports=function(t){return o(t)?i(t):r(t)}},function(t,e){t.exports=function(t){return t.split("")}},function(t,e){var n="\\ud800-\\udfff",r="["+n+"]",o="[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]",i="\\ud83c[\\udffb-\\udfff]",a="[^"+n+"]",s="(?:\\ud83c[\\udde6-\\uddff]){2}",c="[\\ud800-\\udbff][\\udc00-\\udfff]",l="(?:"+o+"|"+i+")"+"?",u="[\\ufe0e\\ufe0f]?",d=u+l+("(?:\\u200d(?:"+[a,s,c].join("|")+")"+u+l+")*"),f="(?:"+[a+o+"?",o,s,c,r].join("|")+")",p=RegExp(i+"(?="+i+")|"+f+d,"g");t.exports=function(t){return t.match(p)||[]}},function(t,e){t.exports=function(t,e,n,r){var o=-1,i=null==t?0:t.length;for(r&&i&&(n=t[++o]);++o<i;)n=e(n,t[o],o,t);return n}},function(t,e,n){var r=n(163),o=n(25),i=/[\xc0-\xd6\xd8-\xf6\xf8-\xff\u0100-\u017f]/g,a=RegExp("[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]","g");t.exports=function(t){return(t=o(t))&&t.replace(i,r).replace(a,"")}},function(t,e,n){var r=n(164)({"À":"A","Á":"A","Â":"A","Ã":"A","Ä":"A","Å":"A","à":"a","á":"a","â":"a","ã":"a","ä":"a","å":"a","Ç":"C","ç":"c","Ð":"D","ð":"d","È":"E","É":"E","Ê":"E","Ë":"E","è":"e","é":"e","ê":"e","ë":"e","Ì":"I","Í":"I","Î":"I","Ï":"I","ì":"i","í":"i","î":"i","ï":"i","Ñ":"N","ñ":"n","Ò":"O","Ó":"O","Ô":"O","Õ":"O","Ö":"O","Ø":"O","ò":"o","ó":"o","ô":"o","õ":"o","ö":"o","ø":"o","Ù":"U","Ú":"U","Û":"U","Ü":"U","ù":"u","ú":"u","û":"u","ü":"u","Ý":"Y","ý":"y","ÿ":"y","Æ":"Ae","æ":"ae","Þ":"Th","þ":"th","ß":"ss","Ā":"A","Ă":"A","Ą":"A","ā":"a","ă":"a","ą":"a","Ć":"C","Ĉ":"C","Ċ":"C","Č":"C","ć":"c","ĉ":"c","ċ":"c","č":"c","Ď":"D","Đ":"D","ď":"d","đ":"d","Ē":"E","Ĕ":"E","Ė":"E","Ę":"E","Ě":"E","ē":"e","ĕ":"e","ė":"e","ę":"e","ě":"e","Ĝ":"G","Ğ":"G","Ġ":"G","Ģ":"G","ĝ":"g","ğ":"g","ġ":"g","ģ":"g","Ĥ":"H","Ħ":"H","ĥ":"h","ħ":"h","Ĩ":"I","Ī":"I","Ĭ":"I","Į":"I","İ":"I","ĩ":"i","ī":"i","ĭ":"i","į":"i","ı":"i","Ĵ":"J","ĵ":"j","Ķ":"K","ķ":"k","ĸ":"k","Ĺ":"L","Ļ":"L","Ľ":"L","Ŀ":"L","Ł":"L","ĺ":"l","ļ":"l","ľ":"l","ŀ":"l","ł":"l","Ń":"N","Ņ":"N","Ň":"N","Ŋ":"N","ń":"n","ņ":"n","ň":"n","ŋ":"n","Ō":"O","Ŏ":"O","Ő":"O","ō":"o","ŏ":"o","ő":"o","Ŕ":"R","Ŗ":"R","Ř":"R","ŕ":"r","ŗ":"r","ř":"r","Ś":"S","Ŝ":"S","Ş":"S","Š":"S","ś":"s","ŝ":"s","ş":"s","š":"s","Ţ":"T","Ť":"T","Ŧ":"T","ţ":"t","ť":"t","ŧ":"t","Ũ":"U","Ū":"U","Ŭ":"U","Ů":"U","Ű":"U","Ų":"U","ũ":"u","ū":"u","ŭ":"u","ů":"u","ű":"u","ų":"u","Ŵ":"W","ŵ":"w","Ŷ":"Y","ŷ":"y","Ÿ":"Y","Ź":"Z","Ż":"Z","Ž":"Z","ź":"z","ż":"z","ž":"z","IJ":"IJ","ij":"ij","Œ":"Oe","œ":"oe","ʼn":"'n","ſ":"s"});t.exports=r},function(t,e){t.exports=function(e){return function(t){return null==e?void 0:e[t]}}},function(t,e,n){var r=n(166),o=n(167),i=n(25),a=n(168);t.exports=function(t,e,n){return t=i(t),void 0===(e=n?void 0:e)?o(t)?a(t):r(t):t.match(e)||[]}},function(t,e){var n=/[^\x00-\x2f\x3a-\x40\x5b-\x60\x7b-\x7f]+/g;t.exports=function(t){return t.match(n)||[]}},function(t,e){var n=/[a-z][A-Z]|[A-Z]{2}[a-z]|[0-9][a-zA-Z]|[a-zA-Z][0-9]|[^a-zA-Z0-9 ]/;t.exports=function(t){return n.test(t)}},function(t,e){var n="\\ud800-\\udfff",r="\\u2700-\\u27bf",o="a-z\\xdf-\\xf6\\xf8-\\xff",i="A-Z\\xc0-\\xd6\\xd8-\\xde",a="\\xac\\xb1\\xd7\\xf7\\x00-\\x2f\\x3a-\\x40\\x5b-\\x60\\x7b-\\xbf\\u2000-\\u206f \\t\\x0b\\f\\xa0\\ufeff\\n\\r\\u2028\\u2029\\u1680\\u180e\\u2000\\u2001\\u2002\\u2003\\u2004\\u2005\\u2006\\u2007\\u2008\\u2009\\u200a\\u202f\\u205f\\u3000",s="["+a+"]",c="\\d+",l="["+r+"]",u="["+o+"]",d="[^"+n+a+c+r+o+i+"]",f="(?:\\ud83c[\\udde6-\\uddff]){2}",p="[\\ud800-\\udbff][\\udc00-\\udfff]",h="["+i+"]",v="(?:"+u+"|"+d+")",m="(?:"+h+"|"+d+")",g="(?:['’](?:d|ll|m|re|s|t|ve))?",b="(?:['’](?:D|LL|M|RE|S|T|VE))?",y="(?:[\\u0300-\\u036f\\ufe20-\\ufe2f\\u20d0-\\u20ff]|\\ud83c[\\udffb-\\udfff])?",w="[\\ufe0e\\ufe0f]?",O=w+y+("(?:\\u200d(?:"+["[^"+n+"]",f,p].join("|")+")"+w+y+")*"),x="(?:"+[l,f,p].join("|")+")"+O,j=RegExp([h+"?"+u+"+"+g+"(?="+[s,h,"$"].join("|")+")",m+"+"+b+"(?="+[s,h+v,"$"].join("|")+")",h+"?"+v+"+"+g,h+"+"+b,"\\d*(?:1ST|2ND|3RD|(?![123])\\dTH)(?=\\b|[a-z_])","\\d*(?:1st|2nd|3rd|(?![123])\\dth)(?=\\b|[A-Z_])",c,x].join("|"),"g");t.exports=function(t){return t.match(j)||[]}},function(t,e,n){var b=n(9),y=n(170),w=n(171),O=Math.max,x=Math.min;t.exports=function(r,o,t){var i,a,s,c,l,u,d=0,f=!1,p=!1,e=!0;if("function"!=typeof r)throw new TypeError("Expected a function");function h(t){var e=i,n=a;return i=a=void 0,d=t,c=r.apply(n,e)}function v(t){var e=t-u;return void 0===u||o<=e||e<0||p&&s<=t-d}function m(){var t,e,n=y();if(v(n))return g(n);l=setTimeout(m,(e=o-((t=n)-u),p?x(e,s-(t-d)):e))}function g(t){return l=void 0,e&&i?h(t):(i=a=void 0,c)}function n(){var t,e=y(),n=v(e);if(i=arguments,a=this,u=e,n){if(void 0===l)return d=t=u,l=setTimeout(m,o),f?h(t):c;if(p)return clearTimeout(l),l=setTimeout(m,o),h(u)}return void 0===l&&(l=setTimeout(m,o)),c}return o=w(o)||0,b(t)&&(f=!!t.leading,s=(p="maxWait"in t)?O(w(t.maxWait)||0,o):s,e="trailing"in t?!!t.trailing:e),n.cancel=function(){void 0!==l&&clearTimeout(l),i=u=a=l=void(d=0)},n.flush=function(){return void 0===l?c:g(y())},n}},function(t,e,n){var r=n(10);t.exports=function(){return r.Date.now()}},function(t,e,n){var r=n(9),o=n(36),i=/^\s+|\s+$/g,a=/^[-+]0x[0-9a-f]+$/i,s=/^0b[01]+$/i,c=/^0o[0-7]+$/i,l=parseInt;t.exports=function(t){if("number"==typeof t)return t;if(o(t))return NaN;if(r(t)){var e="function"==typeof t.valueOf?t.valueOf():t;t=r(e)?e+"":e}if("string"!=typeof t)return 0===t?t:+t;t=t.replace(i,"");var n=s.test(t);return n||c.test(t)?l(t.slice(2),n?2:8):a.test(t)?NaN:+t}},function(t,e,n){var a=n(173),s=n(15);t.exports=function t(e,n,r,o,i){return e===n||(null==e||null==n||!s(e)&&!s(n)?e!=e&&n!=n:a(e,n,r,o,t,i))}},function(t,e,n){var g=n(41),b=n(80),y=n(179),w=n(182),O=n(37),x=n(17),j=n(34),E=n(50),C="[object Arguments]",S="[object Array]",_="[object Object]",P=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,o,i){var a=x(t),s=x(e),c=a?S:O(t),l=s?S:O(e),u=(c=c==C?_:c)==_,d=(l=l==C?_:l)==_,f=c==l;if(f&&j(t)){if(!j(e))return!1;u=!(a=!0)}if(f&&!u)return i||(i=new g),a||E(t)?b(t,e,n,r,o,i):y(t,e,c,n,r,o,i);if(!(1&n)){var p=u&&P.call(t,"__wrapped__"),h=d&&P.call(e,"__wrapped__");if(p||h){var v=p?t.value():t,m=h?e.value():e;return i||(i=new g),o(v,m,n,r,i)}}return!!f&&(i||(i=new g),w(t,e,n,r,o,i))}},function(t,e,n){var r=n(44),o=n(175),i=n(176);function a(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new r;++e<n;)this.add(t[e])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,t.exports=a},function(t,e){t.exports=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this}},function(t,e){t.exports=function(t){return this.__data__.has(t)}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r;)if(e(t[n],n,t))return!0;return!1}},function(t,e){t.exports=function(t,e){return t.has(e)}},function(t,e,n){var r=n(23),d=n(68),f=n(22),p=n(80),h=n(180),v=n(181),o=r?r.prototype:void 0,m=o?o.valueOf:void 0;t.exports=function(t,e,n,r,o,i,a){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!i(new d(t),new d(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return f(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var s=h;case"[object Set]":var c=1&r;if(s||(s=v),t.size!=e.size&&!c)return!1;var l=a.get(t);if(l)return l==e;r|=2,a.set(t,e);var u=p(s(t),s(e),r,o,i,a);return a.delete(t),u;case"[object Symbol]":if(m)return m.call(t)==m.call(e)}return!1}},function(t,e){t.exports=function(t){var n=-1,r=Array(t.size);return t.forEach(function(t,e){r[++n]=[e,t]}),r}},function(t,e){t.exports=function(t){var e=-1,n=Array(t.size);return t.forEach(function(t){n[++e]=t}),n}},function(t,e,n){var y=n(81),w=Object.prototype.hasOwnProperty;t.exports=function(t,e,n,r,o,i){var a=1&n,s=y(t),c=s.length;if(c!=y(e).length&&!a)return!1;for(var l=c;l--;){var u=s[l];if(!(a?u in e:w.call(e,u)))return!1}var d=i.get(t);if(d&&i.get(e))return d==e;var f=!0;i.set(t,e),i.set(e,t);for(var p=a;++l<c;){var h=t[u=s[l]],v=e[u];if(r)var m=a?r(v,h,u,e,t,i):r(h,v,u,t,e,i);if(!(void 0===m?h===v||o(h,v,n,r,i):m)){f=!1;break}p||(p="constructor"==u)}if(f&&!p){var g=t.constructor,b=e.constructor;g!=b&&"constructor"in t&&"constructor"in e&&!("function"==typeof g&&g instanceof g&&"function"==typeof b&&b instanceof b)&&(f=!1)}return i.delete(t),i.delete(e),f}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length,o=0,i=[];++n<r;){var a=t[n];e(a,n,t)&&(i[o++]=a)}return i}},function(t,e,n){var r=n(49),o=n(185),i=Object.prototype.hasOwnProperty;t.exports=function(t){if(!r(t))return o(t);var e=[];for(var n in Object(t))i.call(t,n)&&"constructor"!=n&&e.push(n);return e}},function(t,e,n){var r=n(71)(Object.keys,Object);t.exports=r},function(t,e,n){var r=n(18)(n(10),"DataView");t.exports=r},function(t,e,n){var r=n(18)(n(10),"Promise");t.exports=r},function(t,e,n){var r=n(18)(n(10),"Set");t.exports=r},function(t,e,n){var r=n(18)(n(10),"WeakMap");t.exports=r},function(t,e,n){var g=n(41),b=n(191),y=n(53),w=n(192),O=n(193),x=n(66),j=n(69),E=n(194),C=n(195),S=n(81),_=n(196),P=n(37),A=n(197),D=n(198),N=n(70),k=n(17),T=n(34),z=n(202),L=n(9),M=n(204),H=n(57),R=1,I=2,V=4,B="[object Arguments]",F="[object Function]",q="[object GeneratorFunction]",W="[object Object]",U={};U[B]=U["[object Array]"]=U["[object ArrayBuffer]"]=U["[object DataView]"]=U["[object Boolean]"]=U["[object Date]"]=U["[object Float32Array]"]=U["[object Float64Array]"]=U["[object Int8Array]"]=U["[object Int16Array]"]=U["[object Int32Array]"]=U["[object Map]"]=U["[object Number]"]=U[W]=U["[object RegExp]"]=U["[object Set]"]=U["[object String]"]=U["[object Symbol]"]=U["[object Uint8Array]"]=U["[object Uint8ClampedArray]"]=U["[object Uint16Array]"]=U["[object Uint32Array]"]=!0,U["[object Error]"]=U[F]=U["[object WeakMap]"]=!1,t.exports=function n(r,o,i,t,e,a){var s,c=o&R,l=o&I,u=o&V;if(i&&(s=e?i(r,t,e,a):i(r)),void 0!==s)return s;if(!L(r))return r;var d=k(r);if(d){if(s=A(r),!c)return j(r,s)}else{var f=P(r),p=f==F||f==q;if(T(r))return x(r,c);if(f==W||f==B||p&&!e){if(s=l||p?{}:N(r),!c)return l?C(r,O(s,r)):E(r,w(s,r))}else{if(!U[f])return e?r:{};s=D(r,f,c)}}a||(a=new g);var h=a.get(r);if(h)return h;a.set(r,s),M(r)?r.forEach(function(t){s.add(n(t,o,i,t,r,a))}):z(r)&&r.forEach(function(t,e){s.set(e,n(t,o,i,e,r,a))});var v=u?l?_:S:l?keysIn:H,m=d?void 0:v(r);return b(m||r,function(t,e){m&&(t=r[e=t]),y(s,e,n(t,o,i,e,r,a))}),s}},function(t,e){t.exports=function(t,e){for(var n=-1,r=null==t?0:t.length;++n<r&&!1!==e(t[n],n,t););return t}},function(t,e,n){var r=n(24),o=n(57);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(24),o=n(35);t.exports=function(t,e){return t&&r(e,o(e),t)}},function(t,e,n){var r=n(24),o=n(56);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(24),o=n(85);t.exports=function(t,e){return r(t,o(t),e)}},function(t,e,n){var r=n(82),o=n(85),i=n(35);t.exports=function(t){return r(t,i,o)}},function(t,e){var r=Object.prototype.hasOwnProperty;t.exports=function(t){var e=t.length,n=new t.constructor(e);return e&&"string"==typeof t[0]&&r.call(t,"index")&&(n.index=t.index,n.input=t.input),n}},function(t,e,n){var o=n(47),i=n(199),a=n(200),s=n(201),c=n(67);t.exports=function(t,e,n){var r=t.constructor;switch(e){case"[object ArrayBuffer]":return o(t);case"[object Boolean]":case"[object Date]":return new r(+t);case"[object DataView]":return i(t,n);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return c(t,n);case"[object Map]":return new r;case"[object Number]":case"[object String]":return new r(t);case"[object RegExp]":return a(t);case"[object Set]":return new r;case"[object Symbol]":return s(t)}}},function(t,e,n){var r=n(47);t.exports=function(t,e){var n=e?r(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.byteLength)}},function(t,e){var n=/\w*$/;t.exports=function(t){var e=new t.constructor(t.source,n.exec(t));return e.lastIndex=t.lastIndex,e}},function(t,e,n){var r=n(23),o=r?r.prototype:void 0,i=o?o.valueOf:void 0;t.exports=function(t){return i?Object(i.call(t)):{}}},function(t,e,n){var r=n(203),o=n(51),i=n(52),a=i&&i.isMap,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(37),o=n(15);t.exports=function(t){return o(t)&&"[object Map]"==r(t)}},function(t,e,n){var r=n(205),o=n(51),i=n(52),a=i&&i.isSet,s=a?o(a):r;t.exports=s},function(t,e,n){var r=n(37),o=n(15);t.exports=function(t){return o(t)&&"[object Set]"==r(t)}},function(t,e,n){"use strict";n.r(e),n.d(e,"FormeoEditor",function(){return i}),n.d(e,"FormeoRenderer",function(){return a});var r=n(61),o=n(60);void 0!==window&&(window.FormeoEditor=r.a,window.FormeoRenderer=o.a);var i=r.a,a=o.a;e.default={FormeoEditor:i,FormeoRenderer:a}}])});
|
|
1
|
+
|
|
2
|
+
/**
|
|
3
|
+
formeo - https://formeo.io
|
|
4
|
+
Version: 1.7.1
|
|
5
|
+
Author: Draggable https://draggable.io
|
|
6
|
+
*/
|
|
7
|
+
|
|
8
|
+
!function(t,e){"object"==typeof exports&&"undefined"!=typeof module?e(exports):"function"==typeof define&&define.amd?define(["exports"],e):e((t="undefined"!=typeof globalThis?globalThis:t||self).Formeo={})}(this,(function(t){"use strict";var e=Object.defineProperty,n=(t,n,o)=>((t,n,o)=>n in t?e(t,n,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[n]=o)(t,"symbol"!=typeof n?n+"":n,o);const o={},i=Object.freeze({method:"GET",body:""});const r=(t,e)=>{const n=[];t.on("data",(t=>n.push(t))),t.on("end",(()=>{const o=Buffer.concat(n),i={ok:t.statusCode>=200&&t.statusCode<300,status:t.statusCode,statusText:t.statusMessage,headers:new Map(Object.entries(t.headers)),body:o,arrayBuffer:()=>Promise.resolve(o),json:()=>Promise.resolve(JSON.parse(o.toString()))};e(i)}))},s={extension:".lang",location:"assets/lang/",langs:["en-US"],locale:"en-US",override:{}};class a{constructor(t=s){this.langs=Object.create(null),this.loaded=[],this.processConfig(t)}processConfig(t){const{location:e,...n}={...s,...t},o=e.replace(/\/?$/,"/");this.config={location:o,...n};const{override:i,preloaded:r={}}=this.config,a=Object.entries(this.langs).concat(Object.entries(i||r));this.langs=a.reduce(((t,[e,n])=>(t[e]=this.applyLanguage(e,n),t)),{}),this.locale=this.config.locale||this.config.langs[0]}init(t){return this.processConfig({...this.config,...t}),this.setCurrent(this.locale)}addLanguage(t,e={}){e="string"==typeof e?a.processFile(e):e,this.applyLanguage(t,e),this.config.langs.push("locale")}getValue(t,e=this.locale){var n;return(null==(n=this.langs[e])?void 0:n[t])||this.getFallbackValue(t)}getFallbackValue(t){const e=Object.values(this.langs).find((e=>e[t]));return null==e?void 0:e[t]}makeSafe(t){const e={"{":"\\{","}":"\\}","|":"\\|"};return t=t.replace(/[{}|]/g,(t=>e[t])),new RegExp(t,"g")}put(t,e){return this.current[t]=e,e}get(t,e){const n=this;let o=this.getValue(t);if(!o)return;const i=o.match(/\{[^}]+?\}/g);if(e&&i)if("object"==typeof e)for(const r of i){const t=r.substring(1,r.length-1);o=o.replace(n.makeSafe(r),e[t]||"")}else o=o.replace(/\{[^}]+?\}/g,e);return o}static processFile(t){return a.fromFile(t.replace(/\n\n/g,"\n"))}static fromFile(t){const e=t.split("\n"),n={};for(let o,i=0;i<e.length;i++){o=/^(.+?) *?= *?([^\n]+)/.exec(e[i]),o&&(n[o[1]]=o[2].replace(/(^\s+|\s+$)/g,""))}return n}loadLang(t,e=!0){const n=this;return new Promise((function(s,a){if(-1!==n.loaded.indexOf(t)&&e)return n.applyLanguage(n.langs[t]),s(n.langs[t]);return function(t,e={}){const n={...i,...e},s=(t.startsWith("https"),o);return new Promise(((e,o)=>{const i=s.request(t,n,(t=>{r(t,e)}));i.on("error",(t=>o(new Error(t.message)))),(null==n?void 0:n.body)&&i.write(n.body),i.end()}))}([n.config.location,t,n.config.extension].join("")).then((({data:e})=>{const o=n.processFile(e);return n.applyLanguage(t,o),n.loaded.push(t),s(n.langs[t])})).catch((()=>{const e=n.applyLanguage(t);s(e)}))}))}applyLanguage(t,e={}){const n=this.config.override[t]||{},o=this.langs[t]||{};return this.langs[t]={...o,...e,...n},this.langs[t]}get getLangs(){return this.config.langs}async setCurrent(t="en-US"){return await this.loadLang(t),this.locale=t,this.current=this.langs[t],this.current}}const l=new a,c="formeo",d=[{name:"cssPreload",src:"//cdnjs.cloudflare.com/ajax/libs/loadCSS/2.0.1/cssrelpreload.min.js"},{name:"mutationObserver",src:"//cdn.jsdelivr.net/npm/mutationobserver-shim/dist/mutationobserver.min.js"},{name:"fetch",src:"https://unpkg.com/unfetch/polyfill"}],h="control-group",u=`${c}-stage`,p=`${c}-row`,m=`${c}-column`,g=`${c}-field`,f=new Map([[u,p],[p,m],[m,g]]),v=["external","stages","rows","columns","fields"],b=[{name:"controls",className:h},{name:"stage",className:u},{name:"row",className:p},{name:"column",className:m},{name:"field",className:g}],y={controls:h,stage:u,row:p,column:m,field:g},w=Object.entries(y).reduce(((t,[e,n])=>({...t,[n]:e})),{}),x=Object.values(y),C=new RegExp(`${x.join("|")}`,"g"),E=b.map((({name:t},e,n)=>{const{name:o}=n[e+1]||{};return o&&[t,o]})).filter(Boolean),S=E.slice().map((t=>t.slice().reverse())).reverse(),O=new Map(E),N=new Map(S.slice()),M=new Map([[{value:"100.0",label:"100%"}],[{value:"50.0,50.0",label:"50 | 50"},{value:"33.3,66.6",label:"33 | 66"},{value:"66.6,33.3",label:"66 | 33"}],[{value:"33.3,33.3,33.3",label:"33 | 33 | 33"},{value:"25.0,25.0,50.0",label:"25 | 25 | 50"},{value:"50.0,25.0,25.0",label:"50 | 25 | 25"},{value:"25.0,50.0,25.0",label:"25 | 50 | 25"}],[{value:"25.0,25.0,25.0,25.0",label:"25 | 25 | 25 | 25"}],[{value:"20.0,20.0,20.0,20.0,20.0",label:"20 | 20 | 20 | 20 | 20"}],[{value:"16.66,16.66,16.66,16.66,16.66,16.66",label:"16.66 | 16.66 | 16.66 | 16.66 | 16.66 | 16.66"}]].reduce(((t,e,n)=>(t.push([n,e]),t)))),_=[{type:"added",condition:(t,e)=>Boolean(void 0===t&&e)}],j=`${c}-formData`,A=`${c}-locale`,D=333,k=Math.round(166.5),T=Math.round(666),z="formeoSaved",P="formeoUpdated",L="formeoOnRender",$=["label","logical","source","thenTarget","sourceProperty","comparison","target","targetProperty","assignment","value"],H={value:"attrs.value",checked:"attrs.checked",isVisible:"config.isVisible",isNotVisible:"config.isNotVisible"},V={comparison:{equals:"==",notEquals:"!=",contains:"⊃",notContains:"!⊃"},assignment:{equals:"="},logical:{and:"&&",or:"||"},property:H},I=/(\b[0-9a-f]{8}\b-[0-9a-f]{4}-[0-9a-f]{4}-[0-9a-f]{4}-\b[0-9a-f]{12}\b)/gi,F=/\bcol-\w+-\d+/g;var B="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:"undefined"!=typeof global?global:"undefined"!=typeof self?self:{};function R(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var W=function(){this.__data__=[],this.size=0};var q=function(t,e){return t===e||t!=t&&e!=e},U=q;var G=function(t,e){for(var n=t.length;n--;)if(U(t[n][0],e))return n;return-1},X=G,Y=Array.prototype.splice;var Z=G;var J=G;var K=G;var Q=W,tt=function(t){var e=this.__data__,n=X(e,t);return!(n<0)&&(n==e.length-1?e.pop():Y.call(e,n,1),--this.size,!0)},et=function(t){var e=this.__data__,n=Z(e,t);return n<0?void 0:e[n][1]},nt=function(t){return J(this.__data__,t)>-1},ot=function(t,e){var n=this.__data__,o=K(n,t);return o<0?(++this.size,n.push([t,e])):n[o][1]=e,this};function it(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}it.prototype.clear=Q,it.prototype.delete=tt,it.prototype.get=et,it.prototype.has=nt,it.prototype.set=ot;var rt=it,st=rt;var at=function(){this.__data__=new st,this.size=0};var lt=function(t){var e=this.__data__,n=e.delete(t);return this.size=e.size,n};var ct=function(t){return this.__data__.get(t)};var dt=function(t){return this.__data__.has(t)},ht="object"==typeof B&&B&&B.Object===Object&&B,ut=ht,pt="object"==typeof self&&self&&self.Object===Object&&self,mt=ut||pt||Function("return this")(),gt=mt.Symbol,ft=gt,vt=Object.prototype,bt=vt.hasOwnProperty,yt=vt.toString,wt=ft?ft.toStringTag:void 0;var xt=function(t){var e=bt.call(t,wt),n=t[wt];try{t[wt]=void 0;var o=!0}catch(r){}var i=yt.call(t);return o&&(e?t[wt]=n:delete t[wt]),i},Ct=Object.prototype.toString;var Et=xt,St=function(t){return Ct.call(t)},Ot=gt?gt.toStringTag:void 0;var Nt=function(t){return null==t?void 0===t?"[object Undefined]":"[object Null]":Ot&&Ot in Object(t)?Et(t):St(t)};var Mt=function(t){var e=typeof t;return null!=t&&("object"==e||"function"==e)},_t=Nt,jt=Mt;var At,Dt=function(t){if(!jt(t))return!1;var e=_t(t);return"[object Function]"==e||"[object GeneratorFunction]"==e||"[object AsyncFunction]"==e||"[object Proxy]"==e},kt=mt["__core-js_shared__"],Tt=(At=/[^.]+$/.exec(kt&&kt.keys&&kt.keys.IE_PROTO||""))?"Symbol(src)_1."+At:"";var zt=function(t){return!!Tt&&Tt in t},Pt=Function.prototype.toString;var Lt=function(t){if(null!=t){try{return Pt.call(t)}catch(e){}try{return t+""}catch(e){}}return""},$t=Dt,Ht=zt,Vt=Mt,It=Lt,Ft=/^\[object .+?Constructor\]$/,Bt=Function.prototype,Rt=Object.prototype,Wt=Bt.toString,qt=Rt.hasOwnProperty,Ut=RegExp("^"+Wt.call(qt).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");var Gt=function(t){return!(!Vt(t)||Ht(t))&&($t(t)?Ut:Ft).test(It(t))},Xt=function(t,e){return null==t?void 0:t[e]};var Yt=function(t,e){var n=Xt(t,e);return Gt(n)?n:void 0},Zt=Yt(mt,"Map"),Jt=Yt(Object,"create"),Kt=Jt;var Qt=function(){this.__data__=Kt?Kt(null):{},this.size=0};var te=function(t){var e=this.has(t)&&delete this.__data__[t];return this.size-=e?1:0,e},ee=Jt,ne=Object.prototype.hasOwnProperty;var oe=function(t){var e=this.__data__;if(ee){var n=e[t];return"__lodash_hash_undefined__"===n?void 0:n}return ne.call(e,t)?e[t]:void 0},ie=Jt,re=Object.prototype.hasOwnProperty;var se=Jt;var ae=Qt,le=te,ce=oe,de=function(t){var e=this.__data__;return ie?void 0!==e[t]:re.call(e,t)},he=function(t,e){var n=this.__data__;return this.size+=this.has(t)?0:1,n[t]=se&&void 0===e?"__lodash_hash_undefined__":e,this};function ue(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}ue.prototype.clear=ae,ue.prototype.delete=le,ue.prototype.get=ce,ue.prototype.has=de,ue.prototype.set=he;var pe=ue,me=rt,ge=Zt;var fe=function(t){var e=typeof t;return"string"==e||"number"==e||"symbol"==e||"boolean"==e?"__proto__"!==t:null===t};var ve=function(t,e){var n=t.__data__;return fe(e)?n["string"==typeof e?"string":"hash"]:n.map},be=ve;var ye=ve;var we=ve;var xe=ve;var Ce=function(){this.size=0,this.__data__={hash:new pe,map:new(ge||me),string:new pe}},Ee=function(t){var e=be(this,t).delete(t);return this.size-=e?1:0,e},Se=function(t){return ye(this,t).get(t)},Oe=function(t){return we(this,t).has(t)},Ne=function(t,e){var n=xe(this,t),o=n.size;return n.set(t,e),this.size+=n.size==o?0:1,this};function Me(t){var e=-1,n=null==t?0:t.length;for(this.clear();++e<n;){var o=t[e];this.set(o[0],o[1])}}Me.prototype.clear=Ce,Me.prototype.delete=Ee,Me.prototype.get=Se,Me.prototype.has=Oe,Me.prototype.set=Ne;var _e=Me,je=rt,Ae=Zt,De=_e;var ke=rt,Te=at,ze=lt,Pe=ct,Le=dt,$e=function(t,e){var n=this.__data__;if(n instanceof je){var o=n.__data__;if(!Ae||o.length<199)return o.push([t,e]),this.size=++n.size,this;n=this.__data__=new De(o)}return n.set(t,e),this.size=n.size,this};function He(t){var e=this.__data__=new ke(t);this.size=e.size}He.prototype.clear=Te,He.prototype.delete=ze,He.prototype.get=Pe,He.prototype.has=Le,He.prototype.set=$e;var Ve=He,Ie=Yt,Fe=function(){try{var t=Ie(Object,"defineProperty");return t({},"",{}),t}catch(e){}}(),Be=Fe;var Re=function(t,e,n){"__proto__"==e&&Be?Be(t,e,{configurable:!0,enumerable:!0,value:n,writable:!0}):t[e]=n},We=Re,qe=q;var Ue=function(t,e,n){(void 0!==n&&!qe(t[e],n)||void 0===n&&!(e in t))&&We(t,e,n)};var Ge,Xe,Ye,Ze,Je,Ke,Qe,tn=function(t){return function(e,n,o){for(var i=-1,r=Object(e),s=o(e),a=s.length;a--;){var l=s[t?a:++i];if(!1===n(r[l],l,r))break}return e}}(),en={exports:{}};Ge=en,Ye=mt,Ze=(Xe=en.exports)&&!Xe.nodeType&&Xe,Je=Ze&&Ge&&!Ge.nodeType&&Ge,Ke=Je&&Je.exports===Ze?Ye.Buffer:void 0,Qe=Ke?Ke.allocUnsafe:void 0,Ge.exports=function(t,e){if(e)return t.slice();var n=t.length,o=Qe?Qe(n):new t.constructor(n);return t.copy(o),o};var nn=en.exports,on=mt.Uint8Array,rn=on;var sn=function(t){var e=new t.constructor(t.byteLength);return new rn(e).set(new rn(t)),e};var an=function(t,e){var n=e?sn(t.buffer):t.buffer;return new t.constructor(n,t.byteOffset,t.length)};var ln=function(t,e){var n=-1,o=t.length;for(e||(e=Array(o));++n<o;)e[n]=t[n];return e},cn=Mt,dn=Object.create,hn=function(){function t(){}return function(e){if(!cn(e))return{};if(dn)return dn(e);t.prototype=e;var n=new t;return t.prototype=void 0,n}}();var un=function(t,e){return function(n){return t(e(n))}},pn=un(Object.getPrototypeOf,Object),mn=Object.prototype;var gn=function(t){var e=t&&t.constructor;return t===("function"==typeof e&&e.prototype||mn)},fn=hn,vn=pn,bn=gn;var yn=function(t){return"function"!=typeof t.constructor||bn(t)?{}:fn(vn(t))};var wn=function(t){return null!=t&&"object"==typeof t},xn=Nt,Cn=wn;var En=function(t){return Cn(t)&&"[object Arguments]"==xn(t)},Sn=wn,On=Object.prototype,Nn=On.hasOwnProperty,Mn=On.propertyIsEnumerable,_n=En(function(){return arguments}())?En:function(t){return Sn(t)&&Nn.call(t,"callee")&&!Mn.call(t,"callee")},jn=_n,An=Array.isArray;var Dn=function(t){return"number"==typeof t&&t>-1&&t%1==0&&t<=9007199254740991},kn=Dt,Tn=Dn;var zn=function(t){return null!=t&&Tn(t.length)&&!kn(t)},Pn=zn,Ln=wn;var $n=function(t){return Ln(t)&&Pn(t)},Hn={exports:{}};var Vn=function(){return!1};!function(t,e){var n=mt,o=Vn,i=e&&!e.nodeType&&e,r=i&&t&&!t.nodeType&&t,s=r&&r.exports===i?n.Buffer:void 0,a=(s?s.isBuffer:void 0)||o;t.exports=a}(Hn,Hn.exports);var In=Hn.exports,Fn=Nt,Bn=pn,Rn=wn,Wn=Function.prototype,qn=Object.prototype,Un=Wn.toString,Gn=qn.hasOwnProperty,Xn=Un.call(Object);var Yn=function(t){if(!Rn(t)||"[object Object]"!=Fn(t))return!1;var e=Bn(t);if(null===e)return!0;var n=Gn.call(e,"constructor")&&e.constructor;return"function"==typeof n&&n instanceof n&&Un.call(n)==Xn},Zn=Nt,Jn=Dn,Kn=wn,Qn={};Qn["[object Float32Array]"]=Qn["[object Float64Array]"]=Qn["[object Int8Array]"]=Qn["[object Int16Array]"]=Qn["[object Int32Array]"]=Qn["[object Uint8Array]"]=Qn["[object Uint8ClampedArray]"]=Qn["[object Uint16Array]"]=Qn["[object Uint32Array]"]=!0,Qn["[object Arguments]"]=Qn["[object Array]"]=Qn["[object ArrayBuffer]"]=Qn["[object Boolean]"]=Qn["[object DataView]"]=Qn["[object Date]"]=Qn["[object Error]"]=Qn["[object Function]"]=Qn["[object Map]"]=Qn["[object Number]"]=Qn["[object Object]"]=Qn["[object RegExp]"]=Qn["[object Set]"]=Qn["[object String]"]=Qn["[object WeakMap]"]=!1;var to=function(t){return Kn(t)&&Jn(t.length)&&!!Qn[Zn(t)]};var eo=function(t){return function(e){return t(e)}},no={exports:{}};!function(t,e){var n=ht,o=e&&!e.nodeType&&e,i=o&&t&&!t.nodeType&&t,r=i&&i.exports===o&&n.process,s=function(){try{var t=i&&i.require&&i.require("util").types;return t||r&&r.binding&&r.binding("util")}catch(e){}}();t.exports=s}(no,no.exports);var oo=no.exports,io=to,ro=eo,so=oo&&oo.isTypedArray,ao=so?ro(so):io;var lo=function(t,e){if(("constructor"!==e||"function"!=typeof t[e])&&"__proto__"!=e)return t[e]},co=Re,ho=q,uo=Object.prototype.hasOwnProperty;var po=function(t,e,n){var o=t[e];uo.call(t,e)&&ho(o,n)&&(void 0!==n||e in t)||co(t,e,n)},mo=Re;var go=function(t,e,n,o){var i=!n;n||(n={});for(var r=-1,s=e.length;++r<s;){var a=e[r],l=o?o(n[a],t[a],a,n,t):void 0;void 0===l&&(l=t[a]),i?mo(n,a,l):po(n,a,l)}return n};var fo=/^(?:0|[1-9]\d*)$/;var vo=function(t,e){var n=typeof t;return!!(e=null==e?9007199254740991:e)&&("number"==n||"symbol"!=n&&fo.test(t))&&t>-1&&t%1==0&&t<e},bo=function(t,e){for(var n=-1,o=Array(t);++n<t;)o[n]=e(n);return o},yo=jn,wo=An,xo=In,Co=vo,Eo=ao,So=Object.prototype.hasOwnProperty;var Oo=function(t,e){var n=wo(t),o=!n&&yo(t),i=!n&&!o&&xo(t),r=!n&&!o&&!i&&Eo(t),s=n||o||i||r,a=s?bo(t.length,String):[],l=a.length;for(var c in t)!e&&!So.call(t,c)||s&&("length"==c||i&&("offset"==c||"parent"==c)||r&&("buffer"==c||"byteLength"==c||"byteOffset"==c)||Co(c,l))||a.push(c);return a};var No=Mt,Mo=gn,_o=function(t){var e=[];if(null!=t)for(var n in Object(t))e.push(n);return e},jo=Object.prototype.hasOwnProperty;var Ao=Oo,Do=function(t){if(!No(t))return _o(t);var e=Mo(t),n=[];for(var o in t)("constructor"!=o||!e&&jo.call(t,o))&&n.push(o);return n},ko=zn;var To=function(t){return ko(t)?Ao(t,!0):Do(t)},zo=go,Po=To;var Lo=Ue,$o=nn,Ho=an,Vo=ln,Io=yn,Fo=jn,Bo=An,Ro=$n,Wo=In,qo=Dt,Uo=Mt,Go=Yn,Xo=ao,Yo=lo,Zo=function(t){return zo(t,Po(t))};var Jo=Ve,Ko=Ue,Qo=tn,ti=function(t,e,n,o,i,r,s){var a=Yo(t,n),l=Yo(e,n),c=s.get(l);if(c)Lo(t,n,c);else{var d=r?r(a,l,n+"",t,e,s):void 0,h=void 0===d;if(h){var u=Bo(l),p=!u&&Wo(l),m=!u&&!p&&Xo(l);d=l,u||p||m?Bo(a)?d=a:Ro(a)?d=Vo(a):p?(h=!1,d=$o(l,!0)):m?(h=!1,d=Ho(l,!0)):d=[]:Go(l)||Fo(l)?(d=a,Fo(a)?d=Zo(a):Uo(a)&&!qo(a)||(d=Io(l))):h=!1}h&&(s.set(l,d),i(d,l,o,r,s),s.delete(l)),Lo(t,n,d)}},ei=Mt,ni=To,oi=lo;var ii=function t(e,n,o,i,r){e!==n&&Qo(n,(function(s,a){if(r||(r=new Jo),ei(s))ti(e,n,a,o,t,i,r);else{var l=i?i(oi(e,a),s,a+"",e,n,r):void 0;void 0===l&&(l=s),Ko(e,a,l)}}),ni)};var ri=function(t){return t};var si=function(t,e,n){switch(n.length){case 0:return t.call(e);case 1:return t.call(e,n[0]);case 2:return t.call(e,n[0],n[1]);case 3:return t.call(e,n[0],n[1],n[2])}return t.apply(e,n)},ai=Math.max;var li=function(t,e,n){return e=ai(void 0===e?t.length-1:e,0),function(){for(var o=arguments,i=-1,r=ai(o.length-e,0),s=Array(r);++i<r;)s[i]=o[e+i];i=-1;for(var a=Array(e+1);++i<e;)a[i]=o[i];return a[e]=n(s),si(t,this,a)}};var ci=function(t){return function(){return t}},di=Fe,hi=di?function(t,e){return di(t,"toString",{configurable:!0,enumerable:!1,value:ci(e),writable:!0})}:ri,ui=Date.now;var pi=function(t){var e=0,n=0;return function(){var o=ui(),i=16-(o-n);if(n=o,i>0){if(++e>=800)return arguments[0]}else e=0;return t.apply(void 0,arguments)}},mi=pi(hi),gi=ri,fi=li,vi=mi;var bi=q,yi=zn,wi=vo,xi=Mt;var Ci=function(t,e){return vi(fi(t,e,gi),t+"")},Ei=function(t,e,n){if(!xi(n))return!1;var o=typeof e;return!!("number"==o?yi(n)&&wi(e,n.length):"string"==o&&e in n)&&bi(n[e],t)};var Si=ii;const Oi=R(function(t){return Ci((function(e,n){var o=-1,i=n.length,r=i>1?n[i-1]:void 0,s=i>2?n[2]:void 0;for(r=t.length>3&&"function"==typeof r?(i--,r):void 0,s&&Ei(n[0],n[1],s)&&(r=i<3?void 0:r,i=1),e=Object(e);++o<i;){var a=n[o];a&&t(e,a,o,r)}return e}))}((function(t,e,n,o){Si(t,e,n,o)}))),Ni=()=>crypto.randomUUID(),Mi=(t="",e)=>{if(!e)return!1;const n=/[|\\{}()[\]^*$+?.]/g;let o="string"==typeof e?[e]:e;o=o.map((t=>"*"===t?"":t.replace(n,"\\$&")));let i=!0;return o.length&&(i=!new RegExp(o.join("|"),"i").exec(t)),i},_i=t=>{var e;const n=null==(e=t.className)?void 0:e.match(C);return n&&w[n[0]]},ji=t=>Array.from(new Set(t)),Ai=t=>{let e;if(t){const{attrs:n={}}=t;e=n.id||t.id||Ni(),t.id=e}else e=Ni();return e},Di=(t,e,n=Object.create(null))=>Oi({},t,e,((t,e)=>{if(Array.isArray(t))return Array.isArray(e)?ji(n.mergeArray?t.concat(e):e):e})),ki=t=>{let e;if(null===t||!("object"==typeof t)||t instanceof Promise)return t;if(t instanceof Date)return e=new Date,e.setTime(t.getTime()),e;if(t instanceof Array){e=[];for(let n=0,o=t.length;n<o;n++)e[n]=ki(t[n]);return e}if(t instanceof Object){e={};for(const n in t)t.hasOwnProperty(n)&&(e[n]=ki(t[n]));return e}throw new Error("Unable to copy Object, type not supported.")},Ti=(t,e)=>t/e*100,zi=t=>t.toString()+"%",Pi=Object.create(null,{get:{value:t=>{const e=window.sessionStorage&&window.sessionStorage.getItem(t);try{return JSON.parse(e)}catch(n){}}},set:{value:(t,e)=>{try{return window.sessionStorage&&window.sessionStorage.setItem(t,JSON.stringify(e))}catch(n){}}}}),Li=t=>v.some((e=>new RegExp(`^${e}.`).test(t))),$i=t=>t.startsWith("external");function Hi(t,e){let n=!1;return function(){if(!n){t(...arguments),n=!0;const o=setTimeout((()=>{n=!1,clearTimeout(o)}),e)}}}function Vi(t){return t}function Ii(){}function Fi(t,e){let n=e;return Array.isArray(e)||(n=e.replace(/\[(\d)\]/g,".$1").split(".")),n.reduce(((e,o)=>{const i=e[o];if(n.shift(),Array.isArray(i)){const[e]=n,r=Number(e);return n.shift(),e?isNaN(r)?Fi(i.map((t=>t[e])).flat(),n):Fi(t[o][r],n):i}return i||n.splice(0),Fi(i,n)}),t)}const Bi=t=>{const e={...t},n={string:()=>"",boolean:()=>!1,object:t=>Bi(t)};return Object.keys(t).forEach((o=>{const i=typeof t[o];n[i]&&(e[o]=n[i](t[o]))})),e},Ri="a an and as at but by for for from in into near nor of on onto or the to with".split(" ").map((t=>`\\s${t}\\s`)),Wi=new RegExp(`(?!${Ri.join("|")})\\w\\S*`,"g"),qi=/\s+/g;function Ui(t){if("string"!=typeof t)return t;if(t.trim().match(qi))return t;return t.replace(Wi,(t=>t.charAt(0).toUpperCase()+t.substring(1).replace(/[A-Z]/g,(t=>` ${t}`))))}const Gi=(t,e="-")=>t.toString().normalize("NFD").replace(/[\u0300-\u036f]/g,"").toLowerCase().trim().replace(/[^a-z0-9 -]/g,"").replace(/\s+/g,e),Xi=t=>Number.isInteger(Number(t)),Yi=(t,e)=>{const n=e||t.parentElement;return Array.prototype.slice.call(n.childNodes).indexOf(t)},Zi=(t,e,n)=>{const o=n.split("||"),i=ji(e).map((e=>t.find((t=>{const n=o.find((e=>!!Fi(t,e)));return n&&Fi(t,n)===e})))).filter(Boolean).concat(t);return ji(i)},Ji=(t,e,n)=>{for(let o=0;o<t.length;o++)e.call(n,t[o],o)},Ki=(t,e)=>{const n=[];return Ji(t,((t,o)=>n.push(e(t,o)))),n},Qi=t=>t.replace(/\b\w/g,(t=>t.toUpperCase())),tr=()=>-1!==window.navigator.userAgent.indexOf("MSIE "),er={capitalize:Qi,safeAttrName:t=>({className:"class"}[t]||Gi(t)),forEach:Ji,copyObj:t=>window.JSON.parse(window.JSON.stringify(t)),map:Ki,subtract:(t,e)=>e.filter((e=>!~t.indexOf(e))),indexOfNode:Yi,isInt:Xi,get:Fi,orderObjectsBy:Zi,isIE:tr};class nr{constructor(t,e=Object.create(null)){n(this,"toJSON",((t,e)=>JSON.stringify(t,null,e))),n(this,"get",(t=>Fi(this.data,t))),n(this,"getChangeType",((t,e)=>{const n=_.find((({condition:n})=>n(t,e)))||{type:"unknown"};return n.desc="added"===n.type?`${t} to ${e}`:e,n})),n(this,"add",((t,e=Object.create(null))=>{const{id:n}=e,o=t||n||Ai();return this.set(o,e)})),n(this,"remove",(t=>{const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?o.splice(Number(n),1):delete o[n],o})),n(this,"getData",(()=>Object.entries(this.data).reduce(((t,[e,n])=>(t[e]=(null==n?void 0:n.data)?n.getData():n,t)),{}))),n(this,"setCallbacks",{}),n(this,"configVal",Object.create(null)),this.name=t,this.data=e,this.dataPath=""}get size(){return Object.keys(this.data).length}get js(){return this.data}get json(){return this.data}set(t,e){const n=Fi(this.data,t),o=function(t,e,n){let o=e;Array.isArray(e)||(o=e.replace(/\[(\d)\]/g,".$1").split(".")),o.reduce(((t,e,i)=>(i===o.length-1?t[e]=n:t[e]&&"object"==typeof t[e]||(t[e]=isNaN(Number(o[i+1]))?{}:[]),t[e])),t)}(this.data,t,e),i=Array.isArray(t)?t.join("."):t,r=Object.keys(this.setCallbacks).filter((t=>new RegExp(t).test(i))),s={newVal:e,oldVal:n,path:t};if(r.forEach((t=>this.setCallbacks[t].forEach((t=>t(s))))),!this.disableEvents){const i=this.getChangeType(n,e),r={entity:this,dataPath:this.dataPath.replace(/\.+$/,""),changePath:this.dataPath+t,value:e,data:o,change:`${i.type}: ${i.desc}`,src:this.dom};n&&(r.previousValue=n),Cl.formeoUpdated(r)}return o}addSetCallback(t,e){this.setCallbacks[t]?this.setCallbacks[t].push(e):this.setCallbacks[t]=[e]}removeSetCallback(t,e){this.setCallbacks[t]=this.setCallbacks[t].filter((t=>t!==e))}empty(){this.data=Object.create(null)}}
|
|
9
|
+
/**!
|
|
10
|
+
* Sortable 1.15.3
|
|
11
|
+
* @author RubaXa <trash@rubaxa.org>
|
|
12
|
+
* @author owenm <owen23355@gmail.com>
|
|
13
|
+
* @license MIT
|
|
14
|
+
*/function or(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(t);e&&(o=o.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,o)}return n}function ir(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?or(Object(n),!0).forEach((function(e){sr(t,e,n[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):or(Object(n)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))}))}return t}function rr(t){return(rr="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})(t)}function sr(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function ar(){return ar=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(t[o]=n[o])}return t},ar.apply(this,arguments)}function lr(t,e){if(null==t)return{};var n,o,i=function(t,e){if(null==t)return{};var n,o,i={},r=Object.keys(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||(i[n]=t[n]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(o=0;o<r.length;o++)n=r[o],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(i[n]=t[n])}return i}function cr(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var dr=cr(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),hr=cr(/Edge/i),ur=cr(/firefox/i),pr=cr(/safari/i)&&!cr(/chrome/i)&&!cr(/android/i),mr=cr(/iP(ad|od|hone)/i),gr=cr(/chrome/i)&&cr(/android/i),fr={capture:!1,passive:!1};function vr(t,e,n){t.addEventListener(e,n,!dr&&fr)}function br(t,e,n){t.removeEventListener(e,n,!dr&&fr)}function yr(t,e){if(e){if(">"===e[0]&&(e=e.substring(1)),t)try{if(t.matches)return t.matches(e);if(t.msMatchesSelector)return t.msMatchesSelector(e);if(t.webkitMatchesSelector)return t.webkitMatchesSelector(e)}catch(n){return!1}return!1}}function wr(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function xr(t,e,n,o){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&yr(t,e):yr(t,e))||o&&t===n)return t;if(t===n)break}while(t=wr(t))}return null}var Cr,Er=/\s+/g;function Sr(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var o=(" "+t.className+" ").replace(Er," ").replace(" "+e+" "," ");t.className=(o+(n?" "+e:"")).replace(Er," ")}}function Or(t,e,n){var o=t&&t.style;if(o){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(n=t.currentStyle),void 0===e?n:n[e];e in o||-1!==e.indexOf("webkit")||(e="-webkit-"+e),o[e]=n+("string"==typeof n?"":"px")}}function Nr(t,e){var n="";if("string"==typeof t)n=t;else do{var o=Or(t,"transform");o&&"none"!==o&&(n=o+" "+n)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(n)}function Mr(t,e,n){if(t){var o=t.getElementsByTagName(e),i=0,r=o.length;if(n)for(;i<r;i++)n(o[i],i);return o}return[]}function _r(){var t=document.scrollingElement;return t||document.documentElement}function jr(t,e,n,o,i){if(t.getBoundingClientRect||t===window){var r,s,a,l,c,d,h;if(t!==window&&t.parentNode&&t!==_r()?(s=(r=t.getBoundingClientRect()).top,a=r.left,l=r.bottom,c=r.right,d=r.height,h=r.width):(s=0,a=0,l=window.innerHeight,c=window.innerWidth,d=window.innerHeight,h=window.innerWidth),(e||n)&&t!==window&&(i=i||t.parentNode,!dr))do{if(i&&i.getBoundingClientRect&&("none"!==Or(i,"transform")||n&&"static"!==Or(i,"position"))){var u=i.getBoundingClientRect();s-=u.top+parseInt(Or(i,"border-top-width")),a-=u.left+parseInt(Or(i,"border-left-width")),l=s+r.height,c=a+r.width;break}}while(i=i.parentNode);if(o&&t!==window){var p=Nr(i||t),m=p&&p.a,g=p&&p.d;p&&(l=(s/=g)+(d/=g),c=(a/=m)+(h/=m))}return{top:s,left:a,bottom:l,right:c,width:h,height:d}}}function Ar(t,e,n){for(var o=Pr(t,!0),i=jr(t)[e];o;){if(!(i>=jr(o)[n]))return o;if(o===_r())break;o=Pr(o,!1)}return!1}function Dr(t,e,n,o){for(var i=0,r=0,s=t.children;r<s.length;){if("none"!==s[r].style.display&&s[r]!==Vs.ghost&&(o||s[r]!==Vs.dragged)&&xr(s[r],n.draggable,t,!1)){if(i===e)return s[r];i++}r++}return null}function kr(t,e){for(var n=t.lastElementChild;n&&(n===Vs.ghost||"none"===Or(n,"display")||e&&!yr(n,e));)n=n.previousElementSibling;return n||null}function Tr(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Vs.clone||e&&!yr(t,e)||n++;return n}function zr(t){var e=0,n=0,o=_r();if(t)do{var i=Nr(t),r=i.a,s=i.d;e+=t.scrollLeft*r,n+=t.scrollTop*s}while(t!==o&&(t=t.parentNode));return[e,n]}function Pr(t,e){if(!t||!t.getBoundingClientRect)return _r();var n=t,o=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var i=Or(n);if(n.clientWidth<n.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!n.getBoundingClientRect||n===document.body)return _r();if(o||e)return n;o=!0}}}while(n=n.parentNode);return _r()}function Lr(t,e){return Math.round(t.top)===Math.round(e.top)&&Math.round(t.left)===Math.round(e.left)&&Math.round(t.height)===Math.round(e.height)&&Math.round(t.width)===Math.round(e.width)}function $r(t,e){return function(){if(!Cr){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),Cr=setTimeout((function(){Cr=void 0}),e)}}}function Hr(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function Vr(t){var e=window.Polymer,n=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):n?n(t).clone(!0)[0]:t.cloneNode(!0)}function Ir(t,e,n){var o={};return Array.from(t.children).forEach((function(i){var r,s,a,l;if(xr(i,e.draggable,t,!1)&&!i.animated&&i!==n){var c=jr(i);o.left=Math.min(null!==(r=o.left)&&void 0!==r?r:1/0,c.left),o.top=Math.min(null!==(s=o.top)&&void 0!==s?s:1/0,c.top),o.right=Math.max(null!==(a=o.right)&&void 0!==a?a:-1/0,c.right),o.bottom=Math.max(null!==(l=o.bottom)&&void 0!==l?l:-1/0,c.bottom)}})),o.width=o.right-o.left,o.height=o.bottom-o.top,o.x=o.left,o.y=o.top,o}var Fr="Sortable"+(new Date).getTime();function Br(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach((function(t){if("none"!==Or(t,"display")&&t!==Vs.ghost){e.push({target:t,rect:jr(t)});var n=ir({},e[e.length-1].rect);if(t.thisAnimationDuration){var o=Nr(t,!0);o&&(n.top-=o.f,n.left-=o.e)}t.fromRect=n}}))},addAnimationState:function(t){e.push(t)},removeAnimationState:function(t){e.splice(function(t,e){for(var n in t)if(t.hasOwnProperty(n))for(var o in e)if(e.hasOwnProperty(o)&&e[o]===t[n][o])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var o=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var i=!1,r=0;e.forEach((function(t){var e=0,n=t.target,s=n.fromRect,a=jr(n),l=n.prevFromRect,c=n.prevToRect,d=t.rect,h=Nr(n,!0);h&&(a.top-=h.f,a.left-=h.e),n.toRect=a,n.thisAnimationDuration&&Lr(l,a)&&!Lr(s,a)&&(d.top-a.top)/(d.left-a.left)==(s.top-a.top)/(s.left-a.left)&&(e=function(t,e,n,o){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-n.top,2)+Math.pow(e.left-n.left,2))*o.animation}(d,l,c,o.options)),Lr(a,s)||(n.prevFromRect=s,n.prevToRect=a,e||(e=o.options.animation),o.animate(n,d,a,e)),e&&(i=!0,r=Math.max(r,e),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),e),n.thisAnimationDuration=e)})),clearTimeout(t),i?t=setTimeout((function(){"function"==typeof n&&n()}),r):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,o){if(o){Or(t,"transition",""),Or(t,"transform","");var i=Nr(this.el),r=i&&i.a,s=i&&i.d,a=(e.left-n.left)/(r||1),l=(e.top-n.top)/(s||1);t.animatingX=!!a,t.animatingY=!!l,Or(t,"transform","translate3d("+a+"px,"+l+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),Or(t,"transition","transform "+o+"ms"+(this.options.easing?" "+this.options.easing:"")),Or(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){Or(t,"transition",""),Or(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),o)}}}}var Rr=[],Wr={initializeByDefault:!0},qr={mount:function(t){for(var e in Wr)Wr.hasOwnProperty(e)&&!(e in t)&&(t[e]=Wr[e]);Rr.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),Rr.push(t)},pluginEvent:function(t,e,n){var o=this;this.eventCanceled=!1,n.cancel=function(){o.eventCanceled=!0};var i=t+"Global";Rr.forEach((function(o){e[o.pluginName]&&(e[o.pluginName][i]&&e[o.pluginName][i](ir({sortable:e},n)),e.options[o.pluginName]&&e[o.pluginName][t]&&e[o.pluginName][t](ir({sortable:e},n)))}))},initializePlugins:function(t,e,n,o){for(var i in Rr.forEach((function(o){var i=o.pluginName;if(t.options[i]||o.initializeByDefault){var r=new o(t,e,t.options);r.sortable=t,r.options=t.options,t[i]=r,ar(n,r.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);void 0!==r&&(t.options[i]=r)}},getEventProperties:function(t,e){var n={};return Rr.forEach((function(o){"function"==typeof o.eventProperties&&ar(n,o.eventProperties.call(e[o.pluginName],t))})),n},modifyOption:function(t,e,n){var o;return Rr.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(o=i.optionListeners[e].call(t[i.pluginName],n))})),o}};var Ur=["evt"],Gr=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},o=n.evt,i=lr(n,Ur);qr.pluginEvent.bind(Vs)(t,e,ir({dragEl:Yr,parentEl:Zr,ghostEl:Jr,rootEl:Kr,nextEl:Qr,lastDownEl:ts,cloneEl:es,cloneHidden:ns,dragStarted:gs,putSortable:ls,activeSortable:Vs.active,originalEvent:o,oldIndex:os,oldDraggableIndex:rs,newIndex:is,newDraggableIndex:ss,hideGhostForTarget:Ps,unhideGhostForTarget:Ls,cloneNowHidden:function(){ns=!0},cloneNowShown:function(){ns=!1},dispatchSortableEvent:function(t){Xr({sortable:e,name:t,originalEvent:o})}},i))};function Xr(t){!function(t){var e=t.sortable,n=t.rootEl,o=t.name,i=t.targetEl,r=t.cloneEl,s=t.toEl,a=t.fromEl,l=t.oldIndex,c=t.newIndex,d=t.oldDraggableIndex,h=t.newDraggableIndex,u=t.originalEvent,p=t.putSortable,m=t.extraEventProperties;if(e=e||n&&n[Fr]){var g,f=e.options,v="on"+o.charAt(0).toUpperCase()+o.substr(1);!window.CustomEvent||dr||hr?(g=document.createEvent("Event")).initEvent(o,!0,!0):g=new CustomEvent(o,{bubbles:!0,cancelable:!0}),g.to=s||n,g.from=a||n,g.item=i||n,g.clone=r,g.oldIndex=l,g.newIndex=c,g.oldDraggableIndex=d,g.newDraggableIndex=h,g.originalEvent=u,g.pullMode=p?p.lastPutMode:void 0;var b=ir(ir({},m),qr.getEventProperties(o,e));for(var y in b)g[y]=b[y];n&&n.dispatchEvent(g),f[v]&&f[v].call(e,g)}}(ir({putSortable:ls,cloneEl:es,targetEl:Yr,rootEl:Kr,oldIndex:os,oldDraggableIndex:rs,newIndex:is,newDraggableIndex:ss},t))}var Yr,Zr,Jr,Kr,Qr,ts,es,ns,os,is,rs,ss,as,ls,cs,ds,hs,us,ps,ms,gs,fs,vs,bs,ys,ws=!1,xs=!1,Cs=[],Es=!1,Ss=!1,Os=[],Ns=!1,Ms=[],_s="undefined"!=typeof document,js=mr,As=hr||dr?"cssFloat":"float",Ds=_s&&!gr&&!mr&&"draggable"in document.createElement("div"),ks=function(){if(_s){if(dr)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ts=function(t,e){var n=Or(t),o=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),i=Dr(t,0,e),r=Dr(t,1,e),s=i&&Or(i),a=r&&Or(r),l=s&&parseInt(s.marginLeft)+parseInt(s.marginRight)+jr(i).width,c=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+jr(r).width;if("flex"===n.display)return"column"===n.flexDirection||"column-reverse"===n.flexDirection?"vertical":"horizontal";if("grid"===n.display)return n.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&s.float&&"none"!==s.float){var d="left"===s.float?"left":"right";return!r||"both"!==a.clear&&a.clear!==d?"horizontal":"vertical"}return i&&("block"===s.display||"flex"===s.display||"table"===s.display||"grid"===s.display||l>=o&&"none"===n[As]||r&&"none"===n[As]&&l+c>o)?"vertical":"horizontal"},zs=function(t){function e(t,n){return function(o,i,r,s){var a=o.options.group.name&&i.options.group.name&&o.options.group.name===i.options.group.name;if(null==t&&(n||a))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(o,i,r,s),n)(o,i,r,s);var l=(n?o:i).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},o=t.group;o&&"object"==rr(o)||(o={name:o}),n.name=o.name,n.checkPull=e(o.pull,!0),n.checkPut=e(o.put),n.revertClone=o.revertClone,t.group=n},Ps=function(){!ks&&Jr&&Or(Jr,"display","none")},Ls=function(){!ks&&Jr&&Or(Jr,"display","")};_s&&!gr&&document.addEventListener("click",(function(t){if(xs)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),xs=!1,!1}),!0);var $s=function(t){if(Yr){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,Cs.some((function(t){var e=t[Fr].options.emptyInsertThreshold;if(e&&!kr(t)){var n=jr(t),o=i>=n.left-e&&i<=n.right+e,a=r>=n.top-e&&r<=n.bottom+e;return o&&a?s=t:void 0}})),s);if(e){var n={};for(var o in t)t.hasOwnProperty(o)&&(n[o]=t[o]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[Fr]._onDragOver(n)}}var i,r,s},Hs=function(t){Yr&&Yr.parentNode[Fr]._isOutsideThisEl(t.target)};function Vs(t,e){if(!t||!t.nodeType||1!==t.nodeType)throw"Sortable: `el` must be an HTMLElement, not ".concat({}.toString.call(t));this.el=t,this.options=e=ar({},e),t[Fr]=this;var n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(t.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ts(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Vs.supportPointer&&"PointerEvent"in window&&!pr,emptyInsertThreshold:5};for(var o in qr.initializePlugins(this,t,n),n)!(o in e)&&(e[o]=n[o]);for(var i in zs(e),this)"_"===i.charAt(0)&&"function"==typeof this[i]&&(this[i]=this[i].bind(this));this.nativeDraggable=!e.forceFallback&&Ds,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?vr(t,"pointerdown",this._onTapStart):(vr(t,"mousedown",this._onTapStart),vr(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(vr(t,"dragover",this),vr(t,"dragenter",this)),Cs.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),ar(this,Br())}function Is(t,e,n,o,i,r,s,a){var l,c,d=t[Fr],h=d.options.onMove;return!window.CustomEvent||dr||hr?(l=document.createEvent("Event")).initEvent("move",!0,!0):l=new CustomEvent("move",{bubbles:!0,cancelable:!0}),l.to=e,l.from=t,l.dragged=n,l.draggedRect=o,l.related=i||e,l.relatedRect=r||jr(e),l.willInsertAfter=a,l.originalEvent=s,t.dispatchEvent(l),h&&(c=h.call(d,l,s)),c}function Fs(t){t.draggable=!1}function Bs(){Ns=!1}function Rs(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,o=0;n--;)o+=e.charCodeAt(n);return o.toString(36)}function Ws(t){return setTimeout(t,0)}function qs(t){return clearTimeout(t)}Vs.prototype={constructor:Vs,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(fs=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,Yr):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,o=this.options,i=o.preventOnFilter,r=t.type,s=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,a=(s||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||a,c=o.filter;if(function(t){Ms.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var o=e[n];o.checked&&Ms.push(o)}}(n),!Yr&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||o.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!pr||!a||"SELECT"!==a.tagName.toUpperCase())&&!((a=xr(a,o.draggable,n,!1))&&a.animated||ts===a)){if(os=Tr(a),rs=Tr(a,o.draggable),"function"==typeof c){if(c.call(this,t,a,this))return Xr({sortable:e,rootEl:l,name:"filter",targetEl:a,toEl:n,fromEl:n}),Gr("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(o){if(o=xr(l,o.trim(),n,!1))return Xr({sortable:e,rootEl:o,name:"filter",targetEl:a,fromEl:n,toEl:n}),Gr("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());o.handle&&!xr(l,o.handle,n,!1)||this._prepareDragStart(t,s,a)}}},_prepareDragStart:function(t,e,n){var o,i=this,r=i.el,s=i.options,a=r.ownerDocument;if(n&&!Yr&&n.parentNode===r){var l=jr(n);if(Kr=r,Zr=(Yr=n).parentNode,Qr=Yr.nextSibling,ts=n,as=s.group,Vs.dragged=Yr,cs={target:Yr,clientX:(e||t).clientX,clientY:(e||t).clientY},ps=cs.clientX-l.left,ms=cs.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,Yr.style["will-change"]="all",o=function(){Gr("delayEnded",i,{evt:t}),Vs.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!ur&&i.nativeDraggable&&(Yr.draggable=!0),i._triggerDragStart(t,e),Xr({sortable:i,name:"choose",originalEvent:t}),Sr(Yr,s.chosenClass,!0))},s.ignore.split(",").forEach((function(t){Mr(Yr,t.trim(),Fs)})),vr(a,"dragover",$s),vr(a,"mousemove",$s),vr(a,"touchmove",$s),vr(a,"mouseup",i._onDrop),vr(a,"touchend",i._onDrop),vr(a,"touchcancel",i._onDrop),ur&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Yr.draggable=!0),Gr("delayStart",this,{evt:t}),!s.delay||s.delayOnTouchOnly&&!e||this.nativeDraggable&&(hr||dr))o();else{if(Vs.eventCanceled)return void this._onDrop();vr(a,"mouseup",i._disableDelayedDrag),vr(a,"touchend",i._disableDelayedDrag),vr(a,"touchcancel",i._disableDelayedDrag),vr(a,"mousemove",i._delayedDragTouchMoveHandler),vr(a,"touchmove",i._delayedDragTouchMoveHandler),s.supportPointer&&vr(a,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(o,s.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Yr&&Fs(Yr),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._disableDelayedDrag),br(t,"touchend",this._disableDelayedDrag),br(t,"touchcancel",this._disableDelayedDrag),br(t,"mousemove",this._delayedDragTouchMoveHandler),br(t,"touchmove",this._delayedDragTouchMoveHandler),br(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?vr(document,"pointermove",this._onTouchMove):vr(document,e?"touchmove":"mousemove",this._onTouchMove):(vr(Yr,"dragend",this),vr(Kr,"dragstart",this._onDragStart));try{document.selection?Ws((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(n){}},_dragStarted:function(t,e){if(ws=!1,Kr&&Yr){Gr("dragStarted",this,{evt:e}),this.nativeDraggable&&vr(document,"dragover",Hs);var n=this.options;!t&&Sr(Yr,n.dragClass,!1),Sr(Yr,n.ghostClass,!0),Vs.active=this,t&&this._appendGhost(),Xr({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ds){this._lastX=ds.clientX,this._lastY=ds.clientY,Ps();for(var t=document.elementFromPoint(ds.clientX,ds.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ds.clientX,ds.clientY))!==e;)e=t;if(Yr.parentNode[Fr]._isOutsideThisEl(t),e)do{if(e[Fr]){if(e[Fr]._onDragOver({clientX:ds.clientX,clientY:ds.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=wr(e));Ls()}},_onTouchMove:function(t){if(cs){var e=this.options,n=e.fallbackTolerance,o=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=Jr&&Nr(Jr,!0),s=Jr&&r&&r.a,a=Jr&&r&&r.d,l=js&&ys&&zr(ys),c=(i.clientX-cs.clientX+o.x)/(s||1)+(l?l[0]-Os[0]:0)/(s||1),d=(i.clientY-cs.clientY+o.y)/(a||1)+(l?l[1]-Os[1]:0)/(a||1);if(!Vs.active&&!ws){if(n&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(Jr){r?(r.e+=c-(hs||0),r.f+=d-(us||0)):r={a:1,b:0,c:0,d:1,e:c,f:d};var h="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");Or(Jr,"webkitTransform",h),Or(Jr,"mozTransform",h),Or(Jr,"msTransform",h),Or(Jr,"transform",h),hs=c,us=d,ds=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!Jr){var t=this.options.fallbackOnBody?document.body:Kr,e=jr(Yr,!0,js,!0,t),n=this.options;if(js){for(ys=t;"static"===Or(ys,"position")&&"none"===Or(ys,"transform")&&ys!==document;)ys=ys.parentNode;ys!==document.body&&ys!==document.documentElement?(ys===document&&(ys=_r()),e.top+=ys.scrollTop,e.left+=ys.scrollLeft):ys=_r(),Os=zr(ys)}Sr(Jr=Yr.cloneNode(!0),n.ghostClass,!1),Sr(Jr,n.fallbackClass,!0),Sr(Jr,n.dragClass,!0),Or(Jr,"transition",""),Or(Jr,"transform",""),Or(Jr,"box-sizing","border-box"),Or(Jr,"margin",0),Or(Jr,"top",e.top),Or(Jr,"left",e.left),Or(Jr,"width",e.width),Or(Jr,"height",e.height),Or(Jr,"opacity","0.8"),Or(Jr,"position",js?"absolute":"fixed"),Or(Jr,"zIndex","100000"),Or(Jr,"pointerEvents","none"),Vs.ghost=Jr,t.appendChild(Jr),Or(Jr,"transform-origin",ps/parseInt(Jr.style.width)*100+"% "+ms/parseInt(Jr.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,o=t.dataTransfer,i=n.options;Gr("dragStart",this,{evt:t}),Vs.eventCanceled?this._onDrop():(Gr("setupClone",this),Vs.eventCanceled||((es=Vr(Yr)).removeAttribute("id"),es.draggable=!1,es.style["will-change"]="",this._hideClone(),Sr(es,this.options.chosenClass,!1),Vs.clone=es),n.cloneId=Ws((function(){Gr("clone",n),Vs.eventCanceled||(n.options.removeCloneOnHide||Kr.insertBefore(es,Yr),n._hideClone(),Xr({sortable:n,name:"clone"}))})),!e&&Sr(Yr,i.dragClass,!0),e?(xs=!0,n._loopId=setInterval(n._emulateDragOver,50)):(br(document,"mouseup",n._onDrop),br(document,"touchend",n._onDrop),br(document,"touchcancel",n._onDrop),o&&(o.effectAllowed="move",i.setData&&i.setData.call(n,o,Yr)),vr(document,"drop",n),Or(Yr,"transform","translateZ(0)")),ws=!0,n._dragStartId=Ws(n._dragStarted.bind(n,e,t)),vr(document,"selectstart",n),gs=!0,pr&&Or(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,o,i,r=this.el,s=t.target,a=this.options,l=a.group,c=Vs.active,d=as===l,h=a.sort,u=ls||c,p=this,m=!1;if(!Ns){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),s=xr(s,a.draggable,r,!0),j("dragOver"),Vs.eventCanceled)return m;if(Yr.contains(t.target)||s.animated&&s.animatingX&&s.animatingY||p._ignoreWhileAnimating===s)return D(!1);if(xs=!1,c&&!a.disabled&&(d?h||(o=Zr!==Kr):ls===this||(this.lastPutMode=as.checkPull(this,c,Yr,t))&&l.checkPut(this,c,Yr,t))){if(i="vertical"===this._getDirection(t,s),e=jr(Yr),j("dragOverValid"),Vs.eventCanceled)return m;if(o)return Zr=Kr,A(),this._hideClone(),j("revert"),Vs.eventCanceled||(Qr?Kr.insertBefore(Yr,Qr):Kr.appendChild(Yr)),D(!0);var g=kr(r,a.draggable);if(!g||function(t,e,n){var o=jr(kr(n.el,n.options.draggable)),i=Ir(n.el,n.options,Jr),r=10;return e?t.clientX>i.right+r||t.clientY>o.bottom&&t.clientX>o.left:t.clientY>i.bottom+r||t.clientX>o.right&&t.clientY>o.top}(t,i,this)&&!g.animated){if(g===Yr)return D(!1);if(g&&r===t.target&&(s=g),s&&(n=jr(s)),!1!==Is(Kr,r,Yr,e,s,n,t,!!s))return A(),g&&g.nextSibling?r.insertBefore(Yr,g.nextSibling):r.appendChild(Yr),Zr=r,k(),D(!0)}else if(g&&function(t,e,n){var o=jr(Dr(n.el,0,n.options,!0)),i=Ir(n.el,n.options,Jr),r=10;return e?t.clientX<i.left-r||t.clientY<o.top&&t.clientX<o.right:t.clientY<i.top-r||t.clientY<o.bottom&&t.clientX<o.left}(t,i,this)){var f=Dr(r,0,a,!0);if(f===Yr)return D(!1);if(n=jr(s=f),!1!==Is(Kr,r,Yr,e,s,n,t,!1))return A(),r.insertBefore(Yr,f),Zr=r,k(),D(!0)}else if(s.parentNode===r){n=jr(s);var v,b,y,w=Yr.parentNode!==r,x=!function(t,e,n){var o=n?t.left:t.top,i=n?t.right:t.bottom,r=n?t.width:t.height,s=n?e.left:e.top,a=n?e.right:e.bottom,l=n?e.width:e.height;return o===s||i===a||o+r/2===s+l/2}(Yr.animated&&Yr.toRect||e,s.animated&&s.toRect||n,i),C=i?"top":"left",E=Ar(s,"top","top")||Ar(Yr,"top","top"),S=E?E.scrollTop:void 0;if(fs!==s&&(b=n[C],Es=!1,Ss=!x&&a.invertSwap||w),v=function(t,e,n,o,i,r,s,a){var l=o?t.clientY:t.clientX,c=o?n.height:n.width,d=o?n.top:n.left,h=o?n.bottom:n.right,u=!1;if(!s)if(a&&bs<c*i){if(!Es&&(1===vs?l>d+c*r/2:l<h-c*r/2)&&(Es=!0),Es)u=!0;else if(1===vs?l<d+bs:l>h-bs)return-vs}else if(l>d+c*(1-i)/2&&l<h-c*(1-i)/2)return function(t){return Tr(Yr)<Tr(t)?1:-1}(e);if((u=u||s)&&(l<d+c*r/2||l>h-c*r/2))return l>d+c/2?1:-1;return 0}(t,s,n,i,x?1:a.swapThreshold,null==a.invertedSwapThreshold?a.swapThreshold:a.invertedSwapThreshold,Ss,fs===s),0!==v){var O=Tr(Yr);do{O-=v,y=Zr.children[O]}while(y&&("none"===Or(y,"display")||y===Jr))}if(0===v||y===s)return D(!1);fs=s,vs=v;var N=s.nextElementSibling,M=!1,_=Is(Kr,r,Yr,e,s,n,t,M=1===v);if(!1!==_)return 1!==_&&-1!==_||(M=1===_),Ns=!0,setTimeout(Bs,30),A(),M&&!N?r.appendChild(Yr):s.parentNode.insertBefore(Yr,M?N:s),E&&Hr(E,0,S-E.scrollTop),Zr=Yr.parentNode,void 0===b||Ss||(bs=Math.abs(b-jr(s)[C])),k(),D(!0)}if(r.contains(Yr))return D(!1)}return!1}function j(a,l){Gr(a,p,ir({evt:t,isOwner:d,axis:i?"vertical":"horizontal",revert:o,dragRect:e,targetRect:n,canSort:h,fromSortable:u,target:s,completed:D,onMove:function(n,o){return Is(Kr,r,Yr,e,n,jr(n),t,o)},changed:k},l))}function A(){j("dragOverAnimationCapture"),p.captureAnimationState(),p!==u&&u.captureAnimationState()}function D(e){return j("dragOverCompleted",{insertion:e}),e&&(d?c._hideClone():c._showClone(p),p!==u&&(Sr(Yr,ls?ls.options.ghostClass:c.options.ghostClass,!1),Sr(Yr,a.ghostClass,!0)),ls!==p&&p!==Vs.active?ls=p:p===Vs.active&&ls&&(ls=null),u===p&&(p._ignoreWhileAnimating=s),p.animateAll((function(){j("dragOverAnimationComplete"),p._ignoreWhileAnimating=null})),p!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(s===Yr&&!Yr.animated||s===r&&!s.animated)&&(fs=null),a.dragoverBubble||t.rootEl||s===document||(Yr.parentNode[Fr]._isOutsideThisEl(t.target),!e&&$s(t)),!a.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),m=!0}function k(){is=Tr(Yr),ss=Tr(Yr,a.draggable),Xr({sortable:p,name:"change",toEl:r,newIndex:is,newDraggableIndex:ss,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){br(document,"mousemove",this._onTouchMove),br(document,"touchmove",this._onTouchMove),br(document,"pointermove",this._onTouchMove),br(document,"dragover",$s),br(document,"mousemove",$s),br(document,"touchmove",$s)},_offUpEvents:function(){var t=this.el.ownerDocument;br(t,"mouseup",this._onDrop),br(t,"touchend",this._onDrop),br(t,"pointerup",this._onDrop),br(t,"touchcancel",this._onDrop),br(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;is=Tr(Yr),ss=Tr(Yr,n.draggable),Gr("drop",this,{evt:t}),Zr=Yr&&Yr.parentNode,is=Tr(Yr),ss=Tr(Yr,n.draggable),Vs.eventCanceled||(ws=!1,Ss=!1,Es=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),qs(this.cloneId),qs(this._dragStartId),this.nativeDraggable&&(br(document,"drop",this),br(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),pr&&Or(document.body,"user-select",""),Or(Yr,"transform",""),t&&(gs&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),Jr&&Jr.parentNode&&Jr.parentNode.removeChild(Jr),(Kr===Zr||ls&&"clone"!==ls.lastPutMode)&&es&&es.parentNode&&es.parentNode.removeChild(es),Yr&&(this.nativeDraggable&&br(Yr,"dragend",this),Fs(Yr),Yr.style["will-change"]="",gs&&!ws&&Sr(Yr,ls?ls.options.ghostClass:this.options.ghostClass,!1),Sr(Yr,this.options.chosenClass,!1),Xr({sortable:this,name:"unchoose",toEl:Zr,newIndex:null,newDraggableIndex:null,originalEvent:t}),Kr!==Zr?(is>=0&&(Xr({rootEl:Zr,name:"add",toEl:Zr,fromEl:Kr,originalEvent:t}),Xr({sortable:this,name:"remove",toEl:Zr,originalEvent:t}),Xr({rootEl:Zr,name:"sort",toEl:Zr,fromEl:Kr,originalEvent:t}),Xr({sortable:this,name:"sort",toEl:Zr,originalEvent:t})),ls&&ls.save()):is!==os&&is>=0&&(Xr({sortable:this,name:"update",toEl:Zr,originalEvent:t}),Xr({sortable:this,name:"sort",toEl:Zr,originalEvent:t})),Vs.active&&(null!=is&&-1!==is||(is=os,ss=rs),Xr({sortable:this,name:"end",toEl:Zr,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){Gr("nulling",this),Kr=Yr=Zr=Jr=Qr=es=ts=ns=cs=ds=gs=is=ss=os=rs=fs=vs=ls=as=Vs.dragged=Vs.ghost=Vs.clone=Vs.active=null,Ms.forEach((function(t){t.checked=!0})),Ms.length=hs=us=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":Yr&&(this._onDragOver(t),function(t){t.dataTransfer&&(t.dataTransfer.dropEffect="move");t.cancelable&&t.preventDefault()}(t));break;case"selectstart":t.preventDefault()}},toArray:function(){for(var t,e=[],n=this.el.children,o=0,i=n.length,r=this.options;o<i;o++)xr(t=n[o],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||Rs(t));return e},sort:function(t,e){var n={},o=this.el;this.toArray().forEach((function(t,e){var i=o.children[e];xr(i,this.options.draggable,o,!1)&&(n[t]=i)}),this),e&&this.captureAnimationState(),t.forEach((function(t){n[t]&&(o.removeChild(n[t]),o.appendChild(n[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return xr(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var o=qr.modifyOption(this,t,e);n[t]=void 0!==o?o:e,"group"===t&&zs(n)},destroy:function(){Gr("destroy",this);var t=this.el;t[Fr]=null,br(t,"mousedown",this._onTapStart),br(t,"touchstart",this._onTapStart),br(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(br(t,"dragover",this),br(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Cs.splice(Cs.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ns){if(Gr("hideClone",this),Vs.eventCanceled)return;Or(es,"display","none"),this.options.removeCloneOnHide&&es.parentNode&&es.parentNode.removeChild(es),ns=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ns){if(Gr("showClone",this),Vs.eventCanceled)return;Yr.parentNode!=Kr||this.options.group.revertClone?Qr?Kr.insertBefore(es,Qr):Kr.appendChild(es):Kr.insertBefore(es,Yr),this.options.group.revertClone&&this.animate(Yr,es),Or(es,"display",""),ns=!1}}else this._hideClone()}},_s&&vr(document,"touchmove",(function(t){(Vs.active||ws)&&t.cancelable&&t.preventDefault()})),Vs.utils={on:vr,off:br,css:Or,find:Mr,is:function(t,e){return!!xr(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var n in e)e.hasOwnProperty(n)&&(t[n]=e[n]);return t},throttle:$r,closest:xr,toggleClass:Sr,clone:Vr,index:Tr,nextTick:Ws,cancelNextTick:qs,detectDirection:Ts,getChild:Dr,expando:Fr},Vs.get=function(t){return t[Fr]},Vs.mount=function(){for(var t=arguments.length,e=new Array(t),n=0;n<t;n++)e[n]=arguments[n];e[0].constructor===Array&&(e=e[0]),e.forEach((function(t){if(!t.prototype||!t.prototype.constructor)throw"Sortable: Mounted plugin must be a constructor function, not ".concat({}.toString.call(t));t.utils&&(Vs.utils=ir(ir({},Vs.utils),t.utils)),qr.mount(t)}))},Vs.create=function(t,e){return new Vs(t,e)},Vs.version="1.15.3";var Us,Gs,Xs,Ys,Zs,Js,Ks=[],Qs=!1;function ta(){Ks.forEach((function(t){clearInterval(t.pid)})),Ks=[]}function ea(){clearInterval(Js)}var na=$r((function(t,e,n,o){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,s=(t.touches?t.touches[0]:t).clientY,a=e.scrollSensitivity,l=e.scrollSpeed,c=_r(),d=!1;Gs!==n&&(Gs=n,ta(),Us=e.scroll,i=e.scrollFn,!0===Us&&(Us=Pr(n,!0)));var h=0,u=Us;do{var p=u,m=jr(p),g=m.top,f=m.bottom,v=m.left,b=m.right,y=m.width,w=m.height,x=void 0,C=void 0,E=p.scrollWidth,S=p.scrollHeight,O=Or(p),N=p.scrollLeft,M=p.scrollTop;p===c?(x=y<E&&("auto"===O.overflowX||"scroll"===O.overflowX||"visible"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY||"visible"===O.overflowY)):(x=y<E&&("auto"===O.overflowX||"scroll"===O.overflowX),C=w<S&&("auto"===O.overflowY||"scroll"===O.overflowY));var _=x&&(Math.abs(b-r)<=a&&N+y<E)-(Math.abs(v-r)<=a&&!!N),j=C&&(Math.abs(f-s)<=a&&M+w<S)-(Math.abs(g-s)<=a&&!!M);if(!Ks[h])for(var A=0;A<=h;A++)Ks[A]||(Ks[A]={});Ks[h].vx==_&&Ks[h].vy==j&&Ks[h].el===p||(Ks[h].el=p,Ks[h].vx=_,Ks[h].vy=j,clearInterval(Ks[h].pid),0==_&&0==j||(d=!0,Ks[h].pid=setInterval(function(){o&&0===this.layer&&Vs.active._onTouchMove(Zs);var e=Ks[this.layer].vy?Ks[this.layer].vy*l:0,n=Ks[this.layer].vx?Ks[this.layer].vx*l:0;"function"==typeof i&&"continue"!==i.call(Vs.dragged.parentNode[Fr],n,e,t,Zs,Ks[this.layer].el)||Hr(Ks[this.layer].el,n,e)}.bind({layer:h}),24))),h++}while(e.bubbleScroll&&u!==c&&(u=Pr(u,!1)));Qs=d}}),30),oa=function(t){var e=t.originalEvent,n=t.putSortable,o=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,s=t.hideGhostForTarget,a=t.unhideGhostForTarget;if(e){var l=n||i;s();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,d=document.elementFromPoint(c.clientX,c.clientY);a(),l&&!l.el.contains(d)&&(r("spill"),this.onSpill({dragEl:o,putSortable:n}))}};function ia(){}function ra(){}ia.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,n=t.putSortable;this.sortable.captureAnimationState(),n&&n.captureAnimationState();var o=Dr(this.sortable.el,this.startIndex,this.options);o?this.sortable.el.insertBefore(e,o):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:oa},ar(ia,{pluginName:"revertOnSpill"}),ra.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:oa},ar(ra,{pluginName:"removeOnSpill"}),Vs.mount(new function(){function t(){for(var t in this.defaults={scroll:!0,forceAutoScrollFallback:!1,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0},this)"_"===t.charAt(0)&&"function"==typeof this[t]&&(this[t]=this[t].bind(this))}return t.prototype={dragStarted:function(t){var e=t.originalEvent;this.sortable.nativeDraggable?vr(document,"dragover",this._handleAutoScroll):this.options.supportPointer?vr(document,"pointermove",this._handleFallbackAutoScroll):e.touches?vr(document,"touchmove",this._handleFallbackAutoScroll):vr(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?br(document,"dragover",this._handleAutoScroll):(br(document,"pointermove",this._handleFallbackAutoScroll),br(document,"touchmove",this._handleFallbackAutoScroll),br(document,"mousemove",this._handleFallbackAutoScroll)),ea(),ta(),clearTimeout(Cr),Cr=void 0},nulling:function(){Zs=Gs=Us=Qs=Js=Xs=Ys=null,Ks.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,o=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(o,i);if(Zs=t,e||this.options.forceAutoScrollFallback||hr||dr||pr){na(t,this.options,r,e);var s=Pr(r,!0);!Qs||Js&&o===Xs&&i===Ys||(Js&&ea(),Js=setInterval((function(){var r=Pr(document.elementFromPoint(o,i),!0);r!==s&&(s=r,ta()),na(t,n.options,r,e)}),10),Xs=o,Ys=i)}else{if(!this.options.bubbleScroll||Pr(r,!0)===_r())return void ta();na(t,this.options,Pr(r,!1),!1)}}},ar(t,{pluginName:"scroll",initializeByDefault:!0})}),Vs.mount(ra,ia);const sa={add:{attr:t=>{const e=window.prompt(t.message.attr);if(e&&t.isDisabled(e))return window.alert(l.get("attributeNotPermitted",e||"")),aa.add.attrs(t);let n;e&&(n=String(window.prompt(t.message.value,"")),t.addAction(e,n))},option:t=>{t.addAction()},condition:t=>{t.addAction(t)}},click:{btn:t=>{t.action()}},save:{form:Vi}},aa={init:function(t){const e=Object.keys(sa);return this.opts=e.reduce(((e,n)=>(e[n]={...sa[n],...t[n]},e)),t),this},add:{attrs:t=>aa.opts.add.attr(t),options:t=>aa.opts.add.option(t),conditions:t=>(t.template={if:[{source:"",sourceProperty:"",comparison:"",target:"",targetProperty:""}],then:[{target:"",targetProperty:"",assignment:"",value:""}]},aa.opts.add.condition(t))},click:{btn:t=>aa.opts.click.btn(t)},save:{form:t=>(aa.opts.sessionStorage&&Pi.set(j,t),Cl.formeoSaved({formData:t}),aa.opts.save.form(t))}},la=Object.freeze({type:"field",displayType:"slider"}),ca=t=>({transform:`translateX(${t?`${t}px`:0})`});class da{constructor(t){n(this,"toggleTabbedLayout",(()=>{this.getPanelDisplay();const t=this.isTabbed;return this.panelsWrap.parentElement.classList.toggle("tabbed-panels",t),t&&this.panelNav.removeAttribute("style"),t})),n(this,"resizePanels",(()=>{this.toggleTabbedLayout();const t=this.panelsWrap.style,e=Ol.getStyle(this.currentPanel,"height");return t.height=e,e})),this.opts=Di(la,t),this.panelDisplay=this.opts.displayType,this.activePanelIndex=0,this.panelNav=this.createPanelNav();const e=this.createPanelsWrap();this.nav=this.navActions();const o=new window.ResizeObserver((([{contentRect:{width:t}}])=>{this.currentWidth!==t&&(this.toggleTabbedLayout(),this.currentWidth=t,this.nav.setTranslateX(this.activePanelIndex,!1))})),i=window.setTimeout((()=>{o.observe(e),window.clearTimeout(i)}),T)}getPanelDisplay(){const t=this.panelsWrap,e=parseInt(Ol.getStyle(t,"width"))>390?"tabbed":"slider",n="auto"===this.opts.displayType;return this.panelDisplay=n?e:this.opts.displayType||la.displayType,this.panelDisplay}createPanelsWrap(){const t=Ol.create({className:"panels",content:this.opts.panels.map((({config:{label:t},...e})=>e))});return"field"===this.opts.type&&this.sortableProperties(t),this.panelsWrap=t,this.panels=t.children,this.currentPanel=this.panels[this.activePanelIndex],t}sortableProperties(t){const e=this,n=t.getElementsByClassName("field-edit-group");return er.forEach(n,((t,n)=>{t.fieldId=e.opts.id,t.isSortable&&Vs.create(t,{animation:150,group:{name:"edit-"+t.editGroup,pull:!0,put:["properties"]},sort:!0,handle:".prop-order",onSort:t=>{e.propertySave(t.to),e.resizePanels()}})}))}createPanelNavLabels(){const t=this.opts.panels.map((t=>({tag:"h5",action:{click:t=>{const e=Yi(t.target,t.target.parentElement);this.currentPanel=this.panels[e];const n=t.target.parentElement.childNodes;this.nav.refresh(e),Ol.removeClasses(n,"active-tab"),t.target.classList.add("active-tab")}},content:t.config.label}))),e={className:"panel-labels",content:{content:t}},[n]=t;return n.className="active-tab",Ol.create(e)}createPanelNav(){this.labels=this.createPanelNavLabels();const t={tag:"button",attrs:{className:"next-group",title:l.get("controlGroups.nextGroup"),type:"button"},dataset:{toggle:"tooltip",placement:"top"},action:{click:t=>this.nav.nextGroup(t)},content:Ol.icon("triangle-right")},e={tag:"button",attrs:{className:"prev-group",title:l.get("controlGroups.prevGroup"),type:"button"},dataset:{toggle:"tooltip",placement:"top"},action:{click:t=>this.nav.prevGroup(t)},content:Ol.icon("triangle-left")};return Ol.create({tag:"nav",attrs:{className:"panel-nav"},content:[e,this.labels,t]})}get isTabbed(){return"tabbed"===this.panelDisplay}navActions(){const t={},e=this.currentPanel.parentElement,n=this.labels.firstChild,o=this.currentPanel.parentElement.childNodes;this.activePanelIndex=Yi(this.currentPanel,e);let i={nav:0,panel:0},r={...i};const s=t=>{const e=n.children;return Ol.removeClasses(o,"active-panel"),Ol.removeClasses(e,"active-tab"),this.currentPanel=o[t],this.currentPanel.classList.add("active-panel"),e[t].classList.add("active-tab"),this.currentPanel},a=({offset:t,reset:o,duration:i=k,animate:s=!this.isTabbed})=>{const a=[ca(r.panel),ca(t.panel)],l=[ca(r.nav),ca(this.isTabbed?0:t.nav)];if(o){const[t]=a,[e]=l;a.push(t),l.push(e)}const c={easing:"ease-in-out",duration:s?i:0,fill:"forwards"},d=e.animate(a,c);n.animate(l,c);const h=()=>{this.panelsWrap.style.height=Ol.getStyle(this.currentPanel,"height"),d.removeEventListener("finish",h),o||(r=t)};d.addEventListener("finish",h)};return t.setTranslateX=(t,o=!0)=>{var r;r=t||this.activePanelIndex,i={nav:-n.offsetWidth*r,panel:-e.offsetWidth*r},a({offset:i,animate:o})},t.refresh=e=>{void 0!==e&&(this.activePanelIndex=e,s(e)),this.resizePanels(),t.setTranslateX(this.activePanelIndex,!1)},t.nextGroup=()=>{const t=this.activePanelIndex+1;if(t!==o.length){const e=s(t);i={nav:-n.offsetWidth*t,panel:-e.offsetLeft},a({offset:i}),this.activePanelIndex++}else i={nav:r.nav-8,panel:r.panel-8},a({offset:i,reset:!0});return this.currentPanel},t.prevGroup=()=>{if(0!==this.activePanelIndex){const t=this.activePanelIndex-1,e=s(t);i={nav:-n.offsetWidth*t,panel:-e.offsetLeft},a({offset:i}),this.activePanelIndex--}else i={nav:8,panel:8},a({offset:i,reset:!0})},t}}const ha={getStyle:(t,e=!1)=>{let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n},fadeOut:(t,e=250)=>{const n=1/(e/60);t.style.opacity=1,function e(){const o=Number(t.style.opacity)-n;o>0?(t.style.opacity=o,window.requestAnimationFrame(e)):t.remove()}()},slideDown:(t,e=250,n=!1)=>{t.style.display="block";const o=ha.getStyle(t),i=parseInt(o.height,10),r=i/(e/60);t.style.height="0px",function e(){const o=parseFloat(t.style.height),s=o+r;o<i?(t.style.height=s+"px",window.requestAnimationFrame(e)):(t.style.height="auto",n&&n(t))}()},slideUp:(t,e=250,n=!1)=>{const o=ha.getStyle(t),i=parseInt(o.height),r=o.overflow;t.style.overflow="hidden",t.style.height=i+"px";const s=o.minHeight;t.style.minHeight="auto";const a=parseFloat(i/(e/60)).toFixed(2);!function e(){const o=parseInt(t.style.height,10)-a;o>0?(t.style.height=o+"px",window.requestAnimationFrame(e)):(t.style.overflow=r,t.style.display="none",t.style.minHeight=s,delete t.style.height,n&&n(t))}()},slideToggle:(t,e=250,n="none"===ha.getStyle(t,"display"))=>{n?ha.slideDown(t,e):ha.slideUp(t,e)}},ua="f-autocomplete",pa="highlight-component";let ma,ga=Date.now();const fa=({name:t,id:e,...n})=>["config.label","attrs.id","meta.id"].reduce(((t,e)=>(t||(t=n.get(e)),t)),null)||"external"===t&&((...t)=>l.get(t.join("."))||Ui(t.join(" ")))(t,e);class va{constructor(t,e,n){this.key=t,this.className=t.replace(/\./g,"-"),this.value=e,this.events=[],this.i18nKey=n,this.build()}build(){const t=t=>{const e=this.list,n=this.getActiveOption();let o=new Map([[38,()=>{const t=this.getPreviousOption(n);t&&this.selectOption(t)}],[40,()=>{const t=this.getNextOption(n);t&&this.selectOption(t)}],[13,()=>{n&&(this.selectOption(n),this.setValue(n),"none"===e.style.display?this.showList(n):this.hideList()),t.preventDefault()}],[27,()=>{this.hideList()}]]).get(t.keyCode);return o||(o=()=>!1),o()},e={focus:({target:e})=>{this.updateOptions(),e.parentElement.classList.add(`${this.className}-focused`);const n=Ol.toggleElementsByStr(this.list.querySelectorAll("li"),e.value);e.addEventListener("keydown",t);const o=this.list.querySelector(".active-option")||n[0];this.showList(o)},blur:({target:e})=>{e.parentElement.classList.remove(`${this.className}-focused`),e.removeEventListener("keydown",t),this.hideList()},input:t=>{const e=Ol.toggleElementsByStr(this.list.querySelectorAll("li"),t.target.value);if(0===t.target.value.length&&this.clearValue(),0===e.length)this.hideList();else{const t=this.getActiveOption()||e[0];this.showList(t)}this.hiddenField.value=t.target.value,this.value=t.target.value,this.runEvent("onChange",{target:this.hiddenField})}};return this.displayField=Ol.create({tag:"input",autocomplete:"off",action:e,attrs:{type:"text",className:`${ua}-display-field`,value:this.label||this.value,placeholder:l.get(`${this.i18nKey}.${this.key}.placeholder`)}}),this.hiddenField=Ol.create({tag:"input",attrs:{type:"hidden",className:this.className,value:this.value}}),this.list=Ol.create({tag:"ul",attrs:{className:`${ua}-list`}}),this.dom=Ol.create({children:[this.displayField,this.hiddenField,this.list],className:this.className,action:{onRender:()=>{const t=this.value&&bl.getAddress(this.value);this.label=t&&fa(t),this.label&&(this.displayField.value=this.label),this.updateOptions()}}}),this.dom}updateOptions(){const t=Date.now();t-ga>T&&(Ol.empty(this.list),this.generateOptions(),ga=t);(ma||this.generateOptions()).forEach((t=>this.list.appendChild(t)))}generateOptions(){const t=(t=>{const e=[],n=bl.flatList();return Object.entries(n).map((([n,o])=>{const i=fa(o);if(i){const r={tag:"span",content:` ${Ui(o.name)}`,className:"component-type"},s=`${o.name}.${i}`;e.push(s);const a=((t,e)=>t.reduce(((t,n)=>t+(n===e)),0))(e,s),l={tag:"span",content:a>1&&`(${a})`,className:"component-label-count"};return Ol.makeOption([n,[`${i} `,l,r]],t)}})).filter(Boolean)})(),e=t=>{const e=`${ua}-list-item`;return t.classList.contains(e)||(t=t.parentElement),t};return ma=t.map((t=>{const n=t.value;let[o]=t.label;o=o.trim();const i={tag:"li",children:t.label,dataset:{value:n,label:o},className:`${ua}-list-item`,action:{mousedown:({target:t})=>{t=e(t),this.setValue(t),this.selectOption(t),this.hideList()},mouseover:({target:t})=>{t=e(t),this.removeHighlight(),this.highlightComponent(t)}}};return Ol.create(i)})),ma}hideList(t=this.list){ha.slideUp(t,k),this.removeHighlight()}showList(t,e=this.list){this.selectOption(t),ha.slideDown(e,k)}getActiveOption(t=this.list){const e=t.getElementsByClassName("active-option")[0];return e&&"none"!==e.style.display?e:null}getPreviousOption(t){let e=t;do{e=e?e.previousSibling:null}while(null!=e&&"none"===e.style.display);return e}getNextOption(t){let e=t;do{e=e?e.nextSibling:null}while(null!=e&&"none"===e.style.display);return e}selectOption(t,e=this.list){const n=e.querySelectorAll("li");for(let o=0;o<n.length;o++){const{dataset:{value:t}}=n[o];if(n[o].classList.remove("active-option"),t){const e=bl.getAddress(t);e.dom&&e.dom.classList.remove(pa)}}t&&(t.classList.add("active-option"),this.highlightComponent(t))}removeHighlight(){const t=document.getElementsByClassName(pa);for(let e=0;e<t.length;e++)t[e].classList.remove(pa)}highlightComponent(t){const{dataset:{value:e}}=t;if(e){const t=bl.getAddress(e);t.dom&&t.dom.classList.add(pa)}}clearValue(){this.selectOption(null),this.displayField.value="",this.hiddenField.value="",this.value="",this.runEvent("onChange",{target:this.hiddenField})}setValue(t){const{label:e,value:n}=t.dataset;this.displayField.value=e,this.hiddenField.value=n,this.value=n,this.runEvent("onChange",{target:this.hiddenField})}addEvent(t,e){this.events.push([t,e])}runEvent(t,e){this.events.forEach((([n,o])=>{n===t&&o(e)}))}}const ba=(t,e)=>{const n=(t=>{const e=$i(t),n={"field.property":H,...V},o=e?(i=t,bl.getAddress(i).getData()):n[t];var i;return Object.keys(o).reduce(((t,e)=>(t[e]=e,t)),{})})(t);return Object.entries(n).reduce(((n,[o,i])=>{if("id"!==o){const r={tag:"option",content:l.get(`${t}.${o}`)||o.toLowerCase(),attrs:{value:i}};e===i&&(r.attrs.selected=!0),n.push(Ol.create(r))}return n}),[])},ya=(t,e)=>{Ol.empty(t),e.forEach((e=>t.add(e)))},wa=({key:t,value:e,type:n="text",checked:o})=>{const i={tag:"input",attrs:{type:n,value:e,placeholder:l.get(`${t}.placeholder`)||Ui(t)},className:t.replace(/\./g,"-"),config:{}};return o&&(i.attrs.checked=!0),i},xa=t=>{const e=l.get(t);if(e)return e;const n=t.split(".");return l.get(n[n.length-1])},Ca={autocomplete:(t,e,n)=>new va(t,e,n),string:(t,e)=>wa({key:t,value:e}),boolean:(t,e)=>wa({key:t,value:e,type:"selected"===t?"radio":"checkbox",checked:e}),number:(t,e)=>wa({key:t,value:e,type:"number"}),array:(t,e=[])=>({tag:"select",attrs:{placeholder:xa(`placeholder.${t}`)},className:t.replace(/\./g,"-"),options:e}),object:t=>Object.entries(t).map((([t,e])=>Ca[Ol.childType(e)](t,e)))},Ea=["selected","checked"],Sa={boolean:(t,e)=>({click:({target:{checked:n}})=>{var o,i;"radio"===(null==(i=null==(o=e.data)?void 0:o.attrs)?void 0:i.type)&&e.set("options",e.data.options.map((t=>({...t,selected:!1})))),e.set(t,n),e.updatePreview()}}),string:(t,e)=>({input:({target:{value:n}})=>{e.set(t,n)}}),number:(t,e)=>({input:({target:{value:n}})=>{e.set(t,Number(n)),e.updatePreview()}}),array:(t,e)=>({change:({target:{value:n}})=>{e.set(t,n),e.updatePreview()}}),object:()=>({})};class Oa{constructor({key:t,data:e,index:o,field:i}){n(this,"generateConditionFields",((t,e)=>{const n={tag:"label",className:`condition-label ${t}-condition-label`,content:l.get(t)||t};return e.map(((e,o)=>{const i=[],r=Object.entries(e).map((([e,n])=>{const r=this.conditionInput(e,n,t,o);return r&&i.push([r.className,n.trim()].filter(Boolean).join("-")),r})).filter(Boolean),s=Zi(r,$.map((t=>`condition-${t}`)),"className||dom.className");return this.processConditionUIState(s),o||s.unshift(n),this.itemFieldGroups.push(s),{children:s,className:`f-condition-row ${t}-condition-row ${i.join(" ")}`}}))})),n(this,"processConditionUIState",(t=>{const e=e=>(e=e.split("|"),t.filter((t=>e.includes(t.className)))),n=t=>{t=Array.isArray(t)?t:[t];const e=setTimeout((()=>{t.forEach((t=>{t.dom&&(t=t.dom),t.style.display="none"})),clearTimeout(e)}),D)},o=t=>{t=Array.isArray(t)?t:[t];const e=setTimeout((()=>{t.forEach((t=>{t.dom&&(t=t.dom),t.removeAttribute("style")})),clearTimeout(e)}),D)},i=new Map([["condition-source",t=>{const i=e("condition-sourceProperty"),r=i[0],s=$i(t.value)?t.value:"field.property",a=ba(s,r.value);return ya(r,a),t.value?o(i):n(i)}],["condition-target",t=>{const i=e("condition-targetProperty");return Li(t.value)&&t.value?o(i):n(i)}],["condition-sourceProperty",t=>{const i=e("condition-comparison|condition-targetProperty|condition-target"),r=t.value;return(t=>/^is|^has/.test(t))(r.substring(r.lastIndexOf(".")+1,r.length))?n(i):o(i)}]]);t.forEach((t=>{const e=i.get(t.className);e&&e(t)}))})),n(this,"conditionInput",((t,e,n,o)=>{const i=this.field,r=`${this.itemKey}.${n}.${o}`,s=`${this.field.id}.${r}`,a=`${i.name}s.${s}.${t}`,l=(t,e,n)=>{const o=ba(n||t,e),i=Ca.array(`condition.${t}`);i.action={change:c,onRender:t=>c({target:t})};const r=Ol.create(i);return ya(r,o),r},c=({target:t})=>{const e=t.closest(".f-condition-row"),n=new RegExp(`${t.className}(?:\\S?)+`,"gm");e.className=e.className.replace(n,""),e.classList.add([t.className,t.value].filter(Boolean).join("-"));const o={dataPath:a,value:t.value,src:t};Cl.formeoUpdated(o),bl.setAddress(a,t.value);const i=t.closest(".f-condition-row"),r=Yi(i);this.processConditionUIState(this.itemFieldGroups[r])},d={comparison:t=>l("comparison",t),logical:t=>l("logical",t),source:(t,e="source")=>{const o=Ca.autocomplete(`condition.${e}`,t,n);return bl.setConditionMap(t,i),o.addEvent("onChange",(t=>{bl.removeConditionMap(bl.getAddress(a)),c(t),bl.setConditionMap(t.target.value,i)})),o},sourceProperty:t=>l("sourceProperty",t,"field.property"),targetProperty:t=>l("targetProperty",t,"field.property"),target:t=>d.source(t,"target"),value:t=>{const e=Ca.string("condition.value",t);return e.action={input:c},Ol.create(e)},assignment:t=>l("assignment",t)};if(d[t])return d[t](e)})),this.itemValues=Zi(Object.entries(e),Ea,"0");const[r,s]=t.split(".");this.field=i,this.itemKey=t,this.itemIndex=o,this.panelName=r,this.isDisabled=i.isDisabledProp(s,r),this.isHidden=this.isDisabled&&i.config.panels[r].hideDisabled,this.isLocked=i.isLockedProp(s,r),this.dom=Ol.create({tag:"li",className:[`field-${t.replace(/\./g,"-")}`,"prop-wrap",this.isHidden&&"hidden-property"],children:{className:"field-prop",children:[this.itemInputs,this.itemControls]}})}get itemInputs(){this.itemFieldGroups=[];return{className:`${this.panelName}-prop-inputs prop-inputs f-input-group`,children:this.itemValues.map((([t,e])=>{let n="conditions"===this.panelName?this.generateConditionFields(t,e):this.itemInput(t,e);return["selected","checked"].includes(t)&&(n={className:"f-addon",children:n}),n}))}}get itemControls(){if(this.isLocked){return{className:`${this.panelName}-prop-controls prop-controls`,content:[]}}const t={tag:"button",attrs:{type:"button",className:"prop-remove prop-control"},action:{click:()=>{ha.slideUp(this.dom,250,(t=>{this.field.remove(this.itemKey),Ol.remove(t),this.field.resizePanelWrap()}))}},content:Ol.icon("remove")};return{className:`${this.panelName}-prop-controls prop-controls`,content:[t]}}itemInput(t,e){const n=Ol.childType(e)||"string",o=Object.assign({},{config:{},attrs:{}},Ca[n](t,e)),i=this.itemKey.replace(/.\d+$/,(e=>`${e}.${t}`)),r=i.split(".").filter(isNaN).join("."),[s,a]=[[...this.itemKey.split("."),t],[t]].map((t=>[this.field.id,...t].filter(Boolean).join("-")));return o.config=Object.assign({},o.config,{label:"options"!==this.panelName&&xa(r),labelAfter:!1}),o.attrs=Object.assign({},o.attrs,{name:"checkbox"===o.attrs.type?`${a}[]`:a,id:s,disabled:this.isDisabled,locked:this.isLocked}),o.action={...Sa[n](i,this.field)},o}}class Na{constructor(t,e,o){n(this,"addAttribute",((t,e)=>{const n=Gi(t),o=`attrs.${n}`;l.current[o]||l.put(o,Qi(t)),"string"==typeof e&&["true","false"].includes(e)&&(e=JSON.parse(e)),this.field.set(`attrs.${t}`,e);const i=this.props.querySelector(`.field-attrs-${n}`),r=new Oa({key:o,data:{[n]:e},field:this.field});i?this.props.replaceChild(r.dom,i):this.props.appendChild(r.dom),this.field.resizePanelWrap()})),n(this,"addOption",(()=>{const t=this.field.data.meta.id,e=this.field.get("options"),n="select"===t?"option":t,o=l.get("newOptionLabel",{type:n})||"New Option",i=`options.${this.data.length}`,r={...e.length?Bi(e[e.length-1]):{},label:o,value:Gi(o)},s=new Oa({key:i,data:r,field:this.field,index:this.props.children.length});this.editPanelItems.push(s),this.props.appendChild(s.dom),this.field.set(i,r),this.field.resizePanelWrap()})),n(this,"addCondition",(t=>{const e=`conditions.${this.field.get("conditions").length}`,n=this.props.querySelector(`.field-${e.replace(".","-")}`),o=new Oa({key:e,data:t.template,field:this.field});n?this.props.replaceChild(o.dom,n):this.props.appendChild(o.dom),this.field.set(e,t.template),this.field.resizePanelWrap()})),this.type=Ol.childType(t),this.data="object"===this.type?Object.entries(t):t,this.name=e,this.field=o,this.panelConfig=this.getPanelConfig(this.data)}getPanelConfig(t){return this.props=this.createProps(t),this.editButtons=this.createEditButtons(),{id:`${this.field.id}-${this.name}-panel`,config:{label:l.get(`panel.label.${this.name}`)},attrs:{className:`f-panel ${this.name}-panel`},children:[this.props,this.editButtons]}}createProps(t){this.editPanelItems=Array.from(t).map(((t,e)=>{const n="array"===this.type,o=[this.name,n?String(e):t[0]].join("."),i=n?t:{[t[0]]:t[1]};return new Oa({key:o,data:i,field:this.field})}));const e={tag:"ul",attrs:{className:["field-edit-group",`field-edit-${this.name}`]},editGroup:this.name,isSortable:"options"===this.name,content:this.editPanelItems};return Ol.create(e)}createEditButtons(){const t=this,e=this.name,n=l.get(`panelEditButtons.${e}`),o={attrs:t.addAttribute,options:t.addOption,conditions:t.addCondition};return{className:"panel-action-buttons",content:[{...Ol.btnTemplate({content:n,title:n}),className:`add-${e}`,action:{click:n=>{const i={btnCoords:Ol.coords(n.target),addAction:o[e]};"attrs"===e&&(i.isDisabled=t.field.isDisabledProp,i.isLocked=t.field.isLockedProp,i.message={attr:l.get(`action.add.${e}.attr`),value:l.get(`action.add.${e}.value`)});const r=Ui(e),s=new window.CustomEvent(`onAdd${r}`,{detail:i});aa.add[e](i),document.dispatchEvent(s)}}}]}}}class Ma extends nr{constructor(t,e={},o){super(t,{...e,id:e.id||Ai()}),n(this,"mutationHandler",(t=>t.map((t=>{})))),n(this,"remove",(t=>{if(t){const e=t.split("."),n=e.pop(),o=this.get(e);return Array.isArray(o)?Xi(n)?o.splice(Number(n),1):this.set(e,o.filter((t=>t!==n))):delete o[n],o}if("stage"===this.name)return null;const e=this.parent,n=this.children;return Ji(n,(t=>t.remove())),this.dom.parentElement.removeChild(this.dom),((t,e)=>{const n=t.indexOf(e);-1!==n&&t.splice(n,1)})(bl.getAddress(`${e.name}s.${e.id}.children`),this.id),e.children.length||e.emptyClass(),"row"===e.name&&e.autoColumnWidths(),bl[`${this.name}s`].delete(this.id)})),n(this,"emptyClass",(()=>this.dom.classList.toggle("empty",!this.children.length))),n(this,"removeClasses",(t=>{const e={string:()=>this.dom.classList.remove(t),array:()=>t.map((t=>this.dom.classList.remove(t)))};return e.object=e.string,e[Ol.childType(t)](this.dom)})),n(this,"loadChildren",((t=this.data.children)=>t.map((t=>this.addChild({id:t}))))),n(this,"saveChildOrder",(()=>{if(this.render)return;const t=this.children.map((({id:t})=>t));return this.set("children",t),t})),n(this,"onSort",(()=>this.saveChildOrder())),n(this,"onEnd",(({to:{parentElement:t},from:{parentElement:e}})=>{null==t||t.classList.remove(`hovering-${_i(t)}`),null==e||e.classList.remove(`hovering-${_i(e)}`)})),n(this,"runConditions",(()=>{const t=this.get("conditions");if(!(null==t?void 0:t.length))return null;return t.map((t=>{const e=this.processConditions(t.if),n=this.processResults(t.then);return e.map((t=>this.evaluateConditions(t)&&this.execResults(n)))}))})),n(this,"value",((t,e)=>{const n=t.split("."),o=this.getComponent(t),i=o&&n.slice(2,n.length).join(".");return[!o,!i,!H[i]].some(Boolean)?t:e?o.set(H[i],e):o.get(H[i])})),n(this,"getResult",(t=>({"=":(t,e,n)=>t.set(e,n)}[t]))),n(this,"processResults",(t=>t.map((({operator:t,target:e,value:n})=>{const o=this.getComponent(e);return{target:o,propertyPath:o&&e.split(".").slice(2,e.length).join("."),action:this.getResult(t),value:this.value(n)}})))),n(this,"execResults",(t=>{const e=t.map((t=>this.execResult(t)));return Promise.all(e)})),n(this,"execResult",(({target:t,action:e,value:n,propertyPath:o})=>new Promise(((o,i)=>{try{return o(e(t,n))}catch(r){return i(r)}})))),n(this,"cloneData",(()=>{const t={...ki(this.data),id:Ai()};return"field"!==this.name&&(t.children=[]),t})),n(this,"clone",((t=this.parent)=>{const e=t.addChild(this.cloneData(),this.index+1);return"field"!==this.name&&this.cloneChildren(e),"column"===this.name&&t.autoColumnWidths(),e})),n(this,"cloneChildren",(t=>{this.children.forEach((e=>e&&e.clone(t)))})),n(this,"createChildWrap",(t=>Ol.create({tag:"ul",attrs:{className:"children"},children:t}))),this.id=this.data.id,this.name=t,this.config=bl[`${this.name}s`].config,Di(this.config,e.config),this.dataPath=`${this.name}s.${this.id}.`,this.observer=new MutationObserver(this.mutationHandler),this.render=o}observe(t){this.observer.disconnect(),this.observer.observe(t,{childList:!0})}get js(){return this.data}get json(){return this.data}empty(){const t=this.children.map((t=>t.remove()));return this.data.children=this.data.children.filter((e=>-1===t.indexOf(e))),this.dom.classList.add("empty"),t}getActionButtons(){let t="97px";const e=`hovering-${this.name}`;return{className:`${this.name}-actions group-actions`,action:{onRender:e=>t=24*e.getElementsByTagName("button").length+1+"px",mouseenter:({target:n})=>{this.dom.classList.add(e),n.style["row"===this.name?"height":"width"]=t},mouseleave:({target:t})=>{this.dom.classList.remove(e),t.removeAttribute("style")}},children:{className:"action-btn-wrap",children:this.buttons}}}toggleEdit(t=!this.isEditing){this.isEditing=t;const e=this.dom,n=`editing-${this.name}`,o=this.dom.querySelector(`.${this.name}-edit`);ha.slideToggle(o,D,t),"field"===this.name&&(ha.slideToggle(this.preview,D,!t),e.parentElement.classList.toggle(`column-${n}`,t)),e.classList.toggle(n,t)}get buttons(){const t=this,e=t=>t.map((t=>Ol.icon(t))),n={handle:(t=["move","handle"])=>({...Ol.btnTemplate({content:e(t)}),className:["item-handle"],meta:{id:"handle"}}),edit:(n=["edit"])=>({...Ol.btnTemplate({content:e(n)}),className:["item-edit-toggle"],meta:{id:"edit"},action:{click:e=>{t.toggleEdit()}}}),remove:(n=["remove"])=>({...Ol.btnTemplate({content:e(n)}),className:["item-remove"],meta:{id:"remove"},action:{click:(e,n)=>{ha.slideUp(t.dom,D,(()=>{if("column"===t.name){t.parent.autoColumnWidths(),t.remove()}else t.remove()}))}}}),clone:(t=["copy"])=>({...Ol.btnTemplate({content:e(t)}),className:["item-clone"],meta:{id:"clone"},action:{click:()=>this.clone()}})};return this.config.actionButtons.buttons.map((t=>{const[e,...o]=t.split("|"),i=o.length?o:void 0;return n[e]&&n[e](i)||t}))}get index(){return Yi(this.dom)}get parentType(){return N.get(this.name)}get parent(){const t=this.parentType;if(!this.dom||!t)return null;const e=this.dom.closest(`.${y[t]}`);return e&&Ol.asComponent(e)}get children(){if(!this.dom)return[];const t=this.domChildren,e=O.get(this.name);return Ki(t,(t=>bl.getAddress(`${e}s.${t.id}`))).filter(Boolean)}get domChildren(){const t=this.dom.querySelector(".children");return t?t.children:[]}addChild(t={},e=this.domChildren.length){"object"!=typeof t&&(t={id:t});const n=this.dom.querySelector(".children"),{id:o=Ai()}=t,i=O.get(this.name);if(!i)return null;const r=`${i}s`,s=bl.getAddress(`${r}.${o}`)||bl[r].add(o,t);n.insertBefore(s.dom,n.children[e]);const a=s.get("children");return a&&a.length&&s.loadChildren(a),this.removeClasses("empty"),this.saveChildOrder(),s}onAdd({from:t,to:e,item:n,newIndex:o}){var i;const r=this;t.classList.contains(h)||(t=t.parentElement);const s=_i(t),a=_i(e.parentElement),l=new Map([[-2,()=>{const t=r.addChild({},o).addChild();return t.addChild.bind(t)}],[-1,()=>{const t=r.addChild({},o);return t.addChild.bind(t)}],[0,()=>r.addChild.bind(r)],[1,t=>{const e=Yi(r.dom);return()=>r.parent.addChild(t,e+1)}],[2,t=>()=>r.parent.parent.addChild(t)]]),c={controls:()=>{const{controlData:t}=Wa.get(n.id),{meta:{id:e}}=t,i=e.startsWith("layout-")?e.replace(/^layout-/,""):"field",s=Fi({stage:{row:0,column:-1,field:-2},row:{row:1,column:0,field:-1},column:{row:2,column:1,field:0},field:1},`${r.name}.${i}`),a=l.get(s)();Ol.remove(n);return a(t,o)},row:()=>{const t=(l.get({stage:-1,row:0,column:1}[a])||Vi)();return null==t?void 0:t({id:n.id},o)},column:()=>{const t=(l.get({stage:-2,row:-1}[a])||Vi)();return null==t?void 0:t(n.id)}},d=null==(i=c[s])?void 0:i.call(c,n,o);return r.saveChildOrder(),r.removeClasses("empty"),d}onRemove({from:{parentElement:t}}){return t.classList.contains(m)&&t.classList.remove("column-editing-field"),"stage"===this.name||this.children.length?(this.emptyClass(),this.saveChildOrder()):this.remove()}onRender(){const{events:t}=this.config;if(!t)return null;t.onRender&&Ol.onRender(this.dom,t.onRender)}set config(t){const e=Fi(this.data,"meta.id"),n=[Fi(t,"all"),e&&Fi(t,e),Fi(t,this.id)].reduce(((t,e)=>e?Di(t,e):t),this.configVal);this.configVal=n}get config(){return this.configVal}getComponent(t){const[e,n]=t.split("."),o=bl[e];return n===this.id?this:o&&o.get(n)}}class _a extends Ma{constructor(t=Object.create(null)){super("field",{conditions:[{if:[{source:"",sourceProperty:"",comparison:"",target:"",targetProperty:""}],then:[{target:"",targetProperty:"",assignment:"",value:""}]}],...t}),n(this,"updateConditionsPanel",(()=>{const t=setTimeout((()=>{const e=this.editPanels.find((({name:t})=>"conditions"===t));if(!e)return null;const n=e.createProps(),o=this.dom.querySelector(".field-edit-conditions");o.parentElement.replaceChild(n,o),clearTimeout(t)}),D)})),n(this,"updatePreview",Hi((()=>{if(!this.preview.parentElement)return null;this.updateLabel();const t=Ol.create(this.fieldPreview(),!0);this.preview.parentElement.replaceChild(t,this.preview),this.preview=t}),D)),n(this,"isDisabledProp",((t,e="attrs")=>{const n=this.config.panels[e];if(!n)return!1;return n.disabled.concat(this.get(`config.disabled${Ui(e)}`)).includes(t)})),n(this,"isLockedProp",((t,e="attrs")=>{const n=this.config.panels[e];if(!n)return!1;return n.locked.concat(this.get(`config.locked${Ui(e)}`)).includes(t)})),this.label=Ol.create(this.labelConfig),this.preview=Ol.create(this.fieldPreview()),this.editPanels=[];let e={tag:"li",attrs:{className:g},id:this.id,children:[this.label,this.getActionButtons(),this.fieldEdit,this.preview],panelNav:this.panelNav,dataset:{hoverTag:l.get("field")},action:{mouseenter:()=>this.dom.classList.add(`hovering-${this.name}`),mouseleave:()=>this.dom.classList.remove(`hovering-${this.name}`)}};e=Ol.create(e),this.observe(e),this.dom=e,this.isEditing=!1,this.onRender(e)}get labelConfig(){if(!!this.get("config.hideLabel"))return;const t=this.get("config.editorLabel")||this.get("config.label"),e=this.get("attrs.required"),n=this.config.label.disableHTML;return{className:"prev-label",children:[{...(()=>{const e={tag:"label",attrs:{}};return n?(e.tag="input",e.attrs.value=t,e):(e.attrs.contenteditable=!0,e.children=t,e)})(),action:{input:({target:{innerHTML:t,innerText:e,value:o}})=>{super.set("config.label",n?o:t);const i=bl.getConditionMap(`fields.${this.id}`);if(i)return i.updateConditionSourceLabel(`${this.name}s.${this.id}`,n?o:e)}}},e&&Ol.requiredMark()]}}updateConditionSourceLabel(t,e){const n=this.editPanels.find((({name:t})=>"conditions"===t));if(!n)return null;n.editPanelItems.forEach((({itemFieldGroups:n})=>{n.forEach((n=>{const o=n.find((e=>e.value===t));o&&(o.displayField.value=e)}))}))}set(...t){const[e,n]=t,o=super.set(e,n);return this.updatePreview(),o}updateLabel(){if(!this.label)return null;const t=Ol.create(this.labelConfig);this.label.parentElement.replaceChild(t,this.label),this.label=t}get fieldEdit(){this.editPanels=[];const t=["object","array"],e=["config","meta","action","events",...this.config.panels.disabled],n={className:["field-edit","slide-toggle","formeo-panels-wrap"]};ji([...this.config.panels.order,...Object.keys(this.data)]).filter((t=>!e.includes(t))).forEach((e=>{const n=this.get(e),o=Ol.childType(n);if(t.includes(o)){const t=new Na(n,e,this);this.editPanels.push(t)}}));const o={panels:this.editPanels.map((({panelConfig:t})=>t)),id:this.id,displayType:"auto"},i=this.editPanels.length;return i&&(this.panels=new da(o),n.className.push(`panel-count-${i}`),n.content=[this.panels.panelNav,this.panels.panelsWrap],this.panelNav=this.panels.nav,this.resizePanelWrap=this.panels.nav.refresh,n.action={onRender:()=>{this.resizePanelWrap();const t=this.dom,e=t.querySelector(".item-edit-toggle"),n=t.querySelector(".field-actions"),o=n.getElementsByTagName("button");n.style.maxWidth=o.length*o[0].clientWidth+"px",Ol.remove(e)}}),n}fieldPreview(){var t;const e=ki(this.data);e.id=`prev-${this.id}`,(null==(t=this.data)?void 0:t.config.editableContent)&&(e.attrs=Object.assign({},e.attrs,{contenteditable:!0}));return{attrs:{className:"field-preview",style:this.isEditing&&"display: none;"},content:Ol.create(e,!0),action:{change:t=>{const{target:e}=t,{checked:n,type:o}=e;if(["checkbox","radio"].includes(o)){const t=+e.id.split("-").pop();"radio"===o&&this.set("options",this.get("options").map((t=>({...t,selected:!1}))));const i="checkbox"===o?"checked":"selected";this.set(`options.${t}.${i}`,n)}},click:t=>{"true"===t.target.contentEditable&&t.preventDefault()},input:t=>{["input","meter","progress","button"].includes(this.data.tag)&&super.set("attrs.value",t.target.value),t.target.contentEditable&&super.set("content",t.target.innerHTML)}}}}}const ja={js:[],css:[]},Aa=t=>new Promise(((e,n)=>{if(ja.js.includes(t))return e(t);const o=Ol.create({tag:"script",attrs:{type:"text/javascript",async:!0,src:`//${(void 0).src}`},action:{load:()=>{ja.js.push(t),e(t)},error:()=>n(new Error(`${(void 0).src} failed to load.`))}}),i=document.getElementsByTagName("script")[0];i.parentNode.insertBefore(o,i)})),Da=t=>{const e=(t=Array.isArray(t)?t:[t]).map((t=>new Promise(((e,n)=>{if(ja.css.includes(t))return e(t);const o=Ol.create({tag:"link",attrs:{rel:"preload",href:t,as:"style"},action:{load:function n(){this.removeEventListener("load",n),this.rel="stylesheet",ja.css.push(t),e(t)},error:()=>n(new Error(`${(void 0).src} failed to load.`))}});document.head.appendChild(o)}))));return Promise.all(e)},ka=t=>("string"==typeof t?Promise.resolve(t):t.text()).then((t=>{const e="formeo-sprite";let n=document.getElementById(e);return n||(n=Ol.create({id:e,children:t,attrs:{hidden:!0,style:"display: none;"}}),document.body.insertBefore(n,document.body.childNodes[0])),n})),Ta=(t,e,n=Ii)=>new Promise(((o,i)=>fetch(t).then((t=>o(e?e(t):t))).catch((t=>i(new Error(n(t))))))),za={js:Aa,css:Da};class Pa{constructor({events:t={},dependencies:e={},...o}={}){n(this,"parsedHtml",(t=>{const e=document.createElement("textarea");return e.innerHTML=t,e.textContent})),this.events=t,this.controlData=o,this.depsLoaded=this.fetchDependencies(e)}onRenderPreview(){}fetchDependencies(t,e=!0){const n=Object.entries(t).map((([t,e])=>za[t](e)));return Promise.all(n)}on(t){const e={prerender:Vi,renderComponent:Vi,render:t=>{const e=()=>{this.onRender&&this.onRender(t)};this.depsLoaded.then((()=>{e()}))}};return t?e[t]:e}static i18n(t,e){const n=this.definition;let o=n.i18n||{};o=o[o.locale]||o.default||o;const i="object"==typeof o?o[t]:o;if(i)return i;let r=n.i18n;return"object"==typeof r&&(r=r[t]),o.get(r,e)}}const La=[{config:{label:"row"},meta:{group:"layout",icon:"rows",id:"layout-row"}},{config:{label:"column"},meta:{group:"layout",icon:"columns",id:"layout-column"}}];const $a=(t,e=3)=>Array.from({length:e},((t,e)=>e+1)).map((e=>{const n="checkbox"===t?"checked":"selected";return{label:l.get("labelCount",{label:Ui(t),count:e}),value:`${t}-${e}`,[n]:!e}}));const Ha=[class extends Pa{constructor(){super({tag:"button",attrs:{className:[{label:"grouped",value:"f-btn-group"},{label:"ungrouped",value:"f-field-group"}]},config:{label:l.get("controls.form.button"),hideLabel:!0},meta:{group:"common",icon:"button",id:"button"},options:[{label:l.get("button"),type:["button","submit","reset"].map(((t,e)=>({label:t,type:t}))),className:[{label:"default",value:"",selected:!0},{label:"primary",value:"primary"},{label:"danger",value:"error"},{label:"success",value:"success"},{label:"warning",value:"warning"}]}]})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"date",required:!1,className:""},config:{label:l.get("controls.form.input.date")},meta:{group:"common",icon:"calendar",id:"date-input"}})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"hidden",value:""},config:{label:l.get("hidden"),hideLabel:!0},meta:{group:"common",icon:"hidden",id:"hidden"}})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"number",required:!1,className:""},config:{label:l.get("number")},meta:{group:"common",icon:"hash",id:"number"}})}},class extends Pa{constructor(){super({tag:"textarea",config:{label:l.get("controls.form.textarea")},meta:{group:"common",icon:"textarea",id:"textarea"},attrs:{required:!1}})}},class extends Pa{constructor(){super({tag:"input",attrs:{required:!1,type:"text",className:""},config:{label:l.get("controls.form.input.text")},meta:{group:"common",icon:"text-input",id:"text-input"}})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"file",required:!1},config:{label:l.get("fileUpload")},meta:{group:"common",icon:"upload",id:"upload"}})}},class extends Pa{constructor(){super({tag:"select",config:{label:l.get("controls.form.select")},attrs:{required:!1,className:""},meta:{group:"common",icon:"select",id:"select"},options:$a("option")})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"checkbox",required:!1},config:{label:l.get("controls.form.checkbox-group"),disabledAttrs:["type"]},meta:{group:"common",icon:"checkbox",id:"checkbox"},options:$a("checkbox",1)})}},class extends Pa{constructor(){super({tag:"input",attrs:{type:"radio",required:!1},config:{label:l.get("controls.form.radio-group"),disabledAttrs:["type"]},meta:{group:"common",icon:"radio-group",id:"radio"},options:$a("radio")})}}],Va=Array.from(Array(5).keys()).slice(1).map((t=>`h${t}`)),Ia="controls.html.header";const Fa=[class extends Pa{constructor(){super({tag:Va[0],attrs:{tag:Va.map(((t,e)=>({label:t.toUpperCase(),value:t,selected:!e}))),className:""},config:{label:l.get(Ia),hideLabel:!0,editableContent:!0},meta:{group:"html",icon:"header",id:"html.header"},content:l.get(Ia)})}static get definition(){return{i18n:{header:"Header222"}}}get content(){return super.i18n(Ia)}},class extends Pa{constructor(){super({tag:"p",attrs:{className:""},config:{label:l.get("controls.html.paragraph"),hideLabel:!0,editableContent:!0},meta:{group:"html",icon:"paragraph",id:"paragraph"},content:"Leverage agile frameworks to provide a robust synopsis for high level overviews. Iterative approaches to corporate strategy foster collaborative thinking to further the overall value proposition. Organically grow the holistic world view of disruptive innovation via workplace diversity and empowerment."})}},class extends Pa{constructor(){super({tag:"hr",config:{label:l.get("controls.html.divider"),hideLabel:!0},meta:{group:"html",icon:"divider",id:"divider"}})}},class extends Pa{constructor(){super({tag:"textarea",config:{label:"WYSIWYG",editableContent:!0},meta:{group:"html",icon:"rich-text",id:"tinymce"},attrs:{required:!1},action:{onRender:t=>{t.id&&(this.textareaID=t.id,window.tinymce.remove("textarea#"+t.id),window.tinymce.init({selector:"textarea#"+t.id}))}}})}}],Ba=Object.freeze({sortable:!0,elementOrder:{},groupOrder:[],groups:[{id:"layout",label:"controls.groups.layout",elementOrder:["row","column"]},{id:"common",label:"controls.groups.form",elementOrder:["button","checkbox"]},{id:"html",label:"controls.groups.html",elementOrder:["header","block-text"]}],disable:{groups:[],elements:[],formActions:[]},elements:[],container:null,panels:{displayType:"slider"}}),Ra=[...Ha,...Fa,...La];const Wa=new class{constructor(){n(this,"applyControlEvents",(({clone:t})=>{const e=t.querySelector("button");Object.keys(this.controlEvents).map((t=>e.addEventListener(t,this.controlEvents[t])))})),n(this,"groupLabel",(t=>l.get(t)||t||"")),n(this,"addElement",(t=>{const e=Fi(this.get(t),"controlData"),{meta:{group:n,id:o}}=e,i={row:()=>hl.active.addChild(),column:()=>i.row().addChild(),field:t=>i.column().addChild(t)};return"layout"!==n?i.field(e):i[o.replace("layout-","")]()})),n(this,"applyOptions",((t={})=>{const{container:e,elements:n,groupOrder:o,...i}=Di(Ba,t);this.container=e,this.groupOrder=ji(o.concat(["common","html","layout"])),this.elements=n.concat(Ra),this.options=i})),this.data=new Map,this.controlEvents={focus:({target:t})=>{const e=t.closest(`.${h}`);return e&&this.panels.nav.refresh(Yi(e))},click:({target:t})=>this.addElement(t.parentElement.id)}}init(t,e=!1){return this.applyOptions(t),this.registerControls(),this.buildDOM(e),this}registerControls(){return this.controls=this.elements.map((t=>{const e="function"==typeof t,n=e?new t:new Pa(t),{controlData:{meta:o,config:i}}=n,r=e?i.label:l.get(i.label)||i.label,{id:s}=this.add(n),a={tag:"button",attrs:{type:"button"},content:[{tag:"span",className:"control-icon",children:Ol.icon(o.icon)},r],action:this.controlEvents};return n.dom=Ol.create({tag:"li",id:s,className:["field-control",`${o.group}-control`,`${o.id}-control`],content:a,meta:o}),n.dom})),this.controls}groupElements(){let t=this.options.groups.slice(),e=this.controls.slice(),n=[];const o=[];return t=Zi(t,this.groupOrder,"id"),t=t.filter((t=>Mi(t.id,this.options.disable.groups))),n=t.map((t=>{const n={tag:"ul",attrs:{className:h,id:`${t.id}-${h}`},config:{label:this.groupLabel(t.label)}};if(this.options.elementOrder[t.id]){const e=this.options.elementOrder[t.id],n=ji(e.concat(t.elementOrder));t.elementOrder=n}return e=Zi(e,t.elementOrder,"meta.id"),n.content=e.filter((e=>{const{controlData:n}=this.get(e.id),i=n.meta.id||"";let r=!0;return r=[Mi(i,this.options.disable.elements),n.meta.group===t.id,!o.includes(n.meta.id)].every((t=>!0===t)),r&&o.push(i),r})),n})),n}add(t=Object.create(null)){const{id:e,...n}=t,o=e||Ai(),i=ki(n);return this.data.set(o,i),{id:o,...i}}get(t){return this.data.get(t)}formActions(){if(!0===this.options.disable.formActions)return null;const t={...Ol.btnTemplate({content:[Ol.icon("bin"),l.get("clear")],title:l.get("clearAll")}),className:["clear-form"],action:{click:t=>{ul.size?(Cl.confirmClearAll=new window.CustomEvent("confirmClearAll",{detail:{confirmationMessage:l.get("confirmClearAll"),clearAllAction:()=>{hl.clearAll().then((()=>{const e={src:t.target};Cl.formeoCleared(e)}))},btnCoords:Ol.coords(t.target)}}),document.dispatchEvent(Cl.confirmClearAll)):window.alert(l.get("cannotClearFields"))}}},e={...Ol.btnTemplate({content:[Ol.icon("floppy-disk"),l.get("save")],title:l.get("save")}),className:["save-form"],action:{click:({target:t})=>{const{formData:e}=bl,n={action:()=>{},coords:Ol.coords(t),message:"",button:t};return aa.click.btn(n),aa.save.form(e)}}};return{className:"form-actions f-btn-group",content:Object.entries({clearBtn:t,saveBtn:e}).reduce(((t,[e,n])=>(this.options.disable.formActions.includes(e)||t.push(n),t)),[])}}buildDOM(t){const e=this.groupElements(),n=this.formActions(),{displayType:o}=this.options.panels;this.panels=new da({panels:e,type:"controls",displayType:o});const i=["control-groups","formeo-panels-wrap",`panel-count-${e.length}`],r=Ol.create({className:i,content:[this.panels.panelNav,this.panels.panelsWrap]});let s="formeo-controls";t&&(s+=" formeo-sticky");const a=Ol.create({className:s,content:[r,n]}),c=a.getElementsByClassName("control-group");this.dom=a,this.groups=c;const[d]=c;this.currentGroup=d,this.actions={filter:t=>{const e=""!==t,n=this.controls;let o=r.querySelector(".filtered-term");if(Ol.toggleElementsByStr(n,t),e){const e=l.get("controls.filteringTerm",t);a.classList.add("filtered"),o?o.textContent=e:(o=Ol.create({tag:"h5",className:"filtered-term",content:e}),r.insertBefore(o,r.firstChild))}else o&&(a.classList.remove("filtered"),o.remove())},addElement:this.addElement,addGroup:t=>{}};for(let l=c.length-1;l>=0;l--){const t=`formeo-controls-${c[l]}`;this.options.sortable||window.localStorage.removeItem(t),Vs.create(c[l],{animation:150,forceFallback:!0,fallbackClass:"control-moving",fallbackOnBody:!0,group:{name:"controls",pull:"clone",put:!1},onRemove:this.applyControlEvents,onStart:({item:t})=>{const{controlData:e}=this.get(t.id);this.options.ghostPreview&&(t.innerHTML="",t.appendChild(new _a(e).preview))},sort:this.options.sortable,store:{get:()=>{const e=window.localStorage.getItem(t);return e?e.split("|"):[]},set:e=>{const n=e.toArray();window.localStorage.setItem(t,n.join("|"))}}})}return a}};class qa extends nr{constructor(){super(...arguments),n(this,"load",((t=Object.create(null))=>(this.empty(),"string"==typeof t&&(t=JSON.parse(t)),Object.entries(t).forEach((([t,e])=>this.add(t,e))),this.data))),n(this,"get",(t=>t?Fi(this.data,t):this.add())),n(this,"add",((t,e=Object.create(null))=>{const n=t||Ai(),o=this.Component({...e,id:n});return this.set(n,o),this.active=o,o})),n(this,"remove",(t=>(Array.isArray(t)?t.forEach((t=>{this.get(t).remove()})):this.get(t).remove(),this.data))),n(this,"delete",(t=>(delete this.data[t],t))),n(this,"clearAll",((t=!0)=>{const e=Object.values(this.data).map((e=>e.empty(t)));return Promise.all(e)})),n(this,"conditionMap",new Map)}set config(t){this.configVal=Di(this.configVal,ki(t))}get config(){return this.configVal}}class Ua extends Ma{constructor(t,e){super("stage",Object.assign({},Object.freeze({children:[]}),t),e);const n=this.createChildWrap();this.dom=Ol.create({attrs:{className:[u,"empty"],id:this.id},children:n}),this.sortable=Vs.create(n,{animation:150,fallbackClass:"row-moving",forceFallback:!0,group:{name:"stage",pull:!0,put:["row","column","controls"]},sort:!0,disabled:!1,onAdd:this.onAdd.bind(this),onRemove:this.onRemove.bind(this),onStart:()=>Ga.active=this,onSort:this.onSort.bind(this),draggable:`.${p}`,handle:".item-handle"})}empty(t=!0){return new Promise((e=>{t?(this.dom.classList.add("removing-all-fields"),ha.slideUp(this.dom,D,(()=>{e(super.empty(t)),this.dom.classList.remove("removing-all-fields"),ha.slideDown(this.dom,D)}))):e(super.empty())}))}onAdd(...t){const e=super.onAdd(...t);e&&"column"===e.name&&e.parent.autoColumnWidths()}}const Ga=new class extends qa{constructor(t){super("stages",t)}Component(t){return new Ua(t)}},Xa="custom-column-widths",Ya="column-preset",Za="resizing-columns";function Ja(t){const e=this,n=t.target.parentElement,o=n.nextSibling||n.previousSibling,i=n.closest(`.${p}`),r=Ol.getStyle(i),s=parseFloat(r.paddingLeft)+parseFloat(r.paddingRight);if(t.target.removeEventListener("pointerdown",e),e.move=({touches:t,type:i,clientX:r})=>{if("touchmove"===i){const[e]=t;r=e.clientX}const s=e.colStartWidth+r-e.startX,a=e.sibStartWidth-r+e.startX,l=parseFloat(Ti(s,e.rowWidth)),c=parseFloat(Ti(a,e.rowWidth)),d=zi(l.toFixed(1)),h=zi(c.toFixed(1));n.dataset.colWidth=d,o.dataset.colWidth=h,n.style.width=d,o.style.width=h,e.resized=!0},e.stop=function(){window.removeEventListener("pointermove",e.move),window.removeEventListener("pointerup",e.stop),window.removeEventListener("touchmove",e.move),window.removeEventListener("touchend",e.stop),e.resized&&(Qa(i,e.rowWidth),i.classList.remove(Za),bl.setAddress(`columns.${n.id}.config.width`,n.dataset.colWidth),bl.setAddress(`columns.${o.id}.config.width`,o.dataset.colWidth),e.resized=!1)},"touchstart"===t.type){const[n]=t.touches;e.startX=n.clientX}else e.startX=t.clientX;i.classList.add(Za),n.className.replace(F,""),o.className.replace(F,""),e.colStartWidth=n.offsetWidth||Ol.getStyle(n,"width"),e.sibStartWidth=o.offsetWidth||Ol.getStyle(o,"width"),e.rowWidth=i.offsetWidth-s,window.addEventListener("pointerup",e.stop,!1),window.addEventListener("pointermove",e.move,!1),window.addEventListener("touchend",e.stop,!1),window.addEventListener("touchmove",e.move,!1)}const Ka=(t,e=t.querySelector(`.${Ya}`))=>{const n=e.querySelector(`.${Xa}`);return n&&e.removeChild(n)},Qa=(t,e)=>{const n=t.querySelector(`.${Ya}`),o=n.querySelector(`.${Xa}`),i=t.querySelector(".children").children,r=Ki(i,(t=>Ti(t.clientWidth,e).toFixed(1))),s=r.join(","),a=r.join(" | ");o&&Ka(t,n);const l=Ol.create({tag:"option",attrs:{className:Xa,value:s},content:a});return n.add(l),n.value=s,s};class tl extends Ma{constructor(t){super("row",Object.assign({},Object.freeze({config:{fieldset:!1,legend:"",inputGroup:!1},children:[],className:[p]}),t)),n(this,"autoColumnWidths",(()=>{const t=this.children;if(!t.length)return;const e=parseFloat((100/t.length).toFixed(1))/1;t.forEach((t=>{t.removeClasses(F);const n=t.dom,o=zi(e);t.set("config.width",o),n.style.width=o,n.dataset.colWidth=o;const i=setTimeout((()=>{clearTimeout(i),t.refreshFieldPanels()}),k);document.dispatchEvent(Cl.columnResized)})),this.updateColumnPreset()})),n(this,"updateColumnPreset",(()=>{const t=this.dom.querySelector(".column-preset"),e=t.parentElement,n=this.columnPresetControl(this.id),o=Ol.create(n);return e.replaceChild(o,t),n})),n(this,"setColumnWidths",(t=>{"custom"!==t&&("string"==typeof t&&(t=t.split(",")),this.children.forEach(((e,n)=>{e.setWidth(`${t[n]}%`),e.refreshFieldPanels()})))})),n(this,"columnPresetControl",(()=>{const t=this,e={tag:"select",attrs:{ariaLabel:l.get("defineColumnLayout"),className:"column-preset"},action:{change:({target:{value:e}})=>{"custom"!==e&&(Ka(this.dom),t.setColumnWidths(e))}},options:[]},n=M,o=this.children,i=n.get(o.length-1)||[],r=o.map((t=>{const e=t.get("config.width")||"";return Number(e.replace("%","")).toFixed(1)})).join(",");if(i.length){const t=i.slice();!t.find((t=>t.value===r))&&t.push({value:r,label:r.replace(/,/g," | "),className:"custom-column-widths"}),e.options=t.map((t=>{const e=Object.assign({},t);return t.value===r&&(e.selected=!0),e}))}return e}));const e=this.createChildWrap();this.dom=Ol.create({tag:"li",className:[p,"empty"],dataset:{hoverTag:l.get("row"),editingHoverTag:l.get("editing.row")},id:this.id,content:[this.getActionButtons(),this.editWindow,e]}),this.sortable=Vs.create(e,{animation:150,fallbackClass:"column-moving",forceFallback:!0,group:{name:"row",pull:!0,put:["row","column","controls"]},sort:!0,disabled:!1,onRemove:this.onRemove.bind(this),onEnd:this.onEnd.bind(this),onAdd:this.onAdd.bind(this),onSort:this.onSort.bind(this),filter:".resize-x-handle",draggable:`.${m}`,handle:".item-handle"}),this.onRender()}get editWindow(){const t=this,e={className:`${this.name}-edit group-config`},n={tag:"label",content:l.get("row.settings.fieldsetWrap")},o={tag:"input",id:t.id+"-fieldset",attrs:{type:"checkbox",checked:this.get("config.fieldset"),ariaLabel:l.get("row.settings.fieldsetWrap.aria")},action:{click:({target:{checked:t}})=>{this.set("config.fieldset",Boolean(t))}}},i={tag:"input",id:`${this.id}-inputGroup`,attrs:{type:"checkbox",checked:this.get("config.inputGroup"),ariaLabel:l.get("row.settings.inputGroup.aria")},action:{click:({target:{checked:t}})=>this.set("config.inputGroup",t)},config:{label:l.get("row.makeInputGroup"),description:l.get("row.makeInputGroupDesc")}},r={className:"input-group",content:[{tag:"span",className:"input-group-addon",content:o},{tag:"input",attrs:{type:"text",ariaLabel:"Legend for fieldset",value:t.get("config.legend"),placeholder:"Legend"},action:{input:({target:{value:e}})=>t.set("config.legend",e)},className:""}]},s=Ol.formGroup([n,r]),a={tag:"label",content:l.get("defineColumnWidths"),className:"col-sm-4 form-control-label"},c={className:"col-sm-8",content:{className:"column-preset"},action:{onRender:t=>{this.updateColumnPreset()}}},d=Ol.formGroup([a,c],"row");return e.children=[i,Ol.create("hr"),s,Ol.create("hr"),d],e}onAdd(...t){super.onAdd(...t),this.autoColumnWidths()}onRemove(...t){super.onRemove(...t),this.autoColumnWidths()}}const el={actionButtons:{buttons:["handle","edit","clone","remove"],disabled:[]}};const nl=new class extends qa{constructor(t){super("rows",t),this.config={all:el}}Component(t){return new tl(t)}},ol=()=>({className:"resize-x-handle",action:{pointerdown:Ja},content:[Ol.icon("triangle-down"),Ol.icon("triangle-up")]}),il=()=>({className:"column-edit group-config"});class rl extends Ma{constructor(t){super("column",Object.assign({},Object.freeze({config:{width:"100%"},children:[],className:m}),t)),n(this,"fieldOrderClasses",(()=>{const t=this.children.map((({dom:t})=>t));t.length&&(this.removeClasses(["first-field","last-field"]),t[0].classList.add("first-field"),t[t.length-1].classList.add("last-field"))})),n(this,"refreshFieldPanels",(()=>{this.children.forEach((t=>t.panels.nav.refresh()))})),n(this,"setWidth",(t=>(this.dom.dataset.colWidth=t,this.dom.style.width=t,this.set("config.width",t))));const e=this.createChildWrap();this.dom=Ol.create({tag:"li",className:[m,"empty"],dataset:{hoverTag:l.get("column")},action:{mouseup:t=>{const e=t.target.parentElement;e.resizing&&(e.resizing=!1,e.parentElement.classList.remove("resizing-columns"))}},id:this.id,content:[this.getActionButtons(),il(),ol(),e]}),this.processConfig(this.dom),Cl.columnResized=new window.CustomEvent("columnResized",{detail:{column:this.dom,instance:this}}),this.sortable=Vs.create(e,{animation:150,fallbackClass:"field-moving",forceFallback:!0,group:{name:"column",pull:!0,put:["column","controls"]},sort:!0,disabled:!1,onEnd:this.onEnd.bind(this),onAdd:this.onAdd.bind(this),onSort:this.onSort.bind(this),onRemove:this.onRemove.bind(this),onMove:t=>{t.from!==t.to&&t.from.classList.remove("hovering-column")},draggable:`.${g}`,handle:".item-handle"})}processConfig(t){const e=er.get(this.data,"config.width");e&&(t.dataset.colWidth=e,t.style.width=e,t.style.float="left")}addChild(...t){super.addChild(...t),this.fieldOrderClasses()}}const sl={actionButtons:{buttons:["clone|copy|handle","handle","remove"],disabled:[]}};const al=new class extends qa{constructor(t){super("columns",t),this.config={all:sl}}Component(t){return new rl(t)}},ll={actionButtons:{buttons:["handle","edit","clone","remove"],disabled:[]},panels:{disabled:[],attrs:{disabled:["type"],hideDisabled:!0,locked:[]},order:["attrs","options","conditions"]},label:{disableHTML:!1}};const cl=new class extends qa{constructor(t){super("fields",t),n(this,"get",(t=>{let e=t&&Fi(this.data,t);if(!e){const n=Wa.get(t);n&&(e=this.add(null,n.controlData))}return e})),this.config={all:ll}}Component(t){return new _a(t)}};const dl=new class extends qa{constructor(t){super("externals",t)}Component(t){return new Ma("external",t)}},hl=Ga,ul=nl,pl=al,ml=cl,gl=Wa,fl=dl,vl={id:Ai()};const bl=new class extends nr{constructor(t){super("components"),n(this,"sessionFormData",(()=>{var t;if(null==(t=this.opts)?void 0:t.sessionStorage)return Pi.get(j)})),n(this,"load",((t,e=this.opts||Object.create(null))=>{this.empty(),"string"==typeof t&&(t=JSON.parse(t)),this.opts=e;const{stages:n={[Ai()]:{}},rows:o,columns:i,fields:r,id:s=Ai()}=Object.assign({},this.sessionFormData(),t);return this.set("id",s),this.add("stages",hl.load(n)),this.add("rows",ul.load(o)),this.add("columns",pl.load(i)),this.add("fields",ml.load(r)),this.add("externals",fl.load(e.external)),Object.values(this.get("stages")).forEach((t=>t.loadChildren())),this.data})),this.opts=t,this.data=vl,this.disableEvents=!0,this.stages=hl,this.rows=ul,this.columns=pl,this.fields=ml,this.controls=gl,this.externals=fl}flatList(t=this.data,e=Object.create(null)){return Object.entries(t).reduce(((t,[e,n])=>("object"==typeof n&&Object.entries(n).forEach((([n,o])=>{t[`${e}.${n}`]=o})),t)),e)}get json(){return window.JSON.stringify(this.formData)}get formData(){return{id:this.get("id"),stages:Ga.getData(),rows:nl.getData(),columns:al.getData(),fields:cl.getData()}}set config(t){const{stages:e,rows:n,columns:o,fields:i}=t;hl.config=e,ul.config=n,pl.config=o,ml.config=i}setAddress(t,e){const[n,o,...i]=Array.isArray(t)?t:t.split("."),r=this[n.replace(/s?$/,"s")].get(o);return r&&r.set(i,e),r}getAddress(t){if(!Li(t))return;const[e,n,...o]=Array.isArray(t)?t:t.split("."),i=this[e.replace(/s?$/,"s")].get(n);return o.length?i.get(o):i}getConditionMap(t){if(Li(t)){const e=t.split(".");return e.every((t=>Boolean(t)))&&this[e[0]].conditionMap.get(e[1])}}setConditionMap(t,e){if(Li(t)){const n=t.split(".");return n.every((t=>Boolean(t)))&&this[n[0]].conditionMap.set(n[1],e)}}removeConditionMap(t){if(Li(t)){const e=t.split(".");return e.every((t=>Boolean(t)))&&this[e[0]].conditionMap.delete(e[1])}}},yl="no-transition",wl={debug:!1,bubbles:!0,formeoLoaded:t=>{},onAdd:()=>{},onUpdate:t=>Cl.opts.debug&&void 0,onUpdateStage:t=>Cl.opts.debug&&void 0,onUpdateRow:t=>Cl.opts.debug&&void 0,onUpdateColumn:t=>Cl.opts.debug&&void 0,onUpdateField:t=>Cl.opts.debug&&void 0,onRender:t=>Cl.opts.debug&&void 0,onSave:t=>{},confirmClearAll:t=>{window.confirm(t.confirmationMessage)&&t.clearAllAction(t)}},xl=({src:t,...e},n=P)=>{const o=new window.CustomEvent(n,{detail:e,bubbles:Cl.opts.debug||Cl.opts.bubbles});return o.data=(t||document).dispatchEvent(o),o},Cl={init:function(t){return this.opts={...wl,...t},this},formeoSaved:t=>xl(t,z),formeoUpdated:t=>xl(t,P),formeoCleared:t=>xl(t,"formeoCleared"),formeoOnRender:t=>xl(t,L),formeoConditionUpdated:t=>xl(t,"formeoConditionUpdated")},El=Hi((()=>{Cl.opts.onUpdate({timeStamp:window.performance.now(),type:P,detail:bl.formData})}),k);let Sl;document.addEventListener(P,El),document.addEventListener("formeoUpdatedStage",(t=>{const{timeStamp:e,type:n,detail:o}=t;Cl.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedRow",(t=>{const{timeStamp:e,type:n,detail:o}=t;Cl.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedColumn",(t=>{const{timeStamp:e,type:n,detail:o}=t;Cl.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener("formeoUpdatedField",(t=>{const{timeStamp:e,type:n,detail:o}=t;Cl.opts.onUpdate({timeStamp:e,type:n,detail:o})})),document.addEventListener(L,(t=>{const{timeStamp:e,type:n,detail:o}=t;Cl.opts.onRender({timeStamp:e,type:n,detail:o})})),document.addEventListener("confirmClearAll",(t=>{t={timeStamp:t.timeStamp,type:t.type,confirmationMessage:t.detail.confirmationMessage,clearAllAction:t.detail.clearAllAction,btnCoords:t.detail.btnCoords},Cl.opts.confirmClearAll(t)})),document.addEventListener(z,(({timeStamp:t,type:e,detail:{formData:n}})=>{const o={timeStamp:t,type:e,formData:n};Cl.opts.onSave(o)})),document.addEventListener("formeoLoaded",(t=>{Cl.opts.formeoLoaded(t.detail.formeo)})),window.addEventListener("resize",(function(){Sl=Sl||window.requestAnimationFrame((()=>{Sl=!1,Object.values(pl.data).forEach((t=>{t.dom.classList.add(yl),gl.dom.classList.add(yl),gl.panels.nav.refresh(),t.refreshFieldPanels()}))}))}));const Ol=new class{constructor(){n(this,"render",(t=>(t.id=`f-${t.id||Ai()}`,this.create(t)))),n(this,"create",((t,e=!1)=>{if(!t)return;t=this.processTagName(t);const n=this;let o;const{tag:i}=t,r=["children","content"];let s;const a={attrs:{},className:[er.get(t,"config.inputWrap")||"f-field-group"],children:[],config:{}};let l=document.createElement(i);const c={string:t=>{l.innerHTML+=t},object:t=>t&&l.appendChild(n.create(t,e)),node:t=>l.appendChild(t),component:t=>l.appendChild(t.dom),array:t=>{for(const e of t)o=n.childType(e),c[o](e)},function:t=>{t=t(),o=n.childType(t),c[o](t)},undefined:()=>null,boolean:()=>null};if(r.push("tag"),t.className){const{className:e}=t;t.attrs=Object.assign({},t.attrs,{className:e}),delete t.className}if(t.options){let{options:o}=t;if(o=this.processOptions(o,t,e),!this.holdsContent(l)||"button"===i)return er.forEach(o,(t=>{a.children.push(n.create(t,e))})),t.attrs.className&&(a.className=t.attrs.className),a.config=Object.assign({},t.config),this.create(a,e);c.array.call(this,o),delete t.content,r.push("options")}if("OPTION"===l.tagName){const t=setTimeout((()=>{l.selected=!1,clearTimeout(t)}),0)}if(t.attrs&&(n.processAttrs(t,l,e),r.push("attrs")),t.config){if(t.config.label&&(t.config.label&&"button"!==i||["radio","checkbox"].includes(er.get(t,"attrs.type")))&&!e){const e=n.label(t);if(!t.config.hideLabel){const o=[...n.labelAfter(t)?[l,e]:[e,l]];a.children.push(o)}}r.push("config")}if(t.content||t.children){const e=t.content||t.children;o=n.childType(e),c[o],c[o].call(this,e)}if(t.dataset){for(const e in t.dataset)t.dataset.hasOwnProperty(e)&&(l.dataset[e]="function"==typeof t.dataset[e]?t.dataset[e]():t.dataset[e]);r.push("dataset")}t.action&&(this.actionHandler(l,t.action),r.push("action"));const d=er.subtract(r,Object.keys(t));for(s=d.length-1;s>=0;s--)l[d[s]]=t[d[s]];return a.children.length&&(l=this.create(a)),l})),n(this,"onRender",((t,e)=>{t.parentElement?e(t):window.requestAnimationFrame((()=>this.onRender(t,e)))})),n(this,"toggleElementsByStr",((t,e)=>{const n=[];return Ol.elementsContainText(t,e,((t,e)=>{e?(t.style.display="block",n.push(t)):t.style.display="none"})),n})),n(this,"elementsContainText",((t,e,n)=>{const o=[];return Ji(t,(t=>{const i=-1!==t.textContent.toLowerCase().indexOf(e.toLowerCase());n&&n(t,i),i&&o.push(t)})),o})),n(this,"generateOption",(({type:t="option",label:e,value:n,i:o=0,selected:i})=>({tag:"option"===t?"option":"input",attrs:{type:t,value:n||`${t}-${o}`,["option"===t?"selected":"checked"]:i||!o},config:{label:e||l.get("labelCount",{label:l.get("option"),count:o})}}))),n(this,"makeOption",(([t,e],n,o)=>{const i={value:t,label:l.get(`${o}.${e}`)||e};return t===n&&(i.selected=!0),i})),n(this,"requiredMark",(()=>({tag:"span",className:"text-error",children:"*"}))),n(this,"removeEmpty",(t=>{const e=t.parentElement,n=_i(t),o=e.getElementsByClassName(`formeo-${n}`);if(this.remove(t),!o.length){if(!this.isStage(e))return this.removeEmpty(e);this.emptyClass(e)}})),n(this,"btnTemplate",(({title:t="",...e})=>({tag:"button",attrs:{type:"button",title:t},...e}))),n(this,"isControls",(t=>_i(t)===h)),n(this,"isStage",(t=>_i(t)===u)),n(this,"isRow",(t=>_i(t)===p)),n(this,"isColumn",(t=>_i(t)===m)),n(this,"isField",(t=>_i(t)===g)),n(this,"asComponent",(t=>bl[`${_i(t)}s`].get(t.id))),this.options=Object.create(null),this.styleSheet=(()=>{const t=document.createElement("style");return t.setAttribute("media","screen"),t.setAttribute("type","text/css"),t.appendChild(document.createTextNode("")),document.head.appendChild(t),t.sheet})()}set setOptions(t){this.options=Di(Object.assign({},this.options,t))}processTagName(t){let e;if("string"==typeof t&&(e=t,t={tag:e}),t.attrs){const{tag:n,...o}=t.attrs;if(n)if("string"==typeof n)e=n;else{e=(n.find((t=>!0===t.selected))||n[0]).value}t.attrs=o}return t.tag=e||t.tag||"div",t}actionHandler(t,e){const n={onRender:Ol.onRender},o=["focus","blur"];return Object.entries(e).map((([e,i])=>{const r=n[e]||(s=e,(t,e)=>t.addEventListener(s,e,o.includes(s)));var s;return r(t,i)}))}icon(t=null){if(!t)return;const e="f-i-";let n;const o={glyphicons:t=>`<span class="glyphicon glyphicon-${t}" aria-hidden="true"></span>`,"font-awesome":t=>{const[e,n]=t.split(" ");return`<i class="${e} fa-${n}"></i>`},fontello:t=>`<i class="${e}${t}">${t}</i>`};return n=document.getElementById(e+t)?`<svg class="svg-icon ${e}${t}"><use xmlns:xlink="http://www.w3.org/1999/xlink" xlink:href="#${e}${t}"></use></svg>`:Ol.options.iconFont?o[Ol.options.iconFont](t):t,n}processAttrs(t,e,n){const{attrs:o={}}=t;n||!o.name&&this.isInput(t.tag)&&e.setAttribute("name",Ai(t)),Object.keys(o).forEach((t=>{const n=er.safeAttrName(t);let i=o[t]||"";if(Array.isArray(i))if("object"==typeof i[0]){const t=i.filter((t=>!0===t.selected));i=t.length?t[0].value:i[0].value}else i=i.join(" ");if(i)if("OPTION"===e.tagName&&"selected"===n){const t=setTimeout((()=>{e.setAttribute(n,i),clearTimeout(t)}),0)}else e.setAttribute(n,i)}))}processOptions(t,e,n){const{action:o,attrs:i}=e,r=i.type||e.tag,s=i.id||e.id;return t.map(((t,i)=>{const{label:a,...l}=t,c=()=>{const a={tag:"input",attrs:{name:s,type:r,value:t.value||"",id:`${s}-${i}`,...l},action:o},c={tag:"label",attrs:{for:`${s}-${i}`},config:{inputWrap:"form-check"},children:t.label},d={children:[a,c],className:[`f-${r}`]};return e.attrs.className&&(e.config.inputWrap=e.attrs.className),e.config.inline&&d.className.push(`f-${r}-inline`),t.selected&&(a.attrs.checked=!0),n&&(c.attrs.contenteditable=!0),d},d={select:()=>({tag:"option",attrs:t,children:t.label}),button:t=>{const{type:n,label:o,className:i,id:r}=t;return Object.assign({},e,{attrs:{type:n},className:i,id:r||Ai(),options:void 0,children:o,action:e.action})},checkbox:c,radio:c};return d[r]&&d[r](t)}))}holdsContent(t){return-1!==t.outerHTML.indexOf("/")}isBlockInput(t){return!this.isInput(t)&&this.holdsContent(t)}isInput(t){return"string"!=typeof t&&(t=t.tagName),-1!==["input","textarea","select"].indexOf(t)}parsedHtml(t){const e=document.createElement("textarea");return e.innerHTML=t,e.textContent}labelAfter(t){const e=er.get(t,"attrs.type"),n=er.get(t,"config.labelAfter");return void 0!==n?n:"checkbox"===e||"radio"===e}label(t,e){const n=er.get(t,"attrs.required");let{config:{label:o=""}}=t;const{id:i,attrs:r}=t;"function"==typeof o&&(o=o());const s={tag:"label",attrs:{for:i||r&&r.id},className:[],children:[o,n&&this.requiredMark()],action:{}};return e&&(delete s.attrs.for,s.attrs.contenteditable=!0,s.fMap=e),s}childType(t){return void 0===t?t:[["array",t=>Array.isArray(t)],["node",t=>t instanceof window.Node||t instanceof window.HTMLElement],["component",()=>t&&t.dom],[typeof t,()=>!0]].find((e=>e[1](t)))[0]}getStyle(t,e=!1){let n;return window.getComputedStyle?n=window.getComputedStyle(t,null):t.currentStyle&&(n=t.currentStyle),e?n[e]:n}getElement(t){return{node:()=>t,object:()=>document.getElementById(t.id),string:()=>document.getElementById(t)}[this.childType(t)]()}empty(t){for(;t.firstChild;)this.remove(t.firstChild);return t}clone(t,e){const n={},o=this,{id:i,fType:r}=t,s=ki(n[r].get(i)),a=Yi(t)+1;let l=!1;s.id=Ai(),n[r].set(s.id,s),e||(e=t.parentElement,l=!0);return{rows:()=>{s.columns=[];const e=hl.active,n=e.addRow(null,s.id),i=t.getElementsByClassName(m);return e.insertBefore(n,e.childNodes[a]),er.forEach(i,(t=>o.clone(t,n))),n},columns:()=>{s.fields=[];const n=o.addColumn(e,s.id);e.insertBefore(n,e.childNodes[a]);const i=t.getElementsByClassName(g);return l&&Ol.columnWidths(e),er.forEach(i,(t=>o.clone(t,n))),n},fields:()=>{const t=o.addField(e,s.id);return e.insertBefore(t,e.childNodes[a]),t}}[r]()}remove(t){const e=_i(t);return e?bl.remove(`${e}s.${t.id}`):t.parentElement.removeChild(t)}removeClasses(t,e){const n={string:t=>t.classList.remove(e),array:t=>e.forEach((e=>t.classList.remove(e)))};n.object=n.string,er.forEach(t,n[this.childType(e)])}addClasses(t,e){const n={string:t=>t.classList.add(e),array:t=>e.forEach((e=>t.classList.add(e)))};er.forEach(t,n[this.childType(e)])}columnWidths(t){const e=t.getElementsByClassName(m);if(!e.length)return;const n=parseFloat((100/e.length).toFixed(1))/1;this.removeClasses(e,F),er.forEach(e,(t=>{pl.get(t.id).refreshFieldPanels();const e=zi(n);t.style.width=e,t.style.float="left",pl.set(`${t.id}.config.width`,e),t.dataset.colWidth=e,document.dispatchEvent(Cl.columnResized)})),Ol.updateColumnPreset(t)}formGroup(t,e=""){return{className:["f-field-group",e],children:t}}coords(t){const e=t.getBoundingClientRect(),n=document.body.getBoundingClientRect();return{pageX:e.left+e.width/2,pageY:e.top-n.top-e.height/2}}clearStage(t){t.classList.add("removing-all-fields");ha.slideUp(t,600,(()=>{Ol.empty(t),t.classList.remove("removing-all-fields"),Ol.emptyClass(t),ha.slideDown(t,300)}))}toggleSortable(t,e){const n=_i(t);if(!n)return;const o=_i(t.parentElement),i=Ol[n].get(t.id).sortable;e||(e=!i.option("disabled")),i.option("disabled",e),o&&["rows","columns","stages"].includes(o)&&this.toggleSortable(t.parentElement,e)}emptyClass(t){const e=t.getElementsByClassName(f.get(t.classList.item(0)));t.classList.toggle("empty",!e.length)}insertRule(t){const e=this.styleSheet,n=e.cssRules.length;for(let o=0,i=t.length;o<i;o++){let i=1,r=t[o];const s=t[o][0];let a="";"[object Array]"===Object.prototype.toString.call(r[1][0])&&(r=r[1],i=0);for(let t=r.length;i<t;i++){const t=r[i],e=t[2]?" !important":"";a+=`${t[0]}:${t[1]}${e};`}return e.insertRule(`${s} { ${a} }`,n)}}};l.addLanguage("en-US",'en-US = English\ndir = ltr\n\naction.add.attrs.attr = What attribute would you like to add?\naction.add.attrs.value = Default Value\naddOption = Add Option\nallFieldsRemoved = All fields were removed.\nallowSelect = Allow Select\nattribute = Attribute\nattributes = Attributes\nattrs.class = Class\nattrs.className = Class\nattrs.dir = Direction\nattrs.id = Id\nattrs.required = Required\nattrs.style = Style\nattrs.title = Title\nattrs.type = Type\nattrs.value = Value\nautocomplete = Autocomplete\nbutton = Button\ncannotBeEmpty = This field cannot be empty\ncheckbox = Checkbox\ncheckboxes = Checkboxes\nclass = Class\nclear = Clear\nclearAllMessage = Are you sure you want to clear all fields?\nclose = Close\ncolumn = Column\nconfirmClearAll = Are you sure you want to remove all fields?\ncontent = Content\ncontrol = Control\ncontrolGroups.nextGroup = Next Group\ncontrolGroups.prevGroup = Previous Group\ncontrols.form.button = Button\ncontrols.form.checkbox-group = Checkbox Group\ncontrols.form.input.date = Date\ncontrols.form.input.email = Email\ncontrols.form.input.file = File Upload\ncontrols.form.input.hidden = Hidden Input\ncontrols.form.input.number = Number\ncontrols.form.input.text = Text Input\ncontrols.form.radio-group = Radio Group\ncontrols.form.select = Select\ncontrols.form.textarea = TextArea\ncontrols.groups.form = Form Fields\ncontrols.groups.html = HTML Elements\ncontrols.groups.layout = Layout\ncontrols.html.divider = Divider\ncontrols.html.header = Header\ncontrols.html.paragraph = Paragraph\ncontrols.layout.column = Column\ncontrols.layout.row = Row\ncontrols.filteringTerm = Filtering "{term}"\ncopy = Copy To Clipboard\ndanger = Danger\ndescription = Help Text\ndescriptionField = Description\ndefineColumnLayout = Define a column layout\ndefineColumnWidths = Define column widths\nediting.row = Editing Row\neditorTitle = Form Elements\nfield = Field\nfieldNonEditable = This field cannot be edited.\nfieldRemoveWarning = Are you sure you want to remove this field?\nfileUpload = File Upload\nformUpdated = Form Updated\ngetStarted = Drag a field from the right to get started.\ngroup = Group\ngrouped = Grouped\nhidden = Hidden Input\nhide = Edit\nhtmlElements = HTML Elements\nif = If\ninfo = Info\ninput.date = Date\ninput.text = Text\nlabel = Label\nlabelCount = {label} {count}\nlabelEmpty = Field Label cannot be empty\nlayout = Layout\nlimitRole = Limit access to one or more of the following roles:\nmandatory = Mandatory\nmaxlength = Max Length\nmeta.group = Group\nmeta.icon = Ico\nmeta.label = Label\nminOptionMessage = This field requires a minimum of 2 options\nname = Name\nno = No\nnumber = Number\noff = Off\non = On\noption = Option\noptional = optional\noptionEmpty = Option value required\noptionLabel = Option {count}\noptions = Options\norder = Order\npanel.label.attrs = Attributes\npanel.label.conditions = Conditions\npanel.label.config = Configuration\npanel.label.meta = Meta\npanel.label.options = Options\npanelEditButtons.attrs = + Attribute\npanelEditButtons.options = + Option\npanelEditButtons.conditions = + Condition\nplaceholder = Placeholder\nplaceholder.className = space separated classes\nplaceholder.email = Enter you email\nplaceholder.label = Label\nplaceholder.password = Enter your password\nplaceholder.placeholder = Placeholder\nplaceholder.text = Enter some Text\nplaceholder.textarea = Enter a lot of text\nplaceholder.value = Value\npreview = Preview\nprimary = Primary\nremove = Remove\nremoveType = Remove {type}\nremoveMessage = Remove Element\nrequired = Required\nreset = Reset\nrichText = Rich Text Editor\nroles = Access\nrow = Row\nrow.makeInputGroup = Make this row an input group.\nrow.makeInputGroupDesc = Input Groups enable users to add sets of inputs at a time.\nrow.settings.fieldsetWrap = Wrap row in a <fieldset> tag\nrow.settings.fieldsetWrap.aria = Wrap Row in Fieldset\ncannotClearFields = There are no fields to clear\nsave = Save\nsecondary = Secondary\nselect = Select\nselectColor = Select Color\nselectionsMessage = Allow Multiple Selections\nselectOptions = Options\nseparator = Separator\nsettings = Settings\nsize = Size\nsizes = Sizes\nsizes.lg = Large\nsizes.m = Default\nsizes.sm = Small\nsizes.xs = Extra Small\nstyle = Style\nstyles = Styles\nstyles.btn = Button Style\nstyles.btn.danger = Danger\nstyles.btn.default = Default\nstyles.btn.info = Info\nstyles.btn.primary = Primary\nstyles.btn.success = Success\nstyles.btn.warning = Warning\nsubtype = Type\nsuccess = Success\ntext = Text Field\nthen = Then\ntoggle = Toggle\nungrouped = Un-Grouped\nwarning = Warning\nyes = Yes\nand = and\nor = or\nfield.property.value = value\nfield.property.label = label\nfield.property.valid = valid\nfield.property.invalid = not valid\nfield.property.isVisible = is visible\nfield.property.isNotVisible = is not visible\nnewOptionLabel = New {type}\noperator.visible = visible\noperator.notVisible = not visible\noperator.equals = equals\noperator.notEquals = not equal\noperator.contains = contains\noperator.notContains = not contains\ncondition.target.placeholder = target\nif.condition.target.placeholder = target / value\nif.condition.source.placeholder = source\nthen.condition.target.placeholder = target\ncondition.value.placeholder = value\nattributeNotPermitted = Attribute "{attribute}" is not permitted, please choose another.\n');const Nl={get editor(){return{stickyControls:!1,allowEdit:!0,dataType:"json",debug:!1,sessionStorage:!1,editorContainer:null,external:{},svgSprite:null,iconFont:null,config:{},events:{},actions:{},controls:{},polyfills:tr(),i18n:{location:"https://draggable.github.io/formeo/assets/lang/"}}}};let Ml=class{constructor({formData:t,...e},n){const o=this,i=Di(Nl.editor,e),{actions:r,events:s,debug:a,config:l,editorContainer:c,...d}=i;c&&(this.editorContainer="string"==typeof c?document.querySelector(c):c),this.opts=d,Ol.setOptions=d,bl.config=l,this.userFormData=n||t,this.Components=bl,this.dom=Ol,Cl.init({debug:a,...s}),aa.init({debug:a,sessionStorage:d.sessionStorage,...r}),o.loadResources().then((()=>{d.allowEdit&&(o.edit=o.init.bind(o),o.init())}))}get formData(){return this.Components.formData}set formData(t={}){this.load({...this.userFormData,...t},this.opts)}get json(){return this.Components.json}loadResources(){const t=[];return this.opts.polyfills&&(t=>{const e=Array.isArray(t)?d.filter((({name:e})=>-1!==t.indexOf(e))):d;Promise.all(e.map((({src:t})=>Aa(t))))})(this.opts.polyfills),this.opts.style&&t.push(Da(this.opts.style)),this.opts.svgSprite?t.push(Ta(this.opts.svgSprite,ka,(()=>Ta("https://draggable.github.io/formeo/assets/img/formeo-sprite.svg",ka)))):t.push(ka('<?xml version="1.0" encoding="utf-8"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"><symbol id="f-i-autocomplete" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M6,5h1v1H6V5z M4,4H3v1h1V4z M6,4H5v1h1V4z M2,5v1h1V5H2z M3,7h1V6H3V7z M5,7h1V6H5V7z M4,5v1h1V5H4z M2,14h1v-1H2V14z M4,14h1v-1H4V14z M6,14h1v-1H6V14z M9,13H8v1h1V13z M16,3.5v4C16,8.3,15.3,9,14.5,9H14v3v3c0,0.6-0.4,1-1,1H1c-0.6,0-1-0.4-1-1V3.5 C0,2.7,0.7,2,1.5,2h3H8V1.5V1H7H6V0.5V0h2.5H11v0.5V1h-1H9v0.5V2h3h2.5C15.3,2,16,2.7,16,3.5z M13,12H7H1v3h12V12z M3,11v-1H2v1H3z M5,11v-1H4v1H5z M15,3.5C15,3.2,14.8,3,14.5,3H9v2.5V8H8.5H8V7.5V7H7V6h1V5.5V5H7V4h1V3.5V3H1.5C1.2,3,1,3.2,1,3.5v4 C1,7.8,1.2,8,1.5,8H8v1H6v0.5V10h2.5H11V9.5V9H9V8h5.5C14.8,8,15,7.8,15,7.5V3.5z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-bin" xmlns="http://www.w3.org/2000/svg"><path d="M4 10v20c0 1.1.9 2 2 2h18c1.1 0 2-.9 2-2v-20h-22zM10 28h-2v-14h2v14zM14 28h-2v-14h2v14zM18 28h-2v-14h2v14zM22 28h-2v-14h2v14zM26.5 4h-6.5v-2.5c0-.825-.675-1.5-1.5-1.5h-7c-.825 0-1.5.675-1.5 1.5v2.5h-6.5c-.825 0-1.5.675-1.5 1.5v2.5h26v-2.5c0-.825-.675-1.5-1.5-1.5zM18 4h-6v-1.975h6v1.975z"/></symbol><symbol id="f-i-button" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><metadata id="acmetadata8"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><path id="acrect4140" d="M 0.4765625,4 A 0.47706934,0.47706934 0 0 0 0,4.4765625 L 0,11.523438 A 0.47706934,0.47706934 0 0 0 0.4765625,12 L 15.523438,12 A 0.47706934,0.47706934 0 0 0 16,11.523438 L 16,4.4765625 A 0.47706934,0.47706934 0 0 0 15.523438,4 L 0.4765625,4 Z m 0.4765625,0.953125 14.09375,0 0,6.09375 -14.09375,0 0,-6.09375 z"/><g id="aclayer1"><g id="actext4203"><g id="acg4212" transform="translate(0.10112835,0.1001358)"><path id="acpath4208" d="m 6.0690374,6.4093857 q -0.5371093,0 -0.8544922,0.4003906 -0.3149414,0.4003906 -0.3149414,1.0913086 0,0.6884766 0.3149414,1.0888672 0.3173829,0.4003906 0.8544922,0.4003906 0.5371094,0 0.8496094,-0.4003906 0.3149414,-0.4003906 0.3149414,-1.0888672 0,-0.690918 -0.3149414,-1.0913086 -0.3125,-0.4003906 -0.8496094,-0.4003906 z m 0,-0.4003906 q 0.7666016,0 1.225586,0.5151367 0.4589843,0.5126953 0.4589843,1.3769531 0,0.8618164 -0.4589843,1.3769531 -0.4589844,0.5126953 -1.225586,0.5126953 -0.7690429,0 -1.2304687,-0.5126953 -0.4589844,-0.5126953 -0.4589844,-1.3769531 0,-0.8642578 0.4589844,-1.3769531 0.4614258,-0.5151367 1.2304687,-0.5151367 z"/><path id="acpath4210" d="m 8.5250921,6.074913 0.4931641,0 0,1.5405274 1.6357418,-1.5405274 0.634766,0 -1.809082,1.6992188 1.938477,1.9458008 -0.649415,0 -1.7504878,-1.7553711 0,1.7553711 -0.4931641,0 0,-3.6450196 z"/></g></g></g></symbol><symbol viewBox="0 0 32 32" id="f-i-calendar" xmlns="http://www.w3.org/2000/svg"><path d="M12.048 16.961c-0.178 0.257-0.395 0.901-0.652 1.059-0.257 0.157-0.547 0.267-0.869 0.328-0.323 0.062-0.657 0.089-1.002 0.079v1.527h2.467v6.046h1.991v-9.996h-1.584c-0.056 0.381-0.173 0.7-0.351 0.957zM23 8h2c0.553 0 1-0.448 1-1v-6c0-0.552-0.447-1-1-1h-2c-0.553 0-1 0.448-1 1v6c0 0.552 0.447 1 1 1zM7 8h2c0.552 0 1-0.448 1-1v-6c0-0.552-0.448-1-1-1h-2c-0.552 0-1 0.448-1 1v6c0 0.552 0.448 1 1 1zM30 4h-2v5c0 0.552-0.447 1-1 1h-6c-0.553 0-1-0.448-1-1v-5h-8v5c0 0.552-0.448 1-1 1h-6c-0.552 0-1-0.448-1-1v-5h-2c-1.104 0-2 0.896-2 2v24c0 1.104 0.896 2 2 2h28c1.104 0 2-0.896 2-2v-24c0-1.104-0.896-2-2-2zM30 29c0 0.553-0.447 1-1 1h-26c-0.552 0-1-0.447-1-1v-16c0-0.552 0.448-1 1-1h26c0.553 0 1 0.448 1 1v16zM15.985 17.982h4.968c-0.936 1.152-1.689 2.325-2.265 3.705-0.575 1.381-0.638 2.818-0.749 4.312h2.131c0.009-0.666-0.195-1.385-0.051-2.156 0.146-0.771 0.352-1.532 0.617-2.285 0.267-0.752 0.598-1.461 0.996-2.127 0.396-0.667 0.853-1.229 1.367-1.686v-1.742h-7.015v1.979z"/></symbol><symbol id="f-i-checkbox" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M13.5,5v8c0,0.8-0.7,1.5-1.5,1.5H3c-0.8,0-1.5-0.7-1.5-1.5V4c0-0.8,0.7-1.5,1.5-1.5h9c0.7,0,1.3,0.5,1.5,1.2l2.4-1.4L13.5,5 z M12.5,6.2L7.7,12L2.8,5.5l4.9,1.6l4.8-2.9V4c0-0.3-0.2-0.5-0.5-0.5H3C2.7,3.5,2.5,3.7,2.5,4v9c0,0.3,0.2,0.5,0.5,0.5h9 c0.3,0,0.5-0.2,0.5-0.5V6.2z"/></symbol><symbol id="f-i-checkbox-group" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M0,1h16V0H0V1z M0,3h16V2H0V3z M6,5v1h9V5H6z M15,14v-1H6v1H15z M6,10h9V9H6V10z M4,12l-2.5,1.5L0,13l1.5,2L4,12z M4,8 L1.5,9.5L0,9l1.5,2L4,8z M4,4L1.5,5.5L0,5l1.5,2L4,4z"/></symbol><symbol xml:space="preserve" viewBox="0 0 16 16" id="f-i-columns" xmlns="http://www.w3.org/2000/svg"><metadata id="agmetadata4318"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><path id="agrect4860-3-5" d="M 16,0.5 A 0.50004997,0.50004997 0 0 0 15.5,0 l -5,0 -5,0 -5,0 A 0.50004997,0.50004997 0 0 0 0,0.5 l 0,15 A 0.50004997,0.50004997 0 0 0 0.5,16 l 5,0 5,0 5,0 A 0.50004997,0.50004997 0 0 0 16,15.5 l 0,-15 z M 15,1 15,15 11,15 11,1 15,1 Z M 10,1 10,15 6,15 6,1 10,1 Z M 5,1 5,15 1,15 1,1 5,1 Z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-copy" xmlns="http://www.w3.org/2000/svg"><path d="M20 8v-8h-14l-6 6v18h12v8h20v-24h-12zM6 2.828v3.172h-3.172l3.172-3.172zM2 22v-14h6v-6h10v6l-6 6v8h-10zM18 10.828v3.172h-3.172l3.172-3.172zM30 30h-16v-14h6v-6h10v20z"/></symbol><symbol id="f-i-divider" viewBox="0 0 15 15" xmlns="http://www.w3.org/2000/svg"><metadata id="aimetadata10"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><rect y="7" x="0" height="1" width="15" id="airect4182"/></symbol><symbol viewBox="0 0 28 32" id="f-i-edit" xmlns="http://www.w3.org/2000/svg"><path d="M22 2l-4 4 6 6 4-4-6-6zM0 24l0.021 6.018 5.979-0.018 16-16-6-6-16 16zM6 28h-4v-4h2v2h2v2z"/></symbol><symbol viewBox="0 0 32 32" id="f-i-floppy-disk" xmlns="http://www.w3.org/2000/svg"><path d="M28 0h-28v32h32v-28l-4-4zM16 4h4v8h-4v-8zM28 28h-24v-24h2v10h18v-10h2.343l1.657 1.657v22.343z"/></symbol><symbol xml:space="preserve" viewBox="0 0 16 16" id="f-i-handle" xmlns="http://www.w3.org/2000/svg"><metadata id="almetadata8"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><g transform="translate(0,-2)" id="alg4220"><rect id="alrect4191" width="2" height="2" x="2" y="7"/><rect id="alrect4191-2" width="2" height="2" x="7" y="7"/><rect id="alrect4191-4" width="2" height="2" x="12" y="7"/></g><g transform="translate(0,2)" id="alg4220-6"><rect id="alrect4191-40" width="2" height="2" x="2" y="7"/><rect id="alrect4191-2-3" width="2" height="2" x="7" y="7"/><rect id="alrect4191-4-9" width="2" height="2" x="12" y="7"/></g></symbol><symbol viewBox="0 0 448 512" id="f-i-hash" xmlns="http://www.w3.org/2000/svg"><g id="amicomoon-ignore"/><path d="M448 192v-64h-80.064l16-128h-64l-16 128h-127.968l16-128h-64l-16 128h-111.968v64h103.968l-15.968 128h-88v64h80l-16 128h64l16-128h127.968l-16 128h64.032l16-128h112v-64h-104l15.936-128h88.064zM279.968 320h-127.968l15.968-128h127.968l-15.968 128z"/></symbol><symbol viewBox="0 0 28 28" id="f-i-header" xmlns="http://www.w3.org/2000/svg"><path d="M26.281 26q-0.688 0-2.070-0.055t-2.086-0.055q-0.688 0-2.063 0.055t-2.063 0.055q-0.375 0-0.578-0.32t-0.203-0.711q0-0.484 0.266-0.719t0.609-0.266 0.797-0.109 0.703-0.234q0.516-0.328 0.516-2.188l-0.016-6.109q0-0.328-0.016-0.484-0.203-0.063-0.781-0.063h-10.547q-0.594 0-0.797 0.063-0.016 0.156-0.016 0.484l-0.016 5.797q0 2.219 0.578 2.562 0.25 0.156 0.75 0.203t0.891 0.055 0.703 0.234 0.313 0.711q0 0.406-0.195 0.75t-0.57 0.344q-0.734 0-2.18-0.055t-2.164-0.055q-0.672 0-2 0.055t-1.984 0.055q-0.359 0-0.555-0.328t-0.195-0.703q0-0.469 0.242-0.703t0.562-0.273 0.742-0.117 0.656-0.234q0.516-0.359 0.516-2.234l-0.016-0.891v-12.703q0-0.047 0.008-0.406t0-0.57-0.023-0.602-0.055-0.656-0.102-0.57-0.172-0.492-0.25-0.281q-0.234-0.156-0.703-0.187t-0.828-0.031-0.641-0.219-0.281-0.703q0-0.406 0.187-0.75t0.562-0.344q0.719 0 2.164 0.055t2.164 0.055q0.656 0 1.977-0.055t1.977-0.055q0.391 0 0.586 0.344t0.195 0.75q0 0.469-0.266 0.68t-0.602 0.227-0.773 0.063-0.672 0.203q-0.547 0.328-0.547 2.5l0.016 5q0 0.328 0.016 0.5 0.203 0.047 0.609 0.047h10.922q0.391 0 0.594-0.047 0.016-0.172 0.016-0.5l0.016-5q0-2.172-0.547-2.5-0.281-0.172-0.914-0.195t-1.031-0.203-0.398-0.773q0-0.406 0.195-0.75t0.586-0.344q0.688 0 2.063 0.055t2.063 0.055q0.672 0 2.016-0.055t2.016-0.055q0.391 0 0.586 0.344t0.195 0.75q0 0.469-0.273 0.688t-0.625 0.227-0.805 0.047-0.688 0.195q-0.547 0.359-0.547 2.516l0.016 14.734q0 1.859 0.531 2.188 0.25 0.156 0.719 0.211t0.836 0.070 0.648 0.242 0.281 0.695q0 0.406-0.187 0.75t-0.562 0.344z"/></symbol><symbol xml:space="preserve" viewBox="0 0 16 16" id="f-i-hidden" xmlns="http://www.w3.org/2000/svg"><metadata id="aometadata8"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><path id="aopath5816" d="M 1,5 2,5 2,4 1,4 Z"/><path id="aopath5814" d="M 3,5 4,5 4,4 3,4 Z"/><path id="aopath5812" d="M 5,5 6,5 6,4 5,4 Z"/><path id="aopath5810" d="M 7,5 8,5 8,4 7,4 Z"/><path id="aopath5808" d="M 9,5 10,5 10,4 9,4 Z"/><path id="aopath5806" d="m 11,5 1,0 0,-1 -1,0 z"/><path id="aopath5804" d="m 13,5 1,0 0,-1 -1,0 z"/><path id="aopath5800" d="M 0,6 1,6 1,5 0,5 Z"/><path id="aopath5798" d="m 15,6.9997352 1,0 0,-1 -1,0 z"/><path id="aopath5796" d="M 0,8 1,8 1,7 0,7 Z"/><path id="aopath5794" d="m 15,8.9997352 1,0 0,-1 -1,0 z"/><path id="aopath5792" d="m 0,10 1,0 0,-1.0000001 -1,0 z"/><path id="aopath5790" d="m 15,10.999735 1,0 0,-0.9999998 -1,0 z"/><path id="aopath5786" d="m 2,12 1,0 0,-1 -1,0 z"/><path id="aopath5784" d="m 4,12 1,0 0,-1 -1,0 z"/><path id="aopath5782" d="m 6,12 1,0 0,-1 -1,0 z"/><path id="aopath5780" d="m 8,12 1,0 0,-1 -1,0 z"/><path id="aopath5778" d="m 10,12 1,0 0,-1 -1,0 z"/><path id="aopath5776" d="m 12,12 1,0 0,-1 -1,0 z"/><path id="aorect5768" d="m 14,12 1,0 0,-1 -1,0 z"/><path d="m 15,5 1,0 0,-1 -1,0 z" id="aopath5827"/><path d="m 0,12 1,0 0,-1 -1,0 z" id="aopath5829"/></symbol><symbol viewBox="0 0 384 512" id="f-i-menu" xmlns="http://www.w3.org/2000/svg"><g id="apicomoon-ignore"/><path d="M0 96v64h384v-64h-384zM0 288h384v-64h-384v64zM0 416h384v-64h-384v64z"/></symbol><symbol viewBox="0 0 16 32" id="f-i-minus" xmlns="http://www.w3.org/2000/svg"><path d="M0 14v4h16v-4h-16z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move" xmlns="http://www.w3.org/2000/svg"><path d="M287.744 94.736v129.008h128v-64l96.256 96.256-96.256 96.24v-65.488h-128v129.008h64.496l-96.24 96.24-96.256-96.24h64v-129.008h-128v64.992l-95.744-95.744 95.744-95.744v63.488h128v-129.008h-62.496l94.752-94.736 94.752 94.736h-63.008z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-move-vertical" xmlns="http://www.w3.org/2000/svg"><metadata id="armetadata10"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><sodipodi:namedview pagecolor="#ffffff" bordercolor="#666666" borderopacity="1" objecttolerance="10" gridtolerance="10" guidetolerance="10" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:pageopacity="0" inkscape:pageshadow="2" inkscape:window-width="3440" inkscape:window-height="1416" id="arnamedview6" showgrid="false" inkscape:zoom="1.84375" inkscape:cx="421.4312" inkscape:cy="218.56484" inkscape:window-x="0" inkscape:window-y="24" inkscape:window-maximized="1" inkscape:current-layer="svg2" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"/><path d="m 287.744,94.736 0,321.024 64.496,0 L 256,512 l -96.256,-96.24 64,0 0,-321.024 -62.496,0 L 256,0 350.752,94.736 Z" id="arpath4" xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape" inkscape:connector-curvature="0" xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd" sodipodi:nodetypes="ccccccccccc"/></symbol><symbol viewBox="0 0 20 28" id="f-i-paragraph" xmlns="http://www.w3.org/2000/svg"><path d="M19.969 2.953v1.141q0 0.453-0.289 0.953t-0.664 0.5q-0.781 0-0.844 0.016-0.406 0.094-0.5 0.484-0.047 0.172-0.047 1v18q0 0.391-0.281 0.672t-0.672 0.281h-1.687q-0.391 0-0.672-0.281t-0.281-0.672v-19.031h-2.234v19.031q0 0.391-0.273 0.672t-0.68 0.281h-1.687q-0.406 0-0.68-0.281t-0.273-0.672v-7.75q-2.297-0.187-3.828-0.922-1.969-0.906-3-2.797-1-1.828-1-4.047 0-2.594 1.375-4.469 1.375-1.844 3.266-2.484 1.734-0.578 6.516-0.578h7.484q0.391 0 0.672 0.281t0.281 0.672z"/></symbol><symbol id="f-i-phone-receiver" viewBox="0 0 578.106 578.106" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><g><g><path d="M577.83,456.128c1.225,9.385-1.635,17.545-8.568,24.48l-81.396,80.781 c-3.672,4.08-8.465,7.551-14.381,10.404c-5.916,2.857-11.729,4.693-17.439,5.508c-0.408,0-1.635,0.105-3.676,0.309 c-2.037,0.203-4.689,0.307-7.953,0.307c-7.754,0-20.301-1.326-37.641-3.979s-38.555-9.182-63.645-19.584 c-25.096-10.404-53.553-26.012-85.376-46.818c-31.823-20.805-65.688-49.367-101.592-85.68 c-28.56-28.152-52.224-55.08-70.992-80.783c-18.768-25.705-33.864-49.471-45.288-71.299 c-11.425-21.828-19.993-41.616-25.705-59.364S4.59,177.362,2.55,164.51s-2.856-22.95-2.448-30.294 c0.408-7.344,0.612-11.424,0.612-12.24c0.816-5.712,2.652-11.526,5.508-17.442s6.324-10.71,10.404-14.382L98.022,8.756 c5.712-5.712,12.24-8.568,19.584-8.568c5.304,0,9.996,1.53,14.076,4.59s7.548,6.834,10.404,11.322l65.484,124.236 c3.672,6.528,4.692,13.668,3.06,21.42c-1.632,7.752-5.1,14.28-10.404,19.584l-29.988,29.988c-0.816,0.816-1.53,2.142-2.142,3.978 s-0.918,3.366-0.918,4.59c1.632,8.568,5.304,18.36,11.016,29.376c4.896,9.792,12.444,21.726,22.644,35.802 s24.684,30.293,43.452,48.653c18.36,18.77,34.68,33.354,48.96,43.76c14.277,10.4,26.215,18.053,35.803,22.949 c9.588,4.896,16.932,7.854,22.031,8.871l7.648,1.531c0.816,0,2.145-0.307,3.979-0.918c1.836-0.613,3.162-1.326,3.979-2.143 l34.883-35.496c7.348-6.527,15.912-9.791,25.705-9.791c6.938,0,12.443,1.223,16.523,3.672h0.611l118.115,69.768 C571.098,441.238,576.197,447.968,577.83,456.128z"/></g></g><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/><g/></symbol><symbol id="f-i-radio-group" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M0,1h16V0H0V1z M0,3h16V2H0V3z M5,6h10V5H5V6z M15,9H5v1h10V9z M15,14v-1H5v1H15z M1.5,7C0.7,7,0,6.3,0,5.5S0.7,4,1.5,4 S3,4.7,3,5.5S2.3,7,1.5,7z M1.5,5C1.2,5,1,5.2,1,5.5S1.2,6,1.5,6S2,5.8,2,5.5S1.8,5,1.5,5z M1.5,11.1C0.7,11.1,0,10.4,0,9.6 s0.7-1.5,1.5-1.5S3,8.7,3,9.6S2.3,11.1,1.5,11.1z M1.5,9.1C1.2,9.1,1,9.3,1,9.6s0.2,0.5,0.5,0.5S2,9.8,2,9.6S1.8,9.1,1.5,9.1z M1.5,15C0.7,15,0,14.3,0,13.5S0.7,12,1.5,12S3,12.7,3,13.5S2.3,15,1.5,15z M1.5,13C1.2,13,1,13.2,1,13.5S1.2,14,1.5,14 S2,13.8,2,13.5S1.8,13,1.5,13z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-remove" xmlns="http://www.w3.org/2000/svg"><metadata id="awmetadata8"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><g id="awlayer1"><g transform="translate(170.37199,5.9577983)" id="awg4172"><path id="awrect4155" d="m -159.9194,-18.102955 87.322034,0 0,510.915285 -87.322034,0 z" transform="matrix(0.70710678,-0.70710678,0.70710678,0.70710678,0,0)"/><path id="awrect4155-5" d="m 193.69366,-139.19925 87.32204,0 0,510.91528 -87.32204,0 z" transform="matrix(0.70710678,0.70710678,-0.70710678,0.70710678,0,0)"/></g></g></symbol><symbol id="f-i-rich-text" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path d="M15,1H1C0.4,1,0,1.4,0,2v12c0,0.6,0.4,1,1,1h14c0.6,0,1-0.4,1-1V2C16,1.4,15.6,1,15,1z M1,3.1h0.8v0.3H1V3.1z M1,3.6h0.8 v0.3H1V3.6z M15,14H1V5.1h14V14z M15,4.9H1V4.6h14V4.9z M15,4.4H1V4.1h0.8v0.2h1.5V4.1h1.3v0.2H6V4.1h1.3v0.2h1.5V4.1H10v0.2h1.5 V4.1h1.3v0.2h1.5V4.1H15V4.4z M4.5,3.6v0.3H3.3V3.6H4.5z M3.3,3.4V3.1h1.3v0.3H3.3z M7.3,3.6v0.3H6V3.6H7.3z M6,3.4V3.1h1.3v0.3H6z M10,3.6v0.3H8.8V3.6H10z M8.8,3.4V3.1H10v0.3H8.8z M12.8,3.6v0.3h-1.3V3.6H12.8z M11.5,3.4V3.1h1.3v0.3H11.5z M15,3.9h-0.8V3.6H15 V3.9z M15,3.4h-0.8V3.1H15V3.4z M15,2.9h-0.8V2.8h-1.5v0.2h-1.3V2.8H10v0.2H8.8V2.8H7.3v0.2H6V2.8H4.5v0.2H3.3V2.8H1.8v0.2H1V2.6h14 V2.9z M15,2.4H1V2.1h14V2.4z M3,12v-1h10v1H3z M13,10H3V9h10V10z M11,8H3V7h8V8z"/></symbol><symbol xml:space="preserve" viewBox="0 0 16 16" id="f-i-rows" xmlns="http://www.w3.org/2000/svg"><metadata id="aymetadata4318"><rdf:RDF xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"><cc:Work rdf:about="" xmlns:cc="http://creativecommons.org/ns#"><dc:format xmlns:dc="http://purl.org/dc/elements/1.1/">image/svg+xml</dc:format><dc:type rdf:resource="http://purl.org/dc/dcmitype/StillImage" xmlns:dc="http://purl.org/dc/elements/1.1/"/><dc:title xmlns:dc="http://purl.org/dc/elements/1.1/"/></cc:Work></rdf:RDF></metadata><g transform="matrix(0,1,-1,0,3.0984025,11.835155)" id="ayg7209"><path id="ayrect4860-3-5" d="m 4.1640625,-12.402344 a 0.50004997,0.50004997 0 0 0 -0.5,-0.5 l -5,0 -5,0 -5.0000005,0 a 0.50004997,0.50004997 0 0 0 -0.5,0.5 l 0,15.0000002 a 0.50004997,0.50004997 0 0 0 0.5,0.5 l 4.9648442,0 a 0.50004997,0.50004997 0 0 0 0.035156,0 l 4.9648437,0 a 0.50004997,0.50004997 0 0 0 0.035156,0 l 5,0 a 0.50004997,0.50004997 0 0 0 0.5,-0.5 l 0,-15.0000002 z m -1,0.5 0,14.0000002 -4,0 0,-14.0000002 4,0 z m -5,0 0,14.0000002 -4,0 0,-14.0000002 4,0 z m -5,0 0,14.0000002 -4.0000005,0 0,-14.0000002 4.0000005,0 z"/></g></symbol><symbol id="f-i-select" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path id="azXMLID_1_" d="M0,0v14h0c0,0.6,0.4,1,1,1h10c0.6,0,1-0.4,1-1h0V5h4V0H0z M1,1h10v3H1V1z M1,7h10v3H1V7z M1,14v-3h10v3H1z M15,4h-3V1h3V4z M2,2h1v1H2V2z M2,12h1v1H2V12z M4,12h1v1H4V12z M6,12h1v1H6V12z M9,12v1H8v-1H9z M2,8h1v1H2V8z M4,8h1v1H4V8z M6,8 h1v1H6V8z M13.5,3.1l-1-1.1h1.9L13.5,3.1z M2,6V5h1v1H2L2,6z M4,6V5h1v1H4L4,6z"/></symbol><symbol viewBox="0 0 448 512" id="f-i-settings" xmlns="http://www.w3.org/2000/svg"><g id="baicomoon-ignore"/><path d="M223.969 175c-44.703 0-80.969 36.266-80.969 81 0 44.688 36.266 81.031 80.969 81.031 44.719 0 80.719-36.344 80.719-81.031-0-44.734-36-81-80.719-81zM386.313 302.531l-14.594 35.156 29.469 57.875-36.094 36.094-59.218-27.969-35.156 14.438-17.844 54.625-2.281 7.25h-51.016l-22.078-61.656-35.156-14.5-57.952 29.344-36.078-36.063 27.938-59.25-14.484-35.125-61.767-20.156v-50.984l61.703-22.109 14.485-35.094-25.953-51.234-3.422-6.719 36.031-36.031 59.297 27.922 35.109-14.516 17.828-54.594 2.297-7.234h51l22.094 61.734 35.063 14.516 58.031-29.406 36.063 36.031-27.938 59.203 14.438 35.172 61.875 20.125v50.969l-61.688 22.187z"/></symbol><symbol id="f-i-text-input" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path id="bbXMLID_10_" d="M15,4H4.5V3H6V2H4.5h-1H2v1h1.5v1H1C0.4,4,0,4.5,0,5v6c0,0.6,0.4,1,1,1h2.5v1H2v1h4v-1H4.5v-1H15 c0.6,0,1-0.4,1-1V5C16,4.5,15.6,4,15,4z M1,11V5h2.5v6H1z M15,11H4.5V5H15V11z"/></symbol><symbol id="f-i-textarea" viewBox="0 0 16 16" xml:space="preserve" xmlns="http://www.w3.org/2000/svg"><path id="bcXMLID_1_" d="M3,11v-1h8v1H3L3,11z M3,7h10V6H3V7L3,7z M3,8v1h10V8H3L3,8z M13,4H3v1h10V4L13,4z M16,14V2c0-0.6-0.4-1-1-1 H1C0.4,1,0,1.4,0,2v12c0,0.6,0.4,1,1,1h14C15.6,15,16,14.6,16,14z M15,2v12H1V2H15z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-down" xmlns="http://www.w3.org/2000/svg"><path d="M0 12l11.992 11.992 11.992-11.992h-23.984z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-left" xmlns="http://www.w3.org/2000/svg"><path d="M0 15.996l11.992 11.992v-23.984l-11.992 11.992z"/></symbol><symbol viewBox="0 0 12 32" id="f-i-triangle-right" xmlns="http://www.w3.org/2000/svg"><path d="M0.002 4.008l11.992 11.992-11.992 11.992v-23.984z"/></symbol><symbol viewBox="0 0 24 32" id="f-i-triangle-up" xmlns="http://www.w3.org/2000/svg"><path d="M11.992 8l-11.992 11.992h23.984l-11.992-11.992z"/></symbol><symbol viewBox="0 0 512 512" id="f-i-upload" xmlns="http://www.w3.org/2000/svg"><g id="bhicomoon-ignore"/><path d="M240 352h-240v128h480v-128h-240zM448 416h-64v-32h64v32zM112 160l128-128 128 128h-80v160h-96v-160z"/></symbol></svg>')),t.push(l.init({...this.opts.i18n,locale:Pi.get(A)})),Promise.all(t)}init(){const t=this;this.load(this.userFormData,t.opts),this.controls=Wa.init(t.opts.controls,t.opts.stickyControls),t.formId=bl.get("id"),this.i18n={setLang:e=>{Pi.set(A,e);l.setCurrent(e).then((()=>{this.controls=Wa.init(t.opts.controls),t.render()}),console.error)}},t.render()}load(t=this.userFormData,e=this.opts){return this.Components.load(t,e)}render(){const t=document.createElement("script");t.src="https://cdnjs.cloudflare.com/ajax/libs/tinymce/4.9.11/tinymce.min.js",document.head.appendChild(t),this.stages=Object.values(bl.get("stages")),this.opts.controlOnLeft&&this.stages.forEach((t=>{t.dom.style.order=1}));const e={attrs:{className:"formeo formeo-editor",id:this.formId},content:[this.stages.map((({dom:t})=>t))]};l.current.dir&&(e.attrs.dir=l.current.dir,Ol.dir=l.current.dir),this.editor=Ol.create(e);(this.controls.container||this.editor).appendChild(this.controls.dom),this.editorContainer&&(Ol.empty(this.editorContainer),this.editorContainer.appendChild(this.editor)),Cl.formeoLoaded=new window.CustomEvent("formeoLoaded",{detail:{formeo:this}}),document.dispatchEvent(Cl.formeoLoaded)}};var _l=_e,jl=function(t){return this.__data__.set(t,"__lodash_hash_undefined__"),this},Al=function(t){return this.__data__.has(t)};function Dl(t){var e=-1,n=null==t?0:t.length;for(this.__data__=new _l;++e<n;)this.add(t[e])}Dl.prototype.add=Dl.prototype.push=jl,Dl.prototype.has=Al;var kl=Dl,Tl=function(t,e){for(var n=-1,o=null==t?0:t.length;++n<o;)if(e(t[n],n,t))return!0;return!1},zl=function(t,e){return t.has(e)};var Pl=function(t,e,n,o,i,r){var s=1&n,a=t.length,l=e.length;if(a!=l&&!(s&&l>a))return!1;var c=r.get(t),d=r.get(e);if(c&&d)return c==e&&d==t;var h=-1,u=!0,p=2&n?new kl:void 0;for(r.set(t,e),r.set(e,t);++h<a;){var m=t[h],g=e[h];if(o)var f=s?o(g,m,h,e,t,r):o(m,g,h,t,e,r);if(void 0!==f){if(f)continue;u=!1;break}if(p){if(!Tl(e,(function(t,e){if(!zl(p,e)&&(m===t||i(m,t,n,o,r)))return p.push(e)}))){u=!1;break}}else if(m!==g&&!i(m,g,n,o,r)){u=!1;break}}return r.delete(t),r.delete(e),u};var Ll=on,$l=q,Hl=Pl,Vl=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t,o){n[++e]=[o,t]})),n},Il=function(t){var e=-1,n=Array(t.size);return t.forEach((function(t){n[++e]=t})),n},Fl=gt?gt.prototype:void 0,Bl=Fl?Fl.valueOf:void 0;var Rl=function(t,e,n,o,i,r,s){switch(n){case"[object DataView]":if(t.byteLength!=e.byteLength||t.byteOffset!=e.byteOffset)return!1;t=t.buffer,e=e.buffer;case"[object ArrayBuffer]":return!(t.byteLength!=e.byteLength||!r(new Ll(t),new Ll(e)));case"[object Boolean]":case"[object Date]":case"[object Number]":return $l(+t,+e);case"[object Error]":return t.name==e.name&&t.message==e.message;case"[object RegExp]":case"[object String]":return t==e+"";case"[object Map]":var a=Vl;case"[object Set]":var l=1&o;if(a||(a=Il),t.size!=e.size&&!l)return!1;var c=s.get(t);if(c)return c==e;o|=2,s.set(t,e);var d=Hl(a(t),a(e),o,i,r,s);return s.delete(t),d;case"[object Symbol]":if(Bl)return Bl.call(t)==Bl.call(e)}return!1};var Wl=function(t,e){for(var n=-1,o=e.length,i=t.length;++n<o;)t[i+n]=e[n];return t},ql=An;var Ul=function(t,e,n){var o=e(t);return ql(t)?o:Wl(o,n(t))};var Gl=function(t,e){for(var n=-1,o=null==t?0:t.length,i=0,r=[];++n<o;){var s=t[n];e(s,n,t)&&(r[i++]=s)}return r},Xl=function(){return[]},Yl=Object.prototype.propertyIsEnumerable,Zl=Object.getOwnPropertySymbols,Jl=Zl?function(t){return null==t?[]:(t=Object(t),Gl(Zl(t),(function(e){return Yl.call(t,e)})))}:Xl,Kl=un(Object.keys,Object),Ql=gn,tc=Kl,ec=Object.prototype.hasOwnProperty;var nc=Oo,oc=function(t){if(!Ql(t))return tc(t);var e=[];for(var n in Object(t))ec.call(t,n)&&"constructor"!=n&&e.push(n);return e},ic=zn;var rc=Ul,sc=Jl,ac=function(t){return ic(t)?nc(t):oc(t)};var lc=function(t){return rc(t,ac,sc)},cc=Object.prototype.hasOwnProperty;var dc=function(t,e,n,o,i,r){var s=1&n,a=lc(t),l=a.length;if(l!=lc(e).length&&!s)return!1;for(var c=l;c--;){var d=a[c];if(!(s?d in e:cc.call(e,d)))return!1}var h=r.get(t),u=r.get(e);if(h&&u)return h==e&&u==t;var p=!0;r.set(t,e),r.set(e,t);for(var m=s;++c<l;){var g=t[d=a[c]],f=e[d];if(o)var v=s?o(f,g,d,e,t,r):o(g,f,d,t,e,r);if(!(void 0===v?g===f||i(g,f,n,o,r):v)){p=!1;break}m||(m="constructor"==d)}if(p&&!m){var b=t.constructor,y=e.constructor;b==y||!("constructor"in t)||!("constructor"in e)||"function"==typeof b&&b instanceof b&&"function"==typeof y&&y instanceof y||(p=!1)}return r.delete(t),r.delete(e),p},hc=Yt(mt,"DataView"),uc=Zt,pc=Yt(mt,"Promise"),mc=Yt(mt,"Set"),gc=Yt(mt,"WeakMap"),fc=Nt,vc=Lt,bc="[object Map]",yc="[object Promise]",wc="[object Set]",xc="[object WeakMap]",Cc="[object DataView]",Ec=vc(hc),Sc=vc(uc),Oc=vc(pc),Nc=vc(mc),Mc=vc(gc),_c=fc;(hc&&_c(new hc(new ArrayBuffer(1)))!=Cc||uc&&_c(new uc)!=bc||pc&&_c(pc.resolve())!=yc||mc&&_c(new mc)!=wc||gc&&_c(new gc)!=xc)&&(_c=function(t){var e=fc(t),n="[object Object]"==e?t.constructor:void 0,o=n?vc(n):"";if(o)switch(o){case Ec:return Cc;case Sc:return bc;case Oc:return yc;case Nc:return wc;case Mc:return xc}return e});var jc=Ve,Ac=Pl,Dc=Rl,kc=dc,Tc=_c,zc=An,Pc=In,Lc=ao,$c="[object Arguments]",Hc="[object Array]",Vc="[object Object]",Ic=Object.prototype.hasOwnProperty;var Fc=function(t,e,n,o,i,r){var s=zc(t),a=zc(e),l=s?Hc:Tc(t),c=a?Hc:Tc(e),d=(l=l==$c?Vc:l)==Vc,h=(c=c==$c?Vc:c)==Vc,u=l==c;if(u&&Pc(t)){if(!Pc(e))return!1;s=!0,d=!1}if(u&&!d)return r||(r=new jc),s||Lc(t)?Ac(t,e,n,o,i,r):Dc(t,e,l,n,o,i,r);if(!(1&n)){var p=d&&Ic.call(t,"__wrapped__"),m=h&&Ic.call(e,"__wrapped__");if(p||m){var g=p?t.value():t,f=m?e.value():e;return r||(r=new jc),i(g,f,n,o,r)}}return!!u&&(r||(r=new jc),kc(t,e,n,o,i,r))},Bc=wn;var Rc=function t(e,n,o,i,r){return e===n||(null==e||null==n||!Bc(e)&&!Bc(n)?e!=e&&n!=n:Fc(e,n,o,i,t,r))},Wc=Rc;const qc=R((function(t,e){return Wc(t,e)})),Uc=t=>{const e=t.match(I);return e&&e[0]||t},Gc=t=>t.replace(I,Ai());let Xc=class{constructor(t,e={}){n(this,"render",((t=this.form)=>{this.form=t;const e=document.getElementsByClassName("formeo-render").length,n={id:this.form.id,className:`formeo-render formeo formeo-rendered-${e}`,children:this.processedData};this.renderedForm=Ol.render(n),Ol.empty(this.container),this.applyConditions(),this.container.appendChild(this.renderedForm)})),n(this,"orderChildren",((t,e)=>e.reduce(((e,n)=>[...e,this.form[t][n]]),[]))),n(this,"prefixId",(t=>"f-"+t)),n(this,"processColumn",(({id:t,...e})=>Object.assign({},e,{id:this.prefixId(t),children:this.processFields(e.children),style:`width: ${e.config.width||"100%"}`}))),n(this,"processRows",(t=>this.orderChildren("rows",this.form.stages[t].children).reduce(((t,e)=>e?[...t,this.processRow(e)]:t),[]))),n(this,"cacheComponent",(t=>(this.components[Uc(t.id)]=t,t))),n(this,"processRow",((t,e="row")=>{const{config:n,id:o}=t,i=[`formeo-${e}-wrap`],r=Object.assign({},t,{children:this.processColumns(t.id),id:this.prefixId(o)});this.cacheComponent(r);const s=[{condition:n.legend,result:()=>({tag:n.fieldset?"legend":"h3",children:n.legend})},{condition:!0,result:()=>r},{condition:n.inputGroup,result:()=>this.addButton(o)}].reduce(((t,{condition:e,result:n})=>e?[...t,n()]:t),[]);return n.inputGroup&&i.push("f-input-group-wrap"),{tag:n.fieldset?"fieldset":"div",id:Ai(),className:i,children:s}})),n(this,"cloneComponentData",(t=>{const{children:e=[],id:n,...o}=this.components[t];return Object.assign({},o,{id:Gc(n),children:e.length&&e.map((({id:t})=>this.cloneComponentData(Uc(t))))})})),n(this,"addButton",(t=>Ol.render({tag:"button",attrs:{className:"add-input-group btn pull-right",type:"button"},children:"Add +",action:{click:e=>{const n=e.target.parentElement,o=Ol.render(this.cloneComponentData(t));n.insertBefore(o,n.lastChild),o.appendChild(Ol.render(Ol.btnTemplate({className:"remove-input-group",children:Ol.icon("remove"),action:{mouseover:({target:t})=>t.parentElement.classList.add("will-remove"),mouseleave:({target:t})=>t.parentElement.classList.remove("will-remove"),click:({target:t})=>t.parentElement.remove()}})))}}}))),n(this,"processColumns",(t=>this.orderChildren("columns",this.form.rows[t].children).map((t=>this.cacheComponent(this.processColumn(t)))))),n(this,"processFields",(t=>this.orderChildren("fields",t).map((({id:t,...e})=>this.cacheComponent(Object.assign({},e,{id:this.prefixId(t)})))))),n(this,"applyConditions",(()=>{Object.values(this.components).forEach((({conditions:t})=>{t&&t.forEach(((t,e)=>{const{if:n,then:o}=t;n.forEach((t=>{const{source:e,...n}=t;if(Li(e)){this.getComponents(e).forEach((t=>{const e=Yc(t);e&&t.addEventListener(e,(t=>this.evaluateCondition(n,t)&&o.forEach((e=>this.execResult(e,t)))),!1);const i={target:t};this.evaluateCondition(n,i)&&o.forEach((t=>this.execResult(t,i)))}))}}))}))}))})),n(this,"evaluateCondition",(({sourceProperty:t,targetProperty:e,comparison:n,target:o},i)=>{const r={equals:qc,notEquals:(t,e)=>!qc(t,e),contains:(t,e)=>t.includes(e),notContains:(t,e)=>!t.includes(e)},s=String(i.target[t]),a=String(Li(o)?this.getComponent(o)[e]:o);return r[n]&&r[n](s,a)})),n(this,"execResult",(({assignment:t,target:e,targetProperty:n,value:o})=>{const i={equals:t=>{const e={value:()=>{t[n]=o},isNotVisible:()=>{t.parentElement.setAttribute("hidden",!0),t.required=!1},isVisible:()=>{t.parentElement.removeAttribute("hidden"),t.required=t._required}};e[n]&&e[n]()}};if(Li(e)){const n=this.getComponent(e);n&&void 0===n._required&&(n._required=n.required),i[t]&&i[t](n)}})),n(this,"getComponent",(t=>{const e=t.slice(t.indexOf(".")+1);return $i(t)?this.external[e]:this.renderedForm.querySelector(`#f-${e}`)})),n(this,"getComponents",(t=>{const e=[],n=t.slice(t.indexOf(".")+1);return $i(t)?e.push(this.external[n]):e.push(...this.renderedForm.querySelectorAll(`[name=f-${n}]`)),e}));const{renderContainer:o,external:i}=(({editorContainer:t,renderContainer:e,...n})=>{const o=t=>"string"==typeof t?document.querySelector(t):t,i={renderContainer:o(e),editorContainer:o(t)};return Object.assign({},n,i)})(t);this.container=o,this.form=e,this.external=i,this.dom=Ol,this.components=Object.create(null)}get processedData(){return Object.values(this.form.stages).map((t=>(t.children=this.processRows(t.id),t.className=u,Ol.render(t))))}};const Yc=t=>{const[e]=[["input",t=>["textarea","text"].includes(t.type)],["change",t=>["select"].includes(t.tagName.toLowerCase())||["checkbox","radio"].includes(t.type)]].find((e=>e[1](t)))||[!1];return e};void 0!==window&&(window.FormeoEditor=Ml,window.FormeoRenderer=Xc);const Zc=Ml,Jc=Xc;t.FormeoEditor=Zc,t.FormeoRenderer=Jc,Object.defineProperty(t,Symbol.toStringTag,{value:"Module"})}));
|