From a92c711d30b260b214448d1bedb3a39df33178f9 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Thu, 11 Mar 2021 09:25:54 +0000 Subject: [PATCH 1/4] Prevent custom settings to be override by the defaults --- js/src/gallery-block/edit.js | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/js/src/gallery-block/edit.js b/js/src/gallery-block/edit.js index 8db50ea42..7abd386cc 100644 --- a/js/src/gallery-block/edit.js +++ b/js/src/gallery-block/edit.js @@ -41,6 +41,11 @@ const Edit = ( { setAttributes, attributes, className, isSelected } ) => { const [ loading, setLoading ] = useState( false ); const preparedAttributes = useMemo( () => { + // Do not override block settings with defaults on existing ones. + if ( 0 !== attributes.selectedImages.lenght ) { + return attributes; + } + const defaultAttrs = {}; // eslint-disable-next-line no-unused-vars From ff510d5fe317f1b6b246ce1fa8a8869c0f8cf1c1 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Thu, 11 Mar 2021 09:26:41 +0000 Subject: [PATCH 2/4] Update compiled assets --- js/gallery-block.asset.php | 2 +- js/gallery-block.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gallery-block.asset.php b/js/gallery-block.asset.php index e6c03654e..785642555 100644 --- a/js/gallery-block.asset.php +++ b/js/gallery-block.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '1eb11fc0b636111ccc4876191f5e87c7'); \ No newline at end of file + array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e417123675a0b2c27eff9ad110a1ef44'); \ No newline at end of file diff --git a/js/gallery-block.js b/js/gallery-block.js index ee3f4bc39..ae203314e 100644 --- a/js/gallery-block.js +++ b/js/gallery-block.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=138)}([function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){var r=n(37),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(79),o=n(85);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){"use strict";function r(e,t){var n,r;if("function"==typeof t)void 0!==(r=t(e))&&(e=r);else if(Array.isArray(t))for(n=0;n=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(s).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var p=Object.prototype.hasOwnProperty;function f(e,t,n,r){if(!(this instanceof f))return new f(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var d=new f(".",!1,!0,!0);function m(e){return function(){return d[e].apply(d,arguments)}}f.prototype._fill=function(e,t,n,o){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!a(t[i])){if(!this.override){if(!a(n)||!c(n))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}t[i]={}}this._fill(e,t[i],n,o)}else{if(!this.override&&a(t[i])&&!c(t[i])){if(!a(n)||!c(n))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=r(n,o)}},f.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach((function(o){var i=void 0===t?null:t[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=r(e[o],i)})),e},f.prototype.str=function(e,t,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,t,o):n[e]=r(t,o),n},f.prototype.pick=function(e,t,n,r){var i,a,c,u,s;for(a=l(e,this.separator),i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(69),o=n(70),i=n(71),a=n(72),c=n(73);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(36),o=n(43);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(48),o=n(49),i=n(29),a=n(46),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t,n){var r=n(64);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}},function(e,t,n){var r=n(13);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(12);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(12),o=n(20),i=n(86);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(36),o=n(83),i=n(9),a=n(38),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,p=s.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:c).test(a(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(84),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(4)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(87),o=n(94),i=n(96),a=n(97),c=n(98);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0?e.ownerDocument.body:M(e)&&Z(e)?e:z(W(e))}function U(e,t){var n;void 0===t&&(t=[]);var r=z(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=A(r),a=o?[i].concat(i.visualViewport||[],Z(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(U(W(a)))}function V(e){return["table","td","th"].indexOf(D(e))>=0}function H(e){return M(e)&&"fixed"!==N(e).position?e.offsetParent:null}function q(e){for(var t=A(e),n=H(e);n&&V(n)&&"static"===N(n).position;)n=H(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===N(n).position)?t:n||function(e){for(var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=W(e);M(n)&&["html","body"].indexOf(D(n))<0;){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var $="top",G="bottom",J="right",X="left",Y="auto",K=[$,G,J,X],Q="start",ee="end",te="viewport",ne="popper",re=K.reduce((function(e,t){return e.concat([t+"-"+Q,t+"-"+ee])}),[]),oe=[].concat(K,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+Q,t+"-"+ee])}),[]),ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?de(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case $:t={x:c,y:n.y-r.height};break;case G:t={x:c,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:u};break;case X:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?me(i):null;if(null!=s){var l="y"===s?"height":"width";switch(a){case Q:t[s]=t[s]-(n[l]/2-r[l]/2);break;case ee:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},be=Math.max,he=Math.min,ge=Math.round,_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,l=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ge(ge(t*r)/r)||0,y:ge(ge(n*r)/r)||0}}(i):"function"==typeof s?s(i):i,p=l.x,f=void 0===p?0:p,d=l.y,m=void 0===d?0:d,v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=X,h=$,g=window;if(u){var _=q(n),O="clientHeight",w="clientWidth";_===A(n)&&"static"!==N(_=B(n)).position&&(O="scrollHeight",w="scrollWidth"),_=_,o===$&&(h=G,m-=_[O]-r.height,m*=c?1:-1),o===X&&(b=J,f-=_[w]-r.width,f*=c?1:-1)}var j,x=Object.assign({position:a},u&&_e);return c?Object.assign({},x,((j={})[h]=y?"0":"",j[b]=v?"0":"",j.transform=(g.devicePixelRatio||1)<2?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",j)):Object.assign({},x,((t={})[h]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];M(o)&&D(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&D(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Le={start:"end",end:"start"};function Ee(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ae(e,t){return t===te?ke(function(e){var t=A(e),n=B(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,c=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,c=r.offsetTop)),{width:o,height:i,x:a+R(e),y:c}}(e)):M(t)?function(e){var t=k(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ke(function(e){var t,n=B(e),r=S(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=be(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=be(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+R(e),u=-r.scrollTop;return"rtl"===N(o||n).direction&&(c+=be(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(B(e)))}function Se(e,t,n){var r="clippingParents"===t?function(e){var t=U(W(e)),n=["absolute","fixed"].indexOf(N(e).position)>=0&&M(e)?q(e):e;return C(n)?t.filter((function(e){return C(e)&&Pe(e,n)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ae(e,n);return t.top=be(r.top,t.top),t.right=he(r.right,t.right),t.bottom=he(r.bottom,t.bottom),t.left=be(r.left,t.left),t}),Ae(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?te:c,s=n.elementContext,l=void 0===s?ne:s,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,v=Ce("number"!=typeof m?m:Me(m,K)),y=l===ne?"reference":ne,b=e.elements.reference,h=e.rects.popper,g=e.elements[f?y:l],_=Se(C(g)?g:g.contextElement||B(e.elements.popper),a,u),O=k(b),w=ve({reference:O,element:h,strategy:"absolute",placement:o}),j=ke(Object.assign({},h,w)),x=l===ne?j:O,L={top:_.top-x.top+v.top,bottom:x.bottom-_.bottom+v.bottom,left:_.left-x.left+v.left,right:x.right-_.right+v.right},E=e.modifiersData.offset;if(l===ne&&E){var P=E[o];Object.keys(L).forEach((function(e){var t=[J,G].indexOf(e)>=0?1:-1,n=[$,G].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t}))}return L}function De(e,t,n){return be(e,he(t,n))}function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Re(e){return[$,J,G,X].some((function(t){return e[t]>=0}))}var Ne=se({defaultModifiers:[pe,ye,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,s={placement:fe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Oe(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oe(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},we,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=oe.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[X,$].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[X,J].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,s=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,s=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,v=n.allowedAutoPlacements,y=t.options.placement,b=fe(y),h=u||(b===y||!m?[xe(y)]:function(e){if(fe(e)===Y)return[];var t=xe(e);return[Ee(e),t,Ee(t)]}(y)),g=[y].concat(h).reduce((function(e,n){return e.concat(fe(n)===Y?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?oe:u,l=de(r),p=l?c?re:re.filter((function(e){return de(e)===l})):K,f=p.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Te(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:s,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,O=t.rects.popper,w=new Map,j=!0,x=g[0],L=0;L=0,S=A?"width":"height",C=Te(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:f,padding:s}),M=A?k?J:X:k?G:$;_[S]>O[S]&&(M=xe(M));var T=xe(M),D=[];if(i&&D.push(C[P]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){x=E,j=!1;break}w.set(E,D)}if(j)for(var B=function(e){var t=g.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},R=m?3:1;R>0;R--){if("break"===B(R))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,y=Te(t,{boundary:u,rootBoundary:s,padding:p,altBoundary:l}),b=fe(t.placement),h=de(t.placement),g=!h,_=me(b),O="x"===_?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,x=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E={x:0,y:0};if(w){if(i||c){var P="y"===_?$:X,k="y"===_?G:J,A="y"===_?"height":"width",S=w[_],C=w[_]+y[P],M=w[_]-y[k],T=d?-x[A]/2:0,D=h===Q?j[A]:x[A],B=h===Q?-x[A]:-j[A],R=t.elements.arrow,N=d&&R?F(R):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=Z[P],W=Z[k],z=De(0,j[A],N[A]),U=g?j[A]/2-T-z-I-L:D-z-I-L,V=g?-j[A]/2+T+z+W+L:B+z+W+L,H=t.elements.arrow&&q(t.elements.arrow),Y=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,K=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ee=w[_]+U-K-Y,te=w[_]+V-K;if(i){var ne=De(d?he(C,ee):C,S,d?be(M,te):M);w[_]=ne,E[_]=ne-S}if(c){var re="x"===_?$:X,oe="x"===_?G:J,ie=w[O],ae=ie+y[re],ce=ie-y[oe],ue=De(d?he(ae,ee):ae,ie,d?be(ce,te):ce);w[O]=ue,E[O]=ue-ie}}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=fe(n.placement),u=me(c),s=[X,J].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return Ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,K))}(o.padding,n),p=F(i),f="y"===u?$:X,d="y"===u?G:J,m=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],y=q(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,h=m/2-v/2,g=l[f],_=b-p[s]-l[d],O=b/2-p[s]/2+h,w=De(g,O,_),j=u;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Te(t,{elementContext:"reference"}),c=Te(t,{altBoundary:!0}),u=Be(a,r),s=Be(c,o,i),l=Re(u),p=Re(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Ze="tippy-content",Ie="tippy-backdrop",Fe="tippy-arrow",We="tippy-svg-arrow",ze={passive:!0,capture:!0};function Ue(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ve(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $e(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function Je(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function Ye(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some((function(t){return Ve(e,t)}))}function Qe(e){return Ve(e,"MouseEvent")}function et(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function tt(e){return Ke(e)?[e]:function(e){return Ve(e,"NodeList")}(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function rt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ot(e){var t,n=$e(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function it(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var at={isTouch:!1},ct=0;function ut(){at.isTouch||(at.isTouch=!0,window.performance&&document.addEventListener("mousemove",st))}function st(){var e=performance.now();e-ct<20&&(at.isTouch=!1,document.removeEventListener("mousemove",st)),ct=e}function lt(){var e=document.activeElement;if(et(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var pt="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ft=/MSIE |Trident\//.test(pt);var dt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),vt=Object.keys(mt);function yt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function bt(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(yt(Object.assign({},mt,{plugins:t}))):vt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ht(e,t){e.innerHTML=t}function gt(e){var t=Ye();return!0===e?t.className=Fe:(t.className=We,Ke(e)?t.appendChild(e):ht(t,e)),t}function _t(e,t){Ke(t.content)?(ht(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ht(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,n=Xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ze)})),arrow:n.find((function(e){return e.classList.contains(Fe)||e.classList.contains(We)})),backdrop:n.find((function(e){return e.classList.contains(Ie)}))}}function wt(e){var t=Ye(),n=Ye();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ye();function o(n,r){var o=Ot(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_t(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(gt(r.arrow))):i.appendChild(gt(r.arrow)):c&&i.removeChild(c)}return r.className=Ze,r.setAttribute("data-state","hidden"),_t(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}wt.$$tippy=!0;var jt=1,xt=[],Lt=[];function Et(e,t){var n,r,o,i,a,c,u,s,l,p=bt(e,Object.assign({},mt,{},yt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,m=!1,v=!1,y=[],b=qe(G,p.interactiveDebounce),h=jt++,g=(l=p.plugins).filter((function(e,t){return l.indexOf(e)===t})),_={id:h,reference:e,popper:Ye(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(_.state.isDestroyed)return;D("onBeforeUpdate",[_,t]),q();var n=_.props,r=bt(e,Object.assign({},_.props,{},t,{ignoreAttributes:!0}));_.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),b=qe(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),T(),j&&j(n,r);_.popperInstance&&(K(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[_,t])},setContent:function(e){_.setProps({content:e})},show:function(){0;var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=at.isTouch&&!_.props.touch,o=Ue(_.props.duration,0,mt.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[_],!1),!1===_.props.onShow(_))return;_.state.isVisible=!0,k()&&(w.style.visibility="visible");T(),W(),_.state.isMounted||(w.style.transition="none");if(k()){var i=C(),a=i.box,c=i.content;nt([a,c],0)}u=function(){var e;if(_.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,k()&&_.props.animation){var t=C(),n=t.box,r=t.content;nt([n,r],o),rt([n,r],"visible")}B(),R(),Ge(Lt,_),null==(e=_.popperInstance)||e.forceUpdate(),_.state.isMounted=!0,D("onMount",[_]),_.props.animation&&k()&&function(e,t){U(e,t)}(o,(function(){_.state.isShown=!0,D("onShown",[_])}))}},function(){var e,t=_.props.appendTo,n=A();e=_.props.interactive&&t===mt.appendTo||"parent"===t?n.parentNode:He(t,[n]);e.contains(w)||e.appendChild(w);K(),!1}()},hide:function(){0;var e=!_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=Ue(_.props.duration,1,mt.duration);if(e||t||n)return;if(D("onHide",[_],!1),!1===_.props.onHide(_))return;_.state.isVisible=!1,_.state.isShown=!1,v=!1,f=!1,k()&&(w.style.visibility="hidden");if(N(),z(),T(),k()){var o=C(),i=o.box,a=o.content;_.props.animation&&(nt([i,a],r),rt([i,a],"hidden"))}B(),R(),_.props.animation?k()&&function(e,t){U(e,(function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,_.unmount):_.unmount()},hideWithInteractivity:function(e){0;S().addEventListener("mousemove",b),Ge(xt,b),b(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){0;_.state.isVisible&&_.hide();if(!_.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Lt=Lt.filter((function(e){return e!==_})),_.state.isMounted=!1,D("onHidden",[_])},destroy:function(){0;if(_.state.isDestroyed)return;_.clearDelayTimeouts(),_.unmount(),q(),delete e._tippy,_.state.isDestroyed=!0,D("onDestroy",[_])}};if(!p.render)return _;var O=p.render(_),w=O.popper,j=O.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var x=g.map((function(e){return e.fn(_)})),L=e.hasAttribute("aria-expanded");return H(),R(),T(),D("onCreate",[_]),p.showOnCreate&&te(),w.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(e){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(S().addEventListener("mousemove",b),b(e))})),_;function E(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===E()[0]}function k(){var e;return!!(null==(e=_.props.render)?void 0:e.$$tippy)}function A(){return s||e}function S(){var e=A().parentNode;return e?ot(e):document}function C(){return Ot(w)}function M(e){return _.state.isMounted&&!_.state.isVisible||at.isTouch||a&&"focus"===a.type?0:Ue(_.props.delay,e?0:1,mt.delay)}function T(){w.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",w.style.zIndex=""+_.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=_.props)[e].apply(r,t)}function B(){var t=_.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;$e(_.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(_.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!L&&_.props.aria.expanded&&$e(_.props.triggerTarget||e).forEach((function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){S().removeEventListener("mousemove",b),xt=xt.filter((function(e){return e!==b}))}function Z(e){if(!(at.isTouch&&(m||"mousedown"===e.type)||_.props.interactive&&w.contains(e.target))){if(A().contains(e.target)){if(at.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[_,e]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||z())}}function I(){m=!0}function F(){m=!1}function W(){var e=S();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,ze),e.addEventListener("touchstart",F,ze),e.addEventListener("touchmove",I,ze)}function z(){var e=S();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,ze),e.removeEventListener("touchstart",F,ze),e.removeEventListener("touchmove",I,ze)}function U(e,t){var n=C().box;function r(e){e.target===n&&(it(n,"remove",r),t())}if(0===e)return t();it(n,"remove",c),it(n,"add",r),c=r}function V(t,n,r){void 0===r&&(r=!1),$e(_.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),y.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;P()&&(V("touchstart",$,{passive:!0}),V("touchend",J,{passive:!0})),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,$),e){case"mouseenter":V("mouseleave",J);break;case"focus":V(ft?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function q(){y.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),y=[]}function $(e){var t,n=!1;if(_.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,R(),!_.state.isVisible&&Qe(e)&&xt.forEach((function(t){return t(e)})),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||f)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:te(e),"click"===e.type&&(f=!n),n&&!r&&ne(e)}}function G(e){var t=e.target,n=A().contains(t)||w.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Je(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,s="top"===a?c.bottom.y:0,l="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-s>i,m=t.left-n+l>i,v=n-t.right-p>i;return f||d||m||v}))}(ee().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(N(),ne(e))}function J(e){Y(e)||_.props.trigger.indexOf("click")>=0&&f||(_.props.interactive?_.hideWithInteractivity(e):ne(e))}function X(e){_.props.trigger.indexOf("focusin")<0&&e.target!==A()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||ne(e)}function Y(e){return!!at.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Q();var t=_.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ot(w).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=C().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];k()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),_.popperInstance=Ne(s,w,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function Q(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ee(){return Xe(w.querySelectorAll("[data-tippy-root]"))}function te(e){_.clearDelayTimeouts(),e&&D("onTrigger",[_,e]),W();var t=M(!0),n=E(),o=n[0],i=n[1];at.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){_.show()}),t):_.show()}function ne(e){if(_.clearDelayTimeouts(),D("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=M(!1);t?o=setTimeout((function(){_.state.isVisible&&_.hide()}),t):i=requestAnimationFrame((function(){_.hide()}))}}else z()}}function Pt(e,t){void 0===t&&(t={});var n=mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ut,ze),window.addEventListener("blur",lt);var r=Object.assign({},t,{plugins:n}),o=tt(e).reduce((function(e,t){var n=t&&Et(t,r);return n&&e.push(n),e}),[]);return Ke(e)?o[0]:o}Pt.defaultProps=mt,Pt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mt[t]=e[t]}))},Pt.currentInput=at;Object.assign({},we,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Pt.setDefaultProps({render:wt});var kt=Pt,At=n(55);function St(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Ct="undefined"!=typeof window&&"undefined"!=typeof document;function Mt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Tt(){return Ct&&document.createElement("div")}function Dt(e,t){var n,r,o,i,a;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(o=[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]),i=[],a=Object.create(null),o.forEach((function(e){void 0===a[JSON.stringify(e)]&&i.push(e),a[JSON.stringify(e)]=!0})),i)})})}var Bt=Ct?y.useLayoutEffect:y.useEffect;function Rt(e){var t=Object(y.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Nt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Zt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Nt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Nt(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,a=t.render,c=t.reference,u=t.disabled,s=void 0!==u&&u,l=t.ignoreAttributes,p=void 0===l||l,f=(t.__source,t.__self,St(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),d=void 0!==o,m=void 0!==i,v=Object(y.useState)(!1),h=v[0],g=v[1],_=Object(y.useState)({}),O=_[0],w=_[1],j=Object(y.useState)(),x=j[0],L=j[1],E=Rt((function(){return{container:Tt(),renders:1}})),P=Object.assign({ignoreAttributes:p},f,{content:E.container});d&&(P.trigger="manual",P.hideOnClick=!1),m&&(s=!0);var k=P,A=P.plugins||[];a&&(k=Object.assign({},P,{plugins:m?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;L(n)}}}}]):A,render:function(){return{popper:E.container}}}));var S=[c].concat(n?[n.type]:[]);return Bt((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||E.ref||Tt(),Object.assign({},k,{plugins:[Zt].concat(P.plugins||[])}));return E.instance=n,s&&n.disable(),o&&n.show(),m&&i.hook({instance:n,content:r,props:k}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),S),Bt((function(){var e;if(1!==E.renders){var t=E.instance;t.setProps(Dt(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),d&&(o?t.show():t.hide()),m&&i.hook({instance:t,content:r,props:k})}else E.renders++})),Bt((function(){var e;if(a){var t=E.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||w({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(S)),b.a.createElement(b.a.Fragment,null,n?Object(y.cloneElement)(n,{ref:function(e){E.ref=e,Mt(n.ref,e)}}):null,h&&Object(At.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),x,E.instance):r,E.container))}}var Ft=function(e,t){return Object(y.forwardRef)((function(n,r){var o=n.children,i=St(n,["children"]);return b.a.createElement(e,Object.assign({},t,i),o?Object(y.cloneElement)(o,{ref:function(e){Mt(r,e),Mt(o.ref,e)}}):null)}))},Wt=Ft(It(kt)),zt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-round"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},Ut=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-square"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},Vt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-radius"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Ht=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-none"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},qt=[{value:{type:"expanded",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-modern"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:Object(r.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return b.a.createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-2-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:Object(r.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return b.a.createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-3-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:Object(r.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-classic"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:Object(r.__)("Classic","cloudinary")}],$t=["image"],Gt=[{label:Object(r.__)("1:1","cloudinary"),value:"1:1"},{label:Object(r.__)("3:4","cloudinary"),value:"3:4"},{label:Object(r.__)("4:3","cloudinary"),value:"4:3"},{label:Object(r.__)("4:6","cloudinary"),value:"4:6"},{label:Object(r.__)("6:4","cloudinary"),value:"6:4"},{label:Object(r.__)("5:7","cloudinary"),value:"5:7"},{label:Object(r.__)("7:5","cloudinary"),value:"7:5"},{label:Object(r.__)("8:5","cloudinary"),value:"8:5"},{label:Object(r.__)("5:8","cloudinary"),value:"5:8"},{label:Object(r.__)("9:16","cloudinary"),value:"9:16"},{label:Object(r.__)("16:9","cloudinary"),value:"16:9"}],Jt=[{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("Fade","cloudinary"),value:"fade"},{label:Object(r.__)("Slide","cloudinary"),value:"slide"}],Xt=[{label:Object(r.__)("Always","cloudinary"),value:"always"},{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("MouseOver","cloudinary"),value:"mouseover"}],Yt=[{label:Object(r.__)("Inline","cloudinary"),value:"inline"},{label:Object(r.__)("Flyout","cloudinary"),value:"flyout"},{label:Object(r.__)("Popup","cloudinary"),value:"popup"}],Kt=[{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],Qt=[{label:Object(r.__)("Click","cloudinary"),value:"click"},{label:Object(r.__)("Hover","cloudinary"),value:"hover"}],en=[{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"}],tn=[{label:Object(r.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:Object(r.__)("Indicators","cloudinary"),value:"indicators"},{label:Object(r.__)("None","cloudinary"),value:"none"}],nn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return b.a.createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-9-16"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},b.a.createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:Object(r.__)("Rectangle","cloudinary")}],rn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],on=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Border","cloudinary"),value:"border"},{label:Object(r.__)("Gradient","cloudinary"),value:"gradient"}],an=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:Object(r.__)("Left-Right","cloudinary"),value:"left-right"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],cn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],un=[{label:Object(r.__)("Pad","cloudinary"),value:"pad"},{label:Object(r.__)("Fill","cloudinary"),value:"fill"}],sn=[{label:Object(r.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:Object(r.__)("Border color padding","cloudinary"),value:"auto"},{label:Object(r.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:Object(r.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],ln=n(54),pn=n.n(ln),fn=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,a="object"===L()(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return b.a.createElement("button",{type:"button",onClick:function(){return o(t)},className:pn()("radio-select",{"radio-select--active":a})},b.a.createElement(r,null),b.a.createElement("div",{className:"radio-select__label"},n))},dn=function(e){var t=e.children,n=e.value;return b.a.createElement("div",{className:"colorpalette-color-label"},b.a.createElement("span",null,t),b.a.createElement("span",{className:"component-color-indicator","aria-label":"Color: ".concat(n),style:{background:n}}))},mn=new g.a("_"),vn=function(e){var t=e.attributes,n=e.setAttributes,o=e.colors,i=P()(t),a=mn.object(i);return a.customSettings="object"===L()(a.customSettings)?JSON.stringify(a.customSettings):a.customSettings,t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background,b.a.createElement(b.a.Fragment,null,b.a.createElement(w.PanelBody,{title:Object(r.__)("Layout","cloudinary")},qt.map((function(e){return b.a.createElement(fn,{key:"".concat(e.value.type,"-").concat(e.value.columns,"-layout"),value:e.value,onChange:function(e){n({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1}},e.label)}))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Color Palette","cloudinary"),initialOpen:!1},b.a.createElement(dn,{value:t.themeProps_primary},Object(r.__)("Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_primary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_primary:e})}}),b.a.createElement(dn,{value:t.themeProps_onPrimary},Object(r.__)("On Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_onPrimary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_onPrimary:e})}}),b.a.createElement(dn,{value:t.themeProps_active},Object(r.__)("Active","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_active,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_active:e})}})),"classic"===t.displayProps_mode&&b.a.createElement(w.PanelBody,{title:Object(r.__)("Fade Transition","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{value:t.transition,options:Jt,onChange:function(e){return n({transition:e})}})),b.a.createElement(w.PanelBody,{title:Object(r.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{label:Object(r.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:Gt,onChange:function(e){return n({aspectRatio:e})}}),b.a.createElement("p",null,b.a.createElement(Wt,{content:b.a.createElement("span",null,Object(r.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary")),theme:"cloudinary",arrow:!1,placement:"bottom-start"},b.a.createElement("div",{className:"cld-ui-title"},Object(r.__)("Resize/Crop Mode","cloudinary"),b.a.createElement("span",{className:"dashicons dashicons-info cld-tooltip"}))),b.a.createElement(w.ButtonGroup,null,un.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-look-and-feel",isDefault:!0,isPressed:e.value===t.transformation_crop,onClick:function(){return n({transformation_crop:e.value,transformation_background:null})}},e.label)})))),"pad"===t.transformation_crop&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Pad style","cloudinary"),value:t.transformation_background,options:sn,onChange:function(e){n({transformation_background:e})}}),b.a.createElement("p",null,Object(r.__)("Navigation","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Xt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-navigation",isDefault:!0,isPressed:e.value===t.navigation,onClick:function(){return n({navigation:e.value})}},e.label)})))),b.a.createElement("div",{style:{marginTop:"30px"}},b.a.createElement(w.ToggleControl,{label:Object(r.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:function(){return n({zoom:!t.zoom})}}),t.zoom&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Type","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Yt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-type",isDefault:!0,isPressed:e.value===t.zoomProps_type,onClick:function(){return n({zoomProps_type:e.value})}},e.label)})))),"flyout"===t.zoomProps_type&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:Kt,onChange:function(e){return n({zoomProps_viewerPosition:e})}}),"popup"!==t.zoomProps_type&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Trigger","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Qt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-trigger",isDefault:!0,isPressed:e.value===t.zoomProps_trigger,onClick:function(){return n({zoomProps_trigger:e.value})}},e.label)})))))))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Carousel Parameters","cloudinary"),initialOpen:!1},b.a.createElement("p",null,Object(r.__)("Carousel Location","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,en.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-location",isDefault:!0,isPressed:e.value===t.carouselLocation,onClick:function(){return n({carouselLocation:e.value})}},e.label)})))),b.a.createElement(w.RangeControl,{label:Object(r.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:function(e){return n({carouselOffset:e})},min:0,max:100}),b.a.createElement("p",null,Object(r.__)("Carousel Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,tn.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-style",isDefault:!0,isPressed:e.value===t.carouselStyle,onClick:function(){return n({carouselStyle:e.value})}},e.label)})))),"thumbnails"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement(w.RangeControl,{label:Object(r.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:function(e){return n({thumbnailProps_width:e})},min:5,max:300}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:function(e){return n({thumbnailProps_height:e})},min:5,max:300}),b.a.createElement("p",null,Object(r.__)("Navigation Button Shape","cloudinary")),nn.map((function(e){return b.a.createElement(fn,{key:e.value+"-navigation-button-shape",value:e.value,onChange:function(e){return n({thumbnailProps_navigationShape:e})},icon:e.icon,current:t.thumbnailProps_navigationShape},e.label)})),b.a.createElement("p",null,Object(r.__)("Selected Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,on.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-selected-style",isDefault:!0,isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:function(){return n({thumbnailProps_selectedStyle:e.value})}},e.label)})))),b.a.createElement(w.SelectControl,{label:Object(r.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:an,onChange:function(e){return n({thumbnailProps_selectedBorderPosition:e})}}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:function(e){return n({thumbnailProps_selectedBorderWidth:e})},min:0,max:10}),b.a.createElement("p",null,Object(r.__)("Media Shape Icon","cloudinary")),cn.map((function(e){return b.a.createElement(fn,{key:e.value+"-media",value:e.value,onChange:function(e){return n({thumbnailProps_mediaSymbolShape:e})},icon:e.icon,current:t.thumbnailProps_mediaSymbolShape},e.label)}))),"indicators"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Indicators Shape","cloudinary")),rn.map((function(e){return b.a.createElement(fn,{key:e.value+"-indicator",value:e.value,onChange:function(e){return n({indicatorProps_shape:e})},icon:e.icon,current:t.indicatorProps_shape},e.label)})))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Additional Settings","cloudinary"),initialOpen:!1},b.a.createElement(w.TextareaControl,{label:Object(r.__)("Custom Settings","cloudinary"),help:Object(r.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a.customSettings,onChange:function(e){try{n({customSettings:JSON.parse(e)})}catch(t){n({customSettings:e})}}})))},yn=n(56);function bn(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 hn(e){for(var t=1;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(s).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var p=Object.prototype.hasOwnProperty;function f(e,t,n,r){if(!(this instanceof f))return new f(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var d=new f(".",!1,!0,!0);function m(e){return function(){return d[e].apply(d,arguments)}}f.prototype._fill=function(e,t,n,o){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!a(t[i])){if(!this.override){if(!a(n)||!c(n))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}t[i]={}}this._fill(e,t[i],n,o)}else{if(!this.override&&a(t[i])&&!c(t[i])){if(!a(n)||!c(n))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=r(n,o)}},f.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach((function(o){var i=void 0===t?null:t[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=r(e[o],i)})),e},f.prototype.str=function(e,t,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,t,o):n[e]=r(t,o),n},f.prototype.pick=function(e,t,n,r){var i,a,c,u,s;for(a=l(e,this.separator),i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(69),o=n(70),i=n(71),a=n(72),c=n(73);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(36),o=n(43);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(48),o=n(49),i=n(29),a=n(46),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t,n){var r=n(64);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}},function(e,t,n){var r=n(13);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(12);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(12),o=n(20),i=n(86);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(36),o=n(83),i=n(9),a=n(38),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,p=s.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:c).test(a(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(84),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(4)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(87),o=n(94),i=n(96),a=n(97),c=n(98);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0?e.ownerDocument.body:M(e)&&Z(e)?e:z(W(e))}function U(e,t){var n;void 0===t&&(t=[]);var r=z(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=A(r),a=o?[i].concat(i.visualViewport||[],Z(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(U(W(a)))}function V(e){return["table","td","th"].indexOf(D(e))>=0}function H(e){return M(e)&&"fixed"!==N(e).position?e.offsetParent:null}function q(e){for(var t=A(e),n=H(e);n&&V(n)&&"static"===N(n).position;)n=H(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===N(n).position)?t:n||function(e){for(var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=W(e);M(n)&&["html","body"].indexOf(D(n))<0;){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var $="top",G="bottom",J="right",X="left",Y="auto",K=[$,G,J,X],Q="start",ee="end",te="viewport",ne="popper",re=K.reduce((function(e,t){return e.concat([t+"-"+Q,t+"-"+ee])}),[]),oe=[].concat(K,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+Q,t+"-"+ee])}),[]),ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?de(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case $:t={x:c,y:n.y-r.height};break;case G:t={x:c,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:u};break;case X:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?me(i):null;if(null!=s){var l="y"===s?"height":"width";switch(a){case Q:t[s]=t[s]-(n[l]/2-r[l]/2);break;case ee:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},be=Math.max,he=Math.min,ge=Math.round,_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,l=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ge(ge(t*r)/r)||0,y:ge(ge(n*r)/r)||0}}(i):"function"==typeof s?s(i):i,p=l.x,f=void 0===p?0:p,d=l.y,m=void 0===d?0:d,v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=X,h=$,g=window;if(u){var _=q(n),O="clientHeight",w="clientWidth";_===A(n)&&"static"!==N(_=B(n)).position&&(O="scrollHeight",w="scrollWidth"),_=_,o===$&&(h=G,m-=_[O]-r.height,m*=c?1:-1),o===X&&(b=J,f-=_[w]-r.width,f*=c?1:-1)}var j,x=Object.assign({position:a},u&&_e);return c?Object.assign({},x,((j={})[h]=y?"0":"",j[b]=v?"0":"",j.transform=(g.devicePixelRatio||1)<2?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",j)):Object.assign({},x,((t={})[h]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];M(o)&&D(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&D(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Le={start:"end",end:"start"};function Ee(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ae(e,t){return t===te?ke(function(e){var t=A(e),n=B(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,c=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,c=r.offsetTop)),{width:o,height:i,x:a+R(e),y:c}}(e)):M(t)?function(e){var t=k(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ke(function(e){var t,n=B(e),r=S(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=be(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=be(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+R(e),u=-r.scrollTop;return"rtl"===N(o||n).direction&&(c+=be(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(B(e)))}function Se(e,t,n){var r="clippingParents"===t?function(e){var t=U(W(e)),n=["absolute","fixed"].indexOf(N(e).position)>=0&&M(e)?q(e):e;return C(n)?t.filter((function(e){return C(e)&&Pe(e,n)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ae(e,n);return t.top=be(r.top,t.top),t.right=he(r.right,t.right),t.bottom=he(r.bottom,t.bottom),t.left=be(r.left,t.left),t}),Ae(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?te:c,s=n.elementContext,l=void 0===s?ne:s,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,v=Ce("number"!=typeof m?m:Me(m,K)),y=l===ne?"reference":ne,b=e.elements.reference,h=e.rects.popper,g=e.elements[f?y:l],_=Se(C(g)?g:g.contextElement||B(e.elements.popper),a,u),O=k(b),w=ve({reference:O,element:h,strategy:"absolute",placement:o}),j=ke(Object.assign({},h,w)),x=l===ne?j:O,L={top:_.top-x.top+v.top,bottom:x.bottom-_.bottom+v.bottom,left:_.left-x.left+v.left,right:x.right-_.right+v.right},E=e.modifiersData.offset;if(l===ne&&E){var P=E[o];Object.keys(L).forEach((function(e){var t=[J,G].indexOf(e)>=0?1:-1,n=[$,G].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t}))}return L}function De(e,t,n){return be(e,he(t,n))}function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Re(e){return[$,J,G,X].some((function(t){return e[t]>=0}))}var Ne=se({defaultModifiers:[pe,ye,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,s={placement:fe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Oe(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oe(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},we,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=oe.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[X,$].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[X,J].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,s=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,s=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,v=n.allowedAutoPlacements,y=t.options.placement,b=fe(y),h=u||(b===y||!m?[xe(y)]:function(e){if(fe(e)===Y)return[];var t=xe(e);return[Ee(e),t,Ee(t)]}(y)),g=[y].concat(h).reduce((function(e,n){return e.concat(fe(n)===Y?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?oe:u,l=de(r),p=l?c?re:re.filter((function(e){return de(e)===l})):K,f=p.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Te(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:s,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,O=t.rects.popper,w=new Map,j=!0,x=g[0],L=0;L=0,S=A?"width":"height",C=Te(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:f,padding:s}),M=A?k?J:X:k?G:$;_[S]>O[S]&&(M=xe(M));var T=xe(M),D=[];if(i&&D.push(C[P]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){x=E,j=!1;break}w.set(E,D)}if(j)for(var B=function(e){var t=g.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},R=m?3:1;R>0;R--){if("break"===B(R))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,y=Te(t,{boundary:u,rootBoundary:s,padding:p,altBoundary:l}),b=fe(t.placement),h=de(t.placement),g=!h,_=me(b),O="x"===_?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,x=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E={x:0,y:0};if(w){if(i||c){var P="y"===_?$:X,k="y"===_?G:J,A="y"===_?"height":"width",S=w[_],C=w[_]+y[P],M=w[_]-y[k],T=d?-x[A]/2:0,D=h===Q?j[A]:x[A],B=h===Q?-x[A]:-j[A],R=t.elements.arrow,N=d&&R?F(R):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=Z[P],W=Z[k],z=De(0,j[A],N[A]),U=g?j[A]/2-T-z-I-L:D-z-I-L,V=g?-j[A]/2+T+z+W+L:B+z+W+L,H=t.elements.arrow&&q(t.elements.arrow),Y=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,K=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ee=w[_]+U-K-Y,te=w[_]+V-K;if(i){var ne=De(d?he(C,ee):C,S,d?be(M,te):M);w[_]=ne,E[_]=ne-S}if(c){var re="x"===_?$:X,oe="x"===_?G:J,ie=w[O],ae=ie+y[re],ce=ie-y[oe],ue=De(d?he(ae,ee):ae,ie,d?be(ce,te):ce);w[O]=ue,E[O]=ue-ie}}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=fe(n.placement),u=me(c),s=[X,J].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return Ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,K))}(o.padding,n),p=F(i),f="y"===u?$:X,d="y"===u?G:J,m=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],y=q(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,h=m/2-v/2,g=l[f],_=b-p[s]-l[d],O=b/2-p[s]/2+h,w=De(g,O,_),j=u;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Te(t,{elementContext:"reference"}),c=Te(t,{altBoundary:!0}),u=Be(a,r),s=Be(c,o,i),l=Re(u),p=Re(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Ze="tippy-content",Ie="tippy-backdrop",Fe="tippy-arrow",We="tippy-svg-arrow",ze={passive:!0,capture:!0};function Ue(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ve(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $e(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function Je(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function Ye(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some((function(t){return Ve(e,t)}))}function Qe(e){return Ve(e,"MouseEvent")}function et(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function tt(e){return Ke(e)?[e]:function(e){return Ve(e,"NodeList")}(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function rt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ot(e){var t,n=$e(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function it(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var at={isTouch:!1},ct=0;function ut(){at.isTouch||(at.isTouch=!0,window.performance&&document.addEventListener("mousemove",st))}function st(){var e=performance.now();e-ct<20&&(at.isTouch=!1,document.removeEventListener("mousemove",st)),ct=e}function lt(){var e=document.activeElement;if(et(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var pt="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ft=/MSIE |Trident\//.test(pt);var dt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),vt=Object.keys(mt);function yt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function bt(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(yt(Object.assign({},mt,{plugins:t}))):vt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ht(e,t){e.innerHTML=t}function gt(e){var t=Ye();return!0===e?t.className=Fe:(t.className=We,Ke(e)?t.appendChild(e):ht(t,e)),t}function _t(e,t){Ke(t.content)?(ht(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ht(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,n=Xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ze)})),arrow:n.find((function(e){return e.classList.contains(Fe)||e.classList.contains(We)})),backdrop:n.find((function(e){return e.classList.contains(Ie)}))}}function wt(e){var t=Ye(),n=Ye();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ye();function o(n,r){var o=Ot(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_t(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(gt(r.arrow))):i.appendChild(gt(r.arrow)):c&&i.removeChild(c)}return r.className=Ze,r.setAttribute("data-state","hidden"),_t(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}wt.$$tippy=!0;var jt=1,xt=[],Lt=[];function Et(e,t){var n,r,o,i,a,c,u,s,l,p=bt(e,Object.assign({},mt,{},yt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,m=!1,v=!1,y=[],b=qe(G,p.interactiveDebounce),h=jt++,g=(l=p.plugins).filter((function(e,t){return l.indexOf(e)===t})),_={id:h,reference:e,popper:Ye(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(_.state.isDestroyed)return;D("onBeforeUpdate",[_,t]),q();var n=_.props,r=bt(e,Object.assign({},_.props,{},t,{ignoreAttributes:!0}));_.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),b=qe(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),T(),j&&j(n,r);_.popperInstance&&(K(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[_,t])},setContent:function(e){_.setProps({content:e})},show:function(){0;var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=at.isTouch&&!_.props.touch,o=Ue(_.props.duration,0,mt.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[_],!1),!1===_.props.onShow(_))return;_.state.isVisible=!0,k()&&(w.style.visibility="visible");T(),W(),_.state.isMounted||(w.style.transition="none");if(k()){var i=C(),a=i.box,c=i.content;nt([a,c],0)}u=function(){var e;if(_.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,k()&&_.props.animation){var t=C(),n=t.box,r=t.content;nt([n,r],o),rt([n,r],"visible")}B(),R(),Ge(Lt,_),null==(e=_.popperInstance)||e.forceUpdate(),_.state.isMounted=!0,D("onMount",[_]),_.props.animation&&k()&&function(e,t){U(e,t)}(o,(function(){_.state.isShown=!0,D("onShown",[_])}))}},function(){var e,t=_.props.appendTo,n=A();e=_.props.interactive&&t===mt.appendTo||"parent"===t?n.parentNode:He(t,[n]);e.contains(w)||e.appendChild(w);K(),!1}()},hide:function(){0;var e=!_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=Ue(_.props.duration,1,mt.duration);if(e||t||n)return;if(D("onHide",[_],!1),!1===_.props.onHide(_))return;_.state.isVisible=!1,_.state.isShown=!1,v=!1,f=!1,k()&&(w.style.visibility="hidden");if(N(),z(),T(),k()){var o=C(),i=o.box,a=o.content;_.props.animation&&(nt([i,a],r),rt([i,a],"hidden"))}B(),R(),_.props.animation?k()&&function(e,t){U(e,(function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,_.unmount):_.unmount()},hideWithInteractivity:function(e){0;S().addEventListener("mousemove",b),Ge(xt,b),b(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){0;_.state.isVisible&&_.hide();if(!_.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Lt=Lt.filter((function(e){return e!==_})),_.state.isMounted=!1,D("onHidden",[_])},destroy:function(){0;if(_.state.isDestroyed)return;_.clearDelayTimeouts(),_.unmount(),q(),delete e._tippy,_.state.isDestroyed=!0,D("onDestroy",[_])}};if(!p.render)return _;var O=p.render(_),w=O.popper,j=O.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var x=g.map((function(e){return e.fn(_)})),L=e.hasAttribute("aria-expanded");return H(),R(),T(),D("onCreate",[_]),p.showOnCreate&&te(),w.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(e){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(S().addEventListener("mousemove",b),b(e))})),_;function E(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===E()[0]}function k(){var e;return!!(null==(e=_.props.render)?void 0:e.$$tippy)}function A(){return s||e}function S(){var e=A().parentNode;return e?ot(e):document}function C(){return Ot(w)}function M(e){return _.state.isMounted&&!_.state.isVisible||at.isTouch||a&&"focus"===a.type?0:Ue(_.props.delay,e?0:1,mt.delay)}function T(){w.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",w.style.zIndex=""+_.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=_.props)[e].apply(r,t)}function B(){var t=_.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;$e(_.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(_.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!L&&_.props.aria.expanded&&$e(_.props.triggerTarget||e).forEach((function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){S().removeEventListener("mousemove",b),xt=xt.filter((function(e){return e!==b}))}function Z(e){if(!(at.isTouch&&(m||"mousedown"===e.type)||_.props.interactive&&w.contains(e.target))){if(A().contains(e.target)){if(at.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[_,e]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||z())}}function I(){m=!0}function F(){m=!1}function W(){var e=S();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,ze),e.addEventListener("touchstart",F,ze),e.addEventListener("touchmove",I,ze)}function z(){var e=S();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,ze),e.removeEventListener("touchstart",F,ze),e.removeEventListener("touchmove",I,ze)}function U(e,t){var n=C().box;function r(e){e.target===n&&(it(n,"remove",r),t())}if(0===e)return t();it(n,"remove",c),it(n,"add",r),c=r}function V(t,n,r){void 0===r&&(r=!1),$e(_.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),y.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;P()&&(V("touchstart",$,{passive:!0}),V("touchend",J,{passive:!0})),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,$),e){case"mouseenter":V("mouseleave",J);break;case"focus":V(ft?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function q(){y.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),y=[]}function $(e){var t,n=!1;if(_.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,R(),!_.state.isVisible&&Qe(e)&&xt.forEach((function(t){return t(e)})),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||f)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:te(e),"click"===e.type&&(f=!n),n&&!r&&ne(e)}}function G(e){var t=e.target,n=A().contains(t)||w.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Je(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,s="top"===a?c.bottom.y:0,l="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-s>i,m=t.left-n+l>i,v=n-t.right-p>i;return f||d||m||v}))}(ee().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(N(),ne(e))}function J(e){Y(e)||_.props.trigger.indexOf("click")>=0&&f||(_.props.interactive?_.hideWithInteractivity(e):ne(e))}function X(e){_.props.trigger.indexOf("focusin")<0&&e.target!==A()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||ne(e)}function Y(e){return!!at.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Q();var t=_.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ot(w).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=C().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];k()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),_.popperInstance=Ne(s,w,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function Q(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ee(){return Xe(w.querySelectorAll("[data-tippy-root]"))}function te(e){_.clearDelayTimeouts(),e&&D("onTrigger",[_,e]),W();var t=M(!0),n=E(),o=n[0],i=n[1];at.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){_.show()}),t):_.show()}function ne(e){if(_.clearDelayTimeouts(),D("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=M(!1);t?o=setTimeout((function(){_.state.isVisible&&_.hide()}),t):i=requestAnimationFrame((function(){_.hide()}))}}else z()}}function Pt(e,t){void 0===t&&(t={});var n=mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ut,ze),window.addEventListener("blur",lt);var r=Object.assign({},t,{plugins:n}),o=tt(e).reduce((function(e,t){var n=t&&Et(t,r);return n&&e.push(n),e}),[]);return Ke(e)?o[0]:o}Pt.defaultProps=mt,Pt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mt[t]=e[t]}))},Pt.currentInput=at;Object.assign({},we,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Pt.setDefaultProps({render:wt});var kt=Pt,At=n(55);function St(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Ct="undefined"!=typeof window&&"undefined"!=typeof document;function Mt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Tt(){return Ct&&document.createElement("div")}function Dt(e,t){var n,r,o,i,a;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(o=[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]),i=[],a=Object.create(null),o.forEach((function(e){void 0===a[JSON.stringify(e)]&&i.push(e),a[JSON.stringify(e)]=!0})),i)})})}var Bt=Ct?y.useLayoutEffect:y.useEffect;function Rt(e){var t=Object(y.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Nt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Zt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Nt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Nt(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,a=t.render,c=t.reference,u=t.disabled,s=void 0!==u&&u,l=t.ignoreAttributes,p=void 0===l||l,f=(t.__source,t.__self,St(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),d=void 0!==o,m=void 0!==i,v=Object(y.useState)(!1),h=v[0],g=v[1],_=Object(y.useState)({}),O=_[0],w=_[1],j=Object(y.useState)(),x=j[0],L=j[1],E=Rt((function(){return{container:Tt(),renders:1}})),P=Object.assign({ignoreAttributes:p},f,{content:E.container});d&&(P.trigger="manual",P.hideOnClick=!1),m&&(s=!0);var k=P,A=P.plugins||[];a&&(k=Object.assign({},P,{plugins:m?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;L(n)}}}}]):A,render:function(){return{popper:E.container}}}));var S=[c].concat(n?[n.type]:[]);return Bt((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||E.ref||Tt(),Object.assign({},k,{plugins:[Zt].concat(P.plugins||[])}));return E.instance=n,s&&n.disable(),o&&n.show(),m&&i.hook({instance:n,content:r,props:k}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),S),Bt((function(){var e;if(1!==E.renders){var t=E.instance;t.setProps(Dt(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),d&&(o?t.show():t.hide()),m&&i.hook({instance:t,content:r,props:k})}else E.renders++})),Bt((function(){var e;if(a){var t=E.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||w({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(S)),b.a.createElement(b.a.Fragment,null,n?Object(y.cloneElement)(n,{ref:function(e){E.ref=e,Mt(n.ref,e)}}):null,h&&Object(At.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),x,E.instance):r,E.container))}}var Ft=function(e,t){return Object(y.forwardRef)((function(n,r){var o=n.children,i=St(n,["children"]);return b.a.createElement(e,Object.assign({},t,i),o?Object(y.cloneElement)(o,{ref:function(e){Mt(r,e),Mt(o.ref,e)}}):null)}))},Wt=Ft(It(kt)),zt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-round"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},Ut=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-square"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},Vt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-radius"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Ht=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-none"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},qt=[{value:{type:"expanded",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-modern"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:Object(r.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return b.a.createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-2-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:Object(r.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return b.a.createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-3-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:Object(r.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-classic"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:Object(r.__)("Classic","cloudinary")}],$t=["image"],Gt=[{label:Object(r.__)("1:1","cloudinary"),value:"1:1"},{label:Object(r.__)("3:4","cloudinary"),value:"3:4"},{label:Object(r.__)("4:3","cloudinary"),value:"4:3"},{label:Object(r.__)("4:6","cloudinary"),value:"4:6"},{label:Object(r.__)("6:4","cloudinary"),value:"6:4"},{label:Object(r.__)("5:7","cloudinary"),value:"5:7"},{label:Object(r.__)("7:5","cloudinary"),value:"7:5"},{label:Object(r.__)("8:5","cloudinary"),value:"8:5"},{label:Object(r.__)("5:8","cloudinary"),value:"5:8"},{label:Object(r.__)("9:16","cloudinary"),value:"9:16"},{label:Object(r.__)("16:9","cloudinary"),value:"16:9"}],Jt=[{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("Fade","cloudinary"),value:"fade"},{label:Object(r.__)("Slide","cloudinary"),value:"slide"}],Xt=[{label:Object(r.__)("Always","cloudinary"),value:"always"},{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("MouseOver","cloudinary"),value:"mouseover"}],Yt=[{label:Object(r.__)("Inline","cloudinary"),value:"inline"},{label:Object(r.__)("Flyout","cloudinary"),value:"flyout"},{label:Object(r.__)("Popup","cloudinary"),value:"popup"}],Kt=[{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],Qt=[{label:Object(r.__)("Click","cloudinary"),value:"click"},{label:Object(r.__)("Hover","cloudinary"),value:"hover"}],en=[{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"}],tn=[{label:Object(r.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:Object(r.__)("Indicators","cloudinary"),value:"indicators"},{label:Object(r.__)("None","cloudinary"),value:"none"}],nn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return b.a.createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-9-16"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},b.a.createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:Object(r.__)("Rectangle","cloudinary")}],rn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],on=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Border","cloudinary"),value:"border"},{label:Object(r.__)("Gradient","cloudinary"),value:"gradient"}],an=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:Object(r.__)("Left-Right","cloudinary"),value:"left-right"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],cn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],un=[{label:Object(r.__)("Pad","cloudinary"),value:"pad"},{label:Object(r.__)("Fill","cloudinary"),value:"fill"}],sn=[{label:Object(r.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:Object(r.__)("Border color padding","cloudinary"),value:"auto"},{label:Object(r.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:Object(r.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],ln=n(54),pn=n.n(ln),fn=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,a="object"===L()(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return b.a.createElement("button",{type:"button",onClick:function(){return o(t)},className:pn()("radio-select",{"radio-select--active":a})},b.a.createElement(r,null),b.a.createElement("div",{className:"radio-select__label"},n))},dn=function(e){var t=e.children,n=e.value;return b.a.createElement("div",{className:"colorpalette-color-label"},b.a.createElement("span",null,t),b.a.createElement("span",{className:"component-color-indicator","aria-label":"Color: ".concat(n),style:{background:n}}))},mn=new g.a("_"),vn=function(e){var t=e.attributes,n=e.setAttributes,o=e.colors,i=P()(t),a=mn.object(i);return a.customSettings="object"===L()(a.customSettings)?JSON.stringify(a.customSettings):a.customSettings,t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background,b.a.createElement(b.a.Fragment,null,b.a.createElement(w.PanelBody,{title:Object(r.__)("Layout","cloudinary")},qt.map((function(e){return b.a.createElement(fn,{key:"".concat(e.value.type,"-").concat(e.value.columns,"-layout"),value:e.value,onChange:function(e){n({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1}},e.label)}))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Color Palette","cloudinary"),initialOpen:!1},b.a.createElement(dn,{value:t.themeProps_primary},Object(r.__)("Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_primary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_primary:e})}}),b.a.createElement(dn,{value:t.themeProps_onPrimary},Object(r.__)("On Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_onPrimary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_onPrimary:e})}}),b.a.createElement(dn,{value:t.themeProps_active},Object(r.__)("Active","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_active,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_active:e})}})),"classic"===t.displayProps_mode&&b.a.createElement(w.PanelBody,{title:Object(r.__)("Fade Transition","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{value:t.transition,options:Jt,onChange:function(e){return n({transition:e})}})),b.a.createElement(w.PanelBody,{title:Object(r.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{label:Object(r.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:Gt,onChange:function(e){return n({aspectRatio:e})}}),b.a.createElement("p",null,b.a.createElement(Wt,{content:b.a.createElement("span",null,Object(r.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary")),theme:"cloudinary",arrow:!1,placement:"bottom-start"},b.a.createElement("div",{className:"cld-ui-title"},Object(r.__)("Resize/Crop Mode","cloudinary"),b.a.createElement("span",{className:"dashicons dashicons-info cld-tooltip"}))),b.a.createElement(w.ButtonGroup,null,un.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-look-and-feel",isDefault:!0,isPressed:e.value===t.transformation_crop,onClick:function(){return n({transformation_crop:e.value,transformation_background:null})}},e.label)})))),"pad"===t.transformation_crop&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Pad style","cloudinary"),value:t.transformation_background,options:sn,onChange:function(e){n({transformation_background:e})}}),b.a.createElement("p",null,Object(r.__)("Navigation","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Xt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-navigation",isDefault:!0,isPressed:e.value===t.navigation,onClick:function(){return n({navigation:e.value})}},e.label)})))),b.a.createElement("div",{style:{marginTop:"30px"}},b.a.createElement(w.ToggleControl,{label:Object(r.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:function(){return n({zoom:!t.zoom})}}),t.zoom&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Type","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Yt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-type",isDefault:!0,isPressed:e.value===t.zoomProps_type,onClick:function(){return n({zoomProps_type:e.value})}},e.label)})))),"flyout"===t.zoomProps_type&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:Kt,onChange:function(e){return n({zoomProps_viewerPosition:e})}}),"popup"!==t.zoomProps_type&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Trigger","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Qt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-trigger",isDefault:!0,isPressed:e.value===t.zoomProps_trigger,onClick:function(){return n({zoomProps_trigger:e.value})}},e.label)})))))))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Carousel Parameters","cloudinary"),initialOpen:!1},b.a.createElement("p",null,Object(r.__)("Carousel Location","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,en.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-location",isDefault:!0,isPressed:e.value===t.carouselLocation,onClick:function(){return n({carouselLocation:e.value})}},e.label)})))),b.a.createElement(w.RangeControl,{label:Object(r.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:function(e){return n({carouselOffset:e})},min:0,max:100}),b.a.createElement("p",null,Object(r.__)("Carousel Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,tn.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-style",isDefault:!0,isPressed:e.value===t.carouselStyle,onClick:function(){return n({carouselStyle:e.value})}},e.label)})))),"thumbnails"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement(w.RangeControl,{label:Object(r.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:function(e){return n({thumbnailProps_width:e})},min:5,max:300}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:function(e){return n({thumbnailProps_height:e})},min:5,max:300}),b.a.createElement("p",null,Object(r.__)("Navigation Button Shape","cloudinary")),nn.map((function(e){return b.a.createElement(fn,{key:e.value+"-navigation-button-shape",value:e.value,onChange:function(e){return n({thumbnailProps_navigationShape:e})},icon:e.icon,current:t.thumbnailProps_navigationShape},e.label)})),b.a.createElement("p",null,Object(r.__)("Selected Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,on.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-selected-style",isDefault:!0,isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:function(){return n({thumbnailProps_selectedStyle:e.value})}},e.label)})))),b.a.createElement(w.SelectControl,{label:Object(r.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:an,onChange:function(e){return n({thumbnailProps_selectedBorderPosition:e})}}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:function(e){return n({thumbnailProps_selectedBorderWidth:e})},min:0,max:10}),b.a.createElement("p",null,Object(r.__)("Media Shape Icon","cloudinary")),cn.map((function(e){return b.a.createElement(fn,{key:e.value+"-media",value:e.value,onChange:function(e){return n({thumbnailProps_mediaSymbolShape:e})},icon:e.icon,current:t.thumbnailProps_mediaSymbolShape},e.label)}))),"indicators"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Indicators Shape","cloudinary")),rn.map((function(e){return b.a.createElement(fn,{key:e.value+"-indicator",value:e.value,onChange:function(e){return n({indicatorProps_shape:e})},icon:e.icon,current:t.indicatorProps_shape},e.label)})))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Additional Settings","cloudinary"),initialOpen:!1},b.a.createElement(w.TextareaControl,{label:Object(r.__)("Custom Settings","cloudinary"),help:Object(r.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a.customSettings,onChange:function(e){try{n({customSettings:JSON.parse(e)})}catch(t){n({customSettings:e})}}})))},yn=n(56);function bn(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 hn(e){for(var t=1;t Date: Thu, 11 Mar 2021 09:46:01 +0000 Subject: [PATCH 3/4] Fix typo --- js/src/gallery-block/edit.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/src/gallery-block/edit.js b/js/src/gallery-block/edit.js index 7abd386cc..6084f158e 100644 --- a/js/src/gallery-block/edit.js +++ b/js/src/gallery-block/edit.js @@ -42,7 +42,7 @@ const Edit = ( { setAttributes, attributes, className, isSelected } ) => { const preparedAttributes = useMemo( () => { // Do not override block settings with defaults on existing ones. - if ( 0 !== attributes.selectedImages.lenght ) { + if ( 0 !== attributes.selectedImages.length ) { return attributes; } From e1590702ee4b8fb38aa7c3dfc1ca8a3443322ed4 Mon Sep 17 00:00:00 2001 From: Marco Pereirinha Date: Thu, 11 Mar 2021 09:46:15 +0000 Subject: [PATCH 4/4] Update compiled assets --- js/gallery-block.asset.php | 2 +- js/gallery-block.js | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/js/gallery-block.asset.php b/js/gallery-block.asset.php index 785642555..00e5b662d 100644 --- a/js/gallery-block.asset.php +++ b/js/gallery-block.asset.php @@ -1 +1 @@ - array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => 'e417123675a0b2c27eff9ad110a1ef44'); \ No newline at end of file + array('react', 'react-dom', 'wp-api-fetch', 'wp-block-editor', 'wp-blocks', 'wp-components', 'wp-components/build-style/style.css', 'wp-data', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '95635dcdce3468c638dab46e572af7a3'); \ No newline at end of file diff --git a/js/gallery-block.js b/js/gallery-block.js index ae203314e..54418be48 100644 --- a/js/gallery-block.js +++ b/js/gallery-block.js @@ -1 +1 @@ -!function(e){var t={};function n(r){if(t[r])return t[r].exports;var o=t[r]={i:r,l:!1,exports:{}};return e[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=e,n.c=t,n.d=function(e,t,r){n.o(e,t)||Object.defineProperty(e,t,{enumerable:!0,get:r})},n.r=function(e){"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},n.t=function(e,t){if(1&t&&(e=n(e)),8&t)return e;if(4&t&&"object"==typeof e&&e&&e.__esModule)return e;var r=Object.create(null);if(n.r(r),Object.defineProperty(r,"default",{enumerable:!0,value:e}),2&t&&"string"!=typeof e)for(var o in e)n.d(r,o,function(t){return e[t]}.bind(null,o));return r},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=138)}([function(e,t){!function(){e.exports=this.React}()},function(e,t){!function(){e.exports=this.wp.i18n}()},function(e,t){!function(){e.exports=this.wp.components}()},function(e,t){!function(){e.exports=this.wp.element}()},function(e,t,n){var r=n(37),o="object"==typeof self&&self&&self.Object===Object&&self,i=r||o||Function("return this")();e.exports=i},function(e,t,n){var r=n(79),o=n(85);e.exports=function(e,t){var n=o(e,t);return r(n)?n:void 0}},function(e,t){function n(t){return"function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?e.exports=n=function(e){return typeof e}:e.exports=n=function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(t)}e.exports=n},function(e,t){!function(){e.exports=this.wp.blockEditor}()},function(e,t,n){"use strict";function r(e,t){var n,r;if("function"==typeof t)void 0!==(r=t(e))&&(e=r);else if(Array.isArray(t))for(n=0;n=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(s).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var p=Object.prototype.hasOwnProperty;function f(e,t,n,r){if(!(this instanceof f))return new f(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var d=new f(".",!1,!0,!0);function m(e){return function(){return d[e].apply(d,arguments)}}f.prototype._fill=function(e,t,n,o){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!a(t[i])){if(!this.override){if(!a(n)||!c(n))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}t[i]={}}this._fill(e,t[i],n,o)}else{if(!this.override&&a(t[i])&&!c(t[i])){if(!a(n)||!c(n))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=r(n,o)}},f.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach((function(o){var i=void 0===t?null:t[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=r(e[o],i)})),e},f.prototype.str=function(e,t,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,t,o):n[e]=r(t,o),n},f.prototype.pick=function(e,t,n,r){var i,a,c,u,s;for(a=l(e,this.separator),i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(69),o=n(70),i=n(71),a=n(72),c=n(73);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(36),o=n(43);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(48),o=n(49),i=n(29),a=n(46),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t,n){var r=n(64);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}},function(e,t,n){var r=n(13);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(12);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(12),o=n(20),i=n(86);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(36),o=n(83),i=n(9),a=n(38),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,p=s.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:c).test(a(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(84),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(4)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(87),o=n(94),i=n(96),a=n(97),c=n(98);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0?e.ownerDocument.body:M(e)&&Z(e)?e:z(W(e))}function U(e,t){var n;void 0===t&&(t=[]);var r=z(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=A(r),a=o?[i].concat(i.visualViewport||[],Z(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(U(W(a)))}function V(e){return["table","td","th"].indexOf(D(e))>=0}function H(e){return M(e)&&"fixed"!==N(e).position?e.offsetParent:null}function q(e){for(var t=A(e),n=H(e);n&&V(n)&&"static"===N(n).position;)n=H(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===N(n).position)?t:n||function(e){for(var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=W(e);M(n)&&["html","body"].indexOf(D(n))<0;){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var $="top",G="bottom",J="right",X="left",Y="auto",K=[$,G,J,X],Q="start",ee="end",te="viewport",ne="popper",re=K.reduce((function(e,t){return e.concat([t+"-"+Q,t+"-"+ee])}),[]),oe=[].concat(K,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+Q,t+"-"+ee])}),[]),ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?de(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case $:t={x:c,y:n.y-r.height};break;case G:t={x:c,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:u};break;case X:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?me(i):null;if(null!=s){var l="y"===s?"height":"width";switch(a){case Q:t[s]=t[s]-(n[l]/2-r[l]/2);break;case ee:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},be=Math.max,he=Math.min,ge=Math.round,_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,l=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ge(ge(t*r)/r)||0,y:ge(ge(n*r)/r)||0}}(i):"function"==typeof s?s(i):i,p=l.x,f=void 0===p?0:p,d=l.y,m=void 0===d?0:d,v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=X,h=$,g=window;if(u){var _=q(n),O="clientHeight",w="clientWidth";_===A(n)&&"static"!==N(_=B(n)).position&&(O="scrollHeight",w="scrollWidth"),_=_,o===$&&(h=G,m-=_[O]-r.height,m*=c?1:-1),o===X&&(b=J,f-=_[w]-r.width,f*=c?1:-1)}var j,x=Object.assign({position:a},u&&_e);return c?Object.assign({},x,((j={})[h]=y?"0":"",j[b]=v?"0":"",j.transform=(g.devicePixelRatio||1)<2?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",j)):Object.assign({},x,((t={})[h]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];M(o)&&D(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&D(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Le={start:"end",end:"start"};function Ee(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ae(e,t){return t===te?ke(function(e){var t=A(e),n=B(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,c=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,c=r.offsetTop)),{width:o,height:i,x:a+R(e),y:c}}(e)):M(t)?function(e){var t=k(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ke(function(e){var t,n=B(e),r=S(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=be(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=be(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+R(e),u=-r.scrollTop;return"rtl"===N(o||n).direction&&(c+=be(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(B(e)))}function Se(e,t,n){var r="clippingParents"===t?function(e){var t=U(W(e)),n=["absolute","fixed"].indexOf(N(e).position)>=0&&M(e)?q(e):e;return C(n)?t.filter((function(e){return C(e)&&Pe(e,n)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ae(e,n);return t.top=be(r.top,t.top),t.right=he(r.right,t.right),t.bottom=he(r.bottom,t.bottom),t.left=be(r.left,t.left),t}),Ae(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?te:c,s=n.elementContext,l=void 0===s?ne:s,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,v=Ce("number"!=typeof m?m:Me(m,K)),y=l===ne?"reference":ne,b=e.elements.reference,h=e.rects.popper,g=e.elements[f?y:l],_=Se(C(g)?g:g.contextElement||B(e.elements.popper),a,u),O=k(b),w=ve({reference:O,element:h,strategy:"absolute",placement:o}),j=ke(Object.assign({},h,w)),x=l===ne?j:O,L={top:_.top-x.top+v.top,bottom:x.bottom-_.bottom+v.bottom,left:_.left-x.left+v.left,right:x.right-_.right+v.right},E=e.modifiersData.offset;if(l===ne&&E){var P=E[o];Object.keys(L).forEach((function(e){var t=[J,G].indexOf(e)>=0?1:-1,n=[$,G].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t}))}return L}function De(e,t,n){return be(e,he(t,n))}function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Re(e){return[$,J,G,X].some((function(t){return e[t]>=0}))}var Ne=se({defaultModifiers:[pe,ye,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,s={placement:fe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Oe(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oe(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},we,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=oe.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[X,$].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[X,J].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,s=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,s=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,v=n.allowedAutoPlacements,y=t.options.placement,b=fe(y),h=u||(b===y||!m?[xe(y)]:function(e){if(fe(e)===Y)return[];var t=xe(e);return[Ee(e),t,Ee(t)]}(y)),g=[y].concat(h).reduce((function(e,n){return e.concat(fe(n)===Y?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?oe:u,l=de(r),p=l?c?re:re.filter((function(e){return de(e)===l})):K,f=p.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Te(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:s,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,O=t.rects.popper,w=new Map,j=!0,x=g[0],L=0;L=0,S=A?"width":"height",C=Te(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:f,padding:s}),M=A?k?J:X:k?G:$;_[S]>O[S]&&(M=xe(M));var T=xe(M),D=[];if(i&&D.push(C[P]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){x=E,j=!1;break}w.set(E,D)}if(j)for(var B=function(e){var t=g.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},R=m?3:1;R>0;R--){if("break"===B(R))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,y=Te(t,{boundary:u,rootBoundary:s,padding:p,altBoundary:l}),b=fe(t.placement),h=de(t.placement),g=!h,_=me(b),O="x"===_?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,x=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E={x:0,y:0};if(w){if(i||c){var P="y"===_?$:X,k="y"===_?G:J,A="y"===_?"height":"width",S=w[_],C=w[_]+y[P],M=w[_]-y[k],T=d?-x[A]/2:0,D=h===Q?j[A]:x[A],B=h===Q?-x[A]:-j[A],R=t.elements.arrow,N=d&&R?F(R):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=Z[P],W=Z[k],z=De(0,j[A],N[A]),U=g?j[A]/2-T-z-I-L:D-z-I-L,V=g?-j[A]/2+T+z+W+L:B+z+W+L,H=t.elements.arrow&&q(t.elements.arrow),Y=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,K=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ee=w[_]+U-K-Y,te=w[_]+V-K;if(i){var ne=De(d?he(C,ee):C,S,d?be(M,te):M);w[_]=ne,E[_]=ne-S}if(c){var re="x"===_?$:X,oe="x"===_?G:J,ie=w[O],ae=ie+y[re],ce=ie-y[oe],ue=De(d?he(ae,ee):ae,ie,d?be(ce,te):ce);w[O]=ue,E[O]=ue-ie}}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=fe(n.placement),u=me(c),s=[X,J].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return Ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,K))}(o.padding,n),p=F(i),f="y"===u?$:X,d="y"===u?G:J,m=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],y=q(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,h=m/2-v/2,g=l[f],_=b-p[s]-l[d],O=b/2-p[s]/2+h,w=De(g,O,_),j=u;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Te(t,{elementContext:"reference"}),c=Te(t,{altBoundary:!0}),u=Be(a,r),s=Be(c,o,i),l=Re(u),p=Re(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Ze="tippy-content",Ie="tippy-backdrop",Fe="tippy-arrow",We="tippy-svg-arrow",ze={passive:!0,capture:!0};function Ue(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ve(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $e(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function Je(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function Ye(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some((function(t){return Ve(e,t)}))}function Qe(e){return Ve(e,"MouseEvent")}function et(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function tt(e){return Ke(e)?[e]:function(e){return Ve(e,"NodeList")}(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function rt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ot(e){var t,n=$e(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function it(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var at={isTouch:!1},ct=0;function ut(){at.isTouch||(at.isTouch=!0,window.performance&&document.addEventListener("mousemove",st))}function st(){var e=performance.now();e-ct<20&&(at.isTouch=!1,document.removeEventListener("mousemove",st)),ct=e}function lt(){var e=document.activeElement;if(et(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var pt="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ft=/MSIE |Trident\//.test(pt);var dt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),vt=Object.keys(mt);function yt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function bt(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(yt(Object.assign({},mt,{plugins:t}))):vt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ht(e,t){e.innerHTML=t}function gt(e){var t=Ye();return!0===e?t.className=Fe:(t.className=We,Ke(e)?t.appendChild(e):ht(t,e)),t}function _t(e,t){Ke(t.content)?(ht(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ht(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,n=Xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ze)})),arrow:n.find((function(e){return e.classList.contains(Fe)||e.classList.contains(We)})),backdrop:n.find((function(e){return e.classList.contains(Ie)}))}}function wt(e){var t=Ye(),n=Ye();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ye();function o(n,r){var o=Ot(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_t(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(gt(r.arrow))):i.appendChild(gt(r.arrow)):c&&i.removeChild(c)}return r.className=Ze,r.setAttribute("data-state","hidden"),_t(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}wt.$$tippy=!0;var jt=1,xt=[],Lt=[];function Et(e,t){var n,r,o,i,a,c,u,s,l,p=bt(e,Object.assign({},mt,{},yt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,m=!1,v=!1,y=[],b=qe(G,p.interactiveDebounce),h=jt++,g=(l=p.plugins).filter((function(e,t){return l.indexOf(e)===t})),_={id:h,reference:e,popper:Ye(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(_.state.isDestroyed)return;D("onBeforeUpdate",[_,t]),q();var n=_.props,r=bt(e,Object.assign({},_.props,{},t,{ignoreAttributes:!0}));_.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),b=qe(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),T(),j&&j(n,r);_.popperInstance&&(K(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[_,t])},setContent:function(e){_.setProps({content:e})},show:function(){0;var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=at.isTouch&&!_.props.touch,o=Ue(_.props.duration,0,mt.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[_],!1),!1===_.props.onShow(_))return;_.state.isVisible=!0,k()&&(w.style.visibility="visible");T(),W(),_.state.isMounted||(w.style.transition="none");if(k()){var i=C(),a=i.box,c=i.content;nt([a,c],0)}u=function(){var e;if(_.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,k()&&_.props.animation){var t=C(),n=t.box,r=t.content;nt([n,r],o),rt([n,r],"visible")}B(),R(),Ge(Lt,_),null==(e=_.popperInstance)||e.forceUpdate(),_.state.isMounted=!0,D("onMount",[_]),_.props.animation&&k()&&function(e,t){U(e,t)}(o,(function(){_.state.isShown=!0,D("onShown",[_])}))}},function(){var e,t=_.props.appendTo,n=A();e=_.props.interactive&&t===mt.appendTo||"parent"===t?n.parentNode:He(t,[n]);e.contains(w)||e.appendChild(w);K(),!1}()},hide:function(){0;var e=!_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=Ue(_.props.duration,1,mt.duration);if(e||t||n)return;if(D("onHide",[_],!1),!1===_.props.onHide(_))return;_.state.isVisible=!1,_.state.isShown=!1,v=!1,f=!1,k()&&(w.style.visibility="hidden");if(N(),z(),T(),k()){var o=C(),i=o.box,a=o.content;_.props.animation&&(nt([i,a],r),rt([i,a],"hidden"))}B(),R(),_.props.animation?k()&&function(e,t){U(e,(function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,_.unmount):_.unmount()},hideWithInteractivity:function(e){0;S().addEventListener("mousemove",b),Ge(xt,b),b(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){0;_.state.isVisible&&_.hide();if(!_.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Lt=Lt.filter((function(e){return e!==_})),_.state.isMounted=!1,D("onHidden",[_])},destroy:function(){0;if(_.state.isDestroyed)return;_.clearDelayTimeouts(),_.unmount(),q(),delete e._tippy,_.state.isDestroyed=!0,D("onDestroy",[_])}};if(!p.render)return _;var O=p.render(_),w=O.popper,j=O.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var x=g.map((function(e){return e.fn(_)})),L=e.hasAttribute("aria-expanded");return H(),R(),T(),D("onCreate",[_]),p.showOnCreate&&te(),w.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(e){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(S().addEventListener("mousemove",b),b(e))})),_;function E(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===E()[0]}function k(){var e;return!!(null==(e=_.props.render)?void 0:e.$$tippy)}function A(){return s||e}function S(){var e=A().parentNode;return e?ot(e):document}function C(){return Ot(w)}function M(e){return _.state.isMounted&&!_.state.isVisible||at.isTouch||a&&"focus"===a.type?0:Ue(_.props.delay,e?0:1,mt.delay)}function T(){w.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",w.style.zIndex=""+_.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=_.props)[e].apply(r,t)}function B(){var t=_.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;$e(_.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(_.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!L&&_.props.aria.expanded&&$e(_.props.triggerTarget||e).forEach((function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){S().removeEventListener("mousemove",b),xt=xt.filter((function(e){return e!==b}))}function Z(e){if(!(at.isTouch&&(m||"mousedown"===e.type)||_.props.interactive&&w.contains(e.target))){if(A().contains(e.target)){if(at.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[_,e]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||z())}}function I(){m=!0}function F(){m=!1}function W(){var e=S();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,ze),e.addEventListener("touchstart",F,ze),e.addEventListener("touchmove",I,ze)}function z(){var e=S();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,ze),e.removeEventListener("touchstart",F,ze),e.removeEventListener("touchmove",I,ze)}function U(e,t){var n=C().box;function r(e){e.target===n&&(it(n,"remove",r),t())}if(0===e)return t();it(n,"remove",c),it(n,"add",r),c=r}function V(t,n,r){void 0===r&&(r=!1),$e(_.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),y.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;P()&&(V("touchstart",$,{passive:!0}),V("touchend",J,{passive:!0})),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,$),e){case"mouseenter":V("mouseleave",J);break;case"focus":V(ft?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function q(){y.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),y=[]}function $(e){var t,n=!1;if(_.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,R(),!_.state.isVisible&&Qe(e)&&xt.forEach((function(t){return t(e)})),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||f)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:te(e),"click"===e.type&&(f=!n),n&&!r&&ne(e)}}function G(e){var t=e.target,n=A().contains(t)||w.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Je(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,s="top"===a?c.bottom.y:0,l="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-s>i,m=t.left-n+l>i,v=n-t.right-p>i;return f||d||m||v}))}(ee().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(N(),ne(e))}function J(e){Y(e)||_.props.trigger.indexOf("click")>=0&&f||(_.props.interactive?_.hideWithInteractivity(e):ne(e))}function X(e){_.props.trigger.indexOf("focusin")<0&&e.target!==A()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||ne(e)}function Y(e){return!!at.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Q();var t=_.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ot(w).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=C().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];k()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),_.popperInstance=Ne(s,w,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function Q(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ee(){return Xe(w.querySelectorAll("[data-tippy-root]"))}function te(e){_.clearDelayTimeouts(),e&&D("onTrigger",[_,e]),W();var t=M(!0),n=E(),o=n[0],i=n[1];at.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){_.show()}),t):_.show()}function ne(e){if(_.clearDelayTimeouts(),D("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=M(!1);t?o=setTimeout((function(){_.state.isVisible&&_.hide()}),t):i=requestAnimationFrame((function(){_.hide()}))}}else z()}}function Pt(e,t){void 0===t&&(t={});var n=mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ut,ze),window.addEventListener("blur",lt);var r=Object.assign({},t,{plugins:n}),o=tt(e).reduce((function(e,t){var n=t&&Et(t,r);return n&&e.push(n),e}),[]);return Ke(e)?o[0]:o}Pt.defaultProps=mt,Pt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mt[t]=e[t]}))},Pt.currentInput=at;Object.assign({},we,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Pt.setDefaultProps({render:wt});var kt=Pt,At=n(55);function St(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Ct="undefined"!=typeof window&&"undefined"!=typeof document;function Mt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Tt(){return Ct&&document.createElement("div")}function Dt(e,t){var n,r,o,i,a;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(o=[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]),i=[],a=Object.create(null),o.forEach((function(e){void 0===a[JSON.stringify(e)]&&i.push(e),a[JSON.stringify(e)]=!0})),i)})})}var Bt=Ct?y.useLayoutEffect:y.useEffect;function Rt(e){var t=Object(y.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Nt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Zt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Nt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Nt(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,a=t.render,c=t.reference,u=t.disabled,s=void 0!==u&&u,l=t.ignoreAttributes,p=void 0===l||l,f=(t.__source,t.__self,St(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),d=void 0!==o,m=void 0!==i,v=Object(y.useState)(!1),h=v[0],g=v[1],_=Object(y.useState)({}),O=_[0],w=_[1],j=Object(y.useState)(),x=j[0],L=j[1],E=Rt((function(){return{container:Tt(),renders:1}})),P=Object.assign({ignoreAttributes:p},f,{content:E.container});d&&(P.trigger="manual",P.hideOnClick=!1),m&&(s=!0);var k=P,A=P.plugins||[];a&&(k=Object.assign({},P,{plugins:m?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;L(n)}}}}]):A,render:function(){return{popper:E.container}}}));var S=[c].concat(n?[n.type]:[]);return Bt((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||E.ref||Tt(),Object.assign({},k,{plugins:[Zt].concat(P.plugins||[])}));return E.instance=n,s&&n.disable(),o&&n.show(),m&&i.hook({instance:n,content:r,props:k}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),S),Bt((function(){var e;if(1!==E.renders){var t=E.instance;t.setProps(Dt(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),d&&(o?t.show():t.hide()),m&&i.hook({instance:t,content:r,props:k})}else E.renders++})),Bt((function(){var e;if(a){var t=E.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||w({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(S)),b.a.createElement(b.a.Fragment,null,n?Object(y.cloneElement)(n,{ref:function(e){E.ref=e,Mt(n.ref,e)}}):null,h&&Object(At.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),x,E.instance):r,E.container))}}var Ft=function(e,t){return Object(y.forwardRef)((function(n,r){var o=n.children,i=St(n,["children"]);return b.a.createElement(e,Object.assign({},t,i),o?Object(y.cloneElement)(o,{ref:function(e){Mt(r,e),Mt(o.ref,e)}}):null)}))},Wt=Ft(It(kt)),zt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-round"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},Ut=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-square"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},Vt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-radius"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Ht=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-none"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},qt=[{value:{type:"expanded",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-modern"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:Object(r.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return b.a.createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-2-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:Object(r.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return b.a.createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-3-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:Object(r.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-classic"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:Object(r.__)("Classic","cloudinary")}],$t=["image"],Gt=[{label:Object(r.__)("1:1","cloudinary"),value:"1:1"},{label:Object(r.__)("3:4","cloudinary"),value:"3:4"},{label:Object(r.__)("4:3","cloudinary"),value:"4:3"},{label:Object(r.__)("4:6","cloudinary"),value:"4:6"},{label:Object(r.__)("6:4","cloudinary"),value:"6:4"},{label:Object(r.__)("5:7","cloudinary"),value:"5:7"},{label:Object(r.__)("7:5","cloudinary"),value:"7:5"},{label:Object(r.__)("8:5","cloudinary"),value:"8:5"},{label:Object(r.__)("5:8","cloudinary"),value:"5:8"},{label:Object(r.__)("9:16","cloudinary"),value:"9:16"},{label:Object(r.__)("16:9","cloudinary"),value:"16:9"}],Jt=[{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("Fade","cloudinary"),value:"fade"},{label:Object(r.__)("Slide","cloudinary"),value:"slide"}],Xt=[{label:Object(r.__)("Always","cloudinary"),value:"always"},{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("MouseOver","cloudinary"),value:"mouseover"}],Yt=[{label:Object(r.__)("Inline","cloudinary"),value:"inline"},{label:Object(r.__)("Flyout","cloudinary"),value:"flyout"},{label:Object(r.__)("Popup","cloudinary"),value:"popup"}],Kt=[{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],Qt=[{label:Object(r.__)("Click","cloudinary"),value:"click"},{label:Object(r.__)("Hover","cloudinary"),value:"hover"}],en=[{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"}],tn=[{label:Object(r.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:Object(r.__)("Indicators","cloudinary"),value:"indicators"},{label:Object(r.__)("None","cloudinary"),value:"none"}],nn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return b.a.createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-9-16"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},b.a.createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:Object(r.__)("Rectangle","cloudinary")}],rn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],on=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Border","cloudinary"),value:"border"},{label:Object(r.__)("Gradient","cloudinary"),value:"gradient"}],an=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:Object(r.__)("Left-Right","cloudinary"),value:"left-right"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],cn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],un=[{label:Object(r.__)("Pad","cloudinary"),value:"pad"},{label:Object(r.__)("Fill","cloudinary"),value:"fill"}],sn=[{label:Object(r.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:Object(r.__)("Border color padding","cloudinary"),value:"auto"},{label:Object(r.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:Object(r.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],ln=n(54),pn=n.n(ln),fn=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,a="object"===L()(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return b.a.createElement("button",{type:"button",onClick:function(){return o(t)},className:pn()("radio-select",{"radio-select--active":a})},b.a.createElement(r,null),b.a.createElement("div",{className:"radio-select__label"},n))},dn=function(e){var t=e.children,n=e.value;return b.a.createElement("div",{className:"colorpalette-color-label"},b.a.createElement("span",null,t),b.a.createElement("span",{className:"component-color-indicator","aria-label":"Color: ".concat(n),style:{background:n}}))},mn=new g.a("_"),vn=function(e){var t=e.attributes,n=e.setAttributes,o=e.colors,i=P()(t),a=mn.object(i);return a.customSettings="object"===L()(a.customSettings)?JSON.stringify(a.customSettings):a.customSettings,t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background,b.a.createElement(b.a.Fragment,null,b.a.createElement(w.PanelBody,{title:Object(r.__)("Layout","cloudinary")},qt.map((function(e){return b.a.createElement(fn,{key:"".concat(e.value.type,"-").concat(e.value.columns,"-layout"),value:e.value,onChange:function(e){n({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1}},e.label)}))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Color Palette","cloudinary"),initialOpen:!1},b.a.createElement(dn,{value:t.themeProps_primary},Object(r.__)("Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_primary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_primary:e})}}),b.a.createElement(dn,{value:t.themeProps_onPrimary},Object(r.__)("On Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_onPrimary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_onPrimary:e})}}),b.a.createElement(dn,{value:t.themeProps_active},Object(r.__)("Active","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_active,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_active:e})}})),"classic"===t.displayProps_mode&&b.a.createElement(w.PanelBody,{title:Object(r.__)("Fade Transition","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{value:t.transition,options:Jt,onChange:function(e){return n({transition:e})}})),b.a.createElement(w.PanelBody,{title:Object(r.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{label:Object(r.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:Gt,onChange:function(e){return n({aspectRatio:e})}}),b.a.createElement("p",null,b.a.createElement(Wt,{content:b.a.createElement("span",null,Object(r.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary")),theme:"cloudinary",arrow:!1,placement:"bottom-start"},b.a.createElement("div",{className:"cld-ui-title"},Object(r.__)("Resize/Crop Mode","cloudinary"),b.a.createElement("span",{className:"dashicons dashicons-info cld-tooltip"}))),b.a.createElement(w.ButtonGroup,null,un.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-look-and-feel",isDefault:!0,isPressed:e.value===t.transformation_crop,onClick:function(){return n({transformation_crop:e.value,transformation_background:null})}},e.label)})))),"pad"===t.transformation_crop&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Pad style","cloudinary"),value:t.transformation_background,options:sn,onChange:function(e){n({transformation_background:e})}}),b.a.createElement("p",null,Object(r.__)("Navigation","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Xt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-navigation",isDefault:!0,isPressed:e.value===t.navigation,onClick:function(){return n({navigation:e.value})}},e.label)})))),b.a.createElement("div",{style:{marginTop:"30px"}},b.a.createElement(w.ToggleControl,{label:Object(r.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:function(){return n({zoom:!t.zoom})}}),t.zoom&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Type","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Yt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-type",isDefault:!0,isPressed:e.value===t.zoomProps_type,onClick:function(){return n({zoomProps_type:e.value})}},e.label)})))),"flyout"===t.zoomProps_type&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:Kt,onChange:function(e){return n({zoomProps_viewerPosition:e})}}),"popup"!==t.zoomProps_type&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Trigger","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Qt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-trigger",isDefault:!0,isPressed:e.value===t.zoomProps_trigger,onClick:function(){return n({zoomProps_trigger:e.value})}},e.label)})))))))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Carousel Parameters","cloudinary"),initialOpen:!1},b.a.createElement("p",null,Object(r.__)("Carousel Location","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,en.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-location",isDefault:!0,isPressed:e.value===t.carouselLocation,onClick:function(){return n({carouselLocation:e.value})}},e.label)})))),b.a.createElement(w.RangeControl,{label:Object(r.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:function(e){return n({carouselOffset:e})},min:0,max:100}),b.a.createElement("p",null,Object(r.__)("Carousel Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,tn.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-style",isDefault:!0,isPressed:e.value===t.carouselStyle,onClick:function(){return n({carouselStyle:e.value})}},e.label)})))),"thumbnails"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement(w.RangeControl,{label:Object(r.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:function(e){return n({thumbnailProps_width:e})},min:5,max:300}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:function(e){return n({thumbnailProps_height:e})},min:5,max:300}),b.a.createElement("p",null,Object(r.__)("Navigation Button Shape","cloudinary")),nn.map((function(e){return b.a.createElement(fn,{key:e.value+"-navigation-button-shape",value:e.value,onChange:function(e){return n({thumbnailProps_navigationShape:e})},icon:e.icon,current:t.thumbnailProps_navigationShape},e.label)})),b.a.createElement("p",null,Object(r.__)("Selected Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,on.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-selected-style",isDefault:!0,isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:function(){return n({thumbnailProps_selectedStyle:e.value})}},e.label)})))),b.a.createElement(w.SelectControl,{label:Object(r.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:an,onChange:function(e){return n({thumbnailProps_selectedBorderPosition:e})}}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:function(e){return n({thumbnailProps_selectedBorderWidth:e})},min:0,max:10}),b.a.createElement("p",null,Object(r.__)("Media Shape Icon","cloudinary")),cn.map((function(e){return b.a.createElement(fn,{key:e.value+"-media",value:e.value,onChange:function(e){return n({thumbnailProps_mediaSymbolShape:e})},icon:e.icon,current:t.thumbnailProps_mediaSymbolShape},e.label)}))),"indicators"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Indicators Shape","cloudinary")),rn.map((function(e){return b.a.createElement(fn,{key:e.value+"-indicator",value:e.value,onChange:function(e){return n({indicatorProps_shape:e})},icon:e.icon,current:t.indicatorProps_shape},e.label)})))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Additional Settings","cloudinary"),initialOpen:!1},b.a.createElement(w.TextareaControl,{label:Object(r.__)("Custom Settings","cloudinary"),help:Object(r.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a.customSettings,onChange:function(e){try{n({customSettings:JSON.parse(e)})}catch(t){n({customSettings:e})}}})))},yn=n(56);function bn(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 hn(e){for(var t=1;t=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var n=e.split(t);if(n.filter(s).length!==n.length)throw Error("Refusing to update blacklisted property "+e);return n}var p=Object.prototype.hasOwnProperty;function f(e,t,n,r){if(!(this instanceof f))return new f(e,t,n,r);void 0===t&&(t=!1),void 0===n&&(n=!0),void 0===r&&(r=!0),this.separator=e||".",this.override=t,this.useArray=n,this.useBrackets=r,this.keepArray=!1,this.cleanup=[]}var d=new f(".",!1,!0,!0);function m(e){return function(){return d[e].apply(d,arguments)}}f.prototype._fill=function(e,t,n,o){var i=e.shift();if(e.length>0){if(t[i]=t[i]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!a(t[i])){if(!this.override){if(!a(n)||!c(n))throw new Error("Trying to redefine `"+i+"` which is a "+typeof t[i]);return}t[i]={}}this._fill(e,t[i],n,o)}else{if(!this.override&&a(t[i])&&!c(t[i])){if(!a(n)||!c(n))throw new Error("Trying to redefine non-empty obj['"+i+"']");return}t[i]=r(n,o)}},f.prototype.object=function(e,t){var n=this;return Object.keys(e).forEach((function(o){var i=void 0===t?null:t[o],a=l(o,n.separator).join(n.separator);-1!==a.indexOf(n.separator)?(n._fill(a.split(n.separator),e,e[o],i),delete e[o]):e[o]=r(e[o],i)})),e},f.prototype.str=function(e,t,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,t,o):n[e]=r(t,o),n},f.prototype.pick=function(e,t,n,r){var i,a,c,u,s;for(a=l(e,this.separator),i=0;i=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(i[n]=e[n])}return i}},function(e,t,n){var r=n(69),o=n(70),i=n(71),a=n(72),c=n(73);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e<=9007199254740991}},function(e,t){e.exports=function(e,t){return function(n){return e(t(n))}}},function(e,t,n){var r=n(36),o=n(43);e.exports=function(e){return null!=e&&o(e.length)&&!r(e)}},function(e,t){e.exports=function(){return[]}},function(e,t,n){var r=n(48),o=n(49),i=n(29),a=n(46),c=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)r(t,i(e)),e=o(e);return t}:a;e.exports=c},function(e,t){e.exports=function(e,t){for(var n=-1,r=t.length,o=e.length;++n=0||(o[n]=e[n]);return o}},function(e,t){e.exports=function(e){if(Array.isArray(e))return e}},function(e,t){e.exports=function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],r=!0,o=!1,i=void 0;try{for(var a,c=e[Symbol.iterator]();!(r=(a=c.next()).done)&&(n.push(a.value),!t||n.length!==t);r=!0);}catch(e){o=!0,i=e}finally{try{r||null==c.return||c.return()}finally{if(o)throw i}}return n}}},function(e,t,n){var r=n(64);e.exports=function(e,t){if(e){if("string"==typeof e)return r(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)?r(e,t):void 0}}},function(e,t){e.exports=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,r=new Array(t);n-1}},function(e,t,n){var r=n(13);e.exports=function(e,t){var n=this.__data__,o=r(n,e);return o<0?(++this.size,n.push([e,t])):n[o][1]=t,this}},function(e,t,n){var r=n(12);e.exports=function(){this.__data__=new r,this.size=0}},function(e,t){e.exports=function(e){var t=this.__data__,n=t.delete(e);return this.size=t.size,n}},function(e,t){e.exports=function(e){return this.__data__.get(e)}},function(e,t){e.exports=function(e){return this.__data__.has(e)}},function(e,t,n){var r=n(12),o=n(20),i=n(86);e.exports=function(e,t){var n=this.__data__;if(n instanceof r){var a=n.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++n.size,this;n=this.__data__=new i(a)}return n.set(e,t),this.size=n.size,this}},function(e,t,n){var r=n(36),o=n(83),i=n(9),a=n(38),c=/^\[object .+?Constructor\]$/,u=Function.prototype,s=Object.prototype,l=u.toString,p=s.hasOwnProperty,f=RegExp("^"+l.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(r(e)?f:c).test(a(e))}},function(e,t){var n;n=function(){return this}();try{n=n||new Function("return this")()}catch(e){"object"==typeof window&&(n=window)}e.exports=n},function(e,t,n){var r=n(21),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,c=r?r.toStringTag:void 0;e.exports=function(e){var t=i.call(e,c),n=e[c];try{e[c]=void 0;var r=!0}catch(e){}var o=a.call(e);return r&&(t?e[c]=n:delete e[c]),o}},function(e,t){var n=Object.prototype.toString;e.exports=function(e){return n.call(e)}},function(e,t,n){var r,o=n(84),i=(r=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+r:"";e.exports=function(e){return!!i&&i in e}},function(e,t,n){var r=n(4)["__core-js_shared__"];e.exports=r},function(e,t){e.exports=function(e,t){return null==e?void 0:e[t]}},function(e,t,n){var r=n(87),o=n(94),i=n(96),a=n(97),c=n(98);function u(e){var t=-1,n=null==e?0:e.length;for(this.clear();++t-1&&e%1==0&&e=0?e.ownerDocument.body:M(e)&&Z(e)?e:z(W(e))}function U(e,t){var n;void 0===t&&(t=[]);var r=z(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=A(r),a=o?[i].concat(i.visualViewport||[],Z(r)?r:[]):r,c=t.concat(a);return o?c:c.concat(U(W(a)))}function V(e){return["table","td","th"].indexOf(D(e))>=0}function H(e){return M(e)&&"fixed"!==N(e).position?e.offsetParent:null}function q(e){for(var t=A(e),n=H(e);n&&V(n)&&"static"===N(n).position;)n=H(n);return n&&("html"===D(n)||"body"===D(n)&&"static"===N(n).position)?t:n||function(e){for(var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox"),n=W(e);M(n)&&["html","body"].indexOf(D(n))<0;){var r=N(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}var $="top",G="bottom",J="right",X="left",Y="auto",K=[$,G,J,X],Q="start",ee="end",te="viewport",ne="popper",re=K.reduce((function(e,t){return e.concat([t+"-"+Q,t+"-"+ee])}),[]),oe=[].concat(K,[Y]).reduce((function(e,t){return e.concat([t,t+"-"+Q,t+"-"+ee])}),[]),ie=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function ae(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ce={placement:"bottom",modifiers:[],strategy:"absolute"};function ue(){for(var e=arguments.length,t=new Array(e),n=0;n=0?"x":"y"}function ve(e){var t,n=e.reference,r=e.element,o=e.placement,i=o?fe(o):null,a=o?de(o):null,c=n.x+n.width/2-r.width/2,u=n.y+n.height/2-r.height/2;switch(i){case $:t={x:c,y:n.y-r.height};break;case G:t={x:c,y:n.y+n.height};break;case J:t={x:n.x+n.width,y:u};break;case X:t={x:n.x-r.width,y:u};break;default:t={x:n.x,y:n.y}}var s=i?me(i):null;if(null!=s){var l="y"===s?"height":"width";switch(a){case Q:t[s]=t[s]-(n[l]/2-r[l]/2);break;case ee:t[s]=t[s]+(n[l]/2-r[l]/2)}}return t}var ye={name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=ve({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},be=Math.max,he=Math.min,ge=Math.round,_e={top:"auto",right:"auto",bottom:"auto",left:"auto"};function Oe(e){var t,n=e.popper,r=e.popperRect,o=e.placement,i=e.offsets,a=e.position,c=e.gpuAcceleration,u=e.adaptive,s=e.roundOffsets,l=!0===s?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:ge(ge(t*r)/r)||0,y:ge(ge(n*r)/r)||0}}(i):"function"==typeof s?s(i):i,p=l.x,f=void 0===p?0:p,d=l.y,m=void 0===d?0:d,v=i.hasOwnProperty("x"),y=i.hasOwnProperty("y"),b=X,h=$,g=window;if(u){var _=q(n),O="clientHeight",w="clientWidth";_===A(n)&&"static"!==N(_=B(n)).position&&(O="scrollHeight",w="scrollWidth"),_=_,o===$&&(h=G,m-=_[O]-r.height,m*=c?1:-1),o===X&&(b=J,f-=_[w]-r.width,f*=c?1:-1)}var j,x=Object.assign({position:a},u&&_e);return c?Object.assign({},x,((j={})[h]=y?"0":"",j[b]=v?"0":"",j.transform=(g.devicePixelRatio||1)<2?"translate("+f+"px, "+m+"px)":"translate3d("+f+"px, "+m+"px, 0)",j)):Object.assign({},x,((t={})[h]=y?m+"px":"",t[b]=v?f+"px":"",t.transform="",t))}var we={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];M(o)&&D(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});M(r)&&D(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};var je={left:"right",right:"left",bottom:"top",top:"bottom"};function xe(e){return e.replace(/left|right|bottom|top/g,(function(e){return je[e]}))}var Le={start:"end",end:"start"};function Ee(e){return e.replace(/start|end/g,(function(e){return Le[e]}))}function Pe(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&T(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function ke(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ae(e,t){return t===te?ke(function(e){var t=A(e),n=B(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,c=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,c=r.offsetTop)),{width:o,height:i,x:a+R(e),y:c}}(e)):M(t)?function(e){var t=k(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):ke(function(e){var t,n=B(e),r=S(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=be(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=be(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),c=-r.scrollLeft+R(e),u=-r.scrollTop;return"rtl"===N(o||n).direction&&(c+=be(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:c,y:u}}(B(e)))}function Se(e,t,n){var r="clippingParents"===t?function(e){var t=U(W(e)),n=["absolute","fixed"].indexOf(N(e).position)>=0&&M(e)?q(e):e;return C(n)?t.filter((function(e){return C(e)&&Pe(e,n)&&"body"!==D(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=Ae(e,n);return t.top=be(r.top,t.top),t.right=he(r.right,t.right),t.bottom=he(r.bottom,t.bottom),t.left=be(r.left,t.left),t}),Ae(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Ce(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function Me(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}function Te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=void 0===r?e.placement:r,i=n.boundary,a=void 0===i?"clippingParents":i,c=n.rootBoundary,u=void 0===c?te:c,s=n.elementContext,l=void 0===s?ne:s,p=n.altBoundary,f=void 0!==p&&p,d=n.padding,m=void 0===d?0:d,v=Ce("number"!=typeof m?m:Me(m,K)),y=l===ne?"reference":ne,b=e.elements.reference,h=e.rects.popper,g=e.elements[f?y:l],_=Se(C(g)?g:g.contextElement||B(e.elements.popper),a,u),O=k(b),w=ve({reference:O,element:h,strategy:"absolute",placement:o}),j=ke(Object.assign({},h,w)),x=l===ne?j:O,L={top:_.top-x.top+v.top,bottom:x.bottom-_.bottom+v.bottom,left:_.left-x.left+v.left,right:x.right-_.right+v.right},E=e.modifiersData.offset;if(l===ne&&E){var P=E[o];Object.keys(L).forEach((function(e){var t=[J,G].indexOf(e)>=0?1:-1,n=[$,G].indexOf(e)>=0?"y":"x";L[e]+=P[n]*t}))}return L}function De(e,t,n){return be(e,he(t,n))}function Be(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Re(e){return[$,J,G,X].some((function(t){return e[t]>=0}))}var Ne=se({defaultModifiers:[pe,ye,{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,c=n.roundOffsets,u=void 0===c||c,s={placement:fe(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,Oe(Object.assign({},s,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:u})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,Oe(Object.assign({},s,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:u})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},we,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.offset,i=void 0===o?[0,0]:o,a=oe.reduce((function(e,n){return e[n]=function(e,t,n){var r=fe(e),o=[X,$].indexOf(r)>=0?-1:1,i="function"==typeof n?n(Object.assign({},t,{placement:e})):n,a=i[0],c=i[1];return a=a||0,c=(c||0)*o,[X,J].indexOf(r)>=0?{x:c,y:a}:{x:a,y:c}}(n,t.rects,i),e}),{}),c=a[t.placement],u=c.x,s=c.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=u,t.modifiersData.popperOffsets.y+=s),t.modifiersData[r]=a}},{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name;if(!t.modifiersData[r]._skip){for(var o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0===a||a,u=n.fallbackPlacements,s=n.padding,l=n.boundary,p=n.rootBoundary,f=n.altBoundary,d=n.flipVariations,m=void 0===d||d,v=n.allowedAutoPlacements,y=t.options.placement,b=fe(y),h=u||(b===y||!m?[xe(y)]:function(e){if(fe(e)===Y)return[];var t=xe(e);return[Ee(e),t,Ee(t)]}(y)),g=[y].concat(h).reduce((function(e,n){return e.concat(fe(n)===Y?function(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,i=n.rootBoundary,a=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,s=void 0===u?oe:u,l=de(r),p=l?c?re:re.filter((function(e){return de(e)===l})):K,f=p.filter((function(e){return s.indexOf(e)>=0}));0===f.length&&(f=p);var d=f.reduce((function(t,n){return t[n]=Te(e,{placement:n,boundary:o,rootBoundary:i,padding:a})[fe(n)],t}),{});return Object.keys(d).sort((function(e,t){return d[e]-d[t]}))}(t,{placement:n,boundary:l,rootBoundary:p,padding:s,flipVariations:m,allowedAutoPlacements:v}):n)}),[]),_=t.rects.reference,O=t.rects.popper,w=new Map,j=!0,x=g[0],L=0;L=0,S=A?"width":"height",C=Te(t,{placement:E,boundary:l,rootBoundary:p,altBoundary:f,padding:s}),M=A?k?J:X:k?G:$;_[S]>O[S]&&(M=xe(M));var T=xe(M),D=[];if(i&&D.push(C[P]<=0),c&&D.push(C[M]<=0,C[T]<=0),D.every((function(e){return e}))){x=E,j=!1;break}w.set(E,D)}if(j)for(var B=function(e){var t=g.find((function(t){var n=w.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return x=t,"break"},R=m?3:1;R>0;R--){if("break"===B(R))break}t.placement!==x&&(t.modifiersData[r]._skip=!0,t.placement=x,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,n=e.options,r=e.name,o=n.mainAxis,i=void 0===o||o,a=n.altAxis,c=void 0!==a&&a,u=n.boundary,s=n.rootBoundary,l=n.altBoundary,p=n.padding,f=n.tether,d=void 0===f||f,m=n.tetherOffset,v=void 0===m?0:m,y=Te(t,{boundary:u,rootBoundary:s,padding:p,altBoundary:l}),b=fe(t.placement),h=de(t.placement),g=!h,_=me(b),O="x"===_?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,x=t.rects.popper,L="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,E={x:0,y:0};if(w){if(i||c){var P="y"===_?$:X,k="y"===_?G:J,A="y"===_?"height":"width",S=w[_],C=w[_]+y[P],M=w[_]-y[k],T=d?-x[A]/2:0,D=h===Q?j[A]:x[A],B=h===Q?-x[A]:-j[A],R=t.elements.arrow,N=d&&R?F(R):{width:0,height:0},Z=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},I=Z[P],W=Z[k],z=De(0,j[A],N[A]),U=g?j[A]/2-T-z-I-L:D-z-I-L,V=g?-j[A]/2+T+z+W+L:B+z+W+L,H=t.elements.arrow&&q(t.elements.arrow),Y=H?"y"===_?H.clientTop||0:H.clientLeft||0:0,K=t.modifiersData.offset?t.modifiersData.offset[t.placement][_]:0,ee=w[_]+U-K-Y,te=w[_]+V-K;if(i){var ne=De(d?he(C,ee):C,S,d?be(M,te):M);w[_]=ne,E[_]=ne-S}if(c){var re="x"===_?$:X,oe="x"===_?G:J,ie=w[O],ae=ie+y[re],ce=ie-y[oe],ue=De(d?he(ae,ee):ae,ie,d?be(ce,te):ce);w[O]=ue,E[O]=ue-ie}}t.modifiersData[r]=E}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,n=e.state,r=e.name,o=e.options,i=n.elements.arrow,a=n.modifiersData.popperOffsets,c=fe(n.placement),u=me(c),s=[X,J].indexOf(c)>=0?"height":"width";if(i&&a){var l=function(e,t){return Ce("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:Me(e,K))}(o.padding,n),p=F(i),f="y"===u?$:X,d="y"===u?G:J,m=n.rects.reference[s]+n.rects.reference[u]-a[u]-n.rects.popper[s],v=a[u]-n.rects.reference[u],y=q(i),b=y?"y"===u?y.clientHeight||0:y.clientWidth||0:0,h=m/2-v/2,g=l[f],_=b-p[s]-l[d],O=b/2-p[s]/2+h,w=De(g,O,_),j=u;n.modifiersData[r]=((t={})[j]=w,t.centerOffset=w-O,t)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&Pe(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Te(t,{elementContext:"reference"}),c=Te(t,{altBoundary:!0}),u=Be(a,r),s=Be(c,o,i),l=Re(u),p=Re(s);t.modifiersData[n]={referenceClippingOffsets:u,popperEscapeOffsets:s,isReferenceHidden:l,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":l,"data-popper-escaped":p})}}]}),Ze="tippy-content",Ie="tippy-backdrop",Fe="tippy-arrow",We="tippy-svg-arrow",ze={passive:!0,capture:!0};function Ue(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function Ve(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function He(e,t){return"function"==typeof e?e.apply(void 0,t):e}function qe(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function $e(e){return[].concat(e)}function Ge(e,t){-1===e.indexOf(t)&&e.push(t)}function Je(e){return e.split("-")[0]}function Xe(e){return[].slice.call(e)}function Ye(){return document.createElement("div")}function Ke(e){return["Element","Fragment"].some((function(t){return Ve(e,t)}))}function Qe(e){return Ve(e,"MouseEvent")}function et(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function tt(e){return Ke(e)?[e]:function(e){return Ve(e,"NodeList")}(e)?Xe(e):Array.isArray(e)?e:Xe(document.querySelectorAll(e))}function nt(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function rt(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function ot(e){var t,n=$e(e)[0];return(null==n||null==(t=n.ownerDocument)?void 0:t.body)?n.ownerDocument:document}function it(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var at={isTouch:!1},ct=0;function ut(){at.isTouch||(at.isTouch=!0,window.performance&&document.addEventListener("mousemove",st))}function st(){var e=performance.now();e-ct<20&&(at.isTouch=!1,document.removeEventListener("mousemove",st)),ct=e}function lt(){var e=document.activeElement;if(et(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var pt="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",ft=/MSIE |Trident\//.test(pt);var dt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},mt=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},dt,{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),vt=Object.keys(mt);function yt(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function bt(e,t){var n=Object.assign({},t,{content:He(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(yt(Object.assign({},mt,{plugins:t}))):vt).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},mt.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function ht(e,t){e.innerHTML=t}function gt(e){var t=Ye();return!0===e?t.className=Fe:(t.className=We,Ke(e)?t.appendChild(e):ht(t,e)),t}function _t(e,t){Ke(t.content)?(ht(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?ht(e,t.content):e.textContent=t.content)}function Ot(e){var t=e.firstElementChild,n=Xe(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(Ze)})),arrow:n.find((function(e){return e.classList.contains(Fe)||e.classList.contains(We)})),backdrop:n.find((function(e){return e.classList.contains(Ie)}))}}function wt(e){var t=Ye(),n=Ye();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=Ye();function o(n,r){var o=Ot(t),i=o.box,a=o.content,c=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||_t(a,e.props),r.arrow?c?n.arrow!==r.arrow&&(i.removeChild(c),i.appendChild(gt(r.arrow))):i.appendChild(gt(r.arrow)):c&&i.removeChild(c)}return r.className=Ze,r.setAttribute("data-state","hidden"),_t(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}wt.$$tippy=!0;var jt=1,xt=[],Lt=[];function Et(e,t){var n,r,o,i,a,c,u,s,l,p=bt(e,Object.assign({},mt,{},yt((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),f=!1,d=!1,m=!1,v=!1,y=[],b=qe(G,p.interactiveDebounce),h=jt++,g=(l=p.plugins).filter((function(e,t){return l.indexOf(e)===t})),_={id:h,reference:e,popper:Ye(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:g,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){0;if(_.state.isDestroyed)return;D("onBeforeUpdate",[_,t]),q();var n=_.props,r=bt(e,Object.assign({},_.props,{},t,{ignoreAttributes:!0}));_.props=r,H(),n.interactiveDebounce!==r.interactiveDebounce&&(N(),b=qe(G,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?$e(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");R(),T(),j&&j(n,r);_.popperInstance&&(K(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));D("onAfterUpdate",[_,t])},setContent:function(e){_.setProps({content:e})},show:function(){0;var e=_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=at.isTouch&&!_.props.touch,o=Ue(_.props.duration,0,mt.duration);if(e||t||n||r)return;if(A().hasAttribute("disabled"))return;if(D("onShow",[_],!1),!1===_.props.onShow(_))return;_.state.isVisible=!0,k()&&(w.style.visibility="visible");T(),W(),_.state.isMounted||(w.style.transition="none");if(k()){var i=C(),a=i.box,c=i.content;nt([a,c],0)}u=function(){var e;if(_.state.isVisible&&!v){if(v=!0,w.offsetHeight,w.style.transition=_.props.moveTransition,k()&&_.props.animation){var t=C(),n=t.box,r=t.content;nt([n,r],o),rt([n,r],"visible")}B(),R(),Ge(Lt,_),null==(e=_.popperInstance)||e.forceUpdate(),_.state.isMounted=!0,D("onMount",[_]),_.props.animation&&k()&&function(e,t){U(e,t)}(o,(function(){_.state.isShown=!0,D("onShown",[_])}))}},function(){var e,t=_.props.appendTo,n=A();e=_.props.interactive&&t===mt.appendTo||"parent"===t?n.parentNode:He(t,[n]);e.contains(w)||e.appendChild(w);K(),!1}()},hide:function(){0;var e=!_.state.isVisible,t=_.state.isDestroyed,n=!_.state.isEnabled,r=Ue(_.props.duration,1,mt.duration);if(e||t||n)return;if(D("onHide",[_],!1),!1===_.props.onHide(_))return;_.state.isVisible=!1,_.state.isShown=!1,v=!1,f=!1,k()&&(w.style.visibility="hidden");if(N(),z(),T(),k()){var o=C(),i=o.box,a=o.content;_.props.animation&&(nt([i,a],r),rt([i,a],"hidden"))}B(),R(),_.props.animation?k()&&function(e,t){U(e,(function(){!_.state.isVisible&&w.parentNode&&w.parentNode.contains(w)&&t()}))}(r,_.unmount):_.unmount()},hideWithInteractivity:function(e){0;S().addEventListener("mousemove",b),Ge(xt,b),b(e)},enable:function(){_.state.isEnabled=!0},disable:function(){_.hide(),_.state.isEnabled=!1},unmount:function(){0;_.state.isVisible&&_.hide();if(!_.state.isMounted)return;Q(),ee().forEach((function(e){e._tippy.unmount()})),w.parentNode&&w.parentNode.removeChild(w);Lt=Lt.filter((function(e){return e!==_})),_.state.isMounted=!1,D("onHidden",[_])},destroy:function(){0;if(_.state.isDestroyed)return;_.clearDelayTimeouts(),_.unmount(),q(),delete e._tippy,_.state.isDestroyed=!0,D("onDestroy",[_])}};if(!p.render)return _;var O=p.render(_),w=O.popper,j=O.onUpdate;w.setAttribute("data-tippy-root",""),w.id="tippy-"+_.id,_.popper=w,e._tippy=_,w._tippy=_;var x=g.map((function(e){return e.fn(_)})),L=e.hasAttribute("aria-expanded");return H(),R(),T(),D("onCreate",[_]),p.showOnCreate&&te(),w.addEventListener("mouseenter",(function(){_.props.interactive&&_.state.isVisible&&_.clearDelayTimeouts()})),w.addEventListener("mouseleave",(function(e){_.props.interactive&&_.props.trigger.indexOf("mouseenter")>=0&&(S().addEventListener("mousemove",b),b(e))})),_;function E(){var e=_.props.touch;return Array.isArray(e)?e:[e,0]}function P(){return"hold"===E()[0]}function k(){var e;return!!(null==(e=_.props.render)?void 0:e.$$tippy)}function A(){return s||e}function S(){var e=A().parentNode;return e?ot(e):document}function C(){return Ot(w)}function M(e){return _.state.isMounted&&!_.state.isVisible||at.isTouch||a&&"focus"===a.type?0:Ue(_.props.delay,e?0:1,mt.delay)}function T(){w.style.pointerEvents=_.props.interactive&&_.state.isVisible?"":"none",w.style.zIndex=""+_.props.zIndex}function D(e,t,n){var r;(void 0===n&&(n=!0),x.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=_.props)[e].apply(r,t)}function B(){var t=_.props.aria;if(t.content){var n="aria-"+t.content,r=w.id;$e(_.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(_.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function R(){!L&&_.props.aria.expanded&&$e(_.props.triggerTarget||e).forEach((function(e){_.props.interactive?e.setAttribute("aria-expanded",_.state.isVisible&&e===A()?"true":"false"):e.removeAttribute("aria-expanded")}))}function N(){S().removeEventListener("mousemove",b),xt=xt.filter((function(e){return e!==b}))}function Z(e){if(!(at.isTouch&&(m||"mousedown"===e.type)||_.props.interactive&&w.contains(e.target))){if(A().contains(e.target)){if(at.isTouch)return;if(_.state.isVisible&&_.props.trigger.indexOf("click")>=0)return}else D("onClickOutside",[_,e]);!0===_.props.hideOnClick&&(_.clearDelayTimeouts(),_.hide(),d=!0,setTimeout((function(){d=!1})),_.state.isMounted||z())}}function I(){m=!0}function F(){m=!1}function W(){var e=S();e.addEventListener("mousedown",Z,!0),e.addEventListener("touchend",Z,ze),e.addEventListener("touchstart",F,ze),e.addEventListener("touchmove",I,ze)}function z(){var e=S();e.removeEventListener("mousedown",Z,!0),e.removeEventListener("touchend",Z,ze),e.removeEventListener("touchstart",F,ze),e.removeEventListener("touchmove",I,ze)}function U(e,t){var n=C().box;function r(e){e.target===n&&(it(n,"remove",r),t())}if(0===e)return t();it(n,"remove",c),it(n,"add",r),c=r}function V(t,n,r){void 0===r&&(r=!1),$e(_.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),y.push({node:e,eventType:t,handler:n,options:r})}))}function H(){var e;P()&&(V("touchstart",$,{passive:!0}),V("touchend",J,{passive:!0})),(e=_.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(V(e,$),e){case"mouseenter":V("mouseleave",J);break;case"focus":V(ft?"focusout":"blur",X);break;case"focusin":V("focusout",X)}}))}function q(){y.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),y=[]}function $(e){var t,n=!1;if(_.state.isEnabled&&!Y(e)&&!d){var r="focus"===(null==(t=a)?void 0:t.type);a=e,s=e.currentTarget,R(),!_.state.isVisible&&Qe(e)&&xt.forEach((function(t){return t(e)})),"click"===e.type&&(_.props.trigger.indexOf("mouseenter")<0||f)&&!1!==_.props.hideOnClick&&_.state.isVisible?n=!0:te(e),"click"===e.type&&(f=!n),n&&!r&&ne(e)}}function G(e){var t=e.target,n=A().contains(t)||w.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=Je(o.placement),c=o.modifiersData.offset;if(!c)return!0;var u="bottom"===a?c.top.y:0,s="top"===a?c.bottom.y:0,l="right"===a?c.left.x:0,p="left"===a?c.right.x:0,f=t.top-r+u>i,d=r-t.bottom-s>i,m=t.left-n+l>i,v=n-t.right-p>i;return f||d||m||v}))}(ee().concat(w).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(N(),ne(e))}function J(e){Y(e)||_.props.trigger.indexOf("click")>=0&&f||(_.props.interactive?_.hideWithInteractivity(e):ne(e))}function X(e){_.props.trigger.indexOf("focusin")<0&&e.target!==A()||_.props.interactive&&e.relatedTarget&&w.contains(e.relatedTarget)||ne(e)}function Y(e){return!!at.isTouch&&P()!==e.type.indexOf("touch")>=0}function K(){Q();var t=_.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,c=k()?Ot(w).arrow:null,s=i?{getBoundingClientRect:i,contextElement:i.contextElement||A()}:e,l=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var n=C().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];k()&&c&&l.push({name:"arrow",options:{element:c,padding:3}}),l.push.apply(l,(null==n?void 0:n.modifiers)||[]),_.popperInstance=Ne(s,w,Object.assign({},n,{placement:r,onFirstUpdate:u,modifiers:l}))}function Q(){_.popperInstance&&(_.popperInstance.destroy(),_.popperInstance=null)}function ee(){return Xe(w.querySelectorAll("[data-tippy-root]"))}function te(e){_.clearDelayTimeouts(),e&&D("onTrigger",[_,e]),W();var t=M(!0),n=E(),o=n[0],i=n[1];at.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){_.show()}),t):_.show()}function ne(e){if(_.clearDelayTimeouts(),D("onUntrigger",[_,e]),_.state.isVisible){if(!(_.props.trigger.indexOf("mouseenter")>=0&&_.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&f)){var t=M(!1);t?o=setTimeout((function(){_.state.isVisible&&_.hide()}),t):i=requestAnimationFrame((function(){_.hide()}))}}else z()}}function Pt(e,t){void 0===t&&(t={});var n=mt.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ut,ze),window.addEventListener("blur",lt);var r=Object.assign({},t,{plugins:n}),o=tt(e).reduce((function(e,t){var n=t&&Et(t,r);return n&&e.push(n),e}),[]);return Ke(e)?o[0]:o}Pt.defaultProps=mt,Pt.setDefaultProps=function(e){Object.keys(e).forEach((function(t){mt[t]=e[t]}))},Pt.currentInput=at;Object.assign({},we,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}});Pt.setDefaultProps({render:wt});var kt=Pt,At=n(55);function St(e,t){if(null==e)return{};var n,r,o={},i=Object.keys(e);for(r=0;r=0||(o[n]=e[n]);return o}var Ct="undefined"!=typeof window&&"undefined"!=typeof document;function Mt(e,t){e&&("function"==typeof e&&e(t),{}.hasOwnProperty.call(e,"current")&&(e.current=t))}function Tt(){return Ct&&document.createElement("div")}function Dt(e,t){var n,r,o,i,a;return Object.assign({},t,{popperOptions:Object.assign({},e.popperOptions,t.popperOptions,{modifiers:(o=[].concat((null==(n=e.popperOptions)?void 0:n.modifiers)||[],(null==(r=t.popperOptions)?void 0:r.modifiers)||[]),i=[],a=Object.create(null),o.forEach((function(e){void 0===a[JSON.stringify(e)]&&i.push(e),a[JSON.stringify(e)]=!0})),i)})})}var Bt=Ct?y.useLayoutEffect:y.useEffect;function Rt(e){var t=Object(y.useRef)();return t.current||(t.current="function"==typeof e?e():e),t.current}function Nt(e,t,n){n.split(/\s+/).forEach((function(n){n&&e.classList[t](n)}))}var Zt={name:"className",defaultValue:"",fn:function(e){var t=e.popper.firstElementChild,n=function(){var t;return!!(null==(t=e.props.render)?void 0:t.$$tippy)};function r(){e.props.className&&!n()||Nt(t,"add",e.props.className)}return{onCreate:r,onBeforeUpdate:function(){n()&&Nt(t,"remove",e.props.className)},onAfterUpdate:r}}};function It(e){return function(t){var n=t.children,r=t.content,o=t.visible,i=t.singleton,a=t.render,c=t.reference,u=t.disabled,s=void 0!==u&&u,l=t.ignoreAttributes,p=void 0===l||l,f=(t.__source,t.__self,St(t,["children","content","visible","singleton","render","reference","disabled","ignoreAttributes","__source","__self"])),d=void 0!==o,m=void 0!==i,v=Object(y.useState)(!1),h=v[0],g=v[1],_=Object(y.useState)({}),O=_[0],w=_[1],j=Object(y.useState)(),x=j[0],L=j[1],E=Rt((function(){return{container:Tt(),renders:1}})),P=Object.assign({ignoreAttributes:p},f,{content:E.container});d&&(P.trigger="manual",P.hideOnClick=!1),m&&(s=!0);var k=P,A=P.plugins||[];a&&(k=Object.assign({},P,{plugins:m?[].concat(A,[{fn:function(){return{onTrigger:function(e,t){var n=i.data.children.find((function(e){return e.instance.reference===t.currentTarget})).content;L(n)}}}}]):A,render:function(){return{popper:E.container}}}));var S=[c].concat(n?[n.type]:[]);return Bt((function(){var t=c;c&&c.hasOwnProperty("current")&&(t=c.current);var n=e(t||E.ref||Tt(),Object.assign({},k,{plugins:[Zt].concat(P.plugins||[])}));return E.instance=n,s&&n.disable(),o&&n.show(),m&&i.hook({instance:n,content:r,props:k}),g(!0),function(){n.destroy(),null==i||i.cleanup(n)}}),S),Bt((function(){var e;if(1!==E.renders){var t=E.instance;t.setProps(Dt(t.props,k)),null==(e=t.popperInstance)||e.forceUpdate(),s?t.disable():t.enable(),d&&(o?t.show():t.hide()),m&&i.hook({instance:t,content:r,props:k})}else E.renders++})),Bt((function(){var e;if(a){var t=E.instance;t.setProps({popperOptions:Object.assign({},t.props.popperOptions,{modifiers:[].concat(((null==(e=t.props.popperOptions)?void 0:e.modifiers)||[]).filter((function(e){return"$$tippyReact"!==e.name})),[{name:"$$tippyReact",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t,n=e.state,r=null==(t=n.modifiersData)?void 0:t.hide;O.placement===n.placement&&O.referenceHidden===(null==r?void 0:r.isReferenceHidden)&&O.escaped===(null==r?void 0:r.hasPopperEscaped)||w({placement:n.placement,referenceHidden:null==r?void 0:r.isReferenceHidden,escaped:null==r?void 0:r.hasPopperEscaped}),n.attributes.popper={}}}])})})}}),[O.placement,O.referenceHidden,O.escaped].concat(S)),b.a.createElement(b.a.Fragment,null,n?Object(y.cloneElement)(n,{ref:function(e){E.ref=e,Mt(n.ref,e)}}):null,h&&Object(At.createPortal)(a?a(function(e){var t={"data-placement":e.placement};return e.referenceHidden&&(t["data-reference-hidden"]=""),e.escaped&&(t["data-escaped"]=""),t}(O),x,E.instance):r,E.container))}}var Ft=function(e,t){return Object(y.forwardRef)((function(n,r){var o=n.children,i=St(n,["children"]);return b.a.createElement(e,Object.assign({},t,i),o?Object(y.cloneElement)(o,{ref:function(e){Mt(r,e),Mt(o.ref,e)}}):null)}))},Wt=Ft(It(kt)),zt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-round"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M12,3 C16.9705627,3 21,7.02943725 21,12 C21,16.9705627 16.9705627,21 12,21 C7.02943725,21 3,16.9705627 3,12 C3,7.02943725 7.02943725,3 12,3 Z M12,5 C8.13400675,5 5,8.13400675 5,12 C5,15.8659932 8.13400675,19 12,19 C15.8659932,19 19,15.8659932 19,12 C19,8.13400675 15.8659932,5 12,5 Z",id:"Combined-Shape"}))))},Ut=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-square"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,3 L3,21 L21,21 L21,3 L3,3 Z M5,5 L5,19 L19,19 L19,5 L5,5 Z",id:"shape"}))))},Vt=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-radius"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M17,3 C19.209139,3 21,4.790861 21,7 L21,17 C21,19.209139 19.209139,21 17,21 L7,21 C4.790861,21 3,19.209139 3,17 L3,7 C3,4.790861 4.790861,3 7,3 L17,3 Z M17,5 L7,5 C5.9456382,5 5.08183488,5.81587779 5.00548574,6.85073766 L5,7 L5,17 C5,18.0543618 5.81587779,18.9181651 6.85073766,18.9945143 L7,19 L17,19 C18.0543618,19 18.9181651,18.1841222 18.9945143,17.1492623 L19,17 L19,7 C19,5.9456382 18.1841222,5.08183488 17.1492623,5.00548574 L17,5 Z",id:"Rectangle"}))))},Ht=function(){return b.a.createElement("svg",{width:"18px",height:"18px",viewBox:"0 0 18 18",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"shape-none"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M5,19 L5,21 L3,21 L3,19 L5,19 Z M21,19 L21,21 L19,21 L19,19 L21,19 Z M13,19 L13,21 L11,21 L11,19 L13,19 Z M9,19 L9,21 L7,21 L7,19 L9,19 Z M17,19 L17,21 L15,21 L15,19 L17,19 Z M21,15 L21,17 L19,17 L19,15 L21,15 Z M21,11 L21,13 L19,13 L19,11 L21,11 Z M5,11 L5,13 L3,13 L3,11 L5,11 Z M21,7 L21,9 L19,9 L19,7 L21,7 Z M5,7 L5,9 L3,9 L3,7 L5,7 Z M13,3 L13,5 L11,5 L11,3 L13,3 Z M9,3 L9,5 L7,5 L7,3 L9,3 Z M17,3 L17,5 L15,5 L15,3 L17,3 Z M21,3 L21,5 L19,5 L19,3 L21,3 Z M5,3 L5,5 L3,5 L3,3 L5,3 Z M3,15 L5,15 L5,17 L3,17 L3,15 Z",id:"Shape"}))))},qt=[{value:{type:"expanded",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"20px",viewBox:"0 0 17 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-modern"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M2,10 L5,10 L5,7 L2,7 L2,10 Z M2,14 L5,14 L5,11 L2,11 L2,14 Z M2,6 L5,6 L5,3 L2,3 L2,6 Z M6,3 L6,17 L19,17 L19,3 L6,3 Z M8,5 L8,15 L17,15 L17,5 L8,5 Z M6,18 L6,23 L19,23 L19,18 L6,18 Z M8,20 L8,23 L17,23 L17,20 L8,20 Z",id:"shape"}))))},label:Object(r.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:function(){return b.a.createElement("svg",{width:"18px",height:"17px",viewBox:"0 0 18 17",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-2-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000"},b.a.createElement("path",{d:"M11,12 L11,20 L3,20 L3,12 L11,12 Z M21,12 L21,20 L13,20 L13,12 L21,12 Z M9,14 L5,14 L5,18 L9,18 L9,14 Z M19,14 L15,14 L15,18 L19,18 L19,14 Z M11,3 L11,11 L3,11 L3,3 L11,3 Z M21,3 L21,11 L13,11 L13,3 L21,3 Z M9,5 L5,5 L5,9 L9,9 L9,5 Z M19,5 L15,5 L15,9 L19,9 L19,5 Z",id:"Shape"}))))},label:Object(r.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:function(){return b.a.createElement("svg",{width:"20px",height:"13px",viewBox:"0 0 20 13",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-grid-3-column"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M8,12 L8,18 L2,18 L2,12 L8,12 Z M15,12 L15,18 L9,18 L9,12 L15,12 Z M22,12 L22,18 L16,18 L16,12 L22,12 Z M6,14 L4,14 L4,16 L6,16 L6,14 Z M13,14 L11,14 L11,16 L13,16 L13,14 Z M20,14 L18,14 L18,16 L20,16 L20,14 Z M8,5 L8,11 L2,11 L2,5 L8,5 Z M15,5 L15,11 L9,11 L9,5 L15,5 Z M22,5 L22,11 L16,11 L16,5 L22,5 Z M6,7 L4,7 L4,9 L6,9 L6,7 Z M13,7 L11,7 L11,9 L13,9 L13,7 Z M20,7 L18,7 L18,9 L20,9 L20,7 Z",id:"Combined-Shape"}))))},label:Object(r.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:function(){return b.a.createElement("svg",{width:"17px",height:"14px",viewBox:"0 0 17 14",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"layout-classic"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000"},b.a.createElement("path",{d:"M3,12 L6,12 L6,9 L3,9 L3,12 Z M3,16 L6,16 L6,13 L3,13 L3,16 Z M3,8 L6,8 L6,5 L3,5 L3,8 Z M7,5 L7,19 L20,19 L20,5 L7,5 Z M9,7 L9,17 L18,17 L18,7 L9,7 Z",id:"shape"}))))},label:Object(r.__)("Classic","cloudinary")}],$t=["image"],Gt=[{label:Object(r.__)("1:1","cloudinary"),value:"1:1"},{label:Object(r.__)("3:4","cloudinary"),value:"3:4"},{label:Object(r.__)("4:3","cloudinary"),value:"4:3"},{label:Object(r.__)("4:6","cloudinary"),value:"4:6"},{label:Object(r.__)("6:4","cloudinary"),value:"6:4"},{label:Object(r.__)("5:7","cloudinary"),value:"5:7"},{label:Object(r.__)("7:5","cloudinary"),value:"7:5"},{label:Object(r.__)("8:5","cloudinary"),value:"8:5"},{label:Object(r.__)("5:8","cloudinary"),value:"5:8"},{label:Object(r.__)("9:16","cloudinary"),value:"9:16"},{label:Object(r.__)("16:9","cloudinary"),value:"16:9"}],Jt=[{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("Fade","cloudinary"),value:"fade"},{label:Object(r.__)("Slide","cloudinary"),value:"slide"}],Xt=[{label:Object(r.__)("Always","cloudinary"),value:"always"},{label:Object(r.__)("None","cloudinary"),value:"none"},{label:Object(r.__)("MouseOver","cloudinary"),value:"mouseover"}],Yt=[{label:Object(r.__)("Inline","cloudinary"),value:"inline"},{label:Object(r.__)("Flyout","cloudinary"),value:"flyout"},{label:Object(r.__)("Popup","cloudinary"),value:"popup"}],Kt=[{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],Qt=[{label:Object(r.__)("Click","cloudinary"),value:"click"},{label:Object(r.__)("Hover","cloudinary"),value:"hover"}],en=[{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"}],tn=[{label:Object(r.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:Object(r.__)("Indicators","cloudinary"),value:"indicators"},{label:Object(r.__)("None","cloudinary"),value:"none"}],nn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")},{value:"rectangle",icon:function(){return b.a.createElement("svg",{width:"14px",height:"20px",viewBox:"0 0 14 20",version:"1.1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink"},b.a.createElement("title",null,"ratio-9-16"),b.a.createElement("desc",null,"Created with Sketch."),b.a.createElement("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd"},b.a.createElement("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000"},b.a.createElement("path",{d:"M22,5.5 L22,18.5 L2,18.5 L2,5.5 L22,5.5 Z M20,7.5 L4,7.5 L4,16.5 L20,16.5 L20,7.5 Z",id:"Combined-Shape",transform:"translate(12.000000, 12.000000) rotate(-90.000000) translate(-12.000000, -12.000000) "}))))},label:Object(r.__)("Rectangle","cloudinary")}],rn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],on=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Border","cloudinary"),value:"border"},{label:Object(r.__)("Gradient","cloudinary"),value:"gradient"}],an=[{label:Object(r.__)("All","cloudinary"),value:"all"},{label:Object(r.__)("Top","cloudinary"),value:"top"},{label:Object(r.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:Object(r.__)("Left-Right","cloudinary"),value:"left-right"},{label:Object(r.__)("Bottom","cloudinary"),value:"bottom"},{label:Object(r.__)("Left","cloudinary"),value:"left"},{label:Object(r.__)("Right","cloudinary"),value:"right"}],cn=[{value:"round",icon:zt,label:Object(r.__)("Round","cloudinary")},{value:"radius",icon:Vt,label:Object(r.__)("Radius","cloudinary")},{value:"none",icon:Ht,label:Object(r.__)("None","cloudinary")},{value:"square",icon:Ut,label:Object(r.__)("Square","cloudinary")}],un=[{label:Object(r.__)("Pad","cloudinary"),value:"pad"},{label:Object(r.__)("Fill","cloudinary"),value:"fill"}],sn=[{label:Object(r.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:Object(r.__)("Border color padding","cloudinary"),value:"auto"},{label:Object(r.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:Object(r.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}],ln=n(54),pn=n.n(ln),fn=function(e){var t=e.value,n=e.children,r=e.icon,o=e.onChange,i=e.current,a="object"===L()(t)?JSON.stringify(t)===JSON.stringify(i):i===t;return b.a.createElement("button",{type:"button",onClick:function(){return o(t)},className:pn()("radio-select",{"radio-select--active":a})},b.a.createElement(r,null),b.a.createElement("div",{className:"radio-select__label"},n))},dn=function(e){var t=e.children,n=e.value;return b.a.createElement("div",{className:"colorpalette-color-label"},b.a.createElement("span",null,t),b.a.createElement("span",{className:"component-color-indicator","aria-label":"Color: ".concat(n),style:{background:n}}))},mn=new g.a("_"),vn=function(e){var t=e.attributes,n=e.setAttributes,o=e.colors,i=P()(t),a=mn.object(i);return a.customSettings="object"===L()(a.customSettings)?JSON.stringify(a.customSettings):a.customSettings,t.transformation_crop||(t.transformation_crop="pad",t.transformation_background="rgb:FFFFFF"),"fill"===t.transformation_crop&&delete t.transformation_background,b.a.createElement(b.a.Fragment,null,b.a.createElement(w.PanelBody,{title:Object(r.__)("Layout","cloudinary")},qt.map((function(e){return b.a.createElement(fn,{key:"".concat(e.value.type,"-").concat(e.value.columns,"-layout"),value:e.value,onChange:function(e){n({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:e.icon,current:{type:t.displayProps_mode,columns:t.displayProps_columns||1}},e.label)}))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Color Palette","cloudinary"),initialOpen:!1},b.a.createElement(dn,{value:t.themeProps_primary},Object(r.__)("Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_primary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_primary:e})}}),b.a.createElement(dn,{value:t.themeProps_onPrimary},Object(r.__)("On Primary","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_onPrimary,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_onPrimary:e})}}),b.a.createElement(dn,{value:t.themeProps_active},Object(r.__)("Active","cloudinary")),b.a.createElement(j.ColorPalette,{value:t.themeProps_active,colors:o,disableCustomColors:!1,onChange:function(e){return n({themeProps_active:e})}})),"classic"===t.displayProps_mode&&b.a.createElement(w.PanelBody,{title:Object(r.__)("Fade Transition","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{value:t.transition,options:Jt,onChange:function(e){return n({transition:e})}})),b.a.createElement(w.PanelBody,{title:Object(r.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1},b.a.createElement(w.SelectControl,{label:Object(r.__)("Aspect Ratio","cloudinary"),value:t.aspectRatio,options:Gt,onChange:function(e){return n({aspectRatio:e})}}),b.a.createElement("p",null,b.a.createElement(Wt,{content:b.a.createElement("span",null,Object(r.__)("How to resize or crop images to fit the gallery. Pad adds padding around the image using the specified padding style. Fill crops the image from the center so it fills as much of the available space as possible.","cloudinary")),theme:"cloudinary",arrow:!1,placement:"bottom-start"},b.a.createElement("div",{className:"cld-ui-title"},Object(r.__)("Resize/Crop Mode","cloudinary"),b.a.createElement("span",{className:"dashicons dashicons-info cld-tooltip"}))),b.a.createElement(w.ButtonGroup,null,un.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-look-and-feel",isDefault:!0,isPressed:e.value===t.transformation_crop,onClick:function(){return n({transformation_crop:e.value,transformation_background:null})}},e.label)})))),"pad"===t.transformation_crop&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Pad style","cloudinary"),value:t.transformation_background,options:sn,onChange:function(e){n({transformation_background:e})}}),b.a.createElement("p",null,Object(r.__)("Navigation","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Xt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-navigation",isDefault:!0,isPressed:e.value===t.navigation,onClick:function(){return n({navigation:e.value})}},e.label)})))),b.a.createElement("div",{style:{marginTop:"30px"}},b.a.createElement(w.ToggleControl,{label:Object(r.__)("Show Zoom","cloudinary"),checked:t.zoom,onChange:function(){return n({zoom:!t.zoom})}}),t.zoom&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Type","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Yt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-type",isDefault:!0,isPressed:e.value===t.zoomProps_type,onClick:function(){return n({zoomProps_type:e.value})}},e.label)})))),"flyout"===t.zoomProps_type&&b.a.createElement(w.SelectControl,{label:Object(r.__)("Zoom Viewer Position","cloudinary"),value:t.zoomProps_viewerPosition,options:Kt,onChange:function(e){return n({zoomProps_viewerPosition:e})}}),"popup"!==t.zoomProps_type&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Zoom Trigger","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,Qt.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-zoom-trigger",isDefault:!0,isPressed:e.value===t.zoomProps_trigger,onClick:function(){return n({zoomProps_trigger:e.value})}},e.label)})))))))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Carousel Parameters","cloudinary"),initialOpen:!1},b.a.createElement("p",null,Object(r.__)("Carousel Location","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,en.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-location",isDefault:!0,isPressed:e.value===t.carouselLocation,onClick:function(){return n({carouselLocation:e.value})}},e.label)})))),b.a.createElement(w.RangeControl,{label:Object(r.__)("Carousel Offset","cloudinary"),value:t.carouselOffset,onChange:function(e){return n({carouselOffset:e})},min:0,max:100}),b.a.createElement("p",null,Object(r.__)("Carousel Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,tn.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-carousel-style",isDefault:!0,isPressed:e.value===t.carouselStyle,onClick:function(){return n({carouselStyle:e.value})}},e.label)})))),"thumbnails"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement(w.RangeControl,{label:Object(r.__)("Width","cloudinary"),value:t.thumbnailProps_width,onChange:function(e){return n({thumbnailProps_width:e})},min:5,max:300}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Height","cloudinary"),value:t.thumbnailProps_height,onChange:function(e){return n({thumbnailProps_height:e})},min:5,max:300}),b.a.createElement("p",null,Object(r.__)("Navigation Button Shape","cloudinary")),nn.map((function(e){return b.a.createElement(fn,{key:e.value+"-navigation-button-shape",value:e.value,onChange:function(e){return n({thumbnailProps_navigationShape:e})},icon:e.icon,current:t.thumbnailProps_navigationShape},e.label)})),b.a.createElement("p",null,Object(r.__)("Selected Style","cloudinary")),b.a.createElement("p",null,b.a.createElement(w.ButtonGroup,null,on.map((function(e){return b.a.createElement(w.Button,{key:e.value+"-selected-style",isDefault:!0,isPressed:e.value===t.thumbnailProps_selectedStyle,onClick:function(){return n({thumbnailProps_selectedStyle:e.value})}},e.label)})))),b.a.createElement(w.SelectControl,{label:Object(r.__)("Selected Border Position","cloudinary"),value:t.thumbnailProps_selectedBorderPosition,options:an,onChange:function(e){return n({thumbnailProps_selectedBorderPosition:e})}}),b.a.createElement(w.RangeControl,{label:Object(r.__)("Selected Border Width","cloudinary"),value:t.thumbnailProps_selectedBorderWidth,onChange:function(e){return n({thumbnailProps_selectedBorderWidth:e})},min:0,max:10}),b.a.createElement("p",null,Object(r.__)("Media Shape Icon","cloudinary")),cn.map((function(e){return b.a.createElement(fn,{key:e.value+"-media",value:e.value,onChange:function(e){return n({thumbnailProps_mediaSymbolShape:e})},icon:e.icon,current:t.thumbnailProps_mediaSymbolShape},e.label)}))),"indicators"===t.carouselStyle&&b.a.createElement(b.a.Fragment,null,b.a.createElement("p",null,Object(r.__)("Indicators Shape","cloudinary")),rn.map((function(e){return b.a.createElement(fn,{key:e.value+"-indicator",value:e.value,onChange:function(e){return n({indicatorProps_shape:e})},icon:e.icon,current:t.indicatorProps_shape},e.label)})))),b.a.createElement(w.PanelBody,{title:Object(r.__)("Additional Settings","cloudinary"),initialOpen:!1},b.a.createElement(w.TextareaControl,{label:Object(r.__)("Custom Settings","cloudinary"),help:Object(r.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:a.customSettings,onChange:function(e){try{n({customSettings:JSON.parse(e)})}catch(t){n({customSettings:e})}}})))},yn=n(56);function bn(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 hn(e){for(var t=1;t