Server IP : 192.158.238.246 / Your IP : 18.188.48.106 Web Server : LiteSpeed System : Linux uniform.iwebfusion.net 4.18.0-553.27.1.lve.1.el8.x86_64 #1 SMP Wed Nov 20 15:58:00 UTC 2024 x86_64 User : jenniferflocom ( 1321) PHP Version : 8.1.32 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : ON | Sudo : OFF | Pkexec : OFF Directory : /proc/7779/task/7779/cwd/plugins/gutenkit-blocks-addon/build/blocks/advanced-image/ |
Upload File : |
(()=>{"use strict";var t,e,o,n={2705:(t,e,o)=>{const n=window.wp.blocks,i=window.wp.url,r=t=>{let e=t?.url;!e||e.startsWith("http:")&&e.startsWith("https:")&&!e.startsWith("#")||(e=(0,i.prependHTTP)(e));let o={href:e,onClick:t=>t.preventDefault()};return t?.newTab&&(o.target="_blank",o.rel="noopener"),t?.noFollow&&(o.rel="_blank"==o.target?"nofollow noopener":"nofollow"),t?.customAttributes&&t?.customAttributes.length>0&&t?.customAttributes.forEach((t=>{const[e,n]=t.split("|");o[e]=n})),t?.isDynamicContent?(o["data-dynamic-content-url"]=JSON.stringify({...t,url:e}),o):o?.href?o:null},a=window.wp.blockEditor,l=JSON.parse('{"UU":"gutenkit/advanced-image","uK":{"blockID":{"type":"string"},"blockClass":{"type":"string"},"blocksCSS":{"type":"object"},"image":{"type":"object","default":{"url":"placeholder"},"excludeCopy":true},"imageAlignmentDesktop":{"type":"string","default":"center"},"imageAlignmentTablet":{"type":"string","default":"center"},"imageAlignmentMobile":{"type":"string","default":"center"},"imageAlignmentTabletLandscape":{"type":"string","default":"center"},"imageAlignmentMobileLandscape":{"type":"string","default":"center"},"imageAlignmentLaptop":{"type":"string","default":"center"},"imageAlignmentWideScreen":{"type":"string","default":"center"},"captionSource":{"type":"string","default":"none","excludeCopy":true},"customCaption":{"type":"string","default":"Enter your image caption","excludeCopy":true},"linkType":{"type":"string","default":"none"},"openLightbox":{"type":"string","default":"default"},"customURL":{"type":"object","default":{"url":"#","newTab":false,"noFollow":false}},"widthDesktop":{"type":"object"},"widthTablet":{"type":"object"},"widthMobile":{"type":"object"},"widthTabletLandscape":{"type":"object"},"widthMobileLandscape":{"type":"object"},"widthLaptop":{"type":"object"},"widthWideScreen":{"type":"object"},"maxWidthDesktop":{"type":"object"},"maxWidthTablet":{"type":"object"},"maxWidthMobile":{"type":"object"},"maxWidthTabletLandscape":{"type":"object"},"maxWidthMobileLandscape":{"type":"object"},"maxWidthLaptop":{"type":"object"},"maxWidthWideScreen":{"type":"object"},"heightDesktop":{"type":"object"},"heightTablet":{"type":"object"},"heightMobile":{"type":"object"},"heightTabletLandscape":{"type":"object"},"heightMobileLandscape":{"type":"object"},"heightLaptop":{"type":"object"},"heightWideScreen":{"type":"object"},"objectFitDesktop":{"type":"string","default":"unset"},"objectFitTablet":{"type":"string","default":"unset"},"objectFitMobile":{"type":"string","default":"unset"},"objectFitTabletLandscape":{"type":"string","default":"unset"},"objectFitMobileLandscape":{"type":"string","default":"unset"},"objectFitLaptop":{"type":"string","default":"unset"},"objectFitWideScreen":{"type":"string","default":"unset"},"objectPositionDesktop":{"type":"string","default":"50% 50%"},"objectPositionTablet":{"type":"string","default":"50% 50%"},"objectPositionMobile":{"type":"string","default":"50% 50%"},"objectPositionTabletLandscape":{"type":"string","default":"50% 50%"},"objectPositionMobileLandscape":{"type":"string","default":"50% 50%"},"objectPositionLaptop":{"type":"string","default":"50% 50%"},"objectPositionWideScreen":{"type":"string","default":"50% 50%"},"zoom":{"type":"object"},"hoverZoom":{"type":"object"},"opacity":{"type":"object"},"hoverOpacity":{"type":"object"},"cssFilters":{"type":"object"},"cssFiltersHover":{"type":"object"},"transitionDuration":{"type":"object"},"imageBorder":{"type":"object"},"imageBorderHover":{"type":"object"},"borderRadius":{"type":"object"},"borderRadiusHover":{"type":"object"},"boxShadow":{"type":"object"},"boxShadowHover":{"type":"object"},"captionAlignmentDesktop":{"type":"string"},"captionAlignmentTablet":{"type":"string"},"captionAlignmentMobile":{"type":"string"},"captionAlignmentTabletLandscape":{"type":"string"},"captionAlignmentMobileLandscape":{"type":"string"},"captionAlignmentLaptop":{"type":"string"},"captionAlignmentWideScreen":{"type":"string"},"captionColor":{"type":"string","default":"#000000"},"captionBackground":{"type":"string","default":""},"captionTypography":{"type":"object"},"captionShadow":{"type":"object"},"captionSpacing":{"type":"object"},"captionSpacingDesktop":{"type":"object"},"captionSpacingTablet":{"type":"object"},"captionSpacingMobile":{"type":"object"},"captionSpacingTabletLandscape":{"type":"object"},"captionSpacingMobileLandscape":{"type":"object"},"captionSpacingLaptop":{"type":"object"},"captionSpacingWideScreen":{"type":"object"},"showContainerOverlay":{"type":"boolean","default":false},"containerBackgroundOverlay":{"type":"object","default":{"opacity":{"size":"0.5"}}},"containerBackgroundHover":{"type":"object"},"containerBackgroundHoverOverlay":{"type":"object","default":{"opacity":{"size":"0.5"}}},"containerOverlayHoverTransitionDuration":{"type":"object","default":{"size":"0.3"}}}}');var s=o(790);const c=[{attributes:l.uK,save({attributes:t}){const{GkitImage:e}=window.gutenkit.components,o=!(!t.captionSource||"none"===t.captionSource),n=!(!t.linkType||"none"===t.linkType),i=!(!t.openLightbox||"no"===t.openLightbox)&&t.linkType&&"file"===t.linkType||t.linkType&&"custom"===t.linkType,l=()=>{let e="";if(t.captionSource)switch(t.captionSource){case"attachment":e=t.image.id?t.image.caption:"";break;case"custom":e=t.customCaption?t.customCaption:""}return e},c=()=>{let e="";if(t.linkType)switch(t.linkType){case"file":e=t.image.id?t.image.url:"";break;case"custom":e=t.customURL?t.customURL.url:""}return e},u=(0,s.jsx)(e,{image:t.image,className:"gkit-image"}),d=(0,s.jsx)("figcaption",{className:"gkit-image-caption wp-caption-text",children:l()}),p=(0,s.jsxs)("a",{...(()=>{let e={};const o=c().match(/\.(jpeg|jpg|gif|png|webp)$/);"file"==t?.linkType?e.href=c():"custom"==t?.linkType&&(e=Object.keys(t?.customURL).length>0?r(t?.customURL):"");const n={...e,className:"gutenkit-image-block","data-title":null===o?"":i?t.image.title:"","data-caption":null===o?"":i?l():"","data-fancybox":null===o?"":i?"gallery":""};return Object.keys(n).forEach((t=>{null!==n[t]&&void 0!==n[t]&&""!==n[t]||delete n[t]})),n})(),children:[u,o&&d]}),h=a.useBlockProps.save();return(0,s.jsxs)("div",{...h,children:[t?.showContainerOverlay&&(0,s.jsx)("div",{className:"gkit-container-overlay"}),o?(0,s.jsx)("figure",{className:"wp-caption gutenkit-image-block",children:n?p:(0,s.jsxs)(s.Fragment,{children:[u,d]})}):n?p:u]})}}];var u=o(6427),d=o(7723);const p=window.wp.data;var h=o(6087),g=o(5573);g.SVG,g.Path;const f=(0,h.lazy)((()=>o.e(3891).then(o.bind(o,3891))));function m(t,e){var o=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),o.push.apply(o,n)}return o}function v(t){for(var e=1;e<arguments.length;e++){var o=null!=arguments[e]?arguments[e]:{};e%2?m(Object(o),!0).forEach((function(e){y(t,e,o[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):m(Object(o)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function b(t){return b="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},b(t)}function y(t,e,o){return e in t?Object.defineProperty(t,e,{value:o,enumerable:!0,configurable:!0,writable:!0}):t[e]=o,t}function w(){return w=Object.assign||function(t){for(var e=1;e<arguments.length;e++){var o=arguments[e];for(var n in o)Object.prototype.hasOwnProperty.call(o,n)&&(t[n]=o[n])}return t},w.apply(this,arguments)}function S(t){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(t)}var k=S(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),T=S(/Edge/i),E=S(/firefox/i),x=S(/safari/i)&&!S(/chrome/i)&&!S(/android/i),D=S(/iP(ad|od|hone)/i),j=S(/chrome/i)&&S(/android/i),_={capture:!1,passive:!1};function C(t,e,o){t.addEventListener(e,o,!k&&_)}function O(t,e,o){t.removeEventListener(e,o,!k&&_)}function A(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 M(t){return t.host&&t!==document&&t.host.nodeType?t.host:t.parentNode}function N(t,e,o,n){if(t){o=o||document;do{if(null!=e&&(">"===e[0]?t.parentNode===o&&A(t,e):A(t,e))||n&&t===o)return t;if(t===o)break}while(t=M(t))}return null}var P,I=/\s+/g;function L(t,e,o){if(t&&e)if(t.classList)t.classList[o?"add":"remove"](e);else{var n=(" "+t.className+" ").replace(I," ").replace(" "+e+" "," ");t.className=(n+(o?" "+e:"")).replace(I," ")}}function R(t,e,o){var n=t&&t.style;if(n){if(void 0===o)return document.defaultView&&document.defaultView.getComputedStyle?o=document.defaultView.getComputedStyle(t,""):t.currentStyle&&(o=t.currentStyle),void 0===e?o:o[e];e in n||-1!==e.indexOf("webkit")||(e="-webkit-"+e),n[e]=o+("string"==typeof o?"":"px")}}function F(t,e){var o="";if("string"==typeof t)o=t;else do{var n=R(t,"transform");n&&"none"!==n&&(o=n+" "+o)}while(!e&&(t=t.parentNode));var i=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return i&&new i(o)}function B(t,e,o){if(t){var n=t.getElementsByTagName(e),i=0,r=n.length;if(o)for(;i<r;i++)o(n[i],i);return n}return[]}function X(){return document.scrollingElement||document.documentElement}function Y(t,e,o,n,i){if(t.getBoundingClientRect||t===window){var r,a,l,s,c,u,d;if(t!==window&&t.parentNode&&t!==X()?(a=(r=t.getBoundingClientRect()).top,l=r.left,s=r.bottom,c=r.right,u=r.height,d=r.width):(a=0,l=0,s=window.innerHeight,c=window.innerWidth,u=window.innerHeight,d=window.innerWidth),(e||o)&&t!==window&&(i=i||t.parentNode,!k))do{if(i&&i.getBoundingClientRect&&("none"!==R(i,"transform")||o&&"static"!==R(i,"position"))){var p=i.getBoundingClientRect();a-=p.top+parseInt(R(i,"border-top-width")),l-=p.left+parseInt(R(i,"border-left-width")),s=a+r.height,c=l+r.width;break}}while(i=i.parentNode);if(n&&t!==window){var h=F(i||t),g=h&&h.a,f=h&&h.d;h&&(s=(a/=f)+(u/=f),c=(l/=g)+(d/=g))}return{top:a,left:l,bottom:s,right:c,width:d,height:u}}}function W(t,e,o){for(var n=G(t,!0),i=Y(t)[e];n;){var r=Y(n)[o];if(!("top"===o||"left"===o?i>=r:i<=r))return n;if(n===X())break;n=G(n,!1)}return!1}function H(t,e,o,n){for(var i=0,r=0,a=t.children;r<a.length;){if("none"!==a[r].style.display&&a[r]!==Zt.ghost&&(n||a[r]!==Zt.dragged)&&N(a[r],o.draggable,t,!1)){if(i===e)return a[r];i++}r++}return null}function U(t,e){for(var o=t.lastElementChild;o&&(o===Zt.ghost||"none"===R(o,"display")||e&&!A(o,e));)o=o.previousElementSibling;return o||null}function $(t,e){var o=0;if(!t||!t.parentNode)return-1;for(;t=t.previousElementSibling;)"TEMPLATE"===t.nodeName.toUpperCase()||t===Zt.clone||e&&!A(t,e)||o++;return o}function z(t){var e=0,o=0,n=X();if(t)do{var i=F(t),r=i.a,a=i.d;e+=t.scrollLeft*r,o+=t.scrollTop*a}while(t!==n&&(t=t.parentNode));return[e,o]}function G(t,e){if(!t||!t.getBoundingClientRect)return X();var o=t,n=!1;do{if(o.clientWidth<o.scrollWidth||o.clientHeight<o.scrollHeight){var i=R(o);if(o.clientWidth<o.scrollWidth&&("auto"==i.overflowX||"scroll"==i.overflowX)||o.clientHeight<o.scrollHeight&&("auto"==i.overflowY||"scroll"==i.overflowY)){if(!o.getBoundingClientRect||o===document.body)return X();if(n||e)return o;n=!0}}}while(o=o.parentNode);return X()}function V(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(!P){var o=arguments;1===o.length?t.call(this,o[0]):t.apply(this,o),P=setTimeout((function(){P=void 0}),e)}}}function Z(t,e,o){t.scrollLeft+=e,t.scrollTop+=o}function J(t){var e=window.Polymer,o=window.jQuery||window.Zepto;return e&&e.dom?e.dom(t).cloneNode(!0):o?o(t).clone(!0)[0]:t.cloneNode(!0)}function K(t,e,o){var n={};return Array.from(t.children).forEach((function(i){var r,a,l,s;if(N(i,e.draggable,t,!1)&&!i.animated&&i!==o){var c=Y(i);n.left=Math.min(null!==(r=n.left)&&void 0!==r?r:1/0,c.left),n.top=Math.min(null!==(a=n.top)&&void 0!==a?a:1/0,c.top),n.right=Math.max(null!==(l=n.right)&&void 0!==l?l:-1/0,c.right),n.bottom=Math.max(null!==(s=n.bottom)&&void 0!==s?s:-1/0,c.bottom)}})),n.width=n.right-n.left,n.height=n.bottom-n.top,n.x=n.left,n.y=n.top,n}var Q="Sortable"+(new Date).getTime();var tt=[],et={initializeByDefault:!0},ot={mount:function(t){for(var e in et)et.hasOwnProperty(e)&&!(e in t)&&(t[e]=et[e]);tt.forEach((function(e){if(e.pluginName===t.pluginName)throw"Sortable: Cannot mount plugin ".concat(t.pluginName," more than once")})),tt.push(t)},pluginEvent:function(t,e,o){var n=this;this.eventCanceled=!1,o.cancel=function(){n.eventCanceled=!0};var i=t+"Global";tt.forEach((function(n){e[n.pluginName]&&(e[n.pluginName][i]&&e[n.pluginName][i](v({sortable:e},o)),e.options[n.pluginName]&&e[n.pluginName][t]&&e[n.pluginName][t](v({sortable:e},o)))}))},initializePlugins:function(t,e,o,n){for(var i in tt.forEach((function(n){var i=n.pluginName;if(t.options[i]||n.initializeByDefault){var r=new n(t,e,t.options);r.sortable=t,r.options=t.options,t[i]=r,w(o,r.defaults)}})),t.options)if(t.options.hasOwnProperty(i)){var r=this.modifyOption(t,i,t.options[i]);void 0!==r&&(t.options[i]=r)}},getEventProperties:function(t,e){var o={};return tt.forEach((function(n){"function"==typeof n.eventProperties&&w(o,n.eventProperties.call(e[n.pluginName],t))})),o},modifyOption:function(t,e,o){var n;return tt.forEach((function(i){t[i.pluginName]&&i.optionListeners&&"function"==typeof i.optionListeners[e]&&(n=i.optionListeners[e].call(t[i.pluginName],o))})),n}};var nt=["evt"],it=function(t,e){var o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=o.evt,i=function(t,e){if(null==t)return{};var o,n,i=function(t,e){if(null==t)return{};var o,n,i={},r=Object.keys(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||(i[o]=t[o]);return i}(t,e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);for(n=0;n<r.length;n++)o=r[n],e.indexOf(o)>=0||Object.prototype.propertyIsEnumerable.call(t,o)&&(i[o]=t[o])}return i}(o,nt);ot.pluginEvent.bind(Zt)(t,e,v({dragEl:at,parentEl:lt,ghostEl:st,rootEl:ct,nextEl:ut,lastDownEl:dt,cloneEl:pt,cloneHidden:ht,dragStarted:Dt,putSortable:yt,activeSortable:Zt.active,originalEvent:n,oldIndex:gt,oldDraggableIndex:mt,newIndex:ft,newDraggableIndex:vt,hideGhostForTarget:zt,unhideGhostForTarget:Gt,cloneNowHidden:function(){ht=!0},cloneNowShown:function(){ht=!1},dispatchSortableEvent:function(t){rt({sortable:e,name:t,originalEvent:n})}},i))};function rt(t){!function(t){var e=t.sortable,o=t.rootEl,n=t.name,i=t.targetEl,r=t.cloneEl,a=t.toEl,l=t.fromEl,s=t.oldIndex,c=t.newIndex,u=t.oldDraggableIndex,d=t.newDraggableIndex,p=t.originalEvent,h=t.putSortable,g=t.extraEventProperties;if(e=e||o&&o[Q]){var f,m=e.options,b="on"+n.charAt(0).toUpperCase()+n.substr(1);!window.CustomEvent||k||T?(f=document.createEvent("Event")).initEvent(n,!0,!0):f=new CustomEvent(n,{bubbles:!0,cancelable:!0}),f.to=a||o,f.from=l||o,f.item=i||o,f.clone=r,f.oldIndex=s,f.newIndex=c,f.oldDraggableIndex=u,f.newDraggableIndex=d,f.originalEvent=p,f.pullMode=h?h.lastPutMode:void 0;var y=v(v({},g),ot.getEventProperties(n,e));for(var w in y)f[w]=y[w];o&&o.dispatchEvent(f),m[b]&&m[b].call(e,f)}}(v({putSortable:yt,cloneEl:pt,targetEl:at,rootEl:ct,oldIndex:gt,oldDraggableIndex:mt,newIndex:ft,newDraggableIndex:vt},t))}var at,lt,st,ct,ut,dt,pt,ht,gt,ft,mt,vt,bt,yt,wt,St,kt,Tt,Et,xt,Dt,jt,_t,Ct,Ot,At=!1,Mt=!1,Nt=[],Pt=!1,It=!1,Lt=[],Rt=!1,Ft=[],Bt="undefined"!=typeof document,Xt=D,Yt=T||k?"cssFloat":"float",Wt=Bt&&!j&&!D&&"draggable"in document.createElement("div"),Ht=function(){if(Bt){if(k)return!1;var t=document.createElement("x");return t.style.cssText="pointer-events:auto","auto"===t.style.pointerEvents}}(),Ut=function(t,e){var o=R(t),n=parseInt(o.width)-parseInt(o.paddingLeft)-parseInt(o.paddingRight)-parseInt(o.borderLeftWidth)-parseInt(o.borderRightWidth),i=H(t,0,e),r=H(t,1,e),a=i&&R(i),l=r&&R(r),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+Y(i).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+Y(r).width;if("flex"===o.display)return"column"===o.flexDirection||"column-reverse"===o.flexDirection?"vertical":"horizontal";if("grid"===o.display)return o.gridTemplateColumns.split(" ").length<=1?"vertical":"horizontal";if(i&&a.float&&"none"!==a.float){var u="left"===a.float?"left":"right";return!r||"both"!==l.clear&&l.clear!==u?"horizontal":"vertical"}return i&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=n&&"none"===o[Yt]||r&&"none"===o[Yt]&&s+c>n)?"vertical":"horizontal"},$t=function(t){function e(t,o){return function(n,i,r,a){var l=n.options.group.name&&i.options.group.name&&n.options.group.name===i.options.group.name;if(null==t&&(o||l))return!0;if(null==t||!1===t)return!1;if(o&&"clone"===t)return t;if("function"==typeof t)return e(t(n,i,r,a),o)(n,i,r,a);var s=(o?n:i).options.group.name;return!0===t||"string"==typeof t&&t===s||t.join&&t.indexOf(s)>-1}}var o={},n=t.group;n&&"object"==b(n)||(n={name:n}),o.name=n.name,o.checkPull=e(n.pull,!0),o.checkPut=e(n.put),o.revertClone=n.revertClone,t.group=o},zt=function(){!Ht&&st&&R(st,"display","none")},Gt=function(){!Ht&&st&&R(st,"display","")};Bt&&!j&&document.addEventListener("click",(function(t){if(Mt)return t.preventDefault(),t.stopPropagation&&t.stopPropagation(),t.stopImmediatePropagation&&t.stopImmediatePropagation(),Mt=!1,!1}),!0);var Vt=function(t){if(at){t=t.touches?t.touches[0]:t;var e=(i=t.clientX,r=t.clientY,Nt.some((function(t){var e=t[Q].options.emptyInsertThreshold;if(e&&!U(t)){var o=Y(t),n=i>=o.left-e&&i<=o.right+e,l=r>=o.top-e&&r<=o.bottom+e;return n&&l?a=t:void 0}})),a);if(e){var o={};for(var n in t)t.hasOwnProperty(n)&&(o[n]=t[n]);o.target=o.rootEl=e,o.preventDefault=void 0,o.stopPropagation=void 0,e[Q]._onDragOver(o)}}var i,r,a},qt=function(t){at&&at.parentNode[Q]._isOutsideThisEl(t.target)};function Zt(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=w({},e),t[Q]=this;var o,n,i={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 Ut(t,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(t,e){t.setData("Text",e.textContent)},dropBubble:!1,dragoverBubble:!1,dataIdAttr:"data-id",delay:0,delayOnTouchOnly:!1,touchStartThreshold:(Number.parseInt?Number:window).parseInt(window.devicePixelRatio,10)||1,forceFallback:!1,fallbackClass:"sortable-fallback",fallbackOnBody:!1,fallbackTolerance:0,fallbackOffset:{x:0,y:0},supportPointer:!1!==Zt.supportPointer&&"PointerEvent"in window&&!x,emptyInsertThreshold:5};for(var r in ot.initializePlugins(this,t,i),i)!(r in e)&&(e[r]=i[r]);for(var a in $t(e),this)"_"===a.charAt(0)&&"function"==typeof this[a]&&(this[a]=this[a].bind(this));this.nativeDraggable=!e.forceFallback&&Wt,this.nativeDraggable&&(this.options.touchStartThreshold=1),e.supportPointer?C(t,"pointerdown",this._onTapStart):(C(t,"mousedown",this._onTapStart),C(t,"touchstart",this._onTapStart)),this.nativeDraggable&&(C(t,"dragover",this),C(t,"dragenter",this)),Nt.push(this.el),e.store&&e.store.get&&this.sort(e.store.get(this)||[]),w(this,(n=[],{captureAnimationState:function(){n=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(t){if("none"!==R(t,"display")&&t!==Zt.ghost){n.push({target:t,rect:Y(t)});var e=v({},n[n.length-1].rect);if(t.thisAnimationDuration){var o=F(t,!0);o&&(e.top-=o.f,e.left-=o.e)}t.fromRect=e}}))},addAnimationState:function(t){n.push(t)},removeAnimationState:function(t){n.splice(function(t,e){for(var o in t)if(t.hasOwnProperty(o))for(var n in e)if(e.hasOwnProperty(n)&&e[n]===t[o][n])return Number(o);return-1}(n,{target:t}),1)},animateAll:function(t){var e=this;if(!this.options.animation)return clearTimeout(o),void("function"==typeof t&&t());var i=!1,r=0;n.forEach((function(t){var o=0,n=t.target,a=n.fromRect,l=Y(n),s=n.prevFromRect,c=n.prevToRect,u=t.rect,d=F(n,!0);d&&(l.top-=d.f,l.left-=d.e),n.toRect=l,n.thisAnimationDuration&&V(s,l)&&!V(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(o=function(t,e,o,n){return Math.sqrt(Math.pow(e.top-t.top,2)+Math.pow(e.left-t.left,2))/Math.sqrt(Math.pow(e.top-o.top,2)+Math.pow(e.left-o.left,2))*n.animation}(u,s,c,e.options)),V(l,a)||(n.prevFromRect=a,n.prevToRect=l,o||(o=e.options.animation),e.animate(n,u,l,o)),o&&(i=!0,r=Math.max(r,o),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),o),n.thisAnimationDuration=o)})),clearTimeout(o),i?o=setTimeout((function(){"function"==typeof t&&t()}),r):"function"==typeof t&&t(),n=[]},animate:function(t,e,o,n){if(n){R(t,"transition",""),R(t,"transform","");var i=F(this.el),r=i&&i.a,a=i&&i.d,l=(e.left-o.left)/(r||1),s=(e.top-o.top)/(a||1);t.animatingX=!!l,t.animatingY=!!s,R(t,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=function(t){return t.offsetWidth}(t),R(t,"transition","transform "+n+"ms"+(this.options.easing?" "+this.options.easing:"")),R(t,"transform","translate3d(0,0,0)"),"number"==typeof t.animated&&clearTimeout(t.animated),t.animated=setTimeout((function(){R(t,"transition",""),R(t,"transform",""),t.animated=!1,t.animatingX=!1,t.animatingY=!1}),n)}}}))}function Jt(t,e,o,n,i,r,a,l){var s,c,u=t[Q],d=u.options.onMove;return!window.CustomEvent||k||T?(s=document.createEvent("Event")).initEvent("move",!0,!0):s=new CustomEvent("move",{bubbles:!0,cancelable:!0}),s.to=e,s.from=t,s.dragged=o,s.draggedRect=n,s.related=i||e,s.relatedRect=r||Y(e),s.willInsertAfter=l,s.originalEvent=a,t.dispatchEvent(s),d&&(c=d.call(u,s,a)),c}function Kt(t){t.draggable=!1}function Qt(){Rt=!1}function te(t){for(var e=t.tagName+t.className+t.src+t.href+t.textContent,o=e.length,n=0;o--;)n+=e.charCodeAt(o);return n.toString(36)}function ee(t){return setTimeout(t,0)}function oe(t){return clearTimeout(t)}Zt.prototype={constructor:Zt,_isOutsideThisEl:function(t){this.el.contains(t)||t===this.el||(jt=null)},_getDirection:function(t,e){return"function"==typeof this.options.direction?this.options.direction.call(this,t,e,at):this.options.direction},_onTapStart:function(t){if(t.cancelable){var e=this,o=this.el,n=this.options,i=n.preventOnFilter,r=t.type,a=t.touches&&t.touches[0]||t.pointerType&&"touch"===t.pointerType&&t,l=(a||t).target,s=t.target.shadowRoot&&(t.path&&t.path[0]||t.composedPath&&t.composedPath()[0])||l,c=n.filter;if(function(t){Ft.length=0;for(var e=t.getElementsByTagName("input"),o=e.length;o--;){var n=e[o];n.checked&&Ft.push(n)}}(o),!at&&!(/mousedown|pointerdown/.test(r)&&0!==t.button||n.disabled)&&!s.isContentEditable&&(this.nativeDraggable||!x||!l||"SELECT"!==l.tagName.toUpperCase())&&!((l=N(l,n.draggable,o,!1))&&l.animated||dt===l)){if(gt=$(l),mt=$(l,n.draggable),"function"==typeof c){if(c.call(this,t,l,this))return rt({sortable:e,rootEl:s,name:"filter",targetEl:l,toEl:o,fromEl:o}),it("filter",e,{evt:t}),void(i&&t.cancelable&&t.preventDefault())}else if(c&&(c=c.split(",").some((function(n){if(n=N(s,n.trim(),o,!1))return rt({sortable:e,rootEl:n,name:"filter",targetEl:l,fromEl:o,toEl:o}),it("filter",e,{evt:t}),!0}))))return void(i&&t.cancelable&&t.preventDefault());n.handle&&!N(s,n.handle,o,!1)||this._prepareDragStart(t,a,l)}}},_prepareDragStart:function(t,e,o){var n,i=this,r=i.el,a=i.options,l=r.ownerDocument;if(o&&!at&&o.parentNode===r){var s=Y(o);if(ct=r,lt=(at=o).parentNode,ut=at.nextSibling,dt=o,bt=a.group,Zt.dragged=at,wt={target:at,clientX:(e||t).clientX,clientY:(e||t).clientY},Et=wt.clientX-s.left,xt=wt.clientY-s.top,this._lastX=(e||t).clientX,this._lastY=(e||t).clientY,at.style["will-change"]="all",n=function(){it("delayEnded",i,{evt:t}),Zt.eventCanceled?i._onDrop():(i._disableDelayedDragEvents(),!E&&i.nativeDraggable&&(at.draggable=!0),i._triggerDragStart(t,e),rt({sortable:i,name:"choose",originalEvent:t}),L(at,a.chosenClass,!0))},a.ignore.split(",").forEach((function(t){B(at,t.trim(),Kt)})),C(l,"dragover",Vt),C(l,"mousemove",Vt),C(l,"touchmove",Vt),C(l,"mouseup",i._onDrop),C(l,"touchend",i._onDrop),C(l,"touchcancel",i._onDrop),E&&this.nativeDraggable&&(this.options.touchStartThreshold=4,at.draggable=!0),it("delayStart",this,{evt:t}),!a.delay||a.delayOnTouchOnly&&!e||this.nativeDraggable&&(T||k))n();else{if(Zt.eventCanceled)return void this._onDrop();C(l,"mouseup",i._disableDelayedDrag),C(l,"touchend",i._disableDelayedDrag),C(l,"touchcancel",i._disableDelayedDrag),C(l,"mousemove",i._delayedDragTouchMoveHandler),C(l,"touchmove",i._delayedDragTouchMoveHandler),a.supportPointer&&C(l,"pointermove",i._delayedDragTouchMoveHandler),i._dragStartTimer=setTimeout(n,a.delay)}}},_delayedDragTouchMoveHandler:function(t){var e=t.touches?t.touches[0]:t;Math.max(Math.abs(e.clientX-this._lastX),Math.abs(e.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){at&&Kt(at),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._disableDelayedDrag),O(t,"touchend",this._disableDelayedDrag),O(t,"touchcancel",this._disableDelayedDrag),O(t,"mousemove",this._delayedDragTouchMoveHandler),O(t,"touchmove",this._delayedDragTouchMoveHandler),O(t,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(t,e){e=e||"touch"==t.pointerType&&t,!this.nativeDraggable||e?this.options.supportPointer?C(document,"pointermove",this._onTouchMove):C(document,e?"touchmove":"mousemove",this._onTouchMove):(C(at,"dragend",this),C(ct,"dragstart",this._onDragStart));try{document.selection?ee((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(t){}},_dragStarted:function(t,e){if(At=!1,ct&&at){it("dragStarted",this,{evt:e}),this.nativeDraggable&&C(document,"dragover",qt);var o=this.options;!t&&L(at,o.dragClass,!1),L(at,o.ghostClass,!0),Zt.active=this,t&&this._appendGhost(),rt({sortable:this,name:"start",originalEvent:e})}else this._nulling()},_emulateDragOver:function(){if(St){this._lastX=St.clientX,this._lastY=St.clientY,zt();for(var t=document.elementFromPoint(St.clientX,St.clientY),e=t;t&&t.shadowRoot&&(t=t.shadowRoot.elementFromPoint(St.clientX,St.clientY))!==e;)e=t;if(at.parentNode[Q]._isOutsideThisEl(t),e)do{if(e[Q]&&e[Q]._onDragOver({clientX:St.clientX,clientY:St.clientY,target:t,rootEl:e})&&!this.options.dragoverBubble)break;t=e}while(e=e.parentNode);Gt()}},_onTouchMove:function(t){if(wt){var e=this.options,o=e.fallbackTolerance,n=e.fallbackOffset,i=t.touches?t.touches[0]:t,r=st&&F(st,!0),a=st&&r&&r.a,l=st&&r&&r.d,s=Xt&&Ot&&z(Ot),c=(i.clientX-wt.clientX+n.x)/(a||1)+(s?s[0]-Lt[0]:0)/(a||1),u=(i.clientY-wt.clientY+n.y)/(l||1)+(s?s[1]-Lt[1]:0)/(l||1);if(!Zt.active&&!At){if(o&&Math.max(Math.abs(i.clientX-this._lastX),Math.abs(i.clientY-this._lastY))<o)return;this._onDragStart(t,!0)}if(st){r?(r.e+=c-(kt||0),r.f+=u-(Tt||0)):r={a:1,b:0,c:0,d:1,e:c,f:u};var d="matrix(".concat(r.a,",").concat(r.b,",").concat(r.c,",").concat(r.d,",").concat(r.e,",").concat(r.f,")");R(st,"webkitTransform",d),R(st,"mozTransform",d),R(st,"msTransform",d),R(st,"transform",d),kt=c,Tt=u,St=i}t.cancelable&&t.preventDefault()}},_appendGhost:function(){if(!st){var t=this.options.fallbackOnBody?document.body:ct,e=Y(at,!0,Xt,!0,t),o=this.options;if(Xt){for(Ot=t;"static"===R(Ot,"position")&&"none"===R(Ot,"transform")&&Ot!==document;)Ot=Ot.parentNode;Ot!==document.body&&Ot!==document.documentElement?(Ot===document&&(Ot=X()),e.top+=Ot.scrollTop,e.left+=Ot.scrollLeft):Ot=X(),Lt=z(Ot)}L(st=at.cloneNode(!0),o.ghostClass,!1),L(st,o.fallbackClass,!0),L(st,o.dragClass,!0),R(st,"transition",""),R(st,"transform",""),R(st,"box-sizing","border-box"),R(st,"margin",0),R(st,"top",e.top),R(st,"left",e.left),R(st,"width",e.width),R(st,"height",e.height),R(st,"opacity","0.8"),R(st,"position",Xt?"absolute":"fixed"),R(st,"zIndex","100000"),R(st,"pointerEvents","none"),Zt.ghost=st,t.appendChild(st),R(st,"transform-origin",Et/parseInt(st.style.width)*100+"% "+xt/parseInt(st.style.height)*100+"%")}},_onDragStart:function(t,e){var o=this,n=t.dataTransfer,i=o.options;it("dragStart",this,{evt:t}),Zt.eventCanceled?this._onDrop():(it("setupClone",this),Zt.eventCanceled||((pt=J(at)).removeAttribute("id"),pt.draggable=!1,pt.style["will-change"]="",this._hideClone(),L(pt,this.options.chosenClass,!1),Zt.clone=pt),o.cloneId=ee((function(){it("clone",o),Zt.eventCanceled||(o.options.removeCloneOnHide||ct.insertBefore(pt,at),o._hideClone(),rt({sortable:o,name:"clone"}))})),!e&&L(at,i.dragClass,!0),e?(Mt=!0,o._loopId=setInterval(o._emulateDragOver,50)):(O(document,"mouseup",o._onDrop),O(document,"touchend",o._onDrop),O(document,"touchcancel",o._onDrop),n&&(n.effectAllowed="move",i.setData&&i.setData.call(o,n,at)),C(document,"drop",o),R(at,"transform","translateZ(0)")),At=!0,o._dragStartId=ee(o._dragStarted.bind(o,e,t)),C(document,"selectstart",o),Dt=!0,x&&R(document.body,"user-select","none"))},_onDragOver:function(t){var e,o,n,i,r=this.el,a=t.target,l=this.options,s=l.group,c=Zt.active,u=bt===s,d=l.sort,p=yt||c,h=this,g=!1;if(!Rt){if(void 0!==t.preventDefault&&t.cancelable&&t.preventDefault(),a=N(a,l.draggable,r,!0),O("dragOver"),Zt.eventCanceled)return g;if(at.contains(t.target)||a.animated&&a.animatingX&&a.animatingY||h._ignoreWhileAnimating===a)return M(!1);if(Mt=!1,c&&!l.disabled&&(u?d||(n=lt!==ct):yt===this||(this.lastPutMode=bt.checkPull(this,c,at,t))&&s.checkPut(this,c,at,t))){if(i="vertical"===this._getDirection(t,a),e=Y(at),O("dragOverValid"),Zt.eventCanceled)return g;if(n)return lt=ct,A(),this._hideClone(),O("revert"),Zt.eventCanceled||(ut?ct.insertBefore(at,ut):ct.appendChild(at)),M(!0);var f=U(r,l.draggable);if(!f||function(t,e,o){var n=Y(U(o.el,o.options.draggable)),i=K(o.el,o.options,st);return e?t.clientX>i.right+10||t.clientY>n.bottom&&t.clientX>n.left:t.clientY>i.bottom+10||t.clientX>n.right&&t.clientY>n.top}(t,i,this)&&!f.animated){if(f===at)return M(!1);if(f&&r===t.target&&(a=f),a&&(o=Y(a)),!1!==Jt(ct,r,at,e,a,o,t,!!a))return A(),f&&f.nextSibling?r.insertBefore(at,f.nextSibling):r.appendChild(at),lt=r,P(),M(!0)}else if(f&&function(t,e,o){var n=Y(H(o.el,0,o.options,!0)),i=K(o.el,o.options,st);return e?t.clientX<i.left-10||t.clientY<n.top&&t.clientX<n.right:t.clientY<i.top-10||t.clientY<n.bottom&&t.clientX<n.left}(t,i,this)){var m=H(r,0,l,!0);if(m===at)return M(!1);if(o=Y(a=m),!1!==Jt(ct,r,at,e,a,o,t,!1))return A(),r.insertBefore(at,m),lt=r,P(),M(!0)}else if(a.parentNode===r){o=Y(a);var b,y,w,S=at.parentNode!==r,k=!function(t,e,o){var n=o?t.left:t.top,i=o?t.right:t.bottom,r=o?t.width:t.height,a=o?e.left:e.top,l=o?e.right:e.bottom,s=o?e.width:e.height;return n===a||i===l||n+r/2===a+s/2}(at.animated&&at.toRect||e,a.animated&&a.toRect||o,i),T=i?"top":"left",E=W(a,"top","top")||W(at,"top","top"),x=E?E.scrollTop:void 0;if(jt!==a&&(y=o[T],Pt=!1,It=!k&&l.invertSwap||S),b=function(t,e,o,n,i,r,a,l){var s=n?t.clientY:t.clientX,c=n?o.height:o.width,u=n?o.top:o.left,d=n?o.bottom:o.right,p=!1;if(!a)if(l&&Ct<c*i){if(!Pt&&(1===_t?s>u+c*r/2:s<d-c*r/2)&&(Pt=!0),Pt)p=!0;else if(1===_t?s<u+Ct:s>d-Ct)return-_t}else if(s>u+c*(1-i)/2&&s<d-c*(1-i)/2)return function(t){return $(at)<$(t)?1:-1}(e);return(p=p||a)&&(s<u+c*r/2||s>d-c*r/2)?s>u+c/2?1:-1:0}(t,a,o,i,k?1:l.swapThreshold,null==l.invertedSwapThreshold?l.swapThreshold:l.invertedSwapThreshold,It,jt===a),0!==b){var D=$(at);do{D-=b,w=lt.children[D]}while(w&&("none"===R(w,"display")||w===st))}if(0===b||w===a)return M(!1);jt=a,_t=b;var j=a.nextElementSibling,_=!1,C=Jt(ct,r,at,e,a,o,t,_=1===b);if(!1!==C)return 1!==C&&-1!==C||(_=1===C),Rt=!0,setTimeout(Qt,30),A(),_&&!j?r.appendChild(at):a.parentNode.insertBefore(at,_?j:a),E&&Z(E,0,x-E.scrollTop),lt=at.parentNode,void 0===y||It||(Ct=Math.abs(y-Y(a)[T])),P(),M(!0)}if(r.contains(at))return M(!1)}return!1}function O(l,s){it(l,h,v({evt:t,isOwner:u,axis:i?"vertical":"horizontal",revert:n,dragRect:e,targetRect:o,canSort:d,fromSortable:p,target:a,completed:M,onMove:function(o,n){return Jt(ct,r,at,e,o,Y(o),t,n)},changed:P},s))}function A(){O("dragOverAnimationCapture"),h.captureAnimationState(),h!==p&&p.captureAnimationState()}function M(e){return O("dragOverCompleted",{insertion:e}),e&&(u?c._hideClone():c._showClone(h),h!==p&&(L(at,yt?yt.options.ghostClass:c.options.ghostClass,!1),L(at,l.ghostClass,!0)),yt!==h&&h!==Zt.active?yt=h:h===Zt.active&&yt&&(yt=null),p===h&&(h._ignoreWhileAnimating=a),h.animateAll((function(){O("dragOverAnimationComplete"),h._ignoreWhileAnimating=null})),h!==p&&(p.animateAll(),p._ignoreWhileAnimating=null)),(a===at&&!at.animated||a===r&&!a.animated)&&(jt=null),l.dragoverBubble||t.rootEl||a===document||(at.parentNode[Q]._isOutsideThisEl(t.target),!e&&Vt(t)),!l.dragoverBubble&&t.stopPropagation&&t.stopPropagation(),g=!0}function P(){ft=$(at),vt=$(at,l.draggable),rt({sortable:h,name:"change",toEl:r,newIndex:ft,newDraggableIndex:vt,originalEvent:t})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){O(document,"mousemove",this._onTouchMove),O(document,"touchmove",this._onTouchMove),O(document,"pointermove",this._onTouchMove),O(document,"dragover",Vt),O(document,"mousemove",Vt),O(document,"touchmove",Vt)},_offUpEvents:function(){var t=this.el.ownerDocument;O(t,"mouseup",this._onDrop),O(t,"touchend",this._onDrop),O(t,"pointerup",this._onDrop),O(t,"touchcancel",this._onDrop),O(document,"selectstart",this)},_onDrop:function(t){var e=this.el,o=this.options;ft=$(at),vt=$(at,o.draggable),it("drop",this,{evt:t}),lt=at&&at.parentNode,ft=$(at),vt=$(at,o.draggable),Zt.eventCanceled||(At=!1,It=!1,Pt=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),oe(this.cloneId),oe(this._dragStartId),this.nativeDraggable&&(O(document,"drop",this),O(e,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),x&&R(document.body,"user-select",""),R(at,"transform",""),t&&(Dt&&(t.cancelable&&t.preventDefault(),!o.dropBubble&&t.stopPropagation()),st&&st.parentNode&&st.parentNode.removeChild(st),(ct===lt||yt&&"clone"!==yt.lastPutMode)&&pt&&pt.parentNode&&pt.parentNode.removeChild(pt),at&&(this.nativeDraggable&&O(at,"dragend",this),Kt(at),at.style["will-change"]="",Dt&&!At&&L(at,yt?yt.options.ghostClass:this.options.ghostClass,!1),L(at,this.options.chosenClass,!1),rt({sortable:this,name:"unchoose",toEl:lt,newIndex:null,newDraggableIndex:null,originalEvent:t}),ct!==lt?(ft>=0&&(rt({rootEl:lt,name:"add",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"remove",toEl:lt,originalEvent:t}),rt({rootEl:lt,name:"sort",toEl:lt,fromEl:ct,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),yt&&yt.save()):ft!==gt&&ft>=0&&(rt({sortable:this,name:"update",toEl:lt,originalEvent:t}),rt({sortable:this,name:"sort",toEl:lt,originalEvent:t})),Zt.active&&(null!=ft&&-1!==ft||(ft=gt,vt=mt),rt({sortable:this,name:"end",toEl:lt,originalEvent:t}),this.save())))),this._nulling()},_nulling:function(){it("nulling",this),ct=at=lt=st=ut=pt=dt=ht=wt=St=Dt=ft=vt=gt=mt=jt=_t=yt=bt=Zt.dragged=Zt.ghost=Zt.clone=Zt.active=null,Ft.forEach((function(t){t.checked=!0})),Ft.length=kt=Tt=0},handleEvent:function(t){switch(t.type){case"drop":case"dragend":this._onDrop(t);break;case"dragenter":case"dragover":at&&(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=[],o=this.el.children,n=0,i=o.length,r=this.options;n<i;n++)N(t=o[n],r.draggable,this.el,!1)&&e.push(t.getAttribute(r.dataIdAttr)||te(t));return e},sort:function(t,e){var o={},n=this.el;this.toArray().forEach((function(t,e){var i=n.children[e];N(i,this.options.draggable,n,!1)&&(o[t]=i)}),this),e&&this.captureAnimationState(),t.forEach((function(t){o[t]&&(n.removeChild(o[t]),n.appendChild(o[t]))})),e&&this.animateAll()},save:function(){var t=this.options.store;t&&t.set&&t.set(this)},closest:function(t,e){return N(t,e||this.options.draggable,this.el,!1)},option:function(t,e){var o=this.options;if(void 0===e)return o[t];var n=ot.modifyOption(this,t,e);o[t]=void 0!==n?n:e,"group"===t&&$t(o)},destroy:function(){it("destroy",this);var t=this.el;t[Q]=null,O(t,"mousedown",this._onTapStart),O(t,"touchstart",this._onTapStart),O(t,"pointerdown",this._onTapStart),this.nativeDraggable&&(O(t,"dragover",this),O(t,"dragenter",this)),Array.prototype.forEach.call(t.querySelectorAll("[draggable]"),(function(t){t.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Nt.splice(Nt.indexOf(this.el),1),this.el=t=null},_hideClone:function(){if(!ht){if(it("hideClone",this),Zt.eventCanceled)return;R(pt,"display","none"),this.options.removeCloneOnHide&&pt.parentNode&&pt.parentNode.removeChild(pt),ht=!0}},_showClone:function(t){if("clone"===t.lastPutMode){if(ht){if(it("showClone",this),Zt.eventCanceled)return;at.parentNode!=ct||this.options.group.revertClone?ut?ct.insertBefore(pt,ut):ct.appendChild(pt):ct.insertBefore(pt,at),this.options.group.revertClone&&this.animate(at,pt),R(pt,"display",""),ht=!1}}else this._hideClone()}},Bt&&C(document,"touchmove",(function(t){(Zt.active||At)&&t.cancelable&&t.preventDefault()})),Zt.utils={on:C,off:O,css:R,find:B,is:function(t,e){return!!N(t,e,t,!1)},extend:function(t,e){if(t&&e)for(var o in e)e.hasOwnProperty(o)&&(t[o]=e[o]);return t},throttle:q,closest:N,toggleClass:L,clone:J,index:$,nextTick:ee,cancelNextTick:oe,detectDirection:Ut,getChild:H},Zt.get=function(t){return t[Q]},Zt.mount=function(){for(var t=arguments.length,e=new Array(t),o=0;o<t;o++)e[o]=arguments[o];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&&(Zt.utils=v(v({},Zt.utils),t.utils)),ot.mount(t)}))},Zt.create=function(t,e){return new Zt(t,e)},Zt.version="1.15.2";var ne,ie,re,ae,le,se,ce=[],ue=!1;function de(){ce.forEach((function(t){clearInterval(t.pid)})),ce=[]}function pe(){clearInterval(se)}var he=q((function(t,e,o,n){if(e.scroll){var i,r=(t.touches?t.touches[0]:t).clientX,a=(t.touches?t.touches[0]:t).clientY,l=e.scrollSensitivity,s=e.scrollSpeed,c=X(),u=!1;ie!==o&&(ie=o,de(),ne=e.scroll,i=e.scrollFn,!0===ne&&(ne=G(o,!0)));var d=0,p=ne;do{var h=p,g=Y(h),f=g.top,m=g.bottom,v=g.left,b=g.right,y=g.width,w=g.height,S=void 0,k=void 0,T=h.scrollWidth,E=h.scrollHeight,x=R(h),D=h.scrollLeft,j=h.scrollTop;h===c?(S=y<T&&("auto"===x.overflowX||"scroll"===x.overflowX||"visible"===x.overflowX),k=w<E&&("auto"===x.overflowY||"scroll"===x.overflowY||"visible"===x.overflowY)):(S=y<T&&("auto"===x.overflowX||"scroll"===x.overflowX),k=w<E&&("auto"===x.overflowY||"scroll"===x.overflowY));var _=S&&(Math.abs(b-r)<=l&&D+y<T)-(Math.abs(v-r)<=l&&!!D),C=k&&(Math.abs(m-a)<=l&&j+w<E)-(Math.abs(f-a)<=l&&!!j);if(!ce[d])for(var O=0;O<=d;O++)ce[O]||(ce[O]={});ce[d].vx==_&&ce[d].vy==C&&ce[d].el===h||(ce[d].el=h,ce[d].vx=_,ce[d].vy=C,clearInterval(ce[d].pid),0==_&&0==C||(u=!0,ce[d].pid=setInterval(function(){n&&0===this.layer&&Zt.active._onTouchMove(le);var e=ce[this.layer].vy?ce[this.layer].vy*s:0,o=ce[this.layer].vx?ce[this.layer].vx*s:0;"function"==typeof i&&"continue"!==i.call(Zt.dragged.parentNode[Q],o,e,t,le,ce[this.layer].el)||Z(ce[this.layer].el,o,e)}.bind({layer:d}),24))),d++}while(e.bubbleScroll&&p!==c&&(p=G(p,!1)));ue=u}}),30),ge=function(t){var e=t.originalEvent,o=t.putSortable,n=t.dragEl,i=t.activeSortable,r=t.dispatchSortableEvent,a=t.hideGhostForTarget,l=t.unhideGhostForTarget;if(e){var s=o||i;a();var c=e.changedTouches&&e.changedTouches.length?e.changedTouches[0]:e,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(r("spill"),this.onSpill({dragEl:n,putSortable:o}))}};function fe(){}function me(){}fe.prototype={startIndex:null,dragStart:function(t){var e=t.oldDraggableIndex;this.startIndex=e},onSpill:function(t){var e=t.dragEl,o=t.putSortable;this.sortable.captureAnimationState(),o&&o.captureAnimationState();var n=H(this.sortable.el,this.startIndex,this.options);n?this.sortable.el.insertBefore(e,n):this.sortable.el.appendChild(e),this.sortable.animateAll(),o&&o.animateAll()},drop:ge},w(fe,{pluginName:"revertOnSpill"}),me.prototype={onSpill:function(t){var e=t.dragEl,o=t.putSortable||this.sortable;o.captureAnimationState(),e.parentNode&&e.parentNode.removeChild(e),o.animateAll()},drop:ge},w(me,{pluginName:"removeOnSpill"}),Zt.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?C(document,"dragover",this._handleAutoScroll):this.options.supportPointer?C(document,"pointermove",this._handleFallbackAutoScroll):e.touches?C(document,"touchmove",this._handleFallbackAutoScroll):C(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted:function(t){var e=t.originalEvent;this.options.dragOverBubble||e.rootEl||this._handleAutoScroll(e)},drop:function(){this.sortable.nativeDraggable?O(document,"dragover",this._handleAutoScroll):(O(document,"pointermove",this._handleFallbackAutoScroll),O(document,"touchmove",this._handleFallbackAutoScroll),O(document,"mousemove",this._handleFallbackAutoScroll)),pe(),de(),clearTimeout(P),P=void 0},nulling:function(){le=ie=ne=ue=se=re=ae=null,ce.length=0},_handleFallbackAutoScroll:function(t){this._handleAutoScroll(t,!0)},_handleAutoScroll:function(t,e){var o=this,n=(t.touches?t.touches[0]:t).clientX,i=(t.touches?t.touches[0]:t).clientY,r=document.elementFromPoint(n,i);if(le=t,e||this.options.forceAutoScrollFallback||T||k||x){he(t,this.options,r,e);var a=G(r,!0);!ue||se&&n===re&&i===ae||(se&&pe(),se=setInterval((function(){var r=G(document.elementFromPoint(n,i),!0);r!==a&&(a=r,de()),he(t,o.options,r,e)}),10),re=n,ae=i)}else{if(!this.options.bubbleScroll||G(r,!0)===X())return void de();he(t,this.options,G(r,!1),!1)}}},w(t,{pluginName:"scroll",initializeByDefault:!0})}),Zt.mount(me,fe);const{advancedImage:ve}=window.gutenkit.editorIcon;(0,n.registerBlockType)(l.UU,{edit:function({attributes:t,setAttributes:e,advancedControl:o,isSelected:n}){const{GkitStyle:i,GkitImage:r,GkitlightBox:l,GkitSuspense:c}=window.gutenkit.components,{useDeviceType:h,useBlockStyles:g,useDeviceList:m}=window.gutenkit.helpers,v=m(),{advancedImage:b}=window.gutenkit.editorIcon,y=!(!t.captionSource||"none"===t.captionSource),w=!(!t.linkType||"none"===t.linkType),S=!(!t.openLightbox||"no"===t.openLightbox)&&t.linkType&&"file"===t.linkType||t.linkType&&"custom"===t.linkType,{isEditorMode:k}=(0,p.useSelect)((t=>{let e=t("core/edit-post")?.getEditorMode(),o=t("core/edit-site")?.getEditorMode();return{isEditorMode:"visual"===e?e:o}}),[]),T=()=>{let e="";if(t.captionSource)switch(t.captionSource){case"attachment":e=t.image.id?t.image.caption:"";break;case"custom":e=t.customCaption?t.customCaption:""}return e},E=()=>{let e="";if(t.linkType)switch(t.linkType){case"file":e=t.image.id?t.image.url:"";break;case"custom":e=t.customURL?t.customURL.url:""}return e},x=(0,s.jsx)(r,{image:t.image,className:"gkit-image"}),D=(0,s.jsx)("figcaption",{className:"gkit-image-caption wp-caption-text",children:T()}),j=(0,s.jsxs)("a",{...(()=>{const e=E().match(/\.(jpeg|jpg|gif|png|webp)$/),o={};t?.customURL?.customAttributes&&t?.customURL?.customAttributes.length>0&&t?.customURL?.customAttributes.forEach((t=>{const[e,n]=t.split("|");o[e]=n}));const n={href:E(),target:!1===t.customURL.newTab?"_self":"_blank",rel:!1===t.customURL?.noFollow?"noopener noreferrer":"nofollow",...o,onClick:t=>t.preventDefault(),className:"gutenkit-image-block","data-title":null===e?"":S?t.image.title:"","data-caption":null===e?"":S?T():"","data-fancybox":null===e?"":S?"gallery":""};return Object.keys(n).forEach((t=>{null!==n[t]&&void 0!==n[t]&&""!==n[t]||delete n[t]})),n})(),"aria-label":"gkit-image",children:[x,y&&D]}),_=h(),C=(0,a.useBlockProps)();return g(t,e,"blocksCSS",((t,e)=>{const{parseCSS:o,getBoxShadowValue:n,getBoxValue:i,getBorderValue:r,getTypographyValue:a,getSliderValue:l,getCSSFilters:s,getColor:c,overlayGenerator:u}=window.gutenkit.helpers,d=t.blockClass,p=void 0!==t?.zoom;return o([[{selector:`.${d}`,...p?{overflow:"hidden"}:{}},{selector:`.${d} .gkit-image`,opacity:l(t?.opacity),filter:s(t?.cssFilters),...r(t?.imageBorder),...i(t.borderRadius,"border-radius"),"box-shadow":n(t?.boxShadow),"transition-duration":l(t?.transitionDuration)+"s",...p?{transform:`scale(${l(t?.zoom)})`}:{}},{selector:`.${d} .gkit-image:hover`,opacity:l(t?.hoverOpacity),filter:s(t?.cssFiltersHover),...r(t?.imageBorderHover),...i(t.borderRadiusHover,"border-radius"),"box-shadow":n(t?.boxShadowHover),...p?{transform:`scale(${l(t?.hoverZoom)})`}:{}},{selector:`.${d} .gkit-image-caption`,color:c(t?.captionColor),"background-color":c(t.captionBackground),...a(t.captionTypography,"Desktop"),"text-shadow":n(t?.captionShadow)},{selector:`.${d} > .gkit-container-overlay::before,.${d} > .gkit-container-overlay::after`,"--gutenkit-bg-transition-duration":`${t?.containerOverlayHoverTransitionDuration?.size}s`,transition:"all var(--gutenkit-bg-transition-duration, var(--gutenkit-preset-global-transition_duration, '0.4s')) var(--gutenkit-preset-global-transition_timing_function, ease-in-out)",...i(t.borderRadius,"border-radius")}],e=>[{selector:`.${d}`,"text-align":t[`imageAlignment${e}`]},{selector:`.${d} .gkit-image`,width:l(t[`width${e}`]),"max-width":l(t[`maxWidth${e}`]),height:l(t[`height${e}`]),"object-fit":t[`objectFit${e}`],"object-position":t[`objectPosition${e}`]},{selector:`.${d} .gkit-image-caption`,"text-align":t[`captionAlignment${e}`],...a(t.captionTypography,e),"margin-top":l(t[`captionSpacing${e}`])},{selector:`.${d} > .gkit-container-overlay::before`,...t.image?.url?u(t.containerBackgroundOverlay,e):{}},{selector:`.${d}:hover > .gkit-container-overlay::after`,...t.image?.url?u(t.containerBackgroundHoverOverlay,e):{}}]],e)})(t,v)),(0,s.jsxs)(s.Fragment,{children:[t?.image?.id&&(0,s.jsx)(a.BlockControls,{group:"other",children:(0,s.jsx)(a.MediaReplaceFlow,{mediaId:t?.image?.id,mediaURL:t?.image?.url,allowedTypes:["image"],accept:"image/*",onSelect:t=>e({image:{...t,selectedImageSize:"full",selectedImage:t.url,isToolbarFromUpload:!0}}),children:(0,s.jsx)(u.MenuItem,{onClick:()=>{e({image:{url:""}})},children:(0,d.__)("Reset","gutenkit-blocks-addon-pro")})})}),(0,s.jsx)(i,{blocksCSS:t?.blocksCSS}),n&&(0,s.jsx)(c,{children:(0,s.jsx)(f,{attributes:t,setAttributes:e,device:_,advancedControl:o})}),(0,s.jsxs)("div",{...C,children:[t?.showContainerOverlay&&(0,s.jsx)("div",{className:"gkit-container-overlay"}),t?.image?.id||t?.image?.isDynamicContent?y?(0,s.jsx)("figure",{className:"wp-caption gutenkit-image-block",children:w?S?(0,s.jsxs)(l,{children:[" ",j," "]}):j:(0,s.jsxs)(s.Fragment,{children:[x,D]})}):w?S?(0,s.jsxs)(l,{children:[" ",j," "]}):j:x:(0,s.jsx)(a.MediaPlaceholder,{onSelect:t=>e({image:{...t,selectedImageSize:"full",selectedImage:t.url,isToolbarFromUpload:!0}}),allowedTypes:["image"],multiple:!1,labels:{title:"Advanced Image"},icon:b,className:"gutenkit-image-placeholder"})]})]})},icon:{src:ve},save:function({attributes:t}){const{GkitImage:e}=window.gutenkit.components,o=!(!t.captionSource||"none"===t.captionSource),n=!(!t.linkType||"none"===t.linkType),i=!(!t.openLightbox||"no"===t.openLightbox)&&t.linkType&&"file"===t.linkType||t.linkType&&"custom"===t.linkType,l=()=>{let e="";if(t.captionSource)switch(t.captionSource){case"attachment":e=t.image.id?t.image.caption:"";break;case"custom":e=t.customCaption?t.customCaption:""}return e},c=()=>{let e="";if(t.linkType)switch(t.linkType){case"file":e=t.image.id?t.image.url:"";break;case"custom":e=t.customURL?t.customURL.url:""}return e},u=(0,s.jsx)(e,{image:t.image,className:"gkit-image"}),d=(0,s.jsx)("figcaption",{className:"gkit-image-caption wp-caption-text",children:l()}),p=(0,s.jsxs)("a",{...(()=>{let e={};const o=c().match(/\.(jpeg|jpg|gif|png|webp)$/);"file"==t?.linkType?e.href=c():"custom"==t?.linkType&&(e=Object.keys(t?.customURL).length>0?r(t?.customURL):"");const n={...e,className:"gutenkit-image-block","data-title":null===o?"":i?t.image.title:"","data-caption":null===o?"":i?l():"","data-fancybox":null===o?"":i?"gallery":""};return Object.keys(n).forEach((t=>{null!==n[t]&&void 0!==n[t]&&""!==n[t]||delete n[t]})),n})(),"aria-label":"gkit-image",children:[u,o&&d]}),h=a.useBlockProps.save();return(0,s.jsxs)("div",{...h,children:[t?.showContainerOverlay&&(0,s.jsx)("div",{className:"gkit-container-overlay"}),o?(0,s.jsx)("figure",{className:"wp-caption gutenkit-image-block",children:n?p:(0,s.jsxs)(s.Fragment,{children:[u,d]})}):n?p:u]})},deprecated:c})},790:t=>{t.exports=window.ReactJSXRuntime},6427:t=>{t.exports=window.wp.components},6087:t=>{t.exports=window.wp.element},7723:t=>{t.exports=window.wp.i18n},5573:t=>{t.exports=window.wp.primitives}},i={};function r(t){var e=i[t];if(void 0!==e)return e.exports;var o=i[t]={exports:{}};return n[t](o,o.exports,r),o.exports}r.m=n,t=[],r.O=(e,o,n,i)=>{if(!o){var a=1/0;for(u=0;u<t.length;u++){o=t[u][0],n=t[u][1],i=t[u][2];for(var l=!0,s=0;s<o.length;s++)(!1&i||a>=i)&&Object.keys(r.O).every((t=>r.O[t](o[s])))?o.splice(s--,1):(l=!1,i<a&&(a=i));if(l){t.splice(u--,1);var c=n();void 0!==c&&(e=c)}}return e}i=i||0;for(var u=t.length;u>0&&t[u-1][2]>i;u--)t[u]=t[u-1];t[u]=[o,n,i]},r.d=(t,e)=>{for(var o in e)r.o(e,o)&&!r.o(t,o)&&Object.defineProperty(t,o,{enumerable:!0,get:e[o]})},r.f={},r.e=t=>Promise.all(Object.keys(r.f).reduce(((e,o)=>(r.f[o](t,e),e)),[])),r.u=t=>t+".js",r.miniCssF=t=>{},r.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(t){if("object"==typeof window)return window}}(),r.o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e),e={},o="gutenkit-blocks-addon:",r.l=(t,n,i,a)=>{if(e[t])e[t].push(n);else{var l,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var d=c[u];if(d.getAttribute("src")==t||d.getAttribute("data-webpack")==o+i){l=d;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,r.nc&&l.setAttribute("nonce",r.nc),l.setAttribute("data-webpack",o+i),l.src=t),e[t]=[n];var p=(o,n)=>{l.onerror=l.onload=null,clearTimeout(h);var i=e[t];if(delete e[t],l.parentNode&&l.parentNode.removeChild(l),i&&i.forEach((t=>t(n))),o)return o(n)},h=setTimeout(p.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=p.bind(null,l.onerror),l.onload=p.bind(null,l.onload),s&&document.head.appendChild(l)}},r.r=t=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(t,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(t,"__esModule",{value:!0})},(()=>{var t;r.g.importScripts&&(t=r.g.location+"");var e=r.g.document;if(!t&&e&&(e.currentScript&&"SCRIPT"===e.currentScript.tagName.toUpperCase()&&(t=e.currentScript.src),!t)){var o=e.getElementsByTagName("script");if(o.length)for(var n=o.length-1;n>-1&&(!t||!/^http(s?):/.test(t));)t=o[n--].src}if(!t)throw new Error("Automatic publicPath is not supported in this browser");t=t.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),r.p=t+"../../"})(),(()=>{var t={3259:0,8979:0};r.f.j=(e,o)=>{var n=r.o(t,e)?t[e]:void 0;if(0!==n)if(n)o.push(n[2]);else if(8979!=e){var i=new Promise(((o,i)=>n=t[e]=[o,i]));o.push(n[2]=i);var a=r.p+r.u(e),l=new Error;r.l(a,(o=>{if(r.o(t,e)&&(0!==(n=t[e])&&(t[e]=void 0),n)){var i=o&&("load"===o.type?"missing":o.type),a=o&&o.target&&o.target.src;l.message="Loading chunk "+e+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,n[1](l)}}),"chunk-"+e,e)}else t[e]=0},r.O.j=e=>0===t[e];var e=(e,o)=>{var n,i,a=o[0],l=o[1],s=o[2],c=0;if(a.some((e=>0!==t[e]))){for(n in l)r.o(l,n)&&(r.m[n]=l[n]);if(s)var u=s(r)}for(e&&e(o);c<a.length;c++)i=a[c],r.o(t,i)&&t[i]&&t[i][0](),t[i]=0;return r.O(u)},o=self.webpackChunkgutenkit_blocks_addon=self.webpackChunkgutenkit_blocks_addon||[];o.forEach(e.bind(null,0)),o.push=e.bind(null,o.push.bind(o))})();var a=r.O(void 0,[8979],(()=>r(2705)));a=r.O(a)})();