-
Notifications
You must be signed in to change notification settings - Fork 34
Expand file tree
/
Copy pathgallery.js
More file actions
2 lines (2 loc) · 77.7 KB
/
gallery.js
File metadata and controls
2 lines (2 loc) · 77.7 KB
1
2
(()=>{var e={1780(e){"use strict";function t(e,t){var r,n;if("function"==typeof t)void 0!==(n=t(e))&&(e=n);else if(Array.isArray(t))for(r=0;r<t.length;r++)void 0!==(n=t[r](e))&&(e=n);return e}function r(e,t){return"-"===e[0]&&Array.isArray(t)&&/^-\d+$/.test(e)?t.length+parseInt(e,10):e}function n(e){return"[object Object]"===Object.prototype.toString.call(e)}function o(e){return Object(e)===e}function i(e){return 0===Object.keys(e).length}var a=["__proto__","prototype","constructor"],s=function(e){return-1===a.indexOf(e)};function l(e,t){e.indexOf("[")>=0&&(e=e.replace(/\[/g,t).replace(/]/g,""));var r=e.split(t);if(r.filter(s).length!==r.length)throw Error("Refusing to update blacklisted property "+e);return r}var c=Object.prototype.hasOwnProperty;function u(e,t,r,n){if(!(this instanceof u))return new u(e,t,r,n);void 0===t&&(t=!1),void 0===r&&(r=!0),void 0===n&&(n=!0),this.separator=e||".",this.override=t,this.useArray=r,this.useBrackets=n,this.keepArray=!1,this.cleanup=[]}var p=new u(".",!1,!0,!0);function d(e){return function(){return p[e].apply(p,arguments)}}u.prototype._fill=function(e,r,n,a){var s=e.shift();if(e.length>0){if(r[s]=r[s]||(this.useArray&&function(e){return/^\d+$/.test(e)}(e[0])?[]:{}),!o(r[s])){if(!this.override){if(!o(n)||!i(n))throw new Error("Trying to redefine `"+s+"` which is a "+typeof r[s]);return}r[s]={}}this._fill(e,r[s],n,a)}else{if(!this.override&&o(r[s])&&!i(r[s])){if(!o(n)||!i(n))throw new Error("Trying to redefine non-empty obj['"+s+"']");return}r[s]=t(n,a)}},u.prototype.object=function(e,r){var n=this;return Object.keys(e).forEach(function(o){var i=void 0===r?null:r[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]=t(e[o],i)}),e},u.prototype.str=function(e,r,n,o){var i=l(e,this.separator).join(this.separator);return-1!==e.indexOf(this.separator)?this._fill(i.split(this.separator),n,r,o):n[e]=t(r,o),n},u.prototype.pick=function(e,t,n,o){var i,a,s,c,u;for(a=l(e,this.separator),i=0;i<a.length;i++){if(c=r(a[i],t),!t||"object"!=typeof t||!(c in t))return;if(i===a.length-1)return n?(s=t[c],o&&Array.isArray(t)?t.splice(c,1):delete t[c],Array.isArray(t)&&(u=a.slice(0,-1).join("."),-1===this.cleanup.indexOf(u)&&this.cleanup.push(u)),s):t[c];t=t[c]}return n&&Array.isArray(t)&&(t=t.filter(function(e){return void 0!==e})),t},u.prototype.delete=function(e,t){return this.remove(e,t,!0)},u.prototype.remove=function(e,t,r){var n;if(this.cleanup=[],Array.isArray(e)){for(n=0;n<e.length;n++)this.pick(e[n],t,!0,r);return r||this._cleanup(t),t}return this.pick(e,t,!0,r)},u.prototype._cleanup=function(e){var t,r,n,o;if(this.cleanup.length){for(r=0;r<this.cleanup.length;r++)t=(t=(o=(n=this.cleanup[r].split(".")).splice(0,-1).join("."))?this.pick(o,e):e)[n[0]].filter(function(e){return void 0!==e}),this.set(this.cleanup[r],t,e);this.cleanup=[]}},u.prototype.del=u.prototype.remove,u.prototype.move=function(e,r,n,o,i){return"function"==typeof o||Array.isArray(o)?this.set(r,t(this.pick(e,n,!0),o),n,i):(i=o,this.set(r,this.pick(e,n,!0),n,i)),n},u.prototype.transfer=function(e,r,n,o,i,a){return"function"==typeof i||Array.isArray(i)?this.set(r,t(this.pick(e,n,!0),i),o,a):(a=i,this.set(r,this.pick(e,n,!0),o,a)),o},u.prototype.copy=function(e,r,n,o,i,a){return"function"==typeof i||Array.isArray(i)?this.set(r,t(JSON.parse(JSON.stringify(this.pick(e,n,!1))),i),o,a):(a=i,this.set(r,this.pick(e,n,!1),o,a)),o},u.prototype.set=function(e,t,r,o){var i,a,s,u;if(void 0===t)return r;for(s=l(e,this.separator),i=0;i<s.length;i++){if(u=s[i],i===s.length-1)if(o&&n(t)&&n(r[u]))for(a in t)c.call(t,a)&&(r[u][a]=t[a]);else if(o&&Array.isArray(r[u])&&Array.isArray(t))for(var p=0;p<t.length;p++)r[s[i]].push(t[p]);else r[u]=t;else c.call(r,u)&&(n(r[u])||Array.isArray(r[u]))||(/^\d+$/.test(s[i+1])?r[u]=[]:r[u]={});r=r[u]}return r},u.prototype.transform=function(e,t,r){return t=t||{},r=r||{},Object.keys(e).forEach(function(n){this.set(e[n],this.pick(n,t),r)}.bind(this)),r},u.prototype.dot=function(e,t,r){t=t||{},r=r||[];var a=Array.isArray(e);return Object.keys(e).forEach(function(s){var l=a&&this.useBrackets?"["+s+"]":s;if(o(e[s])&&(n(e[s])&&!i(e[s])||Array.isArray(e[s])&&!this.keepArray&&0!==e[s].length)){if(a&&this.useBrackets){var c=r[r.length-1]||"";return this.dot(e[s],t,r.slice(0,-1).concat(c+l))}return this.dot(e[s],t,r.concat(l))}a&&this.useBrackets?t[r.join(this.separator).concat("["+s+"]")]=e[s]:t[r.concat(l).join(this.separator)]=e[s]}.bind(this)),t},u.pick=d("pick"),u.move=d("move"),u.transfer=d("transfer"),u.transform=d("transform"),u.copy=d("copy"),u.object=d("object"),u.str=d("str"),u.set=d("set"),u.delete=d("delete"),u.del=u.remove=d("remove"),u.dot=d("dot"),["override","overwrite"].forEach(function(e){Object.defineProperty(u,e,{get:function(){return p.override},set:function(e){p.override=!!e}})}),["useArray","keepArray","useBrackets"].forEach(function(e){Object.defineProperty(u,e,{get:function(){return p[e]},set:function(t){p[e]=t}})}),u._process=t,e.exports=u},5580(e,t,r){var n=r(6110)(r(9325),"DataView");e.exports=n},1549(e,t,r){var n=r(2032),o=r(3862),i=r(6721),a=r(2749),s=r(5749);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},79(e,t,r){var n=r(3702),o=r(80),i=r(4739),a=r(8655),s=r(1175);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},8223(e,t,r){var n=r(6110)(r(9325),"Map");e.exports=n},3661(e,t,r){var n=r(3040),o=r(7670),i=r(289),a=r(4509),s=r(2949);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},2804(e,t,r){var n=r(6110)(r(9325),"Promise");e.exports=n},6545(e,t,r){var n=r(6110)(r(9325),"Set");e.exports=n},7217(e,t,r){var n=r(79),o=r(1420),i=r(938),a=r(3605),s=r(9817),l=r(945);function c(e){var t=this.__data__=new n(e);this.size=t.size}c.prototype.clear=o,c.prototype.delete=i,c.prototype.get=a,c.prototype.has=s,c.prototype.set=l,e.exports=c},1873(e,t,r){var n=r(9325).Symbol;e.exports=n},7828(e,t,r){var n=r(9325).Uint8Array;e.exports=n},8303(e,t,r){var n=r(6110)(r(9325),"WeakMap");e.exports=n},3729(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n&&!1!==t(e[r],r,e););return e}},9770(e){e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},695(e,t,r){var n=r(8096),o=r(2428),i=r(6449),a=r(3656),s=r(361),l=r(7167),c=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),u=!r&&o(e),p=!r&&!u&&a(e),d=!r&&!u&&!p&&l(e),f=r||u||p||d,h=f?n(e.length,String):[],v=h.length;for(var y in e)!t&&!c.call(e,y)||f&&("length"==y||p&&("offset"==y||"parent"==y)||d&&("buffer"==y||"byteLength"==y||"byteOffset"==y)||s(y,v))||h.push(y);return h}},4528(e){e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},6547(e,t,r){var n=r(3360),o=r(5288),i=Object.prototype.hasOwnProperty;e.exports=function(e,t,r){var a=e[t];i.call(e,t)&&o(a,r)&&(void 0!==r||t in e)||n(e,t,r)}},6025(e,t,r){var n=r(5288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},4733(e,t,r){var n=r(1791),o=r(5950);e.exports=function(e,t){return e&&n(t,o(t),e)}},3838(e,t,r){var n=r(1791),o=r(7241);e.exports=function(e,t){return e&&n(t,o(t),e)}},3360(e,t,r){var n=r(3243);e.exports=function(e,t,r){"__proto__"==t&&n?n(e,t,{configurable:!0,enumerable:!0,value:r,writable:!0}):e[t]=r}},9999(e,t,r){var n=r(7217),o=r(3729),i=r(6547),a=r(4733),s=r(3838),l=r(3290),c=r(3007),u=r(2271),p=r(8948),d=r(2),f=r(3349),h=r(5861),v=r(6189),y=r(7199),m=r(5529),b=r(6449),g=r(3656),x=r(7730),_=r(3805),w=r(8440),j=r(5950),L=r(7241),O="[object Arguments]",A="[object Function]",k="[object Object]",P={};P[O]=P["[object Array]"]=P["[object ArrayBuffer]"]=P["[object DataView]"]=P["[object Boolean]"]=P["[object Date]"]=P["[object Float32Array]"]=P["[object Float64Array]"]=P["[object Int8Array]"]=P["[object Int16Array]"]=P["[object Int32Array]"]=P["[object Map]"]=P["[object Number]"]=P[k]=P["[object RegExp]"]=P["[object Set]"]=P["[object String]"]=P["[object Symbol]"]=P["[object Uint8Array]"]=P["[object Uint8ClampedArray]"]=P["[object Uint16Array]"]=P["[object Uint32Array]"]=!0,P["[object Error]"]=P[A]=P["[object WeakMap]"]=!1,e.exports=function e(t,r,C,S,M,E){var B,T=1&r,D=2&r,N=4&r;if(C&&(B=M?C(t,S,M,E):C(t)),void 0!==B)return B;if(!_(t))return t;var R=b(t);if(R){if(B=v(t),!T)return c(t,B)}else{var Z=h(t),z=Z==A||"[object GeneratorFunction]"==Z;if(g(t))return l(t,T);if(Z==k||Z==O||z&&!M){if(B=D||z?{}:m(t),!T)return D?p(t,s(B,t)):u(t,a(B,t))}else{if(!P[Z])return M?t:{};B=y(t,Z,T)}}E||(E=new n);var F=E.get(t);if(F)return F;E.set(t,B),w(t)?t.forEach(function(n){B.add(e(n,r,C,n,t,E))}):x(t)&&t.forEach(function(n,o){B.set(o,e(n,r,C,o,t,E))});var W=R?void 0:(N?D?f:d:D?L:j)(t);return o(W||t,function(n,o){W&&(n=t[o=n]),i(B,o,e(n,r,C,o,t,E))}),B}},9344(e,t,r){var n=r(3805),o=Object.create,i=function(){function e(){}return function(t){if(!n(t))return{};if(o)return o(t);e.prototype=t;var r=new e;return e.prototype=void 0,r}}();e.exports=i},2199(e,t,r){var n=r(4528),o=r(6449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},2552(e,t,r){var n=r(1873),o=r(659),i=r(9350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},7534(e,t,r){var n=r(2552),o=r(346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},9172(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Map]"==n(e)}},5083(e,t,r){var n=r(1882),o=r(7296),i=r(3805),a=r(7473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,c=Object.prototype,u=l.toString,p=c.hasOwnProperty,d=RegExp("^"+u.call(p).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?d:s).test(a(e))}},6038(e,t,r){var n=r(5861),o=r(346);e.exports=function(e){return o(e)&&"[object Set]"==n(e)}},4901(e,t,r){var n=r(2552),o=r(294),i=r(346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},8984(e,t,r){var n=r(5527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},2903(e,t,r){var n=r(3805),o=r(5527),i=r(181),a=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return i(e);var t=o(e),r=[];for(var s in e)("constructor"!=s||!t&&a.call(e,s))&&r.push(s);return r}},8096(e){e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},7301(e){e.exports=function(e){return function(t){return e(t)}}},9653(e,t,r){var n=r(7828);e.exports=function(e){var t=new e.constructor(e.byteLength);return new n(t).set(new n(e)),t}},3290(e,t,r){e=r.nmd(e);var n=r(9325),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o?n.Buffer:void 0,s=a?a.allocUnsafe:void 0;e.exports=function(e,t){if(t)return e.slice();var r=e.length,n=s?s(r):new e.constructor(r);return e.copy(n),n}},6169(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.byteLength)}},3201(e){var t=/\w*$/;e.exports=function(e){var r=new e.constructor(e.source,t.exec(e));return r.lastIndex=e.lastIndex,r}},3736(e,t,r){var n=r(1873),o=n?n.prototype:void 0,i=o?o.valueOf:void 0;e.exports=function(e){return i?Object(i.call(e)):{}}},1961(e,t,r){var n=r(9653);e.exports=function(e,t){var r=t?n(e.buffer):e.buffer;return new e.constructor(r,e.byteOffset,e.length)}},3007(e){e.exports=function(e,t){var r=-1,n=e.length;for(t||(t=Array(n));++r<n;)t[r]=e[r];return t}},1791(e,t,r){var n=r(6547),o=r(3360);e.exports=function(e,t,r,i){var a=!r;r||(r={});for(var s=-1,l=t.length;++s<l;){var c=t[s],u=i?i(r[c],e[c],c,r,e):void 0;void 0===u&&(u=e[c]),a?o(r,c,u):n(r,c,u)}return r}},2271(e,t,r){var n=r(1791),o=r(4664);e.exports=function(e,t){return n(e,o(e),t)}},8948(e,t,r){var n=r(1791),o=r(6375);e.exports=function(e,t){return n(e,o(e),t)}},5481(e,t,r){var n=r(9325)["__core-js_shared__"];e.exports=n},3243(e,t,r){var n=r(6110),o=function(){try{var e=n(Object,"defineProperty");return e({},"",{}),e}catch(e){}}();e.exports=o},4840(e){var t="object"==typeof globalThis&&globalThis&&globalThis.Object===Object&&globalThis;e.exports=t},2(e,t,r){var n=r(2199),o=r(4664),i=r(5950);e.exports=function(e){return n(e,i,o)}},3349(e,t,r){var n=r(2199),o=r(6375),i=r(7241);e.exports=function(e){return n(e,i,o)}},2651(e,t,r){var n=r(4218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},6110(e,t,r){var n=r(5083),o=r(392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},8879(e,t,r){var n=r(4335)(Object.getPrototypeOf,Object);e.exports=n},659(e,t,r){var n=r(1873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},4664(e,t,r){var n=r(9770),o=r(3345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),function(t){return i.call(e,t)}))}:o;e.exports=s},6375(e,t,r){var n=r(4528),o=r(8879),i=r(4664),a=r(3345),s=Object.getOwnPropertySymbols?function(e){for(var t=[];e;)n(t,i(e)),e=o(e);return t}:a;e.exports=s},5861(e,t,r){var n=r(5580),o=r(8223),i=r(2804),a=r(6545),s=r(8303),l=r(2552),c=r(7473),u="[object Map]",p="[object Promise]",d="[object Set]",f="[object WeakMap]",h="[object DataView]",v=c(n),y=c(o),m=c(i),b=c(a),g=c(s),x=l;(n&&x(new n(new ArrayBuffer(1)))!=h||o&&x(new o)!=u||i&&x(i.resolve())!=p||a&&x(new a)!=d||s&&x(new s)!=f)&&(x=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?c(r):"";if(n)switch(n){case v:return h;case y:return u;case m:return p;case b:return d;case g:return f}return t}),e.exports=x},392(e){e.exports=function(e,t){return null==e?void 0:e[t]}},2032(e,t,r){var n=r(1042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},3862(e){e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},6721(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},2749(e,t,r){var n=r(1042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},5749(e,t,r){var n=r(1042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},6189(e){var t=Object.prototype.hasOwnProperty;e.exports=function(e){var r=e.length,n=new e.constructor(r);return r&&"string"==typeof e[0]&&t.call(e,"index")&&(n.index=e.index,n.input=e.input),n}},7199(e,t,r){var n=r(9653),o=r(6169),i=r(3201),a=r(3736),s=r(1961);e.exports=function(e,t,r){var l=e.constructor;switch(t){case"[object ArrayBuffer]":return n(e);case"[object Boolean]":case"[object Date]":return new l(+e);case"[object DataView]":return o(e,r);case"[object Float32Array]":case"[object Float64Array]":case"[object Int8Array]":case"[object Int16Array]":case"[object Int32Array]":case"[object Uint8Array]":case"[object Uint8ClampedArray]":case"[object Uint16Array]":case"[object Uint32Array]":return s(e,r);case"[object Map]":case"[object Set]":return new l;case"[object Number]":case"[object String]":return new l(e);case"[object RegExp]":return i(e);case"[object Symbol]":return a(e)}}},5529(e,t,r){var n=r(9344),o=r(8879),i=r(5527);e.exports=function(e){return"function"!=typeof e.constructor||i(e)?{}:n(o(e))}},361(e){var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},4218(e){e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},7296(e,t,r){var n,o=r(5481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},5527(e){var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},3702(e){e.exports=function(){this.__data__=[],this.size=0}},80(e,t,r){var n=r(6025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0)&&(r==t.length-1?t.pop():o.call(t,r,1),--this.size,!0)}},4739(e,t,r){var n=r(6025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},8655(e,t,r){var n=r(6025);e.exports=function(e){return n(this.__data__,e)>-1}},1175(e,t,r){var n=r(6025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},3040(e,t,r){var n=r(1549),o=r(79),i=r(8223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},7670(e,t,r){var n=r(2651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},289(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).get(e)}},4509(e,t,r){var n=r(2651);e.exports=function(e){return n(this,e).has(e)}},2949(e,t,r){var n=r(2651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},1042(e,t,r){var n=r(6110)(Object,"create");e.exports=n},3650(e,t,r){var n=r(4335)(Object.keys,Object);e.exports=n},181(e){e.exports=function(e){var t=[];if(null!=e)for(var r in Object(e))t.push(r);return t}},6009(e,t,r){e=r.nmd(e);var n=r(4840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{var e=i&&i.require&&i.require("util").types;return e||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},9350(e){var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},4335(e){e.exports=function(e,t){return function(r){return e(t(r))}}},9325(e,t,r){var n=r(4840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},1420(e,t,r){var n=r(79);e.exports=function(){this.__data__=new n,this.size=0}},938(e){e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},3605(e){e.exports=function(e){return this.__data__.get(e)}},9817(e){e.exports=function(e){return this.__data__.has(e)}},945(e,t,r){var n=r(79),o=r(8223),i=r(3661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},7473(e){var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},8055(e,t,r){var n=r(9999);e.exports=function(e){return n(e,5)}},5288(e){e.exports=function(e,t){return e===t||e!=e&&t!=t}},2428(e,t,r){var n=r(7534),o=r(346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},6449(e){var t=Array.isArray;e.exports=t},4894(e,t,r){var n=r(1882),o=r(294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},3656(e,t,r){e=r.nmd(e);var n=r(9325),o=r(9935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},1882(e,t,r){var n=r(2552),o=r(3805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},294(e){e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},7730(e,t,r){var n=r(9172),o=r(7301),i=r(6009),a=i&&i.isMap,s=a?o(a):n;e.exports=s},3805(e){e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},346(e){e.exports=function(e){return null!=e&&"object"==typeof e}},8440(e,t,r){var n=r(6038),o=r(7301),i=r(6009),a=i&&i.isSet,s=a?o(a):n;e.exports=s},7167(e,t,r){var n=r(4901),o=r(7301),i=r(6009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},5950(e,t,r){var n=r(695),o=r(8984),i=r(4894);e.exports=function(e){return i(e)?n(e):o(e)}},7241(e,t,r){var n=r(695),o=r(2903),i=r(4894);e.exports=function(e){return i(e)?n(e,!0):o(e)}},3345(e){e.exports=function(){return[]}},9935(e){e.exports=function(){return!1}},6942(e,t){var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()}},t={};function r(n){var o=t[n];if(void 0!==o)return o.exports;var i=t[n]={id:n,loaded:!1,exports:{}};return e[n](i,i.exports,r),i.loaded=!0,i.exports}r.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return r.d(t,{a:t}),t},r.d=(e,t)=>{for(var n in t)r.o(t,n)&&!r.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},r.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),r.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e=r(1780),t=r.n(e);const n=window.wp.element;var o=r(8055),i=r.n(o);const a=window.wp.i18n,s=(window.wp["components/buildStyle/style.css"],window.wp.components),l=window.wp.blockEditor,c=window.ReactJSXRuntime,u=()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"shape-round"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-round",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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"})})})]}),p=()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"ratio-square"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-square",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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"})})})]}),d=()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"shape-radius"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-radius",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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"})})})]}),f=()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"shape-none"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/shape-none",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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"})})})]}),h=[{value:{type:"expanded",columns:1},icon:()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"layout-modern"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-modern",transform:"translate(-2.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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:(0,a.__)("Expanded - 1 Column","cloudinary")},{value:{type:"expanded",columns:2},icon:()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"layout-grid-2-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-2-col",transform:"translate(-3.000000, -3.000000)",fill:"#000000",children:(0,c.jsx)("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:(0,a.__)("Expanded - 2 Column","cloudinary")},{value:{type:"expanded",columns:3},icon:()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"layout-grid-3-column"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-gird-3-col",transform:"translate(-2.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("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:(0,a.__)("Expanded - 3 Column","cloudinary")},{value:{type:"classic",columns:1},icon:()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"layout-classic"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"widgets/layout-classic",transform:"translate(-3.000000, -5.000000)",fill:"#000000",children:(0,c.jsx)("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:(0,a.__)("Classic","cloudinary")}],v=[{label:(0,a.__)("1:1","cloudinary"),value:"1:1"},{label:(0,a.__)("3:4","cloudinary"),value:"3:4"},{label:(0,a.__)("4:3","cloudinary"),value:"4:3"},{label:(0,a.__)("4:6","cloudinary"),value:"4:6"},{label:(0,a.__)("6:4","cloudinary"),value:"6:4"},{label:(0,a.__)("5:7","cloudinary"),value:"5:7"},{label:(0,a.__)("7:5","cloudinary"),value:"7:5"},{label:(0,a.__)("8:5","cloudinary"),value:"8:5"},{label:(0,a.__)("5:8","cloudinary"),value:"5:8"},{label:(0,a.__)("9:16","cloudinary"),value:"9:16"},{label:(0,a.__)("16:9","cloudinary"),value:"16:9"}],y=[{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("Fade","cloudinary"),value:"fade"},{label:(0,a.__)("Slide","cloudinary"),value:"slide"}],m=[{label:(0,a.__)("Always","cloudinary"),value:"always"},{label:(0,a.__)("None","cloudinary"),value:"none"},{label:(0,a.__)("MouseOver","cloudinary"),value:"mouseover"}],b=[{label:(0,a.__)("Inline","cloudinary"),value:"inline"},{label:(0,a.__)("Flyout","cloudinary"),value:"flyout"},{label:(0,a.__)("Popup","cloudinary"),value:"popup"}],g=[{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],x=[{label:(0,a.__)("Click","cloudinary"),value:"click"},{label:(0,a.__)("Hover","cloudinary"),value:"hover"}],_=[{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"}],w=[{label:(0,a.__)("Thumbnails","cloudinary"),value:"thumbnails"},{label:(0,a.__)("Indicators","cloudinary"),value:"indicators"},{label:(0,a.__)("None","cloudinary"),value:"none"}],j=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")},{value:"rectangle",icon:()=>(0,c.jsxs)("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",children:[(0,c.jsx)("title",{children:"ratio-9-16"}),(0,c.jsx)("desc",{children:"Created with Sketch."}),(0,c.jsx)("g",{id:"Desktop-0.4",stroke:"none",strokeWidth:"1",fill:"none",fillRule:"evenodd",children:(0,c.jsx)("g",{id:"ratio/9-16",transform:"translate(-5.000000, -2.000000)",fill:"#000000",children:(0,c.jsx)("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:(0,a.__)("Rectangle","cloudinary")}],L=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],O=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Border","cloudinary"),value:"border"},{label:(0,a.__)("Gradient","cloudinary"),value:"gradient"}],A=[{label:(0,a.__)("All","cloudinary"),value:"all"},{label:(0,a.__)("Top","cloudinary"),value:"top"},{label:(0,a.__)("Top-Bottom","cloudinary"),value:"top-bottom"},{label:(0,a.__)("Left-Right","cloudinary"),value:"left-right"},{label:(0,a.__)("Bottom","cloudinary"),value:"bottom"},{label:(0,a.__)("Left","cloudinary"),value:"left"},{label:(0,a.__)("Right","cloudinary"),value:"right"}],k=[{value:"round",icon:u,label:(0,a.__)("Round","cloudinary")},{value:"radius",icon:d,label:(0,a.__)("Radius","cloudinary")},{value:"none",icon:f,label:(0,a.__)("None","cloudinary")},{value:"square",icon:p,label:(0,a.__)("Square","cloudinary")}],P=[{label:(0,a.__)("Pad","cloudinary"),value:"pad"},{label:(0,a.__)("Fill","cloudinary"),value:"fill"}],C=[{label:(0,a.__)("White padding","cloudinary"),value:"rgb:FFFFFF"},{label:(0,a.__)("Border color padding","cloudinary"),value:"auto"},{label:(0,a.__)("Predominant color padding","cloudinary"),value:"auto:predominant"},{label:(0,a.__)("Gradient fade padding","cloudinary"),value:"auto:predominant_gradient"}];var S=r(6942),M=r.n(S);const E=({value:e,children:t,icon:r,onChange:n,current:o})=>{const i="object"==typeof e?JSON.stringify(e)===JSON.stringify(o):o===e;return(0,c.jsxs)("button",{type:"button",onClick:()=>n(e),className:M()("radio-select",{"radio-select--active":i}),children:[(0,c.jsx)(r,{}),(0,c.jsx)("div",{className:"radio-select__label",children:t})]})};window.wp.data;const B=e=>{const t=/var\((.*)\)/g.exec(e);return t?getComputedStyle(document.documentElement).getPropertyValue(t[1]):e};function T(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function D(e){return e instanceof T(e).Element||e instanceof Element}function N(e){return e instanceof T(e).HTMLElement||e instanceof HTMLElement}function R(e){return"undefined"!=typeof ShadowRoot&&(e instanceof T(e).ShadowRoot||e instanceof ShadowRoot)}var Z=Math.max,z=Math.min,F=Math.round;function W(){var e=navigator.userAgentData;return null!=e&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(e){return e.brand+"/"+e.version}).join(" "):navigator.userAgent}function H(){return!/^((?!chrome|android).)*safari/i.test(W())}function I(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);var n=e.getBoundingClientRect(),o=1,i=1;t&&N(e)&&(o=e.offsetWidth>0&&F(n.width)/e.offsetWidth||1,i=e.offsetHeight>0&&F(n.height)/e.offsetHeight||1);var a=(D(e)?T(e):window).visualViewport,s=!H()&&r,l=(n.left+(s&&a?a.offsetLeft:0))/o,c=(n.top+(s&&a?a.offsetTop:0))/i,u=n.width/o,p=n.height/i;return{width:u,height:p,top:c,right:l+u,bottom:c+p,left:l,x:l,y:c}}function V(e){var t=T(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function U(e){return e?(e.nodeName||"").toLowerCase():null}function q(e){return((D(e)?e.ownerDocument:e.document)||window.document).documentElement}function $(e){return I(q(e)).left+V(e).scrollLeft}function G(e){return T(e).getComputedStyle(e)}function X(e){var t=G(e),r=t.overflow,n=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(r+o+n)}function J(e,t,r){void 0===r&&(r=!1);var n,o,i=N(t),a=N(t)&&function(e){var t=e.getBoundingClientRect(),r=F(t.width)/e.offsetWidth||1,n=F(t.height)/e.offsetHeight||1;return 1!==r||1!==n}(t),s=q(t),l=I(e,a,r),c={scrollLeft:0,scrollTop:0},u={x:0,y:0};return(i||!i&&!r)&&(("body"!==U(t)||X(s))&&(c=(n=t)!==T(n)&&N(n)?{scrollLeft:(o=n).scrollLeft,scrollTop:o.scrollTop}:V(n)),N(t)?((u=I(t,!0)).x+=t.clientLeft,u.y+=t.clientTop):s&&(u.x=$(s))),{x:l.left+c.scrollLeft-u.x,y:l.top+c.scrollTop-u.y,width:l.width,height:l.height}}function Y(e){var t=I(e),r=e.offsetWidth,n=e.offsetHeight;return Math.abs(t.width-r)<=1&&(r=t.width),Math.abs(t.height-n)<=1&&(n=t.height),{x:e.offsetLeft,y:e.offsetTop,width:r,height:n}}function K(e){return"html"===U(e)?e:e.assignedSlot||e.parentNode||(R(e)?e.host:null)||q(e)}function Q(e){return["html","body","#document"].indexOf(U(e))>=0?e.ownerDocument.body:N(e)&&X(e)?e:Q(K(e))}function ee(e,t){var r;void 0===t&&(t=[]);var n=Q(e),o=n===(null==(r=e.ownerDocument)?void 0:r.body),i=T(n),a=o?[i].concat(i.visualViewport||[],X(n)?n:[]):n,s=t.concat(a);return o?s:s.concat(ee(K(a)))}function te(e){return["table","td","th"].indexOf(U(e))>=0}function re(e){return N(e)&&"fixed"!==G(e).position?e.offsetParent:null}function ne(e){for(var t=T(e),r=re(e);r&&te(r)&&"static"===G(r).position;)r=re(r);return r&&("html"===U(r)||"body"===U(r)&&"static"===G(r).position)?t:r||function(e){var t=/firefox/i.test(W());if(/Trident/i.test(W())&&N(e)&&"fixed"===G(e).position)return null;var r=K(e);for(R(r)&&(r=r.host);N(r)&&["html","body"].indexOf(U(r))<0;){var n=G(r);if("none"!==n.transform||"none"!==n.perspective||"paint"===n.contain||-1!==["transform","perspective"].indexOf(n.willChange)||t&&"filter"===n.willChange||t&&n.filter&&"none"!==n.filter)return r;r=r.parentNode}return null}(e)||t}var oe="top",ie="bottom",ae="right",se="left",le="auto",ce=[oe,ie,ae,se],ue="start",pe="end",de="viewport",fe="popper",he=ce.reduce(function(e,t){return e.concat([t+"-"+ue,t+"-"+pe])},[]),ve=[].concat(ce,[le]).reduce(function(e,t){return e.concat([t,t+"-"+ue,t+"-"+pe])},[]),ye=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function me(e){var t=new Map,r=new Set,n=[];function o(e){r.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach(function(e){if(!r.has(e)){var n=t.get(e);n&&o(n)}}),n.push(e)}return e.forEach(function(e){t.set(e.name,e)}),e.forEach(function(e){r.has(e.name)||o(e)}),n}var be={placement:"bottom",modifiers:[],strategy:"absolute"};function ge(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return!t.some(function(e){return!(e&&"function"==typeof e.getBoundingClientRect)})}function xe(e){void 0===e&&(e={});var t=e,r=t.defaultModifiers,n=void 0===r?[]:r,o=t.defaultOptions,i=void 0===o?be:o;return function(e,t,r){void 0===r&&(r=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},be,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},l=[],c=!1,u={state:s,setOptions:function(r){var o="function"==typeof r?r(s.options):r;p(),s.options=Object.assign({},i,s.options,o),s.scrollParents={reference:D(e)?ee(e):e.contextElement?ee(e.contextElement):[],popper:ee(t)};var a,c,d=function(e){var t=me(e);return ye.reduce(function(e,r){return e.concat(t.filter(function(e){return e.phase===r}))},[])}((a=[].concat(n,s.options.modifiers),c=a.reduce(function(e,t){var r=e[t.name];return e[t.name]=r?Object.assign({},r,t,{options:Object.assign({},r.options,t.options),data:Object.assign({},r.data,t.data)}):t,e},{}),Object.keys(c).map(function(e){return c[e]})));return s.orderedModifiers=d.filter(function(e){return e.enabled}),s.orderedModifiers.forEach(function(e){var t=e.name,r=e.options,n=void 0===r?{}:r,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:u,options:n}),a=function(){};l.push(i||a)}}),u.update()},forceUpdate:function(){if(!c){var e=s.elements,t=e.reference,r=e.popper;if(ge(t,r)){s.rects={reference:J(t,ne(r),"fixed"===s.options.strategy),popper:Y(r)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach(function(e){return s.modifiersData[e.name]=Object.assign({},e.data)});for(var n=0;n<s.orderedModifiers.length;n++)if(!0!==s.reset){var o=s.orderedModifiers[n],i=o.fn,a=o.options,l=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:l,name:p,instance:u})||s)}else s.reset=!1,n=-1}}},update:(o=function(){return new Promise(function(e){u.forceUpdate(),e(s)})},function(){return a||(a=new Promise(function(e){Promise.resolve().then(function(){a=void 0,e(o())})})),a}),destroy:function(){p(),c=!0}};if(!ge(e,t))return u;function p(){l.forEach(function(e){return e()}),l=[]}return u.setOptions(r).then(function(e){!c&&r.onFirstUpdate&&r.onFirstUpdate(e)}),u}}var _e={passive:!0};function we(e){return e.split("-")[0]}function je(e){return e.split("-")[1]}function Le(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function Oe(e){var t,r=e.reference,n=e.element,o=e.placement,i=o?we(o):null,a=o?je(o):null,s=r.x+r.width/2-n.width/2,l=r.y+r.height/2-n.height/2;switch(i){case oe:t={x:s,y:r.y-n.height};break;case ie:t={x:s,y:r.y+r.height};break;case ae:t={x:r.x+r.width,y:l};break;case se:t={x:r.x-n.width,y:l};break;default:t={x:r.x,y:r.y}}var c=i?Le(i):null;if(null!=c){var u="y"===c?"height":"width";switch(a){case ue:t[c]=t[c]-(r[u]/2-n[u]/2);break;case pe:t[c]=t[c]+(r[u]/2-n[u]/2)}}return t}var Ae={top:"auto",right:"auto",bottom:"auto",left:"auto"};function ke(e){var t,r=e.popper,n=e.popperRect,o=e.placement,i=e.variation,a=e.offsets,s=e.position,l=e.gpuAcceleration,c=e.adaptive,u=e.roundOffsets,p=e.isFixed,d=a.x,f=void 0===d?0:d,h=a.y,v=void 0===h?0:h,y="function"==typeof u?u({x:f,y:v}):{x:f,y:v};f=y.x,v=y.y;var m=a.hasOwnProperty("x"),b=a.hasOwnProperty("y"),g=se,x=oe,_=window;if(c){var w=ne(r),j="clientHeight",L="clientWidth";if(w===T(r)&&"static"!==G(w=q(r)).position&&"absolute"===s&&(j="scrollHeight",L="scrollWidth"),o===oe||(o===se||o===ae)&&i===pe)x=ie,v-=(p&&w===_&&_.visualViewport?_.visualViewport.height:w[j])-n.height,v*=l?1:-1;if(o===se||(o===oe||o===ie)&&i===pe)g=ae,f-=(p&&w===_&&_.visualViewport?_.visualViewport.width:w[L])-n.width,f*=l?1:-1}var O,A=Object.assign({position:s},c&&Ae),k=!0===u?function(e,t){var r=e.x,n=e.y,o=t.devicePixelRatio||1;return{x:F(r*o)/o||0,y:F(n*o)/o||0}}({x:f,y:v},T(r)):{x:f,y:v};return f=k.x,v=k.y,l?Object.assign({},A,((O={})[x]=b?"0":"",O[g]=m?"0":"",O.transform=(_.devicePixelRatio||1)<=1?"translate("+f+"px, "+v+"px)":"translate3d("+f+"px, "+v+"px, 0)",O)):Object.assign({},A,((t={})[x]=b?v+"px":"",t[g]=m?f+"px":"",t.transform="",t))}const Pe={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach(function(e){var r=t.styles[e]||{},n=t.attributes[e]||{},o=t.elements[e];N(o)&&U(o)&&(Object.assign(o.style,r),Object.keys(n).forEach(function(e){var t=n[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)}))})},effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow),function(){Object.keys(t.elements).forEach(function(e){var n=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:r[e]).reduce(function(e,t){return e[t]="",e},{});N(n)&&U(n)&&(Object.assign(n.style,i),Object.keys(o).forEach(function(e){n.removeAttribute(e)}))})}},requires:["computeStyles"]};const Ce={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.offset,i=void 0===o?[0,0]:o,a=ve.reduce(function(e,r){return e[r]=function(e,t,r){var n=we(e),o=[se,oe].indexOf(n)>=0?-1:1,i="function"==typeof r?r(Object.assign({},t,{placement:e})):r,a=i[0],s=i[1];return a=a||0,s=(s||0)*o,[se,ae].indexOf(n)>=0?{x:s,y:a}:{x:a,y:s}}(r,t.rects,i),e},{}),s=a[t.placement],l=s.x,c=s.y;null!=t.modifiersData.popperOffsets&&(t.modifiersData.popperOffsets.x+=l,t.modifiersData.popperOffsets.y+=c),t.modifiersData[n]=a}};var Se={left:"right",right:"left",bottom:"top",top:"bottom"};function Me(e){return e.replace(/left|right|bottom|top/g,function(e){return Se[e]})}var Ee={start:"end",end:"start"};function Be(e){return e.replace(/start|end/g,function(e){return Ee[e]})}function Te(e,t){var r=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(r&&R(r)){var n=t;do{if(n&&e.isSameNode(n))return!0;n=n.parentNode||n.host}while(n)}return!1}function De(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function Ne(e,t,r){return t===de?De(function(e,t){var r=T(e),n=q(e),o=r.visualViewport,i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;var c=H();(c||!c&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s+$(e),y:l}}(e,r)):D(t)?function(e,t){var r=I(e,!1,"fixed"===t);return r.top=r.top+e.clientTop,r.left=r.left+e.clientLeft,r.bottom=r.top+e.clientHeight,r.right=r.left+e.clientWidth,r.width=e.clientWidth,r.height=e.clientHeight,r.x=r.left,r.y=r.top,r}(t,r):De(function(e){var t,r=q(e),n=V(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=Z(r.scrollWidth,r.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=Z(r.scrollHeight,r.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-n.scrollLeft+$(e),l=-n.scrollTop;return"rtl"===G(o||r).direction&&(s+=Z(r.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:l}}(q(e)))}function Re(e,t,r,n){var o="clippingParents"===t?function(e){var t=ee(K(e)),r=["absolute","fixed"].indexOf(G(e).position)>=0&&N(e)?ne(e):e;return D(r)?t.filter(function(e){return D(e)&&Te(e,r)&&"body"!==U(e)}):[]}(e):[].concat(t),i=[].concat(o,[r]),a=i[0],s=i.reduce(function(t,r){var o=Ne(e,r,n);return t.top=Z(o.top,t.top),t.right=z(o.right,t.right),t.bottom=z(o.bottom,t.bottom),t.left=Z(o.left,t.left),t},Ne(e,a,n));return s.width=s.right-s.left,s.height=s.bottom-s.top,s.x=s.left,s.y=s.top,s}function Ze(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function ze(e,t){return t.reduce(function(t,r){return t[r]=e,t},{})}function Fe(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=void 0===n?e.placement:n,i=r.strategy,a=void 0===i?e.strategy:i,s=r.boundary,l=void 0===s?"clippingParents":s,c=r.rootBoundary,u=void 0===c?de:c,p=r.elementContext,d=void 0===p?fe:p,f=r.altBoundary,h=void 0!==f&&f,v=r.padding,y=void 0===v?0:v,m=Ze("number"!=typeof y?y:ze(y,ce)),b=d===fe?"reference":fe,g=e.rects.popper,x=e.elements[h?b:d],_=Re(D(x)?x:x.contextElement||q(e.elements.popper),l,u,a),w=I(e.elements.reference),j=Oe({reference:w,element:g,strategy:"absolute",placement:o}),L=De(Object.assign({},g,j)),O=d===fe?L:w,A={top:_.top-O.top+m.top,bottom:O.bottom-_.bottom+m.bottom,left:_.left-O.left+m.left,right:O.right-_.right+m.right},k=e.modifiersData.offset;if(d===fe&&k){var P=k[o];Object.keys(A).forEach(function(e){var t=[ae,ie].indexOf(e)>=0?1:-1,r=[oe,ie].indexOf(e)>=0?"y":"x";A[e]+=P[r]*t})}return A}function We(e,t,r){return Z(e,z(t,r))}const He={name:"preventOverflow",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name,o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0!==a&&a,l=r.boundary,c=r.rootBoundary,u=r.altBoundary,p=r.padding,d=r.tether,f=void 0===d||d,h=r.tetherOffset,v=void 0===h?0:h,y=Fe(t,{boundary:l,rootBoundary:c,padding:p,altBoundary:u}),m=we(t.placement),b=je(t.placement),g=!b,x=Le(m),_="x"===x?"y":"x",w=t.modifiersData.popperOffsets,j=t.rects.reference,L=t.rects.popper,O="function"==typeof v?v(Object.assign({},t.rects,{placement:t.placement})):v,A="number"==typeof O?{mainAxis:O,altAxis:O}:Object.assign({mainAxis:0,altAxis:0},O),k=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,P={x:0,y:0};if(w){if(i){var C,S="y"===x?oe:se,M="y"===x?ie:ae,E="y"===x?"height":"width",B=w[x],T=B+y[S],D=B-y[M],N=f?-L[E]/2:0,R=b===ue?j[E]:L[E],F=b===ue?-L[E]:-j[E],W=t.elements.arrow,H=f&&W?Y(W):{width:0,height:0},I=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},V=I[S],U=I[M],q=We(0,j[E],H[E]),$=g?j[E]/2-N-q-V-A.mainAxis:R-q-V-A.mainAxis,G=g?-j[E]/2+N+q+U+A.mainAxis:F+q+U+A.mainAxis,X=t.elements.arrow&&ne(t.elements.arrow),J=X?"y"===x?X.clientTop||0:X.clientLeft||0:0,K=null!=(C=null==k?void 0:k[x])?C:0,Q=B+G-K,ee=We(f?z(T,B+$-K-J):T,B,f?Z(D,Q):D);w[x]=ee,P[x]=ee-B}if(s){var te,re="x"===x?oe:se,le="x"===x?ie:ae,ce=w[_],pe="y"===_?"height":"width",de=ce+y[re],fe=ce-y[le],he=-1!==[oe,se].indexOf(m),ve=null!=(te=null==k?void 0:k[_])?te:0,ye=he?de:ce-j[pe]-L[pe]-ve+A.altAxis,me=he?ce+j[pe]+L[pe]-ve-A.altAxis:fe,be=f&&he?function(e,t,r){var n=We(e,t,r);return n>r?r:n}(ye,ce,me):We(f?ye:de,ce,f?me:fe);w[_]=be,P[_]=be-ce}t.modifiersData[n]=P}},requiresIfExists:["offset"]};const Ie={name:"arrow",enabled:!0,phase:"main",fn:function(e){var t,r=e.state,n=e.name,o=e.options,i=r.elements.arrow,a=r.modifiersData.popperOffsets,s=we(r.placement),l=Le(s),c=[se,ae].indexOf(s)>=0?"height":"width";if(i&&a){var u=function(e,t){return Ze("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:ze(e,ce))}(o.padding,r),p=Y(i),d="y"===l?oe:se,f="y"===l?ie:ae,h=r.rects.reference[c]+r.rects.reference[l]-a[l]-r.rects.popper[c],v=a[l]-r.rects.reference[l],y=ne(i),m=y?"y"===l?y.clientHeight||0:y.clientWidth||0:0,b=h/2-v/2,g=u[d],x=m-p[c]-u[f],_=m/2-p[c]/2+b,w=We(g,_,x),j=l;r.modifiersData[n]=((t={})[j]=w,t.centerOffset=w-_,t)}},effect:function(e){var t=e.state,r=e.options.element,n=void 0===r?"[data-popper-arrow]":r;null!=n&&("string"!=typeof n||(n=t.elements.popper.querySelector(n)))&&Te(t.elements.popper,n)&&(t.elements.arrow=n)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function Ve(e,t,r){return void 0===r&&(r={x:0,y:0}),{top:e.top-t.height-r.y,right:e.right-t.width+r.x,bottom:e.bottom-t.height+r.y,left:e.left-t.width-r.x}}function Ue(e){return[oe,ae,ie,se].some(function(t){return e[t]>=0})}var qe=xe({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,r=e.instance,n=e.options,o=n.scroll,i=void 0===o||o,a=n.resize,s=void 0===a||a,l=T(t.elements.popper),c=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&c.forEach(function(e){e.addEventListener("scroll",r.update,_e)}),s&&l.addEventListener("resize",r.update,_e),function(){i&&c.forEach(function(e){e.removeEventListener("scroll",r.update,_e)}),s&&l.removeEventListener("resize",r.update,_e)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,r=e.name;t.modifiersData[r]=Oe({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,r=e.options,n=r.gpuAcceleration,o=void 0===n||n,i=r.adaptive,a=void 0===i||i,s=r.roundOffsets,l=void 0===s||s,c={placement:we(t.placement),variation:je(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o,isFixed:"fixed"===t.options.strategy};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,ke(Object.assign({},c,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:l})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,ke(Object.assign({},c,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:l})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},Pe,Ce,{name:"flip",enabled:!0,phase:"main",fn:function(e){var t=e.state,r=e.options,n=e.name;if(!t.modifiersData[n]._skip){for(var o=r.mainAxis,i=void 0===o||o,a=r.altAxis,s=void 0===a||a,l=r.fallbackPlacements,c=r.padding,u=r.boundary,p=r.rootBoundary,d=r.altBoundary,f=r.flipVariations,h=void 0===f||f,v=r.allowedAutoPlacements,y=t.options.placement,m=we(y),b=l||(m===y||!h?[Me(y)]:function(e){if(we(e)===le)return[];var t=Me(e);return[Be(e),t,Be(t)]}(y)),g=[y].concat(b).reduce(function(e,r){return e.concat(we(r)===le?function(e,t){void 0===t&&(t={});var r=t,n=r.placement,o=r.boundary,i=r.rootBoundary,a=r.padding,s=r.flipVariations,l=r.allowedAutoPlacements,c=void 0===l?ve:l,u=je(n),p=u?s?he:he.filter(function(e){return je(e)===u}):ce,d=p.filter(function(e){return c.indexOf(e)>=0});0===d.length&&(d=p);var f=d.reduce(function(t,r){return t[r]=Fe(e,{placement:r,boundary:o,rootBoundary:i,padding:a})[we(r)],t},{});return Object.keys(f).sort(function(e,t){return f[e]-f[t]})}(t,{placement:r,boundary:u,rootBoundary:p,padding:c,flipVariations:h,allowedAutoPlacements:v}):r)},[]),x=t.rects.reference,_=t.rects.popper,w=new Map,j=!0,L=g[0],O=0;O<g.length;O++){var A=g[O],k=we(A),P=je(A)===ue,C=[oe,ie].indexOf(k)>=0,S=C?"width":"height",M=Fe(t,{placement:A,boundary:u,rootBoundary:p,altBoundary:d,padding:c}),E=C?P?ae:se:P?ie:oe;x[S]>_[S]&&(E=Me(E));var B=Me(E),T=[];if(i&&T.push(M[k]<=0),s&&T.push(M[E]<=0,M[B]<=0),T.every(function(e){return e})){L=A,j=!1;break}w.set(A,T)}if(j)for(var D=function(e){var t=g.find(function(t){var r=w.get(t);if(r)return r.slice(0,e).every(function(e){return e})});if(t)return L=t,"break"},N=h?3:1;N>0;N--){if("break"===D(N))break}t.placement!==L&&(t.modifiersData[n]._skip=!0,t.placement=L,t.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},He,Ie,{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,r=e.name,n=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=Fe(t,{elementContext:"reference"}),s=Fe(t,{altBoundary:!0}),l=Ve(a,n),c=Ve(s,o,i),u=Ue(l),p=Ue(c);t.modifiersData[r]={referenceClippingOffsets:l,popperEscapeOffsets:c,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}}]}),$e="tippy-content",Ge="tippy-backdrop",Xe="tippy-arrow",Je="tippy-svg-arrow",Ye={passive:!0,capture:!0},Ke=function(){return document.body};function Qe(e,t,r){if(Array.isArray(e)){var n=e[t];return null==n?Array.isArray(r)?r[t]:r:n}return e}function et(e,t){var r={}.toString.call(e);return 0===r.indexOf("[object")&&r.indexOf(t+"]")>-1}function tt(e,t){return"function"==typeof e?e.apply(void 0,t):e}function rt(e,t){return 0===t?e:function(n){clearTimeout(r),r=setTimeout(function(){e(n)},t)};var r}function nt(e){return[].concat(e)}function ot(e,t){-1===e.indexOf(t)&&e.push(t)}function it(e){return e.split("-")[0]}function at(e){return[].slice.call(e)}function st(e){return Object.keys(e).reduce(function(t,r){return void 0!==e[r]&&(t[r]=e[r]),t},{})}function lt(){return document.createElement("div")}function ct(e){return["Element","Fragment"].some(function(t){return et(e,t)})}function ut(e){return et(e,"MouseEvent")}function pt(e){return!(!e||!e._tippy||e._tippy.reference!==e)}function dt(e){return ct(e)?[e]:function(e){return et(e,"NodeList")}(e)?at(e):Array.isArray(e)?e:at(document.querySelectorAll(e))}function ft(e,t){e.forEach(function(e){e&&(e.style.transitionDuration=t+"ms")})}function ht(e,t){e.forEach(function(e){e&&e.setAttribute("data-state",t)})}function vt(e){var t,r=nt(e)[0];return null!=r&&null!=(t=r.ownerDocument)&&t.body?r.ownerDocument:document}function yt(e,t,r){var n=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach(function(t){e[n](t,r)})}function mt(e,t){for(var r=t;r;){var n;if(e.contains(r))return!0;r=null==r.getRootNode||null==(n=r.getRootNode())?void 0:n.host}return!1}var bt={isTouch:!1},gt=0;function xt(){bt.isTouch||(bt.isTouch=!0,window.performance&&document.addEventListener("mousemove",_t))}function _t(){var e=performance.now();e-gt<20&&(bt.isTouch=!1,document.removeEventListener("mousemove",_t)),gt=e}function wt(){var e=document.activeElement;if(pt(e)){var t=e._tippy;e.blur&&!t.state.isVisible&&e.blur()}}var jt=!!("undefined"!=typeof window&&"undefined"!=typeof document)&&!!window.msCrypto;var Lt={animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},Ot=Object.assign({appendTo:Ke,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},Lt,{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),At=Object.keys(Ot);function kt(e){var t=(e.plugins||[]).reduce(function(t,r){var n,o=r.name,i=r.defaultValue;o&&(t[o]=void 0!==e[o]?e[o]:null!=(n=Ot[o])?n:i);return t},{});return Object.assign({},e,t)}function Pt(e,t){var r=Object.assign({},t,{content:tt(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(kt(Object.assign({},Ot,{plugins:t}))):At).reduce(function(t,r){var n=(e.getAttribute("data-tippy-"+r)||"").trim();if(!n)return t;if("content"===r)t[r]=n;else try{t[r]=JSON.parse(n)}catch(e){t[r]=n}return t},{})}(e,t.plugins));return r.aria=Object.assign({},Ot.aria,r.aria),r.aria={expanded:"auto"===r.aria.expanded?t.interactive:r.aria.expanded,content:"auto"===r.aria.content?t.interactive?null:"describedby":r.aria.content},r}function Ct(e,t){e.innerHTML=t}function St(e){var t=lt();return!0===e?t.className=Xe:(t.className=Je,ct(e)?t.appendChild(e):Ct(t,e)),t}function Mt(e,t){ct(t.content)?(Ct(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Ct(e,t.content):e.textContent=t.content)}function Et(e){var t=e.firstElementChild,r=at(t.children);return{box:t,content:r.find(function(e){return e.classList.contains($e)}),arrow:r.find(function(e){return e.classList.contains(Xe)||e.classList.contains(Je)}),backdrop:r.find(function(e){return e.classList.contains(Ge)})}}function Bt(e){var t=lt(),r=lt();r.className="tippy-box",r.setAttribute("data-state","hidden"),r.setAttribute("tabindex","-1");var n=lt();function o(r,n){var o=Et(t),i=o.box,a=o.content,s=o.arrow;n.theme?i.setAttribute("data-theme",n.theme):i.removeAttribute("data-theme"),"string"==typeof n.animation?i.setAttribute("data-animation",n.animation):i.removeAttribute("data-animation"),n.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof n.maxWidth?n.maxWidth+"px":n.maxWidth,n.role?i.setAttribute("role",n.role):i.removeAttribute("role"),r.content===n.content&&r.allowHTML===n.allowHTML||Mt(a,e.props),n.arrow?s?r.arrow!==n.arrow&&(i.removeChild(s),i.appendChild(St(n.arrow))):i.appendChild(St(n.arrow)):s&&i.removeChild(s)}return n.className=$e,n.setAttribute("data-state","hidden"),Mt(n,e.props),t.appendChild(r),r.appendChild(n),o(e.props,e.props),{popper:t,onUpdate:o}}Bt.$$tippy=!0;var Tt=1,Dt=[],Nt=[];function Rt(e,t){var r,n,o,i,a,s,l,c,u=Pt(e,Object.assign({},Ot,kt(st(t)))),p=!1,d=!1,f=!1,h=!1,v=[],y=rt($,u.interactiveDebounce),m=Tt++,b=(c=u.plugins).filter(function(e,t){return c.indexOf(e)===t}),g={id:m,reference:e,popper:lt(),popperInstance:null,props:u,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:b,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(n),cancelAnimationFrame(o)},setProps:function(t){0;if(g.state.isDestroyed)return;B("onBeforeUpdate",[g,t]),U();var r=g.props,n=Pt(e,Object.assign({},r,st(t),{ignoreAttributes:!0}));g.props=n,V(),r.interactiveDebounce!==n.interactiveDebounce&&(N(),y=rt($,n.interactiveDebounce));r.triggerTarget&&!n.triggerTarget?nt(r.triggerTarget).forEach(function(e){e.removeAttribute("aria-expanded")}):n.triggerTarget&&e.removeAttribute("aria-expanded");D(),E(),w&&w(r,n);g.popperInstance&&(Y(),Q().forEach(function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)}));B("onAfterUpdate",[g,t])},setContent:function(e){g.setProps({content:e})},show:function(){0;var e=g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=bt.isTouch&&!g.props.touch,o=Qe(g.props.duration,0,Ot.duration);if(e||t||r||n)return;if(P().hasAttribute("disabled"))return;if(B("onShow",[g],!1),!1===g.props.onShow(g))return;g.state.isVisible=!0,k()&&(_.style.visibility="visible");E(),F(),g.state.isMounted||(_.style.transition="none");if(k()){var i=S();ft([i.box,i.content],0)}s=function(){var e;if(g.state.isVisible&&!h){if(h=!0,_.offsetHeight,_.style.transition=g.props.moveTransition,k()&&g.props.animation){var t=S(),r=t.box,n=t.content;ft([r,n],o),ht([r,n],"visible")}T(),D(),ot(Nt,g),null==(e=g.popperInstance)||e.forceUpdate(),B("onMount",[g]),g.props.animation&&k()&&function(e,t){H(e,t)}(o,function(){g.state.isShown=!0,B("onShown",[g])})}},function(){var e,t=g.props.appendTo,r=P();e=g.props.interactive&&t===Ke||"parent"===t?r.parentNode:tt(t,[r]);e.contains(_)||e.appendChild(_);g.state.isMounted=!0,Y(),!1}()},hide:function(){0;var e=!g.state.isVisible,t=g.state.isDestroyed,r=!g.state.isEnabled,n=Qe(g.props.duration,1,Ot.duration);if(e||t||r)return;if(B("onHide",[g],!1),!1===g.props.onHide(g))return;g.state.isVisible=!1,g.state.isShown=!1,h=!1,p=!1,k()&&(_.style.visibility="hidden");if(N(),W(),E(!0),k()){var o=S(),i=o.box,a=o.content;g.props.animation&&(ft([i,a],n),ht([i,a],"hidden"))}T(),D(),g.props.animation?k()&&function(e,t){H(e,function(){!g.state.isVisible&&_.parentNode&&_.parentNode.contains(_)&&t()})}(n,g.unmount):g.unmount()},hideWithInteractivity:function(e){0;C().addEventListener("mousemove",y),ot(Dt,y),y(e)},enable:function(){g.state.isEnabled=!0},disable:function(){g.hide(),g.state.isEnabled=!1},unmount:function(){0;g.state.isVisible&&g.hide();if(!g.state.isMounted)return;K(),Q().forEach(function(e){e._tippy.unmount()}),_.parentNode&&_.parentNode.removeChild(_);Nt=Nt.filter(function(e){return e!==g}),g.state.isMounted=!1,B("onHidden",[g])},destroy:function(){0;if(g.state.isDestroyed)return;g.clearDelayTimeouts(),g.unmount(),U(),delete e._tippy,g.state.isDestroyed=!0,B("onDestroy",[g])}};if(!u.render)return g;var x=u.render(g),_=x.popper,w=x.onUpdate;_.setAttribute("data-tippy-root",""),_.id="tippy-"+g.id,g.popper=_,e._tippy=g,_._tippy=g;var j=b.map(function(e){return e.fn(g)}),L=e.hasAttribute("aria-expanded");return V(),D(),E(),B("onCreate",[g]),u.showOnCreate&&ee(),_.addEventListener("mouseenter",function(){g.props.interactive&&g.state.isVisible&&g.clearDelayTimeouts()}),_.addEventListener("mouseleave",function(){g.props.interactive&&g.props.trigger.indexOf("mouseenter")>=0&&C().addEventListener("mousemove",y)}),g;function O(){var e=g.props.touch;return Array.isArray(e)?e:[e,0]}function A(){return"hold"===O()[0]}function k(){var e;return!(null==(e=g.props.render)||!e.$$tippy)}function P(){return l||e}function C(){var e=P().parentNode;return e?vt(e):document}function S(){return Et(_)}function M(e){return g.state.isMounted&&!g.state.isVisible||bt.isTouch||i&&"focus"===i.type?0:Qe(g.props.delay,e?0:1,Ot.delay)}function E(e){void 0===e&&(e=!1),_.style.pointerEvents=g.props.interactive&&!e?"":"none",_.style.zIndex=""+g.props.zIndex}function B(e,t,r){var n;(void 0===r&&(r=!0),j.forEach(function(r){r[e]&&r[e].apply(r,t)}),r)&&(n=g.props)[e].apply(n,t)}function T(){var t=g.props.aria;if(t.content){var r="aria-"+t.content,n=_.id;nt(g.props.triggerTarget||e).forEach(function(e){var t=e.getAttribute(r);if(g.state.isVisible)e.setAttribute(r,t?t+" "+n:n);else{var o=t&&t.replace(n,"").trim();o?e.setAttribute(r,o):e.removeAttribute(r)}})}}function D(){!L&&g.props.aria.expanded&&nt(g.props.triggerTarget||e).forEach(function(e){g.props.interactive?e.setAttribute("aria-expanded",g.state.isVisible&&e===P()?"true":"false"):e.removeAttribute("aria-expanded")})}function N(){C().removeEventListener("mousemove",y),Dt=Dt.filter(function(e){return e!==y})}function R(t){if(!bt.isTouch||!f&&"mousedown"!==t.type){var r=t.composedPath&&t.composedPath()[0]||t.target;if(!g.props.interactive||!mt(_,r)){if(nt(g.props.triggerTarget||e).some(function(e){return mt(e,r)})){if(bt.isTouch)return;if(g.state.isVisible&&g.props.trigger.indexOf("click")>=0)return}else B("onClickOutside",[g,t]);!0===g.props.hideOnClick&&(g.clearDelayTimeouts(),g.hide(),d=!0,setTimeout(function(){d=!1}),g.state.isMounted||W())}}}function Z(){f=!0}function z(){f=!1}function F(){var e=C();e.addEventListener("mousedown",R,!0),e.addEventListener("touchend",R,Ye),e.addEventListener("touchstart",z,Ye),e.addEventListener("touchmove",Z,Ye)}function W(){var e=C();e.removeEventListener("mousedown",R,!0),e.removeEventListener("touchend",R,Ye),e.removeEventListener("touchstart",z,Ye),e.removeEventListener("touchmove",Z,Ye)}function H(e,t){var r=S().box;function n(e){e.target===r&&(yt(r,"remove",n),t())}if(0===e)return t();yt(r,"remove",a),yt(r,"add",n),a=n}function I(t,r,n){void 0===n&&(n=!1),nt(g.props.triggerTarget||e).forEach(function(e){e.addEventListener(t,r,n),v.push({node:e,eventType:t,handler:r,options:n})})}function V(){var e;A()&&(I("touchstart",q,{passive:!0}),I("touchend",G,{passive:!0})),(e=g.props.trigger,e.split(/\s+/).filter(Boolean)).forEach(function(e){if("manual"!==e)switch(I(e,q),e){case"mouseenter":I("mouseleave",G);break;case"focus":I(jt?"focusout":"blur",X);break;case"focusin":I("focusout",X)}})}function U(){v.forEach(function(e){var t=e.node,r=e.eventType,n=e.handler,o=e.options;t.removeEventListener(r,n,o)}),v=[]}function q(e){var t,r=!1;if(g.state.isEnabled&&!J(e)&&!d){var n="focus"===(null==(t=i)?void 0:t.type);i=e,l=e.currentTarget,D(),!g.state.isVisible&&ut(e)&&Dt.forEach(function(t){return t(e)}),"click"===e.type&&(g.props.trigger.indexOf("mouseenter")<0||p)&&!1!==g.props.hideOnClick&&g.state.isVisible?r=!0:ee(e),"click"===e.type&&(p=!r),r&&!n&&te(e)}}function $(e){var t=e.target,r=P().contains(t)||_.contains(t);if("mousemove"!==e.type||!r){var n=Q().concat(_).map(function(e){var t,r=null==(t=e._tippy.popperInstance)?void 0:t.state;return r?{popperRect:e.getBoundingClientRect(),popperState:r,props:u}:null}).filter(Boolean);(function(e,t){var r=t.clientX,n=t.clientY;return e.every(function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=it(o.placement),s=o.modifiersData.offset;if(!s)return!0;var l="bottom"===a?s.top.y:0,c="top"===a?s.bottom.y:0,u="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-n+l>i,f=n-t.bottom-c>i,h=t.left-r+u>i,v=r-t.right-p>i;return d||f||h||v})})(n,e)&&(N(),te(e))}}function G(e){J(e)||g.props.trigger.indexOf("click")>=0&&p||(g.props.interactive?g.hideWithInteractivity(e):te(e))}function X(e){g.props.trigger.indexOf("focusin")<0&&e.target!==P()||g.props.interactive&&e.relatedTarget&&_.contains(e.relatedTarget)||te(e)}function J(e){return!!bt.isTouch&&A()!==e.type.indexOf("touch")>=0}function Y(){K();var t=g.props,r=t.popperOptions,n=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,l=k()?Et(_).arrow:null,c=i?{getBoundingClientRect:i,contextElement:i.contextElement||P()}:e,u={name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(k()){var r=S().box;["placement","reference-hidden","escaped"].forEach(function(e){"placement"===e?r.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?r.setAttribute("data-"+e,""):r.removeAttribute("data-"+e)}),t.attributes.popper={}}}},p=[{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}},u];k()&&l&&p.push({name:"arrow",options:{element:l,padding:3}}),p.push.apply(p,(null==r?void 0:r.modifiers)||[]),g.popperInstance=qe(c,_,Object.assign({},r,{placement:n,onFirstUpdate:s,modifiers:p}))}function K(){g.popperInstance&&(g.popperInstance.destroy(),g.popperInstance=null)}function Q(){return at(_.querySelectorAll("[data-tippy-root]"))}function ee(e){g.clearDelayTimeouts(),e&&B("onTrigger",[g,e]),F();var t=M(!0),n=O(),o=n[0],i=n[1];bt.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout(function(){g.show()},t):g.show()}function te(e){if(g.clearDelayTimeouts(),B("onUntrigger",[g,e]),g.state.isVisible){if(!(g.props.trigger.indexOf("mouseenter")>=0&&g.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&p)){var t=M(!1);t?n=setTimeout(function(){g.state.isVisible&&g.hide()},t):o=requestAnimationFrame(function(){g.hide()})}}else W()}}function Zt(e,t){void 0===t&&(t={});var r=Ot.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",xt,Ye),window.addEventListener("blur",wt);var n=Object.assign({},t,{plugins:r}),o=dt(e).reduce(function(e,t){var r=t&&Rt(t,n);return r&&e.push(r),e},[]);return ct(e)?o[0]:o}Zt.defaultProps=Ot,Zt.setDefaultProps=function(e){Object.keys(e).forEach(function(t){Ot[t]=e[t]})},Zt.currentInput=bt;Object.assign({},Pe,{effect:function(e){var t=e.state,r={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,r.popper),t.styles=r,t.elements.arrow&&Object.assign(t.elements.arrow.style,r.arrow)}});Zt.setDefaultProps({render:Bt});const zt=Zt,Ft=({children:e,value:t})=>(0,c.jsxs)("div",{className:"colorpalette-color-label",children:[(0,c.jsx)("span",{children:e}),(0,c.jsx)("span",{className:"component-color-indicator","aria-label":`Color: ${t}`,style:{background:t}})]}),Wt=new(t())("_"),Ht=({attributes:e,setAttributes:t,colors:r})=>{const o=i()(e),u=Wt.object(o),[p,d]=(0,n.useState)(u.customSettings);e.transformation_crop||(e.transformation_crop="pad",e.transformation_background="rgb:FFFFFF"),"fill"===e.transformation_crop&&delete e.transformation_background;const f=(e,r)=>{const n={[r]:B(e)};t(n)},S=(e=>{const[t,r]=(0,n.useState)(null),o=(0,n.useCallback)(e=>r(e),[]);return(0,n.useEffect)(()=>{if(!t)return;const r=zt(t,{content:e});return()=>{r?.destroy()}},[t,e]),o})((0,a.__)("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"));return(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Layout","cloudinary"),children:h.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>{t({displayProps_mode:e.type,displayProps_columns:e.columns||1})},icon:r.icon,current:{type:e.displayProps_mode,columns:e.displayProps_columns||1},children:r.label},`${r.value.type}-${r.value.columns}-layout`))}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Color Palette","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(Ft,{value:e.themeProps_primary,children:(0,a.__)("Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_primary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_primary")}),(0,c.jsx)(Ft,{value:e.themeProps_onPrimary,children:(0,a.__)("On Primary","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_onPrimary,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_onPrimary")}),(0,c.jsx)(Ft,{value:e.themeProps_active,children:(0,a.__)("Active","cloudinary")}),(0,c.jsx)(l.ColorPalette,{value:e.themeProps_active,colors:r,disableCustomColors:!1,onChange:e=>f(e,"themeProps_active")})]}),"classic"===e.displayProps_mode&&(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Fade Transition","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.SelectControl,{value:e.transition,options:y,onChange:e=>t({transition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0})}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Main Viewer Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Aspect Ratio","cloudinary"),value:e.aspectRatio,options:v,onChange:e=>t({aspectRatio:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsxs)("p",{children:[(0,c.jsxs)("div",{className:"cld-ui-title",children:[(0,a.__)("Resize/Crop Mode","cloudinary"),(0,c.jsx)("span",{className:"dashicons dashicons-info cld-tooltip",ref:S})]}),(0,c.jsx)(s.ButtonGroup,{children:P.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.transformation_crop,onClick:()=>t({transformation_crop:r.value,transformation_background:null}),children:r.label},r.value+"-look-and-feel"))})]}),"pad"===e.transformation_crop&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Pad style","cloudinary"),value:e.transformation_background,options:C,onChange:e=>{t({transformation_background:e})},__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Navigation","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:m.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.navigation,onClick:()=>t({navigation:r.value}),children:r.label},r.value+"-navigation"))})}),(0,c.jsxs)("div",{style:{marginTop:"30px"},children:[(0,c.jsx)(s.ToggleControl,{label:(0,a.__)("Show Zoom","cloudinary"),checked:e.zoom,onChange:()=>t({zoom:!e.zoom}),__nextHasNoMarginBottom:!0}),e.zoom&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Type","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:b.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.zoomProps_type,onClick:()=>t({zoomProps_type:r.value}),children:r.label},r.value+"-zoom-type"))})}),"flyout"===e.zoomProps_type&&(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Zoom Viewer Position","cloudinary"),value:e.zoomProps_viewerPosition,options:g,onChange:e=>t({zoomProps_viewerPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),"popup"!==e.zoomProps_type&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Zoom Trigger","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:x.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.zoomProps_trigger,onClick:()=>t({zoomProps_trigger:r.value}),children:r.label},r.value+"-zoom-trigger"))})})]})]})]})]}),(0,c.jsxs)(s.PanelBody,{title:(0,a.__)("Carousel Parameters","cloudinary"),initialOpen:!1,children:[(0,c.jsx)("p",{children:(0,a.__)("Carousel Location","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:_.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.carouselLocation,onClick:()=>t({carouselLocation:r.value}),children:r.label},r.value+"-carousel-location"))})}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Carousel Offset","cloudinary"),value:e.carouselOffset,onChange:e=>t({carouselOffset:e}),min:0,max:100,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Carousel Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:w.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.carouselStyle,onClick:()=>t({carouselStyle:r.value}),children:r.label},r.value+"-carousel-style"))})}),"thumbnails"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Width","cloudinary"),value:e.thumbnailProps_width,onChange:e=>t({thumbnailProps_width:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Height","cloudinary"),value:e.thumbnailProps_height,onChange:e=>t({thumbnailProps_height:e}),min:5,max:300,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Navigation Button Shape","cloudinary")}),j.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({thumbnailProps_navigationShape:e}),icon:r.icon,current:e.thumbnailProps_navigationShape,children:r.label},r.value+"-navigation-button-shape")),(0,c.jsx)("p",{children:(0,a.__)("Selected Style","cloudinary")}),(0,c.jsx)("p",{children:(0,c.jsx)(s.ButtonGroup,{children:O.map(r=>(0,c.jsx)(s.Button,{variant:"secondary",isPressed:r.value===e.thumbnailProps_selectedStyle,onClick:()=>t({thumbnailProps_selectedStyle:r.value}),children:r.label},r.value+"-selected-style"))})}),(0,c.jsx)(s.SelectControl,{label:(0,a.__)("Selected Border Position","cloudinary"),value:e.thumbnailProps_selectedBorderPosition,options:A,onChange:e=>t({thumbnailProps_selectedBorderPosition:e}),__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)(s.RangeControl,{label:(0,a.__)("Selected Border Width","cloudinary"),value:e.thumbnailProps_selectedBorderWidth,onChange:e=>t({thumbnailProps_selectedBorderWidth:e}),min:0,max:10,__next40pxDefaultSize:!0,__nextHasNoMarginBottom:!0}),(0,c.jsx)("p",{children:(0,a.__)("Media Shape Icon","cloudinary")}),k.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({thumbnailProps_mediaSymbolShape:e}),icon:r.icon,current:e.thumbnailProps_mediaSymbolShape,children:r.label},r.value+"-media"))]}),"indicators"===e.carouselStyle&&(0,c.jsxs)(c.Fragment,{children:[(0,c.jsx)("p",{children:(0,a.__)("Indicators Shape","cloudinary")}),L.map(r=>(0,c.jsx)(E,{value:r.value,onChange:e=>t({indicatorProps_shape:e}),icon:r.icon,current:e.indicatorProps_shape,children:r.label},r.value+"-indicator"))]})]}),(0,c.jsx)(s.PanelBody,{title:(0,a.__)("Additional Settings","cloudinary"),initialOpen:!1,children:(0,c.jsx)(s.TextareaControl,{label:(0,a.__)("Custom Settings","cloudinary"),help:(0,a.__)("Provide a JSON string of the settings you want to add and/or override.","cloudinary"),value:p,onChange:e=>{let r={};d(e);try{r=JSON.parse(e)}catch(e){}if("object"==typeof r){const e={...u};e.customSettings=r,t({...u,...e})}},__nextHasNoMarginBottom:!0})})]})},{cloudName:It,mediaAssets:Vt,...Ut}=(e=>{const t={};return Object.keys(e).forEach(r=>{t[r]={type:typeof e[r],default:e[r]}}),t})(new(t())("_").dot(CLD_GALLERY_CONFIG)),qt={};Object.keys(Ut).forEach(e=>{qt[e]=Ut[e]?.default});const $t=e=>({cloudName:"demo",...e,mediaAssets:[{tag:"shoes_product_gallery_demo",mediaType:"image"}],container:".gallery-preview"}),Gt=document.querySelector("#cloudinary-settings-page form");void 0!==Gt&&Gt.addEventListener("submit",function(e){(!e.submitter.name||e.submitter.name&&"cld_submission"!==e.submitter.name)&&e.preventDefault()});const Xt=()=>{const[e,r]=(0,n.useState)(qt),o=CLD_THEME_COLORS.map(e=>({...e,color:B(e.color)})).filter(e=>0!==e.color.length);return(0,n.useEffect)(()=>{let r,n;const o=(e=>{const r=new(t())("_"),n=i()(e),{selectedImages:o,...a}=r.object(n,{});return a.mediaAssets=o,"classic"!==a?.displayProps?.mode?delete a.transition:delete a.displayProps.columns,"pad"!==a?.transformation_crop&&delete a.transformation_background,"pad"!==a?.transformation?.crop&&delete a.transformation.background,a?.themeProps?.primary&&(a.themeProps.primary=B(a?.themeProps?.primary)),a?.themeProps?.onPrimary&&(a.themeProps.onPrimary=B(a?.themeProps?.onPrimary)),a?.themeProps?.active&&(a.themeProps.active=B(a?.themeProps?.active)),a})(e),{customSettings:a,...s}=o;try{try{n=JSON.parse(a)}catch{n=a}r=cloudinary.galleryWidget($t({...s,...n}))}catch{r=cloudinary.galleryWidget($t(s))}r.render();const l=document.getElementById("gallery_settings_input");return l&&(l.value=JSON.stringify(o)),()=>r.destroy()}),(0,c.jsx)("div",{className:"cld-gallery-settings-container",children:(0,c.jsxs)("div",{className:"cld-gallery-settings",children:[(0,c.jsx)("div",{className:"interface-interface-skeleton__sidebar cld-gallery-settings__column",children:(0,c.jsx)("div",{className:"interface-complementary-area edit-post-sidebar",children:(0,c.jsx)("div",{className:"components-panel",children:(0,c.jsx)("div",{className:"block-editor-block-inspector",children:(0,c.jsx)(Ht,{attributes:e,setAttributes:t=>{r({...e,...t})},colors:o})})})})}),(0,c.jsx)("div",{className:"gallery-preview cld-gallery-settings__column"})]})})};(0,n.createRoot)(document.getElementById("app_gallery_gallery_config")).render((0,c.jsx)(Xt,{}))})()})();
//# sourceMappingURL=gallery.js.map