Version Description
- Added Clone option on front end.
Download this release
Release Info
Developer | boldthemes |
Plugin | Bold Page Builder |
Version | 4.4.4 |
Comparing to | |
See all releases |
Code changes from version 4.4.3 to 4.4.4
- bold-builder.php +2 -2
- build/bundle_fe.js +1 -1
- readme.txt +4 -1
bold-builder.php
CHANGED
@@ -3,7 +3,7 @@
|
|
3 |
/**
|
4 |
* Plugin Name: Bold Builder
|
5 |
* Description: WordPress page builder.
|
6 |
-
* Version: 4.4.
|
7 |
* Author: BoldThemes
|
8 |
* Author URI: https://www.bold-themes.com
|
9 |
* Text Domain: bold-builder
|
@@ -12,7 +12,7 @@
|
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
// VERSION --------------------------------------------------------- \\
|
15 |
-
define( 'BT_BB_VERSION', '4.4.
|
16 |
// VERSION --------------------------------------------------------- \\
|
17 |
|
18 |
/**
|
3 |
/**
|
4 |
* Plugin Name: Bold Builder
|
5 |
* Description: WordPress page builder.
|
6 |
+
* Version: 4.4.4
|
7 |
* Author: BoldThemes
|
8 |
* Author URI: https://www.bold-themes.com
|
9 |
* Text Domain: bold-builder
|
12 |
defined( 'ABSPATH' ) || exit;
|
13 |
|
14 |
// VERSION --------------------------------------------------------- \\
|
15 |
+
define( 'BT_BB_VERSION', '4.4.4' );
|
16 |
// VERSION --------------------------------------------------------- \\
|
17 |
|
18 |
/**
|
build/bundle_fe.js
CHANGED
@@ -5,4 +5,4 @@
|
|
5 |
* @author owenm <owen23355@gmail.com>
|
6 |
* @license MIT
|
7 |
*/
|
8 |
-
function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t){return(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})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function l(t,e){if(null==t)return{};var n,i,o=function(t,e){if(null==t)return{};var n,i,o={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function s(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"MultiDrag",function(){return xe}),n.d(e,"Sortable",function(){return Yt}),n.d(e,"Swap",function(){return de});function d(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var c=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=d(/Edge/i),f=d(/firefox/i),p=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),m=d(/iP(ad|od|hone)/i),h=d(/chrome/i)&&d(/android/i),g={capture:!1,passive:!1};function w(t,e,n){t.addEventListener(e,n,!c&&g)}function v(t,e,n){t.removeEventListener(e,n,!c&&g)}function y(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 x(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||i&&t===n)return t;if(t===n)break}while(t=x(t))}return null}var C,E=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(E," ")}}function D(t,e,n){var i=t&&t.style;if(i){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 i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function T(t,e){var n="";if("string"==typeof t)n=t;else do{var i=D(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function O(t,e,n){if(t){var i=t.getElementsByTagName(e),o=0,a=i.length;if(n)for(;o<a;o++)n(i[o],o);return i}return[]}function M(){var t=document.scrollingElement;return t||document.documentElement}function A(t,e,n,i,o){if(t.getBoundingClientRect||t===window){var a,r,b,l,s,_,d;if(t!==window&&t.parentNode&&t!==M()?(r=(a=t.getBoundingClientRect()).top,b=a.left,l=a.bottom,s=a.right,_=a.height,d=a.width):(r=0,b=0,l=window.innerHeight,s=window.innerWidth,_=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!c))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var u=o.getBoundingClientRect();r-=u.top+parseInt(D(o,"border-top-width")),b-=u.left+parseInt(D(o,"border-left-width")),l=r+a.height,s=b+a.width;break}}while(o=o.parentNode);if(i&&t!==window){var f=T(o||t),p=f&&f.a,m=f&&f.d;f&&(l=(r/=m)+(_/=m),s=(b/=p)+(d/=p))}return{top:r,left:b,bottom:l,right:s,width:d,height:_}}}function j(t,e,n){for(var i=H(t,!0),o=A(t)[e];i;){var a=A(i)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return i;if(i===M())break;i=H(i,!1)}return!1}function I(t,e,n,i){for(var o=0,a=0,r=t.children;a<r.length;){if("none"!==r[a].style.display&&r[a]!==Yt.ghost&&(i||r[a]!==Yt.dragged)&&k(r[a],n.draggable,t,!1)){if(o===e)return r[a];o++}a++}return null}function N(t,e){for(var n=t.lastElementChild;n&&(n===Yt.ghost||"none"===D(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function P(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Yt.clone||e&&!y(t,e)||n++;return n}function R(t){var e=0,n=0,i=M();if(t)do{var o=T(t),a=o.a,r=o.d;e+=t.scrollLeft*a,n+=t.scrollTop*r}while(t!==i&&(t=t.parentNode));return[e,n]}function H(t,e){if(!t||!t.getBoundingClientRect)return M();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(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 M();if(i||e)return n;i=!0}}}while(n=n.parentNode);return M()}function L(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 q(t,e){return function(){if(!C){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),C=setTimeout(function(){C=void 0},e)}}}function B(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(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 X(t,e){D(t,"position","absolute"),D(t,"top",e.top),D(t,"left",e.left),D(t,"width",e.width),D(t,"height",e.height)}function Y(t){D(t,"position",""),D(t,"top",""),D(t,"left",""),D(t,"width",""),D(t,"height","")}var F="Sortable"+(new Date).getTime();function W(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==D(t,"display")&&t!==Yt.ghost){e.push({target:t,rect:A(t)});var n=o({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=T(t,!0);i&&(n.top-=i.f,n.left-=i.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 i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,a=0;e.forEach(function(t){var e=0,n=t.target,r=n.fromRect,b=A(n),l=n.prevFromRect,s=n.prevToRect,_=t.rect,d=T(n,!0);d&&(b.top-=d.f,b.left-=d.e),n.toRect=b,n.thisAnimationDuration&&L(l,b)&&!L(r,b)&&(_.top-b.top)/(_.left-b.left)==(r.top-b.top)/(r.left-b.left)&&(e=function(t,e,n,i){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))*i.animation}(_,l,s,i.options)),L(b,r)||(n.prevFromRect=r,n.prevToRect=b,e||(e=i.options.animation),i.animate(n,_,b,e)),e&&(o=!0,a=Math.max(a,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),o?t=setTimeout(function(){"function"==typeof n&&n()},a):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){D(t,"transition",""),D(t,"transform","");var o=T(this.el),a=o&&o.a,r=o&&o.d,b=(e.left-n.left)/(a||1),l=(e.top-n.top)/(r||1);t.animatingX=!!b,t.animatingY=!!l,D(t,"transform","translate3d("+b+"px,"+l+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}var K=[],U={initializeByDefault:!0},G={mount:function(t){for(var e in U)!U.hasOwnProperty(e)||e in t||(t[e]=U[e]);K.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),K.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var a=t+"Global";K.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][a]&&e[i.pluginName][a](o({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](o({sortable:e},n)))})},initializePlugins:function(t,e,n,i){for(var o in K.forEach(function(i){var o=i.pluginName;if(t.options[o]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[o]=a,b(n,a.defaults)}}),t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);void 0!==a&&(t.options[o]=a)}},getEventProperties:function(t,e){var n={};return K.forEach(function(i){"function"==typeof i.eventProperties&&b(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return K.forEach(function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(i=o.optionListeners[e].call(t[o.pluginName],n))}),i}};function Q(t){var e=t.sortable,n=t.rootEl,i=t.name,a=t.targetEl,r=t.cloneEl,b=t.toEl,l=t.fromEl,s=t.oldIndex,_=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[F]){var g,w=e.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||c||u?(g=document.createEvent("Event")).initEvent(i,!0,!0):g=new CustomEvent(i,{bubbles:!0,cancelable:!0}),g.to=b||n,g.from=l||n,g.item=a||n,g.clone=r,g.oldIndex=s,g.newIndex=_,g.oldDraggableIndex=d,g.newDraggableIndex=f,g.originalEvent=p,g.pullMode=m?m.lastPutMode:void 0;var y=o(o({},h),G.getEventProperties(i,e));for(var x in y)g[x]=y[x];n&&n.dispatchEvent(g),w[v]&&w[v].call(e,g)}}var Z=["evt"],$=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,a=l(n,Z);G.pluginEvent.bind(Yt)(t,e,o({dragEl:V,parentEl:tt,ghostEl:et,rootEl:nt,nextEl:it,lastDownEl:ot,cloneEl:at,cloneHidden:rt,dragStarted:wt,putSortable:ct,activeSortable:Yt.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:_t,hideGhostForTarget:qt,unhideGhostForTarget:Bt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:i})}},a))};function J(t){Q(o({putSortable:ct,cloneEl:at,targetEl:V,rootEl:nt,oldIndex:bt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:_t},t))}var V,tt,et,nt,it,ot,at,rt,bt,lt,st,_t,dt,ct,ut,ft,pt,mt,ht,gt,wt,vt,yt,xt,kt,Ct=!1,Et=!1,St=[],Dt=!1,Tt=!1,Ot=[],Mt=!1,At=[],jt="undefined"!=typeof document,It=m,Nt=u||c?"cssFloat":"float",Pt=jt&&!h&&!m&&"draggable"in document.createElement("div"),Rt=function(){if(jt){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var n=D(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=I(t,0,e),a=I(t,1,e),r=o&&D(o),b=a&&D(a),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+A(o).width,s=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+A(a).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(o&&r.float&&"none"!==r.float){var _="left"===r.float?"left":"right";return!a||"both"!==b.clear&&b.clear!==_?"horizontal":"vertical"}return o&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||l>=i&&"none"===n[Nt]||a&&"none"===n[Nt]&&l+s>i)?"vertical":"horizontal"},Lt=function(t){function e(t,n){return function(i,o,a,r){var b=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==t&&(n||b))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,o,a,r),n)(i,o,a,r);var l=(n?i:o).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==a(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},qt=function(){!Rt&&et&&D(et,"display","none")},Bt=function(){!Rt&&et&&D(et,"display","")};jt&&document.addEventListener("click",function(t){if(Et)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Et=!1,!1},!0);var zt=function(t){if(V){t=t.touches?t.touches[0]:t;var e=(o=t.clientX,a=t.clientY,St.some(function(t){var e=t[F].options.emptyInsertThreshold;if(e&&!N(t)){var n=A(t),i=o>=n.left-e&&o<=n.right+e,b=a>=n.top-e&&a<=n.bottom+e;return i&&b?r=t:void 0}}),r);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[F]._onDragOver(n)}}var o,a,r},Xt=function(t){V&&V.parentNode[F]._isOutsideThisEl(t.target)};function Yt(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=b({},e),t[F]=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 Ht(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!==Yt.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var i in G.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var o in Lt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Pt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?w(t,"pointerdown",this._onTapStart):(w(t,"mousedown",this._onTapStart),w(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(w(t,"dragover",this),w(t,"dragenter",this)),St.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),b(this,W())}function Ft(t,e,n,i,o,a,r,b){var l,s,_=t[F],d=_.options.onMove;return!window.CustomEvent||c||u?(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=i,l.related=o||e,l.relatedRect=a||A(e),l.willInsertAfter=b,l.originalEvent=r,t.dispatchEvent(l),d&&(s=d.call(_,l,r)),s}function Wt(t){t.draggable=!1}function Kt(){Mt=!1}function Ut(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function Gt(t){return setTimeout(t,0)}function Qt(t){return clearTimeout(t)}Yt.prototype={constructor:Yt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,V):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,o=i.preventOnFilter,a=t.type,r=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,b=(r||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||b,s=i.filter;if(function(t){At.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var i=e[n];i.checked&&At.push(i)}}(n),!V&&!(/mousedown|pointerdown/.test(a)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!b||"SELECT"!==b.tagName.toUpperCase())&&!((b=k(b,i.draggable,n,!1))&&b.animated||ot===b)){if(bt=P(b),st=P(b,i.draggable),"function"==typeof s){if(s.call(this,t,b,this))return J({sortable:e,rootEl:l,name:"filter",targetEl:b,toEl:n,fromEl:n}),$("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(s&&(s=s.split(",").some(function(i){if(i=k(l,i.trim(),n,!1))return J({sortable:e,rootEl:i,name:"filter",targetEl:b,fromEl:n,toEl:n}),$("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());i.handle&&!k(l,i.handle,n,!1)||this._prepareDragStart(t,r,b)}}},_prepareDragStart:function(t,e,n){var i,o=this,a=o.el,r=o.options,b=a.ownerDocument;if(n&&!V&&n.parentNode===a){var l=A(n);if(nt=a,tt=(V=n).parentNode,it=V.nextSibling,ot=n,dt=r.group,Yt.dragged=V,ut={target:V,clientX:(e||t).clientX,clientY:(e||t).clientY},ht=ut.clientX-l.left,gt=ut.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,V.style["will-change"]="all",i=function(){$("delayEnded",o,{evt:t}),Yt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&(V.draggable=!0),o._triggerDragStart(t,e),J({sortable:o,name:"choose",originalEvent:t}),S(V,r.chosenClass,!0))},r.ignore.split(",").forEach(function(t){O(V,t.trim(),Wt)}),w(b,"dragover",zt),w(b,"mousemove",zt),w(b,"touchmove",zt),w(b,"mouseup",o._onDrop),w(b,"touchend",o._onDrop),w(b,"touchcancel",o._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,V.draggable=!0),$("delayStart",this,{evt:t}),!r.delay||r.delayOnTouchOnly&&!e||this.nativeDraggable&&(u||c))i();else{if(Yt.eventCanceled)return void this._onDrop();w(b,"mouseup",o._disableDelayedDrag),w(b,"touchend",o._disableDelayedDrag),w(b,"touchcancel",o._disableDelayedDrag),w(b,"mousemove",o._delayedDragTouchMoveHandler),w(b,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&w(b,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,r.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(){V&&Wt(V),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?w(document,"pointermove",this._onTouchMove):w(document,e?"touchmove":"mousemove",this._onTouchMove):(w(V,"dragend",this),w(nt,"dragstart",this._onDragStart));try{document.selection?Gt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Ct=!1,nt&&V){$("dragStarted",this,{evt:e}),this.nativeDraggable&&w(document,"dragover",Xt);var n=this.options;!t&&S(V,n.dragClass,!1),S(V,n.ghostClass,!0),Yt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ft){this._lastX=ft.clientX,this._lastY=ft.clientY,qt();for(var t=document.elementFromPoint(ft.clientX,ft.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ft.clientX,ft.clientY))!==e;)e=t;if(V.parentNode[F]._isOutsideThisEl(t),e)do{if(e[F]){if(e[F]._onDragOver({clientX:ft.clientX,clientY:ft.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=et&&T(et,!0),r=et&&a&&a.a,b=et&&a&&a.d,l=It&&kt&&R(kt),s=(o.clientX-ut.clientX+i.x)/(r||1)+(l?l[0]-Ot[0]:0)/(r||1),_=(o.clientY-ut.clientY+i.y)/(b||1)+(l?l[1]-Ot[1]:0)/(b||1);if(!Yt.active&&!Ct){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(et){a?(a.e+=s-(pt||0),a.f+=_-(mt||0)):a={a:1,b:0,c:0,d:1,e:s,f:_};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");D(et,"webkitTransform",d),D(et,"mozTransform",d),D(et,"msTransform",d),D(et,"transform",d),pt=s,mt=_,ft=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:nt,e=A(V,!0,It,!0,t),n=this.options;if(It){for(kt=t;"static"===D(kt,"position")&&"none"===D(kt,"transform")&&kt!==document;)kt=kt.parentNode;kt!==document.body&&kt!==document.documentElement?(kt===document&&(kt=M()),e.top+=kt.scrollTop,e.left+=kt.scrollLeft):kt=M(),Ot=R(kt)}S(et=V.cloneNode(!0),n.ghostClass,!1),S(et,n.fallbackClass,!0),S(et,n.dragClass,!0),D(et,"transition",""),D(et,"transform",""),D(et,"box-sizing","border-box"),D(et,"margin",0),D(et,"top",e.top),D(et,"left",e.left),D(et,"width",e.width),D(et,"height",e.height),D(et,"opacity","0.8"),D(et,"position",It?"absolute":"fixed"),D(et,"zIndex","100000"),D(et,"pointerEvents","none"),Yt.ghost=et,t.appendChild(et),D(et,"transform-origin",ht/parseInt(et.style.width)*100+"% "+gt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,o=n.options;$("dragStart",this,{evt:t}),Yt.eventCanceled?this._onDrop():($("setupClone",this),Yt.eventCanceled||((at=z(V)).draggable=!1,at.style["will-change"]="",this._hideClone(),S(at,this.options.chosenClass,!1),Yt.clone=at),n.cloneId=Gt(function(){$("clone",n),Yt.eventCanceled||(n.options.removeCloneOnHide||nt.insertBefore(at,V),n._hideClone(),J({sortable:n,name:"clone"}))}),!e&&S(V,o.dragClass,!0),e?(Et=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,V)),w(document,"drop",n),D(V,"transform","translateZ(0)")),Ct=!0,n._dragStartId=Gt(n._dragStarted.bind(n,e,t)),w(document,"selectstart",n),wt=!0,p&&D(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,a,r=this.el,b=t.target,l=this.options,s=l.group,_=Yt.active,d=dt===s,c=l.sort,u=ct||_,f=this,p=!1;if(!Mt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),b=k(b,l.draggable,r,!0),L("dragOver"),Yt.eventCanceled)return p;if(V.contains(t.target)||b.animated&&b.animatingX&&b.animatingY||f._ignoreWhileAnimating===b)return z(!1);if(Et=!1,_&&!l.disabled&&(d?c||(i=tt!==nt):ct===this||(this.lastPutMode=dt.checkPull(this,_,V,t))&&s.checkPut(this,_,V,t))){if(a="vertical"===this._getDirection(t,b),e=A(V),L("dragOverValid"),Yt.eventCanceled)return p;if(i)return tt=nt,q(),this._hideClone(),L("revert"),Yt.eventCanceled||(it?nt.insertBefore(V,it):nt.appendChild(V)),z(!0);var m=N(r,l.draggable);if(!m||function(t,e,n){var i=A(N(n.el,n.options.draggable));return e?t.clientX>i.right+10||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+10}(t,a,this)&&!m.animated){if(m===V)return z(!1);if(m&&r===t.target&&(b=m),b&&(n=A(b)),!1!==Ft(nt,r,V,e,b,n,t,!!b))return q(),r.appendChild(V),tt=r,X(),z(!0)}else if(m&&function(t,e,n){var i=A(I(n.el,0,n.options,!0));return e?t.clientX<i.left-10||t.clientY<i.top&&t.clientX<i.right:t.clientY<i.top-10||t.clientY<i.bottom&&t.clientX<i.left}(t,a,this)){var h=I(r,0,l,!0);if(h===V)return z(!1);if(n=A(b=h),!1!==Ft(nt,r,V,e,b,n,t,!1))return q(),r.insertBefore(V,h),tt=r,X(),z(!0)}else if(b.parentNode===r){n=A(b);var g,w,v,y=V.parentNode!==r,x=!function(t,e,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,a=n?t.width:t.height,r=n?e.left:e.top,b=n?e.right:e.bottom,l=n?e.width:e.height;return i===r||o===b||i+a/2===r+l/2}(V.animated&&V.toRect||e,b.animated&&b.toRect||n,a),C=a?"top":"left",E=j(b,"top","top")||j(V,"top","top"),T=E?E.scrollTop:void 0;if(vt!==b&&(w=n[C],Dt=!1,Tt=!x&&l.invertSwap||y),0!==(g=function(t,e,n,i,o,a,r,b){var l=i?t.clientY:t.clientX,s=i?n.height:n.width,_=i?n.top:n.left,d=i?n.bottom:n.right,c=!1;if(!r)if(b&&xt<s*o){if(!Dt&&(1===yt?l>_+s*a/2:l<d-s*a/2)&&(Dt=!0),Dt)c=!0;else if(1===yt?l<_+xt:l>d-xt)return-yt}else if(l>_+s*(1-o)/2&&l<d-s*(1-o)/2)return function(t){return P(V)<P(t)?1:-1}(e);if((c=c||r)&&(l<_+s*a/2||l>d-s*a/2))return l>_+s/2?1:-1;return 0}(t,b,n,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Tt,vt===b))){var O=P(V);do{O-=g,v=tt.children[O]}while(v&&("none"===D(v,"display")||v===et))}if(0===g||v===b)return z(!1);vt=b,yt=g;var M=b.nextElementSibling,R=!1,H=Ft(nt,r,V,e,b,n,t,R=1===g);if(!1!==H)return 1!==H&&-1!==H||(R=1===H),Mt=!0,setTimeout(Kt,30),q(),R&&!M?r.appendChild(V):b.parentNode.insertBefore(V,R?M:b),E&&B(E,0,T-E.scrollTop),tt=V.parentNode,void 0===w||Tt||(xt=Math.abs(w-A(b)[C])),X(),z(!0)}if(r.contains(V))return z(!1)}return!1}function L(l,s){$(l,f,o({evt:t,isOwner:d,axis:a?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:c,fromSortable:u,target:b,completed:z,onMove:function(n,i){return Ft(nt,r,V,e,n,A(n),t,i)},changed:X},s))}function q(){L("dragOverAnimationCapture"),f.captureAnimationState(),f!==u&&u.captureAnimationState()}function z(e){return L("dragOverCompleted",{insertion:e}),e&&(d?_._hideClone():_._showClone(f),f!==u&&(S(V,ct?ct.options.ghostClass:_.options.ghostClass,!1),S(V,l.ghostClass,!0)),ct!==f&&f!==Yt.active?ct=f:f===Yt.active&&ct&&(ct=null),u===f&&(f._ignoreWhileAnimating=b),f.animateAll(function(){L("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(b===V&&!V.animated||b===r&&!b.animated)&&(vt=null),l.dragoverBubble||t.rootEl||b===document||(V.parentNode[F]._isOutsideThisEl(t.target),!e&&zt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),p=!0}function X(){lt=P(V),_t=P(V,l.draggable),J({sortable:f,name:"change",toEl:r,newIndex:lt,newDraggableIndex:_t,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",zt),v(document,"mousemove",zt),v(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;lt=P(V),_t=P(V,n.draggable),$("drop",this,{evt:t}),tt=V&&V.parentNode,lt=P(V),_t=P(V,n.draggable),Yt.eventCanceled?this._nulling():(Ct=!1,Tt=!1,Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&D(document.body,"user-select",""),D(V,"transform",""),t&&(wt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(nt===tt||ct&&"clone"!==ct.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),V&&(this.nativeDraggable&&v(V,"dragend",this),Wt(V),V.style["will-change"]="",wt&&!Ct&&S(V,ct?ct.options.ghostClass:this.options.ghostClass,!1),S(V,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:tt,newIndex:null,newDraggableIndex:null,originalEvent:t}),nt!==tt?(lt>=0&&(J({rootEl:tt,name:"add",toEl:tt,fromEl:nt,originalEvent:t}),J({sortable:this,name:"remove",toEl:tt,originalEvent:t}),J({rootEl:tt,name:"sort",toEl:tt,fromEl:nt,originalEvent:t}),J({sortable:this,name:"sort",toEl:tt,originalEvent:t})),ct&&ct.save()):lt!==bt&<>=0&&(J({sortable:this,name:"update",toEl:tt,originalEvent:t}),J({sortable:this,name:"sort",toEl:tt,originalEvent:t})),Yt.active&&(null!=lt&&-1!==lt||(lt=bt,_t=st),J({sortable:this,name:"end",toEl:tt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){$("nulling",this),nt=V=tt=et=it=at=ot=rt=ut=ft=wt=lt=_t=bt=st=vt=yt=ct=dt=Yt.dragged=Yt.ghost=Yt.clone=Yt.active=null,At.forEach(function(t){t.checked=!0}),At.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":V&&(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,i=0,o=n.length,a=this.options;i<o;i++)k(t=n[i],a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Ut(t));return e},sort:function(t,e){var n={},i=this.el;this.toArray().forEach(function(t,e){var o=i.children[e];k(o,this.options.draggable,i,!1)&&(n[t]=o)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(i.removeChild(n[t]),i.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=G.modifyOption(this,t,e);n[t]=void 0!==i?i:e,"group"===t&&Lt(n)},destroy:function(){$("destroy",this);var t=this.el;t[F]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!rt){if($("hideClone",this),Yt.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),rt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(rt){if($("showClone",this),Yt.eventCanceled)return;V.parentNode!=nt||this.options.group.revertClone?it?nt.insertBefore(at,it):nt.appendChild(at):nt.insertBefore(at,V),this.options.group.revertClone&&this.animate(V,at),D(at,"display",""),rt=!1}}else this._hideClone()}},jt&&w(document,"touchmove",function(t){(Yt.active||Ct)&&t.cancelable&&t.preventDefault()}),Yt.utils={on:w,off:v,css:D,find:O,is:function(t,e){return!!k(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:q,closest:k,toggleClass:S,clone:z,index:P,nextTick:Gt,cancelNextTick:Qt,detectDirection:Ht,getChild:I},Yt.get=function(t){return t[F]},Yt.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&&(Yt.utils=o(o({},Yt.utils),t.utils)),G.mount(t)})},Yt.create=function(t,e){return new Yt(t,e)},Yt.version="1.14.0";var Zt,$t,Jt,Vt,te,ee,ne=[],ie=!1;function oe(){ne.forEach(function(t){clearInterval(t.pid)}),ne=[]}function ae(){clearInterval(ee)}var re,be=q(function(t,e,n,i){if(e.scroll){var o,a=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,b=e.scrollSensitivity,l=e.scrollSpeed,s=M(),_=!1;$t!==n&&($t=n,oe(),Zt=e.scroll,o=e.scrollFn,!0===Zt&&(Zt=H(n,!0)));var d=0,c=Zt;do{var u=c,f=A(u),p=f.top,m=f.bottom,h=f.left,g=f.right,w=f.width,v=f.height,y=void 0,x=void 0,k=u.scrollWidth,C=u.scrollHeight,E=D(u),S=u.scrollLeft,T=u.scrollTop;u===s?(y=w<k&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),x=v<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(y=w<k&&("auto"===E.overflowX||"scroll"===E.overflowX),x=v<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var O=y&&(Math.abs(g-a)<=b&&S+w<k)-(Math.abs(h-a)<=b&&!!S),j=x&&(Math.abs(m-r)<=b&&T+v<C)-(Math.abs(p-r)<=b&&!!T);if(!ne[d])for(var I=0;I<=d;I++)ne[I]||(ne[I]={});ne[d].vx==O&&ne[d].vy==j&&ne[d].el===u||(ne[d].el=u,ne[d].vx=O,ne[d].vy=j,clearInterval(ne[d].pid),0==O&&0==j||(_=!0,ne[d].pid=setInterval(function(){i&&0===this.layer&&Yt.active._onTouchMove(te);var e=ne[this.layer].vy?ne[this.layer].vy*l:0,n=ne[this.layer].vx?ne[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Yt.dragged.parentNode[F],n,e,t,te,ne[this.layer].el)||B(ne[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&c!==s&&(c=H(c,!1)));ie=_}},30),le=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,r=t.hideGhostForTarget,b=t.unhideGhostForTarget;if(e){var l=n||o;r();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,_=document.elementFromPoint(s.clientX,s.clientY);b(),l&&!l.el.contains(_)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function se(){}function _e(){}function de(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;re=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,o=t.activeSortable,a=t.changed,r=t.cancel;if(o.options.swap){var b=this.sortable.el,l=this.options;if(n&&n!==b){var s=re;!1!==i(n)?(S(n,l.swapClass,!0),re=n):re=null,s&&s!==re&&S(s,l.swapClass,!1)}a(),e(!0),r()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,o=n||this.sortable,a=this.options;re&&S(re,a.swapClass,!1),re&&(a.swap||n&&n.options.swap)&&i!==re&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),function(t,e){var n,i,o=t.parentNode,a=e.parentNode;if(!o||!a||o.isEqualNode(e)||a.isEqualNode(t))return;n=P(t),i=P(e),o.isEqualNode(a)&&n<i&&i++;o.insertBefore(e,o.children[n]),a.insertBefore(t,a.children[i])}(i,re),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){re=null}},b(t,{pluginName:"swap",eventProperties:function(){return{swapItem:re}}})}se.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 i=I(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:le},b(se,{pluginName:"revertOnSpill"}),_e.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:le},b(_e,{pluginName:"removeOnSpill"});var ce,ue,fe,pe,me,he=[],ge=[],we=!1,ve=!1,ye=!1;function xe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?w(document,"pointerup",this._deselectMultiDrag):(w(document,"mouseup",this._deselectMultiDrag),w(document,"touchend",this._deselectMultiDrag)),w(document,"keydown",this._checkKeyDown),w(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";he.length&&ue===t?he.forEach(function(t,e){i+=(e?", ":"")+t.textContent}):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;fe=e},delayEnded:function(){this.isMultiDrag=~he.indexOf(fe)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<he.length;i++)ge.push(z(he[i])),ge[i].sortableIndex=he[i].sortableIndex,ge[i].draggable=!1,ge[i].style["will-change"]="",S(ge[i],this.options.selectedClass,!1),he[i]===fe&&S(ge[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||he.length&&ue===e&&(ke(!0,n),i("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(ke(!1,n),ge.forEach(function(t){D(t,"display","")}),e(),me=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(ge.forEach(function(t){D(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),me=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),he.forEach(function(t){t.sortableIndex=P(t)}),he=he.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ye=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){he.forEach(function(t){t!==fe&&D(t,"position","absolute")});var i=A(fe,!1,!0,!0);he.forEach(function(t){t!==fe&&X(t,i)}),ve=!0,we=!0}n.animateAll(function(){ve=!1,we=!1,e.options.animation&&he.forEach(function(t){Y(t)}),e.options.sort&&Ce()})}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;ve&&~he.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,o=t.dragRect;he.length>1&&(he.forEach(function(t){i.addAnimationState({target:t,rect:ve?A(t):o}),Y(t),t.fromRect=o,e.removeAnimationState(t)}),ve=!1,function(t,e){he.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,o=t.activeSortable,a=t.parentEl,r=t.putSortable,b=this.options;if(i){if(n&&o._hideClone(),we=!1,b.animation&&he.length>1&&(ve||!n&&!o.options.sort&&!r)){var l=A(fe,!1,!0,!0);he.forEach(function(t){t!==fe&&(X(t,l),a.appendChild(t))}),ve=!0}if(!n)if(ve||Ce(),he.length>1){var s=me;o._showClone(e),o.options.animation&&!me&&s&&ge.forEach(function(t){o.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null})}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(he.forEach(function(t){t.thisAnimationDuration=null}),i.options.animation&&!n&&i.multiDrag.isMultiDrag){pe=b({},e);var o=T(fe,!0);pe.top-=o.f,pe.left-=o.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,Ce())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,o=t.sortable,a=t.dispatchSortableEvent,r=t.oldIndex,b=t.putSortable,l=b||this.sortable;if(e){var s=this.options,_=i.children;if(!ye)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(fe,s.selectedClass,!~he.indexOf(fe)),~he.indexOf(fe))he.splice(he.indexOf(fe),1),ce=null,Q({sortable:o,rootEl:n,name:"deselect",targetEl:fe,originalEvt:e});else{if(he.push(fe),Q({sortable:o,rootEl:n,name:"select",targetEl:fe,originalEvt:e}),e.shiftKey&&ce&&o.el.contains(ce)){var d,c,u=P(ce),f=P(fe);if(~u&&~f&&u!==f)for(f>u?(c=u,d=f):(c=f,d=u+1);c<d;c++)~he.indexOf(_[c])||(S(_[c],s.selectedClass,!0),he.push(_[c]),Q({sortable:o,rootEl:n,name:"select",targetEl:_[c],originalEvt:e}))}else ce=fe;ue=l}if(ye&&this.isMultiDrag){if(ve=!1,(i[F].options.sort||i!==n)&&he.length>1){var p=A(fe),m=P(fe,":not(."+this.options.selectedClass+")");if(!we&&s.animation&&(fe.thisAnimationDuration=null),l.captureAnimationState(),!we&&(s.animation&&(fe.fromRect=p,he.forEach(function(t){if(t.thisAnimationDuration=null,t!==fe){var e=ve?A(t):p;t.fromRect=e,l.addAnimationState({target:t,rect:e})}})),Ce(),he.forEach(function(t){_[m]?i.insertBefore(t,_[m]):i.appendChild(t),m++}),r===P(fe))){var h=!1;he.forEach(function(t){t.sortableIndex===P(t)||(h=!0)}),h&&a("update")}he.forEach(function(t){Y(t)}),l.animateAll()}ue=l}(n===i||b&&"clone"!==b.lastPutMode)&&ge.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=ye=!1,ge.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ye&&ye||ue!==this.sortable||t&&k(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;he.length;){var e=he[0];S(e,this.options.selectedClass,!1),he.shift(),Q({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)}},b(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[F];e&&e.options.multiDrag&&!~he.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),he.push(t))},deselect:function(t){var e=t.parentNode[F],n=he.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),he.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return he.forEach(function(i){var o;e.push({multiDragElement:i,index:i.sortableIndex}),o=ve&&i!==fe?-1:ve?P(i,":not(."+t.options.selectedClass+")"):P(i),n.push({multiDragElement:i,index:o})}),{items:s(he),clones:[].concat(ge),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ke(t,e){ge.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function Ce(){he.forEach(function(t){t!==fe&&t.parentNode&&t.parentNode.removeChild(t)})}Yt.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?w(document,"dragover",this._handleAutoScroll):this.options.supportPointer?w(document,"pointermove",this._handleFallbackAutoScroll):e.touches?w(document,"touchmove",this._handleFallbackAutoScroll):w(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),ae(),oe(),clearTimeout(C),C=void 0},nulling:function(){te=$t=Zt=ie=ee=Jt=Vt=null,ne.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(i,o);if(te=t,e||this.options.forceAutoScrollFallback||u||c||p){be(t,this.options,a,e);var r=H(a,!0);!ie||ee&&i===Jt&&o===Vt||(ee&&ae(),ee=setInterval(function(){var a=H(document.elementFromPoint(i,o),!0);a!==r&&(r=a,oe()),be(t,n.options,a,e)},10),Jt=i,Vt=o)}else{if(!this.options.bubbleScroll||H(a,!0)===M())return void oe();be(t,this.options,H(a,!1),!1)}}},b(t,{pluginName:"scroll",initializeByDefault:!0})}),Yt.mount(_e,se),e.default=Yt},,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(0),n(1),n(13),n(14);window.bt_bb_sortable=n(2)},function(t,e,n){"use strict";!function(t){if(!window.bt_bb_preview||window.frameElement){window.bt_bb={},window.bt_bb.cache={},window.bt_bb.fe=!0,window.bt_bb.images={},window.bt_bb.iframe=!1,window!=window.top&&(window.bt_bb.iframe=!0),window.bt_bb.ajax_wait=!1,window.addEventListener("beforeunload",function(e){t("body").hasClass("bt_bb_fe_save_on")&&(e.preventDefault(),e.returnValue="")}),t(document).ready(function(){if(t("#bt_bb_fe_init_mouseover").remove(),t(".bt_bb_fe_count").on("click",function(e){var n=t(this).find(".bt_bb_fe_count_inner").html();window!=window.top&&(t(".bt_bb_front_end_preview_close",window.parent.document).click(),t("html, body",window.parent.document).animate({scrollTop:t(".bt_bb_item_list",window.parent.document).children().eq(n-1).offset().top-t("#wpadminbar",window.parent.document).height()},500))}),"undefined"!=typeof tinyMCE&&(window.bt_bb.tinymce=tinyMCE.get("bt_bb_fe_dialog_tinymce"),window.bt_bb.tinymce&&window.bt_bb.tinymce.on("init",function(){"true"==localStorage.getItem("bt_bb_fe_preview_toggle")?t("body").addClass("bt_bb_fe_preview_toggle"):t("body").removeClass("bt_bb_fe_preview_toggle"),t(".bt_bb_fe_preview_toggler").on("click",function(e){e.stopPropagation(),t("body").toggleClass("bt_bb_fe_preview_toggle");var n=!1;t("body").hasClass("bt_bb_fe_preview_toggle")&&(n=!0),localStorage.setItem("bt_bb_fe_preview_toggle",n)}),t("#bt_bb_fe_add_section").on("click",function(e){e.stopPropagation(),t("body").toggleClass("bt_bb_fe_add_section_toggle"),t("#bt_bb_fe_add_section_dialog").css("top",t("#wpadminbar")[0].getBoundingClientRect().bottom+"px"),t("body").hasClass("bt_bb_fe_add_section_toggle"),window.bt_bb_fe_dialog_close()})})),e(),t(window).on("scroll",function(){e()}),!window.bt_bb_custom_elements){t(document).on("click","body.bt_bb_fe_add_section section.bt_bb_section",function(){t("section.bt_bb_section").removeClass("bt_bb_fe_add_section_selected"),t(this).addClass("bt_bb_fe_add_section_selected"),t(parent.document.body).addClass("bt_bb_fe_add_section_selected_body")});for(const t in window.bt_bb_elements)for(const e in window.bt_bb_elements[t].params){const n=window.bt_bb_elements[t].params[e].type;"attach_image"!=n&&"attach_images"!=n||(window.bt_bb.images[t]||(window.bt_bb.images[t]=[]),window.bt_bb.images[t].push(e))}window.bt_bb_fe_parse_data();for(const e in window.bt_bb_fe_elements)t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find('[data-base="'+e+'"]').each(function(){var n=!0;if(window.bt_bb_fe_elements[e].condition_params){n=!1;var i=t(this).data("bt-bb-fe-atts");for(const t in window.bt_bb_fe_elements[e].params)if(i[t]){n=!0;break}}n&&t(this).addClass("bt_bb_fe_edit")}),t(document).on("click",':not(ul.menu) .bt_bb_wrapper [data-base="'+e+'"] a',function(){if(!t("body").hasClass("bt_bb_fe_preview_toggle")&&t(this).closest(".bt_bb_fe_edit").length)return!1}),void 0===window.bt_bb_fe_elements[e].edit_box_selector&&(window.bt_bb_fe_elements[e].edit_box_selector="");t(document).on("click","#bt_bb_fe_dialog_close",function(){window.bt_bb_fe_dialog_close(!1)}),t(document).on("click","#bt_bb_fe_dialog_switch",function(){t("#bt_bb_fe_save").css("transition","none"),t("#bt_bb_fe_preview_toggler").css("transition","none"),t("#bt_bb_fe_dialog_switch").css("transition","none"),setTimeout(function(){t("body").toggleClass("bt_bb_fe_dialog_switch_side")},0),setTimeout(function(){t("#bt_bb_fe_save").css("transition",""),t("#bt_bb_fe_preview_toggler").css("transition",""),t("#bt_bb_fe_dialog_switch").css("transition","")},20)}),t(document).on("click","#bt_bb_fe_add_section_close",function(){t("body").toggleClass("bt_bb_fe_add_section_toggle")}),t(document).on("click","#bt_bb_fe_add_section_switch",function(){t("#bt_bb_fe_save").css("transition","none"),t("#bt_bb_fe_preview_toggler").css("transition","none"),setTimeout(function(){t("body").toggleClass("bt_bb_fe_dialog_switch_side")},0),setTimeout(function(){t("#bt_bb_fe_save").css("transition",""),t("#bt_bb_fe_preview_toggler").css("transition","")},20)});var n=function(){return t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_add_section_selected").closest(".bt_bb_fe_wrap")[0].outerHTML};t(document).on("input","#bt_bb_fe_add_section_search",function(){var e=t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_wrap"),n=t(this).val();t("#bt_bb_add_section_iframe_parent iframe")[0].contentWindow.bt_bb_fe_sections_search.forEach(function(t,i){t.includes(n)?e.eq(i).show():e.eq(i).hide()})}),t(document).on("click","#bt_bb_fe_add_section_to_top",function(){var e=n();e=window.bt_bb.element_insert_prepare(e),t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).prepend(e),window.bt_bb.reorder_sections(),t("body").addClass("bt_bb_fe_save_on"),t(this).find("i").fadeIn().fadeOut()}),t(document).on("click","#bt_bb_fe_add_section_to_bottom",function(){var e=n();e=window.bt_bb.element_insert_prepare(e),t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).append(e),window.bt_bb.reorder_sections(),t("body").addClass("bt_bb_fe_save_on"),t(this).find("i").fadeIn().fadeOut()}),t(document).on("click","#bt_bb_fe_add_section_to_clipboard",function(){var e=t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_add_section_selected").closest(".bt_bb_fe_wrap");window.bt_bb.element_menu_copy(e),t(this).find("i").fadeIn().fadeOut()}),window.bt_bb.tinymce.on("NodeChange keyup",function(){if(window.bt_bb.tinymce.isDirty()){var e=window.bt_bb.tinymce.getContent();window.bt_bb.editing_elements&&(window.bt_bb.editing_elements.data("content",e),e.match(/\[.+\]/g)?("undefined"!=typeof atts&&(window.bt_bb.editing_elements_atts=atts),window.bt_bb_fe_ajax_preview([])):(window.bt_bb.editing_elements.html(window.switchEditors.wpautop(e)),t("body").addClass("bt_bb_fe_save_on")))}}),t("#bt_bb_fe_dialog_tinymce").on("input",function(){var e=t(this).val();window.bt_bb.editing_elements.data("content",e),e.match(/\[.+\]/g)?("undefined"!=typeof atts&&(window.bt_bb.editing_elements_atts=atts),window.bt_bb_fe_ajax_preview([])):(window.bt_bb.editing_elements.html(window.switchEditors.wpautop(e)),t("body").addClass("bt_bb_fe_save_on"))}),bt_bb_fe_dialog_content.attachShadow({mode:"open"}),bt_bb_fe_dialog_bottom.attachShadow({mode:"open"});var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",window.bt_bb_fe_dialog_content_css_url),bt_bb_fe_dialog_content.shadowRoot.appendChild(i);var o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",window.bt_bb_fe_dialog_bottom_css_url),bt_bb_fe_dialog_bottom.shadowRoot.appendChild(o);var a=document.createElement("style");a.innerHTML='@import url("'+window.bt_bb_fa_url+'")',bt_bb_fe_dialog_content.shadowRoot.appendChild(a);var r=document.createElement("div");r.id="bt_bb_fe_dialog_content_wrapper",window.bt_bb_rtl&&r.classList.add("rtl"),bt_bb_fe_dialog_content.shadowRoot.appendChild(r);var b=document.createElement("span");b.innerHTML=window.bt_bb_text.select+' <a href="#" id="up">'+window.bt_bb_text.parent+"</a>",bt_bb_fe_dialog_bottom.shadowRoot.appendChild(b);var l=document.createElement("span");l.innerHTML=' | <a href="#" id="delete">'+window.bt_bb_text.delete+"</a>",bt_bb_fe_dialog_bottom.shadowRoot.appendChild(l),t(document).on("mouseover","[data-bt-bb-fe-atts]",function(e){if(!window.bt_bb.iframe&&t(this).hasClass("bt_bb_fe_edit")){e.stopPropagation();var n=t(this).data("base");t(".bt_bb_fe_edit_box").removeClass("bt_bb_fe_edit_box"),""==window.bt_bb_fe_elements[n].edit_box_selector?(t(this).addClass("bt_bb_fe_edit_box"),0==t(this).find("> .bt_bb_fe_before").length&&(t(this).hasClass("bt_bb_section")&&t(this).find(".bt_bb_background_image_holder_wrapper").length>0?t(this).find(".bt_bb_background_image_holder_wrapper").after('<template class="bt_bb_fe_before"></template>'):t(this).prepend('<template class="bt_bb_fe_before"></template>'))):(t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).addClass("bt_bb_fe_edit_box"),0==t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).find("> .bt_bb_fe_before").length&&t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).prepend('<template class="bt_bb_fe_before"></template>'))}}),t(document).on("mouseout",".bt_bb_fe_edit",function(e){t(this).removeClass("bt_bb_fe_edit_box")}),t(document).on("click",".bt_bb_fe_before",function(){var e=t(this).closest(".bt_bb_fe_edit");t("body").hasClass("bt_bb_fe_dialog_on")&&e.data("fe-id")==window.bt_bb.editing_element.data("fe-id")?window.bt_bb_fe_dialog_close(!0):(window.bt_bb.editing_element=e,window.bt_bb.edit_element())}),window.bt_bb.edit_element=function(){t("body").removeClass("bt_bb_fe_add_section_toggle"),t("body").removeClass("bt_bb_fe_tinymce_editor");var e=bt_bb_fe_dialog_content.shadowRoot.getElementById("bt_bb_fe_dialog_content_wrapper");e.innerHTML="",t("#bt_bb_fe_dialog").css("top",t("#wpadminbar")[0].getBoundingClientRect().bottom+"px");var n=window.bt_bb.editing_element.data("fe-id");window.bt_bb.editing_elements=t('.bt_bb_fe_edit[data-fe-id="'+n+'"]'),t(".bt_bb_fe_edit").removeClass("bt_bb_fe_editing"),window.bt_bb.editing_element.addClass("bt_bb_fe_editing");var i=window.bt_bb.editing_element.data("base");t(".bt_bb_fe_editing_box").removeClass("bt_bb_fe_editing_box"),""==window.bt_bb_fe_elements[i].edit_box_selector?window.bt_bb.editing_element.addClass("bt_bb_fe_editing_box"):window.bt_bb.editing_element.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_editing_box");var o=document.createDocumentFragment(),a=window.bt_bb.editing_element.data("bt-bb-fe-atts"),r=window.bt_bb_fe_elements[i].params;window.bt_bb_fe_elements[i].params&&"object"==typeof r&&null!==r&&!Array.isArray(r)?Object.keys(window.bt_bb_fe_elements[i].params).forEach(function(t){if(window.bt_bb_elements[i]&&window.bt_bb_elements[i].params[t]){var e=a[t];void 0===e&&(e="");window.bt_bb_elements[i].params[t];var n=window.bt_bb_get_dialog_param({param:window.bt_bb_elements[i].params[t],attr_value:e,group_class:"",base:i});o.appendChild(n)}}):window.bt_bb_elements[i].accept&&window.bt_bb_elements[i].accept._content&&!0===window.bt_bb_elements[i].accept._content&&(window.bt_bb.tinymce.setContent(window.switchEditors.wpautop(window.bt_bb.editing_element.data("content"))),t("body").addClass("bt_bb_fe_tinymce_editor")),e.appendChild(o);var b=function(e,n,i,o,r){var b=window.bt_bb_get_edit_item_value(o,n,e.closest(".bt_bb_dialog_item")),l=!1;if(i){if(""!=i.target_selector)var s=window.bt_bb.editing_elements.find(i.target_selector);else s=window.bt_bb.editing_elements;if(s.length>0){if(l=!0,"inner_html"==i.type)s.html(b);else if("inner_html_nl2br"==i.type)s.html(function(t,e){if(null==t)return"";return(t+"").replace(/(\r\n|\n\r|\r|\n)/g,(e||void 0===e?"<br />":"<br>")+"$1")}(b));else if("attr"==i.type)i.preprocess&&"progress_bar_style"==i.preprocess?s.attr(i.attr,"width:"+b+"%"):s.attr(i.attr,b);else if("countdown"==i.type){var _=Math.round((Date.parse(b)-(new Date).getTime())/1e3);_<0&&(_=0),s.data("init-seconds",_),s.find(".hours>.n0>span").html(""),s.find(".hours>.n1>span").html(""),s.find(".minutes>.n0>span").html(""),s.find(".minutes>.n1>span").html(""),s.find(".seconds>.n0>span").html(""),s.find(".seconds>.n1>span").html(""),window.bt_bb_countdown_output(s)}else"data"==i.type?s.data(i.data,b):"class"==i.type&&(s.removeClass(function(t,e){var n=new RegExp("bt_bb_"+o+"_.+","g");return e.match(n)||[]}),s.addClass("bt_bb_"+o+"_"+b));a[o]=window.bt_bb_special_char_encode(b),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),t("body").addClass("bt_bb_fe_save_on")}}l||(void 0===r&&(r=[]),a[o]=window.bt_bb_special_char_encode(b),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,window.bt_bb_fe_ajax_preview(r))};bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item").forEach(function(e){var n=t(e).data("param_name"),o=t(e).data("type");if("_content"!=o)var a=window.bt_bb_fe_elements[i].params[n].js_handler;var r=window.bt_bb_fe_elements[i].params[n].ajax_filter;"textfield"==o||"textarea"==o||"link"==o||"textarea_object"==o||"attach_image"==o?t(e).find('input[type="text"], textarea').on("input",function(){b(t(this),o,a,n,r)}):"dropdown"==o?t(e).find("select").on("change",function(){b(t(this),o,a,n,r)}):"checkbox"==o&&t(e).find('input[type="checkbox"]').on("change",function(){b(t(this),o,a,n,r)})}),window.bt_bb_iconpicker_init(function(t){var e=t.attr("data-icon"),n=t.closest(".bt_bb_dialog_item"),o=n.data("param_name");n.data("type");a[o]=e,window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,window.bt_bb_fe_elements[i].params[o].js_handler||window.bt_bb_fe_ajax_preview([])}),window.bt_bb_image_sortable(t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll('.bt_bb_dialog_item[data-type="attach_images"] .bt_bb_dialog_image_container')),a),t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item")).on("click",".bt_bb_dialog_image_container .fa-times",function(e){var n=t(this).closest(".bt_bb_dialog_item"),o=n.data("param_name"),r=(n.data("type"),window.bt_bb_fe_elements[i].params[o].js_handler);if(window.bt_bb_delete_images(this,a),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,r){if(r.target_selector&&""!=r.target_selector)var b=window.bt_bb.editing_elements.find(r.target_selector);else b=window.bt_bb.editing_elements;"background_image"==r.type&&b.css("background-image",""),t("body").addClass("bt_bb_fe_save_on")}else window.bt_bb_fe_ajax_preview([])}),t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item")).on("click",".bt_bb_dialog_select_images_button",function(e){var n=t(this).closest(".bt_bb_dialog_item"),o=n.data("param_name"),r=(n.data("type"),window.bt_bb_fe_elements[i].params[o].js_handler);window.bt_bb_select_images(this,a,function(t){if(window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,r){if(r.target_selector&&""!=r.target_selector)var e=window.bt_bb.editing_elements.find(r.target_selector);else e=window.bt_bb.editing_elements;var n;if("background_image"==r.type)t.each(function(t){return n=t.attributes.sizes.full.url,!1}),e.css("background-image","url("+n+")")}else window.bt_bb_fe_ajax_preview([])})}),window.bt_bb_search_link_init(),t(".bt_bb_dialog_header_text").html(window.bt_bb_text.edit+" "+window.bt_bb_elements[i].name),t("body").addClass("bt_bb_fe_dialog_on"),t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete")).removeClass("disabled"),1==t(window.bt_bb.editing_element).closest(".bt_bb_content_slider_item").length&&t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete")).addClass("disabled")},bt_bb_fe_dialog_bottom.shadowRoot.getElementById("up").onclick=(e=>{var n=t(".bt_bb_fe_editing").parents(".bt_bb_fe_edit").eq(0);return n.length&&(window.bt_bb.editing_element=n,window.bt_bb.edit_element()),!1}),bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete").onclick=(e=>(window.bt_bb.editing_elements.remove(),bt_bb_fe_dialog_close(),t("body").addClass("bt_bb_fe_save_on"),!1)),t(document).on("click","#bt_bb_fe_save",function(){t("body").addClass("bt_bb_fe_saving"),window.bt_bb_fe_parse_data();var e={action:"bt_bb_fe_save",nonce:window.bt_bb_fe_ajax.nonce,post_id:window.bt_bb_post_id,post_content:window.bt_bb_parse_data_str};t.ajax({method:"POST",url:window.bt_bb_ajax_url,data:e}).done(function(e){t("body").removeClass("bt_bb_fe_saving"),t("body").removeClass("bt_bb_fe_save_on")})})}});var e=function(){t(".bt_bb_fe_wrap_footer").each(function(){var e=t(window).scrollTop()+t(window).height();t(this).offset().top<e?t("body").addClass("bt_bb_fe_show_preview_toggler_footer"):t("body").removeClass("bt_bb_fe_show_preview_toggler_footer")})};window.bt_bb_fe_dialog_close=function(e){t("body").removeClass("bt_bb_fe_dialog_on"),t(".bt_bb_fe_editing").removeClass("bt_bb_fe_editing"),t(".bt_bb_fe_editing_box").removeClass("bt_bb_fe_editing_box"),e||t(".bt_bb_fe_edit_box").removeClass("bt_bb_fe_edit_box")},window.bt_bb_fe_parse_data=function(){window.bt_bb_fe_elements_obj={title:"_root",base:"_root",children:[]};var e=t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find("[data-bt-bb-fe-atts]").not("[data-bt-bb-fe-atts] [data-bt-bb-fe-atts]"),n=[],i=[],o=function(e,a){var r;a.sort(function(e,n){return t(e).data("fe-id")-t(n).data("fe-id")}),t.each(a,function(a,b){var l=t(b).data("base"),s=t(b).data("bt-bb-fe-atts");if(r=t(b).data("fe-id"),!i.includes(r)){i.push(r);for(const t in window.bt_bb.images[l]){var _=s[window.bt_bb.images[l][t]];_&&""!=_&&(n=n.concat(_.split(",")))}if(window.bt_bb_elements[l].accept&&window.bt_bb_elements[l].accept._content&&1==window.bt_bb_elements[l].accept._content)var d={title:l,base:l,attr:JSON.stringify(s),children:[{title:"_content",base:"_content",content:t(b).data("content"),children:[]}]};else d={title:l,base:l,attr:JSON.stringify(s),children:[]};t(b).find("[data-bt-bb-fe-atts]").eq(0).length>0?o(d,t(b).find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()):"bt_bb_tab_item"==l&&o(d,t(b).closest(".bt_bb_tabs").find(".bt_bb_tab_item").eq(t(b).index()).find(".bt_bb_tab_content").find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()),e.children.push(d)}})};o(window.bt_bb_fe_elements_obj,e),window.bt_bb_parse_data(window.bt_bb_fe_elements_obj),wp.media.ajax({data:{action:"query-attachments",query:{post__in:n,posts_per_page:-1}}}).done(function(t,e,n){for(const e in t)void 0!==t[e].sizes&&(void 0!==t[e].sizes.thumbnail?(window.bt_bb.cache[t[e].id]={},window.bt_bb.cache[t[e].id].url=t[e].sizes.thumbnail.url):void 0!==t[e].sizes.full&&(window.bt_bb.cache[t[e].id]={},window.bt_bb.cache[t[e].id].url=t[e].sizes.full.url))})},window.bt_bb_fe_ajax_preview=function(e){if(window.bt_bb.ajax_wait)return clearTimeout(window.bt_bb.ajax_preview_timeout),void(window.bt_bb.ajax_preview_timeout=setTimeout(function(){window.bt_bb_fe_ajax_preview(e)},100));(new Date).getTime();window.bt_bb.ajax_wait=!0;var n={title:"_root",base:"_root",children:[]},i=[],o=!0,a=function(e,n){var r;n&&n.sort(function(e,n){return t(e).data("fe-id")-t(n).data("fe-id")}),t.each(n,function(n,b){var l=t(b).data("base");if(o){var s=window.bt_bb.editing_elements_atts;o=!1}else s=t(b).data("bt-bb-fe-atts");if(r=t(b).data("fe-id"),!i.includes(r)){if(i.push(r),window.bt_bb_elements[l].accept&&window.bt_bb_elements[l].accept._content&&1==window.bt_bb_elements[l].accept._content)var _={title:l,base:l,attr:JSON.stringify(s),children:[{title:"_content",base:"_content",content:t(b).data("content"),children:[]}]};else _={title:l,base:l,attr:JSON.stringify(s),children:[]};t(b).find("[data-bt-bb-fe-atts]").eq(0).length>0&&a(_,t(b).find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()),e.children.push(_)}})};a(n,window.bt_bb.editing_element),window.bt_bb_parse_data_str="",window.bt_bb_parse_data_helper(n);var r={action:"bt_bb_fe_get_html",nonce:window.bt_bb_fe_ajax.nonce,post_id:window.bt_bb_post_id,content:window.bt_bb_parse_data_str};t.ajax({method:"POST",url:window.bt_bb_ajax_url,data:r}).done(function(n){var i=window.bt_bb.editing_element.data("base"),o=window.bt_bb.editing_element.data("fe-id");if(window.bt_bb_fe_elements[i].ajax_slick&&!0===window.bt_bb_fe_elements[i].ajax_slick&&window.bt_bb.editing_elements.find(t(".slick-slider")).slick("unslick"),0==e.length){var a=(n=n.replace(/data-fe-id=".*?"/,'data-fe-id="'+o+'"')).replace(/class="(.*?)"/,'class="$1 bt_bb_fe_edit bt_bb_fe_editing"');window.bt_bb_fe_elements[i].use_ajax_placeholder&&!0===window.bt_bb_fe_elements[i].use_ajax_placeholder&&(window.bt_bb.editing_element.after('<div class="bt_bb_fe_ajax_placeholder" style="width:0px;height:'+window.bt_bb.editing_element.outerHeight()+'px;display:inline-block;margin-inline-start:-.25em;"></div>'),setTimeout(function(){t(".bt_bb_fe_ajax_placeholder").remove()},200)),window.bt_bb.editing_element.replaceWith(a),window.bt_bb.editing_element=t('.bt_bb_fe_editing[data-fe-id="'+o+'"]'),window.bt_bb.editing_elements.replaceWith(n),t('[data-fe-id="'+o+'"]').not(".bt_bb_fe_editing").addClass("bt_bb_fe_edit"),window.bt_bb.editing_elements=t('[data-fe-id="'+o+'"]')}else{if(e.includes("class")){var r=n.match(/class="(.*?)"/);r=r[1],window.bt_bb.editing_elements.attr("class",r),window.bt_bb.editing_element.attr("class",r+" bt_bb_fe_edit bt_bb_fe_editing")}if(e.includes("data-bt-override-class")){var b=n.match(/data-bt-override-class="(.*?)"/);b=b[1],b=JSON.parse(b.replace(/"/g,'"')),window.bt_bb.editing_element.data("bt-override-class",b),window.bt_bb.editing_elements.data("bt-override-class",b)}if(e.includes("style")){var l=n.match(/style="(.*?)"/);l?(l=l[1],window.bt_bb.editing_elements.attr("style",l),window.bt_bb.editing_element.attr("style",l)):window.bt_bb.editing_element.removeAttr("style")}}""!=window.bt_bb_fe_elements[i].edit_box_selector?(window.bt_bb.editing_elements.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_edit_box"),window.bt_bb.editing_element.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_editing_box"),window.bt_bb.editing_elements.find(window.bt_bb_fe_elements[i].edit_box_selector).each(function(){0==t(this).find("> .bt_bb_fe_before").length&&t(this).prepend('<template class="bt_bb_fe_before"></template>')})):(window.bt_bb.editing_elements.addClass("bt_bb_fe_edit_box"),window.bt_bb.editing_element.addClass("bt_bb_fe_editing_box"),window.bt_bb.editing_elements.each(function(){0==t(this).find("> .bt_bb_fe_before").length&&t(this).prepend('<template class="bt_bb_fe_before"></template>')})),window.bt_bb_fe_elements[i].ajax_trigger_window_load&&!0===window.bt_bb_fe_elements[i].ajax_trigger_window_load&&t(window).trigger("load"),window.bt_bb_fe_elements[i].ajax_animate_elements&&!0===window.bt_bb_fe_elements[i].ajax_animate_elements&&window.bt_bb_animate_elements(),window.bt_bb_fe_elements[i].ajax_trigger_scroll&&!0===window.bt_bb_fe_elements[i].ajax_trigger_scroll&&t(document).trigger("scroll"),window.bt_bb_fe_elements[i].ajax_mejs&&!0===window.bt_bb_fe_elements[i].ajax_mejs&&window.bt_bb.editing_elements.find("video").mediaelementplayer(),window.bt_bb_fe_elements[i].ajax_slick&&!0===window.bt_bb_fe_elements[i].ajax_slick&&setTimeout(function(){t(".slick-slider").not(".slick-initialized").slick(),t(".slick-slider .slick-prev, .slick-slider .slick-next, .slick-slider .slick-dots li").click(function(){t(this).closest(".slick-slider").slick("slickPause")}),t(".bt_bb_slider.bt_bb_use_lightbox .slick-slider .bt_bb_slider_item").click(function(){t(this).closest(".slick-slider").slick("slickPause")}),t(".bt_bb_slider.bt_bb_use_lightbox").each(function(){t(this).magnificPopup({delegate:".bt_bb_slider_item:not(.slick-cloned)",type:"image",gallery:{enabled:!0},callbacks:{elementParse:function(t){t.src=t.el.data("src-full")}},closeBtnInside:!1,fixedContentPos:!1})}),t(".bt_bb_image.bt_bb_use_lightbox a").each(function(){t(this).magnificPopup({delegate:"img",type:"image",gallery:{enabled:!0},callbacks:{elementParse:function(t){t.src=t.el.data("full_image_src")}},closeBtnInside:!1,fixedContentPos:!1})})},0),t("body").addClass("bt_bb_fe_save_on"),window.bt_bb.ajax_wait=!1})}}}(jQuery)},function(t,e,n){"use strict";var i;i=jQuery,window.bt_bb&&(window.bt_bb.element_menu_edit_be=function(t,e){var n=t.closest(".bt_bb_fe_wrap").find(".bt_bb_fe_count_inner").html();window!=window.top?(i(".bt_bb_front_end_preview_close",window.parent.document).click(),i("html, body",window.parent.document).animate({scrollTop:i(".bt_bb_item_list",window.parent.document).children().eq(n-1).offset().top-i("#wpadminbar",window.parent.document).height()},500)):void 0!==t.closest("li").data("edit_url")?e?window.open(t.closest("li").data("edit_url")+"&bt_bb_order="+n,"_blank"):window.location.replace(t.closest("li").data("edit_url")+"&bt_bb_order="+n):e?window.open(i("#wp-admin-bar-edit .ab-item").attr("href")+"&bt_bb_order="+n,"_blank"):window.location.replace(i("#wp-admin-bar-edit .ab-item").attr("href")+"&bt_bb_order="+n)},window.bt_bb.element_menu_cut=function(t){var e=t.closest(".bt_bb_fe_wrap");localStorage.setItem("bt_bb_fe_cb",e[0].outerHTML),e.remove(),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.element_menu_copy=function(t){var e=t.closest(".bt_bb_fe_wrap");localStorage.setItem("bt_bb_fe_cb",e[0].outerHTML)},window.bt_bb.element_insert_prepare=function(t){return t=(t=(t=t.replace(/data-fe-id="(.*?)"/g,function(t,e,n,i){return'data-fe-id="'+Math.random().toString(16).slice(2)+'"'})).replace(/\sid="(.*?)"/g,function(t,e,n,i){return""})).replace(/el_id":"(.*?)"/g,function(t,e,n,i){return"el_id":"""})},window.bt_bb.element_menu_paste=function(t,e){var n=t.closest(".bt_bb_fe_wrap"),o=localStorage.getItem("bt_bb_fe_cb");o=window.bt_bb.element_insert_prepare(o),e?n.before(o):n.after(o),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.element_menu_delete=function(t){t.remove(),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.reorder_sections=function(){var t=1;i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find(".bt_bb_fe_wrap").each(function(){i(this).find(".bt_bb_fe_count_inner").html(t),t++})},i(document).ready(function(){localStorage.getItem("bt_bb_fe_cb")||i(".bt_bb_element_menu_paste").parent().addClass("bt_bb_disable"),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit",function(){window.bt_bb.editing_element=i(this).closest(".bt_bb_fe_wrap").find(".bt_bb_fe_edit").first(),window.bt_bb.edit_element()}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit_be",function(){i("body").hasClass("bt_bb_fe_save_on")?alert(window.bt_bb_text.save_content_first):window.bt_bb.element_menu_edit_be(i(this),!1)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit_be_new_tab",function(){i("body").hasClass("bt_bb_fe_save_on")?alert(window.bt_bb_text.save_content_first):window.bt_bb.element_menu_edit_be(i(this),!0)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_cut",function(){window.bt_bb.element_menu_cut(i(this)),i(".bt_bb_element_menu_paste").parent().removeClass("bt_bb_disable")}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_copy",function(){window.bt_bb.element_menu_copy(i(this)),i(this).fadeOut(200).fadeIn(200),i(".bt_bb_element_menu_paste").parent().removeClass("bt_bb_disable")}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_paste",function(){window.bt_bb.element_menu_paste(i(this),!1)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_paste_above",function(){window.bt_bb.element_menu_paste(i(this),!0)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_delete",function(){window.confirm(window.bt_bb_text.delete_section_confirm)&&window.bt_bb.element_menu_delete(i(this).closest(".bt_bb_fe_wrap"))})}))}]);
|
5 |
* @author owenm <owen23355@gmail.com>
|
6 |
* @license MIT
|
7 |
*/
|
8 |
+
function i(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);e&&(i=i.filter(function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable})),n.push.apply(n,i)}return n}function o(t){for(var e=1;e<arguments.length;e++){var n=null!=arguments[e]?arguments[e]:{};e%2?i(Object(n),!0).forEach(function(e){r(t,e,n[e])}):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach(function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(n,e))})}return t}function a(t){return(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})(t)}function r(t,e,n){return e in t?Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}):t[e]=n,t}function b(){return(b=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var n=arguments[e];for(var i in n)Object.prototype.hasOwnProperty.call(n,i)&&(t[i]=n[i])}return t}).apply(this,arguments)}function l(t,e){if(null==t)return{};var n,i,o=function(t,e){if(null==t)return{};var n,i,o={},a=Object.keys(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var a=Object.getOwnPropertySymbols(t);for(i=0;i<a.length;i++)n=a[i],e.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}function s(t){return function(t){if(Array.isArray(t))return _(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return _(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return _(t,e)}(t)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function _(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,i=new Array(e);n<e;n++)i[n]=t[n];return i}n.r(e),n.d(e,"MultiDrag",function(){return xe}),n.d(e,"Sortable",function(){return Yt}),n.d(e,"Swap",function(){return de});function d(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var c=d(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),u=d(/Edge/i),f=d(/firefox/i),p=d(/safari/i)&&!d(/chrome/i)&&!d(/android/i),m=d(/iP(ad|od|hone)/i),h=d(/chrome/i)&&d(/android/i),w={capture:!1,passive:!1};function g(t,e,n){t.addEventListener(e,n,!c&&w)}function v(t,e,n){t.removeEventListener(e,n,!c&&w)}function y(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 x(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function k(t,e,n,i){if(t){n=n||document;do{if(null!=e&&(">"===e[0]?t.parentNode===n&&y(t,e):y(t,e))||i&&t===n)return t;if(t===n)break}while(t=x(t))}return null}var C,E=/\s+/g;function S(t,e,n){if(t&&e)if(t.classList)t.classList[n?"add":"remove"](e);else{var i=(" "+t.className+" ").replace(E," ").replace(" "+e+" "," ");t.className=(i+(n?" "+e:"")).replace(E," ")}}function D(t,e,n){var i=t&&t.style;if(i){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 i||-1!==e.indexOf("webkit")||(e="-webkit-"+e),i[e]=n+("string"==typeof n?"":"px")}}function T(t,e){var n="";if("string"==typeof t)n=t;else do{var i=D(t,"transform");i&&"none"!==i&&(n=i+" "+n)}while(!e&&(t=t.parentNode));var o=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return o&&new o(n)}function O(t,e,n){if(t){var i=t.getElementsByTagName(e),o=0,a=i.length;if(n)for(;o<a;o++)n(i[o],o);return i}return[]}function M(){var t=document.scrollingElement;return t||document.documentElement}function A(t,e,n,i,o){if(t.getBoundingClientRect||t===window){var a,r,b,l,s,_,d;if(t!==window&&t.parentNode&&t!==M()?(r=(a=t.getBoundingClientRect()).top,b=a.left,l=a.bottom,s=a.right,_=a.height,d=a.width):(r=0,b=0,l=window.innerHeight,s=window.innerWidth,_=window.innerHeight,d=window.innerWidth),(e||n)&&t!==window&&(o=o||t.parentNode,!c))do{if(o&&o.getBoundingClientRect&&("none"!==D(o,"transform")||n&&"static"!==D(o,"position"))){var u=o.getBoundingClientRect();r-=u.top+parseInt(D(o,"border-top-width")),b-=u.left+parseInt(D(o,"border-left-width")),l=r+a.height,s=b+a.width;break}}while(o=o.parentNode);if(i&&t!==window){var f=T(o||t),p=f&&f.a,m=f&&f.d;f&&(l=(r/=m)+(_/=m),s=(b/=p)+(d/=p))}return{top:r,left:b,bottom:l,right:s,width:d,height:_}}}function I(t,e,n){for(var i=H(t,!0),o=A(t)[e];i;){var a=A(i)[n];if(!("top"===n||"left"===n?o>=a:o<=a))return i;if(i===M())break;i=H(i,!1)}return!1}function j(t,e,n,i){for(var o=0,a=0,r=t.children;a<r.length;){if("none"!==r[a].style.display&&r[a]!==Yt.ghost&&(i||r[a]!==Yt.dragged)&&k(r[a],n.draggable,t,!1)){if(o===e)return r[a];o++}a++}return null}function N(t,e){for(var n=t.lastElementChild;n&&(n===Yt.ghost||"none"===D(n,"display")||e&&!y(n,e));)n=n.previousElementSibling;return n||null}function P(t,e){var n=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Yt.clone||e&&!y(t,e)||n++;return n}function R(t){var e=0,n=0,i=M();if(t)do{var o=T(t),a=o.a,r=o.d;e+=t.scrollLeft*a,n+=t.scrollTop*r}while(t!==i&&(t=t.parentNode));return[e,n]}function H(t,e){if(!t||!t.getBoundingClientRect)return M();var n=t,i=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){var o=D(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 M();if(i||e)return n;i=!0}}}while(n=n.parentNode);return M()}function L(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 q(t,e){return function(){if(!C){var n=arguments;1===n.length?t.call(this,n[0]):t.apply(this,n),C=setTimeout(function(){C=void 0},e)}}}function B(t,e,n){t.scrollLeft+=e,t.scrollTop+=n}function z(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 X(t,e){D(t,"position","absolute"),D(t,"top",e.top),D(t,"left",e.left),D(t,"width",e.width),D(t,"height",e.height)}function Y(t){D(t,"position",""),D(t,"top",""),D(t,"left",""),D(t,"width",""),D(t,"height","")}var F="Sortable"+(new Date).getTime();function W(){var t,e=[];return{captureAnimationState:function(){(e=[],this.options.animation)&&[].slice.call(this.el.children).forEach(function(t){if("none"!==D(t,"display")&&t!==Yt.ghost){e.push({target:t,rect:A(t)});var n=o({},e[e.length-1].rect);if(t.thisAnimationDuration){var i=T(t,!0);i&&(n.top-=i.f,n.left-=i.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 i in e)if(e.hasOwnProperty(i)&&e[i]===t[n][i])return Number(n);return-1}(e,{target:t}),1)},animateAll:function(n){var i=this;if(!this.options.animation)return clearTimeout(t),void("function"==typeof n&&n());var o=!1,a=0;e.forEach(function(t){var e=0,n=t.target,r=n.fromRect,b=A(n),l=n.prevFromRect,s=n.prevToRect,_=t.rect,d=T(n,!0);d&&(b.top-=d.f,b.left-=d.e),n.toRect=b,n.thisAnimationDuration&&L(l,b)&&!L(r,b)&&(_.top-b.top)/(_.left-b.left)==(r.top-b.top)/(r.left-b.left)&&(e=function(t,e,n,i){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))*i.animation}(_,l,s,i.options)),L(b,r)||(n.prevFromRect=r,n.prevToRect=b,e||(e=i.options.animation),i.animate(n,_,b,e)),e&&(o=!0,a=Math.max(a,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),o?t=setTimeout(function(){"function"==typeof n&&n()},a):"function"==typeof n&&n(),e=[]},animate:function(t,e,n,i){if(i){D(t,"transition",""),D(t,"transform","");var o=T(this.el),a=o&&o.a,r=o&&o.d,b=(e.left-n.left)/(a||1),l=(e.top-n.top)/(r||1);t.animatingX=!!b,t.animatingY=!!l,D(t,"transform","translate3d("+b+"px,"+l+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),D(t,"transition","transform "+i+"ms"+(this.options.easing?" "+this.options.easing:"")),D(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout(function(){D(t,"transition",""),D(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1},i)}}}}var K=[],U={initializeByDefault:!0},G={mount:function(t){for(var e in U)!U.hasOwnProperty(e)||e in t||(t[e]=U[e]);K.forEach(function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")}),K.push(t)},pluginEvent:function(t,e,n){var i=this;this.eventCanceled=!1,n.cancel=function(){i.eventCanceled=!0};var a=t+"Global";K.forEach(function(i){e[i.pluginName]&&(e[i.pluginName][a]&&e[i.pluginName][a](o({sortable:e},n)),e.options[i.pluginName]&&e[i.pluginName][t]&&e[i.pluginName][t](o({sortable:e},n)))})},initializePlugins:function(t,e,n,i){for(var o in K.forEach(function(i){var o=i.pluginName;if(t.options[o]||i.initializeByDefault){var a=new i(t,e,t.options);a.sortable=t,a.options=t.options,t[o]=a,b(n,a.defaults)}}),t.options)if(t.options.hasOwnProperty(o)){var a=this.modifyOption(t,o,t.options[o]);void 0!==a&&(t.options[o]=a)}},getEventProperties:function(t,e){var n={};return K.forEach(function(i){"function"==typeof i.eventProperties&&b(n,i.eventProperties.call(e[i.pluginName],t))}),n},modifyOption:function(t,e,n){var i;return K.forEach(function(o){t[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[e]&&(i=o.optionListeners[e].call(t[o.pluginName],n))}),i}};function Q(t){var e=t.sortable,n=t.rootEl,i=t.name,a=t.targetEl,r=t.cloneEl,b=t.toEl,l=t.fromEl,s=t.oldIndex,_=t.newIndex,d=t.oldDraggableIndex,f=t.newDraggableIndex,p=t.originalEvent,m=t.putSortable,h=t.extraEventProperties;if(e=e||n&&n[F]){var w,g=e.options,v="on"+i.charAt(0).toUpperCase()+i.substr(1);!window.CustomEvent||c||u?(w=document.createEvent("Event")).initEvent(i,!0,!0):w=new CustomEvent(i,{bubbles:!0,cancelable:!0}),w.to=b||n,w.from=l||n,w.item=a||n,w.clone=r,w.oldIndex=s,w.newIndex=_,w.oldDraggableIndex=d,w.newDraggableIndex=f,w.originalEvent=p,w.pullMode=m?m.lastPutMode:void 0;var y=o(o({},h),G.getEventProperties(i,e));for(var x in y)w[x]=y[x];n&&n.dispatchEvent(w),g[v]&&g[v].call(e,w)}}var Z=["evt"],$=function(t,e){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},i=n.evt,a=l(n,Z);G.pluginEvent.bind(Yt)(t,e,o({dragEl:V,parentEl:tt,ghostEl:et,rootEl:nt,nextEl:it,lastDownEl:ot,cloneEl:at,cloneHidden:rt,dragStarted:gt,putSortable:ct,activeSortable:Yt.active,originalEvent:i,oldIndex:bt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:_t,hideGhostForTarget:qt,unhideGhostForTarget:Bt,cloneNowHidden:function(){rt=!0},cloneNowShown:function(){rt=!1},dispatchSortableEvent:function(t){J({sortable:e,name:t,originalEvent:i})}},a))};function J(t){Q(o({putSortable:ct,cloneEl:at,targetEl:V,rootEl:nt,oldIndex:bt,oldDraggableIndex:st,newIndex:lt,newDraggableIndex:_t},t))}var V,tt,et,nt,it,ot,at,rt,bt,lt,st,_t,dt,ct,ut,ft,pt,mt,ht,wt,gt,vt,yt,xt,kt,Ct=!1,Et=!1,St=[],Dt=!1,Tt=!1,Ot=[],Mt=!1,At=[],It="undefined"!=typeof document,jt=m,Nt=u||c?"cssFloat":"float",Pt=It&&!h&&!m&&"draggable"in document.createElement("div"),Rt=function(){if(It){if(c)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ht=function(t,e){var n=D(t),i=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=j(t,0,e),a=j(t,1,e),r=o&&D(o),b=a&&D(a),l=r&&parseInt(r.marginLeft)+parseInt(r.marginRight)+A(o).width,s=b&&parseInt(b.marginLeft)+parseInt(b.marginRight)+A(a).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(o&&r.float&&"none"!==r.float){var _="left"===r.float?"left":"right";return!a||"both"!==b.clear&&b.clear!==_?"horizontal":"vertical"}return o&&("block"===r.display||"flex"===r.display||"table"===r.display||"grid"===r.display||l>=i&&"none"===n[Nt]||a&&"none"===n[Nt]&&l+s>i)?"vertical":"horizontal"},Lt=function(t){function e(t,n){return function(i,o,a,r){var b=i.options.group.name&&o.options.group.name&&i.options.group.name===o.options.group.name;if(null==t&&(n||b))return!0;if(null==t||!1===t)return!1;if(n&&"clone"===t)return t;if("function"==typeof t)return e(t(i,o,a,r),n)(i,o,a,r);var l=(n?i:o).options.group.name;return!0===t||"string"==typeof t&&t===l||t.join&&t.indexOf(l)>-1}}var n={},i=t.group;i&&"object"==a(i)||(i={name:i}),n.name=i.name,n.checkPull=e(i.pull,!0),n.checkPut=e(i.put),n.revertClone=i.revertClone,t.group=n},qt=function(){!Rt&&et&&D(et,"display","none")},Bt=function(){!Rt&&et&&D(et,"display","")};It&&document.addEventListener("click",function(t){if(Et)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Et=!1,!1},!0);var zt=function(t){if(V){t=t.touches?t.touches[0]:t;var e=(o=t.clientX,a=t.clientY,St.some(function(t){var e=t[F].options.emptyInsertThreshold;if(e&&!N(t)){var n=A(t),i=o>=n.left-e&&o<=n.right+e,b=a>=n.top-e&&a<=n.bottom+e;return i&&b?r=t:void 0}}),r);if(e){var n={};for(var i in t)t.hasOwnProperty(i)&&(n[i]=t[i]);n.target=n.rootEl=e,n.preventDefault=void 0,n.stopPropagation=void 0,e[F]._onDragOver(n)}}var o,a,r},Xt=function(t){V&&V.parentNode[F]._isOutsideThisEl(t.target)};function Yt(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=b({},e),t[F]=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 Ht(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!==Yt.supportPointer&&"PointerEvent"in window&&!p,emptyInsertThreshold:5};for(var i in G.initializePlugins(this,t,n),n)!(i in e)&&(e[i]=n[i]);for(var o in Lt(e),this)"_"===o.charAt(0)&&"function"==typeof this[o]&&(this[o]=this[o].bind(this));this.nativeDraggable=!e.forceFallback&&Pt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?g(t,"pointerdown",this._onTapStart):(g(t,"mousedown",this._onTapStart),g(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(g(t,"dragover",this),g(t,"dragenter",this)),St.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),b(this,W())}function Ft(t,e,n,i,o,a,r,b){var l,s,_=t[F],d=_.options.onMove;return!window.CustomEvent||c||u?(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=i,l.related=o||e,l.relatedRect=a||A(e),l.willInsertAfter=b,l.originalEvent=r,t.dispatchEvent(l),d&&(s=d.call(_,l,r)),s}function Wt(t){t.draggable=!1}function Kt(){Mt=!1}function Ut(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,n=e.length,i=0;n--;)i+=e.charCodeAt(n);return i.toString(36)}function Gt(t){return setTimeout(t,0)}function Qt(t){return clearTimeout(t)}Yt.prototype={constructor:Yt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(vt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,V):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,n=this.el,i=this.options,o=i.preventOnFilter,a=t.type,r=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,b=(r||t).target,l=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||b,s=i.filter;if(function(t){At.length=0;var e=t.getElementsByTagName("input"),n=e.length;for(;n--;){var i=e[n];i.checked&&At.push(i)}}(n),!V&&!(/mousedown|pointerdown/.test(a)&&0!==t.button||i.disabled)&&!l.isContentEditable&&(this.nativeDraggable||!p||!b||"SELECT"!==b.tagName.toUpperCase())&&!((b=k(b,i.draggable,n,!1))&&b.animated||ot===b)){if(bt=P(b),st=P(b,i.draggable),"function"==typeof s){if(s.call(this,t,b,this))return J({sortable:e,rootEl:l,name:"filter",targetEl:b,toEl:n,fromEl:n}),$("filter",e,{evt:t}),void(o&&t.cancelable&&t.preventDefault())}else if(s&&(s=s.split(",").some(function(i){if(i=k(l,i.trim(),n,!1))return J({sortable:e,rootEl:i,name:"filter",targetEl:b,fromEl:n,toEl:n}),$("filter",e,{evt:t}),!0})))return void(o&&t.cancelable&&t.preventDefault());i.handle&&!k(l,i.handle,n,!1)||this._prepareDragStart(t,r,b)}}},_prepareDragStart:function(t,e,n){var i,o=this,a=o.el,r=o.options,b=a.ownerDocument;if(n&&!V&&n.parentNode===a){var l=A(n);if(nt=a,tt=(V=n).parentNode,it=V.nextSibling,ot=n,dt=r.group,Yt.dragged=V,ut={target:V,clientX:(e||t).clientX,clientY:(e||t).clientY},ht=ut.clientX-l.left,wt=ut.clientY-l.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,V.style["will-change"]="all",i=function(){$("delayEnded",o,{evt:t}),Yt.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!f&&o.nativeDraggable&&(V.draggable=!0),o._triggerDragStart(t,e),J({sortable:o,name:"choose",originalEvent:t}),S(V,r.chosenClass,!0))},r.ignore.split(",").forEach(function(t){O(V,t.trim(),Wt)}),g(b,"dragover",zt),g(b,"mousemove",zt),g(b,"touchmove",zt),g(b,"mouseup",o._onDrop),g(b,"touchend",o._onDrop),g(b,"touchcancel",o._onDrop),f&&this.nativeDraggable&&(this.options.touchStartThreshold=4,V.draggable=!0),$("delayStart",this,{evt:t}),!r.delay||r.delayOnTouchOnly&&!e||this.nativeDraggable&&(u||c))i();else{if(Yt.eventCanceled)return void this._onDrop();g(b,"mouseup",o._disableDelayedDrag),g(b,"touchend",o._disableDelayedDrag),g(b,"touchcancel",o._disableDelayedDrag),g(b,"mousemove",o._delayedDragTouchMoveHandler),g(b,"touchmove",o._delayedDragTouchMoveHandler),r.supportPointer&&g(b,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(i,r.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(){V&&Wt(V),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._disableDelayedDrag),v(t,"touchend",this._disableDelayedDrag),v(t,"touchcancel",this._disableDelayedDrag),v(t,"mousemove",this._delayedDragTouchMoveHandler),v(t,"touchmove",this._delayedDragTouchMoveHandler),v(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?g(document,"pointermove",this._onTouchMove):g(document,e?"touchmove":"mousemove",this._onTouchMove):(g(V,"dragend",this),g(nt,"dragstart",this._onDragStart));try{document.selection?Gt(function(){document.selection.empty()}):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(Ct=!1,nt&&V){$("dragStarted",this,{evt:e}),this.nativeDraggable&&g(document,"dragover",Xt);var n=this.options;!t&&S(V,n.dragClass,!1),S(V,n.ghostClass,!0),Yt.active=this,t&&this._appendGhost(),J({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(ft){this._lastX=ft.clientX,this._lastY=ft.clientY,qt();for(var t=document.elementFromPoint(ft.clientX,ft.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(ft.clientX,ft.clientY))!==e;)e=t;if(V.parentNode[F]._isOutsideThisEl(t),e)do{if(e[F]){if(e[F]._onDragOver({clientX:ft.clientX,clientY:ft.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break}t=e}while(e=e.parentNode);Bt()}},_onTouchMove:function(t){if(ut){var e=this.options,n=e.fallbackTolerance,i=e.fallbackOffset,o=t.touches?t.touches[0]:t,a=et&&T(et,!0),r=et&&a&&a.a,b=et&&a&&a.d,l=jt&&kt&&R(kt),s=(o.clientX-ut.clientX+i.x)/(r||1)+(l?l[0]-Ot[0]:0)/(r||1),_=(o.clientY-ut.clientY+i.y)/(b||1)+(l?l[1]-Ot[1]:0)/(b||1);if(!Yt.active&&!Ct){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(t,!0)}if(et){a?(a.e+=s-(pt||0),a.f+=_-(mt||0)):a={a:1,b:0,c:0,d:1,e:s,f:_};var d="matrix(".concat(a.a,",").concat(a.b,",").concat(a.c,",").concat(a.d,",").concat(a.e,",").concat(a.f,")");D(et,"webkitTransform",d),D(et,"mozTransform",d),D(et,"msTransform",d),D(et,"transform",d),pt=s,mt=_,ft=o}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!et){var t=this.options.fallbackOnBody?document.body:nt,e=A(V,!0,jt,!0,t),n=this.options;if(jt){for(kt=t;"static"===D(kt,"position")&&"none"===D(kt,"transform")&&kt!==document;)kt=kt.parentNode;kt!==document.body&&kt!==document.documentElement?(kt===document&&(kt=M()),e.top+=kt.scrollTop,e.left+=kt.scrollLeft):kt=M(),Ot=R(kt)}S(et=V.cloneNode(!0),n.ghostClass,!1),S(et,n.fallbackClass,!0),S(et,n.dragClass,!0),D(et,"transition",""),D(et,"transform",""),D(et,"box-sizing","border-box"),D(et,"margin",0),D(et,"top",e.top),D(et,"left",e.left),D(et,"width",e.width),D(et,"height",e.height),D(et,"opacity","0.8"),D(et,"position",jt?"absolute":"fixed"),D(et,"zIndex","100000"),D(et,"pointerEvents","none"),Yt.ghost=et,t.appendChild(et),D(et,"transform-origin",ht/parseInt(et.style.width)*100+"% "+wt/parseInt(et.style.height)*100+"%")}},_onDragStart:function(t,e){var n=this,i=t.dataTransfer,o=n.options;$("dragStart",this,{evt:t}),Yt.eventCanceled?this._onDrop():($("setupClone",this),Yt.eventCanceled||((at=z(V)).draggable=!1,at.style["will-change"]="",this._hideClone(),S(at,this.options.chosenClass,!1),Yt.clone=at),n.cloneId=Gt(function(){$("clone",n),Yt.eventCanceled||(n.options.removeCloneOnHide||nt.insertBefore(at,V),n._hideClone(),J({sortable:n,name:"clone"}))}),!e&&S(V,o.dragClass,!0),e?(Et=!0,n._loopId=setInterval(n._emulateDragOver,50)):(v(document,"mouseup",n._onDrop),v(document,"touchend",n._onDrop),v(document,"touchcancel",n._onDrop),i&&(i.effectAllowed="move",o.setData&&o.setData.call(n,i,V)),g(document,"drop",n),D(V,"transform","translateZ(0)")),Ct=!0,n._dragStartId=Gt(n._dragStarted.bind(n,e,t)),g(document,"selectstart",n),gt=!0,p&&D(document.body,"user-select","none"))},_onDragOver:function(t){var e,n,i,a,r=this.el,b=t.target,l=this.options,s=l.group,_=Yt.active,d=dt===s,c=l.sort,u=ct||_,f=this,p=!1;if(!Mt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),b=k(b,l.draggable,r,!0),L("dragOver"),Yt.eventCanceled)return p;if(V.contains(t.target)||b.animated&&b.animatingX&&b.animatingY||f._ignoreWhileAnimating===b)return z(!1);if(Et=!1,_&&!l.disabled&&(d?c||(i=tt!==nt):ct===this||(this.lastPutMode=dt.checkPull(this,_,V,t))&&s.checkPut(this,_,V,t))){if(a="vertical"===this._getDirection(t,b),e=A(V),L("dragOverValid"),Yt.eventCanceled)return p;if(i)return tt=nt,q(),this._hideClone(),L("revert"),Yt.eventCanceled||(it?nt.insertBefore(V,it):nt.appendChild(V)),z(!0);var m=N(r,l.draggable);if(!m||function(t,e,n){var i=A(N(n.el,n.options.draggable));return e?t.clientX>i.right+10||t.clientX<=i.right&&t.clientY>i.bottom&&t.clientX>=i.left:t.clientX>i.right&&t.clientY>i.top||t.clientX<=i.right&&t.clientY>i.bottom+10}(t,a,this)&&!m.animated){if(m===V)return z(!1);if(m&&r===t.target&&(b=m),b&&(n=A(b)),!1!==Ft(nt,r,V,e,b,n,t,!!b))return q(),r.appendChild(V),tt=r,X(),z(!0)}else if(m&&function(t,e,n){var i=A(j(n.el,0,n.options,!0));return e?t.clientX<i.left-10||t.clientY<i.top&&t.clientX<i.right:t.clientY<i.top-10||t.clientY<i.bottom&&t.clientX<i.left}(t,a,this)){var h=j(r,0,l,!0);if(h===V)return z(!1);if(n=A(b=h),!1!==Ft(nt,r,V,e,b,n,t,!1))return q(),r.insertBefore(V,h),tt=r,X(),z(!0)}else if(b.parentNode===r){n=A(b);var w,g,v,y=V.parentNode!==r,x=!function(t,e,n){var i=n?t.left:t.top,o=n?t.right:t.bottom,a=n?t.width:t.height,r=n?e.left:e.top,b=n?e.right:e.bottom,l=n?e.width:e.height;return i===r||o===b||i+a/2===r+l/2}(V.animated&&V.toRect||e,b.animated&&b.toRect||n,a),C=a?"top":"left",E=I(b,"top","top")||I(V,"top","top"),T=E?E.scrollTop:void 0;if(vt!==b&&(g=n[C],Dt=!1,Tt=!x&&l.invertSwap||y),0!==(w=function(t,e,n,i,o,a,r,b){var l=i?t.clientY:t.clientX,s=i?n.height:n.width,_=i?n.top:n.left,d=i?n.bottom:n.right,c=!1;if(!r)if(b&&xt<s*o){if(!Dt&&(1===yt?l>_+s*a/2:l<d-s*a/2)&&(Dt=!0),Dt)c=!0;else if(1===yt?l<_+xt:l>d-xt)return-yt}else if(l>_+s*(1-o)/2&&l<d-s*(1-o)/2)return function(t){return P(V)<P(t)?1:-1}(e);if((c=c||r)&&(l<_+s*a/2||l>d-s*a/2))return l>_+s/2?1:-1;return 0}(t,b,n,a,x?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,Tt,vt===b))){var O=P(V);do{O-=w,v=tt.children[O]}while(v&&("none"===D(v,"display")||v===et))}if(0===w||v===b)return z(!1);vt=b,yt=w;var M=b.nextElementSibling,R=!1,H=Ft(nt,r,V,e,b,n,t,R=1===w);if(!1!==H)return 1!==H&&-1!==H||(R=1===H),Mt=!0,setTimeout(Kt,30),q(),R&&!M?r.appendChild(V):b.parentNode.insertBefore(V,R?M:b),E&&B(E,0,T-E.scrollTop),tt=V.parentNode,void 0===g||Tt||(xt=Math.abs(g-A(b)[C])),X(),z(!0)}if(r.contains(V))return z(!1)}return!1}function L(l,s){$(l,f,o({evt:t,isOwner:d,axis:a?"vertical":"horizontal",revert:i,dragRect:e,targetRect:n,canSort:c,fromSortable:u,target:b,completed:z,onMove:function(n,i){return Ft(nt,r,V,e,n,A(n),t,i)},changed:X},s))}function q(){L("dragOverAnimationCapture"),f.captureAnimationState(),f!==u&&u.captureAnimationState()}function z(e){return L("dragOverCompleted",{insertion:e}),e&&(d?_._hideClone():_._showClone(f),f!==u&&(S(V,ct?ct.options.ghostClass:_.options.ghostClass,!1),S(V,l.ghostClass,!0)),ct!==f&&f!==Yt.active?ct=f:f===Yt.active&&ct&&(ct=null),u===f&&(f._ignoreWhileAnimating=b),f.animateAll(function(){L("dragOverAnimationComplete"),f._ignoreWhileAnimating=null}),f!==u&&(u.animateAll(),u._ignoreWhileAnimating=null)),(b===V&&!V.animated||b===r&&!b.animated)&&(vt=null),l.dragoverBubble||t.rootEl||b===document||(V.parentNode[F]._isOutsideThisEl(t.target),!e&&zt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),p=!0}function X(){lt=P(V),_t=P(V,l.draggable),J({sortable:f,name:"change",toEl:r,newIndex:lt,newDraggableIndex:_t,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){v(document,"mousemove",this._onTouchMove),v(document,"touchmove",this._onTouchMove),v(document,"pointermove",this._onTouchMove),v(document,"dragover",zt),v(document,"mousemove",zt),v(document,"touchmove",zt)},_offUpEvents:function(){var t=this.el.ownerDocument;v(t,"mouseup",this._onDrop),v(t,"touchend",this._onDrop),v(t,"pointerup",this._onDrop),v(t,"touchcancel",this._onDrop),v(document,"selectstart",this)},_onDrop:function(t){var e=this.el,n=this.options;lt=P(V),_t=P(V,n.draggable),$("drop",this,{evt:t}),tt=V&&V.parentNode,lt=P(V),_t=P(V,n.draggable),Yt.eventCanceled?this._nulling():(Ct=!1,Tt=!1,Dt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qt(this.cloneId),Qt(this._dragStartId),this.nativeDraggable&&(v(document,"drop",this),v(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),p&&D(document.body,"user-select",""),D(V,"transform",""),t&&(gt&&(t.cancelable&&t.preventDefault(),!n.dropBubble&&t.stopPropagation()),et&&et.parentNode&&et.parentNode.removeChild(et),(nt===tt||ct&&"clone"!==ct.lastPutMode)&&at&&at.parentNode&&at.parentNode.removeChild(at),V&&(this.nativeDraggable&&v(V,"dragend",this),Wt(V),V.style["will-change"]="",gt&&!Ct&&S(V,ct?ct.options.ghostClass:this.options.ghostClass,!1),S(V,this.options.chosenClass,!1),J({sortable:this,name:"unchoose",toEl:tt,newIndex:null,newDraggableIndex:null,originalEvent:t}),nt!==tt?(lt>=0&&(J({rootEl:tt,name:"add",toEl:tt,fromEl:nt,originalEvent:t}),J({sortable:this,name:"remove",toEl:tt,originalEvent:t}),J({rootEl:tt,name:"sort",toEl:tt,fromEl:nt,originalEvent:t}),J({sortable:this,name:"sort",toEl:tt,originalEvent:t})),ct&&ct.save()):lt!==bt&<>=0&&(J({sortable:this,name:"update",toEl:tt,originalEvent:t}),J({sortable:this,name:"sort",toEl:tt,originalEvent:t})),Yt.active&&(null!=lt&&-1!==lt||(lt=bt,_t=st),J({sortable:this,name:"end",toEl:tt,originalEvent:t}),this.save()))),this._nulling())},_nulling:function(){$("nulling",this),nt=V=tt=et=it=at=ot=rt=ut=ft=gt=lt=_t=bt=st=vt=yt=ct=dt=Yt.dragged=Yt.ghost=Yt.clone=Yt.active=null,At.forEach(function(t){t.checked=!0}),At.length=pt=mt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":V&&(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,i=0,o=n.length,a=this.options;i<o;i++)k(t=n[i],a.draggable,this.el,!1)&&e.push(t.getAttribute(a.dataIdAttr)||Ut(t));return e},sort:function(t,e){var n={},i=this.el;this.toArray().forEach(function(t,e){var o=i.children[e];k(o,this.options.draggable,i,!1)&&(n[t]=o)},this),e&&this.captureAnimationState(),t.forEach(function(t){n[t]&&(i.removeChild(n[t]),i.appendChild(n[t]))}),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return k(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var n=this.options;if(void 0===e)return n[t];var i=G.modifyOption(this,t,e);n[t]=void 0!==i?i:e,"group"===t&&Lt(n)},destroy:function(){$("destroy",this);var t=this.el;t[F]=null,v(t,"mousedown",this._onTapStart),v(t,"touchstart",this._onTapStart),v(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(v(t,"dragover",this),v(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),function(t){t.removeAttribute("draggable")}),this._onDrop(),this._disableDelayedDragEvents(),St.splice(St.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!rt){if($("hideClone",this),Yt.eventCanceled)return;D(at,"display","none"),this.options.removeCloneOnHide&&at.parentNode&&at.parentNode.removeChild(at),rt=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(rt){if($("showClone",this),Yt.eventCanceled)return;V.parentNode!=nt||this.options.group.revertClone?it?nt.insertBefore(at,it):nt.appendChild(at):nt.insertBefore(at,V),this.options.group.revertClone&&this.animate(V,at),D(at,"display",""),rt=!1}}else this._hideClone()}},It&&g(document,"touchmove",function(t){(Yt.active||Ct)&&t.cancelable&&t.preventDefault()}),Yt.utils={on:g,off:v,css:D,find:O,is:function(t,e){return!!k(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:q,closest:k,toggleClass:S,clone:z,index:P,nextTick:Gt,cancelNextTick:Qt,detectDirection:Ht,getChild:j},Yt.get=function(t){return t[F]},Yt.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&&(Yt.utils=o(o({},Yt.utils),t.utils)),G.mount(t)})},Yt.create=function(t,e){return new Yt(t,e)},Yt.version="1.14.0";var Zt,$t,Jt,Vt,te,ee,ne=[],ie=!1;function oe(){ne.forEach(function(t){clearInterval(t.pid)}),ne=[]}function ae(){clearInterval(ee)}var re,be=q(function(t,e,n,i){if(e.scroll){var o,a=(t.touches?t.touches[0]:t).clientX,r=(t.touches?t.touches[0]:t).clientY,b=e.scrollSensitivity,l=e.scrollSpeed,s=M(),_=!1;$t!==n&&($t=n,oe(),Zt=e.scroll,o=e.scrollFn,!0===Zt&&(Zt=H(n,!0)));var d=0,c=Zt;do{var u=c,f=A(u),p=f.top,m=f.bottom,h=f.left,w=f.right,g=f.width,v=f.height,y=void 0,x=void 0,k=u.scrollWidth,C=u.scrollHeight,E=D(u),S=u.scrollLeft,T=u.scrollTop;u===s?(y=g<k&&("auto"===E.overflowX||"scroll"===E.overflowX||"visible"===E.overflowX),x=v<C&&("auto"===E.overflowY||"scroll"===E.overflowY||"visible"===E.overflowY)):(y=g<k&&("auto"===E.overflowX||"scroll"===E.overflowX),x=v<C&&("auto"===E.overflowY||"scroll"===E.overflowY));var O=y&&(Math.abs(w-a)<=b&&S+g<k)-(Math.abs(h-a)<=b&&!!S),I=x&&(Math.abs(m-r)<=b&&T+v<C)-(Math.abs(p-r)<=b&&!!T);if(!ne[d])for(var j=0;j<=d;j++)ne[j]||(ne[j]={});ne[d].vx==O&&ne[d].vy==I&&ne[d].el===u||(ne[d].el=u,ne[d].vx=O,ne[d].vy=I,clearInterval(ne[d].pid),0==O&&0==I||(_=!0,ne[d].pid=setInterval(function(){i&&0===this.layer&&Yt.active._onTouchMove(te);var e=ne[this.layer].vy?ne[this.layer].vy*l:0,n=ne[this.layer].vx?ne[this.layer].vx*l:0;"function"==typeof o&&"continue"!==o.call(Yt.dragged.parentNode[F],n,e,t,te,ne[this.layer].el)||B(ne[this.layer].el,n,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&c!==s&&(c=H(c,!1)));ie=_}},30),le=function(t){var e=t.originalEvent,n=t.putSortable,i=t.dragEl,o=t.activeSortable,a=t.dispatchSortableEvent,r=t.hideGhostForTarget,b=t.unhideGhostForTarget;if(e){var l=n||o;r();var s=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,_=document.elementFromPoint(s.clientX,s.clientY);b(),l&&!l.el.contains(_)&&(a("spill"),this.onSpill({dragEl:i,putSortable:n}))}};function se(){}function _e(){}function de(){function t(){this.defaults={swapClass:"sortable-swap-highlight"}}return t.prototype={dragStart:function(t){var e=t.dragEl;re=e},dragOverValid:function(t){var e=t.completed,n=t.target,i=t.onMove,o=t.activeSortable,a=t.changed,r=t.cancel;if(o.options.swap){var b=this.sortable.el,l=this.options;if(n&&n!==b){var s=re;!1!==i(n)?(S(n,l.swapClass,!0),re=n):re=null,s&&s!==re&&S(s,l.swapClass,!1)}a(),e(!0),r()}},drop:function(t){var e=t.activeSortable,n=t.putSortable,i=t.dragEl,o=n||this.sortable,a=this.options;re&&S(re,a.swapClass,!1),re&&(a.swap||n&&n.options.swap)&&i!==re&&(o.captureAnimationState(),o!==e&&e.captureAnimationState(),function(t,e){var n,i,o=t.parentNode,a=e.parentNode;if(!o||!a||o.isEqualNode(e)||a.isEqualNode(t))return;n=P(t),i=P(e),o.isEqualNode(a)&&n<i&&i++;o.insertBefore(e,o.children[n]),a.insertBefore(t,a.children[i])}(i,re),o.animateAll(),o!==e&&e.animateAll())},nulling:function(){re=null}},b(t,{pluginName:"swap",eventProperties:function(){return{swapItem:re}}})}se.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 i=j(this.sortable.el,this.startIndex,this.options);i?this.sortable.el.insertBefore(e,i):this.sortable.el.appendChild(e),this.sortable.animateAll(),n&&n.animateAll()},drop:le},b(se,{pluginName:"revertOnSpill"}),_e.prototype={onSpill:function(t){var e=t.dragEl,n=t.putSortable||this.sortable;n.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),n.animateAll()},drop:le},b(_e,{pluginName:"removeOnSpill"});var ce,ue,fe,pe,me,he=[],we=[],ge=!1,ve=!1,ye=!1;function xe(){function t(t){for(var e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));t.options.supportPointer?g(document,"pointerup",this._deselectMultiDrag):(g(document,"mouseup",this._deselectMultiDrag),g(document,"touchend",this._deselectMultiDrag)),g(document,"keydown",this._checkKeyDown),g(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData:function(e,n){var i="";he.length&&ue===t?he.forEach(function(t,e){i+=(e?", ":"")+t.textContent}):i=n.textContent,e.setData("Text",i)}}}return t.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal:function(t){var e=t.dragEl;fe=e},delayEnded:function(){this.isMultiDrag=~he.indexOf(fe)},setupClone:function(t){var e=t.sortable,n=t.cancel;if(this.isMultiDrag){for(var i=0;i<he.length;i++)we.push(z(he[i])),we[i].sortableIndex=he[i].sortableIndex,we[i].draggable=!1,we[i].style["will-change"]="",S(we[i],this.options.selectedClass,!1),he[i]===fe&&S(we[i],this.options.chosenClass,!1);e._hideClone(),n()}},clone:function(t){var e=t.sortable,n=t.rootEl,i=t.dispatchSortableEvent,o=t.cancel;this.isMultiDrag&&(this.options.removeCloneOnHide||he.length&&ue===e&&(ke(!0,n),i("clone"),o()))},showClone:function(t){var e=t.cloneNowShown,n=t.rootEl,i=t.cancel;this.isMultiDrag&&(ke(!1,n),we.forEach(function(t){D(t,"display","")}),e(),me=!1,i())},hideClone:function(t){var e=this,n=(t.sortable,t.cloneNowHidden),i=t.cancel;this.isMultiDrag&&(we.forEach(function(t){D(t,"display","none"),e.options.removeCloneOnHide&&t.parentNode&&t.parentNode.removeChild(t)}),n(),me=!0,i())},dragStartGlobal:function(t){t.sortable;!this.isMultiDrag&&ue&&ue.multiDrag._deselectMultiDrag(),he.forEach(function(t){t.sortableIndex=P(t)}),he=he.sort(function(t,e){return t.sortableIndex-e.sortableIndex}),ye=!0},dragStarted:function(t){var e=this,n=t.sortable;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){he.forEach(function(t){t!==fe&&D(t,"position","absolute")});var i=A(fe,!1,!0,!0);he.forEach(function(t){t!==fe&&X(t,i)}),ve=!0,ge=!0}n.animateAll(function(){ve=!1,ge=!1,e.options.animation&&he.forEach(function(t){Y(t)}),e.options.sort&&Ce()})}},dragOver:function(t){var e=t.target,n=t.completed,i=t.cancel;ve&&~he.indexOf(e)&&(n(!1),i())},revert:function(t){var e=t.fromSortable,n=t.rootEl,i=t.sortable,o=t.dragRect;he.length>1&&(he.forEach(function(t){i.addAnimationState({target:t,rect:ve?A(t):o}),Y(t),t.fromRect=o,e.removeAnimationState(t)}),ve=!1,function(t,e){he.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}(!this.options.removeCloneOnHide,n))},dragOverCompleted:function(t){var e=t.sortable,n=t.isOwner,i=t.insertion,o=t.activeSortable,a=t.parentEl,r=t.putSortable,b=this.options;if(i){if(n&&o._hideClone(),ge=!1,b.animation&&he.length>1&&(ve||!n&&!o.options.sort&&!r)){var l=A(fe,!1,!0,!0);he.forEach(function(t){t!==fe&&(X(t,l),a.appendChild(t))}),ve=!0}if(!n)if(ve||Ce(),he.length>1){var s=me;o._showClone(e),o.options.animation&&!me&&s&&we.forEach(function(t){o.addAnimationState({target:t,rect:pe}),t.fromRect=pe,t.thisAnimationDuration=null})}else o._showClone(e)}},dragOverAnimationCapture:function(t){var e=t.dragRect,n=t.isOwner,i=t.activeSortable;if(he.forEach(function(t){t.thisAnimationDuration=null}),i.options.animation&&!n&&i.multiDrag.isMultiDrag){pe=b({},e);var o=T(fe,!0);pe.top-=o.f,pe.left-=o.e}},dragOverAnimationComplete:function(){ve&&(ve=!1,Ce())},drop:function(t){var e=t.originalEvent,n=t.rootEl,i=t.parentEl,o=t.sortable,a=t.dispatchSortableEvent,r=t.oldIndex,b=t.putSortable,l=b||this.sortable;if(e){var s=this.options,_=i.children;if(!ye)if(s.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),S(fe,s.selectedClass,!~he.indexOf(fe)),~he.indexOf(fe))he.splice(he.indexOf(fe),1),ce=null,Q({sortable:o,rootEl:n,name:"deselect",targetEl:fe,originalEvt:e});else{if(he.push(fe),Q({sortable:o,rootEl:n,name:"select",targetEl:fe,originalEvt:e}),e.shiftKey&&ce&&o.el.contains(ce)){var d,c,u=P(ce),f=P(fe);if(~u&&~f&&u!==f)for(f>u?(c=u,d=f):(c=f,d=u+1);c<d;c++)~he.indexOf(_[c])||(S(_[c],s.selectedClass,!0),he.push(_[c]),Q({sortable:o,rootEl:n,name:"select",targetEl:_[c],originalEvt:e}))}else ce=fe;ue=l}if(ye&&this.isMultiDrag){if(ve=!1,(i[F].options.sort||i!==n)&&he.length>1){var p=A(fe),m=P(fe,":not(."+this.options.selectedClass+")");if(!ge&&s.animation&&(fe.thisAnimationDuration=null),l.captureAnimationState(),!ge&&(s.animation&&(fe.fromRect=p,he.forEach(function(t){if(t.thisAnimationDuration=null,t!==fe){var e=ve?A(t):p;t.fromRect=e,l.addAnimationState({target:t,rect:e})}})),Ce(),he.forEach(function(t){_[m]?i.insertBefore(t,_[m]):i.appendChild(t),m++}),r===P(fe))){var h=!1;he.forEach(function(t){t.sortableIndex===P(t)||(h=!0)}),h&&a("update")}he.forEach(function(t){Y(t)}),l.animateAll()}ue=l}(n===i||b&&"clone"!==b.lastPutMode)&&we.forEach(function(t){t.parentNode&&t.parentNode.removeChild(t)})}},nullingGlobal:function(){this.isMultiDrag=ye=!1,we.length=0},destroyGlobal:function(){this._deselectMultiDrag(),v(document,"pointerup",this._deselectMultiDrag),v(document,"mouseup",this._deselectMultiDrag),v(document,"touchend",this._deselectMultiDrag),v(document,"keydown",this._checkKeyDown),v(document,"keyup",this._checkKeyUp)},_deselectMultiDrag:function(t){if(!(void 0!==ye&&ye||ue!==this.sortable||t&&k(t.target,this.options.draggable,this.sortable.el,!1)||t&&0!==t.button))for(;he.length;){var e=he[0];S(e,this.options.selectedClass,!1),he.shift(),Q({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)}},b(t,{pluginName:"multiDrag",utils:{select:function(t){var e=t.parentNode[F];e&&e.options.multiDrag&&!~he.indexOf(t)&&(ue&&ue!==e&&(ue.multiDrag._deselectMultiDrag(),ue=e),S(t,e.options.selectedClass,!0),he.push(t))},deselect:function(t){var e=t.parentNode[F],n=he.indexOf(t);e&&e.options.multiDrag&&~n&&(S(t,e.options.selectedClass,!1),he.splice(n,1))}},eventProperties:function(){var t=this,e=[],n=[];return he.forEach(function(i){var o;e.push({multiDragElement:i,index:i.sortableIndex}),o=ve&&i!==fe?-1:ve?P(i,":not(."+t.options.selectedClass+")"):P(i),n.push({multiDragElement:i,index:o})}),{items:s(he),clones:[].concat(we),oldIndicies:e,newIndicies:n}},optionListeners:{multiDragKey:function(t){return"ctrl"===(t=t.toLowerCase())?t="Control":t.length>1&&(t=t.charAt(0).toUpperCase()+t.substr(1)),t}}})}function ke(t,e){we.forEach(function(n,i){var o=e.children[n.sortableIndex+(t?Number(i):0)];o?e.insertBefore(n,o):e.appendChild(n)})}function Ce(){he.forEach(function(t){t!==fe&&t.parentNode&&t.parentNode.removeChild(t)})}Yt.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?g(document,"dragover",this._handleAutoScroll):this.options.supportPointer?g(document,"pointermove",this._handleFallbackAutoScroll):e.touches?g(document,"touchmove",this._handleFallbackAutoScroll):g(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?v(document,"dragover",this._handleAutoScroll):(v(document,"pointermove",this._handleFallbackAutoScroll),v(document,"touchmove",this._handleFallbackAutoScroll),v(document,"mousemove",this._handleFallbackAutoScroll)),ae(),oe(),clearTimeout(C),C=void 0},nulling:function(){te=$t=Zt=ie=ee=Jt=Vt=null,ne.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var n=this,i=(t.touches?t.touches[0]:t).clientX,o=(t.touches?t.touches[0]:t).clientY,a=document.elementFromPoint(i,o);if(te=t,e||this.options.forceAutoScrollFallback||u||c||p){be(t,this.options,a,e);var r=H(a,!0);!ie||ee&&i===Jt&&o===Vt||(ee&&ae(),ee=setInterval(function(){var a=H(document.elementFromPoint(i,o),!0);a!==r&&(r=a,oe()),be(t,n.options,a,e)},10),Jt=i,Vt=o)}else{if(!this.options.bubbleScroll||H(a,!0)===M())return void oe();be(t,this.options,H(a,!1),!1)}}},b(t,{pluginName:"scroll",initializeByDefault:!0})}),Yt.mount(_e,se),e.default=Yt},,,,,,,,,,function(t,e,n){"use strict";n.r(e);n(0),n(1),n(13),n(14);window.bt_bb_sortable=n(2)},function(t,e,n){"use strict";!function(t){if(!window.bt_bb_preview||window.frameElement){window.bt_bb={},window.bt_bb.cache={},window.bt_bb.fe=!0,window.bt_bb.images={},window.bt_bb.iframe=!1,window!=window.top&&(window.bt_bb.iframe=!0),window.bt_bb.ajax_wait=!1,window.addEventListener("beforeunload",function(e){t("body").hasClass("bt_bb_fe_save_on")&&(e.preventDefault(),e.returnValue="")}),t(document).ready(function(){if(t("#bt_bb_fe_init_mouseover").remove(),t(".bt_bb_fe_count").on("click",function(e){var n=t(this).find(".bt_bb_fe_count_inner").html();window!=window.top&&(t(".bt_bb_front_end_preview_close",window.parent.document).click(),t("html, body",window.parent.document).animate({scrollTop:t(".bt_bb_item_list",window.parent.document).children().eq(n-1).offset().top-t("#wpadminbar",window.parent.document).height()},500))}),"undefined"!=typeof tinyMCE&&(window.bt_bb.tinymce=tinyMCE.get("bt_bb_fe_dialog_tinymce"),window.bt_bb.tinymce&&window.bt_bb.tinymce.on("init",function(){"true"==localStorage.getItem("bt_bb_fe_preview_toggle")?t("body").addClass("bt_bb_fe_preview_toggle"):t("body").removeClass("bt_bb_fe_preview_toggle"),t(".bt_bb_fe_preview_toggler").on("click",function(e){e.stopPropagation(),t("body").toggleClass("bt_bb_fe_preview_toggle");var n=!1;t("body").hasClass("bt_bb_fe_preview_toggle")&&(n=!0),localStorage.setItem("bt_bb_fe_preview_toggle",n)}),t("#bt_bb_fe_add_section").on("click",function(e){e.stopPropagation(),t("body").toggleClass("bt_bb_fe_add_section_toggle"),t("#bt_bb_fe_add_section_dialog").css("top",t("#wpadminbar")[0].getBoundingClientRect().bottom+"px"),t("body").hasClass("bt_bb_fe_add_section_toggle"),window.bt_bb_fe_dialog_close()})})),e(),t(window).on("scroll",function(){e()}),!window.bt_bb_custom_elements){t(document).on("click","body.bt_bb_fe_add_section section.bt_bb_section",function(){t("section.bt_bb_section").removeClass("bt_bb_fe_add_section_selected"),t(this).addClass("bt_bb_fe_add_section_selected"),t(parent.document.body).addClass("bt_bb_fe_add_section_selected_body")});for(const t in window.bt_bb_elements)for(const e in window.bt_bb_elements[t].params){const n=window.bt_bb_elements[t].params[e].type;"attach_image"!=n&&"attach_images"!=n||(window.bt_bb.images[t]||(window.bt_bb.images[t]=[]),window.bt_bb.images[t].push(e))}window.bt_bb_fe_parse_data();for(const e in window.bt_bb_fe_elements)t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find('[data-base="'+e+'"]').each(function(){var n=!0;if(window.bt_bb_fe_elements[e].condition_params){n=!1;var i=t(this).data("bt-bb-fe-atts");for(const t in window.bt_bb_fe_elements[e].params)if(i[t]){n=!0;break}}n&&t(this).addClass("bt_bb_fe_edit")}),t(document).on("click",':not(ul.menu) .bt_bb_wrapper [data-base="'+e+'"] a',function(){if(!t("body").hasClass("bt_bb_fe_preview_toggle")&&t(this).closest(".bt_bb_fe_edit").length)return!1}),void 0===window.bt_bb_fe_elements[e].edit_box_selector&&(window.bt_bb_fe_elements[e].edit_box_selector="");t(document).on("click","#bt_bb_fe_dialog_close",function(){window.bt_bb_fe_dialog_close(!1)}),t(document).on("click","#bt_bb_fe_dialog_switch",function(){t("#bt_bb_fe_save").css("transition","none"),t("#bt_bb_fe_preview_toggler").css("transition","none"),t("#bt_bb_fe_dialog_switch").css("transition","none"),setTimeout(function(){t("body").toggleClass("bt_bb_fe_dialog_switch_side")},0),setTimeout(function(){t("#bt_bb_fe_save").css("transition",""),t("#bt_bb_fe_preview_toggler").css("transition",""),t("#bt_bb_fe_dialog_switch").css("transition","")},20)}),t(document).on("click","#bt_bb_fe_add_section_close",function(){t("body").toggleClass("bt_bb_fe_add_section_toggle")}),t(document).on("click","#bt_bb_fe_add_section_switch",function(){t("#bt_bb_fe_save").css("transition","none"),t("#bt_bb_fe_preview_toggler").css("transition","none"),setTimeout(function(){t("body").toggleClass("bt_bb_fe_dialog_switch_side")},0),setTimeout(function(){t("#bt_bb_fe_save").css("transition",""),t("#bt_bb_fe_preview_toggler").css("transition","")},20)});var n=function(){return t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_add_section_selected").closest(".bt_bb_fe_wrap")[0].outerHTML};t(document).on("input","#bt_bb_fe_add_section_search",function(){var e=t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_wrap"),n=t(this).val();t("#bt_bb_add_section_iframe_parent iframe")[0].contentWindow.bt_bb_fe_sections_search.forEach(function(t,i){t.includes(n)?e.eq(i).show():e.eq(i).hide()})}),t(document).on("click","#bt_bb_fe_add_section_to_top",function(){var e=n();e=window.bt_bb.element_insert_prepare(e),t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).prepend(e),window.bt_bb.reorder_sections(),t("body").addClass("bt_bb_fe_save_on"),t(this).find("i").fadeIn().fadeOut()}),t(document).on("click","#bt_bb_fe_add_section_to_bottom",function(){var e=n();e=window.bt_bb.element_insert_prepare(e),t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).append(e),window.bt_bb.reorder_sections(),t("body").addClass("bt_bb_fe_save_on"),t(this).find("i").fadeIn().fadeOut()}),t(document).on("click","#bt_bb_fe_add_section_to_clipboard",function(){var e=t("#bt_bb_add_section_iframe_parent iframe").contents().find(".bt_bb_fe_add_section_selected").closest(".bt_bb_fe_wrap");window.bt_bb.element_menu_copy(e),t(this).find("i").fadeIn().fadeOut()}),window.bt_bb.tinymce.on("NodeChange keyup",function(){if(window.bt_bb.tinymce.isDirty()){var e=window.bt_bb.tinymce.getContent();window.bt_bb.editing_elements&&(window.bt_bb.editing_elements.data("content",e),e.match(/\[.+\]/g)?("undefined"!=typeof atts&&(window.bt_bb.editing_elements_atts=atts),window.bt_bb_fe_ajax_preview([])):(window.bt_bb.editing_elements.html(window.switchEditors.wpautop(e)),t("body").addClass("bt_bb_fe_save_on")))}}),t("#bt_bb_fe_dialog_tinymce").on("input",function(){var e=t(this).val();window.bt_bb.editing_elements.data("content",e),e.match(/\[.+\]/g)?("undefined"!=typeof atts&&(window.bt_bb.editing_elements_atts=atts),window.bt_bb_fe_ajax_preview([])):(window.bt_bb.editing_elements.html(window.switchEditors.wpautop(e)),t("body").addClass("bt_bb_fe_save_on"))}),bt_bb_fe_dialog_content.attachShadow({mode:"open"}),bt_bb_fe_dialog_bottom.attachShadow({mode:"open"});var i=document.createElement("link");i.setAttribute("rel","stylesheet"),i.setAttribute("href",window.bt_bb_fe_dialog_content_css_url),bt_bb_fe_dialog_content.shadowRoot.appendChild(i);var o=document.createElement("link");o.setAttribute("rel","stylesheet"),o.setAttribute("href",window.bt_bb_fe_dialog_bottom_css_url),bt_bb_fe_dialog_bottom.shadowRoot.appendChild(o);var a=document.createElement("style");a.innerHTML='@import url("'+window.bt_bb_fa_url+'")',bt_bb_fe_dialog_content.shadowRoot.appendChild(a);var r=document.createElement("div");r.id="bt_bb_fe_dialog_content_wrapper",window.bt_bb_rtl&&r.classList.add("rtl"),bt_bb_fe_dialog_content.shadowRoot.appendChild(r);var b=document.createElement("span");b.innerHTML=window.bt_bb_text.select+' <a href="#" id="up">'+window.bt_bb_text.parent+"</a>",bt_bb_fe_dialog_bottom.shadowRoot.appendChild(b);var l=document.createElement("span");l.innerHTML=' | <a href="#" id="clone">'+window.bt_bb_text.clone+"</a>",bt_bb_fe_dialog_bottom.shadowRoot.appendChild(l);var s=document.createElement("span");s.innerHTML=' | <a href="#" id="delete">'+window.bt_bb_text.delete+"</a>",bt_bb_fe_dialog_bottom.shadowRoot.appendChild(s),t(document).on("mouseover","[data-bt-bb-fe-atts]",function(e){if(!window.bt_bb.iframe&&t(this).hasClass("bt_bb_fe_edit")){e.stopPropagation();var n=t(this).data("base");t(".bt_bb_fe_edit_box").removeClass("bt_bb_fe_edit_box"),""==window.bt_bb_fe_elements[n].edit_box_selector?(t(this).addClass("bt_bb_fe_edit_box"),0==t(this).find("> .bt_bb_fe_before").length&&(t(this).hasClass("bt_bb_section")&&t(this).find(".bt_bb_background_image_holder_wrapper").length>0?t(this).find(".bt_bb_background_image_holder_wrapper").after('<template class="bt_bb_fe_before"></template>'):t(this).prepend('<template class="bt_bb_fe_before"></template>'))):(t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).addClass("bt_bb_fe_edit_box"),0==t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).find("> .bt_bb_fe_before").length&&t(this).find(window.bt_bb_fe_elements[n].edit_box_selector).prepend('<template class="bt_bb_fe_before"></template>'))}}),t(document).on("mouseout",".bt_bb_fe_edit",function(e){t(this).removeClass("bt_bb_fe_edit_box")}),t(document).on("click",".bt_bb_fe_before",function(){var e=t(this).closest(".bt_bb_fe_edit");t("body").hasClass("bt_bb_fe_dialog_on")&&e.data("fe-id")==window.bt_bb.editing_element.data("fe-id")?window.bt_bb_fe_dialog_close(!0):(window.bt_bb.editing_element=e,window.bt_bb.edit_element())}),window.bt_bb.edit_element=function(){t("body").removeClass("bt_bb_fe_add_section_toggle"),t("body").removeClass("bt_bb_fe_tinymce_editor");var e=bt_bb_fe_dialog_content.shadowRoot.getElementById("bt_bb_fe_dialog_content_wrapper");e.innerHTML="",t("#bt_bb_fe_dialog").css("top",t("#wpadminbar")[0].getBoundingClientRect().bottom+"px");var n=window.bt_bb.editing_element.data("fe-id");window.bt_bb.editing_elements=t('.bt_bb_fe_edit[data-fe-id="'+n+'"]'),t(".bt_bb_fe_edit").removeClass("bt_bb_fe_editing"),window.bt_bb.editing_element.addClass("bt_bb_fe_editing");var i=window.bt_bb.editing_element.data("base");t(".bt_bb_fe_editing_box").removeClass("bt_bb_fe_editing_box"),""==window.bt_bb_fe_elements[i].edit_box_selector?window.bt_bb.editing_element.addClass("bt_bb_fe_editing_box"):window.bt_bb.editing_element.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_editing_box");var o=document.createDocumentFragment(),a=window.bt_bb.editing_element.data("bt-bb-fe-atts"),r=window.bt_bb_fe_elements[i].params;window.bt_bb_fe_elements[i].params&&"object"==typeof r&&null!==r&&!Array.isArray(r)?Object.keys(window.bt_bb_fe_elements[i].params).forEach(function(t){if(window.bt_bb_elements[i]&&window.bt_bb_elements[i].params[t]){var e=a[t];void 0===e&&(e="");window.bt_bb_elements[i].params[t];var n=window.bt_bb_get_dialog_param({param:window.bt_bb_elements[i].params[t],attr_value:e,group_class:"",base:i});o.appendChild(n)}}):window.bt_bb_elements[i].accept&&window.bt_bb_elements[i].accept._content&&!0===window.bt_bb_elements[i].accept._content&&(window.bt_bb.tinymce.setContent(window.switchEditors.wpautop(window.bt_bb.editing_element.data("content"))),t("body").addClass("bt_bb_fe_tinymce_editor")),e.appendChild(o);var b=function(e,n,i,o,r){var b=window.bt_bb_get_edit_item_value(o,n,e.closest(".bt_bb_dialog_item")),l=!1;if(i){if(""!=i.target_selector)var s=window.bt_bb.editing_elements.find(i.target_selector);else s=window.bt_bb.editing_elements;if(s.length>0){if(l=!0,"inner_html"==i.type)s.html(b);else if("inner_html_nl2br"==i.type)s.html(function(t,e){if(null==t)return"";return(t+"").replace(/(\r\n|\n\r|\r|\n)/g,(e||void 0===e?"<br />":"<br>")+"$1")}(b));else if("attr"==i.type)i.preprocess&&"progress_bar_style"==i.preprocess?s.attr(i.attr,"width:"+b+"%"):s.attr(i.attr,b);else if("countdown"==i.type){var _=Math.round((Date.parse(b)-(new Date).getTime())/1e3);_<0&&(_=0),s.data("init-seconds",_),s.find(".hours>.n0>span").html(""),s.find(".hours>.n1>span").html(""),s.find(".minutes>.n0>span").html(""),s.find(".minutes>.n1>span").html(""),s.find(".seconds>.n0>span").html(""),s.find(".seconds>.n1>span").html(""),window.bt_bb_countdown_output(s)}else"data"==i.type?s.data(i.data,b):"class"==i.type&&(s.removeClass(function(t,e){var n=new RegExp("bt_bb_"+o+"_.+","g");return e.match(n)||[]}),s.addClass("bt_bb_"+o+"_"+b));a[o]=window.bt_bb_special_char_encode(b),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),t("body").addClass("bt_bb_fe_save_on")}}l||(void 0===r&&(r=[]),a[o]=window.bt_bb_special_char_encode(b),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,window.bt_bb_fe_ajax_preview(r))};bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item").forEach(function(e){var n=t(e).data("param_name"),o=t(e).data("type");if("_content"!=o)var a=window.bt_bb_fe_elements[i].params[n].js_handler;var r=window.bt_bb_fe_elements[i].params[n].ajax_filter;"textfield"==o||"textarea"==o||"link"==o||"textarea_object"==o||"attach_image"==o?t(e).find('input[type="text"], textarea').on("input",function(){b(t(this),o,a,n,r)}):"dropdown"==o?t(e).find("select").on("change",function(){b(t(this),o,a,n,r)}):"checkbox"==o&&t(e).find('input[type="checkbox"]').on("change",function(){b(t(this),o,a,n,r)})}),window.bt_bb_iconpicker_init(function(t){var e=t.attr("data-icon"),n=t.closest(".bt_bb_dialog_item"),o=n.data("param_name");n.data("type");a[o]=e,window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,window.bt_bb_fe_elements[i].params[o].js_handler||window.bt_bb_fe_ajax_preview([])}),window.bt_bb_image_sortable(t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll('.bt_bb_dialog_item[data-type="attach_images"] .bt_bb_dialog_image_container')),a),t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item")).on("click",".bt_bb_dialog_image_container .fa-times",function(e){var n=t(this).closest(".bt_bb_dialog_item"),o=n.data("param_name"),r=(n.data("type"),window.bt_bb_fe_elements[i].params[o].js_handler);if(window.bt_bb_delete_images(this,a),window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,r){if(r.target_selector&&""!=r.target_selector)var b=window.bt_bb.editing_elements.find(r.target_selector);else b=window.bt_bb.editing_elements;"background_image"==r.type&&b.css("background-image",""),t("body").addClass("bt_bb_fe_save_on")}else window.bt_bb_fe_ajax_preview([])}),t(bt_bb_fe_dialog_content.shadowRoot.querySelectorAll(".bt_bb_dialog_item")).on("click",".bt_bb_dialog_select_images_button",function(e){var n=t(this).closest(".bt_bb_dialog_item"),o=n.data("param_name"),r=(n.data("type"),window.bt_bb_fe_elements[i].params[o].js_handler);window.bt_bb_select_images(this,a,function(t){if(window.bt_bb.editing_elements.data("bt-bb-fe-atts",a),window.bt_bb.editing_elements_atts=a,r){if(r.target_selector&&""!=r.target_selector)var e=window.bt_bb.editing_elements.find(r.target_selector);else e=window.bt_bb.editing_elements;var n;if("background_image"==r.type)t.each(function(t){return n=t.attributes.sizes.full.url,!1}),e.css("background-image","url("+n+")")}else window.bt_bb_fe_ajax_preview([])})}),window.bt_bb_search_link_init(),t(".bt_bb_dialog_header_text").html(window.bt_bb_text.edit+" "+window.bt_bb_elements[i].name),t("body").addClass("bt_bb_fe_dialog_on"),t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete")).removeClass("disabled"),t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("clone")).removeClass("clone"),1==t(window.bt_bb.editing_element).closest(".bt_bb_content_slider_item").length&&(t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete")).addClass("disabled"),t(bt_bb_fe_dialog_bottom.shadowRoot.getElementById("clone")).addClass("disabled"))},bt_bb_fe_dialog_bottom.shadowRoot.getElementById("up").onclick=(e=>{var n=t(".bt_bb_fe_editing").parents(".bt_bb_fe_edit").eq(0);return n.length&&(window.bt_bb.editing_element=n,window.bt_bb.edit_element()),!1}),bt_bb_fe_dialog_bottom.shadowRoot.getElementById("clone").onclick=(e=>{if("bt_bb_section"==t(window.bt_bb.editing_element).attr("data-base")){var n=t(window.bt_bb.editing_element).closest(".bt_bb_fe_wrap"),i=window.bt_bb.element_insert_prepare(n[0].outerHTML);t(window.bt_bb.editing_element).after(i),window.bt_bb.reorder_sections()}else{i=window.bt_bb.element_insert_prepare(window.bt_bb.editing_element[0].outerHTML);t(window.bt_bb.editing_element).after(i)}return t("body").addClass("bt_bb_fe_save_on"),!1}),bt_bb_fe_dialog_bottom.shadowRoot.getElementById("delete").onclick=(e=>("bt_bb_section"==t(window.bt_bb.editing_element).attr("data-base")?(t(window.bt_bb.editing_element).closest(".bt_bb_fe_wrap").remove(),window.bt_bb.reorder_sections()):window.bt_bb.editing_elements.remove(),bt_bb_fe_dialog_close(),t("body").addClass("bt_bb_fe_save_on"),!1)),t(document).on("click","#bt_bb_fe_save",function(){t("body").addClass("bt_bb_fe_saving"),window.bt_bb_fe_parse_data();var e={action:"bt_bb_fe_save",nonce:window.bt_bb_fe_ajax.nonce,post_id:window.bt_bb_post_id,post_content:window.bt_bb_parse_data_str};t.ajax({method:"POST",url:window.bt_bb_ajax_url,data:e}).done(function(e){t("body").removeClass("bt_bb_fe_saving"),t("body").removeClass("bt_bb_fe_save_on")})})}});var e=function(){t(".bt_bb_fe_wrap_footer").each(function(){var e=t(window).scrollTop()+t(window).height();t(this).offset().top<e?t("body").addClass("bt_bb_fe_show_preview_toggler_footer"):t("body").removeClass("bt_bb_fe_show_preview_toggler_footer")})};window.bt_bb_fe_dialog_close=function(e){t("body").removeClass("bt_bb_fe_dialog_on"),t(".bt_bb_fe_editing").removeClass("bt_bb_fe_editing"),t(".bt_bb_fe_editing_box").removeClass("bt_bb_fe_editing_box"),e||t(".bt_bb_fe_edit_box").removeClass("bt_bb_fe_edit_box")},window.bt_bb_fe_parse_data=function(){window.bt_bb_fe_elements_obj={title:"_root",base:"_root",children:[]};var e=t(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find("[data-bt-bb-fe-atts]").not("[data-bt-bb-fe-atts] [data-bt-bb-fe-atts]"),n=[],i=[],o=function(e,a){var r;a.sort(function(e,n){return t(e).data("fe-id")-t(n).data("fe-id")}),t.each(a,function(a,b){var l=t(b).data("base"),s=t(b).data("bt-bb-fe-atts");if(r=t(b).data("fe-id"),!i.includes(r)){i.push(r);for(const t in window.bt_bb.images[l]){var _=s[window.bt_bb.images[l][t]];_&&""!=_&&(n=n.concat(_.split(",")))}if(window.bt_bb_elements[l].accept&&window.bt_bb_elements[l].accept._content&&1==window.bt_bb_elements[l].accept._content)var d={title:l,base:l,attr:JSON.stringify(s),children:[{title:"_content",base:"_content",content:t(b).data("content"),children:[]}]};else d={title:l,base:l,attr:JSON.stringify(s),children:[]};t(b).find("[data-bt-bb-fe-atts]").eq(0).length>0?o(d,t(b).find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()):"bt_bb_tab_item"==l&&o(d,t(b).closest(".bt_bb_tabs").find(".bt_bb_tab_item").eq(t(b).index()).find(".bt_bb_tab_content").find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()),e.children.push(d)}})};o(window.bt_bb_fe_elements_obj,e),window.bt_bb_parse_data(window.bt_bb_fe_elements_obj),wp.media.ajax({data:{action:"query-attachments",query:{post__in:n,posts_per_page:-1}}}).done(function(t,e,n){for(const e in t)void 0!==t[e].sizes&&(void 0!==t[e].sizes.thumbnail?(window.bt_bb.cache[t[e].id]={},window.bt_bb.cache[t[e].id].url=t[e].sizes.thumbnail.url):void 0!==t[e].sizes.full&&(window.bt_bb.cache[t[e].id]={},window.bt_bb.cache[t[e].id].url=t[e].sizes.full.url))})},window.bt_bb_fe_ajax_preview=function(e){if(window.bt_bb.ajax_wait)return clearTimeout(window.bt_bb.ajax_preview_timeout),void(window.bt_bb.ajax_preview_timeout=setTimeout(function(){window.bt_bb_fe_ajax_preview(e)},100));(new Date).getTime();window.bt_bb.ajax_wait=!0;var n={title:"_root",base:"_root",children:[]},i=[],o=!0,a=function(e,n){var r;n&&n.sort(function(e,n){return t(e).data("fe-id")-t(n).data("fe-id")}),t.each(n,function(n,b){var l=t(b).data("base");if(o){var s=window.bt_bb.editing_elements_atts;o=!1}else s=t(b).data("bt-bb-fe-atts");if(r=t(b).data("fe-id"),!i.includes(r)){if(i.push(r),window.bt_bb_elements[l].accept&&window.bt_bb_elements[l].accept._content&&1==window.bt_bb_elements[l].accept._content)var _={title:l,base:l,attr:JSON.stringify(s),children:[{title:"_content",base:"_content",content:t(b).data("content"),children:[]}]};else _={title:l,base:l,attr:JSON.stringify(s),children:[]};t(b).find("[data-bt-bb-fe-atts]").eq(0).length>0&&a(_,t(b).find("[data-bt-bb-fe-atts]").eq(0).siblings("[data-bt-bb-fe-atts]").addBack()),e.children.push(_)}})};a(n,window.bt_bb.editing_element),window.bt_bb_parse_data_str="",window.bt_bb_parse_data_helper(n);var r={action:"bt_bb_fe_get_html",nonce:window.bt_bb_fe_ajax.nonce,post_id:window.bt_bb_post_id,content:window.bt_bb_parse_data_str};t.ajax({method:"POST",url:window.bt_bb_ajax_url,data:r}).done(function(n){var i=window.bt_bb.editing_element.data("base"),o=window.bt_bb.editing_element.data("fe-id");if(window.bt_bb_fe_elements[i].ajax_slick&&!0===window.bt_bb_fe_elements[i].ajax_slick&&window.bt_bb.editing_elements.find(t(".slick-slider")).slick("unslick"),0==e.length){var a=(n=n.replace(/data-fe-id=".*?"/,'data-fe-id="'+o+'"')).replace(/class="(.*?)"/,'class="$1 bt_bb_fe_edit bt_bb_fe_editing"');window.bt_bb_fe_elements[i].use_ajax_placeholder&&!0===window.bt_bb_fe_elements[i].use_ajax_placeholder&&(window.bt_bb.editing_element.after('<div class="bt_bb_fe_ajax_placeholder" style="width:0px;height:'+window.bt_bb.editing_element.outerHeight()+'px;display:inline-block;margin-inline-start:-.25em;"></div>'),setTimeout(function(){t(".bt_bb_fe_ajax_placeholder").remove()},200)),window.bt_bb.editing_element.replaceWith(a),window.bt_bb.editing_element=t('.bt_bb_fe_editing[data-fe-id="'+o+'"]'),window.bt_bb.editing_elements.replaceWith(n),t('[data-fe-id="'+o+'"]').not(".bt_bb_fe_editing").addClass("bt_bb_fe_edit"),window.bt_bb.editing_elements=t('[data-fe-id="'+o+'"]')}else{if(e.includes("class")){var r=n.match(/class="(.*?)"/);r=r[1],window.bt_bb.editing_elements.attr("class",r),window.bt_bb.editing_element.attr("class",r+" bt_bb_fe_edit bt_bb_fe_editing")}if(e.includes("data-bt-override-class")){var b=n.match(/data-bt-override-class="(.*?)"/);b=b[1],b=JSON.parse(b.replace(/"/g,'"')),window.bt_bb.editing_element.data("bt-override-class",b),window.bt_bb.editing_elements.data("bt-override-class",b)}if(e.includes("style")){var l=n.match(/style="(.*?)"/);l?(l=l[1],window.bt_bb.editing_elements.attr("style",l),window.bt_bb.editing_element.attr("style",l)):window.bt_bb.editing_element.removeAttr("style")}}""!=window.bt_bb_fe_elements[i].edit_box_selector?(window.bt_bb.editing_elements.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_edit_box"),window.bt_bb.editing_element.find(window.bt_bb_fe_elements[i].edit_box_selector).addClass("bt_bb_fe_editing_box"),window.bt_bb.editing_elements.find(window.bt_bb_fe_elements[i].edit_box_selector).each(function(){0==t(this).find("> .bt_bb_fe_before").length&&t(this).prepend('<template class="bt_bb_fe_before"></template>')})):(window.bt_bb.editing_elements.addClass("bt_bb_fe_edit_box"),window.bt_bb.editing_element.addClass("bt_bb_fe_editing_box"),window.bt_bb.editing_elements.each(function(){0==t(this).find("> .bt_bb_fe_before").length&&t(this).prepend('<template class="bt_bb_fe_before"></template>')})),window.bt_bb_fe_elements[i].ajax_trigger_window_load&&!0===window.bt_bb_fe_elements[i].ajax_trigger_window_load&&t(window).trigger("load"),window.bt_bb_fe_elements[i].ajax_animate_elements&&!0===window.bt_bb_fe_elements[i].ajax_animate_elements&&window.bt_bb_animate_elements(),window.bt_bb_fe_elements[i].ajax_trigger_scroll&&!0===window.bt_bb_fe_elements[i].ajax_trigger_scroll&&t(document).trigger("scroll"),window.bt_bb_fe_elements[i].ajax_mejs&&!0===window.bt_bb_fe_elements[i].ajax_mejs&&window.bt_bb.editing_elements.find("video").mediaelementplayer(),window.bt_bb_fe_elements[i].ajax_slick&&!0===window.bt_bb_fe_elements[i].ajax_slick&&setTimeout(function(){t(".slick-slider").not(".slick-initialized").slick(),t(".slick-slider .slick-prev, .slick-slider .slick-next, .slick-slider .slick-dots li").click(function(){t(this).closest(".slick-slider").slick("slickPause")}),t(".bt_bb_slider.bt_bb_use_lightbox .slick-slider .bt_bb_slider_item").click(function(){t(this).closest(".slick-slider").slick("slickPause")}),t(".bt_bb_slider.bt_bb_use_lightbox").each(function(){t(this).magnificPopup({delegate:".bt_bb_slider_item:not(.slick-cloned)",type:"image",gallery:{enabled:!0},callbacks:{elementParse:function(t){t.src=t.el.data("src-full")}},closeBtnInside:!1,fixedContentPos:!1})}),t(".bt_bb_image.bt_bb_use_lightbox a").each(function(){t(this).magnificPopup({delegate:"img",type:"image",gallery:{enabled:!0},callbacks:{elementParse:function(t){t.src=t.el.data("full_image_src")}},closeBtnInside:!1,fixedContentPos:!1})})},0),t("body").addClass("bt_bb_fe_save_on"),window.bt_bb.ajax_wait=!1})}}}(jQuery)},function(t,e,n){"use strict";var i;i=jQuery,window.bt_bb&&(window.bt_bb.element_menu_edit_be=function(t,e){var n=t.closest(".bt_bb_fe_wrap").find(".bt_bb_fe_count_inner").html();window!=window.top?(i(".bt_bb_front_end_preview_close",window.parent.document).click(),i("html, body",window.parent.document).animate({scrollTop:i(".bt_bb_item_list",window.parent.document).children().eq(n-1).offset().top-i("#wpadminbar",window.parent.document).height()},500)):void 0!==t.closest("li").data("edit_url")?e?window.open(t.closest("li").data("edit_url")+"&bt_bb_order="+n,"_blank"):window.location.replace(t.closest("li").data("edit_url")+"&bt_bb_order="+n):e?window.open(i("#wp-admin-bar-edit .ab-item").attr("href")+"&bt_bb_order="+n,"_blank"):window.location.replace(i("#wp-admin-bar-edit .ab-item").attr("href")+"&bt_bb_order="+n)},window.bt_bb.element_menu_cut=function(t){var e=t.closest(".bt_bb_fe_wrap");localStorage.setItem("bt_bb_fe_cb",e[0].outerHTML),e.remove(),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.element_menu_copy=function(t){var e=t.closest(".bt_bb_fe_wrap");localStorage.setItem("bt_bb_fe_cb",e[0].outerHTML)},window.bt_bb.element_insert_prepare=function(t){return t=(t=(t=(t=t.replace(/data-fe-id="(.*?)"/g,function(t,e,n,i){return'data-fe-id="'+Math.random().toString(16).slice(2)+'"'})).replace(/\sid="(.*?)"/g,function(t,e,n,i){return""})).replace(/el_id":"(.*?)"/g,function(t,e,n,i){return"el_id":"""})).replace("bt_bb_fe_editing","").replace("bt_bb_fe_editing_box","").replace("bt_bb_fe_edit_box","")},window.bt_bb.element_menu_paste=function(t,e){var n=t.closest(".bt_bb_fe_wrap"),o=localStorage.getItem("bt_bb_fe_cb");o=window.bt_bb.element_insert_prepare(o),e?n.before(o):n.after(o),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.element_menu_delete=function(t){t.remove(),window.bt_bb.reorder_sections(),i("body").addClass("bt_bb_fe_save_on")},window.bt_bb.reorder_sections=function(){var t=1;i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).find(".bt_bb_fe_wrap").each(function(){i(this).find(".bt_bb_fe_count_inner").html(t),t++})},i(document).ready(function(){localStorage.getItem("bt_bb_fe_cb")||i(".bt_bb_element_menu_paste").parent().addClass("bt_bb_disable"),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit",function(){window.bt_bb.editing_element=i(this).closest(".bt_bb_fe_wrap").find(".bt_bb_fe_edit").first(),window.bt_bb.edit_element()}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit_be",function(){i("body").hasClass("bt_bb_fe_save_on")?alert(window.bt_bb_text.save_content_first):window.bt_bb.element_menu_edit_be(i(this),!1)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_edit_be_new_tab",function(){i("body").hasClass("bt_bb_fe_save_on")?alert(window.bt_bb_text.save_content_first):window.bt_bb.element_menu_edit_be(i(this),!0)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_cut",function(){window.bt_bb.element_menu_cut(i(this)),i(".bt_bb_element_menu_paste").parent().removeClass("bt_bb_disable")}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_copy",function(){window.bt_bb.element_menu_copy(i(this)),i(this).fadeOut(200).fadeIn(200),i(".bt_bb_element_menu_paste").parent().removeClass("bt_bb_disable")}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_paste",function(){window.bt_bb.element_menu_paste(i(this),!1)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_paste_above",function(){window.bt_bb.element_menu_paste(i(this),!0)}),i(".bt_bb_wrapper").not("ul.menu .bt_bb_wrapper").eq(0).on("click",".bt_bb_element_menu_delete",function(){window.confirm(window.bt_bb_text.delete_section_confirm)&&window.bt_bb.element_menu_delete(i(this).closest(".bt_bb_fe_wrap"))})}))}]);
|
readme.txt
CHANGED
@@ -136,8 +136,11 @@ It is not possible to test Bold Builder with all themes - it should work fine wi
|
|
136 |
|
137 |
== Changelog ==
|
138 |
|
|
|
|
|
|
|
139 |
= 4.4.3 =
|
140 |
-
* Added option
|
141 |
|
142 |
= 4.4.2 =
|
143 |
* Added CSS Image Grid.
|
136 |
|
137 |
== Changelog ==
|
138 |
|
139 |
+
= 4.4.4 =
|
140 |
+
* Added Clone option on front end.
|
141 |
+
|
142 |
= 4.4.3 =
|
143 |
+
* Added Delete option on front end.
|
144 |
|
145 |
= 4.4.2 =
|
146 |
* Added CSS Image Grid.
|