var blocksyOptions;!function(){var e,t,n={454:function(e){"use strict";const t=(e,t,n)=>{const r=n<0?e.length+n:n,o=e.splice(t,1)[0];e.splice(r,0,o)},n=(e,n,r)=>(e=e.slice(),t(e,n,r),e);e.exports=n,e.exports.default=n,e.exports.mutate=t},5529:function(e,t,n){"use strict";n.d(t,{KY:function(){return c},Nj:function(){return u}});var r=function(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e},o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var n=[],r=!0,o=!1,i=void 0;try{for(var a,l=e[Symbol.iterator]();!(r=(a=l.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{!r&&l.return&&l.return()}finally{if(o)throw i}}return n}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},a=function(e){return Array.isArray(e)?e:Array.from(e)},l=function e(t,n,r){var o=(t="string"==typeof t?t.split("/"):[t]).shift();return n&&void 0!==n[o]?t.length?e(t=t.join("/"),n[o],r):n[o]:r},s=function(e){return"string"==typeof e&&(e=e.split("/")),e.length>1&&e.pop(),e},c=function(e){return e.all||e.any||(e={all:e}),e},u=function e(t,n){var c=Object.values(t)[0],u=function(e){return!(e.length>4)&&(0===e.indexOf("any")?"any":0===e.indexOf("all")&&"all")},p=Object.keys(c).map((function(t,p){var d=Object.values(c)[p];return"all"===u(t)||"any"===u(t)?e(r({},t,d),n):function(e,t,n){var c=function(e,t){var n=function(e){return l(e,arguments.length>1&&void 0!==arguments[1]?arguments[1]:t)};if(e.indexOf(":")>-1){var c=null;if(u=e.split(":"),p=function(e){var u=a(e),p=u[0],d=u.slice(1);if("visibility"===(d=d.join(":"))&&(c=n(p,o({},t,r({},s(p),l(s(p),t)[t.wp_customizer_current_view]?"yes":"no")))),"responsive"===d&&(c=n(p,o({},t,r({},s(p),l(s(p),t)[t.wp_customizer_current_view]||l(s(p),t))))),"truthy"===d&&(c=n(p)?"yes":"no"),d.indexOf("array-ids")>-1){var f=d.split(":"),m=i(f,4),h=m[0],g=m[1],v=m[2],b=m[3],y=void 0===b?"no":b,w=h.indexOf("array-ids-")>-1&&h.split("-")[2],O=n(p).filter((function(e){return e.id===g})).filter((function(e){return!w||w===l(v,e).toString()}));c=0===O.length?y:l(v,O[0])||"no"}if(d.indexOf("json:")>-1&&(c=n(p+"/"+d.split(":")[1]).toString()),"array_length"===d){var _=n(p);c=(_||[]).length.toString()}if(!c)throw new Error("Unknown matcher received. Please verify for typos. The received matcher: "+d+".")},p(u),c)return c;e=e.split(":")[0]}var u,p;var d=n(e);if(!d)return!1;if(d.desktop)return d;return d.toString()}(t,n);if(e&&e.toString()&&0===e.toString().indexOf("~")){var u=e.replace("~","");return c.desktop?c.desktop===u||c.tablet===u||c.mobile===u:c===u}if(c=c.toString(),e=e.toString(),!c)return!1;if(e.indexOf("|")>-1)return 0===e.indexOf("!")?-1===e.substring(1).split("|").map((function(e){return e.trim()})).includes(c.trim()):e.split("|").map((function(e){return e.trim()})).indexOf(c.trim())>-1;if(0===e.indexOf("!"))return c!==e.substring(1).trim();if(0===e.indexOf("*"))return c.indexOf(e.trim().substring(1).trim())>-1;return c===e.trim()}(d,t,n)}));return"all"===u(Object.keys(t)[0])?p.every((function(e){return!!e})):"any"===u(Object.keys(t)[0])?p.some((function(e){return!!e})):void 0}},3363:function(e,t,n){"use strict";n.d(t,{Z:function(){return x}});var r=n(1381),o=n(7363);function i(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var a=function(e){e.initialState,e.getInitialState,e.refs,e.getRefs,e.didMount,e.didUpdate,e.willUnmount,e.getSnapshotBeforeUpdate,e.shouldUpdate,e.render;return function(e,t){var n={};for(var r in e)t.indexOf(r)>=0||Object.prototype.hasOwnProperty.call(e,r)&&(n[r]=e[r]);return n}(e,["initialState","getInitialState","refs","getRefs","didMount","didUpdate","willUnmount","getSnapshotBeforeUpdate","shouldUpdate","render"])},l=function(e){function t(){var n,r;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);for(var o=arguments.length,a=Array(o),l=0;l<o;l++)a[l]=arguments[l];return n=r=i(this,e.call.apply(e,[this].concat(a))),s.call(r),i(r,n)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t.prototype.getArgs=function(){var e=this.state,t=this.props,n=this._setState,r=this._forceUpdate,o=this._refs;return{state:e,props:a(t),refs:o,setState:n,forceUpdate:r}},t.prototype.componentDidMount=function(){this.props.didMount&&this.props.didMount(this.getArgs())},t.prototype.shouldComponentUpdate=function(e,t){return!this.props.shouldUpdate||this.props.shouldUpdate({props:this.props,state:this.state,nextProps:a(e),nextState:t})},t.prototype.componentWillUnmount=function(){this.props.willUnmount&&this.props.willUnmount({state:this.state,props:a(this.props),refs:this._refs})},t.prototype.componentDidUpdate=function(e,t,n){this.props.didUpdate&&this.props.didUpdate(Object.assign(this.getArgs(),{prevProps:a(e),prevState:t}),n)},t.prototype.getSnapshotBeforeUpdate=function(e,t){return this.props.getSnapshotBeforeUpdate?this.props.getSnapshotBeforeUpdate(Object.assign(this.getArgs(),{prevProps:a(e),prevState:t})):null},t.prototype.render=function(){var e=this.props,t=e.children,n=e.render;return n?n(this.getArgs()):"function"==typeof t?t(this.getArgs()):t||null},t}(n.n(o)().Component);l.defaultProps={getInitialState:function(){},getRefs:function(){return{}}};var s=function(){var e=this;this.state=this.props.initialState||this.props.getInitialState(this.props),this._refs=this.props.refs||this.props.getRefs(this.getArgs()),this._setState=function(){return e.setState.apply(e,arguments)},this._forceUpdate=function(){return e.forceUpdate.apply(e,arguments)}},c=l;var u=function(e){let{children:t,container:n=document.body,type:o="reach-portal"}=e;return(0,r.createElement)(c,{getRefs:function(){return{node:null}},didMount:function(e){let{refs:t,forceUpdate:r}=e,i=n.hasOwnProperty("current")?n.current:n;t.node=document.createElement(o),i.appendChild(t.node),r()},willUnmount:function(e){let{refs:{node:t}}=e,r=n.hasOwnProperty("current")?n.current:n;r&&r.removeChild(t)},render:function(e){let{refs:{node:n}}=e;return n?(0,r.createPortal)(t,n):null}})};var p=function(e,t){return function(n){if(e&&e(n),!n.defaultPrevented)return t(n)}},d=n(3172),f=n.n(d);const m=["container","isOpen","onDismiss","initialFocusRef","onClick","onKeyDown"],h=["onClick","onKeyDown"];function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}let b=function(){},y=function(){},w=function(e,t){e.disposeAriaHider=function(e){let t=[],n=[];return Array.prototype.forEach.call(document.querySelectorAll("body > *"),(function(r){if(r===e.parentNode)return;let o=r.getAttribute("aria-hidden");null!==o&&"false"!==o||(t.push(o),n.push(r),r.setAttribute("aria-hidden","true"))})),function(){n.forEach((function(e,n){let r=t[n];null===r?e.removeAttribute("aria-hidden"):e.setAttribute("aria-hidden",r)}))}}(e.overlayNode),e.trap=f()(e.overlayNode,{initialFocus:t?function(){return t.current}:void 0,fallbackFocus:e.contentNode,escapeDeactivates:!1,clickOutsideDeactivates:!1})},O=function(e){let{refs:t}=e;t.trap.deactivate(),t.disposeAriaHider()},_=React.createContext(),E=React.forwardRef((function(e,t){let{container:n,isOpen:o=!0,onDismiss:i=b,initialFocusRef:a,onClick:l,onKeyDown:s}=e,d=v(e,m);return(0,r.createElement)(c,{didMount:y},o?(0,r.createElement)(u,{container:n,"data-reach-dialog-wrapper":!0},(0,r.createElement)(c,{refs:{overlayNode:null,contentNode:null},didMount:function(e){let{refs:t}=e;w(t,a)},willUnmount:O},(function(e){let{refs:n}=e;return(0,r.createElement)(_.Provider,{value:function(e){return n.contentNode=e}},(0,r.createElement)("div",g({"data-reach-dialog-overlay":!0,onClick:p(l,(function(e){e.stopPropagation(),i()})),onKeyDown:p(s,(function(e){"Escape"===e.key&&(e.stopPropagation(),i())})),ref:function(e){n.overlayNode=e,t&&t(e)}},d)))}))):null)}));E.propTypes={initialFocusRef:function(){}};let P=function(e){return e.stopPropagation()},S=React.forwardRef((function(e,t){let{onClick:n,onKeyDown:o}=e,i=v(e,h);return(0,r.createElement)(_.Consumer,null,(function(e){return(0,r.createElement)("div",g({"aria-modal":"true","data-reach-dialog-content":!0,tabIndex:"-1",onClick:p(n,P),ref:function(n){e(n),t&&t(n)}},i))}))}));var j=n(4823);n(5652),n(4184);const C=function(e){return!!e};var x=function(e){let{items:t,isVisible:n=C,render:o,className:i,initialFocusRef:a,onDismiss:l,onCloseButtonClick:s}=e;return(0,r.createElement)(j.uT,{items:t,onStart:function(){return document.body.classList[n(t)?"add":"remove"]("ct-dashboard-overlay-open")},config:{duration:200},from:{opacity:0,y:-10},enter:{opacity:1,y:0},leave:{opacity:0,y:10}},(function(e){return n(e)&&function(t){return(0,r.createElement)(E,{style:{opacity:t.opacity},container:document.body,onDismiss:function(){return l()},initialFocusRef:a},(0,r.createElement)(S,{className:i,style:{transform:`translate3d(0px, ${t.y}px, 0px)`}},(0,r.createElement)("button",{className:"close-button",onClick:function(){return s?s():l()}},"×"),o(e,t)))}}))}},7086:function(e,t,n){"use strict";n.d(t,{Oi:function(){return d},S0:function(){return u},T:function(){return a.T},W:function(){return p}});var r=n(1381),o=n(4184),i=n.n(o),a=n(600),l=n(8142);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const u=function(e,t){return function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({desktop:!0,tablet:!0,mobile:!0},"boolean"==typeof t?{}:t||{})[e]},p=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},{ignoreHidden:n=!1}=t;return!(!(0,l.fg)(e).hiddenResponsive||n)||!!e.responsive},d=function(e){let{value:t,option:n,device:r}=e;return"tablet"===r&&"skip"===u(r,n.responsive)?t.mobile:t[r]};t.ZP=function(e){let{device:t,setDevice:n,responsiveDescriptor:o}=e;return(0,r.createElement)("div",{className:"ct-control-options"},(0,r.createElement)("ul",{className:"ct-responsive-controls ct-devices"},["desktop","tablet","mobile"].filter((function(e){return"skip"!==u(e,o)})).map((function(e){return(0,r.createElement)("li",{onClick:function(){return n(e)},className:i()({active:e===t,"ct-disabled":!u(e,o)},`ct-${e}`),key:e})}))))}},1429:function(e,t,n){"use strict";n.d(t,{$M:function(){return a},Id:function(){return l},Or:function(){return s},jd:function(){return c}});var r=n(1381);const o=(0,r.createContext)(),i=(0,r.createContext)(),a=function(){return(0,r.useContext)(o)||{currentView:"desktop"}},l=function(){return(0,r.useContext)(i)||{}},s=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{withTablet:t=!0}=e,[n,o]=(0,r.useState)(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop"),i=function(){o(wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():"desktop")};return(0,r.useEffect)((function(){if(wp.customize)return setTimeout((function(){return wp.customize.previewedDevice.bind(i)}),1e3),function(){wp.customize&&wp.customize.previewedDevice.unbind(i)}}),[]),[t?n:"tablet"===n?"mobile":n,function(e){o(e),wp.customize&&wp.customize.previewedDevice.set(e)}]},c=function(e){let{children:t}=e;const[n,a]=s();return(0,r.createElement)(o.Provider,{value:{currentView:n}},(0,r.createElement)(i.Provider,{value:{setDevice:a}},t))}},8269:function(e,t,n){"use strict";var r=n(1381),o=n(1389),i=n.n(o);const a=["tag","options","onChange"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p={nextSibling:null,activeComponent:null};class d extends r.Component{constructor(){super(...arguments),u(this,"sortable",null)}componentDidMount(){var e=this;const t=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},this.props.options);["onChoose","onStart","onEnd","onAdd","onUpdate","onSort","onRemove","onFilter","onMove","onClone"].forEach((function(n){const r=t[n];t[n]=function(){for(var t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];const[a]=o;if("onChoose"===n)p.nextSibling=a.item.nextElementSibling,p.activeComponent=e;else if(("onAdd"===n||"onUpdate"===n)&&e.props.onChange){const t=e.sortable.toArray(),n=p.activeComponent,r=n.sortable.toArray(),o=p.nextSibling&&null!==p.nextSibling.parentNode?p.nextSibling:null;if(a.from.insertBefore(a.item,o),n!==e){const e=n.props.options||{};"object"==typeof e.group&&"clone"===e.group.pull&&[...a.item.parentNode.children].filter((function(e){return e.dataset.id===a.item.dataset.id&&e!==a.item})).map((function(e){return e.remove()})),setTimeout((function(){n.props.onChange&&n.props.onChange(r,n.sortable,a)}))}e.props.onChange&&e.props.onChange(t,e.sortable,a)}if("move"===a.type){const[e,t]=o;return!r||r(e,t)}setTimeout((function(){r&&r(a)}),0)}})),this.sortable=i().create(this.node,t)}componentWillUnmount(){this.sortable&&(this.sortable.destroy(),this.sortable=null)}render(){var e=this;const t=this.props,{tag:n,options:o,onChange:i}=t,c=s(t,a);return(0,r.createElement)(n,l({},c,{ref:function(t){return e.node=t}}))}}u(d,"defaultProps",{options:{},tag:"div",style:{}}),t.Z=d},8285:function(e,t,n){"use strict";n.d(t,{SU:function(){return r},t_:function(){return o}});const r=function(){return"~"},o=function(e){return e.split("~")[0]}},1389:function(e){const t=["evt"];function n(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function r(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function o(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?r(Object(n),!0).forEach((function(t){i(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):r(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function i(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}
/**!
 * Sortable 1.11.0
 * @author	RubaXa   <trash@rubaxa.org>
 * @author	owenm    <owen23355@gmail.com>
 * @license MIT
 */(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}e.exports=function(){"use strict";var e="1.11.0";function r(e){if("undefined"!=typeof window&&window.navigator)return!!navigator.userAgent.match(e)}const i=r(/(?:Trident.*rv[ :]?11\.|msie|iemobile|Windows Phone)/i),a=r(/Edge/i),l=r(/firefox/i),s=r(/safari/i)&&!r(/chrome/i)&&!r(/android/i),c=r(/iP(ad|od|hone)/i),u=r(/chrome/i)&&r(/android/i),p={capture:!1,passive:!1};function d(e,t,n){e.addEventListener(t,n,!i&&p)}function f(e,t,n){e.removeEventListener(t,n,!i&&p)}function m(e,t){if(t){if(">"===t[0]&&(t=t.substring(1)),e)try{if(e.matches)return e.matches(t);if(e.msMatchesSelector)return e.msMatchesSelector(t);if(e.webkitMatchesSelector)return e.webkitMatchesSelector(t)}catch(e){return!1}return!1}}function h(e){return e.host&&e!==document&&e.host.nodeType?e.host:e.parentNode}function g(e,t,n,r){if(e){n=n||document;do{if(null!=t&&(">"===t[0]?e.parentNode===n&&m(e,t):m(e,t))||r&&e===n)return e;if(e===n)break}while(e=h(e))}return null}const v=/\s+/g;function b(e,t,n){if(e&&t)if(e.classList)e.classList[n?"add":"remove"](t);else{let r=(" "+e.className+" ").replace(v," ").replace(" "+t+" "," ");e.className=(r+(n?" "+t:"")).replace(v," ")}}function y(e,t,n){let r=e&&e.style;if(r){if(void 0===n)return document.defaultView&&document.defaultView.getComputedStyle?n=document.defaultView.getComputedStyle(e,""):e.currentStyle&&(n=e.currentStyle),void 0===t?n:n[t];t in r||-1!==t.indexOf("webkit")||(t="-webkit-"+t),r[t]=n+("string"==typeof n?"":"px")}}function w(e,t){let n="";if("string"==typeof e)n=e;else do{let t=y(e,"transform");t&&"none"!==t&&(n=t+" "+n)}while(!t&&(e=e.parentNode));const r=window.DOMMatrix||window.WebKitCSSMatrix||window.CSSMatrix||window.MSCSSMatrix;return r&&new r(n)}function O(e,t,n){if(e){let r=e.getElementsByTagName(t),o=0,i=r.length;if(n)for(;o<i;o++)n(r[o],o);return r}return[]}function _(){let e=document.scrollingElement;return e||document.documentElement}function E(e,t,n,r,o){if(!e.getBoundingClientRect&&e!==window)return;let a,l,s,c,u,p,d;if(e!==window&&e!==_()?(a=e.getBoundingClientRect(),l=a.top,s=a.left,c=a.bottom,u=a.right,p=a.height,d=a.width):(l=0,s=0,c=window.innerHeight,u=window.innerWidth,p=window.innerHeight,d=window.innerWidth),(t||n)&&e!==window&&(o=o||e.parentNode,!i))do{if(o&&o.getBoundingClientRect&&("none"!==y(o,"transform")||n&&"static"!==y(o,"position"))){let e=o.getBoundingClientRect();l-=e.top+parseInt(y(o,"border-top-width")),s-=e.left+parseInt(y(o,"border-left-width")),c=l+a.height,u=s+a.width;break}}while(o=o.parentNode);if(r&&e!==window){let t=w(o||e),n=t&&t.a,r=t&&t.d;t&&(l/=r,s/=n,d/=n,p/=r,c=l+p,u=s+d)}return{top:l,left:s,bottom:c,right:u,width:d,height:p}}function P(e,t,n){let r=I(e,!0),o=E(e)[t];for(;r;){let e,t=E(r)[n];if(e="top"===n||"left"===n?o>=t:o<=t,!e)return r;if(r===_())break;r=I(r,!1)}return!1}function S(e,t,n){let r=0,o=0,i=e.children;for(;o<i.length;){if("none"!==i[o].style.display&&i[o]!==Ue.ghost&&i[o]!==Ue.dragged&&g(i[o],n.draggable,e,!1)){if(r===t)return i[o];r++}o++}return null}function j(e,t){let n=e.lastElementChild;for(;n&&(n===Ue.ghost||"none"===y(n,"display")||t&&!m(n,t));)n=n.previousElementSibling;return n||null}function C(e,t){let n=0;if(!e||!e.parentNode)return-1;for(;e=e.previousElementSibling;)"TEMPLATE"===e.nodeName.toUpperCase()||e.matches(".ct-pointer")||e===Ue.clone||t&&!m(e,t)||n++;return n}function x(e){let t=0,n=0,r=_();if(e)do{let r=w(e),o=r.a,i=r.d;t+=e.scrollLeft*o,n+=e.scrollTop*i}while(e!==r&&(e=e.parentNode));return[t,n]}function k(e,t){for(let n in e)if(e.hasOwnProperty(n))for(let r in t)if(t.hasOwnProperty(r)&&t[r]===e[n][r])return Number(n);return-1}function I(e,t){if(!e||!e.getBoundingClientRect)return _();let n=e,r=!1;do{if(n.clientWidth<n.scrollWidth||n.clientHeight<n.scrollHeight){let e=y(n);if(n.clientWidth<n.scrollWidth&&("auto"==e.overflowX||"scroll"==e.overflowX)||n.clientHeight<n.scrollHeight&&("auto"==e.overflowY||"scroll"==e.overflowY)){if(!n.getBoundingClientRect||n===document.body)return _();if(r||t)return n;r=!0}}}while(n=n.parentNode);return _()}function D(e,t){if(e&&t)for(let n in t)t.hasOwnProperty(n)&&(e[n]=t[n]);return e}function N(e,t){return Math.round(e.top)===Math.round(t.top)&&Math.round(e.left)===Math.round(t.left)&&Math.round(e.height)===Math.round(t.height)&&Math.round(e.width)===Math.round(t.width)}let T;function A(e,t){return function(){if(!T){let n=arguments,r=this;1===n.length?e.call(r,n[0]):e.apply(r,n),T=setTimeout((function(){T=void 0}),t)}}}function R(){clearTimeout(T),T=void 0}function M(e,t,n){e.scrollLeft+=t,e.scrollTop+=n}function L(e){let t=window.Polymer,n=window.jQuery||window.Zepto;return t&&t.dom?t.dom(e).cloneNode(!0):n?n(e).clone(!0)[0]:e.cloneNode(!0)}function B(e,t){y(e,"position","absolute"),y(e,"top",t.top),y(e,"left",t.left),y(e,"width",t.width),y(e,"height",t.height)}function F(e){y(e,"position",""),y(e,"top",""),y(e,"left",""),y(e,"width",""),y(e,"height","")}const z="Sortable"+(new Date).getTime();function V(){let e,t=[];return{captureAnimationState(){t=[],this.options.animation&&[].slice.call(this.el.children).forEach((function(e){if("none"===y(e,"display")||e===Ue.ghost)return;t.push({target:e,rect:E(e)});let n=o({},t[t.length-1].rect);if(e.thisAnimationDuration){let t=w(e,!0);t&&(n.top-=t.f,n.left-=t.e)}e.fromRect=n}))},addAnimationState(e){t.push(e)},removeAnimationState(e){t.splice(k(t,{target:e}),1)},animateAll(n){var r=this;if(!this.options.animation)return clearTimeout(e),void("function"==typeof n&&n());let o=!1,i=0;t.forEach((function(e){let t=0,n=e.target,a=n.fromRect,l=E(n),s=n.prevFromRect,c=n.prevToRect,u=e.rect,p=w(n,!0);p&&(l.top-=p.f,l.left-=p.e),n.toRect=l,n.thisAnimationDuration&&N(s,l)&&!N(a,l)&&(u.top-l.top)/(u.left-l.left)==(a.top-l.top)/(a.left-l.left)&&(t=H(u,s,c,r.options)),N(l,a)||(n.prevFromRect=a,n.prevToRect=l,t||(t=r.options.animation),r.animate(n,u,l,t)),t&&(o=!0,i=Math.max(i,t),clearTimeout(n.animationResetTimer),n.animationResetTimer=setTimeout((function(){n.animationTime=0,n.prevFromRect=null,n.fromRect=null,n.prevToRect=null,n.thisAnimationDuration=null}),t),n.thisAnimationDuration=t)})),clearTimeout(e),o?e=setTimeout((function(){"function"==typeof n&&n()}),i):"function"==typeof n&&n(),t=[]},animate(e,t,n,r){if(r){y(e,"transition",""),y(e,"transform","");let o=w(this.el),i=o&&o.a,a=o&&o.d,l=(t.left-n.left)/(i||1),s=(t.top-n.top)/(a||1);e.animatingX=!!l,e.animatingY=!!s,y(e,"transform","translate3d("+l+"px,"+s+"px,0)"),this.forRepaintDummy=U(e),y(e,"transition","transform "+r+"ms"+(this.options.easing?" "+this.options.easing:"")),y(e,"transform","translate3d(0,0,0)"),"number"==typeof e.animated&&clearTimeout(e.animated),e.animated=setTimeout((function(){y(e,"transition",""),y(e,"transform",""),e.animated=!1,e.animatingX=!1,e.animatingY=!1}),r)}}}}function U(e){return e.offsetWidth}function H(e,t,n,r){return Math.sqrt(Math.pow(t.top-e.top,2)+Math.pow(t.left-e.left,2))/Math.sqrt(Math.pow(t.top-n.top,2)+Math.pow(t.left-n.left,2))*r.animation}let W=[];const G={initializeByDefault:!0};var $={mount(e){for(let t in G)G.hasOwnProperty(t)&&!(t in e)&&(e[t]=G[t]);W.push(e)},pluginEvent(e,t,n){var r=this;this.eventCanceled=!1,n.cancel=function(){r.eventCanceled=!0};const i=e+"Global";W.forEach((function(r){t[r.pluginName]&&(t[r.pluginName][i]&&t[r.pluginName][i](o({sortable:t},n)),t.options[r.pluginName]&&t[r.pluginName][e]&&t[r.pluginName][e](o({sortable:t},n)))}))},initializePlugins(e,t,n,r){W.forEach((function(r){const o=r.pluginName;if(!e.options[o]&&!r.initializeByDefault)return;let i=new r(e,t,e.options);i.sortable=e,i.options=e.options,e[o]=i,Object.assign(n,i.defaults)}));for(let t in e.options){if(!e.options.hasOwnProperty(t))continue;let n=this.modifyOption(e,t,e.options[t]);void 0!==n&&(e.options[t]=n)}},getEventProperties(e,t){let n={};return W.forEach((function(r){"function"==typeof r.eventProperties&&Object.assign(n,r.eventProperties.call(t[r.pluginName],e))})),n},modifyOption(e,t,n){let r;return W.forEach((function(o){e[o.pluginName]&&o.optionListeners&&"function"==typeof o.optionListeners[t]&&(r=o.optionListeners[t].call(e[o.pluginName],n))})),r}};function q(e){let{sortable:t,rootEl:n,name:r,targetEl:l,cloneEl:s,toEl:c,fromEl:u,oldIndex:p,newIndex:d,oldDraggableIndex:f,newDraggableIndex:m,originalEvent:h,putSortable:g,extraEventProperties:v}=e;if(t=t||n&&n[z],!t)return;let b,y=t.options,w="on"+r.charAt(0).toUpperCase()+r.substr(1);!window.CustomEvent||i||a?(b=document.createEvent("Event"),b.initEvent(r,!0,!0)):b=new CustomEvent(r,{bubbles:!0,cancelable:!0}),b.to=c||n,b.from=u||n,b.item=l||n,b.clone=s,b.oldIndex=p,b.newIndex=d,b.oldDraggableIndex=f,b.newDraggableIndex=m,b.originalEvent=h,b.pullMode=g?g.lastPutMode:void 0;let O=o(o({},v),$.getEventProperties(r,t));for(let e in O)b[e]=O[e];n&&n.dispatchEvent(b),y[w]&&y[w].call(t,b)}
/**!
   * Sortable
   * @author	RubaXa   <trash@rubaxa.org>
   * @author	owenm    <owen23355@gmail.com>
   * @license MIT
   */let Z=function(e,r){let i=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},{evt:a}=i,l=n(i,t);$.pluginEvent.bind(Ue)(e,r,o({dragEl:Y,parentEl:X,ghostEl:J,rootEl:Q,nextEl:ee,lastDownEl:te,cloneEl:ne,cloneHidden:re,dragStarted:ge,putSortable:ce,activeSortable:Ue.active,originalEvent:a,oldIndex:oe,oldDraggableIndex:ae,newIndex:ie,newDraggableIndex:le,hideGhostForTarget:Be,unhideGhostForTarget:Fe,cloneNowHidden(){re=!0},cloneNowShown(){re=!1},dispatchSortableEvent(e){K({sortable:r,name:e,originalEvent:a})}},l))};function K(e){q(o({putSortable:ce,cloneEl:ne,targetEl:Y,rootEl:Q,oldIndex:oe,oldDraggableIndex:ae,newIndex:ie,newDraggableIndex:le},e))}let Y,X,J,Q,ee,te,ne,re,oe,ie,ae,le,se,ce,ue,pe,de,fe,me,he,ge,ve,be,ye,we,Oe=!1,_e=!1,Ee=[],Pe=!1,Se=!1,je=[],Ce=!1,xe=[];const ke="undefined"!=typeof document,Ie=c,De=a||i?"cssFloat":"float",Ne=ke&&!u&&!c&&"draggable"in document.createElement("div"),Te=function(){if(!ke)return;if(i)return!1;let e=document.createElement("x");return e.style.cssText="pointer-events:auto","auto"===e.style.pointerEvents}(),Ae=function(e,t){let n=y(e),r=parseInt(n.width)-parseInt(n.paddingLeft)-parseInt(n.paddingRight)-parseInt(n.borderLeftWidth)-parseInt(n.borderRightWidth),o=S(e,0,t),i=S(e,1,t),a=o&&y(o),l=i&&y(i),s=a&&parseInt(a.marginLeft)+parseInt(a.marginRight)+E(o).width,c=l&&parseInt(l.marginLeft)+parseInt(l.marginRight)+E(i).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&&a.float&&"none"!==a.float){let e="left"===a.float?"left":"right";return!i||"both"!==l.clear&&l.clear!==e?"horizontal":"vertical"}return o&&("block"===a.display||"flex"===a.display||"table"===a.display||"grid"===a.display||s>=r&&"none"===n[De]||i&&"none"===n[De]&&s+c>r)?"vertical":"horizontal"},Re=function(e,t,n){let r=n?e.left:e.top,o=n?e.right:e.bottom,i=n?e.width:e.height,a=n?t.left:t.top,l=n?t.right:t.bottom,s=n?t.width:t.height;return r===a||o===l||r+i/2===a+s/2},Me=function(e,t){let n;return Ee.some((function(r){if(j(r))return;let o=E(r),i=r[z].options.emptyInsertThreshold,a=e>=o.left-i&&e<=o.right+i,l=t>=o.top-i&&t<=o.bottom+i;return i&&a&&l?n=r:void 0})),n},Le=function(e){function t(e,n){return function(r,o,i,a){let l=r.options.group.name&&o.options.group.name&&r.options.group.name===o.options.group.name;if(null==e&&(n||l))return!0;if(null==e||!1===e)return!1;if(n&&"clone"===e)return e;if("function"==typeof e)return t(e(r,o,i,a),n)(r,o,i,a);{let t=(n?r:o).options.group.name;return!0===e||"string"==typeof e&&e===t||e.join&&e.indexOf(t)>-1}}}let n={},r=e.group;r&&"object"==typeof r||(r={name:r}),n.name=r.name,n.checkPull=t(r.pull,!0),n.checkPut=t(r.put),n.revertClone=r.revertClone,e.group=n},Be=function(){!Te&&J&&y(J,"display","none")},Fe=function(){!Te&&J&&y(J,"display","")};ke&&document.addEventListener("click",(function(e){if(_e)return e.preventDefault(),e.stopPropagation&&e.stopPropagation(),e.stopImmediatePropagation&&e.stopImmediatePropagation(),_e=!1,!1}),!0);let ze=function(e){if(Y){e=e.touches?e.touches[0]:e;let t=Me(e.clientX,e.clientY);if(t){let n={};for(let t in e)e.hasOwnProperty(t)&&(n[t]=e[t]);n.target=n.rootEl=t,n.preventDefault=void 0,n.stopPropagation=void 0,t[z]._onDragOver(n)}}},Ve=function(e){Y&&Y.parentNode[z]._isOutsideThisEl(e.target)};function Ue(e,t){if(!e||!e.nodeType||1!==e.nodeType)throw`Sortable: \`el\` must be an HTMLElement, not ${{}.toString.call(e)}`;this.el=e,this.options=t=Object.assign({},t),e[z]=this;let n={group:null,sort:!0,disabled:!1,store:null,handle:null,draggable:/^[uo]l$/i.test(e.nodeName)?">li":">*",swapThreshold:1,invertSwap:!1,invertedSwapThreshold:null,removeCloneOnHide:!0,direction:function(){return Ae(e,this.options)},ghostClass:"sortable-ghost",chosenClass:"sortable-chosen",dragClass:"sortable-drag",ignore:"a, img",filter:null,preventOnFilter:!0,animation:0,easing:null,setData:function(e,t){e.setData("Text",t.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!==Ue.supportPointer&&"PointerEvent"in window,emptyInsertThreshold:5};$.initializePlugins(this,e,n);for(let e in n)!(e in t)&&(t[e]=n[e]);Le(t);for(let e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));this.nativeDraggable=!t.forceFallback&&Ne,this.nativeDraggable&&(this.options.touchStartThreshold=1),t.supportPointer?d(e,"pointerdown",this._onTapStart):(d(e,"mousedown",this._onTapStart),d(e,"touchstart",this._onTapStart)),this.nativeDraggable&&(d(e,"dragover",this),d(e,"dragenter",this)),Ee.push(this.el),t.store&&t.store.get&&this.sort(t.store.get(this)||[]),Object.assign(this,V())}function He(e){e.dataTransfer&&(e.dataTransfer.dropEffect="move"),e.cancelable&&e.preventDefault()}function We(e,t,n,r,o,l,s,c){let u,p,d=e[z],f=d.options.onMove;return!window.CustomEvent||i||a?(u=document.createEvent("Event"),u.initEvent("move",!0,!0)):u=new CustomEvent("move",{bubbles:!0,cancelable:!0}),u.to=t,u.from=e,u.dragged=n,u.draggedRect=r,u.related=o||t,u.relatedRect=l||E(t),u.willInsertAfter=c,u.originalEvent=s,e.dispatchEvent(u),f&&(p=f.call(d,u,s)),p}function Ge(e){e.draggable=!1}function $e(){Ce=!1}function qe(e,t,n){let r=E(j(n.el,n.options.draggable));const o=10;return t?e.clientX>r.right+o||e.clientX<=r.right&&e.clientY>r.bottom&&e.clientX>=r.left:e.clientX>r.right&&e.clientY>r.top||e.clientX<=r.right&&e.clientY>r.bottom+o}function Ze(e,t,n,r,o,i,a,l){let s=r?e.clientY:e.clientX,c=r?n.height:n.width,u=r?n.top:n.left,p=r?n.bottom:n.right,d=!1;if(!a)if(l&&ye<c*o){if(!Pe&&(1===be?s>u+c*i/2:s<p-c*i/2)&&(Pe=!0),Pe)d=!0;else if(1===be?s<u+ye:s>p-ye)return-be}else if(s>u+c*(1-o)/2&&s<p-c*(1-o)/2)return Ke(t);return d=d||a,d&&(s<u+c*i/2||s>p-c*i/2)?s>u+c/2?1:-1:0}function Ke(e){return C(Y)<C(e)?1:-1}function Ye(e){let t=e.tagName+e.className+e.src+e.href+e.textContent,n=t.length,r=0;for(;n--;)r+=t.charCodeAt(n);return r.toString(36)}function Xe(e){xe.length=0;let t=e.getElementsByTagName("input"),n=t.length;for(;n--;){let e=t[n];e.checked&&xe.push(e)}}function Je(e){return setTimeout(e,0)}function Qe(e){return clearTimeout(e)}Ue.prototype={constructor:Ue,_isOutsideThisEl:function(e){this.el.contains(e)||e===this.el||(ve=null)},_getDirection:function(e,t){return"function"==typeof this.options.direction?this.options.direction.call(this,e,t,Y):this.options.direction},_onTapStart:function(e){if(!e.cancelable)return;let t=this,n=this.el,r=this.options,o=r.preventOnFilter,i=e.type,a=e.touches&&e.touches[0]||e.pointerType&&"touch"===e.pointerType&&e,l=(a||e).target,c=e.target.shadowRoot&&(e.path&&e.path[0]||e.composedPath&&e.composedPath()[0])||l,u=r.filter;if(Xe(n),!Y&&!(/mousedown|pointerdown/.test(i)&&0!==e.button||r.disabled)&&!c.isContentEditable&&(this.nativeDraggable||!s||!l||"SELECT"!==l.tagName.toUpperCase())&&(l=g(l,r.draggable,n,!1),!(l&&l.animated||te===l))){if(oe=C(l),ae=C(l,r.draggable),"function"==typeof u){if(u.call(this,e,l,this))return K({sortable:t,rootEl:c,name:"filter",targetEl:l,toEl:n,fromEl:n}),Z("filter",t,{evt:e}),void(o&&e.cancelable&&e.preventDefault())}else if(u&&(u=u.split(",").some((function(r){if(r=g(c,r.trim(),n,!1))return K({sortable:t,rootEl:r,name:"filter",targetEl:l,fromEl:n,toEl:n}),Z("filter",t,{evt:e}),!0})),u))return void(o&&e.cancelable&&e.preventDefault());r.handle&&!g(c,r.handle,n,!1)||this._prepareDragStart(e,a,l)}},_prepareDragStart:function(e,t,n){let r,o=this,s=o.el,c=o.options,u=s.ownerDocument;if(n&&!Y&&n.parentNode===s){let p=E(n);Q=s,Y=n,X=Y.parentNode,ee=Y.nextSibling,te=n,se=c.group,Ue.dragged=Y;let f=0;const m=n.getBoundingClientRect();if(m.left+95<(t||e).clientX&&(f=(t||e).clientX-m.left-47.5),ue={target:Y,clientX:(t||e).clientX-f,clientY:(t||e).clientY},me=ue.clientX-p.left,he=ue.clientY-p.top,this._lastX=(t||e).clientX-f,this._lastY=(t||e).clientY,Y.style["will-change"]="all",r=function(){Z("delayEnded",o,{evt:e}),Ue.eventCanceled?o._onDrop():(o._disableDelayedDragEvents(),!l&&o.nativeDraggable&&(Y.draggable=!0),o._triggerDragStart(e,t),K({sortable:o,name:"choose",originalEvent:e}),b(Y,c.chosenClass,!0))},c.ignore.split(",").forEach((function(e){O(Y,e.trim(),Ge)})),d(u,"dragover",ze),d(u,"mousemove",ze),d(u,"touchmove",ze),d(u,"mouseup",o._onDrop),d(u,"touchend",o._onDrop),d(u,"touchcancel",o._onDrop),l&&this.nativeDraggable&&(this.options.touchStartThreshold=4,Y.draggable=!0),Z("delayStart",this,{evt:e}),!c.delay||c.delayOnTouchOnly&&!t||this.nativeDraggable&&(a||i))r();else{if(Ue.eventCanceled)return void this._onDrop();d(u,"mouseup",o._disableDelayedDrag),d(u,"touchend",o._disableDelayedDrag),d(u,"touchcancel",o._disableDelayedDrag),d(u,"mousemove",o._delayedDragTouchMoveHandler),d(u,"touchmove",o._delayedDragTouchMoveHandler),c.supportPointer&&d(u,"pointermove",o._delayedDragTouchMoveHandler),o._dragStartTimer=setTimeout(r,c.delay)}}},_delayedDragTouchMoveHandler:function(e){let t=e.touches?e.touches[0]:e;Math.max(Math.abs(t.clientX-this._lastX),Math.abs(t.clientY-this._lastY))>=Math.floor(this.options.touchStartThreshold/(this.nativeDraggable&&window.devicePixelRatio||1))&&this._disableDelayedDrag()},_disableDelayedDrag:function(){Y&&Ge(Y),clearTimeout(this._dragStartTimer),this._disableDelayedDragEvents()},_disableDelayedDragEvents:function(){let e=this.el.ownerDocument;f(e,"mouseup",this._disableDelayedDrag),f(e,"touchend",this._disableDelayedDrag),f(e,"touchcancel",this._disableDelayedDrag),f(e,"mousemove",this._delayedDragTouchMoveHandler),f(e,"touchmove",this._delayedDragTouchMoveHandler),f(e,"pointermove",this._delayedDragTouchMoveHandler)},_triggerDragStart:function(e,t){t=t||"touch"==e.pointerType&&e,!this.nativeDraggable||t?this.options.supportPointer?d(document,"pointermove",this._onTouchMove):d(document,t?"touchmove":"mousemove",this._onTouchMove):(d(Y,"dragend",this),d(Q,"dragstart",this._onDragStart));try{document.selection?Je((function(){document.selection.empty()})):window.getSelection().removeAllRanges()}catch(e){}},_dragStarted:function(e,t){if(Oe=!1,Q&&Y){Z("dragStarted",this,{evt:t}),this.nativeDraggable&&d(document,"dragover",Ve);let n=this.options;!e&&b(Y,n.dragClass,!1),b(Y,n.ghostClass,!0),Ue.active=this,e&&this._appendGhost(),K({sortable:this,name:"start",originalEvent:t})}else this._nulling()},_emulateDragOver:function(){if(pe){this._lastX=pe.clientX,this._lastY=pe.clientY,Be();let e=document.elementFromPoint(pe.clientX,pe.clientY),t=e;for(;e&&e.shadowRoot&&(e=e.shadowRoot.elementFromPoint(pe.clientX,pe.clientY),e!==t);)t=e;if(Y.parentNode[z]._isOutsideThisEl(e),t)do{if(t[z]){let n;if(n=t[z]._onDragOver({clientX:pe.clientX,clientY:pe.clientY,target:e,rootEl:t}),n&&!this.options.dragoverBubble)break}e=t}while(t=t.parentNode);Fe()}},_onTouchMove:function(e){if(ue){let t=this.options,n=t.fallbackTolerance,r=t.fallbackOffset,o=e.touches?e.touches[0]:e,i=J&&w(J,!0),a=J&&i&&i.a,l=J&&i&&i.d,s=Ie&&we&&x(we),c=(o.clientX-ue.clientX+r.x)/(a||1)+(s?s[0]-je[0]:0)/(a||1),u=(o.clientY-ue.clientY+r.y)/(l||1)+(s?s[1]-je[1]:0)/(l||1);if(!Ue.active&&!Oe){if(n&&Math.max(Math.abs(o.clientX-this._lastX),Math.abs(o.clientY-this._lastY))<n)return;this._onDragStart(e,!0)}if(J){i?(i.e+=c-(de||0),i.f+=u-(fe||0)):i={a:1,b:0,c:0,d:1,e:c,f:u};let e=`matrix(${i.a},${i.b},${i.c},${i.d},${i.e},${i.f})`;y(J,"webkitTransform",e),y(J,"mozTransform",e),y(J,"msTransform",e),y(J,"transform",e),de=c,fe=u,pe=o}e.cancelable&&e.preventDefault()}},_appendGhost:function(){if(!J){let e=this.options.fallbackOnBody?document.body:Q,t=E(Y,!0,Ie,!0,e),n=this.options;if(Ie){for(we=e;"static"===y(we,"position")&&"none"===y(we,"transform")&&we!==document;)we=we.parentNode;we!==document.body&&we!==document.documentElement?(we===document&&(we=_()),t.top+=we.scrollTop,t.left+=we.scrollLeft):we=_(),je=x(we)}J=Y.cloneNode(!0),b(J,n.ghostClass,!1),b(J,n.fallbackClass,!0),b(J,n.dragClass,!0),y(J,"transition",""),y(J,"transform",""),y(J,"box-sizing","border-box"),y(J,"margin",0),y(J,"top",t.top),y(J,"left",t.left),y(J,"width",t.width),y(J,"height",t.height),y(J,"opacity","0.8"),y(J,"position",Ie?"absolute":"fixed"),y(J,"zIndex","100000"),y(J,"pointerEvents","none"),Ue.ghost=J,e.appendChild(J),y(J,"transform-origin",me/parseInt(J.style.width)*100+"% "+he/parseInt(J.style.height)*100+"%")}},_onDragStart:function(e,t){let n=this,r=e.dataTransfer,o=n.options;Z("dragStart",this,{evt:e}),Ue.eventCanceled?this._onDrop():(Z("setupClone",this),Ue.eventCanceled||(ne=L(Y),ne.draggable=!1,ne.style["will-change"]="",this._hideClone(),b(ne,this.options.chosenClass,!1),Ue.clone=ne),n.cloneId=Je((function(){Z("clone",n),Ue.eventCanceled||(n.options.removeCloneOnHide||Q.insertBefore(ne,Y),n._hideClone(),K({sortable:n,name:"clone"}))})),!t&&b(Y,o.dragClass,!0),t?(_e=!0,n._loopId=setInterval(n._emulateDragOver,50)):(f(document,"mouseup",n._onDrop),f(document,"touchend",n._onDrop),f(document,"touchcancel",n._onDrop),r&&(r.effectAllowed="move",o.setData&&o.setData.call(n,r,Y)),d(document,"drop",n),y(Y,"transform","translateZ(0)")),Oe=!0,n._dragStartId=Je(n._dragStarted.bind(n,t,e)),d(document,"selectstart",n),ge=!0,s&&y(document.body,"user-select","none"))},_onDragOver:function(e){let t,n,r,i,a=this.el,l=e.target,s=this.options,c=s.group,u=Ue.active,p=se===c,d=s.sort,f=ce||u,m=this,h=!1;if(!Ce){if(void 0!==e.preventDefault&&e.cancelable&&e.preventDefault(),l=g(l,s.draggable,a,!0),v("dragOver"),Ue.eventCanceled)return h;if(Y.contains(e.target)||l.animated&&l.animatingX&&l.animatingY||m._ignoreWhileAnimating===l)return O(!1);if(_e=!1,u&&!s.disabled&&(p?d||(r=!Q.contains(Y)):ce===this||(this.lastPutMode=se.checkPull(this,u,Y,e))&&c.checkPut(this,u,Y,e))){if(i="vertical"===this._getDirection(e,l),t=E(Y),v("dragOverValid"),Ue.eventCanceled)return h;if(r)return X=Q,w(),this._hideClone(),v("revert"),Ue.eventCanceled||(ee?Q.insertBefore(Y,ee):Q.appendChild(Y)),O(!0);let o=j(a,s.draggable);if(!o||qe(e,i,this)&&!o.animated){if(o===Y)return O(!1);if(o&&a===e.target&&(l=o),l&&(n=E(l)),!1!==We(Q,a,Y,t,l,n,e,!!l))return w(),a.appendChild(Y),X=a,_(),O(!0)}else if(l.parentNode===a){n=E(l);let r,o,c=0,u=Y.parentNode!==a,p=!Re(Y.animated&&Y.toRect||t,l.animated&&l.toRect||n,i),d=i?"top":"left",f=P(l,"top","top")||P(Y,"top","top"),m=f?f.scrollTop:void 0;if(ve!==l&&(r=n[d],Pe=!1,Se=!p&&s.invertSwap||u),c=Ze(e,l,n,i,p?1:s.swapThreshold,null==s.invertedSwapThreshold?s.swapThreshold:s.invertedSwapThreshold,Se,ve===l),0!==c){let e=C(Y);do{e-=c,o=X.children[e]}while(o&&("none"===y(o,"display")||o===J))}if(0===c||o===l)return O(!1);ve=l,be=c;let h=l.nextElementSibling,g=!1;g=1===c;let v=We(Q,a,Y,t,l,n,e,g);if(!1!==v)return 1!==v&&-1!==v||(g=1===v),Ce=!0,setTimeout($e,30),w(),g&&!h?a.appendChild(Y):l.parentNode.insertBefore(Y,g?h:l),f&&M(f,0,m-f.scrollTop),X=Y.parentNode,void 0===r||Se||(ye=Math.abs(r-E(l)[d])),_(),O(!0)}if(a.contains(Y))return O(!1)}return!1}function v(s,c){Z(s,m,o({evt:e,isOwner:p,axis:i?"vertical":"horizontal",revert:r,dragRect:t,targetRect:n,canSort:d,fromSortable:f,target:l,completed:O,onMove(n,r){return We(Q,a,Y,t,n,E(n),e,r)},changed:_},c))}function w(){v("dragOverAnimationCapture"),m.captureAnimationState(),m!==f&&f.captureAnimationState()}function O(t){return v("dragOverCompleted",{insertion:t}),t&&(p?u._hideClone():u._showClone(m),m!==f&&(b(Y,ce?ce.options.ghostClass:u.options.ghostClass,!1),b(Y,s.ghostClass,!0)),ce!==m&&m!==Ue.active?ce=m:m===Ue.active&&ce&&(ce=null),f===m&&(m._ignoreWhileAnimating=l),m.animateAll((function(){v("dragOverAnimationComplete"),m._ignoreWhileAnimating=null})),m!==f&&(f.animateAll(),f._ignoreWhileAnimating=null)),(l===Y&&!Y.animated||l===a&&!l.animated)&&(ve=null),s.dragoverBubble||e.rootEl||l===document||(Y.parentNode[z]._isOutsideThisEl(e.target),!t&&ze(e)),!s.dragoverBubble&&e.stopPropagation&&e.stopPropagation(),h=!0}function _(){ie=C(Y),le=C(Y,s.draggable),K({sortable:m,name:"change",toEl:a,newIndex:ie,newDraggableIndex:le,originalEvent:e})}},_ignoreWhileAnimating:null,_offMoveEvents:function(){f(document,"mousemove",this._onTouchMove),f(document,"touchmove",this._onTouchMove),f(document,"pointermove",this._onTouchMove),f(document,"dragover",ze),f(document,"mousemove",ze),f(document,"touchmove",ze)},_offUpEvents:function(){let e=this.el.ownerDocument;f(e,"mouseup",this._onDrop),f(e,"touchend",this._onDrop),f(e,"pointerup",this._onDrop),f(e,"touchcancel",this._onDrop),f(document,"selectstart",this)},_onDrop:function(e){let t=this.el,n=this.options;ie=C(Y),le=C(Y,n.draggable),Z("drop",this,{evt:e}),X=Y&&Y.parentNode,ie=C(Y),le=C(Y,n.draggable),Ue.eventCanceled||(Oe=!1,Se=!1,Pe=!1,clearInterval(this._loopId),clearTimeout(this._dragStartTimer),Qe(this.cloneId),Qe(this._dragStartId),this.nativeDraggable&&(f(document,"drop",this),f(t,"dragstart",this._onDragStart)),this._offMoveEvents(),this._offUpEvents(),s&&y(document.body,"user-select",""),y(Y,"transform",""),e&&(ge&&(e.cancelable&&e.preventDefault(),!n.dropBubble&&e.stopPropagation()),J&&J.parentNode&&J.parentNode.removeChild(J),(Q===X||ce&&"clone"!==ce.lastPutMode)&&ne&&ne.parentNode&&ne.parentNode.removeChild(ne),Y&&(this.nativeDraggable&&f(Y,"dragend",this),Ge(Y),Y.style["will-change"]="",ge&&!Oe&&b(Y,ce?ce.options.ghostClass:this.options.ghostClass,!1),b(Y,this.options.chosenClass,!1),K({sortable:this,name:"unchoose",toEl:X,newIndex:null,newDraggableIndex:null,originalEvent:e}),Q!==X?(ie>=0&&(K({rootEl:X,name:"add",toEl:X,fromEl:Q,originalEvent:e}),K({sortable:this,name:"remove",toEl:X,originalEvent:e}),K({rootEl:X,name:"sort",toEl:X,fromEl:Q,originalEvent:e}),K({sortable:this,name:"sort",toEl:X,originalEvent:e})),ce&&ce.save()):ie!==oe&&ie>=0&&(K({sortable:this,name:"update",toEl:X,originalEvent:e}),K({sortable:this,name:"sort",toEl:X,originalEvent:e})),Ue.active?(null!=ie&&-1!==ie||(ie=oe,le=ae),K({sortable:this,name:"end",toEl:X,originalEvent:e}),this.save()):K({sortable:this,name:"end",toEl:X,originalEvent:e})))),this._nulling()},_nulling:function(){Z("nulling",this),Q=Y=X=J=ee=ne=te=re=ue=pe=ge=ie=le=oe=ae=ve=be=ce=se=Ue.dragged=Ue.ghost=Ue.clone=Ue.active=null,xe.forEach((function(e){e.checked=!0})),xe.length=de=fe=0},handleEvent:function(e){switch(e.type){case"drop":case"dragend":this._onDrop(e);break;case"dragenter":case"dragover":Y&&(this._onDragOver(e),He(e));break;case"selectstart":e.preventDefault()}},toArray:function(){let e,t=[],n=this.el.children,r=0,o=n.length,i=this.options;for(;r<o;r++)e=n[r],g(e,i.draggable,this.el,!1)&&t.push(e.getAttribute(i.dataIdAttr)||Ye(e));return t},sort:function(e){let t={},n=this.el;this.toArray().forEach((function(e,r){let o=n.children[r];g(o,this.options.draggable,n,!1)&&(t[e]=o)}),this),e.forEach((function(e){t[e]&&(n.removeChild(t[e]),n.appendChild(t[e]))}))},save:function(){let e=this.options.store;e&&e.set&&e.set(this)},closest:function(e,t){return g(e,t||this.options.draggable,this.el,!1)},option:function(e,t){let n=this.options;if(void 0===t)return n[e];{let r=$.modifyOption(this,e,t);n[e]=void 0!==r?r:t,"group"===e&&Le(n)}},destroy:function(){Z("destroy",this);let e=this.el;e[z]=null,f(e,"mousedown",this._onTapStart),f(e,"touchstart",this._onTapStart),f(e,"pointerdown",this._onTapStart),this.nativeDraggable&&(f(e,"dragover",this),f(e,"dragenter",this)),Array.prototype.forEach.call(e.querySelectorAll("[draggable]"),(function(e){e.removeAttribute("draggable")})),this._onDrop(),this._disableDelayedDragEvents(),Ee.splice(Ee.indexOf(this.el),1),this.el=e=null},_hideClone:function(){if(!re){if(Z("hideClone",this),Ue.eventCanceled)return;y(ne,"display","none"),this.options.removeCloneOnHide&&ne.parentNode&&ne.parentNode.removeChild(ne),re=!0}},_showClone:function(e){if("clone"===e.lastPutMode){if(re){if(Z("showClone",this),Ue.eventCanceled)return;Y.parentNode!=Q||this.options.group.revertClone?ee?Q.insertBefore(ne,ee):Q.appendChild(ne):Q.insertBefore(ne,Y),this.options.group.revertClone&&this.animate(Y,ne),y(ne,"display",""),re=!1}}else this._hideClone()}},ke&&d(document,"touchmove",(function(e){(Ue.active||Oe)&&e.cancelable&&e.preventDefault()})),Ue.utils={on:d,off:f,css:y,find:O,is:function(e,t){return!!g(e,t,e,!1)},extend:D,throttle:A,closest:g,toggleClass:b,clone:L,index:C,nextTick:Je,cancelNextTick:Qe,detectDirection:Ae,getChild:S},Ue.get=function(e){return e[z]},Ue.mount=function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t[0].constructor===Array&&(t=t[0]),t.forEach((function(e){if(!e.prototype||!e.prototype.constructor)throw`Sortable: Mounted plugin must be a constructor function, not ${{}.toString.call(e)}`;e.utils&&(Ue.utils=o(o({},Ue.utils),e.utils)),$.mount(e)}))},Ue.create=function(e,t){return new Ue(e,t)},Ue.version=e;let et,tt,nt,rt,ot,it,at=[],lt=!1;function st(){function e(){this.defaults={scroll:!0,scrollSensitivity:30,scrollSpeed:10,bubbleScroll:!0};for(let e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this))}return e.prototype={dragStarted(e){let{originalEvent:t}=e;this.sortable.nativeDraggable?d(document,"dragover",this._handleAutoScroll):this.options.supportPointer?d(document,"pointermove",this._handleFallbackAutoScroll):t.touches?d(document,"touchmove",this._handleFallbackAutoScroll):d(document,"mousemove",this._handleFallbackAutoScroll)},dragOverCompleted(e){let{originalEvent:t}=e;this.options.dragOverBubble||t.rootEl||this._handleAutoScroll(t)},drop(){this.sortable.nativeDraggable?f(document,"dragover",this._handleAutoScroll):(f(document,"pointermove",this._handleFallbackAutoScroll),f(document,"touchmove",this._handleFallbackAutoScroll),f(document,"mousemove",this._handleFallbackAutoScroll)),ut(),ct(),R()},nulling(){ot=tt=et=lt=it=nt=rt=null,at.length=0},_handleFallbackAutoScroll(e){this._handleAutoScroll(e,!0)},_handleAutoScroll(e,t){var n=this;const r=(e.touches?e.touches[0]:e).clientX,o=(e.touches?e.touches[0]:e).clientY,l=document.elementFromPoint(r,o);if(ot=e,t||a||i||s){pt(e,this.options,l,t);let i=I(l,!0);!lt||it&&r===nt&&o===rt||(it&&ut(),it=setInterval((function(){let a=I(document.elementFromPoint(r,o),!0);a!==i&&(i=a,ct()),pt(e,n.options,a,t)}),10),nt=r,rt=o)}else{if(!this.options.bubbleScroll||I(l,!0)===_())return void ct();pt(e,this.options,I(l,!1),!1)}}},Object.assign(e,{pluginName:"scroll",initializeByDefault:!0})}function ct(){at.forEach((function(e){clearInterval(e.pid)})),at=[]}function ut(){clearInterval(it)}const pt=A((function(e,t,n,r){if(!t.scroll)return;const o=(e.touches?e.touches[0]:e).clientX,i=(e.touches?e.touches[0]:e).clientY,a=t.scrollSensitivity,l=t.scrollSpeed,s=_();let c,u=!1;tt!==n&&(tt=n,ct(),et=t.scroll,c=t.scrollFn,!0===et&&(et=I(n,!0)));let p=0,d=et;do{let t,n,f=d,m=E(f),h=m.top,g=m.bottom,v=m.left,b=m.right,w=m.width,O=m.height,_=f.scrollWidth,P=f.scrollHeight,S=y(f),j=f.scrollLeft,C=f.scrollTop;f===s?(t=w<_&&("auto"===S.overflowX||"scroll"===S.overflowX||"visible"===S.overflowX),n=O<P&&("auto"===S.overflowY||"scroll"===S.overflowY||"visible"===S.overflowY)):(t=w<_&&("auto"===S.overflowX||"scroll"===S.overflowX),n=O<P&&("auto"===S.overflowY||"scroll"===S.overflowY));let x=t&&(Math.abs(b-o)<=a&&j+w<_)-(Math.abs(v-o)<=a&&!!j),k=n&&(Math.abs(g-i)<=a&&C+O<P)-(Math.abs(h-i)<=a&&!!C);if(!at[p])for(let e=0;e<=p;e++)at[e]||(at[e]={});at[p].vx==x&&at[p].vy==k&&at[p].el===f||(at[p].el=f,at[p].vx=x,at[p].vy=k,clearInterval(at[p].pid),0==x&&0==k||(u=!0,at[p].pid=setInterval(function(){r&&0===this.layer&&Ue.active._onTouchMove(ot);let t=at[this.layer].vy?at[this.layer].vy*l:0,n=at[this.layer].vx?at[this.layer].vx*l:0;"function"==typeof c&&"continue"!==c.call(Ue.dragged.parentNode[z],n,t,e,ot,at[this.layer].el)||M(at[this.layer].el,n,t)}.bind({layer:p}),24))),p++}while(t.bubbleScroll&&d!==s&&(d=I(d,!1)));lt=u}),30),dt=function(e){let{originalEvent:t,putSortable:n,dragEl:r,activeSortable:o,dispatchSortableEvent:i,hideGhostForTarget:a,unhideGhostForTarget:l}=e;if(!t)return;let s=n||o;a();let c=t.changedTouches&&t.changedTouches.length?t.changedTouches[0]:t,u=document.elementFromPoint(c.clientX,c.clientY);l(),s&&!s.el.contains(u)&&(i("spill"),this.onSpill({dragEl:r,putSortable:n}))};function ft(){}function mt(){}let ht;function gt(){function e(){this.defaults={swapClass:"sortable-swap-highlight"}}return e.prototype={dragStart(e){let{dragEl:t}=e;ht=t},dragOverValid(e){let{completed:t,target:n,onMove:r,activeSortable:o,changed:i,cancel:a}=e;if(!o.options.swap)return;let l=this.sortable.el,s=this.options;if(n&&n!==l){let e=ht;!1!==r(n)?(b(n,s.swapClass,!0),ht=n):ht=null,e&&e!==ht&&b(e,s.swapClass,!1)}i(),t(!0),a()},drop(e){let{activeSortable:t,putSortable:n,dragEl:r}=e,o=n||this.sortable,i=this.options;ht&&b(ht,i.swapClass,!1),ht&&(i.swap||n&&n.options.swap)&&r!==ht&&(o.captureAnimationState(),o!==t&&t.captureAnimationState(),vt(r,ht),o.animateAll(),o!==t&&t.animateAll())},nulling(){ht=null}},Object.assign(e,{pluginName:"swap",eventProperties(){return{swapItem:ht}}})}function vt(e,t){let n,r,o=e.parentNode,i=t.parentNode;o&&i&&!o.isEqualNode(t)&&!i.isEqualNode(e)&&(n=C(e),r=C(t),o.isEqualNode(i)&&n<r&&r++,o.insertBefore(t,o.children[n]),i.insertBefore(e,i.children[r]))}ft.prototype={startIndex:null,dragStart(e){let{oldDraggableIndex:t}=e;this.startIndex=t},onSpill(e){let{dragEl:t,putSortable:n}=e;this.sortable.captureAnimationState(),n&&n.captureAnimationState();let r=S(this.sortable.el,this.startIndex,this.options);r?this.sortable.el.insertBefore(t,r):this.sortable.el.appendChild(t),this.sortable.animateAll(),n&&n.animateAll()},drop:dt},Object.assign(ft,{pluginName:"revertOnSpill"}),mt.prototype={onSpill(e){let{dragEl:t,putSortable:n}=e;const r=n||this.sortable;r.captureAnimationState(),t.parentNode&&t.parentNode.removeChild(t),r.animateAll()},drop:dt},Object.assign(mt,{pluginName:"removeOnSpill"});let bt,yt,wt,Ot,_t,Et=[],Pt=[],St=!1,jt=!1,Ct=!1;function xt(){function e(e){for(let e in this)"_"===e.charAt(0)&&"function"==typeof this[e]&&(this[e]=this[e].bind(this));e.options.supportPointer?d(document,"pointerup",this._deselectMultiDrag):(d(document,"mouseup",this._deselectMultiDrag),d(document,"touchend",this._deselectMultiDrag)),d(document,"keydown",this._checkKeyDown),d(document,"keyup",this._checkKeyUp),this.defaults={selectedClass:"sortable-selected",multiDragKey:null,setData(t,n){let r="";Et.length&&yt===e?Et.forEach((function(e,t){r+=(t?", ":"")+e.textContent})):r=n.textContent,t.setData("Text",r)}}}return e.prototype={multiDragKeyDown:!1,isMultiDrag:!1,delayStartGlobal(e){let{dragEl:t}=e;wt=t},delayEnded(){this.isMultiDrag=~Et.indexOf(wt)},setupClone(e){let{sortable:t,cancel:n}=e;if(this.isMultiDrag){for(let e=0;e<Et.length;e++)Pt.push(L(Et[e])),Pt[e].sortableIndex=Et[e].sortableIndex,Pt[e].draggable=!1,Pt[e].style["will-change"]="",b(Pt[e],this.options.selectedClass,!1),Et[e]===wt&&b(Pt[e],this.options.chosenClass,!1);t._hideClone(),n()}},clone(e){let{sortable:t,rootEl:n,dispatchSortableEvent:r,cancel:o}=e;this.isMultiDrag&&(this.options.removeCloneOnHide||Et.length&&yt===t&&(It(!0,n),r("clone"),o()))},showClone(e){let{cloneNowShown:t,rootEl:n,cancel:r}=e;this.isMultiDrag&&(It(!1,n),Pt.forEach((function(e){y(e,"display","")})),t(),_t=!1,r())},hideClone(e){var t=this;let{sortable:n,cloneNowHidden:r,cancel:o}=e;this.isMultiDrag&&(Pt.forEach((function(e){y(e,"display","none"),t.options.removeCloneOnHide&&e.parentNode&&e.parentNode.removeChild(e)})),r(),_t=!0,o())},dragStartGlobal(e){let{sortable:t}=e;!this.isMultiDrag&&yt&&yt.multiDrag._deselectMultiDrag(),Et.forEach((function(e){e.sortableIndex=C(e)})),Et=Et.sort((function(e,t){return e.sortableIndex-t.sortableIndex})),Ct=!0},dragStarted(e){var t=this;let{sortable:n}=e;if(this.isMultiDrag){if(this.options.sort&&(n.captureAnimationState(),this.options.animation)){Et.forEach((function(e){e!==wt&&y(e,"position","absolute")}));let e=E(wt,!1,!0,!0);Et.forEach((function(t){t!==wt&&B(t,e)})),jt=!0,St=!0}n.animateAll((function(){jt=!1,St=!1,t.options.animation&&Et.forEach((function(e){F(e)})),t.options.sort&&Dt()}))}},dragOver(e){let{target:t,completed:n,cancel:r}=e;jt&&~Et.indexOf(t)&&(n(!1),r())},revert(e){let{fromSortable:t,rootEl:n,sortable:r,dragRect:o}=e;Et.length>1&&(Et.forEach((function(e){r.addAnimationState({target:e,rect:jt?E(e):o}),F(e),e.fromRect=o,t.removeAnimationState(e)})),jt=!1,kt(!this.options.removeCloneOnHide,n))},dragOverCompleted(e){let{sortable:t,isOwner:n,insertion:r,activeSortable:o,parentEl:i,putSortable:a}=e,l=this.options;if(r){if(n&&o._hideClone(),St=!1,l.animation&&Et.length>1&&(jt||!n&&!o.options.sort&&!a)){let e=E(wt,!1,!0,!0);Et.forEach((function(t){t!==wt&&(B(t,e),i.appendChild(t))})),jt=!0}if(!n)if(jt||Dt(),Et.length>1){let e=_t;o._showClone(t),o.options.animation&&!_t&&e&&Pt.forEach((function(e){o.addAnimationState({target:e,rect:Ot}),e.fromRect=Ot,e.thisAnimationDuration=null}))}else o._showClone(t)}},dragOverAnimationCapture(e){let{dragRect:t,isOwner:n,activeSortable:r}=e;if(Et.forEach((function(e){e.thisAnimationDuration=null})),r.options.animation&&!n&&r.multiDrag.isMultiDrag){Ot=Object.assign({},t);let e=w(wt,!0);Ot.top-=e.f,Ot.left-=e.e}},dragOverAnimationComplete(){jt&&(jt=!1,Dt())},drop(e){let{originalEvent:t,rootEl:n,parentEl:r,sortable:o,dispatchSortableEvent:i,oldIndex:a,putSortable:l}=e,s=l||this.sortable;if(!t)return;let c=this.options,u=r.children;if(!Ct)if(c.multiDragKey&&!this.multiDragKeyDown&&this._deselectMultiDrag(),b(wt,c.selectedClass,!~Et.indexOf(wt)),~Et.indexOf(wt))Et.splice(Et.indexOf(wt),1),bt=null,q({sortable:o,rootEl:n,name:"deselect",targetEl:wt,originalEvt:t});else{if(Et.push(wt),q({sortable:o,rootEl:n,name:"select",targetEl:wt,originalEvt:t}),t.shiftKey&&bt&&o.el.contains(bt)){let e=C(bt),r=C(wt);if(~e&&~r&&e!==r){let i,a;for(r>e?(a=e,i=r):(a=r,i=e+1);a<i;a++)~Et.indexOf(u[a])||(b(u[a],c.selectedClass,!0),Et.push(u[a]),q({sortable:o,rootEl:n,name:"select",targetEl:u[a],originalEvt:t}))}}else bt=wt;yt=s}if(Ct&&this.isMultiDrag){if((r[z].options.sort||r!==n)&&Et.length>1){let e=E(wt),t=C(wt,":not(."+this.options.selectedClass+")");if(!St&&c.animation&&(wt.thisAnimationDuration=null),s.captureAnimationState(),!St&&(c.animation&&(wt.fromRect=e,Et.forEach((function(t){if(t.thisAnimationDuration=null,t!==wt){let n=jt?E(t):e;t.fromRect=n,s.addAnimationState({target:t,rect:n})}}))),Dt(),Et.forEach((function(e){u[t]?r.insertBefore(e,u[t]):r.appendChild(e),t++})),a===C(wt))){let e=!1;Et.forEach((function(t){t.sortableIndex===C(t)||(e=!0)})),e&&i("update")}Et.forEach((function(e){F(e)})),s.animateAll()}yt=s}(n===r||l&&"clone"!==l.lastPutMode)&&Pt.forEach((function(e){e.parentNode&&e.parentNode.removeChild(e)}))},nullingGlobal(){this.isMultiDrag=Ct=!1,Pt.length=0},destroyGlobal(){this._deselectMultiDrag(),f(document,"pointerup",this._deselectMultiDrag),f(document,"mouseup",this._deselectMultiDrag),f(document,"touchend",this._deselectMultiDrag),f(document,"keydown",this._checkKeyDown),f(document,"keyup",this._checkKeyUp)},_deselectMultiDrag(e){if(!(void 0!==Ct&&Ct||yt!==this.sortable||e&&g(e.target,this.options.draggable,this.sortable.el,!1)||e&&0!==e.button))for(;Et.length;){let t=Et[0];b(t,this.options.selectedClass,!1),Et.shift(),q({sortable:this.sortable,rootEl:this.sortable.el,name:"deselect",targetEl:t,originalEvt:e})}},_checkKeyDown(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!0)},_checkKeyUp(e){e.key===this.options.multiDragKey&&(this.multiDragKeyDown=!1)}},Object.assign(e,{pluginName:"multiDrag",utils:{select(e){let t=e.parentNode[z];t&&t.options.multiDrag&&!~Et.indexOf(e)&&(yt&&yt!==t&&(yt.multiDrag._deselectMultiDrag(),yt=t),b(e,t.options.selectedClass,!0),Et.push(e))},deselect(e){let t=e.parentNode[z],n=Et.indexOf(e);t&&t.options.multiDrag&&~n&&(b(e,t.options.selectedClass,!1),Et.splice(n,1))}},eventProperties(){var e=this;const t=[],n=[];return Et.forEach((function(r){let o;t.push({multiDragElement:r,index:r.sortableIndex}),o=jt&&r!==wt?-1:jt?C(r,":not(."+e.options.selectedClass+")"):C(r),n.push({multiDragElement:r,index:o})})),{items:[...Et],clones:[...Pt],oldIndicies:t,newIndicies:n}},optionListeners:{multiDragKey(e){return"ctrl"===(e=e.toLowerCase())?e="Control":e.length>1&&(e=e.charAt(0).toUpperCase()+e.substr(1)),e}}})}function kt(e,t){Et.forEach((function(n,r){let o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function It(e,t){Pt.forEach((function(n,r){let o=t.children[n.sortableIndex+(e?Number(r):0)];o?t.insertBefore(n,o):t.appendChild(n)}))}function Dt(){Et.forEach((function(e){e!==wt&&e.parentNode&&e.parentNode.removeChild(e)}))}return Ue.mount(new st),Ue.mount(mt,ft),Ue.mount(new gt),Ue.mount(new xt),Ue}()},8142:function(e,t,n){"use strict";n.d(t,{fg:function(){return S},y1:function(){return j}});var r=n(1381),o=n(8441),i=n(4184),a=n.n(i),l=n(7086),s=n(251),c=n.n(s),u=(n(5529),n(5652)),p=n(7691),d=n(2243),f=n.n(d);const m=["className"],h=["wrapperAttr"],g=["className"];function v(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}function y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function w(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?y(Object(n),!0).forEach((function(t){O(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function O(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const _=n(1764);_.keys().forEach(_);const E=function(e){let t=_.keys().map((function(e){return e.replace(/^\.\//,"").replace(/\.js$/,"")})).indexOf(e);return t>-1&&_.keys()[t]},P=function(e){let{option:t}=e;return(0,r.createElement)("div",null,"Unimplemented option: ",t.type)},S=function(e){const t={};return f().trigger("blocksy:options:register",t),E(e.type)?_(E(e.type)).default:t[e.type]?t[e.type]:P},j=function(e){let{option:t,value:n}=e;return void 0===n?t.value:n};t.ZP=function(e){let{option:t,value:n,values:i,onChange:s,onChangeFor:d,hasRevertButton:y,id:O,purpose:_}=e;const[E,P]=(0,r.useState)(null);let C=null;const x=(0,r.useRef)(null);wp.data&&wp.data.useSelect&&(C=wp.data.useSelect((function(e){return e("core/edit-post")?e("core/edit-post").__experimentalGetPreviewDeviceType():null})));const k=function(){return wp.customize&&wp.customize.previewedDevice?wp.customize.previewedDevice():wp.data&&wp.data.select&&wp.data.select("core/edit-post")&&wp.data.select("core/edit-post").__experimentalGetPreviewDeviceType?wp.data.select("core/edit-post").__experimentalGetPreviewDeviceType().toLowerCase():"desktop"},[I,D]=(0,r.useState)(k()),N=function(){D(k())},T=function(e){let{device:t}=e;D(t)},A=function(e){f().trigger("ct:options:device:update",{device:e}),D(e),wp.customize&&wp.customize.previewedDevice.set(e),wp.data&&wp.data.dispatch&&wp.data.dispatch("core/edit-post")&&wp.data.dispatch("core/edit-post").__experimentalSetPreviewDeviceType&&wp.data.dispatch("core/edit-post").__experimentalSetPreviewDeviceType(e.replace(/\w/,(function(e){return e.toUpperCase()})))};(0,r.useEffect)((function(){C&&D(C.toLowerCase())}),[C]),(0,r.useEffect)((function(){if("ct-typography"===t.type||(0,l.W)(t)||t.markAsAutoFor)return wp.customize&&setTimeout((function(){return wp.customize.previewedDevice.bind(N)}),1e3),f().on("ct:options:device:update",T),D(k()),function(){("ct-typography"===t.type||(0,l.W)(t))&&(wp.customize&&wp.customize.previewedDevice.unbind(N),f().off("ct:options:device:update",T))}}),[]);let R=S(t),M={content:null,option:t};f().trigger("blocksy:options:before-option",M);const L=(0,l.T)(j({value:n,option:t}),(0,l.W)(t)),B=(0,l.W)(t,{ignoreHidden:!0})?(0,l.Oi)({option:t,value:L,device:I}):L,F=function(e){t.triggerRefreshOnChange&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),t.switchDeviceOnChange&&wp.customize&&wp.customize.previewedDevice()!==t.switchDeviceOnChange&&wp.customize.previewedDevice.set(t.switchDeviceOnChange),t.sync&&(Object.keys(t.sync).length>0||Array.isArray(t.sync))&&wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:t.sync.id||t.id,option:t,shouldSkip:!!t.sync.shouldSkip}),s(e)},z=function(e){const r=(0,l.T)(j({value:n,option:t}),(0,l.W)(t));F((0,l.W)(t,{ignoreHidden:!0})?w(w(w(w({},r),{},{["tablet"===I&&"skip"===(0,l.S0)("tablet",t.responsive)?"mobile":I]:e},"desktop"===I?Object.keys(r).reduce((function(n,o){return w(w({},n),"desktop"!==o&&"__changed"!==o&&Object.keys((0,l.T)(t.value)).reduce((function(e,n){return!!e&&(0,l.T)(t.value)[n]===(0,l.T)(t.value).desktop}),!0)&&-1===(r.__changed||[]).indexOf("tablet")?{[o]:e}:{})}),{}):{}),"tablet"===I&&"skip"!==(0,l.S0)("tablet",t.responsive)?Object.keys(r).reduce((function(n,o){return w(w({},n),"desktop"!==o&&"tablet"!==o&&"__changed"!==o&&Object.keys((0,l.T)(t.value)).reduce((function(e,n){return!!e&&(0,l.T)(t.value)[n]===(0,l.T)(t.value).desktop}),!0)&&-1===(r.__changed||[]).indexOf(o)?{[o]:e}:{})}),{}):{}),[...r.__changed||[],..."desktop"!==I?[I]:[]].length>0?{__changed:[...r.__changed||[],..."desktop"!==I?[I]:[]].filter((function(e,t,n){return n.indexOf(e)===t}))}:{}):e)};if(!R)return(0,r.createElement)("div",null,"Unimplemented option: ",t.type);let V={design:!0,label:!0,wrapperAttr:{}},U=function(){return null},H=null,W=function(){return null},G=function(){return{}};V=w(w({},V),R.renderingConfig||{}),t.design&&(V.design=t.design),"function"==typeof V.design&&(V.design=V.design({option:t,value:B})),R.LabelToolbar&&(U=R.LabelToolbar),R.ControlEnd&&(W=R.ControlEnd),R.MetaWrapper&&(H=R.MetaWrapper),R.sectionClassName&&(G=R.sectionClassName);let $=["default"];R.supportedPurposes&&($=R.supportedPurposes);let q=_;t.purpose&&-1!==$.indexOf(t.purpose)&&(q=t.purpose);let Z=(0,p.m)({id:O,option:t,values:i,renderingConfig:V}),K=(0,r.createElement)(r.Fragment,null,M&&M.content,(0,r.createElement)(R,b({key:O},w(w({},"ct-slider"===t.type?{ref:function(e){e&&(x.current=e)}}:{}),{},{liftedOptionStateDescriptor:{liftedOptionState:E,setLiftedOptionState:P},option:w(w({},t),{},{value:(0,l.W)(t,{ignoreHidden:!0})?(0,l.Oi)({device:I,option:t,value:(0,l.T)(t.value||"")}):(0,l.T)(t.value||"",(0,l.W)(t))}),value:B,id:O,values:i,onChangeFor:d,device:I,onChange:z,purpose:q,maybeLabel:Z}))));if(!V.design||"none"===V.design)return K;const Y=function(){let e=V.computeOptionValue;return e||(e=function(e){return e}),("ct-image-picker"!==t.type&&"ct-layers"!==t.type&&"ct-image-uploader"!==t.type&&"ct-panel"!==t.type&&y&&!t.disableRevertButton||t.forcedRevertButton)&&(0,r.createElement)("button",{type:"button",disabled:c()(e(t.value),V.getValueForRevert?V.getValueForRevert({value:n,option:t,values:i,device:I}):j({value:n,option:t})),className:"ct-revert",onClick:function(){x&&x.current&&x.current.handleOptionRevert(),P(null),V.performRevert&&V.performRevert({onChangeFor:d}),F(t.value)}},(0,r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 35 35"},(0,r.createElement)("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),(0,r.createElement)("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "})))};let X=-1!==Object.keys(t).indexOf("desc")&&t.desc,J=-1!==Object.keys(t).indexOf("link")&&(t.link||" ");const Q="boolean"==typeof V.design?"block":V.design;if("taxonomy"===_)return(0,r.createElement)("tr",{className:"form-field ct-term-screen-edit"},(0,r.createElement)("th",{scope:"row"},Z&&(0,r.createElement)("label",null,Z," ",(0,r.createElement)(Y,null))),(0,r.createElement)("td",null,K,X&&(0,r.createElement)("p",{className:"description"},X)));if("gutenberg"===_)return $.includes("gutenberg")&&"gutenberg"===q?(0,r.createElement)(o.BaseControl,{__nextHasNoMarginBottom:!0,className:a()("ct-control-gutenberg",{[`ct-divider-${t.divider}`]:!!t.divider})},K):(0,r.createElement)(o.BaseControl,{label:Z,className:a()("ct-control-gutenberg",{[`ct-divider-${t.divider}`]:!!t.divider}),help:X?(0,r.createElement)(r.RawHTML,null,X):""},K);if("compact"===V.design)return(0,r.createElement)("section",t.sectionAttr||{},Z&&(0,r.createElement)("label",null,Z),((0,l.W)(t)&&(0,l.S0)(I,t.responsive)||!(0,l.W)(t))&&K,J&&(0,r.createElement)("a",b({dangerouslySetInnerHTML:{__html:J}},t.linkAttr||{})));const ee=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{wrapperAttr:{className:n}={}}=e,o=v(e.wrapperAttr,m);v(e,h);const i=t.wrapperAttr||{},{className:s}=i,c=v(i,g);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",b({className:a()("ct-control",n,s,{}),"data-design":Q},t.divider?{"data-divider":t.divider}:{},w({},(0,l.W)(t)&&!(0,l.S0)(I,t.responsive)||"disabled"===t.state?{"data-state":"disabled"}:{}),w(w({},c),o)),(0,r.createElement)("header",null,Z&&(0,r.createElement)("label",null,Z),(0,r.createElement)(Y,null),(0,r.createElement)(U,{option:t,value:B,id:O,onChange:z}),(0,l.W)(t,{ignoreHidden:!0})&&Q.indexOf("block")>-1&&!t.skipResponsiveControls&&(0,r.createElement)(l.ZP,{device:I,responsiveDescriptor:t.responsive,setDevice:A})),(0,l.W)(t)&&!(0,l.S0)(I,t.responsive)&&(0,r.createElement)("div",{className:"ct-disabled-notification"},t.disabledDeviceMessage||(0,u.__)("Option can't be edited for current device","blocksy")),((0,l.W)(t)&&(0,l.S0)(I,t.responsive)||!(0,l.W)(t))&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)("section",b({},t.sectionAttr||{},{className:a()({"ct-responsive-container":(0,l.W)(t,{ignoreHidden:!0})&&"inline"===Q},G({design:Q,option:t}),(t.sectionAttr||{}).class||"")}),(0,l.W)(t,{ignoreHidden:!0})&&"inline"===Q&&(0,r.createElement)(l.ZP,{device:I,responsiveDescriptor:t.responsive,setDevice:A}),K,J&&(0,r.createElement)("a",b({dangerouslySetInnerHTML:{__html:J}},t.linkAttr||{}))),(0,r.createElement)(W,null),X&&(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:X},className:"ct-option-description"}))))};return H?(0,r.createElement)(H,{id:O,option:t,value:B,onChangeFor:d,values:i,getActualOption:ee}):ee()}},5697:function(e,t,n){"use strict";n.d(t,{Z:function(){return R}});var r=n(1381),o=n(8142),i=n(5529),a=n(1429),l=n(7314);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=[];var d=function(e){let{renderingChunk:t,value:n,onChange:o,purpose:s,parentValue:u,hasRevertButton:d}=e;const f=(0,l.Z)(),{currentView:m}=(0,a.$M)();return(0,r.useEffect)((function(){t.map((function(e){return e.global&&Object.keys(e.condition).map((function(e){return wp.customize(e,(function(e){return e.bind((function(e){return setTimeout((function(){return f()}))}))}))}))}))}),[]),t.map((function(e){let t=null;if("global"===e.values_source){Array.isArray(e.perform_replace)?e.perform_replace:e.perform_replace;let n=c(c({},e.condition),e.perform_replace?(Array.isArray(e.perform_replace)?e.perform_replace:[e.perform_replace]).reduce((function(t,n){return c(c({},t),e.perform_replace.condition)}),{}):{});t=Object.keys(n).reduce((function(e,t){return c(c({},e),{},{[t.split(":")[0]]:wp.customize(t.split(":")[0])()})}),{})}if("parent"===e.values_source&&(t=u),t||(t=c(c({},n),{},{wp_customizer_current_view:m})),e.perform_replace){(Array.isArray(e.perform_replace)?e.perform_replace:[e.perform_replace]).map((function(e){(0,i.Nj)((0,i.KY)(e.condition),t)&&t[e.key]&&t[e.key]===e.from&&(t[e.key]=e.to)}))}return t=c(c(c({},t),window.ct_customizer_localizations?ct_customizer_localizations.conditions_override:{}),window.ct_localizations?ct_localizations.conditions_override:{}),e.computed_fields&&e.computed_fields.map((function(e){if("woo_single_layout"!==e||"columns-top-gallery"!==t.product_view_type&&"top-gallery"!==t.product_view_type||(t[e]=[...t.woo_single_split_layout.left||[],...t.woo_single_split_layout.right||[]]),"has_svg_logo"===e){const e=["custom_logo"];t.builderSettings&&"yes"===t.builderSettings.has_transparent_header&&e.push("transparent_logo"),t.builderSettings&&"yes"===t.builderSettings.has_sticky_header&&e.push("sticky_logo");const n=e.some((function(e){const n=[...new Set(Object.values(t[e]||{}).filter((function(e){return"number"==typeof e})))];return n.some((function(e){const t=wp.media.attachment(e).toJSON();return t&&t.url?t.url.match(/\.svg$/):(p.includes(e)||p.includes(e)||(p.push(e),wp.media.attachment(e).fetch().then((function(){p=p.filter((function(t){return t!==e})),f()}))),!1)}))}));t.has_svg_logo=n?"yes":"no"}})),(0,i.Nj)((0,i.KY)(e.condition),t)?(0,r.createElement)(R,{purpose:s,key:e.id,onChange:o,options:e.options,value:n,hasRevertButton:d,parentValue:u}):[]}))},f=n(4184),m=n.n(f);function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class g extends r.Component{constructor(){super(...arguments),h(this,"state",{currentTab:0})}render(){var e=this;const t=this.props.renderingChunk.filter((function(t){return!t.condition||(0,i.Nj)((0,i.KY)(t.condition),e.props.value)})),n=t[this.state.currentTab];return(0,r.createElement)("div",{className:"ct-tabs"},(0,r.createElement)("ul",null,t.map((function(e,t){return{singleTab:e,index:t}})).map((function(t){let{singleTab:n,index:o}=t;return(0,r.createElement)("li",{key:n.id,onClick:function(){return e.setState({currentTab:o})},className:m()({active:o===e.state.currentTab})},n.title?n.title:n.id)}))),(0,r.createElement)("div",{className:"ct-current-tab"},(0,r.createElement)(R,{purpose:this.props.purpose,key:n.id,onChange:function(t,n){return e.props.onChange(t,n)},options:n.options,value:this.props.value})))}}var v=n(7086);function b(){return b=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},b.apply(this,arguments)}var y=function(e){let{renderingChunk:t,value:n,onChange:o,purpose:i,hasRevertButton:l}=e;return t.map((function(e){const{label:t,options:s,id:c,attr:u={},wrapperAttr:p={},responsive:d=!1}=e,{currentView:f}=(0,a.$M)(),{setDevice:m}=(0,a.Id)(),h=(0,r.createElement)(R,{purpose:i,onChange:o,options:s,value:n,hasRevertButton:l});return(0,r.createElement)("div",b({key:c,className:"ct-controls-group"},p),t&&(0,r.createElement)("header",null,(0,r.createElement)("label",null,t),d&&(0,r.createElement)(v.ZP,{device:f,responsiveDescriptor:d,setDevice:m})),(0,r.createElement)("section",b({},u,"desktop"!==f?{"data-disabled-last":""}:{}),h))}))},w=n(251),O=n.n(w),_=n(7691);function E(){return E=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},E.apply(this,arguments)}function P(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function S(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?P(Object(n),!0).forEach((function(t){j(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):P(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function j(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const C=function(e){let{singleChoice:t,groupOption:n,purpose:o,onChange:i,value:a,hasRevertButton:l,parentValue:s}=e;return(0,r.createElement)("div",{key:t.id,className:"ct-labeled-group-item"},t.label&&(0,r.createElement)("label",null,t.label),(0,r.createElement)(R,{purpose:o,key:n.id,onChange:i,options:{[t.id]:S(S({},n.options[t.id]),{},{design:"none"})},value:a,hasRevertButton:l,parentValue:s}))};var x=function(e){let{renderingChunk:t,value:n,onChange:l,purpose:s,parentValue:c,hasRevertButton:u}=e;const{currentView:p}=(0,a.$M)(),{setDevice:d}=(0,a.Id)();return t.map((function(e){let t=null;t||(t=S(S({},n),{},{wp_customizer_current_view:p}));const a=e.choices.filter((function(e){return!e.condition||(0,i.Nj)((0,i.KY)(e.condition),t)}));let f=(0,_.m)({id:e.id,option:e,values:n});return 0===a.length?null:1===a.length?(0,r.createElement)(R,{purpose:s,onChange:l,key:e.id,options:{[e.choices[0].id]:S(S({},e.options[e.choices[0].id]),e.divider?{divider:e.divider}:{})},value:n,hasRevertButton:u,parentValue:c}):(0,r.createElement)("div",E({className:"ct-control","data-design":"block"},e.divider?{"data-divider":e.divider}:{}),(0,r.createElement)("header",null,f&&(0,r.createElement)("label",null,f),(0,r.createElement)("button",{type:"button",disabled:e.choices.every((function(t){let{id:r}=t;return O()(e.options[r].value,(0,o.y1)({value:n[r],option:e.options[r]}))})),className:"ct-revert",onClick:function(){e.choices.reduce((function(t,n){return t.then((function(){return new Promise((function(t){setTimeout((function(){l(n.id,e.options[n.id].value),t()}))}))}))}),Promise.resolve())}},(0,r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 35 35"},(0,r.createElement)("path",{d:"M17.5,26L17.5,26C12.8,26,9,22.2,9,17.5v0C9,12.8,12.8,9,17.5,9h0c4.7,0,8.5,3.8,8.5,8.5v0C26,22.2,22.2,26,17.5,26z"}),(0,r.createElement)("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "}))),e.responsive&&(0,r.createElement)(v.ZP,{device:p,responsiveDescriptor:e.responsive,setDevice:d})),(0,r.createElement)("section",{className:"ct-labeled-group"},a.map((function(t){return(0,r.createElement)(C,{key:t.id,singleChoice:t,groupOption:e,purpose:s,onChange:l,value:n,hasRevertButton:u,parentValue:c})}))))}))};var k=function(e){let{renderingChunk:t,value:n,onChange:o,purpose:i,hasRevertButton:a}=e;return t.map((function(e){const{label:t,options:l,id:s,attr:c={},responsive:u=!1,optionId:p}=e;return n[p].find((function(e){let{id:t,enabled:n,meta_elements:r}=e;return n&&("post_meta"===t||"custom_meta"===t)&&(r||[]).find((function(e){let{id:t,style:n}=e;return("categories"===t||"tags"===t)&&"pill"===n}))}))?(0,r.createElement)(R,{purpose:i,onChange:o,options:l,value:n,hasRevertButton:a}):null}))};var I=function(e){let{value:t,renderingChunk:n,onChange:o,parentValue:i,purpose:a,hasRevertButton:l}=e,s=null;"ct-has-meta-category-button"===n[0].type&&(s=k),"ct-condition"===n[0].type&&(s=d),"tab"===n[0].type&&(s=g),"ct-group"===n[0].type&&(s=y),"ct-labeled-group"===n[0].type&&(s=x);const c=function(e,t){o(e,t)};return s?(0,r.createElement)(s,{purpose:a,onChange:c,value:t,renderingChunk:n,hasRevertButton:l,parentValue:i}):(0,r.createElement)("div",null,"Unknown container type.")},D=n(7686);function N(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function T(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?N(Object(n),!0).forEach((function(t){A(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):N(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function A(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var R=function(e){let{options:t,value:n,onChange:i,purpose:a="default",hasRevertButton:l=!0,renderOptions:s=null,parentValue:c}=e;if(s)return s({value:n,onChange:i});let u=null;window.wp.components&&(u=window.wp.components.SlotFillProvider);let p=(0,r.useMemo)((function(){const e=(0,D.UO)(t);return[...e.__CT_KEYS_ORDER__?Object.keys(e.__CT_KEYS_ORDER__).map((function(e){return parseInt(e,10)})).sort((function(e,t){return e-t})).map((function(t){return e.__CT_KEYS_ORDER__[t]})):Object.keys(e)].filter((function(e){return"__CT_KEYS_ORDER__"!==e})).map((function(t){return T(T({},e[t]),{},{id:t})})).reduce((function(e,t,n){if(0===e.length)return[[t]];let r=e[e.length-1];return(r[0].options&&r[0].type===t.type||"ct-tab-group"===t.type||"ct-tab-group-sync"===t.type)&&"box"!==t.type&&"ct-popup"!==t.type?[...e.slice(0,-1),[...r,t]]:[...e,[t]]}),[])}),[t]).map((function(e){return e[0].options||"ct-tab-group-sync"===e[0].type?(0,r.createElement)(I,{key:e[0].id,value:n,parentValue:c,renderingChunk:e,onChange:i,purpose:a,hasRevertButton:l}):(0,r.createElement)(o.ZP,{hasRevertButton:l,purpose:a,key:e[0].id,id:e[0].id,value:n[e[0].id],values:n,option:e[0],onChangeFor:function(e,t){return i(e,t)},onChange:function(t){return i(e[0].id,t)}})}));return window.wp.components?(0,r.createElement)(u,null,p):p}},8519:function(e,t,n){"use strict";var r=n(1381),o=(n(6715),n(5652));const i=["value","placeholder","onChange","propertyToCheckAgainst","shouldPropagateEmptyValue","inputProps"];function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.Z=function(e){let{value:t,placeholder:n=(0,o.__)("Default","blocksy"),onChange:s,propertyToCheckAgainst:c="margin",shouldPropagateEmptyValue:u=!1,inputProps:p={}}=e,d=l(e,i);const f=(0,r.useRef)(),[m,h]=(0,r.useState)("__DEFAULT__"),{ref:g,actualInputProps:v={}}=p;return(0,r.useEffect)((function(){const e=m.indexOf("()");e>-1&&f.current.setSelectionRange(e+1,e+1)}),[m]),(0,r.createElement)("input",a({value:"__DEFAULT__"===m?t:m,type:"text",placeholder:n,onChange:function(e){let{target:{value:t}}=e;""===t&&u&&(h("__DEFAULT__"),s("")),h(t),CSS.supports(c,t)&&t.toString().length-t.toString().replaceAll("(","").length==t.toString().length-t.toString().replaceAll(")","").length&&(s(t),h("__DEFAULT__"))},ref:function(e){f.current=e,g&&"function"==typeof g&&g(e)}},v,d))}},7097:function(e,t,n){"use strict";n.d(t,{Q:function(){return p},Z:function(){return f}});var r=n(1381),o=n(2243),i=n.n(o);let a=null;const l=function(){return!!a&&a.split(":")[1]};function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}wp.customize&&wp.customize.bind("ready",(function(){wp.customize.previewer.bind("ct-initiate-deep-link",(function(e){const[t,n]=e.split(":"),r=Object.values(wp.customize.section._value).find((function(e){return e.expanded()}));if(!r||r.id!==t)return a=e,void wp.customize.section(t).expand();i().trigger("ct-deep-link-start",e)}))}));const p=(0,r.createContext)({titlePrefix:"",isOpen:!1,isTransitioning:!1,previousPanel:!1,currentLevel:1,secondLevelTitlePrefix:"",secondLevelTitleLabel:""}),d=function(e,t){if("PANEL_OPEN"===t.type){const{panelId:n}=t.payload;return e.isOpen&&e.isOpen===n||e.isTransitioning?e:c(c({},e),{},{isOpen:n,isTransitioning:n,currentLevel:1},e.isOpen?{previousPanel:e.isOpen}:{})}if("PANEL_RECEIVE_TITLE"===t.type){const{titlePrefix:n}=t.payload;return c(c({},e),{},{titlePrefix:n})}return"PANEL_RECEIVE_META"===t.type?c(c({},e),t.payload):"PANEL_OPEN_SECOND_LEVEL"===t.type?c(c({},e),{},{currentLevel:2}):"PANEL_CLOSE"===t.type?c(c({},e),2===e.currentLevel?{currentLevel:1}:{isTransitioning:e.isOpen,isOpen:!1,currentLevel:1}):"PANEL_FINISH_TRANSITIONING"===t.type?c(c({},e),{},{isTransitioning:!1},e.isOpen&&e.isOpen!==e.previousPanel?{previousPanel:!1}:{}):e};var f=function(e){let{id:t,children:n,containerRef:o,parentContainerRef:s,useRefsAsWrappers:c}=e;const[u,f]=(0,r.useReducer)(d,{isOpen:!1,isTransitioning:!1});return(0,r.useEffect)((function(){i().on("ct-deep-link-start",(function(e){const[t,n]=e.split(":");f(n?{type:"PANEL_OPEN",payload:{panelId:n}}:{type:"PANEL_CLOSE"})})),l()&&setTimeout((function(){f({type:"PANEL_OPEN",payload:{panelId:l()}}),a=null}),300)}),[]),(0,r.createElement)(p.Provider,{value:{id:t,containerRef:o,panelsState:u,panelsDispatch:f,panelsHelpers:{isOpenFor:function(e){return u.isOpen&&e===u.isOpen},isTransitioningFor:function(e){return u.previousPanel&&e===u.previousPanel||u.isTransitioning&&e===u.isTransitioning},open:function(e){return f({type:"PANEL_OPEN",payload:{panelId:e}})},close:function(){f({type:"PANEL_CLOSE"})},stopTransitioning:function(){f({type:"PANEL_FINISH_TRANSITIONING"})},getWrapperParent:function(){return c?s.current:o.current.closest('[id="customize-theme-controls"]')},openSecondLevel:function(){f({type:"PANEL_OPEN_SECOND_LEVEL"})},getParentOptionsWrapper:function(){return c?o.current:o.current.closest(".accordion-section-content")}}}},n)}},7314:function(e,t,n){"use strict";var r=n(1381);const o=function(e,t){return!e};t.Z=function(){const[,e]=(0,r.useReducer)(o,!0);return(0,r.useMemo)((function(){return function(){e(null)}}),[e])}},7691:function(e,t,n){"use strict";n.d(t,{f:function(){return o},m:function(){return i}});var r=n(5529);const o=function(e){return(e=null==e?"":String(e)).charAt(0).toUpperCase()+e.slice(1)},i=function(e){let{id:t,option:n,values:i,renderingConfig:a}=e,l=-1===Object.keys(n).indexOf("label")?o(t).replace(/\_|\-/g," "):n.label;return l!==l.toString()&&(l=Object.keys(l).reduce((function(e,t){return e||((0,r.Nj)((0,r.KY)(l[t]),i)?t:e)}),null)||Object.keys(l)[0]),""===l&&(l=!0),a&&!a.label&&(l=!1),l}},7686:function(e,t,n){"use strict";n.d(t,{UO:function(){return c},JS:function(){return s},n6:function(){return u}});const r=["__CT_KEYS_ORDER__"];function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function l(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const s=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const{__CT_KEYS_ORDER__:n}=e,o=l(e,r);return Object.keys(o).reduce((function(n,r){return e[r].type?e[r].options?i(i({},n),s(e[r].options,t)):e[r]["inner-options"]&&t?i(i({},n),{},{[r]:e[r]},s(e[r]["inner-options"],t)):i(i({},n),{},{[r]:e[r]}):i(i({},n),s(e[r],t))}),{})},c=function(e){return Object.keys(e).reduce((function(t,n){return i(i({},t),e[n].type?{[n]:e[n]}:"__CT_KEYS_ORDER__"===n?{[n]:e[n]}:c(e[n]))}),{})},u=function(e,t){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:null,r=s(e,!(arguments.length>3&&void 0!==arguments[3])||arguments[3]);return i(i({},t),Object.keys(r).reduce((function(e,o){let a=null;if(Object.keys(t).indexOf(o)>-1)("string"==typeof t[o]||function(e){return"number"==typeof e}(t[o]))&&(a=t[o]),function(e){return e instanceof Object}(t[o])&&!Array.isArray(t[o])&&(a=i(i({},r[o].value||{}),t[o])),Array.isArray(t[o])&&(a=t[o]?t[o]:[...r[o].value||[]]);else{if(n)return i(i({},e),n(o,r[o]));a=Object.keys(r[o]).indexOf("value")>-1?r[o].value:""}return i(i({},e),{},{[o]:a})}),{}))}},5026:function(e,t,n){"use strict";n.d(t,{Y:function(){return r}});const r=function(e){let{value:t,onChange:n,blockDecimal:r=!1,handleHorizontal:o=!1}=e;return{onKeyDown:function(e){r&&("."!==e.key&&","!==e.key||e.preventDefault());let i=1;i=e.shiftKey?10*i:i,(38===e.keyCode||o&&39===e.keyCode)&&(e.preventDefault(),n(parseFloat(t)+i)),(40===e.keyCode||o&&37===e.keyCode)&&(e.preventDefault(),n(parseFloat(t)-i))}}}},4775:function(e,t,n){"use strict";n.d(t,{N:function(){return r}});const r=function(e){return Array.isArray(e)?e:Object.keys(e).reduce((function(t,n){return[...t,{key:n,value:e[n]}]}),[])}},2932:function(e,t,n){"use strict";var r=n(1381);n(4184),n(5652);function o(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function i(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?o(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):o(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.Z=function(){let{contentRef:e,shouldCalculate:t=!0,ref:n,defaultHeight:o=0}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const a=(0,r.useRef)(),[l,s]=(0,r.useState)(null),c=function(){t&&s(Math.random())},u=function(t){if(!t.target||!t.target.classList||!t.target.classList.contains)return;let n=e||a;t.target.classList.contains("ct-modal-scroll")&&c(),n&&n.current&&!n.current.contains(t.target)&&c()};(0,r.useEffect)((function(){let t;return setTimeout((function(){c()}),500),window.addEventListener("resize",c),window.addEventListener("scroll",u,!0),n.current&&(t=new window.ResizeObserver(c),t.observe(n.current,{attributes:!0}),n.current.closest(".ct-tabs-scroll")&&t.observe(n.current.closest(".ct-tabs-scroll"),{attributes:!0}),n.current.closest(".ct-modal-scroll")&&t.observe(n.current.closest(".ct-modal-scroll"),{attributes:!0}),n.current.closest(".customize-pane-child")&&t.observe(n.current.closest(".customize-pane-child"),{attributes:!0})),(e?e.current:a.current)&&(t||(t=new window.ResizeObserver(c)),t.observe(e?e.current:a.current,{attributes:!0})),function(){window.removeEventListener("resize",c),window.removeEventListener("scroll",u,!0),t&&t.disconnect()}}),[t,a.current,e,n.current]);let{right:p,yOffset:d,position:f,otherStyles:m}=(0,r.useMemo)((function(){let r=0,i=0,l="bottom",s={};if(!t)return{yOffset:i,right:r,position:l};if(n.current){let t=n.current.getBoundingClientRect(),c=n.current.closest(".ct-select-input")?n.current.closest(".ct-select-input"):n.current,u=getComputedStyle(c,":before").content;if(i=t.top+t.height,r=window.innerWidth-t.right,document.body.classList.contains("rtl")&&(r=t.left),u.indexOf("ref-width")>-1){let e=t.width;if(u.indexOf("left")>-1&&c.previousElementSibling&&(e=document.body.classList.contains("rtl")?c.previousElementSibling.getBoundingClientRect().right-t.left:t.right-c.previousElementSibling.getBoundingClientRect().left),u.indexOf("right")>-1){let n=c.parentNode.getBoundingClientRect();document.body.classList.contains("rtl")?(r=n.left,e=t.right-n.left):(r=window.innerWidth-n.right,e=n.right-t.left)}s["--x-select-dropdown-width"]=`${e}px`}let p=e&&e.current||a.current?function(e){let{top:t,left:n,width:r,height:o}=e.getBoundingClientRect(),i=function(e){return window.getComputedStyle(e).transform.split(/\(|,|\)/).slice(1,-1).map((function(e){return parseFloat(e)}))}(e);if(6==i.length){const e=i;let a=e[0]*e[3]-e[1]*e[2];return{width:r/e[0],height:o/e[3],left:(n*e[3]-t*e[2]+e[2]*e[5]-e[4]*e[3])/a,top:(-n*e[1]+t*e[0]+e[4]*e[1]-e[0]*e[5])/a}}return{top:t,left:n,width:r,height:o}}(e?e.current:a.current):{height:o};i+p.height>window.innerHeight&&t.top-15>p.height&&(l="top",i=window.innerHeight-t.bottom+t.height),i+p.height>window.innerHeight&&"bottom"===l&&(l="top",i=0)}return{yOffset:i,right:r,position:l,otherStyles:s}}),[l,t,n,n.current,e,a.current,o]);return{refreshPopover:c,styles:i({"--modal-y-offset":`${d}px`,"--modal-x-offset":`${p}px`},m),position:f,popoverProps:i({ref:e||a},f?{"data-position":f}:{})}}},6381:function(e,t,n){"use strict";n.d(t,{Z:function(){return b}});var r=n(1381),o=n(5697),i=n(5652),a=n(4184),l=n.n(a),s=n(4855);function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function u(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var p=function(e){let{picker:t,currentPalette:n,onChange:o}=e;const[i,a]=(0,r.useState)("__DEFAULT__"),l=t.id,{id:s,[l]:p}=n,d=(c(n,["id",l].map(u)),"__DEFAULT__"===i?n[t.id].variable||t.variableName:i);return(0,r.createElement)("input",{type:"text",value:`var(--${d})`,onFocus:function(e){e.target.select()},readOnly:!0,onChange:function(e){}})};const d=["id"];function f(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function m(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function h(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?m(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):m(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function g(e,t,n){return(t=v(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function v(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}var b=function(e){let{renderBefore:t=function(){return null},onChange:n,currentPalette:a,option:c,className:u,onClick:m,isActive:g,hasColorRemove:b=!0}=e;const[y,w]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:l()("ct-color-palette-preview",u,{active:g}),onClick:function(){m&&m()}},(0,r.createElement)("div",{className:"ct-single-palette"},t(),(0,r.createElement)(o.Z,{hasRevertButton:!1,onChange:function(e,t){"color"===e&&n(e,Object.keys(t).reduce((function(e,n){return h(h({},e),0===n.indexOf("color")?{[n]:t[n]}:{[n]:t[n]})}),{}))},value:{color:a},options:{color:h(h({type:"ct-color-picker",predefined:!0,design:"none",label:!1,modalClassName:"ct-color-palette-modal",value:a,afterPill:function(e){let{picker:t}=e;if(!c.palettes)return null;const o=c.palettes[0],{id:i}=o,l=f(o,d);return parseFloat(t.id.replace("color",""))<=Object.keys(l).length?null:b?(0,r.createElement)("i",{className:"ct-remove-color",onClick:function(){const e=t.id,{[e]:r}=a,o=f(a,[e].map(v));n("color",o),document.documentElement.style.removeProperty("--theme-palette-color-{picker.id.replace(\n\t\t\t\t\t\t\t\t\t\t\t\t\t'color',\n\t\t\t\t\t\t\t\t\t\t\t\t\t''\n\t\t\t\t\t\t\t\t\t\t\t\t)}")}},(0,r.createElement)("svg",{fill:"currentColor",viewBox:"0 0 35 35"},(0,r.createElement)("polygon",{points:"34.5,30.2 21.7,17.5 34.5,4.8 30.2,0.5 17.5,13.3 4.8,0.5 0.5,4.8 13.3,17.5 0.5,30.2 4.8,34.5 17.5,21.7 30.2,34.5 "}))):null},colorVariableName:function(e){let{picker:t}=e;return(0,r.createElement)("div",{className:"ct-option-color-variable"},(0,r.createElement)(p,{currentPalette:a,picker:t,onChange:n}),(0,r.createElement)(s.CopyToClipboard,{text:`--${t.variableName}`,onCopy:function(){w(t.variableName),setTimeout((function(){w(null)}),3e3)}},(0,r.createElement)("span",{className:l()("ct-copy-color",{copied:y===t.variableName}),"data-tooltip":"top"},(0,r.createElement)("svg",{width:"12",height:"12",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M20.7 7.6h-9.8c-1.8 0-3.3 1.5-3.3 3.3v9.8c0 1.8 1.5 3.3 3.3 3.3h9.8c1.8 0 3.3-1.5 3.3-3.3v-9.8c0-1.8-1.5-3.3-3.3-3.3zm1.1 13.1c0 .6-.5 1.1-1.1 1.1h-9.8c-.6 0-1.1-.5-1.1-1.1v-9.8c0-.6.5-1.1 1.1-1.1h9.8c.6 0 1.1.5 1.1 1.1v9.8zM5.5 15.3c0 .6-.5 1.1-1.1 1.1H3.3c-1.8 0-3.3-1.5-3.3-3.3V3.3C0 1.5 1.5 0 3.3 0h9.8c1.8 0 3.3 1.5 3.3 3.3v1.1c0 .6-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.1-1.1V3.3c0-.6-.5-1.1-1.1-1.1H3.3c-.6 0-1.1.5-1.1 1.1v9.8c0 .6.5 1.1 1.1 1.1h1.1c.6 0 1.1.5 1.1 1.1z"})),(0,r.createElement)("i",{className:"ct-tooltip"},y===t.variableName?(0,i.__)("Copied","blocksy"):(0,i.__)("Copy","blocksy")))))}},n?{}:{skipModal:!0}),{},{pickers:Object.keys(a).filter((function(e){return 0===e.indexOf("color")})).map((function(e,t){return{title:(0,i.sprintf)((0,i.__)("Color %s","blocksy"),e.replace("color","")),variableName:"theme-palette-color-"+e.replace("color",""),id:e}}))})}})))}},9154:function(e,t,n){"use strict";n.d(t,{Z:function(){return le}});var r=n(1381),o=n(8441),i=n(5652),a=n(4184),l=n.n(a),s={grad:.9,turn:360,rad:360/(2*Math.PI)},c=function(e){return"string"==typeof e?e.length>0:"number"==typeof e},u=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=Math.pow(10,t)),Math.round(n*e)/n+0},p=function(e,t,n){return void 0===t&&(t=0),void 0===n&&(n=1),e>n?n:e>t?e:t},d=function(e){return(e=isFinite(e)?e%360:0)>0?e:e+360},f=function(e){return{r:p(e.r,0,255),g:p(e.g,0,255),b:p(e.b,0,255),a:p(e.a)}},m=function(e){return{r:u(e.r),g:u(e.g),b:u(e.b),a:u(e.a,3)}},h=/^#([0-9a-f]{3,8})$/i,g=function(e){var t=e.toString(16);return t.length<2?"0"+t:t},v=function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=Math.max(t,n,r),a=i-Math.min(t,n,r),l=a?i===t?(n-r)/a:i===n?2+(r-t)/a:4+(t-n)/a:0;return{h:60*(l<0?l+6:l),s:i?a/i*100:0,v:i/255*100,a:o}},b=function(e){var t=e.h,n=e.s,r=e.v,o=e.a;t=t/360*6,n/=100,r/=100;var i=Math.floor(t),a=r*(1-n),l=r*(1-(t-i)*n),s=r*(1-(1-t+i)*n),c=i%6;return{r:255*[r,l,a,a,s,r][c],g:255*[s,r,r,l,a,a][c],b:255*[a,a,s,r,r,l][c],a:o}},y=function(e){return{h:d(e.h),s:p(e.s,0,100),l:p(e.l,0,100),a:p(e.a)}},w=function(e){return{h:u(e.h),s:u(e.s),l:u(e.l),a:u(e.a,3)}},O=function(e){return b((n=(t=e).s,{h:t.h,s:(n*=((r=t.l)<50?r:100-r)/100)>0?2*n/(r+n)*100:0,v:r+n,a:t.a}));var t,n,r},_=function(e){return{h:(t=v(e)).h,s:(o=(200-(n=t.s))*(r=t.v)/100)>0&&o<200?n*r/100/(o<=100?o:200-o)*100:0,l:o/2,a:t.a};var t,n,r,o},E=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s*,\s*([+-]?\d*\.?\d+)%\s*,\s*([+-]?\d*\.?\d+)%\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,P=/^hsla?\(\s*([+-]?\d*\.?\d+)(deg|rad|grad|turn)?\s+([+-]?\d*\.?\d+)%\s+([+-]?\d*\.?\d+)%\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,S=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*,\s*([+-]?\d*\.?\d+)(%)?\s*(?:,\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,j=/^rgba?\(\s*([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s+([+-]?\d*\.?\d+)(%)?\s*(?:\/\s*([+-]?\d*\.?\d+)(%)?\s*)?\)$/i,C={string:[[function(e){var t=h.exec(e);return t?(e=t[1]).length<=4?{r:parseInt(e[0]+e[0],16),g:parseInt(e[1]+e[1],16),b:parseInt(e[2]+e[2],16),a:4===e.length?u(parseInt(e[3]+e[3],16)/255,2):1}:6===e.length||8===e.length?{r:parseInt(e.substr(0,2),16),g:parseInt(e.substr(2,2),16),b:parseInt(e.substr(4,2),16),a:8===e.length?u(parseInt(e.substr(6,2),16)/255,2):1}:null:null},"hex"],[function(e){var t=S.exec(e)||j.exec(e);return t?t[2]!==t[4]||t[4]!==t[6]?null:f({r:Number(t[1])/(t[2]?100/255:1),g:Number(t[3])/(t[4]?100/255:1),b:Number(t[5])/(t[6]?100/255:1),a:void 0===t[7]?1:Number(t[7])/(t[8]?100:1)}):null},"rgb"],[function(e){var t=E.exec(e)||P.exec(e);if(!t)return null;var n,r,o=y({h:(n=t[1],r=t[2],void 0===r&&(r="deg"),Number(n)*(s[r]||1)),s:Number(t[3]),l:Number(t[4]),a:void 0===t[5]?1:Number(t[5])/(t[6]?100:1)});return O(o)},"hsl"]],object:[[function(e){var t=e.r,n=e.g,r=e.b,o=e.a,i=void 0===o?1:o;return c(t)&&c(n)&&c(r)?f({r:Number(t),g:Number(n),b:Number(r),a:Number(i)}):null},"rgb"],[function(e){var t=e.h,n=e.s,r=e.l,o=e.a,i=void 0===o?1:o;if(!c(t)||!c(n)||!c(r))return null;var a=y({h:Number(t),s:Number(n),l:Number(r),a:Number(i)});return O(a)},"hsl"],[function(e){var t=e.h,n=e.s,r=e.v,o=e.a,i=void 0===o?1:o;if(!c(t)||!c(n)||!c(r))return null;var a=function(e){return{h:d(e.h),s:p(e.s,0,100),v:p(e.v,0,100),a:p(e.a)}}({h:Number(t),s:Number(n),v:Number(r),a:Number(i)});return b(a)},"hsv"]]},x=function(e,t){for(var n=0;n<t.length;n++){var r=t[n][0](e);if(r)return[r,t[n][1]]}return[null,void 0]},k=function(e){return"string"==typeof e?x(e.trim(),C.string):"object"==typeof e&&null!==e?x(e,C.object):[null,void 0]},I=function(e,t){var n=_(e);return{h:n.h,s:p(n.s+100*t,0,100),l:n.l,a:n.a}},D=function(e){return(299*e.r+587*e.g+114*e.b)/1e3/255},N=function(e,t){var n=_(e);return{h:n.h,s:n.s,l:p(n.l+100*t,0,100),a:n.a}},T=function(){function e(e){this.parsed=k(e)[0],this.rgba=this.parsed||{r:0,g:0,b:0,a:1}}return e.prototype.isValid=function(){return null!==this.parsed},e.prototype.brightness=function(){return u(D(this.rgba),2)},e.prototype.isDark=function(){return D(this.rgba)<.5},e.prototype.isLight=function(){return D(this.rgba)>=.5},e.prototype.toHex=function(){return t=(e=m(this.rgba)).r,n=e.g,r=e.b,i=(o=e.a)<1?g(u(255*o)):"","#"+g(t)+g(n)+g(r)+i;var e,t,n,r,o,i},e.prototype.toRgb=function(){return m(this.rgba)},e.prototype.toRgbString=function(){return t=(e=m(this.rgba)).r,n=e.g,r=e.b,(o=e.a)<1?"rgba("+t+", "+n+", "+r+", "+o+")":"rgb("+t+", "+n+", "+r+")";var e,t,n,r,o},e.prototype.toHsl=function(){return w(_(this.rgba))},e.prototype.toHslString=function(){return t=(e=w(_(this.rgba))).h,n=e.s,r=e.l,(o=e.a)<1?"hsla("+t+", "+n+"%, "+r+"%, "+o+")":"hsl("+t+", "+n+"%, "+r+"%)";var e,t,n,r,o},e.prototype.toHsv=function(){return e=v(this.rgba),{h:u(e.h),s:u(e.s),v:u(e.v),a:u(e.a,3)};var e},e.prototype.invert=function(){return A({r:255-(e=this.rgba).r,g:255-e.g,b:255-e.b,a:e.a});var e},e.prototype.saturate=function(e){return void 0===e&&(e=.1),A(I(this.rgba,e))},e.prototype.desaturate=function(e){return void 0===e&&(e=.1),A(I(this.rgba,-e))},e.prototype.grayscale=function(){return A(I(this.rgba,-1))},e.prototype.lighten=function(e){return void 0===e&&(e=.1),A(N(this.rgba,e))},e.prototype.darken=function(e){return void 0===e&&(e=.1),A(N(this.rgba,-e))},e.prototype.rotate=function(e){return void 0===e&&(e=15),this.hue(this.hue()+e)},e.prototype.alpha=function(e){return"number"==typeof e?A({r:(t=this.rgba).r,g:t.g,b:t.b,a:e}):u(this.rgba.a,3);var t},e.prototype.hue=function(e){var t=_(this.rgba);return"number"==typeof e?A({h:e,s:t.s,l:t.l,a:t.a}):u(t.h)},e.prototype.isEqual=function(e){return this.toHex()===A(e).toHex()},e}(),A=function(e){return e instanceof T?e:new T(e)};const R=function(e){const t=A(e);return t.parsed?"#"===e[0]&&e.length<=7||1===t.rgba.a?e:t.toRgbString():e};var M=n(8519),L=n(4855);const B=function(e){if(-1===e.indexOf("var(--"))return e;const t=e.replace(/var\(/,"").replace(/\)/,"").trim(),n=getComputedStyle(document.documentElement).getPropertyValue(t);if(n)return n.trim().replace(/\s/g,"");const r=document.querySelector("#customize-preview iframe");if(r&&r.contentDocument.querySelector("body")){const t=r.contentDocument.createElement("div");t.style.borderColor=e,r.contentDocument.querySelector("body").append(t);const n=r.contentWindow.getComputedStyle(t),o=n.getPropertyValue("border-color");if(o&&o!==n.getPropertyValue("color"))return t.remove(),o.trim().replace(/\s/g,"");t.remove()}return e},F=["color"];function z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function V(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?z(Object(n),!0).forEach((function(t){U(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function U(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function H(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var W=function(e){let{option:t,picker:n,onChange:a,value:s,value:{color:c}}=e;H(e.value,F);const[u,p]=(0,r.useState)(!1),d=(0,r.useMemo)((function(){return B(c)}),[c]);return(0,r.createElement)("div",{className:"ct-gutenberg-color-picker"},(0,r.createElement)(o.ColorPicker,{color:d,enableAlpha:!0,onChange:function(e){a(V(V({},s),{},{color:R(e)}))}}),(0,r.createElement)("div",{className:"ct-option-color-value"},(0,r.createElement)(M.Z,{value:R(c),onChange:function(e){a(V(V({},s),{},{color:R(e)}))},propertyToCheckAgainst:"color"}),(0,r.createElement)(L.CopyToClipboard,{text:R(c),onCopy:function(){p(!0),setTimeout((function(){p(null)}),3e3)}},(0,r.createElement)("span",{className:l()("ct-copy-color",{copied:u}),"data-tooltip":"top"},(0,r.createElement)("svg",{width:"12",height:"12",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M20.7 7.6h-9.8c-1.8 0-3.3 1.5-3.3 3.3v9.8c0 1.8 1.5 3.3 3.3 3.3h9.8c1.8 0 3.3-1.5 3.3-3.3v-9.8c0-1.8-1.5-3.3-3.3-3.3zm1.1 13.1c0 .6-.5 1.1-1.1 1.1h-9.8c-.6 0-1.1-.5-1.1-1.1v-9.8c0-.6.5-1.1 1.1-1.1h9.8c.6 0 1.1.5 1.1 1.1v9.8zM5.5 15.3c0 .6-.5 1.1-1.1 1.1H3.3c-1.8 0-3.3-1.5-3.3-3.3V3.3C0 1.5 1.5 0 3.3 0h9.8c1.8 0 3.3 1.5 3.3 3.3v1.1c0 .6-.5 1.1-1.1 1.1-.6 0-1.1-.5-1.1-1.1V3.3c0-.6-.5-1.1-1.1-1.1H3.3c-.6 0-1.1.5-1.1 1.1v9.8c0 .6.5 1.1 1.1 1.1h1.1c.6 0 1.1.5 1.1 1.1z"})),(0,r.createElement)("i",{className:"ct-tooltip"},u?(0,i.__)("Copied","blocksy"):(0,i.__)("Copy","blocksy"))))),t.colorVariableName&&t.colorVariableName({picker:n}))},G=n(2932);function $(){return $=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},$.apply(this,arguments)}function q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Z(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?q(Object(n),!0).forEach((function(t){K(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function K(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const Y=function(e){return e.noColorTransparent?"transparent":"CT_CSS_SKIP_RULE"};var X=function(e){let{containerRef:t,el:n,value:o,picker:a,onChange:s,option:c,style:u,wrapperProps:p={},inline_modal:d,appendToBody:f,inheritValue:m}=e;const h=(0,r.useRef)();(0,r.useEffect)((function(){if(!h.current){h.current=(window.ct_customizer_localizations||window.ct_localizations).current_palette.map((function(e){return e.replace("color","theme-palette-color-")}));const e=Object.values(Z({},document.documentElement.style));e.includes("--theme-palette-color-1")&&(h.current=e.filter((function(e){return e.includes("--theme-palette-color")})).map((function(e){return e.replace("--","")})))}}),[]);const g=(0,r.useMemo)((function(){return o.color===Y(c)?{color:"",key:"empty"}:(o.color||"").indexOf(Y(c))>-1?{key:"",color:""}:(o.color||"").indexOf(Y(c))>-1&&a.inherit?{key:"picker"+m,color:B(m)}:(o.color||"").indexOf("var")>-1?{key:"var"+o.color,color:o.color}:{key:"color",color:o.color}}),[o,c,a,m]);let v=o.color;(o.color||"").indexOf(Y(c))>-1&&a.inherit&&(v=m);const b=(0,r.useMemo)((function(){return p.ref&&p.ref.current&&n&&function(e,t){if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.firstElementChild.getBoundingClientRect()).left+t.width/2-r-6+"px"}}(p.ref.current,n.current)}),[p.ref&&p.ref.current,n&&n.current]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",$({tabIndex:"0",className:l()("ct-color-picker-modal",{"ct-option-modal":!d&&f},c.modalClassName),style:Z(Z({},b),u||{})},p),(0,r.createElement)(W,{onChange:function(e){return s(e)},option:c,picker:a,value:Z(Z({},o),{},{color:g.color})}),!c.predefined&&(0,r.createElement)("div",{className:"ct-color-picker-palette"},(h.current||[]).map((function(e){return(0,r.createElement)("span",{key:e,style:{background:`var(--${e})`},className:l()({active:v===`var(--${e})`}),"data-tooltip":"top",onClick:function(){return s(Z(Z({},o),{},{color:`var(--${e})`}))}},(0,r.createElement)("i",{className:"ct-tooltip"},(0,i.sprintf)((0,i.__)("Color %s","blocksy"),e.replace("theme-palette-color-",""))))})))))},J=n(4823),Q=n(3431),ee=n.n(Q),te=n(5529),ne=n(1511);function re(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function oe(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?re(Object(n),!0).forEach((function(t){ie(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):re(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ie(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ae=function(e,t,n,r){if("string"==typeof e.inherit){if(e.inherit.indexOf("self")>-1){const o=(t.responsive?n[t.id][r]:n[t.id])||t.value,i=e.inherit.split(":")[1];let a=o[i].color;return a.indexOf("CT_CSS_SKIP_RULE")>-1&&(a=t.pickers.find((function(e){let{id:t}=e;return t===i})).inherit),{background:a||""}}return{background:e.inherit}}let o=Object.keys(e.inherit).reduce((function(t,r){return t||((0,te.Nj)((0,te.KY)(e.inherit[r]),"global"===e.inherit_source?Object.keys(e.inherit[r]).reduce((function(e,t){return oe(oe({},e),{},{[t]:wp.customize(t)()})}),{}):n)?r:t)}),null);return o?{background:o}:{}};var le=function(e){let{option:t,value:n,onChange:o,picker:a,onPickingChange:s,stopTransitioning:c,onOutsideClick:u,innerRef:p,containerRef:d,modalRef:f,isTransitioning:m,isPicking:h,values:g,device:v}=e;const b=(0,r.useRef)(),{appendToBody:y=!0}=t,{refreshPopover:w,styles:O,popoverProps:_}=(0,G.Z)({contentRef:f,ref:b||{},defaultHeight:379,shouldCalculate:!t.inline_modal||y});if(t.inline_modal)return(0,r.createElement)(X,{containerRef:d,option:t,onChange:o,picker:a,value:n,inline_modal:!!t.inline_modal});let E=null;return m!==a.id&&(h||"").split(":")[0]!==a.id||(E=(0,r.createPortal)((0,r.createElement)(J.uT,{items:h,onRest:function(){return c()},config:{duration:100,easing:ee()(.25,.1,.25,1)},from:-1===(h||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(h||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(h||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(function(e){return(e||"").split(":")[0]===a.id&&function(e){return(0,r.createElement)(X,{style:oe(oe({},e),y?O:{}),option:t,onChange:o,picker:a,value:n,el:b,inheritValue:a.inherit?ae(a,t,g,v).background:"",wrapperProps:y?_:{ref:f},appendToBody:y})}})),y?document.body:b.current.closest("section").parentNode)),(0,r.createElement)(ne.default,{useCapture:!1,display:"inline-block",disabled:!h,wrapperProps:{ref:function(e){b.current=e,p&&(p.current=e)}},additionalRefs:[f],onOutsideClick:function(e){b.current.closest(".ct-color-picker-container")===e.target.closest(".ct-color-picker-container")&&(e.target.closest(".ct-color-picker-single")||e.target.matches(".ct-color-picker-single"))||u(e)},className:l()("ct-color-picker-single",{})},(0,r.createElement)("span",{tabIndex:"0"},(0,r.createElement)("span",{tabIndex:"0",className:l()({"ct-no-color":(n||{}).color===Y(t),"ct-color-inherit":(n||{color:""}).color.indexOf("INHERIT")>-1}),onClick:function(e){if(t.skipModal)return;e.stopPropagation(),w();let n=h?h.split(":")[0]===a.id?null:`${a.id}:${h.split(":")[0]}`:a.id;s(n)},"data-tooltip":"top",style:-1===((n||{}).color||"").indexOf(Y(t))?{background:B((n||{}).color)}:oe({},a.inherit&&(n||{}).color!==Y(t)?ae(a,t,g,v):{})},(0,r.createElement)("i",{className:"ct-tooltip"},(n||{color:""}).color.indexOf("INHERIT")>-1?(0,i.__)("Inherited","blocksy"):a.title),(n||{color:""}).color.indexOf("INHERIT")>-1&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"})))),t.afterPill&&t.afterPill({picker:a}),E)}},9231:function(e,t,n){"use strict";n.r(t),n.d(t,{LayersContext:function(){return ye},default:function(){return Se}});var r=n(1381),o=n(4184),i=n.n(o),a=n(7462);function l(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n<t;n++)r[n]=e[n];return r}function s(e,t){if(e){if("string"==typeof e)return l(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);return"Object"===n&&e.constructor&&(n=e.constructor.name),"Map"===n||"Set"===n?Array.from(e):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?l(e,t):void 0}}function c(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var r,o,i,a,l=[],s=!0,c=!1;try{if(i=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;s=!1}else for(;!(s=(r=i.call(n)).done)&&(l.push(r.value),l.length!==t);s=!0);}catch(e){c=!0,o=e}finally{try{if(!s&&null!=n.return&&(a=n.return(),Object(a)!==a))return}finally{if(c)throw o}}return l}}(e,t)||s(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}var u=n(4942);function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?Object(arguments[t]):{},r=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&r.push.apply(r,Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable}))),r.forEach((function(t){(0,u.Z)(e,t,n[t])}))}return e}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=n(9142);function m(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,(0,f.Z)(r.key),r)}}function h(e,t,n){return t&&m(e.prototype,t),n&&m(e,n),Object.defineProperty(e,"prototype",{writable:!1}),e}var g=n(1002),v=n(7326);function b(e,t){if(t&&("object"===(0,g.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return(0,v.Z)(e)}function y(e){return y=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},y(e)}var w=n(9611);function O(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&(0,w.Z)(e,t)}var _=n(7363),E=n(1581),P=n.n(E),S=n(1533),j=n(1143),C=n.n(j);function x(e){return function(e){if(Array.isArray(e))return l(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||s(e)||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.")}()}var k=function(){function e(){d(this,e),(0,u.Z)(this,"refs",{})}return h(e,[{key:"add",value:function(e,t){this.refs[e]||(this.refs[e]=[]),this.refs[e].push(t)}},{key:"remove",value:function(e,t){var n=this.getIndex(e,t);-1!==n&&this.refs[e].splice(n,1)}},{key:"isActive",value:function(){return this.active}},{key:"getActive",value:function(){var e=this;return this.refs[this.active.collection].find((function(t){return t.node.sortableInfo.index==e.active.index}))}},{key:"getIndex",value:function(e,t){return this.refs[e].indexOf(t)}},{key:"getOrderedRefs",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.active.collection;return this.refs[e].sort(I)}}]),e}();function I(e,t){return e.node.sortableInfo.index-t.node.sortableInfo.index}function D(e,t){return Object.keys(e).reduce((function(n,r){return-1===t.indexOf(r)&&(n[r]=e[r]),n}),{})}var N={end:["touchend","touchcancel","mouseup"],move:["touchmove","mousemove"],start:["touchstart","mousedown"]},T=function(){if("undefined"==typeof window||"undefined"==typeof document)return"";var e=window.getComputedStyle(document.documentElement,"")||["-moz-hidden-iframe"],t=(Array.prototype.slice.call(e).join("").match(/-(moz|webkit|ms)-/)||""===e.OLink&&["","o"])[1];return"ms"===t?"ms":t&&t.length?t[0].toUpperCase()+t.substr(1):""}();function A(e,t){Object.keys(t).forEach((function(n){e.style[n]=t[n]}))}function R(e,t){e.style["".concat(T,"Transform")]=null==t?"":"translate3d(".concat(t.x,"px,").concat(t.y,"px,0)")}function M(e,t){e.style["".concat(T,"TransitionDuration")]=null==t?"":"".concat(t,"ms")}function L(e,t){for(;e;){if(t(e))return e;e=e.parentNode}return null}function B(e,t,n){return Math.max(e,Math.min(n,t))}function F(e){return"px"===e.substr(-2)?parseFloat(e):0}function z(e,t){var n=t.displayName||t.name;return n?"".concat(e,"(").concat(n,")"):e}function V(e,t){var n=e.getBoundingClientRect();return{top:n.top+t.top,left:n.left+t.left}}function U(e){return e.touches&&e.touches.length?{x:e.touches[0].pageX,y:e.touches[0].pageY}:e.changedTouches&&e.changedTouches.length?{x:e.changedTouches[0].pageX,y:e.changedTouches[0].pageY}:{x:e.pageX,y:e.pageY}}function H(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{left:0,top:0};if(e){var r={left:n.left+e.offsetLeft,top:n.top+e.offsetTop};return e.parentNode===t?r:H(e.parentNode,t,r)}}function W(e){var t=e.lockOffset,n=e.width,r=e.height,o=t,i=t,a="px";if("string"==typeof t){var l=/^[+-]?\d*(?:\.\d*)?(px|%)$/.exec(t);C()(null!==l,'lockOffset value should be a number or a string of a number followed by "px" or "%". Given %s',t),o=parseFloat(t),i=parseFloat(t),a=l[1]}return C()(isFinite(o)&&isFinite(i),"lockOffset value should be a finite. Given %s",t),"%"===a&&(o=o*n/100,i=i*r/100),{x:o,y:i}}function G(e){return e instanceof HTMLElement?function(e){var t=window.getComputedStyle(e),n=/(auto|scroll)/;return["overflow","overflowX","overflowY"].find((function(e){return n.test(t[e])}))}(e)?e:G(e.parentNode):null}var $=27,q=32,Z=37,K=38,Y=39,X=40,J={Anchor:"A",Button:"BUTTON",Canvas:"CANVAS",Input:"INPUT",Option:"OPTION",Textarea:"TEXTAREA",Select:"SELECT"};function Q(e){return null!=e.sortableHandle}var ee=function(){function e(t,n){d(this,e),this.container=t,this.onScrollCallback=n}return h(e,[{key:"clear",value:function(){null!=this.interval&&(clearInterval(this.interval),this.interval=null)}},{key:"update",value:function(e){var t=this,n=e.translate,r=e.minTranslate,o=e.maxTranslate,i=e.width,a=e.height,l={x:0,y:0},s={x:1,y:1},c=10,u=10,p=this.container,d=p.scrollTop,f=p.scrollLeft,m=p.scrollHeight,h=p.scrollWidth,g=0===d,v=m-d-p.clientHeight==0,b=0===f,y=h-f-p.clientWidth==0;n.y>=o.y-a/2&&!v?(l.y=1,s.y=u*Math.abs((o.y-a/2-n.y)/a)):n.x>=o.x-i/2&&!y?(l.x=1,s.x=c*Math.abs((o.x-i/2-n.x)/i)):n.y<=r.y+a/2&&!g?(l.y=-1,s.y=u*Math.abs((n.y-a/2-r.y)/a)):n.x<=r.x+i/2&&!b&&(l.x=-1,s.x=c*Math.abs((n.x-i/2-r.x)/i)),this.interval&&(this.clear(),this.isAutoScrolling=!1),0===l.x&&0===l.y||(this.interval=setInterval((function(){t.isAutoScrolling=!0;var e={left:s.x*l.x,top:s.y*l.y};t.container.scrollTop+=e.top,t.container.scrollLeft+=e.left,t.onScrollCallback(e)}),5))}}]),e}();var te={axis:P().oneOf(["x","y","xy"]),contentWindow:P().any,disableAutoscroll:P().bool,distance:P().number,getContainer:P().func,getHelperDimensions:P().func,helperClass:P().string,helperContainer:P().oneOfType([P().func,"undefined"==typeof HTMLElement?P().any:P().instanceOf(HTMLElement)]),hideSortableGhost:P().bool,keyboardSortingTransitionDuration:P().number,lockAxis:P().string,lockOffset:P().oneOfType([P().number,P().string,P().arrayOf(P().oneOfType([P().number,P().string]))]),lockToContainerEdges:P().bool,onSortEnd:P().func,onSortMove:P().func,onSortOver:P().func,onSortStart:P().func,pressDelay:P().number,pressThreshold:P().number,keyCodes:P().shape({lift:P().arrayOf(P().number),drop:P().arrayOf(P().number),cancel:P().arrayOf(P().number),up:P().arrayOf(P().number),down:P().arrayOf(P().number)}),shouldCancelStart:P().func,transitionDuration:P().number,updateBeforeSortStart:P().func,useDragHandle:P().bool,useWindowAsScrollContainer:P().bool},ne={lift:[q],drop:[q],cancel:[$],up:[K,Z],down:[X,Y]},re={axis:"y",disableAutoscroll:!1,distance:0,getHelperDimensions:function(e){var t=e.node;return{height:t.offsetHeight,width:t.offsetWidth}},hideSortableGhost:!0,lockOffset:"50%",lockToContainerEdges:!1,pressDelay:0,pressThreshold:5,keyCodes:ne,shouldCancelStart:function(e){return-1!==[J.Input,J.Textarea,J.Select,J.Option,J.Button].indexOf(e.target.tagName)||!!L(e.target,(function(e){return"true"===e.contentEditable}))},transitionDuration:300,useWindowAsScrollContainer:!1},oe=Object.keys(te);var ie={index:P().number.isRequired,collection:P().oneOfType([P().number,P().string]),disabled:P().bool},ae=Object.keys(ie);var le=n(454),se=n.n(le),ce=n(5652),ue=n(5697),pe=n(7686),de=n(1496),fe=n.n(de);function me(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function he(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?me(Object(n),!0).forEach((function(t){ge(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):me(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ge(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const ve=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return d(this,n),b(this,y(n).apply(this,arguments))}return O(n,t),h(n,[{key:"componentDidMount",value:function(){(0,S.findDOMNode)(this).sortableHandle=!0}},{key:"getWrappedInstance",value:function(){return C()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableHandle() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return(0,_.createElement)(e,(0,a.default)({ref:t},this.props))}}]),n}(_.Component),(0,u.Z)(t,"displayName",z("sortableHandle",e)),n}((function(e){let{items:t,onChange:n,value:o}=e;const{removeForId:i,addForId:a,option:l,toggleOptionsPanel:s}=(0,r.useContext)(ye);return(0,r.createElement)("div",{className:"ct-layer-controls"},(0,r.createElement)("button",{type:"button",className:"ct-visibility",onClick:function(e){e.stopPropagation(),n(t.map((function(e){return e.__id===o.__id?he(he({},e),{},{enabled:!he({enabled:!0},e).enabled}):e})))}},(0,r.createElement)("svg",{width:"13px",height:"13px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{className:"ct-seen",d:"m.9 13.5 1 .5s.1-.1.1-.2c.1-.2.2-.4.5-.7.4-.6 1-1.4 1.9-2.2C6 9.2 8.5 7.6 12 7.6s6 1.6 7.7 3.2c.8.8 1.5 1.6 1.9 2.2.2.3.4.5.5.7 0 .1.1.1.1.2l.9-.5.9-.5v-.1c0-.1-.1-.1-.1-.2-.1-.2-.3-.5-.5-.8-.5-.7-1.2-1.6-2.2-2.5-1.9-1.9-5-3.7-9.1-3.7S4.9 7.5 3 9.3c-1 .9-1.7 1.9-2.2 2.5-.2.3-.4.6-.5.8-.1.1-.1.2-.1.2L0 13c0 .1 0 .1.9.5zM12 17.7c2.7 0 4.8-2.2 4.8-4.8S14.7 8 12 8s-4.8 2.2-4.8 4.8 2.1 4.9 4.8 4.9z"}),(0,r.createElement)("path",{className:"ct-unseen",d:"M16.8 12.8c0 2.7-2.2 4.8-4.8 4.8-.6 0-1.2-.1-1.8-.4L15.1 9c1 1 1.7 2.3 1.7 3.8zm7.2.3c0-.1 0-.1 0 0-.1-.2-.1-.2-.2-.3-.1-.2-.3-.5-.5-.8-.5-.7-1.2-1.6-2.2-2.5-1.1-1.1-2.6-2.1-4.5-2.9l-1.1 1.8c1.7.6 3.1 1.6 4.1 2.6.8.8 1.5 1.6 1.9 2.2.2.3.4.5.5.7 0 .1.1.1.1.2l.9-.5 1-.5zM16.2 1.4l-2.5 4.3c-.5-.1-1.1-.1-1.7-.1-4.1 0-7.2 1.9-9.1 3.7-1 .9-1.7 1.9-2.2 2.5-.2.3-.4.6-.5.8-.1.1-.1.2-.1.2L0 13l.9.5 1 .5s.1-.1.1-.2c.1-.2.2-.4.5-.7.4-.6 1-1.4 1.9-2.2C6 9.2 8.5 7.6 12 7.6h.5l-.2.4H12c-2.7 0-4.8 2.2-4.8 4.8 0 .9.3 1.8.7 2.6l-3.2 5.4 1.3.7L17.5 2.1l-1.3-.7z"}))),(0,r.createElement)("div",{className:"ct-layer-label"},(0,r.createElement)("span",null,window._.template(l["preview-template"])(o))),(0,r.createElement)("button",{type:"button",className:"ct-clone","data-tooltip":"top",onClick:function(){return a(o)}},(0,r.createElement)("svg",{width:"10px",height:"10px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M23,24H7.7c-0.6,0-1-0.4-1-1V7.7c0-0.6,0.4-1,1-1H23c0.6,0,1,0.4,1,1V23C24,23.6,23.6,24,23,24z M8.7,22H22V8.7 H8.7V22z"}),(0,r.createElement)("path",{d:"M17.3,16.3c0,0.6-0.4,1-1,1H1c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1h15.3c0.6,0,1,0.4,1,1V16.3z"})),(0,r.createElement)("i",{className:"ct-tooltip"},(0,ce.__)("Clone Item","blocksy"))),(0,r.createElement)("button",{type:"button",className:"ct-remove",onClick:function(){return i(o.__id)}},(0,r.createElement)("svg",{width:"8px",height:"8px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"m12 14.7 9.3 9.3 2.7-2.7-9.3-9.3L24 2.7 21.3 0 12 9.3 2.7 0 0 2.7 9.3 12 0 21.3 2.7 24l9.3-9.3z"}))),l["inner-options"]&&(0,r.createElement)("button",{type:"button",className:"ct-toggle",onMouseDown:function(e){e.stopPropagation()},onClick:function(e){e.stopPropagation(),s(o.__id)}},(0,r.createElement)("svg",{width:"9px",height:"9px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{className:"ct-arrow-down",d:"M12 21.7 0 10.8l2.3-2.5 9.7 8.9 9.7-8.9 2.3 2.5z"}),(0,r.createElement)("path",{className:"ct-arrow-up",d:"M12 5.3 0 16.2l2.3 2.5L12 9.8l9.7 8.9 2.3-2.5z"}))))})),be=function(e){return e.map((function(e){return he(he({},e),e.__id?{}:{__id:fe()()})}))},ye=(0,r.createContext)({currentlyPickedItem:null,isDragging:!1,isOpen:!1}),{Provider:we,Consumer:Oe}=ye;class _e extends r.Component{constructor(){super(...arguments),ge(this,"state",{isOpen:!1})}render(){const{value:e,items:t,onChange:n}=this.props;return(0,r.createElement)(Oe,null,(function(o){let{option:a,isDragging:l,isOpen:s,parentValue:c}=o;return(0,r.createElement)("li",{className:i()("ct-layer",a.itemClass,{"ct-disabled":!he({enabled:!0},e).enabled,"ct-active":s===e.__id&&(!l||l&&l!==s)})},(0,r.createElement)(ve,{items:t,onChange:n,value:e}),s===e.__id&&(!l||l&&l!==s)&&(0,r.createElement)("div",{className:"ct-layer-content"},(0,r.createElement)(ue.Z,{hasRevertButton:!1,parentValue:c,onChange:function(r,o){n(t.map((function(t){return t.__id===e.__id?he(he({},t),{},{[r]:o}):t})))},value:(0,pe.n6)(a["inner-options"],he(he({},a.value.filter((function(t){let{id:n}=t;return n===e.id})).length>1?a.value.filter((function(t){let{id:n}=t;return e.id===n}))[t.filter((function(t){let{id:n}=t;return n===e.id})).map((function(e){let{__id:t}=e;return t})).indexOf(e.__id)]:{}),e)),options:a["inner-options"]})))}))}}const Ee=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(){return d(this,n),b(this,y(n).apply(this,arguments))}return O(n,t),h(n,[{key:"componentDidMount",value:function(){this.register()}},{key:"componentDidUpdate",value:function(e){this.node&&(e.index!==this.props.index&&(this.node.sortableInfo.index=this.props.index),e.disabled!==this.props.disabled&&(this.node.sortableInfo.disabled=this.props.disabled)),e.collection!==this.props.collection&&(this.unregister(e.collection),this.register())}},{key:"componentWillUnmount",value:function(){this.unregister()}},{key:"register",value:function(){var e=this.props,t=e.collection,n=e.disabled,r=e.index,o=(0,S.findDOMNode)(this);o.sortableInfo={collection:t,disabled:n,index:r,manager:this.context.manager},this.node=o,this.ref={node:o},this.context.manager.add(t,this.ref)}},{key:"unregister",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.props.collection;this.context.manager.remove(e,this.ref)}},{key:"getWrappedInstance",value:function(){return C()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableElement() call"),this.refs.wrappedInstance}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return(0,_.createElement)(e,(0,a.default)({ref:t},D(this.props,ae)))}}]),n}(_.Component),(0,u.Z)(t,"displayName",z("sortableElement",e)),(0,u.Z)(t,"contextTypes",{manager:P().object.isRequired}),(0,u.Z)(t,"propTypes",ie),(0,u.Z)(t,"defaultProps",{collection:0}),n}(_e),Pe=function(e){var t,n,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{withRef:!1};return n=t=function(t){function n(e){var t;return d(this,n),t=b(this,y(n).call(this,e)),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"state",{}),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleStart",(function(e){var n=t.props,r=n.distance,o=n.shouldCancelStart;if(2!==e.button&&!o(e)){t.touched=!0,t.position=U(e);var i=L(e.target,(function(e){return null!=e.sortableInfo}));if(i&&i.sortableInfo&&t.nodeIsChild(i)&&!t.state.sorting){var a=t.props.useDragHandle,l=i.sortableInfo,s=l.index,c=l.collection;if(l.disabled)return;if(a&&!L(e.target,Q))return;t.manager.active={collection:c,index:s},function(e){return e.touches&&e.touches.length||e.changedTouches&&e.changedTouches.length}(e)||e.target.tagName!==J.Anchor||e.preventDefault(),r||(0===t.props.pressDelay?t.handlePress(e):t.pressTimer=setTimeout((function(){return t.handlePress(e)}),t.props.pressDelay))}}})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"nodeIsChild",(function(e){return e.sortableInfo.manager===t.manager})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleMove",(function(e){var n=t.props,r=n.distance,o=n.pressThreshold;if(!t.state.sorting&&t.touched&&!t._awaitingUpdateBeforeSortStart){var i=U(e),a={x:t.position.x-i.x,y:t.position.y-i.y},l=Math.abs(a.x)+Math.abs(a.y);t.delta=a,r||o&&!(l>=o)?r&&l>=r&&t.manager.isActive()&&t.handlePress(e):(clearTimeout(t.cancelTimer),t.cancelTimer=setTimeout(t.cancel,0))}})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleEnd",(function(){t.touched=!1,t.cancel()})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"cancel",(function(){var e=t.props.distance;t.state.sorting||(e||clearTimeout(t.pressTimer),t.manager.active=null)})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handlePress",(function(e){try{var n=t.manager.getActive(),r=function(){if(n){var r=function(){var n,r,o,c,g,v,b=f.sortableInfo.index,y=(n=f,{bottom:F((r=window.getComputedStyle(n)).marginBottom),left:F(r.marginLeft),right:F(r.marginRight),top:F(r.marginTop)}),w=function(e){var t=window.getComputedStyle(e);return"grid"===t.display?{x:F(t.gridColumnGap),y:F(t.gridRowGap)}:{x:0,y:0}}(t.container),O=t.scrollContainer.getBoundingClientRect(),_=a({index:b,node:f,collection:m});if(t.node=f,t.margin=y,t.gridGap=w,t.width=_.width,t.height=_.height,t.marginOffset={x:t.margin.left+t.margin.right+t.gridGap.x,y:Math.max(t.margin.top,t.margin.bottom,t.gridGap.y)},t.boundingClientRect=f.getBoundingClientRect(),t.containerBoundingRect=O,t.index=b,t.newIndex=b,t.axis={x:i.indexOf("x")>=0,y:i.indexOf("y")>=0},t.offsetEdge=H(f,t.container),t.initialOffset=U(h?p({},e,{pageX:t.boundingClientRect.left,pageY:t.boundingClientRect.top}):e),t.initialScroll={left:t.scrollContainer.scrollLeft,top:t.scrollContainer.scrollTop},t.initialWindowScroll={left:window.pageXOffset,top:window.pageYOffset},t.helper=t.helperContainer.appendChild((c="input, textarea, select, canvas, [contenteditable]",g=(o=f).querySelectorAll(c),x((v=o.cloneNode(!0)).querySelectorAll(c)).forEach((function(e,t){"file"!==e.type&&(e.value=g[t].value),"radio"===e.type&&e.name&&(e.name="__sortableClone__".concat(e.name)),e.tagName===J.Canvas&&g[t].width>0&&g[t].height>0&&e.getContext("2d").drawImage(g[t],0,0)})),v)),A(t.helper,{boxSizing:"border-box",height:"".concat(t.height,"px"),left:"".concat(t.boundingClientRect.left-y.left,"px"),pointerEvents:"none",position:"fixed",top:"".concat(t.boundingClientRect.top-y.top,"px"),width:"".concat(t.width,"px")}),h&&t.helper.focus(),s&&(t.sortableGhost=f,A(f,{opacity:0,visibility:"hidden"})),t.minTranslate={},t.maxTranslate={},h){var E=d?{top:0,left:0,width:t.contentWindow.innerWidth,height:t.contentWindow.innerHeight}:t.containerBoundingRect,P=E.top,S=E.left,j=E.width,C=P+E.height,k=S+j;t.axis.x&&(t.minTranslate.x=S-t.boundingClientRect.left,t.maxTranslate.x=k-(t.boundingClientRect.left+t.width)),t.axis.y&&(t.minTranslate.y=P-t.boundingClientRect.top,t.maxTranslate.y=C-(t.boundingClientRect.top+t.height))}else t.axis.x&&(t.minTranslate.x=(d?0:O.left)-t.boundingClientRect.left-t.width/2,t.maxTranslate.x=(d?t.contentWindow.innerWidth:O.left+O.width)-t.boundingClientRect.left-t.width/2),t.axis.y&&(t.minTranslate.y=(d?0:O.top)-t.boundingClientRect.top-t.height/2,t.maxTranslate.y=(d?t.contentWindow.innerHeight:O.top+O.height)-t.boundingClientRect.top-t.height/2);l&&l.split(" ").forEach((function(e){return t.helper.classList.add(e)})),t.listenerNode=e.touches?f:t.contentWindow,h?(t.listenerNode.addEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.addEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.addEventListener("keydown",t.handleKeyDown)):(N.move.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortMove,!1)})),N.end.forEach((function(e){return t.listenerNode.addEventListener(e,t.handleSortEnd,!1)}))),t.setState({sorting:!0,sortingIndex:b}),u&&u({node:f,index:b,collection:m,isKeySorting:h,nodes:t.manager.getOrderedRefs(),helper:t.helper},e),h&&t.keyMove(0)},o=t.props,i=o.axis,a=o.getHelperDimensions,l=o.helperClass,s=o.hideSortableGhost,c=o.updateBeforeSortStart,u=o.onSortStart,d=o.useWindowAsScrollContainer,f=n.node,m=n.collection,h=t.manager.isKeySorting,g=function(){if("function"==typeof c){t._awaitingUpdateBeforeSortStart=!0;var n=function(e,t){try{var n=e()}catch(e){return t(!0,e)}return n&&n.then?n.then(t.bind(null,!1),t.bind(null,!0)):t(!1,value)}((function(){var t=f.sortableInfo.index;return Promise.resolve(c({collection:m,index:t,node:f,isKeySorting:h},e)).then((function(){}))}),(function(e,n){if(t._awaitingUpdateBeforeSortStart=!1,e)throw n;return n}));if(n&&n.then)return n.then((function(){}))}}();return g&&g.then?g.then(r):r()}}();return Promise.resolve(r&&r.then?r.then((function(){})):void 0)}catch(e){return Promise.reject(e)}})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleSortMove",(function(e){var n=t.props.onSortMove;"function"==typeof e.preventDefault&&e.preventDefault(),t.updateHelperPosition(e),t.animateNodes(),t.autoscroll(),n&&n(e)})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleSortEnd",(function(e){var n=t.props,r=n.hideSortableGhost,o=n.onSortEnd,i=t.manager,a=i.active.collection,l=i.isKeySorting,s=t.manager.getOrderedRefs();t.listenerNode&&(l?(t.listenerNode.removeEventListener("wheel",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("mousedown",t.handleKeyEnd,!0),t.listenerNode.removeEventListener("keydown",t.handleKeyDown)):(N.move.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortMove)})),N.end.forEach((function(e){return t.listenerNode.removeEventListener(e,t.handleSortEnd)})))),t.helper.parentNode.removeChild(t.helper),r&&t.sortableGhost&&A(t.sortableGhost,{opacity:"",visibility:""});for(var c=0,u=s.length;c<u;c++){var p=s[c],d=p.node;p.edgeOffset=null,p.boundingClientRect=null,R(d,null),M(d,null),p.translate=null}t.autoScroller.clear(),t.manager.active=null,t.manager.isKeySorting=!1,t.setState({sorting:!1,sortingIndex:null}),"function"==typeof o&&o({collection:a,newIndex:t.newIndex,oldIndex:t.index,isKeySorting:l,nodes:s},e),t.touched=!1})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"autoscroll",(function(){var e=t.props.disableAutoscroll,n=t.manager.isKeySorting;if(e)t.autoScroller.clear();else{if(n){var r=p({},t.translate),o=0,i=0;return t.axis.x&&(r.x=Math.min(t.maxTranslate.x,Math.max(t.minTranslate.x,t.translate.x)),o=t.translate.x-r.x),t.axis.y&&(r.y=Math.min(t.maxTranslate.y,Math.max(t.minTranslate.y,t.translate.y)),i=t.translate.y-r.y),t.translate=r,R(t.helper,t.translate),t.scrollContainer.scrollLeft+=o,void(t.scrollContainer.scrollTop+=i)}t.autoScroller.update({height:t.height,maxTranslate:t.maxTranslate,minTranslate:t.minTranslate,translate:t.translate,width:t.width})}})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"onAutoScroll",(function(e){t.translate.x+=e.left,t.translate.y+=e.top,t.animateNodes()})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleKeyDown",(function(e){var n=e.keyCode,r=t.props,o=r.shouldCancelStart,i=r.keyCodes,a=p({},ne,void 0===i?{}:i);t.manager.active&&!t.manager.isKeySorting||!(t.manager.active||a.lift.includes(n)&&!o(e)&&t.isValidSortingTarget(e))||(e.stopPropagation(),e.preventDefault(),a.lift.includes(n)&&!t.manager.active?t.keyLift(e):a.drop.includes(n)&&t.manager.active?t.keyDrop(e):a.cancel.includes(n)?(t.newIndex=t.manager.active.index,t.keyDrop(e)):a.up.includes(n)?t.keyMove(-1):a.down.includes(n)&&t.keyMove(1))})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"keyLift",(function(e){var n=e.target,r=L(n,(function(e){return null!=e.sortableInfo})).sortableInfo,o=r.index,i=r.collection;t.initialFocusedNode=n,t.manager.isKeySorting=!0,t.manager.active={index:o,collection:i},t.handlePress(e)})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"keyMove",(function(e){var n=t.manager.getOrderedRefs(),r=n[n.length-1].node.sortableInfo.index,o=t.newIndex+e,i=t.newIndex;if(!(o<0||o>r)){t.prevIndex=i,t.newIndex=o;var a=function(e,t,n){return e<n&&e>t?e-1:e>n&&e<t?e+1:e}(t.newIndex,t.prevIndex,t.index),l=n.find((function(e){return e.node.sortableInfo.index===a})),s=l.node,c=t.containerScrollDelta,u=l.boundingClientRect||V(s,c),p=l.translate||{x:0,y:0},d=u.top+p.y-c.top,f=u.left+p.x-c.left,m=i<o,h=m&&t.axis.x?s.offsetWidth-t.width:0,g=m&&t.axis.y?s.offsetHeight-t.height:0;t.handleSortMove({pageX:f+h,pageY:d+g,ignoreTransition:0===e})}})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"keyDrop",(function(e){t.handleSortEnd(e),t.initialFocusedNode&&t.initialFocusedNode.focus()})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"handleKeyEnd",(function(e){t.manager.active&&t.keyDrop(e)})),(0,u.Z)((0,v.Z)((0,v.Z)(t)),"isValidSortingTarget",(function(e){var n=t.props.useDragHandle,r=e.target,o=L(r,(function(e){return null!=e.sortableInfo}));return o&&o.sortableInfo&&!o.sortableInfo.disabled&&(n?Q(r):r.sortableInfo)})),function(e){C()(!(e.distance&&e.pressDelay),"Attempted to set both `pressDelay` and `distance` on SortableContainer, you may only use one or the other, not both at the same time.")}(e),t.manager=new k,t.events={end:t.handleEnd,move:t.handleMove,start:t.handleStart},t}return O(n,t),h(n,[{key:"getChildContext",value:function(){return{manager:this.manager}}},{key:"componentDidMount",value:function(){var e=this,t=this.props.useWindowAsScrollContainer,n=this.getContainer();Promise.resolve(n).then((function(n){e.container=n,e.document=e.container.ownerDocument||document;var r=e.props.contentWindow||e.document.defaultView||window;e.contentWindow="function"==typeof r?r():r,e.scrollContainer=t?e.document.scrollingElement||e.document.documentElement:G(e.container)||e.container,e.autoScroller=new ee(e.scrollContainer,e.onAutoScroll),Object.keys(e.events).forEach((function(t){return N[t].forEach((function(n){return e.container.addEventListener(n,e.events[t],!1)}))})),e.container.addEventListener("keydown",e.handleKeyDown)}))}},{key:"componentWillUnmount",value:function(){var e=this;this.helper&&this.helper.parentNode&&this.helper.parentNode.removeChild(this.helper),this.container&&(Object.keys(this.events).forEach((function(t){return N[t].forEach((function(n){return e.container.removeEventListener(n,e.events[t])}))})),this.container.removeEventListener("keydown",this.handleKeyDown))}},{key:"updateHelperPosition",value:function(e){var t=this.props,n=t.lockAxis,r=t.lockOffset,o=t.lockToContainerEdges,i=t.transitionDuration,a=t.keyboardSortingTransitionDuration,l=void 0===a?i:a,s=this.manager.isKeySorting,u=e.ignoreTransition,p=U(e),d={x:p.x-this.initialOffset.x,y:p.y-this.initialOffset.y};if(d.y-=window.pageYOffset-this.initialWindowScroll.top,d.x-=window.pageXOffset-this.initialWindowScroll.left,this.translate=d,o){var f=function(e){var t=e.height,n=e.width,r=e.lockOffset,o=Array.isArray(r)?r:[r,r];C()(2===o.length,"lockOffset prop of SortableContainer should be a single value or an array of exactly two values. Given %s",r);var i=c(o,2),a=i[0],l=i[1];return[W({height:t,lockOffset:a,width:n}),W({height:t,lockOffset:l,width:n})]}({height:this.height,lockOffset:r,width:this.width}),m=c(f,2),h=m[0],g=m[1],v={x:this.width/2-h.x,y:this.height/2-h.y},b={x:this.width/2-g.x,y:this.height/2-g.y};d.x=B(this.minTranslate.x+v.x,this.maxTranslate.x-b.x,d.x),d.y=B(this.minTranslate.y+v.y,this.maxTranslate.y-b.y,d.y)}"x"===n?d.y=0:"y"===n&&(d.x=0),s&&l&&!u&&M(this.helper,l),R(this.helper,d)}},{key:"animateNodes",value:function(){var e=this.props,t=e.transitionDuration,n=e.hideSortableGhost,r=e.onSortOver,o=this.containerScrollDelta,i=this.windowScrollDelta,a=this.manager.getOrderedRefs(),l=this.offsetEdge.left+this.translate.x+o.left,s=this.offsetEdge.top+this.translate.y+o.top,c=this.manager.isKeySorting,u=this.newIndex;this.newIndex=null;for(var p=0,d=a.length;p<d;p++){var f=a[p].node,m=f.sortableInfo.index,h=f.offsetWidth,g=f.offsetHeight,v={height:this.height>g?g/2:this.height/2,width:this.width>h?h/2:this.width/2},b=c&&m>this.index&&m<=u,y=c&&m<this.index&&m>=u,w={x:0,y:0},O=a[p].edgeOffset;O||(O=H(f,this.container),a[p].edgeOffset=O,c&&(a[p].boundingClientRect=V(f,o)));var _=p<a.length-1&&a[p+1],E=p>0&&a[p-1];_&&!_.edgeOffset&&(_.edgeOffset=H(_.node,this.container),c&&(_.boundingClientRect=V(_.node,o))),m!==this.index?(t&&M(f,t),this.axis.x?this.axis.y?y||m<this.index&&(l+i.left-v.width<=O.left&&s+i.top<=O.top+v.height||s+i.top+v.height<=O.top)?(w.x=this.width+this.marginOffset.x,O.left+w.x>this.containerBoundingRect.width-v.width&&_&&(w.x=_.edgeOffset.left-O.left,w.y=_.edgeOffset.top-O.top),null===this.newIndex&&(this.newIndex=m)):(b||m>this.index&&(l+i.left+v.width>=O.left&&s+i.top+v.height>=O.top||s+i.top+v.height>=O.top+g))&&(w.x=-(this.width+this.marginOffset.x),O.left+w.x<this.containerBoundingRect.left+v.width&&E&&(w.x=E.edgeOffset.left-O.left,w.y=E.edgeOffset.top-O.top),this.newIndex=m):b||m>this.index&&l+i.left+v.width>=O.left?(w.x=-(this.width+this.marginOffset.x),this.newIndex=m):(y||m<this.index&&l+i.left<=O.left+v.width)&&(w.x=this.width+this.marginOffset.x,null==this.newIndex&&(this.newIndex=m)):this.axis.y&&(b||m>this.index&&s+i.top+v.height>=O.top?(w.y=-(this.height+this.marginOffset.y),this.newIndex=m):(y||m<this.index&&s+i.top<=O.top+v.height)&&(w.y=this.height+this.marginOffset.y,null==this.newIndex&&(this.newIndex=m))),R(f,w),a[p].translate=w):n&&(this.sortableGhost=f,A(f,{opacity:0,visibility:"hidden"}))}null==this.newIndex&&(this.newIndex=this.index),c&&(this.newIndex=u);var P=c?this.prevIndex:u;r&&this.newIndex!==P&&r({collection:this.manager.active.collection,index:this.index,newIndex:this.newIndex,oldIndex:P,isKeySorting:c,nodes:a,helper:this.helper})}},{key:"getWrappedInstance",value:function(){return C()(r.withRef,"To access the wrapped instance, you need to pass in {withRef: true} as the second argument of the SortableContainer() call"),this.refs.wrappedInstance}},{key:"getContainer",value:function(){var e=this.props.getContainer;return"function"!=typeof e?(0,S.findDOMNode)(this):e(r.withRef?this.getWrappedInstance():void 0)}},{key:"render",value:function(){var t=r.withRef?"wrappedInstance":null;return(0,_.createElement)(e,(0,a.default)({ref:t},D(this.props,oe)))}},{key:"helperContainer",get:function(){var e=this.props.helperContainer;return"function"==typeof e?e():this.props.helperContainer||this.document.body}},{key:"containerScrollDelta",get:function(){return this.props.useWindowAsScrollContainer?{left:0,top:0}:{left:this.scrollContainer.scrollLeft-this.initialScroll.left,top:this.scrollContainer.scrollTop-this.initialScroll.top}}},{key:"windowScrollDelta",get:function(){return{left:this.contentWindow.pageXOffset-this.initialWindowScroll.left,top:this.contentWindow.pageYOffset-this.initialWindowScroll.top}}}]),n}(_.Component),(0,u.Z)(t,"displayName",z("sortableList",e)),(0,u.Z)(t,"defaultProps",re),(0,u.Z)(t,"propTypes",te),(0,u.Z)(t,"childContextTypes",{manager:P().object.isRequired}),n}((function(e){let{items:t,onChange:n}=e;return(0,r.createElement)(Oe,null,(function(e){let{option:o}=e;return(0,r.createElement)("ul",{className:"ct-layers"},t.map((function(e,i){return(0,r.createElement)(Ee,{key:e.__id,index:i,onChange:n,value:e,items:t,disabled:!!o.disableDrag})})))}))}));var Se=function(e){let{value:t,option:n,onChange:o,values:i}=e;const[a,l]=(0,r.useState)({currentlyPickedItem:null,isDragging:!1,isOpen:!1}),s=function(e){o(e)},c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};s([...t||[],he(he(he({enabled:!0},(0,pe.n6)(n["inner-options"]||{},{})),e),{},{__id:fe()()})])},u=be(t);return(0,r.createElement)(we,{value:he(he({},a),{},{parentValue:i,addForId:c,option:n,removeForId:function(e){return s(be(t).filter((function(t){let{__id:n}=t;return n!==e})))},toggleOptionsPanel:function(e){t.length>0&&!t[0].__id&&s(u),l((function(t){return he(he({},t),{},{isOpen:t.isOpen!==e&&e})}))}})},(0,r.createElement)(Pe,{useDragHandle:!0,distance:3,lockAxis:"y",items:u,onChange:function(e){s(e)},helperContainer:function(){return document.querySelector("#customize-theme-controls")||document.body},onSortEnd:function(e){let{oldIndex:t,newIndex:n}=e;s(se()(u,t,n)),l((function(e){return he(he({},e),{},{isDragging:!1})}))},updateBeforeSortStart:function(e){let{index:n}=e;new Promise((function(e){t.length>0&&!t[0].__id&&(wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{shouldSkip:!0}),s(u)),l((function(e){return he(he({},e),{},{isDragging:u[n].__id})})),e()}))}}),(0,r.createElement)("button",{className:"button",onClick:function(e){e.preventDefault(),c()}},(0,ce.__)("Add New Item","blocksy")))}},8219:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return D}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5652),l=n(8142);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const p=[{id:"type-1",title:(0,a.__)("Hideout","blocksy"),src:"patterns/hideout.svg"},{id:"type-2",title:(0,a.__)("Triangles","blocksy"),src:"patterns/triangles.svg"},{id:"type-3",title:(0,a.__)("Bubbles","blocksy"),src:"patterns/bubbles.svg"},{id:"type-4",title:(0,a.__)("Wiggle","blocksy"),src:"patterns/wiggle.svg"},{id:"type-5",title:(0,a.__)("Polka Dots","blocksy"),src:"patterns/polka-dots.svg"},{id:"type-6",title:(0,a.__)("Overlaping Circles","blocksy"),src:"patterns/overlaping-circles.svg"},{id:"type-7",title:(0,a.__)("Texture","blocksy"),src:"patterns/texture.svg"},{id:"type-8",title:(0,a.__)("Diagonal Lines","blocksy"),src:"patterns/diagonal-lines.svg"},{id:"type-9",title:(0,a.__)("Rain","blocksy"),src:"patterns/rain.svg"},{id:"type-10",title:(0,a.__)("Stripes","blocksy"),src:"patterns/stripes.svg"},{id:"type-11",title:(0,a.__)("Diagonal Stripes","blocksy"),src:"patterns/diagonal-stripes.svg"},{id:"type-12",title:(0,a.__)("Intersecting Circles","blocksy"),src:"patterns/intersecting-circles.svg"},{id:"type-13",title:(0,a.__)("Bank Note","blocksy"),src:"patterns/bank-note.svg"},{id:"type-14",title:(0,a.__)("Zig Zag","blocksy"),src:"patterns/zig-zag.svg"},{id:"type-15",title:(0,a.__)("Endless Clouds","blocksy"),src:"patterns/endless-clouds.svg"},{id:"type-16",title:(0,a.__)("Honey Comb","blocksy"),src:"patterns/honey-comb.svg"},{id:"type-17",title:(0,a.__)("Cross Stripes","blocksy"),src:"patterns/cross-stripes.svg"},{id:"type-18",title:(0,a.__)("Autumn","blocksy"),src:"patterns/autumn.svg"}];var d=function(e){let{option:t,value:n,onChange:o}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-patterns-list"},p.map((function(e){return(0,r.createElement)("li",{onClick:function(){return o(c(c({},n),{},{background_pattern:e.id}))},className:i()({active:e.id===n.background_pattern}),key:e.id,title:e.title},(0,r.createElement)("img",{src:(window.ct_localizations||ct_customizer_localizations).static_public_url+`images/${e.src}`}))}))),(0,r.createElement)(l.ZP,{value:n.patternColor,values:n,option:{id:"patternColor",label:(0,a.__)("Pattern Color","blocksy"),type:"ct-color-picker",design:"inline",value:t.value.patternColor,pickers:[{title:(0,a.__)("Initial","blocksy"),id:"default"}],skipNoColorPill:!0,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:function(e){return o(c(c({},n),{},{patternColor:e}))}}))};function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var g=function(e){let{option:t,value:n,onChange:o,setOutsideClickFreezed:i}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.ZP,{value:n.background_image,values:n,option:{id:"background_image",label:!1,type:"ct-image-uploader",value:t.value.background_image,has_position_picker:!0,emptyLabel:(0,a.__)("Select Image","blocksy"),filledLabel:(0,a.__)("Change Image","blocksy"),onFrameOpen:function(){i(!0)},onFrameClose:function(){i(!1)}},hasRevertButton:!1,onChange:function(e){return o(m(m({},n),{},{background_image:e}))}}),(0,r.createElement)(l.ZP,{value:n.background_repeat,values:n,option:{id:"background_repeat",label:(0,a.__)("Background Repeat","blocksy"),type:"ct-radio",view:"text",design:"block",attr:{"data-type":"repeat"},choice_attr:{"data-tooltip":"top"},value:t.value.background_repeat,choices:{repeat:`<svg viewBox="0 0 16 16"><path d="M0,0h4v4H0V0z M6,0h4v4H6V0z M12,0h4v4h-4V0z M0,6h4v4H0V6z M6,6h4v4H6V6z M12,6h4v4h-4V6z M0,12h4v4H0V12z M6,12h4v4H6V12zM12,12h4v4h-4V12z"/></svg>\n\t\t\t\t\t\t\t<span class="ct-tooltip">${(0,a.__)("Repeat","blocksy")}</span>`,"repeat-y":`<svg viewBox="0 0 16 16"><rect x="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="6" y="12" width="4" height="4"/></svg>\n\t\t\t\t\t\t\t<span class="ct-tooltip">${(0,a.__)("Repeat Y","blocksy")}</span>`,"repeat-x":`<svg viewBox="0 0 16 16"><rect y="6" width="4" height="4"/><rect x="6" y="6" width="4" height="4"/><rect x="12" y="6" width="4" height="4"/></svg>\n\t\t\t\t\t\t\t<span class="ct-tooltip">${(0,a.__)("Repeat X","blocksy")}</span>`,"no-repeat":`<svg viewBox="0 0 16 16"><rect x="6" y="6" width="4" height="4"/></svg>\n\t\t\t\t\t\t\t<span class="ct-tooltip">${(0,a.__)("No Repeat","blocksy")}</span>`}},hasRevertButton:!1,onChange:function(e){return o(m(m({},n),{},{background_repeat:e}))}}),(0,r.createElement)(l.ZP,{value:n.background_size,values:n,option:{id:"background_size",label:(0,a.__)("Background Size","blocksy"),type:"ct-radio",view:"text",design:"block",value:t.value.background_size,choices:{auto:(0,a.__)("Auto","blocksy"),cover:(0,a.__)("Cover","blocksy"),contain:(0,a.__)("Contain","blocksy")}},hasRevertButton:!1,onChange:function(e){return o(m(m({},n),{},{background_size:e}))}}),(0,r.createElement)(l.ZP,{value:n.background_attachment,values:n,option:{id:"background_size",label:(0,a.__)("Background Attachment","blocksy"),type:"ct-radio",view:"text",design:"block",value:t.value.background_attachment,choices:{scroll:(0,a.__)("Scroll","blocksy"),fixed:(0,a.__)("Fixed","blocksy"),inherit:(0,a.__)("Inherit","blocksy")}},hasRevertButton:!1,onChange:function(e){return o(m(m({},n),{},{background_attachment:e}))}}),n.background_image.url&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.ZP,{value:n.overlayColor&&-1===n.overlayColor.default.color.indexOf("CT_CSS_SKIP_RULE")?"yes":"no",values:{},option:{id:"has_overlay",label:(0,a.__)("Image Overlay","blocksy"),type:"ct-radio",view:"text",design:"block",value:"no",choices:{no:(0,a.__)("Disabled","blocksy"),yes:(0,a.__)("Enabled","blocksy")}},hasRevertButton:!1,onChange:function(e){let t=-1===n.overlayColor.default.color.indexOf("CT_CSS_SKIP_RULE");o(m(m({},n),{},{overlayColor:{default:{color:t?"CT_CSS_SKIP_RULE":"rgba(0, 0, 0, 0.2)"}}}))}}),n.overlayColor&&-1===n.overlayColor.default.color.indexOf("CT_CSS_SKIP_RULE")&&(0,r.createElement)(l.ZP,{value:n.overlayColor,values:n,option:{id:"overlayColor",label:(0,a.__)("Image Overlay Color","blocksy"),type:"ct-color-picker",design:"inline",value:t.value.overlayColor,pickers:[{title:(0,a.__)("Initial","blocksy"),id:"default"}],skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:function(e){return o(m(m({},n),{},{overlayColor:e}))}})))},v=n(8441);function b(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?b(Object(n),!0).forEach((function(t){w(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):b(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function w(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var O=function(e){let{value:t,onChange:n}=e;const o=(window.ct_customizer_localizations||window.ct_localizations).gradients;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(v.GradientPicker,{__nextHasNoMargin:!0,value:t.gradient||null,gradients:[],onChange:function(e){n(y(y({},t),{},{gradient:e}))}}),(0,r.createElement)("ul",{className:"ct-gradient-swatches"},o.map((function(e){let{gradient:o,slug:a}=e;return(0,r.createElement)("li",{onClick:function(){n(y(y({},t),{},{gradient:t.gradient===o?"":o}))},className:i()({active:o===t.gradient}),style:{"--background-image":o},key:a})}))))};function _(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function E(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?_(Object(n),!0).forEach((function(t){P(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):_(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function P(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var S=function(e){let{option:t,option:{activeTabs:n=["color","gradient","image"]},value:o,isOpen:s,onChange:c,setOutsideClickFreezed:u}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("ul",{className:"ct-modal-tabs",onMouseUp:function(e){e.preventDefault()}},n.map((function(e){return(0,r.createElement)("li",{"data-type":e,key:e,className:i()({active:e===o.background_type||"image"===e&&("pattern"===o.background_type||"image"===o.background_type)}),onClick:function(){return c(E(E({},o),{},{background_type:e},"gradient"!==e||o.gradient?{}:{gradient:"linear-gradient(135deg,rgba(6,147,227,1) 0%,rgb(155,81,224) 100%)"}))}},{color:(0,a.__)("Color","blocksy"),gradient:(0,a.__)("Gradient","blocksy"),image:(0,a.__)("Image","blocksy")}[e])}))),(0,r.createElement)("div",{className:i()({"ct-image-tab ct-options-container":"image"===o.background_type||"pattern"===o.background_type,"ct-gradient-tab":"gradient"===o.background_type,"ct-color-tab":"color"===o.background_type},"ct-modal-tabs-content")},("image"===o.background_type||"pattern"===o.background_type)&&(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group",onMouseUp:function(e){e.preventDefault()}},["image","pattern"].map((function(e){return(0,r.createElement)("li",{"data-type":e,key:e,className:i()({active:e===o.background_type}),onClick:function(){return c(E(E({},o),{},{background_type:e}))}},{pattern:(0,a.__)("Pattern","blocksy"),image:(0,a.__)("Image","blocksy")}[e])}))),"pattern"===o.background_type&&(0,r.createElement)(d,{option:t,onChange:c,value:o}),"image"===o.background_type&&(0,r.createElement)(g,{setOutsideClickFreezed:u,option:t,onChange:c,value:o}),"gradient"===o.background_type&&(0,r.createElement)(O,{value:o,onChange:c}),"gradient"!==o.background_type&&(0,r.createElement)(l.ZP,{value:o.backgroundColor,values:o,option:{id:"backgroundColor",label:"color"!==o.background_type&&(0,a.__)("Background Color","blocksy"),type:"ct-color-picker",skipNoColorPill:!0,design:"color"===o.background_type?"none":"inline",value:t.value.backgroundColor,pickers:[{title:(0,a.__)("Initial","blocksy"),id:"default"}],inline_modal:"color"===o.background_type,skipArrow:!0,appendToBody:!1},hasRevertButton:!1,onChange:function(e){return c(E(E({},o),{},{backgroundColor:e}))}})))},j=n(1511),C=n(2932);function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e){let{option:t,value:n,onChange:o}=e;const[l,s]=(0,r.useState)(!1),[c,u]=(0,r.useState)(!1),d=(0,r.useRef)();n=function(e){return!e.background_type&&e[Object.keys(e)[0]].color?{background_type:"color",background_pattern:"type-1",background_image:{attachment_id:null,x:0,y:0},background_repeat:"no-repeat",background_size:"auto",background_attachment:"scroll",patternColor:{default:{color:"#e5e7ea"}},backgroundColor:{default:e[Object.keys(e)[0]]}}:e}(n);const f=!t.has_no_color&&"color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),m=t.has_no_color&&"color"===n.background_type&&("CT_CSS_SKIP_RULE"===n.backgroundColor.default.color||"transparent"===n.backgroundColor.default.color),{styles:h,popoverProps:g}=(0,C.Z)({ref:d,defaultHeight:434,shouldCalculate:d&&d.current});return(0,r.createElement)("div",{ref:d,className:i()("ct-background",{active:l})},(0,r.createElement)("div",{className:i()("ct-background-preview",{"ct-color-inherit":f,"ct-no-color":m}),"data-tooltip":"top",onClick:function(e){e.preventDefault(),s(!l),"color"===n.background_type&&("CT_CSS_SKIP_RULE"!==n.backgroundColor.default.color&&"transparent"!==n.backgroundColor.default.color||o(k(k({},n),{},{backgroundColor:{default:{color:t.default_inherit_color||"#ffffff"}}})))},"data-background-type":n.background_type,style:k(k({},n.backgroundColor.default.color.indexOf("CT_CSS_SKIP_RULE")>-1?{}:{backgroundColor:n.backgroundColor.default.color}),{},{"--background-position":`${Math.round(100*parseFloat(n.background_image.x))}% ${Math.round(100*parseFloat(n.background_image.y))}%`,"--pattern-mask":"pattern"===n.background_type?`url(${v=n.background_pattern,(window.ct_localizations||ct_customizer_localizations).static_public_url+`images/${p.find((function(e){return e.id===v})).src}`})`:"","--background-image":"gradient"===n.background_type?n.gradient:n.background_image.url?`${n.overlayColor&&-1===n.overlayColor.default.color.indexOf("CT_CSS_SKIP_RULE")?`linear-gradient(${n.overlayColor.default.color}, ${n.overlayColor.default.color}), `:""}url(${n.background_image.url})`:"none","--pattern-color":n.patternColor.default.color})},(0,r.createElement)("i",{className:"ct-tooltip"},{inherit:(0,a.__)("Inherited","blocksy"),no_color:(0,a.__)("No Color","blocksy"),pattern:(0,a.__)("Pattern","blocksy"),gradient:(0,a.__)("Gradient","blocksy"),color:(0,a.__)("Color","blocksy"),image:(0,a.__)("Image","blocksy")}[m?"no_color":f?"inherit":n.background_type]),f&&(0,r.createElement)("svg",{width:"25",height:"25",viewBox:"0 0 30 30"},(0,r.createElement)("path",{d:"M15 3c-3 0-5.7 1.1-7.8 2.9-.4.3-.5.9-.2 1.4.3.4 1 .5 1.4.2h.1C10.3 5.9 12.5 5 15 5c5.2 0 9.5 3.9 10 9h-3l4 6 4-6h-3.1C26.4 7.9 21.3 3 15 3zM4 10l-4 6h3.1c.5 6.1 5.6 11 11.9 11 3 0 5.7-1.1 7.8-2.9.4-.3.5-1 .2-1.4-.3-.4-1-.5-1.4-.2h-.1c-1.7 1.5-4 2.4-6.5 2.4-5.2 0-9.5-3.9-10-9h3L4 10z"}))),d&&d.current&&(0,r.createPortal)((0,r.createElement)(j.default,{useCapture:!1,display:"block",disabled:!l||c,onOutsideClick:function(e){e.target.closest(".components-popover")||setTimeout((function(){return s(!1)}))},wrapperProps:k(k({style:h},g),{},{className:i()("ct-option-modal ct-background-modal",{active:l})})},(0,r.createElement)(S,{onChange:o,value:n,option:t,isOpen:l,setOutsideClickFreezed:u})),document.body));var v}},9847:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(1511),i=n(4184),a=n.n(i),l=n(4910),s=n(5652);function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=function(e,t,n){return Math.max(e,Math.min(t,n))};t.default=function(e){let{value:t,option:n,onChange:i}=e;const[c,p]=(0,r.useState)(!1);return(0,r.createElement)("div",{className:a()("ct-option-border")},(0,r.createElement)("div",{className:a()("ct-value-changer",{active:c})},"none"!==t.style&&!t.inherit&&(0,r.createElement)("input",{type:"number",value:t.width,onChange:function(e){let{target:{value:n}}=e;return i(u(u({},t),{},{width:d(1,5,parseInt(n,10)||1)}))}}),(0,r.createElement)("span",{className:"ct-current-value","data-style":t.inherit?"none":t.style,onClick:function(){return p(!c)}},t.inherit?(0,s.__)("Inherit","blocksy"):"none"===t.style?(0,s.__)("none","blocksy"):null),(0,r.createElement)(o.default,{className:"ct-units-list",disabled:!c,onOutsideClick:function(){c&&p(!1)}},["solid","dashed","dotted","none"].map((function(e){return(0,r.createElement)("span",{key:e,onClick:function(){i(u(u({},t),{},{style:e},Object.keys(n.value).indexOf("inherit")>-1?{inherit:!1}:{})),p(!1)},"data-style":e},"none"===e?(0,s.__)("None","blocksy"):null)})))),"none"!==t.style&&!t.inherit&&(0,r.createElement)(r.Fragment,null,(0,r.createElement)(l.default,{onChange:function(e){return i(u(u({},t),{},{color:e.default}))},option:{pickers:[{id:"default",title:(0,s.__)("Initial","blocksy")}]},value:{default:t.color}}),n.secondColor&&(0,r.createElement)(l.default,{onChange:function(e){return i(u(u({},t),{},{secondColor:e.default}))},option:{pickers:[{id:"default",title:(0,s.__)("Hover","blocksy")}]},value:{default:t.secondColor||n.value.secondColor}})))}},2076:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return E}});var r=n(1381),o=n(1511),i=n(4184),a=n.n(i),l=n(9154),s=n(5652),c=n(4823),u=n(3431),p=n.n(u),d=n(8142),f=n(7809),m=n(2932);function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},h.apply(this,arguments)}function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var y=function(e){let{option:t,value:n,onChange:o,picker:i,onPickingChange:l,stopTransitioning:u,el:g,hOffsetRef:b,vOffsetRef:y,blurRef:w,spreadRef:O,isTransitioning:_,isPicking:E}=e;const{styles:P,popoverProps:S}=(0,m.Z)({ref:g,defaultHeight:t.hide_shadow_placement?437:507,shouldCalculate:_===i.id||(E||"").split(":")[0]===i.id});return(_===i.id||(E||"").split(":")[0]===i.id)&&(0,r.createPortal)((0,r.createElement)(c.uT,{items:E,onRest:function(e){u()},config:{duration:100,easing:p()(.25,.1,.25,1)},from:-1===(E||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:-1===(E||"").indexOf(":")?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:-1===(E||"").indexOf(":")?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(function(e){return(e||"").split(":")[0]===i.id&&function(e){return(0,r.createElement)("div",h({style:v(v({},e),P)},S,{className:"ct-option-modal ct-box-shadow-modal",onClick:function(e){e.preventDefault(),e.stopPropagation()},onMouseDownCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}}),(0,r.createElement)("div",{className:"ct-shadow-trigger"},(0,r.createElement)("label",null,(0,s.__)("Enable/Disable","blocksy")),(0,r.createElement)(f.default,{value:n.enable?"yes":"no",onChange:function(){o(v(v({},n),{},{enable:!n.enable}))}})),(0,r.createElement)("div",{className:"shadow-sliders"},(0,r.createElement)(d.ZP,{value:n.h_offset,values:n,id:"h_offset",option:{id:"h_offset",label:(0,s.__)("Horizontal Offset","blocksy"),type:"ct-slider",steps:"half",value:t.value.h_offset,min:-100,max:100,design:"compact",ref:b},hasRevertButton:!1,onChange:function(e){return o(v(v({},n),{},{h_offset:e}))}}),(0,r.createElement)(d.ZP,{value:n.v_offset,values:n,id:"v_offset",option:{steps:"half",id:"v_offset",label:(0,s.__)("Vertical Offset","blocksy"),type:"ct-slider",value:t.value.v_offset,min:-100,max:100,design:"compact",ref:y},hasRevertButton:!1,onChange:function(e){return o(v(v({},n),{},{v_offset:e}))}}),(0,r.createElement)(d.ZP,{value:n.blur,values:n,id:"blur",option:{steps:"positive",id:"blur",label:(0,s.__)("Blur","blocksy"),type:"ct-slider",value:t.value.blur,min:0,max:100,design:"compact",ref:w},hasRevertButton:!1,onChange:function(e){o(v(v({},n),{},{blur:e}))}}),(0,r.createElement)(d.ZP,{value:n.spread,values:n,id:"spread",option:{steps:"half",id:"spread",label:(0,s.__)("Spread","blocksy"),type:"ct-slider",value:t.value.spread,min:-100,max:100,design:"compact",ref:O},hasRevertButton:!1,onChange:function(e){return o(v(v({},n),{},{spread:e}))}})),!t.hide_shadow_placement&&(0,r.createElement)("ul",{className:"ct-shadow-style"},(0,r.createElement)("li",{onClick:function(){return o(v(v({},n),{},{inset:!1}))},className:a()({active:!n.inset})},(0,s.__)("Outline","blocksy")),(0,r.createElement)("li",{onClick:function(){return o(v(v({},n),{},{inset:!0}))},className:a()({active:n.inset})},(0,s.__)("Inset","blocksy"))))}})),document.body)};function w(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function O(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?w(Object(n),!0).forEach((function(t){_(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):w(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function _(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var E=function(e){let{value:t,option:n,onChange:i}=e;const[{isPicking:c,isTransitioning:u},p]=(0,r.useState)({isPicking:null,isTransitioning:null}),[d,f]=(0,r.useState)(null),m=(0,r.useRef)(),h=(0,r.useRef)(),g=(0,r.useRef)(),v=(0,r.useRef)(),b=(0,r.useRef)(),w=(0,r.useRef)(),_=(0,r.useRef)(),E=(0,r.useRef)();return(0,r.createElement)("div",{ref:m,className:a()("ct-box-shadow")},(0,r.createElement)(o.default,{useCapture:!1,disabled:!c,className:"ct-box-shadow-values",additionalRefs:[h,E],onOutsideClick:function(){c&&p({isTransitioning:c.split(":")[0],isPicking:null})},wrapperProps:{ref:_,onClick:function(e){e.preventDefault();let t=c?"opts"===c.split(":")[0]?null:`opts:${c.split(":")[0]}`:"opts";p({isTransitioning:"opts",isPicking:t})}}},(0,r.createElement)("span",null,t.inherit?(0,s.__)("Inherit","blocksy"):t.enable?(0,s.__)("Adjust","blocksy"):(0,s.__)("None","blocksy"))),t.enable&&!t.inherit&&(0,r.createElement)(l.Z,{innerRef:h,picker:{id:"default",title:"Initial"},option:{pickers:[{id:"default",title:"Initial"}]},isPicking:c,isTransitioning:u,modalRef:E,containerRef:_,onPickingChange:function(e){t.enable&&p({isTransitioning:"default",isPicking:e})},stopTransitioning:function(){return p({isPicking:c,isTransitioning:!1})},onChange:function(e){return i(O(O({},t),{},{color:e}))},value:t.color}),(0,r.createElement)(y,{el:m,value:t,onChange:function(e){return i(O(O({},e),{},{inherit:!1}))},option:n,isPicking:c,isTransitioning:u,hOffsetRef:g,vOffsetRef:v,blurRef:b,spreadRef:w,picker:{id:"opts"},onPickingChange:function(e){t.enable&&p({isTransitioning:"opts",isPicking:e})},stopTransitioning:function(){return p({isPicking:c,isTransitioning:!1})}}))}},4056:function(e,t,n){"use strict";n.r(t);var r=n(1381);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){let{option:{text:t="",attr:n={},panel:l,url:s}}=e;return(0,r.createElement)("a",o({},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n||{}),{href:s,target:"_blank",onClick:function(e){}}),t)}},3817:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4775),i=n(4184),a=n.n(i);n(6715);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){let{option:t,value:n,onChange:i,option:{view:s="checkboxes"}}=e;const u=(0,o.N)(t.choices),{inline:p=!1}=t;return"checkboxes"===s?(0,r.createElement)("div",l({className:"ct-option-checkbox"},p?{"data-inline":""}:{},t.attr||{}),u.map((function(e){let{key:o,value:a}=e;return(0,r.createElement)("label",{key:o},(0,r.createElement)("input",{type:"checkbox",checked:"boolean"==typeof n[o]?n[o]:"true"===n[o],"data-id":o,onChange:function(e){let{target:{checked:r}}=e;return i(c(c({},n),{},{[o]:!n[o]||1===Object.values(n).filter((function(e){return e})).length&&!t.allow_empty}))}}),a)}))):(0,r.createElement)("ul",l({className:"ct-option-checkbox ct-buttons-group"},p?{"data-inline":""}:{},t.attr||{}),u.map((function(e){let{key:o,value:l}=e;return(0,r.createElement)("li",{className:a()({active:"boolean"==typeof n[o]?n[o]:"true"===n[o]}),"data-id":o,key:o,onClick:function(e){let{target:{checked:r}}=e;return i(c(c({},n),{},{[o]:!n[o]||1===Object.values(n).filter((function(e){return e})).length&&!t.allow_empty}))}},l)})))}},6701:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=(n(5652),n(6381));const i=["palettes","current_palette"];function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(e){let{option:t,value:n,values:a,onChange:s}=e;(0,r.useRef)();const{palettes:u,current_palette:p}=n,d=(c(n,i),Object.keys(a.colorPalette).reduce((function(e,t){return l(l({},e),0===t.indexOf("color")?{[t]:n[t]?n[t]:a.colorPalette[t]}:{})}),{}));return(0,r.createElement)("div",{className:"ct-color-palette-preview"},(0,r.createElement)(o.Z,{currentPalette:d,option:t,onChange:function(e,t){s(t)}}))}},9727:function(e,t,n){"use strict";n.r(t),n.d(t,{ColorPalettesContext:function(){return D},default:function(){return T}});var r=n(1381),o=(n(5697),n(5652)),i=n(4184),a=n.n(i),l=n(6381);const s=["id"];function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var f=function(e){let{setIsEditingPalettes:t,option:n,onChange:i,value:a}=e;return(0,r.createElement)("div",{className:"ct-color-palettes-container"},n.palettes.map((function(e,c){const{id:p}=e,f=d(e,s),m=Object.keys(f).every((function(e){return f[e].color===a[e].color}));return(0,r.createElement)(l.Z,{key:e.id,option:n,currentPalette:e,isActive:m,renderBefore:function(){return(0,r.createElement)("label",null,(0,o.sprintf)((0,o.__)("Palette #%s","blocksy"),c+1))},onClick:function(){t(!1),i(u(u({},a),f))}})})))};const m=["id"];function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function b(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}var y=function(e){let{setIsEditingPalettes:t,option:n,onChange:i,value:a}=e;const{customPalettes:s,setCustomPalettes:c}=(0,r.useContext)(D);return(0,r.createElement)("div",{className:"ct-color-palettes-container"},(s||[]).map((function(e,u){const{id:p}=e,d=b(e,m);return(0,r.createElement)(l.Z,{key:u,option:n,currentPalette:e,hasColorRemove:!1,onClick:function(){i(g(g({},a),d)),t(!1)},renderBefore:function(){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("label",null,(0,o.sprintf)((0,o.__)("Custom Palette #%s","blocksy"),u+1),(0,r.createElement)("span",{"data-tooltip":"top",onClick:function(e){e.preventDefault(),e.stopPropagation(),c(s.filter((function(e,t){return t!==u})))}},(0,r.createElement)("svg",{width:"14",height:"14",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M21.8 4.4h-4.4V3.3C17.5 1.5 16 0 14.2 0H9.8C8 0 6.5 1.5 6.5 3.3v1.1H2.2c-.6 0-1.1.5-1.1 1.1s.5 1.1 1.1 1.1h1.1v14.2c0 1.8 1.5 3.3 3.3 3.3h10.9c1.8 0 3.3-1.5 3.3-3.3V6.5h1.1c.6 0 1.1-.5 1.1-1.1s-.6-1-1.2-1zM8.7 3.3c0-.6.5-1.1 1.1-1.1h4.4c.6 0 1.1.5 1.1 1.1v1.1H8.7V3.3zm9.8 17.4c0 .6-.5 1.1-1.1 1.1H6.5c-.6 0-1.1-.5-1.1-1.1V6.5h13.1v14.2z"})),(0,r.createElement)("i",{className:"ct-tooltip"},(0,o.__)("Remove","blocksy")))))}})})),0===(s||[]).length&&(0,r.createElement)("div",{className:"ct-no-custom-palettes"},(0,o.__)("No custom palettes yet.","blocksy")))};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var O=function(e){let{setIsEditingPalettes:t,option:n,value:i,onChange:l,wrapperProps:s={}}=e;const[c,u]=(0,r.useState)("predefined"),{customPalettes:p}=(0,r.useContext)(D),d=0===(p||[]).length?"predefined":c;return(0,r.createElement)("div",w({className:"ct-modal-content"},s),(0,r.createElement)("h2",{className:"ct-modal-title"},(0,o.__)("Color Palette Presets","blocksy")),(0,r.createElement)("div",{className:"ct-tabs-scroll"},(0,r.createElement)("div",{className:"ct-tabs"},(p||[]).length>0&&(0,r.createElement)("ul",null,[{id:"predefined",title:(0,o.__)("Predefined","blocksy")},{id:"custom",title:(0,o.__)("Custom","blocksy")}].map((function(e){let{id:t,title:n}=e;return(0,r.createElement)("li",{className:a()({active:d===t}),onClick:function(){return u(t)}},n)}))),(0,r.createElement)("div",{className:"ct-current-tab"},"predefined"===d&&(0,r.createElement)(f,{setIsEditingPalettes:t,option:n,onChange:l,value:i}),"custom"===d&&(0,r.createElement)(y,{setIsEditingPalettes:t,option:n,onChange:l,value:i})))))},_=(n(2932),n(1511),n(2329),n(3431),n(3363)),E=n(8441);const P=["palettes","current_palette"],S=["palettes","current_palette"],j=["palettes","current_palette"];function C(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function x(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?C(Object(n),!0).forEach((function(t){k(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):C(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function k(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function I(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const D=(0,r.createContext)({isEditingPalettes:!1}),N=function(e){let{option:t,value:n,onChange:o}=e;const{isEditingPalettes:i,setIsEditingPalettes:s,customPalettes:c}=(0,r.useContext)(D),{palettes:u,current_palette:p}=((0,r.useRef)(),n),d=I(n,P);return(0,r.createElement)("div",{className:"ct-color-palette-preview"},(0,r.createElement)(l.Z,{currentPalette:d,option:t,onChange:function(e,t){o(t)}}),(0,r.createElement)(_.Z,{items:i,className:a()("ct-admin-modal ct-color-palettes-modal",{"ct-no-tabs":0===(c||[]).length,"ct-has-tabs":(c||[]).length>0}),onDismiss:function(){return s(!1)},render:function(){return(0,r.createElement)(O,{onChange:function(e){o(e)},setIsEditingPalettes:s,value:d,option:t})}}))};N.MetaWrapper=function(e){let{getActualOption:t}=e;const[n,o]=(0,r.useState)(!1),[i,a]=(0,r.useState)([]);return(0,r.useEffect)((function(){fetch(`${window.ajaxurl}?action=blocksy_get_custom_palettes`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({})}).then((function(e){return e.json()})).then((function(e){e.data.palettes&&a(e.data.palettes)}))}),[]),(0,r.createElement)(D.Provider,{value:{customPalettes:i,setCustomPalettes:function(e){a(e),fetch(`${window.ajaxurl}?action=blocksy_sync_custom_palettes`,{method:"POST",headers:{Accept:"application/json","Content-Type":"application/json"},body:JSON.stringify({palettes:e})}).then((function(e){return e.json()})).then((function(e){}))},isEditingPalettes:n,setIsEditingPalettes:o}},t())},N.LabelToolbar=function(e){let{option:t,value:n,onChange:i}=e;const{setIsEditingPalettes:a,customPalettes:l,setCustomPalettes:s}=(0,r.useContext)(D),c=![...t.palettes,...l||[]].find((function(e){const t=Object.keys(n).reduce((function(e,t){return x(x({},e),0===t.indexOf("color")?{[t]:n[t].color}:{})}),{}),r=Object.keys(e).reduce((function(t,n){return x(x({},t),0===n.indexOf("color")?{[n]:e[n].color}:{})}),{});return Object.keys(t).length===Object.keys(r).length&&Object.keys(t).every((function(e){return t[e]===r[e]}))}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(E.Dropdown,{contentClassName:"ct-options-popover",popoverProps:{placement:"bottom-start",offset:3},renderToggle:function(e){let{isOpen:t,onToggle:n}=e;return(0,r.createElement)("span",{className:"ct-more-options-trigger","data-tooltip":"top"},(0,r.createElement)("button",{className:"components-button components-dropdown-menu__toggle is-small has-icon",onClick:function(e){e.preventDefault(),n()}},(0,r.createElement)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor"},(0,r.createElement)("path",{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}))),(0,r.createElement)("i",{className:"ct-tooltip"},(0,o.__)("Advanced","blocksy")))},renderContent:function(e){let{onClose:t}=e;return(0,r.createElement)("div",{className:"components-dropdown-menu__menu"},(0,r.createElement)("div",{className:"components-menu-group"},(0,r.createElement)("button",{className:"components-button components-menu-item__button",onClick:function(e){e.preventDefault(),a(!0),t()}},(0,r.createElement)("span",{className:"components-menu-item__item"},(0,o.__)("Color Palettes","blocksy"))),(0,r.createElement)("button",{className:"components-button components-menu-item__button",disabled:!c,onClick:function(e){e.preventDefault(),t();const{palettes:r,current_palette:o}=n,i=I(n,S);s([...l,i])}},(0,r.createElement)("span",{className:"components-menu-item__item"},(0,o.__)("Save Palette","blocksy")))),(0,r.createElement)("div",{className:"components-menu-group"},(0,r.createElement)("button",{className:"components-button components-menu-item__button",onClick:function(e){e.preventDefault(),t();const{palettes:r,current_palette:o}=n,a=I(n,j),l=Object.keys(a).filter((function(e){return e.indexOf("color")>-1})).map((function(e){return parseFloat(e.replace("color",""))})).sort((function(e,t){return e-t}));i(x(x({},a),{},{[`color${l[l.length-1]+1}`]:{color:"CT_CSS_SKIP_RULE"}}))}},(0,r.createElement)("span",{className:"components-menu-item__item"},(0,o.__)("Add New Color","blocksy")))))}}))};var T=N},4910:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(9154),i=n(5529);function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){let{option:t,values:n,value:a,onChange:s,device:c}=e;const[{isPicking:u,isTransitioning:p},d]=(0,r.useState)({isPicking:null,isTransitioning:null}),f=(0,r.useRef)(),m=(0,r.useRef)();return(0,r.createElement)("div",{ref:f,className:"ct-color-picker-container"},t.pickers.filter((function(e){return!e.condition||(0,i.Nj)((0,i.KY)(e.condition),"global"===e.condition_source?Object.keys(e.condition).reduce((function(e,t){return l(l({},e),{},{[t]:wp.customize(t)()})}),{}):n)})).map((function(e){return(0,r.createElement)(o.Z,{containerRef:f,device:c,picker:e,key:e.id,option:t,isPicking:u,modalRef:m,isTransitioning:p,values:n,onOutsideClick:function(){d((function(e){let{isPicking:t}=e;return{isPicking:null,isTransitioning:t}}))},onPickingChange:function(t){return d({isTransitioning:e.id,isPicking:t})},stopTransitioning:function(){return d((function(e){return l(l({},e),{},{isTransitioning:!1})}))},onChange:function(t){return s(l(l({},a),{},{[e.id]:t}))},value:a[e.id]||t.value[e.id]})})))}},7910:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(7314),i=n(3363),a=n(5652),l=n(7686),s=n(2425),c=n(4184),u=n.n(c);const p=function(e){let{option:t,option:{areas:n,prefix:c},onChangeFor:p}=e;const[d,f]=(0,r.useState)(!1),[m,h]=(0,r.useState)(!1),[g,v]=(0,r.useState)(!1),b=(0,o.Z)(),y=n.find((function(e){return"posts_listing"===e.id})),w=n.find((function(e){return"page_structure"===e.id})),O=[{title:(0,a.__)("All Options","blocksy"),sources:w?w.sources:y?y.sources:null},...n],_=g&&O.find((function(e){let{title:t}=e;return t===g}))&&O.find((function(e){let{title:t}=e;return t===g})).sources?O.find((function(e){let{title:t}=e;return t===g})).sources:n.reduce((function(e,t){let{sources:n}=t;return[...e,...n.filter((function(t){let{title:n}=t;return!e.find((function(e){let{title:t}=e;return t===n}))}))]}),[]);if((0,r.useEffect)((function(){document.querySelector(".customize-control-ct-options .ct-options-container").closest("ul").firstElementChild.firstElementChild.insertAdjacentHTML("beforeend",'<div class="ct-customize-section-title-actions"></div>')}),[]),!document.querySelector(".customize-control-ct-options .ct-options-container"))return setTimeout((function(){b()}),100),null;const E=document.querySelector(".customize-control-ct-options .ct-options-container").closest("ul").querySelector(".ct-customize-section-title-actions");return E?(0,r.createPortal)((0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{className:"ct-more-options-trigger","data-tooltip":"left"},(0,r.createElement)("button",{className:"components-button components-dropdown-menu__toggle is-small has-icon",onClick:function(e){e.preventDefault(),f(!0)}},(0,r.createElement)("svg",{viewBox:"0 0 24 24",width:"24",height:"24",fill:"currentColor"},(0,r.createElement)("path",{d:"M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z"}))),(0,r.createElement)("i",{className:"ct-tooltip"},(0,a.__)("Advanced","blocksy"))),(0,r.createElement)(i.Z,{items:d,className:"ct-admin-modal ct-copy-options-modal",onDismiss:function(){f(!1)},render:function(){return(0,r.createElement)("div",{className:"ct-modal-content"},(0,r.createElement)("h2",{className:"ct-modal-title"},(0,a.sprintf)((0,a.__)("Copy Options","blocksy"))),(0,r.createElement)("p",null,(0,a.__)("1. Choose what set of options you want to copy:","blocksy")),(0,r.createElement)("div",{className:"ct-checkboxes-container","data-type":"grid:bordered"},O.map((function(e){let{title:t,options:n}=e;return(0,r.createElement)("div",{className:"ct-checkbox-container",onClick:function(){v(t)},key:t},(0,r.createElement)("span",{className:u()("ct-checkbox",{active:g===t})},(0,r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2 "}))),t)}))),(0,r.createElement)("p",null,(0,a.__)("2. Choose options source:","blocksy")),(0,r.createElement)(s.default,{option:{disabled:!g||!_.length,choices:_.filter((function(e){let{key:t}=e;return t!==c})).map((function(e){let{key:t,label:n,group:r}=e;return{key:t,value:n,group:r}})),search:!0,defaultToFirstItem:!1},value:m,onChange:function(e){h(e)}}),(0,r.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,r.createElement)("button",{className:"button",onClick:function(e){f(!1),e.preventDefault(),h(!1)}},(0,a.__)("Cancel","blocksy")),(0,r.createElement)("button",{className:u()("button button-primary",{disabled:!m||!g}),onClick:function(){const e=O.find((function(e){let{title:t}=e;return t===g}));if(!e.options){Object.keys(wp.customize._value).filter((function(e){return 0===e.indexOf(m)})).map((function(e){const t=e.replace(m,c);wp.customize(e)&&p(t,wp.customize(e)())}))}if(e.options){Object.keys((0,l.JS)(e.options)).map((function(e){const t=e.replace(c,m);wp.customize(t)&&p(e,wp.customize(t)())}))}wp.customize&&wp.customize.previewer&&wp.customize.previewer.refresh(),f(!1),h(!1),v(!1)}},(0,a.__)("Copy","blocksy"))))}})),E):(setTimeout((function(){b()}),100),null)};p.renderingConfig={design:"none"},t.default=p},7941:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(3363),i=n(5652);t.default=function(e){let{value:t,option:n,onChange:a}=e;const[l,s]=(0,r.useState)(!1);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{className:"button-primary",style:{width:"100%"},onClick:function(e){e.preventDefault(),s(!0)}},(0,i.__)("Reset Options","blocksy")),(0,r.createElement)(o.Z,{items:l,className:"ct-admin-modal ct-reset-options",onDismiss:function(){return s(!1)},render:function(){return(0,r.createElement)("div",{className:"ct-modal-content"},(0,r.createElement)("h2",{className:"ct-modal-title"},(0,i.__)("Reset Settings","blocksy")),(0,r.createElement)("p",null,(0,i.__)("You are about to reset all settings to their default values, are you sure you want to continue?","blocksy")),(0,r.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,r.createElement)("button",{onClick:function(e){e.preventDefault(),e.stopPropagation(),s(!1)},className:"button"},(0,i.__)("Cancel","blocksy")),(0,r.createElement)("button",{className:"button button-primary",onClick:function(e){e.preventDefault(),jQuery.post(ajaxurl,{wp_customize:"on",action:"ct_customizer_reset",nonce:ct_customizer_localizations.customizer_reset_none},(function(){wp.customize.state("saved").set(!0),location.reload()}))}},(0,i.__)("Confirm","blocksy"))))}}))}},5457:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4184),i=n.n(o);const a=["class"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const c=function(e){let{option:{attr:{class:t}={}}}=e,n=s(e.option.attr,a);return(0,r.createElement)("div",l({className:i()("ct-divider",t)},n))};c.renderingConfig={design:"none"},t.default=c},5186:function(e,t,n){"use strict";n.r(t),n.d(t,{DragDropContext:function(){return Z},default:function(){return X},fetchCurrentFooter:function(){return K}});var r=n(1381),o=n(5652),i=n(4184),a=n.n(i),l=n(8269),s=n(7097),c=n(8285);const u=["items","draggableId","hasPointers","className","tagName","direction","group","options","propsForItem","panelType","displayWrapper"];function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function m(){return m=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},m.apply(this,arguments)}function h(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const g=function(e){let{item:t,index:n,panelType:o,onRemove:i,renderItem:l,onClick:s,className:u}=e;const p=ct_customizer_localizations.header_builder_data[o].find((function(e){let{id:n}=e;return n===(0,c.t_)(t)})),{builderValue:d}=(0,r.useContext)(Z);if(l)return l({item:t,itemData:p,index:n});const f=Object.keys(d.items).filter((function(e){return e.indexOf((0,c.SU)())>-1})),m=[(0,c.t_)(t),...f.filter((function(e){return(0,c.t_)(e)===(0,c.t_)(t)}))];return(0,r.createElement)("div",{"data-id":t,className:a()("ct-builder-item",u,{"ct-builder-item-not-registered":!p}),onClick:s},p&&p.config?m.length>1?`${p.config.name} ${m.indexOf(t)+1}`:p.config.name:t,(0,r.createElement)("button",{className:"ct-btn-remove",onClick:function(e){e.preventDefault(),e.stopPropagation(),i()}},(0,r.createElement)("svg",{width:"7px",height:"7px",viewBox:"0 0 10 10",fill:"currentColor"},(0,r.createElement)("path",{d:"M10,1.4L6.4,5L10,8.6L8.6,10L5,6.4L1.4,10L0,8.6L3.6,5L0,1.4L1.4,0L5,3.6L8.6,0L10,1.4z"}))))};var v=function(e){let{items:t,draggableId:n,hasPointers:o=!0,className:i,tagName:c="div",direction:p="horizontal",group:f="header_sortables",options:v={},propsForItem:b=function(e){return{}},panelType:y="footer",displayWrapper:w=!0}=e,O=h(e,u);const{isDragging:_,setIsDragging:E,onChange:P,setList:S}=(0,r.useContext)(Z),{panelsHelpers:j}=(0,r.useContext)(s.Q),C=t.map((function(e,o){return(0,r.createElement)(g,m({key:e,index:o,panelType:y,item:e,className:j.isOpenFor(`builder_panel_${e}`)?"ct-customizing":"",onClick:function(t){t.stopPropagation(),t.preventDefault(),j.open(`builder_panel_${e}`)},onRemove:function(){j.close(),S({[n]:t.filter((function(t){return t!==e}))})}},b(e)))}));return w?(0,r.createElement)(l.Z,m({options:d({delay:0,group:f,fallbackOnBody:!0,forceFallback:!0,fallbackTolerance:5,filter:".ct-pointer, .ct-btn-remove",direction:p,touchStartThreshold:5,onStart:function(e){E(e.item.dataset.id),document.body.classList.add("ct-builder-dragging"),e.from&&f&&"clone"!==f.pull&&e.to.classList.add("ct-is-over")},onEnd:function(){E(!1),document.body.classList.remove("ct-builder-dragging"),[...document.querySelectorAll(".ct-panel-builder .ct-is-over")].map((function(e){return e.classList.remove("ct-is-over")}))},onMove:function(e,t){if(e.from.closest("#ct-option-header-builder-items")&&Promise.resolve().then((function(){return[...e.from.querySelectorAll(`[data-id="${e.dragged.dataset.id}"]`)].map((function(e){e.classList.remove("ct-builder-item"),e.classList.add("ct-item-in-builder")}))})),e.to){if(e.to.children&&Array.from(e.to.children).filter((function(e){return"__pointer__"!==e.dataset.id&&"__filler__"!==e.dataset.id})).length>0)return!1;[...document.querySelectorAll(".ct-panel-builder .ct-is-over")].map((function(e){return e.classList.remove("ct-is-over")})),e.to.classList.add("ct-is-over")}}},v),onChange:function(e,t,r){"available-items"!==n&&P({id:n,value:e.filter((function(e){return"__pointer__"!==e&&"__filler__"!==e}))})},tag:c,className:a()("ct-builder-items",i)},O,{"data-id":n}),"available-items"!==n&&_&&(0,r.createElement)("div",{"data-id":"__filler__",className:"ct-filler"}),o&&_&&(0,r.createElement)("div",{"data-id":"__pointer__",className:"ct-pointer"}),C):C};const b=function(e){let{bar:t,builderValue:n,direction:i="horizontal"}=e;const{panelsHelpers:a}=(0,r.useContext)(s.Q),l=n.items[t.id],c=(ct_customizer_localizations.header_builder_data.footer.find((function(e){let{id:n}=e;return n===t.id})),l?l.values:{});let u="initial";return 2===t.columns.length&&(u=c["2_columns_layout"]||{desktop:"repeat(2, 1fr)",tablet:"initial",mobile:"initial"}),3===t.columns.length&&(u=c["3_columns_layout"]||{desktop:"repeat(3, 1fr)",tablet:"initial",mobile:"initial"}),4===t.columns.length&&(u=c["4_columns_layout"]||{desktop:"repeat(4, 1fr)",tablet:"initial",mobile:"initial"}),5===t.columns.length&&(u=c["5_columns_layout"]||{desktop:"repeat(5, 1fr)",tablet:"initial",mobile:"initial"}),6===t.columns.length&&(u=c["6_columns_layout"]||{desktop:"repeat(6, 1fr)",tablet:"initial",mobile:"initial"}),u&&u.desktop&&(u=u.desktop),(0,r.createElement)("li",{className:"builder-row"},(0,r.createElement)("div",{className:"ct-row-actions",onClick:function(){return a.open(`builder_panel_${t.id}`)}},{"top-row":(0,o.__)("Top Row","blocksy"),"middle-row":(0,o.__)("Middle Row","blocksy"),"bottom-row":(0,o.__)("Bottom Row","blocksy")}[t.id]),(0,r.createElement)("ul",{className:"row-inner",style:{"--gridTemplateColummns":u}},t.columns.map((function(e,n){return(0,r.createElement)("li",{className:"builder-column",key:n},(0,r.createElement)(v,{draggableId:`${t.id}:${n}`,items:e}))}))))},y=function(e,t){for(let n in t)if(t[n]!==e[n])return!1;return!0};const w=function(e){let t,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:y,o={};return function(i){return void 0!==t&&n(o,i)||(o=i,t=(0,r.createElement)(e,Object.assign({},i))),t}}((function(e){let{builderValue:t}=e;return(0,r.createElement)("div",{className:a()("placements-builder")},(0,r.createElement)("ul",{className:"horizontal-rows"},["top-row","middle-row","bottom-row"].map((function(e){return(0,r.createElement)(b,{builderValue:t,bar:t.rows.find((function(t){let{id:n}=t;return n===e})),key:e})}))))}));var O=w,_=n(9999),E=(n(5697),n(8441)),P=n(7686);function S(){return S=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},S.apply(this,arguments)}var j=function(e){let{builderValue:t,builderValueDispatch:n,inlinedItemsFromBuilder:o,displayList:i=!0}=e;const{panelsState:l,panelsActions:s,currentView:u,isDragging:p}=(0,r.useContext)(Z),d=t.rows.reduce((function(e,t){let{columns:n}=t;return[...e,...(n||[]).reduce((function(e,t){return[...e,...t]}),[])]}),[]),f=ct_customizer_localizations.header_builder_data.secondary_items.footer.filter((function(e){let{config:t}=e;return t.enabled})),m=ct_customizer_localizations.header_builder_data.footer,h=Object.keys(t.items).filter((function(e){return e.indexOf((0,c.SU)())>-1}));return(0,r.createElement)(v,{options:{sort:!1,filter:".ct-item-in-builder"},group:{name:"header_sortables",put:!1,pull:"clone"},draggableId:"available-items",items:[...f.map((function(e){let{id:t}=e;return t})),...h].filter((function(e){return m.some((function(t){let{id:n}=t;return n===(0,c.t_)(e)}))})).sort((function(e,t){const n=ct_customizer_localizations.header_builder_data.footer.find((function(t){let{id:n}=t;return n===(0,c.t_)(e)})),r=ct_customizer_localizations.header_builder_data.footer.find((function(e){let{id:n}=e;return n===(0,c.t_)(t)}));return n.config.name.localeCompare(r.config.name)})),hasPointers:!1,panelType:"footer",displayWrapper:i,propsForItem:function(e){return{renderItem:function(e){let{item:l,itemData:u,index:f}=e;const g=m.find((function(e){let{id:t}=e;return t===(0,c.t_)(l)})).options,v=[(0,c.t_)(l),...h.filter((function(e){return(0,c.t_)(e)===(0,c.t_)(l)}))],b=v.length>1?`${u.config.name} ${v.indexOf(l)+1}`:u.config.name,y={label:b,"inner-options":g},w=o.indexOf(l)>-1,O=`builder_panel_${l}`;return(0,r.createElement)(_.PanelMetaWrapper,S({id:O,option:y},s,{getActualOption:function(e){let{open:o,container:s}=e;return(0,r.createElement)(r.Fragment,null,d.indexOf(l)>-1&&(0,r.createElement)(_.default,{id:O,getValues:function(){let e=t.items[l];return e&&Object.keys(e.values)>5?e.values:(0,P.n6)(g,e?e.values:{})},option:y,onChangeFor:function(e,r){const o=t.items[l];n({type:"ITEM_VALUE_ON_CHANGE",payload:{id:l,optionId:e,optionValue:r,values:!o||o&&0===Object.keys(o.values).length?(0,P.n6)(g,{}):{}}})},view:"simple"}),i&&(0,r.createElement)("div",{ref:s,"data-id":l,className:a()({"ct-item-in-builder":w,"ct-builder-item":!w}),onClick:function(){p||w&&o()}},b,(0,r.createElement)(E.Slot,{name:`ColumnsBuilderSidebarItem_${f}`,fillProps:{item:l,itemInBuilder:w,itemData:u}})))}}))}}},direction:"vertical"})};function C(){return C=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},C.apply(this,arguments)}function x(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function k(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?x(Object(n),!0).forEach((function(t){I(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):x(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function I(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var D=function(e){let{builderValue:t,builderValueDispatch:n}=e;const o=ct_customizer_localizations.header_builder_data.secondary_items.footer,i=ct_customizer_localizations.header_builder_data.footer,{panelsState:a,panelsActions:l}=(0,r.useContext)(Z),s=i.filter((function(e){let{id:t}=e;return!o.find((function(e){return e.id===t}))}));return(0,r.createElement)(r.Fragment,null,s.map((function(e){const o={label:e.config.name,"inner-options":e.options},i=`builder_panel_${e.id}`;return(0,r.createElement)(_.PanelMetaWrapper,C({id:i,key:e.id,option:o},l,{getActualOption:function(a){let{container:l}=a;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(_.default,{id:i,getValues:function(){let n=t.items[e.id];const r=t.rows.find((function(t){let{id:n}=t;return n===e.id}));let o=!1;return r&&r.columns.reduce((function(e,t){return[...e,t]}),[]).join("").indexOf("widget-area")>-1&&(o=!0),n&&Object.keys(n.values)>5?k(k({},n.values),r?{items_per_row:r.columns.length.toString(),has_widget_areas:o?"yes":"no"}:{}):k(k({},(0,P.n6)(e.options,n?n.values:{})),r?{items_per_row:r.columns.length.toString(),has_widget_areas:o?"yes":"no"}:{})},option:o,onChangeFor:function(r,o){const i=t.items[e.id];n({type:"ITEM_VALUE_ON_CHANGE",payload:{id:e.id,optionId:r,optionValue:o,values:!i||i&&0===Object.keys(i.values).length?(0,P.n6)(e.options,{}):{}}})},view:"simple"}))}}))})))};function N(){return N=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},N.apply(this,arguments)}var T=function(){ct_customizer_localizations.header_builder_data.secondary_items.footer,ct_customizer_localizations.header_builder_data.footer;const{builderValueCollection:e,builderValue:t,builderValueDispatch:n,panelsActions:i}=(0,r.useContext)(Z),l=e.sections.filter((function(e){let{id:t}=e;return"type-2"!==t&&"type-3"!==t&&-1===t.indexOf("ct-custom")}));return(0,r.createElement)("div",{className:"ct-panels-manager"},l.map((function(e){let{name:t,id:n}=e;return(0,r.createElement)("div",null,t)})),(0,r.createElement)("ul",{className:a()("ct-panels-list")},l.map((function(e){let{name:l,id:s}=e,c=l||{"type-1":(0,o.__)("Global Footer","blocksy")}[s]||s;const u=`builder_footer_panel_${s}`,p=ct_customizer_localizations.header_builder_data.footer_data.footer_options,d={label:c,"inner-options":p};return(0,r.createElement)(_.PanelMetaWrapper,N({id:u,key:s,option:d},i,{getActualOption:function(e){let{open:o}=e;return(0,r.createElement)(r.Fragment,null,s===t.id&&(0,r.createElement)(_.default,{id:u,getValues:function(){return(0,P.n6)(p,Array.isArray(t.settings)?{}:t.settings)},option:d,onChangeFor:function(e,t){n({type:"BUILDER_GLOBAL_SETTING_ON_CHANGE",payload:{optionId:e,optionValue:t}})},view:"simple"}),s===t.id&&(0,r.createElement)("li",{className:a()({active:s===t.id,"ct-global":"type-1"===s}),onClick:function(){o()}},(0,r.createElement)("span",{className:"ct-panel-name"},c)))}}))}))))};var A=function(e){let{builderValue:t,builderValueCollection:n,builderValueDispatch:i,inlinedItemsFromBuilder:l}=e;const[s,c]=(0,r.useState)("items");ct_customizer_localizations.header_builder_data.secondary_items.footer,ct_customizer_localizations.header_builder_data.footer,ct_customizer_localizations.header_builder_data.footer_data.footer_options;return(0,r.createElement)("div",{className:"ct-available-items ct-footer-builder-options"},(0,r.createElement)("h3",{className:"ct-title",dangerouslySetInnerHTML:{__html:sprintf((0,o.__)("Customizing: %s","blocksy"),`<span>${(n.sections.find((function(e){let{id:n}=e;return n===t.id}))||{}).name||{"type-1":(0,o.__)("Global Footer","blocksy")}[t.id]||t.id}</span>`)}}),(0,r.createElement)("div",{className:"ct-tabs"},(0,r.createElement)("ul",null,["items","panels"].map((function(e){return(0,r.createElement)("li",{key:e,onClick:function(t){t.preventDefault(),c(e)},className:a()({active:e===s})},{panels:(0,o.__)("Footers","blocksy"),items:(0,o.__)("Elements","blocksy")}[e])}))),(0,r.createElement)("div",{className:"ct-current-tab"},"panels"===s&&(0,r.createElement)(E.Slot,{name:"ColumnsBuilderPanelsManager"},(function(e){return 0===e.length?(0,r.createElement)(T,null):e})),(0,r.createElement)(j,{builderValue:t,builderValueDispatch:i,inlinedItemsFromBuilder:l,displayList:"items"===s}))),(0,r.createElement)(D,{builderValue:t,builderValueDispatch:i}))},R=n(1496),M=n.n(R);function L(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=V(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function V(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}const U=function(e,t){let n={},r=[],o=e.sections.find((function(t){let{id:n}=t;return n.indexOf(e.__forced_static_footer__||K()||e.sections[0].id)>-1})),i=!1,a=!1,l=[];if("BUILDER_GLOBAL_SETTING_ON_CHANGE"===t.type){const{optionId:e,optionValue:n,values:r={}}=t.payload;o=F(F({},o),{},{settings:F(F({},o.settings),{},{[e]:n})})}if("ITEM_VALUE_ON_CHANGE"===t.type){const{id:e,optionId:n,optionValue:r,values:i={}}=t.payload;a=`${e}:${n}`;let l=o.items;"top-row"!==e&&"middle-row"!==e&&"bottom-row"!==e||"items_per_row"!==n?(l[e]||(l[e]={id:e,values:{}}),o=F(F({},o),{},{items:F(F({},Array.isArray(l)?{}:l),{},{[e]:{id:e,values:F(F({},l[e].values),{},{[n]:r})}})})):o=F(F({},o),{},{rows:o.rows.map((function(t){return t.id===e?F(F({},t),{},{columns:(n=t.columns,o=parseInt(r,10),n=n.filter((function(e){return e.length>0})),Array.from(Array(o)).map((function(e,t){return Array.isArray(n[t])?n[t]:[]})))}):t;var n,o}))})}if("REMOVE_CLONED_ITEM"===t.type){let e=o.items,n=t.payload.id,{[n]:r}=e,i=L(e,[n].map(V));o=F(F({},o),{},{items:i})}if("CLONE_ITEM"===t.type){const e=(0,c.t_)(t.payload.id);let n=`${e}${(0,c.SU)()}${M()()}`;o=F(F({},o),{},{items:F(F({},o.items),{},{[n]:{id:n,values:o.items[e]&&o.items[e].values||{}}})})}if("PICK_BUILDER_SECTION"===t.type&&(i=!0,n={__forced_static_footer__:t.payload.id}),"MARK_FOOTER_AS_GLOBAL"===t.type&&(i=!0,n={__forced_static_footer__:t.payload.id,current_section:t.payload.id}),"MARK_SPECIFIC_FOOTER_AS_GLOBAL"===t.type&&(n={current_section:t.payload.id}),"SET_LIST"===t.type){i=!0;const{lists:e}=t.payload;o=F(F({},o),{},{rows:o.rows.map((function(t){let{id:n,columns:r}=t;return Object.keys(e).map((function(e){return e.split(":")[0]})).indexOf(n)>-1?{id:n,columns:r.map((function(t,r){return e[`${n}:${r}`]?e[`${n}:${r}`]:t}))}:{id:n,columns:r}}))})}if("CREATE_NEW_SECTION"===t.type){const{name:n,copy:o}=t.payload;r=[o?F(F({},e.sections.find((function(e){let{id:t}=e;return t===o}))||{}),{},{name:n,id:`ct-custom-${M()()}`}):{name:n,id:`ct-custom-${M()()}`,mode:"columns",rows:[{id:"top-row",columns:[[],[]]},{id:"middle-row",columns:[[],[],[]]},{id:"bottom-row",columns:[["copyright"]]}],items:[],settings:[]}]}"REMOVE_BUILDER_SECTION"===t.type&&l.push(t.payload.id);const s=F(F(F({},e),n),{},{__should_refresh__:i,__should_refresh_item__:a,sections:[...e.sections.map((function(e){return e.id===o.id?o:e})),...r].filter((function(e){let{id:t}=e;return-1===l.indexOf(t)}))});return s.__forced_static_header__||(s.__forced_static_header__=s.id),s},H=["__forced_static_footer__"];function W(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function G(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?W(Object(n),!0).forEach((function(t){$(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):W(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function q(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Z=(0,r.createContext)({}),K=function(){(e=wp.customize.previewer.container.find("iframe")[0]).document||e.contentDocument||e.contentWindow.document;var e;return wp.customize.previewer.container.find("iframe")[0].contentDocument.querySelector("footer.ct-footer")?wp.customize.previewer.container.find("iframe")[0].contentDocument.querySelector("footer.ct-footer").dataset.id:null},Y=function(e){let{value:t,option:n,onChange:i}=e;const a=(0,r.useRef)(null);null===a.current&&(a.current=(t.sections.find((function(e){let{id:t}=e;return t.indexOf(K())>-1}))||t.sections[0]).id),(0,r.useEffect)((function(){return function(){const e=wp.customize("footer_placements")(),{__forced_static_footer__:t}=e,n=q(e,H);t&&wp.customize("footer_placements")(G({__should_refresh__:!0,[Math.random()]:"update"},n))}}),[]);const[l,s]=(0,r.useReducer)(U,G(G({},t),a.current?{__forced_static_footer__:a.current}:{})),[c,u]=(0,r.useState)(!1),p=(0,r.useMemo)((function(){return l.sections.find((function(e){let{id:t}=e;return t===l.__forced_static_footer__}))||l.sections[0]}),[l]),[d,f]=(0,r.useState)(!1),m=p.rows.reduce((function(e,t){let{columns:n}=t;return[...e,...(n||[]).reduce((function(e,t){return[...e,...t]}),[])]}),[]),h=(0,r.useCallback)((function(e){let t=U(l,e);if("BUILDER_GLOBAL_SETTING_ON_CHANGE"===e.type&&wp.customize.previewer){const n=t.sections.find((function(e){let{id:n}=e;return n===t.__forced_static_footer__}))||t.sections[0],{optionId:r,optionValue:o,values:i={}}=e.payload;wp.customize.previewer.send("ct:footer:receive-value-update",{itemId:"global",optionId:r,optionValue:o,values:G(G({},n.settings),{},{[r]:o})})}if("ITEM_VALUE_ON_CHANGE"===e.type&&wp.customize.previewer){const{id:n,optionId:r,optionValue:o,values:i={}}=e.payload,a=t.sections.find((function(e){let{id:n}=e;return n===t.__forced_static_footer__}))||t.sections[0];const l=a.items[n]||{values:{}};wp.customize.previewer.send("ct:footer:receive-value-update",{itemId:n,optionId:r,optionValue:o,values:G(G(G(G(G({},l.values),i),"top-row"===n||"middle-row"===n||"bottom-row"===n?{items_per_row:a.rows.find((function(e){let{id:t}=e;return n===t})).columns.length}:{}),"top-row"!==n&&"middle-row"!==n&&"bottom-row"!==n||"items_per_row"!==r?{}:{items_per_row:parseInt(o,10)}),{},{[r]:o})})}i(t),s(e)}),[s,i,l]),g=function(e){return h({type:"SET_LIST",onBuilderValueChange:i,payload:{lists:e}})};return(0,r.useEffect)((function(){return function(){document.querySelector(".wp-full-overlay").classList.remove("ct-builder-collapsed")}}),[]),(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Z.Provider,{value:{isDragging:d,setIsDragging:f,setList:g,builderValueDispatch:h,builderValueCollection:l,builderValue:p,onChange:function(e){let{id:t,value:n}=e;return g({[t]:n})}}},(0,r.createElement)(A,{builderValue:p,inlinedItemsFromBuilder:m,builderValueDispatch:h,builderValueCollection:l}),(0,r.createPortal)((0,r.createElement)("div",{className:"ct-builder-footer"},(0,r.createElement)("ul",{className:"ct-view-switch"},(0,r.createElement)("li",{className:"ct-builder-toggle",onClick:function(){u(!c),c?document.querySelector(".wp-full-overlay").classList.remove("ct-builder-collapsed"):document.querySelector(".wp-full-overlay").classList.add("ct-builder-collapsed")}},c?(0,o.__)("Show Builder","blocksy"):(0,o.__)("Hide Builder","blocksy"))),(0,r.createElement)(O,{builderValue:p})),document.querySelector(".ct-panel-builder"))))};Y.renderingConfig={design:"none"};var X=Y},1829:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return re}});var r=n(1381),o=n(5652),i=n(4184),a=n.n(i),l=n(8269),s=n(7097),c=n(8285),u=n(7691);const p=["items","draggableId","hasPointers","className","tagName","direction","group","options","propsForItem","displayWrapper"];function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function g(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const v=function(e,t,n){const r=ct_customizer_localizations.header_builder_data.header.find((function(t){let{id:n}=t;return n===(0,c.t_)(e)}));if(!r)return!0;let o=[];Array.isArray(r.config.allowed_in)?o=r.config.allowed_in:r.config.allowed_in[n]&&(o=r.config.allowed_in[n]);const i=!(o.length>0)||o.indexOf(t)>-1,a=!(r.config.excluded_from.length>0)||-1===r.config.excluded_from.indexOf(t);return i&&a},b=function(e){var t,n,o,i;let{item:l,index:s,panelType:p,onRemove:d,renderItem:f,onClick:m,className:h}=e;const g=ct_customizer_localizations.header_builder_data[p].find((function(e){let{id:t}=e;return t===(0,c.t_)(l)})),{builderValue:v}=(0,r.useContext)(Q);if(f)return f({item:l,itemData:g,index:s});const b=v.items.filter((function(e){let{id:t}=e;return t.indexOf((0,c.SU)())>-1})).map((function(e){let{id:t}=e;return t})),y=[(0,c.t_)(l),...b.filter((function(e){return(0,c.t_)(e)===(0,c.t_)(l)}))],w=(0,u.f)((0,c.t_)(l));return(0,r.createElement)("div",{"data-id":l,className:a()("ct-builder-item",h,{"ct-builder-item-not-registered":!g}),onClick:m},y.length>1?`${null!==(t=null==g||null===(n=g.config)||void 0===n?void 0:n.name)&&void 0!==t?t:w} ${y.indexOf(l)+1}`:null!==(o=null==g||null===(i=g.config)||void 0===i?void 0:i.name)&&void 0!==o?o:w,(0,r.createElement)("button",{className:"ct-btn-remove",onClick:function(e){e.preventDefault(),e.stopPropagation(),d()}},(0,r.createElement)("svg",{width:"7px",height:"7px",viewBox:"0 0 10 10",fill:"currentColor"},(0,r.createElement)("path",{d:"M10,1.4L6.4,5L10,8.6L8.6,10L5,6.4L1.4,10L0,8.6L3.6,5L0,1.4L1.4,0L5,3.6L8.6,0L10,1.4z"}))))};var y=function(e){let{items:t,draggableId:n,hasPointers:o=!0,className:i,tagName:c="div",direction:u="horizontal",group:f="header_sortables",options:h={},propsForItem:y=function(e){return{}},displayWrapper:w=!0}=e,O=g(e,p);const{currentView:_,isDragging:E,setIsDragging:P,onChange:S,setList:j}=(0,r.useContext)(Q),{panelsHelpers:C}=(0,r.useContext)(s.Q),x=t.map((function(e,o){return(0,r.createElement)(b,d({key:e,index:o,panelType:"header",item:e,className:C.isOpenFor(`builder_panel_${e}`)?"ct-customizing":"",onClick:function(t){t.stopPropagation(),t.preventDefault(),E||C.open(`builder_panel_${e}`)},onRemove:function(){C.close(),setTimeout((function(){j(m({[n]:t.filter((function(t){return t!==e}))},"desktop"===_&&"trigger"===e?{"offcanvas:start":[]}:{}))}))}},y(e)))}));return w?(0,r.createElement)(l.Z,d({options:m({delay:0,group:f,fallbackOnBody:!0,forceFallback:!0,fallbackTolerance:5,filter:".ct-pointer, .ct-btn-remove",direction:u,touchStartThreshold:5,onStart:function(e){P(e.item.dataset.id);let t=wp.customize.previewedDevice();"tablet"===t&&(t="mobile"),v(e.item.dataset.id,"middle-row",t)&&document.body.classList.add("ct-builder-dragging"),e.from&&f&&"clone"!==f.pull&&e.to.classList.add("ct-is-over")},onEnd:function(){P(!1),document.body.classList.remove("ct-builder-dragging"),[...document.querySelectorAll(".ct-panel-builder .ct-is-over")].map((function(e){return e.classList.remove("ct-is-over")}))},onMove:function(e,t){let n=wp.customize.previewedDevice();if("tablet"===n&&(n="mobile"),e.from.closest("#ct-option-header-builder-items")&&Promise.resolve().then((function(){return[...e.from.querySelectorAll(`[data-id="${e.dragged.dataset.id}"]`)].map((function(e){e.classList.remove("ct-builder-item"),e.classList.add("ct-item-in-builder")}))})),[...document.querySelectorAll(".ct-panel-builder .ct-is-over")].map((function(e){return e.classList.remove("ct-is-over")})),e.to&&e.to.classList.add("ct-is-over"),!v(e.dragged.dataset.id,e.to.dataset.id.split(":")[0],n))return!1}},h),onChange:function(e,t,r){"available-items"!==n&&S({id:n,value:e.filter((function(e){return"__pointer__"!==e&&"__filler__"!==e}))})},tag:c,className:a()("ct-builder-items",i)},O,{"data-id":n}),["end","start-middle"].indexOf(n.split(":")[1])>-1&&(0,r.createElement)("div",{"data-id":"__filler__",className:"ct-filler"}),o&&E&&v(E,n.split(":")[0],_)&&(0,r.createElement)("div",{"data-id":"__pointer__",className:"ct-pointer"}),x):(0,r.createElement)(r.Fragment,null,x)};function w(){return w=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},w.apply(this,arguments)}var O=function(e){let{placementName:t,bar:n,direction:o}=e;const i=n.placements.find((function(e){let{id:n}=e;return n===t}));let a=[i];if("middle"!==t){const e=n.placements.find((function(e){let{id:t}=e;return"middle"===t}));if(e&&e.items.length>0){if("start"===t){a=[i,n.placements.find((function(e){let{id:t}=e;return"start-middle"===t}))]}if("end"===t){a=[n.placements.find((function(e){let{id:t}=e;return"end-middle"===t})),i]}}}return(0,r.createElement)("li",w({className:[`ct-builder-column-${i.id}`]},"middle"===i.id?{"data-count":i.items.length}:{}),a.map((function(e){return(0,r.createElement)(y,{key:e.id,direction:o,className:"middle"===e.id?"":`ct-${e.id.indexOf("-")>-1?"secondary":"primary"}-column`,draggableId:`${n.id}:${e.id}`,items:e.items})})))};var _=function(e){let{bar:t,direction:n="horizontal"}=e;const{panelsHelpers:i}=(0,r.useContext)(s.Q);return(0,r.createElement)("li",{className:"builder-row"},(0,r.createElement)("div",{className:"ct-row-actions",onClick:function(){return i.open(`builder_panel_${t.id}`)}},{"top-row":(0,o.__)("Top Row","blocksy"),"middle-row":(0,o.__)("Main Row","blocksy"),"bottom-row":(0,o.__)("Bottom Row","blocksy"),offcanvas:(0,o.__)("Off Canvas Area","blocksy")}[t.id]),(0,r.createElement)("ul",{className:"row-inner"},["start","middle","end"].filter((function(e){return!!t.placements.find((function(t){let{id:n}=t;return n===e}))})).map((function(e){return(0,r.createElement)(O,{key:e,bar:t,placementName:e,direction:n})}))))};var E=function(e){let{inlinedItemsFromBuilder:t,view:n,builderValueWithView:o}=e,i="mobile"===n||t.indexOf("trigger")>-1&&o.find((function(e){let{id:t}=e;return"offcanvas"===t}));return(0,r.createElement)("div",{className:a()("placements-builder",{"ct-mobile":i})},i&&(0,r.createElement)("ul",{className:"offcanvas-container"},(0,r.createElement)(_,{direction:"vertical",bar:o.find((function(e){let{id:t}=e;return"offcanvas"===t}))})),(0,r.createElement)("ul",{className:"horizontal-rows"},["top-row","middle-row","bottom-row"].map((function(e){const t=o.find((function(t){let{id:n}=t;return n===e}));return t?(0,r.createElement)(_,{bar:t,key:e}):null}))))};var P=function(e){let{currentView:t,setCurrentView:n}=e;const[i,l]=(0,r.useState)(!1);return(0,r.useEffect)((function(){return function(){document.querySelector(".wp-full-overlay").classList.remove("ct-builder-collapsed")}}),[]),(0,r.createElement)("ul",{className:"ct-view-switch"},["desktop","mobile"].map((function(e){return(0,r.createElement)("li",{key:e,onClick:function(){return n("mobile"===e?"tablet":e)},className:a()({active:t===e})},{desktop:(0,o.__)("Desktop Header","blocksy"),mobile:(0,o.__)("Tablet / Mobile Header","blocksy")}[e])})),(0,r.createElement)("li",{className:"ct-builder-toggle",onClick:function(){l(!i),i?document.querySelector(".wp-full-overlay").classList.remove("ct-builder-collapsed"):document.querySelector(".wp-full-overlay").classList.add("ct-builder-collapsed")}},i?(0,o.__)("Show Builder","blocksy"):(0,o.__)("Hide Builder","blocksy")))},S=n(8441),j=n(9999),C=n(7686);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var N=function(e){let{builderValue:t,builderValueDispatch:n,inlinedItemsFromBuilder:o,displayList:i=!0}=e;const{panelsState:l,panelsActions:s,currentView:u,isDragging:p}=(0,r.useContext)(Q),d=[...t.desktop.reduce((function(e,t){let{id:n,placements:r}=t;return[...e,...(r||[]).reduce((function(e,t){let{id:n,items:r}=t;return[...e,...r]}),[])]}),[]),...t.mobile.reduce((function(e,t){let{id:n,placements:r}=t;return[...e,...(r||[]).reduce((function(e,t){let{id:n,items:r}=t;return[...e,...r]}),[])]}),[])],f=ct_customizer_localizations.header_builder_data.secondary_items.header.filter((function(e){let{config:t}=e;return t.enabled})),m=ct_customizer_localizations.header_builder_data.header,h=t.items.filter((function(e){let{id:t}=e;return t.indexOf((0,c.SU)())>-1})).map((function(e){let{id:t}=e;return t}));return(0,r.createElement)(y,{options:{sort:!1,filter:".ct-item-in-builder"},group:{name:"header_sortables",put:!1,pull:"clone"},draggableId:"available-items",items:[...f.map((function(e){let{id:t}=e;return t})),...h].filter((function(e){return m.some((function(t){let{id:n}=t;return n===(0,c.t_)(e)}))})).sort((function(e,t){const n=m.find((function(t){let{id:n}=t;return n===(0,c.t_)(e)})),r=m.find((function(e){let{id:n}=e;return n===(0,c.t_)(t)}));return n.config.name.localeCompare(r.config.name)})),hasPointers:!1,displayWrapper:i,propsForItem:function(e){return{renderItem:function(e){let{item:l,itemData:f,index:g}=e;const v=m.find((function(e){let{id:t}=e;return t===(0,c.t_)(l)})).options,b=[(0,c.t_)(l),...h.filter((function(e){return(0,c.t_)(e)===(0,c.t_)(l)}))],y=b.length>1?`${f.config.name} ${b.indexOf(l)+1}`:f.config.name,w={label:y,"inner-options":v},O=o.indexOf(l)>-1;let _="__none__";O&&(_=t[u].find((function(e){let{id:t,placements:n}=e;return(n||[]).reduce((function(e,t){let{id:n,items:r}=t;return[...e,...r]}),[]).find((function(e){return e===l}))})).id);const E=`builder_panel_${l}`,P=["mobile-menu","mobile-menu-secondary","offcanvas-logo"],k=i&&f.config.devices.includes(u)&&(!P.includes(l)||P.includes(l)&&("desktop"!==u||o.indexOf("trigger")>-1));f.config.name;return(0,r.createElement)(j.PanelMetaWrapper,x({id:E,option:w},s,{getActualOption:function(e){let{open:o}=e;return(0,r.createElement)(r.Fragment,null,d.indexOf(l)>-1&&(0,r.createElement)(j.default,{id:E,getValues:function(){let e=t.items.find((function(e){let{id:t}=e;return t===l}));return e&&Object.keys(e.values)>5?I({builderSettings:t.settings||{},row:_},e.values):I(I({},(0,C.n6)(v,e?e.values:{})),{},{row:_,builderSettings:t.settings||{}})},option:w,onChangeFor:function(e,r){const o=t.items.find((function(e){let{id:t}=e;return t===l}));n({type:"ITEM_VALUE_ON_CHANGE",payload:{id:l,optionId:e,optionValue:r,values:!o||o&&0===Object.keys(o.values).length?(0,C.n6)(v,{}):{}}})},view:"simple"}),k&&(0,r.createElement)("div",{"data-id":l,className:a()({"ct-item-in-builder":O,"ct-builder-item":!O}),onClick:function(e){p||O&&o()}},y,(0,r.createElement)(S.Slot,{name:`PlacementsBuilderSidebarItem_${g}`,fillProps:{item:l,itemInBuilder:O,itemData:f}})))}}))}}},direction:"vertical"})};function T(){return T=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},T.apply(this,arguments)}function A(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function R(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?A(Object(n),!0).forEach((function(t){M(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):A(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function M(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var L=function(e){let{builderValue:t,builderValueDispatch:n}=e;const o=ct_customizer_localizations.header_builder_data.secondary_items.header,i=ct_customizer_localizations.header_builder_data.header,{panelsState:a,panelsActions:l,currentView:s}=(0,r.useContext)(Q),c=i.filter((function(e){let{id:t}=e;return!o.find((function(e){return e.id===t}))}));return(0,r.createElement)(r.Fragment,null,c.map((function(e){const o={label:e.config.name,"inner-options":e.options},i=`builder_panel_${e.id}`;return(0,r.createElement)(j.PanelMetaWrapper,T({id:i,key:e.id,option:o},l,{getActualOption:function(){return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(j.default,{id:i,getValues:function(){let n=t.items.find((function(t){let{id:n}=t;return n===e.id})),r="0";return"top-row"!==e.id&&"middle-row"!==e.id&&"bottom-row"!==e.id||(r=t[s].find((function(t){let{id:n}=t;return n===e.id})).placements.reduce((function(e,t){return[...e,...t.items]}),[]).length.toString()),n&&Object.keys(n.values)>5?R({itemsCount:r,builderSettings:t.settings||{}},n.values):R(R({},(0,C.n6)(e.options,n?n.values:{})),{},{itemsCount:r,builderSettings:t.settings||{}})},option:o,onChangeFor:function(r,o){const i=t.items.find((function(t){let{id:n}=t;return n===e.id}));n({type:"ITEM_VALUE_ON_CHANGE",payload:{id:e.id,optionId:r,optionValue:o,values:!i||i&&0===Object.keys(i.values).length?(0,C.n6)(e.options,{}):{}}})},view:"simple"}))}}))})))};function B(){return B=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},B.apply(this,arguments)}var F=function(){ct_customizer_localizations.header_builder_data.secondary_items.header,ct_customizer_localizations.header_builder_data.header;const{builderValue:e,option:t,builderValueCollection:n,builderValueDispatch:i,panelsActions:l}=(0,r.useContext)(Q),s=n.sections.filter((function(e){let{id:t}=e;return"type-2"!==t&&"type-3"!==t&&-1===t.indexOf("ct-custom")}));return(0,r.createElement)("ul",{className:a()("ct-panels-manager")},s.map((function(t){let{name:n,id:s}=t,c=n||{"type-1":(0,o.__)("Global Header","blocksy")}[s]||s;const u=`builder_header_panel_${s}`,p=ct_customizer_localizations.header_builder_data.header_data.header_options,d={label:c,"inner-options":p};return(0,r.createElement)(j.PanelMetaWrapper,B({id:u,key:s,option:d},l,{getActualOption:function(t){let{open:n}=t;return(0,r.createElement)(r.Fragment,null,Object.keys(p).length>0&&s===e.id&&(0,r.createElement)(j.default,{id:u,getValues:function(){return e.settings||{}},option:d,onChangeFor:function(t,n){i({type:"BUILDER_GLOBAL_SETTING_ON_CHANGE",payload:{optionId:t,optionValue:n,values:(0,C.n6)(p,Array.isArray(e.settings)?{}:e.settings||{})}})},view:"simple"}),s===e.id&&(0,r.createElement)("li",{className:a()({active:s===e.id,"ct-global":"type-1"===s}),onClick:function(){Object.keys(p).length>0&&n()}},(0,r.createElement)("span",{className:"ct-panel-name"},c)))}}))})))};var z=function(e){let{allBuilderSections:t,builderValue:n,builderValueDispatch:i,inlinedItemsFromBuilder:l}=e;const[s,c]=(0,r.useState)("items"),{builderValueCollection:u}=(0,r.useContext)(Q);ct_customizer_localizations.header_builder_data.secondary_items.header,ct_customizer_localizations.header_builder_data.header,ct_customizer_localizations.header_builder_data.header_data.header_options;return(0,r.createElement)("div",{className:"ct-available-items"},(0,r.createElement)("h3",{className:"ct-title",dangerouslySetInnerHTML:{__html:(0,o.sprintf)((0,o.__)("Customizing: %s","blocksy"),`<span>${(u.sections.find((function(e){let{id:t}=e;return t===n.id}))||{}).name||{"type-1":(0,o.__)("Global Header","blocksy")}[n.id]||n.id}</span>`)}}),(0,r.createElement)("div",{className:"ct-tabs"},(0,r.createElement)("ul",null,["items","panels"].map((function(e){return(0,r.createElement)("li",{key:e,onClick:function(t){t.preventDefault(),c(e)},className:a()({active:e===s})},{panels:(0,o.__)("Headers","blocksy"),items:(0,o.__)("Elements","blocksy")}[e])}))),(0,r.createElement)("div",{className:"ct-current-tab"},"panels"===s&&(0,r.createElement)(S.Slot,{name:"PlacementsBuilderPanelsManager"},(function(e){return 0===e.length?(0,r.createElement)(F,null):e})),(0,r.createElement)(N,{builderValue:n,builderValueDispatch:i,inlinedItemsFromBuilder:l,displayList:"items"===s}))),(0,r.createElement)(L,{builderValue:n,builderValueDispatch:i}))},V=n(1496),U=n.n(V);function H(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function W(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?H(Object(n),!0).forEach((function(t){G(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):H(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function G(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const $=function(e,t){let n={},r=[],o=e.sections.find((function(t){let{id:n}=t;return n.indexOf(e.__forced_static_header__||ee()||e.sections[0].id)>-1})),i=!1,a=!1,l=[];if("ITEM_VALUE_ON_CHANGE"===t.type){const{id:e,optionId:n,optionValue:r,values:i={}}=t.payload;a=`${e}:${n}`;let l=o.items;l.find((function(t){let{id:n}=t;return n===e}))||(l=[...l,{id:e,values:{}}]),o=W(W({},o),{},{items:l.map((function(t){return t.id===e?W(W({},t),{},{values:W(W({},t.values),{},{[n]:r})}):t}))})}if("PICK_BUILDER_SECTION"===t.type&&(i=!0,n={__forced_static_header__:t.payload.id}),"CLONE_ITEM"===t.type){const e=(0,c.t_)(t.payload.id);o=W(W({},o),{},{items:[...o.items,{id:`${e}${(0,c.SU)()}${U()()}`,values:o.items.find((function(t){let{id:n}=t;return n===e}))?o.items.find((function(t){let{id:n}=t;return n===e})).values:{}}]})}if("REMOVE_CLONED_ITEM"===t.type&&(o=W(W({},o),{},{items:o.items.filter((function(e){let{id:n}=e;return n!==t.payload.id}))})),"SET_LIST"===t.type){i=!0;const{currentView:e,lists:n}=t.payload;"desktop"===e&&Object.values(n).reduce((function(e,t){return[...e,...t]}),[]).indexOf("trigger")>-1&&!o.desktop.find((function(e){let{id:t}=e;return"offcanvas"===t}))&&(o=W(W({},o),{},{desktop:[...o.desktop,{id:"offcanvas",placements:[{id:"start",items:[]}]}]})),o=W(W({},o),{},{[e]:o[e].map((function(e){let{id:t,placements:r}=e;if(Object.keys(n).map((function(e){return e.split(":")[0]})).indexOf(t)>-1){let e={id:t,placements:r.map((function(e){let{id:r,items:o}=e;return n[`${t}:${r}`]?{id:r,items:n[`${t}:${r}`]}:{id:r,items:o}}))};if(e.placements.find((function(e){let{id:t}=e;return"middle"===t}))&&0===e.placements.find((function(e){let{id:t}=e;return"middle"===t})).items.length&&e.placements.find((function(e){let{id:t}=e;return"start-middle"===t}))&&(e.placements.find((function(e){let{id:t}=e;return"start-middle"===t})).items.length>0||e.placements.find((function(e){let{id:t}=e;return"end-middle"===t})).items.length>0)){let n={};n[`${t}:start`]=[...e.placements.find((function(e){let{id:t}=e;return"start"===t})).items,...e.placements.find((function(e){let{id:t}=e;return"start-middle"===t})).items],n[`${t}:end`]=[...e.placements.find((function(e){let{id:t}=e;return"end-middle"===t})).items,...e.placements.find((function(e){let{id:t}=e;return"end"===t})).items],n[`${t}:start-middle`]=[],n[`${t}:end-middle`]=[],e={id:t,placements:e.placements.map((function(e){let{id:r,items:o}=e;return n[`${t}:${r}`]?{id:r,items:n[`${t}:${r}`]}:{id:r,items:o}}))}}return e}return{id:t,placements:r}}))})}if("BUILDER_GLOBAL_SETTING_ON_CHANGE"===t.type){const{optionId:e,optionValue:n,values:r={}}=t.payload;o=W(W({},o),{},{settings:W(W(W({},o.settings),r),{},{[e]:n})})}if("CREATE_NEW_SECTION"===t.type){const{name:n,copy:o}=t.payload;r=[o?W(W({},e.sections.find((function(e){let{id:t}=e;return t===o}))||{}),{},{name:n,id:`ct-custom-${U()()}`}):{name:n,id:`ct-custom-${U()()}`,mode:"placements",items:[],settings:[],desktop:[{id:"top-row",placements:[{id:"start",items:[]},{id:"middle",items:[]},{id:"end",items:[]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]},{id:"middle-row",placements:[{id:"start",items:["logo"]},{id:"middle",items:[]},{id:"end",items:["menu"]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]},{id:"bottom-row",placements:[{id:"start",items:[]},{id:"middle",items:[]},{id:"end",items:[]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]}],mobile:[{id:"top-row",placements:[{id:"start",items:[]},{id:"middle",items:[]},{id:"end",items:[]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]},{id:"middle-row",placements:[{id:"start",items:["logo"]},{id:"middle",items:[]},{id:"end",items:["trigger"]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]},{id:"bottom-row",placements:[{id:"start",items:[]},{id:"middle",items:[]},{id:"end",items:[]},{id:"start-middle",items:[]},{id:"end-middle",items:[]}]},{id:"offcanvas",placements:[{id:"start",items:["mobile-menu"]}]}]}]}"REMOVE_BUILDER_SECTION"===t.type&&l.push(t.payload.id);const s=W(W(W({},e),n),{},{__should_refresh__:i,__should_refresh_item__:a,sections:[...e.sections.map((function(e){return e.id===o.id?o:e})),...r].filter((function(e){let{id:t}=e;return-1===l.indexOf(t)}))});return s.__forced_static_header__||(s.__forced_static_header__=s.id),s};var q=n(1429);n(2243);const Z=["__forced_static_header__","__should_refresh__"];function K(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function Y(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?K(Object(n),!0).forEach((function(t){X(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):K(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function X(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function J(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const Q=(0,r.createContext)({}),ee=function(){(e=wp.customize.previewer.container.find("iframe")[0]).document||e.contentDocument||e.contentWindow.document;var e;return wp.customize.previewer.container.find("iframe")[0].contentDocument.querySelector("header#header")?wp.customize.previewer.container.find("iframe")[0].contentDocument.querySelector("header#header").dataset.id:null};var te=function(e){let{value:t,option:n,onChange:o}=e;const i=(0,r.useRef)(null);null===i.current&&(i.current=(t.sections.find((function(e){let{id:t}=e;return t.indexOf(ee())>-1}))||t.sections[0]).id),(0,r.useEffect)((function(){return function(){const e=wp.customize("header_placements")(),{__forced_static_header__:t,__should_refresh__:n}=e,r=J(e,Z);t&&wp.customize("header_placements")(Y({__should_refresh__:!0,[Math.random()]:"update"},r))}}),[]);const[a,l]=(0,r.useState)(!1),[s,c]=(0,r.useReducer)($,Y(Y({},t),i.current?{__forced_static_header__:i.current}:{})),u=(0,r.useMemo)((function(){return s.sections.find((function(e){let{id:t}=e;return t===s.__forced_static_header__}))||s.sections[0]}),[s]),[p,d]=(0,q.Or)({withTablet:!1}),f=(0,r.useMemo)((function(){return u[p].reduce((function(e,t){let{id:n,placements:r}=t;return[...e,...(r||[]).reduce((function(e,t){let{id:n,items:r}=t;return[...e,...r]}),[])]}),[])}),[u,p]),m=(0,r.useCallback)((function(e){let t=$(s,e);if("ITEM_VALUE_ON_CHANGE"===e.type){const{id:n,optionId:r,optionValue:o,values:i={}}=e.payload,a=t.sections.find((function(e){let{id:n}=e;return n===t.__forced_static_header__}))||t.sections[0];let l=a.items;"logo"===n&&"custom_logo"===r&&"type-1"===a.id&&wp.customize&&wp.customize("custom_logo")(o?o.desktop?o.desktop:o:""),wp.customize.previewer&&wp.customize.previewer.send("ct:header:receive-value-update",{itemId:n,optionId:r,optionValue:o,futureItems:a.items,values:Y(Y(Y({},(l.find((function(e){let{id:t}=e;return n===t}))||{values:{}}).values),i),{},{[r]:o})})}if("BUILDER_GLOBAL_SETTING_ON_CHANGE"===e.type){const{optionId:n,optionValue:r,values:o={}}=e.payload,i=t.sections.find((function(e){let{id:n}=e;return n===t.__forced_static_header__}))||t.sections[0];wp.customize.previewer&&wp.customize.previewer.send("ct:header:receive-value-update",{itemId:"global",optionId:n,optionValue:r,values:Y(Y(Y({},i.settings),o),{},{[n]:r})})}o(t),c(e)}),[c,o,s]),h=(0,r.useCallback)((function(e){return m({type:"SET_LIST",payload:{currentView:p,lists:e}})}),[m,p]);return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(Q.Provider,{value:{option:n,currentView:p,isDragging:a,setIsDragging:l,setList:h,builderValueDispatch:m,builderValue:u,onChange:function(e){let{id:t,value:n}=e;return h({[t]:n})},builderValueCollection:s}},(0,r.createElement)(z,{allBuilderSections:t,builderValue:u,inlinedItemsFromBuilder:f,builderValueDispatch:m}),(0,r.createPortal)((0,r.createElement)("div",{className:"ct-builder-header"},(0,r.createElement)(P,{currentView:p,setCurrentView:d}),(0,r.createElement)(E,{inlinedItemsFromBuilder:f,builderValueWithView:u[p],view:p})),document.querySelector(".ct-panel-builder"))))};const ne=function(e){return(0,r.createElement)(te,e)};ne.renderingConfig={design:"none"};var re=ne},1650:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4184),i=n.n(o),a=n(5529);const l=["className"];function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function d(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(e){let{option:{choices:t,tabletChoices:n,mobileChoices:o},option:c,device:p,value:f,values:m,onChange:h}=e;const g=u({},c.attr||{}),{className:v}=g,b=d(g,l);let y=c.choices;"tablet"===p&&n&&(y=n),"mobile"===p&&o&&(y=o);let w=(Array.isArray(y)?y:Object.keys(y).map((function(e){return u({key:e},y[e])}))).filter((function(e){let{key:t}=e;return!c.conditions||(!c.conditions[t]||(0,a.Nj)((0,a.KY)(c.conditions[t]),m))})),O=w.map((function(e){let{key:t}=e;return t})).includes(f)?f:c.value;return(0,r.createElement)("ul",s({},b,{className:i()("ct-image-picker",v)},(c.title,{})),w.map((function(e){return(0,r.createElement)("li",{className:i()({active:e.key===O}),"data-tooltip":"top",onClick:function(){return h(e.key)},key:e.key},-1===e.src.indexOf("<svg")?(0,r.createElement)("img",{src:e.src}):(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:e.src}}),c.title&&null,e.title&&(0,r.createElement)("span",{className:"ct-tooltip"},e.title))})))}},7402:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(1381),o=n(8441),i=n(4184),a=n.n(i),l=n(5652),s=n(6715),c=n.n(s);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class m extends r.Component{constructor(){var e;super(...arguments),e=this,f(this,"params",{height:250,width:250,flex_width:!0,flex_height:!0}),f(this,"state",{attachment_info:null}),f(this,"getUrlFor",(function(e){return e?((e.width<700?e.sizes&&e.sizes.full:c().max(c().values(1===c().keys(e.sizes).length?e.sizes:c().omit(e.sizes,"full")),(function(e){let{width:t}=e;return t})))||{}).url||e.url:null})),f(this,"onChange",(function(t){let n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;return e.props.onChange(e.props.option.inline_value?t||"":d(d({},e.props.value),{},{url:e.getUrlFor(n),attachment_id:t}))})),f(this,"getAttachmentId",(function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:e.props;return t.option.inline_value?t.value:t.value.attachment_id})),f(this,"onSelect",(function(){var t=e.frame.state().get("selection").first().toJSON();(e.props.option.logo||{}).width===t.width&&(e.props.option.logo||{}).height===t.height&&!(e.props.option.logo||{}).flex_width&&!(e.props.option.logo||{}).flex_height||e.props.option.skipCrop,e.setImageFromAttachment(t),e.frame.close()})),f(this,"onCropped",(function(t){e.setImageFromAttachment(t)})),f(this,"onSkippedCrop",(function(){var t=e.frame.state().get("selection").first().toJSON();e.setImageFromAttachment(t)})),f(this,"updateAttachmentInfo",(function(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0],n=e.getAttachmentId();n&&(!wp.media.attachment(n).get("url")||t?wp.media.attachment(n).fetch().then((function(){return e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))})})):e.setState({attachment_info:JSON.parse(JSON.stringify(wp.media.attachment(n).toJSON()))}),e.detachListener(),wp.media.attachment(n).on("change",e.updateAttachmentInfo))}))}initFrame(){var e=this;this.frame=wp.media({button:{text:"Select",close:!1},states:[new wp.media.controller.Library({title:this.props.option.label||(0,l.__)("Select logo","blocksy"),library:wp.media.query({type:this.props.option.mediaType||"image"}),multiple:!1,date:!1,priority:20,suggestedWidth:(this.props.option.logo||{}).width,suggestedHeight:(this.props.option.logo||{}).height}),...(this.props.option.skipCrop,[])]}),this.frame.on("select",this.onSelect,this),this.frame.on("close",(function(){e.props.option.onFrameClose&&e.props.option.onFrameClose()})),this.frame.on("cropped",this.onCropped,this),this.frame.on("skippedcrop",this.onSkippedCrop,this)}openFrame(){this.initFrame(),this.frame.setState("library").open(),this.props.option.onFrameOpen&&this.props.option.onFrameOpen()}calculateImageSelectOptions(e,t){var n,r,o,i=t.get("control"),a=!!parseInt((i.props.option.logo||{}).flex_width,10),l=!!parseInt((i.props.option.logo||{}).flex_height,10),s=e.get("width"),c=e.get("height"),u=parseInt((i.props.option.logo||{}).width,10),p=parseInt((i.props.option.logo||{}).height,10),d=u/p,f=u,m=p;return s/c>d?u=(p=c)*d:p=(u=s)/d,o={handles:!0,keys:!0,instance:!0,persistent:!0,imageWidth:s,imageHeight:c,minWidth:f>u?u:f,minHeight:m>p?p:m,x1:n=(s-u)/2,y1:r=(c-p)/2,x2:u+n,y2:p+r},!1===l&&!1===a&&(o.aspectRatio=u+":"+p),!0===l&&(delete o.minHeight,o.maxWidth=s),!0===a&&(delete o.minWidth,o.maxHeight=c),o}mustBeCropped(e,t,n,r,o,i){return(!0!==e||!0!==t)&&((!0!==e||r!==i)&&((!0!==t||n!==o)&&((n!==o||r!==i)&&!(o<=n))))}setImageFromAttachment(e){this.onChange(e.id,JSON.parse(JSON.stringify(wp.media.attachment(e.id).toJSON()))),this.updateAttachmentInfo()}detachListener(){this.getAttachmentId()&&wp.media.attachment(this.getAttachmentId()).off("change",this.updateAttachmentInfo)}componentDidUpdate(e){this.getAttachmentId()!==this.getAttachmentId(e)&&(wp.media.attachment(this.getAttachmentId(e)).off("change",this.updateAttachmentInfo),this.updateAttachmentInfo())}componentDidMount(){this.updateAttachmentInfo()}componentWillUnmount(){this.detachListener()}render(){var e,t,n=this;return(0,r.createElement)("div",u({className:a()("attachment-media-view ct-attachment",{landscape:this.getAttachmentId()&&this.state.attachment_info,"attachment-media-view-image":this.getAttachmentId()&&this.state.attachment_info})},this.props.option.attr||{}),this.getAttachmentId()&&this.state.attachment_info?(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"thumbnail thumbnail-image",onClick:function(){return!n.props.option.has_position_picker&&n.openFrame()}},!this.props.option.has_position_picker&&(0,r.createElement)(React.Fragment,null,!this.props.option.mediaType||null!==(e=this.props.option)&&void 0!==e&&null!==(t=e.mediaType)&&void 0!==t&&t.includes("image")?(0,r.createElement)("img",{className:"attachment-thumb",src:this.getUrlFor(this.state.attachment_info),draggable:"false",alt:""}):(0,r.createElement)("p",null,this.getUrlFor(this.state.attachment_info))),this.props.option.has_position_picker&&(0,r.createElement)(o.FocalPointPicker,{url:this.getUrlFor(this.state.attachment_info),dimensions:{width:400,height:100},value:this.props.value,onChange:function(e){n.props.onChange(d(d({},n.props.value),e))}}),(0,r.createElement)("ul",{className:"actions"},(0,r.createElement)("li",null,(0,r.createElement)("button",{type:"button",className:"button edit-button control-focus",title:(0,l.__)("Edit","blocksy"),onClick:function(e){e.stopPropagation(),n.openFrame()},id:"customize-media-control-button-35"})),(0,r.createElement)("li",null,(0,r.createElement)("button",{onClick:function(e){e.stopPropagation(),n.setState({attachment_info:null}),n.onChange(null)},title:(0,l.__)("Remove","blocksy"),type:"button",className:"button remove-button"}))))):(0,r.createElement)(r.Fragment,null,(0,r.createElement)("button",{type:"button",onClick:function(){return n.openFrame()},className:"ct-upload-button",id:"customize-media-control-button-50"},this.props.option.emptyLabel||(0,l.__)("Select logo","blocksy"))))}}},532:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(5697),i=n(9984),a=n(543),l=n(1496),s=n.n(l),c=n(7686);function u(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function p(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?u(Object(n),!0).forEach((function(t){d(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):u(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function d(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const f=function(e){return e.map((function(e){return p(p({},e),e.__id?{}:{__id:s()()})}))};t.default=function(e){let{option:t,value:n,onChange:l}=e,s=Object.keys(n).reduce((function(e,t){return p(p({},e),{},{[t]:f(n[t])})}),{});const u=Object.values(s).reduce((function(e,t){return[...e,...t]}),[]),d=Object.values((0,c.n6)(t["inner-options"],{})).reduce((function(e,t){return[...e,...t]})),m=f([...d.filter((function(e){let{id:t}=e;return!u.find((function(e){let{id:n}=e;return t===n}))}))]);return s.right=[...s.right,...m],(0,r.createElement)(i.Z5,{onDragEnd:function(e){if(!e.destination)return;if(e.destination.droppableId===e.source.droppableId)return void l(p(p({},s),{},{[e.destination.droppableId]:(0,a.reorder)(s[e.destination.droppableId],e.source.index,e.destination.index)}));const t=s[e.source.droppableId],n=s[e.destination.droppableId],r=t[e.source.index];t.splice(e.source.index,1),n.splice(e.destination.index,0,r),l(p(p({},s),{},{[e.source.droppableId]:t,[e.destination.droppableId]:n}))}},(0,r.createElement)(o.Z,{onChange:function(e,t){l(p(p({},s),{},{[e]:t}))},options:t["inner-options"],value:s}))}},7525:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(5697);function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s=function(e){let{values:t,onChangeFor:n,value:i,option:l,onChange:s}=e;const c=t[l.layers]||[],u=c.filter((function(e){let{id:t,enabled:n}=e;return n&&t===l.field}));return 0===u.length?null:u.map((function(e,t){let i=Object.keys(l["inner-options"]).reduce((function(e,n){return a(a({},e),{},{[n]:a(a({},l["inner-options"][n]),{},{label:l["inner-options"][n].label.replace("INDEX ",1===u.length?"":`${t+1} `)})})}),{});return(0,r.createElement)(o.Z,{key:e.__id||e.id,onChange:function(t,r){n(l.layers,c.map((function(n){return n.__id!==e.__id?n:a(a({},n),{},{[t]:r})})))},options:i,value:e})}))};s.renderingConfig={design:"none"},t.default=s},543:function(e,t,n){"use strict";n.r(t),n.d(t,{LayersContext:function(){return R},default:function(){return B},itemsThatAreNotAdded:function(){return A},reorder:function(){return N}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5529),l=(n(454),n(7686)),s=n(1496),c=n.n(s),u=n(2425);function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){let{value:t,option:n}=e;const o=A(t,n),{currentlyPickedItem:i,setCurrentItem:a,addCurrentlySelectedItem:l}=(0,r.useContext)(R);return o.length<=0?null:(0,r.createElement)("div",{className:"ct-add-layer-controls"},(0,r.createElement)(u.default,{onChange:function(e){return a(e)},option:d({search:!0,choices:o.map((function(e){return{key:e,value:window._.template((n.settings[e]||{label:e}).label)({label:""})}}))},n.selectOption||{}),value:i||o[0]}),(0,r.createElement)("button",{type:"button",className:"button button-primary",onClick:function(){return l()}},(0,r.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 17 17"},(0,r.createElement)("path",{d:"M17,10h-7v7H7v-7H0V7h7V0h3v7h7V10z"}))))},h=n(5652);function g(){return g=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},g.apply(this,arguments)}function v(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function b(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?v(Object(n),!0).forEach((function(t){y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):v(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var w=function(e){let{itemIndex:t,items:n,onChange:o,value:i,parentValue:l,provided:s}=e;const{removeForId:c,addForId:u,option:p,toggleOptionsPanel:d}=(0,r.useContext)(R),f=p.settings[i.id]&&p.settings[i.id].options&&(!p.settings[i.id].options_condition||p.settings[i.id].options_condition&&(0,a.Nj)((0,a.KY)(p.settings[i.id].options_condition),b(b({},l),{},{itemIndex:t})));let m=n.filter((function(e){let{id:t}=e;return t===i.id})),v=m.map((function(e){let{__id:t}=e;return t})).indexOf(i.__id);return(0,r.createElement)("div",{className:"ct-layer-controls"},!p.disableHiding&&(0,r.createElement)("button",{type:"button",className:"ct-visibility",onClick:function(e){e.stopPropagation(),o(n.map((function(e){return e.__id===i.__id?b(b({},e),{},{enabled:!b({enabled:!0},e).enabled}):e})))}},(0,r.createElement)("svg",{width:"13px",height:"13px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{className:"ct-seen",d:"m.9 13.5 1 .5s.1-.1.1-.2c.1-.2.2-.4.5-.7.4-.6 1-1.4 1.9-2.2C6 9.2 8.5 7.6 12 7.6s6 1.6 7.7 3.2c.8.8 1.5 1.6 1.9 2.2.2.3.4.5.5.7 0 .1.1.1.1.2l.9-.5.9-.5v-.1c0-.1-.1-.1-.1-.2-.1-.2-.3-.5-.5-.8-.5-.7-1.2-1.6-2.2-2.5-1.9-1.9-5-3.7-9.1-3.7S4.9 7.5 3 9.3c-1 .9-1.7 1.9-2.2 2.5-.2.3-.4.6-.5.8-.1.1-.1.2-.1.2L0 13c0 .1 0 .1.9.5zM12 17.7c2.7 0 4.8-2.2 4.8-4.8S14.7 8 12 8s-4.8 2.2-4.8 4.8 2.1 4.9 4.8 4.9z"}),(0,r.createElement)("path",{className:"ct-unseen",d:"M16.8 12.8c0 2.7-2.2 4.8-4.8 4.8-.6 0-1.2-.1-1.8-.4L15.1 9c1 1 1.7 2.3 1.7 3.8zm7.2.3c0-.1 0-.1 0 0-.1-.2-.1-.2-.2-.3-.1-.2-.3-.5-.5-.8-.5-.7-1.2-1.6-2.2-2.5-1.1-1.1-2.6-2.1-4.5-2.9l-1.1 1.8c1.7.6 3.1 1.6 4.1 2.6.8.8 1.5 1.6 1.9 2.2.2.3.4.5.5.7 0 .1.1.1.1.2l.9-.5 1-.5zM16.2 1.4l-2.5 4.3c-.5-.1-1.1-.1-1.7-.1-4.1 0-7.2 1.9-9.1 3.7-1 .9-1.7 1.9-2.2 2.5-.2.3-.4.6-.5.8-.1.1-.1.2-.1.2L0 13l.9.5 1 .5s.1-.1.1-.2c.1-.2.2-.4.5-.7.4-.6 1-1.4 1.9-2.2C6 9.2 8.5 7.6 12 7.6h.5l-.2.4H12c-2.7 0-4.8 2.2-4.8 4.8 0 .9.3 1.8.7 2.6l-3.2 5.4 1.3.7L17.5 2.1l-1.3-.7z"}))),(0,r.createElement)("div",g({className:"ct-layer-label"},s.dragHandleProps),(0,r.createElement)("span",null,window._.template((p.settings[i.id]||{label:i.id}).label)(i).replace(" INDEX",1===m.length?"":` ${v+1}`))),p.settings[i.id]&&p.settings[i.id].clone&&n.filter((function(e){let{id:t}=e;return t===i.id})).length<(parseInt(p.settings[i.id].clone)||1)+1&&(0,r.createElement)("button",{type:"button",className:"ct-clone","data-tooltip":"top",onClick:function(){return u(i.id,i)}},(0,r.createElement)("svg",{width:"10px",height:"10px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"M23,24H7.7c-0.6,0-1-0.4-1-1V7.7c0-0.6,0.4-1,1-1H23c0.6,0,1,0.4,1,1V23C24,23.6,23.6,24,23,24z M8.7,22H22V8.7 H8.7V22z"}),(0,r.createElement)("path",{d:"M17.3,16.3c0,0.6-0.4,1-1,1H1c-0.6,0-1-0.4-1-1V1c0-0.6,0.4-1,1-1h15.3c0.6,0,1,0.4,1,1V16.3z"})),(0,r.createElement)("i",{className:"ct-tooltip"},(0,h.__)("Clone Item","blocksy"))),(p.manageable||p.settings[i.id]&&p.settings[i.id].clone&&n.filter((function(e){let{id:t}=e;return t===i.id})).length>1||!p.settings[i.id])&&(0,r.createElement)("button",{type:"button",className:"ct-remove",onClick:function(){return c(i.__id)}},(0,r.createElement)("svg",{width:"8px",height:"8px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{d:"m12 14.7 9.3 9.3 2.7-2.7-9.3-9.3L24 2.7 21.3 0 12 9.3 2.7 0 0 2.7 9.3 12 0 21.3 2.7 24l9.3-9.3z"}))),f&&(0,r.createElement)("button",{type:"button",className:"ct-toggle",onMouseDown:function(e){e.stopPropagation()},onClick:function(e){e.stopPropagation(),d(i.__id)}},(0,r.createElement)("svg",{width:"9px",height:"9px",fill:"currentColor",viewBox:"0 0 24 24"},(0,r.createElement)("path",{className:"ct-arrow-down",d:"M12 21.7 0 10.8l2.3-2.5 9.7 8.9 9.7-8.9 2.3 2.5z"}),(0,r.createElement)("path",{className:"ct-arrow-up",d:"M12 5.3 0 16.2l2.3 2.5L12 9.8l9.7 8.9 2.3-2.5z"}))))},O=n(5697);function _(){return _=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},_.apply(this,arguments)}function E(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function P(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?E(Object(n),!0).forEach((function(t){S(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):E(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function S(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var j=function(e){let{value:t,items:n,onChange:o,index:a,provided:s,snapshot:c,className:u,values:p,parentValues:d}=e;const f=n.map((function(e){let{__id:t}=e;return t})).indexOf(t.__id).toString();let{option:m,isDragging:h,isOpen:g,parentValue:v}=(0,r.useContext)(R),b=P(P({},s.draggableProps),{},{style:P(P({},s.draggableProps.style||{}),s.draggableProps.style.transform?{transform:"translate(0px"+s.draggableProps.style.transform.slice(s.draggableProps.style.transform.indexOf(","),s.draggableProps.style.transform.length)}:{})}),y=m.settings[t.id]&&m.settings[t.id].options&&Object.keys(m.settings[t.id].options).length>0&&g===t.__id&&(!h||h&&h!==g);return(0,r.createElement)("li",_({className:i()("ct-layer",m.itemClass,u,{"ct-disabled":!P({enabled:!0},t).enabled,"ct-active":y}),ref:s.innerRef},b),(0,r.createElement)(w,{items:n,onChange:o,value:t,parentValue:v,itemIndex:f,provided:s}),y&&(0,r.createElement)("div",{className:"ct-layer-content"},(0,r.createElement)(O.Z,{parentValue:v,onChange:function(e,r){if(m.settings[t.id].sync&&m.settings[t.id].clone){let e=n.filter((function(e){let{id:n}=e;return n===t.id})).length,r=`${m.settings[t.id].sync.id}_first`;e>1&&n.filter((function(e){let{id:n}=e;return n===t.id})).map((function(e){let{__id:t}=e;return t})).indexOf(t.__id)>0&&(r=`${m.settings[t.id].sync.id}_second`),wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:r})}o(n.map((function(n){return n.__id===t.__id?P(P({},n),{},{[e]:r}):n})))},value:(0,l.n6)(m.settings[t.id].options,P(P(P({},m.value.filter((function(e){let{id:n}=e;return n===t.id})).length>1?m.value.filter((function(e){let{id:n}=e;return t.id===n}))[n.filter((function(e){let{id:n}=e;return n===t.id})).map((function(e){let{__id:t}=e;return t})).indexOf(t.__id)]:{}),t),{},{itemIndex:f})),options:m.settings[t.id].options})))},C=n(9984);function x(){return x=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},x.apply(this,arguments)}function k(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function I(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?k(Object(n),!0).forEach((function(t){D(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):k(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function D(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const N=function(e,t,n){const r=Array.from(e),[o]=r.splice(t,1);return r.splice(n,0,o),r},T=function(e){return e.filter((function(e){return e})).map((function(e){return I(I({},e),e.__id?{}:{__id:c()()})}))},A=function(e,t){return Object.keys(t.settings).filter((function(t){return!e.find((function(e){let{id:n}=e;return n===t}))}))},R=(0,r.createContext)({currentlyPickedItem:null,isDragging:!1,isOpen:!1}),{Provider:M,Consumer:L}=R;var B=function(e){let{value:t,option:n,onChange:o,values:i}=e;const[s,u]=(0,r.useState)({currentlyPickedItem:null,isDragging:!1,isOpen:!1}),p=function(e){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};o([...t||[],I(I(I({id:e,enabled:!0},(0,l.n6)(n.settings[e].options||{},{})),r),{},{__id:c()()})])},d=(n.manageable||n.grouped?T(t):[...T(t),...n.value.filter((function(e){let{id:n}=e;return-1===t.map((function(e){let{id:t}=e;return t})).indexOf(n)})).map((function(e){return I(I({},e),{},{__id:c()(),enabled:(null==e?void 0:e.enabled)||!1})}))]).filter((function(e){return!!n.settings[e.id]}));let f=(0,r.createElement)(M,{value:I(I({},s),{},{parentValue:i,addCurrentlySelectedItem:function(){const e=s.currentlyPickedItem||A(T(t),n)[0];u((function(e){return I(I({},e),{},{currentlyPickedItem:null})})),p(e)},addForId:function(e,t){return p(e,t)},option:n,setCurrentItem:function(e){return u((function(t){return I(I({},t),{},{currentlyPickedItem:e})}))},removeForId:function(e){return o(T(t).filter((function(t){let{__id:n}=t;return n!==e})))},toggleOptionsPanel:function(e){const r=[...t,...n.value.filter((function(e){let{id:n}=e;return-1===t.map((function(e){let{id:t}=e;return t})).indexOf(n)}))];t.length>0&&r.find((function(e){return!e.__id}))&&(wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{shouldSkip:!0}),o(d)),u((function(t){return I(I({},t),{},{isOpen:t.isOpen!==e&&e})}))}})},n.manageable&&(0,r.createElement)(m,{value:d,option:n}),(0,r.createElement)(C.bK,{droppableId:n.id},(function(e,t){return(0,r.createElement)("ul",x({className:"ct-layers"},e.droppableProps,{ref:e.innerRef}),d.map((function(e,t){return(0,r.createElement)(C._l,{key:e.__id,draggableId:e.__id,isDragDisabled:!!n.disableDrag,index:t},(function(t,l){return(0,r.createElement)(j,{onChange:o,value:e,items:d,provided:t,snapshot:l,className:n.settings[e.id].condition&&!(0,a.Nj)((0,a.KY)(n.settings[e.id].condition),i)?"ct-hidden":""})}))})),e.placeholder)})));return n.grouped?f:(0,r.createElement)(C.Z5,{onDragEnd:function(e){e.destination&&o(N(d,e.source.index,e.destination.index))}},f)}},8652:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return v}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5652),l=n(6715),s=n.n(l),c=window.wp.hooks;const u=["url","attachment_id"];function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=["image"];class v extends r.Component{constructor(){super(...arguments),h(this,"params",{height:250,width:250,flex_width:!0,flex_height:!0}),h(this,"state",{attachment_info:[]}),h(this,"getUrlFor",(function(e){return e?(e.width<700?e.sizes.full:s().max(s().values(1===s().keys(e.sizes).length?e.sizes:s().omit(e.sizes,"full")),(function(e){let{width:t}=e;return t}))).url||e.url:null}))}render(){var e=this;const t=(0,c.applyFilters)("blocksy.options.ct-multi-image-uploader.actions",[function(e){let{props:t,attachment:{attachment_id:n}}=e;return(0,r.createElement)("button",{title:"Remove",type:"button",className:"button remove-button",onClick:function(e){e.stopPropagation(),t.onChange(t.value.filter((function(e){return e.attachment_id!==n})))}})}]);return(0,r.createElement)("div",p({className:i()("ct-attachment-multi",{})},this.props.option.attr||{}),(0,r.createElement)(wp.mediaUtils.MediaUpload,{onSelect:function(t){const n=t.map((function(t){return{url:e.getUrlFor(t),attachment_id:t.id}}));e.props.onChange(n)},gallery:!0,allowedTypes:g,value:this.props.value.map((function(e){let{attachment_id:t}=e;return t})),multiple:!0,render:function(n){let{open:o}=n;return(0,r.createElement)(r.Fragment,null,Array.isArray(e.props.value)&&e.props.value.length>0&&(0,r.createElement)("div",{className:"ct-thumbnails-list"},e.props.value.map((function(n){let{url:i,attachment_id:a}=n,l=m(n,u);return(0,r.createElement)("div",{key:a,className:"thumbnail thumbnail-image",onClick:function(){o()}},(0,r.createElement)("img",{className:"attachment-thumb",src:i,draggable:"false",alt:""}),(0,r.createElement)("ul",{className:"actions"},t.map((function(t,n){return(0,r.createElement)("li",{key:n},t({props:e.props,attachment:f(f({},l),{},{url:i,attachment_id:a})}))}))))}))),(0,r.createElement)("button",{type:"button",className:"button edit-button control-focus",title:"Edit",onClick:function(){return o()}},(0,a.__)("Add/Edit Gallery","blocksy")))}}))}}},3570:function(e,t,n){"use strict";n.r(t);var r=n(1381);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=function(e){let{option:{text:t="",attr:n={}}}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",o({className:"ct-notification"},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},n||{}),{dangerouslySetInnerHTML:{__html:t}})))};l.renderingConfig={design:"none"},t.default=l},8153:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return h}});var r=n(1381),o=n(6715),i=n.n(o),a=n(4184),l=n.n(a),s=n(254),c=n(5026);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}var p=function(e){let{value:t,option:n,option:{attr:o,step:a=1,markAsAutoFor:p},device:d,onChange:f,liftedOptionStateDescriptor:m}=e;const{liftedOptionState:h,setLiftedOptionState:g}=m,v=p&&p.indexOf(d)>-1?"auto":t,b=n.min||0===n.min?n.min:-1/0,y=n.max||0===n.max?n.max:1/0;return(0,r.createElement)("div",u({className:l()("ct-option-number",{"ct-reached-limits":parseFloat(v)===parseInt(b)||parseFloat(v)===parseInt(y)})},o||{}),(0,r.createElement)("a",{className:l()("ct-minus",{"ct-disabled":parseFloat(v)===parseInt(b)}),onClick:function(){return f((0,s.round)((0,s.clamp)(b,y,parseFloat(v)-parseFloat(a))))}}),(0,r.createElement)("a",{className:l()("ct-plus",{"ct-disabled":parseFloat(v)===parseInt(y)}),onClick:function(){return f((0,s.round)((0,s.clamp)(b,y,parseFloat(v)+parseFloat(a))))}}),(0,r.createElement)("input",u({type:"number",step:1,value:h&&h.isEmptyInput?"":v,onBlur:function(){g({isEmptyInput:!1}),parseFloat(v)&&f((0,s.round)((0,s.clamp)(b,y,v)))},onChange:function(e){let{target:{value:t}}=e;""!==t.toString().trim()?(g({isEmptyInput:!1}),i().isNumber(parseFloat(t))?f((0,s.round)(t)):parseFloat(t)?f((0,s.round)(Math.min(parseFloat(t),y))):f((0,s.round)(t))):g({isEmptyInput:!0})}},(0,c.Y)({blockDecimal:!0,value:v,onChange:function(e){f((0,s.round)((0,s.clamp)(b,y,e)))}}))))},d=n(8441);var f=function(e){let{value:t,option:n,option:{step:o=1,markAsAutoFor:a},device:l,onChange:c}=e;const u=a&&a.indexOf(l)>-1?"auto":t,p=n.min||0===n.min?n.min:-1/0,f=n.max||0===n.max?n.max:-1/0;return(0,r.createElement)(d.__experimentalNumberControl,{label:n.label,labelPosition:"top",max:f,min:p,value:u,step:o,onBlur:function(){return parseFloat(u)?c((0,s.round)((0,s.clamp)(p,f,u))):[]},onChange:function(e,t){return t&&i().isNumber(parseFloat(e))?c((0,s.round)((0,s.clamp)(p,f,e))):parseFloat(e)?c((0,s.round)(Math.min(parseFloat(e),f))):c((0,s.round)(e))}})};const m=function(e){const{purpose:t}=e;return"gutenberg"===t?(0,r.createElement)(f,e):(0,r.createElement)(p,e)};m.supportedPurposes=["default","gutenberg"];var h=m},9999:function(e,t,n){"use strict";n.r(t),n.d(t,{PanelMetaWrapper:function(){return d}});var r=n(1381),o=n(4184),i=n.n(o),a=n(3431),l=n.n(a),s=n(5697),c=n(7809),u=n(7097),p=n(2329);const d=function(e){let{id:t,option:n,getActualOption:o,value:i}=e;const{panelsState:a,panelsHelpers:l,panelsDispatch:s,containerRef:c}=(0,r.useContext)(u.Q),p=t;(0,r.useEffect)((function(){if(!a.previousPanel&&l.isTransitioningFor(t))if(l.isOpenFor(t)){if(!l.getWrapperParent().querySelector(".ct-tmp-panel-wrapper")){const e=document.createElement("div");e.classList.add("ct-tmp-panel-wrapper"),l.getWrapperParent().appendChild(e)}l.getParentOptionsWrapper()&&l.getParentOptionsWrapper().classList.add("ct-panel-open");const e=c.current.closest("ul")&&c.current.closest("ul").querySelector(".customize-section-description-container h3");s({type:"PANEL_RECEIVE_TITLE",payload:{titlePrefix:e?`${e.querySelector("span").innerText} ▸ ${e.innerText.split("\n")[e.innerText.split("\n").length-1]}`:""}})}else!c.current.closest(".accordion-section-content")||c.current.closest(".accordion-section-content").classList.contains("ct-panel-open"),l.getParentOptionsWrapper()&&l.getParentOptionsWrapper().classList.remove("ct-panel-open")}),[a.previousPanel,t,l.isOpenFor(t)]),(0,r.useEffect)((function(){return function(){[...document.querySelectorAll(".ct-panel-open:not(.open)")].map((function(e){return e.classList.remove("ct-panel-open")}))}}),[]);const d="yes"===i||!0===i;return o({open:function(){return l.open(t)},wrapperAttr:{className:(n.switch?d?"ct-click-allowed":"":"ct-click-allowed")+" ct-panel",onClick:function(e){let{target:t}=e;n.switch&&!d||t.closest(".ct-tmp-panel-wrapper")||l.open(p)}}})},f=function(e){let{option:t,id:n,onChange:o,getValues:a,onChangeFor:c}=e,d=-1===Object.keys(t).indexOf("label")?(n||"").replace(/./,(function(e){return e.toUpperCase()})).replace(/\_|\-/g," "):t.label;const{panelsState:{titlePrefix:f,previousPanel:m},panelsState:h,panelsHelpers:g,containerRef:v}=(0,r.useContext)(u.Q);return v.current&&g.getWrapperParent().querySelector(".ct-tmp-panel-wrapper")?(0,r.createPortal)((0,r.createElement)(p.uT,{items:g.isOpenFor(n),from:{transform:"translateX(100%)"},enter:{transform:"translateX(0%)"},leave:m===n?{transform:"translateX(-100%)"}:{transform:"translateX(100%)"},config:function(e,t){return{duration:180,easing:l()(.645,.045,.355,1)}},onRest:function(e){g.stopTransitioning(),e?[...g.getWrapperParent().querySelectorAll(".ct-tmp-panel-wrapper")].map((function(e){setTimeout((function(){e.firstElementChild&&e.firstElementChild.removeAttribute("style")}))})):m||[...g.getWrapperParent().querySelectorAll(".ct-tmp-panel-wrapper")].map((function(e){return e.parentNode.removeChild(e)}))}},(function(e,n){return n&&(0,r.createElement)(p.q.div,{style:e,className:i()("ct-customizer-panel ct-options-container",{"ct-panel-second-level":2===h.currentLevel})},(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"customize-panel-actions"},(0,r.createElement)("button",{onClick:function(e){e.stopPropagation(),g.close()},type:"button",className:"customize-section-back"}),(0,r.createElement)("h3",null,(0,r.createElement)("span",null,f),d)),(0,r.createElement)("div",{className:"customizer-panel-content"},(0,r.createElement)(s.Z,{purpose:"customizer",onChange:function(e,t){return c(e,t)},options:t["inner-options"],value:a()}))),(2===h.currentLevel||h.secondLevelTitleLabel)&&(0,r.createElement)("div",null,(0,r.createElement)("div",{className:"customize-panel-actions"},(0,r.createElement)("button",{onClick:function(e){e.stopPropagation(),g.close()},type:"button",className:"customize-section-back"}),(0,r.createElement)("h3",null,(0,r.createElement)("span",null,h.titlePrefix+" ▸ "+d),h.secondLevelTitleLabel)),(0,r.createElement)("div",{className:"customizer-panel-content"})))})),g.getWrapperParent().querySelector(".ct-tmp-panel-wrapper")):null},m=function(e){let{id:t,getValues:n,values:o,onChangeFor:a,option:l,value:s,view:p="normal",onChange:d}=e;const{panelsState:{isOpen:m,isTransitioning:h},panelsHelpers:g}=(0,r.useContext)(u.Q);return"simple"===p?g.isTransitioningFor(t)||g.isOpenFor(t)?(0,r.createElement)(f,{id:t,getValues:function(){return n?n():o},onChangeFor:a,option:l}):null:(0,r.createElement)("div",{className:"ct-customizer-panel-container"},(0,r.createElement)("div",{className:i()("ct-customizer-panel-option")},l.switch&&(0,r.createElement)(c.default,{value:s,onChange:d,onClick:function(e){return e.stopPropagation()},option:{behavior:l.switchBehavior||"words"}}),(0,r.createElement)("button",{type:"button"})),(g.isTransitioningFor(t)||g.isOpenFor(t))&&(0,r.createElement)(f,{id:t,getValues:function(){return n?n():o},onChangeFor:a,option:l}))};m.renderingConfig={design:"inline"},m.MetaWrapper=d,t.default=m},3781:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5529);function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}const s=function(e){const{inline:t=!1}=e.option;return(0,r.createElement)("div",l({className:"ct-radio-option"},t?{"data-inline":""}:{},e.option.attr||{}),Object.keys(e.option.choices).map((function(t){return(0,r.createElement)("label",{key:t},(0,r.createElement)("input",{type:"radio",checked:t===e.value,onChange:function(){return e.onChange(t)}}),e.option.choices[t])})))},c=function(e){let{option:t,values:n,value:o,onChange:s,singleChoiceProps:c}=e;const{inline:u=!1}=t;let p=Object.keys(t.choices).filter((function(e){return!t.conditions||(!t.conditions[e]||(0,a.Nj)((0,a.KY)(t.conditions[e]),n))})),d=p.includes(o)?o:t.value;return(0,r.createElement)("ul",l({className:"ct-radio-option ct-buttons-group"},u?{"data-inline":""}:{},t.attr||{}),p.map((function(e,n){return(0,r.createElement)("li",l({className:i()({active:e===d}),onClick:function(){return s(e)},key:e,dangerouslySetInnerHTML:{__html:t.choices[e]}},c?c(e):{},t.choice_attr||{}))})))};var u=function(e){const{option:{view:t}}=e;return"radio"===t?(0,r.createElement)(s,e):(0,r.createElement)(c,e)},p=n(8441);var d=function(e){let{option:t,values:n,value:o,onChange:i}=e,l=Object.keys(t.choices).filter((function(e){return!t.conditions||(!t.conditions[e]||(0,a.Nj)((0,a.KY)(t.conditions[e]),n))})),s=l.includes(o)?o:t.value;return(0,r.createElement)(p.__experimentalToggleGroupControl,{label:t.label,value:s,isBlock:!0,onChange:i},l.map((function(e){return(0,r.createElement)(React.Fragment,null,(0,r.createElement)(p.__experimentalToggleGroupControlOption,{key:e,value:e,label:(0,r.createElement)("span",{dangerouslySetInnerHTML:{__html:t.choices[e]}})}))})))};const f=function(e){const{purpose:t}=e;return"gutenberg"===t?(0,r.createElement)(d,e):(0,r.createElement)(u,e)};f.supportedPurposes=["default","gutenberg"];var m=f},7812:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return m}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5652),l=n(1511),s=n(4823),c=n(3431),u=n.n(c);n(8142);var p=function(e){let{renderContent:t,stopTransitioning:n,el:o,isTransitioning:i,isPicking:a}=e;return(i||a)&&(0,r.createPortal)((0,r.createElement)(s.uT,{items:a,onRest:function(e){return n()},config:{duration:100,easing:u()(.25,.1,.25,1)},from:{transform:"scale3d(0.95, 0.95, 1)",opacity:0},enter:{transform:"scale3d(1, 1, 1)",opacity:1},leave:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(function(e){return e&&function(e){return(0,r.createElement)("div",{style:e,className:"ct-ratio-modal",onClick:function(e){e.preventDefault(),e.stopPropagation()},onMouseDownCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}},t&&t())}})),o.current.closest(".ct-single-palette")?o.current.closest(".ct-single-palette").querySelector(".ct-color-modal-wrapper"):o.current.closest(".ct-color-modal-wrapper")?o.current.closest(".ct-color-modal-wrapper"):o.current.closest(".ct-control").querySelector(".ct-color-modal-wrapper"))},d=n(5697);const f=function(e){let{option:t,value:n,onChange:o,onChangeFor:s,values:c}=e;const[u,f]=(0,r.useState)(!1);let{hasOriginalRatio:m=!0,view:h="popup",preview_width_key:g=null}=t||{},v=["4/3","16/9","2/1"],b=["3/4","9/16","1/2"];const y=(0,r.useRef)(),[{isPicking:w,isTransitioning:O},_]=(0,r.useState)({isPicking:!1,isTransitioning:!1}),E=!(v.indexOf(n)>-1)&&(b.indexOf(n)>-1||u);let P="original"===n?"original":-1===n.indexOf("/")?"custom":"predefined";n.indexOf("/");const S=(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",{className:"ct-ratio-content"},(0,r.createElement)("div",{className:i()("ct-ratio-picker",{reversed:E})},(0,r.createElement)("ul",{className:"ct-radio-option ct-buttons-group"},m&&(0,r.createElement)("li",{className:i()({active:"original"===P}),onClick:function(){"original"!==n&&o("original")}},(0,a.__)("Original","blocksy")),(0,r.createElement)("li",{className:i()({active:"predefined"===P}),onClick:function(){-1!==n.indexOf("/")&&"original"!==n||o("original"===t.value?"1/1":t.value)}},(0,a.__)("Predefined","blocksy")),(0,r.createElement)("li",{className:i()({active:"custom"===P}),onClick:function(){if(-1!==n.indexOf("/")||"original"===n){let[e,r]=("original"===n?"original"===t.value?"1/1":t.value:n).split("/");o(`${e}:${r}`)}}},(0,a.__)("Custom","blocksy"))),"predefined"===P&&(0,r.createElement)("div",{className:"ct-ratio-predefined"},(0,r.createElement)("ul",{className:"ct-buttons-group"},["1/1",...E?b:v].map((function(e){return(0,r.createElement)("li",{key:e,className:i()({active:e===n}),onClick:function(){return o(e)}},e)}))),(0,r.createElement)("button",{"data-tooltip":"top",onClick:function(e){if(e.preventDefault(),"1/1"===n)return void f(!E);let[t,r]=n.split("/");f(+t<+r),o(n.split("/").reverse().join("/"))}},(0,r.createElement)("span",null),(0,r.createElement)("i",{className:"ct-tooltip"},"Reverse"))),"custom"===P&&(0,r.createElement)("div",{className:"ct-ratio-custom"},(0,r.createElement)("div",{className:"ct-option-input"},(0,r.createElement)("input",{type:"text",value:n.split(":")[0],onChange:function(e){let{target:{value:t}}=e;o(`${t}:${n.split(":")[1]}`)}})),(0,r.createElement)("span",null,":"),(0,r.createElement)("div",{className:"ct-option-input"},(0,r.createElement)("input",{type:"text",value:n.split(":")[1],onChange:function(e){let{target:{value:t}}=e;o(`${n.split(":")[0]}:${t}`)}})),(0,r.createElement)("div",{className:"ct-notification",dangerouslySetInnerHTML:{__html:(0,a.sprintf)((0,a.__)("Use %sthis tool%s for calculating a custom image ratio based on your image size.","blocksy"),'<a href="https://www.digitalrebellion.com/webapps/aspectcalc" target="_blank">',"</a>")}})),"original"===P&&(0,r.createElement)("div",{className:"ct-ratio-original"},(0,r.createElement)("div",{className:"ct-notification"},(0,a.__)("Displays the image using the aspect ratio in which they were uploaded.","blocksy")))),t["inner-options"]&&(0,r.createElement)(d.Z,{onChange:function(e,t){s(e,t)},options:t["inner-options"],value:c})));return"inline"===h?S:(0,r.createElement)("div",{ref:y,className:i()("ct-ratio-picker-container",{})},(0,r.createElement)(l.default,{useCapture:!1,disabled:!w,className:"ct-ratio-preview",onOutsideClick:function(){w&&_({isTransitioning:!1,isPicking:!1})},wrapperProps:{onClick:function(e){e.preventDefault(),_({isTransitioning:!0,isPicking:!w})}}},n.indexOf(":")>-1&&(0,r.createElement)("span",{className:"ct-ratio-key"},(0,a.__)("Custom","blocksy")),n.indexOf("/")>-1&&(0,r.createElement)("span",{className:"ct-ratio-key"},(0,a.__)("Predefined","blocksy")),"original"===n?(0,a.__)("Original Ratio","blocksy"):n.replace("/",":"),g&&(0,r.createElement)("span",{className:"ct-width-key"},c[g])),(0,r.createElement)(p,{el:y,value:n,onChange:o,option:t,isPicking:w,isTransitioning:O,onPickingChange:function(e){_({isTransitioning:!0,isPicking:e})},stopTransitioning:function(){return _({isPicking:w,isTransitioning:!1})},renderContent:function(){return S}}))};f.ControlEnd=function(){return(0,r.createElement)("div",{className:"ct-color-modal-wrapper",onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}})};var m=f},2425:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return te}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5652),l=n(2932),s=n(4775),c=n(1581),u=n.n(c),p=n(7363);n(1726);function d(e){return"object"==typeof e&&null!=e&&1===e.nodeType}function f(e,t){return(!t||"hidden"!==e)&&"visible"!==e&&"clip"!==e}function m(e,t){if(e.clientHeight<e.scrollHeight||e.clientWidth<e.scrollWidth){var n=getComputedStyle(e,null);return f(n.overflowY,t)||f(n.overflowX,t)||function(e){var t=function(e){if(!e.ownerDocument||!e.ownerDocument.defaultView)return null;try{return e.ownerDocument.defaultView.frameElement}catch(e){return null}}(e);return!!t&&(t.clientHeight<e.scrollHeight||t.clientWidth<e.scrollWidth)}(e)}return!1}function h(e,t,n,r,o,i,a,l){return i<e&&a>t||i>e&&a<t?0:i<=e&&l<=n||a>=t&&l>=n?i-e-r:a>t&&l<n||i<e&&l>n?a-t+o:0}var g=function(){return g=Object.assign||function(e){for(var t,n=1,r=arguments.length;n<r;n++)for(var o in t=arguments[n])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},g.apply(this,arguments)};Object.create;Object.create;let v=0;function b(e){return"function"==typeof e?e:y}function y(){}function w(e,t){if(!e)return;const n=function(e,t){var n=window,r=t.scrollMode,o=t.block,i=t.inline,a=t.boundary,l=t.skipOverflowHiddenElements,s="function"==typeof a?a:function(e){return e!==a};if(!d(e))throw new TypeError("Invalid target");for(var c,u,p=document.scrollingElement||document.documentElement,f=[],g=e;d(g)&&s(g);){if((g=null==(u=(c=g).parentElement)?c.getRootNode().host||null:u)===p){f.push(g);break}null!=g&&g===document.body&&m(g)&&!m(document.documentElement)||null!=g&&m(g,l)&&f.push(g)}for(var v=n.visualViewport?n.visualViewport.width:innerWidth,b=n.visualViewport?n.visualViewport.height:innerHeight,y=window.scrollX||pageXOffset,w=window.scrollY||pageYOffset,O=e.getBoundingClientRect(),_=O.height,E=O.width,P=O.top,S=O.right,j=O.bottom,C=O.left,x="start"===o||"nearest"===o?P:"end"===o?j:P+_/2,k="center"===i?C+E/2:"end"===i?S:C,I=[],D=0;D<f.length;D++){var N=f[D],T=N.getBoundingClientRect(),A=T.height,R=T.width,M=T.top,L=T.right,B=T.bottom,F=T.left;if("if-needed"===r&&P>=0&&C>=0&&j<=b&&S<=v&&P>=M&&j<=B&&C>=F&&S<=L)return I;var z=getComputedStyle(N),V=parseInt(z.borderLeftWidth,10),U=parseInt(z.borderTopWidth,10),H=parseInt(z.borderRightWidth,10),W=parseInt(z.borderBottomWidth,10),G=0,$=0,q="offsetWidth"in N?N.offsetWidth-N.clientWidth-V-H:0,Z="offsetHeight"in N?N.offsetHeight-N.clientHeight-U-W:0,K="offsetWidth"in N?0===N.offsetWidth?0:R/N.offsetWidth:0,Y="offsetHeight"in N?0===N.offsetHeight?0:A/N.offsetHeight:0;if(p===N)G="start"===o?x:"end"===o?x-b:"nearest"===o?h(w,w+b,b,U,W,w+x,w+x+_,_):x-b/2,$="start"===i?k:"center"===i?k-v/2:"end"===i?k-v:h(y,y+v,v,V,H,y+k,y+k+E,E),G=Math.max(0,G+w),$=Math.max(0,$+y);else{G="start"===o?x-M-U:"end"===o?x-B+W+Z:"nearest"===o?h(M,B,A,U,W+Z,x,x+_,_):x-(M+A/2)+Z/2,$="start"===i?k-F-V:"center"===i?k-(F+R/2)+q/2:"end"===i?k-L+H+q:h(F,L,R,V,H+q,k,k+E,E);var X=N.scrollLeft,J=N.scrollTop;x+=J-(G=Math.max(0,Math.min(J+G/Y,N.scrollHeight-A/Y+Z))),k+=X-($=Math.max(0,Math.min(X+$/K,N.scrollWidth-R/K+q)))}I.push({el:N,top:G,left:$})}return I}(e,{boundary:t,block:"nearest",scrollMode:"if-needed"});n.forEach((e=>{let{el:t,top:n,left:r}=e;t.scrollTop=n,t.scrollLeft=r}))}function O(e,t,n){return e===t||t instanceof n.Node&&e.contains&&e.contains(t)}function _(e,t){let n;function r(){n&&clearTimeout(n)}function o(){for(var o=arguments.length,i=new Array(o),a=0;a<o;a++)i[a]=arguments[a];r(),n=setTimeout((()=>{n=null,e(...i)}),t)}return o.cancel=r,o}function E(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){for(var n=arguments.length,r=new Array(n>1?n-1:0),o=1;o<n;o++)r[o-1]=arguments[o];return t.some((t=>(t&&t(e,...r),e.preventDownshiftDefault||e.hasOwnProperty("nativeEvent")&&e.nativeEvent.preventDownshiftDefault)))}}function P(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return e=>{t.forEach((t=>{"function"==typeof t?t(e):t&&(t.current=e)}))}}function S(){return String(v++)}function j(e){let{isOpen:t,resultCount:n,previousResultCount:r}=e;return t?n?n!==r?`${n} result${1===n?" is":"s are"} available, use up and down arrow keys to navigate. Press Enter key to select.`:"":"No results are available.":""}function C(e,t){return!(e=Array.isArray(e)?e[0]:e)&&t?t:e}function x(e){return"string"==typeof e.type}function k(e){return e.props}const I=["highlightedIndex","inputValue","isOpen","selectedItem","type"];function D(e){void 0===e&&(e={});const t={};return I.forEach((n=>{e.hasOwnProperty(n)&&(t[n]=e[n])})),t}function N(e,t){return Object.keys(e).reduce(((n,r)=>(n[r]=T(t,r)?t[r]:e[r],n)),{})}function T(e,t){return void 0!==e[t]}function A(e){const{key:t,keyCode:n}=e;return n>=37&&n<=40&&0!==t.indexOf("Arrow")?`Arrow${t}`:t}function R(e,t,n,r,o){if(void 0===o&&(o=!0),0===n)return-1;const i=n-1;("number"!=typeof t||t<0||t>=n)&&(t=e>0?-1:i+1);let a=t+e;a<0?a=o?i:0:a>i&&(a=o?0:i);const l=M(e,a,n,r,o);return-1===l?t>=n?-1:t:l}function M(e,t,n,r,o){const i=r(t);if(!i||!i.hasAttribute("disabled"))return t;if(e>0){for(let e=t+1;e<n;e++)if(!r(e).hasAttribute("disabled"))return e}else for(let e=t-1;e>=0;e--)if(!r(e).hasAttribute("disabled"))return e;return o?e>0?M(1,0,n,r,!1):M(-1,n-1,n,r,!1):-1}function L(e,t,n,r){return void 0===r&&(r=!0),t.some((t=>t&&(O(t,e,n)||r&&O(t,n.document.activeElement,n))))}const B=_((e=>{z(e).textContent=""}),500);function F(e,t){const n=z(t);e&&(n.textContent=e,B(t))}function z(e){void 0===e&&(e=document);let t=e.getElementById("a11y-status-message");return t||(t=e.createElement("div"),t.setAttribute("id","a11y-status-message"),t.setAttribute("role","status"),t.setAttribute("aria-live","polite"),t.setAttribute("aria-relevant","additions text"),Object.assign(t.style,{border:"0",clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:"0",position:"absolute",width:"1px"}),e.body.appendChild(t),t)}var V=Object.freeze({__proto__:null,unknown:0,mouseUp:1,itemMouseEnter:2,keyDownArrowUp:3,keyDownArrowDown:4,keyDownEscape:5,keyDownEnter:6,keyDownHome:7,keyDownEnd:8,clickItem:9,blurInput:10,changeInput:11,keyDownSpaceButton:12,clickButton:13,blurButton:14,controlledPropUpdatedSelectedItem:15,touchEnd:16});const U=(()=>{class e extends p.Component{constructor(e){var t;super(e),t=this,this.id=this.props.id||`downshift-${S()}`,this.menuId=this.props.menuId||`${this.id}-menu`,this.labelId=this.props.labelId||`${this.id}-label`,this.inputId=this.props.inputId||`${this.id}-input`,this.getItemId=this.props.getItemId||(e=>`${this.id}-item-${e}`),this.input=null,this.items=[],this.itemCount=null,this.previousResultCount=0,this.timeoutIds=[],this.internalSetTimeout=(e,t)=>{const n=setTimeout((()=>{this.timeoutIds=this.timeoutIds.filter((e=>e!==n)),e()}),t);this.timeoutIds.push(n)},this.setItemCount=e=>{this.itemCount=e},this.unsetItemCount=()=>{this.itemCount=null},this.setHighlightedIndex=function(e,n){void 0===e&&(e=t.props.defaultHighlightedIndex),void 0===n&&(n={}),n=D(n),t.internalSetState({highlightedIndex:e,...n})},this.clearSelection=e=>{this.internalSetState({selectedItem:null,inputValue:"",highlightedIndex:this.props.defaultHighlightedIndex,isOpen:this.props.defaultIsOpen},e)},this.selectItem=(e,t,n)=>{t=D(t),this.internalSetState({isOpen:this.props.defaultIsOpen,highlightedIndex:this.props.defaultHighlightedIndex,selectedItem:e,inputValue:this.props.itemToString(e),...t},n)},this.selectItemAtIndex=(e,t,n)=>{const r=this.items[e];null!=r&&this.selectItem(r,t,n)},this.selectHighlightedItem=(e,t)=>this.selectItemAtIndex(this.getState().highlightedIndex,e,t),this.internalSetState=(e,t)=>{let n,r;const o={},i="function"==typeof e;return!i&&e.hasOwnProperty("inputValue")&&this.props.onInputValueChange(e.inputValue,{...this.getStateAndHelpers(),...e}),this.setState((t=>{t=this.getState(t);let a=i?e(t):e;a=this.props.stateReducer(t,a),n=a.hasOwnProperty("selectedItem");const l={};return n&&a.selectedItem!==t.selectedItem&&(r=a.selectedItem),a.type=a.type||0,Object.keys(a).forEach((e=>{t[e]!==a[e]&&(o[e]=a[e]),"type"!==e&&(a[e],T(this.props,e)||(l[e]=a[e]))})),i&&a.hasOwnProperty("inputValue")&&this.props.onInputValueChange(a.inputValue,{...this.getStateAndHelpers(),...a}),l}),(()=>{b(t)();Object.keys(o).length>1&&this.props.onStateChange(o,this.getStateAndHelpers()),n&&this.props.onSelect(e.selectedItem,this.getStateAndHelpers()),void 0!==r&&this.props.onChange(r,this.getStateAndHelpers()),this.props.onUserAction(o,this.getStateAndHelpers())}))},this.rootRef=e=>this._rootNode=e,this.getRootProps=function(e,n){let{refKey:r="ref",ref:o,...i}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;t.getRootProps.called=!0,t.getRootProps.refKey=r,t.getRootProps.suppressRefError=a;const{isOpen:l}=t.getState();return{[r]:P(o,t.rootRef),role:"combobox","aria-expanded":l,"aria-haspopup":"listbox","aria-owns":l?t.menuId:null,"aria-labelledby":t.labelId,...i}},this.keyDownHandlers={ArrowDown(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?5:1;this.moveHighlightedIndex(t,{type:4})}else this.internalSetState({isOpen:!0,type:4},(()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=R(1,t,e,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(n,{type:4})}}))},ArrowUp(e){if(e.preventDefault(),this.getState().isOpen){const t=e.shiftKey?-5:-1;this.moveHighlightedIndex(t,{type:3})}else this.internalSetState({isOpen:!0,type:3},(()=>{const e=this.getItemCount();if(e>0){const{highlightedIndex:t}=this.getState(),n=R(-1,t,e,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(n,{type:3})}}))},Enter(e){if(229===e.which)return;const{isOpen:t,highlightedIndex:n}=this.getState();if(t&&null!=n){e.preventDefault();const t=this.items[n],r=this.getItemNodeFromIndex(n);if(null==t||r&&r.hasAttribute("disabled"))return;this.selectHighlightedItem({type:6})}},Escape(e){e.preventDefault(),this.reset({type:5,...!this.state.isOpen&&{selectedItem:null,inputValue:""}})}},this.buttonKeyDownHandlers={...this.keyDownHandlers," "(e){e.preventDefault(),this.toggleMenu({type:12})}},this.inputKeyDownHandlers={...this.keyDownHandlers,Home(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const r=M(1,0,n,(e=>this.getItemNodeFromIndex(e)),!1);this.setHighlightedIndex(r,{type:7})},End(e){const{isOpen:t}=this.getState();if(!t)return;e.preventDefault();const n=this.getItemCount();if(n<=0||!t)return;const r=M(-1,n-1,n,(e=>this.getItemNodeFromIndex(e)),!1);this.setHighlightedIndex(r,{type:8})}},this.getToggleButtonProps=function(e){let{onClick:n,onPress:r,onKeyDown:o,onKeyUp:i,onBlur:a,...l}=void 0===e?{}:e;const{isOpen:s}=t.getState(),c={onClick:E(n,t.buttonHandleClick),onKeyDown:E(o,t.buttonHandleKeyDown),onKeyUp:E(i,t.buttonHandleKeyUp),onBlur:E(a,t.buttonHandleBlur)};return{type:"button",role:"button","aria-label":s?"close menu":"open menu","aria-haspopup":!0,"data-toggle":!0,...l.disabled?{}:c,...l}},this.buttonHandleKeyUp=e=>{e.preventDefault()},this.buttonHandleKeyDown=e=>{const t=A(e);this.buttonKeyDownHandlers[t]&&this.buttonKeyDownHandlers[t].call(this,e)},this.buttonHandleClick=e=>{e.preventDefault(),this.props.environment.document.activeElement===this.props.environment.document.body&&e.target.focus(),this.internalSetTimeout((()=>this.toggleMenu({type:13})))},this.buttonHandleBlur=e=>{const t=e.target;this.internalSetTimeout((()=>{this.isMouseDown||null!=this.props.environment.document.activeElement&&this.props.environment.document.activeElement.id===this.inputId||this.props.environment.document.activeElement===t||this.reset({type:14})}))},this.getLabelProps=e=>({htmlFor:this.inputId,id:this.labelId,...e}),this.getInputProps=function(e){let n,{onKeyDown:r,onBlur:o,onChange:i,onInput:a,onChangeText:l,...s}=void 0===e?{}:e,c={};n="onChange";const{inputValue:u,isOpen:p,highlightedIndex:d}=t.getState();return s.disabled||(c={onChange:E(i,a,t.inputHandleChange),onKeyDown:E(r,t.inputHandleKeyDown),onBlur:E(o,t.inputHandleBlur)}),{"aria-autocomplete":"list","aria-activedescendant":p&&"number"==typeof d&&d>=0?t.getItemId(d):null,"aria-controls":p?t.menuId:null,"aria-labelledby":t.labelId,autoComplete:"off",value:u,id:t.inputId,...c,...s}},this.inputHandleKeyDown=e=>{const t=A(e);t&&this.inputKeyDownHandlers[t]&&this.inputKeyDownHandlers[t].call(this,e)},this.inputHandleChange=e=>{this.internalSetState({type:11,isOpen:!0,inputValue:e.target.value,highlightedIndex:this.props.defaultHighlightedIndex})},this.inputHandleBlur=()=>{this.internalSetTimeout((()=>{const e=this.props.environment.document&&!!this.props.environment.document.activeElement&&!!this.props.environment.document.activeElement.dataset&&this.props.environment.document.activeElement.dataset.toggle&&this._rootNode&&this._rootNode.contains(this.props.environment.document.activeElement);this.isMouseDown||e||this.reset({type:10})}))},this.menuRef=e=>{this._menuNode=e},this.getMenuProps=function(e,n){let{refKey:r="ref",ref:o,...i}=void 0===e?{}:e,{suppressRefError:a=!1}=void 0===n?{}:n;return t.getMenuProps.called=!0,t.getMenuProps.refKey=r,t.getMenuProps.suppressRefError=a,{[r]:P(o,t.menuRef),role:"listbox","aria-labelledby":i&&i["aria-label"]?null:t.labelId,id:t.menuId,...i}},this.getItemProps=function(e){let{onMouseMove:n,onMouseDown:r,onClick:o,onPress:i,index:a,item:l,...s}=void 0===e?{}:e;void 0===a?(t.items.push(l),a=t.items.indexOf(l)):t.items[a]=l;const c=o,u={onMouseMove:E(n,(()=>{a!==t.getState().highlightedIndex&&(t.setHighlightedIndex(a,{type:2}),t.avoidScrolling=!0,t.internalSetTimeout((()=>t.avoidScrolling=!1),250))})),onMouseDown:E(r,(e=>{e.preventDefault()})),onClick:E(c,(()=>{t.selectItemAtIndex(a,{type:9})}))},p=s.disabled?{onMouseDown:u.onMouseDown}:u;return{id:t.getItemId(a),role:"option","aria-selected":t.getState().highlightedIndex===a,...p,...s}},this.clearItems=()=>{this.items=[]},this.reset=function(e,n){void 0===e&&(e={}),e=D(e),t.internalSetState((n=>{let{selectedItem:r}=n;return{isOpen:t.props.defaultIsOpen,highlightedIndex:t.props.defaultHighlightedIndex,inputValue:t.props.itemToString(r),...e}}),n)},this.toggleMenu=function(e,n){void 0===e&&(e={}),e=D(e),t.internalSetState((n=>{let{isOpen:r}=n;return{isOpen:!r,...r&&{highlightedIndex:t.props.defaultHighlightedIndex},...e}}),(()=>{const{isOpen:r,highlightedIndex:o}=t.getState();r&&t.getItemCount()>0&&"number"==typeof o&&t.setHighlightedIndex(o,e),b(n)()}))},this.openMenu=e=>{this.internalSetState({isOpen:!0},e)},this.closeMenu=e=>{this.internalSetState({isOpen:!1},e)},this.updateStatus=_((()=>{const e=this.getState(),t=this.items[e.highlightedIndex],n=this.getItemCount(),r=this.props.getA11yStatusMessage({itemToString:this.props.itemToString,previousResultCount:this.previousResultCount,resultCount:n,highlightedItem:t,...e});this.previousResultCount=n,F(r,this.props.environment.document)}),200);const{defaultHighlightedIndex:n,initialHighlightedIndex:r=n,defaultIsOpen:o,initialIsOpen:i=o,initialInputValue:a="",initialSelectedItem:l=null}=this.props,s=this.getState({highlightedIndex:r,isOpen:i,inputValue:a,selectedItem:l});null!=s.selectedItem&&void 0===this.props.initialInputValue&&(s.inputValue=this.props.itemToString(s.selectedItem)),this.state=s}internalClearTimeouts(){this.timeoutIds.forEach((e=>{clearTimeout(e)})),this.timeoutIds=[]}getState(e){return void 0===e&&(e=this.state),N(e,this.props)}getItemCount(){let e=this.items.length;return null!=this.itemCount?e=this.itemCount:void 0!==this.props.itemCount&&(e=this.props.itemCount),e}getItemNodeFromIndex(e){return this.props.environment.document.getElementById(this.getItemId(e))}scrollHighlightedItemIntoView(){{const e=this.getItemNodeFromIndex(this.getState().highlightedIndex);this.props.scrollIntoView(e,this._menuNode)}}moveHighlightedIndex(e,t){const n=this.getItemCount(),{highlightedIndex:r}=this.getState();if(n>0){const o=R(e,r,n,(e=>this.getItemNodeFromIndex(e)));this.setHighlightedIndex(o,t)}}getStateAndHelpers(){const{highlightedIndex:e,inputValue:t,selectedItem:n,isOpen:r}=this.getState(),{itemToString:o}=this.props,{id:i}=this,{getRootProps:a,getToggleButtonProps:l,getLabelProps:s,getMenuProps:c,getInputProps:u,getItemProps:p,openMenu:d,closeMenu:f,toggleMenu:m,selectItem:h,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:y,clearItems:w,reset:O,setItemCount:_,unsetItemCount:E,internalSetState:P}=this;return{getRootProps:a,getToggleButtonProps:l,getLabelProps:s,getMenuProps:c,getInputProps:u,getItemProps:p,reset:O,openMenu:d,closeMenu:f,toggleMenu:m,selectItem:h,selectItemAtIndex:g,selectHighlightedItem:v,setHighlightedIndex:b,clearSelection:y,clearItems:w,setItemCount:_,unsetItemCount:E,setState:P,itemToString:o,id:i,highlightedIndex:e,inputValue:t,isOpen:r,selectedItem:n}}componentDidMount(){{const e=()=>{this.isMouseDown=!0},t=e=>{this.isMouseDown=!1;!L(e.target,[this._rootNode,this._menuNode],this.props.environment)&&this.getState().isOpen&&this.reset({type:1},(()=>this.props.onOuterClick(this.getStateAndHelpers())))},n=()=>{this.isTouchMove=!1},r=()=>{this.isTouchMove=!0},o=e=>{const t=L(e.target,[this._rootNode,this._menuNode],this.props.environment,!1);this.isTouchMove||t||!this.getState().isOpen||this.reset({type:16},(()=>this.props.onOuterClick(this.getStateAndHelpers())))},{environment:i}=this.props;i.addEventListener("mousedown",e),i.addEventListener("mouseup",t),i.addEventListener("touchstart",n),i.addEventListener("touchmove",r),i.addEventListener("touchend",o),this.cleanup=()=>{this.internalClearTimeouts(),this.updateStatus.cancel(),i.removeEventListener("mousedown",e),i.removeEventListener("mouseup",t),i.removeEventListener("touchstart",n),i.removeEventListener("touchmove",r),i.removeEventListener("touchend",o)}}}shouldScroll(e,t){const{highlightedIndex:n}=void 0===this.props.highlightedIndex?this.getState():this.props,{highlightedIndex:r}=void 0===t.highlightedIndex?e:t;return n&&this.getState().isOpen&&!e.isOpen||n!==r}componentDidUpdate(e,t){T(this.props,"selectedItem")&&this.props.selectedItemChanged(e.selectedItem,this.props.selectedItem)&&this.internalSetState({type:15,inputValue:this.props.itemToString(this.props.selectedItem)}),!this.avoidScrolling&&this.shouldScroll(t,e)&&this.scrollHighlightedItemIntoView(),this.updateStatus()}componentWillUnmount(){this.cleanup()}render(){const e=C(this.props.children,y);this.clearItems(),this.getRootProps.called=!1,this.getRootProps.refKey=void 0,this.getRootProps.suppressRefError=void 0,this.getMenuProps.called=!1,this.getMenuProps.refKey=void 0,this.getMenuProps.suppressRefError=void 0,this.getLabelProps.called=!1,this.getInputProps.called=!1;const t=C(e(this.getStateAndHelpers()));return t?this.getRootProps.called||this.props.suppressRefError?t:x(t)?(0,p.cloneElement)(t,this.getRootProps(k(t))):void 0:null}}return e.defaultProps={defaultHighlightedIndex:null,defaultIsOpen:!1,getA11yStatusMessage:j,itemToString:e=>null==e?"":String(e),onStateChange:y,onInputValueChange:y,onUserAction:y,onChange:y,onSelect:y,onOuterClick:y,selectedItemChanged:(e,t)=>e!==t,environment:"undefined"==typeof window?{}:window,stateReducer:(e,t)=>t,suppressRefError:!1,scrollIntoView:w},e.stateChangeTypes=V,e})();var H=U;_(((e,t)=>{F(e(),t)}),200),"undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?p.useLayoutEffect:p.useEffect;const W={itemToString:function(e){return e?String(e):""},stateReducer:function(e,t){return t.changes},getA11ySelectionMessage:function(e){const{selectedItem:t,itemToString:n}=e;return t?`${n(t)} has been selected.`:""},scrollIntoView:w,circularNavigation:!1,environment:"undefined"==typeof window?{}:window};u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().func,u().string,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});g(g({},W),{getA11yStatusMessage:function(e){var t=e.isOpen,n=e.resultCount,r=e.previousResultCount;return t?n?n!==r?"".concat(n," result").concat(1===n?" is":"s are"," available, use up and down arrow keys to navigate. Press Enter or Space Bar keys to select."):"":"No results are available.":""}});u().array.isRequired,u().func,u().func,u().func,u().bool,u().number,u().number,u().number,u().bool,u().bool,u().bool,u().any,u().any,u().any,u().string,u().string,u().string,u().string,u().string,u().string,u().func,u().string,u().string,u().func,u().func,u().func,u().func,u().func,u().func,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});u().array,u().array,u().array,u().func,u().func,u().func,u().number,u().number,u().number,u().func,u().func,u().string,u().string,u().shape({addEventListener:u().func,removeEventListener:u().func,document:u().shape({getElementById:u().func,activeElement:u().any,body:u().any})});function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}function $(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function q(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Z=function(e){var t;let{value:n,option:o,option:{choices:c,tabletChoices:u,mobileChoices:p,placeholder:d,searchPlaceholder:f,defaultToFirstItem:m=!0,search:h=!1,inputClassName:g="",selectInputStart:v,appendToBody:b=!1},onInputValueChange:y=function(){},renderItemFor:w=function(e){return e.value},onChange:O,device:_="desktop"}=e;const E=(0,r.useRef)(null),[P,S]=(0,r.useState)(null);let j=c;"tablet"===_&&u&&(j=u),"mobile"===_&&p&&(j=p);const C=(0,s.N)(j);let x=n||!m||0===parseInt(n,10)?n:(C[0]||{}).key;const{styles:k,popoverProps:I}=(0,l.Z)({ref:E,defaultHeight:228,shouldCalculate:b});(0,r.useEffect)((function(){b&&setTimeout((function(){S(Math.round())}),50)}),[]);let D=C.find((function(e){let{key:t}=e;return t===x}));return D||(D=C.find((function(e){let{key:t}=e;return parseInt(t)===parseInt(x)}))),(0,r.createElement)(H,{key:(null===(t=D)||void 0===t?void 0:t.key)||"downshift",onInputValueChange:function(e){y(e)},selectedItem:D||!m?x:(C[0]||{}).key,onChange:function(e){O(e)},itemToString:function(e){let t=C.find((function(t){let{key:n}=t;return n===e}));return t||(t=C.find((function(t){let{key:n}=t;return parseInt(n)===parseInt(e)}))),e&&t?t.value:""}},(function(e){let{getInputProps:t,getItemProps:n,getLabelProps:l,getMenuProps:s,isOpen:c,inputValue:u,highlightedIndex:p,selectedItem:m,openMenu:y,toggleMenu:O,setState:_}=e,P=null;if(c){const e=C.filter((function(e){return!u||C.find((function(e){let{key:t}=e;return t.toString()===m.toString()}))&&C.find((function(e){let{key:t}=e;return t.toString()===m.toString()})).value===u||e.value.toLowerCase().includes(u.toLowerCase())||e.key.toString().toLowerCase().includes(u.toString().toLowerCase())}));P=(0,r.createElement)("div",G({},s(function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?$(Object(n),!0).forEach((function(t){q(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):$(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({className:i()("ct-select-dropdown",{"ct-fixed":b})},b?I:{})),{style:b?k:{}}),e.map((function(t,o){return(0,r.createElement)(r.Fragment,{key:o},t.group&&(0===o||e[o-1].group!==e[o].group)&&(0,r.createElement)("div",{className:"ct-select-dropdown-group",key:`${o}-group`},t.group),(0,r.createElement)("div",n({key:t.key,index:o,item:t.key,className:i()("ct-select-dropdown-item",{active:p===o,selected:m===t.key})}),w(t)))}))),b&&(P=(0,r.createPortal)(P,document.body))}return(0,r.createElement)("div",{className:i()("ct-select-input",g)},v&&v(),(0,r.createElement)("input",G({},t({onKeyDown:function(e){"ArrowDown"===e.key&&h&&!c&&_({inputValue:""})},onClick:function(){O(),setTimeout((function(){let e;if(e=b?document.querySelector("body > .ct-select-dropdown.ct-fixed .ct-select-dropdown-item.selected"):E.current.closest(".ct-select-input").querySelector(".ct-select-dropdown .ct-select-dropdown-item.selected"),e){let t=e.parentNode.getBoundingClientRect().top,n=e.getBoundingClientRect().top;e.parentNode.scrollTop=n-t}})),setTimeout((function(){S(Math.round())}),50),h&&_({inputValue:""})},ref:E,disabled:!!o.disabled}),{placeholder:h&&c?f||(0,a.__)("Type to search...","blocksy"):d||(0,a.__)("Select value...","blocksy"),readOnly:!h||!c})),P)}))},K=n(8441);function Y(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function X(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Y(Object(n),!0).forEach((function(t){J(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Y(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function J(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Q=function(e){let{value:t,option:n,option:{choices:o,tabletChoices:i,mobileChoices:a,placeholder:l,searchPlaceholder:c,defaultToFirstItem:u=!0,search:p=!1,inputClassName:d="",selectInputStart:f,appendToBody:m=!1},onInputValueChange:h=function(){},renderItemFor:g=function(e){return e.value},onChange:v,device:b="desktop"}=e,y=o;"tablet"===b&&i&&(y=i),"mobile"===b&&a&&(y=a);const w=(0,s.N)(y);let O=t||!u||0===parseInt(t,10)?t:(w[0]||{}).key;(0,r.useEffect)((function(){m&&setTimeout((function(){setTempState(Math.round())}),50)}),[]);let _=w.find((function(e){let{key:t}=e;return t===O}));_||(_=w.find((function(e){let{key:t}=e;return parseInt(t)===parseInt(O)})));const E=w.map((function(e){return X(X({},e),{},{name:e.value})}));return(0,r.createElement)(K.BaseControl,null,(0,r.createElement)(K.CustomSelectControl,{isBlock:!0,label:n.label,options:E,onChange:function(e){let{selectedItem:t}=e;return v(t.key)},value:E.find((function(e){return e.key===(_||!u?O:(w[0]||{}).key)}))}))};const ee=function(e){const{purpose:t}=e;return"gutenberg"===t?(0,r.createElement)(Q,e):(0,r.createElement)(Z,e)};ee.supportedPurposes=["default","gutenberg"];var te=ee},254:function(e,t,n){"use strict";n.r(t),n.d(t,{clamp:function(){return g},default:function(){return y},round:function(){return v}});var r=n(1381),o=n(4184),i=n.n(o),a=n(6399),l=n.n(a),s=n(1511),c=n(5652),u=n(8519),p=n(5026);function d(){return d=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},d.apply(this,arguments)}function f(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function m(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?f(Object(n),!0).forEach((function(t){h(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):f(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function h(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const g=function(e,t,n){return Math.max(e,Math.min(t,n))},v=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;const n=Math.pow(10,t);return Math.round(e*n+Number.EPSILON)/n};const b=function(e){let{option:t,value:n,onChange:o,is_open:i,toggleOpen:a,currentUnit:l,getNumericValue:u,forced_current_unit:p,setForcedCurrentUnit:d}=e;let f=t.units.find((function(e){let{unit:t}=e;return t===l}));return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("span",{onClick:function(){return a()},className:"ct-current-value","data-unit":l||(f&&"custom"===f.type?(0,c.__)("custom","blocksy"):"")},l||(f&&"custom"===f.type?(0,c.__)("Custom","blocksy"):"―")),(0,r.createElement)(s.default,{className:"ct-units-list",onOutsideClick:function(){i&&a()}},t.units.filter((function(e){let{unit:t}=e;return t!==l})).map((function(e){let{unit:n,type:i}=e;return(0,r.createElement)("span",{key:n,"data-unit":"custom"===i?"custom":n,onClick:function(){!function(e){const n=u();let r=t.units.find((function(t){let{unit:n}=t;return n===e}));Object.keys(r).includes("min")?o(`${g(t.units.find((function(t){let{unit:n}=t;return n===e})).min,t.units.find((function(t){let{unit:n}=t;return n===e})).max,""===n?-1/0:n)}${e}`):o(`${n}${l}`),""===r.unit&&"custom"===r.type?d(""):d("__DEFAULT__")}(n),a()}},n||("custom"===i?(0,c.__)("Custom","blocksy"):"―"))}))))};class y extends r.Component{constructor(){var e;super(...arguments),e=this,h(this,"state",{is_dragging:!1,is_open:!1,is_empty_input:!1,forced_current_unit:"__DEFAULT__"}),h(this,"el",(0,r.createRef)()),h(this,"hasUnitsList",(function(){return e.props.option.units&&e.props.option.units.length>1})),h(this,"withDefault",(function(t,n){return e.props.option.units&&e.props.option.units.find((function(e){let{unit:n}=e;return n===t}))?t:t||n})),h(this,"getCurrentUnit",(function(){if("__DEFAULT__"!==e.state.forced_current_unit)return e.state.forced_current_unit;if(!e.props.option.units)return"";let t=e.props.option.units?e.props.option.units[0].unit:"";if("NaN"===e.props.value||""===e.props.value||"CT_CSS_SKIP_RULE"===e.props.value)return t;let n=e.props.value.toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE",""),r=e.props.option.units.find((function(e){let{unit:t}=e;return t===n}));return""!==n||e.props.value.toString()!==parseFloat(e.props.value).toString()||e.props.option.units.find((function(e){let{unit:t,type:n}=e;return""===t&&!n}))?r?n:"":t})),h(this,"getMax",(function(){var t;return e.props.option.units?(null===(t=e.props.option.units.find((function(t){let{unit:n}=t;return n===e.getCurrentUnit()})))||void 0===t?void 0:t.max)||0:e.props.option.max})),h(this,"getMin",(function(){var t;return e.props.option.units?(null===(t=e.props.option.units.find((function(t){let{unit:n}=t;return n===e.getCurrentUnit()})))||void 0===t?void 0:t.min)||0:e.props.option.min})),h(this,"getNumericValue",(function(){let{forPosition:t=!1}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=parseFloat(e.props.value,10);if(0===n)return n;if(!n){if(t){if(e.props.option.defaultPosition&&"center"===e.props.option.defaultPosition){let t=parseFloat(e.getMin(),10);return(parseFloat(e.getMax(),10)-t)/2+t}return parseFloat(e.getMin(),10)}return""}return n})),h(this,"handleMove",(function(t){e.state.is_dragging&&e.computeAndSendNewValue(t)})),h(this,"handleUp",(function(){e.setState({is_dragging:!1}),e.detachEvents()})),h(this,"handleFocus",(function(){e.isCustomValueInput()&&e.setState({forced_current_unit:e.getCurrentUnit()})})),h(this,"handleOptionRevert",(function(){e.setState({forced_current_unit:"__DEFAULT__"})})),h(this,"handleBlur",(function(){if(e.setState({is_empty_input:!1}),"CT_CSS_SKIP_RULE"===e.props.option.value){if("CT_CSS_SKIP_RULE"===e.props.value)return;if(""===e.getNumericValue())return void e.props.onChange("CT_CSS_SKIP_RULE")}""!==e.props.value.toString().trim()?e.props.onChange(`${g(parseFloat(e.getMin(),10),parseFloat(e.getMax(),10),parseFloat(e.getNumericValue(),10))}${e.getCurrentUnit()}`):e.props.onChange(e.props.option.value)})),h(this,"handleChange",(function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];"CT_CSS_SKIP_RULE"!==e.props.option.value||""!==t.toString().trim()?e.isCustomValueInput()?e.props.onChange(t):""===e.props.option.value||""!==t.toString().trim()?(e.setState({is_empty_input:!1}),e.props.onChange(`${n?g(parseFloat(e.getMin(),10),parseFloat(e.getMax(),10),t):t}${e.getCurrentUnit()}`)):e.setState({is_empty_input:!0}):e.props.onChange("CT_CSS_SKIP_RULE")}))}computeAndSendNewValue(e){let{pageX:t,shiftKey:n}=e,{top:r,left:o,right:i,width:a}=this.el.current.getBoundingClientRect(),s=t-o-pageXOffset;var c,u;this.props.onChange(`${c=l()([0,a],[parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],!0)(document.body.classList.contains("rtl")?a-s:s),u=n?10:1,c=parseFloat(c),u?Math.round(c/u)*u:c}${this.getCurrentUnit()}`)}attachEvents(){document.documentElement.addEventListener("mousemove",this.handleMove,!0),document.documentElement.addEventListener("mouseup",this.handleUp,!0)}detachEvents(){document.documentElement.removeEventListener("mousemove",this.handleMove,!0),document.documentElement.removeEventListener("mouseup",this.handleUp,!0)}getLeftValue(){return`${l()([parseFloat(this.getMin(),10),parseFloat(this.getMax(),10)],[0,100])(g(parseFloat(this.getMin(),10),parseFloat(this.getMax(),10),0===parseFloat(this.getNumericValue({forPosition:!0}),10)?0:parseFloat(this.getNumericValue({forPosition:!0}),10)?parseFloat(this.getNumericValue({forPosition:!0}),10):parseFloat(this.getMin(),10)))}`}isCustomValueInput(){if(!this.hasUnitsList())return!1;let e=this.props.option.units.find((function(e){let{unit:t}=e;return""===t}));return!!e&&(""===this.getCurrentUnit()&&""===e.unit&&"custom"===e.type)}render(){var e=this;return(0,r.createElement)("div",{className:"ct-option-slider"},this.props.beforeOption&&this.props.beforeOption(),this.isCustomValueInput()?(0,r.createElement)(u.Z,{value:this.state.is_empty_input||"NaN"===this.props.value||(this.props.value||"").toString().indexOf("CT_CSS_SKIP_RULE")>-1?"":this.props.value,inputProps:m({},this.props.option.ref?{ref:this.props.option.ref}:{}),onFocus:function(){return e.handleFocus()},onChange:function(t){e.handleChange(t)}}):(0,r.createElement)("div",d({onMouseDown:function(t){let{pageX:n,pageY:r}=t;e.attachEvents(),e.setState({is_dragging:!0})},onClick:function(t){return e.computeAndSendNewValue(t)},ref:this.el,className:"ct-slider"},this.props.option.steps?{"data-steps":""}:{}),(0,r.createElement)("div",{style:{width:`${this.getLeftValue()}%`}}),(0,r.createElement)("span",d({tabIndex:"0"},(0,p.Y)({handleHorizontal:!0,value:this.state.is_empty_input?0:this.getNumericValue({forPosition:!0}),onChange:function(t){e.props.onChange(`${g(parseFloat(e.getMin(),10),parseFloat(e.getMax(),10),t)}${e.getCurrentUnit()}`)}}),{style:{"--position":`${this.getLeftValue()}%`}})),this.props.option.steps&&(0,r.createElement)("section",{className:this.props.option.steps},(0,r.createElement)("i",{className:"minus"}),(0,r.createElement)("i",{className:"zero"}),(0,r.createElement)("i",{className:"plus"}))),!this.props.option.skipInput&&(0,r.createElement)("div",{className:i()("ct-slider-input",{"ct-value-changer":!0,"no-unit-list":!this.hasUnitsList(),active:this.state.is_open})},!this.isCustomValueInput()&&(0,r.createElement)("input",d({type:"number"},this.props.option.ref?{ref:this.props.option.ref}:{},{step:1,value:this.state.is_empty_input?"":this.getNumericValue(),onFocus:function(){return e.handleFocus()},onBlur:function(){return e.handleBlur()},onChange:function(t){let{target:{value:n}}=t;e.handleChange(n,!1)}},(0,p.Y)({value:this.state.is_empty_input?0:this.getNumericValue({forPosition:!0}),onChange:function(t){e.handleChange(t)}}))),!this.hasUnitsList()&&(0,r.createElement)("span",{className:"ct-current-value"},this.withDefault(this.getCurrentUnit(),this.props.option.defaultUnit||"px")),this.hasUnitsList()&&(0,r.createElement)(b,{option:this.props.option,value:this.props.value,onChange:this.props.onChange,is_open:this.state.is_open,forced_current_unit:this.state.forced_current_unit,setForcedCurrentUnit:function(t){e.setState({forced_current_unit:t})},toggleOpen:function(){return e.setState({is_open:!e.state.is_open})},currentUnit:this.getCurrentUnit(),getNumericValue:this.getNumericValue})))}}},3480:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4184),i=n.n(o);const a=["class"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const c=function(e){let{option:{height:t=10,attr:{class:n}={}}}=e,o=s(e.option.attr,a);return(0,r.createElement)("div",l({className:i()("ct-spacer",n)},o,{style:{height:`${t}px`}}))};c.renderingConfig={design:"none"},t.default=c},5954:function(e,t,n){"use strict";n.r(t),n.d(t,{SPACING_STATE_CUSTOM:function(){return w},SPACING_STATE_INDEPENDENT:function(){return y},SPACING_STATE_LINKED:function(){return b},default:function(){return _}});var r=n(1381),o=n(5652),i=n(4184),a=n.n(i),l=n(1511),s=n(8519),c=n(5026);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){let{value:t,option:n,onChange:i,currentUnit:l}=e;if(t.state===w)return(0,r.createElement)("span",null,(0,r.createElement)(s.Z,u({type:"text",placeholder:"",value:t.custom,onChange:function(e){i(d(d({},t),{},{custom:e}))}},n.inputAttr,{shouldPropagateEmptyValue:!0})));const p=function(e,n){t.state!==b?i(d(d({},t),{},{values:t.values.map((function(t,r){return r===n?d(d({},t),{},{value:e,unit:l}):t}))})):i(d(d({},t),{},{values:t.values.map((function(t,n){return"auto"===t.value?t:d(d({},t),{},{value:e,unit:l})}))}))};return(0,r.createElement)(r.Fragment,null,["top","right","bottom","left"].map((function(e,i){return(0,r.createElement)("span",{key:e},(0,r.createElement)("input",u({type:"number",step:1,value:"auto"===t.values[i].value?"":t.values[i].value,onChange:function(e){let{target:{value:t}}=e;p(t,i)},className:a()({inactive:"auto"===t.values[i].value})},d({placeholder:"auto"===t.values[i].value?"auto":""},n.inputAttr),(0,c.Y)({value:t.values[i].value,onChange:function(e){p(e,i)}}))),(0,r.createElement)("small",null,{top:(0,o.__)("Top","blocksy"),bottom:(0,o.__)("Bottom","blocksy"),left:(0,o.__)("Left","blocksy"),right:(0,o.__)("Right","blocksy")}[e]))})))};function h(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function g(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?h(Object(n),!0).forEach((function(t){v(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):h(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function v(e,t,n){return t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t),t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const b=1,y=2,w=3,O=function(e){if("auto"===e||""===e)return{value:e,unit:""};const t=parseFloat(e);return isNaN(t)?{value:"",unit:""}:{value:t,unit:e.toString().replace(t.toString(),"")}};var _=function(e){let{value:t,option:n,onChange:i}=e;const[s,c]=(0,r.useState)(!1),u=[{unit:"px"},{unit:"%"},{unit:"em"},{unit:"rem"},{unit:"pt"}];let p=t.values?t:{values:[O(t.top),O(t.right),O(t.bottom),O(t.left)],custom:"",state:t.linked?b:y};const d=p.values.find((function(e){return"auto"!==e.value})).unit||u[0].unit;return(0,r.createElement)("div",{className:a()("ct-option-spacing",{linked:p.state===b,custom:p.state===w})},(0,r.createElement)(m,{currentUnit:d,value:p,option:n,onChange:i}),(0,r.createElement)("div",{className:a()("ct-spacing-controls ct-value-changer",{active:s})},p.state!==w&&(0,r.createElement)("span",{className:"ct-link-unlink-toggle",onClick:function(e){if(e.preventDefault(),p.state===b)return void i(g(g({},p),{},{state:y}));const t=p.values.find((function(e){return"auto"!==e.value&&""!==e.value}))||{value:"",unit:""};i(g(g({},p),{},{values:["auto"===p.values[0].value?p.values[0]:t,"auto"===p.values[1].value?p.values[1]:t,"auto"===p.values[2].value?p.values[2]:t,"auto"===p.values[3].value?p.values[3]:t],state:b}))}},(0,r.createElement)("svg",{width:"14",height:"14",viewBox:"0 0 24 24",fill:"currentColor"},p.state===b?(0,r.createElement)("path",{d:"M24,12c0,3.9-3.2,7.1-7.1,7.1h-2.2v-2.1h2.2c2.8,0,5.1-2.3,5.1-5.1s-2.3-5.1-5.1-5.1h-2.2V4.9h2.2 C20.8,4.9,24,8.1,24,12z M2.1,12c0-2.8,2.3-5.1,5.1-5.1h2.2V4.9H7.1C3.2,4.9,0,8.1,0,12s3.2,7.1,7.1,7.1h2.2v-2.1H7.1 C4.3,17.1,2.1,14.8,2.1,12z M8.3,13h7.3V11H8.3V13z"}):(0,r.createElement)("path",{d:"M24,12c0,3.9-3.2,7.1-7.1,7.1h-2.2v-2.1h2.2c2.8,0,5.1-2.3,5.1-5.1s-2.3-5.1-5.1-5.1h-1.8L7.5,23.4l-1.2-0.6L8,19.1H7.1 C3.2,19.1,0,15.9,0,12s3.2-7.1,7.1-7.1h2.2v2.1H7.1C4.3,6.9,2,9.2,2,12s2.3,5.1,5.1,5.1h1.8l1.8-4H7.9V11h3.8l4.7-10.3l1.2,0.6 L16,4.9h0.9C20.8,4.9,24,8.1,24,12z"}))),(0,r.createElement)("div",{onClick:function(){return c(!s)},className:"ct-current-value","data-unit":p.state===w?"custom":d},p.state===w?(0,o.__)("Custom","blocksy"):d||"―"),(0,r.createElement)(l.default,{className:"ct-units-list",onOutsideClick:function(){s&&c(!1)}},[...u,...p.state===w?[]:[{unit:"custom"}]].filter((function(e){let{unit:t}=e;return t!==d})).map((function(e){let{unit:t}=e;return(0,r.createElement)("span",{key:t,"data-unit":t,onClick:function(){if("custom"===t)return i(g(g({},p),{},{state:w})),void c(!1);let e=p.values.filter((function(e){return"auto"!==e.value})).map((function(e){return e.value+e.unit}));const n=1===[...new Set(e)].length?b:y;i(g(g({},p),{},{values:p.values.map((function(e){return g(g({},e),{},{unit:t})})),state:n})),c(!1)}},"custom"===t?(0,o.__)("Custom","blocksy"):t)})))))}},7809:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(1381),o=n(4184),i=n.n(o);const a=function(e){let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n};var l=function(e){let{value:t,option:n={},onChange:o,onClick:l}=e;return(0,r.createElement)("div",{className:i()({"ct-option-switch":!0,"ct-active":a({option:n,value:t})}),onClick:function(e){l&&l(e),o(function(e){let{option:t={},option:{behavior:n="words"},value:r}=e;return a({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"}({option:n,value:t}))}},(0,r.createElement)("span",null))},s=n(8441);const c=function(e){let{option:{behavior:t="words"},value:n}=e;return"words"===t?"yes"===n:!!n},u=function(e){let{option:t={},option:{behavior:n="words"},value:r}=e;return c({option:t,value:r})?"words"===n&&"no":"words"!==n||"yes"};var p=function(e){let{value:t,option:n={},onChange:o,onClick:i,maybeLabel:a}=e;return(0,r.createElement)(s.ToggleControl,{label:a,checked:c({option:n,value:t}),onChange:function(){return o(u({option:n,value:t}))},onClick:function(e){i&&i(e),o(u({option:n,value:t}))}})};const d=function(e){const{purpose:t}=e;return"gutenberg"===t?(0,r.createElement)(p,e):(0,r.createElement)(l,e)};d.renderingConfig={design:"inline"},d.supportedPurposes=["default","gutenberg"];var f=d},9697:function(e,t,n){"use strict";n.r(t);var r=n(1381);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const l=function(e){let{option:{label:t="",desc:n="",attr:l={},variation:s="simple"},labelEnd:c=null}=e;return(0,r.createElement)(r.Fragment,null,(0,r.createElement)("div",o({className:"ct-title"},function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){a(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({"data-type":s},l||{})),(0,r.createElement)("h3",null,t,c),n&&(0,r.createElement)("div",{className:"ct-option-description",dangerouslySetInnerHTML:{__html:n}})))};l.renderingConfig={design:"none"},t.default=l},16:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return ge}});var r=n(1381),o=n(4184),i=n.n(o),a=n(5652);const l=function(e){return"System Default"===e?"-apple-system, BlinkMacSystemFont, 'Segoe UI', Roboto, Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol'":e.replace("ct_typekit_","")},s=function(e,t){return Object.values(t).find((function(t){return t.families.map((function(e){let{family:t}=e;return t})).indexOf(e)>-1}))},c=function(e){return{n1:(0,a.__)("Thin 100","blocksy"),i1:(0,a.__)("Thin 100 Italic","blocksy"),n2:(0,a.__)("Extra-Light 200","blocksy"),i2:(0,a.__)("Extra-Light 200 Italic","blocksy"),n3:(0,a.__)("Light 300","blocksy"),i3:(0,a.__)("Light 300 Italic","blocksy"),n4:(0,a.__)("Regular 400","blocksy"),i4:(0,a.__)("Regular 400 Italic","blocksy"),n5:(0,a.__)("Medium 500","blocksy"),i5:(0,a.__)("Medium 500 Italic","blocksy"),n6:(0,a.__)("Semi-Bold 600","blocksy"),i6:(0,a.__)("Semi-Bold 600 Italic","blocksy"),n7:(0,a.__)("Bold 700","blocksy"),i7:(0,a.__)("Bold 700 Italic","blocksy"),n8:(0,a.__)("Extra-Bold 800","blocksy"),i8:(0,a.__)("Extra-Bold 800 Italic","blocksy"),n9:(0,a.__)("Ultra-Bold 900","blocksy"),i9:(0,a.__)("Ultra-Bold 900 Italic","blocksy"),Default:(0,a.__)("Default Weight","blocksy")}[e]},u=function(e){return 0===e.indexOf("ct_font")?e.replace("ct_font_","").replace("__","_").split("_").map((function(e){return e.replace(/^[a-z]/,(function(e){return e.toUpperCase()}))})).join(" "):0===e.indexOf("ct_typekit")?e.replace("ct_typekit_","").replace(/([-_][a-z])/gi,(function(e){return e.toUpperCase().replace("-"," ").replace("_"," ")})):"System Default"===e?(0,a.__)("System Default","blocksy"):"Default"===e?(0,a.__)("Default","blocksy"):e},p=function(e){return{system:(0,a.__)("System Font","blocksy"),"local-google-fonts":(0,a.__)("Local Google Font","blocksy"),typekit:(0,a.__)("Adobe Font","blocksy"),file:(0,a.__)("Custom Font","blocksy"),google:(0,a.__)("Google Font","blocksy")}[e]||e};var d=n(5311),f=n.n(d),m=n(3431),h=n.n(m),g=n(2329),v=n(7462),b=n(7326),y=n(4578),w=n(845),O=n(7363),_="object"==typeof performance&&"function"==typeof performance.now?function(){return performance.now()}:function(){return Date.now()};function E(e){cancelAnimationFrame(e.id)}function P(e,t){var n=_();var r={id:requestAnimationFrame((function o(){_()-n>=t?e.call(null):r.id=requestAnimationFrame(o)}))};return r}var S=-1;function j(e){if(void 0===e&&(e=!1),-1===S||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",document.body.appendChild(t),S=t.offsetWidth-t.clientWidth,document.body.removeChild(t)}return S}var C=null;function x(e){if(void 0===e&&(e=!1),null===C||e){var t=document.createElement("div"),n=t.style;n.width="50px",n.height="50px",n.overflow="scroll",n.direction="rtl";var r=document.createElement("div"),o=r.style;return o.width="100px",o.height="100px",t.appendChild(r),document.body.appendChild(t),t.scrollLeft>0?C="positive-descending":(t.scrollLeft=1,C=0===t.scrollLeft?"negative":"positive-ascending"),document.body.removeChild(t),C}return C}var k=function(e,t){return e};function I(e){var t,n=e.getItemOffset,r=e.getEstimatedTotalSize,o=e.getItemSize,i=e.getOffsetForIndexAndAlignment,a=e.getStartIndexForOffset,l=e.getStopIndexForStartIndex,s=e.initInstanceProps,c=e.shouldResetStyleCacheOnItemSizeChange,u=e.validateProps;return t=function(e){function t(t){var r;return(r=e.call(this,t)||this)._instanceProps=s(r.props,(0,b.Z)(r)),r._outerRef=void 0,r._resetIsScrollingTimeoutId=null,r.state={instance:(0,b.Z)(r),isScrolling:!1,scrollDirection:"forward",scrollOffset:"number"==typeof r.props.initialScrollOffset?r.props.initialScrollOffset:0,scrollUpdateWasRequested:!1},r._callOnItemsRendered=void 0,r._callOnItemsRendered=(0,w.Z)((function(e,t,n,o){return r.props.onItemsRendered({overscanStartIndex:e,overscanStopIndex:t,visibleStartIndex:n,visibleStopIndex:o})})),r._callOnScroll=void 0,r._callOnScroll=(0,w.Z)((function(e,t,n){return r.props.onScroll({scrollDirection:e,scrollOffset:t,scrollUpdateWasRequested:n})})),r._getItemStyle=void 0,r._getItemStyle=function(e){var t,i=r.props,a=i.direction,l=i.itemSize,s=i.layout,u=r._getItemStyleCache(c&&l,c&&s,c&&a);if(u.hasOwnProperty(e))t=u[e];else{var p=n(r.props,e,r._instanceProps),d=o(r.props,e,r._instanceProps),f="horizontal"===a||"horizontal"===s,m="rtl"===a,h=f?p:0;u[e]=t={position:"absolute",left:m?void 0:h,right:m?h:void 0,top:f?0:p,height:f?"100%":d,width:f?d:"100%"}}return t},r._getItemStyleCache=void 0,r._getItemStyleCache=(0,w.Z)((function(e,t,n){return{}})),r._onScrollHorizontal=function(e){var t=e.currentTarget,n=t.clientWidth,o=t.scrollLeft,i=t.scrollWidth;r.setState((function(e){if(e.scrollOffset===o)return null;var t=r.props.direction,a=o;if("rtl"===t)switch(x()){case"negative":a=-o;break;case"positive-descending":a=i-n-o}return a=Math.max(0,Math.min(a,i-n)),{isScrolling:!0,scrollDirection:e.scrollOffset<o?"forward":"backward",scrollOffset:a,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._onScrollVertical=function(e){var t=e.currentTarget,n=t.clientHeight,o=t.scrollHeight,i=t.scrollTop;r.setState((function(e){if(e.scrollOffset===i)return null;var t=Math.max(0,Math.min(i,o-n));return{isScrolling:!0,scrollDirection:e.scrollOffset<t?"forward":"backward",scrollOffset:t,scrollUpdateWasRequested:!1}}),r._resetIsScrollingDebounced)},r._outerRefSetter=function(e){var t=r.props.outerRef;r._outerRef=e,"function"==typeof t?t(e):null!=t&&"object"==typeof t&&t.hasOwnProperty("current")&&(t.current=e)},r._resetIsScrollingDebounced=function(){null!==r._resetIsScrollingTimeoutId&&E(r._resetIsScrollingTimeoutId),r._resetIsScrollingTimeoutId=P(r._resetIsScrolling,150)},r._resetIsScrolling=function(){r._resetIsScrollingTimeoutId=null,r.setState({isScrolling:!1},(function(){r._getItemStyleCache(-1,null)}))},r}(0,y.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return D(e,t),u(e),null};var p=t.prototype;return p.scrollTo=function(e){e=Math.max(0,e),this.setState((function(t){return t.scrollOffset===e?null:{scrollDirection:t.scrollOffset<e?"forward":"backward",scrollOffset:e,scrollUpdateWasRequested:!0}}),this._resetIsScrollingDebounced)},p.scrollToItem=function(e,t){void 0===t&&(t="auto");var n=this.props,r=n.itemCount,o=n.layout,a=this.state.scrollOffset;e=Math.max(0,Math.min(e,r-1));var l=0;if(this._outerRef){var s=this._outerRef;l="vertical"===o?s.scrollWidth>s.clientWidth?j():0:s.scrollHeight>s.clientHeight?j():0}this.scrollTo(i(this.props,e,t,a,this._instanceProps,l))},p.componentDidMount=function(){var e=this.props,t=e.direction,n=e.initialScrollOffset,r=e.layout;if("number"==typeof n&&null!=this._outerRef){var o=this._outerRef;"horizontal"===t||"horizontal"===r?o.scrollLeft=n:o.scrollTop=n}this._callPropsCallbacks()},p.componentDidUpdate=function(){var e=this.props,t=e.direction,n=e.layout,r=this.state,o=r.scrollOffset;if(r.scrollUpdateWasRequested&&null!=this._outerRef){var i=this._outerRef;if("horizontal"===t||"horizontal"===n)if("rtl"===t)switch(x()){case"negative":i.scrollLeft=-o;break;case"positive-ascending":i.scrollLeft=o;break;default:var a=i.clientWidth,l=i.scrollWidth;i.scrollLeft=l-a-o}else i.scrollLeft=o;else i.scrollTop=o}this._callPropsCallbacks()},p.componentWillUnmount=function(){null!==this._resetIsScrollingTimeoutId&&E(this._resetIsScrollingTimeoutId)},p.render=function(){var e=this.props,t=e.children,n=e.className,o=e.direction,i=e.height,a=e.innerRef,l=e.innerElementType,s=e.innerTagName,c=e.itemCount,u=e.itemData,p=e.itemKey,d=void 0===p?k:p,f=e.layout,m=e.outerElementType,h=e.outerTagName,g=e.style,b=e.useIsScrolling,y=e.width,w=this.state.isScrolling,_="horizontal"===o||"horizontal"===f,E=_?this._onScrollHorizontal:this._onScrollVertical,P=this._getRangeToRender(),S=P[0],j=P[1],C=[];if(c>0)for(var x=S;x<=j;x++)C.push((0,O.createElement)(t,{data:u,key:d(x,u),index:x,isScrolling:b?w:void 0,style:this._getItemStyle(x)}));var I=r(this.props,this._instanceProps);return(0,O.createElement)(m||h||"div",{className:n,onScroll:E,ref:this._outerRefSetter,style:(0,v.default)({position:"relative",height:i,width:y,overflow:"auto",WebkitOverflowScrolling:"touch",willChange:"transform",direction:o},g)},(0,O.createElement)(l||s||"div",{children:C,ref:a,style:{height:_?"100%":I,pointerEvents:w?"none":void 0,width:_?I:"100%"}}))},p._callPropsCallbacks=function(){if("function"==typeof this.props.onItemsRendered&&this.props.itemCount>0){var e=this._getRangeToRender(),t=e[0],n=e[1],r=e[2],o=e[3];this._callOnItemsRendered(t,n,r,o)}if("function"==typeof this.props.onScroll){var i=this.state,a=i.scrollDirection,l=i.scrollOffset,s=i.scrollUpdateWasRequested;this._callOnScroll(a,l,s)}},p._getRangeToRender=function(){var e=this.props,t=e.itemCount,n=e.overscanCount,r=this.state,o=r.isScrolling,i=r.scrollDirection,s=r.scrollOffset;if(0===t)return[0,0,0,0];var c=a(this.props,s,this._instanceProps),u=l(this.props,c,s,this._instanceProps),p=o&&"backward"!==i?1:Math.max(1,n),d=o&&"forward"!==i?1:Math.max(1,n);return[Math.max(0,c-p),Math.max(0,Math.min(t-1,u+d)),c,u]},t}(O.PureComponent),t.defaultProps={direction:"ltr",itemData:void 0,layout:"vertical",overscanCount:2,useIsScrolling:!1},t}var D=function(e,t){e.children,e.direction,e.height,e.layout,e.innerTagName,e.outerTagName,e.width,t.instance},N=I({getItemOffset:function(e,t){return t*e.itemSize},getItemSize:function(e,t){return e.itemSize},getEstimatedTotalSize:function(e){var t=e.itemCount;return e.itemSize*t},getOffsetForIndexAndAlignment:function(e,t,n,r,o,i){var a=e.direction,l=e.height,s=e.itemCount,c=e.itemSize,u=e.layout,p=e.width,d="horizontal"===a||"horizontal"===u?p:l,f=Math.max(0,s*c-d),m=Math.min(f,t*c),h=Math.max(0,t*c-d+c+i);switch("smart"===n&&(n=r>=h-d&&r<=m+d?"auto":"center"),n){case"start":return m;case"end":return h;case"center":var g=Math.round(h+(m-h)/2);return g<Math.ceil(d/2)?0:g>f+Math.floor(d/2)?f:g;default:return r>=h&&r<=m?r:r<h?h:m}},getStartIndexForOffset:function(e,t){var n=e.itemCount,r=e.itemSize;return Math.max(0,Math.min(n-1,Math.floor(t/r)))},getStopIndexForStartIndex:function(e,t,n){var r=e.direction,o=e.height,i=e.itemCount,a=e.itemSize,l=e.layout,s=e.width,c=t*a,u="horizontal"===r||"horizontal"===l?s:o,p=Math.ceil((u+n-c)/a);return Math.max(0,Math.min(i-1,t+p-1))},initInstanceProps:function(e){},shouldResetStyleCacheOnItemSizeChange:!0,validateProps:function(e){e.itemSize}});var T=n(5933),A=n.n(T);let R;R="undefined"!=typeof window?window:"undefined"!=typeof self?self:n.g;let M=null,L=null;const B=R.clearTimeout,F=R.setTimeout,z=R.cancelAnimationFrame||R.mozCancelAnimationFrame||R.webkitCancelAnimationFrame,V=R.requestAnimationFrame||R.mozRequestAnimationFrame||R.webkitRequestAnimationFrame;null==z||null==V?(M=B,L=function(e){return F(e,20)}):(M=function([e,t]){z(e),B(t)},L=function(e){const t=V((function(){B(n),e()})),n=F((function(){z(t),e()}),20);return[t,n]});function U(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function H(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?U(Object(n),!0).forEach((function(t){W(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):U(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function W(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}let G=[];const $=function(e){let{data:{linearFontsList:t,onPickFamily:n,value:o},index:s,style:c}=e;const d=t[s];return(0,r.createElement)("div",{style:c,onClick:function(){return n(d)},className:i()("ct-typography-single-font",`ct-${d.source}`,{active:d.family===o.family}),key:d.family},(0,r.createElement)("span",{className:"ct-font-name"},(0,r.createElement)("span",{className:`ct-font-type-${d.source}`,title:p(d.source)},p(d.source)[0]),u(d.display||d.family),d.variable&&(0,r.createElement)("i",null,"(",(0,a.__)("Variable","blocksy"),")")),(0,r.createElement)("span",{style:{fontFamily:l(d.family)},className:"ct-font-preview"},"Simply dummy text"))};var q=function(e){let{option:t,value:n,onPickFamily:o,typographyList:i,linearFontsList:a,currentView:l,searchTerm:s}=e;const c=(0,r.useRef)(null),[u,p]=((0,r.useRef)(null),(0,r.useState)(null));(0,r.useEffect)((function(){n.family&&c.current.scrollToItem(a.map((function(e){let{family:t}=e;return t})).indexOf(n.family),"start")}),[]);const d=function(){u&&clearTimeout(u),p(setTimeout((function(){if(!c.current)return;const[e]=c.current._getRangeToRender(),t=(Math.ceil(a.length/25),Math.ceil((e+1)/25));!function(e){if(0===e.length)return;G=[...G,...e.map((function(e){let{family:t}=e;return t}))];const t=e.map((function(e){let{family:t}=e;return t})).filter((function(e){return-1===e.indexOf("ct_typekit")})),n=e.filter((function(e){let{family:t}=e;return t.indexOf("ct_typekit")>-1}));(t.length>0||n.length>0)&&A().load(H(H(H({},t.length>0?{google:{families:t}}:{}),n.length>0?{typekit:{id:n[0].kit}}:{}),{},{classes:!1,text:"abcdefghijklmnopqrstuvwxyz"}))}([...Array(25)].map((function(e,n){return 25*(t-1)+n})).map((function(e){return a[e]})).filter((function(e){return!!e})).filter((function(e){let{source:t,family:n}=e;return-1===G.indexOf(n)&&("google"===t||"typekit"===t)})))}),100))};return(0,r.useEffect)((function(){d()}),[a]),(0,r.createElement)(N,{height:360,itemCount:a.length,itemSize:85,ref:c,onScroll:function(e){d()},itemData:{linearFontsList:a,onPickFamily:o,value:n},onItemsRendered:function(e){let{overscanStartIndex:t,overscanStopIndex:n}=e},className:"ct-typography-fonts"},$)};function Z(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function K(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Z(Object(n),!0).forEach((function(t){Y(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Z(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Y(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var X=function(e){let{option:t,value:n,onChange:o,typographyList:a,props:l}=e;const u=function(e,t){let n=s(e,t);return n?n.families.find((function(t){let{family:n}=t;return n===e})):null}(n.family,a),p=(0,r.useRef)(null);return(0,r.useEffect)((function(){u&&(p.current.scrollTop=(p.current.children[u.all_variations.indexOf(n.variation)]||p.current.children[0]).offsetTop-p.current.offsetTop)}),[u]),(0,r.createElement)(g.q.ul,{style:l,className:"ct-typography-variations",ref:p},u&&u.all_variations.map((function(e){return(0,r.createElement)("li",{onClick:function(){return o(K(K({},n),{},{variation:e}))},className:i()({active:e===n.variation}),key:e},(0,r.createElement)("span",{className:"ct-variation-name","data-variation":e},c(e)))})))},J=n(8142);function Q(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ee(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Q(Object(n),!0).forEach((function(t){te(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Q(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function te(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ne=function(e){let{option:t,value:n,sizeRef:o,onChange:l,props:s}=e;return(0,r.createElement)(g.q.ul,{style:s,className:"ct-typography-options",key:"options"},(0,r.createElement)("li",{key:"size"},(0,r.createElement)(J.ZP,{value:n.size,values:n,id:"size",option:{id:"size",label:(0,a.__)("Font Size","blocksy"),type:"ct-slider",value:t.value.size,ref:o,responsive:t.typography_responsive||!0,units:[{unit:"px",min:0,max:200},{unit:"em",min:0,max:50},{unit:"rem",min:0,max:50},{unit:"pt",min:0,max:50},{unit:"vw",min:0,max:100},{unit:"",type:"custom"}]},hasRevertButton:!0,onChange:function(e){return l(ee(ee({},n),{},{size:e}))}})),(0,r.createElement)("li",{key:"line-height"},(0,r.createElement)(J.ZP,{value:n["line-height"],values:n,id:"line-height",option:{id:"line-height",label:(0,a.__)("Line Height","blocksy"),type:"ct-slider",value:t.value["line-height"],responsive:t.typography_responsive||!0,units:[{unit:"",min:0,max:10},{unit:"px",min:0,max:100},{unit:"em",min:0,max:100},{unit:"pt",min:0,max:100},{unit:"%",min:0,max:100}]},hasRevertButton:!0,onChange:function(e){return l(ee(ee({},n),{},{"line-height":e}))}})),(0,r.createElement)("li",{key:"letter-spacing"},(0,r.createElement)(J.ZP,{value:n["letter-spacing"],values:n,id:"letter-spacing",option:{id:"letter-spacing",label:(0,a.__)("Letter Spacing","blocksy"),type:"ct-slider",value:t.value["letter-spacing"],responsive:t.typography_responsive||!0,defaultPosition:"center",units:[{unit:"em",min:-5,max:5},{unit:"px",min:-20,max:20},{unit:"rem",min:-5,max:5}]},hasRevertButton:!0,onChange:function(e){return l(ee(ee({},n),{},{"letter-spacing":e}))}})),(0,r.createElement)("li",{key:"variant",className:"ct-typography-variant"},(0,r.createElement)("ul",{className:i()("ct-text-transform")},["capitalize","uppercase"].map((function(e){return(0,r.createElement)("li",{key:e,onClick:function(){return l(ee(ee({},n),{},{"text-transform":n["text-transform"]===e?"none":e}))},className:i()({active:e===n["text-transform"]}),"data-variant":e,"data-tooltip":"top"},(0,r.createElement)("i",{className:"ct-tooltip"},{capitalize:(0,a.__)("Capitalize","blocksy"),uppercase:(0,a.__)("Uppercase","blocksy")}[e]))}))),(0,r.createElement)("ul",{className:i()("ct-text-decoration")},["line-through","underline"].map((function(e){return(0,r.createElement)("li",{key:e,onClick:function(){return l(ee(ee({},n),{},{"text-decoration":n["text-decoration"]===e?"none":e}))},className:i()({active:e===n["text-decoration"]}),"data-variant":e,"data-tooltip":"top"},(0,r.createElement)("i",{className:"ct-tooltip"},{"line-through":(0,a.__)("Line Through","blocksy"),underline:(0,a.__)("Underline","blocksy")}[e]))})))))},re=n(3363);function oe(){return oe=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},oe.apply(this,arguments)}function ie(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function ae(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?ie(Object(n),!0).forEach((function(t){le(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):ie(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function le(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function se(e,t){var n=t.length,r=e.length;if(r>n)return!1;if(r===n)return e===t;e:for(var o=0,i=0;o<r;o++){for(var a=e.charCodeAt(o);i<n;)if(t.charCodeAt(i++)===a)continue e;return!1}return!0}var ce=function(e){let{option:t,value:n,initialView:o,currentView:l,previousView:s,setCurrentView:c,setInititialView:p,onChange:d,wrapperProps:m={},confirmationRef:v,isConfirmingGdpr:b,setIsConfirmingGdpr:y}=e;const[w,O]=(0,r.useState)(!1),[_,E]=(0,r.useState)(function(e){let{isDefault:t}=e;return{system:{type:"system",families:[...t?[]:["Default"],"System Default","Arial","Verdana","Trebuchet","Georgia","Times New Roman","Palatino","Helvetica","Myriad Pro","Lucida","Gill Sans","Impact","Serif","monospace"].map((function(e){return{source:"system",family:e,display:"System Default"===e?(0,a.__)("System Default","blocksy"):e,variations:[],all_variations:[..."Default"===e?["Default"]:[],"n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}}))}}}(t)),[P,S]=(0,r.useState)(!1),[j,C]=(0,r.useState)(""),x=(0,r.useMemo)((function(){return"_"===s||"search"===l&&"fonts"===s||"search"===s&&"fonts"===l?"static":"options"===s||"fonts"===s&&"variations"===l?"right":"left"}),[l,s]),k=(0,r.useRef)(null),I=(0,r.useRef)(null),D=Object.keys(_).reduce((function(e,t){return[...e,...(_[t].families||[]).filter((function(e){let{family:t,display:n}=e;return se(j.toLowerCase(),t.toLowerCase())||se(j.toLowerCase(),(n||"").toLowerCase())}))]}),[]);(0,r.useEffect)((function(){o&&"done"!==o&&(C(""),setTimeout((function(){}))),"font_size"===o&&setTimeout((function(){return I.current&&I.current.focus()}),100)}),[o]),(0,r.useEffect)((function(){!async function(){const e=new FormData;e.append("action","blocksy_get_fonts_list");try{const n=await fetch(ajaxurl,{method:"POST",body:e});if(200===n.status){const{success:e,data:r}=await n.json();e&&E(ae(ae({},r.fonts),{},{system:ae(ae({},r.fonts.system),{},{families:[...t.isDefault?[]:[{source:"system",family:"Default",variations:[],all_variations:["Default","n1","i1","n2","i2","n3","i3","n4","i4","n5","i5","n6","i6","n7","i7","n8","i8","n9","i9"]}],...r.fonts.system.families]})}))}}catch(e){}}()}),[]),(0,r.useEffect)((function(){"search"===l&&k.current.focus()}),[l]);const N=function(e){var t,r;d(ae(ae({},n),{},{family:e.family,variation:(t=e,r=n,t.all_variations.indexOf(r.variation)>-1?r.variation:t.all_variations.indexOf("n4")>-1?"n4":t.all_variations[0])}))};return(0,r.createElement)(g.q.div,oe({className:"ct-option-modal ct-typography-modal"},m),(0,r.createElement)("div",{className:"ct-typography-container"},(0,r.createElement)("ul",{className:i()("ct-typography-top",{"ct-switch-panel":"options"!==l,"ct-static":"_"===s})},(0,r.createElement)("li",{className:"ct-back",onClick:function(){return c("options")}},(0,r.createElement)("svg",{width:"10",height:"10",viewBox:"0 0 15 15"},(0,r.createElement)("path",{d:"M14.2,6.8H2.6l4-4c0.3-0.3,0.3-0.8,0-1.1c-0.3-0.3-0.8-0.3-1.1,0L0.2,7l0,0c0,0-0.1,0.1-0.1,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1l0,0c0,0,0,0,0,0c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0.1,0,0.1c0,0,0,0,0,0.1c0,0,0,0,0,0.1C0.2,8,0.2,8,0.2,8l5.3,5.3c0.3,0.3,0.8,0.3,1.1,0c0.3-0.3,0.3-0.8,0-1.1l-4-4h11.7c0.4,0,0.8-0.3,0.8-0.8S14.7,6.8,14.2,6.8z"}))),(0,r.createElement)("li",{className:i()("ct-font",{active:"search"===l||"fonts"===l}),onClick:function(){c("fonts"===l?"search":"fonts"),C("")}},"search"!==l&&(0,r.createElement)("span",null,u(n.family)),"search"===l&&(0,r.createElement)("input",{onClick:function(e){return e.stopPropagation()},ref:k,autoFocus:!0,value:j,onKeyUp:function(e){13==e.keyCode&&D.length>0&&(N(D[0]),c("options"),C(""))},onChange:function(e){let{target:{value:t}}=e;return C(t)}}),(0,r.createElement)("svg",{width:"16",height:"16",viewBox:"0 0 15 15"},"search"===l&&(0,r.createElement)("path",{d:"M8.2,7.5L10.7,5c0.2-0.2,0.2-0.5,0-0.7c-0.2-0.2-0.5-0.2-0.7,0L7.5,6.8L5,4.3c-0.2-0.2-0.5-0.2-0.7,0C4.1,4.5,4.1,4.8,4.3,5l2.5,2.5L4.3,10c-0.2,0.2-0.2,0.5,0,0.7c0.2,0.2,0.5,0.2,0.7,0l2.5-2.5l2.5,2.5c0.2,0.2,0.5,0.2,0.7,0s0.2-0.5,0-0.7L8.2,7.5z"}),"search"!==l&&(0,r.createElement)("path",{d:"M11.3,11.5c-0.3,0.3-0.7,0.3-1.1,0l-1.3-1.3c-0.5,0.4-1.2,0.5-1.9,0.5c-2,0-3.5-1.5-3.5-3.5S5,3.7,7,3.7c1.9,0,3.5,1.5,3.5,3.5c0,0.7-0.2,1.3-0.5,1.9l1.3,1.3C11.6,10.7,11.6,11.2,11.3,11.5z M7,4.7c-1.4,0-2.5,1.1-2.5,2.5S5.6,9.7,7,9.7s2.5-1.1,2.5-2.5S8.4,4.7,7,4.7z"}))),(0,r.createElement)("li",{className:i()("ct-weight",{active:"variations"===l}),onClick:function(){return c("variations")}},(0,r.createElement)("span",{"data-variation":n.variation},(T=n.variation,{n1:"100",i1:"100",n2:"200",i2:"200",n3:"300",i3:"300",n4:"400",i4:"400",n5:"500",i5:"500",n6:"600",i6:"600",n7:"700",i7:"700",n8:"800",i8:"800",n9:"900",i9:"900",Default:(0,a.__)("Default","blocksy")}[T])))),(0,r.createElement)(g.uT,{items:l,immediate:"static"===x,config:function(e,t){return{duration:210,easing:h()(.455,.03,.515,.955)}},from:{transform:"left"===x?"translateX(100%)":"translateX(-100%)",position:"absolute"},enter:{transform:"translateX(0%)",position:"absolute"},leave:{position:"absolute",transform:"left"===x?"translateX(-100%)":"translateX(100%)"}},(function(e,o,i,a){return"options"===o?(0,r.createElement)(ne,{sizeRef:I,value:n,option:t,onChange:d,props:e,currentView:o}):"fonts"===o||"search"===o?(0,r.createElement)(g.q.div,{style:e,key:o},(0,r.createElement)(q,{typographyList:_,searchTerm:j,linearFontsList:D,currentView:`${o}:${s}`,onPickFamily:function(e){if("google"===e.source){if(!(window.ct_customizer_localizations?ct_customizer_localizations:ct_localizations).dismissed_google_fonts_notice)return void y(e)}N(e)},value:n})):"variations"===o?(0,r.createElement)(X,{currentView:o,props:e,typographyList:_,onChange:function(e){d(e)},value:n}):void 0}))),(0,r.createElement)(re.Z,{items:!!b,className:"ct-admin-modal ct-gdpr-fonts-notice",onDismiss:function(){},render:function(){return(0,r.createElement)("div",{className:"ct-modal-content",ref:v,onClick:function(e){e.stopPropagation()}},(0,r.createElement)("i",null,(0,r.createElement)("svg",{width:"20",height:"20",viewBox:"0 0 20 20"},(0,r.createElement)("path",{d:"M18.3,14.4c-0.1,0.3-0.4,0.6-0.8,0.6h-15c-0.4,0-0.7-0.2-0.8-0.6s0-0.7,0.3-0.9c0,0,2.1-1.6,2.1-6.8c0-3.2,2.6-5.8,5.8-5.8c3.2,0,5.8,2.6,5.8,5.8c0,5.2,2.1,6.8,2.1,6.8C18.3,13.7,18.4,14.1,18.3,14.4z M11.9,16.8c-0.4-0.2-0.9-0.1-1.1,0.3c-0.1,0.2-0.3,0.3-0.5,0.4c-0.2,0.1-0.4,0-0.6-0.1c-0.1-0.1-0.2-0.2-0.3-0.3c-0.2-0.4-0.7-0.5-1.1-0.3c-0.4,0.2-0.5,0.7-0.3,1.1c0.2,0.4,0.5,0.7,0.9,0.9c0.4,0.2,0.8,0.3,1.2,0.3c0.2,0,0.4,0,0.6-0.1c0.6-0.2,1.2-0.6,1.5-1.2C12.4,17.5,12.3,17,11.9,16.8z"}))),(0,r.createElement)("h2",{className:"ct-modal-title"},(0,a.__)("Looks like you've picked a Google Font","blocksy")),(0,r.createElement)("p",{dangerouslySetInnerHTML:{__html:sprintf((0,a.__)("By using external Google Fonts, your website might not comply with the privacy regulations in your country. As an alternative you can use a system font, our %sLocal Google Fonts%s extension, or this %splugin%s.","blocksy"),'<a href="https://creativethemes.com/blocksy/docs/extensions/local-google-fonts/" target="_blank">',"</a>",'<a href="https://wordpress.org/plugins/local-google-fonts/" target="_blank">',"</a>")}}),(0,r.createElement)("div",{className:"ct-modal-actions has-divider","data-buttons":"2"},(0,r.createElement)("div",{className:"ct-checkbox-container",onClick:function(){O(!w)}},(0,r.createElement)("span",{className:i()("ct-checkbox",{active:w})},(0,r.createElement)("svg",{width:"10",height:"8",viewBox:"0 0 11.2 9.1"},(0,r.createElement)("polyline",{className:"check",points:"1.2,4.8 4.4,7.9 9.9,1.2"}))),(0,a.__)("I understand, don't show this notification again.","blocksy")),(0,r.createElement)("button",{className:"button",onClick:function(){y(!1),O(!1)}},(0,a.__)("Cancel","blocksy")),(0,r.createElement)("button",{className:"button button-primary",disabled:!w,onClick:function(e){if(e.preventDefault(),N(b),y(!1),w){(window.ct_customizer_localizations?ct_customizer_localizations:ct_localizations).dismissed_google_fonts_notice="yes",f().post(ajaxurl,{wp_customize:"on",action:"blocksy_dismissed_google_fonts_notice_handler"},(function(){}))}}},(0,a.__)("Continue","blocksy"))))}}));var T},ue=n(1511),pe=n(7086),de=n(2932);function fe(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function me(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fe(Object(n),!0).forEach((function(t){he(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fe(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function he(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var ge=function(e){let{option:{label:t="",desc:n="",attr:o={}},option:l,value:s,device:p,onChange:d}=e;const[f,m]=(0,r.useState)("_:_"),[v,b]=(0,r.useState)(!1),y=(0,r.useRef)();let[w,O]=(0,r.useMemo)((function(){return f.split(":")}),[f]);const _=(0,r.useCallback)((function(e){return m(`${e}:${w}`)}),[w]),[{isOpen:E,isTransitioning:P},S]=(0,r.useState)({isOpen:!1,isTransitioning:!1}),{styles:j,popoverProps:C}=(0,de.Z)({ref:y,defaultHeight:430,shouldCalculate:P||E}),x=function(e){S((function(t){return me(me({},t),{},{isOpen:e,isTransitioning:!0})}))},k=(0,r.useRef)(),I=(0,r.useRef)(),D=(0,r.useRef)(),N=(0,r.useRef)(),T=(0,r.useRef)(),A=(0,r.useMemo)((function(){const e=w,t="options"===e?I.current:"fonts"===e?k.current:"variations"===e?D.current:I.current;return C.ref&&C.ref.current&&function(e,t){if(!e)return;if(!t)return;let n=getComputedStyle(e),r=parseFloat(n.left);return{"--option-modal-arrow-position":(t=t.getBoundingClientRect()).left+t.width/2-r-6+"px"}}(C.ref.current,t)}),[E,w,C.ref,C.ref&&C.ref.current,k&&k.current,D&&D.current,I&&I.current,N&&N.current]);let R="CT_CSS_SKIP_RULE"===(0,pe.T)(s.size)[p]?(0,a.__)("Default Size","blocksy"):(0,pe.T)(s.size)[p],M=(0,pe.T)(s.size)[p].toString().replace(/[0-9]/g,"").replace(/\-/g,"").replace(/\./g,"").replace("CT_CSS_SKIP_RULE","");return"CT_CSS_SKIP_RULE"!==(0,pe.T)(s.size)[p]&&-1===["px","em","rem","pt","vw"].indexOf(M)&&(R=(0,a.__)("Custom","blocksy")),(0,r.createElement)("div",{className:i()("ct-typography",{})},(0,r.createElement)(ue.default,{disabled:!E,useCapture:!1,className:"ct-typohraphy-value",additionalRefs:[C.ref,T],onOutsideClick:function(){v||x(!1)},wrapperProps:{ref:y,onClick:function(e){e.preventDefault(),E?_("options"):(m("options:_"),x("options"))}}},(0,r.createElement)("div",null,(0,r.createElement)("span",{onClick:function(e){e.stopPropagation(),E?_("fonts"):(m("fonts:_"),x("fonts"))},className:"ct-font",ref:k},(0,r.createElement)("span",null,"Default"===s.family?(0,a.__)("Default Family","blocksy"):u(s.family))),(0,r.createElement)("i",null,"/"),(0,r.createElement)("span",{onClick:function(e){e.stopPropagation(),E?_("options"):(m("options:_"),x("font_size"))},ref:I,className:"ct-size"},(0,r.createElement)("span",null,R)),(0,r.createElement)("i",null,"/"),(0,r.createElement)("span",{ref:D,onClick:function(e){e.stopPropagation(),E?_("variations"):(m("variations:_"),x("variations"))},className:"ct-weight"},(0,r.createElement)("span",null,c(s.variation)))),(0,r.createElement)("a",{ref:N})),(P||E)&&(0,r.createPortal)((0,r.createElement)(g.uT,{items:E,onRest:function(e){S((function(e){return me(me({},e),{},{isTransitioning:!1})}))},config:{duration:100,easing:h()(.25,.1,.25,1)},from:E?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:E?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:E?{opacity:1}:{transform:"scale3d(0.95, 0.95, 1)",opacity:0}},(function(e,t){return t?(0,r.createElement)(ce,{isConfirmingGdpr:v,setIsConfirmingGdpr:b,confirmationRef:T,wrapperProps:me({style:me(me(me({},e),j),A)},C),onChange:d,value:s,option:l,initialView:t,setInititialView:function(e){return x(e)},currentView:w,previousView:O,setCurrentView:_}):null})),document.body))}},9109:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4775),i=n(4184),a=n.n(i),l=n(4823),s=n(3431),c=n.n(s),u=n(1511);n(5652);function p(){return p=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},p.apply(this,arguments)}function d(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function f(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?d(Object(n),!0).forEach((function(t){m(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):d(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function m(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const h=function(e){let{option:t,value:n,onChange:i}=e;return(0,r.createElement)("ul",p({className:"ct-visibility-option ct-devices ct-buttons-group"},t.attr||{}),(0,o.N)(t.choices).map((function(e){let{key:o,value:l}=e;return(0,r.createElement)("li",{className:a()({active:n[o]},`ct-${o}`),onClick:function(){return i(f(f({},n),{},{[o]:!n[o]||1===Object.values(n).filter((function(e){return e})).length&&!t.allow_empty}))},key:o})})))},g=function(e){let{option:t,value:n,onChange:o}=e;const[{isPicking:i,isTransitioning:a},s]=(0,r.useState)({isPicking:null,isTransitioning:null}),p=(0,r.useRef)();return(0,r.createElement)(r.Fragment,null,(0,r.createElement)(u.default,{useCapture:!1,disabled:!i,className:"ct-visibility-trigger",additionalRefs:[],onOutsideClick:function(){i&&s({isTransitioning:!0,isPicking:null})},wrapperProps:{ref:p,onClick:function(e){e.preventDefault(),s({isTransitioning:!0,isPicking:!0})}}},(0,r.createElement)("span",null,"open visibility")),(a||i)&&(0,r.createPortal)((0,r.createElement)(l.uT,{items:i,onRest:function(e){s({isPicking:i,isTransitioning:!1})},config:{duration:100,easing:c()(.25,.1,.25,1)},from:i?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1},enter:i?{transform:"scale3d(1, 1, 1)",opacity:1}:{opacity:1},leave:i?{transform:"scale3d(0.95, 0.95, 1)",opacity:0}:{opacity:1}},(function(e){return e&&function(e){return(0,r.createElement)("div",{style:e,className:"ct-box-shadow-modal",onClick:function(e){e.preventDefault(),e.stopPropagation()},onMouseDownCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()},onMouseUpCapture:function(e){e.nativeEvent.stopImmediatePropagation(),e.nativeEvent.stopPropagation()}},(0,r.createElement)(h,{option:t,value:n,onChange:o}))}})),p.current.closest(".ct-labeled-group-item")?p.current.closest(".ct-labeled-group-item").querySelector(".ct-visibility-modal-wrapper"):p.current.closest(".ct-single-palette")?p.current.closest(".ct-single-palette").querySelector(".ct-visibility-modal-wrapper"):p.current.closest(".ct-visibility-modal-wrapper")?p.current.closest(".ct-visibility-modal-wrapper"):p.current.closest(".ct-control").querySelector(".ct-visibility-modal-wrapper")))},v=function(e){let{option:t,option:{view:n="inline"},value:o,onChange:i}=e;return"inline"===n?(0,r.createElement)(h,{option:t,value:o,onChange:i}):(0,r.createElement)(g,{option:t,value:o,onChange:i})};v.hiddenResponsive=!0,v.ControlEnd=function(){return(0,r.createElement)("div",{className:"ct-visibility-modal-wrapper"})},t.default=v},7475:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(4184),i=n.n(o),a=n(5652),l=n(8153);function s(){return s=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},s.apply(this,arguments)}function c(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function u(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?c(Object(n),!0).forEach((function(t){p(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):c(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function p(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const d=function(e){let{onChange:t,value:n,option:o,option:{columns_id:c,rows_id:p},device:d,onChangeFor:f,values:m,values:{woocommerce_catalog_columns:h,woocommerce_catalog_rows:g},liftedOptionStateDescriptor:v}=e;const b=p?m[p]:g;return(0,r.createElement)("div",s({className:i()("ct-woo-columns-and-rows",{})},"desktop"!==d?{"data-disabled-last":""}:{}),(0,r.createElement)("div",null,(0,r.createElement)(l.default,{liftedOptionStateDescriptor:v,option:u(u({},o),{},{attr:u(u({},o.attr||{}),{},{"data-width":"full"})}),value:c||"desktop"!==d?n:h,onChange:function(e){"desktop"!==d||c?t(e):f("woocommerce_catalog_columns",e)}}),(0,r.createElement)("p",{className:"ct-option-description"},(0,a.__)("Number of columns","blc"))),(0,r.createElement)("div",null,(0,r.createElement)(l.default,{liftedOptionStateDescriptor:v,option:{min:1,max:100,responsive:!1,value:4,attr:{"data-width":"full"}},value:"desktop"===d?b:"auto",onChange:function(e){"desktop"===d&&f(p||"woocommerce_catalog_rows",e),wp.customize&&wp.customize.previewer&&wp.customize.previewer.send("ct:sync:refresh_partial",{id:p||"woocommerce_catalog_rows"})}}),(0,r.createElement)("p",{className:"ct-option-description"},(0,a.__)("Number of rows","blc"))))};d.renderingConfig={getValueForRevert:function(e){let{value:t,values:{woocommerce_catalog_columns:n,woocommerce_catalog_rows:r},option:o,option:{columns_id:i,rows_id:a},values:l,device:s}=e;a&&l[a];return u(u({},t),{},{desktop:n,woocommerce_catalog_columns:n,woocommerce_catalog_rows:r})},computeOptionValue:function(e){return u(u({},e),{},{woocommerce_catalog_columns:4,woocommerce_catalog_rows:4})},computeOptionValue:function(e){return u(u({},e),{},{woocommerce_catalog_columns:4,woocommerce_catalog_rows:4})},performRevert:function(e){let{onChangeFor:t}=e;t("woocommerce_catalog_columns",4),t("woocommerce_catalog_rows",4)}},t.default=d},7762:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return f}});var r=n(1381),o=(n(4184),n(5652),n(7812));const i=(0,r.createContext)({onChange:function(e,t){},values:{}}),a=["value","onChange","onChangeFor","option","option"];function l(){return l=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},l.apply(this,arguments)}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function p(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}const d=function(e){let{value:t,onChange:n,onChangeFor:s,option:u,option:{croppingKey:d="woocommerce_archive_thumbnail_cropping",customWidthKey:f="woocommerce_archive_thumbnail_cropping_custom_width",customHeightKey:m="woocommerce_archive_thumbnail_cropping_custom_height"}}=e,h=p(e,a);const[g,v]=function(){const{onChange:e,values:t}=(0,r.useContext)(i);return[t,e]}();return(0,r.createElement)(o.default,l({onChange:function(e){let t=-1===e.indexOf("/"),[r,o]=e.split(t?":":"/");if("original"===e)return v(d,"uncropped"),void n("uncropped");n(t?"custom":"predefined"),v(d,"custom"),v(m,parseFloat(o||"0")||0),v(f,parseFloat(r||"0")||0)},value:"uncropped"===t?"original":"1:1"===t?"1/1":`${g[f]}${"custom"===t?":":"/"}${g[m]}`,option:c(c({},u),{},{value:"1/1"}),onChangeFor:v},h,{values:g}))};d.ControlEnd=function(){return(0,r.createElement)("div",{className:"ct-color-modal-wrapper",onMouseDown:function(e){return e.stopPropagation()},onMouseUp:function(e){return e.stopPropagation()}})};var f=d},5502:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return a}});var r=n(1381),o=n(8441),i=window.wp.date;var a=function(e){let{value:t,onChange:n}=e;const a=(0,i.__experimentalGetSettings)(),l=/a(?!\\)/i.test(a.formats.time.toLowerCase().replace(/\\\\/g,"").split("").reverse().join(""));return(0,r.createElement)("div",{className:"ct-date-time-picker"},(0,r.createElement)(o.DateTimePicker,{currentDate:t||new Date,onChange:function(e){n(e)},is12Hour:l}))}},2242:function(e,t,n){"use strict";n.r(t);var r=n(1381);const o=function(e){let{option:{text:t="",attr:n={}}}=e;return(0,r.createElement)(r.Fragment,null)};o.renderingConfig={design:"none"},o.MetaWrapper=function(){return null},t.default=o},2616:function(e,t,n){"use strict";n.r(t);var r=n(1381);t.default=function(e){const{option:t}=e;return(0,r.createElement)("div",{dangerouslySetInnerHTML:{__html:t.html||""}})}},5200:function(e,t,n){"use strict";n.r(t);n(1381);t.default=function(e){const{option:t}=e;return t.render?t.render(e):null}},1511:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return u}});var r=n(1381),o=n(4184),i=n.n(o);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const s={disabled:!1,useCapture:!0,display:"block"},c=function(e,t){"function"==typeof e?e(t):e.current=t};class u extends r.Component{constructor(){var e;super(...arguments),e=this,l(this,"childNode",(0,r.createRef)()),l(this,"checkIsInside",(function(t){return[e.childNode,...e.props.additionalRefs||[]].reduce((function(e,n){return e||(n&&n.current?n.current.contains(t.target):e)}),!1)})),l(this,"onMouseDown",(function(t){const{useCapture:n}=e.props;e.checkIsInside(t)||(e.removeMouseUp&&(e.removeMouseUp(),e.removeMouseUp=null),document.addEventListener("mouseup",e.onMouseUp,n),e.removeMouseUp=function(){document.removeEventListener("mouseup",e.onMouseUp,n)})})),l(this,"onMouseUp",(function(t){const{onOutsideClick:n}=e.props;e.removeMouseUp&&(e.removeMouseUp(),e.removeMouseUp=null),e.checkIsInside(t)||n(t)})),l(this,"setChildNodeRef",(function(t){e.props.wrapperProps&&e.props.wrapperProps.ref&&c(e.props.wrapperProps.ref,t),c(e.childNode,t)}))}componentDidMount(){const{disabled:e,useCapture:t}=this.props;e||this.addMouseDownEventListener(t)}UNSAFE_componentWillReceiveProps(e){let{disabled:t,useCapture:n}=e;const{disabled:r}=this.props;r!==t&&(t?this.removeEventListeners():this.addMouseDownEventListener(n))}componentWillUnmount(){this.removeEventListeners()}addMouseDownEventListener(e){var t=this;document.addEventListener("mousedown",this.onMouseDown,e),this.removeMouseDown=function(){document.removeEventListener("mousedown",t.onMouseDown,e)}}removeEventListeners(){this.removeMouseDown&&this.removeMouseDown(),this.removeMouseUp&&this.removeMouseUp()}render(){const{children:e,display:t,className:n,wrapperProps:o}=this.props;return(0,r.createElement)("div",a({className:i()(n)},o||{},{ref:this.setChildNodeRef}),e)}}u.defaultProps=s},4658:function(e,t,n){"use strict";n.r(t),n.d(t,{default:function(){return g}});var r=n(1381);function o(){return o=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},o.apply(this,arguments)}function i(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function a(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?i(Object(n),!0).forEach((function(t){l(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):i(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function l(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var s=function(e){let{value:t,option:n,onChange:i}=e;return(0,r.createElement)("div",{className:"ct-option-input"},(0,r.createElement)("input",o({type:"text",value:t},a(a({},n.field_attr?n.field_attr:{}),n.attr&&n.attr.placeholder?{placeholder:n.attr.placeholder}:{}),{onChange:function(e){let{target:{value:t}}=e;return i(t)}},n.select_on_focus?{onFocus:function(e){let{target:t}=e;return t.select()}}:{})))},c=n(8441);function u(){return u=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},u.apply(this,arguments)}function p(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function d(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?p(Object(n),!0).forEach((function(t){f(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):p(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function f(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var m=function(e){let{value:t,option:n,onChange:o}=e;return(0,r.createElement)(c.TextControl,u({label:n.label,value:t},d(d({},n.field_attr?n.field_attr:{}),n.attr&&n.attr.placeholder?{placeholder:n.attr.placeholder}:{}),{onChange:function(e){return o(e)}},n.select_on_focus?{onFocus:function(e){let{target:t}=e;return t.select()}}:{}))};const h=function(e){const{purpose:t}=e;return"gutenberg"===t?(0,r.createElement)(m,e):(0,r.createElement)(s,e)};h.supportedPurposes=["default","gutenberg"];var g=h},8670:function(e,t,n){"use strict";n.r(t);var r=n(1381);const o=["placeholder"];function i(){return i=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},i.apply(this,arguments)}function a(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function l(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?a(Object(n),!0).forEach((function(t){s(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):a(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function s(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function c(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}t.default=function(e){let{value:t,option:n,onChange:a}=e,s=l({},n.attr||{}),{placeholder:u}=s,p=c(s,o);return(0,r.createElement)("div",i({className:"ct-option-textarea"},p),(0,r.createElement)("textarea",i({value:t},l(l({},n.field_attr?n.field_attr:{}),u?{placeholder:u}:{}),{onChange:function(e){let{target:{value:t}}=e;return a(t)}})))}},227:function(e,t,n){"use strict";n.r(t);var r=n(1381),o=n(2568),i=n.n(o);function a(){return a=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},a.apply(this,arguments)}function l(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function s(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?l(Object(n),!0).forEach((function(t){c(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):l(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function c(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}t.default=function(e){let{id:t,value:n,option:o,onChange:l}=e;const c=(0,r.useRef)(),[u,p]=((0,r.useRef)(null),(0,r.useState)(`${t}-${i()(Math.random()+"-"+Math.random()+"-"+Math.random())}`)),d=function(){return wp.oldEditor||wp.editor},f=(0,r.useCallback)((function(){return l(d().getContent(u))}),[u]);return(0,r.useEffect)((function(){return d().initialize(u,s(s({quicktags:!0,mediaButtons:!0},o),window.tinymce?{tinymce:s(s({toolbar1:"formatselect,styleselect,bold,italic,bullist,numlist,link,alignleft,aligncenter,alignright,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help"},"object"==typeof o.tinymce?o.tinymce:{}),{},{style_formats_merge:!0,style_formats:[]})}:{tinymce:null})),window.tinymce&&setTimeout((function(){return window.tinymce.editors[u]&&window.tinymce.editors[u].on("change",f)})),wp.oldEditor&&setTimeout((function(){setTimeout((function(){window.tinymce&&window.tinymce.editors[u]&&window.tinymce.editors[u].off("change",f),d().remove(u),d().initialize(u,s(s({quicktags:!0,mediaButtons:!0},o),window.tinymce?{tinymce:s(s({toolbar1:"formatselect,styleselect,bold,italic,bullist,numlist,link,alignleft,aligncenter,alignright,wp_adv",toolbar2:"strikethrough,hr,forecolor,pastetext,removeformat,charmap,outdent,indent,undo,redo,wp_help"},"object"==typeof o.tinymce?o.tinymce:{}),{},{style_formats_merge:!0,style_formats:[]})}:{tinymce:null})),window.tinymce&&setTimeout((function(){return window.tinymce.editors[u]&&window.tinymce.editors[u].on("change",f)}))}),300)}),1e3),function(){setTimeout((function(){window.tinymce&&window.tinymce.editors[u]&&window.tinymce.editors[u].off("change",f),d().remove(u)}),300)}}),[]),(0,r.createElement)("div",a({className:"ct-option-editor"},o.attr||{}),(0,r.createElement)("textarea",a({style:{opacity:0},id:u,ref:c,value:n,className:"wp-editor-area"},s(s({},o.field_attr?o.field_attr:{}),o.attr&&o.attr.placeholder?{placeholder:o.attr.placeholder}:{}),{onChange:function(e){let{target:{value:t}}=e;return l(t)}})))}},989:function(e,t,n){n.p=ct_localizations.public_url},3431:function(e){var t=.1,n="function"==typeof Float32Array;function r(e,t){return 1-3*t+3*e}function o(e,t){return 3*t-6*e}function i(e){return 3*e}function a(e,t,n){return((r(t,n)*e+o(t,n))*e+i(t))*e}function l(e,t,n){return 3*r(t,n)*e*e+2*o(t,n)*e+i(t)}function s(e){return e}e.exports=function(e,r,o,i){if(!(0<=e&&e<=1&&0<=o&&o<=1))throw new Error("bezier x values must be in [0, 1] range");if(e===r&&o===i)return s;for(var c=n?new Float32Array(11):new Array(11),u=0;u<11;++u)c[u]=a(u*t,e,o);function p(n){for(var r=0,i=1;10!==i&&c[i]<=n;++i)r+=t;--i;var s=r+(n-c[i])/(c[i+1]-c[i])*t,u=l(s,e,o);return u>=.001?function(e,t,n,r){for(var o=0;o<4;++o){var i=l(t,n,r);if(0===i)return t;t-=(a(t,n,r)-e)/i}return t}(n,s,e,o):0===u?s:function(e,t,n,r,o){var i,l,s=0;do{(i=a(l=t+(n-t)/2,r,o)-e)>0?n=l:t=l}while(Math.abs(i)>1e-7&&++s<10);return l}(n,r,r+t,e,o)}return function(e){return 0===e?0:1===e?1:a(p(e),r,i)}}},1924:function(e,t,n){"use strict";var r=n(210),o=n(5559),i=o(r("String.prototype.indexOf"));e.exports=function(e,t){var n=r(e,!!t);return"function"==typeof n&&i(e,".prototype.")>-1?o(n):n}},5559:function(e,t,n){"use strict";var r=n(8612),o=n(210),i=o("%Function.prototype.apply%"),a=o("%Function.prototype.call%"),l=o("%Reflect.apply%",!0)||r.call(a,i),s=o("%Object.getOwnPropertyDescriptor%",!0),c=o("%Object.defineProperty%",!0),u=o("%Math.max%");if(c)try{c({},"a",{value:1})}catch(e){c=null}e.exports=function(e){var t=l(r,a,arguments);s&&c&&(s(t,"length").configurable&&c(t,"length",{value:1+u(0,e.length-(arguments.length-1))}));return t};var p=function(){return l(r,i,arguments)};c?c(e.exports,"apply",{value:p}):e.exports.apply=p},487:function(e){var t={utf8:{stringToBytes:function(e){return t.bin.stringToBytes(unescape(encodeURIComponent(e)))},bytesToString:function(e){return decodeURIComponent(escape(t.bin.bytesToString(e)))}},bin:{stringToBytes:function(e){for(var t=[],n=0;n<e.length;n++)t.push(255&e.charCodeAt(n));return t},bytesToString:function(e){for(var t=[],n=0;n<e.length;n++)t.push(String.fromCharCode(e[n]));return t.join("")}}};e.exports=t},4184:function(e,t){var n;
/*!
	Copyright (c) 2018 Jed Watson.
	Licensed under the MIT License (MIT), see
	http://jedwatson.github.io/classnames
*/!function(){"use strict";var r={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var i=typeof n;if("string"===i||"number"===i)e.push(n);else if(Array.isArray(n)){if(n.length){var a=o.apply(null,n);a&&e.push(a)}}else if("object"===i){if(n.toString!==Object.prototype.toString&&!n.toString.toString().includes("[native code]")){e.push(n.toString());continue}for(var l in n)r.call(n,l)&&n[l]&&e.push(l)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(n=function(){return o}.apply(t,[]))||(e.exports=n)}()},640:function(e,t,n){"use strict";var r=n(1742),o={"text/plain":"Text","text/html":"Url",default:"Text"};e.exports=function(e,t){var n,i,a,l,s,c,u=!1;t||(t={}),n=t.debug||!1;try{if(a=r(),l=document.createRange(),s=document.getSelection(),(c=document.createElement("span")).textContent=e,c.ariaHidden="true",c.style.all="unset",c.style.position="fixed",c.style.top=0,c.style.clip="rect(0, 0, 0, 0)",c.style.whiteSpace="pre",c.style.webkitUserSelect="text",c.style.MozUserSelect="text",c.style.msUserSelect="text",c.style.userSelect="text",c.addEventListener("copy",(function(r){if(r.stopPropagation(),t.format)if(r.preventDefault(),void 0===r.clipboardData){n&&console.warn("unable to use e.clipboardData"),n&&console.warn("trying IE specific stuff"),window.clipboardData.clearData();var i=o[t.format]||o.default;window.clipboardData.setData(i,e)}else r.clipboardData.clearData(),r.clipboardData.setData(t.format,e);t.onCopy&&(r.preventDefault(),t.onCopy(r.clipboardData))})),document.body.appendChild(c),l.selectNodeContents(c),s.addRange(l),!document.execCommand("copy"))throw new Error("copy command was unsuccessful");u=!0}catch(r){n&&console.error("unable to copy using execCommand: ",r),n&&console.warn("trying IE specific stuff");try{window.clipboardData.setData(t.format||"text",e),t.onCopy&&t.onCopy(window.clipboardData),u=!0}catch(r){n&&console.error("unable to copy using clipboardData: ",r),n&&console.error("falling back to prompt"),i=function(e){var t=(/mac os x/i.test(navigator.userAgent)?"⌘":"Ctrl")+"+C";return e.replace(/#{\s*key\s*}/g,t)}("message"in t?t.message:"Copy to clipboard: #{key}, Enter"),window.prompt(i,e)}}finally{s&&("function"==typeof s.removeRange?s.removeRange(l):s.removeAllRanges()),c&&document.body.removeChild(c),a()}return u}},1012:function(e){var t,n;t="ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789+/",n={rotl:function(e,t){return e<<t|e>>>32-t},rotr:function(e,t){return e<<32-t|e>>>t},endian:function(e){if(e.constructor==Number)return 16711935&n.rotl(e,8)|4278255360&n.rotl(e,24);for(var t=0;t<e.length;t++)e[t]=n.endian(e[t]);return e},randomBytes:function(e){for(var t=[];e>0;e--)t.push(Math.floor(256*Math.random()));return t},bytesToWords:function(e){for(var t=[],n=0,r=0;n<e.length;n++,r+=8)t[r>>>5]|=e[n]<<24-r%32;return t},wordsToBytes:function(e){for(var t=[],n=0;n<32*e.length;n+=8)t.push(e[n>>>5]>>>24-n%32&255);return t},bytesToHex:function(e){for(var t=[],n=0;n<e.length;n++)t.push((e[n]>>>4).toString(16)),t.push((15&e[n]).toString(16));return t.join("")},hexToBytes:function(e){for(var t=[],n=0;n<e.length;n+=2)t.push(parseInt(e.substr(n,2),16));return t},bytesToBase64:function(e){for(var n=[],r=0;r<e.length;r+=3)for(var o=e[r]<<16|e[r+1]<<8|e[r+2],i=0;i<4;i++)8*r+6*i<=8*e.length?n.push(t.charAt(o>>>6*(3-i)&63)):n.push("=");return n.join("")},base64ToBytes:function(e){e=e.replace(/[^A-Z0-9+\/]/gi,"");for(var n=[],r=0,o=0;r<e.length;o=++r%4)0!=o&&n.push((t.indexOf(e.charAt(r-1))&Math.pow(2,-2*o+8)-1)<<2*o|t.indexOf(e.charAt(r))>>>6-2*o);return n}},e.exports=n},600:function(e,t){"use strict";t.T=function(e){var t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e&&Object.keys(e).indexOf("desktop")>-1?t?e:e.desktop:t?{desktop:e,tablet:e,mobile:e}:e}},251:function(e,t,n){var r=n(2215),o=n(2584),i=n(609),a=n(8420),l=n(2847),s=n(8923),c=Date.prototype.getTime;function u(e,t,n){var f=n||{};return!!(f.strict?i(e,t):e===t)||(!e||!t||"object"!=typeof e&&"object"!=typeof t?f.strict?i(e,t):e==t:function(e,t,n){var i,f;if(typeof e!=typeof t)return!1;if(p(e)||p(t))return!1;if(e.prototype!==t.prototype)return!1;if(o(e)!==o(t))return!1;var m=a(e),h=a(t);if(m!==h)return!1;if(m||h)return e.source===t.source&&l(e)===l(t);if(s(e)&&s(t))return c.call(e)===c.call(t);var g=d(e),v=d(t);if(g!==v)return!1;if(g||v){if(e.length!==t.length)return!1;for(i=0;i<e.length;i++)if(e[i]!==t[i])return!1;return!0}if(typeof e!=typeof t)return!1;try{var b=r(e),y=r(t)}catch(e){return!1}if(b.length!==y.length)return!1;for(b.sort(),y.sort(),i=b.length-1;i>=0;i--)if(b[i]!=y[i])return!1;for(i=b.length-1;i>=0;i--)if(!u(e[f=b[i]],t[f],n))return!1;return!0}(e,t,f))}function p(e){return null==e}function d(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length)&&("function"==typeof e.copy&&"function"==typeof e.slice&&!(e.length>0&&"number"!=typeof e[0]))}e.exports=u},4289:function(e,t,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=n(1044)(),c=l&&s,u=function(e,t,n,r){if(t in e)if(!0===r){if(e[t]===n)return}else if("function"!=typeof(o=r)||"[object Function]"!==i.call(o)||!r())return;var o;c?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)u(e,i[l],t[i[l]],n[i[l]])};p.supportsDescriptors=!!c,e.exports=p},6781:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,s=60110,c=60112,u=60113,p=60120,d=60115,f=60116,m=60121,h=60122,g=60117,v=60129,b=60131;
/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),s=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),p=y("react.suspense_list"),d=y("react.memo"),f=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case d:case l:return e;default:return t}}case r:return t}}}},1726:function(e,t,n){"use strict";n(6781)},3172:function(e,t,n){var r=n(4760),o=n(7529),i=null;function a(e){return setTimeout(e,0)}e.exports=function(e,t){var n=document,l="string"==typeof e?n.querySelector(e):e,s=o({returnFocusOnDeactivate:!0,escapeDeactivates:!0},t),c={firstTabbableNode:null,lastTabbableNode:null,nodeFocusedBeforeActivation:null,mostRecentlyFocusedNode:null,active:!1,paused:!1},u={activate:function(e){if(c.active)return;w(),c.active=!0,c.paused=!1,c.nodeFocusedBeforeActivation=n.activeElement;var t=e&&e.onActivate?e.onActivate:s.onActivate;t&&t();return d(),u},deactivate:p,pause:function(){if(c.paused||!c.active)return;c.paused=!0,f()},unpause:function(){if(!c.paused||!c.active)return;c.paused=!1,d()}};return u;function p(e){if(c.active){f(),c.active=!1,c.paused=!1;var t=e&&void 0!==e.onDeactivate?e.onDeactivate:s.onDeactivate;return t&&t(),(e&&void 0!==e.returnFocus?e.returnFocus:s.returnFocusOnDeactivate)&&a((function(){O(c.nodeFocusedBeforeActivation)})),u}}function d(){if(c.active)return i&&i.pause(),i=u,w(),a((function(){O(h())})),n.addEventListener("focusin",v,!0),n.addEventListener("mousedown",g,!0),n.addEventListener("touchstart",g,!0),n.addEventListener("click",y,!0),n.addEventListener("keydown",b,!0),u}function f(){if(c.active&&i===u)return n.removeEventListener("focusin",v,!0),n.removeEventListener("mousedown",g,!0),n.removeEventListener("touchstart",g,!0),n.removeEventListener("click",y,!0),n.removeEventListener("keydown",b,!0),i=null,u}function m(e){var t=s[e],r=t;if(!t)return null;if("string"==typeof t&&!(r=n.querySelector(t)))throw new Error("`"+e+"` refers to no known node");if("function"==typeof t&&!(r=t()))throw new Error("`"+e+"` did not return a node");return r}function h(){var e;if(!(e=null!==m("initialFocus")?m("initialFocus"):l.contains(n.activeElement)?n.activeElement:c.firstTabbableNode||m("fallbackFocus")))throw new Error("You can't have a focus-trap without at least one focusable element");return e}function g(e){l.contains(e.target)||(s.clickOutsideDeactivates?p({returnFocus:!r.isFocusable(e.target)}):e.preventDefault())}function v(e){l.contains(e.target)||e.target instanceof Document||(e.stopImmediatePropagation(),O(c.mostRecentlyFocusedNode||h()))}function b(e){if(!1!==s.escapeDeactivates&&function(e){return"Escape"===e.key||"Esc"===e.key||27===e.keyCode}(e))return e.preventDefault(),void p();(function(e){return"Tab"===e.key||9===e.keyCode})(e)&&function(e){if(w(),e.shiftKey&&e.target===c.firstTabbableNode)return e.preventDefault(),void O(c.lastTabbableNode);if(!e.shiftKey&&e.target===c.lastTabbableNode)e.preventDefault(),O(c.firstTabbableNode)}(e)}function y(e){s.clickOutsideDeactivates||l.contains(e.target)||(e.preventDefault(),e.stopImmediatePropagation())}function w(){var e=r(l);c.firstTabbableNode=e[0]||h(),c.lastTabbableNode=e[e.length-1]||h()}function O(e){e!==n.activeElement&&(e&&e.focus?(e.focus(),c.mostRecentlyFocusedNode=e,function(e){return e.tagName&&"input"===e.tagName.toLowerCase()&&"function"==typeof e.select}(e)&&e.select()):O(h()))}}},7648:function(e){"use strict";var t=Array.prototype.slice,n=Object.prototype.toString;e.exports=function(e){var r=this;if("function"!=typeof r||"[object Function]"!==n.call(r))throw new TypeError("Function.prototype.bind called on incompatible "+r);for(var o,i=t.call(arguments,1),a=Math.max(0,r.length-i.length),l=[],s=0;s<a;s++)l.push("$"+s);if(o=Function("binder","return function ("+l.join(",")+"){ return binder.apply(this,arguments); }")((function(){if(this instanceof o){var n=r.apply(this,i.concat(t.call(arguments)));return Object(n)===n?n:this}return r.apply(e,i.concat(t.call(arguments)))})),r.prototype){var c=function(){};c.prototype=r.prototype,o.prototype=new c,c.prototype=null}return o}},8612:function(e,t,n){"use strict";var r=n(7648);e.exports=Function.prototype.bind||r},5972:function(e){"use strict";var t=function(){return"string"==typeof function(){}.name},n=Object.getOwnPropertyDescriptor;if(n)try{n([],"length")}catch(e){n=null}t.functionsHaveConfigurableNames=function(){if(!t()||!n)return!1;var e=n((function(){}),"name");return!!e&&!!e.configurable};var r=Function.prototype.bind;t.boundFunctionsHaveNames=function(){return t()&&"function"==typeof r&&""!==function(){}.bind().name},e.exports=t},210:function(e,t,n){"use strict";var r,o=SyntaxError,i=Function,a=TypeError,l=function(e){try{return i('"use strict"; return ('+e+").constructor;")()}catch(e){}},s=Object.getOwnPropertyDescriptor;if(s)try{s({},"")}catch(e){s=null}var c=function(){throw new a},u=s?function(){try{return c}catch(e){try{return s(arguments,"callee").get}catch(e){return c}}}():c,p=n(1405)(),d=n(8185)(),f=Object.getPrototypeOf||(d?function(e){return e.__proto__}:null),m={},h="undefined"!=typeof Uint8Array&&f?f(Uint8Array):r,g={"%AggregateError%":"undefined"==typeof AggregateError?r:AggregateError,"%Array%":Array,"%ArrayBuffer%":"undefined"==typeof ArrayBuffer?r:ArrayBuffer,"%ArrayIteratorPrototype%":p&&f?f([][Symbol.iterator]()):r,"%AsyncFromSyncIteratorPrototype%":r,"%AsyncFunction%":m,"%AsyncGenerator%":m,"%AsyncGeneratorFunction%":m,"%AsyncIteratorPrototype%":m,"%Atomics%":"undefined"==typeof Atomics?r:Atomics,"%BigInt%":"undefined"==typeof BigInt?r:BigInt,"%BigInt64Array%":"undefined"==typeof BigInt64Array?r:BigInt64Array,"%BigUint64Array%":"undefined"==typeof BigUint64Array?r:BigUint64Array,"%Boolean%":Boolean,"%DataView%":"undefined"==typeof DataView?r:DataView,"%Date%":Date,"%decodeURI%":decodeURI,"%decodeURIComponent%":decodeURIComponent,"%encodeURI%":encodeURI,"%encodeURIComponent%":encodeURIComponent,"%Error%":Error,"%eval%":eval,"%EvalError%":EvalError,"%Float32Array%":"undefined"==typeof Float32Array?r:Float32Array,"%Float64Array%":"undefined"==typeof Float64Array?r:Float64Array,"%FinalizationRegistry%":"undefined"==typeof FinalizationRegistry?r:FinalizationRegistry,"%Function%":i,"%GeneratorFunction%":m,"%Int8Array%":"undefined"==typeof Int8Array?r:Int8Array,"%Int16Array%":"undefined"==typeof Int16Array?r:Int16Array,"%Int32Array%":"undefined"==typeof Int32Array?r:Int32Array,"%isFinite%":isFinite,"%isNaN%":isNaN,"%IteratorPrototype%":p&&f?f(f([][Symbol.iterator]())):r,"%JSON%":"object"==typeof JSON?JSON:r,"%Map%":"undefined"==typeof Map?r:Map,"%MapIteratorPrototype%":"undefined"!=typeof Map&&p&&f?f((new Map)[Symbol.iterator]()):r,"%Math%":Math,"%Number%":Number,"%Object%":Object,"%parseFloat%":parseFloat,"%parseInt%":parseInt,"%Promise%":"undefined"==typeof Promise?r:Promise,"%Proxy%":"undefined"==typeof Proxy?r:Proxy,"%RangeError%":RangeError,"%ReferenceError%":ReferenceError,"%Reflect%":"undefined"==typeof Reflect?r:Reflect,"%RegExp%":RegExp,"%Set%":"undefined"==typeof Set?r:Set,"%SetIteratorPrototype%":"undefined"!=typeof Set&&p&&f?f((new Set)[Symbol.iterator]()):r,"%SharedArrayBuffer%":"undefined"==typeof SharedArrayBuffer?r:SharedArrayBuffer,"%String%":String,"%StringIteratorPrototype%":p&&f?f(""[Symbol.iterator]()):r,"%Symbol%":p?Symbol:r,"%SyntaxError%":o,"%ThrowTypeError%":u,"%TypedArray%":h,"%TypeError%":a,"%Uint8Array%":"undefined"==typeof Uint8Array?r:Uint8Array,"%Uint8ClampedArray%":"undefined"==typeof Uint8ClampedArray?r:Uint8ClampedArray,"%Uint16Array%":"undefined"==typeof Uint16Array?r:Uint16Array,"%Uint32Array%":"undefined"==typeof Uint32Array?r:Uint32Array,"%URIError%":URIError,"%WeakMap%":"undefined"==typeof WeakMap?r:WeakMap,"%WeakRef%":"undefined"==typeof WeakRef?r:WeakRef,"%WeakSet%":"undefined"==typeof WeakSet?r:WeakSet};if(f)try{null.error}catch(e){var v=f(f(e));g["%Error.prototype%"]=v}var b=function e(t){var n;if("%AsyncFunction%"===t)n=l("async function () {}");else if("%GeneratorFunction%"===t)n=l("function* () {}");else if("%AsyncGeneratorFunction%"===t)n=l("async function* () {}");else if("%AsyncGenerator%"===t){var r=e("%AsyncGeneratorFunction%");r&&(n=r.prototype)}else if("%AsyncIteratorPrototype%"===t){var o=e("%AsyncGenerator%");o&&f&&(n=f(o.prototype))}return g[t]=n,n},y={"%ArrayBufferPrototype%":["ArrayBuffer","prototype"],"%ArrayPrototype%":["Array","prototype"],"%ArrayProto_entries%":["Array","prototype","entries"],"%ArrayProto_forEach%":["Array","prototype","forEach"],"%ArrayProto_keys%":["Array","prototype","keys"],"%ArrayProto_values%":["Array","prototype","values"],"%AsyncFunctionPrototype%":["AsyncFunction","prototype"],"%AsyncGenerator%":["AsyncGeneratorFunction","prototype"],"%AsyncGeneratorPrototype%":["AsyncGeneratorFunction","prototype","prototype"],"%BooleanPrototype%":["Boolean","prototype"],"%DataViewPrototype%":["DataView","prototype"],"%DatePrototype%":["Date","prototype"],"%ErrorPrototype%":["Error","prototype"],"%EvalErrorPrototype%":["EvalError","prototype"],"%Float32ArrayPrototype%":["Float32Array","prototype"],"%Float64ArrayPrototype%":["Float64Array","prototype"],"%FunctionPrototype%":["Function","prototype"],"%Generator%":["GeneratorFunction","prototype"],"%GeneratorPrototype%":["GeneratorFunction","prototype","prototype"],"%Int8ArrayPrototype%":["Int8Array","prototype"],"%Int16ArrayPrototype%":["Int16Array","prototype"],"%Int32ArrayPrototype%":["Int32Array","prototype"],"%JSONParse%":["JSON","parse"],"%JSONStringify%":["JSON","stringify"],"%MapPrototype%":["Map","prototype"],"%NumberPrototype%":["Number","prototype"],"%ObjectPrototype%":["Object","prototype"],"%ObjProto_toString%":["Object","prototype","toString"],"%ObjProto_valueOf%":["Object","prototype","valueOf"],"%PromisePrototype%":["Promise","prototype"],"%PromiseProto_then%":["Promise","prototype","then"],"%Promise_all%":["Promise","all"],"%Promise_reject%":["Promise","reject"],"%Promise_resolve%":["Promise","resolve"],"%RangeErrorPrototype%":["RangeError","prototype"],"%ReferenceErrorPrototype%":["ReferenceError","prototype"],"%RegExpPrototype%":["RegExp","prototype"],"%SetPrototype%":["Set","prototype"],"%SharedArrayBufferPrototype%":["SharedArrayBuffer","prototype"],"%StringPrototype%":["String","prototype"],"%SymbolPrototype%":["Symbol","prototype"],"%SyntaxErrorPrototype%":["SyntaxError","prototype"],"%TypedArrayPrototype%":["TypedArray","prototype"],"%TypeErrorPrototype%":["TypeError","prototype"],"%Uint8ArrayPrototype%":["Uint8Array","prototype"],"%Uint8ClampedArrayPrototype%":["Uint8ClampedArray","prototype"],"%Uint16ArrayPrototype%":["Uint16Array","prototype"],"%Uint32ArrayPrototype%":["Uint32Array","prototype"],"%URIErrorPrototype%":["URIError","prototype"],"%WeakMapPrototype%":["WeakMap","prototype"],"%WeakSetPrototype%":["WeakSet","prototype"]},w=n(8612),O=n(7642),_=w.call(Function.call,Array.prototype.concat),E=w.call(Function.apply,Array.prototype.splice),P=w.call(Function.call,String.prototype.replace),S=w.call(Function.call,String.prototype.slice),j=w.call(Function.call,RegExp.prototype.exec),C=/[^%.[\]]+|\[(?:(-?\d+(?:\.\d+)?)|(["'])((?:(?!\2)[^\\]|\\.)*?)\2)\]|(?=(?:\.|\[\])(?:\.|\[\]|%$))/g,x=/\\(\\)?/g,k=function(e,t){var n,r=e;if(O(y,r)&&(r="%"+(n=y[r])[0]+"%"),O(g,r)){var i=g[r];if(i===m&&(i=b(r)),void 0===i&&!t)throw new a("intrinsic "+e+" exists, but is not available. Please file an issue!");return{alias:n,name:r,value:i}}throw new o("intrinsic "+e+" does not exist!")};e.exports=function(e,t){if("string"!=typeof e||0===e.length)throw new a("intrinsic name must be a non-empty string");if(arguments.length>1&&"boolean"!=typeof t)throw new a('"allowMissing" argument must be a boolean');if(null===j(/^%?[^%]*%?$/,e))throw new o("`%` may not be present anywhere but at the beginning and end of the intrinsic name");var n=function(e){var t=S(e,0,1),n=S(e,-1);if("%"===t&&"%"!==n)throw new o("invalid intrinsic syntax, expected closing `%`");if("%"===n&&"%"!==t)throw new o("invalid intrinsic syntax, expected opening `%`");var r=[];return P(e,C,(function(e,t,n,o){r[r.length]=n?P(o,x,"$1"):t||e})),r}(e),r=n.length>0?n[0]:"",i=k("%"+r+"%",t),l=i.name,c=i.value,u=!1,p=i.alias;p&&(r=p[0],E(n,_([0,1],p)));for(var d=1,f=!0;d<n.length;d+=1){var m=n[d],h=S(m,0,1),v=S(m,-1);if(('"'===h||"'"===h||"`"===h||'"'===v||"'"===v||"`"===v)&&h!==v)throw new o("property names with quotes must have matching quotes");if("constructor"!==m&&f||(u=!0),O(g,l="%"+(r+="."+m)+"%"))c=g[l];else if(null!=c){if(!(m in c)){if(!t)throw new a("base intrinsic for "+e+" exists, but the property is not available.");return}if(s&&d+1>=n.length){var b=s(c,m);c=(f=!!b)&&"get"in b&&!("originalValue"in b.get)?b.get:c[m]}else f=O(c,m),c=c[m];f&&!u&&(g[l]=c)}}return c}},1044:function(e,t,n){"use strict";var r=n(210)("%Object.defineProperty%",!0),o=function(){if(r)try{return r({},"a",{value:1}),!0}catch(e){return!1}return!1};o.hasArrayLengthDefineBug=function(){if(!o())return null;try{return 1!==r([],"length",{value:1}).length}catch(e){return!0}},e.exports=o},8185:function(e){"use strict";var t={foo:{}},n=Object;e.exports=function(){return{__proto__:t}.foo===t.foo&&!({__proto__:null}instanceof n)}},1405:function(e,t,n){"use strict";var r="undefined"!=typeof Symbol&&Symbol,o=n(5419);e.exports=function(){return"function"==typeof r&&("function"==typeof Symbol&&("symbol"==typeof r("foo")&&("symbol"==typeof Symbol("bar")&&o())))}},5419:function(e){"use strict";e.exports=function(){if("function"!=typeof Symbol||"function"!=typeof Object.getOwnPropertySymbols)return!1;if("symbol"==typeof Symbol.iterator)return!0;var e={},t=Symbol("test"),n=Object(t);if("string"==typeof t)return!1;if("[object Symbol]"!==Object.prototype.toString.call(t))return!1;if("[object Symbol]"!==Object.prototype.toString.call(n))return!1;for(t in e[t]=42,e)return!1;if("function"==typeof Object.keys&&0!==Object.keys(e).length)return!1;if("function"==typeof Object.getOwnPropertyNames&&0!==Object.getOwnPropertyNames(e).length)return!1;var r=Object.getOwnPropertySymbols(e);if(1!==r.length||r[0]!==t)return!1;if(!Object.prototype.propertyIsEnumerable.call(e,t))return!1;if("function"==typeof Object.getOwnPropertyDescriptor){var o=Object.getOwnPropertyDescriptor(e,t);if(42!==o.value||!0!==o.enumerable)return!1}return!0}},6410:function(e,t,n){"use strict";var r=n(5419);e.exports=function(){return r()&&!!Symbol.toStringTag}},7642:function(e,t,n){"use strict";var r=n(8612);e.exports=r.call(Function.call,Object.prototype.hasOwnProperty)},8679:function(e,t,n){"use strict";var r=n(9864),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},l={};function s(e){return r.isMemo(e)?a:l[e.$$typeof]||o}l[r.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},l[r.Memo]=a;var c=Object.defineProperty,u=Object.getOwnPropertyNames,p=Object.getOwnPropertySymbols,d=Object.getOwnPropertyDescriptor,f=Object.getPrototypeOf,m=Object.prototype;e.exports=function e(t,n,r){if("string"!=typeof n){if(m){var o=f(n);o&&o!==m&&e(t,o,r)}var a=u(n);p&&(a=a.concat(p(n)));for(var l=s(t),h=s(n),g=0;g<a.length;++g){var v=a[g];if(!(i[v]||r&&r[v]||h&&h[v]||l&&l[v])){var b=d(n,v);try{c(t,v,b)}catch(e){}}}}return t}},1143:function(e){"use strict";e.exports=function(e,t,n,r,o,i,a,l){if(!e){var s;if(void 0===t)s=new Error("Minified exception occurred; use the non-minified dev environment for the full error message and additional helpful warnings.");else{var c=[n,r,o,i,a,l],u=0;(s=new Error(t.replace(/%s/g,(function(){return c[u++]})))).name="Invariant Violation"}throw s.framesToPop=1,s}}},2584:function(e,t,n){"use strict";var r=n(6410)(),o=n(1924)("Object.prototype.toString"),i=function(e){return!(r&&e&&"object"==typeof e&&Symbol.toStringTag in e)&&"[object Arguments]"===o(e)},a=function(e){return!!i(e)||null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Array]"!==o(e)&&"[object Function]"===o(e.callee)},l=function(){return i(arguments)}();i.isLegacyArguments=a,e.exports=l?i:a},8738:function(e){function t(e){return!!e.constructor&&"function"==typeof e.constructor.isBuffer&&e.constructor.isBuffer(e)}
/*!
 * Determine if an object is a Buffer
 *
 * @author   Feross Aboukhadijeh <https://feross.org>
 * @license  MIT
 */
e.exports=function(e){return null!=e&&(t(e)||function(e){return"function"==typeof e.readFloatLE&&"function"==typeof e.slice&&t(e.slice(0,0))}(e)||!!e._isBuffer)}},8923:function(e,t,n){"use strict";var r=Date.prototype.getDay,o=Object.prototype.toString,i=n(6410)();e.exports=function(e){return"object"==typeof e&&null!==e&&(i?function(e){try{return r.call(e),!0}catch(e){return!1}}(e):"[object Date]"===o.call(e))}},8420:function(e,t,n){"use strict";var r,o,i,a,l=n(1924),s=n(6410)();if(s){r=l("Object.prototype.hasOwnProperty"),o=l("RegExp.prototype.exec"),i={};var c=function(){throw i};a={toString:c,valueOf:c},"symbol"==typeof Symbol.toPrimitive&&(a[Symbol.toPrimitive]=c)}var u=l("Object.prototype.toString"),p=Object.getOwnPropertyDescriptor;e.exports=s?function(e){if(!e||"object"!=typeof e)return!1;var t=p(e,"lastIndex");if(!(t&&r(t,"value")))return!1;try{o(e,a)}catch(e){return e===i}}:function(e){return!(!e||"object"!=typeof e&&"function"!=typeof e)&&"[object RegExp]"===u(e)}},2568:function(e,t,n){var r,o,i,a,l;r=n(1012),o=n(487).utf8,i=n(8738),a=n(487).bin,(l=function(e,t){e.constructor==String?e=t&&"binary"===t.encoding?a.stringToBytes(e):o.stringToBytes(e):i(e)?e=Array.prototype.slice.call(e,0):Array.isArray(e)||e.constructor===Uint8Array||(e=e.toString());for(var n=r.bytesToWords(e),s=8*e.length,c=1732584193,u=-271733879,p=-1732584194,d=271733878,f=0;f<n.length;f++)n[f]=16711935&(n[f]<<8|n[f]>>>24)|4278255360&(n[f]<<24|n[f]>>>8);n[s>>>5]|=128<<s%32,n[14+(s+64>>>9<<4)]=s;var m=l._ff,h=l._gg,g=l._hh,v=l._ii;for(f=0;f<n.length;f+=16){var b=c,y=u,w=p,O=d;c=m(c,u,p,d,n[f+0],7,-680876936),d=m(d,c,u,p,n[f+1],12,-389564586),p=m(p,d,c,u,n[f+2],17,606105819),u=m(u,p,d,c,n[f+3],22,-1044525330),c=m(c,u,p,d,n[f+4],7,-176418897),d=m(d,c,u,p,n[f+5],12,1200080426),p=m(p,d,c,u,n[f+6],17,-1473231341),u=m(u,p,d,c,n[f+7],22,-45705983),c=m(c,u,p,d,n[f+8],7,1770035416),d=m(d,c,u,p,n[f+9],12,-1958414417),p=m(p,d,c,u,n[f+10],17,-42063),u=m(u,p,d,c,n[f+11],22,-1990404162),c=m(c,u,p,d,n[f+12],7,1804603682),d=m(d,c,u,p,n[f+13],12,-40341101),p=m(p,d,c,u,n[f+14],17,-1502002290),c=h(c,u=m(u,p,d,c,n[f+15],22,1236535329),p,d,n[f+1],5,-165796510),d=h(d,c,u,p,n[f+6],9,-1069501632),p=h(p,d,c,u,n[f+11],14,643717713),u=h(u,p,d,c,n[f+0],20,-373897302),c=h(c,u,p,d,n[f+5],5,-701558691),d=h(d,c,u,p,n[f+10],9,38016083),p=h(p,d,c,u,n[f+15],14,-660478335),u=h(u,p,d,c,n[f+4],20,-405537848),c=h(c,u,p,d,n[f+9],5,568446438),d=h(d,c,u,p,n[f+14],9,-1019803690),p=h(p,d,c,u,n[f+3],14,-187363961),u=h(u,p,d,c,n[f+8],20,1163531501),c=h(c,u,p,d,n[f+13],5,-1444681467),d=h(d,c,u,p,n[f+2],9,-51403784),p=h(p,d,c,u,n[f+7],14,1735328473),c=g(c,u=h(u,p,d,c,n[f+12],20,-1926607734),p,d,n[f+5],4,-378558),d=g(d,c,u,p,n[f+8],11,-2022574463),p=g(p,d,c,u,n[f+11],16,1839030562),u=g(u,p,d,c,n[f+14],23,-35309556),c=g(c,u,p,d,n[f+1],4,-1530992060),d=g(d,c,u,p,n[f+4],11,1272893353),p=g(p,d,c,u,n[f+7],16,-155497632),u=g(u,p,d,c,n[f+10],23,-1094730640),c=g(c,u,p,d,n[f+13],4,681279174),d=g(d,c,u,p,n[f+0],11,-358537222),p=g(p,d,c,u,n[f+3],16,-722521979),u=g(u,p,d,c,n[f+6],23,76029189),c=g(c,u,p,d,n[f+9],4,-640364487),d=g(d,c,u,p,n[f+12],11,-421815835),p=g(p,d,c,u,n[f+15],16,530742520),c=v(c,u=g(u,p,d,c,n[f+2],23,-995338651),p,d,n[f+0],6,-198630844),d=v(d,c,u,p,n[f+7],10,1126891415),p=v(p,d,c,u,n[f+14],15,-1416354905),u=v(u,p,d,c,n[f+5],21,-57434055),c=v(c,u,p,d,n[f+12],6,1700485571),d=v(d,c,u,p,n[f+3],10,-1894986606),p=v(p,d,c,u,n[f+10],15,-1051523),u=v(u,p,d,c,n[f+1],21,-2054922799),c=v(c,u,p,d,n[f+8],6,1873313359),d=v(d,c,u,p,n[f+15],10,-30611744),p=v(p,d,c,u,n[f+6],15,-1560198380),u=v(u,p,d,c,n[f+13],21,1309151649),c=v(c,u,p,d,n[f+4],6,-145523070),d=v(d,c,u,p,n[f+11],10,-1120210379),p=v(p,d,c,u,n[f+2],15,718787259),u=v(u,p,d,c,n[f+9],21,-343485551),c=c+b>>>0,u=u+y>>>0,p=p+w>>>0,d=d+O>>>0}return r.endian([c,u,p,d])})._ff=function(e,t,n,r,o,i,a){var l=e+(t&n|~t&r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._gg=function(e,t,n,r,o,i,a){var l=e+(t&r|n&~r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._hh=function(e,t,n,r,o,i,a){var l=e+(t^n^r)+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._ii=function(e,t,n,r,o,i,a){var l=e+(n^(t|~r))+(o>>>0)+a;return(l<<i|l>>>32-i)+t},l._blocksize=16,l._digestsize=16,e.exports=function(e,t){if(null==e)throw new Error("Illegal argument "+e);var n=r.wordsToBytes(l(e,t));return t&&t.asBytes?n:t&&t.asString?a.bytesToString(n):r.bytesToHex(n)}},845:function(e,t){"use strict";var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function r(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(o=e[r],i=t[r],!(o===i||n(o)&&n(i)))return!1;var o,i;return!0}t.Z=function(e,t){var n;void 0===t&&(t=r);var o,i=[],a=!1;return function(){for(var r=[],l=0;l<arguments.length;l++)r[l]=arguments[l];return a&&n===this&&t(r,i)||(o=e.apply(this,r),a=!0,n=this,i=r),o}}},1496:function(e){for(var t=self.crypto||self.msCrypto,n="-_",r=36;r--;)n+=r.toString(36);for(r=36;r---10;)n+=r.toString(36).toUpperCase();e.exports=function(e){var o="",i=t.getRandomValues(new Uint8Array(e||21));for(r=e||21;r--;)o+=n[63&i[r]];return o}},4244:function(e){"use strict";var t=function(e){return e!=e};e.exports=function(e,n){return 0===e&&0===n?1/e==1/n:e===n||!(!t(e)||!t(n))}},609:function(e,t,n){"use strict";var r=n(7446),o=n(5559),i=n(4244),a=n(5624),l=n(2281),s=o(a(),Object);r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},7446:function(e,t,n){"use strict";var r=n(2215),o="function"==typeof Symbol&&"symbol"==typeof Symbol("foo"),i=Object.prototype.toString,a=Array.prototype.concat,l=Object.defineProperty,s=n(1044)(),c=l&&s,u=function(e,t,n,r){var o;(!(t in e)||"function"==typeof(o=r)&&"[object Function]"===i.call(o)&&r())&&(c?l(e,t,{configurable:!0,enumerable:!1,value:n,writable:!0}):e[t]=n)},p=function(e,t){var n=arguments.length>2?arguments[2]:{},i=r(t);o&&(i=a.call(i,Object.getOwnPropertySymbols(t)));for(var l=0;l<i.length;l+=1)u(e,i[l],t[i[l]],n[i[l]])};p.supportsDescriptors=!!c,e.exports=p},5624:function(e,t,n){"use strict";var r=n(4244);e.exports=function(){return"function"==typeof Object.is?Object.is:r}},2281:function(e,t,n){"use strict";var r=n(5624),o=n(7446);e.exports=function(){var e=r();return o(Object,{is:e},{is:function(){return Object.is!==e}}),e}},8987:function(e,t,n){"use strict";var r;if(!Object.keys){var o=Object.prototype.hasOwnProperty,i=Object.prototype.toString,a=n(1414),l=Object.prototype.propertyIsEnumerable,s=!l.call({toString:null},"toString"),c=l.call((function(){}),"prototype"),u=["toString","toLocaleString","valueOf","hasOwnProperty","isPrototypeOf","propertyIsEnumerable","constructor"],p=function(e){var t=e.constructor;return t&&t.prototype===e},d={$applicationCache:!0,$console:!0,$external:!0,$frame:!0,$frameElement:!0,$frames:!0,$innerHeight:!0,$innerWidth:!0,$onmozfullscreenchange:!0,$onmozfullscreenerror:!0,$outerHeight:!0,$outerWidth:!0,$pageXOffset:!0,$pageYOffset:!0,$parent:!0,$scrollLeft:!0,$scrollTop:!0,$scrollX:!0,$scrollY:!0,$self:!0,$webkitIndexedDB:!0,$webkitStorageInfo:!0,$window:!0},f=function(){if("undefined"==typeof window)return!1;for(var e in window)try{if(!d["$"+e]&&o.call(window,e)&&null!==window[e]&&"object"==typeof window[e])try{p(window[e])}catch(e){return!0}}catch(e){return!0}return!1}();r=function(e){var t=null!==e&&"object"==typeof e,n="[object Function]"===i.call(e),r=a(e),l=t&&"[object String]"===i.call(e),d=[];if(!t&&!n&&!r)throw new TypeError("Object.keys called on a non-object");var m=c&&n;if(l&&e.length>0&&!o.call(e,0))for(var h=0;h<e.length;++h)d.push(String(h));if(r&&e.length>0)for(var g=0;g<e.length;++g)d.push(String(g));else for(var v in e)m&&"prototype"===v||!o.call(e,v)||d.push(String(v));if(s)for(var b=function(e){if("undefined"==typeof window||!f)return p(e);try{return p(e)}catch(e){return!1}}(e),y=0;y<u.length;++y)b&&"constructor"===u[y]||!o.call(e,u[y])||d.push(u[y]);return d}}e.exports=r},2215:function(e,t,n){"use strict";var r=Array.prototype.slice,o=n(1414),i=Object.keys,a=i?function(e){return i(e)}:n(8987),l=Object.keys;a.shim=function(){if(Object.keys){var e=function(){var e=Object.keys(arguments);return e&&e.length===arguments.length}(1,2);e||(Object.keys=function(e){return o(e)?l(r.call(e)):l(e)})}else Object.keys=a;return Object.keys||a},e.exports=a},1414:function(e){"use strict";var t=Object.prototype.toString;e.exports=function(e){var n=t.call(e),r="[object Arguments]"===n;return r||(r="[object Array]"!==n&&null!==e&&"object"==typeof e&&"number"==typeof e.length&&e.length>=0&&"[object Function]"===t.call(e.callee)),r}},2703:function(e,t,n){"use strict";var r=n(414);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,n,o,i,a){if(a!==r){var l=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw l.name="Invariant Violation",l}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return n.PropTypes=n,n}},1581:function(e,t,n){e.exports=n(2703)()},414:function(e){"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},9984:function(e,t,n){"use strict";n.d(t,{Z5:function(){return Ho},_l:function(){return Si},bK:function(){return ki}});var r=n(7363),o=n.n(r),i=n(4578),a=n(7462),l=n(4942);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){(0,l.Z)(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var p="function"==typeof Symbol&&Symbol.observable||"@@observable",d=function(){return Math.random().toString(36).substring(7).split("").join(".")},f={INIT:"@@redux/INIT"+d(),REPLACE:"@@redux/REPLACE"+d(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+d()}};function m(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}function h(e,t,n){var r;if("function"==typeof t&&"function"==typeof n||"function"==typeof n&&"function"==typeof arguments[3])throw new Error(u(0));if("function"==typeof t&&void 0===n&&(n=t,t=void 0),void 0!==n){if("function"!=typeof n)throw new Error(u(1));return n(h)(e,t)}if("function"!=typeof e)throw new Error(u(2));var o=e,i=t,a=[],l=a,s=!1;function c(){l===a&&(l=a.slice())}function d(){if(s)throw new Error(u(3));return i}function g(e){if("function"!=typeof e)throw new Error(u(4));if(s)throw new Error(u(5));var t=!0;return c(),l.push(e),function(){if(t){if(s)throw new Error(u(6));t=!1,c();var n=l.indexOf(e);l.splice(n,1),a=null}}}function v(e){if(!m(e))throw new Error(u(7));if(void 0===e.type)throw new Error(u(8));if(s)throw new Error(u(9));try{s=!0,i=o(i,e)}finally{s=!1}for(var t=a=l,n=0;n<t.length;n++){(0,t[n])()}return e}return v({type:f.INIT}),(r={dispatch:v,subscribe:g,getState:d,replaceReducer:function(e){if("function"!=typeof e)throw new Error(u(10));o=e,v({type:f.REPLACE})}})[p]=function(){var e,t=g;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(u(11));function n(){e.next&&e.next(d())}return n(),{unsubscribe:t(n)}}})[p]=function(){return this},e},r}function g(e,t){return function(){return t(e.apply(this,arguments))}}function v(e,t){if("function"==typeof e)return g(e,t);if("object"!=typeof e||null===e)throw new Error(u(16));var n={};for(var r in e){var o=e[r];"function"==typeof o&&(n[r]=g(o,t))}return n}function b(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}var y=o().createContext(null);var w=function(e){e()},O=function(){return w};var _={notify:function(){},get:function(){return[]}};function E(e,t){var n,r=_;function o(){a.onStateChange&&a.onStateChange()}function i(){n||(n=t?t.addNestedSub(o):e.subscribe(o),r=function(){var e=O(),t=null,n=null;return{clear:function(){t=null,n=null},notify:function(){e((function(){for(var e=t;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],n=t;n;)e.push(n),n=n.next;return e},subscribe:function(e){var r=!0,o=n={callback:e,next:null,prev:n};return o.prev?o.prev.next=o:t=o,function(){r&&null!==t&&(r=!1,o.next?o.next.prev=o.prev:n=o.prev,o.prev?o.prev.next=o.next:t=o.next)}}}}())}var a={addNestedSub:function(e){return i(),r.subscribe(e)},notifyNestedSubs:function(){r.notify()},handleChangeWrapper:o,isSubscribed:function(){return Boolean(n)},trySubscribe:i,tryUnsubscribe:function(){n&&(n(),n=void 0,r.clear(),r=_)},getListeners:function(){return r}};return a}var P="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect;var S=function(e){var t=e.store,n=e.context,i=e.children,a=(0,r.useMemo)((function(){var e=E(t);return{store:t,subscription:e}}),[t]),l=(0,r.useMemo)((function(){return t.getState()}),[t]);P((function(){var e=a.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),l!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[a,l]);var s=n||y;return o().createElement(s.Provider,{value:a},i)},j=n(3366),C=n(8679),x=n.n(C),k=n(2973),I=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],D=["reactReduxForwardedRef"],N=[],T=[null,null];function A(e,t){var n=e[1];return[t.payload,n+1]}function R(e,t,n){P((function(){return e.apply(void 0,t)}),n)}function M(e,t,n,r,o,i,a){e.current=r,t.current=o,n.current=!1,i.current&&(i.current=null,a())}function L(e,t,n,r,o,i,a,l,s,c){if(e){var u=!1,p=null,d=function(){if(!u){var e,n,d=t.getState();try{e=r(d,o.current)}catch(e){n=e,p=e}n||(p=null),e===i.current?a.current||s():(i.current=e,l.current=e,a.current=!0,c({type:"STORE_UPDATED",payload:{error:n}}))}};n.onStateChange=d,n.trySubscribe(),d();return function(){if(u=!0,n.tryUnsubscribe(),n.onStateChange=null,p)throw p}}}var B=function(){return[null,0]};function F(e,t){void 0===t&&(t={});var n=t,i=n.getDisplayName,l=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,s=n.methodName,c=void 0===s?"connectAdvanced":s,u=n.renderCountProp,p=void 0===u?void 0:u,d=n.shouldHandleStateChanges,f=void 0===d||d,m=n.storeKey,h=void 0===m?"store":m,g=(n.withRef,n.forwardRef),v=void 0!==g&&g,b=n.context,w=void 0===b?y:b,O=(0,j.default)(n,I),_=w;return function(t){var n=t.displayName||t.name||"Component",i=l(n),s=(0,a.default)({},O,{getDisplayName:l,methodName:c,renderCountProp:p,shouldHandleStateChanges:f,storeKey:h,displayName:i,wrappedComponentName:n,WrappedComponent:t}),u=O.pure;var d=u?r.useMemo:function(e){return e()};function m(n){var i=(0,r.useMemo)((function(){var e=n.reactReduxForwardedRef,t=(0,j.default)(n,D);return[n.context,e,t]}),[n]),l=i[0],c=i[1],u=i[2],p=(0,r.useMemo)((function(){return l&&l.Consumer&&(0,k.isContextConsumer)(o().createElement(l.Consumer,null))?l:_}),[l,_]),m=(0,r.useContext)(p),h=Boolean(n.store)&&Boolean(n.store.getState)&&Boolean(n.store.dispatch);Boolean(m)&&Boolean(m.store);var g=h?n.store:m.store,v=(0,r.useMemo)((function(){return function(t){return e(t.dispatch,s)}(g)}),[g]),b=(0,r.useMemo)((function(){if(!f)return T;var e=E(g,h?null:m.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[g,h,m]),y=b[0],w=b[1],O=(0,r.useMemo)((function(){return h?m:(0,a.default)({},m,{subscription:y})}),[h,m,y]),P=(0,r.useReducer)(A,N,B),S=P[0][0],C=P[1];if(S&&S.error)throw S.error;var x=(0,r.useRef)(),I=(0,r.useRef)(u),F=(0,r.useRef)(),z=(0,r.useRef)(!1),V=d((function(){return F.current&&u===I.current?F.current:v(g.getState(),u)}),[g,S,u]);R(M,[I,x,z,u,V,F,w]),R(L,[f,g,y,v,I,x,z,F,w,C],[g,y,v]);var U=(0,r.useMemo)((function(){return o().createElement(t,(0,a.default)({},V,{ref:c}))}),[c,t,V]);return(0,r.useMemo)((function(){return f?o().createElement(p.Provider,{value:O},U):U}),[p,U,O])}var g=u?o().memo(m):m;if(g.WrappedComponent=t,g.displayName=m.displayName=i,v){var b=o().forwardRef((function(e,t){return o().createElement(g,(0,a.default)({},e,{reactReduxForwardedRef:t}))}));return b.displayName=i,b.WrappedComponent=t,x()(b,t)}return x()(g,t)}}function z(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function V(e,t){if(z(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var n=Object.keys(e),r=Object.keys(t);if(n.length!==r.length)return!1;for(var o=0;o<n.length;o++)if(!Object.prototype.hasOwnProperty.call(t,n[o])||!z(e[n[o]],t[n[o]]))return!1;return!0}function U(e){return function(t,n){var r=e(t,n);function o(){return r}return o.dependsOnOwnProps=!1,o}}function H(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function W(e,t){return function(t,n){n.displayName;var r=function(e,t){return r.dependsOnOwnProps?r.mapToProps(e,t):r.mapToProps(e)};return r.dependsOnOwnProps=!0,r.mapToProps=function(t,n){r.mapToProps=e,r.dependsOnOwnProps=H(e);var o=r(t,n);return"function"==typeof o&&(r.mapToProps=o,r.dependsOnOwnProps=H(o),o=r(t,n)),o},r}}var G=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:U((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?U((function(t){return function(e,t){var n={},r=function(r){var o=e[r];"function"==typeof o&&(n[r]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)r(o);return n}(e,t)})):void 0}];var $=[function(e){return"function"==typeof e?W(e):void 0},function(e){return e?void 0:U((function(){return{}}))}];function q(e,t,n){return(0,a.default)({},n,e,t)}var Z=[function(e){return"function"==typeof e?function(e){return function(t,n){n.displayName;var r,o=n.pure,i=n.areMergedPropsEqual,a=!1;return function(t,n,l){var s=e(t,n,l);return a?o&&i(s,r)||(r=s):(a=!0,r=s),r}}}(e):void 0},function(e){return e?void 0:function(){return q}}],K=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function Y(e,t,n,r){return function(o,i){return n(e(o,i),t(r,i),i)}}function X(e,t,n,r,o){var i,a,l,s,c,u=o.areStatesEqual,p=o.areOwnPropsEqual,d=o.areStatePropsEqual,f=!1;function m(o,f){var m,h,g=!p(f,a),v=!u(o,i,f,a);return i=o,a=f,g&&v?(l=e(i,a),t.dependsOnOwnProps&&(s=t(r,a)),c=n(l,s,a)):g?(e.dependsOnOwnProps&&(l=e(i,a)),t.dependsOnOwnProps&&(s=t(r,a)),c=n(l,s,a)):v?(m=e(i,a),h=!d(m,l),l=m,h&&(c=n(l,s,a)),c):c}return function(o,u){return f?m(o,u):(l=e(i=o,a=u),s=t(r,a),c=n(l,s,a),f=!0,c)}}function J(e,t){var n=t.initMapStateToProps,r=t.initMapDispatchToProps,o=t.initMergeProps,i=(0,j.default)(t,K),a=n(e,i),l=r(e,i),s=o(e,i);return(i.pure?X:Y)(a,l,s,e,i)}var Q=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function ee(e,t,n){for(var r=t.length-1;r>=0;r--){var o=t[r](e);if(o)return o}return function(t,r){throw new Error("Invalid value of type "+typeof e+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function te(e,t){return e===t}function ne(e){var t=void 0===e?{}:e,n=t.connectHOC,r=void 0===n?F:n,o=t.mapStateToPropsFactories,i=void 0===o?$:o,l=t.mapDispatchToPropsFactories,s=void 0===l?G:l,c=t.mergePropsFactories,u=void 0===c?Z:c,p=t.selectorFactory,d=void 0===p?J:p;return function(e,t,n,o){void 0===o&&(o={});var l=o,c=l.pure,p=void 0===c||c,f=l.areStatesEqual,m=void 0===f?te:f,h=l.areOwnPropsEqual,g=void 0===h?V:h,v=l.areStatePropsEqual,b=void 0===v?V:v,y=l.areMergedPropsEqual,w=void 0===y?V:y,O=(0,j.default)(l,Q),_=ee(e,i,"mapStateToProps"),E=ee(t,s,"mapDispatchToProps"),P=ee(n,u,"mergeProps");return r(d,(0,a.default)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:_,initMapDispatchToProps:E,initMergeProps:P,pure:p,areStatesEqual:m,areOwnPropsEqual:g,areStatePropsEqual:b,areMergedPropsEqual:w},O))}}var re=ne();var oe,ie=n(1533),ae=n.n(ie);function le(e,t){var n=(0,r.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,r.useRef)(!0),i=(0,r.useRef)(n),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,r.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}oe=ie.unstable_batchedUpdates,w=oe;var se=le,ce=function(e,t){return le((function(){return e}),t)},ue="Invariant failed";var pe=function(e){var t=e.top,n=e.right,r=e.bottom,o=e.left;return{top:t,right:n,bottom:r,left:o,width:n-o,height:r-t,x:o,y:t,center:{x:(n+o)/2,y:(r+t)/2}}},de=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},fe=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},me={top:0,right:0,bottom:0,left:0},he=function(e){var t=e.borderBox,n=e.margin,r=void 0===n?me:n,o=e.border,i=void 0===o?me:o,a=e.padding,l=void 0===a?me:a,s=pe(de(t,r)),c=pe(fe(t,i)),u=pe(fe(c,l));return{marginBox:s,borderBox:pe(t),paddingBox:c,contentBox:u,margin:r,border:i,padding:l}},ge=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var n=Number(t);return isNaN(n)&&function(e,t){if(!e)throw new Error(ue)}(!1),n},ve=function(e,t){var n,r,o=e.borderBox,i=e.border,a=e.margin,l=e.padding,s=(r=t,{top:(n=o).top+r.y,left:n.left+r.x,bottom:n.bottom+r.y,right:n.right+r.x});return he({borderBox:s,border:i,margin:a,padding:l})},be=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),ve(e,t)},ye=function(e,t){var n={top:ge(t.marginTop),right:ge(t.marginRight),bottom:ge(t.marginBottom),left:ge(t.marginLeft)},r={top:ge(t.paddingTop),right:ge(t.paddingRight),bottom:ge(t.paddingBottom),left:ge(t.paddingLeft)},o={top:ge(t.borderTopWidth),right:ge(t.borderRightWidth),bottom:ge(t.borderBottomWidth),left:ge(t.borderLeftWidth)};return he({borderBox:e,margin:n,padding:r,border:o})},we=function(e){var t=e.getBoundingClientRect(),n=window.getComputedStyle(e);return ye(t,n)},Oe=n(845),_e=function(e){var t=[],n=null,r=function(){for(var r=arguments.length,o=new Array(r),i=0;i<r;i++)o[i]=arguments[i];t=o,n||(n=requestAnimationFrame((function(){n=null,e.apply(void 0,t)})))};return r.cancel=function(){n&&(cancelAnimationFrame(n),n=null)},r};function Ee(e,t){}Ee.bind(null,"warn"),Ee.bind(null,"error");function Pe(){}function Se(e,t,n){var r=t.map((function(t){var r=function(e,t){return(0,a.default)({},e,{},t)}(n,t.options);return e.addEventListener(t.eventName,t.fn,r),function(){e.removeEventListener(t.eventName,t.fn,r)}}));return function(){r.forEach((function(e){e()}))}}var je=!0,Ce="Invariant failed";function xe(e){this.message=e}function ke(e,t){if(!e)throw new xe(je?Ce:Ce+": "+(t||""))}xe.prototype.toString=function(){return this.message};var Ie=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).callbacks=null,t.unbind=Pe,t.onWindowError=function(e){var n=t.getCallbacks();n.isDragging()&&n.tryAbort(),e.error instanceof xe&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.Z)(t,e);var n=t.prototype;return n.componentDidMount=function(){this.unbind=Se(window,[{eventName:"error",fn:this.onWindowError}])},n.componentDidCatch=function(e){if(!(e instanceof xe))throw e;this.setState({})},n.componentWillUnmount=function(){this.unbind()},n.render=function(){return this.props.children(this.setCallbacks)},t}(o().Component),De=function(e){return e+1},Ne=function(e,t){var n=e.droppableId===t.droppableId,r=De(e.index),o=De(t.index);return n?"\n      You have moved the item from position "+r+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+r+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},Te=function(e,t,n){return t.droppableId===n.droppableId?"\n      The item "+e+"\n      has been combined with "+n.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+n.draggableId+"\n      in list "+n.droppableId+"\n    "},Ae=function(e){return"\n  The item has returned to its starting position\n  of "+De(e.index)+"\n"},Re={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+De(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return Ne(e.source,t);var n=e.combine;return n?Te(e.draggableId,e.source,n):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+Ae(e.source)+"\n    ";var t=e.destination,n=e.combine;return t?"\n      You have dropped the item.\n      "+Ne(e.source,t)+"\n    ":n?"\n      You have dropped the item.\n      "+Te(e.draggableId,e.source,n)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+Ae(e.source)+"\n  "}},Me={x:0,y:0},Le=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},Be=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},Fe=function(e,t){return e.x===t.x&&e.y===t.y},ze=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},Ve=function(e,t,n){var r;return void 0===n&&(n=0),(r={})[e]=t,r["x"===e?"y":"x"]=n,r},Ue=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},He=function(e,t){return Math.min.apply(Math,t.map((function(t){return Ue(e,t)})))},We=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},Ge=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},$e=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},qe=function(e,t){return t&&t.shouldClipSubject?function(e,t){var n=pe({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return n.width<=0||n.height<=0?null:n}(t.pageMarginBox,e):pe(e)},Ze=function(e){var t=e.page,n=e.withPlaceholder,r=e.axis,o=e.frame,i=function(e,t){return t?Ge(e,t.scroll.diff.displacement):e}(t.marginBox,o),l=function(e,t,n){var r;return n&&n.increasedBy?(0,a.default)({},e,((r={})[t.end]=e[t.end]+n.increasedBy[t.line],r)):e}(i,r,n);return{page:t,withPlaceholder:n,active:qe(l,o)}},Ke=function(e,t){e.frame||ke(!1);var n=e.frame,r=Be(t,n.scroll.initial),o=ze(r),i=(0,a.default)({},n,{scroll:{initial:n.scroll.initial,current:t,diff:{value:r,displacement:o},max:n.scroll.max}}),l=Ze({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,a.default)({},e,{frame:i,subject:l})};function Ye(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function Xe(e,t){if(e.findIndex)return e.findIndex(t);for(var n=0;n<e.length;n++)if(t(e[n]))return n;return-1}function Je(e,t){if(e.find)return e.find(t);var n=Xe(e,t);return-1!==n?e[n]:void 0}function Qe(e){return Array.prototype.slice.call(e)}var et=(0,Oe.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),tt=(0,Oe.Z)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),nt=(0,Oe.Z)((function(e){return Ye(e)})),rt=(0,Oe.Z)((function(e){return Ye(e)})),ot=(0,Oe.Z)((function(e,t){var n=rt(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return n}));function it(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function at(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var lt=(0,Oe.Z)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),st=function(e,t){return e.descriptor.droppableId===t.descriptor.id},ct={point:Me,value:0},ut={invisible:{},visible:{},all:[]},pt={displaced:ut,displacedBy:ct,at:null},dt=function(e,t){return function(n){return e<=n&&n<=t}},ft=function(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(r){if(t(r.top)&&t(r.bottom)&&n(r.left)&&n(r.right))return!0;var o=t(r.top)||t(r.bottom),i=n(r.left)||n(r.right);if(o&&i)return!0;var a=r.top<e.top&&r.bottom>e.bottom,l=r.left<e.left&&r.right>e.right;return!(!a||!l)||(a&&i||l&&o)}},mt=function(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&n(e.left)&&n(e.right)}},ht={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},gt={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},vt=function(e){var t=e.target,n=e.destination,r=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var n=t.frame?t.frame.scroll.diff.displacement:Me;return Ge(e,n)}(t,n):t;return function(e,t,n){return!!t.subject.active&&n(t.subject.active)(e)}(a,n,i)&&function(e,t,n){return n(t)(e)}(a,r,i)},bt=function(e){return vt((0,a.default)({},e,{isVisibleThroughFrameFn:ft}))},yt=function(e){return vt((0,a.default)({},e,{isVisibleThroughFrameFn:mt}))},wt=function(e,t,n){if("boolean"==typeof n)return n;if(!t)return!0;var r=t.invisible,o=t.visible;if(r[e])return!1;var i=o[e];return!i||i.shouldAnimate};function Ot(e){var t=e.afterDragging,n=e.destination,r=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,a=e.last;return t.reduce((function(e,t){var l=function(e,t){var n=e.page.marginBox,r={top:t.point.y,right:0,bottom:0,left:t.point.x};return pe(de(n,r))}(t,r),s=t.descriptor.id;if(e.all.push(s),!bt({target:l,destination:n,viewport:o,withDroppableDisplacement:!0}))return e.invisible[t.descriptor.id]=!0,e;var c={draggableId:s,shouldAnimate:wt(s,a,i)};return e.visible[s]=c,e}),{all:[],visible:{},invisible:{}})}function _t(e){var t=e.insideDestination,n=e.inHomeList,r=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var n=e[e.length-1].descriptor.index;return t.inHomeList?n:n+1}(t,{inHomeList:n});return{displaced:ut,displacedBy:r,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function Et(e){var t=e.draggable,n=e.insideDestination,r=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,l=e.index,s=e.forceShouldAnimate,c=st(t,r);if(null==l)return _t({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var u=Je(n,(function(e){return e.descriptor.index===l}));if(!u)return _t({insideDestination:n,inHomeList:c,displacedBy:i,destination:r});var p=lt(t,n),d=n.indexOf(u);return{displaced:Ot({afterDragging:p.slice(d),destination:r,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:s}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:r.descriptor.id,index:l}}}}function Pt(e,t){return Boolean(t.effected[e])}var St=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,l=e.previousImpact,s=e.viewport,c=e.afterCritical,u=l.at;if(u||ke(!1),"REORDER"===u.type){var p=function(e){var t=e.isMovingForward,n=e.isInHomeList,r=e.insideDestination,o=e.location;if(!r.length)return null;var i=o.index,a=t?i+1:i-1,l=r[0].descriptor.index,s=r[r.length-1].descriptor.index;return a<l||a>(n?s:s+1)?null:a}({isMovingForward:t,isInHomeList:n,location:u.destination,insideDestination:a});return null==p?null:Et({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:p})}var d=function(e){var t=e.isMovingForward,n=e.destination,r=e.draggables,o=e.combine,i=e.afterCritical;if(!n.isCombineEnabled)return null;var a=o.draggableId,l=r[a].descriptor.index;return Pt(a,i)?t?l:l-1:t?l+1:l}({isMovingForward:t,destination:i,displaced:l.displaced,draggables:o,combine:u.combine,afterCritical:c});return null==d?null:Et({draggable:r,insideDestination:a,destination:i,viewport:s,last:l.displaced,displacedBy:l.displacedBy,index:d})},jt=function(e){var t=e.afterCritical,n=e.impact,r=e.draggables,o=at(n);o||ke(!1);var i=o.draggableId,a=r[i].page.borderBox.center,l=function(e){var t=e.displaced,n=e.afterCritical,r=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[r]||t.invisible[r]);return Pt(r,n)?i?Me:ze(o.point):i?o.point:Me}({displaced:n.displaced,afterCritical:t,combineWith:i,displacedBy:n.displacedBy});return Le(a,l)},Ct=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},xt=function(e,t,n){return t[e.crossAxisStart]+n.margin[e.crossAxisStart]+n.borderBox[e.crossAxisSize]/2},kt=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ve(t.line,n.marginBox[t.end]+Ct(t,r),xt(t,n.marginBox,r))},It=function(e){var t=e.axis,n=e.moveRelativeTo,r=e.isMoving;return Ve(t.line,n.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,r),xt(t,n.marginBox,r))},Dt=function(e){var t=e.impact,n=e.draggable,r=e.draggables,o=e.droppable,i=e.afterCritical,a=ot(o.descriptor.id,r),l=n.page,s=o.axis;if(!a.length)return function(e){var t=e.axis,n=e.moveInto,r=e.isMoving;return Ve(t.line,n.contentBox[t.start]+Ct(t,r),xt(t,n.contentBox,r))}({axis:s,moveInto:o.page,isMoving:l});var c=t.displaced,u=t.displacedBy,p=c.all[0];if(p){var d=r[p];if(Pt(p,i))return It({axis:s,moveRelativeTo:d.page,isMoving:l});var f=ve(d.page,u.point);return It({axis:s,moveRelativeTo:f,isMoving:l})}var m=a[a.length-1];if(m.descriptor.id===n.descriptor.id)return l.borderBox.center;if(Pt(m.descriptor.id,i)){var h=ve(m.page,ze(i.displacedBy.point));return kt({axis:s,moveRelativeTo:h,isMoving:l})}return kt({axis:s,moveRelativeTo:m.page,isMoving:l})},Nt=function(e,t){var n=e.frame;return n?Le(t,n.scroll.diff.displacement):t},Tt=function(e){var t=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.afterCritical,a=n.page.borderBox.center,l=t.at;return r&&l?"REORDER"===l.type?Dt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:i}):jt({impact:t,draggables:o,afterCritical:i}):a}(e),n=e.droppable;return n?Nt(n,t):t},At=function(e,t){var n=Be(t,e.scroll.initial),r=ze(n);return{frame:pe({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:n,displacement:r}}}};function Rt(e,t){return e.map((function(e){return t[e]}))}var Mt=function(e){var t=e.pageBorderBoxCenter,n=e.draggable,r=function(e,t){return Le(e.scroll.diff.displacement,t)}(e.viewport,t),o=Be(r,n.page.borderBox.center);return Le(n.client.borderBox.center,o)},Lt=function(e){var t=e.draggable,n=e.destination,r=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,l=e.onlyOnMainAxis,s=void 0!==l&&l,c=Be(r,t.page.borderBox.center),u={target:Ge(t.page.borderBox,c),destination:n,withDroppableDisplacement:i,viewport:o};return s?function(e){return vt((0,a.default)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var n=dt(e.top,e.bottom),r=dt(e.left,e.right);return function(e){return t===ht?n(e.top)&&n(e.bottom):r(e.left)&&r(e.right)}})}));var t}(u):yt(u)},Bt=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.draggables,i=e.previousImpact,l=e.viewport,s=e.previousPageBorderBoxCenter,c=e.previousClientSelection,u=e.afterCritical;if(!r.isEnabled)return null;var p=ot(r.descriptor.id,o),d=st(n,r),f=function(e){var t=e.isMovingForward,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.previousImpact;if(!r.isCombineEnabled)return null;if(!it(i))return null;function l(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:r.descriptor.id}};return(0,a.default)({},i,{at:t})}var s=i.displaced.all,c=s.length?s[0]:null;if(t)return c?l(c):null;var u=lt(n,o);if(!c)return u.length?l(u[u.length-1].descriptor.id):null;var p=Xe(u,(function(e){return e.descriptor.id===c}));-1===p&&ke(!1);var d=p-1;return d<0?null:l(u[d].descriptor.id)}({isMovingForward:t,draggable:n,destination:r,insideDestination:p,previousImpact:i})||St({isMovingForward:t,isInHomeList:d,draggable:n,draggables:o,destination:r,insideDestination:p,previousImpact:i,viewport:l,afterCritical:u});if(!f)return null;var m=Tt({impact:f,draggable:n,droppable:r,draggables:o,afterCritical:u});if(Lt({draggable:n,destination:r,newPageBorderBoxCenter:m,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:Mt({pageBorderBoxCenter:m,draggable:n,viewport:l}),impact:f,scrollJumpRequest:null};var h=Be(m,s),g=function(e){var t=e.impact,n=e.viewport,r=e.destination,o=e.draggables,i=e.maxScrollChange,l=At(n,Le(n.scroll.current,i)),s=r.frame?Ke(r,Le(r.frame.scroll.current,i)):r,c=t.displaced,u=Ot({afterDragging:Rt(c.all,o),destination:r,displacedBy:t.displacedBy,viewport:l.frame,last:c,forceShouldAnimate:!1}),p=Ot({afterDragging:Rt(c.all,o),destination:s,displacedBy:t.displacedBy,viewport:n.frame,last:c,forceShouldAnimate:!1}),d={},f={},m=[c,u,p];return c.all.forEach((function(e){var t=function(e,t){for(var n=0;n<t.length;n++){var r=t[n].visible[e];if(r)return r}return null}(e,m);t?f[e]=t:d[e]=!0})),(0,a.default)({},t,{displaced:{all:c.all,invisible:d,visible:f}})}({impact:f,viewport:l,destination:r,draggables:o,maxScrollChange:h});return{clientSelection:c,impact:g,scrollJumpRequest:h}},Ft=function(e){var t=e.subject.active;return t||ke(!1),t},zt=function(e,t){var n=e.page.borderBox.center;return Pt(e.descriptor.id,t)?Be(n,t.displacedBy.point):n},Vt=function(e,t){var n=e.page.borderBox;return Pt(e.descriptor.id,t)?Ge(n,ze(t.displacedBy.point)):n},Ut=(0,Oe.Z)((function(e,t){var n=t[e.line];return{value:n,point:Ve(e.line,n)}})),Ht=function(e,t){return(0,a.default)({},e,{scroll:(0,a.default)({},e.scroll,{max:t})})},Wt=function(e,t,n){var r=e.frame;st(t,e)&&ke(!1),e.subject.withPlaceholder&&ke(!1);var o=Ut(e.axis,t.displaceBy).point,i=function(e,t,n){var r=e.axis;if("virtual"===e.descriptor.mode)return Ve(r.line,t[r.line]);var o=e.subject.page.contentBox[r.size],i=ot(e.descriptor.id,n).reduce((function(e,t){return e+t.client.marginBox[r.size]}),0)+t[r.line]-o;return i<=0?null:Ve(r.line,i)}(e,o,n),l={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!r){var s=Ze({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:e.frame});return(0,a.default)({},e,{subject:s})}var c=i?Le(r.scroll.max,i):r.scroll.max,u=Ht(r,c),p=Ze({page:e.subject.page,withPlaceholder:l,axis:e.axis,frame:u});return(0,a.default)({},e,{subject:p,frame:u})},Gt=function(e){var t=e.isMovingForward,n=e.previousPageBorderBoxCenter,r=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,l=e.viewport,s=e.afterCritical,c=function(e){var t=e.isMovingForward,n=e.pageBorderBoxCenter,r=e.source,o=e.droppables,i=e.viewport,a=r.subject.active;if(!a)return null;var l=r.axis,s=dt(a[l.start],a[l.end]),c=nt(o).filter((function(e){return e!==r})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ft(i.frame)(Ft(e))})).filter((function(e){var n=Ft(e);return t?a[l.crossAxisEnd]<n[l.crossAxisEnd]:n[l.crossAxisStart]<a[l.crossAxisStart]})).filter((function(e){var t=Ft(e),n=dt(t[l.start],t[l.end]);return s(t[l.start])||s(t[l.end])||n(a[l.start])||n(a[l.end])})).sort((function(e,n){var r=Ft(e)[l.crossAxisStart],o=Ft(n)[l.crossAxisStart];return t?r-o:o-r})).filter((function(e,t,n){return Ft(e)[l.crossAxisStart]===Ft(n[0])[l.crossAxisStart]}));if(!c.length)return null;if(1===c.length)return c[0];var u=c.filter((function(e){return dt(Ft(e)[l.start],Ft(e)[l.end])(n[l.line])}));return 1===u.length?u[0]:u.length>1?u.sort((function(e,t){return Ft(e)[l.start]-Ft(t)[l.start]}))[0]:c.sort((function(e,t){var r=He(n,$e(Ft(e))),o=He(n,$e(Ft(t)));return r!==o?r-o:Ft(e)[l.start]-Ft(t)[l.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:n,source:o,droppables:a,viewport:l});if(!c)return null;var u=ot(c.descriptor.id,i),p=function(e){var t=e.pageBorderBoxCenter,n=e.viewport,r=e.destination,o=e.insideDestination,i=e.afterCritical,a=o.filter((function(e){return yt({target:Vt(e,i),destination:r,viewport:n.frame,withDroppableDisplacement:!0})})).sort((function(e,n){var o=Ue(t,Nt(r,zt(e,i))),a=Ue(t,Nt(r,zt(n,i)));return o<a?-1:a<o?1:e.descriptor.index-n.descriptor.index}));return a[0]||null}({pageBorderBoxCenter:n,viewport:l,destination:c,insideDestination:u,afterCritical:s}),d=function(e){var t=e.previousPageBorderBoxCenter,n=e.moveRelativeTo,r=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,l=e.viewport,s=e.afterCritical;if(!n){if(r.length)return null;var c={displaced:ut,displacedBy:ct,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},u=Tt({impact:c,draggable:o,droppable:a,draggables:i,afterCritical:s}),p=st(o,a)?a:Wt(a,o,i);return Lt({draggable:o,destination:p,newPageBorderBoxCenter:u,viewport:l.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?c:null}var d,f=Boolean(t[a.axis.line]<=n.page.borderBox.center[a.axis.line]),m=(d=n.descriptor.index,n.descriptor.id===o.descriptor.id||f?d:d+1),h=Ut(a.axis,o.displaceBy);return Et({draggable:o,insideDestination:r,destination:a,viewport:l,displacedBy:h,last:ut,index:m})}({previousPageBorderBoxCenter:n,destination:c,draggable:r,draggables:i,moveRelativeTo:p,insideDestination:u,viewport:l,afterCritical:s});if(!d)return null;var f=Tt({impact:d,draggable:r,droppable:c,draggables:i,afterCritical:s});return{clientSelection:Mt({pageBorderBoxCenter:f,draggable:r,viewport:l}),impact:d,scrollJumpRequest:null}},$t=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},qt=function(e){var t=e.state,n=e.type,r=function(e,t){var n=$t(e);return n?t[n]:null}(t.impact,t.dimensions.droppables),o=Boolean(r),i=t.dimensions.droppables[t.critical.droppable.id],a=r||i,l=a.axis.direction,s="vertical"===l&&("MOVE_UP"===n||"MOVE_DOWN"===n)||"horizontal"===l&&("MOVE_LEFT"===n||"MOVE_RIGHT"===n);if(s&&!o)return null;var c="MOVE_DOWN"===n||"MOVE_RIGHT"===n,u=t.dimensions.draggables[t.critical.draggable.id],p=t.current.page.borderBoxCenter,d=t.dimensions,f=d.draggables,m=d.droppables;return s?Bt({isMovingForward:c,previousPageBorderBoxCenter:p,draggable:u,destination:a,draggables:f,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):Gt({isMovingForward:c,previousPageBorderBoxCenter:p,draggable:u,isOver:a,draggables:f,droppables:m,viewport:t.viewport,afterCritical:t.afterCritical})};function Zt(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Kt(e){var t=dt(e.top,e.bottom),n=dt(e.left,e.right);return function(e){return t(e.y)&&n(e.x)}}function Yt(e){var t=e.pageBorderBox,n=e.draggable,r=e.droppables,o=nt(r).filter((function(e){if(!e.isEnabled)return!1;var n,r,o=e.subject.active;if(!o)return!1;if(r=o,!((n=t).left<r.right&&n.right>r.left&&n.top<r.bottom&&n.bottom>r.top))return!1;if(Kt(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],l=t[i.crossAxisStart],s=t[i.crossAxisEnd],c=dt(o[i.crossAxisStart],o[i.crossAxisEnd]),u=c(l),p=c(s);return!u&&!p||(u?l<a:s>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,n=e.draggable,r=e.candidates,o=n.page.borderBox.center,i=r.map((function(e){var n=e.axis,r=Ve(e.axis.line,t.center[n.line],e.page.borderBox.center[n.crossAxisLine]);return{id:e.descriptor.id,distance:Ue(o,r)}})).sort((function(e,t){return t.distance-e.distance}));return i[0]?i[0].id:null}({pageBorderBox:t,draggable:n,candidates:o}):null}var Xt=function(e,t){return pe(Ge(e,t))};function Jt(e){var t=e.displaced,n=e.id;return Boolean(t.visible[n]||t.invisible[n])}var Qt=function(e){var t=e.pageOffset,n=e.draggable,r=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,l=e.afterCritical,s=Xt(n.page.borderBox,t),c=Yt({pageBorderBox:s,draggable:n,droppables:o});if(!c)return pt;var u=o[c],p=ot(u.descriptor.id,r),d=function(e,t){var n=e.frame;return n?Xt(t,n.scroll.diff.value):t}(u,s);return function(e){var t=e.draggable,n=e.pageBorderBoxWithDroppableScroll,r=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var l=o.axis,s=Ut(o.axis,t.displaceBy),c=s.value,u=n[l.start],p=n[l.end],d=Je(lt(t,i),(function(e){var t=e.descriptor.id,n=e.page.borderBox,o=n[l.size]/4,i=Pt(t,a),s=Jt({displaced:r.displaced,id:t});return i?s?p>n[l.start]+o&&p<n[l.end]-o:u>n[l.start]-c+o&&u<n[l.end]-c-o:s?p>n[l.start]+c+o&&p<n[l.end]+c-o:u>n[l.start]+o&&u<n[l.end]-o}));return d?{displacedBy:s,displaced:r.displaced,at:{type:"COMBINE",combine:{draggableId:d.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:d,draggable:n,previousImpact:i,destination:u,insideDestination:p,afterCritical:l})||function(e){var t=e.pageBorderBoxWithDroppableScroll,n=e.draggable,r=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,l=e.afterCritical,s=r.axis,c=Ut(r.axis,n.displaceBy),u=c.value,p=t[s.start],d=t[s.end],f=function(e){var t=e.draggable,n=e.closest,r=e.inHomeList;return n?r&&n.descriptor.index>t.descriptor.index?n.descriptor.index-1:n.descriptor.index:null}({draggable:n,closest:Je(lt(n,o),(function(e){var t=e.descriptor.id,n=e.page.borderBox.center[s.line],r=Pt(t,l),o=Jt({displaced:i,id:t});return r?o?d<=n:p<n-u:o?d<=n+u:p<n})),inHomeList:st(n,r)});return Et({draggable:n,insideDestination:o,destination:r,viewport:a,last:i,displacedBy:c,index:f})}({pageBorderBoxWithDroppableScroll:d,draggable:n,destination:u,insideDestination:p,last:i.displaced,viewport:a,afterCritical:l})},en=function(e,t){var n;return(0,a.default)({},e,((n={})[t.descriptor.id]=t,n))},tn=function(e){var t=e.previousImpact,n=e.impact,r=e.droppables,o=$t(t),i=$t(n);if(!o)return r;if(o===i)return r;var l=r[o];if(!l.subject.withPlaceholder)return r;var s=function(e){var t=e.subject.withPlaceholder;t||ke(!1);var n=e.frame;if(!n){var r=Ze({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,a.default)({},e,{subject:r})}var o=t.oldFrameMaxScroll;o||ke(!1);var i=Ht(n,o),l=Ze({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,a.default)({},e,{subject:l,frame:i})}(l);return en(r,s)},nn=function(e){var t=e.state,n=e.clientSelection,r=e.dimensions,o=e.viewport,i=e.impact,l=e.scrollJumpRequest,s=o||t.viewport,c=r||t.dimensions,u=n||t.current.client.selection,p=Be(u,t.initial.client.selection),d={offset:p,selection:u,borderBoxCenter:Le(t.initial.client.borderBoxCenter,p)},f={selection:Le(d.selection,s.scroll.current),borderBoxCenter:Le(d.borderBoxCenter,s.scroll.current),offset:Le(d.offset,s.scroll.diff.value)},m={client:d,page:f};if("COLLECTING"===t.phase)return(0,a.default)({phase:"COLLECTING"},t,{dimensions:c,viewport:s,current:m});var h=c.draggables[t.critical.draggable.id],g=i||Qt({pageOffset:f.offset,draggable:h,draggables:c.draggables,droppables:c.droppables,previousImpact:t.impact,viewport:s,afterCritical:t.afterCritical}),v=function(e){var t=e.draggable,n=e.draggables,r=e.droppables,o=e.previousImpact,i=e.impact,a=tn({previousImpact:o,impact:i,droppables:r}),l=$t(i);if(!l)return a;var s=r[l];if(st(t,s))return a;if(s.subject.withPlaceholder)return a;var c=Wt(s,t,n);return en(a,c)}({draggable:h,impact:g,previousImpact:t.impact,draggables:c.draggables,droppables:c.droppables});return(0,a.default)({},t,{current:m,dimensions:{draggables:c.draggables,droppables:v},impact:g,viewport:s,scrollJumpRequest:l||null,forceShouldAnimate:!l&&null})};var rn=function(e){var t=e.impact,n=e.viewport,r=e.draggables,o=e.destination,i=e.forceShouldAnimate,l=t.displaced,s=function(e,t){return e.map((function(e){return t[e]}))}(l.all,r),c=Ot({afterDragging:s,destination:o,displacedBy:t.displacedBy,viewport:n.frame,forceShouldAnimate:i,last:l});return(0,a.default)({},t,{displaced:c})},on=function(e){var t=e.impact,n=e.draggable,r=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,l=Tt({impact:t,draggable:n,draggables:o,droppable:r,afterCritical:a});return Mt({pageBorderBoxCenter:l,draggable:n,viewport:i})},an=function(e){var t=e.state,n=e.dimensions,r=e.viewport;"SNAP"!==t.movementMode&&ke(!1);var o=t.impact,i=r||t.viewport,a=n||t.dimensions,l=a.draggables,s=a.droppables,c=l[t.critical.draggable.id],u=$t(o);u||ke(!1);var p=s[u],d=rn({impact:o,viewport:i,destination:p,draggables:l}),f=on({impact:d,draggable:c,droppable:p,draggables:l,viewport:i,afterCritical:t.afterCritical});return nn({impact:d,clientSelection:f,state:t,dimensions:a,viewport:i})},ln=function(e){var t=e.draggable,n=e.home,r=e.draggables,o=e.viewport,i=Ut(n.axis,t.displaceBy),a=ot(n.descriptor.id,r),l=a.indexOf(t);-1===l&&ke(!1);var s,c=a.slice(l+1),u=c.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),p={inVirtualList:"virtual"===n.descriptor.mode,displacedBy:i,effected:u};return{impact:{displaced:Ot({afterDragging:c,destination:n,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(s=t.descriptor,{index:s.index,droppableId:s.droppableId})}},afterCritical:p}},sn=function(e){0},cn=function(e){0},un=function(e){var t=e.additions,n=e.updatedDroppables,r=e.viewport,o=r.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||ke(!1),t}(n[t]),l=i.scroll.diff.value,s=function(e){var t=e.draggable,n=e.offset,r=e.initialWindowScroll,o=ve(t.client,n),i=be(o,r);return(0,a.default)({},t,{placeholder:(0,a.default)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:Le(o,l),initialWindowScroll:r.scroll.initial});return s}))},pn=function(e){return"SNAP"===e.movementMode},dn=function(e,t,n){var r=function(e,t){return{draggables:e.draggables,droppables:en(e.droppables,t)}}(e.dimensions,t);return!pn(e)||n?nn({state:e,dimensions:r}):an({state:e,dimensions:r})};function fn(e){return e.isDragging&&"SNAP"===e.movementMode?(0,a.default)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var mn={phase:"IDLE",completed:null,shouldFlush:!1},hn=function(e,t){if(void 0===e&&(e=mn),"FLUSH"===t.type)return(0,a.default)({},mn,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&ke(!1);var n=t.payload,r=n.critical,o=n.clientSelection,i=n.viewport,l=n.dimensions,s=n.movementMode,c=l.draggables[r.draggable.id],u=l.droppables[r.droppable.id],p={selection:o,borderBoxCenter:c.client.borderBox.center,offset:Me},d={client:p,page:{selection:Le(p.selection,i.scroll.initial),borderBoxCenter:Le(p.selection,i.scroll.initial),offset:Le(p.selection,i.scroll.diff.value)}},f=nt(l.droppables).every((function(e){return!e.isFixedOnPage})),m=ln({draggable:c,home:u,draggables:l.draggables,viewport:i}),h=m.impact;return{phase:"DRAGGING",isDragging:!0,critical:r,movementMode:s,dimensions:l,initial:d,current:d,isWindowScrollAllowed:f,impact:h,afterCritical:m.afterCritical,onLiftImpact:h,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&ke(!1),(0,a.default)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&ke(!1),function(e){var t=e.state,n=e.published;sn();var r=n.modified.map((function(e){var n=t.dimensions.droppables[e.droppableId];return Ke(n,e.scroll)})),o=(0,a.default)({},t.dimensions.droppables,{},et(r)),i=tt(un({additions:n.additions,updatedDroppables:o,viewport:t.viewport})),l=(0,a.default)({},t.dimensions.draggables,{},i);n.removals.forEach((function(e){delete l[e]}));var s={droppables:o,draggables:l},c=$t(t.impact),u=c?s.droppables[c]:null,p=s.draggables[t.critical.draggable.id],d=s.droppables[t.critical.droppable.id],f=ln({draggable:p,home:d,draggables:l,viewport:t.viewport}),m=f.impact,h=f.afterCritical,g=u&&u.isCombineEnabled?t.impact:m,v=Qt({pageOffset:t.current.page.offset,draggable:s.draggables[t.critical.draggable.id],draggables:s.draggables,droppables:s.droppables,previousImpact:g,viewport:t.viewport,afterCritical:h});cn();var b=(0,a.default)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:v,onLiftImpact:m,dimensions:s,afterCritical:h,forceShouldAnimate:!1});return"COLLECTING"===t.phase?b:(0,a.default)({phase:"DROP_PENDING"},b,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Zt(e)||ke(!1);var g=t.payload.client;return Fe(g,e.current.client.selection)?e:nn({state:e,clientSelection:g,impact:pn(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return fn(e);if("COLLECTING"===e.phase)return fn(e);Zt(e)||ke(!1);var v=t.payload,b=v.id,y=v.newScroll,w=e.dimensions.droppables[b];if(!w)return e;var O=Ke(w,y);return dn(e,O,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Zt(e)||ke(!1);var _=t.payload,E=_.id,P=_.isEnabled,S=e.dimensions.droppables[E];S||ke(!1),S.isEnabled===P&&ke(!1);var j=(0,a.default)({},S,{isEnabled:P});return dn(e,j,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Zt(e)||ke(!1);var C=t.payload,x=C.id,k=C.isCombineEnabled,I=e.dimensions.droppables[x];I||ke(!1),I.isCombineEnabled===k&&ke(!1);var D=(0,a.default)({},I,{isCombineEnabled:k});return dn(e,D,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Zt(e)||ke(!1),e.isWindowScrollAllowed||ke(!1);var N=t.payload.newScroll;if(Fe(e.viewport.scroll.current,N))return fn(e);var T=At(e.viewport,N);return pn(e)?an({state:e,viewport:T}):nn({state:e,viewport:T})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Zt(e))return e;var A=t.payload.maxScroll;if(Fe(A,e.viewport.scroll.max))return e;var R=(0,a.default)({},e.viewport,{scroll:(0,a.default)({},e.viewport.scroll,{max:A})});return(0,a.default)({phase:"DRAGGING"},e,{viewport:R})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&ke(!1);var M=qt({state:e,type:t.type});return M?nn({state:e,impact:M.impact,clientSelection:M.clientSelection,scrollJumpRequest:M.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var L=t.payload.reason;return"COLLECTING"!==e.phase&&ke(!1),(0,a.default)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:L})}if("DROP_ANIMATE"===t.type){var B=t.payload,F=B.completed,z=B.dropDuration,V=B.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&ke(!1),{phase:"DROP_ANIMATING",completed:F,dropDuration:z,newHomeClientOffset:V,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},gn=function(e){return{type:"LIFT",payload:e}},vn=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},bn=function(){return{type:"COLLECTION_STARTING",payload:null}},yn=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},wn=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},On=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},_n=function(e){return{type:"MOVE",payload:e}},En=function(){return{type:"MOVE_UP",payload:null}},Pn=function(){return{type:"MOVE_DOWN",payload:null}},Sn=function(){return{type:"MOVE_RIGHT",payload:null}},jn=function(){return{type:"MOVE_LEFT",payload:null}},Cn=function(){return{type:"FLUSH",payload:null}},xn=function(e){return{type:"DROP_COMPLETE",payload:e}},kn=function(e){return{type:"DROP",payload:e}},In=function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}};var Dn="cubic-bezier(.2,1,.1,1)",Nn={drop:0,combining:.7},Tn={drop:.75},An=.2+"s "+"cubic-bezier(0.2, 0, 0, 1)",Rn={fluid:"opacity "+An,snap:"transform "+An+", opacity "+An,drop:function(e){var t=e+"s "+Dn;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+An,placeholder:"height "+An+", width "+An+", margin "+An},Mn=function(e){return Fe(e,Me)?null:"translate("+e.x+"px, "+e.y+"px)"},Ln={moveTo:Mn,drop:function(e,t){var n=Mn(e);return n?t?n+" scale("+Tn.drop+")":n:null}},Bn=.33,Fn=.55,zn=Fn-Bn,Vn=function(e){var t=e.getState,n=e.dispatch;return function(e){return function(r){if("DROP"===r.type){var o=t(),i=r.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&ke(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&ke(!1);var l=o.critical,s=o.dimensions,c=s.draggables[o.critical.draggable.id],u=function(e){var t=e.draggables,n=e.reason,r=e.lastImpact,o=e.home,i=e.viewport,l=e.onLiftImpact;return r.at&&"DROP"===n?"REORDER"===r.at.type?{impact:r,didDropInsideDroppable:!0}:{impact:(0,a.default)({},r,{displaced:ut}),didDropInsideDroppable:!0}:{impact:rn({draggables:t,impact:l,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),p=u.impact,d=u.didDropInsideDroppable,f=d?it(p):null,m=d?at(p):null,h={index:l.draggable.index,droppableId:l.droppable.id},g={draggableId:c.descriptor.id,type:c.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:f,combine:m},v=function(e){var t=e.impact,n=e.draggable,r=e.dimensions,o=e.viewport,i=e.afterCritical,a=r.draggables,l=r.droppables,s=$t(t),c=s?l[s]:null,u=l[n.descriptor.droppableId],p=on({impact:t,draggable:n,draggables:a,afterCritical:i,droppable:c||u,viewport:o});return Be(p,n.client.borderBox.center)}({impact:p,draggable:c,dimensions:s,viewport:o.viewport,afterCritical:o.afterCritical}),b={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:p};if(!Fe(o.current.client.offset,v)||Boolean(g.combine)){var y=function(e){var t=e.current,n=e.destination,r=e.reason,o=Ue(t,n);if(o<=0)return Bn;if(o>=1500)return Fn;var i=Bn+zn*(o/1500);return Number(("CANCEL"===r?.6*i:i).toFixed(2))}({current:o.current.client.offset,destination:v,reason:i});n(function(e){return{type:"DROP_ANIMATE",payload:e}}({newHomeClientOffset:v,dropDuration:y,completed:b}))}else n(xn({completed:b}))}}else n(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(r)}}},Un=function(){return{x:window.pageXOffset,y:window.pageYOffset}};function Hn(e){var t=e.onWindowScroll;var n=_e((function(){t(Un())})),r=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(n),o=Pe;function i(){return o!==Pe}return{start:function(){i()&&ke(!1),o=Se(window,[r])},stop:function(){i()||ke(!1),n.cancel(),o(),o=Pe},isActive:i}}var Wn=function(e){var t=Hn({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(n){t.isActive()||"INITIAL_PUBLISH"!==n.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n)&&t.stop(),e(n)}}},Gn=function(){var e=[];return{add:function(t){var n=setTimeout((function(){return function(t){var n=Xe(e,(function(e){return e.timerId===t}));-1===n&&ke(!1),e.splice(n,1)[0].callback()}(n)})),r={timerId:n,callback:t};e.push(r)},flush:function(){if(e.length){var t=[].concat(e);e.length=0,t.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}},$n=function(e,t){sn(),t(),cn()},qn=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},Zn=function(e,t,n,r){if(e){var o=function(e){var t=!1,n=!1,r=setTimeout((function(){n=!0})),o=function(o){t||n||(t=!0,e(o),clearTimeout(r))};return o.wasCalled=function(){return t},o}(n);e(t,{announce:o}),o.wasCalled()||n(r(t))}else n(r(t))},Kn=function(e,t){var n=function(e,t){var n=Gn(),r=null,o=function(n){r||ke(!1),r=null,$n(0,(function(){return Zn(e().onDragEnd,n,t,Re.onDragEnd)}))};return{beforeCapture:function(t,n){r&&ke(!1),$n(0,(function(){var r=e().onBeforeCapture;r&&r({draggableId:t,mode:n})}))},beforeStart:function(t,n){r&&ke(!1),$n(0,(function(){var r=e().onBeforeDragStart;r&&r(qn(t,n))}))},start:function(o,i){r&&ke(!1);var a=qn(o,i);r={mode:i,lastCritical:o,lastLocation:a.source,lastCombine:null},n.add((function(){$n(0,(function(){return Zn(e().onDragStart,a,t,Re.onDragStart)}))}))},update:function(o,i){var l=it(i),s=at(i);r||ke(!1);var c=!function(e,t){if(e===t)return!0;var n=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,r=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return n&&r}(o,r.lastCritical);c&&(r.lastCritical=o);var u,p,d=(p=l,!(null==(u=r.lastLocation)&&null==p||null!=u&&null!=p&&u.droppableId===p.droppableId&&u.index===p.index));d&&(r.lastLocation=l);var f=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(r.lastCombine,s);if(f&&(r.lastCombine=s),c||d||f){var m=(0,a.default)({},qn(o,r.mode),{combine:s,destination:l});n.add((function(){$n(0,(function(){return Zn(e().onDragUpdate,m,t,Re.onDragUpdate)}))}))}},flush:function(){r||ke(!1),n.flush()},drop:o,abort:function(){if(r){var e=(0,a.default)({},qn(r.lastCritical,r.mode),{combine:null,destination:null,reason:"CANCEL"});o(e)}}}}(e,t);return function(e){return function(t){return function(r){if("BEFORE_INITIAL_CAPTURE"!==r.type){if("INITIAL_PUBLISH"===r.type){var o=r.payload.critical;return n.beforeStart(o,r.payload.movementMode),t(r),void n.start(o,r.payload.movementMode)}if("DROP_COMPLETE"===r.type){var i=r.payload.completed.result;return n.flush(),t(r),void n.drop(i)}if(t(r),"FLUSH"!==r.type){var a=e.getState();"DRAGGING"===a.phase&&n.update(a.critical,a.impact)}else n.abort()}else n.beforeCapture(r.payload.draggableId,r.payload.movementMode)}}}},Yn=function(e){return function(t){return function(n){if("DROP_ANIMATION_FINISHED"===n.type){var r=e.getState();"DROP_ANIMATING"!==r.phase&&ke(!1),e.dispatch(xn({completed:r.completed}))}else t(n)}}},Xn=function(e){var t=null,n=null;return function(r){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(n&&(cancelAnimationFrame(n),n=null),t&&(t(),t=null)),r(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};n=requestAnimationFrame((function(){n=null,t=Se(window,[i])}))}}}},Jn=function(e){return function(t){return function(n){if(t(n),"PUBLISH_WHILE_DRAGGING"===n.type){var r=e.getState();"DROP_PENDING"===r.phase&&(r.isWaiting||e.dispatch(kn({reason:r.reason})))}}}},Qn=b,er=function(e){var t,n=e.dimensionMarshal,r=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return h(hn,Qn(function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return function(e){return function(){var n=e.apply(void 0,arguments),r=function(){throw new Error(u(15))},o={getState:n.getState,dispatch:function(){return r.apply(void 0,arguments)}},i=t.map((function(e){return e(o)}));return r=b.apply(void 0,i)(n.dispatch),c(c({},n),{},{dispatch:r})}}}((t=o,function(){return function(e){return function(n){"INITIAL_PUBLISH"===n.type&&t.dragging(),"DROP_ANIMATE"===n.type&&t.dropping(n.payload.completed.result.reason),"FLUSH"!==n.type&&"DROP_COMPLETE"!==n.type||t.resting(),e(n)}}}),function(e){return function(){return function(t){return function(n){"DROP_COMPLETE"!==n.type&&"FLUSH"!==n.type&&"DROP_ANIMATE"!==n.type||e.stopPublishing(),t(n)}}}}(n),function(e){return function(t){var n=t.getState,r=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,l=i.clientSelection,s=i.movementMode,c=n();"DROP_ANIMATING"===c.phase&&r(xn({completed:c.completed})),"IDLE"!==n().phase&&ke(!1),r(Cn()),r({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:s}});var u={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===s}},p=e.startPublishing(u),d=p.critical,f=p.dimensions,m=p.viewport;r({type:"INITIAL_PUBLISH",payload:{critical:d,dimensions:f,clientSelection:l,movementMode:s,viewport:m}})}else t(o)}}}}(n),Vn,Yn,Xn,Jn,function(e){return function(t){return function(n){return function(r){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r))return e.stop(),void n(r);if("INITIAL_PUBLISH"===r.type){n(r);var o=t.getState();return"DRAGGING"!==o.phase&&ke(!1),void e.start(o)}n(r),e.scroll(t.getState())}}}}(l),Wn,function(e){var t=!1;return function(){return function(n){return function(r){if("INITIAL_PUBLISH"===r.type)return t=!0,e.tryRecordFocus(r.payload.critical.draggable.id),n(r),void e.tryRestoreFocusRecorded();if(n(r),t){if("FLUSH"===r.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===r.type){t=!1;var o=r.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(r),Kn(i,a))))};var tr=function(e){var t=e.scrollHeight,n=e.scrollWidth,r=e.height,o=e.width,i=Be({x:n,y:t},{x:o,y:r});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},nr=function(){var e=document.documentElement;return e||ke(!1),e},rr=function(){var e=nr();return tr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})},or=function(e){var t=e.critical,n=e.scrollOptions,r=e.registry;sn();var o,i,a,l,s,c,u,p=(o=Un(),i=rr(),a=o.y,l=o.x,s=nr(),c=s.clientWidth,u=s.clientHeight,{frame:pe({top:a,left:l,right:l+c,bottom:a+u}),scroll:{initial:o,current:o,max:i,diff:{value:Me,displacement:Me}}}),d=p.scroll.current,f=t.droppable,m=r.droppable.getAllByType(f.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(d,n)})),h=r.draggable.getAllByType(t.draggable.type).map((function(e){return e.getDimension(d)})),g={draggables:tt(h),droppables:et(m)};return cn(),{dimensions:g,critical:t,viewport:p}};function ir(e,t,n){return n.descriptor.id!==t.id&&(n.descriptor.type===t.type&&"virtual"===e.droppable.getById(n.descriptor.droppableId).descriptor.mode)}var ar,lr,sr=function(e,t){var n=null,r=function(e){var t=e.registry,n=e.callbacks,r={additions:{},removals:{},modified:{}},o=null,i=function(){o||(n.collectionStarting(),o=requestAnimationFrame((function(){o=null,sn();var e=r,i=e.additions,a=e.removals,l=e.modified,s=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(Me)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),c=Object.keys(l).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),u={additions:s,removals:Object.keys(a),modified:c};r={additions:{},removals:{},modified:{}},cn(),n.publish(u)})))};return{add:function(e){var t=e.descriptor.id;r.additions[t]=e,r.modified[e.descriptor.droppableId]=!0,r.removals[t]&&delete r.removals[t],i()},remove:function(e){var t=e.descriptor;r.removals[t.id]=!0,r.modified[t.droppableId]=!0,r.additions[t.id]&&delete r.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,r={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){n||ke(!1);var o=n.critical.draggable;"ADDITION"===t.type&&ir(e,o,t.value)&&r.add(t.value),"REMOVAL"===t.type&&ir(e,o,t.value)&&r.remove(t.value)},i={updateDroppableIsEnabled:function(r,o){e.droppable.exists(r)||ke(!1),n&&t.updateDroppableIsEnabled({id:r,isEnabled:o})},updateDroppableIsCombineEnabled:function(r,o){n&&(e.droppable.exists(r)||ke(!1),t.updateDroppableIsCombineEnabled({id:r,isCombineEnabled:o}))},scrollDroppable:function(t,r){n&&e.droppable.getById(t).callbacks.scroll(r)},updateDroppableScroll:function(r,o){n&&(e.droppable.exists(r)||ke(!1),t.updateDroppableScroll({id:r,newScroll:o}))},startPublishing:function(t){n&&ke(!1);var r=e.draggable.getById(t.draggableId),i=e.droppable.getById(r.descriptor.droppableId),a={draggable:r.descriptor,droppable:i.descriptor},l=e.subscribe(o);return n={critical:a,unsubscribe:l},or({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(n){r.stop();var t=n.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),n.unsubscribe(),n=null}}};return i},cr=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&(e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason)},ur=function(e){window.scrollBy(e.x,e.y)},pr=(0,Oe.Z)((function(e){return nt(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),dr=function(e){var t=e.center,n=e.destination,r=e.droppables;if(n){var o=r[n];return o.frame?o:null}var i=function(e,t){var n=Je(pr(t),(function(t){return t.frame||ke(!1),Kt(t.frame.pageMarginBox)(e)}));return n}(t,r);return i},fr=.25,mr=.05,hr=28,gr=function(e){return Math.pow(e,2)},vr={stopDampeningAt:1200,accelerateAt:360},br=function(e){var t=e.startOfRange,n=e.endOfRange,r=e.current,o=n-t;return 0===o?0:(r-t)/o},yr=vr.accelerateAt,wr=vr.stopDampeningAt,Or=function(e){var t=e.distanceToEdge,n=e.thresholds,r=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return hr;if(e===t.startScrollingFrom)return 1;var n=br({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),r=hr*gr(1-n);return Math.ceil(r)}(t,n);return 0===i?0:o?Math.max(function(e,t){var n=t,r=wr,o=Date.now()-n;if(o>=wr)return e;if(o<yr)return 1;var i=br({startOfRange:yr,endOfRange:r,current:o}),a=e*gr(i);return Math.ceil(a)}(i,r),1):i},_r=function(e){var t=e.container,n=e.distanceToEdges,r=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:e[t.size]*fr,maxScrollValueAt:e[t.size]*mr}}(t,o);return n[o.end]<n[o.start]?Or({distanceToEdge:n[o.end],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i}):-1*Or({distanceToEdge:n[o.start],thresholds:a,dragStartTime:r,shouldUseTimeDampening:i})},Er=We((function(e){return 0===e?0:e})),Pr=function(e){var t=e.dragStartTime,n=e.container,r=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-n.top,right:n.right-o.x,bottom:n.bottom-o.y,left:o.x-n.left},l=_r({container:n,distanceToEdges:a,dragStartTime:t,axis:ht,shouldUseTimeDampening:i}),s=_r({container:n,distanceToEdges:a,dragStartTime:t,axis:gt,shouldUseTimeDampening:i}),c=Er({x:s,y:l});if(Fe(c,Me))return null;var u=function(e){var t=e.container,n=e.subject,r=e.proposedScroll,o=n.height>t.height,i=n.width>t.width;return i||o?i&&o?null:{x:i?0:r.x,y:o?0:r.y}:r}({container:n,subject:r,proposedScroll:c});return u?Fe(u,Me)?null:u:null},Sr=We((function(e){return 0===e?0:e>0?1:-1})),jr=(ar=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,n=e.max,r=e.change,o=Le(t,r),i={x:ar(o.x,n.x),y:ar(o.y,n.y)};return Fe(i,Me)?null:i}),Cr=function(e){var t=e.max,n=e.current,r=e.change,o={x:Math.max(n.x,t.x),y:Math.max(n.y,t.y)},i=Sr(r),a=jr({max:o,current:n,change:i});return!a||(0!==i.x&&0===a.x||0!==i.y&&0===a.y)},xr=function(e,t){return Cr({current:e.scroll.current,max:e.scroll.max,change:t})},kr=function(e,t){var n=e.frame;return!!n&&Cr({current:n.scroll.current,max:n.scroll.max,change:t})},Ir=function(e){var t=e.state,n=e.dragStartTime,r=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,l=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var s=function(e){var t=e.viewport,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=Pr({dragStartTime:o,container:t.frame,subject:n,center:r,shouldUseTimeDampening:i});return a&&xr(t,a)?a:null}({dragStartTime:n,viewport:t.viewport,subject:l,center:a,shouldUseTimeDampening:r});if(s)return void o(s)}var c=dr({center:a,destination:$t(t.impact),droppables:t.dimensions.droppables});if(c){var u=function(e){var t=e.droppable,n=e.subject,r=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var l=Pr({dragStartTime:o,container:a.pageMarginBox,subject:n,center:r,shouldUseTimeDampening:i});return l&&kr(t,l)?l:null}({dragStartTime:n,droppable:c,subject:l,center:a,shouldUseTimeDampening:r});u&&i(c.descriptor.id,u)}},Dr=function(e){var t=e.move,n=e.scrollDroppable,r=e.scrollWindow,o=function(e,t){if(!kr(e,t))return t;var r=function(e,t){var n=e.frame;return n&&kr(e,t)?jr({current:n.scroll.current,max:n.scroll.max,change:t}):null}(e,t);if(!r)return n(e.descriptor.id,t),null;var o=Be(t,r);return n(e.descriptor.id,o),Be(t,o)},i=function(e,t,n){if(!e)return n;if(!xr(t,n))return n;var o=function(e,t){if(!xr(e,t))return null;var n=e.scroll.max,r=e.scroll.current;return jr({current:r,max:n,change:t})}(t,n);if(!o)return r(n),null;var i=Be(n,o);return r(i),Be(n,i)};return function(e){var n=e.scrollJumpRequest;if(n){var r=$t(e.impact);r||ke(!1);var a=o(e.dimensions.droppables[r],n);if(a){var l=e.viewport,s=i(e.isWindowScrollAllowed,l,a);s&&function(e,n){var r=Le(e.current.client.selection,n);t({client:r})}(e,s)}}}},Nr=function(e){var t=e.scrollDroppable,n=e.scrollWindow,r=e.move,o=function(e){var t=e.scrollWindow,n=e.scrollDroppable,r=_e(t),o=_e(n),i=null,a=function(e){i||ke(!1);var t=i,n=t.shouldUseTimeDampening,a=t.dragStartTime;Ir({state:e,scrollWindow:r,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:n})};return{start:function(e){sn(),i&&ke(!1);var t=Date.now(),n=!1,r=function(){n=!0};Ir({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:r,scrollDroppable:r}),i={dragStartTime:t,shouldUseTimeDampening:n},cn(),n&&a(e)},stop:function(){i&&(r.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:n,scrollDroppable:t}),i=Dr({move:r,scrollWindow:n,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},Tr="data-rbd",Ar={base:lr=Tr+"-drag-handle",draggableId:lr+"-draggable-id",contextId:lr+"-context-id"},Rr=function(){var e=Tr+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Mr=function(){var e=Tr+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),Lr={contextId:Tr+"-scroll-container-context-id"},Br=function(e,t){return e.map((function(e){var n=e.styles[t];return n?e.selector+" { "+n+" }":""})).join(" ")},Fr=function(e){var t,n,r,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(n="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(Ar.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:n,dragging:"pointer-events: none;",dropAnimating:n}}),a=[(r="\n      transition: "+Rn.outOfTheWay+";\n    ",{selector:o(Rr.contextId),styles:{dragging:r,dropAnimating:r,userCancel:r}}),i,{selector:o(Mr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:Br(a,"always"),resting:Br(a,"resting"),dragging:Br(a,"dragging"),dropAnimating:Br(a,"dropAnimating"),userCancel:Br(a,"userCancel")}},zr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?r.useLayoutEffect:r.useEffect,Vr=function(){var e=document.querySelector("head");return e||ke(!1),e},Ur=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t};var Hr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function Wr(e){return e instanceof Hr(e).HTMLElement}function Gr(e,t){var n="["+Ar.contextId+'="'+e+'"]',r=Qe(document.querySelectorAll(n));if(!r.length)return null;var o=Je(r,(function(e){return e.getAttribute(Ar.draggableId)===t}));return o&&Wr(o)?o:null}function $r(){var e={draggables:{},droppables:{}},t=[];function n(e){t.length&&t.forEach((function(t){return t(e)}))}function r(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,n({type:"ADDITION",value:t})},update:function(t,n){var r=e.draggables[n.descriptor.id];r&&r.uniqueId===t.uniqueId&&(delete e.draggables[n.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=r(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],n({type:"REMOVAL",value:t}))},getById:function(e){var t=r(e);return t||ke(!1),t},findById:r,exists:function(e){return Boolean(r(e))},getAllByType:function(t){return Ye(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var n=o(t.descriptor.id);n&&t.uniqueId===n.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||ke(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return Ye(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var n=t.indexOf(e);-1!==n&&t.splice(n,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var qr=o().createContext(null),Zr=function(){var e=document.body;return e||ke(!1),e},Kr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Yr=function(e){return"rbd-announcement-"+e};var Xr=0,Jr={separator:"::"};function Qr(e,t){return void 0===t&&(t=Jr),se((function(){return""+e+t.separator+Xr++}),[t.separator,e])}var eo=o().createContext(null);function to(e){0}function no(e,t){to()}function ro(e){var t=(0,r.useRef)(e);return(0,r.useEffect)((function(){t.current=e})),t}var oo,io=27,ao=32,lo=37,so=38,co=39,uo=40,po=((oo={})[13]=!0,oo[9]=!0,oo),fo=function(e){po[e.keyCode]&&e.preventDefault()},mo=function(){var e="visibilitychange";return"undefined"==typeof document?e:Je([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),ho=0,go=5;var vo,bo={type:"IDLE"};function yo(e){var t=e.cancel,n=e.completed,r=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,n=e.clientX,i=e.clientY;if(t===ho){var a={x:n,y:i},l=r();if("DRAGGING"===l.type)return e.preventDefault(),void l.actions.move(a);"PENDING"!==l.type&&ke(!1);var s=l.point;if(c=s,u=a,Math.abs(u.x-c.x)>=go||Math.abs(u.y-c.y)>=go){var c,u;e.preventDefault();var p=l.actions.fluidLift(a);o({type:"DRAGGING",actions:p})}}}},{eventName:"mouseup",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===r().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==r().type)return e.keyCode===io?(e.preventDefault(),void t()):void fo(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===r().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var n=r();"IDLE"===n.type&&ke(!1),n.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:mo,fn:t}]}function wo(){}var Oo=((vo={})[34]=!0,vo[33]=!0,vo[36]=!0,vo[35]=!0,vo);function _o(e,t){function n(){t(),e.cancel()}return[{eventName:"keydown",fn:function(r){return r.keyCode===io?(r.preventDefault(),void n()):r.keyCode===ao?(r.preventDefault(),t(),void e.drop()):r.keyCode===uo?(r.preventDefault(),void e.moveDown()):r.keyCode===so?(r.preventDefault(),void e.moveUp()):r.keyCode===co?(r.preventDefault(),void e.moveRight()):r.keyCode===lo?(r.preventDefault(),void e.moveLeft()):void(Oo[r.keyCode]?r.preventDefault():fo(r))}},{eventName:"mousedown",fn:n},{eventName:"mouseup",fn:n},{eventName:"click",fn:n},{eventName:"touchstart",fn:n},{eventName:"resize",fn:n},{eventName:"wheel",fn:n,options:{passive:!0}},{eventName:mo,fn:n}]}var Eo={type:"IDLE"},Po=.15;var So={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function jo(e,t){if(null==t)return!1;if(Boolean(So[t.tagName.toLowerCase()]))return!0;var n=t.getAttribute("contenteditable");return"true"===n||""===n||t!==e&&jo(e,t.parentElement)}function Co(e,t){var n=t.target;return!!Wr(n)&&jo(e,n)}var xo=function(e){return pe(e.getBoundingClientRect()).center};var ko=function(){var e="matches";return"undefined"==typeof document?e:Je([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function Io(e,t){return null==e?null:e[ko](t)?e:Io(e.parentElement,t)}function Do(e,t){return e.closest?e.closest(t):Io(e,t)}function No(e,t){var n,r=t.target;if(!((n=r)instanceof Hr(n).Element))return null;var o=function(e){return"["+Ar.contextId+'="'+e+'"]'}(e),i=Do(r,o);return i&&Wr(i)?i:null}function To(e){e.preventDefault()}function Ao(e){var t=e.expected,n=e.phase,r=e.isLockActive;e.shouldWarn;return!!r()&&t===n}function Ro(e){var t=e.lockAPI,n=e.store,r=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=r.draggable.findById(o);return!!i&&(!!i.options.isEnabled&&!!cr(n.getState(),o))}function Mo(e){var t=e.lockAPI,n=e.contextId,r=e.store,o=e.registry,i=e.draggableId,l=e.forceSensorStop,s=e.sourceEvent;if(!Ro({lockAPI:t,store:r,registry:o,draggableId:i}))return null;var c=o.draggable.getById(i),u=function(e,t){var n="["+Rr.contextId+'="'+e+'"]',r=Je(Qe(document.querySelectorAll(n)),(function(e){return e.getAttribute(Rr.id)===t}));return r&&Wr(r)?r:null}(n,c.descriptor.id);if(!u)return null;if(s&&!c.options.canDragInteractiveElements&&Co(u,s))return null;var p=t.claim(l||Pe),d="PRE_DRAG";function f(){return c.options.shouldRespectForcePress}function m(){return t.isActive(p)}var h=function(e,t){Ao({expected:e,phase:d,isLockActive:m,shouldWarn:!0})&&r.dispatch(t())}.bind(null,"DRAGGING");function g(e){function n(){t.release(),d="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=Se(window,[{eventName:"click",fn:To,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}n(),r.dispatch(kn({reason:t}))}return"PRE_DRAG"!==d&&(n(),"PRE_DRAG"!==d&&ke(!1)),r.dispatch(gn(e.liftActionArgs)),d="DRAGGING",(0,a.default)({isActive:function(){return Ao({expected:"DRAGGING",phase:d,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:f,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Ao({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!1})},shouldRespectForcePress:f,fluidLift:function(e){var t=_e((function(e){h((function(){return _n({client:e})}))})),n=g({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,a.default)({},n,{move:t})},snapLift:function(){var e={moveUp:function(){return h(En)},moveRight:function(){return h(Sn)},moveDown:function(){return h(Pn)},moveLeft:function(){return h(jn)}};return g({liftActionArgs:{id:i,clientSelection:xo(u),movementMode:"SNAP"},cleanup:Pe,actions:e})},abort:function(){Ao({expected:"PRE_DRAG",phase:d,isLockActive:m,shouldWarn:!0})&&t.release()}}}var Lo=[function(e){var t=(0,r.useRef)(bo),n=(0,r.useRef)(Pe),o=se((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&t.button===ho&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,l,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};n.current(),u(o,i)}}}}}}),[e]),i=se((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var r=e.findOptionsForDraggable(n);r&&(r.shouldRespectForcePress||e.canGetLock(n)&&t.preventDefault())}}}}}),[e]),a=ce((function(){n.current=Se(window,[i,o],{passive:!1,capture:!0})}),[i,o]),l=ce((function(){"IDLE"!==t.current.type&&(t.current=bo,n.current(),a())}),[a]),s=ce((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),c=ce((function(){var e=yo({cancel:s,completed:l,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});n.current=Se(window,e,{capture:!0,passive:!1})}),[s,l]),u=ce((function(e,n){"IDLE"!==t.current.type&&ke(!1),t.current={type:"PENDING",point:n,actions:e},c()}),[c]);zr((function(){return a(),function(){n.current()}}),[a])},function(e){var t=(0,r.useRef)(wo),n=se((function(){return{eventName:"keydown",fn:function(n){if(!n.defaultPrevented&&n.keyCode===ao){var r=e.findClosestDraggableId(n);if(r){var i=e.tryGetLock(r,s,{sourceEvent:n});if(i){n.preventDefault();var a=!0,l=i.snapLift();t.current(),t.current=Se(window,_o(l,s),{capture:!0,passive:!1})}}}function s(){a||ke(!1),a=!1,t.current(),o()}}}}),[e]),o=ce((function(){t.current=Se(window,[n],{passive:!1,capture:!0})}),[n]);zr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,r.useRef)(Eo),n=(0,r.useRef)(Pe),o=ce((function(){return t.current}),[]),i=ce((function(e){t.current=e}),[]),a=se((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var o=e.tryGetLock(r,s,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};n.current(),d(o,a)}}}}}}),[e]),l=ce((function(){n.current=Se(window,[a],{capture:!0,passive:!1})}),[a]),s=ce((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Eo),n.current(),l())}),[l,i]),c=ce((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),u=ce((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:s,getPhase:o},r=Se(window,function(e){var t=e.cancel,n=e.completed,r=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var n=r();if("DRAGGING"===n.type){n.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),n.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=r();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),n()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===r().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var n=r();"IDLE"===n.type&&ke(!1);var o=e.touches[0];if(o&&o.force>=Po){var i=n.actions.shouldRespectForcePress();if("PENDING"!==n.type)return i?n.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:mo,fn:t}]}(t),e),i=Se(window,function(e){var t=e.cancel,n=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===n().type?(e.keyCode===io&&e.preventDefault(),t()):t()}},{eventName:mo,fn:t}]}(t),e);n.current=function(){r(),i()}}),[c,o,s]),p=ce((function(){var e=o();"PENDING"!==e.type&&ke(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),d=ce((function(e,t){"IDLE"!==o().type&&ke(!1);var n=setTimeout(p,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:n}),u()}),[u,o,i,p]);zr((function(){return l(),function(){n.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Eo))}}),[o,l,i]),zr((function(){return Se(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Bo(e){var t=e.contextId,n=e.store,o=e.registry,i=e.customSensors,a=e.enableDefaultSensors,l=[].concat(a?Lo:[],i||[]),s=(0,r.useState)((function(){return function(){var e=null;function t(){e||ke(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&ke(!1);var n={abandon:t};return e=n,n},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],c=ce((function(e,t){e.isDragging&&!t.isDragging&&s.tryAbandon()}),[s]);zr((function(){var e=n.getState();return n.subscribe((function(){var t=n.getState();c(e,t),e=t}))}),[s,n,c]),zr((function(){return s.tryAbandon}),[s.tryAbandon]);var u=ce((function(e){return Ro({lockAPI:s,registry:o,store:n,draggableId:e})}),[s,o,n]),p=ce((function(e,r,i){return Mo({lockAPI:s,registry:o,contextId:t,store:n,draggableId:e,forceSensorStop:r,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,s,o,n]),d=ce((function(e){return function(e,t){var n=No(e,t);return n?n.getAttribute(Ar.draggableId):null}(t,e)}),[t]),f=ce((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),m=ce((function(){s.isClaimed()&&(s.tryAbandon(),"IDLE"!==n.getState().phase&&n.dispatch(Cn()))}),[s,n]),h=ce(s.isClaimed,[s]),g=se((function(){return{canGetLock:u,tryGetLock:p,findClosestDraggableId:d,findOptionsForDraggable:f,tryReleaseLock:m,isLockClaimed:h}}),[u,p,d,f,m,h]);to();for(var v=0;v<l.length;v++)l[v](g)}var Fo=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function zo(e){return e.current||ke(!1),e.current}function Vo(e){var t=e.contextId,n=e.setCallbacks,i=e.sensors,l=e.nonce,s=e.dragHandleUsageInstructions,c=(0,r.useRef)(null);no();var u=ro(e),p=ce((function(){return Fo(u.current)}),[u]),d=function(e){var t=se((function(){return Yr(e)}),[e]),n=(0,r.useRef)(null);return(0,r.useEffect)((function(){var e=document.createElement("div");return n.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,a.default)(e.style,Kr),Zr().appendChild(e),function(){setTimeout((function(){var t=Zr();t.contains(e)&&t.removeChild(e),e===n.current&&(n.current=null)}))}}),[t]),ce((function(e){var t=n.current;t&&(t.textContent=e)}),[])}(t),f=function(e){var t=e.contextId,n=e.text,o=Qr("hidden-text",{separator:"-"}),i=se((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,r.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=n,e.style.display="none",Zr().appendChild(e),function(){var t=Zr();t.contains(e)&&t.removeChild(e)}}),[i,n]),i}({contextId:t,text:s}),m=function(e,t){var n=se((function(){return Fr(e)}),[e]),o=(0,r.useRef)(null),i=(0,r.useRef)(null),a=ce((0,Oe.Z)((function(e){var t=i.current;t||ke(!1),t.textContent=e})),[]),l=ce((function(e){var t=o.current;t||ke(!1),t.textContent=e}),[]);zr((function(){(o.current||i.current)&&ke(!1);var r=Ur(t),s=Ur(t);return o.current=r,i.current=s,r.setAttribute(Tr+"-always",e),s.setAttribute(Tr+"-dynamic",e),Vr().appendChild(r),Vr().appendChild(s),l(n.always),a(n.resting),function(){var e=function(e){var t=e.current;t||ke(!1),Vr().removeChild(t),e.current=null};e(o),e(i)}}),[t,l,a,n.always,n.resting,e]);var s=ce((function(){return a(n.dragging)}),[a,n.dragging]),c=ce((function(e){a("DROP"!==e?n.userCancel:n.dropAnimating)}),[a,n.dropAnimating,n.userCancel]),u=ce((function(){i.current&&a(n.resting)}),[a,n.resting]);return se((function(){return{dragging:s,dropping:c,resting:u}}),[s,c,u])}(t,l),h=ce((function(e){zo(c).dispatch(e)}),[]),g=se((function(){return v({publishWhileDragging:vn,updateDroppableScroll:yn,updateDroppableIsEnabled:wn,updateDroppableIsCombineEnabled:On,collectionStarting:bn},h)}),[h]),b=function(){var e=se($r,[]);return(0,r.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),y=se((function(){return sr(b,g)}),[b,g]),w=se((function(){return Nr((0,a.default)({scrollWindow:ur,scrollDroppable:y.scrollDroppable},v({move:_n},h)))}),[y.scrollDroppable,h]),O=function(e){var t=(0,r.useRef)({}),n=(0,r.useRef)(null),o=(0,r.useRef)(null),i=(0,r.useRef)(!1),a=ce((function(e,n){var r={id:e,focus:n};return t.current[e]=r,function(){var n=t.current;n[e]!==r&&delete n[e]}}),[]),l=ce((function(t){var n=Gr(e,t);n&&n!==document.activeElement&&n.focus()}),[e]),s=ce((function(e,t){n.current===e&&(n.current=t)}),[]),c=ce((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=n.current;e&&l(e)})))}),[l]),u=ce((function(e){n.current=null;var t=document.activeElement;t&&t.getAttribute(Ar.draggableId)===e&&(n.current=e)}),[]);return zr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),se((function(){return{register:a,tryRecordFocus:u,tryRestoreFocusRecorded:c,tryShiftRecord:s}}),[a,u,c,s])}(t),_=se((function(){return er({announce:d,autoScroller:w,dimensionMarshal:y,focusMarshal:O,getResponders:p,styleMarshal:m})}),[d,w,y,O,p,m]);c.current=_;var E=ce((function(){var e=zo(c);"IDLE"!==e.getState().phase&&e.dispatch(Cn())}),[]),P=ce((function(){var e=zo(c).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);n(se((function(){return{isDragging:P,tryAbort:E}}),[P,E]));var j=ce((function(e){return cr(zo(c).getState(),e)}),[]),C=ce((function(){return Zt(zo(c).getState())}),[]),x=se((function(){return{marshal:y,focus:O,contextId:t,canLift:j,isMovementAllowed:C,dragHandleUsageInstructionsId:f,registry:b}}),[t,y,f,O,j,C,b]);return Bo({contextId:t,store:_,registry:b,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,r.useEffect)((function(){return E}),[E]),o().createElement(eo.Provider,{value:x},o().createElement(S,{context:qr,store:_},e.children))}var Uo=0;function Ho(e){var t=se((function(){return""+Uo++}),[]),n=e.dragHandleUsageInstructions||Re.dragHandleUsageInstructions;return o().createElement(Ie,null,(function(r){return o().createElement(Vo,{nonce:e.nonce,contextId:t,setCallbacks:r,dragHandleUsageInstructions:n,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Wo=function(e){return function(t){return e===t}},Go=Wo("scroll"),$o=Wo("auto"),qo=(Wo("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),Zo=function(e){var t=window.getComputedStyle(e),n={overflowX:t.overflowX,overflowY:t.overflowY};return qo(n,Go)||qo(n,$o)},Ko=function e(t){return null==t||t===document.body||t===document.documentElement?null:Zo(t)?t:e(t.parentElement)},Yo=function(e){return{x:e.scrollLeft,y:e.scrollTop}},Xo=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},Jo=function(e){return{closestScrollable:Ko(e),isFixedOnPage:Xo(e)}},Qo=function(e){var t=e.ref,n=e.descriptor,r=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,l=e.isCombineEnabled,s=e.shouldClipSubject,c=r.closestScrollable,u=function(e,t){var n=we(e);if(!t)return n;if(e!==t)return n;var r=n.paddingBox.top-t.scrollTop,o=n.paddingBox.left-t.scrollLeft,i=r+t.scrollHeight,a=o+t.scrollWidth,l=de({top:r,right:a,bottom:i,left:o},n.border);return he({borderBox:l,margin:n.margin,border:n.border,padding:n.padding})}(t,c),p=be(u,o),d=function(){if(!c)return null;var e=we(c),t={scrollHeight:c.scrollHeight,scrollWidth:c.scrollWidth};return{client:e,page:be(e,o),scroll:Yo(c),scrollSize:t,shouldClipSubject:s}}(),f=function(e){var t=e.descriptor,n=e.isEnabled,r=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,l=e.page,s=e.closest,c=function(){if(!s)return null;var e=s.scrollSize,t=s.client,n=tr({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:s.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:s.shouldClipSubject,scroll:{initial:s.scroll,current:s.scroll,max:n,diff:{value:Me,displacement:Me}}}}(),u="vertical"===i?ht:gt;return{descriptor:t,isCombineEnabled:r,isFixedOnPage:o,axis:u,isEnabled:n,client:a,page:l,frame:c,subject:Ze({page:l,withPlaceholder:null,axis:u,frame:c})}}({descriptor:n,isEnabled:!a,isCombineEnabled:l,isFixedOnPage:r.isFixedOnPage,direction:i,client:u,page:p,closest:d});return f},ei={passive:!1},ti={passive:!0},ni=function(e){return e.shouldPublishImmediately?ei:ti};function ri(e){var t=(0,r.useContext)(e);return t||ke(!1),t}var oi=function(e){return e&&e.env.closestScrollable||null};function ii(){}var ai={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},li=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate,o=function(e){var t=e.isAnimatingOpenOnMount,n=e.placeholder,r=e.animate;return t||"close"===r?ai:{height:n.client.borderBox.height,width:n.client.borderBox.width,margin:n.client.margin}}({isAnimatingOpenOnMount:t,placeholder:n,animate:r});return{display:n.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==r?Rn.placeholder:null}};var si=o().memo((function(e){var t=(0,r.useRef)(null),n=ce((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,l=e.onClose,s=e.contextId,c=(0,r.useState)("open"===e.animate),u=c[0],p=c[1];(0,r.useEffect)((function(){return u?"open"!==i?(n(),p(!1),ii):t.current?ii:(t.current=setTimeout((function(){t.current=null,p(!1)})),n):ii}),[i,u,n]);var d=ce((function(e){"height"===e.propertyName&&(a(),"close"===i&&l())}),[i,l,a]),f=li({isAnimatingOpenOnMount:u,animate:e.animate,placeholder:e.placeholder});return o().createElement(e.placeholder.tagName,{style:f,"data-rbd-placeholder-context-id":s,onTransitionEnd:d,ref:e.innerRef})})),ci=o().createContext(null);var ui=function(e){function t(){for(var t,n=arguments.length,r=new Array(n),o=0;o<n;o++)r[o]=arguments[o];return(t=e.call.apply(e,[this].concat(r))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.Z)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o().PureComponent),pi={dragging:5e3,dropAnimating:4500},di=function(e,t){return t?Rn.drop(t.duration):e?Rn.snap:Rn.fluid},fi=function(e,t){return e?t?Nn.drop:Nn.combining:null},mi=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode};function hi(e){return"DRAGGING"===e.type?function(e){var t=e.dimension.client,n=e.offset,r=e.combineWith,o=e.dropping,i=Boolean(r),a=mi(e),l=Boolean(o),s=l?Ln.drop(n,i):Ln.moveTo(n);return{position:"fixed",top:t.marginBox.top,left:t.marginBox.left,boxSizing:"border-box",width:t.borderBox.width,height:t.borderBox.height,transition:di(a,o),transform:s,opacity:fi(i,l),zIndex:l?pi.dropAnimating:pi.dragging,pointerEvents:"none"}}(e):(t=e,{transform:Ln.moveTo(t.offset),transition:t.shouldAnimateDisplacement?null:"none"});var t}function gi(e){var t=Qr("draggable"),n=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,l=e.shouldRespectForcePress,s=e.isEnabled,c=se((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:l,isEnabled:s}}),[a,s,l]),u=ce((function(e){var t=i();return t||ke(!1),function(e,t,n){void 0===n&&(n=Me);var r=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=ye(o,r),a=be(i,n);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:r.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(n,t,e)}),[n,i]),p=se((function(){return{uniqueId:t,descriptor:n,options:c,getDimension:u}}),[n,u,c,t]),d=(0,r.useRef)(p),f=(0,r.useRef)(!0);zr((function(){return o.draggable.register(d.current),function(){return o.draggable.unregister(d.current)}}),[o.draggable]),zr((function(){if(f.current)f.current=!1;else{var e=d.current;d.current=p,o.draggable.update(p,e)}}),[p,o.draggable])}function vi(e,t,n){no()}function bi(e){e.preventDefault()}var yi=function(e,t){return e===t},wi=function(e){var t=e.combine,n=e.destination;return n?n.droppableId:t?t.droppableId:null};function Oi(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var _i={mapped:{type:"SECONDARY",offset:Me,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:Oi(null)}};var Ei=re((function(){var e,t,n,r=(e=(0,Oe.Z)((function(e,t){return{x:e,y:t}})),t=(0,Oe.Z)((function(e,t,n,r,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:n,combineWith:r,combineTargetFor:null}})),n=(0,Oe.Z)((function(e,n,r,o,i,a,l){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:n,offset:e,dimension:r,forceShouldAnimate:l,snapshot:t(n,o,i,a,null)}}})),function(r,o){if(r.isDragging){if(r.critical.draggable.id!==o.draggableId)return null;var i=r.current.client.offset,a=r.dimensions.draggables[o.draggableId],l=$t(r.impact),s=(u=r.impact).at&&"COMBINE"===u.at.type?u.at.combine.draggableId:null,c=r.forceShouldAnimate;return n(e(i.x,i.y),r.movementMode,a,o.isClone,l,s,c)}var u;if("DROP_ANIMATING"===r.phase){var p=r.completed;if(p.result.draggableId!==o.draggableId)return null;var d=o.isClone,f=r.dimensions.draggables[o.draggableId],m=p.result,h=m.mode,g=wi(m),v=function(e){return e.combine?e.combine.draggableId:null}(m),b={duration:r.dropDuration,curve:Dn,moveTo:r.newHomeClientOffset,opacity:v?Nn.drop:null,scale:v?Tn.drop:null};return{mapped:{type:"DRAGGING",offset:r.newHomeClientOffset,dimension:f,dropping:b,draggingOver:g,combineWith:v,mode:h,forceShouldAnimate:null,snapshot:t(h,d,g,v,b)}}}return null}),o=function(){var e=(0,Oe.Z)((function(e,t){return{x:e,y:t}})),t=(0,Oe.Z)(Oi),n=(0,Oe.Z)((function(e,n,r){return void 0===n&&(n=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:n,shouldAnimateDisplacement:r,snapshot:t(n)}}})),r=function(e){return e?n(Me,e,!0):null},o=function(t,o,i,a){var l=i.displaced.visible[t],s=Boolean(a.inVirtualList&&a.effected[t]),c=at(i),u=c&&c.draggableId===t?o:null;if(!l){if(!s)return r(u);if(i.displaced.invisible[t])return null;var p=ze(a.displacedBy.point),d=e(p.x,p.y);return n(d,u,!0)}if(s)return r(u);var f=i.displacedBy.point,m=e(f.x,f.y);return n(m,u,l.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var n=e.completed;return n.result.draggableId===t.draggableId?null:o(t.draggableId,n.result.draggableId,n.impact,n.afterCritical)}return null}}();return function(e,t){return r(e,t)||o(e,t)||_i}}),{dropAnimationFinished:In},null,{context:qr,pure:!0,areStatePropsEqual:yi})((function(e){var t=(0,r.useRef)(null),n=ce((function(e){t.current=e}),[]),o=ce((function(){return t.current}),[]),i=ri(eo),a=i.contextId,l=i.dragHandleUsageInstructionsId,s=i.registry,c=ri(ci),u=c.type,p=c.droppableId,d=se((function(){return{id:e.draggableId,index:e.index,type:u,droppableId:p}}),[e.draggableId,e.index,u,p]),f=e.children,m=e.draggableId,h=e.isEnabled,g=e.shouldRespectForcePress,v=e.canDragInteractiveElements,b=e.isClone,y=e.mapped,w=e.dropAnimationFinished;vi(),to(),b||gi(se((function(){return{descriptor:d,registry:s,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:g,isEnabled:h}}),[d,s,o,v,g,h]));var O=se((function(){return h?{tabIndex:0,role:"button","aria-describedby":l,"data-rbd-drag-handle-draggable-id":m,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:bi}:null}),[a,l,m,h]),_=ce((function(e){"DRAGGING"===y.type&&y.dropping&&"transform"===e.propertyName&&w()}),[w,y]),E=se((function(){var e=hi(y),t="DRAGGING"===y.type&&y.dropping?_:null;return{innerRef:n,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":m,style:e,onTransitionEnd:t},dragHandleProps:O}}),[a,O,m,y,_,n]),P=se((function(){return{draggableId:d.id,type:d.type,source:{index:d.index,droppableId:d.droppableId}}}),[d.droppableId,d.id,d.index,d.type]);return f(E,y.snapshot,P)}));function Pi(e){return ri(ci).isUsingCloneFor!==e.draggableId||e.isClone?o().createElement(Ei,e):null}function Si(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,n=Boolean(e.disableInteractiveElementBlocking),r=Boolean(e.shouldRespectForcePress);return o().createElement(Pi,(0,a.default)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:n,shouldRespectForcePress:r}))}var ji=function(e,t){return e===t.droppable.type},Ci=function(e,t){return t.draggables[e.draggable.id]};var xi={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||ke(!1),document.body}},ki=re((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,a.default)({},e,{shouldAnimatePlaceholder:!1}),n=(0,Oe.Z)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),r=(0,Oe.Z)((function(r,o,i,a,l,s){var c=l.descriptor.id;if(l.descriptor.droppableId===r){var u=s?{render:s,dragging:n(l.descriptor)}:null,p={isDraggingOver:i,draggingOverWith:i?c:null,draggingFromThisWith:c,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!1,snapshot:p,useClone:u}}if(!o)return t;if(!a)return e;var d={isDraggingOver:i,draggingOverWith:c,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:l.placeholder,shouldAnimatePlaceholder:!0,snapshot:d,useClone:null}}));return function(n,o){var i=o.droppableId,a=o.type,l=!o.isDropDisabled,s=o.renderClone;if(n.isDragging){var c=n.critical;if(!ji(a,c))return t;var u=Ci(c,n.dimensions),p=$t(n.impact)===i;return r(i,l,p,p,u,s)}if("DROP_ANIMATING"===n.phase){var d=n.completed;if(!ji(a,d.critical))return t;var f=Ci(d.critical,n.dimensions);return r(i,l,wi(d.result)===i,$t(d.impact)===i,f,s)}if("IDLE"===n.phase&&n.completed&&!n.shouldFlush){var m=n.completed;if(!ji(a,m.critical))return t;var h=$t(m.impact)===i,g=Boolean(m.impact.at&&"COMBINE"===m.impact.at.type),v=m.critical.droppable.id===i;return h?g?e:t:v?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:qr,pure:!0,areStatePropsEqual:yi})((function(e){var t=(0,r.useContext)(eo);t||ke(!1);var n=t.contextId,i=t.isMovementAllowed,a=(0,r.useRef)(null),l=(0,r.useRef)(null),s=e.children,c=e.droppableId,u=e.type,p=e.mode,d=e.direction,f=e.ignoreContainerClipping,m=e.isDropDisabled,h=e.isCombineEnabled,g=e.snapshot,v=e.useClone,b=e.updateViewportMaxScroll,y=e.getContainerForClone,w=ce((function(){return a.current}),[]),O=ce((function(e){a.current=e}),[]),_=(ce((function(){return l.current}),[]),ce((function(e){l.current=e}),[]));no();var E=ce((function(){i()&&b({maxScroll:rr()})}),[i,b]);!function(e){var t=(0,r.useRef)(null),n=ri(eo),o=Qr("droppable"),i=n.registry,a=n.marshal,l=ro(e),s=se((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),c=(0,r.useRef)(s),u=se((function(){return(0,Oe.Z)((function(e,n){t.current||ke(!1);var r={x:e,y:n};a.updateDroppableScroll(s.id,r)}))}),[s.id,a]),p=ce((function(){var e=t.current;return e&&e.env.closestScrollable?Yo(e.env.closestScrollable):Me}),[]),d=ce((function(){var e=p();u(e.x,e.y)}),[p,u]),f=se((function(){return _e(d)}),[d]),m=ce((function(){var e=t.current,n=oi(e);e&&n||ke(!1),e.scrollOptions.shouldPublishImmediately?d():f()}),[f,d]),h=ce((function(e,r){t.current&&ke(!1);var o=l.current,i=o.getDroppableRef();i||ke(!1);var a=Jo(i),c={ref:i,descriptor:s,env:a,scrollOptions:r};t.current=c;var u=Qo({ref:i,descriptor:s,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),p=a.closestScrollable;return p&&(p.setAttribute(Lr.contextId,n.contextId),p.addEventListener("scroll",m,ni(c.scrollOptions))),u}),[n.contextId,s,m,l]),g=ce((function(){var e=t.current,n=oi(e);return e&&n||ke(!1),Yo(n)}),[]),v=ce((function(){var e=t.current;e||ke(!1);var n=oi(e);t.current=null,n&&(f.cancel(),n.removeAttribute(Lr.contextId),n.removeEventListener("scroll",m,ni(e.scrollOptions)))}),[m,f]),b=ce((function(e){var n=t.current;n||ke(!1);var r=oi(n);r||ke(!1),r.scrollTop+=e.y,r.scrollLeft+=e.x}),[]),y=se((function(){return{getDimensionAndWatchScroll:h,getScrollWhileDragging:g,dragStopped:v,scroll:b}}),[v,h,g,b]),w=se((function(){return{uniqueId:o,descriptor:s,callbacks:y}}),[y,s,o]);zr((function(){return c.current=w.descriptor,i.droppable.register(w),function(){t.current&&v(),i.droppable.unregister(w)}}),[y,s,v,w,a,i.droppable]),zr((function(){t.current&&a.updateDroppableIsEnabled(c.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),zr((function(){t.current&&a.updateDroppableIsCombineEnabled(c.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:c,type:u,mode:p,direction:d,isDropDisabled:m,isCombineEnabled:h,ignoreContainerClipping:f,getDroppableRef:w});var P=o().createElement(ui,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,r=e.data,i=e.animate;return o().createElement(si,{placeholder:r,onClose:t,innerRef:_,animate:i,contextId:n,onTransitionEnd:E})})),S=se((function(){return{innerRef:O,placeholder:P,droppableProps:{"data-rbd-droppable-id":c,"data-rbd-droppable-context-id":n}}}),[n,c,P,O]),j=v?v.dragging.draggableId:null,C=se((function(){return{droppableId:c,type:u,isUsingCloneFor:j}}),[c,j,u]);return o().createElement(ci.Provider,{value:C},s(S,g),function(){if(!v)return null;var e=v.dragging,t=v.render,n=o().createElement(Pi,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(n,r){return t(n,r,e)}));return ae().createPortal(n,y())}())}));ki.defaultProps=xi},4300:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}Object.defineProperty(t,"__esModule",{value:!0}),t.CopyToClipboard=void 0;var o=l(n(7363)),i=l(n(640)),a=["text","onCopy","options","children"];function l(e){return e&&e.__esModule?e:{default:e}}function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){g(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t){if(null==e)return{};var n,r,o=function(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(o[n]=e[n])}return o}function p(e,t){for(var n=0;n<t.length;n++){var r=t[n];r.enumerable=r.enumerable||!1,r.configurable=!0,"value"in r&&(r.writable=!0),Object.defineProperty(e,r.key,r)}}function d(e,t){return d=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},d(e,t)}function f(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var n,o=h(e);if(t){var i=h(this).constructor;n=Reflect.construct(o,arguments,i)}else n=o.apply(this,arguments);return function(e,t){if(t&&("object"===r(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return m(e)}(this,n)}}function m(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function h(e){return h=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},h(e)}function g(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var v=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&d(e,t)}(s,e);var t,n,r,l=f(s);function s(){var e;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,s);for(var t=arguments.length,n=new Array(t),r=0;r<t;r++)n[r]=arguments[r];return g(m(e=l.call.apply(l,[this].concat(n))),"onClick",(function(t){var n=e.props,r=n.text,a=n.onCopy,l=n.children,s=n.options,c=o.default.Children.only(l),u=(0,i.default)(r,s);a&&a(r,u),c&&c.props&&"function"==typeof c.props.onClick&&c.props.onClick(t)})),e}return t=s,(n=[{key:"render",value:function(){var e=this.props,t=(e.text,e.onCopy,e.options,e.children),n=u(e,a),r=o.default.Children.only(t);return o.default.cloneElement(r,c(c({},n),{},{onClick:this.onClick}))}}])&&p(t.prototype,n),r&&p(t,r),Object.defineProperty(t,"prototype",{writable:!1}),s}(o.default.PureComponent);t.CopyToClipboard=v,g(v,"defaultProps",{onCopy:void 0,options:void 0})},4855:function(e,t,n){"use strict";var r=n(4300).CopyToClipboard;r.CopyToClipboard=r,e.exports=r},9921:function(e,t){"use strict";
/** @license React v16.13.1
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var n="function"==typeof Symbol&&Symbol.for,r=n?Symbol.for("react.element"):60103,o=n?Symbol.for("react.portal"):60106,i=n?Symbol.for("react.fragment"):60107,a=n?Symbol.for("react.strict_mode"):60108,l=n?Symbol.for("react.profiler"):60114,s=n?Symbol.for("react.provider"):60109,c=n?Symbol.for("react.context"):60110,u=n?Symbol.for("react.async_mode"):60111,p=n?Symbol.for("react.concurrent_mode"):60111,d=n?Symbol.for("react.forward_ref"):60112,f=n?Symbol.for("react.suspense"):60113,m=n?Symbol.for("react.suspense_list"):60120,h=n?Symbol.for("react.memo"):60115,g=n?Symbol.for("react.lazy"):60116,v=n?Symbol.for("react.block"):60121,b=n?Symbol.for("react.fundamental"):60117,y=n?Symbol.for("react.responder"):60118,w=n?Symbol.for("react.scope"):60119;function O(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case u:case p:case i:case l:case a:case f:return e;default:switch(e=e&&e.$$typeof){case c:case d:case g:case h:case s:return e;default:return t}}case o:return t}}}function _(e){return O(e)===p}t.AsyncMode=u,t.ConcurrentMode=p,t.ContextConsumer=c,t.ContextProvider=s,t.Element=r,t.ForwardRef=d,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=l,t.StrictMode=a,t.Suspense=f,t.isAsyncMode=function(e){return _(e)||O(e)===u},t.isConcurrentMode=_,t.isContextConsumer=function(e){return O(e)===c},t.isContextProvider=function(e){return O(e)===s},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===r},t.isForwardRef=function(e){return O(e)===d},t.isFragment=function(e){return O(e)===i},t.isLazy=function(e){return O(e)===g},t.isMemo=function(e){return O(e)===h},t.isPortal=function(e){return O(e)===o},t.isProfiler=function(e){return O(e)===l},t.isStrictMode=function(e){return O(e)===a},t.isSuspense=function(e){return O(e)===f},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===p||e===l||e===a||e===f||e===m||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===s||e.$$typeof===c||e.$$typeof===d||e.$$typeof===b||e.$$typeof===y||e.$$typeof===w||e.$$typeof===v)},t.typeOf=O},9864:function(e,t,n){"use strict";e.exports=n(9921)},8359:function(e,t){"use strict";var n=60103,r=60106,o=60107,i=60108,a=60114,l=60109,s=60110,c=60112,u=60113,p=60120,d=60115,f=60116,m=60121,h=60122,g=60117,v=60129,b=60131;
/** @license React v17.0.2
 * react-is.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */if("function"==typeof Symbol&&Symbol.for){var y=Symbol.for;n=y("react.element"),r=y("react.portal"),o=y("react.fragment"),i=y("react.strict_mode"),a=y("react.profiler"),l=y("react.provider"),s=y("react.context"),c=y("react.forward_ref"),u=y("react.suspense"),p=y("react.suspense_list"),d=y("react.memo"),f=y("react.lazy"),m=y("react.block"),h=y("react.server.block"),g=y("react.fundamental"),v=y("react.debug_trace_mode"),b=y("react.legacy_hidden")}function w(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case o:case a:case i:case u:case p:return e;default:switch(e=e&&e.$$typeof){case s:case c:case f:case d:case l:return e;default:return t}}case r:return t}}}t.isContextConsumer=function(e){return w(e)===s}},2973:function(e,t,n){"use strict";e.exports=n(8359)},4823:function(e,t,n){"use strict";function r(e){return e&&"object"==typeof e&&"default"in e?e.default:e}var o=r(n(3366)),i=r(n(7462)),a=r(n(7363)),l=r(n(1533));let s,c,u,p,d,f=[],m=e=>"undefined"!=typeof window&&window.requestAnimationFrame(e),h=e=>"undefined"!=typeof window&&window.cancelAnimationFrame(e),g=()=>Date.now();const v=(e,t)=>c={fn:e,transform:t},b=e=>f=e,y=e=>s=e,w=e=>u=e,O=e=>p=e,_=e=>d=e;var E=Object.freeze({get bugfixes(){return s},get applyAnimatedValues(){return c},get colorNames(){return f},get requestFrame(){return m},get cancelFrame(){return h},get interpolation(){return u},get now(){return g},get defaultElement(){return p},get createAnimatedStyle(){return d},injectApplyAnimatedValues:v,injectColorNames:b,injectBugfixes:y,injectInterpolation:w,injectFrame:(e,t)=>{var n=[e,t];return m=n[0],h=n[1],n},injectNow:e=>g=e,injectDefaultElement:O,injectCreateAnimatedStyle:_});class P{attach(){}detach(){}getValue(){}getAnimatedValue(){return this.getValue()}addChild(e){}removeChild(e){}getChildren(){return[]}}const S=e=>Object.keys(e).map((t=>e[t]));class j extends P{constructor(){var e;super(...arguments),e=this,this.children=[],this.getChildren=()=>this.children,this.getPayload=function(t){return void 0===t&&(t=void 0),void 0!==t&&e.payload?e.payload[t]:e.payload||e}}addChild(e){0===this.children.length&&this.attach(),this.children.push(e)}removeChild(e){const t=this.children.indexOf(e);this.children.splice(t,1),0===this.children.length&&this.detach()}}class C extends j{constructor(){super(...arguments),this.payload=[],this.getAnimatedValue=()=>this.getValue(),this.attach=()=>this.payload.forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>this.payload.forEach((e=>e instanceof P&&e.removeChild(this)))}}class x extends j{constructor(){super(...arguments),this.payload={},this.getAnimatedValue=()=>this.getValue(!0),this.attach=()=>S(this.payload).forEach((e=>e instanceof P&&e.addChild(this))),this.detach=()=>S(this.payload).forEach((e=>e instanceof P&&e.removeChild(this)))}getValue(e){void 0===e&&(e=!1);const t={};for(const n in this.payload){const r=this.payload[n];(!e||r instanceof P)&&(t[n]=r instanceof P?r[e?"getAnimatedValue":"getValue"]():r)}return t}}class k extends x{constructor(e){super(),!(e=e||{}).transform||e.transform instanceof P||(e=c.transform(e)),this.payload=e}}const I={transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199};class D{static create(e,t,n){if("function"==typeof e)return e;if(u&&e.output&&"string"==typeof e.output[0])return u(e);if(Array.isArray(e))return D.create({range:e,output:t,extrapolate:n||"extend"});let r=e.output,o=e.range||[0,1],i=e.easing||(e=>e),a="extend",l=e.map;void 0!==e.extrapolateLeft?a=e.extrapolateLeft:void 0!==e.extrapolate&&(a=e.extrapolate);let s="extend";return void 0!==e.extrapolateRight?s=e.extrapolateRight:void 0!==e.extrapolate&&(s=e.extrapolate),e=>{let t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,o);return function(e,t,n,r,o,i,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,o[t],o[t+1],r[t],r[t+1],i,a,s,l)}}}const N="[-+]?\\d*\\.?\\d+",T=N+"%";function A(){return"\\(\\s*("+Array.prototype.slice.call(arguments).join(")\\s*,\\s*(")+")\\s*\\)"}const R=new RegExp("rgb"+A(N,N,N)),M=new RegExp("rgba"+A(N,N,N,N)),L=new RegExp("hsl"+A(N,T,T)),B=new RegExp("hsla"+A(N,T,T,N)),F=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,z=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,V=/^#([0-9a-fA-F]{6})$/,U=/^#([0-9a-fA-F]{8})$/;function H(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function W(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=H(o,r,e+1/3),a=H(o,r,e),l=H(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function G(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function $(e){return(parseFloat(e)%360+360)%360/360}function q(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function Z(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function K(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=V.exec(e))?parseInt(t[1]+"ff",16)>>>0:I.hasOwnProperty(e)?I[e]:(t=R.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|255)>>>0:(t=M.exec(e))?(G(t[1])<<24|G(t[2])<<16|G(t[3])<<8|q(t[4]))>>>0:(t=F.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=U.exec(e))?parseInt(t[1],16)>>>0:(t=z.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=L.exec(e))?(255|W($(t[1]),Z(t[2]),Z(t[3])))>>>0:(t=B.exec(e))?(W($(t[1]),Z(t[2]),Z(t[3]))|q(t[4]))>>>0:null}(e);return null===t?e:(t=t||0,`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`)}const Y=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,X=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,J=new RegExp(`(${Object.keys(I).join("|")})`,"g");class Q extends C{constructor(e,t,n){super(),this.getValue=()=>this.calc(...this.payload.map((e=>e.getValue()))),this.updateConfig=(e,t)=>this.calc=D.create(e,t),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e instanceof C&&!e.updateConfig?e.payload:Array.isArray(e)?e:[e],this.calc=D.create(t,n)}}function ee(e,t){"function"==typeof e.update?t.add(e):e.getChildren().forEach((e=>ee(e,t)))}class te extends j{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),t.value=e,n&&t.flush()},this.getValue=()=>this.value,this.updateStyles=()=>ee(this,this.animatedStyles),this.updateValue=e=>this.flush(this.value=e),this.interpolate=(e,t)=>new Q(this,e,t),this.value=e,this.animatedStyles=new Set,this.done=!1,this.startPosition=e,this.lastPosition=e,this.lastVelocity=void 0,this.lastTime=void 0,this.controller=void 0}flush(){0===this.animatedStyles.size&&this.updateStyles(),this.animatedStyles.forEach((e=>e.update()))}prepare(e){void 0===this.controller&&(this.controller=e),this.controller===e&&(this.startPosition=this.value,this.lastPosition=this.value,this.lastVelocity=e.isActive?this.lastVelocity:void 0,this.lastTime=e.isActive?this.lastTime:void 0,this.done=!1,this.animatedStyles.clear())}}class ne extends C{constructor(e){var t;super(),t=this,this.setValue=function(e,n){void 0===n&&(n=!0),Array.isArray(e)?e.length===t.payload.length&&e.forEach(((e,r)=>t.payload[r].setValue(e,n))):t.payload.forEach(((r,o)=>t.payload[o].setValue(e,n)))},this.getValue=()=>this.payload.map((e=>e.getValue())),this.interpolate=(e,t)=>new Q(this,e,t),this.payload=e.map((e=>new te(e)))}}function re(e,t){return null==e?t:e}function oe(e){return void 0!==e?Array.isArray(e)?e:[e]:[]}function ie(e,t){if(typeof e!=typeof t)return!1;if("string"==typeof e||"number"==typeof e)return e===t;let n;for(n in e)if(!(n in t))return!1;for(n in t)if(e[n]!==t[n])return!1;return void 0!==n||e===t}function ae(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),r=1;r<t;r++)n[r-1]=arguments[r];return"function"==typeof e?e(...n):e}function le(e){return Object.keys(e).map((t=>e[t]))}function se(e){const t=function(e){return e.to,e.from,e.config,e.native,e.onStart,e.onRest,e.onFrame,e.children,e.reset,e.reverse,e.force,e.immediate,e.impl,e.inject,e.delay,e.attach,e.destroyed,e.interpolateTo,e.autoStart,e.ref,o(e,["to","from","config","native","onStart","onRest","onFrame","children","reset","reverse","force","immediate","impl","inject","delay","attach","destroyed","interpolateTo","autoStart","ref"])}(e),n=Object.keys(e).reduce(((n,r)=>void 0!==t[r]?n:i({},n,{[r]:e[r]})),{});return i({to:t},n)}function ce(e,t){let n=t[0],r=t[1];return i({},e,{[n]:new(Array.isArray(r)?ne:te)(r)})}function ue(e){const t=e.from,n=e.to,r=e.native,o=Object.entries(i({},t,n));return r?o.reduce(ce,{}):i({},t,n)}function pe(e,t){return t&&("function"==typeof t?t(e):"object"==typeof t&&(t.current=e)),e}const de=e=>"auto"===e;let fe={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0};const me=["Webkit","Ms","Moz","O"];function he(e,t,n){return null==t||"boolean"==typeof t||""===t?"":n||"number"!=typeof t||0===t||fe.hasOwnProperty(e)&&fe[e]?(""+t).trim():t+"px"}fe=Object.keys(fe).reduce(((e,t)=>(me.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),fe);const ge={};_((e=>new k(e))),O("div"),w((function(e){const t=e.output.map((e=>e.replace(X,K))).map((e=>e.replace(J,K))),n=t[0].match(Y).map((()=>[]));t.forEach((e=>{e.match(Y).forEach(((e,t)=>n[t].push(+e)))}));const r=t[0].match(Y).map(((t,r)=>D.create(i({},e,{output:n[r]}))));return e=>{let n=0;return t[0].replace(Y,(()=>r[n++](e))).replace(/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,((e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`))}})),b(I),y((function(e,t){const n=e.from,r=e.to,o=e.children;if(!le(r).some(de)&&!le(n).some(de))return;let s=o(ue(e));if(!s)return;Array.isArray(s)&&(s={type:"div",props:{children:s}});const c=s.props.style;return a.createElement(s.type,i({key:s.key?s.key:void 0},s.props,{style:i({},c,{position:"absolute",visibility:"hidden"}),ref:o=>{if(o){let a,s,c=l.findDOMNode(o),u=getComputedStyle(c);if("border-box"===u.boxSizing)a=c.offsetWidth,s=c.offsetHeight;else{const e=parseFloat(u.paddingLeft||0)+parseFloat(u.paddingRight||0),t=parseFloat(u.paddingTop||0)+parseFloat(u.paddingBottom||0),n=parseFloat(u.borderLeftWidth||0)+parseFloat(u.borderRightWidth||0),r=parseFloat(u.borderTopWidth||0)+parseFloat(u.borderBottomWidth||0);a=c.offsetWidth-e-n,s=c.offsetHeight-t-r}const p=((e,t)=>(n,r)=>{let o=r[0],a=r[1];return i({},n,{[o]:"auto"===a?~o.indexOf("height")?t:e:a})})(a,s);t(i({},e,{from:Object.entries(n).reduce(p,n),to:Object.entries(r).reduce(p,r)}))}}}))})),v(((e,t)=>{if(!e.nodeType||void 0===e.setAttribute)return!1;{const i=t.style,a=t.children,l=t.scrollTop,s=t.scrollLeft,c=o(t,["style","children","scrollTop","scrollLeft"]);void 0!==l&&(e.scrollTop=l),void 0!==s&&(e.scrollLeft=s),void 0!==a&&(e.textContent=a);for(let t in i)if(i.hasOwnProperty(t)){var n=0===t.indexOf("--"),r=he(t,i[t],n);"float"===t&&(t="cssFloat"),n?e.style.setProperty(t,r):e.style[t]=r}for(let t in c){const n=ge[t]||(ge[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())));void 0!==e.getAttribute(n)&&e.setAttribute(n,c[t])}}}),(e=>e));let ve=!1;const be=new Set,ye=()=>{let e=g();for(let t of be){let n=!0,r=!0;for(let o=0;o<t.configs.length;o++){let i,a,l=t.configs[o];for(let o=0;o<l.animatedValues.length;o++){let s=l.animatedValues[o];if(s.done)continue;let c=l.fromValues[o],u=l.toValues[o],p=s.lastPosition,d=u instanceof P,f=Array.isArray(l.initialVelocity)?l.initialVelocity[o]:l.initialVelocity;if(d&&(u=u.getValue()),l.immediate||!d&&!l.decay&&c===u)s.updateValue(u),s.done=!0;else if(l.delay&&e-t.startTime<l.delay)n=!1;else if(r=!1,"string"!=typeof c&&"string"!=typeof u){if(void 0!==l.duration)p=c+l.easing((e-t.startTime-l.delay)/l.duration)*(u-c),i=e>=t.startTime+l.delay+l.duration;else if(l.decay)p=c+f/(1-.998)*(1-Math.exp(-(1-.998)*(e-t.startTime))),i=Math.abs(s.lastPosition-p)<.1,i&&(u=p);else{a=void 0!==s.lastTime?s.lastTime:e,f=void 0!==s.lastVelocity?s.lastVelocity:l.initialVelocity,e>a+64&&(a=e);let t=Math.floor(e-a);for(let e=0;e<t;++e){f+=1*((-l.tension*(p-u)+-l.friction*f)/l.mass)/1e3,p+=1*f/1e3}let n=!(!l.clamp||0===l.tension)&&(c<u?p>u:p<u),r=Math.abs(f)<=l.precision,o=0===l.tension||Math.abs(u-p)<=l.precision;i=n||r&&o,s.lastVelocity=f,s.lastTime=e}d&&!l.toValues[o].done&&(i=!1),i?(s.value!==u&&(p=u),s.done=!0):n=!1,s.updateValue(p),s.lastPosition=p}else s.updateValue(u),s.done=!0}!t.props.onFrame&&t.props.native||(t.animatedProps[l.name]=l.interpolation.getValue())}!t.props.onFrame&&t.props.native||(!t.props.native&&t.onUpdate&&t.onUpdate(),t.props.onFrame&&t.props.onFrame(t.animatedProps)),n&&(be.delete(t),t.debouncedOnEnd({finished:!0,noChange:r}))}be.size?m(ye):ve=!1},we=e=>{be.has(e)&&be.delete(e)};class Oe{constructor(e,t){void 0===t&&(t={native:!0,interpolateTo:!0,autoStart:!0}),this.getValues=()=>this.props.native?this.interpolations:this.animatedProps,this.dependents=new Set,this.isActive=!1,this.hasChanged=!1,this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[],this.frame=void 0,this.startTime=void 0,this.lastTime=void 0,this.update(i({},e,t))}update(e){this.props=i({},this.props,e);let t=this.props.interpolateTo?se(this.props):this.props,n=t.from,r=void 0===n?{}:n,o=t.to,a=void 0===o?{}:o,l=t.config,s=void 0===l?{}:l,c=t.delay,u=void 0===c?0:c,p=t.reverse,d=t.attach,m=t.reset,h=t.immediate,g=t.autoStart,v=t.ref;if(p){var b=[a,r];r=b[0],a=b[1]}this.hasChanged=!1;let y=d&&d(this),w=m?{}:this.merged;if(this.merged=i({},r,w,a),this.animations=Object.entries(this.merged).reduce(((e,t,n)=>{let o=t[0],a=t[1],l=!m&&e[o]||{};const c="number"==typeof a,p="string"==typeof a&&!a.startsWith("#")&&!/\d/.test(a)&&!f[a],d=!c&&!p&&Array.isArray(a);let g=void 0!==r[o]?r[o]:a,v=c||d||p?a:1,b=ae(s,o);if(y&&(v=y.animations[o].parent),void 0===b.decay&&ie(l.changes,a))return e;{let t,n;if(this.hasChanged=!0,c||p)t=n=l.parent||new te(g);else if(d)t=n=l.parent||new ne(g);else{const e=l.interpolation&&l.interpolation.calc(l.parent.value);l.parent?(t=l.parent,t.setValue(0,!1)):t=new te(0);const r={output:[void 0!==e?e:g,a]};l.interpolation?(n=l.interpolation,l.interpolation.updateConfig(r)):n=t.interpolate(r)}ae(h,o)&&t.setValue(a,!1);const r=oe(t.getPayload());return r.forEach((e=>e.prepare(this))),i({},e,{[o]:i({},l,{name:o,parent:t,interpolation:n,animatedValues:r,changes:a,fromValues:oe(t.getValue()),toValues:oe(y?v.getPayload():v),immediate:ae(h,o),delay:re(b.delay,u||0),initialVelocity:re(b.velocity,0),clamp:re(b.clamp,!1),precision:re(b.precision,.01),tension:re(b.tension,170),friction:re(b.friction,26),mass:re(b.mass,1),duration:b.duration,easing:re(b.easing,(e=>e)),decay:b.decay})})}}),this.animations),this.hasChanged){this.configs=le(this.animations),this.animatedProps={},this.interpolations={};for(let e in this.animations)this.interpolations[e]=this.animations[e].interpolation,this.animatedProps[e]=this.animations[e].interpolation.getValue()}for(var O=arguments.length,_=new Array(O>1?O-1:0),E=1;E<O;E++)_[E-1]=arguments[E];v||!g&&!_.length||this.start(..._);const P=_[0],S=_[1];return this.onEnd="function"==typeof P&&P,this.onUpdate=S,this.getValues()}start(e,t){var n;return this.startTime=g(),this.isActive&&this.stop(),this.isActive=!0,this.onEnd="function"==typeof e&&e,this.onUpdate=t,this.props.onStart&&this.props.onStart(),n=this,be.has(n)||(be.add(n),ve||m(ye),ve=!0),new Promise((e=>this.resolve=e))}stop(e){void 0===e&&(e=!1),e&&le(this.animations).forEach((e=>e.changes=void 0)),this.debouncedOnEnd({finished:e})}destroy(){we(this),this.props={},this.merged={},this.animations={},this.interpolations={},this.animatedProps={},this.configs=[]}debouncedOnEnd(e){we(this),this.isActive=!1;const t=this.onEnd;this.onEnd=null,t&&t(e),this.resolve&&this.resolve(),this.resolve=null}}class _e extends x{constructor(e,t){super(),e.style&&(e=i({},e,{style:d(e.style)})),this.payload=e,this.update=t,this.attach()}}function Ee(e){class t extends a.Component{constructor(e){super(),this.callback=()=>{if(this.node){!1===c.fn(this.node,this.propsAnimated.getAnimatedValue(),this)&&this.forceUpdate()}},this.attachProps(e)}componentWillUnmount(){this.propsAnimated&&this.propsAnimated.detach()}setNativeProps(e){!1===c.fn(this.node,e,this)&&this.forceUpdate()}attachProps(e){e.forwardRef;let t=o(e,["forwardRef"]);const n=this.propsAnimated;this.propsAnimated=new _e(t,this.callback),n&&n.detach()}shouldComponentUpdate(e){const t=e.style,n=o(e,["style"]),r=this.props,i=r.style;return(!ie(o(r,["style"]),n)||!ie(i,t))&&(this.attachProps(e),!0)}render(){const t=this.propsAnimated.getValue(),n=(t.scrollTop,t.scrollLeft,o(t,["scrollTop","scrollLeft"]));return a.createElement(e,i({},n,{ref:e=>this.node=pe(e,this.props.forwardRef)}))}}return a.forwardRef(((e,n)=>a.createElement(t,i({},e,{forwardRef:n}))))}const Pe={default:{tension:170,friction:26},gentle:{tension:120,friction:14},wobbly:{tension:180,friction:12},stiff:{tension:210,friction:20},slow:{tension:280,friction:60},molasses:{tension:280,friction:120}};class Se extends a.Component{constructor(){super(...arguments),this.state={lastProps:{from:{},to:{}},propsChanged:!1,internal:!1},this.controller=new Oe(null,null),this.didUpdate=!1,this.didInject=!1,this.finished=!0,this.start=()=>{this.finished=!1;let e=this.mounted;this.controller.start((t=>this.finish(i({},t,{wasMounted:e}))),this.update)},this.stop=()=>this.controller.stop(!0),this.update=()=>this.mounted&&this.setState({internal:!0}),this.finish=e=>{let t=e.finished,n=e.noChange,r=e.wasMounted;this.finished=!0,this.mounted&&t&&(!this.props.onRest||!r&&n||this.props.onRest(this.controller.merged),this.mounted&&this.didInject&&(this.afterInject=ue(this.props),this.setState({internal:!0})),this.mounted&&(this.didInject||this.props.after)&&this.setState({internal:!0}),this.didInject=!1)}}componentDidMount(){this.componentDidUpdate(),this.mounted=!0}componentWillUnmount(){this.mounted=!1,this.stop()}static getDerivedStateFromProps(e,t){let n=t.internal,r=t.lastProps;const o=e.from,i=e.to,a=e.reset,l=e.force;return{propsChanged:!ie(i,r.to)||!ie(o,r.from)||a&&!n||l&&!n,lastProps:e,internal:!1}}render(){const e=this.props.children,t=this.state.propsChanged;if(this.props.inject&&t&&!this.injectProps){const e=this.props.inject(this.props,(e=>{this.injectProps=e,this.setState({internal:!0})}));if(e)return e}(this.injectProps||t)&&(this.didInject=!1,this.injectProps?(this.controller.update(this.injectProps),this.didInject=!0):t&&this.controller.update(this.props),this.didUpdate=!0,this.afterInject=void 0,this.injectProps=void 0);let n=i({},this.controller.getValues(),this.afterInject);return this.finished&&(n=i({},n,this.props.after)),Object.keys(n).length?e(n):null}componentDidUpdate(){this.didUpdate&&this.start(),this.didUpdate=!1}}Se.defaultProps={from:{},to:{},config:Pe.default,native:!1,immediate:!1,reset:!1,force:!1,inject:s};class je extends a.PureComponent{constructor(){super(...arguments),this.first=!0,this.instances=new Set,this.hook=(e,t,n,r)=>(this.instances.add(e),(r?t===n-1:0===t)?void 0:Array.from(this.instances)[r?t+1:t-1])}render(){const e=this.props,t=e.items,n=e.children,r=e.from,l=void 0===r?{}:r,s=e.initial,c=e.reverse,u=e.keys,p=e.delay,d=e.onRest,f=o(e,["items","children","from","initial","reverse","keys","delay","onRest"]),m=oe(t);return oe(m).map(((e,t)=>a.createElement(Se,i({onRest:0===t?d:null,key:"function"==typeof u?u(e):oe(u)[t],from:this.first&&void 0!==s?s||{}:l},f,{delay:0===t&&p||void 0,attach:e=>this.hook(e,t,m.length,c),children:r=>{const o=n(e,t);return o?o(r):null}}))))}componentDidUpdate(e){this.first=!1,e.items!==this.props.items&&this.instances.clear()}}je.defaultProps={keys:e=>e};const Ce="__default";class xe extends a.PureComponent{constructor(){var e;super(...arguments),e=this,this.guid=0,this.state={props:{},resolve:()=>null,last:!0,index:0},this.next=function(t,n,r){return void 0===n&&(n=!0),void 0===r&&(r=0),e.running=!0,new Promise((o=>{e.mounted&&e.setState((e=>({props:t,resolve:o,last:n,index:r})),(()=>e.running=!1))}))}}componentDidMount(){this.mounted=!0,this.componentDidUpdate({})}componentWillUnmount(){this.mounted=!1}componentDidUpdate(e){var t=this;const n=this.props,r=n.states,o=n.filter,i=n.state;if((e.state!==this.props.state||this.props.reset&&!this.running||!ie(r[i],e.states[e.state]))&&r&&i&&r[i]){const e=++this.guid,n=r[i];if(n)if(Array.isArray(n)){let t=Promise.resolve();for(let r=0;r<n.length;r++){let i=r,a=n[i],l=i===n.length-1;t=t.then((()=>e===this.guid&&this.next(o(a),l,i)))}}else if("function"==typeof n){let r=0;n((function(n,i){return void 0===i&&(i=!1),e===t.guid&&t.next(o(n),i,r++)}),(()=>m((()=>this.instance&&this.instance.stop()))),this.props)}else this.next(o(r[i]))}}render(){const e=this.state,t=e.props,n=e.resolve,r=e.last,l=e.index;if(!t||0===Object.keys(t).length)return null;let s=this.props,c=(s.state,s.filter,s.states,s.config),u=s.primitive,p=s.onRest,d=s.forwardRef,f=o(s,["state","filter","states","config","primitive","onRest","forwardRef"]);return Array.isArray(c)&&(c=c[l]),a.createElement(u,i({ref:e=>this.instance=pe(e,d),config:c},f,t,{onRest:e=>{n(e),p&&r&&p(e)}}))}}xe.defaultProps={state:Ce};const ke=a.forwardRef(((e,t)=>a.createElement(xe,i({},e,{forwardRef:t}))));ke.create=e=>function(t,n){return void 0===n&&(n=e=>e),("function"==typeof t||Array.isArray(t))&&(t={[Ce]:t}),r=>a.createElement(xe,i({primitive:e,states:t,filter:n},r))},ke.Spring=e=>ke.create(Se)(e,se),ke.Trail=e=>ke.create(je)(e,se);let Ie=0,De=e=>{let t=e.items,n=e.keys,r=o(e,["items","keys"]);return t=oe(void 0!==t?t:null),n="function"==typeof n?t.map(n):oe(n),i({items:t,keys:n.map((e=>String(e)))},r)};class Ne extends a.PureComponent{componentDidMount(){this.mounted=!0}componentWillUnmount(){this.mounted=!1}constructor(e){super(e),this.destroyItem=(e,t,n)=>r=>{const o=this.props,i=o.onRest,a=o.onDestroyed;this.mounted&&(a&&a(e),this.setState((e=>({deleted:e.deleted.filter((e=>e.key!==t))}))),i&&i(e,n,r))},this.state={first:!0,transitions:[],current:{},deleted:[],prevProps:e}}static getDerivedStateFromProps(e,t){let n=t.first,r=t.prevProps,a=o(t,["first","prevProps"]),l=De(e),s=l.items,c=l.keys,u=l.initial,p=l.from,d=l.enter,f=l.leave,m=l.update,h=l.trail,g=void 0===h?0:h,v=l.unique,b=l.config,y=De(r),w=y.keys,O=y.items,_=i({},a.current),E=[...a.deleted],P=Object.keys(_),S=new Set(P),j=new Set(c),C=c.filter((e=>!S.has(e))),x=a.transitions.filter((e=>!e.destroyed&&!j.has(e.originalKey))).map((e=>e.originalKey)),k=c.filter((e=>S.has(e))),I=0;C.forEach((e=>{v&&E.find((t=>t.originalKey===e))&&(E=E.filter((t=>t.originalKey!==e)));const t=c.indexOf(e),r=s[t],o="enter";_[e]={state:o,originalKey:e,key:v?String(e):Ie++,item:r,trail:I+=g,config:ae(b,r,o),from:ae(n&&void 0!==u?u||{}:p,r),to:ae(d,r)}})),x.forEach((e=>{const t=w.indexOf(e),n=O[t],r="leave";E.push(i({},_[e],{state:r,destroyed:!0,left:w[Math.max(0,t-1)],right:w[Math.min(w.length,t+1)],trail:I+=g,config:ae(b,n,r),to:ae(f,n)})),delete _[e]})),k.forEach((e=>{const t=c.indexOf(e),n=s[t],r="update";_[e]=i({},_[e],{item:n,state:r,trail:I+=g,config:ae(b,n,r),to:ae(m,n)})}));let D=c.map((e=>_[e]));return E.forEach((e=>{let t,n=e.left,r=e.right,i=o(e,["left","right"]);-1!==(t=D.findIndex((e=>e.originalKey===n)))&&(t+=1),-1===t&&(t=D.findIndex((e=>e.originalKey===r))),-1===t&&(t=E.findIndex((e=>e.originalKey===n))),-1===t&&(t=E.findIndex((e=>e.originalKey===r))),t=Math.max(0,t),D=[...D.slice(0,t),i,...D.slice(t)]})),{first:n&&0===C.length,transitions:D,current:_,deleted:E,prevProps:e}}render(){const e=this.props,t=(e.initial,e.from,e.enter,e.leave,e.update,e.onDestroyed,e.keys,e.items,e.onFrame),n=e.onRest,r=e.onStart,l=(e.trail,e.config,e.children),s=(e.unique,e.reset),c=o(e,["initial","from","enter","leave","update","onDestroyed","keys","items","onFrame","onRest","onStart","trail","config","children","unique","reset"]);return this.state.transitions.map(((e,o)=>{let u=e.state,p=e.key,d=e.item,f=e.from,m=e.to,h=e.trail,g=e.config,v=e.destroyed;return a.createElement(ke,i({reset:s&&"enter"===u,primitive:Se,state:u,filter:se,states:{[u]:m},key:p,onRest:v?this.destroyItem(d,p,u):n&&(e=>n(d,u,e)),onStart:r&&(()=>r(d,u)),onFrame:t&&(e=>t(d,u,e)),delay:h,config:g},c,{from:f,children:e=>{const t=l(d,u,o);return t?t(e):null}}))}))}}Ne.defaultProps={keys:e=>e,unique:!1,reset:!1};const Te=["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","marquee","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"].reduce(((e,t)=>(e[t]=Ee(t),e)),Ee);t.uT=Ne,t.q=Te},3697:function(e,t,n){"use strict";var r=n(5972).functionsHaveConfigurableNames(),o=Object,i=TypeError;e.exports=function(){if(null!=this&&this!==o(this))throw new i("RegExp.prototype.flags getter called on non-object");var e="";return this.hasIndices&&(e+="d"),this.global&&(e+="g"),this.ignoreCase&&(e+="i"),this.multiline&&(e+="m"),this.dotAll&&(e+="s"),this.unicode&&(e+="u"),this.unicodeSets&&(e+="v"),this.sticky&&(e+="y"),e},r&&Object.defineProperty&&Object.defineProperty(e.exports,"name",{value:"get flags"})},2847:function(e,t,n){"use strict";var r=n(4289),o=n(5559),i=n(3697),a=n(1721),l=n(2753),s=o(a());r(s,{getPolyfill:a,implementation:i,shim:l}),e.exports=s},1721:function(e,t,n){"use strict";var r=n(3697),o=n(4289).supportsDescriptors,i=Object.getOwnPropertyDescriptor;e.exports=function(){if(o&&"gim"===/a/gim.flags){var e=i(RegExp.prototype,"flags");if(e&&"function"==typeof e.get&&"boolean"==typeof RegExp.prototype.dotAll&&"boolean"==typeof RegExp.prototype.hasIndices){var t="",n={};if(Object.defineProperty(n,"hasIndices",{get:function(){t+="d"}}),Object.defineProperty(n,"sticky",{get:function(){t+="y"}}),"dy"===t)return e.get}}return r}},2753:function(e,t,n){"use strict";var r=n(4289).supportsDescriptors,o=n(1721),i=Object.getOwnPropertyDescriptor,a=Object.defineProperty,l=TypeError,s=Object.getPrototypeOf,c=/a/;e.exports=function(){if(!r||!s)throw new l("RegExp.prototype.flags requires a true ES5 environment that supports property descriptors");var e=o(),t=s(c),n=i(t,"flags");return n&&n.get===e||a(t,"flags",{configurable:!0,enumerable:!1,get:e}),e}},6399:function(e){e.exports=function(e,t,n){return function(r){if(e[0]===e[1]||t[0]===t[1])return t[0];var o=(t[1]-t[0])/(e[1]-e[0]),i=t[0]+o*(r-e[0]);return n?Math.min(t[1],Math.max(t[0],i)):i}}},4760:function(e){var t=["input","select","textarea","a[href]","button","[tabindex]","audio[controls]","video[controls]",'[contenteditable]:not([contenteditable="false"])'],n=t.join(","),r="undefined"==typeof Element?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector;function o(e,t){t=t||{};var o,a,l,u=[],d=[],f=new p(e.ownerDocument||e),m=e.querySelectorAll(n);for(t.includeContainer&&r.call(e,n)&&(m=Array.prototype.slice.apply(m)).unshift(e),o=0;o<m.length;o++)i(a=m[o],f)&&(0===(l=s(a))?u.push(a):d.push({documentOrder:o,tabIndex:l,node:a}));return d.sort(c).map((function(e){return e.node})).concat(u)}function i(e,t){return!(!a(e,t)||function(e){return function(e){return u(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t=e.ownerDocument.querySelectorAll('input[type="radio"][name="'+e.name+'"]'),n=function(e){for(var t=0;t<e.length;t++)if(e[t].checked)return e[t]}(t);return!n||n===e}(e)}(e)||s(e)<0)}function a(e,t){return t=t||new p(e.ownerDocument||e),!(e.disabled||function(e){return u(e)&&"hidden"===e.type}(e)||t.isUntouchable(e))}o.isTabbable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,n)&&i(e,t)},o.isFocusable=function(e,t){if(!e)throw new Error("No node provided");return!1!==r.call(e,l)&&a(e,t)};var l=t.concat("iframe").join(",");function s(e){var t=parseInt(e.getAttribute("tabindex"),10);return isNaN(t)?function(e){return"true"===e.contentEditable}(e)?0:e.tabIndex:t}function c(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex}function u(e){return"INPUT"===e.tagName}function p(e){this.doc=e,this.cache=[]}p.prototype.hasDisplayNone=function(e,t){if(e.nodeType!==Node.ELEMENT_NODE)return!1;var n=function(e,t){for(var n=0,r=e.length;n<r;n++)if(t(e[n]))return e[n]}(this.cache,(function(t){return t===e}));if(n)return n[1];var r=!1;return"none"===(t=t||this.doc.defaultView.getComputedStyle(e)).display?r=!0:e.parentNode&&(r=this.hasDisplayNone(e.parentNode)),this.cache.push([e,r]),r},p.prototype.isUntouchable=function(e){if(e===this.doc.documentElement)return!1;var t=this.doc.defaultView.getComputedStyle(e);return!!this.hasDisplayNone(e,t)||"hidden"===t.visibility},e.exports=o},1742:function(e){e.exports=function(){var e=document.getSelection();if(!e.rangeCount)return function(){};for(var t=document.activeElement,n=[],r=0;r<e.rangeCount;r++)n.push(e.getRangeAt(r));switch(t.tagName.toUpperCase()){case"INPUT":case"TEXTAREA":t.blur();break;default:t=null}return e.removeAllRanges(),function(){"Caret"===e.type&&e.removeAllRanges(),e.rangeCount||n.forEach((function(t){e.addRange(t)})),t&&t.focus()}}},5933:function(e,t,n){var r;!function(){function o(e,t,n){return e.call.apply(e.bind,arguments)}function i(e,t,n){if(!e)throw Error();if(2<arguments.length){var r=Array.prototype.slice.call(arguments,2);return function(){var n=Array.prototype.slice.call(arguments);return Array.prototype.unshift.apply(n,r),e.apply(t,n)}}return function(){return e.apply(t,arguments)}}function a(e,t,n){return(a=Function.prototype.bind&&-1!=Function.prototype.bind.toString().indexOf("native code")?o:i).apply(null,arguments)}var l=Date.now||function(){return+new Date};function s(e,t){this.a=e,this.o=t||e,this.c=this.o.document}var c=!!window.FontFace;function u(e,t,n,r){if(t=e.c.createElement(t),n)for(var o in n)n.hasOwnProperty(o)&&("style"==o?t.style.cssText=n[o]:t.setAttribute(o,n[o]));return r&&t.appendChild(e.c.createTextNode(r)),t}function p(e,t,n){(e=e.c.getElementsByTagName(t)[0])||(e=document.documentElement),e.insertBefore(n,e.lastChild)}function d(e){e.parentNode&&e.parentNode.removeChild(e)}function f(e,t,n){t=t||[],n=n||[];for(var r=e.className.split(/\s+/),o=0;o<t.length;o+=1){for(var i=!1,a=0;a<r.length;a+=1)if(t[o]===r[a]){i=!0;break}i||r.push(t[o])}for(t=[],o=0;o<r.length;o+=1){for(i=!1,a=0;a<n.length;a+=1)if(r[o]===n[a]){i=!0;break}i||t.push(r[o])}e.className=t.join(" ").replace(/\s+/g," ").replace(/^\s+|\s+$/,"")}function m(e,t){for(var n=e.className.split(/\s+/),r=0,o=n.length;r<o;r++)if(n[r]==t)return!0;return!1}function h(e,t,n){function r(){l&&o&&i&&(l(a),l=null)}t=u(e,"link",{rel:"stylesheet",href:t,media:"all"});var o=!1,i=!0,a=null,l=n||null;c?(t.onload=function(){o=!0,r()},t.onerror=function(){o=!0,a=Error("Stylesheet failed to load"),r()}):setTimeout((function(){o=!0,r()}),0),p(e,"head",t)}function g(e,t,n,r){var o=e.c.getElementsByTagName("head")[0];if(o){var i=u(e,"script",{src:t}),a=!1;return i.onload=i.onreadystatechange=function(){a||this.readyState&&"loaded"!=this.readyState&&"complete"!=this.readyState||(a=!0,n&&n(null),i.onload=i.onreadystatechange=null,"HEAD"==i.parentNode.tagName&&o.removeChild(i))},o.appendChild(i),setTimeout((function(){a||(a=!0,n&&n(Error("Script load timeout")))}),r||5e3),i}return null}function v(){this.a=0,this.c=null}function b(e){return e.a++,function(){e.a--,w(e)}}function y(e,t){e.c=t,w(e)}function w(e){0==e.a&&e.c&&(e.c(),e.c=null)}function O(e){this.a=e||"-"}function _(e,t){this.c=e,this.f=4,this.a="n";var n=(t||"n4").match(/^([nio])([1-9])$/i);n&&(this.a=n[1],this.f=parseInt(n[2],10))}function E(e){var t=[];e=e.split(/,\s*/);for(var n=0;n<e.length;n++){var r=e[n].replace(/['"]/g,"");-1!=r.indexOf(" ")||/^\d/.test(r)?t.push("'"+r+"'"):t.push(r)}return t.join(",")}function P(e){return e.a+e.f}function S(e){var t="normal";return"o"===e.a?t="oblique":"i"===e.a&&(t="italic"),t}function j(e){var t=4,n="n",r=null;return e&&((r=e.match(/(normal|oblique|italic)/i))&&r[1]&&(n=r[1].substr(0,1).toLowerCase()),(r=e.match(/([1-9]00|normal|bold)/i))&&r[1]&&(/bold/i.test(r[1])?t=7:/[1-9]00/.test(r[1])&&(t=parseInt(r[1].substr(0,1),10)))),n+t}function C(e,t){this.c=e,this.f=e.o.document.documentElement,this.h=t,this.a=new O("-"),this.j=!1!==t.events,this.g=!1!==t.classes}function x(e){if(e.g){var t=m(e.f,e.a.c("wf","active")),n=[],r=[e.a.c("wf","loading")];t||n.push(e.a.c("wf","inactive")),f(e.f,n,r)}k(e,"inactive")}function k(e,t,n){e.j&&e.h[t]&&(n?e.h[t](n.c,P(n)):e.h[t]())}function I(){this.c={}}function D(e,t){this.c=e,this.f=t,this.a=u(this.c,"span",{"aria-hidden":"true"},this.f)}function N(e){p(e.c,"body",e.a)}function T(e){return"display:block;position:absolute;top:-9999px;left:-9999px;font-size:300px;width:auto;height:auto;line-height:normal;margin:0;padding:0;font-variant:normal;white-space:nowrap;font-family:"+E(e.c)+";font-style:"+S(e)+";font-weight:"+e.f+"00;"}function A(e,t,n,r,o,i){this.g=e,this.j=t,this.a=r,this.c=n,this.f=o||3e3,this.h=i||void 0}function R(e,t,n,r,o,i,a){this.v=e,this.B=t,this.c=n,this.a=r,this.s=a||"BESbswy",this.f={},this.w=o||3e3,this.u=i||null,this.m=this.j=this.h=this.g=null,this.g=new D(this.c,this.s),this.h=new D(this.c,this.s),this.j=new D(this.c,this.s),this.m=new D(this.c,this.s),e=T(e=new _(this.a.c+",serif",P(this.a))),this.g.a.style.cssText=e,e=T(e=new _(this.a.c+",sans-serif",P(this.a))),this.h.a.style.cssText=e,e=T(e=new _("serif",P(this.a))),this.j.a.style.cssText=e,e=T(e=new _("sans-serif",P(this.a))),this.m.a.style.cssText=e,N(this.g),N(this.h),N(this.j),N(this.m)}O.prototype.c=function(e){for(var t=[],n=0;n<arguments.length;n++)t.push(arguments[n].replace(/[\W_]+/g,"").toLowerCase());return t.join(this.a)},A.prototype.start=function(){var e=this.c.o.document,t=this,n=l(),r=new Promise((function(r,o){!function i(){l()-n>=t.f?o():e.fonts.load(function(e){return S(e)+" "+e.f+"00 300px "+E(e.c)}(t.a),t.h).then((function(e){1<=e.length?r():setTimeout(i,25)}),(function(){o()}))}()})),o=null,i=new Promise((function(e,n){o=setTimeout(n,t.f)}));Promise.race([i,r]).then((function(){o&&(clearTimeout(o),o=null),t.g(t.a)}),(function(){t.j(t.a)}))};var M={D:"serif",C:"sans-serif"},L=null;function B(){if(null===L){var e=/AppleWebKit\/([0-9]+)(?:\.([0-9]+))/.exec(window.navigator.userAgent);L=!!e&&(536>parseInt(e[1],10)||536===parseInt(e[1],10)&&11>=parseInt(e[2],10))}return L}function F(e,t,n){for(var r in M)if(M.hasOwnProperty(r)&&t===e.f[M[r]]&&n===e.f[M[r]])return!0;return!1}function z(e){var t,n=e.g.a.offsetWidth,r=e.h.a.offsetWidth;(t=n===e.f.serif&&r===e.f["sans-serif"])||(t=B()&&F(e,n,r)),t?l()-e.A>=e.w?B()&&F(e,n,r)&&(null===e.u||e.u.hasOwnProperty(e.a.c))?V(e,e.v):V(e,e.B):function(e){setTimeout(a((function(){z(this)}),e),50)}(e):V(e,e.v)}function V(e,t){setTimeout(a((function(){d(this.g.a),d(this.h.a),d(this.j.a),d(this.m.a),t(this.a)}),e),0)}function U(e,t,n){this.c=e,this.a=t,this.f=0,this.m=this.j=!1,this.s=n}R.prototype.start=function(){this.f.serif=this.j.a.offsetWidth,this.f["sans-serif"]=this.m.a.offsetWidth,this.A=l(),z(this)};var H=null;function W(e){0==--e.f&&e.j&&(e.m?((e=e.a).g&&f(e.f,[e.a.c("wf","active")],[e.a.c("wf","loading"),e.a.c("wf","inactive")]),k(e,"active")):x(e.a))}function G(e){this.j=e,this.a=new I,this.h=0,this.f=this.g=!0}function $(e,t,n,r,o){var i=0==--e.h;(e.f||e.g)&&setTimeout((function(){var e=o||null,l=r||{};if(0===n.length&&i)x(t.a);else{t.f+=n.length,i&&(t.j=i);var s,c=[];for(s=0;s<n.length;s++){var u=n[s],p=l[u.c],d=t.a,m=u;if(d.g&&f(d.f,[d.a.c("wf",m.c,P(m).toString(),"loading")]),k(d,"fontloading",m),d=null,null===H)if(window.FontFace){m=/Gecko.*Firefox\/(\d+)/.exec(window.navigator.userAgent);var h=/OS X.*Version\/10\..*Safari/.exec(window.navigator.userAgent)&&/Apple/.exec(window.navigator.vendor);H=m?42<parseInt(m[1],10):!h}else H=!1;d=H?new A(a(t.g,t),a(t.h,t),t.c,u,t.s,p):new R(a(t.g,t),a(t.h,t),t.c,u,t.s,e,p),c.push(d)}for(s=0;s<c.length;s++)c[s].start()}}),0)}function q(e,t){this.c=e,this.a=t}function Z(e,t){this.c=e,this.a=t}function K(e,t){this.c=e||Y,this.a=[],this.f=[],this.g=t||""}U.prototype.g=function(e){var t=this.a;t.g&&f(t.f,[t.a.c("wf",e.c,P(e).toString(),"active")],[t.a.c("wf",e.c,P(e).toString(),"loading"),t.a.c("wf",e.c,P(e).toString(),"inactive")]),k(t,"fontactive",e),this.m=!0,W(this)},U.prototype.h=function(e){var t=this.a;if(t.g){var n=m(t.f,t.a.c("wf",e.c,P(e).toString(),"active")),r=[],o=[t.a.c("wf",e.c,P(e).toString(),"loading")];n||r.push(t.a.c("wf",e.c,P(e).toString(),"inactive")),f(t.f,r,o)}k(t,"fontinactive",e),W(this)},G.prototype.load=function(e){this.c=new s(this.j,e.context||this.j),this.g=!1!==e.events,this.f=!1!==e.classes,function(e,t,n){var r=[],o=n.timeout;!function(e){e.g&&f(e.f,[e.a.c("wf","loading")]),k(e,"loading")}(t);r=function(e,t,n){var r,o=[];for(r in t)if(t.hasOwnProperty(r)){var i=e.c[r];i&&o.push(i(t[r],n))}return o}(e.a,n,e.c);var i=new U(e.c,t,o);for(e.h=r.length,t=0,n=r.length;t<n;t++)r[t].load((function(t,n,r){$(e,i,t,n,r)}))}(this,new C(this.c,e),e)},q.prototype.load=function(e){function t(){if(i["__mti_fntLst"+r]){var n,o=i["__mti_fntLst"+r](),a=[];if(o)for(var l=0;l<o.length;l++){var s=o[l].fontfamily;null!=o[l].fontStyle&&null!=o[l].fontWeight?(n=o[l].fontStyle+o[l].fontWeight,a.push(new _(s,n))):a.push(new _(s))}e(a)}else setTimeout((function(){t()}),50)}var n=this,r=n.a.projectId,o=n.a.version;if(r){var i=n.c.o;g(this.c,(n.a.api||"https://fast.fonts.net/jsapi")+"/"+r+".js"+(o?"?v="+o:""),(function(o){o?e([]):(i["__MonotypeConfiguration__"+r]=function(){return n.a},t())})).id="__MonotypeAPIScript__"+r}else e([])},Z.prototype.load=function(e){var t,n,r=this.a.urls||[],o=this.a.families||[],i=this.a.testStrings||{},a=new v;for(t=0,n=r.length;t<n;t++)h(this.c,r[t],b(a));var l=[];for(t=0,n=o.length;t<n;t++)if((r=o[t].split(":"))[1])for(var s=r[1].split(","),c=0;c<s.length;c+=1)l.push(new _(r[0],s[c]));else l.push(new _(r[0]));y(a,(function(){e(l,i)}))};var Y="https://fonts.googleapis.com/css";function X(e){this.f=e,this.a=[],this.c={}}var J={latin:"BESbswy","latin-ext":"çöüğş",cyrillic:"йяЖ",greek:"αβΣ",khmer:"កខគ",Hanuman:"កខគ"},Q={thin:"1",extralight:"2","extra-light":"2",ultralight:"2","ultra-light":"2",light:"3",regular:"4",book:"4",medium:"5","semi-bold":"6",semibold:"6","demi-bold":"6",demibold:"6",bold:"7","extra-bold":"8",extrabold:"8","ultra-bold":"8",ultrabold:"8",black:"9",heavy:"9",l:"3",r:"4",b:"7"},ee={i:"i",italic:"i",n:"n",normal:"n"},te=/^(thin|(?:(?:extra|ultra)-?)?light|regular|book|medium|(?:(?:semi|demi|extra|ultra)-?)?bold|black|heavy|l|r|b|[1-9]00)?(n|i|normal|italic)?$/;function ne(e,t){this.c=e,this.a=t}var re={Arimo:!0,Cousine:!0,Tinos:!0};function oe(e,t){this.c=e,this.a=t}function ie(e,t){this.c=e,this.f=t,this.a=[]}ne.prototype.load=function(e){var t=new v,n=this.c,r=new K(this.a.api,this.a.text),o=this.a.families;!function(e,t){for(var n=t.length,r=0;r<n;r++){var o=t[r].split(":");3==o.length&&e.f.push(o.pop());var i="";2==o.length&&""!=o[1]&&(i=":"),e.a.push(o.join(i))}}(r,o);var i=new X(o);!function(e){for(var t=e.f.length,n=0;n<t;n++){var r=e.f[n].split(":"),o=r[0].replace(/\+/g," "),i=["n4"];if(2<=r.length){var a;if(a=[],l=r[1])for(var l,s=(l=l.split(",")).length,c=0;c<s;c++){var u;if((u=l[c]).match(/^[\w-]+$/))if(null==(p=te.exec(u.toLowerCase())))u="";else{if(u=null==(u=p[2])||""==u?"n":ee[u],null==(p=p[1])||""==p)p="4";else var p=Q[p]||(isNaN(p)?"4":p.substr(0,1));u=[u,p].join("")}else u="";u&&a.push(u)}0<a.length&&(i=a),3==r.length&&(a=[],0<(r=(r=r[2])?r.split(","):a).length&&(r=J[r[0]])&&(e.c[o]=r))}for(e.c[o]||(r=J[o])&&(e.c[o]=r),r=0;r<i.length;r+=1)e.a.push(new _(o,i[r]))}}(i),h(n,function(e){if(0==e.a.length)throw Error("No fonts to load!");if(-1!=e.c.indexOf("kit="))return e.c;for(var t=e.a.length,n=[],r=0;r<t;r++)n.push(e.a[r].replace(/ /g,"+"));return t=e.c+"?family="+n.join("%7C"),0<e.f.length&&(t+="&subset="+e.f.join(",")),0<e.g.length&&(t+="&text="+encodeURIComponent(e.g)),t}(r),b(t)),y(t,(function(){e(i.a,i.c,re)}))},oe.prototype.load=function(e){var t=this.a.id,n=this.c.o;t?g(this.c,(this.a.api||"https://use.typekit.net")+"/"+t+".js",(function(t){if(t)e([]);else if(n.Typekit&&n.Typekit.config&&n.Typekit.config.fn){t=n.Typekit.config.fn;for(var r=[],o=0;o<t.length;o+=2)for(var i=t[o],a=t[o+1],l=0;l<a.length;l++)r.push(new _(i,a[l]));try{n.Typekit.load({events:!1,classes:!1,async:!0})}catch(e){}e(r)}}),2e3):e([])},ie.prototype.load=function(e){var t=this.f.id,n=this.c.o,r=this;t?(n.__webfontfontdeckmodule__||(n.__webfontfontdeckmodule__={}),n.__webfontfontdeckmodule__[t]=function(t,n){for(var o=0,i=n.fonts.length;o<i;++o){var a=n.fonts[o];r.a.push(new _(a.name,j("font-weight:"+a.weight+";font-style:"+a.style)))}e(r.a)},g(this.c,(this.f.api||"https://f.fontdeck.com/s/css/js/")+function(e){return e.o.location.hostname||e.a.location.hostname}(this.c)+"/"+t+".js",(function(t){t&&e([])}))):e([])};var ae=new G(window);ae.a.c.custom=function(e,t){return new Z(t,e)},ae.a.c.fontdeck=function(e,t){return new ie(t,e)},ae.a.c.monotype=function(e,t){return new q(t,e)},ae.a.c.typekit=function(e,t){return new oe(t,e)},ae.a.c.google=function(e,t){return new ne(t,e)};var le={load:a(ae.load,ae)};void 0===(r=function(){return le}.call(t,n,t,e))||(e.exports=r)}()},7529:function(e){e.exports=function(){for(var e={},n=0;n<arguments.length;n++){var r=arguments[n];for(var o in r)t.call(r,o)&&(e[o]=r[o])}return e};var t=Object.prototype.hasOwnProperty},1764:function(e,t,n){var r={"./ct-addable-box.js":9231,"./ct-background.js":8219,"./ct-border.js":9847,"./ct-box-shadow.js":2076,"./ct-button.js":4056,"./ct-checkboxes.js":3817,"./ct-color-palettes-mirror.js":6701,"./ct-color-palettes-picker.js":9727,"./ct-color-picker.js":4910,"./ct-customize-section-title-actions.js":7910,"./ct-customizer-reset-options.js":7941,"./ct-divider.js":5457,"./ct-footer-builder.js":5186,"./ct-header-builder.js":1829,"./ct-image-picker.js":1650,"./ct-image-uploader.js":7402,"./ct-layers-combined.js":532,"./ct-layers-mirror.js":7525,"./ct-layers.js":543,"./ct-multi-image-uploader.js":8652,"./ct-notification.js":3570,"./ct-number.js":8153,"./ct-panel.js":9999,"./ct-radio.js":3781,"./ct-ratio.js":7812,"./ct-select.js":2425,"./ct-slider.js":254,"./ct-spacer.js":3480,"./ct-spacing.js":5954,"./ct-switch.js":7809,"./ct-title.js":9697,"./ct-typography.js":16,"./ct-visibility.js":9109,"./ct-woocommerce-columns-and-rows.js":7475,"./ct-woocommerce-ratio.js":7762,"./date-time-picker.js":5502,"./hidden.js":2242,"./html.js":2616,"./jsx.js":5200,"./react-outside-click-handler.js":1511,"./text.js":4658,"./textarea.js":8670,"./wp-editor.js":227};function o(e){var t=i(e);return n(t)}function i(e){if(!n.o(r,e)){var t=new Error("Cannot find module '"+e+"'");throw t.code="MODULE_NOT_FOUND",t}return r[e]}o.keys=function(){return Object.keys(r)},o.resolve=i,e.exports=o,o.id=1764},7363:function(e){"use strict";e.exports=React},1533:function(e){"use strict";e.exports=ReactDOM},2243:function(e){"use strict";e.exports=ctEvents},5311:function(e){"use strict";e.exports=jQuery},6715:function(e){"use strict";e.exports=window._},8441:function(e){"use strict";e.exports=window.wp.components},1381:function(e){"use strict";e.exports=window.wp.element},5652:function(e){"use strict";e.exports=window.wp.i18n},7326:function(e,t,n){"use strict";function r(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}n.d(t,{Z:function(){return r}})},4942:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9142);function o(e,t,n){return(t=(0,r.Z)(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},7462:function(e,t,n){"use strict";function r(){return r=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},r.apply(this,arguments)}n.r(t),n.d(t,{default:function(){return r}})},4578:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(9611);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,r.Z)(e,t)}},3366:function(e,t,n){"use strict";function r(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r<i.length;r++)n=i[r],t.indexOf(n)>=0||(o[n]=e[n]);return o}n.r(t),n.d(t,{default:function(){return r}})},9611:function(e,t,n){"use strict";function r(e,t){return r=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},r(e,t)}n.d(t,{Z:function(){return r}})},9142:function(e,t,n){"use strict";n.d(t,{Z:function(){return o}});var r=n(1002);function o(e){var t=function(e,t){if("object"!==(0,r.Z)(e)||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var o=n.call(e,t||"default");if("object"!==(0,r.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"===(0,r.Z)(t)?t:String(t)}},1002:function(e,t,n){"use strict";function r(e){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},r(e)}n.d(t,{Z:function(){return r}})},2329:function(e,t,n){"use strict";n.d(t,{uT:function(){return wn},q:function(){return Fn}});var r=n(7363),o=Object.defineProperty,i={};((e,t)=>{for(var n in t)o(e,n,{get:t[n],enumerable:!0})})(i,{assign:()=>B,colors:()=>R,createStringInterpolator:()=>D,skipAnimation:()=>M,to:()=>N,willAdvance:()=>L});var a=_(),l=e=>b(e,a),s=_();l.write=e=>b(e,s);var c=_();l.onStart=e=>b(e,c);var u=_();l.onFrame=e=>b(e,u);var p=_();l.onFinish=e=>b(e,p);var d=[];l.setTimeout=(e,t)=>{const n=l.now()+t,r=()=>{const e=d.findIndex((e=>e.cancel==r));~e&&d.splice(e,1),g-=~e?1:0},o={time:n,handler:e,cancel:r};return d.splice(f(n),0,o),g+=1,y(),o};var f=e=>~(~d.findIndex((t=>t.time>e))||~d.length);l.cancel=e=>{c.delete(e),u.delete(e),p.delete(e),a.delete(e),s.delete(e)},l.sync=e=>{v=!0,l.batchedUpdates(e),v=!1},l.throttle=e=>{let t;function n(){try{e(...t)}finally{t=null}}function r(...e){t=e,l.onStart(n)}return r.handler=e,r.cancel=()=>{c.delete(n),t=null},r};var m="undefined"!=typeof window?window.requestAnimationFrame:()=>{};l.use=e=>m=e,l.now="undefined"!=typeof performance?()=>performance.now():Date.now,l.batchedUpdates=e=>e(),l.catch=console.error,l.frameLoop="always",l.advance=()=>{"demand"!==l.frameLoop?console.warn("Cannot call the manual advancement of rafz whilst frameLoop is not set as demand"):O()};var h=-1,g=0,v=!1;function b(e,t){v?(t.delete(e),e(0)):(t.add(e),y())}function y(){h<0&&(h=0,"demand"!==l.frameLoop&&m(w))}function w(){~h&&(m(w),l.batchedUpdates(O))}function O(){const e=h;h=l.now();const t=f(h);t&&(E(d.splice(0,t),(e=>e.handler())),g-=t),g?(c.flush(),a.flush(e?Math.min(64,h-e):16.667),u.flush(),s.flush(),p.flush()):h=-1}function _(){let e=new Set,t=e;return{add(n){g+=t!=e||e.has(n)?0:1,e.add(n)},delete(n){return g-=t==e&&e.has(n)?1:0,e.delete(n)},flush(n){t.size&&(e=new Set,g-=t.size,E(t,(t=>t(n)&&e.add(t))),g+=e.size,t=e)}}}function E(e,t){e.forEach((e=>{try{t(e)}catch(e){l.catch(e)}}))}function P(){}var S={arr:Array.isArray,obj:e=>!!e&&"Object"===e.constructor.name,fun:e=>"function"==typeof e,str:e=>"string"==typeof e,num:e=>"number"==typeof e,und:e=>void 0===e};function j(e,t){if(S.arr(e)){if(!S.arr(t)||e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}return e===t}var C=(e,t)=>e.forEach(t);function x(e,t,n){if(S.arr(e))for(let r=0;r<e.length;r++)t.call(n,e[r],`${r}`);else for(const r in e)e.hasOwnProperty(r)&&t.call(n,e[r],r)}var k=e=>S.und(e)?[]:S.arr(e)?e:[e];function I(e,t){if(e.size){const n=Array.from(e);e.clear(),C(n,t)}}var D,N,T=(e,...t)=>I(e,(e=>e(...t))),A=()=>"undefined"==typeof window||!window.navigator||/ServerSideRendering|^Deno\//.test(window.navigator.userAgent),R=null,M=!1,L=P,B=e=>{e.to&&(N=e.to),e.now&&(l.now=e.now),void 0!==e.colors&&(R=e.colors),null!=e.skipAnimation&&(M=e.skipAnimation),e.createStringInterpolator&&(D=e.createStringInterpolator),e.requestAnimationFrame&&l.use(e.requestAnimationFrame),e.batchedUpdates&&(l.batchedUpdates=e.batchedUpdates),e.willAdvance&&(L=e.willAdvance),e.frameLoop&&(l.frameLoop=e.frameLoop)},F=new Set,z=[],V=[],U=0,H={get idle(){return!F.size&&!z.length},start(e){U>e.priority?(F.add(e),l.onStart(W)):(G(e),l(q))},advance:q,sort(e){if(U)l.onFrame((()=>H.sort(e)));else{const t=z.indexOf(e);~t&&(z.splice(t,1),$(e))}},clear(){z=[],F.clear()}};function W(){F.forEach(G),F.clear(),l(q)}function G(e){z.includes(e)||$(e)}function $(e){z.splice(function(e,t){const n=e.findIndex(t);return n<0?e.length:n}(z,(t=>t.priority>e.priority)),0,e)}function q(e){const t=V;for(let n=0;n<z.length;n++){const r=z[n];U=r.priority,r.idle||(L(r),r.advance(e),r.idle||t.push(r))}return U=0,(V=z).length=0,(z=t).length>0}var Z="[-+]?\\d*\\.?\\d+",K=Z+"%";function Y(...e){return"\\(\\s*("+e.join(")\\s*,\\s*(")+")\\s*\\)"}var X=new RegExp("rgb"+Y(Z,Z,Z)),J=new RegExp("rgba"+Y(Z,Z,Z,Z)),Q=new RegExp("hsl"+Y(Z,K,K)),ee=new RegExp("hsla"+Y(Z,K,K,Z)),te=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,ne=/^#([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})([0-9a-fA-F]{1})$/,re=/^#([0-9a-fA-F]{6})$/,oe=/^#([0-9a-fA-F]{8})$/;function ie(e,t,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?e+6*(t-e)*n:n<.5?t:n<2/3?e+(t-e)*(2/3-n)*6:e}function ae(e,t,n){const r=n<.5?n*(1+t):n+t-n*t,o=2*n-r,i=ie(o,r,e+1/3),a=ie(o,r,e),l=ie(o,r,e-1/3);return Math.round(255*i)<<24|Math.round(255*a)<<16|Math.round(255*l)<<8}function le(e){const t=parseInt(e,10);return t<0?0:t>255?255:t}function se(e){return(parseFloat(e)%360+360)%360/360}function ce(e){const t=parseFloat(e);return t<0?0:t>1?255:Math.round(255*t)}function ue(e){const t=parseFloat(e);return t<0?0:t>100?1:t/100}function pe(e){let t=function(e){let t;return"number"==typeof e?e>>>0===e&&e>=0&&e<=4294967295?e:null:(t=re.exec(e))?parseInt(t[1]+"ff",16)>>>0:R&&void 0!==R[e]?R[e]:(t=X.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|255)>>>0:(t=J.exec(e))?(le(t[1])<<24|le(t[2])<<16|le(t[3])<<8|ce(t[4]))>>>0:(t=te.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+"ff",16)>>>0:(t=oe.exec(e))?parseInt(t[1],16)>>>0:(t=ne.exec(e))?parseInt(t[1]+t[1]+t[2]+t[2]+t[3]+t[3]+t[4]+t[4],16)>>>0:(t=Q.exec(e))?(255|ae(se(t[1]),ue(t[2]),ue(t[3])))>>>0:(t=ee.exec(e))?(ae(se(t[1]),ue(t[2]),ue(t[3]))|ce(t[4]))>>>0:null}(e);if(null===t)return e;t=t||0;return`rgba(${(4278190080&t)>>>24}, ${(16711680&t)>>>16}, ${(65280&t)>>>8}, ${(255&t)/255})`}var de=(e,t,n)=>{if(S.fun(e))return e;if(S.arr(e))return de({range:e,output:t,extrapolate:n});if(S.str(e.output[0]))return D(e);const r=e,o=r.output,i=r.range||[0,1],a=r.extrapolateLeft||r.extrapolate||"extend",l=r.extrapolateRight||r.extrapolate||"extend",s=r.easing||(e=>e);return e=>{const t=function(e,t){for(var n=1;n<t.length-1&&!(t[n]>=e);++n);return n-1}(e,i);return function(e,t,n,r,o,i,a,l,s){let c=s?s(e):e;if(c<t){if("identity"===a)return c;"clamp"===a&&(c=t)}if(c>n){if("identity"===l)return c;"clamp"===l&&(c=n)}if(r===o)return r;if(t===n)return e<=t?r:o;t===-1/0?c=-c:n===1/0?c-=t:c=(c-t)/(n-t);c=i(c),r===-1/0?c=-c:o===1/0?c+=r:c=c*(o-r)+r;return c}(e,i[t],i[t+1],o[t],o[t+1],s,a,l,r.map)}};var fe=1.70158,me=1.525*fe,he=fe+1,ge=2*Math.PI/3,ve=2*Math.PI/4.5,be=e=>{const t=7.5625,n=2.75;return e<1/n?t*e*e:e<2/n?t*(e-=1.5/n)*e+.75:e<2.5/n?t*(e-=2.25/n)*e+.9375:t*(e-=2.625/n)*e+.984375},ye={linear:e=>e,easeInQuad:e=>e*e,easeOutQuad:e=>1-(1-e)*(1-e),easeInOutQuad:e=>e<.5?2*e*e:1-Math.pow(-2*e+2,2)/2,easeInCubic:e=>e*e*e,easeOutCubic:e=>1-Math.pow(1-e,3),easeInOutCubic:e=>e<.5?4*e*e*e:1-Math.pow(-2*e+2,3)/2,easeInQuart:e=>e*e*e*e,easeOutQuart:e=>1-Math.pow(1-e,4),easeInOutQuart:e=>e<.5?8*e*e*e*e:1-Math.pow(-2*e+2,4)/2,easeInQuint:e=>e*e*e*e*e,easeOutQuint:e=>1-Math.pow(1-e,5),easeInOutQuint:e=>e<.5?16*e*e*e*e*e:1-Math.pow(-2*e+2,5)/2,easeInSine:e=>1-Math.cos(e*Math.PI/2),easeOutSine:e=>Math.sin(e*Math.PI/2),easeInOutSine:e=>-(Math.cos(Math.PI*e)-1)/2,easeInExpo:e=>0===e?0:Math.pow(2,10*e-10),easeOutExpo:e=>1===e?1:1-Math.pow(2,-10*e),easeInOutExpo:e=>0===e?0:1===e?1:e<.5?Math.pow(2,20*e-10)/2:(2-Math.pow(2,-20*e+10))/2,easeInCirc:e=>1-Math.sqrt(1-Math.pow(e,2)),easeOutCirc:e=>Math.sqrt(1-Math.pow(e-1,2)),easeInOutCirc:e=>e<.5?(1-Math.sqrt(1-Math.pow(2*e,2)))/2:(Math.sqrt(1-Math.pow(-2*e+2,2))+1)/2,easeInBack:e=>he*e*e*e-fe*e*e,easeOutBack:e=>1+he*Math.pow(e-1,3)+fe*Math.pow(e-1,2),easeInOutBack:e=>e<.5?Math.pow(2*e,2)*(7.189819*e-me)/2:(Math.pow(2*e-2,2)*((me+1)*(2*e-2)+me)+2)/2,easeInElastic:e=>0===e?0:1===e?1:-Math.pow(2,10*e-10)*Math.sin((10*e-10.75)*ge),easeOutElastic:e=>0===e?0:1===e?1:Math.pow(2,-10*e)*Math.sin((10*e-.75)*ge)+1,easeInOutElastic:e=>0===e?0:1===e?1:e<.5?-Math.pow(2,20*e-10)*Math.sin((20*e-11.125)*ve)/2:Math.pow(2,-20*e+10)*Math.sin((20*e-11.125)*ve)/2+1,easeInBounce:e=>1-be(1-e),easeOutBounce:be,easeInOutBounce:e=>e<.5?(1-be(1-2*e))/2:(1+be(2*e-1))/2,steps:(e,t="end")=>n=>{const r=(n="end"===t?Math.min(n,.999):Math.max(n,.001))*e,o="end"===t?Math.floor(r):Math.ceil(r);return i=0,a=1,l=o/e,Math.min(Math.max(l,i),a);var i,a,l}},we=Symbol.for("FluidValue.get"),Oe=Symbol.for("FluidValue.observers"),_e=e=>Boolean(e&&e[we]),Ee=e=>e&&e[we]?e[we]():e,Pe=e=>e[Oe]||null;function Se(e,t){const n=e[Oe];n&&n.forEach((e=>{!function(e,t){e.eventObserved?e.eventObserved(t):e(t)}(e,t)}))}var je=class{constructor(e){if(!e&&!(e=this.get))throw Error("Unknown getter");Ce(this,e)}},Ce=(e,t)=>De(e,we,t);function xe(e,t){if(e[we]){let n=e[Oe];n||De(e,Oe,n=new Set),n.has(t)||(n.add(t),e.observerAdded&&e.observerAdded(n.size,t))}return t}function ke(e,t){const n=e[Oe];if(n&&n.has(t)){const r=n.size-1;r?n.delete(t):e[Oe]=null,e.observerRemoved&&e.observerRemoved(r,t)}}var Ie,De=(e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}),Ne=/[+\-]?(?:0|[1-9]\d*)(?:\.\d*)?(?:[eE][+\-]?\d+)?/g,Te=/(#(?:[0-9a-f]{2}){2,4}|(#[0-9a-f]{3})|(rgb|hsl)a?\((-?\d+%?[,\s]+){2,3}\s*[\d\.]+%?\))/gi,Ae=new RegExp(`(${Ne.source})(%|[a-z]+)`,"i"),Re=/rgba\(([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+), ([0-9\.-]+)\)/gi,Me=/var\((--[a-zA-Z0-9-_]+),? ?([a-zA-Z0-9 ()%#.,-]+)?\)/,Le=e=>{const[t,n]=Be(e);if(!t||A())return e;const r=window.getComputedStyle(document.documentElement).getPropertyValue(t);if(r)return r.trim();if(n&&n.startsWith("--")){const t=window.getComputedStyle(document.documentElement).getPropertyValue(n);return t||e}return n&&Me.test(n)?Le(n):n||e},Be=e=>{const t=Me.exec(e);if(!t)return[,];const[,n,r]=t;return[n,r]},Fe=(e,t,n,r,o)=>`rgba(${Math.round(t)}, ${Math.round(n)}, ${Math.round(r)}, ${o})`,ze=e=>{Ie||(Ie=R?new RegExp(`(${Object.keys(R).join("|")})(?!\\w)`,"g"):/^\b$/);const t=e.output.map((e=>Ee(e).replace(Me,Le).replace(Te,pe).replace(Ie,pe))),n=t.map((e=>e.match(Ne).map(Number))),r=n[0].map(((e,t)=>n.map((e=>{if(!(t in e))throw Error('The arity of each "output" value must be equal');return e[t]})))).map((t=>de({...e,output:t})));return e=>{const n=!Ae.test(t[0])&&t.find((e=>Ae.test(e)))?.replace(Ne,"");let o=0;return t[0].replace(Ne,(()=>`${r[o++](e)}${n||""}`)).replace(Re,Fe)}},Ve="react-spring: ",Ue=e=>{const t=e;let n=!1;if("function"!=typeof t)throw new TypeError(`${Ve}once requires a function parameter`);return(...e)=>{n||(t(...e),n=!0)}},He=Ue(console.warn);var We=Ue(console.warn);function Ge(e){return S.str(e)&&("#"==e[0]||/\d/.test(e)||!A()&&Me.test(e)||e in(R||{}))}var $e=A()?r.useEffect:r.useLayoutEffect,qe=()=>{const e=(0,r.useRef)(!1);return $e((()=>(e.current=!0,()=>{e.current=!1})),[]),e};function Ze(){const e=(0,r.useState)()[1],t=qe();return()=>{t.current&&e(Math.random())}}var Ke=e=>(0,r.useEffect)(e,Ye),Ye=[];var Xe=Symbol.for("Animated:node"),Je=e=>e&&e[Xe],Qe=(e,t)=>((e,t,n)=>Object.defineProperty(e,t,{value:n,writable:!0,configurable:!0}))(e,Xe,t),et=e=>e&&e[Xe]&&e[Xe].getPayload(),tt=class{constructor(){Qe(this,this)}getPayload(){return this.payload||[]}},nt=class extends tt{constructor(e){super(),this._value=e,this.done=!0,this.durationProgress=0,S.num(this._value)&&(this.lastPosition=this._value)}static create(e){return new nt(e)}getPayload(){return[this]}getValue(){return this._value}setValue(e,t){return S.num(e)&&(this.lastPosition=e,t&&(e=Math.round(e/t)*t,this.done&&(this.lastPosition=e))),this._value!==e&&(this._value=e,!0)}reset(){const{done:e}=this;this.done=!1,S.num(this._value)&&(this.elapsedTime=0,this.durationProgress=0,this.lastPosition=this._value,e&&(this.lastVelocity=null),this.v0=null)}},rt=class extends nt{constructor(e){super(0),this._string=null,this._toString=de({output:[e,e]})}static create(e){return new rt(e)}getValue(){const e=this._string;return null==e?this._string=this._toString(this._value):e}setValue(e){if(S.str(e)){if(e==this._string)return!1;this._string=e,this._value=1}else{if(!super.setValue(e))return!1;this._string=null}return!0}reset(e){e&&(this._toString=de({output:[this.getValue(),e]})),this._value=0,super.reset()}},ot={dependencies:null},it=class extends tt{constructor(e){super(),this.source=e,this.setValue(e)}getValue(e){const t={};return x(this.source,((n,r)=>{(e=>!!e&&e[Xe]===e)(n)?t[r]=n.getValue(e):_e(n)?t[r]=Ee(n):e||(t[r]=n)})),t}setValue(e){this.source=e,this.payload=this._makePayload(e)}reset(){this.payload&&C(this.payload,(e=>e.reset()))}_makePayload(e){if(e){const t=new Set;return x(e,this._addToPayload,t),Array.from(t)}}_addToPayload(e){ot.dependencies&&_e(e)&&ot.dependencies.add(e);const t=et(e);t&&C(t,(e=>this.add(e)))}},at=class extends it{constructor(e){super(e)}static create(e){return new at(e)}getValue(){return this.source.map((e=>e.getValue()))}setValue(e){const t=this.getPayload();return e.length==t.length?t.map(((t,n)=>t.setValue(e[n]))).some(Boolean):(super.setValue(e.map(lt)),!0)}};function lt(e){return(Ge(e)?rt:nt).create(e)}function st(e){const t=Je(e);return t?t.constructor:S.arr(e)?at:Ge(e)?rt:nt}var ct=(e,t)=>{const n=!S.fun(e)||e.prototype&&e.prototype.isReactComponent;return(0,r.forwardRef)(((o,i)=>{const a=(0,r.useRef)(null),s=n&&(0,r.useCallback)((e=>{a.current=function(e,t){e&&(S.fun(e)?e(t):e.current=t);return t}(i,e)}),[i]),[c,u]=function(e,t){const n=new Set;ot.dependencies=n,e.style&&(e={...e,style:t.createAnimatedStyle(e.style)});return e=new it(e),ot.dependencies=null,[e,n]}(o,t),p=Ze(),d=()=>{const e=a.current;if(n&&!e)return;!1===(!!e&&t.applyAnimatedValues(e,c.getValue(!0)))&&p()},f=new ut(d,u),m=(0,r.useRef)();$e((()=>(m.current=f,C(u,(e=>xe(e,f))),()=>{m.current&&(C(m.current.deps,(e=>ke(e,m.current))),l.cancel(m.current.update))}))),(0,r.useEffect)(d,[]),Ke((()=>()=>{const e=m.current;C(e.deps,(t=>ke(t,e)))}));const h=t.getComponentProps(c.getValue());return r.createElement(e,{...h,ref:s})}))},ut=class{constructor(e,t){this.update=e,this.deps=t}eventObserved(e){"change"==e.type&&l.write(this.update)}};var pt=Symbol.for("AnimatedComponent"),dt=e=>S.str(e)?e:e&&S.str(e.displayName)?e.displayName:S.fun(e)&&e.name||null;function ft(e,...t){return S.fun(e)?e(...t):e}var mt=(e,t)=>!0===e||!!(t&&e&&(S.fun(e)?e(t):k(e).includes(t))),ht=(e,t)=>S.obj(e)?t&&e[t]:e,gt=(e,t)=>!0===e.default?e[t]:e.default?e.default[t]:void 0,vt=e=>e,bt=(e,t=vt)=>{let n=yt;e.default&&!0!==e.default&&(e=e.default,n=Object.keys(e));const r={};for(const o of n){const n=t(e[o],o);S.und(n)||(r[o]=n)}return r},yt=["config","onProps","onStart","onChange","onPause","onResume","onRest"],wt={config:1,from:1,to:1,ref:1,loop:1,reset:1,pause:1,cancel:1,reverse:1,immediate:1,default:1,delay:1,onProps:1,onStart:1,onChange:1,onPause:1,onResume:1,onRest:1,onResolve:1,items:1,trail:1,sort:1,expires:1,initial:1,enter:1,update:1,leave:1,children:1,onDestroyed:1,keys:1,callId:1,parentId:1};function Ot(e){const t=function(e){const t={};let n=0;if(x(e,((e,r)=>{wt[r]||(t[r]=e,n++)})),n)return t}(e);if(t){const n={to:t};return x(e,((e,r)=>r in t||(n[r]=e))),n}return{...e}}function _t(e){return e=Ee(e),S.arr(e)?e.map(_t):Ge(e)?i.createStringInterpolator({range:[0,1],output:[e,e]})(1):e}function Et(e){for(const t in e)return!0;return!1}function Pt(e){return S.fun(e)||S.arr(e)&&S.obj(e[0])}function St(e,t){e.ref?.delete(e),t?.delete(e)}function jt(e,t){t&&e.ref!==t&&(e.ref?.delete(e),t.add(e),e.ref=t)}var Ct={tension:170,friction:26,mass:1,damping:1,easing:ye.linear,clamp:!1};function xt(e,t){if(S.und(t.decay)){const n=!S.und(t.tension)||!S.und(t.friction);!n&&S.und(t.frequency)&&S.und(t.damping)&&S.und(t.mass)||(e.duration=void 0,e.decay=void 0),n&&(e.frequency=void 0)}else e.duration=void 0}var kt=[];function It(e,{key:t,props:n,defaultProps:r,state:o,actions:a}){return new Promise(((s,c)=>{let u,p,d=mt(n.cancel??r?.cancel,t);if(d)h();else{S.und(n.pause)||(o.paused=mt(n.pause,t));let e=r?.pause;!0!==e&&(e=o.paused||mt(e,t)),u=ft(n.delay||0,t),e?(o.resumeQueue.add(m),a.pause()):(a.resume(),m())}function f(){o.resumeQueue.add(m),o.timeouts.delete(p),p.cancel(),u=p.time-l.now()}function m(){u>0&&!i.skipAnimation?(o.delayed=!0,p=l.setTimeout(h,u),o.pauseQueue.add(f),o.timeouts.add(p)):h()}function h(){o.delayed&&(o.delayed=!1),o.pauseQueue.delete(f),o.timeouts.delete(p),e<=(o.cancelId||0)&&(d=!0);try{a.start({...n,callId:e,cancel:d},s)}catch(e){c(e)}}}))}var Dt=(e,t)=>1==t.length?t[0]:t.some((e=>e.cancelled))?At(e.get()):t.every((e=>e.noop))?Nt(e.get()):Tt(e.get(),t.every((e=>e.finished))),Nt=e=>({value:e,noop:!0,finished:!0,cancelled:!1}),Tt=(e,t,n=!1)=>({value:e,finished:t,cancelled:n}),At=e=>({value:e,cancelled:!0,finished:!1});function Rt(e,t,n,r){const{callId:o,parentId:a,onRest:s}=t,{asyncTo:c,promise:u}=n;return a||e!==c||t.reset?n.promise=(async()=>{n.asyncId=o,n.asyncTo=e;const p=bt(t,((e,t)=>"onRest"===t?void 0:e));let d,f;const m=new Promise(((e,t)=>(d=e,f=t))),h=e=>{const t=o<=(n.cancelId||0)&&At(r)||o!==n.asyncId&&Tt(r,!1);if(t)throw e.result=t,f(e),e},g=(e,t)=>{const a=new Lt,l=new Bt;return(async()=>{if(i.skipAnimation)throw Mt(n),l.result=Tt(r,!1),f(l),l;h(a);const s=S.obj(e)?{...e}:{...t,to:e};s.parentId=o,x(p,((e,t)=>{S.und(s[t])&&(s[t]=e)}));const c=await r.start(s);return h(a),n.paused&&await new Promise((e=>{n.resumeQueue.add(e)})),c})()};let v;if(i.skipAnimation)return Mt(n),Tt(r,!1);try{let t;t=S.arr(e)?(async e=>{for(const t of e)await g(t)})(e):Promise.resolve(e(g,r.stop.bind(r))),await Promise.all([t.then(d),m]),v=Tt(r.get(),!0,!1)}catch(e){if(e instanceof Lt)v=e.result;else{if(!(e instanceof Bt))throw e;v=e.result}}finally{o==n.asyncId&&(n.asyncId=a,n.asyncTo=a?c:void 0,n.promise=a?u:void 0)}return S.fun(s)&&l.batchedUpdates((()=>{s(v,r,r.item)})),v})():u}function Mt(e,t){I(e.timeouts,(e=>e.cancel())),e.pauseQueue.clear(),e.resumeQueue.clear(),e.asyncId=e.asyncTo=e.promise=void 0,t&&(e.cancelId=t)}var Lt=class extends Error{constructor(){super("An async animation has been interrupted. You see this error because you forgot to use `await` or `.catch(...)` on its returned promise.")}},Bt=class extends Error{constructor(){super("SkipAnimationSignal")}},Ft=e=>e instanceof Vt,zt=1,Vt=class extends je{constructor(){super(...arguments),this.id=zt++,this._priority=0}get priority(){return this._priority}set priority(e){this._priority!=e&&(this._priority=e,this._onPriorityChange(e))}get(){const e=Je(this);return e&&e.getValue()}to(...e){return i.to(this,e)}interpolate(...e){return He(`${Ve}The "interpolate" function is deprecated in v9 (use "to" instead)`),i.to(this,e)}toJSON(){return this.get()}observerAdded(e){1==e&&this._attach()}observerRemoved(e){0==e&&this._detach()}_attach(){}_detach(){}_onChange(e,t=!1){Se(this,{type:"change",parent:this,value:e,idle:t})}_onPriorityChange(e){this.idle||H.sort(this),Se(this,{type:"priority",parent:this,priority:e})}},Ut=Symbol.for("SpringPhase"),Ht=e=>(1&e[Ut])>0,Wt=e=>(2&e[Ut])>0,Gt=e=>(4&e[Ut])>0,$t=(e,t)=>t?e[Ut]|=3:e[Ut]&=-3,qt=(e,t)=>t?e[Ut]|=4:e[Ut]&=-5,Zt=class extends Vt{constructor(e,t){if(super(),this.animation=new class{constructor(){this.changed=!1,this.values=kt,this.toValues=null,this.fromValues=kt,this.config=new class{constructor(){this.velocity=0,Object.assign(this,Ct)}},this.immediate=!1}},this.defaultProps={},this._state={paused:!1,delayed:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._pendingCalls=new Set,this._lastCallId=0,this._lastToId=0,this._memoizedDuration=0,!S.und(e)||!S.und(t)){const n=S.obj(e)?{...e}:{...t,from:e};S.und(n.default)&&(n.default=!0),this.start(n)}}get idle(){return!(Wt(this)||this._state.asyncTo)||Gt(this)}get goal(){return Ee(this.animation.to)}get velocity(){const e=Je(this);return e instanceof nt?e.lastVelocity||0:e.getPayload().map((e=>e.lastVelocity||0))}get hasAnimated(){return Ht(this)}get isAnimating(){return Wt(this)}get isPaused(){return Gt(this)}get isDelayed(){return this._state.delayed}advance(e){let t=!0,n=!1;const r=this.animation;let{toValues:o}=r;const{config:i}=r,a=et(r.to);!a&&_e(r.to)&&(o=k(Ee(r.to))),r.values.forEach(((l,s)=>{if(l.done)return;const c=l.constructor==rt?1:a?a[s].lastPosition:o[s];let u=r.immediate,p=c;if(!u){if(p=l.lastPosition,i.tension<=0)return void(l.done=!0);let t=l.elapsedTime+=e;const n=r.fromValues[s],o=null!=l.v0?l.v0:l.v0=S.arr(i.velocity)?i.velocity[s]:i.velocity;let a;const d=i.precision||(n==c?.005:Math.min(1,.001*Math.abs(c-n)));if(S.und(i.duration))if(i.decay){const e=!0===i.decay?.998:i.decay,r=Math.exp(-(1-e)*t);p=n+o/(1-e)*(1-r),u=Math.abs(l.lastPosition-p)<=d,a=o*r}else{a=null==l.lastVelocity?o:l.lastVelocity;const t=i.restVelocity||d/10,r=i.clamp?0:i.bounce,s=!S.und(r),f=n==c?l.v0>0:n<c;let m,h=!1;const g=1,v=Math.ceil(e/g);for(let e=0;e<v&&(m=Math.abs(a)>t,m||(u=Math.abs(c-p)<=d,!u));++e){s&&(h=p==c||p>c==f,h&&(a=-a*r,p=c));a+=(1e-6*-i.tension*(p-c)+.001*-i.friction*a)/i.mass*g,p+=a*g}}else{let r=1;i.duration>0&&(this._memoizedDuration!==i.duration&&(this._memoizedDuration=i.duration,l.durationProgress>0&&(l.elapsedTime=i.duration*l.durationProgress,t=l.elapsedTime+=e)),r=(i.progress||0)+t/this._memoizedDuration,r=r>1?1:r<0?0:r,l.durationProgress=r),p=n+i.easing(r)*(c-n),a=(p-l.lastPosition)/e,u=1==r}l.lastVelocity=a,Number.isNaN(p)&&(console.warn("Got NaN while animating:",this),u=!0)}a&&!a[s].done&&(u=!1),u?l.done=!0:t=!1,l.setValue(p,i.round)&&(n=!0)}));const l=Je(this),s=l.getValue();if(t){const e=Ee(r.to);s===e&&!n||i.decay?n&&i.decay&&this._onChange(s):(l.setValue(e),this._onChange(e)),this._stop()}else n&&this._onChange(s)}set(e){return l.batchedUpdates((()=>{this._stop(),this._focus(e),this._set(e)})),this}pause(){this._update({pause:!0})}resume(){this._update({pause:!1})}finish(){if(Wt(this)){const{to:e,config:t}=this.animation;l.batchedUpdates((()=>{this._onStart(),t.decay||this._set(e,!1),this._stop()}))}return this}update(e){return(this.queue||(this.queue=[])).push(e),this}start(e,t){let n;return S.und(e)?(n=this.queue||[],this.queue=[]):n=[S.obj(e)?e:{...t,to:e}],Promise.all(n.map((e=>this._update(e)))).then((e=>Dt(this,e)))}stop(e){const{to:t}=this.animation;return this._focus(this.get()),Mt(this._state,e&&this._lastCallId),l.batchedUpdates((()=>this._stop(t,e))),this}reset(){this._update({reset:!0})}eventObserved(e){"change"==e.type?this._start():"priority"==e.type&&(this.priority=e.priority+1)}_prepareNode(e){const t=this.key||"";let{to:n,from:r}=e;n=S.obj(n)?n[t]:n,(null==n||Pt(n))&&(n=void 0),r=S.obj(r)?r[t]:r,null==r&&(r=void 0);const o={to:n,from:r};return Ht(this)||(e.reverse&&([n,r]=[r,n]),r=Ee(r),S.und(r)?Je(this)||this._set(n):this._set(r)),o}_update({...e},t){const{key:n,defaultProps:r}=this;e.default&&Object.assign(r,bt(e,((e,t)=>/^on/.test(t)?ht(e,n):e))),en(this,e,"onProps"),tn(this,"onProps",e,this);const o=this._prepareNode(e);if(Object.isFrozen(this))throw Error("Cannot animate a `SpringValue` object that is frozen. Did you forget to pass your component to `animated(...)` before animating its props?");const i=this._state;return It(++this._lastCallId,{key:n,props:e,defaultProps:r,state:i,actions:{pause:()=>{Gt(this)||(qt(this,!0),T(i.pauseQueue),tn(this,"onPause",Tt(this,Kt(this,this.animation.to)),this))},resume:()=>{Gt(this)&&(qt(this,!1),Wt(this)&&this._resume(),T(i.resumeQueue),tn(this,"onResume",Tt(this,Kt(this,this.animation.to)),this))},start:this._merge.bind(this,o)}}).then((n=>{if(e.loop&&n.finished&&(!t||!n.noop)){const t=Yt(e);if(t)return this._update(t,!0)}return n}))}_merge(e,t,n){if(t.cancel)return this.stop(!0),n(At(this));const r=!S.und(e.to),o=!S.und(e.from);if(r||o){if(!(t.callId>this._lastToId))return n(At(this));this._lastToId=t.callId}const{key:i,defaultProps:a,animation:s}=this,{to:c,from:u}=s;let{to:p=c,from:d=u}=e;!o||r||t.default&&!S.und(p)||(p=d),t.reverse&&([p,d]=[d,p]);const f=!j(d,u);f&&(s.from=d),d=Ee(d);const m=!j(p,c);m&&this._focus(p);const h=Pt(t.to),{config:g}=s,{decay:v,velocity:b}=g;(r||o)&&(g.velocity=0),t.config&&!h&&function(e,t,n){n&&(xt(n={...n},t),t={...n,...t}),xt(e,t),Object.assign(e,t);for(const t in Ct)null==e[t]&&(e[t]=Ct[t]);let{frequency:r,damping:o}=e;const{mass:i}=e;S.und(r)||(r<.01&&(r=.01),o<0&&(o=0),e.tension=Math.pow(2*Math.PI/r,2)*i,e.friction=4*Math.PI*o*i/r)}(g,ft(t.config,i),t.config!==a.config?ft(a.config,i):void 0);let y=Je(this);if(!y||S.und(p))return n(Tt(this,!0));const w=S.und(t.reset)?o&&!t.default:!S.und(d)&&mt(t.reset,i),O=w?d:this.get(),_=_t(p),E=S.num(_)||S.arr(_)||Ge(_),P=!h&&(!E||mt(a.immediate||t.immediate,i));if(m){const e=st(p);if(e!==y.constructor){if(!P)throw Error(`Cannot animate between ${y.constructor.name} and ${e.name}, as the "to" prop suggests`);y=this._set(_)}}const x=y.constructor;let I=_e(p),D=!1;if(!I){const e=w||!Ht(this)&&f;(m||e)&&(D=j(_t(O),_),I=!D),(j(s.immediate,P)||P)&&j(g.decay,v)&&j(g.velocity,b)||(I=!0)}if(D&&Wt(this)&&(s.changed&&!w?I=!0:I||this._stop(c)),!h&&((I||_e(c))&&(s.values=y.getPayload(),s.toValues=_e(p)?null:x==rt?[1]:k(_)),s.immediate!=P&&(s.immediate=P,P||w||this._set(c)),I)){const{onRest:e}=s;C(Qt,(e=>en(this,t,e)));const r=Tt(this,Kt(this,c));T(this._pendingCalls,r),this._pendingCalls.add(n),s.changed&&l.batchedUpdates((()=>{s.changed=!w,e?.(r,this),w?ft(a.onRest,r):s.onStart?.(r,this)}))}w&&this._set(O),h?n(Rt(t.to,t,this._state,this)):I?this._start():Wt(this)&&!m?this._pendingCalls.add(n):n(Nt(O))}_focus(e){const t=this.animation;e!==t.to&&(Pe(this)&&this._detach(),t.to=e,Pe(this)&&this._attach())}_attach(){let e=0;const{to:t}=this.animation;_e(t)&&(xe(t,this),Ft(t)&&(e=t.priority+1)),this.priority=e}_detach(){const{to:e}=this.animation;_e(e)&&ke(e,this)}_set(e,t=!0){const n=Ee(e);if(!S.und(n)){const e=Je(this);if(!e||!j(n,e.getValue())){const r=st(n);e&&e.constructor==r?e.setValue(n):Qe(this,r.create(n)),e&&l.batchedUpdates((()=>{this._onChange(n,t)}))}}return Je(this)}_onStart(){const e=this.animation;e.changed||(e.changed=!0,tn(this,"onStart",Tt(this,Kt(this,e.to)),this))}_onChange(e,t){t||(this._onStart(),ft(this.animation.onChange,e,this)),ft(this.defaultProps.onChange,e,this),super._onChange(e,t)}_start(){const e=this.animation;Je(this).reset(Ee(e.to)),e.immediate||(e.fromValues=e.values.map((e=>e.lastPosition))),Wt(this)||($t(this,!0),Gt(this)||this._resume())}_resume(){i.skipAnimation?this.finish():H.start(this)}_stop(e,t){if(Wt(this)){$t(this,!1);const n=this.animation;C(n.values,(e=>{e.done=!0})),n.toValues&&(n.onChange=n.onPause=n.onResume=void 0),Se(this,{type:"idle",parent:this});const r=t?At(this.get()):Tt(this.get(),Kt(this,e??n.to));T(this._pendingCalls,r),n.changed&&(n.changed=!1,tn(this,"onRest",r,this))}}};function Kt(e,t){const n=_t(t);return j(_t(e.get()),n)}function Yt(e,t=e.loop,n=e.to){const r=ft(t);if(r){const o=!0!==r&&Ot(r),i=(o||e).reverse,a=!o||o.reset;return Xt({...e,loop:t,default:!1,pause:void 0,to:!i||Pt(n)?n:void 0,from:a?e.from:void 0,reset:a,...o})}}function Xt(e){const{to:t,from:n}=e=Ot(e),r=new Set;return S.obj(t)&&Jt(t,r),S.obj(n)&&Jt(n,r),e.keys=r.size?Array.from(r):null,e}function Jt(e,t){x(e,((e,n)=>null!=e&&t.add(n)))}var Qt=["onStart","onRest","onChange","onPause","onResume"];function en(e,t,n){e.animation[n]=t[n]!==gt(t,n)?ht(t[n],e.key):void 0}function tn(e,t,...n){e.animation[t]?.(...n),e.defaultProps[t]?.(...n)}var nn=["onStart","onChange","onRest"],rn=1,on=class{constructor(e,t){this.id=rn++,this.springs={},this.queue=[],this._lastAsyncId=0,this._active=new Set,this._changed=new Set,this._started=!1,this._state={paused:!1,pauseQueue:new Set,resumeQueue:new Set,timeouts:new Set},this._events={onStart:new Map,onChange:new Map,onRest:new Map},this._onFrame=this._onFrame.bind(this),t&&(this._flush=t),e&&this.start({default:!0,...e})}get idle(){return!this._state.asyncTo&&Object.values(this.springs).every((e=>e.idle&&!e.isDelayed&&!e.isPaused))}get item(){return this._item}set item(e){this._item=e}get(){const e={};return this.each(((t,n)=>e[n]=t.get())),e}set(e){for(const t in e){const n=e[t];S.und(n)||this.springs[t].set(n)}}update(e){return e&&this.queue.push(Xt(e)),this}start(e){let{queue:t}=this;return e?t=k(e).map(Xt):this.queue=[],this._flush?this._flush(this,t):(dn(this,t),an(this,t))}stop(e,t){if(e!==!!e&&(t=e),t){const n=this.springs;C(k(t),(t=>n[t].stop(!!e)))}else Mt(this._state,this._lastAsyncId),this.each((t=>t.stop(!!e)));return this}pause(e){if(S.und(e))this.start({pause:!0});else{const t=this.springs;C(k(e),(e=>t[e].pause()))}return this}resume(e){if(S.und(e))this.start({pause:!1});else{const t=this.springs;C(k(e),(e=>t[e].resume()))}return this}each(e){x(this.springs,e)}_onFrame(){const{onStart:e,onChange:t,onRest:n}=this._events,r=this._active.size>0,o=this._changed.size>0;(r&&!this._started||o&&!this._started)&&(this._started=!0,I(e,(([e,t])=>{t.value=this.get(),e(t,this,this._item)})));const i=!r&&this._started,a=o||i&&n.size?this.get():null;o&&t.size&&I(t,(([e,t])=>{t.value=a,e(t,this,this._item)})),i&&(this._started=!1,I(n,(([e,t])=>{t.value=a,e(t,this,this._item)})))}eventObserved(e){if("change"==e.type)this._changed.add(e.parent),e.idle||this._active.add(e.parent);else{if("idle"!=e.type)return;this._active.delete(e.parent)}l.onFrame(this._onFrame)}};function an(e,t){return Promise.all(t.map((t=>ln(e,t)))).then((t=>Dt(e,t)))}async function ln(e,t,n){const{keys:r,to:o,from:i,loop:a,onRest:s,onResolve:c}=t,u=S.obj(t.default)&&t.default;a&&(t.loop=!1),!1===o&&(t.to=null),!1===i&&(t.from=null);const p=S.arr(o)||S.fun(o)?o:void 0;p?(t.to=void 0,t.onRest=void 0,u&&(u.onRest=void 0)):C(nn,(n=>{const r=t[n];if(S.fun(r)){const o=e._events[n];t[n]=({finished:e,cancelled:t})=>{const n=o.get(r);n?(e||(n.finished=!1),t&&(n.cancelled=!0)):o.set(r,{value:null,finished:e||!1,cancelled:t||!1})},u&&(u[n]=t[n])}}));const d=e._state;t.pause===!d.paused?(d.paused=t.pause,T(t.pause?d.pauseQueue:d.resumeQueue)):d.paused&&(t.pause=!0);const f=(r||Object.keys(e.springs)).map((n=>e.springs[n].start(t))),m=!0===t.cancel||!0===gt(t,"cancel");(p||m&&d.asyncId)&&f.push(It(++e._lastAsyncId,{props:t,state:d,actions:{pause:P,resume:P,start(t,n){m?(Mt(d,e._lastAsyncId),n(At(e))):(t.onRest=s,n(Rt(p,t,d,e)))}}})),d.paused&&await new Promise((e=>{d.resumeQueue.add(e)}));const h=Dt(e,await Promise.all(f));if(a&&h.finished&&(!n||!h.noop)){const n=Yt(t,a,o);if(n)return dn(e,[n]),ln(e,n,!0)}return c&&l.batchedUpdates((()=>c(h,e,e.item))),h}function sn(e,t){const n={...e.springs};return t&&C(k(t),(e=>{S.und(e.keys)&&(e=Xt(e)),S.obj(e.to)||(e={...e,to:void 0}),pn(n,e,(e=>un(e)))})),cn(e,n),n}function cn(e,t){x(t,((t,n)=>{e.springs[n]||(e.springs[n]=t,xe(t,e))}))}function un(e,t){const n=new Zt;return n.key=e,t&&xe(n,t),n}function pn(e,t,n){t.keys&&C(t.keys,(r=>{(e[r]||(e[r]=n(r)))._prepareNode(t)}))}function dn(e,t){C(t,(t=>{pn(e.springs,t,(t=>un(t,e)))}))}var fn,mn,hn=({children:e,...t})=>{const n=(0,r.useContext)(gn),o=t.pause||!!n.pause,i=t.immediate||!!n.immediate;t=function(e,t){const[n]=(0,r.useState)((()=>({inputs:t,result:e()}))),o=(0,r.useRef)(),i=o.current;let a=i;a?Boolean(t&&a.inputs&&function(e,t){if(e.length!==t.length)return!1;for(let n=0;n<e.length;n++)if(e[n]!==t[n])return!1;return!0}(t,a.inputs))||(a={inputs:t,result:e()}):a=n;return(0,r.useEffect)((()=>{o.current=a,i==n&&(n.inputs=n.result=void 0)}),[a]),a.result}((()=>({pause:o,immediate:i})),[o,i]);const{Provider:a}=gn;return r.createElement(a,{value:t},e)},gn=(fn=hn,mn={},Object.assign(fn,r.createContext(mn)),fn.Provider._context=fn,fn.Consumer._context=fn,fn);hn.Provider=gn.Provider,hn.Consumer=gn.Consumer;var vn=()=>{const e=[],t=function(t){We(`${Ve}Directly calling start instead of using the api object is deprecated in v9 (use ".start" instead), this will be removed in later 0.X.0 versions`);const r=[];return C(e,((e,o)=>{if(S.und(t))r.push(e.start());else{const i=n(t,e,o);i&&r.push(e.start(i))}})),r};t.current=e,t.add=function(t){e.includes(t)||e.push(t)},t.delete=function(t){const n=e.indexOf(t);~n&&e.splice(n,1)},t.pause=function(){return C(e,(e=>e.pause(...arguments))),this},t.resume=function(){return C(e,(e=>e.resume(...arguments))),this},t.set=function(t){C(e,((e,n)=>{const r=S.fun(t)?t(n,e):t;r&&e.set(r)}))},t.start=function(t){const n=[];return C(e,((e,r)=>{if(S.und(t))n.push(e.start());else{const o=this._getProps(t,e,r);o&&n.push(e.start(o))}})),n},t.stop=function(){return C(e,(e=>e.stop(...arguments))),this},t.update=function(t){return C(e,((e,n)=>e.update(this._getProps(t,e,n)))),this};const n=function(e,t,n){return S.fun(e)?e(n,t):e};return t._getProps=n,t};function bn(e,t,n){const o=S.fun(t)&&t,{reset:i,sort:a,trail:l=0,expires:s=!0,exitBeforeEnter:c=!1,onDestroyed:u,ref:p,config:d}=o?o():t,f=(0,r.useMemo)((()=>o||3==arguments.length?vn():void 0),[]),m=k(e),h=[],g=(0,r.useRef)(null),v=i?null:g.current;$e((()=>{g.current=h})),Ke((()=>(C(h,(e=>{f?.add(e.ctrl),e.ctrl.ref=f})),()=>{C(g.current,(e=>{e.expired&&clearTimeout(e.expirationId),St(e.ctrl,f),e.ctrl.stop(!0)}))})));const b=function(e,{key:t,keys:n=t},r){if(null===n){const t=new Set;return e.map((e=>{const n=r&&r.find((n=>n.item===e&&"leave"!==n.phase&&!t.has(n)));return n?(t.add(n),n.key):yn++}))}return S.und(n)?e:S.fun(n)?e.map(n):k(n)}(m,o?o():t,v),y=i&&g.current||[];$e((()=>C(y,(({ctrl:e,item:t,key:n})=>{St(e,f),ft(u,t,n)}))));const w=[];if(v&&C(v,((e,t)=>{e.expired?(clearTimeout(e.expirationId),y.push(e)):~(t=w[t]=b.indexOf(e.key))&&(h[t]=e)})),C(m,((e,t)=>{h[t]||(h[t]={key:b[t],item:e,phase:"mount",ctrl:new on},h[t].ctrl.item=e)})),w.length){let e=-1;const{leave:n}=o?o():t;C(w,((t,r)=>{const o=v[r];~t?(e=h.indexOf(o),h[e]={...o,item:m[t]}):n&&h.splice(++e,0,o)}))}S.fun(a)&&h.sort(((e,t)=>a(e.item,t.item)));let O=-l;const _=Ze(),E=bt(t),P=new Map,j=(0,r.useRef)(new Map),x=(0,r.useRef)(!1);C(h,((e,n)=>{const r=e.key,i=e.phase,a=o?o():t;let u,f;const m=ft(a.delay||0,r);if("mount"==i)u=a.enter,f="enter";else{const e=b.indexOf(r)<0;if("leave"!=i)if(e)u=a.leave,f="leave";else{if(!(u=a.update))return;f="update"}else{if(e)return;u=a.enter,f="enter"}}if(u=ft(u,e.item,n),u=S.obj(u)?Ot(u):{to:u},!u.config){const t=d||E.config;u.config=ft(t,e.item,n,f)}O+=l;const h={...E,delay:m+O,ref:p,immediate:a.immediate,reset:!1,...u};if("enter"==f&&S.und(h.from)){const r=o?o():t,i=S.und(r.initial)||v?r.from:r.initial;h.from=ft(i,e.item,n)}const{onResolve:y}=h;h.onResolve=e=>{ft(y,e);const t=g.current,n=t.find((e=>e.key===r));if(n&&(!e.cancelled||"update"==n.phase)&&n.ctrl.idle){const e=t.every((e=>e.ctrl.idle));if("leave"==n.phase){const t=ft(s,n.item);if(!1!==t){const r=!0===t?0:t;if(n.expired=!0,!e&&r>0)return void(r<=2147483647&&(n.expirationId=setTimeout(_,r)))}}e&&t.some((e=>e.expired))&&(j.current.delete(n),c&&(x.current=!0),_())}};const w=sn(e.ctrl,h);"leave"===f&&c?j.current.set(e,{phase:f,springs:w,payload:h}):P.set(e,{phase:f,springs:w,payload:h})}));const I=(0,r.useContext)(hn),D=function(e){const t=(0,r.useRef)();return(0,r.useEffect)((()=>{t.current=e})),t.current}(I),N=I!==D&&Et(I);$e((()=>{N&&C(h,(e=>{e.ctrl.start({default:I})}))}),[I]),C(P,((e,t)=>{if(j.current.size){const e=h.findIndex((e=>e.key===t.key));h.splice(e,1)}})),$e((()=>{C(j.current.size?j.current:P,(({phase:e,payload:t},n)=>{const{ctrl:r}=n;n.phase=e,f?.add(r),N&&"enter"==e&&r.start({default:I}),t&&(jt(r,t.ref),!r.ref&&!f||x.current?(r.start(t),x.current&&(x.current=!1)):r.update(t))}))}),i?void 0:n);const T=e=>r.createElement(r.Fragment,null,h.map(((t,n)=>{const{springs:o}=P.get(t)||t.ctrl,i=e({...o},t.item,t,n);return i&&i.type?r.createElement(i.type,{...i.props,key:S.str(t.key)||S.num(t.key)?t.key:t.ctrl.id,ref:i.ref}):i})));return f?[T,f]:T}var yn=1;function wn({items:e,children:t,...n}){return bn(e,n)(t)}var On=class extends Vt{constructor(e,t){super(),this.source=e,this.idle=!0,this._active=new Set,this.calc=de(...t);const n=this._get(),r=st(n);Qe(this,r.create(n))}advance(e){const t=this._get();j(t,this.get())||(Je(this).setValue(t),this._onChange(t,this.idle)),!this.idle&&En(this._active)&&Pn(this)}_get(){const e=S.arr(this.source)?this.source.map(Ee):k(Ee(this.source));return this.calc(...e)}_start(){this.idle&&!En(this._active)&&(this.idle=!1,C(et(this),(e=>{e.done=!1})),i.skipAnimation?(l.batchedUpdates((()=>this.advance())),Pn(this)):H.start(this))}_attach(){let e=1;C(k(this.source),(t=>{_e(t)&&xe(t,this),Ft(t)&&(t.idle||this._active.add(t),e=Math.max(e,t.priority+1))})),this.priority=e,this._start()}_detach(){C(k(this.source),(e=>{_e(e)&&ke(e,this)})),this._active.clear(),Pn(this)}eventObserved(e){"change"==e.type?e.idle?this.advance():(this._active.add(e.parent),this._start()):"idle"==e.type?this._active.delete(e.parent):"priority"==e.type&&(this.priority=k(this.source).reduce(((e,t)=>Math.max(e,(Ft(t)?t.priority:0)+1)),0))}};function _n(e){return!1!==e.idle}function En(e){return!e.size||Array.from(e).every(_n)}function Pn(e){e.idle||(e.idle=!0,C(et(e),(e=>{e.done=!0})),Se(e,{type:"idle",parent:e}))}i.assign({createStringInterpolator:ze,to:(e,t)=>new On(e,t)});H.advance;var Sn=n(1533),jn=/^--/;function Cn(e,t){return null==t||"boolean"==typeof t||""===t?"":"number"!=typeof t||0===t||jn.test(e)||kn.hasOwnProperty(e)&&kn[e]?(""+t).trim():t+"px"}var xn={};var kn={animationIterationCount:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},In=["Webkit","Ms","Moz","O"];kn=Object.keys(kn).reduce(((e,t)=>(In.forEach((n=>e[((e,t)=>e+t.charAt(0).toUpperCase()+t.substring(1))(n,t)]=e[t])),e)),kn);var Dn=/^(matrix|translate|scale|rotate|skew)/,Nn=/^(translate)/,Tn=/^(rotate|skew)/,An=(e,t)=>S.num(e)&&0!==e?e+t:e,Rn=(e,t)=>S.arr(e)?e.every((e=>Rn(e,t))):S.num(e)?e===t:parseFloat(e)===t,Mn=class extends it{constructor({x:e,y:t,z:n,...r}){const o=[],i=[];(e||t||n)&&(o.push([e||0,t||0,n||0]),i.push((e=>[`translate3d(${e.map((e=>An(e,"px"))).join(",")})`,Rn(e,0)]))),x(r,((e,t)=>{if("transform"===t)o.push([e||""]),i.push((e=>[e,""===e]));else if(Dn.test(t)){if(delete r[t],S.und(e))return;const n=Nn.test(t)?"px":Tn.test(t)?"deg":"";o.push(k(e)),i.push("rotate3d"===t?([e,t,r,o])=>[`rotate3d(${e},${t},${r},${An(o,n)})`,Rn(o,0)]:e=>[`${t}(${e.map((e=>An(e,n))).join(",")})`,Rn(e,t.startsWith("scale")?1:0)])}})),o.length&&(r.transform=new Ln(o,i)),super(r)}},Ln=class extends je{constructor(e,t){super(),this.inputs=e,this.transforms=t,this._value=null}get(){return this._value||(this._value=this._get())}_get(){let e="",t=!0;return C(this.inputs,((n,r)=>{const o=Ee(n[0]),[i,a]=this.transforms[r](S.arr(o)?o:n.map(Ee));e+=" "+i,t=t&&a})),t?"none":e}observerAdded(e){1==e&&C(this.inputs,(e=>C(e,(e=>_e(e)&&xe(e,this)))))}observerRemoved(e){0==e&&C(this.inputs,(e=>C(e,(e=>_e(e)&&ke(e,this)))))}eventObserved(e){"change"==e.type&&(this._value=null),Se(this,e)}};i.assign({batchedUpdates:Sn.unstable_batchedUpdates,createStringInterpolator:ze,colors:{transparent:0,aliceblue:4042850303,antiquewhite:4209760255,aqua:16777215,aquamarine:2147472639,azure:4043309055,beige:4126530815,bisque:4293182719,black:255,blanchedalmond:4293643775,blue:65535,blueviolet:2318131967,brown:2771004159,burlywood:3736635391,burntsienna:3934150143,cadetblue:1604231423,chartreuse:2147418367,chocolate:3530104575,coral:4286533887,cornflowerblue:1687547391,cornsilk:4294499583,crimson:3692313855,cyan:16777215,darkblue:35839,darkcyan:9145343,darkgoldenrod:3095792639,darkgray:2846468607,darkgreen:6553855,darkgrey:2846468607,darkkhaki:3182914559,darkmagenta:2332068863,darkolivegreen:1433087999,darkorange:4287365375,darkorchid:2570243327,darkred:2332033279,darksalmon:3918953215,darkseagreen:2411499519,darkslateblue:1211993087,darkslategray:793726975,darkslategrey:793726975,darkturquoise:13554175,darkviolet:2483082239,deeppink:4279538687,deepskyblue:12582911,dimgray:1768516095,dimgrey:1768516095,dodgerblue:512819199,firebrick:2988581631,floralwhite:4294635775,forestgreen:579543807,fuchsia:4278255615,gainsboro:3705462015,ghostwhite:4177068031,gold:4292280575,goldenrod:3668254975,gray:2155905279,green:8388863,greenyellow:2919182335,grey:2155905279,honeydew:4043305215,hotpink:4285117695,indianred:3445382399,indigo:1258324735,ivory:4294963455,khaki:4041641215,lavender:3873897215,lavenderblush:4293981695,lawngreen:2096890111,lemonchiffon:4294626815,lightblue:2916673279,lightcoral:4034953471,lightcyan:3774873599,lightgoldenrodyellow:4210742015,lightgray:3553874943,lightgreen:2431553791,lightgrey:3553874943,lightpink:4290167295,lightsalmon:4288707327,lightseagreen:548580095,lightskyblue:2278488831,lightslategray:2005441023,lightslategrey:2005441023,lightsteelblue:2965692159,lightyellow:4294959359,lime:16711935,limegreen:852308735,linen:4210091775,magenta:4278255615,maroon:2147483903,mediumaquamarine:1724754687,mediumblue:52735,mediumorchid:3126187007,mediumpurple:2473647103,mediumseagreen:1018393087,mediumslateblue:2070474495,mediumspringgreen:16423679,mediumturquoise:1221709055,mediumvioletred:3340076543,midnightblue:421097727,mintcream:4127193855,mistyrose:4293190143,moccasin:4293178879,navajowhite:4292783615,navy:33023,oldlace:4260751103,olive:2155872511,olivedrab:1804477439,orange:4289003775,orangered:4282712319,orchid:3664828159,palegoldenrod:4008225535,palegreen:2566625535,paleturquoise:2951671551,palevioletred:3681588223,papayawhip:4293907967,peachpuff:4292524543,peru:3448061951,pink:4290825215,plum:3718307327,powderblue:2967529215,purple:2147516671,rebeccapurple:1714657791,red:4278190335,rosybrown:3163525119,royalblue:1097458175,saddlebrown:2336560127,salmon:4202722047,sandybrown:4104413439,seagreen:780883967,seashell:4294307583,sienna:2689740287,silver:3233857791,skyblue:2278484991,slateblue:1784335871,slategray:1887473919,slategrey:1887473919,snow:4294638335,springgreen:16744447,steelblue:1182971135,tan:3535047935,teal:8421631,thistle:3636451583,tomato:4284696575,turquoise:1088475391,violet:4001558271,wheat:4125012991,white:4294967295,whitesmoke:4126537215,yellow:4294902015,yellowgreen:2597139199}});var Bn=((e,{applyAnimatedValues:t=(()=>!1),createAnimatedStyle:n=(e=>new it(e)),getComponentProps:r=(e=>e)}={})=>{const o={applyAnimatedValues:t,createAnimatedStyle:n,getComponentProps:r},i=e=>{const t=dt(e)||"Anonymous";return(e=S.str(e)?i[e]||(i[e]=ct(e,o)):e[pt]||(e[pt]=ct(e,o))).displayName=`Animated(${t})`,e};return x(e,((t,n)=>{S.arr(e)&&(n=dt(t)),i[n]=i(t)})),{animated:i}})(["a","abbr","address","area","article","aside","audio","b","base","bdi","bdo","big","blockquote","body","br","button","canvas","caption","cite","code","col","colgroup","data","datalist","dd","del","details","dfn","dialog","div","dl","dt","em","embed","fieldset","figcaption","figure","footer","form","h1","h2","h3","h4","h5","h6","head","header","hgroup","hr","html","i","iframe","img","input","ins","kbd","keygen","label","legend","li","link","main","map","mark","menu","menuitem","meta","meter","nav","noscript","object","ol","optgroup","option","output","p","param","picture","pre","progress","q","rp","rt","ruby","s","samp","script","section","select","small","source","span","strong","style","sub","summary","sup","table","tbody","td","textarea","tfoot","th","thead","time","title","tr","track","u","ul","var","video","wbr","circle","clipPath","defs","ellipse","foreignObject","g","image","line","linearGradient","mask","path","pattern","polygon","polyline","radialGradient","rect","stop","svg","text","tspan"],{applyAnimatedValues:function(e,t){if(!e.nodeType||!e.setAttribute)return!1;const n="filter"===e.nodeName||e.parentNode&&"filter"===e.parentNode.nodeName,{style:r,children:o,scrollTop:i,scrollLeft:a,viewBox:l,...s}=t,c=Object.values(s),u=Object.keys(s).map((t=>n||e.hasAttribute(t)?t:xn[t]||(xn[t]=t.replace(/([A-Z])/g,(e=>"-"+e.toLowerCase())))));void 0!==o&&(e.textContent=o);for(const t in r)if(r.hasOwnProperty(t)){const n=Cn(t,r[t]);jn.test(t)?e.style.setProperty(t,n):e.style[t]=n}u.forEach(((t,n)=>{e.setAttribute(t,c[n])})),void 0!==i&&(e.scrollTop=i),void 0!==a&&(e.scrollLeft=a),void 0!==l&&e.setAttribute("viewBox",l)},createAnimatedStyle:e=>new Mn(e),getComponentProps:({scrollTop:e,scrollLeft:t,...n})=>n}),Fn=Bn.animated}},r={};function o(e){var t=r[e];if(void 0!==t)return t.exports;var i=r[e]={exports:{}};return n[e].call(i.exports,i,i.exports,o),i.exports}o.m=n,o.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return o.d(t,{a:t}),t},o.d=function(e,t){for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.f={},o.e=function(e){return Promise.all(Object.keys(o.f).reduce((function(t,n){return o.f[n](e,t),t}),[]))},o.u=function(e){return e+".e6a01b88311a0a5b1345.js"},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},e={},t="blocksyOptions:",o.l=function(n,r,i,a){if(e[n])e[n].push(r);else{var l,s;if(void 0!==i)for(var c=document.getElementsByTagName("script"),u=0;u<c.length;u++){var p=c[u];if(p.getAttribute("src")==n||p.getAttribute("data-webpack")==t+i){l=p;break}}l||(s=!0,(l=document.createElement("script")).charset="utf-8",l.timeout=120,o.nc&&l.setAttribute("nonce",o.nc),l.setAttribute("data-webpack",t+i),l.src=n),e[n]=[r];var d=function(t,r){l.onerror=l.onload=null,clearTimeout(f);var o=e[n];if(delete e[n],l.parentNode&&l.parentNode.removeChild(l),o&&o.forEach((function(e){return e(r)})),t)return t(r)},f=setTimeout(d.bind(null,void 0,{type:"timeout",target:l}),12e4);l.onerror=d.bind(null,l.onerror),l.onload=d.bind(null,l.onload),s&&document.head.appendChild(l)}},o.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},function(){var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var r=n.length-1;r>-1&&!e;)e=n[r--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e}(),function(){var e={179:0};o.f.j=function(t,n){var r=o.o(e,t)?e[t]:void 0;if(0!==r)if(r)n.push(r[2]);else{var i=new Promise((function(n,o){r=e[t]=[n,o]}));n.push(r[2]=i);var a=o.p+o.u(t),l=new Error;o.l(a,(function(n){if(o.o(e,t)&&(0!==(r=e[t])&&(e[t]=void 0),r)){var i=n&&("load"===n.type?"missing":n.type),a=n&&n.target&&n.target.src;l.message="Loading chunk "+t+" failed.\n("+i+": "+a+")",l.name="ChunkLoadError",l.type=i,l.request=a,r[1](l)}}),"chunk-"+t,t)}};var t=function(t,n){var r,i,a=n[0],l=n[1],s=n[2],c=0;if(a.some((function(t){return 0!==e[t]}))){for(r in l)o.o(l,r)&&(o.m[r]=l[r]);if(s)s(o)}for(t&&t(n);c<a.length;c++)i=a[c],o.o(e,i)&&e[i]&&e[i][0](),e[i]=0},n=self.blocksyJsonP=self.blocksyJsonP||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))}();var i={};!function(){"use strict";o.r(i),o.d(i,{Checkboxes:function(){return S.default},ColorsPanel:function(){return $},DateTimePicker:function(){return k.default},DeviceManagerProvider:function(){return _.jd},ImageUploader:function(){return j.default},OptionsPanel:function(){return r.Z},OutsideClickHandler:function(){return x.default},Overlay:function(){return w.Z},Panel:function(){return O.default},PanelLevel:function(){return E.Z},PanelMetaWrapper:function(){return O.PanelMetaWrapper},Select:function(){return C.default},Switch:function(){return P.default},ToolsWithOptionsPanel:function(){return V},Transition:function(){return I.uT},animated:function(){return I.q},bezierEasing:function(){return N()},getAttributesFromOptions:function(){return q},getColorsDefaults:function(){return Y},getDefaultsFromOptions:function(){return Z},getOptionsForBlock:function(){return K},getValueFromInput:function(){return d.n6},onDocumentLoaded:function(){return X},useDynamicPreview:function(){return H},usePopoverMaker:function(){return T.Z}});o(989);var e=o(5311),t=o.n(e),n=o(1381),r=o(5697),a=o(2243),l=o.n(a);function s(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function c(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?s(Object(n),!0).forEach((function(t){u(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):s(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function u(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var p=function(e){let{value:o,options:i,input_name:a,input_id:s,hasRevertButton:u}=e;const[p,d]=(0,n.useState)(o),f=(0,n.useRef)(),m=(0,n.useCallback)((function(e){let{id:t,value:n,input:r}=e;r===f.current&&d((function(e){return c(c({},e),{},{[t]:n})}))}),[]);return(0,n.useEffect)((function(){return l().on("ct:options:trigger-change",m),function(){l().off("ct:options:trigger-change",m)}}),[]),(0,n.createElement)("div",{className:"ct-options-root"},(0,n.createElement)("input",{value:JSON.stringify(Array.isArray(p)?{}:p),onChange:function(){},name:a,id:s,type:"hidden",ref:f}),(0,n.createElement)(r.Z,{hasRevertButton:u,onChange:function(e,n){d((function(t){return c(c({},t),{},{[e]:n})})),t()(f.current).change()},value:p,options:i}))},d=o(7686);const f=function(){return[...document.querySelectorAll(".ct-options-panel")].map((function(e){e.closest('[id="available-widgets"]')||e.ctHasOptions||(e.ctHasOptions=!0,t()(e).on("remove",(function(){return setTimeout((function(){return f()}))})),t()(e).on("remove",(function(){return function(){return f()}})),(0,n.render)((0,n.createElement)(p,{options:JSON.parse(e.firstElementChild.dataset.ctOptions),value:(0,d.n6)(JSON.parse(e.firstElementChild.dataset.ctOptions),JSON.parse(e.firstElementChild.value),null,!1),input_id:e.firstElementChild.id,input_name:e.firstElementChild.name,hasRevertButton:-1===Object.keys(e.dataset).indexOf("disableReverseButton")}),e))}))};var m=o(5652);const h=function(){[...document.querySelectorAll(".woocommerce_variations .woocommerce_variation")].map((function(e){e.hasBlocksyOptions||(e.hasBlocksyOptions=!0,function(e){const t=e.querySelector(".upload_image");if(!t)return;const r=document.createElement("p");r.classList.add("form-row"),r.classList.add("form-row-full"),r.classList.add("ct-variation-image-gallery"),t.nextElementSibling.insertAdjacentElement("afterend",r);const o=e.querySelector('[name*="blocksy_post_meta_options"]');if(!o)return;const i={gallery_source:{label:(0,m.__)("Variation Gallery Source","blocksy"),type:"ct-radio",value:"default",design:"inline",divider:"bottom",choices:{default:(0,m.__)("Default","blocksy"),custom:(0,m.__)("Custom","blocksy")}},condition:{type:"ct-condition",condition:{gallery_source:"custom"},options:{images:{label:(0,m.__)("Variation Image Gallery","blocksy"),type:"ct-multi-image-uploader",design:function(e){let{value:t}=e;return 0===t.length?"inline":"block"},value:[]}}}};(0,n.render)((0,n.createElement)(p,{options:i,value:(0,d.n6)(i,JSON.parse(o.value),null,!1),input_id:o.id,input_name:o.name,hasRevertButton:!1}),r)}(e))}))};function g(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function v(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?g(Object(n),!0).forEach((function(t){b(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):g(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function b(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}const y=function(e){let{options:o,input_name:i,value:a,tbody:l,purpose:s}=e;const[c,u]=(0,n.useState)(a),p=(0,n.useRef)();return(0,n.useEffect)((function(){const e=function(){u(a)};return t()(document).on("ajaxComplete",e),function(){t()(document).off("ajaxComplete",e)}}),[]),(0,n.createElement)(n.Fragment,null,(0,n.createElement)("input",{value:JSON.stringify(Array.isArray(c)?{}:c),onChange:function(){},name:i,type:"hidden",ref:p}),(0,n.createPortal)((0,n.createElement)(r.Z,{value:c,options:o,onChange:function(e,n){u((function(t){return v(v({},t),{},{[e]:n})})),t()(p.current).change()},purpose:s}),l))};var w=o(3363),O=o(9999),_=o(1429),E=o(7097),P=o(7809),S=o(3817),j=o(7402),C=o(2425),x=o(1511),k=o(5502),I=o(4823),D=o(3431),N=o.n(D),T=o(2932),A=o(251),R=o.n(A),M=o(8441),L=o(8142);function B(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t&&(r=r.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,r)}return n}function F(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?B(Object(n),!0).forEach((function(t){z(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):B(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function z(e,t,n){return(t=function(e){var t=function(e,t){if("object"!=typeof e||null===e)return e;var n=e[Symbol.toPrimitive];if(void 0!==n){var r=n.call(e,t||"default");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}(e,"string");return"symbol"==typeof t?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var V=function(e){let{label:t,options:o,attributes:i,setAttributes:a}=e;const l=(0,d.JS)(o);return(0,n.createElement)(M.__experimentalToolsPanel,{label:t,resetAll:function(){const e=Object.keys(l).reduce((function(e,t){return F(F({},e),{},{[t]:l[t].value})}),{});a(e)}},Object.keys(l).map((function(e,t){const s=l[e];return(0,n.createElement)(M.__experimentalToolsPanelItem,{isShownByDefault:!0,onDeselect:function(){a({[e]:s.value})},hasValue:function(){return!R()(s.value,(0,L.y1)({value:i[e],option:s}))},key:e,label:s.label},0===t&&(0,n.createElement)(r.Z,{purpose:"gutenberg",onChange:function(e,t){a({[e]:t})},options:o,value:i,hasRevertButton:!1}))})))};const U={};var H=function(e,t,r){const[o,i]=(0,n.useState)([]),[a,l]=(0,n.useState)([]),s=(0,n.useCallback)((async function(){const n=new FormData,a=JSON.stringify(t);var s;(n.append("action","blocksy_get_dynamic_block_view"),n.append("block",e),n.append("attributes",a),U[a])?(i(r(U[a])),l(!1)):(o||l(!0),fetch((null===(s=window.ct_localizations||ct_customizer_localizations)||void 0===s?void 0:s.ajax_url)||wp.ajax.settings.url,{method:"POST",body:n}).then((function(e){return e.json()})).then((function(e){let{data:{content:t}}=e;i(r(t)),l(!1),U[a]=t})))}),[t,o]);return(0,n.useEffect)((function(){s()}),[t]),{isLoading:a,preview:o}},W=window.wp.blockEditor;function G(){return G=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var r in n)Object.prototype.hasOwnProperty.call(n,r)&&(e[r]=n[r])}return e},G.apply(this,arguments)}var $=function(e){let{label:t,resetAll:r,panelId:o,settings:i}=e;const a=(0,W.__experimentalUseMultipleOriginColorsAndGradients)();return(0,n.createElement)(M.__experimentalToolsPanel,{label:t,resetAll:r,panelId:o,hasInnerWrapper:!0,className:"color-block-support-panel",__experimentalFirstVisibleItemClass:"first",__experimentalLastVisibleItemClass:"last"},(0,n.createElement)("div",{className:"color-block-support-panel__inner-wrapper"},(0,n.createElement)(W.__experimentalColorGradientSettingsDropdown,G({__experimentalIsRenderedInSidebar:!0,__experimentalHasMultipleOrigins:!0,__experimentalGroup:"bg",settings:i,panelId:o},a,{gradients:[],disableCustomGradients:!0}))))};const q=function(e){return Object.entries((0,d.JS)(e)).reduce((function(e,t){const n=t[1].type;let r="string";return"ct-number"===n&&(r="number"),"ct-image-uploader"===n&&(r="object"),"ct-checkboxes"===n&&(r="object"),"ct-layers"===n&&(r="array"),e[t[0]]={type:r,default:t[1].value},e}),{})},Z=function(e){const t=q(e);return Object.entries(t).reduce((function(e,t){return e[t[0]]=t[1].default,e}),{})},K=function(e){var t,n;return(null===(t=window.ct_localizations||window.ct_customizer_localizations)||void 0===t||null===(n=t.gutenberg_blocks_data)||void 0===n?void 0:n[e])||[]},Y=function(e){return Object.keys(e).reduce((function(t,n){return t[n]={type:"string",default:e[n]},t}),{})};t()&&t().fn&&(t()(document).on("widget-added",(function(e,t){!function(e){if(e.querySelector(".ct-options-panel")&&e.querySelector(".ct-options-panel").innerHTML.indexOf("__i__")>-1){const t=e.querySelector(".ct-options-panel"),n=e.querySelector("input.multi_number").value;t.innerHTML=t.innerHTML.replace(/__i__|%i%/g,n)}f()}(t[0])})),h(),setTimeout((function(){t()(document.body).on("woocommerce_variations_added woocommerce_variations_loaded",(function(){h()}))}),1e3)),document.addEventListener("DOMContentLoaded",(function(){f(),function(){const e=document.querySelector('[name*="blocksy_taxonomy_meta_options"]');if(!e)return;if(!e.dataset.options)return;let t=JSON.parse(e.dataset.options);const r=document.querySelector(".form-table");let o=null,i="taxonomy";if(r)o=r.querySelector("tbody");else{const e=document.querySelector("#addtag");o=document.createElement("div"),o.classList.add("form-field","ct-term-screen-create"),o.textContent="",e.insertBefore(o,e.querySelector(".submit")),i="default"}(0,n.render)((0,n.createElement)(y,{input_name:e.name,options:t,tbody:o,value:(0,d.n6)(t,JSON.parse(e.value),null,!1),purpose:i}),e.parentNode)}(),[...document.querySelectorAll(".notice-blocksy-plugin"),...document.querySelectorAll("[data-dismiss]")].map((function(e){return o.e(274).then(o.bind(o,5274)).then((function(t){let{mount:n}=t;return n(e)}))})),t()&&t()(document).on("click",'[href*="technical_support"][href*="ct-dashboard"]',(function(e){e.preventDefault(),location.href="https://creativethemes.com/blocksy/support"}))}));const X=function(e){/comp|inter|loaded/.test(document.readyState)?e():document.addEventListener("DOMContentLoaded",e,!1)}}(),blocksyOptions=i}();