[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@18.119.167.62: ~ $
(()=>{var e,t={3643:function(e){e.exports=function(){"use strict";function e(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function t(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function n(n){for(var o=1;o<arguments.length;o++){var a=null!=arguments[o]?arguments[o]:{};o%2?t(Object(a),!0).forEach((function(t){e(n,t,a[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(n,Object.getOwnPropertyDescriptors(a)):t(Object(a)).forEach((function(e){Object.defineProperty(n,e,Object.getOwnPropertyDescriptor(a,e))}))}return n}function o(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e)){var n=[],o=!0,a=!1,r=void 0;try{for(var l,i=e[Symbol.iterator]();!(o=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){a=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw r}}return n}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance")}()}function a(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}function r(e){var t,n="algoliasearch-client-js-".concat(e.key),a=function(){return void 0===t&&(t=e.localStorage||window.localStorage),t},r=function(){return JSON.parse(a().getItem(n)||"{}")},l=function(e){a().setItem(n,JSON.stringify(e))},i=function(){var t=e.timeToLive?1e3*e.timeToLive:null,n=r(),a=Object.fromEntries(Object.entries(n).filter((function(e){return void 0!==o(e,2)[1].timestamp})));if(l(a),t){var i=Object.fromEntries(Object.entries(a).filter((function(e){var n=o(e,2)[1],a=(new Date).getTime();return!(n.timestamp+t<a)})));l(i)}};return{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return Promise.resolve().then((function(){i();var t=JSON.stringify(e);return r()[t]})).then((function(e){return Promise.all([e?e.value:t(),void 0!==e])})).then((function(e){var t=o(e,2),a=t[0],r=t[1];return Promise.all([a,r||n.miss(a)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve().then((function(){var o=r();return o[JSON.stringify(e)]={timestamp:(new Date).getTime(),value:t},a().setItem(n,JSON.stringify(o)),t}))},delete:function(e){return Promise.resolve().then((function(){var t=r();delete t[JSON.stringify(e)],a().setItem(n,JSON.stringify(t))}))},clear:function(){return Promise.resolve().then((function(){a().removeItem(n)}))}}}function l(e){var t=a(e.caches),n=t.shift();return void 0===n?{get:function(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return t().then((function(e){return Promise.all([e,n.miss(e)])})).then((function(e){return o(e,1)[0]}))},set:function(e,t){return Promise.resolve(t)},delete:function(e){return Promise.resolve()},clear:function(){return Promise.resolve()}}:{get:function(e,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}};return n.get(e,o,a).catch((function(){return l({caches:t}).get(e,o,a)}))},set:function(e,o){return n.set(e,o).catch((function(){return l({caches:t}).set(e,o)}))},delete:function(e){return n.delete(e).catch((function(){return l({caches:t}).delete(e)}))},clear:function(){return n.clear().catch((function(){return l({caches:t}).clear()}))}}}function i(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{serializable:!0},t={};return{get:function(n,o){var a=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{miss:function(){return Promise.resolve()}},r=JSON.stringify(n);if(r in t)return Promise.resolve(e.serializable?JSON.parse(t[r]):t[r]);var l=o(),i=a&&a.miss||function(){return Promise.resolve()};return l.then((function(e){return i(e)})).then((function(){return l}))},set:function(n,o){return t[JSON.stringify(n)]=e.serializable?JSON.stringify(o):o,Promise.resolve(o)},delete:function(e){return delete t[JSON.stringify(e)],Promise.resolve()},clear:function(){return t={},Promise.resolve()}}}function s(e){for(var t=e.length-1;t>0;t--){var n=Math.floor(Math.random()*(t+1)),o=e[t];e[t]=e[n],e[n]=o}return e}function c(e,t){return t?(Object.keys(t).forEach((function(n){e[n]=t[n](e)})),e):e}function u(e){for(var t=arguments.length,n=new Array(t>1?t-1:0),o=1;o<t;o++)n[o-1]=arguments[o];var a=0;return e.replace(/%s/g,(function(){return encodeURIComponent(n[a++])}))}var d=0,p=1;function m(e,t){var n=e||{},o=n.data||{};return Object.keys(n).forEach((function(e){-1===["timeout","headers","queryParameters","data","cacheable"].indexOf(e)&&(o[e]=n[e])})),{data:Object.entries(o).length>0?o:void 0,timeout:n.timeout||t,headers:n.headers||{},queryParameters:n.queryParameters||{},cacheable:n.cacheable}}var g={Read:1,Write:2,Any:3};function h(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:1;return n(n({},e),{},{status:t,lastUpdate:Date.now()})}function b(e){return"string"==typeof e?{protocol:"https",url:e,accept:g.Any}:{protocol:e.protocol||"https",url:e.url,accept:e.accept||g.Any}}var f="GET",v="POST";function y(e,t,o,r){var l=[],i=function(e,t){if(e.method!==f&&(void 0!==e.data||void 0!==t.data)){var o=Array.isArray(e.data)?e.data:n(n({},e.data),t.data);return JSON.stringify(o)}}(o,r),s=function(e,t){var o=n(n({},e.headers),t.headers),a={};return Object.keys(o).forEach((function(e){var t=o[e];a[e.toLowerCase()]=t})),a}(e,r),c=o.method,u=o.method!==f?{}:n(n({},o.data),r.data),d=n(n(n({"x-algolia-agent":e.userAgent.value},e.queryParameters),u),r.queryParameters),p=0,m=function t(n,a){var u=n.pop();if(void 0===u)throw{name:"RetryError",message:"Unreachable hosts - your application id may be incorrect. If the error persists, contact support@algolia.com.",transporterStackTrace:_(l)};var m={data:i,headers:s,method:c,url:E(u,o.path,d),connectTimeout:a(p,e.timeouts.connect),responseTimeout:a(p,r.timeout)},g=function(e){var t={request:m,response:e,host:u,triesLeft:n.length};return l.push(t),t},b={onSuccess:function(e){return function(e){try{return JSON.parse(e.content)}catch(t){throw function(e,t){return{name:"DeserializationError",message:e,response:t}}(t.message,e)}}(e)},onRetry:function(o){var r=g(o);return o.isTimedOut&&p++,Promise.all([e.logger.info("Retryable failure",S(r)),e.hostsCache.set(u,h(u,o.isTimedOut?3:2))]).then((function(){return t(n,a)}))},onFail:function(e){throw g(e),function(e,t){var n=e.content,o=e.status,a=n;try{a=JSON.parse(n).message}catch(e){}return function(e,t,n){return{name:"ApiError",message:e,status:t,transporterStackTrace:n}}(a,o,t)}(e,_(l))}};return e.requester.send(m).then((function(e){return function(e,t){return function(e){var t=e.status;return e.isTimedOut||function(e){var t=e.isTimedOut,n=e.status;return!t&&!~~n}(e)||2!=~~(t/100)&&4!=~~(t/100)}(e)?t.onRetry(e):2==~~(e.status/100)?t.onSuccess(e):t.onFail(e)}(e,b)}))};return function(e,t){return Promise.all(t.map((function(t){return e.get(t,(function(){return Promise.resolve(h(t))}))}))).then((function(e){var n=e.filter((function(e){return function(e){return 1===e.status||Date.now()-e.lastUpdate>12e4}(e)})),o=e.filter((function(e){return function(e){return 3===e.status&&Date.now()-e.lastUpdate<=12e4}(e)})),r=[].concat(a(n),a(o));return{getTimeout:function(e,t){return(0===o.length&&0===e?1:o.length+3+e)*t},statelessHosts:r.length>0?r.map((function(e){return b(e)})):t}}))}(e.hostsCache,t).then((function(e){return m(a(e.statelessHosts).reverse(),e.getTimeout)}))}function k(e){var t={value:"Algolia for JavaScript (".concat(e,")"),add:function(e){var n="; ".concat(e.segment).concat(void 0!==e.version?" (".concat(e.version,")"):"");return-1===t.value.indexOf(n)&&(t.value="".concat(t.value).concat(n)),t}};return t}function E(e,t,n){var o=w(n),a="".concat(e.protocol,"://").concat(e.url,"/").concat("/"===t.charAt(0)?t.substr(1):t);return o.length&&(a+="?".concat(o)),a}function w(e){return Object.keys(e).map((function(t){return u("%s=%s",t,(n=e[t],"[object Object]"===Object.prototype.toString.call(n)||"[object Array]"===Object.prototype.toString.call(n)?JSON.stringify(e[t]):e[t]));var n})).join("&")}function _(e){return e.map((function(e){return S(e)}))}function S(e){var t=e.request.headers["x-algolia-api-key"]?{"x-algolia-api-key":"*****"}:{};return n(n({},e),{},{request:n(n({},e.request),{},{headers:n(n({},e.request.headers),t)})})}var C=function(e){var t=e.appId,a=function(e,t,n){var o={"x-algolia-api-key":n,"x-algolia-application-id":t};return{headers:function(){return e===p?o:{}},queryParameters:function(){return e===d?o:{}}}}(void 0!==e.authMode?e.authMode:p,t,e.apiKey),r=function(e){var t=e.hostsCache,n=e.logger,a=e.requester,r=e.requestsCache,l=e.responsesCache,i=e.timeouts,s=e.userAgent,c=e.hosts,u=e.queryParameters,d={hostsCache:t,logger:n,requester:a,requestsCache:r,responsesCache:l,timeouts:i,userAgent:s,headers:e.headers,queryParameters:u,hosts:c.map((function(e){return b(e)})),read:function(e,t){var n=m(t,d.timeouts.read),a=function(){return y(d,d.hosts.filter((function(e){return!!(e.accept&g.Read)})),e,n)};if(!0!==(void 0!==n.cacheable?n.cacheable:e.cacheable))return a();var r={request:e,mappedRequestOptions:n,transporter:{queryParameters:d.queryParameters,headers:d.headers}};return d.responsesCache.get(r,(function(){return d.requestsCache.get(r,(function(){return d.requestsCache.set(r,a()).then((function(e){return Promise.all([d.requestsCache.delete(r),e])}),(function(e){return Promise.all([d.requestsCache.delete(r),Promise.reject(e)])})).then((function(e){var t=o(e,2);return t[0],t[1]}))}))}),{miss:function(e){return d.responsesCache.set(r,e)}})},write:function(e,t){return y(d,d.hosts.filter((function(e){return!!(e.accept&g.Write)})),e,m(t,d.timeouts.write))}};return d}(n(n({hosts:[{url:"".concat(t,"-dsn.algolia.net"),accept:g.Read},{url:"".concat(t,".algolia.net"),accept:g.Write}].concat(s([{url:"".concat(t,"-1.algolianet.com")},{url:"".concat(t,"-2.algolianet.com")},{url:"".concat(t,"-3.algolianet.com")}]))},e),{},{headers:n(n(n({},a.headers()),{"content-type":"application/x-www-form-urlencoded"}),e.headers),queryParameters:n(n({},a.queryParameters()),e.queryParameters)}));return c({transporter:r,appId:t,addAlgoliaAgent:function(e,t){r.userAgent.add({segment:e,version:t})},clearCache:function(){return Promise.all([r.requestsCache.clear(),r.responsesCache.clear()]).then((function(){}))}},e.methods)},x=function(e){return function(t,n){return t.method===f?e.transporter.read(t,n):e.transporter.write(t,n)}},I=function(e){return function(t){var n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return c({transporter:e.transporter,appId:e.appId,indexName:t},n.methods)}},O=function(e){return function(t,o){var a=t.map((function(e){return n(n({},e),{},{params:w(e.params||{})})}));return e.transporter.read({method:v,path:"1/indexes/*/queries",data:{requests:a},cacheable:!0},o)}},A=function(e){return function(t,o){return Promise.all(t.map((function(t){var a=t.params,r=a.facetName,l=a.facetQuery,i=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(a,["facetName","facetQuery"]);return I(e)(t.indexName,{methods:{searchForFacetValues:T}}).searchForFacetValues(r,l,n(n({},o),i))})))}},M=function(e){return function(t,n,o){return e.transporter.read({method:v,path:u("1/answers/%s/prediction",e.indexName),data:{query:t,queryLanguages:n},cacheable:!0},o)}},P=function(e){return function(t,n){return e.transporter.read({method:v,path:u("1/indexes/%s/query",e.indexName),data:{query:t},cacheable:!0},n)}},T=function(e){return function(t,n,o){return e.transporter.read({method:v,path:u("1/indexes/%s/facets/%s/query",e.indexName,t),data:{facetQuery:n},cacheable:!0},o)}};function N(e,t,o){var a={appId:e,apiKey:t,timeouts:{connect:1,read:2,write:30},requester:{send:function(e){return new Promise((function(t){var n=new XMLHttpRequest;n.open(e.method,e.url,!0),Object.keys(e.headers).forEach((function(t){return n.setRequestHeader(t,e.headers[t])}));var o,a=function(e,o){return setTimeout((function(){n.abort(),t({status:0,content:o,isTimedOut:!0})}),1e3*e)},r=a(e.connectTimeout,"Connection timeout");n.onreadystatechange=function(){n.readyState>n.OPENED&&void 0===o&&(clearTimeout(r),o=a(e.responseTimeout,"Socket timeout"))},n.onerror=function(){0===n.status&&(clearTimeout(r),clearTimeout(o),t({content:n.responseText||"Network request failed",status:n.status,isTimedOut:!1}))},n.onload=function(){clearTimeout(r),clearTimeout(o),t({content:n.responseText,status:n.status,isTimedOut:!1})},n.send(e.data)}))}},logger:{debug:function(e,t){return Promise.resolve()},info:function(e,t){return Promise.resolve()},error:function(e,t){return console.error(e,t),Promise.resolve()}},responsesCache:i(),requestsCache:i({serializable:!1}),hostsCache:l({caches:[r({key:"".concat("4.19.1","-").concat(e)}),i()]}),userAgent:k("4.19.1").add({segment:"Browser",version:"lite"}),authMode:d};return C(n(n(n({},a),o),{},{methods:{search:O,searchForFacetValues:A,multipleQueries:O,multipleSearchForFacetValues:A,customRequest:x,initIndex:function(e){return function(t){return I(e)(t,{methods:{search:P,searchForFacetValues:T,findAnswers:M}})}}}}))}return N.version="4.19.1",N}()},4233:(e,t,n)=>{"use strict";const o=window.wp.i18n,a=window.kadence.icons,r=window.wp.blocks;var l=n(1609),i=n.n(l),s=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function c(e,t){if(e.length!==t.length)return!1;for(var n=0;n<e.length;n++)if(!((o=e[n])===(a=t[n])||s(o)&&s(a)))return!1;var o,a;return!0}const u=function(e,t){var n;void 0===t&&(t=c);var o,a=[],r=!1;return function(){for(var l=[],i=0;i<arguments.length;i++)l[i]=arguments[i];return r&&n===this&&t(l,a)||(o=e.apply(this,l),r=!0,n=this,a=l),o}},d={animationIterationCount:1,borderImageOutset:1,borderImageSlice:1,borderImageWidth:1,boxFlex:1,boxFlexGroup:1,boxOrdinalGroup:1,columnCount:1,columns:1,flex:1,flexGrow:1,flexPositive:1,flexShrink:1,flexNegative:1,flexOrder:1,gridRow:1,gridRowEnd:1,gridRowSpan:1,gridRowStart:1,gridColumn:1,gridColumnEnd:1,gridColumnSpan:1,gridColumnStart:1,fontWeight:1,lineHeight:1,opacity:1,order:1,orphans:1,tabSize:1,widows:1,zIndex:1,zoom:1,WebkitLineClamp:1,fillOpacity:1,floodOpacity:1,stopOpacity:1,strokeDasharray:1,strokeDashoffset:1,strokeMiterlimit:1,strokeOpacity:1,strokeWidth:1},p=function(e){function t(e,o,s,c,p){for(var m,g,h,b,k,w=0,_=0,S=0,C=0,x=0,T=0,R=h=m=0,B=0,D=0,F=0,z=0,j=s.length,H=j-1,W="",V="",$="",U="";B<j;){if(g=s.charCodeAt(B),B===H&&0!==_+C+S+w&&(0!==_&&(g=47===_?10:47),C=S=w=0,j++,H++),0===_+C+S+w){if(B===H&&(0<D&&(W=W.replace(d,"")),0<W.trim().length)){switch(g){case 32:case 9:case 59:case 13:case 10:break;default:W+=s.charAt(B)}g=59}switch(g){case 123:for(m=(W=W.trim()).charCodeAt(0),h=1,z=++B;B<j;){switch(g=s.charCodeAt(B)){case 123:h++;break;case 125:h--;break;case 47:switch(g=s.charCodeAt(B+1)){case 42:case 47:e:{for(R=B+1;R<H;++R)switch(s.charCodeAt(R)){case 47:if(42===g&&42===s.charCodeAt(R-1)&&B+2!==R){B=R+1;break e}break;case 10:if(47===g){B=R+1;break e}}B=R}}break;case 91:g++;case 40:g++;case 34:case 39:for(;B++<H&&s.charCodeAt(B)!==g;);}if(0===h)break;B++}if(h=s.substring(z,B),0===m&&(m=(W=W.replace(u,"").trim()).charCodeAt(0)),64===m){switch(0<D&&(W=W.replace(d,"")),g=W.charCodeAt(1)){case 100:case 109:case 115:case 45:D=o;break;default:D=P}if(z=(h=t(o,D,h,g,p+1)).length,0<N&&(k=i(3,h,D=n(P,W,F),o,O,I,z,g,p,c),W=D.join(""),void 0!==k&&0===(z=(h=k.trim()).length)&&(g=0,h="")),0<z)switch(g){case 115:W=W.replace(E,l);case 100:case 109:case 45:h=W+"{"+h+"}";break;case 107:h=(W=W.replace(f,"$1 $2"))+"{"+h+"}",h=1===M||2===M&&r("@"+h,3)?"@-webkit-"+h+"@"+h:"@"+h;break;default:h=W+h,112===c&&(V+=h,h="")}else h=""}else h=t(o,n(o,W,F),h,c,p+1);$+=h,h=F=D=R=m=0,W="",g=s.charCodeAt(++B);break;case 125:case 59:if(1<(z=(W=(0<D?W.replace(d,""):W).trim()).length))switch(0===R&&(m=W.charCodeAt(0),45===m||96<m&&123>m)&&(z=(W=W.replace(" ",":")).length),0<N&&void 0!==(k=i(1,W,o,e,O,I,V.length,c,p,c))&&0===(z=(W=k.trim()).length)&&(W="\0\0"),m=W.charCodeAt(0),g=W.charCodeAt(1),m){case 0:break;case 64:if(105===g||99===g){U+=W+s.charAt(B);break}default:58!==W.charCodeAt(z-1)&&(V+=a(W,m,g,W.charCodeAt(2)))}F=D=R=m=0,W="",g=s.charCodeAt(++B)}}switch(g){case 13:case 10:47===_?_=0:0===1+m&&107!==c&&0<W.length&&(D=1,W+="\0"),0<N*L&&i(0,W,o,e,O,I,V.length,c,p,c),I=1,O++;break;case 59:case 125:if(0===_+C+S+w){I++;break}default:switch(I++,b=s.charAt(B),g){case 9:case 32:if(0===C+w+_)switch(x){case 44:case 58:case 9:case 32:b="";break;default:32!==g&&(b=" ")}break;case 0:b="\\0";break;case 12:b="\\f";break;case 11:b="\\v";break;case 38:0===C+_+w&&(D=F=1,b="\f"+b);break;case 108:if(0===C+_+w+A&&0<R)switch(B-R){case 2:112===x&&58===s.charCodeAt(B-3)&&(A=x);case 8:111===T&&(A=T)}break;case 58:0===C+_+w&&(R=B);break;case 44:0===_+S+C+w&&(D=1,b+="\r");break;case 34:case 39:0===_&&(C=C===g?0:0===C?g:C);break;case 91:0===C+_+S&&w++;break;case 93:0===C+_+S&&w--;break;case 41:0===C+_+w&&S--;break;case 40:0===C+_+w&&(0===m&&(2*x+3*T==533||(m=1)),S++);break;case 64:0===_+S+C+w+R+h&&(h=1);break;case 42:case 47:if(!(0<C+w+S))switch(_){case 0:switch(2*g+3*s.charCodeAt(B+1)){case 235:_=47;break;case 220:z=B,_=42}break;case 42:47===g&&42===x&&z+2!==B&&(33===s.charCodeAt(z+2)&&(V+=s.substring(z,B+1)),b="",_=0)}}0===_&&(W+=b)}T=x,x=g,B++}if(0<(z=V.length)){if(D=o,0<N&&void 0!==(k=i(2,V,D,e,O,I,z,c,p,c))&&0===(V=k).length)return U+V+$;if(V=D.join(",")+"{"+V+"}",0!=M*A){switch(2!==M||r(V,2)||(A=0),A){case 111:V=V.replace(y,":-moz-$1")+V;break;case 112:V=V.replace(v,"::-webkit-input-$1")+V.replace(v,"::-moz-$1")+V.replace(v,":-ms-input-$1")+V}A=0}}return U+V+$}function n(e,t,n){var a=t.trim().split(h);t=a;var r=a.length,l=e.length;switch(l){case 0:case 1:var i=0;for(e=0===l?"":e[0]+" ";i<r;++i)t[i]=o(e,t[i],n).trim();break;default:var s=i=0;for(t=[];i<r;++i)for(var c=0;c<l;++c)t[s++]=o(e[c]+" ",a[i],n).trim()}return t}function o(e,t,n){var o=t.charCodeAt(0);switch(33>o&&(o=(t=t.trim()).charCodeAt(0)),o){case 38:return t.replace(b,"$1"+e.trim());case 58:return e.trim()+t.replace(b,"$1"+e.trim());default:if(0<1*n&&0<t.indexOf("\f"))return t.replace(b,(58===e.charCodeAt(0)?"":"$1")+e.trim())}return e+t}function a(e,t,n,o){var l=e+";",i=2*t+3*n+4*o;if(944===i){e=l.indexOf(":",9)+1;var s=l.substring(e,l.length-1).trim();return s=l.substring(0,e).trim()+s+";",1===M||2===M&&r(s,1)?"-webkit-"+s+s:s}if(0===M||2===M&&!r(l,1))return l;switch(i){case 1015:return 97===l.charCodeAt(10)?"-webkit-"+l+l:l;case 951:return 116===l.charCodeAt(3)?"-webkit-"+l+l:l;case 963:return 110===l.charCodeAt(5)?"-webkit-"+l+l:l;case 1009:if(100!==l.charCodeAt(4))break;case 969:case 942:return"-webkit-"+l+l;case 978:return"-webkit-"+l+"-moz-"+l+l;case 1019:case 983:return"-webkit-"+l+"-moz-"+l+"-ms-"+l+l;case 883:if(45===l.charCodeAt(8))return"-webkit-"+l+l;if(0<l.indexOf("image-set(",11))return l.replace(x,"$1-webkit-$2")+l;break;case 932:if(45===l.charCodeAt(4))switch(l.charCodeAt(5)){case 103:return"-webkit-box-"+l.replace("-grow","")+"-webkit-"+l+"-ms-"+l.replace("grow","positive")+l;case 115:return"-webkit-"+l+"-ms-"+l.replace("shrink","negative")+l;case 98:return"-webkit-"+l+"-ms-"+l.replace("basis","preferred-size")+l}return"-webkit-"+l+"-ms-"+l+l;case 964:return"-webkit-"+l+"-ms-flex-"+l+l;case 1023:if(99!==l.charCodeAt(8))break;return"-webkit-box-pack"+(s=l.substring(l.indexOf(":",15)).replace("flex-","").replace("space-between","justify"))+"-webkit-"+l+"-ms-flex-pack"+s+l;case 1005:return m.test(l)?l.replace(p,":-webkit-")+l.replace(p,":-moz-")+l:l;case 1e3:switch(t=(s=l.substring(13).trim()).indexOf("-")+1,s.charCodeAt(0)+s.charCodeAt(t)){case 226:s=l.replace(k,"tb");break;case 232:s=l.replace(k,"tb-rl");break;case 220:s=l.replace(k,"lr");break;default:return l}return"-webkit-"+l+"-ms-"+s+l;case 1017:if(-1===l.indexOf("sticky",9))break;case 975:switch(t=(l=e).length-10,i=(s=(33===l.charCodeAt(t)?l.substring(0,t):l).substring(e.indexOf(":",7)+1).trim()).charCodeAt(0)+(0|s.charCodeAt(7))){case 203:if(111>s.charCodeAt(8))break;case 115:l=l.replace(s,"-webkit-"+s)+";"+l;break;case 207:case 102:l=l.replace(s,"-webkit-"+(102<i?"inline-":"")+"box")+";"+l.replace(s,"-webkit-"+s)+";"+l.replace(s,"-ms-"+s+"box")+";"+l}return l+";";case 938:if(45===l.charCodeAt(5))switch(l.charCodeAt(6)){case 105:return s=l.replace("-items",""),"-webkit-"+l+"-webkit-box-"+s+"-ms-flex-"+s+l;case 115:return"-webkit-"+l+"-ms-flex-item-"+l.replace(_,"")+l;default:return"-webkit-"+l+"-ms-flex-line-pack"+l.replace("align-content","").replace(_,"")+l}break;case 973:case 989:if(45!==l.charCodeAt(3)||122===l.charCodeAt(4))break;case 931:case 953:if(!0===C.test(e))return 115===(s=e.substring(e.indexOf(":")+1)).charCodeAt(0)?a(e.replace("stretch","fill-available"),t,n,o).replace(":fill-available",":stretch"):l.replace(s,"-webkit-"+s)+l.replace(s,"-moz-"+s.replace("fill-",""))+l;break;case 962:if(l="-webkit-"+l+(102===l.charCodeAt(5)?"-ms-"+l:"")+l,211===n+o&&105===l.charCodeAt(13)&&0<l.indexOf("transform",10))return l.substring(0,l.indexOf(";",27)+1).replace(g,"$1-webkit-$2")+l}return l}function r(e,t){var n=e.indexOf(1===t?":":"{"),o=e.substring(0,3!==t?n:10);return n=e.substring(n+1,e.length-1),R(2!==t?o:o.replace(S,"$1"),n,t)}function l(e,t){var n=a(t,t.charCodeAt(0),t.charCodeAt(1),t.charCodeAt(2));return n!==t+";"?n.replace(w," or ($1)").substring(4):"("+t+")"}function i(e,t,n,o,a,r,l,i,s,u){for(var d,p=0,m=t;p<N;++p)switch(d=T[p].call(c,e,m,n,o,a,r,l,i,s,u)){case void 0:case!1:case!0:case null:break;default:m=d}if(m!==t)return m}function s(e){return void 0!==(e=e.prefix)&&(R=null,e?"function"!=typeof e?M=1:(M=2,R=e):M=0),s}function c(e,n){var o=e;if(33>o.charCodeAt(0)&&(o=o.trim()),o=[o],0<N){var a=i(-1,n,o,o,O,I,0,0,0,0);void 0!==a&&"string"==typeof a&&(n=a)}var r=t(P,o,n,0,0);return 0<N&&void 0!==(a=i(-2,r,o,o,O,I,r.length,0,0,0))&&(r=a),A=0,I=O=1,r}var u=/^\0+/g,d=/[\0\r\f]/g,p=/: */g,m=/zoo|gra/,g=/([,: ])(transform)/g,h=/,\r+?/g,b=/([\t\r\n ])*\f?&/g,f=/@(k\w+)\s*(\S*)\s*/,v=/::(place)/g,y=/:(read-only)/g,k=/[svh]\w+-[tblr]{2}/,E=/\(\s*(.*)\s*\)/g,w=/([\s\S]*?);/g,_=/-self|flex-/g,S=/[^]*?(:[rp][el]a[\w-]+)[^]*/,C=/stretch|:\s*\w+\-(?:conte|avail)/,x=/([^-])(image-set\()/,I=1,O=1,A=0,M=1,P=[],T=[],N=0,R=null,L=0;return c.use=function e(t){switch(t){case void 0:case null:N=T.length=0;break;default:switch(t.constructor){case Array:for(var n=0,o=t.length;n<o;++n)e(t[n]);break;case Function:T[N++]=t;break;case Boolean:L=0|!!t}}return e},c.set=s,void 0!==e&&s(e),c};var m,g,h=n(8226),b=n.n(h),f=/[A-Z]|^ms/g,v=(m=function(e){return e.replace(f,"-$&").toLowerCase()},g={},function(e){return void 0===g[e]&&(g[e]=m(e)),g[e]}),y=function(e,t){return null==t||"boolean"==typeof t?"":1===d[e]||45===e.charCodeAt(1)||isNaN(t)||0===t?t:t+"px"},k=function e(t){for(var n=t.length,o=0,a="";o<n;o++){var r=t[o];if(null!=r){var l=void 0;switch(typeof r){case"boolean":break;case"function":l=e([r()]);break;case"object":if(Array.isArray(r))l=e(r);else for(var i in l="",r)r[i]&&i&&(l&&(l+=" "),l+=i);break;default:l=r}l&&(a&&(a+=" "),a+=l)}}return a},E="undefined"!=typeof document;function w(e){var t=document.createElement("style");return t.setAttribute("data-emotion",e.key||""),void 0!==e.nonce&&t.setAttribute("nonce",e.nonce),t.appendChild(document.createTextNode("")),(void 0!==e.container?e.container:document.head).appendChild(t),t}var _=function(){function e(e){this.isSpeedy=!0,this.tags=[],this.ctr=0,this.opts=e}var t=e.prototype;return t.inject=function(){if(this.injected)throw new Error("already injected!");this.tags[0]=w(this.opts),this.injected=!0},t.speedy=function(e){if(0!==this.ctr)throw new Error("cannot change speedy now");this.isSpeedy=!!e},t.insert=function(e,t){if(this.isSpeedy){var n=function(e){if(e.sheet)return e.sheet;for(var t=0;t<document.styleSheets.length;t++)if(document.styleSheets[t].ownerNode===e)return document.styleSheets[t]}(this.tags[this.tags.length-1]);try{n.insertRule(e,n.cssRules.length)}catch(e){}}else{var o=w(this.opts);this.tags.push(o),o.appendChild(document.createTextNode(e+(t||"")))}this.ctr++,this.ctr%65e3==0&&this.tags.push(w(this.opts))},t.flush=function(){this.tags.forEach((function(e){return e.parentNode.removeChild(e)})),this.tags=[],this.ctr=0,this.injected=!1},e}();var S=function(e,t){if(void 0!==e.__SECRET_EMOTION__)return e.__SECRET_EMOTION__;void 0===t&&(t={});var n,o,a=t.key||"css",r=b()((function(e){n+=e,E&&i.insert(e,c)}));void 0!==t.prefix&&(o={prefix:t.prefix});var l={registered:{},inserted:{},nonce:t.nonce,key:a},i=new _(t);E&&i.inject();var s=new p(o);s.use(t.stylisPlugins)(r);var c="";function u(e,t){if(null==e)return"";switch(typeof e){case"boolean":return"";case"function":return void 0!==e.__emotion_styles?e.toString():u.call(this,void 0===this?e():e(this.mergedProps,this.context),t);case"object":return h.call(this,e);default:var n=l.registered[e];return!1===t&&void 0!==n?n:e}}var d,m,g=new WeakMap;function h(e){if(g.has(e))return g.get(e);var t="";return Array.isArray(e)?e.forEach((function(e){t+=u.call(this,e,!1)}),this):Object.keys(e).forEach((function(n){"object"!=typeof e[n]?void 0!==l.registered[e[n]]?t+=n+"{"+l.registered[e[n]]+"}":t+=v(n)+":"+y(n,e[n])+";":Array.isArray(e[n])&&"string"==typeof e[n][0]&&void 0===l.registered[e[n][0]]?e[n].forEach((function(e){t+=v(n)+":"+y(n,e)+";"})):t+=n+"{"+u.call(this,e[n],!1)+"}"}),this),g.set(e,t),t}var f=/label:\s*([^\s;\n{]+)\s*;/g,w=function(e){var t=!0,n="",o="";null==e||void 0===e.raw?(t=!1,n+=u.call(this,e,!1)):n+=e[0];for(var a=arguments.length,r=new Array(a>1?a-1:0),l=1;l<a;l++)r[l-1]=arguments[l];return r.forEach((function(o,a){n+=u.call(this,o,46===n.charCodeAt(n.length-1)),!0===t&&void 0!==e[a+1]&&(n+=e[a+1])}),this),m=n,n=n.replace(f,(function(e,t){return o+="-"+t,""})),d=function(e,t){return function(e){for(var t,n=e.length,o=0,a=0;n>=4;)t=1540483477*(65535&(t=255&e.charCodeAt(a)|(255&e.charCodeAt(++a))<<8|(255&e.charCodeAt(++a))<<16|(255&e.charCodeAt(++a))<<24))+((1540483477*(t>>>16)&65535)<<16),o=1540483477*(65535&o)+((1540483477*(o>>>16)&65535)<<16)^(t=1540483477*(65535&(t^=t>>>24))+((1540483477*(t>>>16)&65535)<<16)),n-=4,++a;switch(n){case 3:o^=(255&e.charCodeAt(a+2))<<16;case 2:o^=(255&e.charCodeAt(a+1))<<8;case 1:o=1540483477*(65535&(o^=255&e.charCodeAt(a)))+((1540483477*(o>>>16)&65535)<<16)}return o=1540483477*(65535&(o^=o>>>13))+((1540483477*(o>>>16)&65535)<<16),((o^=o>>>15)>>>0).toString(36)}(e+t)+t}(n,o),n};function S(e,t){void 0===l.inserted[d]&&(n="",s(e,t),l.inserted[d]=n)}var C=function(){var e=w.apply(this,arguments),t=a+"-"+d;return void 0===l.registered[t]&&(l.registered[t]=m),S("."+t,e),t};function x(e,t){var n="";return t.split(" ").forEach((function(t){void 0!==l.registered[t]?e.push(t):n+=t+" "})),n}function I(e,t){var n=[],o=x(n,e);return n.length<2?e:o+C(n,t)}function O(e){l.inserted[e]=!0}if(E){var A=document.querySelectorAll("[data-emotion-"+a+"]");Array.prototype.forEach.call(A,(function(e){i.tags[0].parentNode.insertBefore(e,i.tags[0]),e.getAttribute("data-emotion-"+a).split(" ").forEach(O)}))}var M={flush:function(){E&&(i.flush(),i.inject()),l.inserted={},l.registered={}},hydrate:function(e){e.forEach(O)},cx:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return I(k(t))},merge:I,getRegisteredStyles:x,injectGlobal:function(){S("",w.apply(this,arguments))},keyframes:function(){var e=w.apply(this,arguments),t="animation-"+d;return S("","@keyframes "+t+"{"+e+"}"),t},css:C,sheet:i,caches:l};return e.__SECRET_EMOTION__=M,M}(void 0!==n.g?n.g:{}),C=(S.flush,S.hydrate,S.cx,S.merge,S.getRegisteredStyles,S.injectGlobal),x=(S.keyframes,S.css),I=(S.sheet,S.caches,n(5795)),O=n(5556),A=n.n(O),M=n(3146),P=n.n(M),T=n(8006),N=n(9790);function R(e){return R="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},R(e)}function L(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function B(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}function D(e,t,n){return t&&B(e.prototype,t),n&&B(e,n),e}function F(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function z(){return z=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},z.apply(this,arguments)}function j(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{},o=Object.keys(n);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(n).filter((function(e){return Object.getOwnPropertyDescriptor(n,e).enumerable})))),o.forEach((function(t){F(e,t,n[t])}))}return e}function H(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&V(e,t)}function W(e){return W=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},W(e)}function V(e,t){return V=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},V(e,t)}function $(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function U(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Z(e,t){return!t||"object"!=typeof t&&"function"!=typeof t?U(e):t}function G(e){return function(e){if(Array.isArray(e)){for(var t=0,n=new Array(e.length);t<e.length;t++)n[t]=e[t];return n}}(e)||function(e){if(Symbol.iterator in Object(e)||"[object Arguments]"===Object.prototype.toString.call(e))return Array.from(e)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance")}()}var q=function(){};function K(e,t){return t?"-"===t[0]?e+t:e+"__"+t:e}function J(e,t,n,o){var a=[t,o];if(n&&e)for(var r in n)n.hasOwnProperty(r)&&n[r]&&a.push("".concat(K(e,r)));return a.filter((function(e){return e})).map((function(e){return String(e).trim()})).join(" ")}var Y=function(e){return Array.isArray(e)?e.filter(Boolean):"object"===R(e)&&null!==e?[e]:[]};function X(e){return[document.documentElement,document.body,window].indexOf(e)>-1}function Q(e){return X(e)?window.pageYOffset:e.scrollTop}function ee(e,t){X(e)?window.scrollTo(0,t):e.scrollTop=t}function te(e,t){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:200,o=arguments.length>3&&void 0!==arguments[3]?arguments[3]:q,a=Q(e),r=t-a,l=0;!function t(){var i=function(e,t,n,o){return n*((e=e/o-1)*e*e+1)+t}(l+=10,a,r,n);ee(e,i),l<n?P()(t):o(e)}()}function ne(){try{return document.createEvent("TouchEvent"),!0}catch(e){return!1}}var oe=function(e){return"auto"===e?"bottom":e},ae=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"state",{maxHeight:n.props.maxMenuHeight,placement:null}),F(U(U(n)),"getPlacement",(function(e){var t=n.props,o=t.minMenuHeight,a=t.maxMenuHeight,r=t.menuPlacement,l=t.menuPosition,i=t.menuShouldScrollIntoView,s=t.theme,c=n.context.getPortalPlacement;if(e){var u="fixed"===l,d=function(e){var t=e.maxHeight,n=e.menuEl,o=e.minHeight,a=e.placement,r=e.shouldScroll,l=e.isFixedPosition,i=e.theme.spacing,s=function(e){var t=getComputedStyle(e),n="absolute"===t.position,o=/(auto|scroll)/,a=document.documentElement;if("fixed"===t.position)return a;for(var r=e;r=r.parentElement;)if(t=getComputedStyle(r),(!n||"static"!==t.position)&&o.test(t.overflow+t.overflowY+t.overflowX))return r;return a}(n),c={placement:"bottom",maxHeight:t};if(!n||!n.offsetParent)return c;var u=s.getBoundingClientRect().height,d=n.getBoundingClientRect(),p=d.bottom,m=d.height,g=d.top,h=n.offsetParent.getBoundingClientRect().top,b=window.innerHeight,f=Q(s),v=parseInt(getComputedStyle(n).marginBottom,10),y=parseInt(getComputedStyle(n).marginTop,10),k=h-y,E=b-g,w=k+f,_=u-f-g,S=p-b+f+v,C=f+g-y,x=160;switch(a){case"auto":case"bottom":if(E>=m)return{placement:"bottom",maxHeight:t};if(_>=m&&!l)return r&&te(s,S,x),{placement:"bottom",maxHeight:t};if(!l&&_>=o||l&&E>=o)return r&&te(s,S,x),{placement:"bottom",maxHeight:l?E-v:_-v};if("auto"===a||l){var I=t,O=l?k:w;return O>=o&&(I=Math.min(O-v-i.controlHeight,t)),{placement:"top",maxHeight:I}}if("bottom"===a)return ee(s,S),{placement:"bottom",maxHeight:t};break;case"top":if(k>=m)return{placement:"top",maxHeight:t};if(w>=m&&!l)return r&&te(s,C,x),{placement:"top",maxHeight:t};if(!l&&w>=o||l&&k>=o){var A=t;return(!l&&w>=o||l&&k>=o)&&(A=l?k-y:w-y),r&&te(s,C,x),{placement:"top",maxHeight:A}}return{placement:"bottom",maxHeight:t};default:throw new Error('Invalid placement provided "'.concat(a,'".'))}return c}({maxHeight:a,menuEl:e,minHeight:o,placement:r,shouldScroll:i&&!u,isFixedPosition:u,theme:s});c&&c(d),n.setState(d)}})),F(U(U(n)),"getUpdatedProps",(function(){var e=n.props.menuPlacement,t=n.state.placement||oe(e);return j({},n.props,{placement:t,maxHeight:n.state.maxHeight})})),n}return H(t,e),D(t,[{key:"render",value:function(){return(0,this.props.children)({ref:this.getPlacement,placerProps:this.getUpdatedProps()})}}]),t}(l.Component);F(ae,"contextTypes",{getPortalPlacement:A().func});var re=function(e){var t=e.theme,n=t.spacing.baseUnit;return{color:t.colors.neutral40,padding:"".concat(2*n,"px ").concat(3*n,"px"),textAlign:"center"}},le=re,ie=re,se=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps;return i().createElement("div",z({className:o(x(a("noOptionsMessage",e)),{"menu-notice":!0,"menu-notice--no-options":!0},n)},r),t)};se.defaultProps={children:"No options"};var ce=function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps;return i().createElement("div",z({className:o(x(a("loadingMessage",e)),{"menu-notice":!0,"menu-notice--loading":!0},n)},r),t)};ce.defaultProps={children:"Loading..."};var ue=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"state",{placement:null}),F(U(U(n)),"getPortalPlacement",(function(e){var t=e.placement;t!==oe(n.props.menuPlacement)&&n.setState({placement:t})})),n}return H(t,e),D(t,[{key:"getChildContext",value:function(){return{getPortalPlacement:this.getPortalPlacement}}},{key:"render",value:function(){var e=this.props,t=e.appendTo,n=e.children,o=e.controlElement,a=e.menuPlacement,r=e.menuPosition,l=e.getStyles,s="fixed"===r;if(!t&&!s||!o)return null;var c=this.state.placement||oe(a),u=function(e){var t=e.getBoundingClientRect();return{bottom:t.bottom,height:t.height,left:t.left,right:t.right,top:t.top,width:t.width}}(o),d=s?0:window.pageYOffset,p={offset:u[c]+d,position:r,rect:u},m=i().createElement("div",{className:x(l("menuPortal",p))},n);return t?(0,I.createPortal)(m,t):m}}]),t}(l.Component);F(ue,"childContextTypes",{getPortalPlacement:A().func});var de=Array.isArray,pe=Object.keys,me=Object.prototype.hasOwnProperty;function ge(e,t){if(e===t)return!0;if(e&&t&&"object"==R(e)&&"object"==R(t)){var n,o,a,r=de(e),l=de(t);if(r&&l){if((o=e.length)!=t.length)return!1;for(n=o;0!=n--;)if(!ge(e[n],t[n]))return!1;return!0}if(r!=l)return!1;var i=e instanceof Date,s=t instanceof Date;if(i!=s)return!1;if(i&&s)return e.getTime()==t.getTime();var c=e instanceof RegExp,u=t instanceof RegExp;if(c!=u)return!1;if(c&&u)return e.toString()==t.toString();var d=pe(e);if((o=d.length)!==pe(t).length)return!1;for(n=o;0!=n--;)if(!me.call(t,d[n]))return!1;for(n=o;0!=n--;)if(!("_owner"===(a=d[n])&&e.$$typeof||ge(e[a],t[a])))return!1;return!0}return e!=e&&t!=t}function he(e,t){try{return ge(e,t)}catch(e){if(e.message&&e.message.match(/stack|recursion/i))return console.warn("Warning: react-fast-compare does not handle circular references.",e.name,e.message),!1;throw e}}var be=[{base:"A",letters:/[\u0041\u24B6\uFF21\u00C0\u00C1\u00C2\u1EA6\u1EA4\u1EAA\u1EA8\u00C3\u0100\u0102\u1EB0\u1EAE\u1EB4\u1EB2\u0226\u01E0\u00C4\u01DE\u1EA2\u00C5\u01FA\u01CD\u0200\u0202\u1EA0\u1EAC\u1EB6\u1E00\u0104\u023A\u2C6F]/g},{base:"AA",letters:/[\uA732]/g},{base:"AE",letters:/[\u00C6\u01FC\u01E2]/g},{base:"AO",letters:/[\uA734]/g},{base:"AU",letters:/[\uA736]/g},{base:"AV",letters:/[\uA738\uA73A]/g},{base:"AY",letters:/[\uA73C]/g},{base:"B",letters:/[\u0042\u24B7\uFF22\u1E02\u1E04\u1E06\u0243\u0182\u0181]/g},{base:"C",letters:/[\u0043\u24B8\uFF23\u0106\u0108\u010A\u010C\u00C7\u1E08\u0187\u023B\uA73E]/g},{base:"D",letters:/[\u0044\u24B9\uFF24\u1E0A\u010E\u1E0C\u1E10\u1E12\u1E0E\u0110\u018B\u018A\u0189\uA779]/g},{base:"DZ",letters:/[\u01F1\u01C4]/g},{base:"Dz",letters:/[\u01F2\u01C5]/g},{base:"E",letters:/[\u0045\u24BA\uFF25\u00C8\u00C9\u00CA\u1EC0\u1EBE\u1EC4\u1EC2\u1EBC\u0112\u1E14\u1E16\u0114\u0116\u00CB\u1EBA\u011A\u0204\u0206\u1EB8\u1EC6\u0228\u1E1C\u0118\u1E18\u1E1A\u0190\u018E]/g},{base:"F",letters:/[\u0046\u24BB\uFF26\u1E1E\u0191\uA77B]/g},{base:"G",letters:/[\u0047\u24BC\uFF27\u01F4\u011C\u1E20\u011E\u0120\u01E6\u0122\u01E4\u0193\uA7A0\uA77D\uA77E]/g},{base:"H",letters:/[\u0048\u24BD\uFF28\u0124\u1E22\u1E26\u021E\u1E24\u1E28\u1E2A\u0126\u2C67\u2C75\uA78D]/g},{base:"I",letters:/[\u0049\u24BE\uFF29\u00CC\u00CD\u00CE\u0128\u012A\u012C\u0130\u00CF\u1E2E\u1EC8\u01CF\u0208\u020A\u1ECA\u012E\u1E2C\u0197]/g},{base:"J",letters:/[\u004A\u24BF\uFF2A\u0134\u0248]/g},{base:"K",letters:/[\u004B\u24C0\uFF2B\u1E30\u01E8\u1E32\u0136\u1E34\u0198\u2C69\uA740\uA742\uA744\uA7A2]/g},{base:"L",letters:/[\u004C\u24C1\uFF2C\u013F\u0139\u013D\u1E36\u1E38\u013B\u1E3C\u1E3A\u0141\u023D\u2C62\u2C60\uA748\uA746\uA780]/g},{base:"LJ",letters:/[\u01C7]/g},{base:"Lj",letters:/[\u01C8]/g},{base:"M",letters:/[\u004D\u24C2\uFF2D\u1E3E\u1E40\u1E42\u2C6E\u019C]/g},{base:"N",letters:/[\u004E\u24C3\uFF2E\u01F8\u0143\u00D1\u1E44\u0147\u1E46\u0145\u1E4A\u1E48\u0220\u019D\uA790\uA7A4]/g},{base:"NJ",letters:/[\u01CA]/g},{base:"Nj",letters:/[\u01CB]/g},{base:"O",letters:/[\u004F\u24C4\uFF2F\u00D2\u00D3\u00D4\u1ED2\u1ED0\u1ED6\u1ED4\u00D5\u1E4C\u022C\u1E4E\u014C\u1E50\u1E52\u014E\u022E\u0230\u00D6\u022A\u1ECE\u0150\u01D1\u020C\u020E\u01A0\u1EDC\u1EDA\u1EE0\u1EDE\u1EE2\u1ECC\u1ED8\u01EA\u01EC\u00D8\u01FE\u0186\u019F\uA74A\uA74C]/g},{base:"OI",letters:/[\u01A2]/g},{base:"OO",letters:/[\uA74E]/g},{base:"OU",letters:/[\u0222]/g},{base:"P",letters:/[\u0050\u24C5\uFF30\u1E54\u1E56\u01A4\u2C63\uA750\uA752\uA754]/g},{base:"Q",letters:/[\u0051\u24C6\uFF31\uA756\uA758\u024A]/g},{base:"R",letters:/[\u0052\u24C7\uFF32\u0154\u1E58\u0158\u0210\u0212\u1E5A\u1E5C\u0156\u1E5E\u024C\u2C64\uA75A\uA7A6\uA782]/g},{base:"S",letters:/[\u0053\u24C8\uFF33\u1E9E\u015A\u1E64\u015C\u1E60\u0160\u1E66\u1E62\u1E68\u0218\u015E\u2C7E\uA7A8\uA784]/g},{base:"T",letters:/[\u0054\u24C9\uFF34\u1E6A\u0164\u1E6C\u021A\u0162\u1E70\u1E6E\u0166\u01AC\u01AE\u023E\uA786]/g},{base:"TZ",letters:/[\uA728]/g},{base:"U",letters:/[\u0055\u24CA\uFF35\u00D9\u00DA\u00DB\u0168\u1E78\u016A\u1E7A\u016C\u00DC\u01DB\u01D7\u01D5\u01D9\u1EE6\u016E\u0170\u01D3\u0214\u0216\u01AF\u1EEA\u1EE8\u1EEE\u1EEC\u1EF0\u1EE4\u1E72\u0172\u1E76\u1E74\u0244]/g},{base:"V",letters:/[\u0056\u24CB\uFF36\u1E7C\u1E7E\u01B2\uA75E\u0245]/g},{base:"VY",letters:/[\uA760]/g},{base:"W",letters:/[\u0057\u24CC\uFF37\u1E80\u1E82\u0174\u1E86\u1E84\u1E88\u2C72]/g},{base:"X",letters:/[\u0058\u24CD\uFF38\u1E8A\u1E8C]/g},{base:"Y",letters:/[\u0059\u24CE\uFF39\u1EF2\u00DD\u0176\u1EF8\u0232\u1E8E\u0178\u1EF6\u1EF4\u01B3\u024E\u1EFE]/g},{base:"Z",letters:/[\u005A\u24CF\uFF3A\u0179\u1E90\u017B\u017D\u1E92\u1E94\u01B5\u0224\u2C7F\u2C6B\uA762]/g},{base:"a",letters:/[\u0061\u24D0\uFF41\u1E9A\u00E0\u00E1\u00E2\u1EA7\u1EA5\u1EAB\u1EA9\u00E3\u0101\u0103\u1EB1\u1EAF\u1EB5\u1EB3\u0227\u01E1\u00E4\u01DF\u1EA3\u00E5\u01FB\u01CE\u0201\u0203\u1EA1\u1EAD\u1EB7\u1E01\u0105\u2C65\u0250]/g},{base:"aa",letters:/[\uA733]/g},{base:"ae",letters:/[\u00E6\u01FD\u01E3]/g},{base:"ao",letters:/[\uA735]/g},{base:"au",letters:/[\uA737]/g},{base:"av",letters:/[\uA739\uA73B]/g},{base:"ay",letters:/[\uA73D]/g},{base:"b",letters:/[\u0062\u24D1\uFF42\u1E03\u1E05\u1E07\u0180\u0183\u0253]/g},{base:"c",letters:/[\u0063\u24D2\uFF43\u0107\u0109\u010B\u010D\u00E7\u1E09\u0188\u023C\uA73F\u2184]/g},{base:"d",letters:/[\u0064\u24D3\uFF44\u1E0B\u010F\u1E0D\u1E11\u1E13\u1E0F\u0111\u018C\u0256\u0257\uA77A]/g},{base:"dz",letters:/[\u01F3\u01C6]/g},{base:"e",letters:/[\u0065\u24D4\uFF45\u00E8\u00E9\u00EA\u1EC1\u1EBF\u1EC5\u1EC3\u1EBD\u0113\u1E15\u1E17\u0115\u0117\u00EB\u1EBB\u011B\u0205\u0207\u1EB9\u1EC7\u0229\u1E1D\u0119\u1E19\u1E1B\u0247\u025B\u01DD]/g},{base:"f",letters:/[\u0066\u24D5\uFF46\u1E1F\u0192\uA77C]/g},{base:"g",letters:/[\u0067\u24D6\uFF47\u01F5\u011D\u1E21\u011F\u0121\u01E7\u0123\u01E5\u0260\uA7A1\u1D79\uA77F]/g},{base:"h",letters:/[\u0068\u24D7\uFF48\u0125\u1E23\u1E27\u021F\u1E25\u1E29\u1E2B\u1E96\u0127\u2C68\u2C76\u0265]/g},{base:"hv",letters:/[\u0195]/g},{base:"i",letters:/[\u0069\u24D8\uFF49\u00EC\u00ED\u00EE\u0129\u012B\u012D\u00EF\u1E2F\u1EC9\u01D0\u0209\u020B\u1ECB\u012F\u1E2D\u0268\u0131]/g},{base:"j",letters:/[\u006A\u24D9\uFF4A\u0135\u01F0\u0249]/g},{base:"k",letters:/[\u006B\u24DA\uFF4B\u1E31\u01E9\u1E33\u0137\u1E35\u0199\u2C6A\uA741\uA743\uA745\uA7A3]/g},{base:"l",letters:/[\u006C\u24DB\uFF4C\u0140\u013A\u013E\u1E37\u1E39\u013C\u1E3D\u1E3B\u017F\u0142\u019A\u026B\u2C61\uA749\uA781\uA747]/g},{base:"lj",letters:/[\u01C9]/g},{base:"m",letters:/[\u006D\u24DC\uFF4D\u1E3F\u1E41\u1E43\u0271\u026F]/g},{base:"n",letters:/[\u006E\u24DD\uFF4E\u01F9\u0144\u00F1\u1E45\u0148\u1E47\u0146\u1E4B\u1E49\u019E\u0272\u0149\uA791\uA7A5]/g},{base:"nj",letters:/[\u01CC]/g},{base:"o",letters:/[\u006F\u24DE\uFF4F\u00F2\u00F3\u00F4\u1ED3\u1ED1\u1ED7\u1ED5\u00F5\u1E4D\u022D\u1E4F\u014D\u1E51\u1E53\u014F\u022F\u0231\u00F6\u022B\u1ECF\u0151\u01D2\u020D\u020F\u01A1\u1EDD\u1EDB\u1EE1\u1EDF\u1EE3\u1ECD\u1ED9\u01EB\u01ED\u00F8\u01FF\u0254\uA74B\uA74D\u0275]/g},{base:"oi",letters:/[\u01A3]/g},{base:"ou",letters:/[\u0223]/g},{base:"oo",letters:/[\uA74F]/g},{base:"p",letters:/[\u0070\u24DF\uFF50\u1E55\u1E57\u01A5\u1D7D\uA751\uA753\uA755]/g},{base:"q",letters:/[\u0071\u24E0\uFF51\u024B\uA757\uA759]/g},{base:"r",letters:/[\u0072\u24E1\uFF52\u0155\u1E59\u0159\u0211\u0213\u1E5B\u1E5D\u0157\u1E5F\u024D\u027D\uA75B\uA7A7\uA783]/g},{base:"s",letters:/[\u0073\u24E2\uFF53\u00DF\u015B\u1E65\u015D\u1E61\u0161\u1E67\u1E63\u1E69\u0219\u015F\u023F\uA7A9\uA785\u1E9B]/g},{base:"t",letters:/[\u0074\u24E3\uFF54\u1E6B\u1E97\u0165\u1E6D\u021B\u0163\u1E71\u1E6F\u0167\u01AD\u0288\u2C66\uA787]/g},{base:"tz",letters:/[\uA729]/g},{base:"u",letters:/[\u0075\u24E4\uFF55\u00F9\u00FA\u00FB\u0169\u1E79\u016B\u1E7B\u016D\u00FC\u01DC\u01D8\u01D6\u01DA\u1EE7\u016F\u0171\u01D4\u0215\u0217\u01B0\u1EEB\u1EE9\u1EEF\u1EED\u1EF1\u1EE5\u1E73\u0173\u1E77\u1E75\u0289]/g},{base:"v",letters:/[\u0076\u24E5\uFF56\u1E7D\u1E7F\u028B\uA75F\u028C]/g},{base:"vy",letters:/[\uA761]/g},{base:"w",letters:/[\u0077\u24E6\uFF57\u1E81\u1E83\u0175\u1E87\u1E85\u1E98\u1E89\u2C73]/g},{base:"x",letters:/[\u0078\u24E7\uFF58\u1E8B\u1E8D]/g},{base:"y",letters:/[\u0079\u24E8\uFF59\u1EF3\u00FD\u0177\u1EF9\u0233\u1E8F\u00FF\u1EF7\u1E99\u1EF5\u01B4\u024F\u1EFF]/g},{base:"z",letters:/[\u007A\u24E9\uFF5A\u017A\u1E91\u017C\u017E\u1E93\u1E95\u01B6\u0225\u0240\u2C6C\uA763]/g}],fe=function(e){for(var t=0;t<be.length;t++)e=e.replace(be[t].letters,be[t].base);return e},ve=function(e){return e.replace(/^\s+|\s+$/g,"")},ye=function(e){return"".concat(e.label," ").concat(e.value)},ke=function(e){return i().createElement("span",z({className:x({label:"a11yText",zIndex:9999,border:0,clip:"rect(1px, 1px, 1px, 1px)",height:1,width:1,position:"absolute",overflow:"hidden",padding:0,whiteSpace:"nowrap",backgroundColor:"red",color:"blue"})},e))},Ee=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=(e.in,e.out,e.onExited,e.appear,e.enter,e.exit,e.innerRef),n=(e.emotion,$(e,["in","out","onExited","appear","enter","exit","innerRef","emotion"]));return i().createElement("input",z({ref:t},n,{className:x({label:"dummyInput",background:0,border:0,fontSize:"inherit",outline:0,padding:0,width:1,color:"transparent",left:-100,opacity:0,position:"relative",transform:"scale(0)"})}))}}]),t}(l.Component),we=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"componentDidMount",value:function(){this.props.innerRef((0,I.findDOMNode)(this))}},{key:"componentWillUnmount",value:function(){this.props.innerRef(null)}},{key:"render",value:function(){return this.props.children}}]),t}(l.Component),_e=["boxSizing","height","overflow","paddingRight","position"],Se={boxSizing:"border-box",overflow:"hidden",position:"relative",height:"100%"};function Ce(e){e.preventDefault()}function xe(e){e.stopPropagation()}function Ie(){var e=this.scrollTop,t=this.scrollHeight,n=e+this.offsetHeight;0===e?this.scrollTop=1:n===t&&(this.scrollTop=e-1)}function Oe(){return"ontouchstart"in window||navigator.maxTouchPoints}var Ae=!("undefined"==typeof window||!window.document||!window.document.createElement),Me=0,Pe=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"originalStyles",{}),F(U(U(n)),"listenerOptions",{capture:!1,passive:!1}),n}return H(t,e),D(t,[{key:"componentDidMount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,o=t.touchScrollTarget,a=document.body,r=a&&a.style;if(n&&_e.forEach((function(t){var n=r&&r[t];e.originalStyles[t]=n})),n&&Me<1){var l=parseInt(this.originalStyles.paddingRight,10)||0,i=document.body?document.body.clientWidth:0,s=window.innerWidth-i+l||0;Object.keys(Se).forEach((function(e){var t=Se[e];r&&(r[e]=t)})),r&&(r.paddingRight="".concat(s,"px"))}a&&Oe()&&(a.addEventListener("touchmove",Ce,this.listenerOptions),o&&(o.addEventListener("touchstart",Ie,this.listenerOptions),o.addEventListener("touchmove",xe,this.listenerOptions))),Me+=1}}},{key:"componentWillUnmount",value:function(){var e=this;if(Ae){var t=this.props,n=t.accountForScrollbars,o=t.touchScrollTarget,a=document.body,r=a&&a.style;Me=Math.max(Me-1,0),n&&Me<1&&_e.forEach((function(t){var n=e.originalStyles[t];r&&(r[t]=n)})),a&&Oe()&&(a.removeEventListener("touchmove",Ce,this.listenerOptions),o&&(o.removeEventListener("touchstart",Ie,this.listenerOptions),o.removeEventListener("touchmove",xe,this.listenerOptions)))}}},{key:"render",value:function(){return null}}]),t}(l.Component);F(Pe,"defaultProps",{accountForScrollbars:!0});var Te=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"state",{touchScrollTarget:null}),F(U(U(n)),"getScrollTarget",(function(e){e!==n.state.touchScrollTarget&&n.setState({touchScrollTarget:e})})),F(U(U(n)),"blurSelectInput",(function(){document.activeElement&&document.activeElement.blur()})),n}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.isEnabled,o=this.state.touchScrollTarget;return n?i().createElement("div",null,i().createElement("div",{onClick:this.blurSelectInput,className:x({position:"fixed",left:0,bottom:0,right:0,top:0})}),i().createElement(we,{innerRef:this.getScrollTarget},t),o?i().createElement(Pe,{touchScrollTarget:o}):null):t}}]),t}(l.PureComponent),Ne=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"isBottom",!1),F(U(U(n)),"isTop",!1),F(U(U(n)),"scrollTarget",void 0),F(U(U(n)),"touchStart",void 0),F(U(U(n)),"cancelScroll",(function(e){e.preventDefault(),e.stopPropagation()})),F(U(U(n)),"handleEventDelta",(function(e,t){var o=n.props,a=o.onBottomArrive,r=o.onBottomLeave,l=o.onTopArrive,i=o.onTopLeave,s=n.scrollTarget,c=s.scrollTop,u=s.scrollHeight,d=s.clientHeight,p=n.scrollTarget,m=t>0,g=u-d-c,h=!1;g>t&&n.isBottom&&(r&&r(e),n.isBottom=!1),m&&n.isTop&&(i&&i(e),n.isTop=!1),m&&t>g?(a&&!n.isBottom&&a(e),p.scrollTop=u,h=!0,n.isBottom=!0):!m&&-t>c&&(l&&!n.isTop&&l(e),p.scrollTop=0,h=!0,n.isTop=!0),h&&n.cancelScroll(e)})),F(U(U(n)),"onWheel",(function(e){n.handleEventDelta(e,e.deltaY)})),F(U(U(n)),"onTouchStart",(function(e){n.touchStart=e.changedTouches[0].clientY})),F(U(U(n)),"onTouchMove",(function(e){var t=n.touchStart-e.changedTouches[0].clientY;n.handleEventDelta(e,t)})),F(U(U(n)),"getScrollTarget",(function(e){n.scrollTarget=e})),n}return H(t,e),D(t,[{key:"componentDidMount",value:function(){this.startListening(this.scrollTarget)}},{key:"componentWillUnmount",value:function(){this.stopListening(this.scrollTarget)}},{key:"startListening",value:function(e){e&&(e.scrollHeight<=e.clientHeight||("function"==typeof e.addEventListener&&e.addEventListener("wheel",this.onWheel,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.addEventListener&&e.addEventListener("touchmove",this.onTouchMove,!1)))}},{key:"stopListening",value:function(e){e.scrollHeight<=e.clientHeight||("function"==typeof e.removeEventListener&&e.removeEventListener("wheel",this.onWheel,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchstart",this.onTouchStart,!1),"function"==typeof e.removeEventListener&&e.removeEventListener("touchmove",this.onTouchMove,!1))}},{key:"render",value:function(){return i().createElement(we,{innerRef:this.getScrollTarget},this.props.children)}}]),t}(l.Component),Re=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=e.isEnabled,n=$(e,["isEnabled"]);return t?i().createElement(Ne,n):this.props.children}}]),t}(l.Component);F(Re,"defaultProps",{isEnabled:!0});var Le=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=t.isSearchable,o=t.isMulti,a=t.label,r=t.isDisabled;switch(e){case"menu":return"Use Up and Down to choose options".concat(r?"":", press Enter to select the currently focused option",", press Escape to exit the menu, press Tab to select the option and exit the menu.");case"input":return"".concat(a||"Select"," is focused ").concat(n?",type to refine list":"",", press Down to open the menu, ").concat(o?" press left to focus selected values":"");case"value":return"Use left and right to toggle between focused values, press Backspace to remove the currently focused value"}},Be=function(e,t){var n=t.value,o=t.isDisabled;if(n)switch(e){case"deselect-option":case"pop-value":case"remove-value":return"option ".concat(n,", deselected.");case"select-option":return"option ".concat(n,o?" is disabled. Select another option.":", selected.")}},De=function(e){return!!e.isDisabled},Fe=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.cx,a=e.isMulti,r=e.getStyles,l=e.hasValue;return i().createElement("div",{className:o(x(r("valueContainer",this.props)),{"value-container":!0,"value-container--is-multi":a,"value-container--has-value":l},n)},t)}}]),t}(l.Component),ze=function(e){var t=e.size,n=$(e,["size"]);return i().createElement("svg",z({height:t,width:t,viewBox:"0 0 20 20","aria-hidden":"true",focusable:"false",className:x({display:"inline-block",fill:"currentColor",lineHeight:1,stroke:"currentColor",strokeWidth:0})},n))},je=function(e){return i().createElement(ze,z({size:20},e),i().createElement("path",{d:"M14.348 14.849c-0.469 0.469-1.229 0.469-1.697 0l-2.651-3.030-2.651 3.029c-0.469 0.469-1.229 0.469-1.697 0-0.469-0.469-0.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-0.469-0.469-0.469-1.228 0-1.697s1.228-0.469 1.697 0l2.652 3.031 2.651-3.031c0.469-0.469 1.228-0.469 1.697 0s0.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c0.469 0.469 0.469 1.229 0 1.698z"}))},He=function(e){return i().createElement(ze,z({size:20},e),i().createElement("path",{d:"M4.516 7.548c0.436-0.446 1.043-0.481 1.576 0l3.908 3.747 3.908-3.747c0.533-0.481 1.141-0.446 1.574 0 0.436 0.445 0.408 1.197 0 1.615-0.406 0.418-4.695 4.502-4.695 4.502-0.217 0.223-0.502 0.335-0.787 0.335s-0.57-0.112-0.789-0.335c0 0-4.287-4.084-4.695-4.502s-0.436-1.17 0-1.615z"}))},We=function(e){var t=e.isFocused,n=e.theme,o=n.spacing.baseUnit,a=n.colors;return{label:"indicatorContainer",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*o,transition:"color 150ms",":hover":{color:t?a.neutral80:a.neutral40}}},Ve=We,$e=We,Ue="react-select-loading-indicator",Ze=!1,Ge=function(e){var t=e.color,n=e.delay,o=e.offset;return i().createElement("span",{className:x({animationDuration:"1s",animationDelay:"".concat(n,"ms"),animationIterationCount:"infinite",animationName:Ue,animationTimingFunction:"ease-in-out",backgroundColor:t,borderRadius:"1em",display:"inline-block",marginLeft:o?"1em":null,height:"1em",verticalAlign:"top",width:"1em"})})},qe=function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps,r=e.isFocused,l=e.isRtl,s=e.theme.colors,c=r?s.neutral80:s.neutral20;return Ze||(C("@keyframes ",Ue,"{0%,80%,100%{opacity:0;}40%{opacity:1;}};"),Ze=!0),i().createElement("div",z({},a,{className:n(x(o("loadingIndicator",e)),{indicator:!0,"loading-indicator":!0},t)}),i().createElement(Ge,{color:c,delay:0,offset:l}),i().createElement(Ge,{color:c,delay:160,offset:!0}),i().createElement(Ge,{color:c,delay:320,offset:!l}))};qe.defaultProps={size:4};var Ke=function(e){return{label:"input",background:0,border:0,fontSize:"inherit",opacity:e?0:1,outline:0,padding:0,color:"inherit"}},Je=function(e){var t=e.children,n=e.innerProps;return i().createElement("div",n,t)},Ye=Je,Xe=Je,Qe=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.innerProps;return i().createElement("div",n,t||i().createElement(je,{size:14}))}}]),t}(l.Component),et=function(e){function t(){return L(this,t),Z(this,W(t).apply(this,arguments))}return H(t,e),D(t,[{key:"render",value:function(){var e=this.props,t=e.children,n=e.className,o=e.components,a=e.cx,r=e.data,l=e.getStyles,s=e.innerProps,c=e.isDisabled,u=e.removeProps,d=e.selectProps,p=o.Container,m=o.Label,g=o.Remove,h=j({className:a(x(l("multiValue",this.props)),{"multi-value":!0,"multi-value--is-disabled":c},n)},s),b={className:a(x(l("multiValueLabel",this.props)),{"multi-value__label":!0},n)},f=j({className:a(x(l("multiValueRemove",this.props)),{"multi-value__remove":!0},n)},u);return i().createElement(p,{data:r,innerProps:h,selectProps:d},i().createElement(m,{data:r,innerProps:b,selectProps:d},t),i().createElement(g,{data:r,innerProps:f,selectProps:d}))}}]),t}(l.Component);F(et,"defaultProps",{cropWithEllipsis:!0});var tt={ClearIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps;return i().createElement("div",z({},r,{className:o(x(a("clearIndicator",e)),{indicator:!0,"clear-indicator":!0},n)}),t||i().createElement(je,null))},Control:function(e){var t=e.children,n=e.cx,o=e.getStyles,a=e.className,r=e.isDisabled,l=e.isFocused,s=e.innerRef,c=e.innerProps,u=e.menuIsOpen;return i().createElement("div",z({ref:s,className:n(x(o("control",e)),{control:!0,"control--is-disabled":r,"control--is-focused":l,"control--menu-is-open":u},a)},c),t)},DropdownIndicator:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps;return i().createElement("div",z({},r,{className:o(x(a("dropdownIndicator",e)),{indicator:!0,"dropdown-indicator":!0},n)}),t||i().createElement(He,null))},DownChevron:He,CrossIcon:je,Group:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.Heading,l=e.headingProps,s=e.label,c=e.theme,u=e.selectProps;return i().createElement("div",{className:o(x(a("group",e)),{group:!0},n)},i().createElement(r,z({},l,{selectProps:u,theme:c,getStyles:a,cx:o}),s),i().createElement("div",null,t))},GroupHeading:function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.theme,r=(e.selectProps,$(e,["className","cx","getStyles","theme","selectProps"]));return i().createElement("div",z({className:n(x(o("groupHeading",j({theme:a},r))),{"group-heading":!0},t)},r))},IndicatorsContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles;return i().createElement("div",{className:o(x(a("indicatorsContainer",e)),{indicators:!0},n)},t)},IndicatorSeparator:function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerProps;return i().createElement("span",z({},a,{className:n(x(o("indicatorSeparator",e)),{"indicator-separator":!0},t)}))},Input:function(e){var t=e.className,n=e.cx,o=e.getStyles,a=e.innerRef,r=e.isHidden,l=e.isDisabled,s=e.theme,c=(e.selectProps,$(e,["className","cx","getStyles","innerRef","isHidden","isDisabled","theme","selectProps"]));return i().createElement("div",{className:x(o("input",j({theme:s},c)))},i().createElement(T.A,z({className:n(null,{input:!0},t),inputRef:a,inputStyle:Ke(r),disabled:l},c)))},LoadingIndicator:qe,Menu:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerRef,l=e.innerProps,s=o(x(a("menu",e)),{menu:!0},n);return i().createElement("div",z({className:s},l,{ref:r}),t)},MenuList:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.isMulti,l=e.innerRef;return i().createElement("div",{className:o(x(a("menuList",e)),{"menu-list":!0,"menu-list--is-multi":r},n),ref:l},t)},MenuPortal:ue,LoadingMessage:ce,NoOptionsMessage:se,MultiValue:et,MultiValueContainer:Ye,MultiValueLabel:Xe,MultiValueRemove:Qe,Option:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.isDisabled,l=e.isFocused,s=e.isSelected,c=e.innerRef,u=e.innerProps;return i().createElement("div",z({ref:c,className:o(x(a("option",e)),{option:!0,"option--is-disabled":r,"option--is-focused":l,"option--is-selected":s},n)},u),t)},Placeholder:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps;return i().createElement("div",z({className:o(x(a("placeholder",e)),{placeholder:!0},n)},r),t)},SelectContainer:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.innerProps,l=e.isDisabled,s=e.isRtl;return i().createElement("div",z({className:o(x(a("container",e)),{"--is-disabled":l,"--is-rtl":s},n)},r),t)},SingleValue:function(e){var t=e.children,n=e.className,o=e.cx,a=e.getStyles,r=e.isDisabled,l=e.innerProps;return i().createElement("div",z({className:o(x(a("singleValue",e)),{"single-value":!0,"single-value--is-disabled":r},n)},l),t)},ValueContainer:Fe},nt=function(e){return j({},tt,e.components)},ot={clearIndicator:$e,container:function(e){var t=e.isDisabled;return{label:"container",direction:e.isRtl?"rtl":null,pointerEvents:t?"none":null,position:"relative"}},control:function(e){var t=e.isDisabled,n=e.isFocused,o=e.theme,a=o.colors,r=o.borderRadius,l=o.spacing;return{label:"control",alignItems:"center",backgroundColor:t?a.neutral5:a.neutral0,borderColor:t?a.neutral10:n?a.primary:a.neutral20,borderRadius:r,borderStyle:"solid",borderWidth:1,boxShadow:n?"0 0 0 1px ".concat(a.primary):null,cursor:"default",display:"flex",flexWrap:"wrap",justifyContent:"space-between",minHeight:l.controlHeight,outline:"0 !important",position:"relative",transition:"all 100ms","&:hover":{borderColor:n?a.primary:a.neutral30}}},dropdownIndicator:Ve,group:function(e){var t=e.theme.spacing;return{paddingBottom:2*t.baseUnit,paddingTop:2*t.baseUnit}},groupHeading:function(e){var t=e.theme.spacing;return{label:"group",color:"#999",cursor:"default",display:"block",fontSize:"75%",fontWeight:"500",marginBottom:"0.25em",paddingLeft:3*t.baseUnit,paddingRight:3*t.baseUnit,textTransform:"uppercase"}},indicatorsContainer:function(){return{alignItems:"center",alignSelf:"stretch",display:"flex",flexShrink:0}},indicatorSeparator:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing.baseUnit,a=n.colors;return{label:"indicatorSeparator",alignSelf:"stretch",backgroundColor:t?a.neutral10:a.neutral20,marginBottom:2*o,marginTop:2*o,width:1}},input:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing,a=n.colors;return{margin:o.baseUnit/2,paddingBottom:o.baseUnit/2,paddingTop:o.baseUnit/2,visibility:t?"hidden":"visible",color:a.neutral80}},loadingIndicator:function(e){var t=e.isFocused,n=e.size,o=e.theme,a=o.colors,r=o.spacing.baseUnit;return{label:"loadingIndicator",color:t?a.neutral60:a.neutral20,display:"flex",padding:2*r,transition:"color 150ms",alignSelf:"center",fontSize:n,lineHeight:1,marginRight:n,textAlign:"center",verticalAlign:"middle"}},loadingMessage:ie,menu:function(e){var t,n=e.placement,o=e.theme,a=o.borderRadius,r=o.spacing,l=o.colors;return F(t={label:"menu"},function(e){return e?{bottom:"top",top:"bottom"}[e]:"bottom"}(n),"100%"),F(t,"backgroundColor",l.neutral0),F(t,"borderRadius",a),F(t,"boxShadow","0 0 0 1px hsla(0, 0%, 0%, 0.1), 0 4px 11px hsla(0, 0%, 0%, 0.1)"),F(t,"marginBottom",r.menuGutter),F(t,"marginTop",r.menuGutter),F(t,"position","absolute"),F(t,"width","100%"),F(t,"zIndex",1),t},menuList:function(e){var t=e.maxHeight,n=e.theme.spacing.baseUnit;return{maxHeight:t,overflowY:"auto",paddingBottom:n,paddingTop:n,position:"relative",WebkitOverflowScrolling:"touch"}},menuPortal:function(e){var t=e.rect,n=e.offset,o=e.position;return{left:t.left,position:o,top:n,width:t.width,zIndex:1}},multiValue:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius;return{label:"multiValue",backgroundColor:t.colors.neutral10,borderRadius:o/2,display:"flex",margin:n.baseUnit/2,minWidth:0}},multiValueLabel:function(e){var t=e.theme,n=t.borderRadius,o=t.colors,a=e.cropWithEllipsis;return{borderRadius:n/2,color:o.neutral80,fontSize:"85%",overflow:"hidden",padding:3,paddingLeft:6,textOverflow:a?"ellipsis":null,whiteSpace:"nowrap"}},multiValueRemove:function(e){var t=e.theme,n=t.spacing,o=t.borderRadius,a=t.colors;return{alignItems:"center",borderRadius:o/2,backgroundColor:e.isFocused&&a.dangerLight,display:"flex",paddingLeft:n.baseUnit,paddingRight:n.baseUnit,":hover":{backgroundColor:a.dangerLight,color:a.danger}}},noOptionsMessage:le,option:function(e){var t=e.isDisabled,n=e.isFocused,o=e.isSelected,a=e.theme,r=a.spacing,l=a.colors;return{label:"option",backgroundColor:o?l.primary:n?l.primary25:"transparent",color:t?l.neutral20:o?l.neutral0:"inherit",cursor:"default",display:"block",fontSize:"inherit",padding:"".concat(2*r.baseUnit,"px ").concat(3*r.baseUnit,"px"),width:"100%",userSelect:"none",WebkitTapHighlightColor:"rgba(0, 0, 0, 0)",":active":{backgroundColor:!t&&(o?l.primary:l.primary50)}}},placeholder:function(e){var t=e.theme,n=t.spacing;return{label:"placeholder",color:t.colors.neutral50,marginLeft:n.baseUnit/2,marginRight:n.baseUnit/2,position:"absolute",top:"50%",transform:"translateY(-50%)"}},singleValue:function(e){var t=e.isDisabled,n=e.theme,o=n.spacing,a=n.colors;return{label:"singleValue",color:t?a.neutral40:a.neutral80,marginLeft:o.baseUnit/2,marginRight:o.baseUnit/2,maxWidth:"calc(100% - ".concat(2*o.baseUnit,"px)"),overflow:"hidden",position:"absolute",textOverflow:"ellipsis",whiteSpace:"nowrap",top:"50%",transform:"translateY(-50%)"}},valueContainer:function(e){var t=e.theme.spacing;return{alignItems:"center",display:"flex",flex:1,flexWrap:"wrap",padding:"".concat(t.baseUnit/2,"px ").concat(2*t.baseUnit,"px"),WebkitOverflowScrolling:"touch",position:"relative",overflow:"hidden"}}},at={borderRadius:4,colors:{primary:"#2684FF",primary75:"#4C9AFF",primary50:"#B2D4FF",primary25:"#DEEBFF",danger:"#DE350B",dangerLight:"#FFBDAD",neutral0:"hsl(0, 0%, 100%)",neutral5:"hsl(0, 0%, 95%)",neutral10:"hsl(0, 0%, 90%)",neutral20:"hsl(0, 0%, 80%)",neutral30:"hsl(0, 0%, 70%)",neutral40:"hsl(0, 0%, 60%)",neutral50:"hsl(0, 0%, 50%)",neutral60:"hsl(0, 0%, 40%)",neutral70:"hsl(0, 0%, 30%)",neutral80:"hsl(0, 0%, 20%)",neutral90:"hsl(0, 0%, 10%)"},spacing:{baseUnit:4,controlHeight:38,menuGutter:8}},rt={backspaceRemovesValue:!0,blurInputOnSelect:ne(),captureMenuScroll:!ne(),closeMenuOnSelect:!0,closeMenuOnScroll:!1,components:{},controlShouldRenderValue:!0,escapeClearsValue:!1,filterOption:function(e,t){var n=j({ignoreCase:!0,ignoreAccents:!0,stringify:ye,trim:!0,matchFrom:"any"},undefined),o=n.ignoreCase,a=n.ignoreAccents,r=n.stringify,l=n.trim,i=n.matchFrom,s=l?ve(t):t,c=l?ve(r(e)):r(e);return o&&(s=s.toLowerCase(),c=c.toLowerCase()),a&&(s=fe(s),c=fe(c)),"start"===i?c.substr(0,s.length)===s:c.indexOf(s)>-1},formatGroupLabel:function(e){return e.label},getOptionLabel:function(e){return e.label},getOptionValue:function(e){return e.value},isDisabled:!1,isLoading:!1,isMulti:!1,isRtl:!1,isSearchable:!0,isOptionDisabled:De,loadingMessage:function(){return"Loading..."},maxMenuHeight:300,minMenuHeight:140,menuIsOpen:!1,menuPlacement:"bottom",menuPosition:"absolute",menuShouldBlockScroll:!1,menuShouldScrollIntoView:!function(){try{return/Android|webOS|iPhone|iPad|iPod|BlackBerry|IEMobile|Opera Mini/i.test(navigator.userAgent)}catch(e){return!1}}(),noOptionsMessage:function(){return"No options"},openMenuOnFocus:!1,openMenuOnClick:!0,options:[],pageSize:5,placeholder:"Select...",screenReaderStatus:function(e){var t=e.count;return"".concat(t," result").concat(1!==t?"s":""," available")},styles:{},tabIndex:"0",tabSelectsValue:!0},lt=1,it=function(e){function t(e){var n;L(this,t),F(U(U(n=Z(this,W(t).call(this,e)))),"state",{ariaLiveSelection:"",ariaLiveContext:"",focusedOption:null,focusedValue:null,inputIsHidden:!1,isFocused:!1,menuOptions:{render:[],focusable:[]},selectValue:[]}),F(U(U(n)),"blockOptionHover",!1),F(U(U(n)),"isComposing",!1),F(U(U(n)),"clearFocusValueOnUpdate",!1),F(U(U(n)),"commonProps",void 0),F(U(U(n)),"components",void 0),F(U(U(n)),"hasGroups",!1),F(U(U(n)),"initialTouchX",0),F(U(U(n)),"initialTouchY",0),F(U(U(n)),"inputIsHiddenAfterUpdate",void 0),F(U(U(n)),"instancePrefix",""),F(U(U(n)),"openAfterFocus",!1),F(U(U(n)),"scrollToFocusedOptionOnUpdate",!1),F(U(U(n)),"userIsDragging",void 0),F(U(U(n)),"controlRef",null),F(U(U(n)),"getControlRef",(function(e){n.controlRef=e})),F(U(U(n)),"focusedOptionRef",null),F(U(U(n)),"getFocusedOptionRef",(function(e){n.focusedOptionRef=e})),F(U(U(n)),"menuListRef",null),F(U(U(n)),"getMenuListRef",(function(e){n.menuListRef=e})),F(U(U(n)),"inputRef",null),F(U(U(n)),"getInputRef",(function(e){n.inputRef=e})),F(U(U(n)),"cacheComponents",(function(e){n.components=nt({components:e})})),F(U(U(n)),"focus",n.focusInput),F(U(U(n)),"blur",n.blurInput),F(U(U(n)),"onChange",(function(e,t){var o=n.props;(0,o.onChange)(e,j({},t,{name:o.name}))})),F(U(U(n)),"setValue",(function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"set-value",o=arguments.length>2?arguments[2]:void 0,a=n.props,r=a.closeMenuOnSelect,l=a.isMulti;n.onInputChange("",{action:"set-value"}),r&&(n.inputIsHiddenAfterUpdate=!l,n.onMenuClose()),n.clearFocusValueOnUpdate=!0,n.onChange(e,{action:t,option:o})})),F(U(U(n)),"selectOption",(function(e){var t=n.props,o=t.blurInputOnSelect,a=t.isMulti,r=n.state.selectValue;if(a)if(n.isOptionSelected(e,r)){var l=n.getOptionValue(e);n.setValue(r.filter((function(e){return n.getOptionValue(e)!==l})),"deselect-option",e),n.announceAriaLiveSelection({event:"deselect-option",context:{value:n.getOptionLabel(e)}})}else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue([].concat(G(r),[e]),"select-option",e),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));else n.isOptionDisabled(e,r)?n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e),isDisabled:!0}}):(n.setValue(e,"select-option"),n.announceAriaLiveSelection({event:"select-option",context:{value:n.getOptionLabel(e)}}));o&&n.blurInput()})),F(U(U(n)),"removeValue",(function(e){var t=n.state.selectValue,o=n.getOptionValue(e);n.onChange(t.filter((function(e){return n.getOptionValue(e)!==o})),{action:"remove-value",removedValue:e}),n.announceAriaLiveSelection({event:"remove-value",context:{value:e?n.getOptionLabel(e):""}}),n.focusInput()})),F(U(U(n)),"clearValue",(function(){var e=n.props.isMulti;n.onChange(e?[]:null,{action:"clear"})})),F(U(U(n)),"popValue",(function(){var e=n.state.selectValue,t=e[e.length-1];n.announceAriaLiveSelection({event:"pop-value",context:{value:t?n.getOptionLabel(t):""}}),n.onChange(e.slice(0,e.length-1),{action:"pop-value",removedValue:t})})),F(U(U(n)),"getOptionLabel",(function(e){return n.props.getOptionLabel(e)})),F(U(U(n)),"getOptionValue",(function(e){return n.props.getOptionValue(e)})),F(U(U(n)),"getStyles",(function(e,t){var o=ot[e](t);o.boxSizing="border-box";var a=n.props.styles[e];return a?a(o,t):o})),F(U(U(n)),"getElementId",(function(e){return"".concat(n.instancePrefix,"-").concat(e)})),F(U(U(n)),"getActiveDescendentId",(function(){var e=n.props.menuIsOpen,t=n.state,o=t.menuOptions,a=t.focusedOption;if(a&&e){var r=o.focusable.indexOf(a),l=o.render[r];return l&&l.key}})),F(U(U(n)),"announceAriaLiveSelection",(function(e){var t=e.event,o=e.context;n.setState({ariaLiveSelection:Be(t,o)})})),F(U(U(n)),"announceAriaLiveContext",(function(e){var t=e.event,o=e.context;n.setState({ariaLiveContext:Le(t,j({},o,{label:n.props["aria-label"]}))})})),F(U(U(n)),"onMenuMouseDown",(function(e){0===e.button&&(e.stopPropagation(),e.preventDefault(),n.focusInput())})),F(U(U(n)),"onMenuMouseMove",(function(e){n.blockOptionHover=!1})),F(U(U(n)),"onControlMouseDown",(function(e){var t=n.props.openMenuOnClick;n.state.isFocused?n.props.menuIsOpen?"INPUT"!==e.target.tagName&&n.onMenuClose():t&&n.openMenu("first"):(t&&(n.openAfterFocus=!0),n.focusInput()),"INPUT"!==e.target.tagName&&e.preventDefault()})),F(U(U(n)),"onDropdownIndicatorMouseDown",(function(e){if(!(e&&"mousedown"===e.type&&0!==e.button||n.props.isDisabled)){var t=n.props,o=t.isMulti,a=t.menuIsOpen;n.focusInput(),a?(n.inputIsHiddenAfterUpdate=!o,n.onMenuClose()):n.openMenu("first"),e.preventDefault(),e.stopPropagation()}})),F(U(U(n)),"onClearIndicatorMouseDown",(function(e){e&&"mousedown"===e.type&&0!==e.button||(n.clearValue(),e.stopPropagation(),n.openAfterFocus=!1,setTimeout((function(){return n.focusInput()})))})),F(U(U(n)),"onScroll",(function(e){"boolean"==typeof n.props.closeMenuOnScroll?e.target instanceof HTMLElement&&X(e.target)&&n.props.onMenuClose():"function"==typeof n.props.closeMenuOnScroll&&n.props.closeMenuOnScroll(e)&&n.props.onMenuClose()})),F(U(U(n)),"onCompositionStart",(function(){n.isComposing=!0})),F(U(U(n)),"onCompositionEnd",(function(){n.isComposing=!1})),F(U(U(n)),"onTouchStart",(function(e){var t=e.touches.item(0);t&&(n.initialTouchX=t.clientX,n.initialTouchY=t.clientY,n.userIsDragging=!1)})),F(U(U(n)),"onTouchMove",(function(e){var t=e.touches.item(0);if(t){var o=Math.abs(t.clientX-n.initialTouchX),a=Math.abs(t.clientY-n.initialTouchY);n.userIsDragging=o>5||a>5}})),F(U(U(n)),"onTouchEnd",(function(e){n.userIsDragging||(n.controlRef&&!n.controlRef.contains(e.target)&&n.menuListRef&&!n.menuListRef.contains(e.target)&&n.blurInput(),n.initialTouchX=0,n.initialTouchY=0)})),F(U(U(n)),"onControlTouchEnd",(function(e){n.userIsDragging||n.onControlMouseDown(e)})),F(U(U(n)),"onClearIndicatorTouchEnd",(function(e){n.userIsDragging||n.onClearIndicatorMouseDown(e)})),F(U(U(n)),"onDropdownIndicatorTouchEnd",(function(e){n.userIsDragging||n.onDropdownIndicatorMouseDown(e)})),F(U(U(n)),"handleInputChange",(function(e){var t=e.currentTarget.value;n.inputIsHiddenAfterUpdate=!1,n.onInputChange(t,{action:"input-change"}),n.onMenuOpen()})),F(U(U(n)),"onInputFocus",(function(e){var t=n.props,o=t.isSearchable,a=t.isMulti;n.props.onFocus&&n.props.onFocus(e),n.inputIsHiddenAfterUpdate=!1,n.announceAriaLiveContext({event:"input",context:{isSearchable:o,isMulti:a}}),n.setState({isFocused:!0}),(n.openAfterFocus||n.props.openMenuOnFocus)&&n.openMenu("first"),n.openAfterFocus=!1})),F(U(U(n)),"onInputBlur",(function(e){n.menuListRef&&n.menuListRef.contains(document.activeElement)?n.inputRef.focus():(n.props.onBlur&&n.props.onBlur(e),n.onInputChange("",{action:"input-blur"}),n.onMenuClose(),n.setState({focusedValue:null,isFocused:!1}))})),F(U(U(n)),"onOptionHover",(function(e){n.blockOptionHover||n.state.focusedOption===e||n.setState({focusedOption:e})})),F(U(U(n)),"shouldHideSelectedOptions",(function(){var e=n.props,t=e.hideSelectedOptions,o=e.isMulti;return void 0===t?o:t})),F(U(U(n)),"onKeyDown",(function(e){var t=n.props,o=t.isMulti,a=t.backspaceRemovesValue,r=t.escapeClearsValue,l=t.inputValue,i=t.isClearable,s=t.isDisabled,c=t.menuIsOpen,u=t.onKeyDown,d=t.tabSelectsValue,p=t.openMenuOnFocus,m=n.state,g=m.focusedOption,h=m.focusedValue,b=m.selectValue;if(!(s||"function"==typeof u&&(u(e),e.defaultPrevented))){switch(n.blockOptionHover=!0,e.key){case"ArrowLeft":if(!o||l)return;n.focusValue("previous");break;case"ArrowRight":if(!o||l)return;n.focusValue("next");break;case"Delete":case"Backspace":if(l)return;if(h)n.removeValue(h);else{if(!a)return;o?n.popValue():i&&n.clearValue()}break;case"Tab":if(n.isComposing)return;if(e.shiftKey||!c||!d||!g||p&&n.isOptionSelected(g,b))return;n.selectOption(g);break;case"Enter":if(229===e.keyCode)break;if(c){if(!g)return;if(n.isComposing)return;n.selectOption(g);break}return;case"Escape":c?(n.inputIsHiddenAfterUpdate=!1,n.onInputChange("",{action:"menu-close"}),n.onMenuClose()):i&&r&&n.clearValue();break;case" ":if(l)return;if(!c){n.openMenu("first");break}if(!g)return;n.selectOption(g);break;case"ArrowUp":c?n.focusOption("up"):n.openMenu("last");break;case"ArrowDown":c?n.focusOption("down"):n.openMenu("first");break;case"PageUp":if(!c)return;n.focusOption("pageup");break;case"PageDown":if(!c)return;n.focusOption("pagedown");break;case"Home":if(!c)return;n.focusOption("first");break;case"End":if(!c)return;n.focusOption("last");break;default:return}e.preventDefault()}}));var o=e.value;n.cacheComponents=u(n.cacheComponents,he).bind(U(U(n))),n.cacheComponents(e.components),n.instancePrefix="react-select-"+(n.props.instanceId||++lt);var a=Y(o),r=n.buildMenuOptions(e,a);return n.state.menuOptions=r,n.state.selectValue=a,n}return H(t,e),D(t,[{key:"componentDidMount",value:function(){this.startListeningComposition(),this.startListeningToTouch(),this.props.closeMenuOnScroll&&document&&document.addEventListener&&document.addEventListener("scroll",this.onScroll,!0),this.props.autoFocus&&this.focusInput()}},{key:"componentWillReceiveProps",value:function(e){var t=this.props,n=t.options,o=t.value,a=t.inputValue;if(this.cacheComponents(e.components),e.value!==o||e.options!==n||e.inputValue!==a){var r=Y(e.value),l=this.buildMenuOptions(e,r),i=this.getNextFocusedValue(r),s=this.getNextFocusedOption(l.focusable);this.setState({menuOptions:l,selectValue:r,focusedOption:s,focusedValue:i})}null!=this.inputIsHiddenAfterUpdate&&(this.setState({inputIsHidden:this.inputIsHiddenAfterUpdate}),delete this.inputIsHiddenAfterUpdate)}},{key:"componentDidUpdate",value:function(e){var t,n,o,a,r,l=this.props,i=l.isDisabled,s=l.menuIsOpen,c=this.state.isFocused;(c&&!i&&e.isDisabled||c&&s&&!e.menuIsOpen)&&this.focusInput(),this.menuListRef&&this.focusedOptionRef&&this.scrollToFocusedOptionOnUpdate&&(t=this.menuListRef,n=this.focusedOptionRef,o=t.getBoundingClientRect(),a=n.getBoundingClientRect(),r=n.offsetHeight/3,a.bottom+r>o.bottom?ee(t,Math.min(n.offsetTop+n.clientHeight-t.offsetHeight+r,t.scrollHeight)):a.top-r<o.top&&ee(t,Math.max(n.offsetTop-r,0))),this.scrollToFocusedOptionOnUpdate=!1}},{key:"componentWillUnmount",value:function(){this.stopListeningComposition(),this.stopListeningToTouch(),document.removeEventListener("scroll",this.onScroll,!0)}},{key:"onMenuOpen",value:function(){this.props.onMenuOpen()}},{key:"onMenuClose",value:function(){var e=this.props,t=e.isSearchable,n=e.isMulti;this.announceAriaLiveContext({event:"input",context:{isSearchable:t,isMulti:n}}),this.onInputChange("",{action:"menu-close"}),this.props.onMenuClose()}},{key:"onInputChange",value:function(e,t){this.props.onInputChange(e,t)}},{key:"focusInput",value:function(){this.inputRef&&this.inputRef.focus()}},{key:"blurInput",value:function(){this.inputRef&&this.inputRef.blur()}},{key:"openMenu",value:function(e){var t=this.state,n=t.menuOptions,o=t.selectValue,a=t.isFocused,r=this.props.isMulti,l="first"===e?0:n.focusable.length-1;if(!r){var i=n.focusable.indexOf(o[0]);i>-1&&(l=i)}this.scrollToFocusedOptionOnUpdate=!(a&&this.menuListRef),this.inputIsHiddenAfterUpdate=!1,this.onMenuOpen(),this.setState({focusedValue:null,focusedOption:n.focusable[l]}),this.announceAriaLiveContext({event:"menu"})}},{key:"focusValue",value:function(e){var t=this.props,n=t.isMulti,o=t.isSearchable,a=this.state,r=a.selectValue,l=a.focusedValue;if(n){this.setState({focusedOption:null});var i=r.indexOf(l);l||(i=-1,this.announceAriaLiveContext({event:"value"}));var s=r.length-1,c=-1;if(r.length){switch(e){case"previous":c=0===i?0:-1===i?s:i-1;break;case"next":i>-1&&i<s&&(c=i+1)}-1===c&&this.announceAriaLiveContext({event:"input",context:{isSearchable:o,isMulti:n}}),this.setState({inputIsHidden:-1!==c,focusedValue:r[c]})}}}},{key:"focusOption",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"first",t=this.props.pageSize,n=this.state,o=n.focusedOption,a=n.menuOptions.focusable;if(a.length){var r=0,l=a.indexOf(o);o||(l=-1,this.announceAriaLiveContext({event:"menu"})),"up"===e?r=l>0?l-1:a.length-1:"down"===e?r=(l+1)%a.length:"pageup"===e?(r=l-t)<0&&(r=0):"pagedown"===e?(r=l+t)>a.length-1&&(r=a.length-1):"last"===e&&(r=a.length-1),this.scrollToFocusedOptionOnUpdate=!0,this.setState({focusedOption:a[r],focusedValue:null}),this.announceAriaLiveContext({event:"menu",context:{isDisabled:De(a[r])}})}}},{key:"getTheme",value:function(){return this.props.theme?"function"==typeof this.props.theme?this.props.theme(at):j({},at,this.props.theme):at}},{key:"getCommonProps",value:function(){var e=this.clearValue,t=this.getStyles,n=this.setValue,o=this.selectOption,a=this.props,r=a.classNamePrefix,l=a.isMulti,i=a.isRtl,s=a.options,c=this.state.selectValue,u=this.hasValue();return{cx:J.bind(null,r),clearValue:e,getStyles:t,getValue:function(){return c},hasValue:u,isMulti:l,isRtl:i,options:s,selectOption:o,setValue:n,selectProps:a,theme:this.getTheme()}}},{key:"getNextFocusedValue",value:function(e){if(this.clearFocusValueOnUpdate)return this.clearFocusValueOnUpdate=!1,null;var t=this.state,n=t.focusedValue,o=t.selectValue.indexOf(n);if(o>-1){if(e.indexOf(n)>-1)return n;if(o<e.length)return e[o]}return null}},{key:"getNextFocusedOption",value:function(e){var t=this.state.focusedOption;return t&&e.indexOf(t)>-1?t:e[0]}},{key:"hasValue",value:function(){return this.state.selectValue.length>0}},{key:"hasOptions",value:function(){return!!this.state.menuOptions.render.length}},{key:"countOptions",value:function(){return this.state.menuOptions.focusable.length}},{key:"isClearable",value:function(){var e=this.props,t=e.isClearable,n=e.isMulti;return void 0===t?n:t}},{key:"isOptionDisabled",value:function(e,t){return"function"==typeof this.props.isOptionDisabled&&this.props.isOptionDisabled(e,t)}},{key:"isOptionSelected",value:function(e,t){var n=this;if(t.indexOf(e)>-1)return!0;if("function"==typeof this.props.isOptionSelected)return this.props.isOptionSelected(e,t);var o=this.getOptionValue(e);return t.some((function(e){return n.getOptionValue(e)===o}))}},{key:"filterOption",value:function(e,t){return!this.props.filterOption||this.props.filterOption(e,t)}},{key:"formatOptionLabel",value:function(e,t){if("function"==typeof this.props.formatOptionLabel){var n=this.props.inputValue,o=this.state.selectValue;return this.props.formatOptionLabel(e,{context:t,inputValue:n,selectValue:o})}return this.getOptionLabel(e)}},{key:"formatGroupLabel",value:function(e){return this.props.formatGroupLabel(e)}},{key:"startListeningComposition",value:function(){document&&document.addEventListener&&(document.addEventListener("compositionstart",this.onCompositionStart,!1),document.addEventListener("compositionend",this.onCompositionEnd,!1))}},{key:"stopListeningComposition",value:function(){document&&document.removeEventListener&&(document.removeEventListener("compositionstart",this.onCompositionStart),document.removeEventListener("compositionend",this.onCompositionEnd))}},{key:"startListeningToTouch",value:function(){document&&document.addEventListener&&(document.addEventListener("touchstart",this.onTouchStart,!1),document.addEventListener("touchmove",this.onTouchMove,!1),document.addEventListener("touchend",this.onTouchEnd,!1))}},{key:"stopListeningToTouch",value:function(){document&&document.removeEventListener&&(document.removeEventListener("touchstart",this.onTouchStart),document.removeEventListener("touchmove",this.onTouchMove),document.removeEventListener("touchend",this.onTouchEnd))}},{key:"buildMenuOptions",value:function(e,t){var n=this,o=e.inputValue,a=void 0===o?"":o,r=e.options,l=function(e,o){var r=n.isOptionDisabled(e,t),l=n.isOptionSelected(e,t),i=n.getOptionLabel(e),s=n.getOptionValue(e);if(!(n.shouldHideSelectedOptions()&&l||!n.filterOption({label:i,value:s,data:e},a))){var c=r?void 0:function(){return n.onOptionHover(e)},u=r?void 0:function(){return n.selectOption(e)},d="".concat(n.getElementId("option"),"-").concat(o);return{innerProps:{id:d,onClick:u,onMouseMove:c,onMouseOver:c,tabIndex:-1},data:e,isDisabled:r,isSelected:l,key:d,label:i,type:"option",value:s}}};return r.reduce((function(e,t,o){if(t.options){n.hasGroups||(n.hasGroups=!0);var a=t.options.map((function(t,n){var a=l(t,"".concat(o,"-").concat(n));return a&&e.focusable.push(t),a})).filter(Boolean);if(a.length){var r="".concat(n.getElementId("group"),"-").concat(o);e.render.push({type:"group",key:r,data:t,options:a})}}else{var i=l(t,"".concat(o));i&&(e.render.push(i),e.focusable.push(t))}return e}),{render:[],focusable:[]})}},{key:"constructAriaLiveMessage",value:function(){var e=this.state,t=e.ariaLiveContext,n=e.selectValue,o=e.focusedValue,a=e.focusedOption,r=this.props,l=r.options,i=r.menuIsOpen,s=r.inputValue,c=r.screenReaderStatus,u=o?function(e){var t=e.focusedValue,n=e.selectValue;return"value ".concat((0,e.getOptionLabel)(t)," focused, ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedValue:o,getOptionLabel:this.getOptionLabel,selectValue:n}):"",d=a&&i?function(e){var t=e.focusedOption,n=e.options;return"option ".concat((0,e.getOptionLabel)(t)," focused").concat(t.isDisabled?" disabled":"",", ").concat(n.indexOf(t)+1," of ").concat(n.length,".")}({focusedOption:a,getOptionLabel:this.getOptionLabel,options:l}):"",p=function(e){var t=e.inputValue;return"".concat(e.screenReaderMessage).concat(t?" for search term "+t:"",".")}({inputValue:s,screenReaderMessage:c({count:this.countOptions()})});return"".concat(u," ").concat(d," ").concat(p," ").concat(t)}},{key:"renderInput",value:function(){var e=this.props,t=e.isDisabled,n=e.isSearchable,o=e.inputId,a=e.inputValue,r=e.tabIndex,l=this.components.Input,s=this.state.inputIsHidden,c=o||this.getElementId("input");if(!n)return i().createElement(Ee,{id:c,innerRef:this.getInputRef,onBlur:this.onInputBlur,onChange:q,onFocus:this.onInputFocus,readOnly:!0,disabled:t,tabIndex:r,value:""});var u={"aria-autocomplete":"list","aria-label":this.props["aria-label"],"aria-labelledby":this.props["aria-labelledby"]},d=this.commonProps,p=d.cx,m=d.theme,g=d.selectProps;return i().createElement(l,z({autoCapitalize:"none",autoComplete:"off",autoCorrect:"off",cx:p,getStyles:this.getStyles,id:c,innerRef:this.getInputRef,isDisabled:t,isHidden:s,onBlur:this.onInputBlur,onChange:this.handleInputChange,onFocus:this.onInputFocus,selectProps:g,spellCheck:"false",tabIndex:r,theme:m,type:"text",value:a},u))}},{key:"renderPlaceholderOrValue",value:function(){var e=this,t=this.components,n=t.MultiValue,o=t.MultiValueContainer,a=t.MultiValueLabel,r=t.MultiValueRemove,l=t.SingleValue,s=t.Placeholder,c=this.commonProps,u=this.props,d=u.controlShouldRenderValue,p=u.isDisabled,m=u.isMulti,g=u.inputValue,h=u.placeholder,b=this.state,f=b.selectValue,v=b.focusedValue,y=b.isFocused;if(!this.hasValue()||!d)return g?null:i().createElement(s,z({},c,{key:"placeholder",isDisabled:p,isFocused:y}),h);if(m)return f.map((function(t){var l=t===v;return i().createElement(n,z({},c,{components:{Container:o,Label:a,Remove:r},isFocused:l,isDisabled:p,key:e.getOptionValue(t),removeProps:{onClick:function(){return e.removeValue(t)},onTouchEnd:function(){return e.removeValue(t)},onMouseDown:function(e){e.preventDefault(),e.stopPropagation()}},data:t}),e.formatOptionLabel(t,"value"))}));if(g)return null;var k=f[0];return i().createElement(l,z({},c,{data:k,isDisabled:p}),this.formatOptionLabel(k,"value"))}},{key:"renderClearIndicator",value:function(){var e=this.components.ClearIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,r=this.state.isFocused;if(!this.isClearable()||!e||o||!this.hasValue()||a)return null;var l={onMouseDown:this.onClearIndicatorMouseDown,onTouchEnd:this.onClearIndicatorTouchEnd,"aria-hidden":"true"};return i().createElement(e,z({},t,{innerProps:l,isFocused:r}))}},{key:"renderLoadingIndicator",value:function(){var e=this.components.LoadingIndicator,t=this.commonProps,n=this.props,o=n.isDisabled,a=n.isLoading,r=this.state.isFocused;return e&&a?i().createElement(e,z({},t,{innerProps:{"aria-hidden":"true"},isDisabled:o,isFocused:r})):null}},{key:"renderIndicatorSeparator",value:function(){var e=this.components,t=e.DropdownIndicator,n=e.IndicatorSeparator;if(!t||!n)return null;var o=this.commonProps,a=this.props.isDisabled,r=this.state.isFocused;return i().createElement(n,z({},o,{isDisabled:a,isFocused:r}))}},{key:"renderDropdownIndicator",value:function(){var e=this.components.DropdownIndicator;if(!e)return null;var t=this.commonProps,n=this.props.isDisabled,o=this.state.isFocused,a={onMouseDown:this.onDropdownIndicatorMouseDown,onTouchEnd:this.onDropdownIndicatorTouchEnd,"aria-hidden":"true"};return i().createElement(e,z({},t,{innerProps:a,isDisabled:n,isFocused:o}))}},{key:"renderMenu",value:function(){var e=this,t=this.components,n=t.Group,o=t.GroupHeading,a=t.Menu,r=t.MenuList,l=t.MenuPortal,s=t.LoadingMessage,c=t.NoOptionsMessage,u=t.Option,d=this.commonProps,p=this.state,m=p.focusedOption,g=p.menuOptions,h=this.props,b=h.captureMenuScroll,f=h.inputValue,v=h.isLoading,y=h.loadingMessage,k=h.minMenuHeight,E=h.maxMenuHeight,w=h.menuIsOpen,_=h.menuPlacement,S=h.menuPosition,C=h.menuPortalTarget,x=h.menuShouldBlockScroll,I=h.menuShouldScrollIntoView,O=h.noOptionsMessage,A=h.onMenuScrollToTop,M=h.onMenuScrollToBottom;if(!w)return null;var P,T=function(t){var n=m===t.data;return t.innerRef=n?e.getFocusedOptionRef:void 0,i().createElement(u,z({},d,t,{isFocused:n}),e.formatOptionLabel(t.data,"menu"))};if(this.hasOptions())P=g.render.map((function(t){if("group"===t.type){t.type;var a=$(t,["type"]),r="".concat(t.key,"-heading");return i().createElement(n,z({},d,a,{Heading:o,headingProps:{id:r},label:e.formatGroupLabel(t.data)}),t.options.map((function(e){return T(e)})))}if("option"===t.type)return T(t)}));else if(v){var N=y({inputValue:f});if(null===N)return null;P=i().createElement(s,d,N)}else{var R=O({inputValue:f});if(null===R)return null;P=i().createElement(c,d,R)}var L={minMenuHeight:k,maxMenuHeight:E,menuPlacement:_,menuPosition:S,menuShouldScrollIntoView:I},B=i().createElement(ae,z({},d,L),(function(t){var n=t.ref,o=t.placerProps,l=o.placement,s=o.maxHeight;return i().createElement(a,z({},d,L,{innerRef:n,innerProps:{onMouseDown:e.onMenuMouseDown,onMouseMove:e.onMenuMouseMove},isLoading:v,placement:l}),i().createElement(Re,{isEnabled:b,onTopArrive:A,onBottomArrive:M},i().createElement(Te,{isEnabled:x},i().createElement(r,z({},d,{innerRef:e.getMenuListRef,isLoading:v,maxHeight:s}),P))))}));return C||"fixed"===S?i().createElement(l,z({},d,{appendTo:C,controlElement:this.controlRef,menuPlacement:_,menuPosition:S}),B):B}},{key:"renderFormField",value:function(){var e=this,t=this.props,n=t.delimiter,o=t.isDisabled,a=t.isMulti,r=t.name,l=this.state.selectValue;if(r&&!o){if(a){if(n){var s=l.map((function(t){return e.getOptionValue(t)})).join(n);return i().createElement("input",{name:r,type:"hidden",value:s})}var c=l.length>0?l.map((function(t,n){return i().createElement("input",{key:"i-".concat(n),name:r,type:"hidden",value:e.getOptionValue(t)})})):i().createElement("input",{name:r,type:"hidden"});return i().createElement("div",null,c)}var u=l[0]?this.getOptionValue(l[0]):"";return i().createElement("input",{name:r,type:"hidden",value:u})}}},{key:"renderLiveRegion",value:function(){return this.state.isFocused?i().createElement(ke,{"aria-live":"assertive"},i().createElement("p",{id:"aria-selection-event"}," ",this.state.ariaLiveSelection),i().createElement("p",{id:"aria-context"}," ",this.constructAriaLiveMessage())):null}},{key:"render",value:function(){var e=this.components,t=e.Control,n=e.IndicatorsContainer,o=e.SelectContainer,a=e.ValueContainer,r=this.props,l=r.className,s=r.id,c=r.isDisabled,u=r.menuIsOpen,d=this.state.isFocused,p=this.commonProps=this.getCommonProps();return i().createElement(o,z({},p,{className:l,innerProps:{id:s,onKeyDown:this.onKeyDown},isDisabled:c,isFocused:d}),this.renderLiveRegion(),i().createElement(t,z({},p,{innerRef:this.getControlRef,innerProps:{onMouseDown:this.onControlMouseDown,onTouchEnd:this.onControlTouchEnd},isDisabled:c,isFocused:d,menuIsOpen:u}),i().createElement(a,z({},p,{isDisabled:c}),this.renderPlaceholderOrValue(),this.renderInput()),i().createElement(n,z({},p,{isDisabled:c}),this.renderClearIndicator(),this.renderLoadingIndicator(),this.renderIndicatorSeparator(),this.renderDropdownIndicator())),this.renderMenu(),this.renderFormField())}}]),t}(l.Component);F(it,"defaultProps",rt);var st={defaultInputValue:"",defaultMenuIsOpen:!1,defaultValue:null},ct=function(e){var t,n;return n=t=function(t){function n(){var e,t;L(this,n);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(t=Z(this,(e=W(n)).call.apply(e,[this].concat(a))))),"select",void 0),F(U(U(t)),"state",{inputValue:void 0!==t.props.inputValue?t.props.inputValue:t.props.defaultInputValue,menuIsOpen:void 0!==t.props.menuIsOpen?t.props.menuIsOpen:t.props.defaultMenuIsOpen,value:void 0!==t.props.value?t.props.value:t.props.defaultValue}),F(U(U(t)),"onChange",(function(e,n){t.callProp("onChange",e,n),t.setState({value:e})})),F(U(U(t)),"onInputChange",(function(e,n){var o=t.callProp("onInputChange",e,n);t.setState({inputValue:void 0!==o?o:e})})),F(U(U(t)),"onMenuOpen",(function(){t.callProp("onMenuOpen"),t.setState({menuIsOpen:!0})})),F(U(U(t)),"onMenuClose",(function(){t.callProp("onMenuClose"),t.setState({menuIsOpen:!1})})),t}return H(n,t),D(n,[{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"getProp",value:function(e){return void 0!==this.props[e]?this.props[e]:this.state[e]}},{key:"callProp",value:function(e){if("function"==typeof this.props[e]){for(var t,n=arguments.length,o=new Array(n>1?n-1:0),a=1;a<n;a++)o[a-1]=arguments[a];return(t=this.props)[e].apply(t,o)}}},{key:"render",value:function(){var t=this,n=this.props,o=(n.defaultInputValue,n.defaultMenuIsOpen,n.defaultValue,$(n,["defaultInputValue","defaultMenuIsOpen","defaultValue"]));return i().createElement(e,z({},o,{ref:function(e){t.select=e},inputValue:this.getProp("inputValue"),menuIsOpen:this.getProp("menuIsOpen"),onChange:this.onChange,onInputChange:this.onInputChange,onMenuClose:this.onMenuClose,onMenuOpen:this.onMenuOpen,value:this.getProp("value")}))}}]),n}(l.Component),F(t,"defaultProps",st),n},ut={cacheOptions:!1,defaultOptions:!1,filterOption:null},dt=function(e){var t,n;return n=t=function(t){function n(e){var t;return L(this,n),F(U(U(t=Z(this,W(n).call(this)))),"select",void 0),F(U(U(t)),"lastRequest",void 0),F(U(U(t)),"mounted",!1),F(U(U(t)),"optionsCache",{}),F(U(U(t)),"handleInputChange",(function(e,n){var o=t.props,a=o.cacheOptions,r=function(e,t,n){if(n){var o=n(e,t);if("string"==typeof o)return o}return e}(e,n,o.onInputChange);if(!r)return delete t.lastRequest,void t.setState({inputValue:"",loadedInputValue:"",loadedOptions:[],isLoading:!1,passEmptyOptions:!1});if(a&&t.optionsCache[r])t.setState({inputValue:r,loadedInputValue:r,loadedOptions:t.optionsCache[r],isLoading:!1,passEmptyOptions:!1});else{var l=t.lastRequest={};t.setState({inputValue:r,isLoading:!0,passEmptyOptions:!t.state.loadedInputValue},(function(){t.loadOptions(r,(function(e){t.mounted&&(e&&(t.optionsCache[r]=e),l===t.lastRequest&&(delete t.lastRequest,t.setState({isLoading:!1,loadedInputValue:r,loadedOptions:e||[],passEmptyOptions:!1})))}))}))}return r})),t.state={defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0,inputValue:void 0!==e.inputValue?e.inputValue:"",isLoading:!0===e.defaultOptions,loadedOptions:[],passEmptyOptions:!1},t}return H(n,t),D(n,[{key:"componentDidMount",value:function(){var e=this;this.mounted=!0;var t=this.props.defaultOptions,n=this.state.inputValue;!0===t&&this.loadOptions(n,(function(t){if(e.mounted){var n=!!e.lastRequest;e.setState({defaultOptions:t||[],isLoading:n})}}))}},{key:"componentWillReceiveProps",value:function(e){e.cacheOptions!==this.props.cacheOptions&&(this.optionsCache={}),e.defaultOptions!==this.props.defaultOptions&&this.setState({defaultOptions:Array.isArray(e.defaultOptions)?e.defaultOptions:void 0})}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"loadOptions",value:function(e,t){var n=this.props.loadOptions;if(!n)return t();var o=n(e,t);o&&"function"==typeof o.then&&o.then(t,(function(){return t()}))}},{key:"render",value:function(){var t=this,n=this.props,o=(n.loadOptions,$(n,["loadOptions"])),a=this.state,r=a.defaultOptions,l=a.inputValue,s=a.isLoading,c=a.loadedInputValue,u=a.loadedOptions,d=a.passEmptyOptions?[]:l&&c?u:r||[];return i().createElement(e,z({},o,{ref:function(e){t.select=e},options:d,isLoading:s,onInputChange:this.handleInputChange}))}}]),n}(l.Component),F(t,"defaultProps",ut),n},pt=(dt(ct(it)),function(){var e=arguments.length>1?arguments[1]:void 0,t=String(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"").toLowerCase(),n=String(e.value).toLowerCase(),o=String(e.label).toLowerCase();return n===t||o===t}),mt=j({allowCreateWhileLoading:!1,createOptionPosition:"last"},{formatCreateLabel:function(e){return'Create "'.concat(e,'"')},isValidNewOption:function(e,t,n){return!(!e||t.some((function(t){return pt(e,t)}))||n.some((function(t){return pt(e,t)})))},getNewOptionData:function(e,t){return{label:t,value:e,__isNew__:!0}}}),gt=function(e){var t,n;return n=t=function(t){function n(e){var t;L(this,n),F(U(U(t=Z(this,W(n).call(this,e)))),"select",void 0),F(U(U(t)),"onChange",(function(e,n){var o=t.props,a=o.getNewOptionData,r=o.inputValue,l=o.isMulti,i=o.onChange,s=o.onCreateOption,c=o.value;if("select-option"!==n.action)return i(e,n);var u=t.state.newOption,d=Array.isArray(e)?e:[e];if(d[d.length-1]!==u)i(e,n);else if(s)s(r);else{var p=a(r,r);i(l?[].concat(G(Y(c)),[p]):p,{action:"create-option"})}}));var o=e.options||[];return t.state={newOption:void 0,options:o},t}return H(n,t),D(n,[{key:"componentWillReceiveProps",value:function(e){var t=e.allowCreateWhileLoading,n=e.createOptionPosition,o=e.formatCreateLabel,a=e.getNewOptionData,r=e.inputValue,l=e.isLoading,i=e.isValidNewOption,s=e.value,c=e.options||[],u=this.state.newOption;u=i(r,Y(s),c)?a(r,o(r)):void 0,this.setState({newOption:u,options:!t&&l||!u?c:"first"===n?[u].concat(G(c)):[].concat(G(c),[u])})}},{key:"focus",value:function(){this.select.focus()}},{key:"blur",value:function(){this.select.blur()}},{key:"render",value:function(){var t=this,n=z({},this.props),o=this.state.options;return i().createElement(e,z({},n,{ref:function(e){t.select=e},options:o,onChange:this.onChange}))}}]),n}(l.Component),F(t,"defaultProps",mt),n},ht=ct(gt(it)),bt=(dt(ct(gt(it))),function(e){var t=e.component,n=e.duration,o=void 0===n?1:n,a=e.in,r=(e.onExited,$(e,["component","duration","in","onExited"])),l={entering:{opacity:0},entered:{opacity:1,transition:"opacity ".concat(o,"ms")},exiting:{opacity:0},exited:{opacity:0}};return i().createElement(N.Transition,{mountOnEnter:!0,unmountOnExit:!0,in:a,timeout:o},(function(e){var n={style:j({},l[e])};return i().createElement(t,z({innerProps:n},r))}))}),ft=function(e){function t(){var e,n;L(this,t);for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];return F(U(U(n=Z(this,(e=W(t)).call.apply(e,[this].concat(a))))),"duration",260),F(U(U(n)),"rafID",void 0),F(U(U(n)),"state",{width:"auto"}),F(U(U(n)),"transition",{exiting:{width:0,transition:"width ".concat(n.duration,"ms ease-out")},exited:{width:0}}),F(U(U(n)),"getWidth",(function(e){e&&isNaN(n.state.width)&&(n.rafID=window.requestAnimationFrame((function(){var t=e.getBoundingClientRect().width;n.setState({width:t})})))})),F(U(U(n)),"getStyle",(function(e){return{overflow:"hidden",whiteSpace:"nowrap",width:e}})),F(U(U(n)),"getTransition",(function(e){return n.transition[e]})),n}return H(t,e),D(t,[{key:"componentWillUnmount",value:function(){this.rafID&&window.cancelAnimationFrame(this.rafID)}},{key:"render",value:function(){var e=this,t=this.props,n=t.children,o=t.in,a=this.state.width;return i().createElement(N.Transition,{enter:!1,mountOnEnter:!0,unmountOnExit:!0,in:o,timeout:this.duration},(function(t){var o=j({},e.getStyle(a),e.getTransition(t));return i().createElement("div",{ref:e.getWidth,style:o},n)}))}}]),t}(l.Component),vt=function(e){return function(t){var n=t.in,o=t.onExited,a=$(t,["in","onExited"]);return i().createElement(ft,{in:n,onExited:o},i().createElement(e,z({cropWithEllipsis:n},a)))}},yt=function(e){return function(t){return i().createElement(bt,z({component:e,duration:t.isMulti?260:1},t))}},kt=function(e){return function(t){return i().createElement(bt,z({component:e},t))}},Et=function(e){return function(t){return i().createElement(N.TransitionGroup,z({component:e},t))}},wt=function(){var e,t=nt({components:arguments.length>0&&void 0!==arguments[0]?arguments[0]:{}}),n=t.Input,o=t.MultiValue,a=t.Placeholder,r=t.SingleValue,l=t.ValueContainer,s=$(t,["Input","MultiValue","Placeholder","SingleValue","ValueContainer"]);return j({Input:(e=n,function(t){t.in,t.onExited,t.appear,t.enter,t.exit;var n=$(t,["in","onExited","appear","enter","exit"]);return i().createElement(e,n)}),MultiValue:vt(o),Placeholder:yt(a),SingleValue:kt(r),ValueContainer:Et(l)},s)},_t=wt();_t.Input,_t.MultiValue,_t.Placeholder,_t.SingleValue,_t.ValueContainer,u(wt,he);const St=ct(it),Ct=window.lodash;var xt=n(2485),It=n.n(xt);const Ot=window.kadence.components,At=window.kadence.helpers,Mt=window.wp.apiFetch;var Pt=n.n(Mt);const Tt=window.wp.data,Nt=window.wp.element,Rt=window.wp.components,Lt=window.wp.hooks,Bt=window.wp.primitives,Dt=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"-2 -2 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6zM10 1c-5 0-9 4-9 9s4 9 9 9 9-4 9-9-4-9-9-9zm0 16c-3.9 0-7-3.1-7-7s3.1-7 7-7 7 3.1 7 7-3.1 7-7 7zm1-11H9v3H6v2h3v3h2v-3h3V9h-3V6z"})),Ft=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"m11.3 17.2-5-5c-.1-.1-.1-.3 0-.4l2.3-2.3-1.1-1-2.3 2.3c-.7.7-.7 1.8 0 2.5l5 5H7.5v1.5h5.3v-5.2h-1.5v2.6zm7.5-6.4-5-5h2.7V4.2h-5.2v5.2h1.5V6.8l5 5c.1.1.1.3 0 .4l-2.3 2.3 1.1 1.1 2.3-2.3c.6-.7.6-1.9-.1-2.5z"})),zt=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M13 11.8l6.1-6.3-1-1-6.1 6.2-6.1-6.2-1 1 6.1 6.3-6.5 6.7 1 1 6.5-6.6 6.5 6.6 1-1z"})),jt=window.wp.compose,Ht=(0,Nt.createElement)(Bt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Nt.createElement)(Bt.Path,{d:"M19 3H5c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2V5c0-1.1-.9-2-2-2zM5 4.5h14c.3 0 .5.2.5.5v8.4l-3-2.9c-.3-.3-.8-.3-1 0L11.9 14 9 12c-.3-.2-.6-.2-.8 0l-3.6 2.6V5c-.1-.3.1-.5.4-.5zm14 15H5c-.3 0-.5-.2-.5-.5v-2.4l4.1-3 3 1.9c.3.2.7.2.9-.1L16 12l3.5 3.4V19c0 .3-.2.5-.5.5z"})),Wt=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M10.8622 8.04053L14.2805 12.0286L10.8622 16.0167L9.72327 15.0405L12.3049 12.0286L9.72327 9.01672L10.8622 8.04053Z"})),Vt=window.wp.notices,$t=window.wp.a11y;var Ut=n(731),Zt=n.n(Ut);function Gt(e){return e.toLowerCase()}var qt=[/([a-z0-9])([A-Z])/g,/([A-Z])([A-Z][a-z])/g],Kt=/[^A-Z0-9]+/gi;function Jt(e,t,n){return t instanceof RegExp?e.replace(t,n):t.reduce((function(e,t){return e.replace(t,n)}),e)}const Yt=e=>e.name||"",Xt=e=>e.title,Qt=e=>e.description||"",en=e=>e.keywords||[],tn=e=>e.category,nn=()=>null;function on(e=""){return function(e,t){void 0===t&&(t={});for(var n=t.splitRegexp,o=void 0===n?qt:n,a=t.stripRegexp,r=void 0===a?Kt:a,l=t.transform,i=void 0===l?Gt:l,s=t.delimiter,c=void 0===s?" ":s,u=Jt(Jt(e,o,"$1\0$2"),r,"\0"),d=0,p=u.length;"\0"===u.charAt(d);)d++;for(;"\0"===u.charAt(p-1);)p--;return u.slice(d,p).split("\0").map(i).join(c)}(e,{splitRegexp:[/([\p{Ll}\p{Lo}\p{N}])([\p{Lu}\p{Lt}])/gu,/([\p{Lu}\p{Lt}])([\p{Lu}\p{Lt}][\p{Ll}\p{Lo}])/gu],stripRegexp:/(\p{C}|\p{P}|\p{S})+/giu}).split(" ").filter(Boolean)}function an(e=""){return e?e=(e=(e=Zt()(e)).replace(/^\//,"")).toLowerCase():e}const rn=(e="")=>on(an(e)),ln=(e=[],t="",n={})=>{if(!t)return e;if(0===rn(t).length)return e;const o=e.map((e=>[e,sn(e,t,n)])).filter((([,e])=>e>0));return o.sort((([,e],[,t])=>t-e)),o.map((([e])=>e))};function sn(e,t,n={}){const{getName:o=Yt,getTitle:a=Xt,getDescription:r=Qt,getKeywords:l=en,getCategory:i=tn,getCollection:s=nn}=n,c=o(e),u=a(e),d=r(e),p=l(e),m=i(e),g=s(e),h=an(t),b=an(u);let f=0;if(h===b)f+=30;else if(b.startsWith(h))f+=20;else{const e=[c,u,d,...p,m,g].join(" ");0===(v=on(h),y=e,v.filter((e=>!rn(y).some((t=>t.includes(e)))))).length&&(f+=10)}var v,y;return 0!==f&&c.startsWith("core/")&&(f+=c!==e.id?1:2),f}const cn=(e,t,n,o)=>{if(!e.includes(o))return"";const a=e.indexOf(t);if(!a)return"";const r=a+t.length;return e.substring(r,e.indexOf(n,r))},un=(e,t,n,o,a)=>{if(!e.includes(o))return"";const r=e.indexOf(t,a);if(!r)return"";const l=r+t.length,i=e.indexOf(n,l),s=e.substring(l,i);return s?s.includes(o)?s:un(e,t,n,o,i+n.length):""};function dn(e,t){if(!e)return e;if(!t)return e;if("dark"!==t&&"highlight"!==t)return e;e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replaceAll("logo-placeholder.png","logo-placeholder-white.png")).replaceAll("logo-placeholder-1.png","logo-placeholder-1-white.png")).replaceAll("logo-placeholder-2.png","logo-placeholder-2-white.png")).replaceAll("logo-placeholder-3.png","logo-placeholder-3-white.png")).replaceAll("logo-placeholder-4.png","logo-placeholder-4-white.png")).replaceAll("logo-placeholder-5.png","logo-placeholder-5-white.png")).replaceAll("logo-placeholder-6.png","logo-placeholder-6-white.png")).replaceAll("logo-placeholder-7.png","logo-placeholder-7-white.png")).replaceAll("logo-placeholder-8.png","logo-placeholder-8-white.png")).replaceAll("logo-placeholder-9.png","logo-placeholder-9-white.png")).replaceAll("logo-placeholder-10.png","logo-placeholder-10-white.png");const n=[];if("dark"===t){let t=cn(e,"wp:kadence/tabs","wp:kadence/tab","kb-pattern-active-tab-highlight");if(t){const n=t;t=t.replaceAll('"titleColorActive":"palette9"','"titleColorActive":"ph-kb-pal9"'),t=t.replaceAll('"titleColorHover":"palette9"','"titleColorHover":"ph-kb-pal9"'),e=e.replace(n,t)}let o=cn(e,"wp:kadence/rowlayout","wp:kadence/rowlayout","kb-divider-static");if(o){const t=o;o=o.replaceAll('"bottomSepColor":"palette9"','"bottomSepColor":"ph-kb-pal9"'),o=o.replaceAll('"bottomSepColor":"palette8"','"bottomSepColor":"ph-kb-pal8"'),o=o.replaceAll('"topSepColor":"palette9"','"topSepColor":"ph-kb-pal9"'),o=o.replaceAll('"topSepColor":"palette8"','"topSepColor":"ph-kb-pal8"'),e=e.replace(t,o)}let a=un(e,"\x3c!-- wp:kadence/column","kt-inside-inner-col","kb-pattern-light-color",0);if(a){const t=a;a=a.replaceAll('"textColor":"palette9"','"textColor":"ph-kb-pal9"'),a=a.replaceAll('"linkColor":"palette9"','"linkColor":"ph-kb-pal9"'),a=a.replaceAll('"linkHoverColor":"palette9"','"linkHoverColor":"ph-kb-pal9"'),e=e.replace(t,a)}n.push({from:"has-theme-palette-3",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-4",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-5",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-6",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-7",to:"ph-kb-class3"}),n.push({from:"has-theme-palette-8",to:"ph-kb-class3"}),n.push({from:"has-theme-palette-9",to:"ph-kb-class4"}),n.push({from:"theme-palette3",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette4",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette5",to:"ph-class-kb-pal7"}),n.push({from:"theme-palette6",to:"ph-class-kb-pal7"}),n.push({from:"theme-palette7",to:"ph-class-kb-pal3"}),n.push({from:"theme-palette8",to:"ph-class-kb-pal3"}),n.push({from:"theme-palette9",to:"ph-class-kb-pal4"}),n.push({from:"palette3",to:"ph-kb-pal9"}),n.push({from:"palette4",to:"ph-kb-pal8"}),n.push({from:"palette5",to:"ph-kb-pal7"}),n.push({from:"palette6",to:"ph-kb-pal7"}),n.push({from:"palette7",to:"ph-kb-pal3"}),n.push({from:"palette8",to:"ph-kb-pal3"}),n.push({from:"palette9",to:"ph-kb-pal4"})}else if("highlight"===t){let t=cn(e,'"submit":[{',"]}","wp:kadence/form");if(t){const n=t;t=t.replaceAll('"color":""','"color":"ph-kb-pal9"'),t=t.replaceAll('"background":""','"background":"ph-kb-pal3"'),t=t.replaceAll('"colorHover":""','"colorHover":"ph-kb-pal9"'),t=t.replaceAll('"backgroundHover":""','"backgroundHover":"ph-kb-pal4"'),e=e.replace(n,t)}let o=cn(e,"wp:kadence/rowlayout","wp:kadence/rowlayout","kb-divider-static");if(o){const t=o;o=o.replaceAll('"bottomSepColor":"palette9"','"bottomSepColor":"ph-kb-pal9"'),o=o.replaceAll('"bottomSepColor":"palette8"','"bottomSepColor":"ph-kb-pal8"'),o=o.replaceAll('"topSepColor":"palette9"','"topSepColor":"ph-kb-pal9"'),o=o.replaceAll('"topSepColor":"palette8"','"topSepColor":"ph-kb-pal8"'),e=e.replace(t,o)}e=(e=e.replaceAll('"inheritStyles":"inherit"','"color":"ph-kb-pal9","background":"ph-kb-pal3","colorHover":"ph-kb-pal9","backgroundHover":"ph-kb-pal4","inheritStyles":"inherit"')).replaceAll('"inheritStyles":"outline"','"color":"ph-kb-pal9","colorHover":"ph-kb-pal9","borderStyle":[{"top":["ph-kb-pal9","",""],"right":["ph-kb-pal9","",""],"bottom":["ph-kb-pal9","",""],"left":["ph-kb-pal9","",""],"unit":"px"}],"borderHoverStyle":[{"top":["ph-kb-pal9","",""],"right":["ph-kb-pal9","",""],"bottom":["ph-kb-pal9","",""],"left":["ph-kb-pal9","",""],"unit":"px"}],"inheritStyles":"outline"'),n.push({from:"has-theme-palette-1",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-2",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-3",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-4",to:"ph-kb-class9"}),n.push({from:"has-theme-palette-5",to:"ph-kb-class8"}),n.push({from:"has-theme-palette-6",to:"ph-kb-class7"}),n.push({from:"has-theme-palette-7",to:"ph-kb-class2"}),n.push({from:"has-theme-palette-8",to:"ph-kb-class2"}),n.push({from:"has-theme-palette-9",to:"ph-kb-class1"}),n.push({from:"theme-palette1",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette2",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette3",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette4",to:"ph-class-kb-pal9"}),n.push({from:"theme-palette5",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette6",to:"ph-class-kb-pal8"}),n.push({from:"theme-palette7",to:"ph-class-kb-pal2"}),n.push({from:"theme-palette8",to:"ph-class-kb-pal2"}),n.push({from:"theme-palette9",to:"ph-class-kb-pal1"}),n.push({from:"palette1",to:"ph-kb-pal9"}),n.push({from:"palette2",to:"ph-kb-pal8"}),n.push({from:"palette3",to:"ph-kb-pal9"}),n.push({from:"palette4",to:"ph-kb-pal9"}),n.push({from:"palette5",to:"ph-kb-pal8"}),n.push({from:"palette6",to:"ph-kb-pal7"}),n.push({from:"palette7",to:"ph-kb-pal2"}),n.push({from:"palette8",to:"ph-kb-pal2"}),n.push({from:"palette9",to:"ph-kb-pal1"})}n.push({from:"ph-kb-class1",to:"has-theme-palette-1"},{from:"ph-kb-class2",to:"has-theme-palette-2"},{from:"ph-kb-class3",to:"has-theme-palette-3"},{from:"ph-kb-class4",to:"has-theme-palette-4"},{from:"ph-kb-class5",to:"has-theme-palette-5"},{from:"ph-kb-class6",to:"has-theme-palette-6"},{from:"ph-kb-class7",to:"has-theme-palette-7"},{from:"ph-kb-class8",to:"has-theme-palette-8"},{from:"ph-kb-class9",to:"has-theme-palette-9"},{from:"ph-class-kb-pal1",to:"theme-palette1"},{from:"ph-class-kb-pal2",to:"theme-palette2"},{from:"ph-class-kb-pal3",to:"theme-palette3"},{from:"ph-class-kb-pal4",to:"theme-palette4"},{from:"ph-class-kb-pal5",to:"theme-palette5"},{from:"ph-class-kb-pal6",to:"theme-palette6"},{from:"ph-class-kb-pal7",to:"theme-palette7"},{from:"ph-class-kb-pal8",to:"theme-palette8"},{from:"ph-class-kb-pal9",to:"theme-palette9"},{from:"ph-kb-pal1",to:"palette1"},{from:"ph-kb-pal2",to:"palette2"},{from:"ph-kb-pal3",to:"palette3"},{from:"ph-kb-pal4",to:"palette4"},{from:"ph-kb-pal5",to:"palette5"},{from:"ph-kb-pal6",to:"palette6"},{from:"ph-kb-pal7",to:"palette7"},{from:"ph-kb-pal8",to:"palette8"},{from:"ph-kb-pal9",to:"palette9"});for(const t of n)e=e.replace(new RegExp(t.from,"g"),t.to);return e}function pn(e,t,n,o,a,r=""){if(!e)return e;if(!t.data?.[0]?.images)return e;const l=t.data?.[0]?.images,i=t.data?.[1]?.images||t.data?.[0]?.images;let s=t.data?.[2]?.images;!s&&"team"===n?.[0]&&r?.data?.[0]?.images&&(s=r?.data?.[0]?.images),s||(s=t.data?.[1]?.images||t.data?.[0]?.images);let c=a;c>i.length&&(c-=i.length),c>i.length&&(c-=i.length);let u=a;u>s.length&&(u-=s.length),u>s.length&&(u-=s.length);const d={a1:l?.[a]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a2:l?.[a+1]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a3:l?.[a+2]?.sizes?.[0]?.src||l?.[1]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a4:l?.[a+3]?.sizes?.[0]?.src||l?.[2]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,a5:l?.[a+4]?.sizes?.[0]?.src||l?.[3]?.sizes?.[0]?.src||l?.[0]?.sizes?.[0]?.src,b1:i?.[c]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b2:i?.[c+1]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b3:i?.[c+2]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src||i?.[0]?.sizes?.[0]?.src,b4:i?.[c+3]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src||i?.[1]?.sizes?.[0]?.src,b5:i?.[c+4]?.sizes?.[0]?.src||i?.[4]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src||i?.[2]?.sizes?.[0]?.src,b6:i?.[c+5]?.sizes?.[0]?.src||i?.[5]?.sizes?.[0]?.src||i?.[4]?.sizes?.[0]?.src||i?.[3]?.sizes?.[0]?.src,p1:s?.[u]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p2:s?.[u+1]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p3:s?.[u+2]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p4:s?.[u+3]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src,p5:s?.[u+4]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src||s?.[2]?.sizes?.[0]?.src,p6:s?.[u+5]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src||s?.[3]?.sizes?.[0]?.src,p7:s?.[u+6]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[4]?.sizes?.[0]?.src,p8:s?.[u+7]?.sizes?.[0]?.src||s?.[7]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[5]?.sizes?.[0]?.src||s?.[0]?.sizes?.[0]?.src,p9:s?.[u+8]?.sizes?.[0]?.src||s?.[8]?.sizes?.[0]?.src||s?.[7]?.sizes?.[0]?.src||s?.[6]?.sizes?.[0]?.src||s?.[1]?.sizes?.[0]?.src};if(o&&("14499"===o.toString()||"18895"===o.toString())){const t="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled.jpg",n=[{from:t,to:d.a1},{from:t,to:d.a1},{from:t,to:d.a2},{from:t,to:d.a2},{from:t,to:d.a3},{from:t,to:d.a3},{from:t,to:d.a4},{from:t,to:d.a4}];for(const t of n)e=e.replace(t.from,t.to)}if(o&&("15379"===o.toString()||"14885"===o.toString())){const t="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled.jpg",n=[{from:t,to:d.p1},{from:t,to:d.p1},{from:t,to:d.p2},{from:t,to:d.p2},{from:t,to:d.p3},{from:t,to:d.p3},{from:t,to:d.p4},{from:t,to:d.p4},{from:t,to:d.p5},{from:t,to:d.p5},{from:t,to:d.p6},{from:t,to:d.p6}];for(const t of n)e=e.replace(t.from,t.to)}const p="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled.jpg",m="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-2048x1586.jpg",g="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-1024x793.jpg",h="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Background-Image.jpg",b="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Background-Image-1024x672.jpg",f=[{from:p,to:d.a1},{from:p,to:d.a2},{from:p,to:d.a3},{from:p,to:d.a4},{from:p,to:d.a5},{from:p,to:d.a1},{from:p,to:d.a2},{from:p,to:d.b1},{from:p,to:d.b2},{from:p,to:d.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-A-Roll-Image-scaled-1.jpg",to:d.a1},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-scaled-600x465.jpg",to:d.a2},{from:m,to:d.a3},{from:m,to:d.a4},{from:m,to:d.a5},{from:m,to:d.a1},{from:m,to:d.a2},{from:m,to:d.b1},{from:m,to:d.b2},{from:m,to:d.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-A-Roll-Image-1536x1189.jpg",to:d.a3},{from:g,to:d.a1},{from:g,to:d.a2},{from:g,to:d.a3},{from:g,to:d.a4},{from:g,to:d.a5},{from:g,to:d.a3},{from:h,to:d.a5},{from:h,to:d.a5},{from:h,to:d.a5},{from:b,to:d.a4},{from:b,to:d.a4}];for(const t of f)e=e.replace(t.from,t.to);const v="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-scaled.jpg",y="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-819x1024.jpg",k="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-768x960.jpg",E="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Image-5.jpeg",w=[{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-8-819x1024.jpg",to:d.a5},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-6-819x1024.jpg",to:d.a4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-4-819x1024.jpg",to:d.a3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-1-819x1024.jpg",to:d.a2},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-7-819x1024.jpg",to:d.b1},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-5-819x1024.jpg",to:d.b2},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-3-819x1024.jpg",to:d.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-2-819x1024.jpg",to:d.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-9-819x1024.jpg",to:d.b5},{from:v,to:d.b1},{from:v,to:d.b2},{from:v,to:d.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-1-scaled.jpg",to:d.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-2-scaled.jpg",to:d.b5},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-B-Roll-Image-3-scaled.jpg",to:d.b6},{from:y,to:d.b1},{from:y,to:d.b2},{from:y,to:d.b3},{from:y,to:d.b4},{from:y,to:d.b5},{from:y,to:d.b6},{from:y,to:d.b1},{from:y,to:d.b2},{from:y,to:d.b3},{from:y,to:d.b4},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-B-Roll-Image-819x1024-1.jpg",to:d.b5},{from:k,to:d.b1},{from:k,to:d.b2},{from:k,to:d.b3},{from:k,to:d.b4},{from:k,to:d.b5},{from:k,to:d.b6},{from:k,to:d.b1},{from:k,to:d.b2},{from:k,to:d.b3},{from:k,to:d.b4},{from:k,to:d.b5},{from:k,to:d.b6},{from:E,to:d.b1},{from:E,to:d.b2},{from:E,to:d.b3},{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Image-5-1.jpeg",to:d.b4}];for(const t of w)e=e.replace(t.from,t.to);const _="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled.jpg",S="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image.jpg",C="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-1024x683.jpg",x="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-150x150.jpg",I="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-300x200.jpg",O="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-1024x683.jpg",A="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-150x150.jpg",M="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-150x150.jpg",P="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-1-150x150.jpg",T="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-300x200.jpg",N="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-300x200.jpg",R="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/03/Example-Portrait-Image-scaled-1-300x200.jpg",L=[{from:"https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Example-Portrait-Image-scaled-1-1224x683.jpg",to:d.p1},{from:_,to:d.p1},{from:_,to:d.p2},{from:_,to:d.p3},{from:S,to:d.p1},{from:S,to:d.p2},{from:S,to:d.p3},{from:S,to:d.p4},{from:S,to:d.p5},{from:C,to:d.p1},{from:C,to:d.p2},{from:C,to:d.p3},{from:C,to:d.p4},{from:C,to:d.p5},{from:C,to:d.p6},{from:C,to:d.p7},{from:C,to:d.p8},{from:C,to:d.p9},{from:x,to:d.p1},{from:x,to:d.p2},{from:x,to:d.p3},{from:x,to:d.p4},{from:I,to:d.p1},{from:I,to:d.p2},{from:I,to:d.p3},{from:I,to:d.p4},{from:O,to:d.p1},{from:O,to:d.p2},{from:O,to:d.p3},{from:O,to:d.p4},{from:A,to:d.p1},{from:A,to:d.p2},{from:A,to:d.p3},{from:A,to:d.p4},{from:M,to:d.p1},{from:M,to:d.p2},{from:M,to:d.p3},{from:M,to:d.p4},{from:P,to:d.p1},{from:P,to:d.p2},{from:P,to:d.p3},{from:P,to:d.p4},{from:T,to:d.p1},{from:T,to:d.p2},{from:T,to:d.p3},{from:T,to:d.p4},{from:T,to:d.p5},{from:T,to:d.p6},{from:N,to:d.p1},{from:N,to:d.p2},{from:N,to:d.p3},{from:N,to:d.p4},{from:N,to:d.p5},{from:N,to:d.p6},{from:R,to:d.p1},{from:R,to:d.p2},{from:R,to:d.p3},{from:R,to:d.p4},{from:R,to:d.p5},{from:R,to:d.p6}];for(const t of L)e=e.replace(t.from,t.to);return e}const mn=e=>e.toLowerCase().replace(/[^0-9a-z-]/g,"");function gn(e,t,n,o,a,r=!1){if(!e)return e;if(!t?.[o]?.content)return e;const l=n?n[0]:"",i=t?.[o]?.content,s=i.find((e=>e.id===o)),c=i.find((e=>e.id===o+"-columns")),u=i.find((e=>e.id===o+"-list")),d=i.find((e=>e.id===o+"-videos")),p=i.find((e=>e.id===o+"-tabs")),m=i.find((e=>e.id===o+"-accordion"));switch(l){case"columns":if(s?.heading?.short&&(e=e.replaceAll("Write a short headline",s.heading.short)),s?.heading?.medium&&(e=e.replaceAll("Compose a captivating title for this section.",s?.heading?.medium)),s?.sentence?.short&&(e=e.replaceAll("Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style.",s?.sentence?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",c?.columns?.[t]?.["sentence-short"]));break;case"text":if(s?.heading?.short&&(e=e.replace(/Type a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.long)),s?.sentence?.medium&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors. /g,s?.sentence?.medium)),s?.sentence?.short&&(e=(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. /g,s?.sentence?.short)).replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/2018 - Current/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a short title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"hero":const n=i.find((e=>e.id===o+"-hero"));if(n?.heading?.medium?e=e.replace(/Briefly and concisely explain what you do for your audience./g,n?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),n?.heading?.short?e=e.replace(/Write a brief title/g,n?.heading?.short):s?.heading?.short&&(e=e.replace(/Write a brief title/g,s?.heading?.short)),n?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,n?.overline?.short)).replace(/Add an overline text/g,n?.overline?.short)).replace(/Overline/g,n?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),n?.sentence?.short?e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,n?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.short)),n?.button?.short?e=(e=e.replace(/Call To Action/g,n?.button?.short)).replace(/Call to Action/g,n?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),n?.["secondary-button"]?.short?e=e.replace(/Secondary Button/g,n?.["secondary-button"]?.short):s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),n?.cards)for(let t=0;t<n?.cards.length;t++)n?.cards?.[t]?.["title-short"]&&(e=e.replace("Add a Title",n?.cards?.[t]?.["title-short"])),n?.cards?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",n?.cards?.[t]?.["sentence-short"])),n?.cards?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn a click.",n?.cards?.[t]?.["sentence-medium"])),n?.cards?.[t]?.["button-short"]&&(e=e.replace("CTA",n?.cards?.[t]?.["button-short"]));break;case"image":s?.heading?.medium&&(e=e.replace(/Add a short, consistent heading for your image./g,s?.heading?.medium)),s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Use this paragraph to add supporting context. Consider your audience and what matters to them, and provide insights that support your topic./g,s?.sentence?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"title-or-header":const a=i.find((e=>e.id===o+"-hero"));a?.heading?.medium?e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,a?.heading?.medium)).replace(/Craft a captivating title for the upcoming section to attract your audience./g,a?.heading?.medium):s?.heading?.medium&&(e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)).replace(/Craft a captivating title for the upcoming section to attract your audience./g,s?.heading?.medium)),a?.heading?.short?e=(e=e.replace(/Add a short & sweet headline/g,a?.heading?.short)).replace(/Add a short &amp; sweet headline/g,a?.heading?.short):s?.heading?.short&&(e=(e=e.replace(/Add a short & sweet headline/g,s?.heading?.short)).replace(/Add a short &amp; sweet headline/g,s?.heading?.short)),a?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,a?.overline?.short)).replace(/Add an overline text/g,a?.overline?.short)).replace(/Overline/g,a?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),a?.button?.short?e=(e=e.replace(/Call To Action/g,a?.button?.short)).replace(/Call to Action/g,a?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"media-text":if(s?.heading?.short&&(e=e.replace(/Write a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),u?.list){for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(r||(e=e.replace('"text":"Add a list item"',`"text":"${u?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",u?.list?.[t]?.["list-item-short"]));for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(r||(e=e.replace('"text":"Add a list item"',`"text":"${u?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",u?.list?.[t]?.["list-item-short"]))}if(c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"accordion":if(m?.heading?.short?e=e.replace(/Add a short headline/g,m?.heading?.short):s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),m?.heading?.medium?e=e.replace(/A brief headline here will add context for the section/g,m?.heading?.medium):s?.heading?.medium&&(e=e.replace(/A brief headline here will add context for the section/g,s?.heading?.medium)),m?.sentence?.medium?e=e.replace(/Use this space to provide your website visitors with a brief description on what to expect before clicking on a section title./g,m?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Use this space to provide your website visitors with a brief description on what to expect before clicking on a section title./g,s?.sentence?.medium)),m?.accordion){for(let t=0;t<m?.accordion.length;t++)m?.accordion?.[t]?.["title-medium"]&&(r||(e=e.replace('"text":"Add a section title that is relevant for your readers."',`"text":"${m?.accordion?.[t]?.["title-medium"]}"`)));for(let t=0;t<m?.accordion.length;t++)m?.accordion?.[t]?.["title-medium"]&&(e=(e=(e=e.replace("Add a section title that is relevant for your readers.",m?.accordion?.[t]?.["title-medium"])).replace("tab-addasectiontitlethatisrelevantforyourreaders",`tab-${mn(m?.accordion?.[t]?.["title-medium"].toString())}`)).replace("tab-addasectiontitlethatisrelevantforyourreaders",`tab-${mn(m?.accordion?.[t]?.["title-medium"].toString())}`)),m?.accordion?.[t]?.["paragraph-medium"]&&(e=e.replace("By default, this panel is concealed and appears when the user clicks on the section title. Input relevant information about its title using paragraphs or bullet points. Accordions can enhance the user experience when utilized effectively. They allow users to choose what they want to read and disregard the rest. Accordions are often utilized for frequently asked questions (FAQs).",m?.accordion?.[t]?.["paragraph-medium"]))}break;case"tabs":if(s?.heading?.short&&(e=e.replace(/Add a short headline/g,s?.heading?.short)),s?.sentence?.medium&&(e=e.replace(/Tabs are a helpful way that allow users to view a group of related data one at a time. Add a brief description of what your tabbed section is about./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),p?.tabs){for(let t=0;t<p?.tabs.length;t++)p?.tabs?.[t]?.["title-short"]&&(r||(e=e.replace('"text":"Tab name"',`"text":"${p?.tabs?.[t]?.["title-short"]}"`))),p?.tabs?.[t]?.["title-medium"]&&(r||(e=e.replace('"text":"Give this tab a concise name"',`"text":"${p?.tabs?.[t]?.["title-medium"]}"`)));for(let t=0;t<p?.tabs.length;t++)p?.tabs?.[t]?.["title-short"]&&(e=(e=(e=(e=(e=e.replace("Tab name",p?.tabs?.[t]?.["title-short"])).replace("tab-tabname",`tab-${mn(p?.tabs?.[t]?.["title-short"].toString())}`)).replace("tab-tabname",`tab-${mn(p?.tabs?.[t]?.["title-short"].toString())}`)).replace("Add a brief title",p?.tabs?.[t]?.["title-short"])).replace("Short title",p?.tabs?.[t]?.["title-short"])),p?.tabs?.[t]?.["title-medium"]&&(e=(e=(e=(e=e.replace("Scribe a concise title",p?.tabs?.[t]?.["title-medium"])).replace("Give this tab a concise name",p?.tabs?.[t]?.["title-medium"])).replace("tab-givethistabaconcisename",`tab-${mn(p?.tabs?.[t]?.["title-medium"].toString())}`)).replace("tab-givethistabaconcisename",`tab-${mn(p?.tabs?.[t]?.["title-medium"].toString())}`)),p?.tabs?.[t]?.["title-long"]&&(e=e.replace("Type a brief and clear title for this panel.",p?.tabs?.[t]?.["title-long"])),p?.tabs?.[t]?.["overline-short"]&&(e=e.replace("Overline",p?.tabs?.[t]?.["overline-short"])),p?.tabs?.[t]?.["button-short"]&&(e=e.replace("Call To Action",p?.tabs?.[t]?.["button-short"])),p?.tabs?.[t]?.["list-title"]&&(e=e.replace("Featured subhead",p?.tabs?.[t]?.["list-title"])),p?.tabs?.[t]?.["list-item-1"]&&(r||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-1"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-1"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-1"])),p?.tabs?.[t]?.["list-item-2"]&&(r||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-2"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-2"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-2"])),p?.tabs?.[t]?.["list-item-3"]&&(r||(e=e.replace('"text":"Add a single and succinct list item"',`"text":"${p?.tabs?.[t]?.["list-item-3"]}"`)),e=(e=e.replace("Add a single and succinct list item",p?.tabs?.[t]?.["list-item-3"])).replace("Add a descriptive title for the column.",p?.tabs?.[t]?.["list-item-3"])),p?.tabs?.[t]?.["description-1"]&&(e=(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-1"])).replace("Write a short descriptive paragraph about your tab that will help users find what they are looking for and get access to content without further exploration.",p?.tabs?.[t]?.["description-1"])).replace("Write a short text about your tab that will help users find what they are looking for and get access to content without further exploration.",p?.tabs?.[t]?.["description-1"])),p?.tabs?.[t]?.["description-2"]&&(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-2"])).replace("This panel is hidden by default and revealed when a user clicks on the tab title. Fill it in with relevant information about its title. You can use paragraphs or bullet points to add your content here.",p?.tabs?.[t]?.["description-2"])),p?.tabs?.[t]?.["description-3"]&&(e=(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",p?.tabs?.[t]?.["description-3"])).replace("Tabs help users navigate through grouped content giving them control over what to read. Use them to connect related information and as a tool to save space.",p?.tabs?.[t]?.["description-3"]))}break;case"video":if(s?.heading?.medium&&(e=e.replace(/Add a brief headline for impact and \/ or context here/g,s?.heading?.medium)),s?.heading?.short&&(e=e.replace(/Write a succinct headline here/g,s?.heading?.short)),s?.heading?.long&&(e=e.replace(/Write a compelling and inviting headline to re-hook your visitors through your content./g,s?.heading?.long)),s?.sentence?.medium&&(e=e.replace(/Use this paragraph to provide more insights writing with clear and concise language that is easy to understand. Edit and proofread your content./g,s?.sentence?.medium)),s?.sentence?.short&&(e=e.replace(/Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=e.replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),d?.videos)for(let t=0;t<d?.videos.length;t++)d?.videos?.[t]?.["title-short"]&&(e=e.replace("Short title",d?.videos?.[t]?.["title-short"]));if(u?.list){for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(r||(e=e.replace('"text":"Add a list item"',`"text":"${u?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",u?.list?.[t]?.["list-item-short"]));for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(r||(e=e.replace('"text":"Add a list item"',`"text":"${u?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Add a list item",u?.list?.[t]?.["list-item-short"]))}break;case"cards":if(s?.heading?.medium&&(e=(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)).replace(/A short and sweet title for this section./g,s?.heading?.medium)),s?.sentence?.medium&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),s?.["secondary-button"]?.short&&(e=e.replace(/Secondary Button/g,s?.["secondary-button"]?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a Title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a Short Title Here",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=(e=e.replace("Use this space to add a short description. It gives enough info to earn a click.",c?.columns?.[t]?.["sentence-short"])).replace("Add a brief description to your card.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn a click.",c?.columns?.[t]?.["sentence-medium"])),c?.columns?.[t]?.["overline-short"]&&(e=e.replace("Overline",c?.columns?.[t]?.["overline-short"])),c?.columns?.[t]?.["button-short"]&&(e=(e=e.replace("Call To Action",c?.columns?.[t]?.["button-short"])).replace("Call to Action",c?.columns?.[t]?.["button-short"]));break;case"testimonials":const l=i.find((e=>e.id===o+"-testimonials"));if(l?.heading?.medium?e=e.replace(/Add a compelling title for your section to engage your audience./g,l?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,s?.heading?.medium)),l?.sentence?.long?e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,l?.sentence?.long):s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.long)),l?.testimonials)for(let t=0;t<l?.testimonials.length;t++)l?.testimonials?.[t]?.customer&&(e=e.replace("Customer Name",l?.testimonials?.[t]?.customer)),l?.testimonials?.[t]?.testimonial&&(e=(e=e.replace("Testimonials are a social proof, a powerful way to inspire trust.",l?.testimonials?.[t]?.testimonial)).replace("Testimonials, as authentic endorsements from satisfied customers, serve as potent social proof, significantly inspiring trust in potential consumers.",l?.testimonials?.[t]?.testimonial));break;case"pricing-table":const g=i.find((e=>e.id==="pricing-"+o));if(g?.heading?.short&&(e=e.replace(/Write a short headline/g,g?.heading?.short)),g?.heading?.short&&(e=e.replace(/Add a compelling title for your section to engage your audience./g,g?.heading?.short)),g?.sentence?.short&&(e=e.replace(/Add a gripping description for this featured plan/g,g?.sentence?.short)),g?.sentence?.medium&&(e=e.replace(/A pricing table assists users in selecting a suitable plan by simply and clearly differentiating product\/service features and prices. Use this as supporting text for your plans./g,g?.sentence?.medium)),g?.sentence?.long&&(e=e.replace(/A pricing table assists users in selecting a suitable plan by simply and clearly differentiating product\/service features and prices. Use this as supporting text for your plans./g,g?.sentence?.long)),g?.overline?.short&&(e=(e=e.replace(/add an overline text/g,g?.overline?.short)).replace(/Add an overline text/g,g?.overline?.short)),g?.plans)for(let t=0;t<g?.plans.length;t++){if(g?.plans?.[t]?.["title-short"]&&(e=e.replace("Tab Title",g?.plans?.[t]?.["title-short"])),g?.plans?.[t]?.["title-medium"]&&(e=e.replace("Name your plan",g?.plans?.[t]?.["title-medium"])),g?.plans?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for your plan.",g?.plans?.[t]?.["title-medium"])),g?.plans?.[t]?.price){let n=g?.plans?.[t]?.price.replace("/month","");n=n.replace("/year",""),0===t?e=e.replace("$60",n):1===t?e=e.replace("$80",n):2===t?e=e.replace("$120",n):3===t&&(e=e.replace("$200",n))}g?.plans?.[t]?.["sentence-short"]&&(e=e.replace("Let your user know what to expect when choosing this plan. Inform users of plan benefits, not features.",g?.plans?.[t]?.["sentence-short"])),g?.plans?.[t]?.["button-short"]&&(e=e.replace("Call To Action",g?.plans?.[t]?.["button-short"])),g?.plans?.[t]?.["feature-1"]&&(e=e.replace("Focus on the differences",g?.plans?.[t]?.["feature-1"]),r||(e=e.replace("Focus on the differences",g?.plans?.[t]?.["feature-1"]))),g?.plans?.[t]?.["feature-2"]&&(e=e.replace("Use a consistent language",g?.plans?.[t]?.["feature-2"]),r||(e=e.replace("Use a consistent language",g?.plans?.[t]?.["feature-2"]))),g?.plans?.[t]?.["feature-3"]&&(e=e.replace("Transmit benefits clearly",g?.plans?.[t]?.["feature-3"]),r||(e=e.replace("Transmit benefits clearly",g?.plans?.[t]?.["feature-3"])))}break;case"counter-or-stats":const h=i.find((e=>e.id===o+"-counter-stats"));if(h?.heading?.medium?e=e.replace(/Tell your story in numbers, and give your visitors useful insights./g,h?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Tell your story in numbers, and give your visitors useful insights./g,s?.heading?.medium)),h?.sentence?.medium?e=e.replace(/Make an impact, and share your organization's stats or achievements to interest your website visitors into learning more about you./g,h?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Make an impact, and share your organization's stats or achievements to interest your website visitors into learning more about you./g,s?.sentence?.medium)),h?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,h?.overline?.short)).replace(/Add an overline text/g,h?.overline?.short)).replace(/Overline/g,h?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),h?.button?.short?e=(e=e.replace(/Call To Action/g,h?.button?.short)).replace(/Call to Action/g,h?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),h?.metrics)for(let t=0;t<h?.metrics.length;t++)h?.metrics?.[t]?.["title-short"]&&(r||(e=e.replace('"title":"Stat title"',`"title":"${u?.list?.[t]?.["list-item-short"]}"`)),e=e.replace("Stat title",h?.metrics?.[t]?.["title-short"])),h?.metrics?.[t]?.["value-short"]&&(0===t?e=e.replace("50%",h?.metrics?.[t]?.["value-short"]):1===t?e=e.replace("98%",h?.metrics?.[t]?.["value-short"]):2===t?e=e.replace("100,110",h?.metrics?.[t]?.["value-short"]):3===t?e=e.replace("8/mo",h?.metrics?.[t]?.["value-short"]):4===t&&(e=e.replace("20yr",h?.metrics?.[t]?.["value-short"])));if(u?.list)for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(e=e.replace("Add a single and succinct list item",u?.list?.[t]?.["list-item-short"]),r||(e=e.replace("Add a single and succinct list item",u?.list?.[t]?.["list-item-short"]))),u?.list?.[t]?.["list-item-long"]&&(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",u?.list?.[t]?.["list-item-long"]),r||(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",u?.list?.[t]?.["list-item-long"])));break;case"list":if(s?.heading?.short&&(e=e.replace(/Write a short and relevant headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Write a clear and relevant header to keep your visitors engaged/g,s?.heading?.medium)),s?.sentence?.medium&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Consider writing about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style./g,s?.sentence?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE TEXT/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Give your list item a title",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this short paragraph to write a supporting description of your list item. Remember to let your readers know why this list item is essential.",c?.columns?.[t]?.["sentence-short"]));if(u?.list)for(let t=0;t<u?.list.length;t++)u?.list?.[t]?.["list-item-short"]&&(e=e.replace("Add a single and succinct list item",u?.list?.[t]?.["list-item-short"]),r||(e=e.replace("Add a single and succinct list item",u?.list?.[t]?.["list-item-short"]))),u?.list?.[t]?.["list-item-long"]&&(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",u?.list?.[t]?.["list-item-long"]),r||(e=e.replace("Add unique list items while keeping a consistent phrasing style and similar line lengths",u?.list?.[t]?.["list-item-long"])));break;case"slider":s?.heading?.short&&(e=e.replace(/Short Headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Craft a captivating title to attract your audience./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"post-loop":const b=i.find((e=>e.id===o+"-post-loop"));b?.heading?.short?e=e.replace(/Selected posts title/g,b?.heading?.short):s?.heading?.short&&(e=e.replace(/Selected posts title/g,s?.heading?.short)),b?.heading?.medium?e=e.replace(/Craft a captivating title for this section to attract your audience./g,b?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),b?.sentence?.short?e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,b?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Use a clear and attention-grabbing short paragraph to engage your audience and draw them into reading the rest of your content./g,s?.sentence?.short)),b?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,b?.overline?.short)).replace(/Add an overline/g,b?.overline?.short)).replace(/Overline/g,b?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),b?.button?.short?e=(e=e.replace(/Call To Action/g,b?.button?.short)).replace(/Call to Action/g,b?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"team":const f=i.find((e=>e.id===o+"-people"));if(f?.heading?.medium?e=(e=e.replace(/A short and sweet title for this section./g,f?.heading?.medium)).replace(/Craft a captivating title for this section to attract your audience./g,f?.heading?.medium):s?.heading?.medium&&(e=(e=e.replace(/A short and sweet title for this section./g,s?.heading?.medium)).replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),f?.sentence?.short?e=e.replace(/Use this space to write about your company, employee profiles and organizational culture; share your story and connect with customers./g,f?.sentence?.short):s?.sentence?.short&&(e=e.replace(/Use this space to write about your company, employee profiles and organizational culture; share your story and connect with customers./g,s?.sentence?.short)),f?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,f?.overline?.short)).replace(/Add an overline/g,f?.overline?.short)).replace(/Overline/g,f?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),f?.button?.short?e=(e=e.replace(/Call To Action/g,f?.button?.short)).replace(/Call to Action/g,f?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),f?.people)for(let t=0;t<f?.people.length;t++)f?.people?.[t]?.name&&(e=e.replace("Name Lastname",f?.people?.[t]?.name)),f?.people?.[t]?.position&&(e=e.replace("Position or title",f?.people?.[t]?.position)),f?.people?.[t]?.["sentence-short"]&&(e=(e=e.replace("Brief profile bio for this person will live here. Add an overview of this person's role or any key information.",f?.people?.[t]?.["sentence-short"])).replace("Brief profile bio for this person will live here. Add an overview of this person’s role or any key information.",f?.people?.[t]?.["sentence-short"]));break;case"logo-farm":s?.heading?.medium&&(e=e.replace(/Tell your audience about your achievements, partners or customers./g,s?.heading?.medium)),s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short));break;case"location":if(s?.heading?.short&&(e=e.replace(/Find us/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Use a brief and inviting sentence to encourage visitors to get in touch./g,s?.sentence?.short)),s?.heading?.short&&(e=e.replace(/Write a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Compose a captivating title for this section./g,s?.heading?.medium)),s?.sentence?.short&&(e=e.replace(/Support your idea with a clear, descriptive sentence or phrase that has a consistent writing style./g,s?.sentence?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-medium"]&&(e=e.replace("Add a descriptive title for the column.",c?.columns?.[t]?.["title-medium"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Add context to your column. Help visitors understand the value they can get from your products and services.",c?.columns?.[t]?.["sentence-short"]));break;case"gallery":s?.heading?.short&&(e=e.replace(/Add a succinct headline/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Write with clear, concise language to inform and engage your audience. Consider what matters to them and provide valuable insights./g,s?.sentence?.short));break;case"featured-products":case"featured-product":const v=i.find((e=>e.id===o+"-single"));if(v?.heading?.medium?e=e.replace(/An engaging product or feature headline here/g,v?.heading?.medium):s?.heading?.medium&&(e=e.replace(/An engaging product or feature headline here/g,s?.heading?.medium)),v?.sentence?.medium?e=e.replace(/Write a short descriptive paragraph about your product. Focus on your ideal buyer. Entice with benefits of using your product./g,v?.sentence?.medium):s?.sentence?.medium&&(e=e.replace(/Write a short descriptive paragraph about your product. Focus on your ideal buyer. Entice with benefits of using your product./g,s?.sentence?.medium)),v?.price&&(e=e.replace(/$19.99/g,v?.price)),v?.button?.short?e=(e=e.replace(/Call To Action/g,v?.button?.short)).replace(/Call to Action/g,v?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),v?.["product-features-and-benefits"])for(let t=0;t<v?.["product-features-and-benefits"].length;t++)t%2!=0?v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]&&(e=e.replace("Another short feature description",v?.["product-features-and-benefits"]?.[t]?.["list-item-short"])):v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]&&(e=e.replace("Short feature description",v?.["product-features-and-benefits"]?.[t]?.["list-item-short"]));break;case"product-loop":if(s?.heading?.short&&(e=e.replace(/Type a short headline/g,s?.heading?.short)),s?.heading?.medium&&(e=e.replace(/Briefly and concisely explain what you do for your audience./g,s?.heading?.medium)),s?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.long)),s?.sentence?.medium&&(e=e.replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,s?.sentence?.medium)),s?.sentence?.short&&(e=(e=e.replace(/Consider using this if you need to provide more context on why you do what you do./g,s?.sentence?.short)).replace(/Consider using this if you need to provide more context on why you do what you do. Be engaging./g,s?.sentence?.short)),s?.overline?.short&&(e=(e=(e=e.replace(/2018 - Current/g,s?.overline?.short)).replace(/Add an overline text/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),c?.columns)for(let t=0;t<c?.columns.length;t++)c?.columns?.[t]?.["title-short"]&&(e=e.replace("Add a short title",c?.columns?.[t]?.["title-short"])),c?.columns?.[t]?.["sentence-short"]&&(e=e.replace("Use this space to add a short description.",c?.columns?.[t]?.["sentence-short"])),c?.columns?.[t]?.["sentence-medium"]&&(e=e.replace("Use this space to add a medium length description. Be brief and give enough information to earn their attention.",c?.columns?.[t]?.["sentence-medium"]));break;case"form":let y="";const k=t?.about?.content;k&&(y=k.find((e=>"about"===e.id))),s?.heading?.short&&(e=(e=e.replace(/Add A Title For Your Form/g,s?.heading?.short)).replace(/Contact Us/g,s?.heading?.short)),s?.sentence?.short&&(e=e.replace(/Briefly describe what the form is for or provide additional context if required. Use inviting language./g,s?.sentence?.short)),y?.sentence?.long&&(e=e.replace(/Use this paragraph section to get your website visitors to know you. Write about you or your organization, the products or services you offer, or why you exist. Keep a consistent communication style. Consider using this if you need to provide more context on why you do what you do. Be engaging. Focus on delivering value to your visitors./g,y?.sentence?.long));break;case"table-of-contents":const E=i.find((e=>e.id===o+"-table-contents"));if(E?.heading?.medium?e=e.replace(/Craft a captivating title for this section to attract your audience./g,E?.heading?.medium):s?.heading?.medium&&(e=e.replace(/Craft a captivating title for this section to attract your audience./g,s?.heading?.medium)),E?.overline?.short?e=(e=(e=e.replace(/ADD AN OVERLINE/g,E?.overline?.short)).replace(/Add an overline/g,E?.overline?.short)).replace(/Overline/g,E?.overline?.short):s?.overline?.short&&(e=(e=(e=e.replace(/ADD AN OVERLINE/g,s?.overline?.short)).replace(/Add an overline/g,s?.overline?.short)).replace(/Overline/g,s?.overline?.short)),E?.button?.short?e=(e=e.replace(/Call To Action/g,E?.button?.short)).replace(/Call to Action/g,E?.button?.short):s?.button?.short&&(e=(e=e.replace(/Call To Action/g,s?.button?.short)).replace(/Call to Action/g,s?.button?.short)),E?.subtitles)for(let t=0;t<E?.subtitles.length;t++)E?.subtitles?.[t]?.["title-short"]&&(e=e.replace("Write a title for your section or related content here",E?.subtitles?.[t]?.["title-short"]))}return e}const hn=(e,t,n,o)=>{if(!e.includes("kb-pattern-delete-block"))return"";const a=e.indexOf(t,o);if(-1===a)return"";const r=a+t.length,l=e.indexOf(n,r),i=e.substring(r,l);return i?i.includes("kb-pattern-delete-block")?i:hn(e,t,n,l+n.length):""};function bn(e){if(!e)return e;const t=hn(e,"\x3c!-- wp:kadence/column","\x3c!-- /wp:kadence/column --\x3e",0);return t&&(e=e.replace("\x3c!-- wp:kadence/column"+t+"\x3c!-- /wp:kadence/column --\x3e","")),e}function fn(e,t){return e&&t?e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=(e=e.replace("1234 N Street \n\tCity, State, Country",t)).replace("1234 N Street \n\tCity, State\n\tCountry",t)).replaceAll("1234 N Street<br>City, State, Country",t)).replaceAll("1234 N Street <br>City, State, Country",t)).replaceAll("1234 N Street <br>City, State<br>Country",t)).replaceAll("1234 N Street <br>City, State <br>Country",t)).replaceAll("1234 N Street City, State, Country",t)).replace("1234 N Street <br/>City, State, Country",t)).replaceAll("Los angeles",t)).replaceAll("Las angeles",t)).replaceAll("Los Angeles",t)).replaceAll("Las Angeles",t):e}const vn=(e,t,n,o)=>{if(!e.includes(t))return"";const a=e.indexOf(t,o);if(-1===a)return"";const r=a+t.length,l=e.indexOf(n,r);return e.substring(r,l)||""};function yn(e){if(!e)return e;const t=new RegExp("https://patterns\\.startertemplatecloud\\.com/wp-content/plugins/kadence-blocks/includes/assets/images/masks/","g");return e.replace(t,kadence_blocks_params.svgMaskPath)}function kn(){return kn=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},kn.apply(this,arguments)}function En(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function wn(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?En(Object(n),!0).forEach((function(t){Sn(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):En(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Sn(e,t,n){return t in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}class Cn extends i().Component{constructor(e){let t;super(e),this.reCalculateColumnCount=this.reCalculateColumnCount.bind(this),this.reCalculateColumnCountDebounce=this.reCalculateColumnCountDebounce.bind(this),t=this.props.breakpointCols&&this.props.breakpointCols.default?this.props.breakpointCols.default:parseInt(this.props.breakpointCols)||2,this.state={columnCount:t}}componentDidMount(){this.reCalculateColumnCount(),window&&window.addEventListener("resize",this.reCalculateColumnCountDebounce)}componentDidUpdate(){this.reCalculateColumnCount()}componentWillUnmount(){window&&window.removeEventListener("resize",this.reCalculateColumnCountDebounce)}reCalculateColumnCountDebounce(){window&&window.requestAnimationFrame?(window.cancelAnimationFrame&&window.cancelAnimationFrame(this._lastRecalculateAnimationFrame),this._lastRecalculateAnimationFrame=window.requestAnimationFrame((()=>{this.reCalculateColumnCount()}))):this.reCalculateColumnCount()}reCalculateColumnCount(){const e=window&&window.innerWidth||1/0;let t=this.props.breakpointCols;"object"!=typeof t&&(t={default:parseInt(t)||2});let n=1/0,o=t.default||2;for(let a in t){const r=parseInt(a);r>0&&e<=r&&r<n&&(n=r,o=t[a])}o=Math.max(1,parseInt(o)||1),this.state.columnCount!==o&&this.setState({columnCount:o})}itemsInColumns(){const e=this.state.columnCount,t=new Array(e),n=i().Children.toArray(this.props.children);for(let o=0;o<n.length;o++){const a=o%e;t[a]||(t[a]=[]),t[a].push(n[o])}return t}renderColumns(){const{column:e,columnAttrs:t={},columnClassName:n}=this.props,o=this.itemsInColumns(),a=100/o.length+"%";let r=n;r&&"string"!=typeof r&&(this.logDeprecated('The property "columnClassName" requires a string'),void 0===r&&(r="my-masonry-grid_column"));const l=wn(wn(wn({},e),t),{},{style:wn(wn({},t.style),{},{width:a}),className:r});return o.map(((e,t)=>i().createElement("div",kn({},l,{key:t}),e)))}logDeprecated(e){console.error("[Masonry]",e)}render(){const e=this.props,{children:t,breakpointCols:n,columnClassName:o,columnAttrs:a,column:r,className:l}=e,s=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,["children","breakpointCols","columnClassName","columnAttrs","column","className"]);let c=l;return"string"!=typeof l&&(this.logDeprecated('The property "className" requires a string'),void 0===l&&(c="my-masonry-grid")),i().createElement("div",kn({},s,{className:c}),this.renderColumns())}}Cn.defaultProps={breakpointCols:void 0,className:void 0,columnClassName:void 0,children:void 0,columnAttrs:void 0,column:void 0};const xn=Cn;var In=n(9039),On=n.n(In);const An=window.wp.blockEditor;function Mn(){return(0,Nt.useMemo)((()=>Array.from(document.styleSheets).reduce(((e,t)=>{try{t.cssRules}catch(t){return e}const{ownerNode:n,cssRules:o}=t;if(null===n)return e;if(!o)return e;if("LINK"!==n.tagName)return e;if("wp-reset-editor-styles-css"===n.id)return e;if(function e(t){return Array.from(t).find((({selectorText:t,conditionText:n,cssRules:o})=>n?e(o):t&&(t.includes(".editor-styles-wrapper")||t.includes(".wp-block"))))}(o)){e.push(n.cloneNode(!0));const t=n.id.replace("-css","-inline-css"),o=document.getElementById(t);o&&e.push(o.cloneNode(!0))}return e}),[])),[])}function Pn(e){return(0,Nt.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}function Tn({contentRef:e,children:t,head:n,tabIndex:a=0,scale:r=1,frameSize:i=0,expand:s=!1,readonly:c,forwardedRef:u,...d}){const p=(0,Tt.useSelect)((e=>e(An.store).getSettings().__unstableResolvedAssets),[]),[,m]=(0,Nt.useReducer)((()=>({}))),[g,h]=(0,Nt.useState)(),[b,f]=(0,Nt.useState)([]),v=Pn(p?.styles),y=v.map((e=>e.id)),k=Mn().filter((e=>!y.includes(e.id))),E=Pn(p?.scripts),w=function(){const{getSettings:e,hasSelectedBlock:t,hasMultiSelection:n}=(0,Tt.useSelect)(An.store),{clearSelectedBlock:o}=(0,Tt.useDispatch)(An.store),{clearBlockSelection:a}=e();return(0,jt.useRefEffect)((e=>{if(a)return e.addEventListener("mousedown",r),()=>{e.removeEventListener("mousedown",r)};function r(a){(t()||n())&&a.target===e&&o()}}),[t,n,o,a])}(),[_,{height:S}]=(0,jt.useResizeObserver)(),C=(0,jt.useRefEffect)((e=>{let t;function n(e){e.preventDefault()}function o(){const{contentDocument:o,ownerDocument:a}=e,{readyState:r,documentElement:l}=o;return t=o,("interactive"===r||"complete"===r)&&(function(e){const{defaultView:t}=e,{frameElement:n}=t;function o(e){const o=Object.getPrototypeOf(e).constructor.name,a=window[o],r={};for(const t in e)r[t]=e[t];if(e instanceof t.MouseEvent){const e=n.getBoundingClientRect();r.clientX+=e.left,r.clientY+=e.top}const l=new a(e.type,r);!n.dispatchEvent(l)&&e.preventDefault()}const a=["dragover"];for(const t of a)e.addEventListener(t,o)}(o),h(o),w(l),f(Array.from(a.body.classList).filter((e=>e.startsWith("admin-color-")||e.startsWith("post-type-")||"wp-embed-responsive"===e))),o.dir=a.dir,l.removeChild(o.head),l.removeChild(o.body),t.addEventListener("dragover",n,!1),t.addEventListener("drop",n,!1),!0)}return e.addEventListener("load",o),()=>{e.removeEventListener("load",o),t?.removeEventListener("dragover",n),t?.removeEventListener("drop",n)}}),[]),x=(0,jt.useRefEffect)((e=>{E.reduce(((t,n)=>t.then((()=>async function(e,{id:t,src:n}){return new Promise(((o,a)=>{const r=e.ownerDocument.createElement("script");r.id=t,n?(r.src=n,r.onload=()=>o(),r.onerror=()=>a()):o(),e.appendChild(r)}))}(e,n)))),Promise.resolve()).finally((()=>{m()}))}),[]),I=(0,jt.useDisabled)({isDisabled:!c}),O=(0,jt.useMergeRefs)([e,w,I]),A=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("style",null,"html{height:auto!important;}body{margin:0}"),[...v,...k].map((({tagName:e,href:t,id:n,rel:o,media:a,textContent:r})=>{const i=e.toLowerCase();return"style"===i?(0,l.createElement)(i,{id:n,key:n},r):(0,l.createElement)(i,{href:t,id:n,rel:o,media:a,key:n})}))),M=(0,Nt.useMemo)((()=>"<!doctype html>"+(0,Nt.renderToString)(A)),[]),P=S*(1-r)/2;return(0,l.createElement)(l.Fragment,null,a>=0,(0,l.createElement)("iframe",{...d,style:{...d.style,height:s?S:d.style?.height,marginTop:r?-P+i:d.style?.marginTop,marginBottom:r?-P+i:d.style?.marginBottom,transform:r?`scale( ${r} )`:d.style?.transform,transition:"all .3s"},ref:(0,jt.useMergeRefs)([u,C]),tabIndex:a,srcDoc:M,title:(0,o.__)("Editor canvas")},g&&(0,Nt.createPortal)((0,l.createElement)(l.Fragment,null,(0,l.createElement)("head",{ref:x},A,n),(0,l.createElement)("body",{ref:O,className:It()("block-editor-iframe__body","editor-styles-wrapper",...b)},_,(0,l.createElement)(Rt.__experimentalStyleProvider,{document:g},t))),g.documentElement)),a>=0)}const Nn=(0,Nt.forwardRef)((function(e,t){return(0,Tt.useSelect)((e=>e(An.store).getSettings().styles),[])?(0,l.createElement)(Tn,{...e,forwardedRef:t}):null}));let Rn;const Ln=1600;function Bn({viewportWidth:e,containerWidth:t,minHeight:n="200px",additionalStyles:o=[],editorStyles:a,ratio:r}){e||(e=t);const[i,{height:s}]=(0,jt.useResizeObserver)();Rn=Rn||(0,jt.pure)(An.BlockList);const c=t/e;return(0,l.createElement)(l.Fragment,null,!s&&(0,l.createElement)("div",{className:"kb-preview-iframe-loader"},(0,l.createElement)(Rt.Spinner,null)),(0,l.createElement)(Rt.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${c})`,height:s*c,maxHeight:s>Ln?Ln*c:void 0,minHeight:s?void 0:n}},(0,l.createElement)(Nn,{head:(0,l.createElement)(An.__unstableEditorStyles,{styles:a}),contentRef:(0,jt.useRefEffect)((e=>{const{ownerDocument:{documentElement:t}}=e;t.classList.add("block-editor-block-preview__content-iframe"),t.style.position="absolute",t.style.width="100%",e.style.boxSizing="border-box",e.style.position="absolute",e.style.width="100%"}),[]),"aria-hidden":!0,tabIndex:-1,style:{position:"absolute",width:e,height:s,pointerEvents:"none",maxHeight:Ln,minHeight:0!==c&&c<1&&n?n/c:n}},i,(0,l.createElement)(Rn,{renderAppender:!1}))))}function Dn(e){const[t,{width:n}]=(0,jt.useResizeObserver)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,l.createElement)("div",{className:"block-editor-block-preview__container"},!!n&&(0,l.createElement)(Bn,{...e,containerWidth:n})))}function Fn({blocks:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],editorStyles:a,ratio:r,shadowCompatStyles:i=[]}){const s=(0,Tt.useSelect)((e=>e(An.store).getSettings()),[]),c=(0,Nt.useMemo)((()=>({...s,__unstableIsPreviewMode:!0})),[s]),u=(0,Nt.useMemo)((()=>Array.isArray(e)?e:[e]),[e]);return e&&0!==e.length?(0,l.createElement)(An.BlockEditorProvider,{value:u,settings:c},(0,l.createElement)(Dn,{viewportWidth:t,minHeight:n,additionalStyles:o,ratio:r,editorStyles:a,shadowCompatStyles:i})):null}var zn=n(5848),jn="undefined"!=typeof globalThis?globalThis:"undefined"!=typeof window?window:void 0!==n.g?n.g:"undefined"!=typeof self?self:{};function Hn(e,t){return e(t={exports:{}},t.exports),t.exports}var Wn=Hn((function(e){!function(t){var n=function(e,t,o){if(!s(t)||u(t)||d(t)||p(t)||i(t))return t;var a,r=0,l=0;if(c(t))for(a=[],l=t.length;r<l;r++)a.push(n(e,t[r],o));else for(var m in a={},t)Object.prototype.hasOwnProperty.call(t,m)&&(a[e(m,o)]=n(e,t[m],o));return a},o=function(e){return m(e)?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1)},a=function(e){var t=o(e);return t.substr(0,1).toUpperCase()+t.substr(1)},r=function(e,t){return function(e,t){var n=(t=t||{}).separator||"_",o=t.split||/(?=[A-Z])/;return e.split(o).join(n)}(e,t).toLowerCase()},l=Object.prototype.toString,i=function(e){return"function"==typeof e},s=function(e){return e===Object(e)},c=function(e){return"[object Array]"==l.call(e)},u=function(e){return"[object Date]"==l.call(e)},d=function(e){return"[object RegExp]"==l.call(e)},p=function(e){return"[object Boolean]"==l.call(e)},m=function(e){return(e-=0)==e},g=function(e,t){var n=t&&"process"in t?t.process:t;return"function"!=typeof n?e:function(t,o){return n(t,e,o)}},h={camelize:o,decamelize:r,pascalize:a,depascalize:r,camelizeKeys:function(e,t){return n(g(o,t),e)},decamelizeKeys:function(e,t){return n(g(r,t),e,t)},pascalizeKeys:function(e,t){return n(g(a,t),e)},depascalizeKeys:function(){return this.decamelizeKeys.apply(this,arguments)}};e.exports?e.exports=h:t.humps=h}(jn)})).decamelize,Vn=function(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o},$n=function(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){if("undefined"!=typeof Symbol&&Symbol.iterator in Object(e)){var n=[],o=!0,a=!1,r=void 0;try{for(var l,i=e[Symbol.iterator]();!(o=(l=i.next()).done)&&(n.push(l.value),!t||n.length!==t);o=!0);}catch(e){a=!0,r=e}finally{try{o||null==i.return||i.return()}finally{if(a)throw r}}return n}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vn(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)?Vn(e,t):void 0}}(e,t)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()},Un=Hn((function(e){function t(){return e.exports=t=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},t.apply(this,arguments)}e.exports=t})),Zn=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a},Gn=(0,l.createContext)(null);function qn(e){var t=e.children,n=Zn(e,["children"]);return"string"!=typeof t&&(t=(0,zn.F0)(t)),i().createElement("template",Un({},n,{dangerouslySetInnerHTML:{__html:t}}))}function Kn(e){var t=e.root,n=e.children;return(0,I.createPortal)(n,t)}qn.propTypes={children:A().oneOfType([A().string,A().node])},qn.defaultProps={children:""},Kn.propTypes={root:A().object.isRequired,children:A().node},Kn.defaultProps={children:null};var Jn=new Map,Yn=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"core",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(e){return e.children};return new Proxy(arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},{get:function(n,o){var a=Wn(o,{separator:"-"}),r="".concat(e,"-").concat(a);return Jn.has(r)||Jn.set(r,function(e){var t=(0,l.forwardRef)((function(t,n){var o,a,r=t.mode,s=t.delegatesFocus,c=t.styleSheets,u=t.ssr,d=t.children,p=Zn(t,["mode","delegatesFocus","styleSheets","ssr","children"]),m=(a=(0,l.useRef)((o=n)&&o.current),(0,l.useEffect)((function(){o&&(o.current=a.current)}),[o]),a),g=(0,l.useState)(null),h=$n(g,2),b=h[0],f=h[1],v="node_".concat(r).concat(s);return(0,l.useLayoutEffect)((function(){if(m.current)try{if("function"==typeof n&&n(m.current),u){var e=m.current.shadowRoot;return void f(e)}var t=m.current.attachShadow({mode:r,delegatesFocus:s});c.length>0&&(t.adoptedStyleSheets=c),f(t)}catch(e){!function(e){var t=e.error,n=e.styleSheets,o=e.root;if("NotSupportedError"!==t.name)throw t;n.length>0&&(o.adoptedStyleSheets=n)}({error:e,styleSheets:c,root:b})}}),[n,m,c]),i().createElement(i().Fragment,null,i().createElement(e.tag,Un({key:v,ref:m},p),(b||u)&&i().createElement(Gn.Provider,{value:b},u?i().createElement(qn,{shadowroot:r,shadowrootmode:r},e.render({root:b,ssr:u,children:d})):i().createElement(Kn,{root:b},e.render({root:b,ssr:u,children:d})))))}));return t.propTypes={mode:A().oneOf(["open","closed"]),delegatesFocus:A().bool,styleSheets:A().arrayOf(A().instanceOf(globalThis.CSSStyleSheet)),ssr:A().bool,children:A().node},t.defaultProps={mode:"open",delegatesFocus:!1,styleSheets:[],ssr:!1,children:null},t}({tag:a,render:t})),Jn.get(r)}})}();const Xn=Yn;Object.defineProperty;var Qn=new Map,eo=new WeakMap,to=0;function no(e,t,n={},o=undefined){if(void 0===window.IntersectionObserver&&void 0!==o){const a=e.getBoundingClientRect();return t(o,{isIntersecting:o,target:e,intersectionRatio:"number"==typeof n.threshold?n.threshold:0,time:0,boundingClientRect:a,intersectionRect:a,rootBounds:a}),()=>{}}const{id:a,observer:r,elements:l}=function(e){let t=function(e){return Object.keys(e).sort().filter((t=>void 0!==e[t])).map((t=>{return`${t}_${"root"===t?(n=e.root,n?(eo.has(n)||(to+=1,eo.set(n,to.toString())),eo.get(n)):"0"):e[t]}`;var n})).toString()}(e),n=Qn.get(t);if(!n){const o=new Map;let a;const r=new IntersectionObserver((t=>{t.forEach((t=>{var n;const r=t.isIntersecting&&a.some((e=>t.intersectionRatio>=e));e.trackVisibility&&void 0===t.isVisible&&(t.isVisible=r),null==(n=o.get(t.target))||n.forEach((e=>{e(r,t)}))}))}),e);a=r.thresholds||(Array.isArray(e.threshold)?e.threshold:[e.threshold||0]),n={id:t,observer:r,elements:o},Qn.set(t,n)}return n}(n);let i=l.get(e)||[];return l.has(e)||l.set(e,i),i.push(t),r.observe(e),function(){i.splice(i.indexOf(t),1),0===i.length&&(l.delete(e),r.unobserve(e)),0===l.size&&(r.disconnect(),Qn.delete(a))}}l.Component;const oo=({rootScroll:e,className:t,onContentVisible:n,children:o})=>{const a={triggerOnce:!0,rootMargin:"600px 0px",onChange:e=>{e&&n()}},{ref:r,inView:i}=function({threshold:e,delay:t,trackVisibility:n,rootMargin:o,root:a,triggerOnce:r,skip:i,initialInView:s,fallbackInView:c,onChange:u}={}){var d;const[p,m]=l.useState(null),g=l.useRef(),[h,b]=l.useState({inView:!!s,entry:void 0});g.current=u,l.useEffect((()=>{if(i||!p)return;let l;return l=no(p,((e,t)=>{b({inView:e,entry:t}),g.current&&g.current(e,t),t.isIntersecting&&r&&l&&(l(),l=void 0)}),{root:a,rootMargin:o,threshold:e,trackVisibility:n,delay:t},c),()=>{l&&l()}}),[Array.isArray(e)?e.toString():e,p,a,o,r,i,n,c,t]);const f=null==(d=h.entry)?void 0:d.target,v=l.useRef();p||!f||r||i||v.current===f||(v.current=f,b({inView:!!s,entry:void 0}));const y=[m,h.inView,h.entry];return y.ref=y[0],y.inView=y[1],y.entry=y[2],y}(a);return(0,l.createElement)("div",{ref:r,className:`LazyLoad${i?" is-visible":""}${t?` ${t}`:""}`},i?[o]:null)},ao=1600;function ro({html:e,viewportWidth:t,containerWidth:n,minHeight:o=50,additionalStyles:a=[],title:r,ratio:i,shadowCompatStyles:s,shadowStyles:c,patternType:u="pattern",rootScroll:d}){t||(t=n);const[p,m]=(0,Nt.useState)(!1),[g,h]=(0,Nt.useState)(0),[b,{height:f}]=(0,jt.useResizeObserver)(),v=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("link",{rel:"stylesheet",id:"kadence-blocks-iframe-base",href:kadence_blocks_params.livePreviewStyles,media:"all"}),s),y=(0,l.createElement)(l.Fragment,null,c.map(((e,t)=>{if(e?.css){let n=e.css.replace(/ .block-editor-block-list__layout/g,"");return n=n.replace(/:root/g,".pattern-shadow-wrap"),n=n.replace(/body/g,".single-iframe-content"),(0,l.createElement)("style",{key:t},n)}}))),k=n/t,E=p?"auto":f,w=`transform ${f>=ao?(E-ao)/650*1e3:2e3}ms linear !important`,_=(0,Nt.useRef)(null);return(0,Nt.useEffect)((()=>{_.current&&(()=>{const e=_.current.shadowRoot.querySelectorAll('style, link[rel="stylesheet"]');let t=0;e.forEach((n=>{n.sheet?t++:"link"===n.tagName.toLowerCase()&&(n.onload=()=>{t++,t===e.length&&h(1)})})),t===e.length&&h(1)})()}),[_?.current]),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(oo,{offset:200,rootScroll:d,onContentVisible:()=>{setTimeout((()=>{m(!0)}),100),setTimeout((()=>{m(!1)}),400),setTimeout((()=>{h(1)}),800)}},(0,l.createElement)(Rt.Disabled,{className:"block-editor-block-preview__content",style:{transform:`scale(${k})`,height:E?E*k:"auto",maxHeight:E>ao?ao*k:void 0}},(0,l.createElement)(Xn.div,{ref:_,className:"kb-pattern-shadow-container"+(f>=ao?" kb-pattern-overflow":""),"aria-hidden":!0,tabIndex:-1,style:{opacity:g,position:"absolute",width:t,height:E,pointerEvents:"none",maxHeight:ao,minHeight:0!==k&&k<1&&o?o/k:o}},v,y,(0,l.createElement)("style",null,`.pattern-shadow-wrap { transition: ${w} }`),(0,l.createElement)("div",{part:"container",className:"editor-styles-wrapper pattern-shadow-wrap"},b,(0,l.createElement)("div",{className:"single-iframe-content"+(kadence_blocks_params.isKadenceT?" single-content":""),dangerouslySetInnerHTML:{__html:e}}))))),!f&&(0,l.createElement)("div",{className:"kb-preview-iframe-loader-ratio",style:{paddingBottom:i||void 0,minHeight:i?void 0:o}},(0,l.createElement)("div",{className:"kb-preview-iframe-loader"},(0,l.createElement)(Rt.Spinner,null))))}function lo(e){const[t,{width:n}]=(0,jt.useResizeObserver)();return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{style:{position:"relative",width:"100%",height:0}},t),(0,l.createElement)("div",{className:"block-editor-block-preview__container"},(0,l.createElement)(ro,{...e,containerWidth:n})))}function io({html:e,viewportWidth:t=1200,minHeight:n,additionalStyles:o=[],title:a,ratio:r,shadowStyles:i,shadowCompatStyles:s,patternType:c,rootScroll:u}){return e?(0,l.createElement)(lo,{viewportWidth:t,minHeight:n,html:e,additionalStyles:o,title:a,ratio:r,shadowStyles:i,shadowCompatStyles:s,patternType:c,rootScroll:u}):null}function so(e){return(0,Nt.useMemo)((()=>{const t=document.implementation.createHTMLDocument("");return t.body.innerHTML=e,Array.from(t.body.children)}),[e])}const co=({showTooltip:e,title:t,children:n})=>e?(0,l.createElement)(Rt.Tooltip,{text:t},n):(0,l.createElement)(l.Fragment,null,n),uo=(e,t)=>Number(Math.round(Number(e+"e"+t))+"e"+-1*t);function po({pattern:e,onClick:t,showTooltip:n,customStyles:a,previewMode:i,selectedStyle:s,editorStyles:c,shadowStyles:u,shadowCompatStyles:d,patternType:p,rootScroll:m}){const{content:g,viewportWidth:h,pro:b,locked:f,proRender:v,image:y,imageHeight:k,imageWidth:E,html:w}=e,_=(0,jt.useInstanceId)(po),S=`block-editor-block-patterns-list__item-description-${_}`;return(0,l.createElement)("div",{key:_,className:`block-editor-block-patterns-list__list-item kb-pattern-style-${s}`},(0,l.createElement)(co,{showTooltip:n,title:e.title},(0,l.createElement)("div",{role:"option",className:"block-editor-block-patterns-list__item"+(f?" kb-pattern-item-locked":""),onClick:()=>{f?console.log("Can not install"):t(e,g)},"aria-disabled":!!f||void 0,"aria-label":e.title,"aria-describedby":e.description?S:void 0},v&&"image"!==i&&!w&&(0,l.createElement)("div",{className:"kb-pattern-requires-pro-item-wrap block-editor-block-preview__container"},(0,l.createElement)("span",{className:"kb-pattern-requires-pro-item"},(0,o.__)("Requires Kadence Blocks Pro to Render Preview","kadence-blocks"))),g&&!v&&"image"!==i&&!w&&(0,l.createElement)(Fn,{blocks:(0,r.parse)(g,{__unstableSkipMigrationLogs:!0}),viewportWidth:h,additionalStyles:a,editorStyles:c,shadowCompatStyles:d}),"image"!==i&&w&&(0,l.createElement)(io,{html:w,title:e.title,viewportWidth:h,additionalStyles:a,ratio:E&&k?uo(k/E*100,2)+"%":void 0,shadowStyles:u,shadowCompatStyles:d,patternType:p,rootScroll:m}),"image"===i&&(0,l.createElement)("div",{className:"kb-pattern-image-wrap",style:{paddingBottom:E&&k?uo(k/E*100,2)+"%":void 0}},(0,l.createElement)("img",{src:y,loading:"lazy",alt:e.title})),f&&(0,l.createElement)("div",{className:"kb-pattern-requires-active-pro"},(0,l.createElement)("span",{className:"kb-pattern-requires-active-pro-item"},(0,l.createElement)(Rt.ExternalLink,{href:"https://www.kadencewp.com/kadence-blocks/pro/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=patterns"},(0,o.__)("Requires Kadence Blocks Pro","kadence-blocks")))),!n&&("page"===p?(0,l.createElement)("div",{className:"block-editor-block-patterns-list__item-title kb-pattern-type-page"},(0,l.createElement)("div",{className:"kb-pattern-footer-top"},(0,l.createElement)("span",{className:"kb-pattern-title",dangerouslySetInnerHTML:{__html:e.title}}),e?.pageStyles&&e.pageStyles.length&&Object.values(e.pageStyles).map((e=>(0,l.createElement)("span",{className:"kb-pattern-style-tag"},e)))),e.description?(0,l.createElement)("div",{className:"kb-pattern-description"},e.description):null):(0,l.createElement)("div",{className:"block-editor-block-patterns-list__item-title"},(0,l.createElement)("span",{className:"kb-pattern-inline-title",dangerouslySetInnerHTML:{__html:e.title}}),void 0!==b&&b&&(0,l.createElement)("span",{className:"kb-pattern-pro-item"},(0,o.__)("Pro","kadence-blocks")))),!!e.description&&(0,l.createElement)(Rt.VisuallyHidden,{id:S},e.description))))}function mo({blockPatterns:e,selectedCategory:t,filterValue:n,onClickPattern:a,label:r=(0,o.__)("Block Patterns","kadence-blocks"),showTitlesAsTooltip:i,customStyles:s,breakpointCols:c,previewMode:u="iframe",selectedStyle:d="light",patternType:p="pattern",rootScroll:m}){const{styles:g,assets:h}=(0,Tt.useSelect)((e=>{const t=e(An.store).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}}),[]),b=so(h?.styles),f=b.map((e=>e.id)),v=["kadence-blocks-global-editor-styles-inline-css","kadence-editor-global-inline-css","wp-block-library-css","wc-blocks-vendors-style-css","wc-blocks-style-css"],y=["yoast-seo-metabox-css-css"],k=b.filter((e=>v.includes(e.id))),E=Mn().filter((e=>e.id&&!f.includes(e.id)&&!y.includes(e.id))),w=(0,Nt.useMemo)((()=>(0,l.createElement)(l.Fragment,null,[...E,...k].map((({tagName:e,href:t,id:n,rel:o,media:a,textContent:r})=>{const i=e.toLowerCase();let s=r.replace(/ .block-editor-block-list__layout/g,"");return s=s.replace(/:root/g,".pattern-shadow-wrap"),"style"===i?(0,l.createElement)(i,{id:n,key:n},s):(0,l.createElement)(i,{href:t,id:n,rel:o,media:a,key:n})})))),[E,k]),_=(0,Nt.useMemo)((()=>g?[...g,{css:"body{height:auto;overflow:hidden;border:none;padding:0;}body{--wp--style--global--content-size:var(--wp--style--global--wide-size )}",__unstableType:"presets"},...s]:g),[g,s]),S="image"===u?16:4,[C,x]=(0,Nt.useState)(!0),[I,O]=(0,Nt.useState)(S),A=(0,Ct.debounce)((e=>{O(e)}),500);return(0,Nt.useEffect)((()=>{O(S),x(!0)}),[t,n,e]),(0,l.createElement)("div",{className:"block-editor-block-patterns-list"},(0,l.createElement)(On(),{className:"block-editor-block-patterns-list-wrap",pageStart:0,loadMore:()=>{I>=e.length?x(!1):A(I+S)},hasMore:C,loader:(0,l.createElement)(Rt.Spinner,null),useWindow:!1},(0,l.createElement)(xn,{breakpointCols:c,className:"kb-css-masonry kb-core-section-library",columnClassName:"kb-css-masonry_column"},(e=>{const t=[];for(let n=0;n<I;n++)void 0!==e[n]?.name&&t.push((0,l.createElement)(po,{key:e[n]?.name||n,pattern:e[n],onClick:a,showTooltip:i,customStyles:s,previewMode:u,selectedStyle:d,editorStyles:_,shadowStyles:"",rootScroll:m,shadowCompatStyles:w,patternType:p}));return t})(e))))}const go=function({blockPatterns:e,selectedCategory:t,selectedPageStyles:n,filterValue:a,onClickPattern:r,label:i=(0,o.__)("Block Patterns","kadence-blocks"),showTitlesAsTooltip:s,customStyles:c,customShadowStyles:u,breakpointCols:d,previewMode:p="iframe",selectedStyle:m="light",patternType:g="pattern",renderType:h="shadow",rootScroll:b}){if("iframe"===h)return(0,l.createElement)(mo,{selectedCategory:t,blockPatterns:filteredBlockPatterns,onClickPattern:onSelectBlockPattern,showTitlesAsTooltip:!1,customStyles:c,breakpointCols:d,previewMode:p,selectedStyle:m,rootScroll:b});const{styles:f,assets:v}=(0,Tt.useSelect)((e=>{const t=e(An.store).getSettings();return{styles:t.styles,assets:t.__unstableResolvedAssets}}),[]),y=so(v?.styles),k=y.map((e=>e.id)),E=["kadence-blocks-global-editor-styles-inline-css","kadence-editor-global-inline-css","wp-block-library-css","wc-blocks-vendors-style-css","wc-blocks-style-css"],w=["yoast-seo-metabox-css-css"],_=y.filter((e=>E.includes(e.id))),S=Mn().filter((e=>e.id&&!k.includes(e.id)&&!w.includes(e.id))),C=(0,Nt.useMemo)((()=>(0,l.createElement)(l.Fragment,null,[...S,..._].map((({tagName:e,href:t,id:n,rel:o,media:a,textContent:r})=>{const i=e.toLowerCase();let s=r.replace(/ .block-editor-block-list__layout/g,"");return s=s.replace(/:root/g,".pattern-shadow-wrap"),"style"===i?(0,l.createElement)(i,{id:n,key:n},s):(0,l.createElement)(i,{href:t,id:n,rel:o,media:a,key:n})})))),[S,_]),x=(0,Nt.useMemo)((()=>f?[...f,{css:".single-iframe-content{--wp--style--global--content-size:var(--wp--style--global--wide-size )}",__unstableType:"presets"},...u]:f),[f,u]),[I,O]=(0,Nt.useState)(!0),[A,M]=(0,Nt.useState)(40),P=(0,Ct.debounce)((e=>{M(e)}),100);return(0,Nt.useEffect)((()=>{O(!0),M(30)}),[t,n,a,e]),(0,l.createElement)("div",{className:"block-editor-block-patterns-list"},(0,l.createElement)(On(),{className:"block-editor-block-patterns-list-wrap",pageStart:0,loadMore:()=>{A>=e.length?O(!1):P(A+30)},hasMore:I,loader:(0,l.createElement)(Rt.Spinner,null),useWindow:!1,threshold:800},(0,l.createElement)(xn,{breakpointCols:d,className:"kb-css-masonry kb-core-section-library",columnClassName:"kb-css-masonry_column"},(e=>{const t=[];for(let n=0;n<A;n++)void 0!==e[n]?.name&&t.push((0,l.createElement)(po,{key:e[n]?.name||n,pattern:e[n],onClick:r,showTooltip:s,customStyles:c,shadowStyles:x,previewMode:p,selectedStyle:m,editorStyles:"",rootScroll:b,shadowCompatStyles:C,patternType:g}));return t})(e))))},ho={category:(0,o.__)("Category","kadence-blocks"),hero:(0,o.__)("Hero","kadence-blocks"),cards:(0,o.__)("Cards","kadence-blocks"),columns:(0,o.__)("Columns","kadence-blocks"),"media-text":(0,o.__)("Media and Text","kadence-blocks"),"counter-or-stats":(0,o.__)("Counter or Stats","kadence-blocks"),form:(0,o.__)("Form","kadence-blocks"),gallery:(0,o.__)("Gallery","kadence-blocks"),accordion:(0,o.__)("Accordion","kadence-blocks"),image:(0,o.__)("Image","kadence-blocks"),list:(0,o.__)("List","kadence-blocks"),location:(0,o.__)("Location","kadence-blocks"),"logo-farm":(0,o.__)("Logo Farm","kadence-blocks"),team:(0,o.__)("Team","kadence-blocks"),"post-loop":(0,o.__)("Post Loop","kadence-blocks"),"pricing-table":(0,o.__)("Pricing Table","kadence-blocks"),slider:(0,o.__)("Slider","kadence-blocks"),tabs:(0,o.__)("Tabs","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks"),text:(0,o.__)("Text","kadence-blocks"),"title-or-header":(0,o.__)("Title or Header","kadence-blocks"),menu:(0,o.__)("Menu","kadence-blocks"),video:(0,o.__)("Video","kadence-blocks")},bo={"value-prop":(0,o.__)("Value Proposition","kadence-blocks"),"products-services":(0,o.__)("Products or Services","kadence-blocks"),about:(0,o.__)("About","kadence-blocks"),achievements:(0,o.__)("Achievements","kadence-blocks"),"call-to-action":(0,o.__)("Call to Action","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks"),"get-started":(0,o.__)("Get Started","kadence-blocks"),"pricing-table":(0,o.__)("Pricing Table","kadence-blocks"),location:(0,o.__)("Location","kadence-blocks"),history:(0,o.__)("History","kadence-blocks"),mission:(0,o.__)("Mission","kadence-blocks"),profile:(0,o.__)("Profile","kadence-blocks"),team:(0,o.__)("Team","kadence-blocks"),work:(0,o.__)("Work","kadence-blocks"),faq:(0,o.__)("FAQ","kadence-blocks"),welcome:(0,o.__)("Welcome","kadence-blocks"),news:(0,o.__)("News","kadence-blocks"),blog:(0,o.__)("Blog","kadence-blocks"),"contact-form":(0,o.__)("Contact","kadence-blocks"),"subscribe-form":(0,o.__)("Subscribe","kadence-blocks"),careers:(0,o.__)("Careers","kadence-blocks"),donate:(0,o.__)("Donate","kadence-blocks"),events:(0,o.__)("Events","kadence-blocks"),partners:(0,o.__)("Partners","kadence-blocks"),industries:(0,o.__)("Industries","kadence-blocks"),volunteer:(0,o.__)("Volunteer","kadence-blocks"),support:(0,o.__)("Support","kadence-blocks")},fo={"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,mission:!1,team:!1,work:!1,welcome:!1,"contact-form":!1,"subscribe-form":!1,industries:!1},vo={category:(0,o.__)("Category","kadence-blocks"),home:(0,o.__)("Home","kadence-blocks"),about:(0,o.__)("About","kadence-blocks"),contact:(0,o.__)("Contact","kadence-blocks"),services:(0,o.__)("Services","kadence-blocks")},yo={"value-prop":"6","products-services":"8",about:"5",achievements:"4","call-to-action":"4",testimonials:"1","get-started":"4","pricing-table":"1",location:"3",history:"4",mission:"4",profile:"4",team:"5",work:"5",faq:"1",welcome:"5",news:"1",blog:"2","contact-form":"1","subscribe-form":"1",careers:"5",donate:"5",events:"5",partners:"3",industries:"5",volunteer:"5",support:"4"};async function ko(e,t){try{return await Pt()({path:"/kb-design-library/v1/handle_event",method:"POST",data:{event_label:e,event_data:t||{}}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}}const Eo=window.wp.url,wo="/kb-design-library/v1/get_images",{kadence_blocks_params:_o}=window;function So(){const[e,t]=(0,Nt.useState)(!1),[n,o]=(0,Nt.useState)(!1),[a,r]=(0,Nt.useState)(!1),[l,i]=(0,Nt.useState)(!1);let s=void 0!==_o&&_o?.proData&&_o?.proData?.api_key?_o.proData.api_key:"",c=void 0!==_o&&_o?.proData&&_o?.proData?.api_email?_o.proData.api_email:"";const u=void 0!==_o&&_o?.proData&&_o?.proData?.product_id?_o.proData.product_id:"";return s||(s=void 0!==_o&&_o?.proData&&_o?.proData?.ithemes_key?_o.proData.ithemes_key:"",s&&(c="iThemes")),{error:l,getAIContentData:async function(e){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get",{context:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getLocalAIContentData:async function(){try{return await Pt()({path:"/kb-design-library/v1/get_all_items"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAIContentDataReload:async function(e){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get",{force_reload:!0,context:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},saveAIWizardData:async function(e){t(!0),i(!1);try{if(await Pt()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_prophecy:JSON.stringify(e)}}))return t(!1),!0}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),i(!0),!1}},getAIWizardData:async function(e=!1){t(!0),i(!1);const n=!(!window?.kadence_blocks_params_wizard?.settings||!window?.kadence_blocks_params_wizard?.settings?.context)&&window.kadence_blocks_params_wizard.settings;if(!e&&n)return t(!1),console.log("Preloaded Wizard Data"),n;try{const e=await Pt()({path:"/wp/v2/settings",method:"GET"});if(e&&(t(!1),e?.kadence_blocks_prophecy))return window?.kadence_blocks_params_wizard||(window.kadence_blocks_params_wizard={}),window.kadence_blocks_params_wizard.settings=e.kadence_blocks_prophecy,e.kadence_blocks_prophecy}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),i(!0),{}}},getCollectionByIndustry:async function(e){if(!e?.photoLibrary)return[];const t=!(!e?.customCollections||!e?.customCollections.some((t=>t.value===e?.photoLibrary)))&&e?.customCollections.find((t=>t.value===e?.photoLibrary));if(t){const e={data:[]};if(t?.galleries?.[0]?.images){const n=t?.galleries?.[0]?.images.map(((e,t)=>{const n={};return e?.alt&&(n.alt=e.alt),e?.url&&(n.url=e.url),e?.width&&(n.width=e.width),e?.height&&(n.height=e.height),e?.photographer&&(n.photographer=e.photographer),e?.photographer_url&&(n.photographer_url=e.photographer_url),e?.id&&(n.id=e.id),e?.sizes?.[1]?.src?e.sizes.find((e=>"large"===e.name))?n.sizes=[{src:e.sizes.find((e=>"large"===e.name)).src}]:e.sizes.find((e=>"2048x2048"===e.name))?n.sizes=[{src:e.sizes.find((e=>"2048x2048"===e.name)).src}]:e.sizes.find((e=>"scaled"===e.name))?n.sizes=[{src:e.sizes.find((e=>"scaled"===e.name)).src}]:n.sizes=[{src:e.sizes[1].src}]:n.sizes=[{src:e.url}],n}));e.data.push({images:n})}if(t?.galleries?.[1]?.images){const n=t?.galleries?.[1]?.images.map(((e,t)=>{const n={};return e?.alt&&(n.alt=e.alt),e?.url&&(n.url=e.url),e?.width&&(n.width=e.width),e?.height&&(n.height=e.height),e?.photographer&&(n.photographer=e.photographer),e?.photographer_url&&(n.photographer_url=e.photographer_url),e?.id&&(n.id=e.id),n.sizes=e?.sizes?.[1]?.src?[{src:e.sizes[1].src}]:[{src:e.url}],n}));e.data.push({images:n})}return e}if("aiGenerated"===e?.photoLibrary){const t=Array.isArray(e.photoLibrary)?e?.photoLibrary:[e.photoLibrary];try{const n=await Pt()({path:(0,Eo.addQueryArgs)(wo,{industries:t,industry:e?.imageSearchQuery})}),o=(0,At.SafeParseJSON)(n,!1);return o?{data:[{name:"featured",images:o?.data?.images.slice(0,12)},{name:"background",images:o?.data?.images.slice(12,24)}]}:[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}}const n=Array.isArray(e.photoLibrary)?e?.photoLibrary:[e.photoLibrary];try{const e=await Pt()({path:(0,Eo.addQueryArgs)(wo,{industries:n})});return(0,At.SafeParseJSON)(e,!1)||[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}},getPatterns:async function(e,t,n=null,o=null){if("section"===e&&!t){const e=!!(window?.kadence_blocks_params_library?.library_sections&&window?.kadence_blocks_params_library?.library_sections.length>0)&&window.kadence_blocks_params_library.library_sections;if(e)return console.log("Preloaded Patterns"),e}try{const a=await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_library",{force_reload:t,library:e,library_url:n||"",key:o||e})});return"section"===e&&(window?.kadence_blocks_params_library||(window.kadence_blocks_params_library={}),window.kadence_blocks_params_library.library_sections=a),a}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getPatternCategories:async function(e,t,n=null,o=null){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_library_categories",{force_reload:t,library:e,library_url:n||"",key:o||e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getPattern:async function(e,t,n,o,a=null,r=null){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_pattern_content",{library:e,library_url:a||"",key:r||e,pattern_id:n||"",pattern_type:t||"",pattern_style:o||"",api_key:s,api_email:c,product_id:u})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},processPattern:async function(e,t="",n=""){try{return await Pt()({path:"/kb-design-library/v1/process_pattern",method:"POST",data:{content:e,image_library:t,forms:n}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getLocalAIContexts:async function(){try{return await Pt()({path:"/kb-design-library/v1/get_local_contexts"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getInitialAIContent:async function(){try{return await Pt()({path:"/kb-design-library/v1/get_initial_jobs"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAllAIContentData:async function(e=!1){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get-all-ai",{force_reload:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAIContentRemaining:async function(e=!1){try{return await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_remaining_jobs",{force_reload:e})})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"failed"}},getAvailableCredits:async function(){try{return await Pt()({path:"/kb-design-library/v1/get_remaining_credits"})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),"error"}}}}function Co({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,o.sprintf)(/* translators: %d: number of patterns. %s: block pattern search query */ /* translators: %d: number of patterns. %s: block pattern search query */
(0,o._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}function xo({type:e}){return"error"===e?(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice kb-patterns-banner-notice-error"},(0,o.__)("Error Generating AI Content","kadence-blocks")):(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice"},(0,l.createElement)(Rt.Spinner,null),"processing"===e?(0,o.__)("Generating AI Content.","kadence-blocks"):(0,o.__)("Loading AI Content.","kadence-blocks"))}function Io({context:e,contextLabel:t,contextState:n,generateContext:r}){const[i,s]=(0,Nt.useState)(!1),[c,u]=(0,Nt.useState)(!1);(0,Nt.useEffect)((()=>{s(!1),"credits"!==n&&"error"!==n&&"failed"!==n||u(!0)}),[e,n]);const d=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro),p=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",m=window?.kadence_blocks_params?.isAuthorized,g=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"";return(0,l.createElement)("div",{className:"kb-patterns-banner-generate-notice"},(0,l.createElement)(Rt.Icon,{className:"kadence-generate-icons",icon:a.aiIcon}),(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice"},(0,o.sprintf)(/* translators: %s: the current context */ /* translators: %s: the current context */
(0,o.__)("Would you like to generate AI powered content for the %s context?","kadence-blocks"),t)),(0,l.createElement)("p",null,(0,o.sprintf)(/* translators: %s: the current context */ /* translators: %s: the current context */
(0,o.__)("Using the site information you provided we will generate copy for the %s context.","kadence-blocks"),t)),!m&&!i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!g,target:g?"_blank":"",href:g||""}),m&&!p&&!i&&(0,l.createElement)(l.Fragment,null,d&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence Blocks Pro Required","kadence-blocks"),disabled:!g,href:g||""}),!d&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!g,target:g?"_blank":"",href:g||""})),m&&p&&!i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,disabled:c,text:(0,o.sprintf)(/* translators: %s is the credit amount */ /* translators: %s is the credit amount */
(0,o.__)("Generate Content (%s Credits)","kadence-blocks"),yo?.[e]?yo[e]:"1"),onClick:()=>{s(!0),r(e)}}),i&&(0,l.createElement)(Rt.Spinner,null))}function Oo({launchWizard:e}){const t=(0,o.__)("Supercharge your web design process with Kadence AI","kadence-blocks"),n=(0,o.__)("To fill your library with thoughtful, relevant, and unique content, simply enter your site goals and information into our prompt wizard.\n\t\tOur design library includes context-driven design patterns that are easy to use, saving you time and effort during the design process. It\n\t\tonly takes a few minutes to get started.","kadence-blocks");return(0,l.createElement)("div",{className:"kb-patterns-banner-generate-notice"},(0,l.createElement)(Rt.Icon,{className:"kadence-generate-icons",icon:a.aiIcon}),(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice"},t),(0,l.createElement)("p",null,n),(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Launch AI Startup","kadence-blocks"),onClick:()=>{e()}}))}function Ao({type:e}){return"license"===e?(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading"},(0,o.__)("Error Generating AI Content, verify license and available credits.","kadence-blocks")):"credits"===e?(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading"},(0,o.__)("Error, Can not generate AI Content because of insufficient credits.","kadence-blocks")):(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice ai-failed-loading"},"reload"===e?(0,o.__)("AI Content Failed to Load, Please reload this browser window.","kadence-blocks"):(0,o.__)("AI Content Failed to Load.","kadence-blocks"))}function Mo({label:e,items:t,selectedItems:n}){const[a,r]=(0,Nt.useState)(t.filter((e=>"All"!==e.label))),[i,s]=(0,Nt.useState)([]);(0,Nt.useEffect)((()=>{if(a&&a.length){const e=a.filter((e=>e.checked));s(e),n&&n(e)}}),[a]);const c=(0,l.createElement)("svg",{width:"10",height:"7",viewBox:"0 0 10 7",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M1.175 0.158203L5 3.97487L8.825 0.158203L10 1.3332L5 6.3332L0 1.3332L1.175 0.158203Z",fill:"#020129"}));return(0,l.createElement)(Rt.Dropdown,{variant:"unstyled",className:"kb-patterns-filter-dropdown",contentClassName:"kb-patterns-filter-dropdown-content",popoverProps:{placement:"bottom-start"},renderToggle:({isOpen:t,onToggle:n})=>(0,l.createElement)(Rt.Button,{onClick:n,"aria-expanded":t,className:"kb-toggle-button"},(0,l.createElement)("div",{className:"kb-toggle-button-wrapper"},(0,l.createElement)("span",null,e," ",i.length>0?`(${i.length})`:""),c)),renderContent:()=>(0,l.createElement)("div",null,(0,l.createElement)("div",{className:"kb-patterns-filter-dropdown-content-inner"},a&&a.map(((e,t)=>e.value&&(0,l.createElement)("div",{className:"kb-pattern-filter-item",key:e.value},(0,l.createElement)(Rt.CheckboxControl,{checked:e.checked,id:e.value,label:e.label,onChange:e=>((e,t)=>{const o=[...a];o[t].checked=e,r(o);const l=o.filter((e=>e.checked));s(l),n&&n(i)})(e,t)}))))),(0,l.createElement)("div",{className:"kb-pattern-filter-dropdown-content-clear",onClick:e=>{r(a.map((e=>({...e,checked:!1}))))}},(0,o.__)("Clear","kadence-blocks")))})}function Po({launchWizard:e}){const t=window?.kadence_blocks_params?.isAuthorized,n=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",r=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"",i=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro),s=(0,o.__)("Fill your library with thoughtful, relevant, and unique content. It\n\t\tonly takes a few minutes to get started.","kadence-blocks");return(0,l.createElement)("div",{className:"kb-patterns-banner-generate-notice"},(0,l.createElement)(Rt.Icon,{className:"kadence-generate-icons",icon:a.aiIcon}),(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice"},(0,o.__)("Supercharge your web design process with Kadence AI","kadence-blocks")),(0,l.createElement)("p",null,s),!t&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:r?"_blank":"",disabled:!r,href:r||""}),t&&!n&&(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence Blocks Pro Required","kadence-blocks"),disabled:!r,href:r||""}),!i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:r?"_blank":"",disabled:!r,href:r||""})),t&&n&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Generate Content AI Content","kadence-blocks"),onClick:()=>{e()}}))}const To=function({patterns:e,filterValue:t,selectedCategory:n,selectedStyle:a="light",breakpointCols:r,onSelect:i,previewMode:s="iframe",selectedFontSize:c,aiContext:u,aINeedsData:d,contextTab:p,imageCollection:m,teamCollection:g,contextStatesRef:h,useImageReplace:b,generateContext:f,contextLabel:v,launchWizard:y,categories:k,userData:E,styles:w}){const[_,S]=(0,Nt.useState)(!1),[C,x]=(0,Nt.useState)(!1),[I,O]=(0,Nt.useState)("general"),[A,M]=(0,Nt.useState)(),[P,T]=(0,Nt.useState)([]),[N,R]=(0,Nt.useState)([]),L=(0,jt.useDebounce)($t.speak,500),{getPattern:B}=So(),{getContextState:D,getContextContent:F,getAllContext:z}=(0,Tt.useSelect)((e=>({getContextState:t=>e("kadence/library").getContextState(t),getContextContent:t=>e("kadence/library").getContextContent(t),getAllContext:()=>e("kadence/library").getAllContext()})),[]),j=(!window?.kadence_blocks_params?.pro||kadence_blocks_params.pro,window?.kadence_blocks_params?.isAuthorized),H=!!window?.kadence_blocks_params?.isAIDisabled,W=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",V=(0,Nt.useMemo)((()=>{const t=[];let n=0;return Object.keys(e).map((function(o,a){const r=[];11===n&&(n=0),r.title=e[o].name,r.name=e[o].name,r.image=e[o].image,r.imageWidth=e[o].imageW,r.imageHeight=e[o].imageH,r.id=e[o].id,r.slug=e[o].slug,r.categories=e[o].categories?Object.keys(e[o].categories):[],r.styles=e[o].styles?Object.keys(e[o].styles):[],r.contexts=e[o].contexts?Object.keys(e[o].contexts):[],r.hpcontexts=e[o].hpcontexts?Object.keys(e[o].hpcontexts):[],r.keywords=e[o].keywords?e[o].keywords:[],e[o]?.html&&(r.html=yn(e[o].html)),r.content=e[o]?.content||"",r.pro=e[o].pro,r.locked=!(!e[o].pro||"true"===kadence_blocks_params.pro),r.proRender=!1,r.viewportWidth=1200,r.variation=n,n++,t.push(r)})),t}),[e]),$=(0,Nt.useMemo)((()=>{let e="contact-form"===u?"contact":u;if(e="subscribe-form"===e?"subscribe":e,e="pricing-table"===e?"pricing":e,"context"===p){if(d)return console.log("AI Needed"),[];if(!D(u))return console.log("AI Needed"),[];if("loading"===D(u))return console.log("Loading AI Content"),S(!1),[];if("processing"===D(u))return console.log("Generating AI Content"),S(!1),[];"error"===D(u)?(console.log("Error Generating AI Content"),S(!0),O("license")):"credits"===D(u)?(console.log("Error not enough credits"),S(!0),O("credits")):"failed"===F(u)?(console.log("AI Content has failed"),S(!0),O("general")):"failedReload"===F(u)&&(console.log("AI Content has failed, reload page required."),S(!0),O("reload"))}let o=V;if(!t&&"design"===p&&n&&"all"!==n&&(o=o.filter((e=>e.categories?.includes(n)))),"context"===p&&e&&(o=o.filter((t=>t.contexts?.includes(e))),o=o.sort((t=>t?.hpcontexts?.includes(e+"-hp")?-1:1))),"context"===p&&P&&P.length>0&&N&&N.length>0?o=o.filter((e=>e.categories.some((e=>P.includes(e)))&&e.styles.some((e=>N.includes(e))))):"context"===p&&P&&P.length>0?o=o.filter((e=>e.categories.some((e=>P.includes(e))))):"context"===p&&N&&N.length>0&&(o=o.filter((e=>e.styles.some((e=>N.includes(e)))))),"all"===b&&m){let e=0;o=o.map(((t,n)=>(11===e&&(e=0),t?.html?(t.html=pn(t.html,m,t.categories,t.id,t.variation,g),t.content=pn(t.content,m,t.categories,t.id,t.variation,g)):t.content=pn(t.content,m,t.categories,t.id,t.variation,g),e++,t)))}if("context"===p){const e=z();let t=0;o=o.map(((n,o)=>(11===t&&(t=0),n?.html?(n.html=gn(n.html,e,n.categories,u,n.variation,!0),E?.locationType&&"Online Only"!==E?.locationType&&E?.locationInput&&(n.html=fn(n.html,E.locationInput))):n.content=gn(n.content,e,n.categories,u,n.variation),t++,n)))}return ln(o,t)}),[t,n,V,u,p,h,m,b,d,P,N]),U=(0,Nt.useMemo)((()=>!!e[Object.keys(e)[0]]?.html),[e]);(0,Nt.useEffect)((()=>{if(!t)return;const e=$.length,n=(0,o.sprintf)(/* translators: %d: number of results. */ /* translators: %d: number of results. */
(0,o._n)("%d result found.","%d results found.",e),e);L(n)}),[t,L]);const Z=(0,Nt.useMemo)((()=>{let e="";return a&&"light"!==a||(e=e.concat("body {--global-content-edge-padding: 3rem;padding:0px !important;}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}")),"dark"===a?e=e.concat(`body {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`):"highlight"===a&&(e=e.concat(`body {--global-palette1:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important; }.kb-submit-field .kb-forms-submit, .kb-btns-outer-wrap .wp-block-button__link {color:${kadence_blocks_params.global_colors["--global-palette9"]};background:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btns-outer-wrap .kb-button.kb-btn-global-outline {color:${kadence_blocks_params.global_colors["--global-palette9"]};border-color:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.block-editor-block-list__layout.is-root-container>.wp-block[data-align=full] {margin-left: 0 !important;margin-right: 0 !important;}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}`)),"sm"===c&&(e=e.concat(`.block-editor-block-list__layout.is-root-container {--global-kb-font-size-xxxl:${kadence_blocks_params.font_sizes.xxl};\n\t\t\t--global-kb-font-size-xxl:${kadence_blocks_params.font_sizes.xl};\n\t\t\t--global-kb-font-size-xl:${kadence_blocks_params.font_sizes.lg};\n\t\t\t--global-kb-font-size-lg:${kadence_blocks_params.font_sizes.md}; }`)),[{css:e}]}),[a,c]),G=(0,Nt.useMemo)((()=>{let e=".pattern-shadow-wrap .single-iframe-content {--global-content-width:1200px; --global-vw:1200px !important;}img{max-width:100%}svg { height: 1em; width: 1em;}";if(a&&"light"!==a||(e=e.concat(".single-iframe-content {--global-content-edge-padding: 3rem;padding:0px !important;}")),e=e.concat(".pattern-shadow-wrap .single-iframe-content {\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t}"),!kadence_blocks_params.isKadenceT){const t=".single-iframe-content .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-background-color { background-color: var(--global-palette9); }";e=e.concat(t)}return"dark"===a?e=e.concat(`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`):"highlight"===a&&(e=e.concat(`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important; }.single-iframe-content .kb-form .kadence-blocks-form-field .kb-forms-submit, .kb-buttons-wrap .wp-block-button__link {color:${kadence_blocks_params.global_colors["--global-palette9"]};background:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-buttons-wrap .kb-button.kb-btn-global-outline {color:${kadence_blocks_params.global_colors["--global-palette3"]};border-color:${kadence_blocks_params.global_colors["--global-palette3"]};} .kb-btn-custom-colors .kb-buttons-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette1"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}`)),"sm"===c&&(e=e.concat(`.single-iframe-content {--global-kb-font-size-xxxl:${kadence_blocks_params.font_sizes.xxl};\n\t\t\t--global-kb-font-size-xxl:${kadence_blocks_params.font_sizes.xl};\n\t\t\t--global-kb-font-size-xl:${kadence_blocks_params.font_sizes.lg};\n\t\t\t--global-kb-font-size-lg:${kadence_blocks_params.font_sizes.md}; }`)),[{css:e}]}),[a,c]),q=!!$?.length;return H&&"context"===p?(0,l.createElement)("div",{className:"kb-ai-dropdown-container-content-wrap activation-needed"},(0,l.createElement)("p",{className:"kb-disabled-authorize-note"},(0,o.__)("Kadence AI is disabled by site admin.","kadence-blocks"))):C?(0,l.createElement)("div",{className:"block-editor-block-patterns-explorer__wrap"},(0,l.createElement)("div",{className:"block-editor-block-patterns-explorer__list"+("context"===p?" kb-ai-patterns-explorer":"")},(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))))):(0,l.createElement)("div",{ref:M,className:"block-editor-block-patterns-explorer__wrap"},(0,l.createElement)("div",{className:"block-editor-block-patterns-explorer__list"+("context"===p?" kb-ai-patterns-explorer":"")},q&&(0,l.createElement)(Co,{filterValue:t,filteredBlockPatternsLength:$.length}),"context"===p&&(!j||!W)&&(0,l.createElement)(Po,{launchWizard:y}),"context"===p&&j&&W&&d&&(0,l.createElement)(Oo,{launchWizard:()=>y()}),"context"===p&&_&&(0,l.createElement)(Ao,{type:I}),"context"===p&&!d&&("processing"===D(u)||"loading"===D(u))&&(0,l.createElement)(xo,{type:D(u)}),"context"===p&&!d&&(!D(u)||"credits"===D(u))&&(0,l.createElement)(Io,{context:u,contextLabel:v,contextState:D(u),generateContext:e=>f(e)}),"context"===p&&!_&&!t&&(0,l.createElement)("div",{className:"kb-patterns-filter-wrapper"},(0,l.createElement)("span",{className:"kb-pattern-filter-label"},"Filter by:"),k.length>0&&(0,l.createElement)(Mo,{label:"Categories",items:k,selectedItems:e=>{const t=e.map((e=>e.value));T(t)}})),q&&!_&&(0,l.createElement)(go,{selectedCategory:n,blockPatterns:$,onClickPattern:async function(e){x(!0);const t=z(),n={id:e.id,slug:e.slug,type:"pattern",style:a||"light"},o=await B("page"===n?.type?"pages":"section",n?.type?n.type:"patternSend",n?.id?n.id:"",n?.style?n.style:"light");let r="";if(o)try{const e=JSON.parse(o);e&&(r=e)}catch(e){}!r&&e?.content&&(r=e.content),ko("pattern_added_to_page",{categories:e.categories,id:e.id,slug:e.slug,name:e.name,style:a||"light",is_ai:"context"===p,context:"context"===p?v:""}),r=pn(r,m,e.categories,e.id,e.variation,g),"context"===p&&(r=gn(r,t,e.categories,u,e.variation)),r=function(e){if(!e)return e;const t=kadence_blocks_params?.replaceProducts?kadence_blocks_params.replaceProducts:"",n=t?t.toString():"",o=t?t.slice(0,3).toString():"",a=vn(e,"\x3c!-- wp:woocommerce/handpicked-products",'"products":[8121,5160,5159]',0);a&&(e=e.replace("\x3c!-- wp:woocommerce/handpicked-products"+a+'"products":[8121,5160,5159]',"\x3c!-- wp:woocommerce/handpicked-products"+a+'"products":['+o+"]"));const r=vn(e,"\x3c!-- wp:woocommerce/handpicked-products",'"products":[8121,5159,5160,7737]',0);return r&&(e=e.replace("\x3c!-- wp:woocommerce/handpicked-products"+r+'"products":[8121,5159,5160,7737]',"\x3c!-- wp:woocommerce/handpicked-products"+r+'"products":['+n+"]")),e}(r),E?.locationType&&"Online Only"!==E?.locationType&&E?.locationInput&&(r=fn(r,E.locationInput)),r=bn(r),a&&"light"!==a&&("dark"===a?r=dn(r,"dark"):"highlight"===a&&(r=dn(r,"highlight"))),n.content=r,i(n)},showTitlesAsTooltip:!1,customStyles:Z,customShadowStyles:G,breakpointCols:r,previewMode:s,selectedStyle:a,renderType:U?"shadow":"iframe",rootScroll:A}),!q&&!_&&(0,l.createElement)("div",{className:"kb-patterns-filter-wrapper"},(0,o.__)("No patterns were found based on the selected filters.","kadence-blocks"))))},{localStorage:No}=window;function Ro({filterValue:e,filteredBlockPatternsLength:t}){return e?(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"block-editor-block-patterns-explorer__search-results-count"},(0,o.sprintf)(/* translators: %d: number of patterns. %s: block pattern search query */ /* translators: %d: number of patterns. %s: block pattern search query */
(0,o._n)('%1$d pattern found for "%2$s"','%1$d patterns found for "%2$s"',t),t,e)):null}function Lo({type:e}){return(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"48px",className:"kb-patterns-banner-notice kb-page-notice-above"},(0,l.createElement)(Rt.Spinner,null),"processing"===e?(0,o.__)("Generating AI Content.","kadence-blocks"):(0,o.__)("Content still generating, some pages will not have AI Content.","kadence-blocks"))}function Bo({launchWizard:e}){const t=window?.kadence_blocks_params?.isAuthorized,n=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",r=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"",i=!(!kadence_blocks_params.pro||"true"!==kadence_blocks_params.pro);return(0,l.createElement)("div",{className:"kb-patterns-banner-generate-notice"},(0,l.createElement)(Rt.Icon,{className:"kadence-generate-icons",icon:a.aiIcon}),(0,l.createElement)(Rt.__experimentalHeading,{level:2,lineHeight:"1.2",className:"kb-patterns-heading-notice"},(0,o.__)("Drop in professionally designed pages with AI Generated Content","kadence-blocks")),!t&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:r?"_blank":"",disabled:!r,href:r||""}),t&&!n&&(0,l.createElement)(l.Fragment,null,i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence Blocks Pro Required","kadence-blocks"),disabled:!r,href:r||""}),!i&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),target:r?"_blank":"",disabled:!r,href:r||""})),t&&n&&(0,l.createElement)(Rt.Button,{className:"kadence-generate-copy-button",iconPosition:"right",icon:a.aiIcon,text:(0,o.__)("Generate Content AI Content","kadence-blocks"),onClick:()=>{e()}}))}const Do=function({pages:e,filterValue:t,selectedCategory:n,selectedPageStyles:a,selectedStyle:r="light",breakpointCols:i,imageCollection:s,contextTab:c,useImageReplace:u,onSelect:d,launchWizard:p}){const m=(0,jt.useDebounce)($t.speak,500),[g,h]=(0,Nt.useState)(),b=(!window?.kadence_blocks_params?.pro||kadence_blocks_params.pro,window?.kadence_blocks_params?.isAuthorized),f=!!window?.kadence_blocks_params?.isAIDisabled,v=window?.kadence_blocks_params?.proData?.api_key?kadence_blocks_params.proData.api_key:"",{getAllContext:y,hasAllPageContext:k}=(0,Tt.useSelect)((e=>({getAllContext:()=>e("kadence/library").getAllContext(),hasAllPageContext:()=>e("kadence/library").hasAllPageContext()})),[]),E=(0,Nt.useMemo)((()=>{const t=[];let n=0;return Object.keys(e).map((function(o,a){const r=[];if(11===n&&(n=0),r.title=e[o].name,r.name=e[o].name,r.description=e[o].description,r.image=e[o].image,r.imageWidth=e[o].imageW,r.imageHeight=e[o].imageH,r.id=e[o].id,r.slug=e[o].slug,r.pageStyles=e[o].page_styles?Object.values(e[o].page_styles):[],r.categories=e[o].categories?Object.keys(e[o].categories):[],r.contexts=e[o].contexts?Object.keys(e[o].contexts):[],r.keywords=e[o].keywords?e[o].keywords:[],r.content=function(e){if(!e)return"";let t="";return Object.keys(e).map((function(n,o){const a=e[n].pattern_style,r=`\x3c!-- wp:kadence/column {"borderWidth":["","","",""],"uniqueID":"_f8d4f6-${n}","borderStyle":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}],"className":"kb-pattern-preview-${a}"} --\x3e<div class="wp-block-kadence-column kadence-column_f8d4f6-${n} kb-pattern-preview-${a}"><div class="kt-inside-inner-col">`+e[n].pattern_content+"</div></div>\x3c!-- /wp:kadence/column --\x3e";t=t.concat(r)})),t}(e[o].rows),e[o]?.rows?.[0]?.pattern_html){const t=y();r.html=function(e,t,n,o,a){if(!e)return"";let r=[],l="",i=0;return r=Object.keys(e).map((function(r,l){i>11&&(i=0);let s="";const c=e?.[r]?.pattern_category?Object.keys(e[r].pattern_category):[];let u=e[r].pattern_context;return u="contact"===u?"contact-form":u,u="subscribe"===u?"subscribe-form":u,u="pricing"===u?"pricing-table":u,s=yn(e[r].pattern_html),"all"===t&&n&&(s=pn(s,n,c,e[r].pattern_id,i)),"context"===o&&(s=gn(s,a,c,u,0,!0)),i++,s})),Object.keys(r).map((function(e,t){l=l.concat(r[e])})),l}(e[o].rows,u,s,c,t)}else e[o]?.rows_html&&(r.html=yn(e[o].rows_html));r.rows=e[o].rows,r.pro=e[o].pro,r.locked=!(!e[o].pro||"true"===kadence_blocks_params.pro),r.proRender=!1,r.viewportWidth=1200,n++,t.push(r)})),t}),[e,s,u,c]),w=(0,Nt.useMemo)((()=>{let e=E;return"context"!==c||b&&v?(!t&&n&&"all"!==n&&(e=e.filter((e=>e.categories?.includes(n)))),a&&a.length&&(e=e.filter((e=>e.pageStyles.find((e=>a.includes(e)))))),ln(e,t)):[]}),[t,n,a,e,u,s]);(0,Nt.useEffect)((()=>{if(!t)return;const e=w.length,n=(0,o.sprintf)(/* translators: %d: number of results. */ /* translators: %d: number of results. */
(0,o._n)("%d result found.","%d results found.",e),e);m(n)}),[t,m]);const _=(0,Nt.useMemo)((()=>{let e="",t="",n="";return kadence_blocks_params.isKadenceT||(t=`\n\t\t\t\t--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t`,n=":root .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t:root .has-theme-palette1-color { color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette2-color { color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette3-color { color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette4-color { color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette5-color { color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette6-color { color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette7-color { color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette8-color { color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette9-color { color: var(--global-palette9); }\n\t\t\t:root .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t:root .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t:root .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t:root .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t:root .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t:root .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t:root .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t:root .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t:root .has-theme-palette9-background-color { background-color: var(--global-palette9); }"),e=[{css:`:root {margin-block:0;}body{--global-content-edge-padding: 3rem;padding:0px !important;--global-vw:1200px !important; ${t}}.single-iframe-content .kb-pattern-delete-block {display: none;}${n}`}],e}),[r]),S=(0,Nt.useMemo)((()=>{let e="",t="",n="",o="";return kadence_blocks_params.isKadenceT||(t=`\n\t\t\t\t--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};`,n=".single-iframe-content .has-theme-palette-1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette-2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette-3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette-4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette-5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette-6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette-7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette-8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette-9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-color { color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-color { color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-color { color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-color { color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-color { color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-color { color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-color { color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-color { color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-color { color: var(--global-palette9); }\n\t\t\t.single-iframe-content .has-theme-palette1-background-color { background-color: var(--global-palette1); }\n\t\t\t.single-iframe-content .has-theme-palette2-background-color { background-color: var(--global-palette2); }\n\t\t\t.single-iframe-content .has-theme-palette3-background-color { background-color: var(--global-palette3); }\n\t\t\t.single-iframe-content .has-theme-palette4-background-color { background-color: var(--global-palette4); }\n\t\t\t.single-iframe-content .has-theme-palette5-background-color { background-color: var(--global-palette5); }\n\t\t\t.single-iframe-content .has-theme-palette6-background-color { background-color: var(--global-palette6); }\n\t\t\t.single-iframe-content .has-theme-palette7-background-color { background-color: var(--global-palette7); }\n\t\t\t.single-iframe-content .has-theme-palette8-background-color { background-color: var(--global-palette8); }\n\t\t\t.single-iframe-content .has-theme-palette9-background-color { background-color: var(--global-palette9); }"),"dark"===r&&(o=`.single-iframe-content {--global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t\t--global-content-edge-padding: 3rem;\n\t\t\tpadding:0px !important;}\n\t\t\t.single-iframe-content .kb-blocks-highlight-page-section { --global-palette1:${kadence_blocks_params.global_colors["--global-palette1"]};\n\t\t\t--global-palette2:${kadence_blocks_params.global_colors["--global-palette2"]};\n\t\t\t--global-palette3:${kadence_blocks_params.global_colors["--global-palette3"]};\n\t\t\t--global-palette4:${kadence_blocks_params.global_colors["--global-palette4"]};\n\t\t\t--global-palette5:${kadence_blocks_params.global_colors["--global-palette5"]};\n\t\t\t--global-palette6:${kadence_blocks_params.global_colors["--global-palette6"]};\n\t\t\t--global-palette7:${kadence_blocks_params.global_colors["--global-palette7"]};\n\t\t\t--global-palette8:${kadence_blocks_params.global_colors["--global-palette8"]};\n\t\t\t--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]};\n\t\t\t--wp--preset--color--theme-palette-1: var(--global-palette1);\n\t\t\t--wp--preset--color--theme-palette-2: var(--global-palette2);\n\t\t\t--wp--preset--color--theme-palette-3: var(--global-palette3);\n\t\t\t--wp--preset--color--theme-palette-4: var(--global-palette4);\n\t\t\t--wp--preset--color--theme-palette-5: var(--global-palette5);\n\t\t\t--wp--preset--color--theme-palette-6: var(--global-palette6);\n\t\t\t--wp--preset--color--theme-palette-7: var(--global-palette7);\n\t\t\t--wp--preset--color--theme-palette-8: var(--global-palette8);\n\t\t\t--wp--preset--color--theme-palette-9: var(--global-palette9);\n\t\t}.kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}} .kb-btn-custom-colors .kb-btns-outer-wrap {--global-palette9:${kadence_blocks_params.global_colors["--global-palette3"]}} img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/02/Logo-ploaceholder"] {filter: invert(1);}img[src^="https://patterns.startertemplatecloud.com/wp-content/uploads/2023/12/logo-placeholder"] {filter: invert(1);}.wp-block-kadence-tabs.kb-pattern-active-tab-highlight .kt-tabs-title-list li.kt-tab-title-active .kt-tab-title{ color:${kadence_blocks_params.global_colors["--global-palette9"]} !important} .kb-pattern-light-color{--global-palette9:${kadence_blocks_params.global_colors["--global-palette9"]}}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette4"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette4"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette5"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette5"]}!important}`),e=[{css:`.single-iframe-content{--global-content-edge-padding: 3rem;padding:0px !important;--global-vw:1200px !important; ${t}}.pattern-shadow-wrap > .single-iframe-content > .kb-row-layout-wrap, .pattern-shadow-wrap > .single-iframe-content > .kb-blocks-highlight-page-section { margin-top:-1px;}.pattern-shadow-wrap .single-iframe-content {--global-content-width:1200px }.single-iframe-content .kb-pattern-delete-block {display: none;}${n}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette9"]}!important}.kb-divider-static.kb-divider-bottom-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-bottom-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}.kb-divider-static.kb-divider-top-p8.kb-row-layout-wrap.wp-block-kadence-rowlayout > .kt-row-layout-top-sep svg{fill:${kadence_blocks_params.global_colors["--global-palette8"]}!important}${o}`}],e}),[r]),C=!!w?.length,x=k();return f&&"context"===c?(0,l.createElement)("div",{className:"kb-ai-dropdown-container-content-wrap activation-needed"},(0,l.createElement)("p",{className:"kb-disabled-authorize-note"},(0,o.__)("Kadence AI is disabled by site admin.","kadence-blocks"))):(0,l.createElement)("div",{ref:h,className:"block-editor-block-patterns-explorer__wrap"},(0,l.createElement)("div",{className:"block-editor-block-patterns-explorer__list"},C&&(0,l.createElement)(Ro,{filterValue:t,filteredBlockPatternsLength:w.length}),"context"===c&&b&&v&&!x&&(0,l.createElement)(Lo,{type:"mising-context"}),"context"===c&&(!b||!v)&&(0,l.createElement)(Bo,{launchWizard:p}),C&&(0,l.createElement)(go,{selectedCategory:n,selectedPageStyles:a,blockPatterns:w,onClickPattern:e=>{const t={id:e.id,slug:e.slug,type:"page",style:"light"},n=y();t.content=function(e,t,n,o,a,r){if(!e)return"";let l=[],i="",s=0;return l=Object.keys(e).map((function(l,i){s>11&&(s=0);const c=e[l].pattern_style;let u=e[l].pattern_content;u=bn(u),"dark"===r?"light"===c?u=dn(u,"dark"):"highlight"===c&&(u=dn(u,"highlight")):"dark"===c?u=dn(u,"dark"):"highlight"===c&&(u=dn(u,"highlight"));const d=e?.[l]?.pattern_category?Object.keys(e[l].pattern_category):[];let p=e[l].pattern_context;return p="contact"===p?"contact-form":p,p="subscribe"===p?"subscribe-form":p,p="pricing"===p?"pricing-table":p,"all"===t&&n&&(u=pn(u,n,d,e[l].pattern_id,s)),"context"===o&&(u=gn(u,a,d,p)),s++,u})),Object.keys(l).map((function(e,t){i=i.concat(l[e])})),i}(e.rows,u,s,c,n,r),d(t)},showTitlesAsTooltip:!1,customStyles:_,customShadowStyles:S,breakpointCols:i,patternType:"page",rootScroll:g})))},Fo=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{fillRule:"evenodd",d:"M19.75 11H21V8.667L19.875 4H4.125L3 8.667V11h1.25v8.75h15.5V11zm-1.5 0H5.75v7.25H10V13h4v5.25h4.25V11zm-5.5-5.5h2.067l.486 3.24.028.76H12.75v-4zm-3.567 0h2.067v4H8.669l.028-.76.486-3.24zm7.615 3.1l-.464-3.1h2.36l.806 3.345V9.5h-2.668l-.034-.9zM7.666 5.5h-2.36L4.5 8.845V9.5h2.668l.034-.9.464-3.1z",clipRule:"evenodd"})),zo=(0,Nt.createElement)(Bt.SVG,{xmlns:"https://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M12 9c-.8 0-1.5.7-1.5 1.5S11.2 12 12 12s1.5-.7 1.5-1.5S12.8 9 12 9zm0-5c-3.6 0-6.5 2.8-6.5 6.2 0 .8.3 1.8.9 3.1.5 1.1 1.2 2.3 2 3.6.7 1 3 3.8 3.2 3.9l.4.5.4-.5c.2-.2 2.6-2.9 3.2-3.9.8-1.2 1.5-2.5 2-3.6.6-1.3.9-2.3.9-3.1C18.5 6.8 15.6 4 12 4zm4.3 8.7c-.5 1-1.1 2.2-1.9 3.4-.5.7-1.7 2.2-2.4 3-.7-.8-1.9-2.3-2.4-3-.8-1.2-1.4-2.3-1.9-3.3-.6-1.4-.7-2.2-.7-2.5 0-2.6 2.2-4.7 5-4.7s5 2.1 5 4.7c0 .2-.1 1-.7 2.4z"})),jo=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M20.5 16h-.7V8c0-1.1-.9-2-2-2H6.2c-1.1 0-2 .9-2 2v8h-.7c-.8 0-1.5.7-1.5 1.5h20c0-.8-.7-1.5-1.5-1.5zM5.7 8c0-.3.2-.5.5-.5h11.6c.3 0 .5.2.5.5v7.6H5.7V8z"})),Ho=n.p+"images/business-bg.9ea001c0.jpg",Wo=n.p+"images/education-bg.0ddd9432.jpg",Vo=n.p+"images/spa-bg.daf6c29b.jpg",$o=n.p+"images/taxes-bg.fe6cba5c.jpg",Uo=[{value:"NEUTRAL",label:(0,o.__)("Neutral","kadence-blocks")},{value:"PROFESSIONAL",label:(0,o.__)("Professional","kadence-blocks")},{value:"FRIENDLY",label:(0,o.__)("Friendly","kadence-blocks")},{value:"INFORMATIVE",label:(0,o.__)("Informative","kadence-blocks")},{value:"ENGAGING",label:(0,o.__)("Engaging","kadence-blocks")},{value:"TRUSTWORTHY",label:(0,o.__)("Trustworthy","kadence-blocks")},{value:"CONVERSATIONAL",label:(0,o.__)("Conversational","kadence-blocks")},{value:"PERSUASIVE",label:(0,o.__)("Persuasive","kadence-blocks")},{value:"UPBEAT",label:(0,o.__)("Upbeat","kadence-blocks")},{value:"FUNNY",label:(0,o.__)("Funny","kadence-blocks")},{value:"INSPIRATIONAL",label:(0,o.__)("Inspirational","kadence-blocks")}],Zo="INDIVIDUAL",Go=[{value:"COMPANY",label:(0,o.__)("A Company","kadence-blocks")},{value:Zo,label:(0,o.__)("An Individual","kadence-blocks")},{value:"ORGANIZATION",label:(0,o.__)("An Organization","kadence-blocks")}],qo=[{value:"cs-CZ",label:(0,o.__)("Czech","kadence-blocks")},{value:"da-DK",label:(0,o.__)("Danish (Denmark)","kadence-blocks")},{value:"nl-BE",label:(0,o.__)("Dutch (Belgium)","kadence-blocks")},{value:"nl-N",label:(0,o.__)("Dutch (Netherlands)","kadence-blocks")},{value:"en-AU",label:(0,o.__)("English (Australia)","kadence-blocks")},{value:"en-CA",label:(0,o.__)("English (Canada)","kadence-blocks")},{value:"en-IN",label:(0,o.__)("English (India)","kadence-blocks")},{value:"en-NZ",label:(0,o.__)("English (New Zealand)","kadence-blocks")},{value:"en-GB",label:(0,o.__)("English (UK)","kadence-blocks")},{value:"en-US",label:(0,o.__)("English (US)","kadence-blocks")},{value:"fi-FI",label:(0,o.__)("Finnish","kadence-blocks")},{value:"fr-BE",label:(0,o.__)("French (Belgium)","kadence-blocks")},{value:"fr-CA",label:(0,o.__)("French (Canada)","kadence-blocks")},{value:"fr-FR",label:(0,o.__)("French (France)","kadence-blocks")},{value:"de-AT",label:(0,o.__)("German (Austria)","kadence-blocks")},{value:"de-BE",label:(0,o.__)("German (Belgium)","kadence-blocks")},{value:"de-DE",label:(0,o.__)("German (Germany)","kadence-blocks")},{value:"de-CH",label:(0,o.__)("German (Switzerland)","kadence-blocks")},{value:"hu-HU",label:(0,o.__)("Hungarian","kadence-blocks")},{value:"it-IT",label:(0,o.__)("Italian (Italy)","kadence-blocks")},{value:"pt-BR",label:(0,o.__)("Portuguese (Brazil)","kadence-blocks")},{value:"pt-PT",label:(0,o.__)("Portuguese (Portugal)","kadence-blocks")},{value:"es-AR",label:(0,o.__)("Spanish (Argentina)","kadence-blocks")},{value:"es-CO",label:(0,o.__)("Spanish (Colombia)","kadence-blocks")},{value:"es-419",label:(0,o.__)("Spanish (Latin America)","kadence-blocks")},{value:"es-MX",label:(0,o.__)("Spanish (Mexico)","kadence-blocks")},{value:"es-ES",label:(0,o.__)("Spanish (Spain)","kadence-blocks")},{value:"sv-SE",label:(0,o.__)("Swedish (Sweden)","kadence-blocks")},{value:"tr-TR",label:(0,o.__)("Turkish","kadence-blocks")}],Ko={COMPANY:{label:(0,o.__)("Company Name","kadence-blocks"),placeholder:(0,o.__)("Your Company","kadence-blocks")},INDIVIDUAL:{label:(0,o.__)("Name","kadence-blocks"),placeholder:(0,o.__)("Your Name","kadence-blocks")},ORGANIZATION:{label:(0,o.__)("Organization Name","kadence-blocks"),placeholder:(0,o.__)("Your Organization","kadence-blocks")}},Jo=[{label:(0,o.__)("I want to sell products","kadence-starter-templates"),description:(0,o.__)("Get example woocommerce content and see layouts that work better for online stores.","kadence-starter-templates"),icon:"cart",value:"ecommerce"},{label:(0,o.__)("I want to receive donations","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for non-profits.","kadence-starter-templates"),icon:"share-alt",value:"donations"},{label:(0,o.__)("I want to display events","kadence-starter-templates"),description:(0,o.__)("Get example events content and see layouts that work better for showcasing events.","kadence-starter-templates"),icon:"calendar-alt",value:"events"},{label:(0,o.__)("I want to offer courses","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for learning management.","kadence-starter-templates"),icon:"welcome-learn-more",value:"courses"},{label:(0,o.__)("I want to sell tickets to events","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for ticket sales.","kadence-starter-templates"),icon:"tickets-alt",value:"tickets"},{label:(0,o.__)("I want to generate leads","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for getting new leads.","kadence-starter-templates"),icon:"chart-bar",value:"landing"},{label:(0,o.__)("I want to display my services","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for service sites.","kadence-starter-templates"),icon:"businessperson",value:"services"},{label:(0,o.__)("I want to offer a membership","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for membership sites.","kadence-starter-templates"),icon:"money",value:"membership"},{label:(0,o.__)("I want to write blog posts","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for bloggers.","kadence-starter-templates"),icon:"welcome-write-blog",value:"blogging"},{label:(0,o.__)("I want to book appointments","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for bookings.","kadence-starter-templates"),icon:"edit-page",value:"booking"},{label:(0,o.__)("I want to display my photography","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for photographers.","kadence-starter-templates"),icon:"camera",value:"photography"},{label:(0,o.__)("I want to promote my podcast","kadence-starter-templates"),description:(0,o.__)("See layouts that work better for podcasters.","kadence-starter-templates"),icon:"microphone",value:"podcasting"}],Yo="Business Address",Xo="Service Area",Qo="Online Only",ea=[{icon:Fo,text:(0,o.__)("Business Address","kadence-blocks"),value:Yo,help:(0,o.__)("E.g.: 1234 Street #1, Chicago, IL 60076, USA","kadence-blocks"),placeholder:(0,o.__)("Street Adress, City, State, Zipcode, Country","kadence-blocks")},{icon:zo,text:(0,o.__)("Service Area","kadence-blocks"),value:Xo,help:(0,o.__)("E.g.: Chicago, USA","kadence-blocks"),placeholder:(0,o.__)("District, City, State, Zipcode, Country","kadence-blocks")},{icon:jo,text:(0,o.__)("Online Only","kadence-blocks"),value:Qo,help:"",placeholder:""}],ta={initial:{color:"#757575",message:(0,o.__)("The more detail you add, the better.","kadence-blocks")},weak:{color:"#DF3416",message:(0,o.__)("For better, more accurate copy enter a bit more content.","kadence-blocks")},medium:{color:"#B35F00",message:(0,o.__)("This is a great start. Try adding a bit more information to your description.","kadence-blocks")},strong:{color:"#1B8F6D",message:(0,o.__)("Excellent work! Want to add more? Keep going! More info means better content.","kadence-blocks")},enough:{color:"#1B8F6D",message:(0,o.__)("Excellent work! You have added enough information.","kadence-blocks")},less:{color:"#B35F00",message:(0,o.__)("ok, you've added a lot of information. Try removing some to get better results.","kadence-blocks")},muchLess:{color:"#DF3416",message:(0,o.__)("You've added too much information. Remove some to move forward.","kadence-blocks")}},na=[Vo,Ho,$o,Wo],oa={INDIVIDUAL:["What is your core offering or skill?","Tell your story. Be sure to feature your expertise and standout skills.","Describe your process, services, or products you offer.","What makes you stand out? Highlight your competitive edge and the value you bring?","Do you have work and recognitions to highlight?","What is the action you want visitors to take?"],COMPANY:["What is your core offering or business purpose?","What products and services do your offer?","Describe your team and/or brand story.","Highlight relevant numbers or statistics that support your value or impact.","What makes you stand out in your industry? Highlight your competitive edge and the value you bring.","List any notable partnerships.","What is the action you want visitors to take?"],ORGANIZATION:["What is your organization's purpose? How does your history and mission support that?","Describe your team and/or brand story.","Highlight relevant numbers or statistics that support your value or impact.","Do you offer any services or products?","List any notable partnerships.","What is the action you want visitors to take?"]},aa="loading",ra="notFound",la="error",ia="success",sa="allAdded",ca={isComplete:!1,firstTime:!0,isSubmitted:!1,context:"kadence",currentPageIndex:0,companyName:"",entityType:Zo,locationType:"",locationInput:"",location:"",industry:"",missionStatement:"",keywords:[],tone:"NEUTRAL",privacyAgreement:!1,photoLibrary:"aiGenerated",photoCollectionChanged:!1,featuredImages:[],backgroundImages:[],customCollections:[{label:(0,o.__)("My Images","kadence-blocks"),value:"my-images",galleries:[{name:"featured",isLocal:!0,images:[]},{name:"background",isLocal:!0,images:[]}]}],saving:!1,saveError:!1,verticals:[],suggestedKeywords:[],suggestedKeywordsState:"",imageSearchQuery:"",lang:"",goals:[]},ua=(0,Nt.createContext)();function da(e,t){switch(t.type){case"SET_CURRENT_PAGE_INDEX":return{...e,currentPageIndex:t.payload};case"SET_COMPANY_NAME":return{...e,companyName:t.payload};case"SET_LANG":return{...e,lang:t.payload};case"SET_SITE_GOALS":return{...e,goals:t.payload};case"SET_ENTITY_TYPE":return{...e,entityType:t.payload};case"SET_LOCATION":return{...e,location:t.payload};case"SET_LOCATION_INPUT":return{...e,locationInput:t.payload};case"SET_LOCATION_TYPE":return{...e,locationType:t.payload};case"SET_INDUSTRY":return{...e,industry:t.payload};case"SET_MISSION_STATEMENT":return{...e,missionStatement:t.payload};case"SET_KEYWORDS":return{...e,keywords:t.payload};case"SET_TONE":return{...e,tone:t.payload};case"SET_PRIVACY_AGREEMENT":return{...e,privacyAgreement:!e.privacyAgreement};case"SET_PHOTO_LIBRARY":return{...e,photoLibrary:t.payload};case"SET_PHOTO_LIBRARY_CHANGED":return{...e,photoCollectionChanged:t.payload};case"SET_FEATURED_IMAGES":return{...e,featuredImages:t.payload};case"SET_BACKGROUND_IMAGES":return{...e,backgroundImages:t.payload};case"SET_CUSTOM_COLLECTIONS":return{...e,customCollections:t.payload};case"SET_FEATURED_PREVIEW":return{...e,featuredImage:t.payload};case"SET_BACKGROUND_PREVIEW":return{...e,backgroundImage:t.payload};case"SET_SAVING":return{...e,saving:t.payload};case"SET_IMAGE_SEARCH_QUERY":return{...e,imageSearchQuery:t.payload};case"SET_SUGGESTED_KEYWORDS":return{...e,suggestedKeywords:t.payload};case"SET_SUGGESTED_KEYWORDS_STATE":return{...e,suggestedKeywordsState:t.payload};default:return e}}function pa(e){return{...ca,...e}}function ma(e){const[t,n]=(0,Nt.useReducer)(da,e.value,pa),o={state:t,dispatch:n};return(0,l.createElement)(ua.Provider,{value:o},e.children)}function ga(){const e=(0,Nt.useContext)(ua);if(void 0===e)throw new Error("useKadenceAi must be used with KadenceAiProvider");return e}var ha=n(3643),ba=n.n(ha);function fa(e,t){var n=void 0;return function(){for(var o=arguments.length,a=new Array(o),r=0;r<o;r++)a[r]=arguments[r];n&&clearTimeout(n),n=setTimeout((function(){return e.apply(void 0,a)}),t)}}function va(e){return e!==Object(e)}function ya(e,t){if(e===t)return!0;if(va(e)||va(t)||"function"==typeof e||"function"==typeof t)return e===t;if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var n=0,o=Object.keys(e);n<o.length;n++){var a=o[n];if(!(a in t))return!1;if(!ya(e[a],t[a]))return!1}return!0}var ka=function(){};function Ea(e){var t=e.item,n=e.items,o=void 0===n?[]:n;return{index:t.__autocomplete_indexName,items:[t],positions:[1+o.findIndex((function(e){return e.objectID===t.objectID}))],queryID:t.__autocomplete_queryID,algoliaSource:["autocomplete"]}}function wa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}var _a=["items"],Sa=["items"];function Ca(e){return Ca="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ca(e)}function xa(e){return function(e){if(Array.isArray(e))return Ia(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Ia(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)?Ia(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Ia(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Oa(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function Aa(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Ma(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Aa(Object(n),!0).forEach((function(t){Pa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Aa(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Pa(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ca(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ca(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ca(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ta(e){return e.map((function(e){var t=e.items,n=Oa(e,_a);return Ma(Ma({},n),{},{objectIDs:(null==t?void 0:t.map((function(e){return e.objectID})))||n.objectIDs})}))}function Na(e){var t,n,o,a,r,l=(a=(e.version||"").split(".").map(Number),r=2,n=(t=function(e){if(Array.isArray(e))return e}(a)||function(e,t){var n=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=n){var o,a,_x,r,l=[],_n=!0,i=!1;try{if(_x=(n=n.call(e)).next,0===t){if(Object(n)!==n)return;_n=!1}else for(;!(_n=(o=_x.call(n)).done)&&(l.push(o.value),l.length!==t);_n=!0);}catch(e){i=!0,a=e}finally{try{if(!_n&&null!=n.return&&(r=n.return(),Object(r)!==r))return}finally{if(i)throw a}}return l}}(a,r)||function(e,t){if(e){if("string"==typeof e)return wa(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)?wa(e,t):void 0}}(a,r)||function(){throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}())[0],o=t[1],n>=3||2===n&&o>=4||1===n&&o>=10);function i(t,n,o){if(l&&void 0!==o){var a=o[0].__autocomplete_algoliaCredentials,r={"X-Algolia-Application-Id":a.appId,"X-Algolia-API-Key":a.apiKey};e.apply(void 0,[t].concat(xa(n),[{headers:r}]))}else e.apply(void 0,[t].concat(xa(n)))}return{init:function(t,n){e("init",{appId:t,apiKey:n})},setUserToken:function(t){e("setUserToken",t)},clickedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("clickedObjectIDsAfterSearch",Ta(t),t[0].items)},clickedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("clickedObjectIDs",Ta(t),t[0].items)},clickedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["clickedFilters"].concat(n))},convertedObjectIDsAfterSearch:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("convertedObjectIDsAfterSearch",Ta(t),t[0].items)},convertedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&i("convertedObjectIDs",Ta(t),t[0].items)},convertedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["convertedFilters"].concat(n))},viewedObjectIDs:function(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];t.length>0&&t.reduce((function(e,t){var n=t.items,o=Oa(t,Sa);return[].concat(xa(e),xa(function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:20,n=[],o=0;o<e.objectIDs.length;o+=t)n.push(Ma(Ma({},e),{},{objectIDs:e.objectIDs.slice(o,o+t)}));return n}(Ma(Ma({},o),{},{objectIDs:(null==n?void 0:n.map((function(e){return e.objectID})))||o.objectIDs})).map((function(e){return{items:n,payload:e}}))))}),[]).forEach((function(e){var t=e.items;return i("viewedObjectIDs",[e.payload],t)}))},viewedFilters:function(){for(var t=arguments.length,n=new Array(t),o=0;o<t;o++)n[o]=arguments[o];n.length>0&&e.apply(void 0,["viewedFilters"].concat(n))}}}function Ra(e){var t=e.items.reduce((function(e,t){var n;return e[t.__autocomplete_indexName]=(null!==(n=e[t.__autocomplete_indexName])&&void 0!==n?n:[]).concat(t),e}),{});return Object.keys(t).map((function(e){return{index:e,items:t[e],algoliaSource:["autocomplete"]}}))}function La(e){return e.objectID&&e.__autocomplete_indexName&&e.__autocomplete_queryID}function Ba(e){return Ba="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ba(e)}function Da(e){return function(e){if(Array.isArray(e))return Fa(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Fa(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)?Fa(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Fa(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function za(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function ja(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?za(Object(n),!0).forEach((function(t){Ha(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):za(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Ha(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ba(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ba(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ba(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Wa="2.6.0",Va="https://cdn.jsdelivr.net/npm/search-insights@".concat(Wa,"/dist/search-insights.min.js"),$a=fa((function(e){var t=e.onItemsChange,n=e.items,o=e.insights,a=e.state;t({insights:o,insightsEvents:Ra({items:n}).map((function(e){return ja({eventName:"Items Viewed"},e)})),state:a})}),400);function Ua(e){var t=function(e){return ja({onItemsChange:function(e){var t=e.insights,n=e.insightsEvents;t.viewedObjectIDs.apply(t,Da(n.map((function(e){return ja(ja({},e),{},{algoliaSource:[].concat(Da(e.algoliaSource||[]),["autocomplete-internal"])})}))))},onSelect:function(e){var t=e.insights,n=e.insightsEvents;t.clickedObjectIDsAfterSearch.apply(t,Da(n.map((function(e){return ja(ja({},e),{},{algoliaSource:[].concat(Da(e.algoliaSource||[]),["autocomplete-internal"])})}))))},onActive:ka},e)}(e),n=t.insightsClient,o=t.onItemsChange,a=t.onSelect,r=t.onActive,l=n;n||"undefined"!=typeof window&&function(e){var t=e.window,n=t.AlgoliaAnalyticsObject||"aa";"string"==typeof n&&(l=t[n]),l||(t.AlgoliaAnalyticsObject=n,t[n]||(t[n]=function(){t[n].queue||(t[n].queue=[]);for(var e=arguments.length,o=new Array(e),a=0;a<e;a++)o[a]=arguments[a];t[n].queue.push(o)}),t[n].version=Wa,l=t[n],function(e){var t="[Autocomplete]: Could not load search-insights.js. Please load it manually following https://alg.li/insights-autocomplete";try{var n=e.document.createElement("script");n.async=!0,n.src=Va,n.onerror=function(){console.error(t)},document.body.appendChild(n)}catch(e){console.error(t)}}(t))}({window});var i=Na(l),s={current:[]},c=fa((function(e){var t=e.state;if(t.isOpen){var n=t.collections.reduce((function(e,t){return[].concat(Da(e),Da(t.items))}),[]).filter(La);ya(s.current.map((function(e){return e.objectID})),n.map((function(e){return e.objectID})))||(s.current=n,n.length>0&&$a({onItemsChange:o,items:n,insights:i,state:t}))}}),0);return{name:"aa.algoliaInsightsPlugin",subscribe:function(e){var t=e.setContext,n=e.onSelect,o=e.onActive;l("addAlgoliaAgent","insights-plugin"),t({algoliaInsightsPlugin:{__algoliaSearchParameters:{clickAnalytics:!0},insights:i}}),n((function(e){var t=e.item,n=e.state,o=e.event,r=e.source;La(t)&&a({state:n,event:o,insights:i,item:t,insightsEvents:[ja({eventName:"Item Selected"},Ea({item:t,items:r.getItems().filter(La)}))]})})),o((function(e){var t=e.item,n=e.source,o=e.state,a=e.event;La(t)&&r({state:o,event:a,insights:i,item:t,insightsEvents:[ja({eventName:"Item Active"},Ea({item:t,items:n.getItems().filter(La)}))]})}))},onStateChange:function(e){var t=e.state;c({state:t})},__autocomplete_pluginOptions:e}}function Za(e){return Za="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Za(e)}function Ga(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function qa(e,t,n){return(t=function(e){var t=function(e){if("object"!==Za(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Za(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Za(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ka(e){return e.reduce((function(e,t){return e.concat(t)}),[])}function Ja(e){return Ja="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ja(e)}function Ya(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Xa(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ya(Object(n),!0).forEach((function(t){Qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ya(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Qa(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ja(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ja(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ja(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function er(e){return 0===e.collections.length?0:e.collections.reduce((function(e,t){return e+t.items.length}),0)}var tr=0;function nr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function or(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?nr(Object(n),!0).forEach((function(t){ar(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):nr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ar(e,t,n){return(t=function(e){var t=function(e){if("object"!==rr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==rr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===rr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function rr(e){return rr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},rr(e)}function lr(e){return lr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},lr(e)}function ir(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function sr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function cr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?sr(Object(n),!0).forEach((function(t){ur(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):sr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function ur(e,t,n){return(t=function(e){var t=function(e){if("object"!==lr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==lr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===lr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function dr(e,t){var n,o="undefined"!=typeof window?window:{},a=e.plugins||[];return cr(cr({debug:!1,openOnFocus:!1,enterKeyHint:void 0,placeholder:"",autoFocus:!1,defaultActiveItemId:null,stallThreshold:300,insights:!1,environment:o,shouldPanelOpen:function(e){return er(e.state)>0},reshape:function(e){return e.sources}},e),{},{id:null!==(n=e.id)&&void 0!==n?n:"autocomplete-".concat(tr++),plugins:a,initialState:cr({activeItemId:null,query:"",completion:null,collections:[],isOpen:!1,status:"idle",context:{}},e.initialState),onStateChange:function(t){var n;null===(n=e.onStateChange)||void 0===n||n.call(e,t),a.forEach((function(e){var n;return null===(n=e.onStateChange)||void 0===n?void 0:n.call(e,t)}))},onSubmit:function(t){var n;null===(n=e.onSubmit)||void 0===n||n.call(e,t),a.forEach((function(e){var n;return null===(n=e.onSubmit)||void 0===n?void 0:n.call(e,t)}))},onReset:function(t){var n;null===(n=e.onReset)||void 0===n||n.call(e,t),a.forEach((function(e){var n;return null===(n=e.onReset)||void 0===n?void 0:n.call(e,t)}))},getSources:function(n){return Promise.all([].concat((o=a.map((function(e){return e.getSources})),function(e){if(Array.isArray(e))return ir(e)}(o)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(o)||function(e,t){if(e){if("string"==typeof e)return ir(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)?ir(e,t):void 0}}(o)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()),[e.getSources]).filter(Boolean).map((function(e){return function(e,t){var n=[];return Promise.resolve(e(t)).then((function(e){return Array.isArray(e),Promise.all(e.filter((function(e){return Boolean(e)})).map((function(e){if(e.sourceId,n.includes(e.sourceId))throw new Error("[Autocomplete] The `sourceId` ".concat(JSON.stringify(e.sourceId)," is not unique."));n.push(e.sourceId);var t={getItemInputValue:function(e){return e.state.query},getItemUrl:function(){},onSelect:function(e){(0,e.setIsOpen)(!1)},onActive:ka,onResolve:ka};Object.keys(t).forEach((function(e){t[e].__default=!0}));var o=or(or({},t),e);return Promise.resolve(o)})))}))}(e,n)}))).then((function(e){return Ka(e)})).then((function(e){return e.map((function(e){return cr(cr({},e),{},{onSelect:function(n){e.onSelect(n),t.forEach((function(e){var t;return null===(t=e.onSelect)||void 0===t?void 0:t.call(e,n)}))},onActive:function(n){e.onActive(n),t.forEach((function(e){var t;return null===(t=e.onActive)||void 0===t?void 0:t.call(e,n)}))},onResolve:function(n){e.onResolve(n),t.forEach((function(e){var t;return null===(t=e.onResolve)||void 0===t?void 0:t.call(e,n)}))}})}))}));var o},navigator:cr({navigate:function(e){var t=e.itemUrl;o.location.assign(t)},navigateNewTab:function(e){var t=e.itemUrl,n=o.open(t,"_blank","noopener");null==n||n.focus()},navigateNewWindow:function(e){var t=e.itemUrl;o.open(t,"_blank","noopener")}},e.navigator)})}function pr(e){return pr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},pr(e)}function mr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function gr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?mr(Object(n),!0).forEach((function(t){hr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):mr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function hr(e,t,n){return(t=function(e){var t=function(e){if("object"!==pr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==pr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===pr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function br(e){return br="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},br(e)}function fr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?fr(Object(n),!0).forEach((function(t){yr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):fr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function yr(e,t,n){return(t=function(e){var t=function(e){if("object"!==br(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==br(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===br(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function kr(e){return function(e){if(Array.isArray(e))return Er(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Er(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)?Er(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Er(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function wr(e){return Boolean(e.execute)}function _r(e){var t=e.reduce((function(e,t){if(!wr(t))return e.push(t),e;var n=t.searchClient,o=t.execute,a=t.requesterId,r=t.requests,l=e.find((function(e){return wr(t)&&wr(e)&&e.searchClient===n&&Boolean(a)&&e.requesterId===a}));if(l){var i;(i=l.items).push.apply(i,kr(r))}else{var s={execute:o,requesterId:a,items:r,searchClient:n};e.push(s)}return e}),[]),n=t.map((function(e){if(!wr(e))return Promise.resolve(e);var t=e,n=t.execute,o=t.items;return n({searchClient:t.searchClient,requests:o})}));return Promise.all(n).then((function(e){return Ka(e)}))}function Sr(e,t){var n=t;return{then:function(t,o){return Sr(e.then(Ir(t,n,e),Ir(o,n,e)),n)},catch:function(t){return Sr(e.catch(Ir(t,n,e)),n)},finally:function(t){return t&&n.onCancelList.push(t),Sr(e.finally(Ir(t&&function(){return n.onCancelList=[],t()},n,e)),n)},cancel:function(){n.isCanceled=!0;var e=n.onCancelList;n.onCancelList=[],e.forEach((function(e){e()}))},isCanceled:function(){return!0===n.isCanceled}}}function Cr(e){return Sr(new Promise((function(t,n){return e(t,n)})),{isCanceled:!1,onCancelList:[]})}function xr(e){return Sr(e,{isCanceled:!1,onCancelList:[]})}function Ir(e,t,n){return e?function(n){return t.isCanceled?n:e(n)}:n}function Or(e){var t=function(e){var t=e.collections.map((function(e){return e.items.length})).reduce((function(e,t,n){var o=(e[n-1]||0)+t;return e.push(o),e}),[]).reduce((function(t,n){return n<=e.activeItemId?t+1:t}),0);return e.collections[t]}(e);if(!t)return null;var n=t.items[function(e){for(var t=e.state,n=e.collection,o=!1,a=0,r=0;!1===o;){var l=t.collections[a];if(l===n){o=!0;break}r+=l.items.length,a++}return t.activeItemId-r}({state:e,collection:t})],o=t.source;return{item:n,itemInputValue:o.getItemInputValue({item:n,state:e}),itemUrl:o.getItemUrl({item:n,state:e}),source:o}}function Ar(e){return Ar="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ar(e)}Cr.resolve=function(e){return xr(Promise.resolve(e))},Cr.reject=function(e){return xr(Promise.reject(e))};var Mr=["event","nextState","props","query","refresh","store"];function Pr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pr(Object(n),!0).forEach((function(t){Nr(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nr(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ar(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ar(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ar(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rr,Lr,Br,Dr=null,Fr=(Rr=-1,Lr=-1,Br=void 0,function(e){var t=++Rr;return Promise.resolve(e).then((function(e){return Br&&t<Lr?Br:(Lr=t,Br=e,e)}))});function zr(e){var t=e.event,n=e.nextState,o=void 0===n?{}:n,a=e.props,r=e.query,l=e.refresh,i=e.store,s=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Mr);Dr&&a.environment.clearTimeout(Dr);var c=s.setCollections,u=s.setIsOpen,d=s.setQuery,p=s.setActiveItemId,m=s.setStatus;if(d(r),p(a.defaultActiveItemId),!r&&!1===a.openOnFocus){var g,h=i.getState().collections.map((function(e){return Tr(Tr({},e),{},{items:[]})}));m("idle"),c(h),u(null!==(g=o.isOpen)&&void 0!==g?g:a.shouldPanelOpen({state:i.getState()}));var b=xr(Fr(h).then((function(){return Promise.resolve()})));return i.pendingRequests.add(b)}m("loading"),Dr=a.environment.setTimeout((function(){m("stalled")}),a.stallThreshold);var f=xr(Fr(a.getSources(Tr({query:r,refresh:l,state:i.getState()},s)).then((function(e){return Promise.all(e.map((function(e){return Promise.resolve(e.getItems(Tr({query:r,refresh:l,state:i.getState()},s))).then((function(t){return function(e,t,n){if(a=e,Boolean(null==a?void 0:a.execute)){var o="algolia"===e.requesterId?Object.assign.apply(Object,[{}].concat(kr(Object.keys(n.context).map((function(e){var t;return null===(t=n.context[e])||void 0===t?void 0:t.__algoliaSearchParameters}))))):{};return vr(vr({},e),{},{requests:e.queries.map((function(n){return{query:"algolia"===e.requesterId?vr(vr({},n),{},{params:vr(vr({},o),n.params)}):n,sourceId:t,transformResponse:e.transformResponse}}))})}var a;return{items:e,sourceId:t}}(t,e.sourceId,i.getState())}))}))).then(_r).then((function(t){return function(e,t,n){return t.map((function(t){var o,a=e.filter((function(e){return e.sourceId===t.sourceId})),r=a.map((function(e){return e.items})),l=a[0].transformResponse,i=l?l({results:o=r,hits:o.map((function(e){return e.hits})).filter(Boolean),facetHits:o.map((function(e){var t;return null===(t=e.facetHits)||void 0===t?void 0:t.map((function(e){return{label:e.value,count:e.count,_highlightResult:{label:{value:e.highlighted}}}}))})).filter(Boolean)}):r;return t.onResolve({source:t,results:r,items:i,state:n.getState()}),Array.isArray(i),i.every(Boolean),'The `getItems` function from source "'.concat(t.sourceId,'" must return an array of items but returned ').concat(JSON.stringify(void 0),".\n\nDid you forget to return items?\n\nSee: https://www.algolia.com/doc/ui-libraries/autocomplete/core-concepts/sources/#param-getitems"),{source:t,items:i}}))}(t,e,i)})).then((function(e){return function(e){var t=e.props,n=e.state,o=e.collections.reduce((function(e,t){return gr(gr({},e),{},hr({},t.source.sourceId,gr(gr({},t.source),{},{getItems:function(){return Ka(t.items)}})))}),{}),a=t.plugins.reduce((function(e,t){return t.reshape?t.reshape(e):e}),{sourcesBySourceId:o,state:n}).sourcesBySourceId;return Ka(t.reshape({sourcesBySourceId:a,sources:Object.values(a),state:n})).filter(Boolean).map((function(e){return{source:e,items:e.getItems()}}))}({collections:e,props:a,state:i.getState()})}))})))).then((function(e){var n;m("idle"),c(e);var d=a.shouldPanelOpen({state:i.getState()});u(null!==(n=o.isOpen)&&void 0!==n?n:a.openOnFocus&&!r&&d||d);var p=Or(i.getState());if(null!==i.getState().activeItemId&&p){var g=p.item,h=p.itemInputValue,b=p.itemUrl,f=p.source;f.onActive(Tr({event:t,item:g,itemInputValue:h,itemUrl:b,refresh:l,source:f,state:i.getState()},s))}})).finally((function(){m("idle"),Dr&&a.environment.clearTimeout(Dr)}));return i.pendingRequests.add(f)}function jr(e){return jr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},jr(e)}var Hr=["event","props","refresh","store"];function Wr(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Vr(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Wr(Object(n),!0).forEach((function(t){$r(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Wr(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function $r(e,t,n){return(t=function(e){var t=function(e){if("object"!==jr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==jr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===jr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Ur=/((gt|sm)-|galaxy nexus)|samsung[- ]|samsungbrowser/i;function Zr(e){return Zr="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Zr(e)}var Gr=["props","refresh","store"],qr=["inputElement","formElement","panelElement"],Kr=["inputElement"],Jr=["inputElement","maxLength"],Yr=["sourceIndex"],Xr=["sourceIndex"],Qr=["item","source","sourceIndex"];function el(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?el(Object(n),!0).forEach((function(t){nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):el(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function nl(e,t,n){return(t=function(e){var t=function(e){if("object"!==Zr(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Zr(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Zr(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ol(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}function al(e){var t=e.props,n=e.refresh,o=e.store,a=ol(e,Gr),r=function(e,t){return void 0!==t?"".concat(e,"-").concat(t):e};return{getEnvironmentProps:function(e){var n=e.inputElement,a=e.formElement,r=e.panelElement;function l(e){if((o.getState().isOpen||!o.pendingRequests.isEmpty())&&e.target!==n){var l=[a,r].some((function(t){return function(e,t){return e===t||e.contains(t)}(t,e.target)}));!1===l&&(o.dispatch("blur",null),t.debug||o.pendingRequests.cancelAll())}}return tl({onTouchStart:l,onMouseDown:l,onTouchMove:function(e){!1!==o.getState().isOpen&&n===t.environment.document.activeElement&&e.target!==n&&n.blur()}},ol(e,qr))},getRootProps:function(e){return tl({role:"combobox","aria-expanded":o.getState().isOpen,"aria-haspopup":"listbox","aria-owns":o.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label")},e)},getFormProps:function(e){return e.inputElement,tl({action:"",noValidate:!0,role:"search",onSubmit:function(r){var l;r.preventDefault(),t.onSubmit(tl({event:r,refresh:n,state:o.getState()},a)),o.dispatch("submit",null),null===(l=e.inputElement)||void 0===l||l.blur()},onReset:function(r){var l;r.preventDefault(),t.onReset(tl({event:r,refresh:n,state:o.getState()},a)),o.dispatch("reset",null),null===(l=e.inputElement)||void 0===l||l.focus()}},ol(e,Kr))},getLabelProps:function(e){var n=e||{},o=n.sourceIndex,a=ol(n,Yr);return tl({htmlFor:"".concat(r(t.id,o),"-input"),id:"".concat(r(t.id,o),"-label")},a)},getInputProps:function(e){var r;function l(e){(t.openOnFocus||Boolean(o.getState().query))&&zr(tl({event:e,props:t,query:o.getState().completion||o.getState().query,refresh:n,store:o},a)),o.dispatch("focus",null)}var i,s=e||{},c=(s.inputElement,s.maxLength),u=void 0===c?512:c,d=ol(s,Jr),p=Or(o.getState()),m=(i=(null===(r=t.environment.navigator)||void 0===r?void 0:r.userAgent)||"",Boolean(i&&i.match(Ur))),g=t.enterKeyHint||(null!=p&&p.itemUrl&&!m?"go":"search");return tl({"aria-autocomplete":"both","aria-activedescendant":o.getState().isOpen&&null!==o.getState().activeItemId?"".concat(t.id,"-item-").concat(o.getState().activeItemId):void 0,"aria-controls":o.getState().isOpen?"".concat(t.id,"-list"):void 0,"aria-labelledby":"".concat(t.id,"-label"),value:o.getState().completion||o.getState().query,id:"".concat(t.id,"-input"),autoComplete:"off",autoCorrect:"off",autoCapitalize:"off",enterKeyHint:g,spellCheck:"false",autoFocus:t.autoFocus,placeholder:t.placeholder,maxLength:u,type:"search",onChange:function(e){zr(tl({event:e,props:t,query:e.currentTarget.value.slice(0,u),refresh:n,store:o},a))},onKeyDown:function(e){!function(e){var t=e.event,n=e.props,o=e.refresh,a=e.store,r=function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Hr);if("ArrowUp"===t.key||"ArrowDown"===t.key){var l=function(){var e=n.environment.document.getElementById("".concat(n.id,"-item-").concat(a.getState().activeItemId));e&&(e.scrollIntoViewIfNeeded?e.scrollIntoViewIfNeeded(!1):e.scrollIntoView(!1))},i=function(){var e=Or(a.getState());if(null!==a.getState().activeItemId&&e){var n=e.item,l=e.itemInputValue,i=e.itemUrl,s=e.source;s.onActive(Vr({event:t,item:n,itemInputValue:l,itemUrl:i,refresh:o,source:s,state:a.getState()},r))}};t.preventDefault(),!1===a.getState().isOpen&&(n.openOnFocus||Boolean(a.getState().query))?zr(Vr({event:t,props:n,query:a.getState().query,refresh:o,store:a},r)).then((function(){a.dispatch(t.key,{nextActiveItemId:n.defaultActiveItemId}),i(),setTimeout(l,0)})):(a.dispatch(t.key,{}),i(),l())}else if("Escape"===t.key)t.preventDefault(),a.dispatch(t.key,null),a.pendingRequests.cancelAll();else if("Tab"===t.key)a.dispatch("blur",null),a.pendingRequests.cancelAll();else if("Enter"===t.key){if(null===a.getState().activeItemId||a.getState().collections.every((function(e){return 0===e.items.length})))return void(n.debug||a.pendingRequests.cancelAll());t.preventDefault();var s=Or(a.getState()),c=s.item,u=s.itemInputValue,d=s.itemUrl,p=s.source;if(t.metaKey||t.ctrlKey)void 0!==d&&(p.onSelect(Vr({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:o,source:p,state:a.getState()},r)),n.navigator.navigateNewTab({itemUrl:d,item:c,state:a.getState()}));else if(t.shiftKey)void 0!==d&&(p.onSelect(Vr({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:o,source:p,state:a.getState()},r)),n.navigator.navigateNewWindow({itemUrl:d,item:c,state:a.getState()}));else if(t.altKey);else{if(void 0!==d)return p.onSelect(Vr({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:o,source:p,state:a.getState()},r)),void n.navigator.navigate({itemUrl:d,item:c,state:a.getState()});zr(Vr({event:t,nextState:{isOpen:!1},props:n,query:u,refresh:o,store:a},r)).then((function(){p.onSelect(Vr({event:t,item:c,itemInputValue:u,itemUrl:d,refresh:o,source:p,state:a.getState()},r))}))}}}(tl({event:e,props:t,refresh:n,store:o},a))},onFocus:l,onBlur:ka,onClick:function(n){e.inputElement!==t.environment.document.activeElement||o.getState().isOpen||l(n)}},d)},getPanelProps:function(e){return tl({onMouseDown:function(e){e.preventDefault()},onMouseLeave:function(){o.dispatch("mouseleave",null)}},e)},getListProps:function(e){var n=e||{},o=n.sourceIndex,a=ol(n,Xr);return tl({role:"listbox","aria-labelledby":"".concat(r(t.id,o),"-label"),id:"".concat(r(t.id,o),"-list")},a)},getItemProps:function(e){var l=e.item,i=e.source,s=e.sourceIndex,c=ol(e,Qr);return tl({id:"".concat(r(t.id,s),"-item-").concat(l.__autocomplete_id),role:"option","aria-selected":o.getState().activeItemId===l.__autocomplete_id,onMouseMove:function(e){if(l.__autocomplete_id!==o.getState().activeItemId){o.dispatch("mousemove",l.__autocomplete_id);var t=Or(o.getState());if(null!==o.getState().activeItemId&&t){var r=t.item,i=t.itemInputValue,s=t.itemUrl,c=t.source;c.onActive(tl({event:e,item:r,itemInputValue:i,itemUrl:s,refresh:n,source:c,state:o.getState()},a))}}},onMouseDown:function(e){e.preventDefault()},onClick:function(e){var r=i.getItemInputValue({item:l,state:o.getState()}),s=i.getItemUrl({item:l,state:o.getState()});(s?Promise.resolve():zr(tl({event:e,nextState:{isOpen:!1},props:t,query:r,refresh:n,store:o},a))).then((function(){i.onSelect(tl({event:e,item:l,itemInputValue:r,itemUrl:s,refresh:n,source:i,state:o.getState()},a))}))}},c)}}}var rl=[{segment:"autocomplete-core",version:"1.10.0"}];function ll(e){return ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ll(e)}function il(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function sl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?il(Object(n),!0).forEach((function(t){cl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):il(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function cl(e,t,n){return(t=function(e){var t=function(e){if("object"!==ll(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==ll(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ll(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function ul(e){var t,n,o,a,r=e.plugins,l=e.options,i=null===(t=((null===(n=l.__autocomplete_metadata)||void 0===n?void 0:n.userAgents)||[])[0])||void 0===t?void 0:t.segment,s=i?cl({},i,Object.keys((null===(o=l.__autocomplete_metadata)||void 0===o?void 0:o.options)||{})):{};return{plugins:r.map((function(e){return{name:e.name,options:Object.keys(e.__autocomplete_pluginOptions||[])}})),options:sl({"autocomplete-core":Object.keys(l)},s),ua:rl.concat((null===(a=l.__autocomplete_metadata)||void 0===a?void 0:a.userAgents)||[])}}function dl(e){var t,n=e.state;return!1===n.isOpen||null===n.activeItemId?null:(null===(t=Or(n))||void 0===t?void 0:t.itemInputValue)||null}function pl(e,t,n,o){if(!n)return null;if(e<0&&(null===t||null!==o&&0===t))return n+e;var a=(null===t?-1:t)+e;return a<=-1||a>=n?null===o?null:0:a}function ml(e){return ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},ml(e)}function gl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function hl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?gl(Object(n),!0).forEach((function(t){bl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):gl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function bl(e,t,n){return(t=function(e){var t=function(e){if("object"!==ml(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===ml(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var fl=function(e,t){switch(t.type){case"setActiveItemId":case"mousemove":return hl(hl({},e),{},{activeItemId:t.payload});case"setQuery":return hl(hl({},e),{},{query:t.payload,completion:null});case"setCollections":return hl(hl({},e),{},{collections:t.payload});case"setIsOpen":return hl(hl({},e),{},{isOpen:t.payload});case"setStatus":return hl(hl({},e),{},{status:t.payload});case"setContext":return hl(hl({},e),{},{context:hl(hl({},e.context),t.payload)});case"ArrowDown":var n=hl(hl({},e),{},{activeItemId:t.payload.hasOwnProperty("nextActiveItemId")?t.payload.nextActiveItemId:pl(1,e.activeItemId,er(e),t.props.defaultActiveItemId)});return hl(hl({},n),{},{completion:dl({state:n})});case"ArrowUp":var o=hl(hl({},e),{},{activeItemId:pl(-1,e.activeItemId,er(e),t.props.defaultActiveItemId)});return hl(hl({},o),{},{completion:dl({state:o})});case"Escape":return e.isOpen?hl(hl({},e),{},{activeItemId:null,isOpen:!1,completion:null}):hl(hl({},e),{},{activeItemId:null,query:"",status:"idle",collections:[]});case"submit":return hl(hl({},e),{},{activeItemId:null,isOpen:!1,status:"idle"});case"reset":return hl(hl({},e),{},{activeItemId:!0===t.props.openOnFocus?t.props.defaultActiveItemId:null,status:"idle",query:""});case"focus":return hl(hl({},e),{},{activeItemId:t.props.defaultActiveItemId,isOpen:(t.props.openOnFocus||Boolean(e.query))&&t.props.shouldPanelOpen({state:e})});case"blur":return t.props.debug?e:hl(hl({},e),{},{isOpen:!1,activeItemId:null});case"mouseleave":return hl(hl({},e),{},{activeItemId:t.props.defaultActiveItemId});default:return"The reducer action ".concat(JSON.stringify(t.type)," is not supported."),e}};function vl(e){return vl="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},vl(e)}function yl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function kl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?yl(Object(n),!0).forEach((function(t){El(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):yl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function El(e,t,n){return(t=function(e){var t=function(e){if("object"!==vl(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==vl(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===vl(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function wl(e){var t=[],n=dr(e,t),o=function(e,t,n){var o,a=t.initialState;return{getState:function(){return a},dispatch:function(o,r){var l=function(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Ga(Object(n),!0).forEach((function(t){qa(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Ga(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}({},a);a=e(a,{type:o,props:t,payload:r}),n({state:a,prevState:l})},pendingRequests:(o=[],{add:function(e){return o.push(e),e.finally((function(){o=o.filter((function(t){return t!==e}))}))},cancelAll:function(){o.forEach((function(e){return e.cancel()}))},isEmpty:function(){return 0===o.length}})}}(fl,n,(function(e){var t=e.prevState,o=e.state;n.onStateChange(kl({prevState:t,state:o,refresh:l,navigator:n.navigator},a))})),a=function(e){var t=e.store;return{setActiveItemId:function(e){t.dispatch("setActiveItemId",e)},setQuery:function(e){t.dispatch("setQuery",e)},setCollections:function(e){var n=0,o=e.map((function(e){return Xa(Xa({},e),{},{items:Ka(e.items).map((function(e){return Xa(Xa({},e),{},{__autocomplete_id:n++})}))})}));t.dispatch("setCollections",o)},setIsOpen:function(e){t.dispatch("setIsOpen",e)},setStatus:function(e){t.dispatch("setStatus",e)},setContext:function(e){t.dispatch("setContext",e)}}}({store:o}),r=al(kl({props:n,refresh:l,store:o,navigator:n.navigator},a));function l(){return zr(kl({event:new Event("input"),nextState:{isOpen:o.getState().isOpen},props:n,navigator:n.navigator,query:o.getState().query,refresh:l,store:o},a))}if(e.insights&&!n.plugins.some((function(e){return"aa.algoliaInsightsPlugin"===e.name}))){var i="boolean"==typeof e.insights?{}:e.insights;n.plugins.push(Ua(i))}return n.plugins.forEach((function(e){var o;return null===(o=e.subscribe)||void 0===o?void 0:o.call(e,kl(kl({},a),{},{navigator:n.navigator,refresh:l,onSelect:function(e){t.push({onSelect:e})},onActive:function(e){t.push({onActive:e})},onResolve:function(e){t.push({onResolve:e})}}))})),function(e){var t,n,o=e.metadata,a=e.environment;if(null===(t=a.navigator)||void 0===t||null===(n=t.userAgent)||void 0===n?void 0:n.includes("Algolia Crawler")){var r=a.document.createElement("meta"),l=a.document.querySelector("head");r.name="algolia:metadata",setTimeout((function(){r.content=JSON.stringify(o),l.appendChild(r)}),0)}}({metadata:ul({plugins:n.plugins,options:e}),environment:n.environment}),kl(kl({refresh:l,navigator:n.navigator},r),a)}function _l(e){return _l="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},_l(e)}var Sl=["params"];function Cl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function xl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Cl(Object(n),!0).forEach((function(t){Il(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Cl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Il(e,t,n){return(t=function(e){var t=function(e){if("object"!==_l(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==_l(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===_l(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}function Ol(e){return function(e){if(Array.isArray(e))return Al(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(e){if("string"==typeof e)return Al(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)?Al(e,t):void 0}}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function Al(e,t){(null==t||t>e.length)&&(t=e.length);for(var n=0,o=new Array(t);n<t;n++)o[n]=e[n];return o}function Ml(e){return Ml="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ml(e)}function Pl(e,t){var n=Object.keys(e);if(Object.getOwnPropertySymbols){var o=Object.getOwnPropertySymbols(e);t&&(o=o.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),n.push.apply(n,o)}return n}function Tl(e){for(var t=1;t<arguments.length;t++){var n=null!=arguments[t]?arguments[t]:{};t%2?Pl(Object(n),!0).forEach((function(t){Nl(e,t,n[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(n)):Pl(Object(n)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(n,t))}))}return e}function Nl(e,t,n){return(t=function(e){var t=function(e){if("object"!==Ml(e)||null===e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var n=t.call(e,"string");if("object"!==Ml(n))return n;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===Ml(t)?t:String(t)}(t))in e?Object.defineProperty(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}var Rl=function(){function e(e){return function(e){var t=e.searchClient,n=e.queries,o=e.userAgents,a=void 0===o?[]:o;"function"==typeof t.addAlgoliaAgent&&[].concat(Ol(rl),Ol(a)).forEach((function(e){var n=e.segment,o=e.version;t.addAlgoliaAgent(n,o)}));var r=function(e){var t=e.transporter||{},n=t.headers,o=void 0===n?{}:n,a=t.queryParameters,r=void 0===a?{}:a,l="x-algolia-application-id",i="x-algolia-api-key";return{appId:o[l]||r[l],apiKey:o[i]||r[i]}}(t),l=r.appId,i=r.apiKey;return Boolean(l),Boolean(i),t.search(n.map((function(e){var t=e.params;return xl(xl({},function(e,t){if(null==e)return{};var n,o,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||Object.prototype.propertyIsEnumerable.call(e,n)&&(a[n]=e[n])}return a}(e,Sl)),{},{params:xl({hitsPerPage:5,highlightPreTag:"__aa-highlight__",highlightPostTag:"__/aa-highlight__"},t)})}))).then((function(e){return e.results.map((function(e,t){var o;return xl(xl({},e),{},{hits:null===(o=e.hits)||void 0===o?void 0:o.map((function(o){return xl(xl({},o),{},{__autocomplete_indexName:e.index||n[t].indexName,__autocomplete_queryID:e.queryID,__autocomplete_algoliaCredentials:{appId:l,apiKey:i}})}))})}))}))}({searchClient:e.searchClient,queries:e.requests.map((function(e){return e.query}))}).then((function(t){return t.map((function(t,n){var o=e.requests[n];return{items:t,sourceId:o.sourceId,transformResponse:o.transformResponse}}))}))}return function(t){return function(n){return Tl(Tl({requesterId:"algolia",execute:e},t),n)}}}();function Ll(e){return Ll="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},Ll(e)}const Bl=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M13 5c-3.3 0-6 2.7-6 6 0 1.4.5 2.7 1.3 3.7l-3.8 3.8 1.1 1.1 3.8-3.8c1 .8 2.3 1.3 3.7 1.3 3.3 0 6-2.7 6-6S16.3 5 13 5zm0 10.5c-2.5 0-4.5-2-4.5-4.5s2-4.5 4.5-4.5 4.5 2 4.5 4.5-2 4.5-4.5 4.5z"})),Dl=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M12 13.06l3.712 3.713 1.061-1.06L13.061 12l3.712-3.712-1.06-1.06L12 10.938 8.288 7.227l-1.061 1.06L10.939 12l-3.712 3.712 1.06 1.061L12 13.061z"})),Fl=ba()("A3VQNQXTF3","1490aefba5f869d86cc5e27099af3306");function zl(e){const[t,n]=(0,Nt.useState)({}),[a,r]=(0,Nt.useState)(!0),[i,s]=(0,Nt.useState)(!0),[c,u]=(0,Nt.useState)(""),d=(0,Nt.useRef)(null),p=(0,Nt.useRef)(null),m=(0,Nt.useRef)(null),g=(0,Nt.useRef)(null);(0,Nt.useEffect)((()=>{n((t=>({...t,query:e.currentValue})))}),[]),(0,Nt.useEffect)((()=>{u(e.currentValue)}),[e.currentValue]),(0,Nt.useEffect)((()=>{function e(e){d.current&&!d.current.contains(e.target)&&h.setIsOpen(!1)}return document.addEventListener("mousedown",e),()=>document.removeEventListener("mousedown",e)}),[d]),(0,Nt.useEffect)((()=>{r(function(){const{query:e,collections:n}=t;return(""===c||c!==e)&&(!(!e||""===e.trim())&&(!function(){const{collections:e,query:n}=t;return!(!Array.isArray(e)||!Array.isArray(e[0]?.items))&&!!e[0].items.filter((e=>e.name.toLowerCase()===n.toLowerCase())).length}()&&!(!i&&e&&n?.[0]?.items&&0===n[0].items.length)))}())}),[t.query,t.collections]),(0,Nt.useEffect)((()=>{const e=document.querySelector(".components-modal__frame.stellarwp").getBoundingClientRect(),n=g.current.getBoundingClientRect().bottom+180>e.bottom?"top":"bottom";if(t.isOpen){const e=document.querySelector(".aa-PanelWrapper"),t=e.clientHeight;"top"===n&&(e.style.top=`-${56+t}px`)}}),[t.isOpen]);const h=(0,Nt.useMemo)((()=>wl({onStateChange({state:e}){n(e)},getSources:()=>[{sourceId:"industries",getItemInputValue:({item:e})=>e.query,getItems({query:e}){return Ll((t={searchClient:Fl,queries:[{indexName:"ai_modal_industries",query:e,params:{hitsPerPage:8,highlightPreTag:"<mark>",highlightPostTag:"</mark>"}}]}).searchClient),Rl({transformResponse:function(e){return e.hits}})(t);var t},onSelect:t=>{e.onSelect(t.item.name),t.setQuery(t.item.name),s(!1)}}],openOnFocus:!1,...e})),[]);return(0,l.createElement)("div",{ref:d,className:"stellarwp-autocomplete-control"},e.label?(0,l.createElement)("label",{className:"components-input-control__label"},e.label):null,(0,l.createElement)("div",{className:"components-input-control__container"},(0,l.createElement)("div",{className:"aa-Autocomplete",...h.getRootProps({})},(0,l.createElement)("form",{className:"aa-Form",ref:p,...h.getFormProps({inputElement:m.current})},(0,l.createElement)("div",{className:"aa-InputWrapperPrefix"},(0,l.createElement)(Rt.Button,{className:"aa-SubmitButton",icon:Bl,type:"submit",title:(0,o.__)("Submit","kadence-blocks")})),(0,l.createElement)("div",{className:"aa-InputWrapper"},(0,l.createElement)("input",{className:"aa-Input",ref:m,...h.getInputProps({}),onKeyDown:function(){s(!0)}})),(0,l.createElement)("div",{className:"aa-InputWrapperSuffix"},t.query&&(0,l.createElement)(Rt.Button,{className:"aa-ClearButton",onClick:function(){e.onSelect(""),h.setQuery(""),h.refresh(),m.current.focus(),s(!0)},icon:Dl}))),(0,l.createElement)("div",{ref:g,className:["aa-Panel","stalled"===t.status&&"aa-Panel--stalled"].filter(Boolean).join(" "),...h.getPanelProps({})},(t.isOpen||a)&&(0,l.createElement)("div",{className:"aa-PanelWrapper"},t.collections&&t.collections.map(((e,t)=>{const{source:n,items:o}=e;return(0,l.createElement)("div",{key:`source-${t}`,className:"aa-Source"},o.length>0&&(0,l.createElement)("ul",{className:"aa-List",...h.getListProps()},o.map((e=>(0,l.createElement)("li",{key:e.objectID,className:"aa-Item",...h.getItemProps({item:e,source:n}),dangerouslySetInnerHTML:{__html:e?._highlightResult?.name?.value?e._highlightResult.name.value:e.name}})))))})),a&&(0,l.createElement)(Rt.Button,{className:"aa-ItemCreate",text:`+ ${(0,o.__)("Add","kadence-blocks")}: "${t.query}"`,onClick:function(){e.onSelect(t.query),n((e=>({...e,isOpen:!1}))),s(!0),r(!1)}}))))))}function jl(e){const{className:t="",...n}=e;return(0,l.createElement)(Rt.Button,{className:`stellarwp ${t}`,...n})}function Hl(e){const{onDelete:t,text:n,className:a}=e,r=It()("stellarwp","chip",a,{"has-icon":t});let i=null;return t&&(i=(0,l.createElement)(Rt.Button,{icon:"no-alt",label:(0,o.__)("Delete Selection","kadence-blocks"),isSmall:!0,onClick:function(e){t&&t(e)}})),(0,l.createElement)("div",{className:r},n&&(0,l.createElement)("span",null,n),i)}function Wl(){return(0,l.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,l.createElement)("path",{d:"M4.37491 3.2665L5.83324 4.08317L5.01658 2.62484L5.83324 1.1665L4.37491 1.98317L2.91658 1.1665L3.73325 2.62484L2.91658 4.08317L4.37491 3.2665ZM11.3749 8.98317L9.91658 8.1665L10.7332 9.62484L9.91658 11.0832L11.3749 10.2665L12.8332 11.0832L12.0166 9.62484L12.8332 8.1665L11.3749 8.98317ZM12.8332 1.1665L11.3749 1.98317L9.91658 1.1665L10.7332 2.62484L9.91658 4.08317L11.3749 3.2665L12.8332 4.08317L12.0166 2.62484L12.8332 1.1665ZM8.38241 4.25234C8.15491 4.02484 7.78741 4.02484 7.55991 4.25234L0.752412 11.0598C0.524912 11.2873 0.524912 11.6548 0.752412 11.8823L2.11741 13.2473C2.34491 13.4748 2.71241 13.4748 2.93991 13.2473L9.74158 6.44567C9.96908 6.21817 9.96908 5.85067 9.74158 5.62317L8.38241 4.25234ZM7.78158 7.45484L6.54491 6.21817L7.96825 4.79484L9.20491 6.0315L7.78158 7.45484Z",fill:"black"}))}function Vl(){return(0,l.createElement)(Bt.SVG,{width:"37",height:"28",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M26.884 27.9986H18.946C18.0865 27.9986 17.3888 27.3007 17.3888 26.4412C17.3888 25.5819 18.0865 24.884 18.946 24.884H24.1313C24.9405 24.8285 25.5806 24.1537 25.5806 23.3307C25.5806 22.4711 24.8828 21.7735 24.0233 21.7735H20.2322V21.7732H15.9094C15.0511 21.7732 14.3543 21.0765 14.3543 20.2182C14.3543 19.3599 15.0511 18.663 15.9094 18.663H16.8888L16.8868 18.661H18.3429C19.2008 18.661 19.8974 17.9646 19.8974 17.1067C19.8974 16.2488 19.2008 15.5525 18.3429 15.5525H14.6805V15.5511H7.00023C6.14238 15.5511 5.44581 14.8545 5.44581 13.9965C5.44581 13.1386 6.14238 12.442 7.00023 12.442H14.6805V12.4377H17.6876C18.5447 12.4377 19.2405 11.7418 19.2405 10.8846C19.2405 10.0274 18.5447 9.33155 17.6876 9.33155H17.0022L17.0023 9.33127H13.8087C12.9504 9.33127 12.2538 8.63444 12.2538 7.77632C12.2538 6.91786 12.9504 6.22103 13.8087 6.22103H21.183C21.2199 6.22103 21.2562 6.22227 21.2923 6.22475H23.9282C24.7875 6.22475 25.4853 5.52707 25.4853 4.66756C25.4853 3.80817 24.7875 3.11051 23.9282 3.11051H20.0535C19.247 3.05199 18.6102 2.37846 18.6102 1.55731C18.6102 0.697791 19.3078 2.94949e-10 20.1674 2.94949e-10H26.2711C26.2778 2.94949e-10 26.2844 -1.12778e-06 26.2916 0.000136145H33.4883L20.8783 13.7713L36.1306 28H26.9253L26.9231 27.9979C26.9102 27.9985 26.8972 27.9986 26.884 27.9986ZM11.9428 24.884C12.7993 24.884 13.4946 25.5793 13.4946 26.4357C13.4946 27.2922 12.7993 27.9874 11.9428 27.9874H6.24843C5.39208 27.9874 4.69675 27.2922 4.69675 26.4357C4.69675 25.5793 5.39208 24.884 6.24843 24.884H11.9428ZM9.68846 18.663C10.5474 18.663 11.2448 19.3603 11.2448 20.2195C11.2448 21.0783 10.5474 21.7758 9.68846 21.7758C8.82933 21.7758 8.13199 21.0783 8.13199 20.2195C8.13199 19.3603 8.82933 18.663 9.68846 18.663ZM1.55636 12.442C2.41547 12.442 3.11285 13.1393 3.11285 13.9984C3.11285 14.8574 2.41547 15.5548 1.55636 15.5548C0.697378 15.5548 0 14.8574 0 13.9984C0 13.1393 0.697378 12.442 1.55636 12.442ZM7.58797 6.22103C8.44693 6.22103 9.14443 6.91842 9.14443 7.7775C9.14443 8.63652 8.44693 9.33374 7.58797 9.33374C6.729 9.33374 6.0315 8.63652 6.0315 7.7775C6.0315 6.91842 6.729 6.22103 7.58797 6.22103ZM13.1696 2.94949e-10C14.0261 2.94949e-10 14.7213 0.695322 14.7213 1.55169C14.7213 2.4082 14.0261 3.10353 13.1696 3.10353H9.5702C8.71383 3.10353 8.01846 2.4082 8.01846 1.55169C8.01846 0.695322 8.71366 2.94949e-10 9.5702 2.94949e-10H13.1696Z",fill:"#0073E6"}))}function $l(){return(0,l.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"14",viewBox:"0 0 14 14",fill:"none"},(0,l.createElement)("path",{d:"M5.25003 9.43241L2.81753 6.99991L1.9892 7.82241L5.25003 11.0832L12.25 4.08324L11.4275 3.26074L5.25003 9.43241Z",fill:"#0073E6"}))}function Ul(){return(0,l.createElement)(Bt.SVG,{width:"12",height:"12",viewBox:"0 0 12 12",xmlns:"http://www.w3.org/2000/svg",fill:"currentColor"},(0,l.createElement)("style",null,"\n      .spinner_qM83 { animation: spinner_8HQG 1.05s infinite; }\n      .spinner_oXPr { animation-delay: 0.1s; }\n      .spinner_ZTLf { animation-delay: 0.2s; }\n\t\t\t\t@keyframes spinner_8HQG {\n\t\t\t\t\t0%, 57.14% {\n\t\t\t\t\t\tanimation-timing-function: cubic-bezier(0.33, 0.66, 0.66, 1);\n\t\t\t\t\t\ttransform: translate(0);\n\t\t\t\t\t}\n\t\t\t\t\t28.57% {\n\t\t\t\t\t\tanimation-timing-function: cubic-bezier(0.33, 0, 0.66, 0.33);\n\t\t\t\t\t\ttransform: translateY(-3px);\n\t\t\t\t\t}\n\t\t\t\t\t100% {\n\t\t\t\t\t\ttransform: translate(0);\n\t\t\t\t\t}\n\t\t\t\t}\n      "),(0,l.createElement)("circle",{className:"spinner_qM83",cx:"2",cy:"6",r:"1"}),(0,l.createElement)("circle",{className:"spinner_qM83 spinner_oXPr",cx:"6",cy:"6",r:"1"}),(0,l.createElement)("circle",{className:"spinner_qM83 spinner_ZTLf",cx:"10",cy:"6",r:"1"}))}function Zl(){return(0,l.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",width:"14",height:"12",viewBox:"0 0 14 12",fill:"none"},(0,l.createElement)("path",{d:"M5.06667 7.71667L5.90132 5.90132L7.71667 5.06667L5.90132 4.23202L5.06667 2.41667L4.23202 4.23202L2.41667 5.06667L4.23202 5.90132L5.06667 7.71667ZM5.06667 10.1333L3.48333 6.65L0 5.06667L3.48333 3.48333L5.06667 0L6.65 3.48333L10.1333 5.06667L6.65 6.65L5.06667 10.1333ZM10.8 12L10.0167 10.25L8.26667 9.46667L10.0167 8.66667L10.8 6.93333L11.6 8.66667L13.3333 9.46667L11.6 10.25L10.8 12Z",fill:"#0073E6"}))}function Gl(){return(0,l.createElement)(Bt.SVG,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M8.00008 3C4.66675 3 1.82008 5.07333 0.666748 8C1.82008 10.9267 4.66675 13 8.00008 13C11.3334 13 14.1801 10.9267 15.3334 8C14.1801 5.07333 11.3334 3 8.00008 3ZM8.00008 11.3333C6.16008 11.3333 4.66675 9.84 4.66675 8C4.66675 6.16 6.16008 4.66667 8.00008 4.66667C9.84008 4.66667 11.3334 6.16 11.3334 8C11.3334 9.84 9.84008 11.3333 8.00008 11.3333ZM8.00008 6C6.89341 6 6.00008 6.89333 6.00008 8C6.00008 9.10667 6.89341 10 8.00008 10C9.10675 10 10.0001 9.10667 10.0001 8C10.0001 6.89333 9.10675 6 8.00008 6Z",fill:"black"}))}function ql(){return(0,l.createElement)(Bt.SVG,{width:"16",height:"16",fill:"none",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M7.99996 4.66667C9.83996 4.66667 11.3333 6.16 11.3333 8C11.3333 8.43333 11.2466 8.84 11.0933 9.22L13.04 11.1667C14.0466 10.3267 14.84 9.24 15.3266 8C14.1733 5.07333 11.3266 3 7.99329 3C7.05996 3 6.16663 3.16667 5.33996 3.46667L6.77996 4.90667C7.15996 4.75333 7.56663 4.66667 7.99996 4.66667ZM1.33329 2.84667L3.15996 4.67333C2.05329 5.53333 1.18663 6.68 0.666626 8C1.81996 10.9267 4.66663 13 7.99996 13C9.03329 13 10.02 12.8 10.92 12.44L11.2 12.72L13.1533 14.6667L14 13.82L2.17996 2L1.33329 2.84667ZM5.01996 6.53333L6.05329 7.56667C6.01996 7.70667 5.99996 7.85333 5.99996 8C5.99996 9.10667 6.89329 10 7.99996 10C8.14663 10 8.29329 9.98 8.43329 9.94667L9.46663 10.98C9.01996 11.2 8.52663 11.3333 7.99996 11.3333C6.15996 11.3333 4.66663 9.84 4.66663 8C4.66663 7.47333 4.79996 6.98 5.01996 6.53333ZM7.89329 6.01333L9.99329 8.11333L10.0066 8.00667C10.0066 6.9 9.11329 6.00667 8.00663 6.00667L7.89329 6.01333Z",fill:"black"}))}function Kl(e){const{id:t,tags:n,maxTags:a,selectedTags:r,suggestedKeywords:i,suggestedKeywordsState:s,children:c,placeholder:u,onSuggestedKeywordAdded:d,onTryAgain:p,onTagDeleted:m,...g}=e,h=t?`inspector-chips-input-control-${t}`:"",[b,f]=(0,Nt.useState)(""),[v,y]=(0,Nt.useState)();function k(){const e=b.replace(",","").trim(),t=[...n];0!==e.length&&(-1===t.indexOf(e)?(t.push(e),r(t),f("")):f(""))}return(0,l.createElement)(Rt.BaseControl,{className:"stellarwp-chips-input",id:h,...g},(0,l.createElement)("div",{className:"stellarwp-chips-input__control",onClick:()=>v&&v.focus()},Array.isArray(n)&&n.map(((e,t)=>(0,l.createElement)(Hl,{key:t,text:e,className:"chip--blue",onDelete:()=>function(e){const t=[...n];t.splice(t.indexOf(e),1),r(t),m(e)}(e)}))),Array.isArray(n)&&n.length<a&&(0,l.createElement)("input",{id:h,ref:y,className:"stellarwp-chips-input__input",type:"text",value:b,onKeyUp:function(e){const t="Enter"===e.key,n=","===e.key;(t||n)&&(e.preventDefault(),k())},onBlur:function(e){e.preventDefault(),k()},onChange:e=>{var t;" "!==(t=e.target.value)&&","!==t&&f(t)},placeholder:u&&n.length<a?u:""})),s!==sa&&(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions"},(()=>{switch(s){case aa:return(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions-loading"},(0,l.createElement)(Rt.Icon,{icon:Zl}),(0,o.__)("Kadence is looking for Keyword Suggestions","kadence-blocks"),(0,l.createElement)(Rt.Icon,{icon:Ul}));case ia:return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions-title"},(0,o.__)("Suggested Keywords","kadence-blocks")),(0,l.createElement)("ul",{className:"stellarwp-chips-input__suggestions-list"},i.map(((e,t)=>(0,l.createElement)("li",{key:`${e}`,className:"stellarwp-chips-input__suggestions-list-item"},(0,l.createElement)("button",{onClick:()=>function(e){if(n.length>=a)return;const t=[...n];t.push(e),r(t),f(""),d(e)}(e),className:"stellarwp-chips-input__suggestions-button"},e))))));case ra:return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions-title"},(0,o.__)("We couldn’t find any good Keywords.","kadence-blocks")),(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions-description"},(0,o.__)("No worries, you can add your own keywords. Make sure to use words that directly relate to your website's content and what you do. The more the better.","kadence-blocks")));case la:return(0,l.createElement)(Rt.Flex,null,(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)("div",{className:"stellarwp-chips-input__suggestions-title"},(0,o.__)("Oops! Something went wrong.","kadence-blocks"))),(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)(Rt.Button,{onClick:p,variant:"link",className:"stellarwp-chips-input__suggestions-try-button"},(0,o.__)("Try again.","kadence-blocks"))));default:return(0,l.createElement)(l.Fragment,null)}})()))}function Jl(e){const{headline:t,content:n,children:o}=e,a=It()("form-section","stellarwp","stellarwp-body",{"has-children":o});return(0,l.createElement)("div",{className:a},t?(0,l.createElement)("h2",{className:"form-section__headline stellarwp-h2"},t):null,n?(0,l.createElement)("p",{className:"form-section__content stellarwp-small stellarwp-disabled"},n):null,o||null)}function Yl(e){const{icon:t,text:n="",value:o="",selected:a,onClick:r=()=>{}}=e,i=It()("location-select-card",{"is-selected":a});return(0,l.createElement)(Rt.Card,{className:i,as:"button",size:"small",isRounded:!0,onClick:()=>r(o)},(0,l.createElement)(Rt.CardHeader,null,t?(0,l.createElement)(Rt.Icon,{icon:t}):null),(0,l.createElement)(Rt.CardBody,null,n))}function Xl(e){const{label:t,locations:n=[],selected:o,onChange:a=()=>{}}=e;return(0,l.createElement)(Rt.Flex,{className:"location-select-control",direction:"column"},t?(0,l.createElement)("label",{className:"location-select-control__label"},t):null,(0,l.createElement)(Rt.Flex,{className:"location-select-control__group",align:"initial"},n&&n.map((e=>(0,l.createElement)(Rt.FlexBlock,null,(0,l.createElement)(Yl,{selected:o===e.value,icon:e.icon,text:e.text,value:e.value,onClick:a}))))))}(0,Nt.forwardRef)((function(e,t){const{maxMenuHeight:n,menuPlacement:o,label:a,options:r,value:i,prefix:s,...c}=e,u=It()("components-input-control__container",{"has-prefix":!!s});return(0,l.createElement)("div",{className:"stellarwp components-creatable-control"},a?(0,l.createElement)("label",{className:"components-input-control__label"},a):null,(0,l.createElement)("div",{className:u,ref:t},s||null,(0,l.createElement)(ht,{classNamePrefix:"stellarwp-creatable",maxMenuHeight:n,menuPlacement:o,styles:{control:(e,t)=>({...e,fontSize:16,boxShadow:"none",borderColor:t.isFocused?"#000000":"#DFDFDF"}),valueContainer:e=>({...e,paddingLeft:s?35:8}),menu:e=>({...e,fontSize:16}),indicatorsContainer:e=>({...e,color:"#000000"})},isClearable:!0,options:r,value:i,...c})))}));const Ql={featuredTitle:(0,o.__)("Featured Images","kadence-blocks"),featuredDescription:(0,o.__)("Featured images are meant to draw attention, they are used to represent the content on your website.","kadence-blocks"),backgroundTitle:(0,o.__)("Background Images","kadence-blocks"),backgroundDescription:(0,o.__)("Background images are meant to enhance the overall look and feel, styling the background of sections in your website.","kadence-blocks")},ei={wrapper:{boxSizing:"border-box",maxWidth:1e3,margin:"auto"}};function ti({loading:e,featured:t,background:n,updateCollection:o}){const a=e=>t=>{o(e,t)};return(0,l.createElement)("div",{className:"stellarwp-body",style:ei.wrapper},(0,l.createElement)(Rt.Flex,{align:"top",gap:"5"},(0,l.createElement)(Rt.FlexBlock,null,(0,l.createElement)(xi,{loading:e,photos:t?.images,isLocal:t?.isLocal,collectionLink:t?.pexelLink,title:Ql.featuredTitle,description:Ql.featuredDescription,updateCollection:a(0)})),(0,l.createElement)(Rt.FlexBlock,null,(0,l.createElement)(xi,{loading:e,photos:n?.images,isLocal:n?.isLocal,collectionLink:n?.pexelLink,title:Ql.backgroundTitle,description:Ql.backgroundDescription,updateCollection:a(1)}))))}function ni(e){const{styles:t={},value:n,message:o,color:a}=e,[r,i]=(0,Nt.useState)({}),s={};return(0,Nt.useEffect)((()=>{const e=n-100;i((t=>({...t,backgroundColor:a||"blue",transform:`translateX(${e}%)`})))}),[n,a,o]),void 0!==n&&(s["aria-valuenow"]=Math.round(n),s["aria-valuemin"]=0,s["aria-valuemax"]=100),(0,l.createElement)("div",{className:"stellarwp-progress-bar",style:t},(0,l.createElement)("div",{className:"stellarwp-progress-bar__wrap",...s},(0,l.createElement)("span",{className:"stellarwp-progress-bar__bar",style:r})),o?(0,l.createElement)("span",{className:"stellarwp-progress-bar__message",style:{color:a||"inherit"}},o):null)}const oi=(0,Nt.forwardRef)((function(e,t){const{maxMenuHeight:n,menuPlacement:o,menuPosition:a="absolute",isClearable:r,label:i,options:s,value:c,horizontal:u,...d}=e;return(0,l.createElement)("div",{className:"stellarwp components-select-control "+(u?"input-control-horizontal":"")},i?(0,l.createElement)("label",{className:"components-input-control__label"},i):null,(0,l.createElement)("div",{className:"components-input-control__container",ref:t},(0,l.createElement)(St,{classNamePrefix:"stellarwp-select",maxMenuHeight:n,menuPlacement:o,menuPosition:a,styles:{control:(e,t)=>({...e,fontSize:16,boxShadow:"none",borderColor:t.isFocused?"#000000":"#DFDFDF",width:"100%"}),valueContainer:e=>({...e,paddingLeft:16}),menu:e=>({...e,fontSize:16}),indicatorsContainer:e=>({...e,color:"#000000"})},isClearable:r,options:s,value:c,...d})))}));var ai=n(220);function ri({icon:e,...t}){return(0,l.createElement)("button",{...t},(0,l.createElement)("span",{role:"img","aria-label":"Arrow"},(0,l.createElement)(Rt.Dashicon,{icon:e})))}function li(e){return(0,l.createElement)(ri,{...e,icon:"arrow-left-alt2"})}function ii(e){return(0,l.createElement)(ri,{...e,icon:"arrow-right-alt2"})}function si(e){const{slides:t=[],text:n,backgroundImage:o,doAfterSlide:a=()=>{},doBeforeSlide:r=()=>{}}=e;if(!t.length)return;const i=It()("stellarwp-slider",{"has-background":o});return(0,l.createElement)("div",{className:i,style:{backgroundImage:`url(${o})`}},n?(0,l.createElement)("span",{className:"stellarwp-slider__text",align:"center"},n):null,(0,l.createElement)(ai.A,{infiniteLoop:!0,ArrowLeft:li,ArrowRight:ii,doAfterSlide:a,doBeforeSlide:r},t.map((e=>e))))}function ci(e){return(0,l.createElement)(Rt.TextControl,{className:"stellarwp",...e})}const ui=(0,Nt.forwardRef)((function(e,t){return(0,l.createElement)("div",{ref:t},(0,l.createElement)(Rt.TextareaControl,{className:"stellarwp",...e}))}));function di(e){const{progressBarProps:t,value:n,initialHeight:a=300,aiLoading:r,aiSuggestion:i,onUndo:s,onAccept:c,...u}=e,[d,p]=(0,Nt.useState)(null);return(0,Nt.useEffect)((()=>{d&&function(e){if(e){const t=e.querySelector("textarea");t.style.height="0px";const n=t.scrollHeight>a?t.scrollHeight:a;t.style.height=n+"px"}}(d)}),[d,n]),(0,l.createElement)("div",{className:"stellarwp-textarea-progress "+(i?"stellarwp-textarea-progress--suggestion-active":"")},(0,l.createElement)(ui,{ref:p,...u,value:i||n}),!(i||r)&&(0,l.createElement)("div",{className:"stellarwp-ai-about-character-limits"},n.length,"/1000"),!i&&(0,l.createElement)(ni,{...t}),(i||r)&&(0,l.createElement)(Rt.Flex,{className:"stellarwp-textarea-progress__actions"},r&&(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)(Rt.__experimentalView,{className:"stellarwp-textarea-progress__ai-loading"},(0,l.createElement)(Rt.Icon,{icon:Zl}),`${(0,o.__)("Kadence AI is writing","kadence-blocks")}`,(0,l.createElement)(Rt.Icon,{icon:Ul}))),i&&!r&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)(Rt.Button,{className:"stellarwp-textarea-progress__undo-button",variant:"link",onClick:s},`${(0,o.__)("Undo","kadence-blocks")}`)),(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)(Rt.Button,{className:"stellarwp-textarea-progress__approve-button",icon:$l,variant:"link",onClick:c},`${(0,o.__)("Use This Copy","kadence-blocks")}`)))))}function pi(e){const{label:t,description:n}=e;return(0,l.createElement)("div",{className:"tone-select__option"},(0,l.createElement)("b",null,t,"."),n?` ${n}`:null)}(0,Nt.forwardRef)((function(e,t){const{maxMenuHeight:n,menuPlacement:o,options:a=[],value:r,...i}=e;if(a.length)return(0,l.createElement)("div",{ref:t},(0,l.createElement)(St,{maxMenuHeight:n,menuPlacement:o,classNamePrefix:"stellarwp-tone",value:r,options:a,getOptionLabel:e=>(0,l.createElement)(pi,{...e}),...i}))}));const mi=window.wp.dom;function gi(e){const{pageNumber:t,isComplete:n=!1}=e,o=It()("stellarwp","step-count",{"is-complete":n}),a=n?(0,l.createElement)(Rt.Icon,{icon:"saved"}):t;return(0,l.createElement)("span",{className:o},a)}function hi(){const[e,t]=(0,Nt.useState)(!1),[n,o]=(0,Nt.useState)(!1);return{loading:e,error:n,saveAiWizardData:async function(e){t(!0),o(!1);try{if(await Pt()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_prophecy:JSON.stringify(e)}}))return t(!1),!0}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),o(!0),!1}},getAiWizardData:async function(){t(!0),o(!1);try{const e=await Pt()({path:"/wp/v2/settings",method:"GET"});if(e&&(t(!1),e?.kadence_blocks_prophecy))return e.kadence_blocks_prophecy}catch(e){const n=e?.message?e.message:e;return console.log(`ERROR: ${n}`),t(!1),o(!0),{}}}}}function bi({className:e,contentLabel:t,logo:n,backButtonText:a=(0,o.__)("Back","kadence-blocks"),forwardButtonText:r=(0,o.__)("Next","kadence-blocks"),backButtonDisabled:i=!1,forwardButtonDisabled:s=!1,onPageChange:c=()=>{},onClose:u=()=>{},onPrimaryClick:d=()=>{},primaryButtonText:p=(0,o.__)("Save","kadence-blocks"),primaryButtonDisabled:m=!1,onSecondaryClick:g,secondaryButtonText:h,credits:b="",photographyOnly:f,pages:v=[],isFullScreen:y=!1}){const k=(0,Nt.useRef)(null),[E,w]=(0,Nt.useState)(0),[_,S]=(0,Nt.useState)(new Set),{saveAiWizardData:C}=hi();(0,Nt.useEffect)((()=>{c&&c(E),k.current&&mi.focus.tabbable.find(k.current)[0]?.focus()}),[E]);const x=v&&v?.[E]?.id?v[E].id:`page-${E}`,I=E>0,O=E<v.length-1,A=e=>_.has(e),{state:M,dispatch:P}=ga();return 0===v.length?null:(0,l.createElement)(Rt.Modal,{title:n,className:It()("components-guide","stellarwp",e,x,{"is-fullscreen":y}),contentLabel:t,onRequestClose:u,ref:k},(0,l.createElement)("div",{className:"components-guide__container"},(0,l.createElement)("div",{className:"components-guide__page"},v[E].image,v[E].content)),(0,l.createElement)("div",{className:"components-guide__footer"},I&&(0,l.createElement)(jl,{className:"components-wizard__back-button",disabled:i,onClick:()=>{I&&w(E-1)}},a),v.length>1&&(0,l.createElement)("ul",{className:"components-guide__page-control","aria-label":(0,o.__)("Guide controls","kadence-blocks")},v.map(((e,t)=>{return(0,l.createElement)("li",{key:t,"aria-current":t===E?"step":void 0},(0,l.createElement)(jl,{key:t,className:It()("wizard-step",{"is-complete":A(t),"is-current":t===E}),disabled:(n=t,n>_.size||null),icon:(0,l.createElement)(gi,{pageNumber:t+1,isComplete:A(t),isSelected:t===E}),"aria-label":(0,o.sprintf)(/* translators: 1: current page number 2: total number of pages */ /* translators: 1: current page number 2: total number of pages */
(0,o.__)("Page %1$d of %2$d","kadence-blocks"),t+1,v.length),text:e.step,onClick:()=>w(t)}));var n}))),O&&(0,l.createElement)(jl,{variant:"primary",className:"components-wizard__forward-button",disabled:s,onClick:async function(){if(!O)return;P({type:"SET_SAVING",payload:!0});const{firstTime:e,saving:t,saveError:n,...o}=M;await C({firstTime:!1,...o})&&(P({type:"SET_SAVING",payload:!1}),w(E+1),S((e=>{const t=new Set(e.values());return t.add(E),t})))}},r),!O&&(0,l.createElement)("div",{className:"components-wizard__finish-button-container"},g&&"function"==typeof g?(0,l.createElement)(jl,{variant:"link",className:"components-wizard__secondary-button",onClick:g},h||""):null,f&&(0,l.createElement)(jl,{variant:"primary",className:"components-wizard__primary-button",disabled:m,onClick:d},p),!f&&(0,l.createElement)("div",{className:"kt-generate-wrap"},(0,l.createElement)(jl,{variant:"primary",className:"components-wizard__primary-button",disabled:m,onClick:d},p+" "+(0,o.__)("(70 Credits)","kadence-blocks"))))))}const fi=[],vi=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Select.extend({featuredImageToolbar(t){this.createSelectToolbar(t,{text:e.media.view.l10n.setFeaturedImage,state:this.options.state})},editState(){const t=this.state("featured-image").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:featured-image",this.featuredImageToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.FeaturedImage,new e.media.controller.EditImage({model:this.options.editImage})])}})},yi=()=>{const{wp:e}=window;return e.media.view.MediaFrame.Post.extend({galleryToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?(0,o.__)("Update Collection","kadence-blocks"):(0,o.__)("Create Collection","kadence-blocks"),priority:80,requires:{library:!0},click(){const e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},galleryEditToolbar(){const t=this.state().get("editing");this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:t?(0,o.__)("Update Collection","kadence-blocks"):(0,o.__)("Add to Collection","kadence-blocks"),priority:80,requires:{library:!0},click(){const e=this.controller,t=e.state();e.close(),t.trigger("update",t.get("library")),e.setState(e.options.state),e.reset()}}}}))},galleryAddToolbar(){this.toolbar.set(new e.media.view.Toolbar({controller:this,items:{insert:{style:"primary",text:(0,o.__)("Add to Collection","kadence-blocks"),priority:80,requires:{selection:!0},click(){const e=this.controller,t=e.state();e.state("gallery-edit").get("library").add(t.get("selection").models),t.trigger("reset"),e.setState("gallery-edit"),this.controller.modal.focusManager.focus()}}}}))},editState(){const t=this.state("gallery").get("selection"),n=new e.media.view.EditImage({model:t.single(),controller:this}).render();this.content.set(n),n.loadEditor()},createStates:function(){this.on("toolbar:create:main-gallery",this.galleryToolbar,this),this.on("toolbar:create:gallery-add",this.galleryAddToolbar,this),this.on("toolbar:create:gallery-edit",this.galleryEditToolbar,this),this.on("content:render:edit-image",this.editState,this),this.states.add([new e.media.controller.Library({id:"gallery",title:(0,o.__)("Create Collection","kadence-blocks"),priority:40,toolbar:"main-gallery",filterable:"uploaded",multiple:"add",editable:!1,library:e.media.query({type:"image",...this.options.library})}),new e.media.controller.EditImage({model:this.options.editImage}),new e.media.controller.GalleryEdit({title:(0,o.__)("Edit Collection","kadence-blocks"),library:this.options.selection,editing:this.options.editing,menu:"gallery",displaySettings:!1,multiple:!0}),new e.media.controller.GalleryAdd({title:(0,o.__)("Add to Collection","kadence-blocks")})])}})},ki=e=>["sizes","mime","type","subtype","id","url","alt","link","caption"].reduce(((t,n)=>(e?.hasOwnProperty(n)&&(t[n]=e[n]),t)),{}),Ei=e=>{const{wp:t}=window;return t.media.query({order:"ASC",orderby:"post__in",post__in:e,posts_per_page:-1,query:!0,type:"image"})};class wi extends Nt.Component{constructor({allowedTypes:e,gallery:t=!1,unstableFeaturedImageFlow:n=!1,modalClass:a,multiple:r=!1,title:l=(0,o.__)("Select or Upload Media")}){super(...arguments),this.openModal=this.openModal.bind(this),this.onOpen=this.onOpen.bind(this),this.onSelect=this.onSelect.bind(this),this.onUpdate=this.onUpdate.bind(this),this.onClose=this.onClose.bind(this);const{wp:i}=window;if(t)this.buildAndSetGalleryFrame();else{const t={title:l,multiple:r};e&&(t.library={type:e}),this.frame=i.media(t)}a&&this.frame.$el.addClass(a),n&&this.buildAndSetFeatureImageFrame(),this.initializeListeners()}initializeListeners(){this.frame.on("select",this.onSelect),this.frame.on("update",this.onUpdate),this.frame.on("open",this.onOpen),this.frame.on("close",this.onClose)}buildAndSetGalleryFrame(){const{addToGallery:e=!1,allowedTypes:t,multiple:n=!1,value:o=fi}=this.props;if(o===this.lastGalleryValue)return;const{wp:a}=window;let r;this.lastGalleryValue=o,this.frame&&this.frame.remove(),r=e?"gallery-library":o&&o.length?"gallery-edit":"gallery",this.GalleryDetailsMediaFrame||(this.GalleryDetailsMediaFrame=yi());const l=Ei(o),i=new a.media.model.Selection(l.models,{props:l.props.toJSON(),multiple:n});this.frame=new this.GalleryDetailsMediaFrame({mimeType:t,state:r,multiple:n,selection:i,editing:!(!o||!o.length)}),a.media.frame=this.frame,this.initializeListeners()}buildAndSetFeatureImageFrame(){const{wp:e}=window,t=vi(),n=Ei(this.props.value),o=new e.media.model.Selection(n.models,{props:n.props.toJSON()});this.frame=new t({mimeType:this.props.allowedTypes,state:"featured-image",multiple:this.props.multiple,selection:o,editing:!!this.props.value}),e.media.frame=this.frame}componentWillUnmount(){this.frame.remove()}onUpdate(e){const{onSelect:t,multiple:n=!1}=this.props,o=this.frame.state(),a=e||o.get("selection");a&&a.models.length&&t(n?a.models.map((e=>ki(e.toJSON()))):ki(a.models[0].toJSON()))}onSelect(){const{onSelect:e,multiple:t=!1}=this.props,n=this.frame.state().get("selection").toJSON();e(t?n:n[0])}onOpen(){const{wp:e}=window,{value:t}=this.props;if(this.updateCollection(),this.props.mode&&this.frame.content.mode(this.props.mode),!(Array.isArray(t)?t?.length:t))return;const n=this.props.gallery,o=this.frame.state().get("selection"),a=Array.isArray(t)?t:[t];n||a.forEach((t=>{o.add(e.media.attachment(t))}));const r=Ei(a);r.more().done((function(){n&&r?.models?.length&&o.add(r.models)}))}onClose(){const{onClose:e}=this.props;e&&e()}updateCollection(){const e=this.frame.content.get();if(e&&e.collection){const t=e.collection;t.toArray().forEach((e=>e.trigger("destroy",e))),t.mirroring._hasMore=!0,t.more()}}openModal(){this.props.gallery&&this.buildAndSetGalleryFrame(),this.frame.open()}render(){return this.props.render({open:this.openModal})}}const _i=wi,Si={wrapper:{boxSizing:"border-box",width:"100%",padding:32,paddingBottom:"16px",marginLeft:"auto",marginRight:"auto",border:"1px solid #DFDFDF",borderRadius:"4px",display:"flex",flexDirection:"column",gap:"24px"},gridWrapper:{maxHeight:"318px",height:"500px",overflow:"hidden",overflowY:"auto",marginRight:"-8px",paddingRight:"9px",position:"relative"},loading:{position:"absolute",inset:"0 0 0 0",backgroundColor:"rgba(255,255,255,0.95)",display:"flex",alignItems:"center",justifyContent:"center",zIndex:1},grid:{display:"grid",gridTemplateColumns:"1fr 1fr 1fr 1fr",gap:"16px"},square:{position:"relative",width:"100%",height:"100%",backgroundColor:"#fcfcfc",backgroundSize:"cover",aspectRatio:"1/1"},placeholder:{background:"#F5F5F5",height:"100%",width:"100%",zIndex:2},img:{objectFit:"cover",objectPosition:"center",width:"100%",position:"relative",zIndex:2,aspectRatio:"1/1"},linkWrapper:{paddingTop:16,textAlign:"center",borderTop:"1px solid #DFDFDF"},contentWrapper:{gap:8,textAlign:"center"},title:{fontSize:"14px",fontWeight:600},description:{fontSize:"14px",marginTop:"8px"},importWrapper:{position:"relative",marginBottom:"-24px"},importNotice:{position:"absolute",top:"0",width:"100%",height:"318px",backgroundColor:"rgba(255,255,255,0.9)",display:"flex",fontSize:"18px",alignItems:"center",justifyContent:"center",zIndex:11},spinner:{marginRight:"8px",marginLeft:"8px",marginTop:"4px",marginBottom:"4px"}},Ci=["image"];function xi({photos:e,loading:t,isLocal:n,collectionLink:a,title:r,description:i,updateCollection:s}){const c=function(e){const[t,n]=(0,Nt.useState)();return(0,Nt.useEffect)((()=>{if(!e)return void n([]);const t=e.length;if(t<12){const o=12-t,a=[...e,...Array.from(Array(o)).map(((e,t)=>({alt:`placeholder${t+1}`})))];n(a)}else n(e)}),[e]),t}(e),[u,d]=(0,Nt.useState)(!1),[p,m]=(0,Nt.useState)([]),[g,h]=(0,Nt.useState)([]);return(0,Nt.useEffect)((()=>{if(e){const t=[];e.forEach((function(e){t.push(e.id)})),h(t)}else h([])}),[e]),(0,l.createElement)("div",{style:Si.wrapper},(0,l.createElement)("div",{style:Si.contentWrapper},(0,l.createElement)("div",{style:Si.title},r," "),(0,l.createElement)("div",{style:Si.description},i)),(0,l.createElement)("div",{style:Si.importWrapper,className:"kb-images-custom-import"},t&&(0,l.createElement)("div",{style:Si.importNotice,className:"kb-importing-information"},(0,l.createElement)(Rt.Spinner,{style:Si.spinner})," ",(0,o.__)("Loading…","kadence-blocks")),u&&(0,l.createElement)("div",{style:Si.importNotice,className:"kb-importing-information"},(0,l.createElement)(Rt.Spinner,{style:Si.spinner})," ",(0,o.__)("Importing Images…","kadence-blocks"))),(0,l.createElement)("div",{style:Si.gridWrapper,className:"kb-images-custom-scroll-bar"},(0,l.createElement)("div",{style:Si.grid},c&&c.length>0?c.map(((e,t)=>(0,l.createElement)(Rt.FlexBlock,{style:Si.square,key:t},(0,l.createElement)(Rt.FlexBlock,{className:"loading-behind-image",style:Si.loading},(0,l.createElement)(Rt.Spinner,null)),e?.sizes?(0,l.createElement)("img",{style:Si.img,alt:e.alt,src:e?.sizes?.[0]?.src?e.sizes[0].src:e?.url}):(0,l.createElement)(Rt.FlexBlock,{style:{...Si.square,...Si.placeholder},key:e.alt})))):Array.from("123456789ABC").map((e=>(0,l.createElement)(Rt.FlexBlock,{style:{...Si.square,...Si.placeholder},key:e}))))),(0,l.createElement)(Rt.Flex,null,(0,l.createElement)(Rt.FlexBlock,{style:Si.linkWrapper},(0,l.createElement)(_i,{onSelect:e=>function(e){const t=e.map((e=>({id:e.id,post_id:e.id,alt:e.alt||e.name,url:e?.sizes?.large?.url||e?.sizes?.full?.url,sizes:[{name:"thumbnail",src:e?.sizes?.thumbnail?.url||e?.sizes?.large?.url||e?.sizes?.full?.url}]})));s(t)}(e),allowedTypes:Ci,multiple:!0,gallery:!0,title:"Edit Collection",value:g,render:({open:t})=>(0,l.createElement)(jl,{variant:"link",disabled:u,text:(0,o.__)("Edit Collection","kadence-blocks"),onClick:()=>function(t){u||(!n&&e?.length>0?async function(t){d(!0);const n=await async function(e){try{return await Pt()({path:"/kb-design-library/v1/process_images",method:"POST",data:{images:e}})}catch(e){const t=e?.message?e.message:e;return console.log(`ERROR: ${t}`),!1}}(e);if(!1!==n){const e=[];n.forEach((function(t){e.push(t.id)})),h(e),setTimeout((function(){t(),d(!1)}),100)}else d(!1)}(t):t())}(t),style:{fontSize:"14px"}})}))))}const Ii=function(e){let{icon:t,size:n=24,...o}=e;return(0,Nt.cloneElement)(t,{width:n,height:n,...o})},Oi=(0,Nt.createElement)(Bt.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Nt.createElement)(Bt.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),Ai=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"})),Mi=({onComplete:e,onCancel:t})=>{const[n,o]=(0,Nt.useState)(null);return(0,l.createElement)("div",{className:"advanced-select-menu__input"},(0,l.createElement)("input",{className:"advanced-select-menu__input-item",onChange:e=>o(e.target.value),onKeyDown:function(t){t.stopPropagation(),"Enter"===t.key&&e(n)},placeholder:"Rename this collection",autoFocus:!0,onClick:function(e){e.stopPropagation()}}),(0,l.createElement)("div",{className:"advanced-select-menu__option-item__actions is-edit"},(0,l.createElement)(jl,{size:"small",variant:"link",onClick:t},"Cancel"),(0,l.createElement)(jl,{size:"small",variant:"primary",onClick:function(t){t.stopPropagation(),e(n)}},"Save")))},Pi=(0,l.createElement)("svg",{viewBox:"0 0 18 18",fill:"none"},(0,l.createElement)("path",{d:"M2.25 12.9374V15.7499H5.0625L13.3575 7.45492L10.545 4.64242L2.25 12.9374ZM15.5325 5.27992C15.825 4.98742 15.825 4.51492 15.5325 4.22242L13.7775 2.46742C13.485 2.17492 13.0125 2.17492 12.72 2.46742L11.3475 3.83992L14.16 6.65242L15.5325 5.27992Z",fill:"currentColor"})),Ti=(0,l.createElement)("svg",{viewBox:"0 0 18 18",fill:"none"},(0,l.createElement)("path",{d:"M4.5 14.25C4.5 15.075 5.175 15.75 6 15.75H12C12.825 15.75 13.5 15.075 13.5 14.25V5.25H4.5V14.25ZM6 6.75H12V14.25H6V6.75ZM11.625 3L10.875 2.25H7.125L6.375 3H3.75V4.5H14.25V3H11.625Z",fill:"currentColor"})),Ni=(0,l.createElement)("svg",{viewBox:"0 0 18 16",fill:"none"},(0,l.createElement)("path",{d:"M6.99984 10.1458L8.04315 7.87665L10.3123 6.83333L8.04315 5.79002L6.99984 3.52083L5.95653 5.79002L3.68734 6.83333L5.95653 7.87665L6.99984 10.1458ZM6.99984 13.1667L5.02067 8.8125L0.666504 6.83333L5.02067 4.85417L6.99984 0.5L8.979 4.85417L13.3332 6.83333L8.979 8.8125L6.99984 13.1667ZM14.1665 15.5L13.1873 13.3125L10.9998 12.3333L13.1873 11.3333L14.1665 9.16667L15.1665 11.3333L17.3332 12.3333L15.1665 13.3125L14.1665 15.5Z",fill:"currentColor"})),Ri=({option:e,onOptionSelect:t,isActive:n,doNotClose:o})=>{const[a,r]=(0,Nt.useState)("default"),{updateRecord:i,deleteRecord:s}=(0,Nt.useContext)(Bi);(0,Nt.useEffect)((()=>{o("default"!==a)}),[a]);const c=e=>t=>{t.stopPropagation(),r(e)};return(0,l.createElement)("div",{className:`advanced-select-menu__option-item${n?" is-active":""}${e.useActions?" use-actions":""}`},"edit"!==a&&(0,l.createElement)("div",{className:"advanced-select-menu__option-item__label",onClick:n=>t(e)},"aiGenerated"===e.value&&(0,l.createElement)(Ii,{icon:Ni,size:17}),e.label),"default"===a&&e.useActions&&(0,l.createElement)("div",{className:"advanced-select-menu__option-item__actions is-icons"},(0,l.createElement)(Ii,{icon:Pi,size:17,onClick:c("edit")}),(0,l.createElement)(Ii,{icon:Ti,size:17,onClick:c("delete")})),"edit"===a&&(0,l.createElement)(Mi,{onComplete:function(t){i(t||e.label,e.value),r("default")},onCancel:c("default")}),"delete"===a&&(0,l.createElement)("div",{className:"advanced-select-menu__option-item__actions is-delete"},(0,l.createElement)(jl,{size:"small",variant:"link",onClick:c("default")},"Cancel"),(0,l.createElement)(jl,{size:"small",isDestructive:!0,onClick:function(t){t.stopPropagation(),s(e.value),r("default")}},"Delete Collection")))},Li=function(e){const{width:t,options:n,onSelect:a,value:r,allowClose:i}=e,{createRecord:s}=(0,Nt.useContext)(Bi),[c,u]=(0,Nt.useState)([]),[d,p]=(0,Nt.useState)(!1);(0,Nt.useEffect)((()=>{n&&n.length>0&&u(n.reduce(((e,t)=>t.options&&0!==t.options.length?[...e,t]:e),[]))}),[n]);const m=e=>t=>{t.stopPropagation(),p(e)};function g(e){a(e)}return(0,l.createElement)("div",{className:"stellarwp advanced-select-menu",style:{width:t}},d?(0,l.createElement)("div",{className:"advanced-select-menu__create-input"},(0,l.createElement)(Mi,{onComplete:function(e){s(e),p(!1)},onCancel:m(!1)})):(0,l.createElement)(jl,{className:"advanced-select-menu__create",onClick:m(!0)},(0,o.__)("Make My Own Collection","kadence-blocks"),(0,l.createElement)(Ii,{icon:Ai,size:20})),c&&c.length>0&&c.map((e=>(0,l.createElement)("div",{className:"advanced-select-menu__option-wrapper",key:e.label},(0,l.createElement)("div",{className:"advanced-select-menu__option-category"},e.label),e.options.map((e=>(0,l.createElement)(Ri,{key:e.value,option:e,onOptionSelect:g,isActive:r===e.value,doNotClose:e=>i(!e)})))))))},Bi=(0,Nt.createContext)({}),Di=(0,Nt.forwardRef)((function(e,t){const{value:n,label:o,options:a,onChange:r,createRecord:i,updateRecord:s,deleteRecord:c}=e,[u,d]=(0,Nt.useState)("auto"),[p,m]=(0,Nt.useState)(!1),[g,h]=(0,Nt.useState)(!0),b=(0,Nt.useRef)();function f(e){e.stopPropagation(),b?.current&&e?.target&&!b.current.contains(e.target)&&g&&m(!1)}function v(){}return(0,Nt.useEffect)((()=>{b&&b.current&&d(b.current.clientWidth-32+"px")}),[b]),(0,Nt.useEffect)((()=>(document.addEventListener("click",f),()=>{document.removeEventListener("click",f)})),[g]),(0,l.createElement)(Bi.Provider,{value:{createRecord:i,updateRecord:s,deleteRecord:c}},(0,l.createElement)("div",{className:"stellarwp components-advanced-select",ref:t},o&&(0,l.createElement)("label",{className:"components-input-control__label"},o),(0,l.createElement)("div",{className:"stellarwp-advancedSelect",ref:b},(0,l.createElement)(jl,{className:p?"is-open":"",onClick:()=>m(!p)},(0,l.createElement)("div",{className:"stellarwp-advancedSelect__button-content"},(0,l.createElement)("div",{className:"stellarwp-advancedSelect__button-label"},n?.label),(0,l.createElement)("div",{className:"stellarwp-advancedSelect__button-icon"},(0,l.createElement)(Ii,{size:25,icon:Oi}))),p&&(0,l.createElement)(Rt.Popover,{placement:"bottom-start",offset:8,animate:!1,className:"stellarwp-advancedSelect__content",onClose:v,onFocusOutside:v},(0,l.createElement)(Li,{width:u,options:a,onSelect:r,value:n?.value,allowClose:h}))))))}));function Fi({items:e=[],selectedItems:t=[],onChange:n}){const[a,r]=(0,Nt.useState)(e);return(0,Nt.useEffect)((()=>{r(e)}),[e]),(0,Nt.useEffect)((()=>{console.log("selectedItems",t)}),[t]),(0,l.createElement)("div",{className:"ai-wizard-button-list"},(0,l.createElement)(Rt.ButtonGroup,{className:"ai-wizard-button-list_wrapper"},a.map((e=>(0,l.createElement)("div",{className:"ai-wizard-button-list_item_wrap"},(0,l.createElement)(jl,{className:"ai-wizard-button-list_item"+(t.includes(e.value)?" is-selected":""),onClick:o=>function(e){const o=[...t];console.log("tempSelected",o),console.log("item Selected",e);const a=o.indexOf(e);-1!==a?o.splice(a,1):o.push(e),n(o)}(e.value)},(0,l.createElement)("div",{className:"ai-wizard-button-list_item-icon"},(0,l.createElement)(Rt.Icon,{icon:e.icon})),(0,l.createElement)("div",{className:"ai-wizard-button-list_item-content"},(0,l.createElement)("div",{className:"ai-wizard-button-list_item-title-area"},(0,l.createElement)("div",{className:"ai-wizard-button-list_item-title"},e.label)),e.description&&(0,l.createElement)("div",{className:"ai-wizard-button-list_item-description"},e.description)),(0,l.createElement)("div",{className:"ai-wizard-button-list_item-active"},(0,l.createElement)(Rt.Icon,{icon:"saved"}),t.length>1&&t[0]===e.value&&(0,l.createElement)("div",{className:"ai-wizard-button-list_item-primary"},(0,o.__)("Primary","kadence-starter-templates")))),t.includes(e.value)&&t.length>1&&t[0]!==e.value&&(0,l.createElement)(jl,{className:"ai-wizard-button-list_item-make-primary",onClick:o=>function(e){const o=[...t];console.log("tempSelected",o),console.log("item Selected",e);const r=o.indexOf(e);if(console.log("item index",r),-1!==r){const[e]=o.splice(r,1);console.log("item",e),o.unshift(e),console.log("return selected",a.filter((e=>o.includes(e.value)))),n(o)}}(e.value)},(0,o.__)("Make Primary","kadence-starter-templates")))))))}const zi=n.p+"images/ai-modal-intro.f66e5f62.png",ji={background:{height:"100%",background:"linear-gradient(90deg, rgba(0, 115, 230, 0) 0, rgba(0, 115, 230, 0) 60%, #0073E6 99.44%)"},headline:{maxWidth:420},content:{maxWidth:480,marginLeft:32},imageWrapper:{overflow:"hidden"},image:{maxHeight:"60vh",borderRadius:8}},Hi=(0,o.__)("Elevate Your Website Creation: Design Library + Kadence AI","kadence-blocks"),Wi=(0,o.__)("Introducing Kadence AI, our AI-powered engine for creating websites.","kadence-blocks"),Vi=(0,o.__)("Forget about learning AI - just tell us about yourself, and let Kadence AI take care of the rest. Say goodbye to blank screen anxiety. Welcome effective content that represents your brand.","kadence-blocks");function $i({children:e}){if(e)return(0,l.createElement)(Rt.Card,{isBorderless:!0,size:"large",className:"slide-card"},(0,l.createElement)(Rt.CardBody,null,e))}function Ui({headline:e,content:t}){return(0,l.createElement)("div",{className:"slide-card-row"},e?(0,l.createElement)("p",{className:"slide-card-row__headline"},(0,l.createElement)("b",null,e)):null,t?(0,l.createElement)("div",{className:"slide-card-row__content"},t):null)}function Zi(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(Ui,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("An Organization","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Organization Name","kadence-blocks"),content:(0,o.__)("Education 4All","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("b",null,(0,o.__)("Service Area","kadence-blocks"),": "),(0,o.__)("Latin America","kadence-blocks"))}),(0,l.createElement)(Ui,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Charity","kadence-blocks")})))}function Gi(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(Ui,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("A company","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Company Name","kadence-blocks"),content:(0,o.__)("Healing Touch","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("b",null,(0,o.__)("Business Address","kadence-blocks"),": "),(0,o.__)("123 Some St., Seattle, Washington","kadence-blocks"))}),(0,l.createElement)(Ui,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Spa","kadence-blocks")})))}function qi(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(Ui,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("A company","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Company Name","kadence-blocks"),content:(0,o.__)("Prospera","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("b",null,(0,o.__)("Online Only","kadence-blocks")))}),(0,l.createElement)(Ui,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Professional Services","kadence-blocks")})))}function Ki(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(Ui,{headline:(0,o.__)("I am","kadence-blocks"),content:(0,o.__)("An Individual","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Your Name","kadence-blocks"),content:(0,o.__)("Spencer Sharp","kadence-blocks")}),(0,l.createElement)(Ui,{headline:(0,o.__)("Where are you based?","kadence-blocks"),content:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("b",null,(0,o.__)("Service Area","kadence-blocks"),": "),(0,o.__)("USA","kadence-blocks"))}),(0,l.createElement)(Ui,{headline:(0,o.__)("What industry are you in?","kadence-blocks"),content:(0,o.__)("Coaching","kadence-blocks")})))}const Ji={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},inputError:{fontSize:11,color:"red"}},Yi=(0,o.__)("Your Information","kadence-blocks"),Xi=(0,o.__)("Please provide detailed information about yourself, your company, or your organization to enhance the quality of our results.","kadence-blocks"),Qi=["Education 4All is a non-profit organization dedicated to providing \n  underprivileged children with access to quality education.","Through initiatives like school infrastructure development, teacher \n  training, curriculum development, and learning resource provision, we empower \n  children, their families, and communities.","Our mission is to break the cycle of poverty by equipping children with the \n  tools they need for a brighter future and fostering sustainable development."];function es(){return(0,l.createElement)($i,null,(0,l.createElement)(Ui,{headline:(0,o.__)("Tell us about your organization","kadence-blocks"),content:Qi.map(((e,t)=>(0,l.createElement)("p",{key:t},e)))}))}const ts=["Healing Touch is a leading massage therapy business renowned \n  for our personalized, holistic treatments offered in a tranquil environment.","Our team of highly skilled therapists seamlessly blends various techniques to \n  cater to the unique needs of each individual, offering effective relief from \n  tension, pain, and stress.","Our services encompass a wide range of offerings, including Swedish, deep \n  tissue, hot stone, and prenatal massage, along with complementary treatments \n  like reflexology, acupuncture, and energy work.","With an unwavering commitment to excellence and promoting relaxation, we are \n  dedicated to helping our valued clients restore vitality and achieve a \n  profound state of deep relaxation."];function ns(){return(0,l.createElement)($i,null,(0,l.createElement)(Ui,{headline:(0,o.__)("Tell us about your business","kadence-blocks"),content:ts.map(((e,t)=>(0,l.createElement)("p",{key:t},e)))}))}const os=["Prospera is a trusted bookkeeping and accounting services company dedicated \n  to helping businesses thrive financially.","We specialize in comprehensive bookkeeping, accurate financial reporting, \n  tax preparation, and strategic financial planning.","Our tailored solutions cater to small and medium-sized enterprises, entrepreneurs, and professionals, providing them \n  with the unique value of expertise, accuracy, and timely insights.","With Prospera, businesses gain the financial clarity and support they need to make \n  informed decisions and achieve long-term prosperity."];function as(){return(0,l.createElement)($i,null,(0,l.createElement)(Ui,{headline:(0,o.__)("Tell us about your business","kadence-blocks"),content:os.map(((e,t)=>(0,l.createElement)("p",{key:t},e)))}))}const rs=["I'm Spencer Sharp, a business coach who is genuinely committed to helping \n  entrepreneurs and professionals build businesses they are passionate about \n  and lead fulfilling lives.","With practical solutions and personalized guidance, I provide the support \n  you need to achieve your goals.","Together, we'll work on creating systems for organization, clarity, and \n  growth.","I'll empower you to become a strong leader, take control of your finances, \n  and develop effective strategies for marketing, lead conversion, and \n  customer fulfillment.","I’ll be your guide on this journey to success, ensuring that your business \n  thrives while you live a rewarding life."];function ls(){return(0,l.createElement)($i,null,(0,l.createElement)(Ui,{headline:(0,o.__)("Tell us about yourself","kadence-blocks"),content:rs.map(((e,t)=>(0,l.createElement)("p",{key:t},e)))}))}const is={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},textareaWrapper:{position:"relative"},tooltip:{position:"absolute",top:16,left:"100%",borderRadius:"0px 4px 4px 0px",padding:12,backgroundColor:"#FAFAFA",width:200,zIndex:1,title:{fontSize:12,fontWeight:600},content:{fontSize:11,lineHeight:"14px",letterSpacing:-.2,listStyle:"disc",paddingLeft:14}}},ss=(0,o.__)("Craft a brief description that explains who you are, your primary attributes and highlight what differentiates you.","kadence-blocks"),cs={COMPANY:` ${(0,o.__)("business","kadence-blocks")}`,INDIVIDUAL:(0,o.__)("self","kadence-blocks"),ORGANIZATION:` ${(0,o.__)("organization","kadence-blocks")}`};function us({tone:e,headline:t,content:n}){return(0,l.createElement)("div",{className:"slide-card-row--tone"},e?(0,l.createElement)(Hl,{text:`${(0,o.__)("Tone","kadence-blocks")}: ${e}`}):null,t?(0,l.createElement)("p",{className:"slide-card-row__headline"},t):null,n?(0,l.createElement)("p",{className:"slide-card-row__content"},n):null)}function ds(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(us,{tone:(0,o.__)("Professional","kadence-blocks"),headline:(0,o.__)("Elevate Your Well-being with Healing Touch's Expert Care","kadence-blocks"),content:(0,o.__)('"Experience the pinnacle of wellness and rejuvenation as our skilled therapists provide you with expert care and tailored massage therapy at Healing Touch."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Friendly","kadence-blocks"),headline:(0,o.__)("Welcome to Your Personal Oasis","kadence-blocks"),content:(0,o.__)('"Immerse yourself in the ultimate relaxation experience at Healing Touch, where our friendly team of skilled therapists will whisk you away to a serene sanctuary of bliss and rejuvenation."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Informative","kadence-blocks"),headline:(0,o.__)("Discover the Secrets of Blissful Wellness","kadence-blocks"),content:(0,o.__)('"Experience the transformative power of professional massage therapy and unlock a world of relaxation, pain relief, and enhanced well-being at Healing Touch."',"kadence-blocks")})))}function ps(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(us,{tone:(0,o.__)("Engaging","kadence-blocks"),headline:(0,o.__)("Unleash Your Inner Bliss with Healing Touch","kadence-blocks"),content:(0,o.__)('"Discover a transformative sanctuary where your senses will awaken, your spirit will rejuvenate, and your well-being will flourish. Experience the power of Healing Touch today."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Trustworthy","kadence-blocks"),headline:(0,o.__)("Your Path to Trusted Wellness Begins at Healing Touch","kadence-blocks"),content:(0,o.__)('"Experience the highest standard of care and expertise as our dedicated team guides you on your journey to holistic well-being at Healing Touch."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Conversational","kadence-blocks"),headline:(0,o.__)("Let's Find Your Perfect Massage Experience at Healing Touch","kadence-blocks"),content:(0,o.__)('"Ready to discover the ultimate relaxation? Let us guide you in finding the perfect massage tailored to your unique needs at Healing Touch."',"kadence-blocks")})))}function ms(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(us,{tone:(0,o.__)("Persuasive","kadence-blocks"),headline:(0,o.__)("Embrace the Power of Healing Touch for Unparalleled Relaxation","kadence-blocks"),content:(0,o.__)('"Immerse yourself in a world of relaxation, rejuvenation, and renewed vitality with Healing Touch\'s expert massage therapy, tailored to revitalize your mind, body, and spirit."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Upbeat","kadence-blocks"),headline:(0,o.__)("Elevate Your Senses, Renew Your Spirit","kadence-blocks"),content:(0,o.__)('"Step into a world of pure bliss and let our expert therapists at Healing Touch Spa uplift your spirits and rejuvenate your body with our invigorating massage therapies."',"kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Funny","kadence-blocks"),headline:(0,o.__)("Knead a Laugh? Healing Touch Puts the 'Ahh' in Spa-tacular Massages!","kadence-blocks"),content:(0,o.__)('"Get ready to unwind, untangle, and unleash your inner noodle with Healing Touch\'s hilariously heavenly massages!"',"kadence-blocks")})))}function gs(){return(0,l.createElement)($i,null,(0,l.createElement)(Rt.__experimentalVStack,{spacing:"6"},(0,l.createElement)(us,{tone:(0,o.__)("Inspirational","kadence-blocks"),headline:(0,o.__)("Ignite Your Inner Spark, Transform Your Life at Healing","kadence-blocks"),content:(0,o.__)("“Embrace the power of self-care and unlock your body's innate healing potential, as our skilled practitioners rejuvenate your mind, body, and spirit with transformative therapies.\"","kadence-blocks")}),(0,l.createElement)(us,{tone:(0,o.__)("Neutral","kadence-blocks"),headline:(0,o.__)("Discover the Essence of Healing Touch at Healing Touch Spa","kadence-blocks"),content:(0,o.__)('"Experience a range of therapeutic treatments and indulge in a serene atmosphere, where you can unwind and rejuvenate your body and mind."',"kadence-blocks")})))}const{getSuggestedKeywords:hs}={getSuggestedKeywords:async function({name:e,entity_type:t,industry:n,location:o,lang:a,description:r}){try{const l=await Pt()({path:"/kb-design-library/v1/get_keywords",method:"POST",data:{name:e,entity_type:t?.toLowerCase(),industry:n,location:o,description:r,lang:a||"en-US",count:10}}),i=(0,At.SafeParseJSON)(l,!1);return Promise.resolve(i?.keywords)}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}},{getImageSearchQuery:bs}={getImageSearchQuery:async function({name:e,entity_type:t,industry:n,location:o,description:a}){try{const r=await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_search_query"),method:"POST",data:{name:e,entity_type:t?.toLowerCase(),industry:n,location:o,description:a}});console.log("response",r);const l=(0,At.SafeParseJSON)(r,!1);return Promise.resolve(l)}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}},fs={container:{height:"100%"},leftContent:{maxWidth:640,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{maxWidth:504,paddingRight:32,paddingLeft:32},helperText:{fontSize:12},keywordsLength:{good:"green",poor:"red"}},vs={container:{height:"100%"},leftContent:{maxWidth:940,marginInline:"auto"},rightContent:{marginRight:32,height:"100%",display:"flex",flexDirection:"column"},formWrapper:{paddingRight:32,paddingLeft:32},textareaWrapper:{position:"relative"},image:{borderRadius:"20px",background:`url(${$o}) no-repeat center center`,height:"100%",backgroundSize:"cover"}};function ys(){const{state:{customCollections:e,imageSearchQuery:t},dispatch:n}=ga(),{loading:a,verticals:r,getPreMadeCollectionByIndustry:l}=function(){const[e,t]=(0,Nt.useState)(!0),[n,a]=(0,Nt.useState)([]),[r,l]=(0,Nt.useState)([]);return(0,Nt.useEffect)((()=>{t(!0),async function(){try{let e=[];const t=await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_image_collections")}),n=(0,At.SafeParseJSON)(t,!1);n?.data?.collections&&(e=n.data.collections,a(e),sessionStorage.setItem("kadence_ai_collections",JSON.stringify(e)))}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}finally{t(!1)}}(),async function(){for(let e=0;e<3;e++)try{const e=await Pt()({path:"/kb-design-library/v1/get_verticals"}),t=(0,At.SafeParseJSON)(e,!1);if(t&&t?.data){let e=t.data.reduce(((e,t)=>[...e,...t.sub_verticals.map((e=>({label:e,value:e})))]),[]);e.sort((function(e,t){return e.label<t.label?-1:e.label>t.label?1:0})),e=e.filter((e=>"Other"!==e.value)),e.unshift({label:(0,o.__)("AI Search Collection","kadence-blocks"),value:"aiGenerated",galleries:[{name:"featured",images:[]},{name:"background",images:[]}]}),l(e),sessionStorage.setItem("kadence_ai_verticals",JSON.stringify(e));break}}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}t(!1)}()}),[]),{loading:e,verticals:r,getPreMadeCollectionByIndustry:async function(e,t=""){const o=Array.isArray(e)?e:[e];try{const a=await Pt()({path:(0,Eo.addQueryArgs)("/kb-design-library/v1/get_images",{industries:o,industry:t,image_type:"JPEG",image_sizes:kadenceExtensionImagePicker.image_sizes})}),r=(0,At.SafeParseJSON)(a,!1);return r&&r?.data?"aiGenerated"===e?[{name:"featured",images:r?.data?.images.slice(0,12)},{name:"background",images:r?.data?.images.slice(12,24)}]:r.data.map((e=>{const t=n.find((t=>t.collection_slug===e.collection_slug));return{name:e.collection_slug,images:e.images,pexelLink:t?.collection_url||""}})):[]}catch(e){const t=e?.message?e.message:e;console.log(`ERROR: ${t}`)}}}}(),[i,s]=(0,Nt.useState)(!0),[c,u]=(0,Nt.useState)();return(0,Nt.useEffect)((()=>{s(!0),function(){if(e)u(e);else{const e=[{label:(0,o.__)("My Images","kadence-blocks"),value:"my-collections",galleries:[{name:"featured",isLocal:!0,images:[]},{name:"background",isLocal:!0,images:[]}]}];u(e)}s(!1)}()}),[]),{loading:!(!i&&!a),preMadeCollections:r,wordpressCollections:c,getCollectionGalleries:async function(e){if(e&&c){if(c&&c.length>0){const t=c.find((t=>t.value===e));if(t)return t.galleries}return await l(e,t)}},updateGalleries:function(e,t){if(!e)return{};let o={};const a=c.findIndex((t=>t.value===e));if(a>-1){const e=[...c];return e[a].galleries=t,n({type:"SET_CUSTOM_COLLECTIONS",payload:e}),u(e),e[a].value}const l=r.find((t=>t.value===e)),i=c.reduce(((t,n)=>n.createdFrom===e&&n.version>t?n.version:t),0);o={label:`${l.label} (Edited${i>0?` ${i+1}`:""})`,value:`${e}_${i}_${(new Date).getTime().toString().slice(-6)}`,createdFrom:e,version:i+1,galleries:t};const s=[o,...c];return n({type:"SET_CUSTOM_COLLECTIONS",payload:s}),u(s),o.value},createCollection:function(e,t){if(!e)return{};const o={label:e,value:`${e.replace(/ /g,"")}_0_${(new Date).getTime().toString().slice(-6)}`,createdFrom:null,version:0,galleries:t},a=[o,...c];return n({type:"SET_CUSTOM_COLLECTIONS",payload:a}),u(a),o.value},updateCollectionName:function(e,t){if(!t||!e)return"";const o=c.findIndex((e=>e.value===t));if(-1===o)return"";const a=[...c];return a[o].label=e,n({type:"SET_CUSTOM_COLLECTIONS",payload:a}),u(a),a[o].value},deleteCollection:function(e){if(!e)return;const t=c.findIndex((t=>t.value===e));if(-1===t)return;const o=[...c];o.splice(t,1),n({type:"SET_CUSTOM_COLLECTIONS",payload:o}),u(o)}}}const ks={topSection:{borderBottom:"1px solid #DFDFDF",marginBottom:"40px",paddingBottom:"24px",position:"relative"},selectWrapper:{maxWidth:500},selectControl:{width:"100%",textAlign:"center"},alignCenter:{alignItems:"center"}};function Es(e){const{photographyOnly:t}=e,{state:{photoLibrary:n,imageSearchQuery:a},dispatch:r}=ga(),{preMadeCollections:i,wordpressCollections:s,getCollectionGalleries:c,updateGalleries:u,createCollection:d,updateCollectionName:p,deleteCollection:m}=ys(),[g,h]=(0,Nt.useState)([]),[b,f]=(0,Nt.useState)(!1),[v,y]=(0,Nt.useState)([{},{}]),[k,E]=(0,Nt.useState)(!1),[w,_]=(0,Nt.useState)(""),[S,C]=(0,Nt.useState)(!1),[x,I]=(0,Nt.useState)();async function O(e=null){if(b)return;f(!0);const t=await c(e||n);t&&y(t),f(!1)}function A(e){let t=e;e?.value&&(t=e.value),t!==n?(r({type:"SET_PHOTO_LIBRARY",payload:t}),r({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!0}),y([{},{}]),O(t)):(r({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!1}),O(t))}(0,Nt.useEffect)((()=>{r({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!1})}),[]),(0,Nt.useEffect)((()=>{i&&s&&(h([{label:(0,o.__)("My Collections","kadence-blocks"),options:s.map((e=>({label:e.label,value:e.value,useActions:!0})))},{label:"Premade Collections",options:i.map((e=>({label:e.label,value:e.value,useActions:!1})))}]),O())}),[i,s]),(0,Nt.useEffect)((()=>{i&&s&&O()}),[a]);const M=n&&i&&i.filter((e=>e.value===n));return(0,l.createElement)("div",{className:"stellarwp-ai-photography-library"},(0,l.createElement)(Rt.Flex,{justify:"center",style:ks.topSection},(0,l.createElement)(Rt.FlexBlock,{style:ks.selectWrapper},(0,l.createElement)(Rt.Flex,{className:"stellarwp-ai-photography-library__selection",direction:"row"},(0,l.createElement)(Di,{label:(0,o.__)("Use Images From:","kadence-blocks"),options:g||[],value:g?.length>0?function(e,t){for(const n of e){const e=n.options.find((e=>e.value===t));if(e)return e}return null}(g,n):"",onChange:e=>{A(e.value)},createRecord:function(e){A(d(e,[{name:"featured",images:[]},{name:"background",images:[]}]))},updateRecord:function(e,t){const o=p(e,t);n===o&&A(o)},deleteRecord:function(e){n===e&&A(g[1].options[0]),m(e)}})))),"aiGenerated"!==n&&(0,l.createElement)(l.Fragment,null,M&&(0,l.createElement)("div",{className:"kb-photography-explained-wrap"},(0,l.createElement)("p",null,(0,o.__)("Fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("or -","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("Kickstart your collection with the 'AI Search Collection' or create your own from scratch using the drop-down menu above.","kadence-blocks"))),!M&&(0,l.createElement)("div",{className:"kb-photography-explained-wrap"},(0,l.createElement)("p",null,(0,o.__)("Fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("or -","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("Kickstart your collection with the 'AI Search Collection' or explore our pre-made collections using the drop-down menu above.","kadence-blocks")))),"aiGenerated"===n&&(0,l.createElement)("div",{className:"kb-photography-explained-wrap ai-generated-search-edit-wrap"},(0,l.createElement)("p",{className:"ai-generated-search-edit-text"},!t&&(0,o.__)("Ta-Da! We searched the Pexels Image Library to find royalty-free images for your site.","kadence-blocks"),!t&&(0,l.createElement)("br",null),(0,o.__)("You can adjust search terms by clicking","kadence-blocks"),(0,l.createElement)(Rt.Button,{variant:"link",disabled:k,ref:I,text:(0,o.__)("Edit AI Search Query","kadence-blocks"),onClick:()=>E(!0),style:{fontSize:"14px"}}),(0,o.__)("or fine-tune your collection by selecting 'Edit Collection' below.","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("or -","kadence-blocks")),(0,l.createElement)("p",null,(0,o.__)("Explore our pre-made collections or create your own from scratch using the drop-down menu above.","kadence-blocks")),k&&(0,l.createElement)(Rt.Popover,{onClose:()=>{w&&w!==a&&r({type:"SET_IMAGE_SEARCH_QUERY",payload:w}),E(!1)},placement:"bottom",anchor:x,className:"ai-generated-search-edit-popover-settings"},(0,l.createElement)(Rt.TextareaControl,{label:(0,o.__)("Search Query","kadence-blocks"),help:(0,o.__)("Customize the image search query.","kadence-blocks"),value:S?"":""!==w?w:a,onChange:e=>{C(""===e),_(e)},onKeyDown:e=>{e.keyCode===ENTER&&(e.preventDefault(),w&&w!==a&&(r({type:"SET_IMAGE_SEARCH_QUERY",payload:w}),y([{},{}])),E(!1))}}),(0,l.createElement)(Rt.Button,{variant:"primary",text:(0,o.__)("Save","kadence-blocks"),onClick:()=>{w&&w!==a&&(r({type:"SET_IMAGE_SEARCH_QUERY",payload:w}),y([{},{}])),E(!1)}}))),(0,l.createElement)(ti,{loading:b,featured:v[0]||{},background:v[1]||{},updateCollection:function(e,t){const o=[{name:"featured",isLocal:!!v?.[0]?.isLocal,images:v?.[0]?.images},{name:"background",isLocal:!!v?.[1]?.isLocal,images:v?.[1]?.images}];o[e].images=t,o[e].isLocal=!0,function(e){let t=e;e?.value&&(t=e.value),t!==n?(r({type:"SET_PHOTO_LIBRARY",payload:t}),r({type:"SET_PHOTO_LIBRARY_CHANGED",payload:!0}),y([{},{}])):O(t)}(u(n,o))}}))}function ws(e,t){if(!e)throw new Error("useAiWizardHelper requires state");return{isForwardButtonDisabled:function(){const{currentPageIndex:n,locationType:o,locationInput:a,keywords:r,missionStatement:l}=e,i=function(){const n=Array.isArray(t)&&t[e.currentPageIndex]?.required?t[e.currentPageIndex]?.required:[],o=n.filter((t=>"string"==typeof e[t]?e[t].trim().length:Array.isArray(e[t])?e[t].length:"boolean"==typeof e[t]?!!e[t]:void 0));return n.filter((e=>!o.includes(e)))}(),s=t?.[n]?.id;switch(s){case"industry-information":return i.length>0||o!==Qo&&!a;case"about-your-site":return!(l.length>=200&&l.length<1500&&!(i.length>0));case"the-details":return!(r.length>=5&&!(i.length>0));default:return i.length>0}},isFinishButtonDisabled:function(){const{saving:t}=e;return t}}}const _s=[{id:"how-it-works",content:(0,l.createElement)((function(){return(0,l.createElement)(Rt.Flex,{style:ji.background},(0,l.createElement)(Rt.Flex,{gap:22.5},(0,l.createElement)(Rt.FlexBlock,null,(0,l.createElement)(Rt.Flex,{className:"inner",justify:"end"},(0,l.createElement)(Rt.FlexBlock,{style:ji.content,className:"stellarwp-body"},(0,l.createElement)("h1",{className:"stellarwp-h1",style:ji.headline},Hi),(0,l.createElement)("p",null,Wi),(0,l.createElement)("p",null,Vi)))),(0,l.createElement)(Rt.FlexBlock,{style:ji.imageWrapper},(0,l.createElement)("img",{src:zi,style:ji.image}))))}),null),step:"How it Works",required:[]},{id:"industry-information",content:(0,l.createElement)((function(){const[e,t]=(0,Nt.useState)(null),[n,a]=(0,Nt.useState)(""),[r,i]=(0,Nt.useState)(0),{state:s,dispatch:c}=ga(),{companyName:u,entityType:d,locationInput:p,lang:m,locationType:g,industry:h}=s;function b(e){return d&&Ko?.[d]?.[e]?Ko[d][e]:"..."}return(0,Nt.useEffect)((()=>{const e=Go.filter((e=>e.value===d));e.length&&t(e[0])}),[d]),(0,Nt.useEffect)((()=>{const e=qo.filter((e=>e.value===m));if(e.length)a(e[0]);else{const e=qo.filter((e=>"en-US"===e.value));e.length&&a(e[0])}}),[m]),(0,Nt.useEffect)((()=>{switch(g){case Yo:return void c({type:"SET_LOCATION",payload:`${Yo}: ${p}`});case Xo:c({type:"SET_LOCATION",payload:`${Xo}: ${p}`})}}),[p,g]),(0,l.createElement)(Rt.Flex,{gap:0,align:"normal",style:Ji.container},(0,l.createElement)(Rt.FlexBlock,{style:{alignSelf:"center"}},(0,l.createElement)(Rt.Flex,{justify:"center",style:Ji.leftContent},(0,l.createElement)(Rt.FlexBlock,{style:Ji.formWrapper,className:"stellarwp-body"},(0,l.createElement)(Jl,{headline:(0,l.createElement)("span",{className:"has-beta-pill"},(0,o.__)("Your Sites's Language","kadence-blocks")," ",(0,l.createElement)("span",{className:"beta-pill"},"Beta")),content:(0,o.__)("Select your preferred language for AI-generated content on your site. Note: AI content quality varies by language due to available training data; English is best supported.","kadence-blocks")},(0,l.createElement)(Rt.__experimentalVStack,{spacing:4,style:{margin:"0 auto 30px"}},(0,l.createElement)(oi,{label:"",value:n,onChange:function(e){c({type:"SET_LANG",payload:e.value})},options:qo}))),(0,l.createElement)(Jl,{headline:Yi,content:Xi},(0,l.createElement)(Rt.__experimentalVStack,{spacing:4,style:{margin:"0 auto"}},(0,l.createElement)(oi,{label:(0,o.__)("I am","kadence-blocks"),value:e,onChange:function(e){c({type:"SET_ENTITY_TYPE",payload:e.value})},options:Go}),(0,l.createElement)(ci,{label:b("label"),autoFocus:!0,placeholder:b("placeholder"),value:u,onChange:e=>{e&&e.length>75&&(e=e.substring(0,75)),c({type:"SET_COMPANY_NAME",payload:e})}}),(0,l.createElement)(Xl,{label:(0,o.__)("Where are you based?","kadence-blocks"),locations:ea,selected:g,onChange:function(e){e===Qo&&(c({type:"SET_LOCATION",payload:Qo}),c({type:"SET_LOCATION_TYPE",payload:Qo})),c({type:"SET_LOCATION_TYPE",payload:e})}}),g&&g!==Qo?(0,l.createElement)(ci,{label:"Location",placeholder:function(){if(g!==Qo){const e=ea.filter((e=>e.value===g));return e.length&&e[0]?.placeholder?e[0].placeholder:"..."}return"..."}(),value:p,onChange:e=>{e&&e.length>140&&(e=e.substring(0,140)),c({type:"SET_LOCATION_INPUT",payload:e})},help:function(){if(g!==Qo){const e=ea.filter((e=>e.value===g));return e.length&&e[0]?.help?e[0].help:""}return""}()}):null,(0,l.createElement)(zl,{label:(0,o.__)("What Industry are you in?","kadence-blocks"),placeholder:(0,o.__)("Find your industry","kadence-blocks"),detachedMediaQuery:"none",onSelect:function(e){e&&e.length>75&&(e=e.substring(0,75)),c({type:"SET_INDUSTRY",payload:e})},currentValue:h||"",initialState:{isOpen:!1,query:h||"",params:{hitsPerPage:8,highlightPreTag:"<mark>",highlightPostTag:"</mark>"}}})))))),(0,l.createElement)(Rt.FlexBlock,{display:"flex"},(0,l.createElement)(Rt.Flex,{justify:"center"},(0,l.createElement)(Rt.FlexBlock,{style:Ji.rightContent},(0,l.createElement)(si,{backgroundImage:na[r],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),doBeforeSlide:e=>i(e.nextSlide),slides:[(0,l.createElement)(Gi,null),(0,l.createElement)(Ki,null),(0,l.createElement)(qi,null),(0,l.createElement)(Zi,null)]})))))}),null),step:"Industry Information",required:["entityType","companyName","location","industry"]},{id:"about-your-site",content:(0,l.createElement)((function(){const[e,t]=(0,Nt.useState)(),[n,a]=(0,Nt.useState)(0),[r,i]=(0,Nt.useState)(0),[s,c]=(0,Nt.useState)(!1),[u,d]=(0,Nt.useState)(""),[p,m]=(0,Nt.useState)(!1),[g,h]=(0,Nt.useState)(""),{state:b,dispatch:f}=ga(),{missionStatement:v,entityType:y,lang:k,companyName:E}=b,w=(0,o.sprintf)(
// translators: %s: entity type
// translators: %s: entity type
(0,o.__)("Tell us about your %s","kadence-blocks"),cs[y]),_=qo.filter((e=>e.value===(k||"en-US"))),S=(0,o.sprintf)(
// translators: %s: language
// translators: %s: language
(0,o.__)("This should be written in %s.","kadence-blocks"),_?.[0]?.label?_[0].label:"your site language"),{getMissionStatement:C}={getMissionStatement:async function(e,t){try{const n=new URL(window.location.href),o=window?.kadence_blocks_params?.proData?.domain?window.kadence_blocks_params.proData.domain:n.hostname;let a=window?.kadence_blocks_params?.proData?.api_key?window.kadence_blocks_params.proData.api_key:"";a||(a=window?.kadenceHomeParams?.apiKey?window.kadenceHomeParams.apiKey:"");let r=window?.kadence_blocks_params?.site_name?window.kadence_blocks_params.site_name:"";r||(r=window?.kadenceHomeParams?.site_name?window.kadenceHomeParams.site_name:"");let l=window?.kadence_blocks_params?.pSlug?window.kadence_blocks_params.pSlug:"";l||(l=window?.kadenceHomeParams?.pSlug?window.kadenceHomeParams.pSlug:"");let i=window?.kadence_blocks_params?.pVersion?window.kadence_blocks_params.pVersion:"";i||(i=window?.kadenceHomeParams?.pVersion?window.kadenceHomeParams.pVersion:"");const s={domain:o,key:a,site_name:r,product_slug:l,product_version:i},c=await fetch("https://content.startertemplatecloud.com/wp-json/prophecy/v1/proxy/intake/improve-mission-statement",{method:"POST",headers:{"Content-Type":"application/json","X-Prophecy-Token":btoa(JSON.stringify(s))},body:JSON.stringify({text:e,lang:t||"en-US",stream:!0})});if(200!==c?.status){if(424===c?.status)return Promise.reject("license");const e=c?.message?c.message:c;return Promise.reject(e)}return c.body}catch(e){const t=e?.message?e.message:e;return Promise.reject(t)}}};return(0,Nt.useEffect)((()=>{const e=Math.round(v.length/300*100);0==e&&t("initial"),e<50&&e>0&&t("weak"),e>=50&&e<100&&t("medium"),e>=100&&e<200&&t("strong"),e>=200&&e<400&&t("enough"),e>=400&&e<500&&t("less"),e>=500&&t("muchLess"),a(e)}),[v]),(0,l.createElement)(Rt.Flex,{gap:0,align:"normal",style:is.container},(0,l.createElement)(Rt.FlexBlock,{style:{alignSelf:"center"}},(0,l.createElement)(Rt.Flex,{justify:"center",style:is.leftContent},(0,l.createElement)(Rt.FlexBlock,{style:is.formWrapper,className:"stellarwp-body"},(0,l.createElement)(Jl,{headline:w,content:k&&"en-US"!==k?S+" "+ss:ss},(0,l.createElement)(Rt.__experimentalView,{style:is.textareaWrapper},(0,l.createElement)(di,{hideLabelFromVision:!0,label:w,placeholder:y===Zo?(0,o.sprintf)(
// translators: %s: company or individual name
// translators: %s: company or individual name
(0,o.__)("I am %s, a…","kadence-blocks"),E):(0,o.sprintf)(
// translators: %s: company or individual name
// translators: %s: company or individual name
(0,o.__)("%s is a…","kadence-blocks"),E),value:v,onChange:e=>{f({type:"SET_MISSION_STATEMENT",payload:e}),f({type:"SET_IMAGE_SEARCH_QUERY",payload:""})},progressBarProps:{value:n>=100?100:n,color:ta?.[e]?.color?ta[e].color:"red",message:ta?.[e]?.message?ta[e].message:""},disabled:u,aiLoading:p,aiSuggestion:u,onUndo:()=>d(""),onAccept:()=>{f({type:"SET_MISSION_STATEMENT",payload:u}),d("")}}),s&&(0,l.createElement)(Rt.__experimentalVStack,{style:is.tooltip},(0,l.createElement)(Rt.__experimentalText,{style:is.tooltip.title},(0,o.__)("Thought Starters","kadence-blocks")),oa[y].length>0&&(0,l.createElement)("ul",{style:is.tooltip.content},oa[y].map((e=>(0,l.createElement)("li",{key:e},e)))))),!u&&!p&&(0,l.createElement)(l.Fragment,null,g&&(0,l.createElement)("div",{className:"stellarwp-ai-error-text"},(0,l.createElement)("div",{className:"stellarwp-ai-error-content"},"license"===g?(0,o.__)("Error, license key invalid."):(0,o.__)("Error, AI improve failed, please try again."))),(0,l.createElement)(Rt.Flex,{justify:"space-between"},(0,l.createElement)(Rt.FlexItem,null,n>=100&&n<400&&(0,l.createElement)(jl,{className:"stellarwp-ai-improve-button",icon:Wl,onClick:()=>{return e=v,m(!0),h(""),void C(e,k).then((e=>{const t=e.getReader();t.read().then((function e({done:n,value:o}){if(n)return void m(!1);const a=function(e){const t=(new TextDecoder).decode(e).split("\n"),n={content:""};return t.forEach((e=>{const t=e.indexOf(":");if(-1!==t){const o=e.slice(0,t).trim(),a=e.slice(t+1).trim();if("data"===o&&"content"!==a)try{const e=JSON.parse(a);e.content&&(n.content+=e.content)}catch(e){console.error("Error parsing JSON data:",e)}}})),n}(o);return a?.content&&d((e=>e+a.content)),t.read().then(e)})),m(!1)})).catch((e=>{h("license"===e?"license":"error"),console.log(e),m(!1)}));var e}},(0,o.__)("Improve with AI","kadence-blocks"))),(0,l.createElement)(Rt.FlexItem,null,(0,l.createElement)(jl,{size:"small",className:"stellarwp-show-tips-button",icon:s?ql:Gl,iconPosition:"right",onClick:()=>c((e=>!e))},s?(0,o.__)("Hide Tips","kadence-blocks"):(0,o.__)("Show Tips","kadence-blocks"))))))))),(0,l.createElement)(Rt.FlexBlock,{display:"flex"},(0,l.createElement)(Rt.Flex,{justify:"center"},(0,l.createElement)(Rt.FlexBlock,{style:is.rightContent},(0,l.createElement)(si,{backgroundImage:na[r],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),doBeforeSlide:e=>i(e.nextSlide),slides:[(0,l.createElement)(ns,null),(0,l.createElement)(ls,null),(0,l.createElement)(as,null),(0,l.createElement)(es,null)]})))))}),null),step:"About Your Site",required:["missionStatement"]},{id:"the-details",content:(0,l.createElement)((function(){const{state:e,dispatch:t}=ga(),{companyName:n,entityType:a,industry:r,keywords:i,location:s,missionStatement:c,suggestedKeywords:u,suggestedKeywordsState:d,tone:p,lang:m,imageSearchQuery:g}=e,[h,b]=(0,Nt.useState)(null),[f,v]=(0,Nt.useState)(null),[y,k]=(0,Nt.useState)(null),[E,w]=(0,Nt.useState)(null),[_,S]=(0,Nt.useState)(),{menuHeight:C,menuPlacement:x}=function(e,t){const[n,o]=(0,Nt.useState)(300),[a,r]=(0,Nt.useState)("auto");return(0,Nt.useEffect)((()=>{function n(){if(e&&t){const n=e.getBoundingClientRect(),a=t.getBoundingClientRect(),l=n.bottom-(a.bottom+30),i=l<150?"top":"auto";r(i),o("top"===i?300:l)}}return n(),window.addEventListener("resize",n),()=>window.removeEventListener("resize",n)}),[e,t]),{menuPlacement:a,menuHeight:n}}(y,E);function I(){t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:aa}),hs({name:n,entity_type:a,industry:r,location:s,lang:m,description:c}).then((e=>{S(e),t({type:"SET_SUGGESTED_KEYWORDS",payload:e}),t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:e?.length?ia:ra})})).catch((()=>{t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:la})}))}return(0,Nt.useEffect)((()=>{i.length>0&&i.length<5?b("poor"):i.length>=5&&b("good")}),[i]),(0,Nt.useEffect)((()=>{const e=Uo.filter((e=>e.value===p));e.length&&v(e[0])}),[p]),(0,Nt.useEffect)((()=>{I(),g||bs({name:n,entity_type:a,industry:r,location:s,description:c}).then((e=>{console.log("Image Search AI Terms"),console.log(e),e?.query&&t({type:"SET_IMAGE_SEARCH_QUERY",payload:e.query})})).catch((()=>{console.log("error")}))}),[]),(0,l.createElement)(Rt.Flex,{gap:0,align:"normal",style:fs.container,ref:k},(0,l.createElement)(Rt.FlexBlock,{style:{alignSelf:"center"}},(0,l.createElement)(Rt.Flex,{justify:"center",style:fs.leftContent},(0,l.createElement)(Rt.FlexBlock,{style:fs.formWrapper,className:"stellarwp-body"},(0,l.createElement)(Rt.__experimentalVStack,{spacing:"8",style:{margin:"0 auto"}},(0,l.createElement)(Jl,{headline:(0,o.__)("Add some keywords","kadence-blocks"),content:(0,o.__)("Keywords assist the AI in identifying the most relevant topics to write about.","kadence-blocks")},(0,l.createElement)(Kl,{id:"2",label:(0,o.__)("Keywords","kadence-blocks"),hideLabelFromVision:!0,placeholder:(0,o.__)("Add Keyword…","kadence-blocks"),tags:i,maxTags:10,selectedTags:e=>t({type:"SET_KEYWORDS",payload:e}),suggestedKeywords:u,suggestedKeywordsState:d,onSuggestedKeywordAdded:function(e){const n=u.filter((t=>t!==e));t({type:"SET_SUGGESTED_KEYWORDS",payload:n}),0===n.length&&t({type:"SET_SUGGESTED_KEYWORDS_STATE",payload:sa})},onTryAgain:I,onTagDeleted:function(e){_?.includes(e)&&t({type:"SET_SUGGESTED_KEYWORDS",payload:[...u,e]})},help:(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.Flex,{align:"flex-start",as:"span",style:fs.helperText},(0,l.createElement)(Rt.FlexBlock,{as:"span"},(0,o.__)("Separate with commas or the Enter key. Enter between 5 and 10 keywords","kadence-blocks")),(0,l.createElement)(Rt.FlexItem,{as:"span",style:{color:h&&fs.keywordsLength.hasOwnProperty(h)?fs.keywordsLength[h]:"inherit"}},`${i.length}/10`)))})),(0,l.createElement)(Jl,{headline:(0,o.__)("Choose your tone","kadence-blocks"),content:(0,o.__)("The tone allows the AI to reflect your personality in its communication style. Select a tone that closely aligns with your own.","kadence-blocks")},(0,l.createElement)(oi,{ref:w,maxMenuHeight:C,menuPlacement:x,options:Uo,value:f,onChange:e=>t({type:"SET_TONE",payload:e.value})})))))),(0,l.createElement)(Rt.FlexBlock,{display:"flex"},(0,l.createElement)(Rt.Flex,{justify:"center"},(0,l.createElement)(Rt.FlexBlock,{style:fs.rightContent},(0,l.createElement)(si,{backgroundImage:na[0],text:(0,o.__)("Not sure where to start? Here's some real life examples!","kadence-blocks"),slides:[(0,l.createElement)(ds,null),(0,l.createElement)(ps,null),(0,l.createElement)(ms,null),(0,l.createElement)(gs,null)]})))))}),null),step:"The Details",required:["keywords","tone"]},{id:"goals",content:(0,l.createElement)((function(){const{state:e,dispatch:t}=ga(),[n,a]=(0,Nt.useState)([]);return(0,Nt.useEffect)((()=>{const t=[];Object.keys(Jo).map((n=>{t.push({id:n,label:Jo[n].label,value:Jo[n].value,icon:Jo[n].icon,description:Jo[n]?.description?Jo[n].description:"",isIncluded:e.goals.includes(Jo[n].value),isPrimary:e.goals.includes(Jo[n].value)&&e.goals[0]===Jo[n].value})})),a(t)}),[]),(0,l.createElement)(Rt.Flex,{gap:0,align:"normal",style:vs.container},(0,l.createElement)(Rt.FlexBlock,{style:{alignSelf:"center",flex:"3 1 0%"}},(0,l.createElement)(Rt.Flex,{justify:"center",style:vs.leftContent},(0,l.createElement)(Rt.FlexBlock,{style:vs.formWrapper,className:"stellarwp-body"},(0,l.createElement)(Jl,{headline:(0,l.createElement)("span",{className:"has-beta-pill"},(0,o.__)("What are the goals of this site?","kadence-blocks")," ",(0,l.createElement)("span",{className:"beta-pill"},"Beta")),content:(0,o.__)("Select all that apply, it is ok to select none. This will be used to help determine content to show for your specific site. NOTE: This is in early stages and has minimal effects currently, but is improving.","kadence-blocks")},(0,l.createElement)(Rt.__experimentalView,{style:vs.textareaWrapper},(0,l.createElement)(Rt.__experimentalVStack,null,Jo.length>0&&(0,l.createElement)(Fi,{onChange:function(e){t({type:"SET_SITE_GOALS",payload:e})},items:n,selectedItems:e.goals}))))))),(0,l.createElement)(Rt.FlexBlock,{display:"flex",style:{flex:"2 1 0%"}},(0,l.createElement)(Rt.Flex,{justify:"center"},(0,l.createElement)(Rt.FlexBlock,{style:vs.rightContent},(0,l.createElement)("div",{style:vs.image})))))}),null),step:"Site Goals",required:[]},{id:"photography",content:(0,l.createElement)(Es,null),step:"Photography",required:[]}],Ss=[{id:"photography",content:(0,l.createElement)(Es,{photographyOnly:!0}),step:"Photography",required:[]}];function Cs(e){const{state:{firstTime:t}}=ga();return e?Ss:t?_s:_s.filter((e=>"how-it-works"!==e.id))}function xs(e){const{loading:t,onWizardClose:n,onPrimaryAction:a,photographyOnly:r,credits:i,isFullScreen:s}=e,{state:c,dispatch:u}=ga(),{isComplete:d,firstTime:p,isSubmitted:m,currentPageIndex:g,saving:h,saveError:b,...f}=c,{isForwardButtonDisabled:v,isFinishButtonDisabled:y}=ws(c,Cs(r)),{saveAiWizardData:k,getAiWizardData:E}=hi();async function w(){p&&ko("ai_wizard_started"),await k({firstTime:!1,isSubmitted:!0,isComplete:d,...f})&&(n("saved"),_("ai_wizard_update"))}async function _(e){const t=await E();t&&ko(e,JSON.parse(t))}return t?(0,l.createElement)(l.Fragment,null):(0,l.createElement)(bi,{isFirstTime:p,logo:(0,l.createElement)(Vl,null),pages:Cs(r),forwardButtonDisabled:v(),onPageChange:e=>u({type:"SET_CURRENT_PAGE_INDEX",payload:e}),onClose:function(e){if("blur"!==e.type&&(27!==e.keyCode||"keydown"!==e.type))return n()},onPrimaryClick:function(e){"blur"===e.type||27===e.keyCode&&"keydown"===e.type||("click"===e.type&&e.target.classList.contains("components-wizard__primary-button")&&(r?w().then((()=>{a("photography",!1),_("collection_updated")})):(async function(){await k({firstTime:!1,isSubmitted:!0,isComplete:!0,...f})&&_("ai_wizard_complete")}(),a(e,!0))),n())},primaryButtonText:r?(0,o.__)("Update My Design Library","kadence-blocks"):(0,o.__)("Generate Initial Content","kadence-blocks"),primaryButtonDisabled:y(),onSecondaryClick:r?null:function(e){"blur"===e.type||27===e.keyCode&&"keydown"===e.type||("click"===e.type&&e.target.classList.contains("components-wizard__secondary-button")&&(c.photoCollectionChanged?w().then((()=>{_("collection_updated")})):w()),n())},secondaryButtonText:(0,o.__)("Save","kadence-blocks"),credits:i,photographyOnly:r,isFullScreen:s})}function Is({photographyOnly:e=!1,onClose:t,onPrimaryAction:n,onSecondaryAction:o,credits:a="",isFullScreen:r=!1}){const[i,s]=(0,Nt.useState)(),{loading:c,getAiWizardData:u}=hi();return(0,Nt.useEffect)((()=>{!async function(){const e=(0,At.SafeParseJSON)(await u());s(e)}()}),[]),(0,l.createElement)(l.Fragment,null,i&&!c&&(0,l.createElement)(ma,{value:i},(0,l.createElement)(xs,{loading:c,onWizardClose:t,onPrimaryAction:n,onSecondaryAction:o,photographyOnly:e,credits:a,isFullScreen:r})))}const{localStorage:Os}=window,As=["Typographic","Image Heavy","Content Dense","Minimalist"],Ms=(0,Tt.withDispatch)(((e,{canUserUseUnfilteredHTML:t})=>({importContent(n,o){const{replaceBlocks:a}=e(An.store);a(o,(0,r.rawHandler)({HTML:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t}))}})))((function({importContent:e,clientId:t,reload:n=!1,onReload:r}){const i=!!window?.kadence_blocks_params?.isAIDisabled,[s,c]=(0,Nt.useState)(""),[u,d]=(0,Nt.useState)(""),[p,m]=(0,Nt.useState)(As),[g,h]=(0,Nt.useState)(null),[b,f]=(0,Nt.useState)(""),[v,y]=(0,Nt.useState)(!1),[k,E]=(0,Nt.useState)(!1),[w,_]=(0,Nt.useState)({}),[S,C]=(0,Nt.useState)(""),[x,I]=(0,Nt.useState)(""),[O,A]=(0,Nt.useState)(""),[M,P]=(0,Nt.useState)(!1),[T,N]=(0,Nt.useState)(!1),[R,L]=(0,Nt.useState)({}),[B,D]=(0,Nt.useState)({}),[F,z]=(0,Nt.useState)(ho),[j,H]=(0,Nt.useState)([]),[W,V]=(0,Nt.useState)([]),[$,U]=(0,Nt.useState)(bo),[Z,G]=(0,Nt.useState)(!1),[q,K]=(0,Nt.useState)([]),[J,Y]=(0,Nt.useState)(vo),[X,Q]=(0,Nt.useState)([]),[ee,te]=(0,Nt.useState)([]),[ne,oe]=(0,Nt.useState)(),[ae,re]=(0,Nt.useState)(!1),[le,ie]=(0,Nt.useState)(!1),[se,ce]=(0,Nt.useState)(!1),[ue,de]=(0,Nt.useState)(!1),[pe,me]=(0,Nt.useState)(!1),[ge,he]=(0,Nt.useState)({visible:!1,photographyOnly:!1}),[be,fe]=(0,Nt.useState)(!1),[ve,ye]=(0,Nt.useState)("general"),[ke,Ee]=(0,Nt.useState)(""),[we,_e]=(0,Nt.useState)(""),[Se,Ce]=(0,Nt.useState)(""),[xe,Ie]=(0,Nt.useState)(!1),[Oe,Ae]=(0,Nt.useState)(!1),[Me,Pe]=(0,Nt.useState)(!1),[Te,Ne]=(0,Nt.useState)(!1),[Re,Le]=(0,Nt.useState)(new Array(As.length).fill(!1)),[Be,De]=(0,Nt.useState)(!1),[Fe,ze]=(0,Nt.useState)(),[je,He]=(0,Nt.useState)(),[We,Ve]=(0,Nt.useState)(),[$e,Ue]=(0,Nt.useState)(),[Ze,Ge]=(0,Nt.useState)((0,Lt.applyFilters)("kadence.blocks_icon",a.kadenceNewIcon)),{updateContextState:qe,updateMassContextState:Ke,updateContext:Je,updateMassContext:Ye}=(0,Tt.useDispatch)("kadence/library"),{getContextState:Xe,isContextRunning:Qe,getContextContent:et,hasContextContent:tt}=(0,Tt.useSelect)((e=>({getContextState:t=>e("kadence/library").getContextState(t),isContextRunning:t=>e("kadence/library").isContextRunning(t),getContextContent:t=>e("kadence/library").getContextContent(t),hasContextContent:t=>e("kadence/library").hasContextContent(t)})),[]),nt=()=>{Ae((e=>!e))},ot=()=>{Pe((e=>!e))},at=()=>{De((e=>!e))},rt=e=>{const t=(0,At.SafeParseJSON)(e,!0);return!!(t&&t?.companyName&&""!==t?.companyName&&t?.location&&""!==t?.location&&t?.industry&&""!==t?.industry&&t?.missionStatement&&""!==t?.missionStatement&&t?.keywords?.length&&!(t?.keywords?.length<5)&&t?.tone&&""!==t?.tone)},lt=window?.kadence_blocks_params?.isAuthorized,it=window?.kadence_blocks_params?.homeLink?kadence_blocks_params.homeLink:"",st=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0),ct=void 0!==st?.style&&""!==st?.style?st.style:"light",ut=void 0!==st?.subTab&&""!==st?.subTab?st.subTab:"patterns",dt=void 0!==st?.kbCat&&""!==st?.kbCat?st.kbCat:"all",pt=void 0!==st?.kbPageCat&&""!==st?.kbPageCat?st.kbPageCat:"home",mt=void 0!==st?.kbPageStyles&&""!==st?.kbPageStyles?st.kbPageStyles:"all",gt=void 0!==st?.previewMode&&""!==st?.previewMode?st.previewMode:"iframe",ht=void 0!==st?.replaceImages&&""!==st?.replaceImages?st.replaceImages:"all",bt=void 0!==st?.fontSize&&""!==st?.fontSize?st.fontSize:"lg",ft=void 0!==st?.contextTab&&""!==st?.contextTab?st.contextTab:"design",vt=void 0!==st?.context&&""!==st?.context?st.context:"value-prop",yt=void 0!==st?.credits&&""!==st?.credits&&null!==st?.credits?st.credits:"fetch",kt=""!==x?x:yt,Et=s||dt,wt=u||pt,_t=p||mt,St=ne||gt,xt=ke||ct,It=we||ht,Ot=Se||bt,Mt=b||ut,Pt=O||ft,Bt=S||vt,Dt=$?.[Bt],{createErrorNotice:zt}=(0,Tt.useDispatch)(Vt.store);(0,Nt.useEffect)((()=>{H(Object.keys(F).map((function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):F[e]}})))}),[F]),(0,Nt.useEffect)((()=>{const e=Object.keys(v).map((function(e){return v[e].styles}));if(!e.length)return;const t=new Map;e.forEach((e=>{if(!e)return;const n=e[Object.keys(e)[0]];t.set(n,e)}));const n=Array.from(t.values()).map((function(e){const t=Object.keys(e)[0];return{value:t,label:e[t]}}));V(n)}),[v]),(0,Nt.useEffect)((()=>{Q(Object.keys(J).map((function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):J[e]}})));const e=[];Object.keys(J).map((function(t,n){"category"!==t&&e.push({value:"category"===t?"all":t,label:"category"===t?(0,o.__)("All","kadence-blocks"):J[t]})})),te(e)}),[J]),(0,Nt.useEffect)((()=>{K(Object.keys($).map((function(e,t){return{value:e,label:$[e]}})))}),[]),(0,Nt.useEffect)((()=>{const e=As.filter(((e,t)=>Re[t]&&e)),t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageStyles=e,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),m(e)}),[Re]);const{getAIContentData:jt,getAIContentDataReload:$t,getAIWizardData:Ut,getCollectionByIndustry:Zt,getPatterns:Gt,getPattern:qt,processPattern:Kt,getLocalAIContexts:Jt,getLocalAIContentData:Yt,getAIContentRemaining:Xt,getInitialAIContent:Qt,getAvailableCredits:en}=So();async function tn(e,t){re(!0),fe(!1),ye("general");const n=await Gt("pages"===e?"pages":"section",t);if("failed"===n)console.log("Permissions Error getting library Content"),"pages"===e?E("error"):y("error"),fe(!0),ye("reload"),re(!1);else if("error"===n)console.log("Error getting library Content."),"pages"===e?E("error"):y("error"),fe(!0),re(!1);else{const t=(0,At.SafeParseJSON)(n,!1);if(t)if("pages"===e){const e=vo;kadence_blocks_params.library_pages=t,Object.keys(t).map((function(n,o){t[n].categories&&"object"==typeof t[n].categories&&Object.keys(t[n].categories).map((function(o,a){e.hasOwnProperty(o)||(e[o]=t[n].categories[o])}))})),E(t),Y(JSON.parse(JSON.stringify(e)))}else{const e=ho;kadence_blocks_params.library_sections=t,Object.keys(t).map((function(n,o){t[n].categories&&"object"==typeof t[n].categories&&Object.keys(t[n].categories).map((function(o,a){e.hasOwnProperty(o)||(e[o]=t[n].categories[o])}))})),y(t),z(JSON.parse(JSON.stringify(e)))}else"pages"===e?E("error"):y("error"),fe(!0);re(!1)}}(0,Nt.useEffect)((()=>{n&&!ae?(r(),tn(Mt,!0)):ae||tn(Mt,!1)}),[n,Mt]);const nn=()=>{!ae&&v&&y(JSON.parse(JSON.stringify(v))),!ae&&k&&E(JSON.parse(JSON.stringify(k)))};async function on(e,t=!1){t||"loading"!==Xe(e)&&qe(e,"loading");const n=await jt(e);if("processing"===n)console.log("Is processing AI"),"processing"!==Xe(e)&&qe(e,"processing"),setTimeout((()=>{on(e,!0)}),1e3);else if("Failed"===n)console.log("Permissions Error getting AI Content."),Je(e,"failedReload"),setTimeout((()=>{nn()}),500),qe(e,!1);else if("error"===n)console.log("Error getting AI Content."),zt((0,o.__)("Error generating AI content, Please Retry"),{type:"snackbar"}),Je(e,"failed"),setTimeout((()=>{nn()}),500),qe(e,!1);else{const t=(0,At.SafeParseJSON)(n,!1);let o=[];!1!==T&&(o=T),o.includes(e)||(o.push(e),N(o)),Je(e,t),setTimeout((()=>{nn()}),500),qe(e,!0)}}async function an(e){qe(e,"processing");let t=[];!1!==T&&(t=T),t.includes(e)||(t.push(e),N(t));const n=await $t(e);console.log(n),"processing"===n?(console.log("Is processing AI"),setTimeout((()=>{on(e,!0)}),1e3),rn()):"credits"===n?(console.log("Error not enough credits to reload."),qe(e,"credits"),setTimeout((()=>{nn()}),500),rn()):(console.log("Error getting New AI Job."),qe(e,"error"),setTimeout((()=>{nn()}),500),rn())}async function rn(){const e=await en(),t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);"error"===e?(console.log("Error getting credits"),t.credits="fetch",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),I(0)):""===e?(t.credits=0,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),I(0)):(t.credits=parseInt(e),Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),I(parseInt(e)))}async function ln(n){ie(!0),async function(n){const o=await Kt(n,R);"failed"===o?(sn(n,R),console.log("Import Process Failed when processing data through rest api... Trying ajax.")):(e(o,t),ie(!1))}(n?.content?n.content:"")}(0,Nt.useEffect)((()=>{se&&(tt(Bt)?nn():T&&T.includes(Bt)?on(Bt):nn())}),[Bt,se]),(0,Nt.useEffect)((()=>{(async function(){const e=await Ut();if(e)if(rt(e)){const t=e?(0,At.SafeParseJSON)(e):{};t?.photoLibrary&&"all"===It&&me(!0),P(t),de(!1)}else{const t=e?(0,At.SafeParseJSON)(e):{};t?.photoLibrary&&t?.customCollections&&async function(e){const t=JSON.parse(JSON.stringify(e));t.photoLibrary="Other";const n=await Zt(t);(0,Ct.isEqual)(n,B)||D(n);const o=await Zt(e);(0,Ct.isEqual)(o,R)?me(!1):(me(!1),L(o),nn())}(t),console.log("User Data is not correct"),de(!0)}else de(!0)})(),lt&&"fetch"===kt&&rn()}),[xe]),(0,Nt.useEffect)((()=>{lt&&M&&!se&&async function(){const e=await Yt(),t=await Jt(),n=[];let o=!1;"empty"===e?(console.log("No Local AI Content"),ce(!0)):"failed"===e?(console.log("Failed to load Local"),ce(!0)):(o=!0,Object.keys(e).forEach((t=>{e?.[t]?.content?.length>0&&n.push(t)})),n.length>0&&(Ye(n,e),Ke(n,!0)),nn(),ce(!0)),"failed"===t?console.log("No Local Prompts"):t&&t.length>0&&o&&(t.forEach((e=>{-1===n.indexOf(e)&&on(e,!0)})),N(t))}()}),[M]),(0,Nt.useEffect)((()=>{M&&async function(){const e=JSON.parse(JSON.stringify(M));e.photoLibrary="Other";const t=await Zt(e);(0,Ct.isEqual)(t,B)||D(t);const n=await Zt(M);(0,Ct.isEqual)(n,R)?me(!1):(setTimeout((()=>{me(!1)}),300),L(n),nn())}()}),[M]);const sn=n=>{const o=new FormData;o.append("action","kadence_import_process_image_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("import_content",n),o.append("image_library",JSON.stringify(R)),jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done((function(n,o,a){n?e(n,t):(fe(!0),ye("reload")),ie(!1)})).fail((function(e){console.log(e),fe(!0),ye("reload"),ie(!1)}))},cn=[{value:"light",label:(0,o.__)("Light","kadence-blocks")},{value:"dark",label:(0,o.__)("Dark","kadence-blocks")},{value:"highlight",label:(0,o.__)("Highlight","kadence-blocks")}],un=[{value:"light",label:(0,o.__)("Light","kadence-blocks")},{value:"dark",label:(0,o.__)("Dark","kadence-blocks")}],dn=((0,o.__)("Smaller","kadence-blocks"),(0,o.__)("Normal","kadence-blocks"),{default:3,1900:3,1600:3,1200:2,500:1});return(0,l.createElement)("div",{className:"kt-prebuilt-content kb-prebuilt-has-sidebar"},(0,l.createElement)("div",{className:"kt-prebuilt-sidebar kb-section-sidebar"},(0,l.createElement)("div",{className:"kb-prebuilt-sidebar-header-wrap"},(0,l.createElement)("div",{className:"kb-prebuilt-sidebar-header kb-prebuilt-library-logo"},(0,l.createElement)("span",{className:"kb-prebuilt-header-logo"},Ze),(0,l.createElement)("div",{className:"kb-library-style-popover"},(0,l.createElement)(Rt.Button,{className:"kb-trigger-extra-settings",icon:a.aiSettings,ref:He,isPressed:Oe,disabled:Oe,onClick:nt}),Oe&&(0,l.createElement)(Rt.Popover,{className:"kb-library-extra-settings",placement:"top-end",onClose:(0,Ct.debounce)(nt,100),anchor:je},!i&&lt&&(0,l.createElement)(Rt.Button,{className:"kadence-ai-wizard-button",iconPosition:"left",icon:a.aiIcon,text:(0,o.__)("Update Kadence AI Details","kadence-blocks"),onClick:()=>{Ae(!1),rn(),he({visible:!0,photographyOnly:!1})}}),!i&&!lt&&(0,l.createElement)(Rt.Button,{className:"kadence-ai-wizard-button",iconPosition:"left",icon:a.aiIcon,text:(0,o.__)("Activate Kadence AI","kadence-blocks"),disabled:!it,target:it?"_blank":"",href:it||""}),(0,l.createElement)(Rt.Button,{icon:Ht,iconPosition:"left",className:"kadence-ai-wizard-button",text:(0,o.__)("Update Design Library Images","kadence-blocks"),disabled:"none"===It,onClick:()=>{Ae(!1),he({visible:!0,photographyOnly:!0})}}),(0,l.createElement)(Rt.Button,{iconPosition:"left",className:"kadence-ai-wizard-button",icon:a.eye,ref:Ve,isPressed:Me,disabled:Me,onClick:ot},(0,l.createElement)("span",{className:"kb-wizard-advanced-text"},(0,o.__)("Advanced","kadence-blocks"))," ",(0,l.createElement)("span",{className:"kb-carrot-open"},(0,l.createElement)(Rt.Icon,{icon:Wt}))),Me&&(0,l.createElement)(Rt.Popover,{className:"kb-library-extra-advanced-settings",placement:"right-start",onClose:(0,Ct.debounce)(ot,100),anchor:We},(0,l.createElement)(Rt.ToggleControl,{className:"kb-toggle-align-right small",label:(0,o.__)("Custom Image Selection","kadence-blocks"),checked:"none"!==It,help:(0,o.__)("If disabled you will import and preview only wireframe images.","kadence-blocks"),onChange:e=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.replaceImages=e?"all":"none",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),y(JSON.parse(JSON.stringify(v))),_e(e?"all":"none")}}),(0,l.createElement)(Rt.ToggleControl,{className:"kb-toggle-align-right small",label:(0,o.__)("Live Preview","kadence-blocks"),checked:"image"!==St,help:(0,o.__)("If disabled you will not see a live preview of how the patterns will look on your site.","kadence-blocks"),onChange:e=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.previewMode=e?"iframe":"image",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),oe(e?"iframe":"image")}}))),ge.visible&&(0,l.createElement)(Is,{onClose:()=>{he({visible:!1,photographyOnly:!1}),Ie((e=>!e))},onPrimaryAction:(e,t)=>{"photography"===e&&async function(){const e=await async function(){const e=await Ut(!0);if(!e)return de(!0),{};if(!rt(e)){const t=e?(0,At.SafeParseJSON)(e):{};return de(!0),t?.photoLibrary&&t?.customCollections?t:{}}const t=e?(0,At.SafeParseJSON)(e):{};return P(t),de(!1),t}();if(e){const t=await Zt(e);(0,Ct.isEqual)(t,R)?me(!1):(setTimeout((()=>{me(!1)}),300),L(t),nn())}else me(!1)}(),t&&async function(){re(!0);const e=await Qt(!0);if("error"===e||"failed"===e)zt((0,o.__)("Error generating AI content, Please Retry"),{type:"snackbar"}),console.log("Error getting AI Content."),re(!1);else if(e?.error&&e?.context){zt((0,o.__)("Error, Some AI Contexts could not be started, Please Retry"),{type:"snackbar"}),console.log("Error getting all new AI Content.");const t=[];e?.context.forEach((e=>{t.push(e)})),Ke(t,"processing"),e?.context.forEach(((e,t)=>{setTimeout((()=>{on(e,!0)}),1e3+50*t)})),re(!1)}else{const t=[];e.forEach((e=>{t.push(e)})),Ke(t,"processing"),e.forEach(((e,t)=>{setTimeout((()=>{on(e,!0)}),1e3+50*t)})),rn(),re(!1)}}()},photographyOnly:ge.photographyOnly,credits:kt}))),(0,l.createElement)("div",{className:"kb-library-sidebar-sub-choices"},(0,l.createElement)(Rt.Button,{className:"kb-subtab-button kb-trigger-design"+("design"===Pt?" is-pressed":""),"aria-pressed":"design"===Pt,onClick:()=>{const e=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);e.contextTab="design",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),nn(),A("design")}},(0,o.__)("By Design","kadence-blocks")),!i&&(0,l.createElement)(Rt.Button,{className:"kb-subtab-button kb-trigger-context"+("context"===Pt?" is-pressed":""),"aria-pressed":"context"===Pt,icon:a.aiIcon,iconPosition:"left",iconSize:16,text:(0,o.__)("With AI","kadence-blocks"),onClick:()=>{const e=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);e.contextTab="context",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),nn(),A("context")}})),(0,l.createElement)("div",{className:"kb-library-sidebar-context-choices"},(0,l.createElement)(Rt.Button,{className:"kb-context-tab-button kb-trigger-patterns"+("patterns"===Mt?" is-pressed":""),"aria-pressed":"patterns"===Mt,onClick:()=>{const e=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="patterns",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),f("patterns")}},(0,o.__)("Patterns","kadence-blocks")),(0,l.createElement)(Rt.Button,{className:"kb-context-tab-button kb-trigger-pages"+("pages"===Mt?" is-pressed":""),"aria-pressed":"pages"===Mt,onClick:()=>{const e=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);e.subTab="pages",Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),f("pages")}},(0,o.__)("Pages","kadence-blocks")))),(0,l.createElement)("div",{className:"kb-prebuilt-sidebar-body-wrap"},(0,l.createElement)("div",{className:"kb-library-sidebar-search"},(0,l.createElement)(Rt.SearchControl,{value:g,placeholder:(0,o.__)("Search","kadence-blocks"),onChange:e=>h(e)})),(0,l.createElement)("div",{className:"kb-library-sidebar-bottom-wrap"},(0,l.createElement)("div",{className:"kb-library-sidebar-bottom "+("context"===Pt?"kb-context-library-categories":"kb-design-library-categories")},"pages"===Mt?(0,l.createElement)(l.Fragment,null,"design"===Pt?(0,l.createElement)(l.Fragment,null,!g&&(0,l.createElement)(l.Fragment,null,X.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,className:"kb-category-button"+(wt===e.value?" is-pressed":""),"aria-pressed":wt===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageCat=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),d(e.value)}},e.label))))):(0,l.createElement)(l.Fragment,null,ee.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,className:"kb-category-button"+(wt===e.value?" is-pressed":""),"aria-pressed":wt===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.kbPageCat=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),d(e.value)}},e.label))))):(0,l.createElement)(l.Fragment,null,"design"===Pt?(0,l.createElement)(l.Fragment,null,!g&&(0,l.createElement)(l.Fragment,null,j.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,className:"kb-category-button"+(Et===e.value?" is-pressed":""),"aria-pressed":Et===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.kbCat=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),c(e.value)}},e.label))))):(0,l.createElement)(l.Fragment,null,q.map(((e,t)=>(0,l.createElement)("div",{key:`${e.value}-${t}`,className:"context-category-wrap"+(!i&&T&&T.includes(e.value)||!i&&Qe(e.value)?" has-content":"")},(0,l.createElement)(Rt.Button,{className:"kb-category-button"+(Bt===e.value?" is-pressed":""),"aria-pressed":Bt===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.context=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),C(e.value)}},Qe(e.value)?(0,l.createElement)(Rt.Spinner,null):"",e.label),!i&&Bt===e.value&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.Button,{className:"kb-reload-context-popover-toggle"+(Be?" is-pressed":""),"aria-pressed":Be,ref:ze,icon:Ft,disabled:Be,onClick:(0,Ct.debounce)(at,100)}),Be&&(0,l.createElement)(Rt.Popover,{className:"kb-library-extra-settings",placement:"top-end",onClose:(0,Ct.debounce)(at,100),anchor:Fe},(0,l.createElement)("p",null,(0,o.sprintf)(/* translators: %s is the credit amount */ /* translators: %s is the credit amount */
(0,o.__)("You can regenerate AI content for this context. This will use %s credits and your current ai text will be forever lost. Would you like to regenerate AI content for this context?","kadence-blocks"),yo?.[e.value]?yo[e.value]:"1")),(0,l.createElement)("div",{className:"kt-remaining-credits"},kt," ",(0,o.__)("Credits Remaining","kadence-blocks")),(0,l.createElement)(Rt.Button,{variant:"primary",icon:a.aiIcon,iconSize:16,disabled:Qe(e.value),iconPosition:"right",text:(0,o.sprintf)(/* translators: %s is the credit amount */ /* translators: %s is the credit amount */
(0,o.__)("Regenerate Content (%s Credits)","kadence-blocks"),yo?.[e.value]?yo[e.value]:"1"),className:"kb-reload-context-confirm",onClick:()=>{De(!1),an(Bt)}}))))))))))),"pages"!==Mt&&(0,l.createElement)("div",{className:"kb-library-sidebar-fixed-bottom kb-library-color-select-wrap"},(0,l.createElement)("h2",null,(0,o.__)("Style","kadence-blocks")),(0,l.createElement)("div",{className:"kb-library-style-options"},cn.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,label:e.label,className:"kb-style-button kb-style-"+e.value+(xt===e.value?" is-pressed":""),"aria-pressed":xt===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.style=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),Ee(e.value)}},(0,l.createElement)("span",null)))))),"pages"===Mt&&(0,l.createElement)("div",{className:"kb-library-sidebar-fixed-bottom kb-library-color-select-wrap"},(0,l.createElement)("h2",null,(0,o.__)("Style","kadence-blocks")),(0,l.createElement)("div",{className:"kb-library-style-options"},un.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,label:e.label,className:"kb-style-button kb-style-"+e.value+(xt===e.value?" is-pressed":""),"aria-pressed":xt===e.value||"highlight"===xt&&"light"===e.value,onClick:()=>{const t=(0,At.SafeParseJSON)(Os.getItem("kadenceBlocksPrebuilt"),!0);t.style=e.value,Os.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),Ee(e.value)}},(0,l.createElement)("span",null))))),null)),"pages"===Mt?(0,l.createElement)(l.Fragment,null,le||ae||!1===k||be?(0,l.createElement)(l.Fragment,null,!be&&ae&&(0,l.createElement)("div",{className:"kb-loading-library"},(0,l.createElement)(Rt.Spinner,null)),!be&&le&&(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))),be&&"general"===ve&&(0,l.createElement)("div",{className:"kb-pattern-error-wrapper"},(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")),(0,l.createElement)("div",{style:{textAlign:"center"}},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,onClick:()=>ae?null:tn(Mt,!0)},(0,o.__)(" Sync with Cloud","kadence-blocks")))),be&&"reload"===ve&&(0,l.createElement)("div",{className:"kb-pattern-error-wrapper"},(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library, please reload this page in your browser.","kadence-blocks")))):(0,l.createElement)(Do,{pages:k,filterValue:g,selectedCategory:wt,selectedStyle:xt,selectedPageStyles:_t,selectedFontSize:Ot,breakpointCols:dn,aiContent:w,aiContext:Bt,contextTab:Pt,imageCollection:R,useImageReplace:It,userData:M,onSelect:e=>ln(e),launchWizard:()=>{he({visible:!0,photographyOnly:!1})}})):(0,l.createElement)(l.Fragment,null,le||ae||!1===v||!0===pe||be?(0,l.createElement)(l.Fragment,null,!be&&ae&&(0,l.createElement)("div",{className:"kb-loading-library"},(0,l.createElement)(Rt.Spinner,null)),!be&&!ae&&pe&&(0,l.createElement)("div",{className:"kb-loading-library wait-for-images"},(0,l.createElement)(Rt.Spinner,null)),!be&&le&&(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))),be&&"general"===ve&&(0,l.createElement)("div",{className:"kb-pattern-error-wrapper"},(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")),(0,l.createElement)("div",{style:{textAlign:"center"}},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,onClick:()=>ae?null:tn(Mt,!0)},(0,o.__)(" Sync with Cloud","kadence-blocks")))),be&&"reload"===ve&&(0,l.createElement)("div",{className:"kb-pattern-error-wrapper"},(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library, please reload this page in your browser.","kadence-blocks")))):(0,l.createElement)(To,{patterns:v,filterValue:g,selectedCategory:Et,selectedStyle:xt,selectedFontSize:Ot,breakpointCols:dn,contextTab:Pt,aINeedsData:ue,aiContext:Bt,contextLabel:Dt,previewMode:gt,imageCollection:R,teamCollection:B,onSelect:e=>ln(e),contextStatesRef:Z,useImageReplace:It,userData:M,generateContext:e=>{De(!1),an(e)},launchWizard:()=>{he({visible:!0,photographyOnly:!1})},categories:j,styles:W})))})),Ps=e=>{const{canUserUseUnfilteredHTML:t}=(0,Tt.useSelect)((e=>({canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()})),[]);return(0,l.createElement)(Ms,{canUserUseUnfilteredHTML:t,...e})},Ts=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M11.6 7l-1.1-1L5 12l5.5 6 1.1-1L7 12l4.6-5zm6 0l-1.1-1-5.5 6 5.5 6 1.1-1-4.6-5 4.6-5z"})),Ns=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M6.6 6L5.4 7l4.5 5-4.5 5 1.1 1 5.5-6-5.4-6zm6 0l-1.1 1 4.5 5-4.5 5 1.1 1 5.5-6-5.5-6z"})),{localStorage:Rs}=window,Ls=(0,Tt.withDispatch)(((e,{canUserUseUnfilteredHTML:t})=>({importContent(n,o){const{replaceBlocks:a}=e(An.store);a(o,(0,r.rawHandler)({HTML:n,mode:"BLOCKS",canUserUseUnfilteredHTML:t}))}})))((function({importContent:e,clientId:t,reload:n=!1,onReload:a,tab:r,libraries:i}){const[s,c]=(0,Nt.useState)([]),[u,d]=(0,Nt.useState)(""),[p,m]=(0,Nt.useState)(),[g,h]=(0,Nt.useState)(null),[b,f]=(0,Nt.useState)(""),[v,y]=(0,Nt.useState)(!1),[k,E]=(0,Nt.useState)(!1),[w,_]=(0,Nt.useState)(""),[S,C]=(0,Nt.useState)(""),[x,I]=(0,Nt.useState)(""),[O,A]=(0,Nt.useState)(""),[M,P]=(0,Nt.useState)(!1),[T,N]=(0,Nt.useState)({}),[R,L]=(0,Nt.useState)({}),[B,D]=(0,Nt.useState)({}),[F,z]=(0,Nt.useState)([]),[j,H]=(0,Nt.useState)([]),[W,V]=(0,Nt.useState)(""),[$,U]=(0,Nt.useState)([]),[Z,G]=(0,Nt.useState)({}),[q,K]=(0,Nt.useState)([]),[J,Y]=(0,Nt.useState)([]),[X,Q]=(0,Nt.useState)(!1),[ee,te]=(0,Nt.useState)(!1),[ne,oe]=(0,Nt.useState)(!1),[ae,re]=(0,Nt.useState)("general"),le=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0),{createErrorNotice:ie}=(void 0!==le?.kbCat&&""!==le?.kbCat&&le.kbCat,void 0!==le?.kbPageCat&&""!==le?.kbPageCat&&le.kbPageCat,(0,Tt.useDispatch)(Vt.store));(0,Nt.useEffect)((()=>{z(Object.keys(B).map((function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):B[e]}})))}),[B]),(0,Nt.useEffect)((()=>{const e=Object.keys(v).map((function(e){return v[e].styles}));if(!e.length)return;const t=new Map;e.forEach((e=>{if(!e)return;const n=e[Object.keys(e)[0]];t.set(n,e)}));const n=Array.from(t.values()).map((function(e){const t=Object.keys(e)[0];return{value:t,label:e[t]}}));H(n)}),[v]);const{getPatterns:se,getPattern:ce,processPattern:ue,getPatternCategories:de}=So(),pe=()=>{!X&&v&&y(JSON.parse(JSON.stringify(v))),!X&&k&&E(JSON.parse(JSON.stringify(k)))};const me=n=>{const o=new FormData;o.append("action","kadence_import_process_image_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("import_content",n),o.append("image_library",JSON.stringify(T)),jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done((function(n,o,a){n?e(n,t):(oe(!0),re("reload")),te(!1)})).fail((function(e){console.log(e),oe(!0),re("reload"),te(!1)}))};async function ge(e){Q(!0),oe(!1),re("general");let t=[];if("section"!==r&&(t=i.filter((e=>e.slug===r))),void 0===t||0==t.length){const e=kadence_blocks_params?.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{};e&&e.connections&&(t=e.connections.filter((e=>e.slug===r)))}if(void 0!==t&&0!=t.length||"object"==typeof kadence_blocks_params?.prebuilt_libraries&&null!==kadence_blocks_params?.prebuilt_libraries&&(t=kadence_blocks_params.prebuilt_libraries.filter((e=>e.slug===r))),!t?.[0]?.url)return Q(!1),oe(!0),void re("general");const n=await se(r,e,t?.[0]?.url?t[0].url:"",t?.[0]?.key?t[0].key:"");if("failed"===n)console.log("Permissions Error getting library Content"),"pages"===b?E("error"):y("error"),oe(!0),re("reload"),Q(!1);else if("error"===n)console.log("Error getting library Content."),"pages"===b?E("error"):y("error"),oe(!0),Q(!1);else{const o=(0,At.SafeParseJSON)(n,!1);if(o){const n=await de(r,e,t?.[0]?.url?t[0].url:"",t?.[0]?.key?t[0].key:"");if(n){const e=(0,At.SafeParseJSON)(n,!1);if("pages"===b){const t=e||{};kadence_blocks_params.library_pages=o,Object.keys(o).map((function(e,n){o[e].categories&&"object"==typeof o[e].categories&&Object.keys(o[e].categories).map((function(n,a){t.hasOwnProperty(n)||(t[n]=o[e].categories[n])}))})),E(o),G(JSON.parse(JSON.stringify(t)))}else{const t=e||{},n={};kadence_blocks_params.library_sections=o,Object.keys(o).map((function(e,t){o[e].categories&&"object"==typeof o[e].categories&&Object.keys(o[e].categories).map((function(t,a){n.hasOwnProperty(t)||(n[t]=o[e].categories[t])}))})),Object.keys(t).map((function(e,o){n.hasOwnProperty(e)||delete t[e]}));const a={all:"All",...t,...n};y(o),D(JSON.parse(JSON.stringify(a)))}}else"pages"===b?E("error"):y("error"),oe(!0)}else"pages"===b?E("error"):y("error"),oe(!0);Q(!1)}}(0,Nt.useEffect)((()=>{n&&!X?(a(),ge(!0)):X||ge(!1)}),[n,r]);const he=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0),be=he&&he.sidebar?he.sidebar:"show",fe=w||be,ve=B,ye=he&&he.grid?he.grid:"normal",ke=W||ye,Ee=Object.keys(ve).map((function(e,t){return{value:"category"===e?"all":e,label:ve[e]}})),we=Object.keys(ve).map((function(e,t){return{value:"category"===e?"all":e,label:"category"===e?(0,o.__)("All","kadence-blocks"):ve[e]}})),_e=s?.[he.activeTab]?s[he.activeTab]:"all";let Se={default:5,1600:4,1200:3,500:2};return"large"===ke&&(Se={default:4,1600:3,1200:2,500:1}),"show"===fe&&(Se={default:4,1600:3,1200:2,500:1},"large"===ke&&(Se={default:3,1600:2,1200:2,500:1})),(0,l.createElement)("div",{className:"kt-prebuilt-content"+("show"===fe?" kb-prebuilt-has-sidebar":"")},"show"===fe&&(0,l.createElement)("div",{className:"kt-prebuilt-sidebar kb-cloud-library-sidebar"},(0,l.createElement)("div",{className:"kb-library-sidebar-top"},(0,l.createElement)(Rt.TextControl,{type:"text",value:g,placeholder:(0,o.__)("Search"),onChange:e=>h(e)}),(0,l.createElement)(Rt.Button,{className:"kb-trigger-sidebar",icon:Ts,onClick:()=>{const e=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0);e.sidebar="hide",Rs.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),_("hide")}})),(0,l.createElement)("div",{className:"kb-library-sidebar-bottom"},we.map(((e,t)=>(0,l.createElement)(Rt.Button,{key:`${e.value}-${t}`,className:"kb-category-button"+(_e===e.value?" is-pressed":""),"aria-pressed":_e===e.value,onClick:()=>{const t=s;t[he.activeTab]=e.value,c(t),pe()}},e.label))))),"show"!==fe&&(0,l.createElement)("div",{className:"kt-prebuilt-header kb-library-header"},(0,l.createElement)("div",{className:"kb-library-header-left"},(0,l.createElement)(Rt.Button,{className:"kb-trigger-sidebar",icon:Ns,onClick:()=>{const e=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0);e.sidebar="show",Rs.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),_("show")}}),(0,l.createElement)(Rt.SelectControl,{className:"kb-library-header-cat-select",value:_e,options:Ee,onChange:e=>{const t=s;t[he.activeTab]=e,c(t),pe()}})),(0,l.createElement)("div",{className:"kb-library-header-right"},(0,l.createElement)(Rt.Button,{icon:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},(0,l.createElement)("path",{d:"M8 15h7V8H8v7zm9-7v7h7V8h-7zm0 16h7v-7h-7v7zm-9 0h7v-7H8v7z"})),className:"kb-grid-btns kb-trigger-large-grid-size"+("large"===ke?" is-pressed":""),"aria-pressed":"large"===ke,onClick:()=>{const e=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0);e.grid="large",Rs.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),V("large")}}),(0,l.createElement)(Rt.Button,{icon:(0,l.createElement)("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32"},(0,l.createElement)("path",{d:"M8 12h4V8H8v4zm6 0h4V8h-4v4zm6-4v4h4V8h-4zM8 18h4v-4H8v4zm6 0h4v-4h-4v4zm6 0h4v-4h-4v4zM8 24h4v-4H8v4zm6 0h4v-4h-4v4zm6 0h4v-4h-4v4z"})),className:"kb-grid-btns kb-trigger-normal-grid-size"+("normal"===ke?" is-pressed":""),"aria-pressed":"normal"===ke,onClick:()=>{const e=(0,At.SafeParseJSON)(Rs.getItem("kadenceBlocksPrebuilt"),!0);e.grid="normal",Rs.setItem("kadenceBlocksPrebuilt",JSON.stringify(e)),V("normal")}}),(0,l.createElement)(Rt.TextControl,{type:"text",value:g,placeholder:(0,o.__)("Search"),onChange:e=>h(e)}))),ee||X||!1===v||ne?(0,l.createElement)(Nt.Fragment,null,!ne&&X&&(0,l.createElement)(Rt.Spinner,null),!ne&&ee&&(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))),ne&&(0,l.createElement)("div",null,(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")),(0,l.createElement)("div",{style:{textAlign:"center"}},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,onClick:()=>ge(!0)},(0,o.__)(" Sync with Cloud","kadence-blocks"))))):(0,l.createElement)("div",{className:"kb-cloud-library-outer-wrap"},(0,l.createElement)(xn,{breakpointCols:Se,className:"kb-css-masonry kb-cloud-library-wrap",columnClassName:"kb-css-masonry_column"},Object.keys(v).map((function(n,a){const i=v[n].name,s=v[n].slug,c=v[n].image,u=v[n].imageW,d=v[n].imageH,p=v[n].categories,m=v[n].keywords,h=v[n].description,b=v[n].pro,f=v[n].locked,y=`${s}_kb_cloud__item-description`;if(("all"===_e||Object.keys(p).includes(_e))&&(!g||m&&m.some((e=>e.toLowerCase().includes(g.toLowerCase())))))return(0,l.createElement)("div",{className:"kb-css-masonry-inner",key:a},(0,l.createElement)(Rt.Button,{key:n,className:"kb-css-masonry-btn","aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */
(0,o.__)("Add %s","kadence-blocks"),i),"aria-describedby":h?y:void 0,isDisabled:f,onClick:()=>f?"":async function(n){te(!0);let o=[];if(void 0===o||0==o.length){const e=kadence_blocks_params?.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{};e&&e.connections&&(o=e.connections.filter((e=>e.slug===r)))}if(void 0!==o&&0!=o.length||"object"==typeof kadence_blocks_params?.prebuilt_libraries&&null!==kadence_blocks_params?.prebuilt_libraries&&(o=kadence_blocks_params.prebuilt_libraries.filter((e=>e.slug===r))),o?.[0]?.url&&n?.id){const e=await ce(r,"pattern",n?.id?n.id:"","light",o?.[0]?.url?o[0].url:"",o?.[0]?.key?o[0].key:"");if(e)try{const t=JSON.parse(e);t&&(n.content=t)}catch(e){}}n?.content&&async function(n){const o=await ue(n.content,T,n?.forms?n.forms:[]);"failed"===o?(me(blockCode,T),console.log("Import Process Failed when processing data through rest api... Trying ajax.")):(e(o,t),te(!1))}(n)}(v[n])},(0,l.createElement)("div",{className:"kb-css-masonry-btn-inner",style:{paddingBottom:u&&d?(k=d/u*100,Number(Math.round(Number(k+"e2"))+"e"+-2)+"%"):void 0}},(0,l.createElement)("img",{src:c,loading:"lazy",alt:i}),(0,l.createElement)("span",{className:"kb-import-btn-title",dangerouslySetInnerHTML:{__html:i}}))),!!h&&(0,l.createElement)(Rt.VisuallyHidden,{id:y},h),void 0!==b&&b&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)("span",{className:"kb-pro-template"},(0,o.__)("Pro","kadence-blocks")),f&&(0,l.createElement)("div",{className:"kb-popover-pro-notice"},(0,l.createElement)("h2",null,(0,o.__)("Pro required for this item","kadence-blocks")," "))));var k})))))})),Bs=e=>{const{canUserUseUnfilteredHTML:t}=(0,Tt.useSelect)((e=>({canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()})),[]);return(0,l.createElement)(Ls,{canUserUseUnfilteredHTML:t,...e})};var Ds=Object.defineProperty,Fs=(e,t,n)=>(((e,t,n)=>{t in e?Ds(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n})(e,"symbol"!=typeof t?t+"":t,n),n);const zs=(e,t)=>typeof getComputedStyle<"u"?getComputedStyle(e,null).getPropertyValue(t):e.style.getPropertyValue(t),js=e=>zs(e,"overflow")+zs(e,"overflow-y")+zs(e,"overflow-x");class Hs extends l.Component{constructor(e){super(e),Fs(this,"elementObserver"),Fs(this,"wrapper"),Fs(this,"lazyLoadHandler",(e=>{var t,n;const{onContentVisible:o}=this.props,[a]=e,{isIntersecting:r}=a;if(r){this.setState({visible:!0},(()=>{o&&o()}));const e=null==(t=this.wrapper)?void 0:t.current;e&&e instanceof HTMLElement&&(null==(n=this.elementObserver)||n.unobserve(e))}})),this.elementObserver=null,this.wrapper=l.createRef(),this.state={visible:!1}}componentDidMount(){var e;this.getEventNode();const{offset:t,threshold:n}=this.props,o={rootMargin:"number"==typeof t?`${t}px`:t||"0px",threshold:n||0};this.elementObserver=new IntersectionObserver(this.lazyLoadHandler,o);const a=null==(e=this.wrapper)?void 0:e.current;a instanceof HTMLElement&&this.elementObserver.observe(a)}shouldComponentUpdate(e,t){return t.visible}componentWillUnmount(){var e,t;const n=null==(e=this.wrapper)?void 0:e.current;n&&n instanceof HTMLElement&&(null==(t=this.elementObserver)||t.unobserve(n))}getEventNode(){var e;return(e=>{if(!(e instanceof HTMLElement))return window;let t=e;for(;t&&t!==document.body&&t!==document.documentElement&&t.parentNode;){if(/(scroll|auto)/.test(js(t)))return t;t=t.parentNode}return window})(null==(e=this.wrapper)?void 0:e.current)}render(){const{children:e,className:t,height:n,width:o,elementType:a}=this.props,{visible:r}=this.state,i={height:n,width:o},s=`LazyLoad${r?" is-visible":""}${t?` ${t}`:""}`;return(0,l.createElement)(a||"div",{className:s,style:i,ref:this.wrapper},r&&l.Children.only(e))}}Fs(Hs,"defaultProps",{elementType:"div",className:"",offset:0,threshold:0,width:null,onContentVisible:null,height:null});class Ws extends Nt.Component{constructor(){super(...arguments),this.loadTemplateData=this.loadTemplateData.bind(this),this.onInsertContent=this.onInsertContent.bind(this),this.importProcess=this.importProcess.bind(this),this.reloadTemplateData=this.reloadTemplateData.bind(this),this.state={category:"all",starting:!0,search:null,items:!!kadence_blocks_params.library_templates&&(0,At.SafeParseJSON)(kadence_blocks_params.library_templates,!1),errorItems:!1,isImporting:!1,isLoading:!1,sidebar:!1,categories:{category:(0,o.__)("Category","kadence-blocks"),pro:(0,o.__)("Pro","kadence-blocks"),feature:(0,o.__)("Feature","kadence-blocks"),hero:(0,o.__)("Hero","kadence-blocks"),"call-to-action":(0,o.__)("Call To Action","kadence-blocks"),staff:(0,o.__)("Staff","kadence-blocks"),testimonials:(0,o.__)("Testimonials","kadence-blocks")}},this.debouncedReloadTemplateData=(0,Ct.debounce)(this.reloadTemplateData.bind(this),200)}onInsertContent(e){this.importProcess(e)}importProcess(e){this.setState({isImporting:!0});const t=new FormData;t.append("action","kadence_import_process_data"),t.append("security",kadence_blocks_params.ajax_nonce),t.append("import_content",e);const n=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:t,contentType:!1,processData:!1}).done((function(e,t,o){e&&(n.props.import(e),n.setState({isImporting:!1}))})).fail((function(e){console.log(e),n.setState({isImporting:!1})}))}reloadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params.proData&&kadence_blocks_params.proData.product_id?kadence_blocks_params.proData.product_id:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_reload_prebuilt_templates_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("product_id",n),o.append("package","templates");const a=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done((function(e,t,n){if(e){const t=(0,At.SafeParseJSON)(e,!1);if(t){const e=(0,Lt.applyFilters)("kadence.prebuilt_templates_object",t);kadence_blocks_params.library_templates=e,a.setState({items:e,errorItems:!1,isLoading:!1})}else a.setState({items:"error",errorItems:!0,isLoading:!1})}})).fail((function(e){console.log(e),a.setState({items:"error",errorItems:!0,isLoading:!1})}))}loadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";const n=kadence_blocks_params.proData&&kadence_blocks_params.proData.product_id?kadence_blocks_params.proData.product_id:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const o=new FormData;o.append("action","kadence_import_get_prebuilt_templates_data"),o.append("security",kadence_blocks_params.ajax_nonce),o.append("api_key",e),o.append("api_email",t),o.append("product_id",n),o.append("package","templates");const a=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:o,contentType:!1,processData:!1}).done((function(e,t,n){if(e){const t=(0,At.SafeParseJSON)(e,!1);if(t){const e=(0,Lt.applyFilters)("kadence.prebuilt_templates_object",t);kadence_blocks_params.library_templates=e,a.setState({items:e,errorItems:!1,isLoading:!1})}else a.setState({items:"error",errorItems:!0,isLoading:!1})}})).fail((function(e){console.log(e),a.setState({items:"error",errorItems:!0,isLoading:!1})}))}render(){this.props.reload&&(this.props.onReload(),this.debouncedReloadTemplateData());const e=this,t=this.state.items;return(0,l.createElement)("div",{className:"kt-prebuilt-content"+(this.state.sidebar?" kb-prebuilt-has-sidebar":"")},this.state.isImporting||this.state.isLoading||!1===t||this.state.errorItems?(0,l.createElement)(Nt.Fragment,null,!this.state.errorItems&&this.state.isLoading&&(0,l.createElement)(Rt.Spinner,null),!this.state.errorItems&&this.state.isImporting&&(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))),this.state.errorItems&&(0,l.createElement)("div",null,(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")),(0,l.createElement)("div",{style:{textAlign:"center"}},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,onClick:()=>this.reloadTemplateData()},(0,o.__)(" Sync with Cloud","kadence-blocks")))),!1===t&&(0,l.createElement)(Nt.Fragment,null,this.loadTemplateData())):(0,l.createElement)("div",{className:"kb-prebuilt-grid kb-prebuilt-templates-grid"},Object.keys(this.state.items).map((function(n,a){const r=t[n].name,i=t[n].slug,s=t[n].image,c=t[n].categories,u=t[n].keywords,d=t[n].pro,p=t[n].url,m=t[n].pages;if(("all"===e.state.category||Object.keys(c).includes(e.state.category))&&(!e.state.search||u&&u.some((t=>t.toLowerCase().includes(e.state.search.toLowerCase())))))return(0,l.createElement)("div",{className:"kt-prebuilt-item"},(0,l.createElement)(Rt.Button,{key:n,className:"kt-import-btn",isSmall:!0,"aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */
(0,o.__)("Add %s","kadence-blocks"),r),onClick:()=>{e.props.onSelectTemplate({name:r,slug:i,url:p})}},(0,l.createElement)("div",{className:"kt-import-btn-inner",style:{paddingBottom:"126%"}},(0,l.createElement)(Hs,{offsetBottom:200},(0,l.createElement)("img",{src:m&&m.home&&m.home.crop_thumbnail?m.home.crop_thumbnail:s,alt:r})),(0,l.createElement)("div",{className:"demo-title"},(0,l.createElement)("h4",{dangerouslySetInnerHTML:{__html:r}})))),void 0!==d&&d&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)("span",{className:"kb-pro-template"},(0,o.__)("Pro","kadence-blocks"))))}))))}}const Vs=Ws,$s=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M20 11.2H6.8l3.7-3.7-1-1L3.9 12l5.6 5.5 1-1-3.7-3.7H20z"}));class Us extends Nt.Component{constructor(){super(...arguments),this.loadTemplateData=this.loadTemplateData.bind(this),this.onInsertContent=this.onInsertContent.bind(this),this.importProcess=this.importProcess.bind(this),this.reloadTemplateData=this.reloadTemplateData.bind(this),this.state={items:!1,errorItems:!1,isImporting:!1,isLoading:!1,sidebar:!1},this.debouncedReloadTemplateData=(0,Ct.debounce)(this.reloadTemplateData.bind(this),200)}onInsertContent(e){this.importProcess(e)}importProcess(e){this.setState({isImporting:!0});const t=new FormData;t.append("action","kadence_import_process_data"),t.append("security",kadence_blocks_params.ajax_nonce),t.append("import_content",e);const n=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:t,contentType:!1,processData:!1}).done((function(e,t,o){e&&(n.props.import(e),n.setState({isImporting:!1}))})).fail((function(e){console.log(e),n.setState({isImporting:!1})}))}reloadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const n=new FormData;n.append("action","kadence_import_reload_prebuilt_data"),n.append("security",kadence_blocks_params.ajax_nonce),n.append("api_key",e),n.append("api_email",t),n.append("package",this.props.selectedSlug),n.append("url",this.props.selectedURL),n.append("is_template","is_template"),n.append("key","kadence-blocks");const o=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:n,contentType:!1,processData:!1}).done((function(e,t,n){if(e){const t=(0,At.SafeParseJSON)(e,!1);t?o.setState({items:t,errorItems:!1,isLoading:!1}):o.setState({items:"error",errorItems:!0,isLoading:!1})}})).fail((function(e){console.log(e),o.setState({items:"error",errorItems:!0,isLoading:!1})}))}loadTemplateData(){this.setState({errorItems:!1,isLoading:!0,items:"loading"});let e=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_key?kadence_blocks_params.proData.api_key:"",t=kadence_blocks_params.proData&&kadence_blocks_params.proData.api_email?kadence_blocks_params.proData.api_email:"";e||(e=kadence_blocks_params.proData&&kadence_blocks_params.proData.ithemes_key?kadence_blocks_params.proData.ithemes_key:"",e&&(t="iThemes"));const n=new FormData;n.append("action","kadence_import_get_prebuilt_data"),n.append("security",kadence_blocks_params.ajax_nonce),n.append("api_key",e),n.append("api_email",t),n.append("package",this.props.selectedSlug),n.append("url",this.props.selectedURL),n.append("is_template","is_template"),n.append("key","kadence-blocks");const o=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:n,contentType:!1,processData:!1}).done((function(e,t,n){if(e){const t=(0,At.SafeParseJSON)(e,!1);t?o.setState({items:t,errorItems:!1,isLoading:!1}):o.setState({items:"error",errorItems:!0,isLoading:!1})}})).fail((function(e){console.log(e),o.setState({items:"error",errorItems:!0,isLoading:!1})}))}render(){this.props.reload&&(this.props.onReload(),this.debouncedReloadTemplateData());const e=this,t=this.state.items;return(0,l.createElement)("div",{className:"kt-prebuilt-content"+(this.state.sidebar?" kb-prebuilt-has-sidebar":"")},(0,l.createElement)("div",{className:"kt-prebuilt-header kb-library-header"},(0,l.createElement)("div",{className:"kb-library-header-left"},(0,l.createElement)(Rt.Button,{className:"kb-back-starter-templates",icon:$s,onClick:()=>this.props.onBack()},(0,o.__)("Back to Starter Packs","kadence-blocks")))),this.state.isImporting||this.state.isLoading||!1===t||this.state.errorItems?(0,l.createElement)(Nt.Fragment,null,!this.state.errorItems&&this.state.isLoading&&(0,l.createElement)(Rt.Spinner,null),!this.state.errorItems&&this.state.isImporting&&(0,l.createElement)("div",{className:"preparing-importing-images"},(0,l.createElement)(Rt.Spinner,null),(0,l.createElement)("h2",null,(0,o.__)("Preparing Content…","kadence-blocks"))),this.state.errorItems&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)("h2",{style:{textAlign:"center"}},(0,o.__)("Error, Unable to access library database, please try re-syncing","kadence-blocks")),(0,l.createElement)("div",{style:{textAlign:"center"}},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,onClick:()=>this.reloadTemplateData()},(0,o.__)(" Sync with Cloud","kadence-blocks")))),!1===t&&(0,l.createElement)(Nt.Fragment,null,this.loadTemplateData())):(0,l.createElement)("div",{className:"kb-prebuilt-grid kb-prebuilt-templates-grid kb-prebuilt-single-templates"},Object.keys(this.state.items).map((function(n,a){const r=t[n].name,i=t[n].content,s=t[n].image,c=t[n].pro,u=t[n].locked;return(0,l.createElement)("div",{className:"kt-prebuilt-item"},(0,l.createElement)(Rt.Button,{key:n,className:"kt-import-btn",isSmall:!0,"aria-label":(0,o.sprintf)(/* translators: %s is Prebuilt Name */ /* translators: %s is Prebuilt Name */
(0,o.__)("Add %s","kadence-blocks"),r),isDisabled:void 0!==c&&c&&"true"!==kadence_blocks_params.pro,onClick:()=>u?"":e.onInsertContent(i)},(0,l.createElement)("div",{className:"kt-import-btn-inner kb-scroll-over-image",style:{paddingBottom:"450px"}},(0,l.createElement)(Hs,null,(0,l.createElement)("img",{src:s,alt:r})),(0,l.createElement)("div",{className:"demo-title"},(0,l.createElement)("h4",{dangerouslySetInnerHTML:{__html:r}})))),void 0!==c&&c&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)("span",{className:"kb-pro-template"},(0,o.__)("Pro","kadence-blocks")),u&&(0,l.createElement)("div",{className:"kt-popover-pro-notice"},(0,l.createElement)("h2",null,(0,o.__)("Kadence Blocks Pro required for this item")," "),(0,l.createElement)(Rt.ExternalLink,{href:"https://www.kadencewp.com/kadence-blocks/pro/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=design-library"},(0,o.__)("Upgrade to Pro","kadence-blocks")))))}))))}}const Zs=(0,jt.compose)((0,Tt.withSelect)(((e,{clientId:t})=>{const{getBlock:n}=e("core/block-editor");return{block:n(t),canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}})),(0,Tt.withDispatch)(((e,{block:t,canUserUseUnfilteredHTML:n})=>({import:o=>e("core/block-editor").replaceBlocks(t.clientId,(0,r.rawHandler)({HTML:o,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))}))))(Us);class Gs extends Nt.Component{constructor(){super(...arguments),this.state={view:"templates",selectedSlug:null,selectedURL:null,selectedName:null}}render(){return(0,l.createElement)(Nt.Fragment,null,"templates"===this.state.view&&(0,l.createElement)(Vs,{clientId:this.props.clientId,reload:this.props.reload,onSelectTemplate:({name:e,slug:t,url:n})=>{this.setState({selectedSlug:t,selectedName:e,selectedURL:n,view:"single"})},onReload:()=>this.props.onReload()}),"single"===this.state.view&&(0,l.createElement)(Zs,{clientId:this.props.clientId,selectedSlug:this.state.selectedSlug,selectedName:this.state.selectedName,selectedURL:this.state.selectedURL,reload:this.props.reload,onReload:()=>this.props.onReload(),onBack:()=>this.setState({selectedSlug:null,selectedName:null,selectedURL:null,view:"templates"})}))}}const qs=Gs,Ks=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M20 5h-5.7c0-1.3-1-2.3-2.3-2.3S9.7 3.7 9.7 5H4v2h1.5v.3l1.7 11.1c.1 1 1 1.7 2 1.7h5.7c1 0 1.8-.7 2-1.7l1.7-11.1V7H20V5zm-3.2 2l-1.7 11.1c0 .1-.1.2-.3.2H9.1c-.1 0-.3-.1-.3-.2L7.2 7h9.6z"}));class Js extends Nt.Component{constructor(){super(...arguments),this.saveSettings=this.saveSettings.bind(this),this.addConnection=this.addConnection.bind(this),this.state={isLoading:!0,errorConnecting:!1,cloudSettings:{},newKey:"",newURl:""}}componentDidMount(){Pt()({path:"/wp/v2/settings"}).then((e=>{this.setState({isLoading:!1,cloudSettings:(0,At.SafeParseJSON)(e.kadence_blocks_cloud)})}))}saveSettings(e){kadence_blocks_params.cloud_settings=JSON.stringify(e),this.setState({isSaving:!0}),Pt()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_cloud:JSON.stringify(e)}}).then((t=>{this.setState({isSaving:!1,errorConnecting:!1,isLoading:!1,newUrl:"",newKey:"",cloudSettings:e}),this.props.onReload()}))}addConnection(){this.setState({isLoading:!0});const e=new FormData;e.append("action","kadence_import_get_new_connection_data"),e.append("security",kadence_blocks_params.ajax_nonce),e.append("url",this.state.newUrl?this.state.newUrl:""),e.append("key",this.state.newKey?this.state.newKey:"");const t=this;jQuery.ajax({method:"POST",url:kadence_blocks_params.ajax_url,data:e,contentType:!1,processData:!1}).done((function(e,n,o){if(e){const n=(0,At.SafeParseJSON)(e,!1);if(n){const e=t.state.cloudSettings;e.connections||(e.connections=[]);const o={};o.slug=n.slug,o.title=n.name,o.url=t.state.newUrl,o.key=t.state.newKey,o.expires=n.expires,o.refresh=n.refresh,e.connections.push(o),t.saveSettings(e)}else t.setState({errorConnecting:!0,errorNotice:e,isLoading:!1})}})).fail((function(e){console.log(e),t.setState({errorConnecting:!0,isLoading:!1})}))}render(){return(0,l.createElement)("div",{className:"kb-new-connection-content"},this.state.isLoading?(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.Spinner,null)):(0,l.createElement)(Nt.Fragment,null,this.state.errorConnecting&&(0,l.createElement)("div",{className:"error"},this.state.errorNotice),this.state.cloudSettings.connections&&this.state.cloudSettings.connections[0]&&(0,l.createElement)(Nt.Fragment,null,this.state.cloudSettings.connections.map(((e,t)=>(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)("div",{className:"kb-connection-title"},e.title,(0,l.createElement)(Rt.Button,{key:`connection-${t}`,className:"kb-connection-remove-button",icon:Ks,"aria-label":(0,o.__)("Remove Connection","kadence-blocks"),onClick:()=>{const e=this.state.cloudSettings;e.connections.splice(t,1),this.setState({cloudSettings:e}),this.saveSettings(e)}})))))),(0,l.createElement)("div",{className:"kb-connection-add-new"},(0,l.createElement)(Rt.TextControl,{label:(0,o.__)("Connection URL","kadence-blocks"),type:"text",value:this.state.newUrl,onChange:e=>this.setState({newUrl:e})}),(0,l.createElement)(Rt.TextControl,{label:(0,o.__)("Connection Access Key","kadence-blocks"),type:"text",value:this.state.newKey,onChange:e=>this.setState({newKey:e})}),(0,l.createElement)(Rt.Button,{className:"kb-connection-add-button",isPrimary:!0,onClick:()=>{this.addConnection()}},(0,o.__)("Add Connection","kadence-blocks"))),(0,l.createElement)("div",{className:"kb-connection-info"},(0,o.__)("Learn about connecting libraries at:","kadence-blocks")+" ",(0,l.createElement)(Rt.ExternalLink,{href:"https://www.kadencewp.com/kadence-cloud/?utm_source=in-app&utm_medium=kadence-blocks&utm_campaign=design-library"},(0,o.__)("Kadence Pattern Hub","kadence-blocks")))))}}const Ys=(0,jt.compose)((0,Tt.withSelect)(((e,{clientId:t})=>{const{getBlock:n}=e("core/block-editor");return{block:n(t),canUserUseUnfilteredHTML:!!e("core/editor")&&e("core/editor").canUserUseUnfilteredHTML()}})),(0,Tt.withDispatch)(((e,{block:t,canUserUseUnfilteredHTML:n})=>({import:o=>e("core/block-editor").replaceBlocks(t.clientId,(0,r.rawHandler)({HTML:o,mode:"BLOCKS",canUserUseUnfilteredHTML:n}))}))))(Js),Xs={contextStates:{"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,history:!1,mission:!1,profile:!1,team:!1,work:!1,faq:!1,welcome:!1,news:!1,blog:!1,"contact-form":!1,"subscribe-form":!1,careers:!1,donate:!1,events:!1,partners:!1,industries:!1,volunteer:!1,support:!1},context:{"value-prop":!1,"products-services":!1,about:!1,achievements:!1,"call-to-action":!1,testimonials:!1,"get-started":!1,"pricing-table":!1,location:!1,history:!1,mission:!1,profile:!1,team:!1,work:!1,faq:!1,welcome:!1,news:!1,blog:!1,"contact-form":!1,"subscribe-form":!1,careers:!1,donate:!1,events:!1,partners:!1,industries:!1,volunteer:!1,support:!1}},Qs=(0,Tt.createReduxStore)("kadence/library",{reducer(e=Xs,t){switch(t.type){case"UPDATE_CONTEXT_STATE":const n=e.contextStates;return n[t.context]=t.contextState,{...e,contextStates:n};case"UPDATE_MASS_CONTEXT_STATE":const o=e.contextStates;return t.contexts.forEach((e=>{o[e]=t.contextState})),{...e,contextStates:o};case"UPDATE_CONTEXT":const a=e.context;return a[t.slug]=t.context,{...e,context:a};case"UPDATE_MASS_CONTEXT":const r=e.context;return t.slugs.forEach((e=>{r[e]=t.contexts[e]})),{...e,context:r};default:return e}},actions:{updateContextState:(e,t)=>({type:"UPDATE_CONTEXT_STATE",context:e,contextState:t}),updateMassContextState:(e,t)=>({type:"UPDATE_MASS_CONTEXT_STATE",contexts:e,contextState:t}),updateContext:(e,t)=>({type:"UPDATE_CONTEXT",slug:e,context:t}),updateMassContext:(e,t)=>({type:"UPDATE_MASS_CONTEXT",slugs:e,contexts:t})},controls:{},selectors:{getContextStates(e){const{contextStates:t}=e;return t},getContextState(e,t){const{contextStates:n}=e;return n?.[t]},isContextEmpty(e,t){const{contextStates:n}=e;let o=!0;return n?.[t]&&!1===n?.[t]&&(o=!0),o},isContextRunning(e,t){const{contextStates:n}=e;return"processing"===n?.[t]||"loading"===n?.[t]},getContextContent(e,t){const{context:n}=e;return n?.[t]},hasContextContent(e,t){const{context:n}=e;return!!n?.[t]},getAllContext(e){const{context:t}=e;return t},hasAllPageContext(e){const{context:t}=e;let n=!0;for(const e in fo)if(!t?.[e]?.content?.length){n=!1;break}return n}}});(0,Tt.register)(Qs);const{localStorage:ec}=window,tc=[{slug:"templates",title:(0,o.__)("Starter Packs","kadence-blocks"),key:"kb-templates-tab"},{slug:"section",title:(0,o.__)("Kadence","kadence-blocks"),key:"kb-sections-tab"},{slug:"cloud",title:"",key:"kb-cloud-tab"}],nc=[{slug:"templates",title:(0,o.__)("Starter Packs","kadence-blocks"),key:"kb-templates-tab"},{slug:"section",title:(0,o.__)("Kadence","kadence-blocks"),key:"kb-sections-tab"}];class oc extends Nt.Component{constructor(){super(...arguments),this.saveSettings=this.saveSettings.bind(this),this.reloadAllActions=this.reloadAllActions.bind(this),this.state={reload:!1,reloadActions:!1,isSaving:!1,isFetching:!1,modalOpen:!1,onlyModal:!1,section:null,cloudSettings:kadence_blocks_params.cloud_settings?JSON.parse(kadence_blocks_params.cloud_settings):{},actions:kadence_blocks_params.cloud_enabled?tc:nc,user:kadence_blocks_params.userrole?kadence_blocks_params.userrole:"admin",librarySettings:{}}}componentDidMount(){this.props.open&&this.props.onlyModal&&this.setState({modalOpen:!0,onlyModal:!0}),"object"==typeof kadence_blocks_params.prebuilt_libraries&&null!==kadence_blocks_params.prebuilt_libraries?this.setState({actions:(0,Lt.applyFilters)("kadence.prebuilt_library_tabs",kadence_blocks_params.prebuilt_libraries.concat(this.state.actions))}):this.setState({actions:(0,Lt.applyFilters)("kadence.prebuilt_library_tabs",this.state.actions)});const e=kadence_blocks_params.configuration?(0,At.SafeParseJSON)(kadence_blocks_params.configuration,!0):{};void 0!==e["kadence/designlibrary"]&&"object"==typeof e["kadence/designlibrary"]&&this.setState({librarySettings:e["kadence/designlibrary"]})}reloadAllActions(){this.setState({isFetching:!0}),Pt()({path:"/wp/v2/settings"}).then((e=>{this.setState({reloadActions:!1,isFetching:!1,cloudSettings:JSON.parse(e.kadence_blocks_cloud)})}))}saveSettings(e){kadence_blocks_params.cloud_settings=JSON.stringify(e),this.setState({isSaving:!0}),Pt()({path:"/wp/v2/settings",method:"POST",data:{kadence_blocks_cloud:JSON.stringify(e)}}).then((e=>{this.setState({isSaving:!1})}))}render(){const e=this.state.cloudSettings,t=(0,At.SafeParseJSON)(ec.getItem("kadenceBlocksPrebuilt"),!0),n=t&&t.activeTab?t.activeTab:"section",a=this.state.section?this.state.section:n;let r=this.state.actions;return e&&e.connections&&(r=e.connections.concat(r)),this.state.reloadActions&&!this.state.isFetching&&this.reloadAllActions(),(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.Button,{className:"kt-prebuilt",onClick:()=>this.setState({modalOpen:!0})},(0,o.__)("Design Library","kadence-blocks")),this.state.modalOpen?(0,l.createElement)(Rt.Modal,{className:"kt-prebuilt-modal kb-prebuilt-library-modal",title:(0,o.__)("Design Library","kadence-blocks"),onRequestClose:e=>{e?.type&&"blur"===e.type||(this.setState({modalOpen:!1}),this.state.onlyModal&&this.props.removeBlock(this.props.clientId))}},(0,l.createElement)("div",{className:"kb-prebuilt-section"},(0,l.createElement)("div",{className:"kb-prebuilt-header kb-prebuilt-library-header"},this.state.reloadActions&&(0,l.createElement)("div",{className:"kb-prebuilt-library-actions"},(0,l.createElement)(Rt.Spinner,null)),!this.state.reloadActions&&(0,l.createElement)("div",{className:"kb-prebuilt-library-actions"},r.map(((e,t)=>(0,l.createElement)(l.Fragment,null,"templates"!==e.slug&&(0,At.showSettings)(e.slug,"kadence/designlibrary")&&(0,l.createElement)(Rt.Button,{key:`${e.slug}-${t}`,className:"kb-action-button"+(a===e.slug?" is-pressed":""),"aria-pressed":a===e.slug,icon:"cloud"===e.slug?Dt:void 0,label:"cloud"===e.slug?(0,o.__)("Cloud Connect","kadence-blocks"):void 0,onClick:()=>{const t=(0,At.SafeParseJSON)(ec.getItem("kadenceBlocksPrebuilt"),!0);t.activeTab=e.slug,ec.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),this.setState({section:e.slug})}},"cloud"===e.slug?void 0:(0,l.createElement)("span",null," ",e.title," ")),"templates"===e.slug&&(0,At.showSettings)(e.slug,"kadence/designlibrary",!1)&&(0,l.createElement)(Rt.Button,{key:`${e.slug}-${t}`,className:"kb-action-button"+(a===e.slug?" is-pressed":""),"aria-pressed":a===e.slug,icon:"cloud"===e.slug?Dt:void 0,label:"cloud"===e.slug?(0,o.__)("Cloud Connect","kadence-blocks"):void 0,onClick:()=>{const t=(0,At.SafeParseJSON)(ec.getItem("kadenceBlocksPrebuilt"),!0);t.activeTab=e.slug,ec.setItem("kadenceBlocksPrebuilt",JSON.stringify(t)),this.setState({section:e.slug})}},"cloud"===e.slug?void 0:(0,l.createElement)("span",null," ",e.title," ")))))),"cloud"!==a&&(0,l.createElement)("div",{className:"kb-prebuilt-library-reload"},(0,l.createElement)(Rt.Button,{className:"kt-reload-templates",icon:Ft,label:(0,o.__)("Sync with Cloud","kadence-blocks"),onClick:()=>this.setState({reload:!0})})),(0,l.createElement)("div",{className:"kb-prebuilt-header-close-wrap"},(0,l.createElement)(Rt.Button,{className:"kb-prebuilt-header-close",icon:zt,label:(0,o.__)("Close Dialog","kadence-blocks"),onClick:()=>{this.setState({modalOpen:!1}),this.state.onlyModal&&this.props.removeBlock(this.props.clientId)}}))),"templates"===a&&(0,l.createElement)(qs,{clientId:this.props.clientId,reload:this.state.reload,onReload:()=>this.setState({reload:!1})}),"section"===a&&(0,l.createElement)(Ps,{clientId:this.props.clientId,tab:a,reload:this.state.reload,onReload:()=>this.setState({reload:!1})}),"cloud"===a&&(0,l.createElement)(Ys,{clientId:this.props.clientId,onReload:()=>this.setState({reloadActions:!0})}),"templates"!==a&&"cloud"!==a&&"section"!==a&&(0,l.createElement)(Bs,{clientId:this.props.clientId,tab:a,libraries:r,reload:this.state.reload,onReload:()=>this.setState({reload:!1})}))):null)}}const ac=(0,jt.compose)((0,Tt.withDispatch)((e=>{const{removeBlock:t}=e("core/block-editor");return{removeBlock:t}})))(oc);var rc=n(8616);const lc=n.n(rc)()((e=>e<10?"0.0"+e:e>=100?"1":"0."+e)),ic=function({attributes:e,previewDevice:t}){const{uniqueID:n,columns:o,mobileLayout:a,currentTab:r,colLayout:i,tabletLayout:s,columnGutter:c,collapseGutter:u,collapseOrder:d,topPadding:p,bottomPadding:m,leftPadding:g,rightPadding:h,topPaddingM:b,bottomPaddingM:f,leftPaddingM:v,rightPaddingM:y,topMargin:k,bottomMargin:E,topMarginM:w,bottomMarginM:_,bgColor:S,bgImg:C,bgImgAttachment:x,bgImgSize:I,bgImgPosition:O,bgImgRepeat:A,bgImgID:M,verticalAlignment:P,overlayOpacity:T,overlayBgImg:N,overlayBgImgAttachment:R,overlayBgImgID:L,overlayBgImgPosition:B,overlayBgImgRepeat:D,overlayBgImgSize:F,currentOverlayTab:z,overlayBlendMode:j,overlayGradAngle:H,overlayGradLoc:W,overlayGradLocSecond:V,overlayGradType:$,overlay:U,overlaySecond:Z,tabletOverlay:G,mobileOverlay:q,overlaySecondOpacity:K,overlayFirstOpacity:J,overlayGradient:Y,borderRadiusUnit:X,borderRadius:Q,tabletBorderRadius:ee,mobileBorderRadius:te,borderRadiusOverflow:ne}=e,oe=(0,At.getPreviewSize)(t,U?(0,At.KadenceColorOutput)(U,void 0!==J&&""!==J?J:1):void 0,void 0!==G&&G[0]&&G[0].overlay&&G[0].enable?(0,At.KadenceColorOutput)(G[0].overlay):"",void 0!==q&&q[0]&&q[0].overlay&&q[0].enable?(0,At.KadenceColorOutput)(q[0].overlay):""),ae=(0,At.getPreviewSize)(t,Z?(0,At.KadenceColorOutput)(Z,void 0!==K&&""!==K?K:1):void 0,(0,At.KadenceColorOutput)(void 0!==G&&G[0]&&G[0].overlaySecond&&G[0].enable?G[0].overlaySecond:""),(0,At.KadenceColorOutput)(void 0!==q&&q[0]&&q[0].overlaySecond&&q[0].enable?q[0].overlaySecond:"")),re=(0,At.getPreviewSize)(t,z||"normal",void 0!==G&&G[0]&&G[0].currentOverlayTab&&G[0].enable?G[0].currentOverlayTab:"",void 0!==q&&q[0]&&q[0].currentOverlayTab&&q[0].enable?q[0].currentOverlayTab:""),le=(0,At.getPreviewSize)(t,$||"linear",void 0!==G&&G[0]&&G[0].overlayGradType&&G[0].enable?G[0].overlayGradType:"",void 0!==q&&q[0]&&q[0].overlayGradType&&q[0].enable?q[0].overlayGradType:""),ie=(0,At.getPreviewSize)(t,H||180,void 0!==G&&G[0]&&G[0].overlayGradAngle&&G[0].enable?G[0].overlayGradAngle:"",void 0!==q&&q[0]&&q[0].overlayGradAngle&&q[0].enable?q[0].overlayGradAngle:""),se=(0,At.getPreviewSize)(t,N?`url(${N})`:void 0,void 0!==G&&G[0]&&G[0].overlayBgImg&&G[0].enable?`url(${G[0].overlayBgImg})`:"",void 0!==q&&q[0]&&q[0].overlayBgImg&&q[0].enable?`url(${q[0].overlayBgImg})`:""),ce=(0,At.getPreviewSize)(t,F||void 0,void 0!==G&&G[0]&&G[0].overlayBgImgSize&&G[0].enable?G[0].overlayBgImgSize:"",void 0!==q&&q[0]&&q[0].overlayBgImgSize&&q[0].enable?q[0].overlayBgImgSize:""),ue=(0,At.getPreviewSize)(t,B||void 0,void 0!==G&&G[0]&&G[0].overlayBgImgPosition&&G[0].enable?G[0].overlayBgImgPosition:"",void 0!==q&&q[0]&&q[0].overlayBgImgPosition&&q[0].enable?q[0].overlayBgImgPosition:""),de=(0,At.getPreviewSize)(t,D||void 0,void 0!==G&&G[0]&&G[0].overlayBgImgRepeat&&G[0].enable?G[0].overlayBgImgRepeat:"",void 0!==q&&q[0]&&q[0].overlayBgImgRepeat&&q[0].enable?q[0].overlayBgImgRepeat:""),pe=(0,At.getPreviewSize)(t,R||void 0,void 0!==G&&G[0]&&G[0].overlayBgImgAttachment&&G[0].enable?G[0].overlayBgImgAttachment:"",void 0!==q&&q[0]&&q[0].overlayBgImgAttachment&&q[0].enable?q[0].overlayBgImgAttachment:""),me=(0,At.getPreviewSize)(t,void 0!==T?T:void 0,void 0!==G&&G[0]&&""!==G[0].overlayOpacity&&G[0].enable?G[0].overlayOpacity:"",void 0!==q&&q[0]&&""!==q[0].overlayOpacity&&q[0].enable?q[0].overlayOpacity:""),ge=(0,At.getPreviewSize)(t,j||void 0,void 0!==G&&G[0]&&G[0].overlayBlendMod&&G[0].enable?G[0].overlayBlendMod:"",void 0!==q&&q[0]&&q[0].overlayBlendMod&&q[0].enable?q[0].overlayBlendMod:""),he=(0,At.getPreviewSize)(t,W||0,void 0!==G&&G[0]&&G[0].overlayGradLoc&&G[0].enable?G[0].overlayGradLoc:"",void 0!==q&&q[0]&&q[0].overlayGradLoc&&q[0].enable?q[0].overlayGradLoc:""),be=(0,At.getPreviewSize)(t,void 0!==V?V:100,void 0!==G&&G[0]&&G[0].overlayGradLocSecond&&G[0].enable?G[0].overlayGradLocSecond:"",void 0!==q&&q[0]&&q[0].overlayGradLocSecond&&q[0].enable?q[0].overlayGradLocSecond:""),fe=(0,At.getPreviewSize)(t,void 0!==Y?Y:"",void 0!==G&&G[0]&&G[0].gradient&&G[0].enable?G[0].gradient:"",void 0!==q&&q[0]&&q[0].gradient&&q[0].enable?q[0].gradient:""),ve=(0,At.getPreviewSize)(t,void 0!==Q?Q[0]:"",void 0!==ee?ee[0]:"",void 0!==te?te[0]:""),ye=(0,At.getPreviewSize)(t,void 0!==Q?Q[1]:"",void 0!==ee?ee[1]:"",void 0!==te?te[1]:""),ke=(0,At.getPreviewSize)(t,void 0!==Q?Q[2]:"",void 0!==ee?ee[2]:"",void 0!==te?te[2]:""),Ee=(0,At.getPreviewSize)(t,void 0!==Q?Q[3]:"",void 0!==ee?ee[3]:"",void 0!==te?te[3]:"");return(0,l.createElement)(l.Fragment,null,(!re||"grad"!==re&&"gradient"!==re)&&(0,l.createElement)("div",{className:"kt-row-layout-overlay kt-row-overlay-normal"+(se&&"parallax"===pe?" kt-jarallax":""),"data-bg-img-id":L,style:{backgroundColor:oe||void 0,backgroundImage:se||void 0,backgroundSize:ce||void 0,backgroundPosition:ue||void 0,backgroundRepeat:de||void 0,backgroundAttachment:"parallax"===pe?"fixed":pe,mixBlendMode:ge||void 0,opacity:void 0!==me&&Number.isInteger(me)?lc(me):void 0,borderTopLeftRadius:!ne&&ve?ve+(X||"px"):void 0,borderTopRightRadius:!ne&&ye?ye+(X||"px"):void 0,borderBottomRightRadius:!ne&&ke?ke+(X||"px"):void 0,borderBottomLeftRadius:!ne&&Ee?Ee+(X||"px"):void 0}}),re&&"grad"===re&&(0,l.createElement)("div",{className:"kt-row-layout-overlay kt-row-overlay-gradient","data-bg-img-id":L,style:{backgroundImage:"radial"===le?`radial-gradient(at ${ue}, ${oe||""} ${he}%, ${ae||""} ${be}%)`:`linear-gradient(${ie}deg, ${oe||""} ${he}%, ${ae||""} ${be}%)`,mixBlendMode:ge||void 0,opacity:void 0!==me&&Number.isInteger(me)?lc(me):void 0,borderTopLeftRadius:!ne&&ve?ve+(X||"px"):void 0,borderTopRightRadius:!ne&&ye?ye+(X||"px"):void 0,borderBottomRightRadius:!ne&&ke?ke+(X||"px"):void 0,borderBottomLeftRadius:!ne&&Ee?Ee+(X||"px"):void 0}}),re&&"gradient"===re&&(0,l.createElement)("div",{className:"kt-row-layout-overlay kt-row-overlay-gradient","data-bg-img-id":L,style:{backgroundImage:fe||void 0,mixBlendMode:ge||void 0,opacity:void 0!==me&&Number.isInteger(me)?lc(me):void 0,borderTopLeftRadius:!ne&&ve?ve+(X||"px"):void 0,borderTopRightRadius:!ne&&ye?ye+(X||"px"):void 0,borderBottomRightRadius:!ne&&ke?ke+(X||"px"):void 0,borderBottomLeftRadius:!ne&&Ee?Ee+(X||"px"):void 0}}))};function sc(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}var cc="(prefers-reduced-motion: reduce)";function uc(e){e.length=0}function dc(e,t,n){return Array.prototype.slice.call(e,t,n)}function pc(e){return e.bind.apply(e,[null].concat(dc(arguments,1)))}var mc=setTimeout,gc=function(){};function hc(e){return requestAnimationFrame(e)}function bc(e,t){return typeof t===e}function fc(e){return!wc(e)&&bc("object",e)}var vc=Array.isArray,yc=pc(bc,"function"),kc=pc(bc,"string"),Ec=pc(bc,"undefined");function wc(e){return null===e}function _c(e){try{return e instanceof(e.ownerDocument.defaultView||window).HTMLElement}catch(e){return!1}}function Sc(e){return vc(e)?e:[e]}function Cc(e,t){Sc(e).forEach(t)}function xc(e,t){return e.indexOf(t)>-1}function Ic(e,t){return e.push.apply(e,Sc(t)),e}function Oc(e,t,n){e&&Cc(t,(function(t){t&&e.classList[n?"add":"remove"](t)}))}function Ac(e,t){Oc(e,kc(t)?t.split(" "):t,!0)}function Mc(e,t){Cc(t,e.appendChild.bind(e))}function Pc(e,t){Cc(e,(function(e){var n=(t||e).parentNode;n&&n.insertBefore(e,t)}))}function Tc(e,t){return _c(e)&&(e.msMatchesSelector||e.matches).call(e,t)}function Nc(e,t){var n=e?dc(e.children):[];return t?n.filter((function(e){return Tc(e,t)})):n}function Rc(e,t){return t?Nc(e,t)[0]:e.firstElementChild}var Lc=Object.keys;function Bc(e,t,n){return e&&(n?Lc(e).reverse():Lc(e)).forEach((function(n){"__proto__"!==n&&t(e[n],n)})),e}function Dc(e){return dc(arguments,1).forEach((function(t){Bc(t,(function(n,o){e[o]=t[o]}))})),e}function Fc(e){return dc(arguments,1).forEach((function(t){Bc(t,(function(t,n){vc(t)?e[n]=t.slice():fc(t)?e[n]=Fc({},fc(e[n])?e[n]:{},t):e[n]=t}))})),e}function zc(e,t){Cc(t||Lc(e),(function(t){delete e[t]}))}function jc(e,t){Cc(e,(function(e){Cc(t,(function(t){e&&e.removeAttribute(t)}))}))}function Hc(e,t,n){fc(t)?Bc(t,(function(t,n){Hc(e,n,t)})):Cc(e,(function(e){wc(n)||""===n?jc(e,t):e.setAttribute(t,String(n))}))}function Wc(e,t,n){var o=document.createElement(e);return t&&(kc(t)?Ac(o,t):Hc(o,t)),n&&Mc(n,o),o}function Vc(e,t,n){if(Ec(n))return getComputedStyle(e)[t];wc(n)||(e.style[t]=""+n)}function $c(e,t){Vc(e,"display",t)}function Uc(e){e.setActive&&e.setActive()||e.focus({preventScroll:!0})}function Zc(e,t){return e.getAttribute(t)}function Gc(e,t){return e&&e.classList.contains(t)}function qc(e){return e.getBoundingClientRect()}function Kc(e){Cc(e,(function(e){e&&e.parentNode&&e.parentNode.removeChild(e)}))}function Jc(e){return Rc((new DOMParser).parseFromString(e,"text/html").body)}function Yc(e,t){e.preventDefault(),t&&(e.stopPropagation(),e.stopImmediatePropagation())}function Xc(e,t){return e&&e.querySelector(t)}function Qc(e,t){return t?dc(e.querySelectorAll(t)):[]}function eu(e,t){Oc(e,t,!1)}function tu(e){return e.timeStamp}function nu(e){return kc(e)?e:e?e+"px":""}var ou="splide",au="data-"+ou;function ru(e,t){if(!e)throw new Error("["+ou+"] "+(t||""))}var lu=Math.min,iu=Math.max,su=Math.floor,cu=Math.ceil,uu=Math.abs;function du(e,t,n){return uu(e-t)<n}function pu(e,t,n,o){var a=lu(t,n),r=iu(t,n);return o?a<e&&e<r:a<=e&&e<=r}function mu(e,t,n){var o=lu(t,n),a=iu(t,n);return lu(iu(o,e),a)}function gu(e){return+(e>0)-+(e<0)}function hu(e,t){return Cc(t,(function(t){e=e.replace("%s",""+t)})),e}function bu(e){return e<10?"0"+e:""+e}var fu={};function vu(){var e=[];function t(e,t,n){Cc(e,(function(e){e&&Cc(t,(function(t){t.split(" ").forEach((function(t){var o=t.split(".");n(e,o[0],o[1])}))}))}))}return{bind:function(n,o,a,r){t(n,o,(function(t,n,o){var l="addEventListener"in t,i=l?t.removeEventListener.bind(t,n,a,r):t.removeListener.bind(t,a);l?t.addEventListener(n,a,r):t.addListener(a),e.push([t,n,o,a,i])}))},unbind:function(n,o,a){t(n,o,(function(t,n,o){e=e.filter((function(e){return!!(e[0]!==t||e[1]!==n||e[2]!==o||a&&e[3]!==a)||(e[4](),!1)}))}))},dispatch:function(e,t,n){var o,a=!0;return"function"==typeof CustomEvent?o=new CustomEvent(t,{bubbles:a,detail:n}):(o=document.createEvent("CustomEvent")).initCustomEvent(t,a,!1,n),e.dispatchEvent(o),o},destroy:function(){e.forEach((function(e){e[4]()})),uc(e)}}}var yu="mounted",ku="ready",Eu="move",wu="moved",_u="click",Su="active",Cu="inactive",xu="visible",Iu="hidden",Ou="refresh",Au="updated",Mu="resize",Pu="resized",Tu="drag",Nu="dragging",Ru="dragged",Lu="scroll",Bu="scrolled",Du="destroy",Fu="arrows:mounted",zu="arrows:updated",ju="pagination:mounted",Hu="pagination:updated",Wu="navigation:mounted",Vu="autoplay:play",$u="autoplay:playing",Uu="autoplay:pause",Zu="lazyload:loaded",Gu="ei";function qu(e){var t=e?e.event.bus:document.createDocumentFragment(),n=vu();return e&&e.event.on(Du,n.destroy),Dc(n,{bus:t,on:function(e,o){n.bind(t,Sc(e).join(" "),(function(e){o.apply(o,vc(e.detail)?e.detail:[])}))},off:pc(n.unbind,t),emit:function(e){n.dispatch(t,e,dc(arguments,1))}})}function Ku(e,t,n,o){var a,r,l=Date.now,i=0,s=!0,c=0;function u(){if(!s){if(i=e?lu((l()-a)/e,1):1,n&&n(i),i>=1&&(t(),a=l(),o&&++c>=o))return d();r=hc(u)}}function d(){s=!0}function p(){r&&cancelAnimationFrame(r),i=0,r=0,s=!0}return{start:function(t){t||p(),a=l()-(t?i*e:0),s=!1,r=hc(u)},rewind:function(){a=l(),i=0,n&&n(i)},pause:d,cancel:p,set:function(t){e=t},isPaused:function(){return s}}}var Ju="Arrow",Yu=Ju+"Left",Xu=Ju+"Right",Qu=Ju+"Up",ed=Ju+"Down",td="ttb",nd={width:["height"],left:["top","right"],right:["bottom","left"],x:["y"],X:["Y"],Y:["X"],ArrowLeft:[Qu,Xu],ArrowRight:[ed,Yu]},od="role",ad="tabindex",rd="aria-",ld=rd+"controls",id=rd+"current",sd=rd+"selected",cd=rd+"label",ud=rd+"labelledby",dd=rd+"hidden",pd=rd+"orientation",md=rd+"roledescription",gd=rd+"live",hd=rd+"busy",bd=rd+"atomic",fd=[od,ad,"disabled",ld,id,cd,ud,dd,pd,md],vd=ou+"__",yd="is-",kd=ou,Ed=vd+"track",wd=vd+"list",_d=vd+"slide",Sd=_d+"--clone",Cd=_d+"__container",xd=vd+"arrows",Id=vd+"arrow",Od=Id+"--prev",Ad=Id+"--next",Md=vd+"pagination",Pd=Md+"__page",Td=vd+"progress__bar",Nd=vd+"toggle",Rd=vd+"sr",Ld=yd+"initialized",Bd=yd+"active",Dd=yd+"prev",Fd=yd+"next",zd=yd+"visible",jd=yd+"loading",Hd=yd+"focus-in",Wd=yd+"overflow",Vd=[Bd,zd,Dd,Fd,jd,Hd,Wd],$d={slide:_d,clone:Sd,arrows:xd,arrow:Id,prev:Od,next:Ad,pagination:Md,page:Pd,spinner:vd+"spinner"},Ud="touchstart mousedown",Zd="touchmove mousemove",Gd="touchend touchcancel mouseup click",qd="slide",Kd="loop",Jd="fade";var Yd=au+"-interval",Xd={passive:!1,capture:!0},Qd={Spacebar:" ",Right:Xu,Left:Yu,Up:Qu,Down:ed};function ep(e){return e=kc(e)?e:e.key,Qd[e]||e}var tp="keydown",np=au+"-lazy",op=np+"-srcset",ap="["+np+"], ["+op+"]",rp=[" ","Enter"],lp=Object.freeze({__proto__:null,Media:function(e,t,n){var o=e.state,a=n.breakpoints||{},r=n.reducedMotion||{},l=vu(),i=[];function s(e){e&&l.destroy()}function c(e,t){var n=matchMedia(t);l.bind(n,"change",u),i.push([e,n])}function u(){var t=o.is(7),a=n.direction,r=i.reduce((function(e,t){return Fc(e,t[1].matches?t[0]:{})}),{});zc(n),d(r),n.destroy?e.destroy("completely"===n.destroy):t?(s(!0),e.mount()):a!==n.direction&&e.refresh()}function d(t,a,r){Fc(n,t),a&&Fc(Object.getPrototypeOf(n),t),!r&&o.is(1)||e.emit(Au,n)}return{setup:function(){var e="min"===n.mediaQuery;Lc(a).sort((function(t,n){return e?+t-+n:+n-+t})).forEach((function(t){c(a[t],"("+(e?"min":"max")+"-width:"+t+"px)")})),c(r,cc),u()},destroy:s,reduce:function(e){matchMedia(cc).matches&&(e?Fc(n,r):zc(n,Lc(r)))},set:d}},Direction:function(e,t,n){return{resolve:function(e,t,o){var a="rtl"!==(o=o||n.direction)||t?o===td?0:-1:1;return nd[e]&&nd[e][a]||e.replace(/width|left|right/i,(function(e,t){var n=nd[e.toLowerCase()][a]||e;return t>0?n.charAt(0).toUpperCase()+n.slice(1):n}))},orient:function(e){return e*("rtl"===n.direction?1:-1)}}},Elements:function(e,t,n){var o,a,r,l=qu(e),i=l.on,s=l.bind,c=e.root,u=n.i18n,d={},p=[],m=[],g=[];function h(){var e,t,r;o=v("."+Ed),a=Rc(o,"."+wd),ru(o&&a,"A track/list element is missing."),Ic(p,Nc(a,"."+_d+":not(."+Sd+")")),Bc({arrows:xd,pagination:Md,prev:Od,next:Ad,bar:Td,toggle:Nd},(function(e,t){d[t]=v("."+e)})),Dc(d,{root:c,track:o,list:a,slides:p}),t=c.id||""+(e=ou)+bu(fu[e]=(fu[e]||0)+1),r=n.role,c.id=t,o.id=o.id||t+"-track",a.id=a.id||t+"-list",!Zc(c,od)&&"SECTION"!==c.tagName&&r&&Hc(c,od,r),Hc(c,md,u.carousel),Hc(a,od,"presentation"),f()}function b(e){var t=fd.concat("style");uc(p),eu(c,m),eu(o,g),jc([o,a],t),jc(c,e?t:["style",md])}function f(){eu(c,m),eu(o,g),m=y(kd),g=y(Ed),Ac(c,m),Ac(o,g),Hc(c,cd,n.label),Hc(c,ud,n.labelledby)}function v(e){var t=Xc(c,e);return t&&function(e,t){if(yc(e.closest))return e.closest(t);for(var n=e;n&&1===n.nodeType&&!Tc(n,t);)n=n.parentElement;return n}(t,"."+kd)===c?t:void 0}function y(e){return[e+"--"+n.type,e+"--"+n.direction,n.drag&&e+"--draggable",n.isNavigation&&e+"--nav",e===kd&&Bd]}return Dc(d,{setup:h,mount:function(){i(Ou,b),i(Ou,h),i(Au,f),s(document,Ud+" keydown",(function(e){r="keydown"===e.type}),{capture:!0}),s(c,"focusin",(function(){Oc(c,Hd,!!r)}))},destroy:b})},Slides:function(e,t,n){var o=qu(e),a=o.on,r=o.emit,l=o.bind,i=t.Elements,s=i.slides,c=i.list,u=[];function d(){s.forEach((function(e,t){m(e,t,-1)}))}function p(){h((function(e){e.destroy()})),uc(u)}function m(t,n,o){var a=function(e,t,n,o){var a,r=qu(e),l=r.on,i=r.emit,s=r.bind,c=e.Components,u=e.root,d=e.options,p=d.isNavigation,m=d.updateOnMove,g=d.i18n,h=d.pagination,b=d.slideFocus,f=c.Direction.resolve,v=Zc(o,"style"),y=Zc(o,cd),k=n>-1,E=Rc(o,"."+Cd);function w(){var a=e.splides.map((function(e){var n=e.splide.Components.Slides.getAt(t);return n?n.slide.id:""})).join(" ");Hc(o,cd,hu(g.slideX,(k?n:t)+1)),Hc(o,ld,a),Hc(o,od,b?"button":""),b&&jc(o,md)}function _(){a||S()}function S(){if(!a){var n=e.index;(r=C())!==Gc(o,Bd)&&(Oc(o,Bd,r),Hc(o,id,p&&r||""),i(r?Su:Cu,x)),function(){var t=function(){if(e.is(Jd))return C();var t=qc(c.Elements.track),n=qc(o),a=f("left",!0),r=f("right",!0);return su(t[a])<=cu(n[a])&&su(n[r])<=cu(t[r])}(),n=!t&&(!C()||k);if(e.state.is([4,5])||Hc(o,dd,n||""),Hc(Qc(o,d.focusableNodes||""),ad,n?-1:""),b&&Hc(o,ad,n?-1:0),t!==Gc(o,zd)&&(Oc(o,zd,t),i(t?xu:Iu,x)),!t&&document.activeElement===o){var a=c.Slides.getAt(e.index);a&&Uc(a.slide)}}(),Oc(o,Dd,t===n-1),Oc(o,Fd,t===n+1)}var r}function C(){var o=e.index;return o===t||d.cloneStatus&&o===n}var x={index:t,slideIndex:n,slide:o,container:E,isClone:k,mount:function(){k||(o.id=u.id+"-slide"+bu(t+1),Hc(o,od,h?"tabpanel":"group"),Hc(o,md,g.slide),Hc(o,cd,y||hu(g.slideLabel,[t+1,e.length]))),s(o,"click",pc(i,_u,x)),s(o,"keydown",pc(i,"sk",x)),l([wu,"sh",Bu],S),l(Wu,w),m&&l(Eu,_)},destroy:function(){a=!0,r.destroy(),eu(o,Vd),jc(o,fd),Hc(o,"style",v),Hc(o,cd,y||"")},update:S,style:function(e,t,n){Vc(n&&E||o,e,t)},isWithin:function(n,o){var a=uu(n-t);return k||!d.rewind&&!e.is(Kd)||(a=lu(a,e.length-a)),a<=o}};return x}(e,n,o,t);a.mount(),u.push(a),u.sort((function(e,t){return e.index-t.index}))}function g(e){return e?b((function(e){return!e.isClone})):u}function h(e,t){g(t).forEach(e)}function b(e){return u.filter(yc(e)?e:function(t){return kc(e)?Tc(t.slide,e):xc(Sc(e),t.index)})}return{mount:function(){d(),a(Ou,p),a(Ou,d)},destroy:p,update:function(){h((function(e){e.update()}))},register:m,get:g,getIn:function(e){var o=t.Controller,a=o.toIndex(e),r=o.hasFocus()?1:n.perPage;return b((function(e){return pu(e.index,a,a+r-1)}))},getAt:function(e){return b(e)[0]},add:function(e,t){Cc(e,(function(e){if(kc(e)&&(e=Jc(e)),_c(e)){var o=s[t];o?Pc(e,o):Mc(c,e),Ac(e,n.classes.slide),a=e,i=pc(r,Mu),u=Qc(a,"img"),(d=u.length)?u.forEach((function(e){l(e,"load error",(function(){--d||i()}))})):i()}var a,i,u,d})),r(Ou)},remove:function(e){Kc(b(e).map((function(e){return e.slide}))),r(Ou)},forEach:h,filter:b,style:function(e,t,n){h((function(o){o.style(e,t,n)}))},getLength:function(e){return e?s.length:u.length},isEnough:function(){return u.length>n.perPage}}},Layout:function(e,t,n){var o,a,r,l=qu(e),i=l.on,s=l.bind,c=l.emit,u=t.Slides,d=t.Direction.resolve,p=t.Elements,m=p.root,g=p.track,h=p.list,b=u.getAt,f=u.style;function v(){o=n.direction===td,Vc(m,"maxWidth",nu(n.width)),Vc(g,d("paddingLeft"),k(!1)),Vc(g,d("paddingRight"),k(!0)),y(!0)}function y(e){var t,l=qc(m);(e||a.width!==l.width||a.height!==l.height)&&(Vc(g,"height",(t="",o&&(ru(t=E(),"height or heightRatio is missing."),t="calc("+t+" - "+k(!1)+" - "+k(!0)+")"),t)),f(d("marginRight"),nu(n.gap)),f("width",n.autoWidth?null:nu(n.fixedWidth)||(o?"":w())),f("height",nu(n.fixedHeight)||(o?n.autoHeight?null:w():E()),!0),a=l,c(Pu),r!==(r=O())&&(Oc(m,Wd,r),c("overflow",r)))}function k(e){var t=n.padding,o=d(e?"right":"left");return t&&nu(t[o]||(fc(t)?0:t))||"0px"}function E(){return nu(n.height||qc(h).width*n.heightRatio)}function w(){var e=nu(n.gap);return"calc((100%"+(e&&" + "+e)+")/"+(n.perPage||1)+(e&&" - "+e)+")"}function _(){return qc(h)[d("width")]}function S(e,t){var n=b(e||0);return n?qc(n.slide)[d("width")]+(t?0:I()):0}function C(e,t){var n=b(e);if(n){var o=qc(n.slide)[d("right")],a=qc(h)[d("left")];return uu(o-a)+(t?0:I())}return 0}function x(t){return C(e.length-1)-C(0)+S(0,t)}function I(){var e=b(0);return e&&parseFloat(Vc(e.slide,d("marginRight")))||0}function O(){return e.is(Jd)||x(!0)>_()}return{mount:function(){var e,t;v(),s(window,"resize load",(e=pc(c,Mu),t=Ku(0,e,null,1),function(){t.isPaused()&&t.start()})),i([Au,Ou],v),i(Mu,y)},resize:y,listSize:_,slideSize:S,sliderSize:x,totalSize:C,getPadding:function(e){return parseFloat(Vc(g,d("padding"+(e?"Right":"Left"))))||0},isOverflow:O}},Clones:function(e,t,n){var o,a=qu(e),r=a.on,l=t.Elements,i=t.Slides,s=t.Direction.resolve,c=[];function u(){r(Ou,d),r([Au,Mu],m),(o=g())&&(function(t){var o=i.get().slice(),a=o.length;if(a){for(;o.length<t;)Ic(o,o);Ic(o.slice(-t),o.slice(0,t)).forEach((function(r,s){var u=s<t,d=function(t,o){var a=t.cloneNode(!0);return Ac(a,n.classes.clone),a.id=e.root.id+"-clone"+bu(o+1),a}(r.slide,s);u?Pc(d,o[0].slide):Mc(l.list,d),Ic(c,d),i.register(d,s-t+(u?0:a),r.index)}))}}(o),t.Layout.resize(!0))}function d(){p(),u()}function p(){Kc(c),uc(c),a.destroy()}function m(){var e=g();o!==e&&(o<e||!e)&&a.emit(Ou)}function g(){var o=n.clones;if(e.is(Kd)){if(Ec(o)){var a=n[s("fixedWidth")]&&t.Layout.slideSize(0);o=a&&cu(qc(l.track)[s("width")]/a)||n[s("autoWidth")]&&e.length||2*n.perPage}}else o=0;return o}return{mount:u,destroy:p}},Move:function(e,t,n){var o,a=qu(e),r=a.on,l=a.emit,i=e.state.set,s=t.Layout,c=s.slideSize,u=s.getPadding,d=s.totalSize,p=s.listSize,m=s.sliderSize,g=t.Direction,h=g.resolve,b=g.orient,f=t.Elements,v=f.list,y=f.track;function k(){t.Controller.isBusy()||(t.Scroll.cancel(),E(e.index),t.Slides.update())}function E(e){w(x(e,!0))}function w(n,o){if(!e.is(Jd)){var a=o?n:function(n){if(e.is(Kd)){var o=C(n),a=o>t.Controller.getEnd();(o<0||a)&&(n=_(n,a))}return n}(n);Vc(v,"transform","translate"+h("X")+"("+a+"px)"),n!==a&&l("sh")}}function _(e,t){var n=e-O(t),o=m();return e-b(o*(cu(uu(n)/o)||1))*(t?1:-1)}function S(){w(I(),!0),o.cancel()}function C(e){for(var n=t.Slides.get(),o=0,a=1/0,r=0;r<n.length;r++){var l=n[r].index,i=uu(x(l,!0)-e);if(!(i<=a))break;a=i,o=l}return o}function x(t,o){var a=b(d(t-1)-function(e){var t=n.focus;return"center"===t?(p()-c(e,!0))/2:+t*c(e)||0}(t));return o?function(t){return n.trimSpace&&e.is(qd)&&(t=mu(t,0,b(m(!0)-p()))),t}(a):a}function I(){var e=h("left");return qc(v)[e]-qc(y)[e]+b(u(!1))}function O(e){return x(e?t.Controller.getEnd():0,!!n.trimSpace)}return{mount:function(){o=t.Transition,r([yu,Pu,Au,Ou],k)},move:function(e,t,n,a){var r,s;e!==t&&(r=e>n,s=b(_(I(),r)),r?s>=0:s<=v[h("scrollWidth")]-qc(y)[h("width")])&&(S(),w(_(I(),e>n),!0)),i(4),l(Eu,t,n,e),o.start(t,(function(){i(3),l(wu,t,n,e),a&&a()}))},jump:E,translate:w,shift:_,cancel:S,toIndex:C,toPosition:x,getPosition:I,getLimit:O,exceededLimit:function(e,t){t=Ec(t)?I():t;var n=!0!==e&&b(t)<b(O(!1)),o=!1!==e&&b(t)>b(O(!0));return n||o},reposition:k}},Controller:function(e,t,n){var o,a,r,l,i=qu(e),s=i.on,c=i.emit,u=t.Move,d=u.getPosition,p=u.getLimit,m=u.toPosition,g=t.Slides,h=g.isEnough,b=g.getLength,f=n.omitEnd,v=e.is(Kd),y=e.is(qd),k=pc(x,!1),E=pc(x,!0),w=n.start||0,_=w;function S(){a=b(!0),r=n.perMove,l=n.perPage,o=A();var e=mu(w,0,f?o:a-1);e!==w&&(w=e,u.reposition())}function C(){o!==A()&&c(Gu)}function x(e,t){var n=r||(N()?1:l),a=I(w+n*(e?-1:1),w,!(r||N()));return-1===a&&y&&!du(d(),p(!e),1)?e?0:o:t?a:O(a)}function I(t,i,s){if(h()||N()){var c=function(t){if(y&&"move"===n.trimSpace&&t!==w)for(var o=d();o===m(t,!0)&&pu(t,0,e.length-1,!n.rewind);)t<w?--t:++t;return t}(t);c!==t&&(i=t,t=c,s=!1),t<0||t>o?t=r||!pu(0,t,i,!0)&&!pu(o,i,t,!0)?v?s?t<0?-(a%l||l):a:t:n.rewind?t<0?o:0:-1:M(P(t)):s&&t!==i&&(t=M(P(i)+(t<i?-1:1)))}else t=-1;return t}function O(e){return v?(e+a)%a||0:e}function A(){for(var e=a-(N()||v&&r?1:l);f&&e-- >0;)if(m(a-1,!0)!==m(e,!0)){e++;break}return mu(e,0,a-1)}function M(e){return mu(N()?e:l*e,0,o)}function P(e){return N()?lu(e,o):su((e>=o?a-1:e)/l)}function T(e){e!==w&&(_=w,w=e)}function N(){return!Ec(n.focus)||n.isNavigation}function R(){return e.state.is([4,5])&&!!n.waitForTransition}return{mount:function(){S(),s([Au,Ou,Gu],S),s(Pu,C)},go:function(e,t,n){if(!R()){var a=function(e){var t=w;if(kc(e)){var n=e.match(/([+\-<>])(\d+)?/)||[],a=n[1],r=n[2];"+"===a||"-"===a?t=I(w+ +(""+a+(+r||1)),w):">"===a?t=r?M(+r):k(!0):"<"===a&&(t=E(!0))}else t=v?e:mu(e,0,o);return t}(e),r=O(a);r>-1&&(t||r!==w)&&(T(r),u.move(a,r,_,n))}},scroll:function(e,n,a,r){t.Scroll.scroll(e,n,a,(function(){var e=O(u.toIndex(d()));T(f?lu(e,o):e),r&&r()}))},getNext:k,getPrev:E,getAdjacent:x,getEnd:A,setIndex:T,getIndex:function(e){return e?_:w},toIndex:M,toPage:P,toDest:function(e){var t=u.toIndex(e);return y?mu(t,0,o):t},hasFocus:N,isBusy:R}},Arrows:function(e,t,n){var o,a,r=qu(e),l=r.on,i=r.bind,s=r.emit,c=n.classes,u=n.i18n,d=t.Elements,p=t.Controller,m=d.arrows,g=d.track,h=m,b=d.prev,f=d.next,v={};function y(){var e;!(e=n.arrows)||b&&f||(h=m||Wc("div",c.arrows),b=_(!0),f=_(!1),o=!0,Mc(h,[b,f]),!m&&Pc(h,g)),b&&f&&(Dc(v,{prev:b,next:f}),$c(h,e?"":"none"),Ac(h,a=xd+"--"+n.direction),e&&(l([yu,wu,Ou,Bu,Gu],S),i(f,"click",pc(w,">")),i(b,"click",pc(w,"<")),S(),Hc([b,f],ld,g.id),s(Fu,b,f))),l(Au,k)}function k(){E(),y()}function E(){r.destroy(),eu(h,a),o?(Kc(m?[b,f]:h),b=f=null):jc([b,f],fd)}function w(e){p.go(e,!0)}function _(e){return Jc('<button class="'+c.arrow+" "+(e?c.prev:c.next)+'" type="button"><svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 40 40" width="40" height="40" focusable="false"><path d="'+(n.arrowPath||"m15.5 0.932-4.3 4.38 14.5 14.6-14.5 14.5 4.3 4.4 14.6-14.6 4.4-4.3-4.4-4.4-14.6-14.6z")+'" />')}function S(){if(b&&f){var t=e.index,n=p.getPrev(),o=p.getNext(),a=n>-1&&t<n?u.last:u.prev,r=o>-1&&t>o?u.first:u.next;b.disabled=n<0,f.disabled=o<0,Hc(b,cd,a),Hc(f,cd,r),s(zu,b,f,n,o)}}return{arrows:v,mount:y,destroy:E,update:S}},Autoplay:function(e,t,n){var o,a,r=qu(e),l=r.on,i=r.bind,s=r.emit,c=Ku(n.interval,e.go.bind(e,">"),(function(e){var t=d.bar;t&&Vc(t,"width",100*e+"%"),s($u,e)})),u=c.isPaused,d=t.Elements,p=t.Elements,m=p.root,g=p.toggle,h=n.autoplay,b="pause"===h;function f(){u()&&t.Slides.isEnough()&&(c.start(!n.resetProgress),a=o=b=!1,k(),s(Vu))}function v(e){void 0===e&&(e=!0),b=!!e,k(),u()||(c.pause(),s(Uu))}function y(){b||(o||a?v(!1):f())}function k(){g&&(Oc(g,Bd,!b),Hc(g,cd,n.i18n[b?"play":"pause"]))}function E(e){var o=t.Slides.getAt(e);c.set(o&&+Zc(o.slide,Yd)||n.interval)}return{mount:function(){h&&(n.pauseOnHover&&i(m,"mouseenter mouseleave",(function(e){o="mouseenter"===e.type,y()})),n.pauseOnFocus&&i(m,"focusin focusout",(function(e){a="focusin"===e.type,y()})),g&&i(g,"click",(function(){b?f():v(!0)})),l([Eu,Lu,Ou],c.rewind),l(Eu,E),g&&Hc(g,ld,d.track.id),b||f(),k())},destroy:c.cancel,play:f,pause:v,isPaused:u}},Cover:function(e,t,n){var o=qu(e).on;function a(e){t.Slides.forEach((function(t){var n=Rc(t.container||t.slide,"img");n&&n.src&&r(e,n,t)}))}function r(e,t,n){n.style("background",e?'center/cover no-repeat url("'+t.src+'")':"",!0),$c(t,e?"none":"")}return{mount:function(){n.cover&&(o(Zu,pc(r,!0)),o([yu,Au,Ou],pc(a,!0)))},destroy:pc(a,!1)}},Scroll:function(e,t,n){var o,a,r=qu(e),l=r.on,i=r.emit,s=e.state.set,c=t.Move,u=c.getPosition,d=c.getLimit,p=c.exceededLimit,m=c.translate,g=e.is(qd),h=1;function b(e,n,r,l,d){var m=u();if(y(),r&&(!g||!p())){var b=t.Layout.sliderSize(),k=gu(e)*b*su(uu(e)/b)||0;e=c.toPosition(t.Controller.toDest(e%b))+k}var E=du(m,e,1);h=1,n=E?0:n||iu(uu(e-m)/1.5,800),a=l,o=Ku(n,f,pc(v,m,e,d),1),s(5),i(Lu),o.start()}function f(){s(3),a&&a(),i(Bu)}function v(e,t,o,r){var l,i,s=u(),c=(e+(t-e)*(l=r,(i=n.easingFunc)?i(l):1-Math.pow(1-l,4))-s)*h;m(s+c),g&&!o&&p()&&(h*=.6,uu(c)<10&&b(d(p(!0)),600,!1,a,!0))}function y(){o&&o.cancel()}function k(){o&&!o.isPaused()&&(y(),f())}return{mount:function(){l(Eu,y),l([Au,Ou],k)},destroy:y,scroll:b,cancel:k}},Drag:function(e,t,n){var o,a,r,l,i,s,c,u,d=qu(e),p=d.on,m=d.emit,g=d.bind,h=d.unbind,b=e.state,f=t.Move,v=t.Scroll,y=t.Controller,k=t.Elements.track,E=t.Media.reduce,w=t.Direction,_=w.resolve,S=w.orient,C=f.getPosition,x=f.exceededLimit,I=!1;function O(){var e=n.drag;z(!e),l="free"===e}function A(e){if(s=!1,!c){var t=F(e);o=e.target,a=n.noDrag,Tc(o,"."+Pd+", ."+Id)||a&&Tc(o,a)||!t&&e.button||(y.isBusy()?Yc(e,!0):(u=t?k:window,i=b.is([4,5]),r=null,g(u,Zd,M,Xd),g(u,Gd,P,Xd),f.cancel(),v.cancel(),N(e)))}var o,a}function M(t){if(b.is(6)||(b.set(6),m(Tu)),t.cancelable)if(i){f.translate(o+R(t)/(I&&e.is(qd)?5:1));var a=L(t)>200,r=I!==(I=x());(a||r)&&N(t),s=!0,m(Nu),Yc(t)}else(function(e){return uu(R(e))>uu(R(e,!0))})(t)&&(i=function(e){var t=n.dragMinThreshold,o=fc(t),a=o&&t.mouse||0,r=(o?t.touch:+t)||10;return uu(R(e))>(F(e)?r:a)}(t),Yc(t))}function P(o){b.is(6)&&(b.set(3),m(Ru)),i&&(function(o){var a=function(t){if(e.is(Kd)||!I){var n=L(t);if(n&&n<200)return R(t)/n}return 0}(o),r=function(e){return C()+gu(e)*lu(uu(e)*(n.flickPower||600),l?1/0:t.Layout.listSize()*(n.flickMaxPages||1))}(a),i=n.rewind&&n.rewindByDrag;E(!1),l?y.scroll(r,0,n.snap):e.is(Jd)?y.go(S(gu(a))<0?i?"<":"-":i?">":"+"):e.is(qd)&&I&&i?y.go(x(!0)?">":"<"):y.go(y.toDest(r),!0),E(!0)}(o),Yc(o)),h(u,Zd,M),h(u,Gd,P),i=!1}function T(e){!c&&s&&Yc(e,!0)}function N(e){r=a,a=e,o=C()}function R(e,t){return D(e,t)-D(B(e),t)}function L(e){return tu(e)-tu(B(e))}function B(e){return a===e&&r||a}function D(e,t){return(F(e)?e.changedTouches[0]:e)["page"+_(t?"Y":"X")]}function F(e){return"undefined"!=typeof TouchEvent&&e instanceof TouchEvent}function z(e){c=e}return{mount:function(){g(k,Zd,gc,Xd),g(k,Gd,gc,Xd),g(k,Ud,A,Xd),g(k,"click",T,{capture:!0}),g(k,"dragstart",Yc),p([yu,Au],O)},disable:z,isDragging:function(){return i}}},Keyboard:function(e,t,n){var o,a,r=qu(e),l=r.on,i=r.bind,s=r.unbind,c=e.root,u=t.Direction.resolve;function d(){var e=n.keyboard;e&&(o="global"===e?window:c,i(o,tp,g))}function p(){s(o,tp)}function m(){var e=a;a=!0,mc((function(){a=e}))}function g(t){if(!a){var n=ep(t);n===u(Yu)?e.go("<"):n===u(Xu)&&e.go(">")}}return{mount:function(){d(),l(Au,p),l(Au,d),l(Eu,m)},destroy:p,disable:function(e){a=e}}},LazyLoad:function(e,t,n){var o=qu(e),a=o.on,r=o.off,l=o.bind,i=o.emit,s="sequential"===n.lazyLoad,c=[wu,Bu],u=[];function d(){uc(u),t.Slides.forEach((function(e){Qc(e.slide,ap).forEach((function(t){var o=Zc(t,np),a=Zc(t,op);if(o!==t.src||a!==t.srcset){var r=n.classes.spinner,l=t.parentElement,i=Rc(l,"."+r)||Wc("span",r,l);u.push([t,e,i]),t.src||$c(t,"none")}}))})),s?h():(r(c),a(c,p),p())}function p(){(u=u.filter((function(t){var o=n.perPage*((n.preloadPages||1)+1)-1;return!t[1].isWithin(e.index,o)||m(t)}))).length||r(c)}function m(e){var t=e[0];Ac(e[1].slide,jd),l(t,"load error",pc(g,e)),Hc(t,"src",Zc(t,np)),Hc(t,"srcset",Zc(t,op)),jc(t,np),jc(t,op)}function g(e,t){var n=e[0],o=e[1];eu(o.slide,jd),"error"!==t.type&&(Kc(e[2]),$c(n,""),i(Zu,n,o),i(Mu)),s&&h()}function h(){u.length&&m(u.shift())}return{mount:function(){n.lazyLoad&&(d(),a(Ou,d))},destroy:pc(uc,u),check:p}},Pagination:function(e,t,n){var o,a,r=qu(e),l=r.on,i=r.emit,s=r.bind,c=t.Slides,u=t.Elements,d=t.Controller,p=d.hasFocus,m=d.getIndex,g=d.go,h=t.Direction.resolve,b=u.pagination,f=[];function v(){o&&(Kc(b?dc(o.children):o),eu(o,a),uc(f),o=null),r.destroy()}function y(e){g(">"+e,!0)}function k(e,t){var n=f.length,o=ep(t),a=E(),r=-1;o===h(Xu,!1,a)?r=++e%n:o===h(Yu,!1,a)?r=(--e+n)%n:"Home"===o?r=0:"End"===o&&(r=n-1);var l=f[r];l&&(Uc(l.button),g(">"+r),Yc(t,!0))}function E(){return n.paginationDirection||n.direction}function w(e){return f[d.toPage(e)]}function _(){var e=w(m(!0)),t=w(m());if(e){var n=e.button;eu(n,Bd),jc(n,sd),Hc(n,ad,-1)}if(t){var a=t.button;Ac(a,Bd),Hc(a,sd,!0),Hc(a,ad,"")}i(Hu,{list:o,items:f},e,t)}return{items:f,mount:function t(){v(),l([Au,Ou,Gu],t);var r=n.pagination;b&&$c(b,r?"":"none"),r&&(l([Eu,Lu,Bu],_),function(){var t=e.length,r=n.classes,l=n.i18n,i=n.perPage,m=p()?d.getEnd()+1:cu(t/i);Ac(o=b||Wc("ul",r.pagination,u.track.parentElement),a=Md+"--"+E()),Hc(o,od,"tablist"),Hc(o,cd,l.select),Hc(o,pd,E()===td?"vertical":"");for(var g=0;g<m;g++){var h=Wc("li",null,o),v=Wc("button",{class:r.page,type:"button"},h),w=c.getIn(g).map((function(e){return e.slide.id})),_=!p()&&i>1?l.pageX:l.slideX;s(v,"click",pc(y,g)),n.paginationKeyboard&&s(v,"keydown",pc(k,g)),Hc(h,od,"presentation"),Hc(v,od,"tab"),Hc(v,ld,w.join(" ")),Hc(v,cd,hu(_,g+1)),Hc(v,ad,-1),f.push({li:h,button:v,page:g})}}(),_(),i(ju,{list:o,items:f},w(e.index)))},destroy:v,getAt:w,update:_}},Sync:function(e,t,n){var o=n.isNavigation,a=n.slideFocus,r=[];function l(){var t,n;e.splides.forEach((function(t){t.isParent||(s(e,t.splide),s(t.splide,e))})),o&&((n=(t=qu(e)).on)(_u,u),n("sk",d),n([yu,Au],c),r.push(t),t.emit(Wu,e.splides))}function i(){r.forEach((function(e){e.destroy()})),uc(r)}function s(e,t){var n=qu(e);n.on(Eu,(function(e,n,o){t.go(t.is(Kd)?o:e)})),r.push(n)}function c(){Hc(t.Elements.list,pd,n.direction===td?"vertical":"")}function u(t){e.go(t.index)}function d(e,t){xc(rp,ep(t))&&(u(e),Yc(t))}return{setup:pc(t.Media.set,{slideFocus:Ec(a)?o:a},!0),mount:l,destroy:i,remount:function(){i(),l()}}},Wheel:function(e,t,n){var o=qu(e).bind,a=0;function r(o){if(o.cancelable){var r=o.deltaY,l=r<0,i=tu(o),s=n.wheelMinThreshold||0,c=n.wheelSleep||0;uu(r)>s&&i-a>c&&(e.go(l?"<":">"),a=i),function(o){return!n.releaseWheel||e.state.is(4)||-1!==t.Controller.getAdjacent(o)}(l)&&Yc(o)}}return{mount:function(){n.wheel&&o(t.Elements.track,"wheel",r,Xd)}}},Live:function(e,t,n){var o=qu(e).on,a=t.Elements.track,r=n.live&&!n.isNavigation,l=Wc("span",Rd),i=Ku(90,pc(s,!1));function s(e){Hc(a,hd,e),e?(Mc(a,l),i.start()):(Kc(l),i.cancel())}function c(e){r&&Hc(a,gd,e?"off":"polite")}return{mount:function(){r&&(c(!t.Autoplay.isPaused()),Hc(a,bd,!0),l.textContent="…",o(Vu,pc(c,!0)),o(Uu,pc(c,!1)),o([wu,Bu],pc(s,!0)))},disable:c,destroy:function(){jc(a,[gd,bd,hd]),Kc(l)}}}}),ip={type:"slide",role:"region",speed:400,perPage:1,cloneStatus:!0,arrows:!0,pagination:!0,paginationKeyboard:!0,interval:5e3,pauseOnHover:!0,pauseOnFocus:!0,resetProgress:!0,easing:"cubic-bezier(0.25, 1, 0.5, 1)",drag:!0,direction:"ltr",trimSpace:!0,focusableNodes:"a, button, textarea, input, select, iframe",live:!0,classes:$d,i18n:{prev:"Previous slide",next:"Next slide",first:"Go to first slide",last:"Go to last slide",slideX:"Go to slide %s",pageX:"Go to page %s",play:"Start autoplay",pause:"Pause autoplay",carousel:"carousel",slide:"slide",select:"Select a slide to show",slideLabel:"%s of %s"},reducedMotion:{speed:0,rewindSpeed:0,autoplay:"pause"}};function sp(e,t,n){var o=t.Slides;function a(){o.forEach((function(e){e.style("transform","translateX(-"+100*e.index+"%)")}))}return{mount:function(){qu(e).on([yu,Ou],a)},start:function(e,t){o.style("transition","opacity "+n.speed+"ms "+n.easing),mc(t)},cancel:gc}}function cp(e,t,n){var o,a=t.Move,r=t.Controller,l=t.Scroll,i=t.Elements.list,s=pc(Vc,i,"transition");function c(){s(""),l.cancel()}return{mount:function(){qu(e).bind(i,"transitionend",(function(e){e.target===i&&o&&(c(),o())}))},start:function(t,i){var c=a.toPosition(t,!0),u=a.getPosition(),d=function(t){var o=n.rewindSpeed;if(e.is(qd)&&o){var a=r.getIndex(!0),l=r.getEnd();if(0===a&&t>=l||a>=l&&0===t)return o}return n.speed}(t);uu(c-u)>=1&&d>=1?n.useScroll?l.scroll(c,d,!1,i):(s("transform "+d+"ms "+n.easing),a.translate(c,!0),o=i):(a.jump(t),i())},cancel:c}}var up=function(){function e(t,n){var o;this.event=qu(),this.Components={},this.state=(o=1,{set:function(e){o=e},is:function(e){return xc(Sc(e),o)}}),this.splides=[],this._o={},this._E={};var a=kc(t)?Xc(document,t):t;ru(a,a+" is invalid."),this.root=a,n=Fc({label:Zc(a,cd)||"",labelledby:Zc(a,ud)||""},ip,e.defaults,n||{});try{Fc(n,JSON.parse(Zc(a,au)))}catch(e){ru(!1,"Invalid JSON")}this._o=Object.create(Fc({},n))}var t,n,o=e.prototype;return o.mount=function(e,t){var n=this,o=this.state,a=this.Components;return ru(o.is([1,7]),"Already mounted!"),o.set(1),this._C=a,this._T=t||this._T||(this.is(Jd)?sp:cp),this._E=e||this._E,Bc(Dc({},lp,this._E,{Transition:this._T}),(function(e,t){var o=e(n,a,n._o);a[t]=o,o.setup&&o.setup()})),Bc(a,(function(e){e.mount&&e.mount()})),this.emit(yu),Ac(this.root,Ld),o.set(3),this.emit(ku),this},o.sync=function(e){return this.splides.push({splide:e}),e.splides.push({splide:this,isParent:!0}),this.state.is(3)&&(this._C.Sync.remount(),e.Components.Sync.remount()),this},o.go=function(e){return this._C.Controller.go(e),this},o.on=function(e,t){return this.event.on(e,t),this},o.off=function(e){return this.event.off(e),this},o.emit=function(e){var t;return(t=this.event).emit.apply(t,[e].concat(dc(arguments,1))),this},o.add=function(e,t){return this._C.Slides.add(e,t),this},o.remove=function(e){return this._C.Slides.remove(e),this},o.is=function(e){return this._o.type===e},o.refresh=function(){return this.emit(Ou),this},o.destroy=function(e){void 0===e&&(e=!0);var t=this.event,n=this.state;return n.is(1)?qu(this).on(ku,this.destroy.bind(this,e)):(Bc(this._C,(function(t){t.destroy&&t.destroy(e)}),!0),t.emit(Du),t.destroy(),e&&uc(this.splides),n.set(7)),this},t=e,(n=[{key:"options",get:function(){return this._o},set:function(e){this._C.Media.set(e,!0,!0)}},{key:"length",get:function(){return this._C.Slides.getLength(!0)}},{key:"index",get:function(){return this._C.Controller.getIndex()}}])&&sc(t.prototype,n),Object.defineProperty(t,"prototype",{writable:!1}),e}();up.defaults={},up.STATES={CREATED:1,MOUNTED:2,IDLE:3,MOVING:4,SCROLLING:5,DRAGGING:6,DESTROYED:7};var dp=[[yu,"onMounted"],[ku,"onReady"],[Eu,"onMove"],[wu,"onMoved"],[_u,"onClick"],[Su,"onActive"],[Cu,"onInactive"],[xu,"onVisible"],[Iu,"onHidden"],[Ou,"onRefresh"],[Au,"onUpdated"],[Mu,"onResize"],[Pu,"onResized"],[Tu,"onDrag"],[Nu,"onDragging"],[Ru,"onDragged"],[Lu,"onScroll"],[Bu,"onScrolled"],[Du,"onDestroy"],[Fu,"onArrowsMounted"],[zu,"onArrowsUpdated"],[ju,"onPaginationMounted"],[Hu,"onPaginationUpdated"],[Wu,"onNavigationMounted"],[Vu,"onAutoplayPlay"],[$u,"onAutoplayPlaying"],[Uu,"onAutoplayPause"],[Zu,"onLazyLoadLoaded"]];function pp(...e){return e.filter(Boolean).join(" ")}function mp(e){return null!==e&&"object"==typeof e}function gp(e,t){if(Array.isArray(e)&&Array.isArray(t))return e.length===t.length&&!e.some(((e,n)=>!gp(e,t[n])));if(mp(e)&&mp(t)){const n=Object.keys(e),o=Object.keys(t);return n.length===o.length&&!n.some((n=>!Object.prototype.hasOwnProperty.call(t,n)||!gp(e[n],t[n])))}return e===t}function hp(e,t){const n=e;return function(e,t){if(e){const n=Object.keys(e);for(let o=0;o<n.length;o++){const a=n[o];if("__proto__"!==a&&!1===t(e[a],a))break}}}(t,((e,t)=>{Array.isArray(e)?n[t]=e.slice():mp(e)?n[t]=hp(mp(n[t])?n[t]:{},e):n[t]=e})),n}var bp=({children:e,className:t,...n})=>i().createElement("div",{className:pp("splide__track",t),...n},i().createElement("ul",{className:"splide__list"},e)),fp=class extends i().Component{constructor(){super(...arguments),this.splideRef=i().createRef(),this.slides=[]}componentDidMount(){const{options:e,extensions:t,transition:n}=this.props,{current:o}=this.splideRef;o&&(this.splide=new up(o,e),this.bind(this.splide),this.splide.mount(t,n),this.options=hp({},e||{}),this.slides=this.getSlides())}componentWillUnmount(){this.splide&&(this.splide.destroy(),this.splide=void 0),this.options=void 0,this.slides.length=0}componentDidUpdate(){if(!this.splide)return;const{options:e}=this.props;e&&!gp(this.options,e)&&(this.splide.options=e,this.options=hp({},e));const t=this.getSlides();var n,o;n=this.slides,o=t,(n.length!==o.length||n.some(((e,t)=>e!==o[t])))&&(this.splide.refresh(),this.slides=t)}sync(e){var t;null==(t=this.splide)||t.sync(e)}go(e){var t;null==(t=this.splide)||t.go(e)}getSlides(){var e;if(this.splide){const t=null==(e=this.splide.Components.Elements)?void 0:e.list.children;return t&&Array.prototype.slice.call(t)||[]}return[]}bind(e){dp.forEach((([t,n])=>{const o=this.props[n];"function"==typeof o&&e.on(t,((...t)=>{o(e,...t)}))}))}omit(e,t){return t.forEach((t=>{Object.prototype.hasOwnProperty.call(e,t)&&delete e[t]})),e}render(){const{className:e,tag:t="div",hasTrack:n=!0,children:o,...a}=this.props;return i().createElement(t,{className:pp("splide",e),ref:this.splideRef,...this.omit(a,["options",...dp.map((e=>e[1]))])},n?i().createElement(bp,null,o):o)}},vp=({children:e,className:t,...n})=>i().createElement("li",{className:pp("splide__slide",t),...n},e);const yp=[{value:"normal",label:(0,o.__)("Normal","kadence-blocks")},{value:"multiply",label:(0,o.__)("Multiply","kadence-blocks")},{value:"screen",label:(0,o.__)("Screen","kadence-blocks")},{value:"overlay",label:(0,o.__)("Overlay","kadence-blocks")},{value:"darken",label:(0,o.__)("Darken","kadence-blocks")},{value:"lighten",label:(0,o.__)("Lighten","kadence-blocks")},{value:"color-dodge",label:(0,o.__)("Color Dodge","kadence-blocks")},{value:"color-burn",label:(0,o.__)("Color Burn","kadence-blocks")},{value:"difference",label:(0,o.__)("Difference","kadence-blocks")},{value:"exclusion",label:(0,o.__)("Exclusion","kadence-blocks")},{value:"hue",label:(0,o.__)("Hue","kadence-blocks")},{value:"saturation",label:(0,o.__)("Saturation","kadence-blocks")},{value:"color",label:(0,o.__)("Color","kadence-blocks")},{value:"luminosity",label:(0,o.__)("Luminosity","kadence-blocks")}],kp=[{value:"0",label:(0,o.__)("None","kadence-blocks"),size:0,name:(0,o.__)("None","kadence-blocks")},{value:"xxs",output:"var(--global-kb-spacing-xxs, 0.5rem)",size:8,label:(0,o.__)("XXS","kadence-blocks"),name:(0,o.__)("2X Small","kadence-blocks")},{value:"xs",output:"var(--global-kb-spacing-xs, 1rem)",size:16,label:(0,o.__)("XS","kadence-blocks"),name:(0,o.__)("X Small","kadence-blocks")},{value:"sm",output:"var(--global-kb-spacing-sm, 1.5rem)",size:24,label:(0,o.__)("SM","kadence-blocks"),name:(0,o.__)("Small","kadence-blocks")},{value:"md",output:"var(--global-kb-spacing-md, 2rem)",size:32,label:(0,o.__)("MD","kadence-blocks"),name:(0,o.__)("Medium","kadence-blocks")},{value:"lg",output:"var(--global-kb-spacing-lg, 3rem)",size:48,label:(0,o.__)("LG","kadence-blocks"),name:(0,o.__)("Large","kadence-blocks")},{value:"xl",output:"var(--global-kb-spacing-xl, 4rem)",size:64,label:(0,o.__)("XL","kadence-blocks"),name:(0,o.__)("X Large","kadence-blocks")},{value:"xxl",output:"var(--global-kb-spacing-xxl, 5rem)",size:80,label:(0,o.__)("XXL","kadence-blocks"),name:(0,o.__)("2X Large","kadence-blocks")},{value:"3xl",output:"var(--global-kb-spacing-3xl, 6.5rem)",size:104,label:(0,o.__)("3XL","kadence-blocks"),name:(0,o.__)("3X Large","kadence-blocks")},{value:"4xl",output:"var(--global-kb-spacing-4xl, 8rem)",size:128,label:(0,o.__)("4XL","kadence-blocks"),name:(0,o.__)("4X Large","kadence-blocks")},{value:"5xl",output:"var(--global-kb-spacing-5xl, 10rem)",size:160,label:(0,o.__)("5XL","kadence-blocks"),name:(0,o.__)("5X Large","kadence-blocks")}],Ep={1:{equal:[100]},2:{"left-golden":[66.67,33.33],"right-golden":[33.33,66.67],equal:[50,50]},3:{"first-row":[100,50,50],"left-half":[50,25,25],"right-half":[25,25,50],"center-half":[25,50,25],"center-wide":[20,60,20],"center-exwide":[15,70,15],equal:[33.33,33.33,33.33]},4:{"left-forty":[40,20,20,20],"right-forty":[20,20,20,40],equal:[25,25,25,25]},5:{equal:[20,20,20,20,20]},6:{equal:[16.66,16.66,16.66,16.66,16.66,16.66]}},_p=[0,8,16,24,32,48,64,80,104,128,160];function Sp(e,t){return e&&t>1?`(${e} * ${t-1})`:0}function Cp(e,t,n,o){let a="var(--global-row-gutter-md, 2rem)";switch(void 0!==t?t:"default"){case"none":a=0;break;case"skinny":a="var(--global-row-gutter-sm, 1rem)";break;case"wider":a="var(--global-row-gutter-lg, 4rem)";break;case"custom":const t=void 0!==o&&o?o:"px";let r=void 0!==n&&void 0!==n[0]?n[0]:30;"Tablet"===e?r=void 0!==n&&void 0!==n[1]&&""!==n[1]?n[1]:r:"Mobile"===e&&(r=void 0!==n&&void 0!==n[2]&&""!==n[2]?n[2]:r),r&&(r+=t),a=r}return a}function xp(e,t){if(!e)return(0,o.__)("None","kadence-blocks");if(!kp)return(0,o.__)("Unset","kadence-blocks");if("0"===e)return(0,o.__)("None","kadence-blocks");const n=kp.find((t=>t.value===e));return n?n.name:e+t}function Ip(e,t){if(void 0===e)return"";if(!kp)return e;if("0"===e)return"0"+t;if(0===e)return"0"+t;const n=kp.find((t=>t.value===e));return n?n.output:e+t}function Op(e){if(!e)return 0;if(!kp)return e;if("0"===e)return 0;const t=kp.find((t=>t.value===e));return t?t.size:e}const Ap=function({attributes:e,previewDevice:t,backgroundClasses:n,children:o,dynamicBackgroundImg:a}){const{uniqueID:r,columns:i,mobileLayout:s,currentTab:c,colLayout:u,tabletLayout:d,columnGutter:p,collapseGutter:m,collapseOrder:g,tabletPadding:h,mobilePadding:b,padding:f,topMargin:v,bottomMargin:y,topMarginM:k,bottomMarginM:E,bgColor:w,bgImg:_,bgImgAttachment:S,bgImgSize:C,bgImgPosition:x,bgImgRepeat:I,bgImgID:O,verticalAlignment:A,overlayOpacity:M,overlayBgImg:P,overlayBgImgAttachment:T,overlayBgImgID:N,overlayBgImgPosition:R,overlayBgImgRepeat:L,overlayBgImgSize:B,currentOverlayTab:D,overlayBlendMode:F,overlayGradAngle:z,overlayGradLoc:j,overlayGradLocSecond:H,overlayGradType:W,overlay:V,overlaySecond:$,htmlTag:U,minHeight:Z,maxWidth:G,bottomSep:q,bottomSepColor:K,bottomSepHeight:J,bottomSepHeightMobile:Y,bottomSepHeightTab:X,bottomSepWidth:Q,bottomSepWidthMobile:ee,bottomSepWidthTab:te,topSep:ne,topSepColor:oe,topSepHeight:ae,topSepHeightMobile:re,topSepHeightTab:le,topSepWidth:ie,topSepWidthMobile:se,topSepWidthTab:ce,firstColumnWidth:ue,secondColumnWidth:de,textColor:pe,linkColor:me,linkHoverColor:ge,topMarginT:he,bottomMarginT:be,minHeightUnit:fe,maxWidthUnit:ve,marginUnit:ye,columnsUnlocked:ke,tabletBackground:Ee,tabletOverlay:we,mobileBackground:_e,mobileOverlay:Se,columnsInnerHeight:Ce,zIndex:xe,backgroundInline:Ie,backgroundSettingTab:Oe,backgroundSliderCount:Ae,backgroundSlider:Me,inheritMaxWidth:Pe,backgroundSliderSettings:Te,backgroundVideo:Ne,backgroundVideoType:Re,overlaySecondOpacity:Le,overlayFirstOpacity:Be,paddingUnit:De,align:Fe,minHeightTablet:ze,minHeightMobile:je,bgColorClass:He,vsdesk:We,vstablet:Ve,vsmobile:$e,loggedInUser:Ue,loggedIn:Ze,loggedOut:Ge,loggedInShow:qe,borderWidth:Ke,tabletBorderWidth:Je,mobileBorderWidth:Ye,borderRadius:Xe,tabletBorderRadius:Qe,mobileBorderRadius:et,border:tt,tabletBorder:nt,mobileBorder:ot,gradient:at,margin:rt,tabletMargin:lt,mobileMargin:it,borderStyle:st,tabletBorderStyle:ct,mobileBorderStyle:ut,borderRadiusUnit:dt,borderRadiusOverflow:pt,displayBoxShadow:mt,boxShadow:gt}=e,ht=(0,At.getPreviewSize)(t,void 0!==rt&&void 0!==rt[0]?rt[0]:"",void 0!==lt&&void 0!==lt[0]?lt[0]:"",void 0!==it&&void 0!==it[0]?it[0]:""),bt=(0,At.getPreviewSize)(t,void 0!==rt&&void 0!==rt[2]?rt[2]:"",void 0!==lt&&void 0!==lt[2]?lt[2]:"",void 0!==it&&void 0!==it[2]?it[2]:""),ft=Ee?.[0]?.type||"normal",vt="normal"===(_e?.[0]?.type||"normal")&&""===_e?.[0]?.bgImg&&("normal"===ft&&""!==Ee?.[0]?.bgImg||"gradient"===ft&&""!==Ee?.[0]?.gradient||"normal"===Oe&&""!==_||"gradient"===Oe&&""!==at),yt="normal"===ft&&""===Ee?.[0]?.bgImg&&("normal"===Oe&&""!==_||"gradient"===Oe&&""!==at),kt=(0,At.getPreviewSize)(t,void 0!==w?w:"",void 0!==Ee&&Ee[0]&&Ee[0].bgColor&&Ee[0].enable?Ee[0].bgColor:"",void 0!==_e&&_e[0]&&_e[0].bgColor&&_e[0].enable?_e[0].bgColor:""),Et=(0,At.getBorderStyle)(t,"top",st,ct,ut),wt=(0,At.getBorderStyle)(t,"right",st,ct,ut),_t=(0,At.getBorderStyle)(t,"bottom",st,ct,ut),St=(0,At.getBorderStyle)(t,"left",st,ct,ut),xt=(0,At.getPreviewSize)(t,void 0!==Xe?Xe[0]:"",void 0!==Qe?Qe[0]:"",void 0!==et?et[0]:""),It=(0,At.getPreviewSize)(t,void 0!==Xe?Xe[1]:"",void 0!==Qe?Qe[1]:"",void 0!==et?et[1]:""),Ot=(0,At.getPreviewSize)(t,void 0!==Xe?Xe[2]:"",void 0!==Qe?Qe[2]:"",void 0!==et?et[2]:""),Mt=(0,At.getPreviewSize)(t,void 0!==Xe?Xe[3]:"",void 0!==Qe?Qe[3]:"",void 0!==et?et[3]:""),Pt=(0,At.getPreviewSize)(t,void 0!==Z?Z:"",void 0!==ze?ze:"",void 0!==je?je:"");let Tt=(0,At.getPreviewSize)(t,_?`url(${_})`:void 0,void 0!==Ee&&Ee[0]&&Ee[0].bgImg&&Ee[0].enable?`url(${Ee[0].bgImg})`:"",void 0!==_e&&_e[0]&&_e[0].bgImg&&_e[0].enable?`url(${_e[0].bgImg})`:"");Tt=(0,At.getPreviewSize)(t,Oe&&"gradient"==Oe?at:Tt,"gradient"==Ee?.[0]?.type&&Ee?.[0]?.gradient&&Ee?.[0]?.enable?Ee[0].gradient:Tt,void 0!==_e[0]&&void 0!==_e[0].type&&"gradient"==_e[0].type&&void 0!==_e[0].gradient&&_e[0].gradient&&_e[0].enable?_e[0].gradient:Tt),Tt=(0,At.getPreviewSize)(t,Tt,yt&&Ee?.[0]?.forceOverDesk&&Ee?.[0]?.enable?"none":Tt,vt&&_e?.[0]?.forceOverDesk&&_e?.[0]?.enable?"none":Tt),Tt=(0,At.getPreviewSize)(t,Tt,"gradient"!==Ee?.[0]?.type&&""===Ee?.[0]?.bgImg&&Ee?.[0]?.enable?"none":Tt,"gradient"!==_e?.[0]?.type&&""===_e?.[0]?.bgImg&&_e?.[0]?.enable?"none":Tt),"none"===Tt&&(Tt=void 0),Tt=a||Tt;const Nt=(0,At.getPreviewSize)(t,C||void 0,void 0!==Ee&&Ee[0]&&Ee[0].bgImgSize&&Ee[0].enable?Ee[0].bgImgSize:"",void 0!==_e&&_e[0]&&_e[0].bgImgSize&&_e[0].enable?_e[0].bgImgSize:""),Rt=(0,At.getPreviewSize)(t,x||void 0,void 0!==Ee&&Ee[0]&&Ee[0].bgImgPosition&&Ee[0].enable?Ee[0].bgImgPosition:"",void 0!==_e&&_e[0]&&_e[0].bgImgPosition&&_e[0].enable?_e[0].bgImgPosition:""),Lt=(0,At.getPreviewSize)(t,I||void 0,void 0!==Ee&&Ee[0]&&Ee[0].bgImgRepeat&&Ee[0].enable?Ee[0].bgImgRepeat:"",void 0!==_e&&_e[0]&&_e[0].bgImgRepeat&&_e[0].enable?_e[0].bgImgRepeat:""),Bt=(0,At.getPreviewSize)(t,S||void 0,void 0!==Ee&&Ee[0]&&Ee[0].bgImgAttachment&&Ee[0].enable?Ee[0].bgImgAttachment:"",void 0!==_e&&_e[0]&&_e[0].bgImgAttachment&&_e[0].enable?_e[0].bgImgAttachment:""),Dt=(0,At.getPreviewSize)(t,Oe||"normal",void 0!==Ee&&Ee?.[0]&&Ee?.[0]?.enable?"normal":"",void 0!==_e&&_e?.[0]&&_e?.[0]?.enable?"normal":""),Ft={type:Te&&Te[0]&&void 0!==Te[0].fade&&Te[0].fade?"fade":"slide",dots:!Te||!Te[0]||"none"!==Te[0].dotStyle,arrows:!(!Te||!Te[0]||"none"===Te[0].arrowStyle),perPage:1,rewind:!0,pagination:!Te||!Te[0]||"none"!==Te[0].dotStyle,speed:Te&&Te[0]&&void 0!==Te[0].tranSpeed?Te[0].tranSpeed:400,drag:!1,interval:Te&&Te[0]&&void 0!==Te[0].speed?Te[0].speed:7e3,autoplay:!Te||!Te[0]||void 0===Te[0].autoPlay||Te[0].autoPlay},zt=e=>(0,l.createElement)("div",{className:"kb-bg-slide-contain"},(0,l.createElement)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:void 0!==Me&&void 0!==Me[e]&&void 0!==Me[e].bgColor?(0,At.KadenceColorOutput)(Me[e].bgColor):void 0,backgroundImage:void 0!==Me&&void 0!==Me[e]&&void 0!==Me[e].bgImg?'url("'+Me[e].bgImg+'")':void 0,backgroundSize:C,backgroundPosition:x,backgroundRepeat:I}})),jt=(0,An.useBlockProps)({className:n,style:{marginBottom:Ip(bt,ye||"px"),marginTop:Ip(ht,ye||"px"),borderTop:Et||void 0,borderRight:wt||void 0,borderBottom:_t||void 0,borderLeft:St||void 0,borderTopLeftRadius:xt?xt+(dt||"px"):void 0,borderTopRightRadius:It?It+(dt||"px"):void 0,borderBottomRightRadius:Ot?Ot+(dt||"px"):void 0,borderBottomLeftRadius:Mt?Mt+(dt||"px"):void 0,minHeight:Pt?Pt+fe:void 0,zIndex:xe||void 0,boxShadow:void 0!==mt&&mt&&void 0!==gt&&void 0!==gt[0]&&void 0!==gt[0].color?(void 0!==gt[0].inset&&gt[0].inset?"inset ":"")+(void 0!==gt[0].hOffset?gt[0].hOffset:0)+"px "+(void 0!==gt[0].vOffset?gt[0].vOffset:0)+"px "+(void 0!==gt[0].blur?gt[0].blur:14)+"px "+(void 0!==gt[0].spread?gt[0].spread:0)+"px "+(0,At.KadenceColorOutput)(void 0!==gt[0].color?gt[0].color:"#000000",void 0!==gt[0].opacity?gt[0].opacity:.2):void 0},"data-align":"full"===Fe||"wide"===Fe||"center"===Fe?Fe:void 0});return(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{...jt},"slider"!==Dt&&"video"!==Dt&&(0,l.createElement)("div",{className:"kt-row-layout-background"+(Tt&&"parallax"===Bt?" kt-jarallax":""),"data-bg-img-id":O,style:{backgroundColor:kt?(0,At.KadenceColorOutput)(kt):void 0,backgroundImage:Tt||void 0,backgroundSize:Nt||void 0,backgroundPosition:Rt||void 0,backgroundRepeat:Lt||void 0,backgroundAttachment:"parallax"===Bt?"fixed":Bt,borderTopLeftRadius:!pt&&xt?xt+(dt||"px"):void 0,borderTopRightRadius:!pt&&It?It+(dt||"px"):void 0,borderBottomRightRadius:!pt&&Ot?Ot+(dt||"px"):void 0,borderBottomLeftRadius:!pt&&Mt?Mt+(dt||"px"):void 0}}),"slider"===Dt&&(0,l.createElement)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${Te&&Te[0]&&void 0!==Te[0].dotStyle?Te[0].dotStyle:"dark"}`},1!==Ae&&(0,l.createElement)(fp,{options:Ft,className:`kt-carousel-arrowstyle-${Te&&Te[0]&&void 0!==Te[0].arrowStyle?Te[0].arrowStyle:"none"}`,...Ft},(0,Ct.times)(Ae,(e=>(0,l.createElement)(vp,{className:"kadence-blocks-gallery-item"},zt(e))))),1===(void 0!==Ae?Ae:1)&&(0,Ct.times)(void 0!==Ae?Ae:1,(e=>zt(e)))),"video"===Dt&&(0,l.createElement)("div",{className:"kb-blocks-bg-video-container",style:{backgroundColor:kt?(0,At.KadenceColorOutput)(kt):void 0}},(void 0===Re||"local"===Re)&&(0,l.createElement)("video",{className:"kb-blocks-bg-video",playsinline:"",loop:"",src:void 0!==Ne&&void 0!==Ne[0]&&void 0!==Ne[0].local?Ne[0].local:void 0}),"youtube"===Re&&(0,l.createElement)("div",{className:"kb-blocks-bg-video",style:{backgroundImage:`url(https://img.youtube.com/vi/${Ne[0].youTube}/maxresdefault.jpg)`}}),"vimeo"===Re&&(0,l.createElement)("div",{className:"kb-blocks-bg-video",style:{backgroundImage:`url(https://vumbnail.com/${Ne[0].vimeo}.jpg)`}})),o))};function Mp({value:e,isPressed:t=!1}){const n={normal:"M19.5 19.482H.5V.5h19v18.982zM1.607 18.375h16.786V1.607H1.607v16.768zm12.247-9.23l-1.599-1.599 1.269-1.231 3.655 3.693-3.655 3.692-1.269-1.23 1.614-1.615H6.15l1.614 1.615-1.268 1.23-3.655-3.692 3.655-3.693 1.268 1.231-1.598 1.599h7.688z",theme:"M19.5 19.482H.5V.5h19v18.982zM1.607 18.375h16.786V1.607H1.607v16.768zm13.838-9.23H4.557V6.756H2.846v6.488h1.711v-2.389h10.888v2.389h1.711V6.756h-1.711v2.389z"};return n.hasOwnProperty(e)?(0,l.createElement)(Rt.SVG,{width:"20",height:"20",viewBox:"0 0 20 20",xmlns:"http://www.w3.org/2000/svg",isPressed:t},(0,l.createElement)(Rt.Path,{d:n[e]})):null}const Pp=function(e,t,n=null){const o={bottom:{ct:(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}),cti:(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}),ctd:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})),ctdi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})),sltl:(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}),sltli:(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}),sltr:(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}),sltri:(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}),crv:(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}),crvi:(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}),crvl:(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}),crvli:(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}),crvr:(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}),crvri:(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}),wave:(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),wavei:(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),waves:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})),wavesi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})),mtns:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})),littri:(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}),littrii:(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}),threelevels:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})),threelevelsi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"}))},top:{ct:(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}),cti:(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}),ctd:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})),ctdi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})),sltl:(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}),sltli:(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}),sltr:(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}),sltri:(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}),crv:(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}),crvi:(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}),crvl:(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}),crvli:(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}),crvr:(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}),crvri:(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}),wave:(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),wavei:(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),waves:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})),wavesi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})),mtns:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})),littri:(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}),littrii:(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}),threelevels:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})),threelevelsi:(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"}))}};if(o[t][e])return(0,l.createElement)("svg",{viewBox:"0 0 1000 100",preserveAspectRatio:"none",className:`kadence-row-divider-${t}`,style:{fill:"currentColor",width:n||void 0}},o[t][e])},Tp=JSON.parse('{"$schema":"https://schemas.wp.org/trunk/block.json","apiVersion":3,"name":"kadence/rowlayout","title":"Row Layout","category":"kadence-blocks","usesContext":["postId","queryId","kadence/dynamicSource","kadence/repeaterRowData","kadence/repeaterRow"],"textdomain":"kadence-blocks","attributes":{"uniqueID":{"type":"string","default":""},"columns":{"type":"number","default":2},"mobileLayout":{"type":"string","default":"row"},"tabletLayout":{"type":"string","default":"inherit"},"collapseOrder":{"type":"string","default":"left-to-right"},"collapseOrderTablet":{"type":"string","default":""},"collapseGutter":{"type":"string","default":"default"},"tabletRowGutter":{"type":"string","default":""},"mobileRowGutter":{"type":"string","default":""},"rowGutterType":{"type":"string","default":"px"},"customRowGutter":{"type":"array","default":["","",""]},"columnGutter":{"type":"string","default":"default"},"tabletGutter":{"type":"string","default":""},"mobileGutter":{"type":"string","default":""},"gutterType":{"type":"string","default":"px"},"customGutter":{"type":"array","default":["","",""]},"colLayout":{"type":"string","default":""},"currentTab":{"type":"string","default":"desk"},"currentOverlayTab":{"type":"string","default":"normal"},"htmlTag":{"type":"string","default":"div"},"minHeight":{"type":"number","default":0},"maxWidth":{"type":"number","default":""},"topPadding":{"type":"number","default":""},"bottomPadding":{"type":"number","default":""},"leftPadding":{"type":"number","default":""},"rightPadding":{"type":"number","default":""},"topPaddingM":{"type":"number","default":""},"bottomPaddingM":{"type":"number","default":""},"leftPaddingM":{"type":"number","default":""},"rightPaddingM":{"type":"number","default":""},"topMargin":{"type":"number","default":""},"bottomMargin":{"type":"number","default":""},"topMarginM":{"type":"number","default":""},"bottomMarginM":{"type":"number","default":""},"bgColor":{"type":"string","default":""},"bgImg":{"type":"string","default":""},"bgImgID":{"type":"string","default":""},"bgImgSize":{"type":"string","default":"cover"},"bgImgPosition":{"type":"string","default":"center center"},"bgImgAttachment":{"type":"string","default":"scroll"},"bgImgRepeat":{"type":"string","default":"no-repeat"},"overlay":{"type":"string","default":""},"overlaySecond":{"type":"string","default":"#00B5E2"},"overlayFirstOpacity":{"type":"number","default":""},"overlaySecondOpacity":{"type":"number","default":""},"overlayGradLoc":{"type":"number","default":0},"overlayGradLocSecond":{"type":"number","default":100},"overlayGradType":{"type":"string","default":"linear"},"overlayGradAngle":{"type":"number","default":180},"overlayBgImg":{"type":"string","default":""},"overlayBgImgID":{"type":"string","default":""},"overlayBgImgSize":{"type":"string","default":"cover"},"overlayBgImgPosition":{"type":"string","default":"center center"},"overlayBgImgAttachment":{"type":"string","default":"scroll"},"overlayBgImgRepeat":{"type":"string","default":"no-repeat"},"overlayOpacity":{"type":"number","default":30},"overlayBlendMode":{"type":"string","default":"none"},"blockAlignment":{"type":"string","default":"none"},"align":{"type":"string","default":"none"},"verticalAlignment":{"type":"string","default":"top"},"topSep":{"type":"string","default":"none"},"topSepColor":{"type":"string","default":"#ffffff"},"topSepFlip":{"type":"boolean","default":false},"topSepHeight":{"type":"number","default":100},"topSepHeightTab":{"type":"number","default":""},"topSepHeightMobile":{"type":"number","default":""},"topSepHeightUnit":{"type":"string","default":"px"},"bottomSep":{"type":"string","default":"none"},"bottomSepColor":{"type":"string","default":"#ffffff"},"bottomSepFlip":{"type":"boolean","default":false},"bottomSepHeight":{"type":"number","default":100},"bottomSepWidth":{"type":"number","default":100},"bottomSepWidthTab":{"type":"number","default":""},"bottomSepWidthMobile":{"type":"number","default":""},"bottomSepHeightUnit":{"type":"string","default":"px"},"bottomSepHeightTab":{"type":"number","default":""},"bottomSepHeightMobile":{"type":"number","default":""},"firstColumnWidth":{"type":"number"},"secondColumnWidth":{"type":"number"},"thirdColumnWidth":{"type":"number"},"fourthColumnWidth":{"type":"number"},"fifthColumnWidth":{"type":"number"},"sixthColumnWidth":{"type":"number"},"firstColumnWidthTablet":{"type":"number"},"secondColumnWidthTablet":{"type":"number"},"thirdColumnWidthTablet":{"type":"number"},"fourthColumnWidthTablet":{"type":"number"},"fifthColumnWidthTablet":{"type":"number"},"sixthColumnWidthTablet":{"type":"number"},"firstColumnWidthMobile":{"type":"number"},"secondColumnWidthMobile":{"type":"number"},"thirdColumnWidthMobile":{"type":"number"},"fourthColumnWidthMobile":{"type":"number"},"fifthColumnWidthMobile":{"type":"number"},"sixthColumnWidthMobile":{"type":"number"},"textColor":{"type":"string","default":""},"linkColor":{"type":"string","default":""},"linkHoverColor":{"type":"string","default":""},"tabletPadding":{"type":"array","default":["","","",""]},"topMarginT":{"type":"number","default":""},"bottomMarginT":{"type":"number","default":""},"marginUnit":{"type":"string","default":"px"},"minHeightUnit":{"type":"string","default":"px"},"maxWidthUnit":{"type":"string","default":"px"},"columnsUnlocked":{"type":"boolean","default":false},"tabletBackground":{"type":"array","default":[{"enable":false,"bgColor":"","bgImg":"","bgImgID":"","bgImgSize":"cover","bgImgPosition":"center center","bgImgAttachment":"scroll","bgImgRepeat":"no-repeat","forceOverDesk":false}]},"tabletOverlay":{"type":"array","default":[{"enable":false,"currentOverlayTab":"normal","overlay":"","overlaySecond":"#00B5E2","overlayGradLoc":0,"overlayGradLocSecond":100,"overlayGradType":"linear","overlayGradAngle":180,"overlayBgImg":"","overlayBgImgID":"","overlayBgImgSize":"cover","overlayBgImgPosition":"center center","overlayBgImgAttachment":"scroll","overlayBgImgRepeat":"no-repeat","overlayOpacity":30,"overlayBlendMod":"none"}]},"mobileBackground":{"type":"array","default":[{"enable":false,"bgColor":"","bgImg":"","bgImgID":"","bgImgSize":"cover","bgImgPosition":"center center","bgImgAttachment":"scroll","bgImgRepeat":"no-repeat","forceOverDesk":false}]},"mobileOverlay":{"type":"array","default":[{"enable":false,"currentOverlayTab":"normal","overlay":"","overlaySecond":"#00B5E2","overlayGradLoc":0,"overlayGradLocSecond":100,"overlayGradType":"linear","overlayGradAngle":180,"overlayBgImg":"","overlayBgImgID":"","overlayBgImgSize":"cover","overlayBgImgPosition":"center center","overlayBgImgAttachment":"scroll","overlayBgImgRepeat":"no-repeat","overlayOpacity":30,"overlayBlendMod":"none"}]},"columnsInnerHeight":{"type":"boolean","default":false},"topSepWidth":{"type":"number","default":100},"topSepWidthTablet":{"type":"number","default":""},"topSepWidthMobile":{"type":"number","default":""},"backgroundInline":{"type":"boolean","default":false},"backgroundSettingTab":{"type":"string","default":"normal"},"backgroundSliderCount":{"type":"number","default":1},"backgroundSlider":{"type":"array","default":[{"bgColor":"","bgImg":"","bgImgID":""}]},"backgroundSliderSettings":{"type":"array","default":[{"arrowStyle":"none","dotStyle":"dark","autoPlay":true,"speed":7000,"fade":true,"tranSpeed":400}]},"backgroundVideoType":{"type":"string","default":"local"},"backgroundVideo":{"type":"array","default":[{"youTube":"","local":"","localID":"","vimeo":"","ratio":"16/9","btns":false,"loop":true,"mute":true}]},"zIndex":{"type":"number","default":""},"paddingUnit":{"type":"string","default":"px"},"inheritMaxWidth":{"type":"boolean","default":false},"noCustomDefaults":{"type":"boolean","default":false},"isPrebuiltModal":{"type":"boolean","default":false},"minHeightTablet":{"type":"number","default":""},"minHeightMobile":{"type":"number","default":""},"bgColorClass":{"type":"string","default":""},"vsdesk":{"type":"boolean","default":false},"vstablet":{"type":"boolean","default":false},"vsmobile":{"type":"boolean","default":false},"loggedIn":{"type":"boolean","default":false},"loggedInUser":{"type":"array"},"loggedInShow":{"type":"array"},"rcpAccess":{"type":"string","default":""},"rcpMembership":{"type":"boolean","default":false},"rcpMembershipLevel":{"type":"array"},"loggedOut":{"type":"boolean","default":false},"borderWidth":{"type":"array","default":["","","",""]},"tabletBorderWidth":{"type":"array","default":["","","",""]},"mobileBorderWidth":{"type":"array","default":["","","",""]},"borderRadius":{"type":"array","default":["","","",""]},"tabletBorderRadius":{"type":"array","default":["","","",""]},"mobileBorderRadius":{"type":"array","default":["","","",""]},"borderRadiusUnit":{"type":"string","default":"px"},"border":{"type":"string","default":""},"tabletBorder":{"type":"string","default":""},"mobileBorder":{"type":"string","default":""},"responsiveMaxWidth":{"type":"array","default":["",""]},"inQueryBlock":{"type":"boolean","default":false},"gradient":{"type":"string","default":""},"overlayGradient":{"type":"string","default":""},"tabletBackgroundType":{"type":"string","default":"normal"},"mobileBackgroundType":{"type":"string","default":"normal"},"padding":{"type":"array","default":["sm","","sm",""]},"mobilePadding":{"type":"array","default":["","","",""]},"margin":{"type":"array","default":["","","",""]},"tabletMargin":{"type":"array","default":["","","",""]},"mobileMargin":{"type":"array","default":["","","",""]},"borderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"tabletBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"mobileBorderStyle":{"type":"array","default":[{"top":["","",""],"right":["","",""],"bottom":["","",""],"left":["","",""],"unit":"px"}]},"breakoutLeft":{"type":"boolean","default":false},"breakoutRight":{"type":"boolean","default":false},"anchor":{"type":"string"},"templateLock":{"type":["string","boolean"],"enum":["all","insert","contentOnly",false]},"borderRadiusOverflow":{"type":"boolean","default":true},"displayBoxShadow":{"type":"boolean","default":false},"boxShadow":{"type":"array","default":[{"color":"#000000","opacity":0.2,"spread":0,"blur":14,"hOffset":0,"vOffset":0,"inset":false}]},"kbVersion":{"type":"number","default":""}},"supports":{"anchor":true,"ktdynamic":true,"kbcss":true,"html":false,"kbMetadata":true}}'),Np=function({clientId:e,attributes:t,setAttributes:n,updateColumns:r,innerItemCount:i,widthString:s,previewDevice:c}){const{uniqueID:u,columns:d,mobileLayout:p,currentTab:m,colLayout:g,tabletLayout:h,columnGutter:b,customGutter:f,customRowGutter:v,collapseGutter:y,tabletGutter:k,mobileGutter:E,tabletRowGutter:w,mobileRowGutter:_,gutterType:S,rowGutterType:C,collapseOrder:x,topPadding:I,bottomPadding:O,leftPadding:A,rightPadding:M,topPaddingM:P,bottomPaddingM:T,leftPaddingM:N,rightPaddingM:R,topMargin:L,bottomMargin:B,topMarginM:D,bottomMarginM:F,bgColor:z,bgImg:j,bgImgAttachment:H,bgImgSize:W,bgImgPosition:V,bgImgRepeat:$,bgImgID:U,verticalAlignment:Z,overlayOpacity:G,overlayBgImg:q,overlayBgImgAttachment:K,overlayBgImgID:J,overlayBgImgPosition:Y,overlayBgImgRepeat:X,overlayBgImgSize:Q,currentOverlayTab:ee,overlayBlendMode:te,overlayGradAngle:ne,overlayGradLoc:oe,overlayGradLocSecond:ae,overlayGradType:re,overlay:le,overlaySecond:ie,htmlTag:se,minHeight:ce,maxWidth:ue,bottomSep:de,bottomSepColor:pe,bottomSepHeight:me,bottomSepHeightMobile:ge,bottomSepHeightTab:he,bottomSepWidth:be,bottomSepWidthMobile:fe,bottomSepWidthTab:ve,topSep:ye,topSepColor:ke,topSepHeight:Ee,topSepHeightMobile:we,topSepHeightTab:_e,topSepWidth:Se,topSepWidthMobile:Ce,topSepWidthTab:xe,firstColumnWidth:Ie,secondColumnWidth:Oe,textColor:Ae,linkColor:Me,linkHoverColor:Pe,tabletPadding:Te,topMarginT:Ne,bottomMarginT:Re,minHeightUnit:Le,maxWidthUnit:Be,marginUnit:De,columnsUnlocked:Fe,tabletBackground:ze,tabletOverlay:je,mobileBackground:He,mobileOverlay:We,columnsInnerHeight:Ve,zIndex:$e,backgroundInline:Ue,backgroundSettingTab:Ze,backgroundSliderCount:Ge,backgroundSlider:qe,inheritMaxWidth:Ke,backgroundSliderSettings:Je,backgroundVideo:Ye,backgroundVideoType:Xe,overlaySecondOpacity:Qe,overlayFirstOpacity:et,paddingUnit:tt,align:nt,minHeightTablet:ot,minHeightMobile:at,bgColorClass:rt,vsdesk:lt,vstablet:it,vsmobile:st,loggedInUser:ct,loggedIn:ut,loggedOut:dt,loggedInShow:pt,rcpAccess:mt,rcpMembership:gt,rcpMembershipLevel:ht,borderWidth:bt,tabletBorderWidth:ft,mobileBorderWidth:vt,borderRadius:yt,tabletBorderRadius:kt,mobileBorderRadius:Et,border:wt,tabletBorder:_t,mobileBorder:St,isPrebuiltModal:Ct,responsiveMaxWidth:xt,kadenceBlockCSS:It,breakoutLeft:Mt,breakoutRight:Pt,topSepHeightUnit:Tt,bottomSepHeightUnit:Lt}=t;let Bt,Dt;document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,Bt=2===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.twoColIcon},{value:"left-golden",label:(0,o.__)("Left Heavy 66/33","kadence-blocks"),icon:a.twoLeftGoldenIcon},{value:"right-golden",label:(0,o.__)("Right Heavy 33/66","kadence-blocks"),icon:a.twoRightGoldenIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowIcon}]:3===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.threeColIcon},{value:"left-half",label:(0,o.__)("Left Heavy 50/25/25","kadence-blocks"),icon:a.leftHalfIcon},{value:"right-half",label:(0,o.__)("Right Heavy 25/25/50","kadence-blocks"),icon:a.rightHalfIcon},{value:"center-half",label:(0,o.__)("Center Heavy 25/50/25","kadence-blocks"),icon:a.centerHalfIcon},{value:"center-wide",label:(0,o.__)("Wide Center 20/60/20","kadence-blocks"),icon:a.wideCenterIcon},{value:"center-exwide",label:(0,o.__)("Wider Center 15/70/15","kadence-blocks"),icon:a.exWideCenterIcon},{value:"first-row",label:(0,o.__)("First Row, Next Columns 100 - 50/50","kadence-blocks"),icon:a.firstRowIcon},{value:"last-row",label:(0,o.__)("Last Row, Previous Columns 50/50 - 100","kadence-blocks"),icon:a.lastRowIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowThreeIcon}]:4===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.fourColIcon},{value:"left-forty",label:(0,o.__)("Left Heavy 40/20/20/20","kadence-blocks"),icon:a.lFourFortyIcon},{value:"right-forty",label:(0,o.__)("Right Heavy 20/20/20/40","kadence-blocks"),icon:a.rFourFortyIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowFourIcon}]:5===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.fiveColIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowFiveIcon}]:6===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.sixColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:a.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowSixIcon}]:[{value:"equal",label:(0,o.__)("Single Row","kadence-blocks"),icon:a.rowIcon}],Dt=2===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.twoColIcon},{value:"left-golden",label:(0,o.__)("Left Heavy 66/33","kadence-blocks"),icon:a.twoLeftGoldenIcon},{value:"right-golden",label:(0,o.__)("Right Heavy 33/66","kadence-blocks"),icon:a.twoRightGoldenIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowIcon}]:3===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.threeColIcon},{value:"left-half",label:(0,o.__)("Left Heavy 50/25/25","kadence-blocks"),icon:a.leftHalfIcon},{value:"right-half",label:(0,o.__)("Right Heavy 25/25/50","kadence-blocks"),icon:a.rightHalfIcon},{value:"center-half",label:(0,o.__)("Center Heavy 25/50/25","kadence-blocks"),icon:a.centerHalfIcon},{value:"center-wide",label:(0,o.__)("Wide Center 20/60/20","kadence-blocks"),icon:a.wideCenterIcon},{value:"center-exwide",label:(0,o.__)("Wider Center 15/70/15","kadence-blocks"),icon:a.exWideCenterIcon},{value:"first-row",label:(0,o.__)("First Row, Next Columns 100 - 50/50","kadence-blocks"),icon:a.firstRowIcon},{value:"last-row",label:(0,o.__)("Last Row, Previous Columns 50/50 - 100","kadence-blocks"),icon:a.lastRowIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowThreeIcon}]:4===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.fourColIcon},{value:"left-forty",label:(0,o.__)("Left Heavy 40/20/20/20","kadence-blocks"),icon:a.lFourFortyIcon},{value:"right-forty",label:(0,o.__)("Right Heavy 20/20/20/40","kadence-blocks"),icon:a.rFourFortyIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowFourIcon}]:5===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.fiveColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:a.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowFiveIcon}]:6===d?[{value:"equal",label:(0,o.__)("Equal","kadence-blocks"),icon:a.sixColIcon},{value:"two-grid",label:(0,o.__)("Two Column Grid","kadence-blocks"),icon:a.gridIcon},{value:"three-grid",label:(0,o.__)("Three Column Grid","kadence-blocks"),icon:a.threeGridIcon},{value:"row",label:(0,o.__)("Collapse to Rows","kadence-blocks"),icon:a.collapseRowSixIcon}]:[{value:"row",label:(0,o.__)("Single Row","kadence-blocks"),icon:a.rowIcon}];const Ft=d?s:g;return(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Nt.Fragment,null,(0,At.showSettings)("basicLayout","kadence/rowlayout")&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.KadencePanelBody,{panelName:"kb-row-basic-layout"},(0,l.createElement)(Ot.StepControls,{label:(0,o.__)("Columns","kadence-blocks"),value:d,onChange:e=>{r(i,e),n({columns:e,colLayout:"equal",firstColumnWidth:void 0,secondColumnWidth:void 0,thirdColumnWidth:void 0,fourthColumnWidth:void 0,fifthColumnWidth:void 0,sixthColumnWidth:void 0,firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0,firstColumnWidthMobile:void 0,secondColumnWidthMobile:void 0,thirdColumnWidthMobile:void 0,fourthColumnWidthMobile:void 0,fifthColumnWidthMobile:void 0,sixthColumnWidthMobile:void 0,tabletLayout:"inherit",mobileLayout:"row"})},min:1,max:6}),d>1&&(0,l.createElement)(Ot.SmallResponsiveControl,{label:(0,o.__)("Layout","kadence-blocks"),desktopChildren:(0,l.createElement)(Ot.KadenceRadioButtons,{value:Ft,options:Bt,wrap:!0,hideLabel:!0,className:"kadence-row-layout-radio-btns",onChange:e=>{n({colLayout:e}),n({firstColumnWidth:void 0,secondColumnWidth:void 0,thirdColumnWidth:void 0,fourthColumnWidth:void 0,fifthColumnWidth:void 0,sixthColumnWidth:void 0})}}),tabletChildren:(0,l.createElement)(Ot.KadenceRadioButtons,{value:h,options:Dt,wrap:!0,className:"kadence-row-layout-radio-btns",hideLabel:!0,onChange:e=>{n(e===h?{tabletLayout:"inherit",firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0}:{tabletLayout:e,firstColumnWidthTablet:void 0,secondColumnWidthTablet:void 0,thirdColumnWidthTablet:void 0,fourthColumnWidthTablet:void 0,fifthColumnWidthTablet:void 0,sixthColumnWidthTablet:void 0})}}),mobileChildren:(0,l.createElement)(Ot.KadenceRadioButtons,{value:p,options:Dt,wrap:!0,className:"kadence-row-layout-radio-btns",hideLabel:!0,onChange:e=>{n({mobileLayout:e,firstColumnWidthMobile:void 0,secondColumnWidthMobile:void 0,thirdColumnWidthMobile:void 0,fourthColumnWidthMobile:void 0,fifthColumnWidthMobile:void 0,sixthColumnWidthMobile:void 0})}})}),("grid-layout"===g||d>1)&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.ResponsiveRadioRangeControls,{label:(0,o.__)("Column Gutter","kadence-blocks"),options:[{value:"none",size:0,label:(0,o.__)("None","kadence-blocks")},{value:"skinny",size:16,label:(0,o.__)("SM","kadence-blocks")},{value:"default",size:32,label:(0,o.__)("MD","kadence-blocks")},{value:"wider",size:64,label:(0,o.__)("LG","kadence-blocks")}],value:{value:void 0!==b?b:"default",size:void 0!==f&&void 0!==f[0]?f[0]:30},onChange:(e,t)=>{n({columnGutter:e,customGutter:[t,f[1]?f[1]:"",f[2]?f[2]:""]})},tabletValue:{value:void 0!==k?k:"",size:void 0!==f&&void 0!==f[1]?f[1]:""},onChangeTablet:(e,t)=>{n({tabletGutter:e,customGutter:[f[0]?f[0]:"",t,f[2]?f[2]:""]})},mobileValue:{value:void 0!==E?E:"",size:void 0!==f&&void 0!==f[2]?f[2]:""},onChangeMobile:(e,t)=>{n({mobileGutter:e,customGutter:[f[0]?f[0]:"",f[1]?f[1]:"",t]})},min:0,max:"px"===S?200:12,step:"px"===S?1:.1,unit:S||"px",onUnit:e=>{n({gutterType:e})},units:["px","em","rem"],reset:!0})),(0,l.createElement)(Ot.ResponsiveRadioRangeControls,{label:(0,o.__)("Row Gutter","kadence-blocks"),options:[{value:"none",size:0,label:(0,o.__)("None","kadence-blocks")},{value:"skinny",size:10,label:(0,o.__)("Sm","kadence-blocks")},{value:"default",size:30,label:(0,o.__)("Md","kadence-blocks")},{value:"wider",size:60,label:(0,o.__)("Lg","kadence-blocks")}],value:{value:void 0!==y?y:"default",size:void 0!==v&&void 0!==v[0]?v[0]:""},onChange:(e,t)=>{n({collapseGutter:e,customRowGutter:[t,v[1]?v[1]:"",v[2]?v[2]:""]})},tabletValue:{value:void 0!==w?w:"",size:void 0!==v&&void 0!==v[1]?v[1]:""},onChangeTablet:(e,t)=>{n({tabletRowGutter:e,customRowGutter:[v[0]?v[0]:"",t,v[2]?v[2]:""]})},mobileValue:{value:void 0!==_?_:"",size:void 0!==v&&void 0!==v[2]?v[2]:""},onChangeMobile:(e,t)=>{n({mobileRowGutter:e,customRowGutter:[v[0]?v[0]:"",v[1]?v[1]:"",t]})},min:0,max:"px"===C?200:12,step:"px"===C?1:.1,unit:C||"px",onUnit:e=>{n({rowGutterType:e})},units:["px","em","rem"],reset:!0}),("grid-layout"===g||i>d||"Desktop"!=c)&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Collapse Order","kadence-blocks"),value:x,options:[{value:"left-to-right",label:(0,o.__)("Normal ->","kadence-blocks")},{value:"right-to-left",label:(0,o.__)("Reverse <-","kadence-blocks")}],onChange:e=>n({collapseOrder:e})}))),(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Content Max Width","kadence-blocks"),initialOpen:!0,panelName:"kb-row-max-width"},(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Inherit Max Width from Theme?","kadence-blocks"),checked:void 0!==Ke&&Ke,onChange:e=>n({inheritMaxWidth:e})}),!0!==Ke&&(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Custom Content Max Width","kadence-blocks"),value:ue||"",onChange:e=>{n({maxWidth:e})},tabletValue:void 0!==xt&&void 0!==xt[0]?xt[0]:"",onChangeTablet:e=>{n({responsiveMaxWidth:[e,void 0!==xt&&void 0!==xt[1]?xt[1]:""]})},mobileValue:void 0!==xt&&void 0!==xt[1]?xt[1]:"",onChangeMobile:e=>{n({responsiveMaxWidth:[void 0!==xt&&void 0!==xt[0]?xt[0]:"",e]})},min:0,max:"px"===Be?2e3:100,step:1,unit:Be||"px",onUnit:e=>{n({maxWidthUnit:e})},units:["px","%","vw"],reset:!0}),"full"===nt&&2===d&&!0===Ke&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Break Left Section Full Width?","kadence-blocks"),checked:void 0!==Mt&&Mt,onChange:e=>n({breakoutLeft:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Break Right Section Full Width?","kadence-blocks"),checked:void 0!==Pt&&Pt,onChange:e=>n({breakoutRight:e})}))))),(0,l.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,At.showSettings)("dividers","kadence/rowlayout")&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Top Divider","kadence-blocks"),initialOpen:!1,panelName:"kb-row-dividers-top"},(0,l.createElement)(Ot.KadenceIconPicker,{icons:["ct","cti","ctd","ctdi","sltl","sltr","crv","crvi","crvl","crvli","crvr","crvri","wave","wavei","waves","wavesi","mtns","littri","littrii","threelevels","threelevelsi"],value:"none"===ye?"":ye,onChange:e=>n({topSep:e}),showSearch:!1,renderFunc:e=>Pp(e,"top","100%"),theme:"dividers",allowClear:!0,placeholder:(0,o.__)("Select Divider","kadence-blocks")}),(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Divider Color","kadence-blocks"),value:ke||"",default:"#ffffff",onChange:e=>n({topSepColor:e})}),(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Divider Height","kadence-blocks"),value:Ee,onChange:e=>{n({topSepHeight:e})},tabletValue:_e,onChangeTablet:e=>{n({topSepHeightTab:e})},mobileValue:we,onChangeMobile:e=>{n({topSepHeightMobile:e})},min:0,max:"em"===Tt?100:500,step:"em"===Tt?.01:1,unit:Tt,onUnit:e=>{n({topSepHeightUnit:e})},units:["px","em","vh"],showUnit:!0,defaultValue:Tp.attributes.topSepHeight.default,defaultTablet:Tp.attributes.topSepHeightTab.default,defaultMobile:Tp.attributes.topSepHeightMobile.default,reset:!0}),(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Divider Width","kadence-blocks"),value:Se,onChange:e=>{n({topSepWidth:e})},tabletValue:xe,onChangeTablet:e=>{n({topSepWidthTab:e})},mobileValue:Ce,onChangeMobile:e=>{n({topSepWidthMobile:e})},min:100,max:400,step:1,showUnit:!0,unit:"%",units:["%"],defaultValue:Tp.attributes.topSepWidth.default,defaultTablet:Tp.attributes.topSepWidthTablet.default,defaultMobile:Tp.attributes.topSepWidthMobile.default,reset:!0})),(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Bottom Divider","kadence-blocks"),initialOpen:!1,panelName:"kb-row-dividers"},(0,l.createElement)(Ot.KadenceIconPicker,{icons:["ct","cti","ctd","ctdi","sltl","sltr","crv","crvi","crvl","crvli","crvr","crvri","wave","wavei","waves","wavesi","mtns","littri","littrii","threelevels","threelevelsi"],value:"none"===de?"":de,onChange:e=>n({bottomSep:e}),showSearch:!1,renderFunc:e=>Pp(e,"bottom","100%"),theme:"dividers",allowClear:!0,placeholder:(0,o.__)("Select Divider","kadence-blocks")}),(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Divider Color","kadence-blocks"),value:pe||"",default:"#ffffff",onChange:e=>n({bottomSepColor:e})}),(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Divider Height","kadence-blocks"),value:me,onChange:e=>{n({bottomSepHeight:e})},tabletValue:he,onChangeTablet:e=>{n({bottomSepHeightTab:e})},mobileValue:ge,onChangeMobile:e=>{n({bottomSepHeightMobile:e})},min:0,max:"em"===Lt?100:500,step:"em"===Lt?.01:1,unit:Lt,onUnit:e=>{n({bottomSepHeightUnit:e})},units:["px","em","vh"],showUnit:!0,defaultValue:Tp.attributes.bottomSepHeight.default,defaultTablet:Tp.attributes.bottomSepHeightTab.default,defaultMobile:Tp.attributes.bottomSepHeightMobile.default,reset:!0}),(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Divider Width","kadence-blocks"),value:be,onChange:e=>{n({bottomSepWidth:e})},tabletValue:ve,onChangeTablet:e=>{n({bottomSepWidthTab:e})},mobileValue:fe,onChangeMobile:e=>{n({bottomSepWidthMobile:e})},min:100,max:400,step:1,showUnit:!0,unit:"%",units:["%"],defaultValue:Tp.attributes.bottomSepWidth.default,defaultTablet:Tp.attributes.bottomSepWidthTab.default,defaultMobile:Tp.attributes.bottomSepWidthMobile.default,reset:!0}))))},Rp=function({clientId:e,attributes:t,setAttributes:n,isSelected:a,context:r}){const{uniqueID:i,columns:s,mobileLayout:c,currentTab:u,colLayout:d,tabletLayout:p,columnGutter:m,customGutter:g,customRowGutter:h,collapseGutter:b,tabletGutter:f,mobileGutter:v,tabletRowGutter:y,mobileRowGutter:k,gutterType:E,rowGutterType:w,collapseOrder:_,topPadding:S,bottomPadding:C,leftPadding:x,rightPadding:I,topPaddingM:O,bottomPaddingM:A,leftPaddingM:M,rightPaddingM:P,topMargin:T,bottomMargin:N,topMarginM:R,bottomMarginM:L,gradient:B,bgColor:D,bgImg:F,bgImgAttachment:z,bgImgSize:j,bgImgPosition:H,bgImgRepeat:W,bgImgID:V,verticalAlignment:$,overlayOpacity:U,overlayBgImg:Z,overlayBgImgAttachment:G,overlayBgImgID:q,overlayBgImgPosition:K,overlayBgImgRepeat:J,overlayBgImgSize:Y,currentOverlayTab:X,overlayBlendMode:Q,overlayGradAngle:ee,overlayGradLoc:te,overlayGradLocSecond:ne,overlayGradType:oe,overlay:ae,overlayGradient:re,overlaySecond:le,htmlTag:ie,minHeight:se,maxWidth:ce,bottomSep:ue,bottomSepColor:de,bottomSepHeight:pe,bottomSepHeightMobile:me,bottomSepHeightTab:ge,bottomSepWidth:he,bottomSepWidthMobile:be,bottomSepWidthTab:fe,topSep:ve,topSepColor:ye,topSepHeight:ke,topSepHeightMobile:Ee,topSepHeightTab:we,topSepWidth:_e,topSepWidthMobile:Se,topSepWidthTab:Ce,firstColumnWidth:xe,secondColumnWidth:Ie,textColor:Oe,linkColor:Ae,linkHoverColor:Me,tabletPadding:Pe,topMarginT:Te,bottomMarginT:Ne,minHeightUnit:Re,maxWidthUnit:Le,marginUnit:Be,columnsUnlocked:De,tabletBackground:Fe,tabletOverlay:ze,mobileBackground:je,mobileOverlay:He,columnsInnerHeight:We,zIndex:Ve,backgroundInline:$e,backgroundSettingTab:Ue,backgroundSliderCount:Ze,backgroundSlider:Ge,inheritMaxWidth:qe,backgroundSliderSettings:Ke,backgroundVideo:Je,backgroundVideoType:Ye,overlaySecondOpacity:Xe,overlayFirstOpacity:Qe,paddingUnit:et,align:tt,minHeightTablet:nt,minHeightMobile:ot,bgColorClass:at,vsdesk:rt,vstablet:lt,vsmobile:it,loggedInUser:st,loggedIn:ct,loggedOut:ut,loggedInShow:dt,rcpAccess:pt,rcpMembership:mt,rcpMembershipLevel:gt,borderWidth:ht,tabletBorderWidth:bt,mobileBorderWidth:ft,borderRadius:vt,tabletBorderRadius:yt,mobileBorderRadius:kt,border:Et,tabletBorder:wt,mobileBorder:_t,borderStyle:St,tabletBorderStyle:xt,mobileBorderStyle:It,borderRadiusUnit:Mt,borderRadiusOverflow:Pt,isPrebuiltModal:Tt,responsiveMaxWidth:Lt,kadenceBlockCSS:Bt,displayBoxShadow:Dt,boxShadow:Ft}=t,zt=(document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,Fe?.[0]?.type||"normal"),jt=je?.[0]?.type||"normal",Ht=""===je?.[0]?.bgImg&&("normal"===zt&&""!==Fe?.[0]?.bgImg||"gradient"===zt&&""!==Fe?.[0]?.gradient||"normal"===Ue&&""!==F||"gradient"===Ue&&""!==B),Wt=""===Fe?.[0]?.bgImg&&("normal"===Ue&&""!==F||"gradient"===Ue&&""!==B),Vt=!!(vt?.[0]||vt?.[1]||vt?.[2]||vt?.[3]),$t=void 0!==Je&&void 0!==Je[0],Ut=(e,t)=>{let o=Ge;(void 0===o||void 0!==o&&void 0===o[0])&&(o=[{bgColor:"",bgImg:"",bgImgID:""}]);const a=o.map(((n,o)=>(o===t&&(n={...n,...e}),n)));n({backgroundSlider:a})},Zt=e=>{const t=Fe.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({tabletBackground:t})},Gt=e=>{const t=ze.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({tabletOverlay:t})},qt=e=>{const t=je.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({mobileBackground:t})},Kt=e=>{const t=He.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({mobileOverlay:t})},Jt=e=>{let t;t=void 0===Ke||void 0!==Ke&&void 0===Ke[0]?[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,btnsMute:!1,loop:!0,mute:!0}]:Ke;const o=t.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({backgroundSliderSettings:o})};function Yt(e){const t=Ft.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({boxShadow:t})}const Xt=e=>{let t;t=void 0===Je||void 0!==Je&&void 0===Je[0]?[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,btnsMute:!1,loop:!0,mute:!0}]:Je;const o=t.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({backgroundVideo:o})},Qt=(0,l.createElement)("div",null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:ze&&ze[0]?ze[0].overlay:"",default:"",onChange:e=>Gt({overlay:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Overlay Image","kadence-blocks"),hasImage:!!(ze&&ze[0]&&ze[0].overlayBgImg),imageURL:ze&&ze[0]&&ze[0].overlayBgImg?ze[0].overlayBgImg:"",imageID:ze&&ze[0]&&ze[0].overlayBgImgID?ze[0].overlayBgImgID:"",imagePosition:ze&&ze[0]&&ze[0].overlayBgImgPosition?ze[0].overlayBgImgPosition:"center center",imageSize:ze&&ze[0]&&ze[0].overlayBgImgSize?ze[0].overlayBgImgSize:"cover",imageRepeat:ze&&ze[0]&&ze[0].overlayBgImgRepeat?ze[0].overlayBgImgRepeat:"no-repeat",imageAttachment:ze&&ze[0]&&ze[0].overlayBgImgAttachment?ze[0].overlayBgImgAttachment:"scroll",imageAttachmentParallax:!0,imageAttachmentFixed:!1,onRemoveImage:()=>{Gt({overlayBgImgID:"",overlayBgImg:""})},onSaveImage:e=>{Gt({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==(ze&&ze[0]&&ze[0].overlayBgImg?ze[0].overlayBgImg:"")&&Gt({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>Gt({overlayBgImgPosition:e}),onSaveSize:e=>Gt({overlayBgImgSize:e}),onSaveRepeat:e=>Gt({overlayBgImgRepeat:e}),onSaveAttachment:e=>Gt({overlayBgImgAttachment:e}),disableMediaButtons:ze&&ze[0]&&ze[0].overlayBgImg?ze[0].overlayBgImg:"",dynamicAttribute:"tabletOverlay:0:overlayBgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e})),en=(0,l.createElement)("div",null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:He&&He[0]?He[0].overlay:"",default:"",onChange:e=>Kt({overlay:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Overlay Image","kadence-blocks"),hasImage:!!(He&&He[0]&&He[0].overlayBgImg),imageURL:He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"",imageID:He&&He[0]&&He[0].overlayBgImgID?He[0].overlayBgImgID:"",imagePosition:He&&He[0]&&He[0].overlayBgImgPosition?He[0].overlayBgImgPosition:"center center",imageSize:He&&He[0]&&He[0].overlayBgImgSize?He[0].overlayBgImgSize:"cover",imageRepeat:He&&He[0]&&He[0].overlayBgImgRepeat?He[0].overlayBgImgRepeat:"no-repeat",imageAttachment:He&&He[0]&&He[0].overlayBgImgAttachment?He[0].overlayBgImgAttachment:"scroll",imageAttachmentParallax:!0,imageAttachmentFixed:!1,onRemoveImage:()=>{Kt({overlayBgImgID:"",overlayBgImg:""})},onSaveImage:e=>{Kt({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==(He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"")&&Kt({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>Kt({overlayBgImgPosition:e}),onSaveSize:e=>Kt({overlayBgImgSize:e}),onSaveRepeat:e=>Kt({overlayBgImgRepeat:e}),onSaveAttachment:e=>Kt({overlayBgImgAttachment:e}),disableMediaButtons:He&&He[0]&&He[0].overlayBgImg?He[0].overlayBgImg:"",dynamicAttribute:"mobileOverlay:0:overlayBgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e})),tn=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Set custom background for Mobile?","kadence-blocks"),checked:!(!je||!je[0])&&je[0].enable,onChange:e=>qt({enable:e})}),je?.[0]?.enable&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:je?.[0]?.type?je[0].type:"normal",onChange:e=>qt({type:e}),allowedTypes:["normal","gradient"]}),"gradient"===jt&&(0,l.createElement)(Ot.GradientControl,{value:je?.[0]?.gradient,onChange:e=>qt({gradient:e}),gradients:[]}),"normal"===jt&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:je[0].bgColor?je[0].bgColor:"",default:"",onChange:e=>qt({bgColor:e})}),Ht&&(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Force no image for mobile","kadence-blocks"),checked:!(!je||!je[0])&&je[0].forceOverDesk,onChange:e=>qt({forceOverDesk:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:!!(je&&je[0]&&je[0].bgImg),imageURL:je&&je[0]&&je[0].bgImg?je[0].bgImg:"",imageID:je&&je[0]&&je[0].bgImgID?je[0].bgImgID:"",imagePosition:je&&je[0]&&je[0].bgImgPosition?je[0].bgImgPosition:"center center",imageSize:je&&je[0]&&je[0].bgImgSize?je[0].bgImgSize:"cover",imageRepeat:je&&je[0]&&je[0].bgImgRepeat?je[0].bgImgRepeat:"no-repeat",imageAttachment:je&&je[0]&&je[0].bgImgAttachment?je[0].bgImgAttachment:"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{qt({bgImgID:"",bgImg:""})},onSaveImage:e=>{qt({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==(je&&je[0]&&je[0].bgImg?je[0].bgImg:"")&&qt({bgImgID:void 0,bgImg:e})},onSavePosition:e=>qt({bgImgPosition:e}),onSaveSize:e=>qt({bgImgSize:e}),onSaveRepeat:e=>qt({bgImgRepeat:e}),onSaveAttachment:e=>qt({bgImgAttachment:e}),disableMediaButtons:je&&je[0]&&je[0].bgImg?je[0].bgImg:"",dynamicAttribute:"mobileBackground:0:bgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e})))),nn=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Set custom background overlay for mobile?","kadence-blocks"),checked:!(!He||!He[0])&&He[0].enable,onChange:e=>Kt({enable:e})}),He&&He[0]&&He[0].enable&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:He&&He[0]?He[0].overlayOpacity:30,onChange:e=>{Kt({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:He[0].currentOverlayTab?He[0].currentOverlayTab:"normal",onChange:e=>Kt({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===He[0].currentOverlayTab&&(0,l.createElement)(Ot.GradientControl,{value:He[0].gradient,onChange:e=>Kt({gradient:e}),gradients:[]}),"gradient"!==He[0].currentOverlayTab&&en,(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:He&&He[0]?He[0].overlayBlendMode:"none",options:yp,onChange:e=>Kt({overlayBlendMode:e})}),(0,l.createElement)("p",null,(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")))),on=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Set custom background for tablets?","kadence-blocks"),checked:!(!Fe||!Fe[0])&&Fe[0].enable,onChange:e=>Zt({enable:e})}),Fe?.[0]?.enable&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:Fe?.[0]?.type?Fe[0].type:"normal",onChange:e=>Zt({type:e}),allowedTypes:["normal","gradient"]}),"gradient"===zt&&(0,l.createElement)(Ot.GradientControl,{value:Fe?.[0]?.gradient,onChange:e=>Zt({gradient:e}),gradients:[]}),"normal"===zt&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:Fe[0].bgColor?Fe[0].bgColor:"",default:"",onChange:e=>Zt({bgColor:e})}),Wt&&(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Force no image/gradient for tablet","kadence-blocks"),checked:!(!Fe||!Fe[0])&&Fe[0].forceOverDesk,onChange:e=>Zt({forceOverDesk:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:!!(Fe&&Fe[0]&&Fe[0].bgImg),imageURL:Fe&&Fe[0]&&Fe[0].bgImg?Fe[0].bgImg:"",imageID:Fe&&Fe[0]&&Fe[0].bgImgID?Fe[0].bgImgID:"",imagePosition:Fe&&Fe[0]&&Fe[0].bgImgPosition?Fe[0].bgImgPosition:"center center",imageSize:Fe&&Fe[0]&&Fe[0].bgImgSize?Fe[0].bgImgSize:"cover",imageRepeat:Fe&&Fe[0]&&Fe[0].bgImgRepeat?Fe[0].bgImgRepeat:"no-repeat",imageAttachment:Fe&&Fe[0]&&Fe[0].bgImgAttachment?Fe[0].bgImgAttachment:"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{Zt({bgImgID:"",bgImg:""})},onSaveImage:e=>{Zt({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==(Fe&&Fe[0]&&Fe[0].bgImg?Fe[0].bgImg:"")&&Zt({bgImgID:void 0,bgImg:e})},onSavePosition:e=>Zt({bgImgPosition:e}),onSaveSize:e=>Zt({bgImgSize:e}),onSaveRepeat:e=>Zt({bgImgRepeat:e}),onSaveAttachment:e=>Zt({bgImgAttachment:e}),disableMediaButtons:Fe&&Fe[0]&&Fe[0].bgImg?Fe[0].bgImg:"",dynamicAttribute:"tabletBackground:0:bgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e})))),an=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Set custom background overlay for tablets?","kadence-blocks"),checked:!(!ze||!ze[0])&&ze[0].enable,onChange:e=>Gt({enable:e})}),ze&&ze[0]&&ze[0].enable&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:ze&&ze[0]?ze[0].overlayOpacity:30,onChange:e=>{Gt({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:ze[0].currentOverlayTab?ze[0].currentOverlayTab:"normal",onChange:e=>Gt({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===ze[0].currentOverlayTab&&(0,l.createElement)(Ot.GradientControl,{value:ze[0].gradient,onChange:e=>Gt({gradient:e}),gradients:[]}),"gradient"!==ze[0].currentOverlayTab&&Qt,(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:ze&&ze[0]?ze[0].overlayBlendMode:"none",options:yp,onChange:e=>Gt({overlayBlendMode:e})}),(0,l.createElement)("p",null,(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks")))),rn=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Type","kadence-blocks"),type:Ue,onChange:e=>{n({backgroundSettingTab:e})}}),"slider"===Ue&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Slider Item Count","kadence-blocks"),value:void 0!==Ze?Ze:1,onChange:e=>{let t;if(t=void 0===Ge||void 0!==Ge&&void 0===Ge[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:Ge,t.length<e){const o=Math.abs(e-t.length);(0,Ct.times)(o,(e=>{t.push({bgColor:"",bgImg:"",bgImgID:""})})),n({backgroundSlider:t})}n({backgroundSliderCount:e})},step:1,min:1,max:20}),(0,Ct.times)(void 0!==Ze?Ze:1,(e=>(e=>{let t;return t=void 0===Ge||void 0!==Ge&&void 0===Ge[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:Ge,(0,l.createElement)(Ot.SubsectionWrap,{label:(0,o.__)("Slide","kadence-blocks")+" "+(e+1)+" "+(0,o.__)("Settings","kadence-blocks")},(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Slide Background Color","kadence-blocks"),value:void 0!==t&&void 0!==t[e]&&t[e].bgColor?t[e].bgColor:"",default:"",onChange:t=>Ut({bgColor:t},e)}),(0,l.createElement)(Ot.KadenceImageControl,{label:(0,o.__)("Slide Background Image","kadence-blocks"),hasImage:!!(t&&t[e]&&t[e].bgImg),imageURL:t&&t[e]&&t[e].bgImg?t[e].bgImg:"",imageID:t&&t[e]&&t[e].bgImgID?t[e].bgImgID:"",onRemoveImage:()=>{Ut({bgImgID:"",bgImg:""},e)},onSaveImage:t=>{Ut({bgImgID:t.id,bgImg:t.url},e)},disableMediaButtons:!!(t&&t[e]&&t[e].bgImg)}))})(e))),(0,l.createElement)(Ot.KadenceRadioButtons,{label:(0,o.__)("Slider Image Size","kadence-blocks"),value:j,options:[{value:"cover",label:(0,o.__)("Cover","kadence-blocks")},{value:"contain",label:(0,o.__)("Contain","kadence-blocks")},{value:"auto",label:(0,o.__)("Auto","kadence-blocks")}],onChange:e=>n({bgImgSize:e})}),(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Slider Image Position","kadence-blocks"),value:H,options:[{value:"center top",label:(0,o.__)("Center Top","kadence-blocks")},{value:"center center",label:(0,o.__)("Center Center","kadence-blocks")},{value:"center bottom",label:(0,o.__)("Center Bottom","kadence-blocks")},{value:"left top",label:(0,o.__)("Left Top","kadence-blocks")},{value:"left center",label:(0,o.__)("Left Center","kadence-blocks")},{value:"left bottom",label:(0,o.__)("Left Bottom","kadence-blocks")},{value:"right top",label:(0,o.__)("Right Top","kadence-blocks")},{value:"right center",label:(0,o.__)("Right Center","kadence-blocks")},{value:"right bottom",label:(0,o.__)("Right Bottom","kadence-blocks")}],onChange:e=>n({bgImgPosition:e})}),(0,l.createElement)(Ot.KadenceRadioButtons,{label:(0,o.__)("Slider Image Repeat","kadence-blocks"),value:W,options:[{value:"no-repeat",label:(0,o.__)("No Repeat","kadence-blocks")},{value:"repeat",label:(0,o.__)("Repeat","kadence-blocks")},{value:"repeat-x",label:(0,o.__)("Repeat-x","kadence-blocks")},{value:"repeat-y",label:(0,o.__)("Repeat-y","kadence-blocks")}],onChange:e=>n({bgImgRepeat:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Slider Auto Play","kadence-blocks"),checked:!Ke||!Ke[0]||void 0===Ke[0].autoPlay||Ke[0].autoPlay,onChange:e=>Jt({autoPlay:e})}),Ke&&Ke[0]&&void 0!==Ke[0].autoPlay&&Ke[0].autoPlay&&(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Autoplay Speed","kadence-blocks"),value:Ke[0].speed,onChange:e=>Jt({speed:e}),min:500,max:15e3,step:10}),(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Transition Style","kadence-blocks"),options:[{label:(0,o.__)("Fade","kadence-blocks"),value:"fade"},{label:(0,o.__)("Slide","kadence-blocks"),value:"slide"}],value:Ke&&Ke[0]&&void 0!==Ke[0].fade&&!1===Ke[0].fade?"slide":"fade",onChange:e=>{Jt("slide"===e?{fade:!1}:{fade:!0})}}),(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Slider Transition Speed","kadence-blocks"),value:Ke&&Ke[0]&&void 0!==Ke[0].tranSpeed?Ke[0].tranSpeed:400,onChange:e=>Jt({tranSpeed:e}),min:100,max:2e3,step:10}),(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Arrow Style","kadence-blocks"),options:[{label:(0,o.__)("White on Dark","kadence-blocks"),value:"whiteondark"},{label:(0,o.__)("Black on Light","kadence-blocks"),value:"blackonlight"},{label:(0,o.__)("Outline Black","kadence-blocks"),value:"outlineblack"},{label:(0,o.__)("Outline White","kadence-blocks"),value:"outlinewhite"},{label:(0,o.__)("None","kadence-blocks"),value:"none"}],value:Ke&&Ke[0]&&void 0!==Ke[0].arrowStyle?Ke[0].arrowStyle:"none",onChange:e=>Jt({arrowStyle:e})}),(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Dot Style","kadence-blocks"),options:[{label:(0,o.__)("Dark","kadence-blocks"),value:"dark"},{label:(0,o.__)("Light","kadence-blocks"),value:"light"},{label:(0,o.__)("Outline Dark","kadence-blocks"),value:"outlinedark"},{label:(0,o.__)("Outline Light","kadence-blocks"),value:"outlinelight"},{label:(0,o.__)("None","kadence-blocks"),value:"none"}],value:Ke&&Ke[0]&&void 0!==Ke[0].dotStyle?Ke[0].dotStyle:"dark",onChange:e=>Jt({dotStyle:e})})),"video"===Ue&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Background Video Type","kadence-blocks"),options:[{label:(0,o.__)("Local (MP4)","kadence-blocks"),value:"local"},{label:(0,o.__)("YouTube","kadence-blocks"),value:"youtube"},{label:(0,o.__)("Vimeo","kadence-blocks"),value:"vimeo"}],value:Ye,onChange:e=>n({backgroundVideoType:e})}),(void 0===Ye||"local"===Ye)&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.KadenceVideoControl,{label:(0,o.__)("Background Video","kadence-blocks"),hasVideo:!(!$t||!Je[0].localID),videoURL:Je&&Je[0]&&Je[0].local?Je[0].local:"",videoID:Je&&Je[0]&&Je[0].localID?Je[0].localID:"",onRemoveVideo:()=>{Xt({localID:"",local:""})},onSaveVideo:e=>{Xt({localID:e.id,local:e.url})},disableMediaButtons:!(!$t||!Je[0].local)}),(0,l.createElement)(Rt.TextControl,{label:(0,o.__)("HTML5 Video File URL","kadence-blocks"),value:$t&&Je[0].local?Je[0].local:"",onChange:e=>Xt({local:e})})),void 0!==Ye&&"local"!==Ye&&(0,l.createElement)("div",{class:"components-base-control"},(0,o.__)("Warning: Embedded videos are not ideal for background content. Consider self hosting instead.","kadence-blocks")),"youtube"===Ye&&(0,l.createElement)(Rt.TextControl,{label:(0,o.__)("YouTube ID ( example: OZBOEnHhR14 )","kadence-blocks"),value:$t&&Je[0].youTube?Je[0].youTube:"",onChange:e=>Xt({youTube:e})}),"vimeo"===Ye&&(0,l.createElement)(Rt.TextControl,{label:(0,o.__)("Vimeo ID ( example: 789006133 )","kadence-blocks"),value:$t&&Je[0].vimeo?Je[0].vimeo:"",onChange:e=>Xt({vimeo:e})}),void 0!==Ye&&"local"!==Ye&&(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Background Video Ratio","kadence-blocks"),options:[{label:"16 / 9",value:"16/9"},{label:"4 / 3",value:"4/3"},{label:"3 / 2",value:"3/2"}],value:$t&&void 0!==Je[0].ratio?Je[0].ratio:"16/9",onChange:e=>Xt({ratio:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Mute Video","kadence-blocks"),checked:!$t||void 0===Je[0].mute||Je[0].mute,onChange:e=>Xt({mute:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Loop Video","kadence-blocks"),checked:!$t||void 0===Je[0].loop||Je[0].loop,onChange:e=>Xt({loop:e})}),(void 0===Ye||"local"===Ye)&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Show Mute Unmute Buttons?","kadence-blocks"),checked:!(!$t||void 0===Je[0].btnsMute)&&Je[0].btnsMute,onChange:e=>Xt({btnsMute:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Show Play Pause Buttons?","kadence-blocks"),checked:!$t||void 0===Je[0].btns||Je[0].btns,onChange:e=>Xt({btns:e})})),(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:D||"",default:"",onChange:e=>n({bgColor:e}),onClassChange:e=>n({bgColorClass:e})}),void 0!==Ye&&"local"===Ye&&(0,l.createElement)(Ot.KadenceImageControl,{label:(0,o.__)("Select Video Poster","kadence-blocks"),hasImage:!!F,imageURL:F||"",imageID:V||"",onRemoveImage:()=>{n({bgImgID:null,bgImg:null})},onSaveImage:e=>{n({bgImgID:e.id,bgImg:e.url})},disableMediaButtons:!!F})),"gradient"===Ue&&(0,l.createElement)(Ot.GradientControl,{value:B,onChange:e=>n({gradient:e}),gradients:[]}),"normal"===Ue&&(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Background Color","kadence-blocks"),value:D||"",default:"",onChange:e=>n({bgColor:e}),onClassChange:e=>n({bgColorClass:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:F,imageURL:F,imageID:V,imagePosition:H||"center center",imageSize:j||"cover",imageRepeat:W||"no-repeat",imageAttachment:z||"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{n({bgImgID:null,bgImg:null})},onSaveImage:e=>{n({bgImgID:e.id,bgImg:e.url})},onSaveURL:e=>{e!==F&&n({bgImgID:void 0,bgImg:e})},onSavePosition:e=>n({bgImgPosition:e}),onSaveSize:e=>n({bgImgSize:e}),onSaveRepeat:e=>n({bgImgRepeat:e}),onSaveAttachment:e=>n({bgImgAttachment:e}),inlineImage:$e,onSaveInlineImage:e=>n({backgroundInline:e}),disableMediaButtons:F,dynamicAttribute:"bgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e,context:r}))),ln=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Overlay Color","kadence-blocks"),value:ae||"",default:"",onChange:e=>n({overlay:e}),opacityValue:void 0!==Qe&&""!==Qe?Qe:1,onOpacityChange:e=>n({overlayFirstOpacity:e})}),(0,l.createElement)(Ot.BackgroundControl,{label:(0,o.__)("Background Image","kadence-blocks"),hasImage:Z,imageURL:Z,imageID:q,imagePosition:K||"center center",imageSize:Y||"cover",imageRepeat:J||"no-repeat",imageAttachment:G||"scroll",imageAttachmentParallax:!0,onRemoveImage:()=>{n({overlayBgImgID:null,overlayBgImg:null})},onSaveImage:e=>{n({overlayBgImgID:e.id,overlayBgImg:e.url})},onSaveURL:e=>{e!==Z&&n({overlayBgImgID:void 0,overlayBgImg:e})},onSavePosition:e=>n({overlayBgImgPosition:e}),onSaveSize:e=>n({overlayBgImgSize:e}),onSaveRepeat:e=>n({overlayBgImgRepeat:e}),onSaveAttachment:e=>n({overlayBgImgAttachment:e}),disableMediaButtons:Z,dynamicAttribute:"overlayBgImg",isSelected:a,attributes:t,setAttributes:n,name:"kadence/rowlayout",clientId:e})),sn=(0,l.createElement)(Nt.Fragment,null,(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Overlay Opacity","kadence-blocks"),value:U,onChange:e=>{n({overlayOpacity:e})},min:0,max:100,reset:!0}),(0,l.createElement)(Ot.BackgroundTypeControl,{label:(0,o.__)("Overlay Type","kadence-blocks"),type:X||"normal",onChange:e=>n({currentOverlayTab:e}),allowedTypes:["normal","gradient"]}),"gradient"===X&&(0,l.createElement)(Ot.GradientControl,{value:re,onChange:e=>n({overlayGradient:e}),gradients:[]}),"gradient"!==X&&(0,l.createElement)(Nt.Fragment,null,ln),(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Blend Mode","kadence-blocks"),value:Q,options:yp,onChange:e=>n({overlayBlendMode:e})}),(0,l.createElement)("p",null,(0,o.__)("Notice: Blend Mode not supported in all browsers","kadence-blocks"))),cn=(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Text Color Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-text-color"},(0,l.createElement)(Ot.ColorGroup,null,(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Text Color","kadence-blocks"),value:Oe||"",default:"",onChange:e=>n({textColor:e})}),(0,l.createElement)(Ot.PopColorControl,{label:(0,o.__)("Link Color","kadence-blocks"),value:Ae||"",default:"",onChange:e=>n({linkColor:e}),swatchLabel2:(0,o.__)("Hover Color","kadence-blocks"),value2:Me||"",default2:"",onChange2:e=>n({linkHoverColor:e})})));return(0,l.createElement)(Nt.Fragment,null,(0,At.showSettings)("background","kadence/rowlayout")&&(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Background Settings","kadence-blocks"),initialOpen:!0,panelName:"kb-row-bg-settings"},(0,l.createElement)(Ot.SmallResponsiveControl,{label:(0,o.__)("Background","kadence-blocks"),hasPadding:!0,desktopChildren:rn,tabletChildren:on,mobileChildren:tn})),(0,At.showSettings)("backgroundOverlay","kadence/rowlayout")&&(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Background Overlay Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-bg-overlay"},(0,l.createElement)(Ot.SmallResponsiveControl,{label:(0,o.__)("Overlay","kadence-blocks"),hasPadding:!0,desktopChildren:sn,tabletChildren:an,mobileChildren:nn})),(0,At.showSettings)("border","kadence/rowlayout")&&(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Border Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-border-settings"},(0,l.createElement)(Ot.ResponsiveBorderControl,{label:(0,o.__)("Border","kadence-blocks"),value:St,tabletValue:xt,mobileValue:It,onChange:e=>n({borderStyle:e}),onChangeTablet:e=>n({tabletBorderStyle:e}),onChangeMobile:e=>n({mobileBorderStyle:e})}),(0,l.createElement)(Ot.ResponsiveMeasurementControls,{label:(0,o.__)("Border Radius","kadence-blocks"),value:vt,tabletValue:yt,mobileValue:kt,onChange:e=>n({borderRadius:e}),onChangeTablet:e=>n({tabletBorderRadius:e}),onChangeMobile:e=>n({mobileBorderRadius:e}),unit:Mt,units:["px","em","rem","%"],onUnit:e=>n({borderRadiusUnit:e}),max:"em"===Mt||"rem"===Mt?24:500,step:"em"===Mt||"rem"===Mt?.1:1,min:0,isBorderRadius:!0,allowEmpty:!0}),Vt&&(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Overflow Hidden","kadence-blocks"),checked:Pt,onChange:e=>n({borderRadiusOverflow:e})}),(0,l.createElement)(Ot.BoxShadowControl,{label:(0,o.__)("Box Shadow","kadence-blocks"),enable:void 0!==Dt&&Dt,color:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].color?Ft[0].color:"#000000",colorDefault:"#000000",onArrayChange:(e,t)=>Yt({color:e,opacity:t}),opacity:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].opacity?Ft[0].opacity:.2,hOffset:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].hOffset?Ft[0].hOffset:0,vOffset:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].vOffset?Ft[0].vOffset:0,blur:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].blur?Ft[0].blur:14,spread:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].spread?Ft[0].spread:0,inset:void 0!==Ft&&void 0!==Ft[0]&&void 0!==Ft[0].inset&&Ft[0].inset,onEnableChange:e=>{n({displayBoxShadow:e})},onColorChange:e=>{Yt({color:e})},onOpacityChange:e=>{Yt({opacity:e})},onHOffsetChange:e=>{Yt({hOffset:e})},onVOffsetChange:e=>{Yt({vOffset:e})},onBlurChange:e=>{Yt({blur:e})},onSpreadChange:e=>{Yt({spread:e})},onInsetChange:e=>{Yt({inset:e})}})),(0,l.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,At.showSettings)("textColor","kadence/rowlayout")&&cn)};function Lp({previewDevice:e="Desktop",edge:t="top",attributes:n,setAttributes:a,toggleSelection:r,finishedResizing:i,isPreviewMode:s}){const{leftPadding:c,rightPadding:u,topPadding:d,bottomPadding:p,tabletPadding:m,topPaddingM:g,paddingUnit:h,firstColumnWidth:b,columns:f,columnsUnlocked:v,secondColumnWidth:y,uniqueID:k,columnGutter:E,customGutter:w,gutterType:_,colLayout:S,bgColor:C,bgImg:x,gradient:I,overlay:O,overlayGradient:A,overlayBgImg:M,inheritMaxWidth:P,maxWidthUnit:T,maxWidth:N,padding:R,mobilePadding:L,templateLock:B}=n,D="top"===t?0:2,F=document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,z=(0,At.getPreviewSize)(e,void 0!==R&&void 0!==R[D]?xp(R[D],h):(0,o.__)("Unset","kadence-blocks"),void 0!==m&&void 0!==m[D]&&""!==m[D]?xp(m[D]):"",void 0!==L&&void 0!==L[D]&&""!==L[D]?xp(L[D]):""),j=(0,At.getPreviewSize)(e,void 0!==R&&void 0!==R[D]?Op(R[D]):"",void 0!==m&&void 0!==m[D]&&""!==m[D]?Op(m[D]):"",void 0!==L&&void 0!==L[D]&&""!==L[D]?Op(L[D]):"");let H="variable";void 0!==R?.[D]&&Number(R?.[D])===parseFloat(R?.[D])&&(H="normal");const W=h||"px";return(0,l.createElement)(l.Fragment,null,(0,At.showSettings)("allSettings","kadence/rowlayout")&&(0,At.showSettings)("paddingMargin","kadence/rowlayout")&&!s&&"normal"===H&&"px"===W&&"contentOnly"!==B&&(0,l.createElement)(Rt.ResizableBox,{size:{height:j},minHeight:"0",handleClasses:{top:"wp-block-kadence-rowlayout-handler-top",bottom:"wp-block-kadence-rowlayout-handler-bottom"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},className:`kt-${t}-padding-resize kt-padding-resize-box`,onResize:(e,n,o,a)=>{e.preventDefault(),F.getElementById("row-"+t+"-"+k).innerHTML=parseInt(j+a.height,10)+"px"},onResizeStop:(n,o,l,s)=>{i(!0),a("Mobile"===e?"top"===t?{mobilePadding:[parseInt(j+s.height,10),L?L[1]:"",L?L[2]:"",L?L[3]:""]}:{mobilePadding:[L?L[0]:"",L?L[1]:"",parseInt(j+s.height,10),L?L[3]:""]}:"Tablet"===e?"top"===t?{tabletPadding:[parseInt(j+s.height,10),m?m[1]:"",m?m[2]:"",m?m[3]:""]}:{tabletPadding:[m?m[0]:"",m?m[1]:"",parseInt(j+s.height,10),m?m[3]:""]}:"top"===t?{padding:[parseInt(j+s.height,10),R?R[1]:"",R?R[2]:"",R?R[3]:""]}:{padding:[R?R[0]:"",R?R[1]:"",parseInt(j+s.height,10),R?R[3]:""]}),r(!0)},onResizeStart:()=>{r(!1)}},k&&(0,l.createElement)("div",{className:"kt-row-padding"},(0,l.createElement)("span",{id:`row-${t}-${k}`},j+"px"))),(0,At.showSettings)("allSettings","kadence/rowlayout")&&(0,At.showSettings)("paddingMargin","kadence/rowlayout")&&!s&&"variable"===H&&"contentOnly"!==B&&(0,l.createElement)(Rt.ResizableBox,{size:{height:j},minHeight:"0",maxHeight:_p[_p.length-1]+"px",handleClasses:{top:"wp-block-kadence-rowlayout-handler-top",bottom:"wp-block-kadence-rowlayout-handler-bottom"},enable:{top:!1,right:!1,bottom:!0,left:!1,topRight:!1,bottomRight:!1,bottomLeft:!1,topLeft:!1},snap:{y:_p},snapGap:16,grid:[1,8],className:`kt-${t}-padding-resize kt-padding-resize-box`,onResize:(e,n,o,a)=>{e.preventDefault();const r=function(e){if(!e)return"";if("0"===e)return"0";const t=kp.find((t=>t.size===e));return t?t.name:e+"px"}(parseInt(j+a.height,10));F.getElementById("row-"+t+"-"+k).innerHTML=r},onResizeStop:(n,o,l,s)=>{i(!0);const c=function(e){if(!e)return"";if("0"===e)return"0";const t=kp.find((t=>t.size===e));return t?t.value:e}(parseInt(j+s.height,10));a("Mobile"===e?"top"===t?{mobilePadding:[c,L?L[1]:"",L?L[2]:"",L?L[3]:""]}:{mobilePadding:[L?L[0]:"",L?L[1]:"",c,L?L[3]:""]}:"Tablet"===e?"top"===t?{tabletPadding:[c,m?m[1]:"",m?m[2]:"",m?m[3]:""]}:{tabletPadding:[m?m[0]:"",m?m[1]:"",c,m?m[3]:""]}:"top"===t?{padding:[c,R?R[1]:"",R?R[2]:"",R?R[3]:""]}:{padding:[R?R[0]:"",R?R[1]:"",c,R?R[3]:""]}),r(!0)},onResizeStart:()=>{r(!1)},axis:"y"},k&&(0,l.createElement)("div",{className:"kt-row-padding"},(0,l.createElement)("span",{id:`row-${t}-${k}`},z))),(!(0,At.showSettings)("allSettings","kadence/rowlayout")||!(0,At.showSettings)("paddingMargin","kadence/rowlayout")||s||"contentOnly"===B||"normal"===H&&h&&"px"!==h)&&(0,l.createElement)(l.Fragment,null,k&&(0,l.createElement)("div",{className:"kt-row-padding kb-static-row-padding",style:{paddingTop:j+("variable"!==H?W:"px")}},(0,l.createElement)("div",{className:"kb-row-padding-container"},(0,l.createElement)("span",{id:`row-${t}-${k}`},"variable"===H?z:j+W)))))}function Bp({setAttributes:e,attributes:t}){const{padding:n,paddingUnit:o,firstColumnWidth:a,columns:r,columnsUnlocked:i,secondColumnWidth:s,uniqueID:c,columnGutter:u,customGutter:d,gutterType:p,colLayout:m,bgColor:g,bgImg:h,gradient:b,overlay:f,overlayGradient:v,overlayBgImg:y,inheritMaxWidth:k,maxWidth:E,maxWidthUnit:w}=t,_=(Sp(Cp("Desktop",u,d,p),r),void 0!==E?E:""),S=It()({"kt-resizeable-column-container":!0,"kb-grid-align-display-wrap":!0,[`kt-resizeable-column-container${c}`]:c,"kb-theme-content-width":k});let C=g||h||b||f||v||y?"var(--global-row-edge-sm, 15px)":"0px";k&&(C="var(--global-row-edge-theme, 15px)");const x="var(--global-row-spacing-sm, 25px)",I=void 0!==n&&void 0!==n[1]?Ip(n[1],o||"px"):void 0,O=void 0!==n&&void 0!==n[3]?Ip(n[3],o||"px"):void 0,A=void 0!==n&&void 0!==n[0]?Ip(n[0],o||"px"):void 0,M=void 0!==n&&void 0!==n[2]?Ip(n[2],o||"px"):void 0;return document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,(0,l.createElement)("div",{className:S,style:{paddingLeft:O||C,paddingRight:I||C,marginLeft:"auto",marginRight:"auto",paddingTop:A||x,paddingBottom:M||x,maxWidth:!k&&_?_+(w||"px"):void 0}},(0,l.createElement)("div",{className:"kb-grid-align-display",style:{left:O||C,right:I||C,top:A||x,bottom:M||x}},(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null),(0,l.createElement)("div",null)))}const Dp=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M19 8h-1V6h-5v2h-2V6H6v2H5c-1.1 0-2 .9-2 2v8c0 1.1.9 2 2 2h14c1.1 0 2-.9 2-2v-8c0-1.1-.9-2-2-2zm.5 10c0 .3-.2.5-.5.5H5c-.3 0-.5-.2-.5-.5v-8c0-.3.2-.5.5-.5h14c.3 0 .5.2.5.5v8z"})),Fp=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M4 20h8v-1.5H4V20zM18.9 3.5c-.6-.6-1.5-.6-2.1 0l-7.2 7.2c-.4-.1-.7 0-1.1.1-.5.2-1.5.7-1.9 2.2-.4 1.7-.8 2.2-1.1 2.7-.1.1-.2.3-.3.4l-.6 1.1H6c2 0 3.4-.4 4.7-1.4.8-.6 1.2-1.4 1.3-2.3 0-.3 0-.5-.1-.7L19 5.7c.5-.6.5-1.6-.1-2.2zM9.7 14.7c-.7.5-1.5.8-2.4 1 .2-.5.5-1.2.8-2.3.2-.6.4-1 .8-1.1.5-.1 1 .1 1.3.3.2.2.3.5.2.8 0 .3-.1.9-.7 1.3z"})),zp=(0,Nt.createElement)(Bt.SVG,{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24"},(0,Nt.createElement)(Bt.Path,{d:"M14.5 13.8c-1.1 0-2.1.7-2.4 1.8H4V17h8.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20v-1.5h-3.1c-.3-1-1.3-1.7-2.4-1.7zM11.9 7c-.3-1-1.3-1.8-2.4-1.8S7.4 6 7.1 7H4v1.5h3.1c.3 1 1.3 1.8 2.4 1.8s2.1-.7 2.4-1.8H20V7h-8.1z"})),jp=["kadence/column"],Hp=(0,Tt.withDispatch)(((e,t,n)=>({updateAlignment(o){const{clientId:a,setAttributes:r}=t,{updateBlockAttributes:l}=e(An.store),{getBlockOrder:i}=n.select(An.store);r({verticalAlignment:o}),i(a).forEach((e=>{l(e,{verticalAlignment:o})}))},updateColumns(o,a){const{clientId:l}=t,{replaceInnerBlocks:i}=e(An.store),{getBlocks:s}=n.select(An.store);let c=s(l);if(a>o){const e=c.length;for(let t=0;t<e;t++)c[t].attributes.id=t+1;c=[...c,...(0,Ct.times)(a-o,(e=>(0,r.createBlock)("kadence/column",{id:o+e+1})))]}else 1==o-a&&(c[c.length-1].innerBlocks.length||(c=(0,Ct.dropRight)(c,o-a)));i(l,c)},insertSection(o){const{clientId:a}=t,{insertBlock:r}=e(An.store),{getBlock:l}=n.select(An.store),i=l(a);r(o,parseInt(i.innerBlocks.length),a)}})))((function(e){const{attributes:t,setAttributes:n,updateAlignment:i,insertSection:s,context:c,updateColumns:u,toggleSelection:d,isSelected:p,clientId:m}=e,{uniqueID:g,columns:h,mobileLayout:b,currentTab:f,colLayout:v,tabletLayout:y,columnGutter:k,collapseGutter:E,collapseOrder:w,topPadding:_,bottomPadding:S,leftPadding:C,rightPadding:x,topPaddingM:I,bottomPaddingM:O,leftPaddingM:A,rightPaddingM:M,topMargin:P,bottomMargin:T,topMarginM:N,bottomMarginM:R,bgColor:L,bgImg:B,bgImgAttachment:D,bgImgSize:F,bgImgPosition:z,bgImgRepeat:j,bgImgID:H,verticalAlignment:W,overlayOpacity:V,overlayBgImg:$,overlayBgImgAttachment:U,overlayBgImgID:Z,overlayBgImgPosition:G,overlayBgImgRepeat:q,overlayBgImgSize:K,currentOverlayTab:J,overlayBlendMode:Y,overlayGradAngle:X,overlayGradLoc:Q,overlayGradLocSecond:ee,overlayGradType:te,overlay:ne,overlaySecond:oe,htmlTag:ae,minHeight:re,maxWidth:le,bottomSep:ie,bottomSepColor:se,bottomSepHeight:ce,bottomSepHeightMobile:ue,bottomSepHeightTab:de,bottomSepWidth:pe,bottomSepWidthMobile:me,bottomSepWidthTab:ge,topSep:he,topSepColor:be,topSepHeight:fe,topSepHeightMobile:ve,topSepHeightTab:ye,topSepWidth:ke,topSepWidthMobile:Ee,topSepWidthTab:we,firstColumnWidth:_e,firstColumnWidthTablet:Se,firstColumnWidthMobile:Ce,textColor:xe,linkColor:Ie,linkHoverColor:Oe,tabletPadding:Ae,topMarginT:Me,bottomMarginT:Pe,minHeightUnit:Te,maxWidthUnit:Ne,marginUnit:Re,columnsUnlocked:Le,tabletBackground:Be,tabletOverlay:De,mobileBackground:Fe,mobileOverlay:ze,columnsInnerHeight:je,zIndex:He,backgroundInline:We,backgroundSettingTab:Ve,backgroundSliderCount:$e,backgroundSlider:Ue,inheritMaxWidth:Ze,backgroundSliderSettings:Ge,backgroundVideo:qe,backgroundVideoType:Ke,overlaySecondOpacity:Je,overlayFirstOpacity:Ye,paddingUnit:Xe,align:Qe,minHeightTablet:et,minHeightMobile:tt,bgColorClass:nt,gradient:ot,overlayGradient:at,vsdesk:rt,vstablet:lt,vsmobile:it,loggedInUser:st,loggedIn:ct,loggedOut:ut,loggedInShow:dt,rcpAccess:pt,rcpMembership:mt,rcpMembershipLevel:gt,borderWidth:ht,tabletBorderWidth:bt,mobileBorderWidth:ft,borderRadius:vt,tabletBorderRadius:yt,mobileBorderRadius:kt,border:Et,tabletBorder:wt,mobileBorder:_t,isPrebuiltModal:xt,responsiveMaxWidth:Mt,kadenceBlockCSS:Pt,customGutter:Lt,gutterType:Bt,padding:Ft,mobilePadding:zt,margin:jt,tabletMargin:Ht,mobileMargin:Wt,customRowGutter:Vt,rowType:$t,tabletGutter:Ut,mobileGutter:Zt,mobileRowGutter:Gt,tabletRowGutter:qt,templateLock:Kt,kbVersion:Jt,borderStyle:Yt,mobileBorderStyle:Xt,tabletBorderStyle:Qt,inQueryBlock:en,breakoutLeft:tn,breakoutRight:nn,topSepHeightUnit:on,bottomSepHeightUnit:an,borderRadiusOverflow:rn}=t,{isPreviewMode:ln}=(0,Tt.useSelect)((e=>{const{__unstableIsPreviewMode:t}=e(An.store).getSettings();return{isPreviewMode:t}}),[]),{addUniqueID:sn}=(0,Tt.useDispatch)("kadenceblocks/data"),{isUniqueID:cn,isUniqueBlock:un,previewDevice:dn,innerItemCount:pn,parentData:mn}=(0,Tt.useSelect)((e=>({isUniqueID:t=>e("kadenceblocks/data").isUniqueID(t),isUniqueBlock:(t,n)=>e("kadenceblocks/data").isUniqueBlock(t,n),previewDevice:e("kadenceblocks/data").getPreviewDeviceType(),innerItemCount:e(An.store).getBlockCount(m),parentData:{rootBlock:e("core/block-editor").getBlock(e("core/block-editor").getBlockHierarchyRootClientId(m)),postId:e("core/editor")?.getCurrentPostId()?e("core/editor")?.getCurrentPostId():"",reusableParent:e("core/block-editor").getBlockAttributes(e("core/block-editor").getBlockParentsByBlockName(m,"core/block").slice(-1)[0]),editedPostId:!!e("core/edit-site")&&e("core/edit-site").getEditedPostId()}})),[m]);(0,Nt.useEffect)((()=>{(0,At.setBlockDefaults)("kadence/rowlayout",t);const o=(0,At.getPostOrFseId)(e,mn),a=(0,At.getUniqueId)(g,m,cn,un,o);a!==g?(t.uniqueID=a,n({uniqueID:a}),sn(a,m)):sn(a,m);const r=(0,At.getInQueryBlock)(c,en);if(t.inQueryBlock!==r&&(t.inQueryBlock=r,n({inQueryBlock:r})),"wide"==k?n({columnGutter:"custom",customGutter:[40,Lt&&Lt[1]?Lt[1]:"",Lt&&Lt[2]?Lt[2]:""]}):"narrow"==k?n({columnGutter:"custom",customGutter:[20,Lt&&Lt[1]?Lt[1]:"",Lt&&Lt[2]?Lt[2]:""]}):"widest"==k&&n({columnGutter:"custom",customGutter:[80,Lt&&Lt[1]?Lt[1]:"",Lt&&Lt[2]?Lt[2]:""]}),""===_&&""===x&&""===S&&""===C||n({padding:[""!==_?_:25,x,""!==S?S:25,C],topPadding:"",rightPadding:"",bottomPadding:"",leftPadding:""}),""===I&&""===M&&""===O&&""===A||n({mobilePadding:[I,M,O,A],topPaddingM:"",rightPaddingM:"",bottomPaddingM:"",leftPaddingM:""}),""===P&&""===T||n({margin:[""!==P?P:"","",""!==T?T:"",""],topMargin:"",bottomMargin:""}),""===Me&&""===Pe||n({tabletMargin:[""!==Me?Me:"","",""!==Pe?Pe:"",""],topMarginT:"",bottomMarginT:""}),""===N&&""===R||n({mobileMargin:[""!==N?N:"","",""!==R?R:"",""],topMarginM:"",bottomMarginM:""}),"grad"==J){const e="radial"===te?`radial-gradient(ellipse at ${G}, ${ne?(0,At.KadenceColorOutput)(ne,void 0!==Ye&&""!==Ye?Ye:1):""} ${Q}%, ${oe?(0,At.KadenceColorOutput)(oe,void 0!==Je&&""!==Je?Je:1):""} ${ee}%)`:`linear-gradient(${X}deg, ${ne?(0,At.KadenceColorOutput)(ne,void 0!==Ye&&""!==Ye?Ye:1):""} ${Q}%, ${oe?(0,At.KadenceColorOutput)(oe,void 0!==Je&&""!==Je?Je:1):""} ${ee}%)`;n({overlayGradient:e,currentOverlayTab:"gradient"})}if(De&&De[0]&&De[0].currentOverlayTab&&"grad"===De[0].currentOverlayTab){(e=>{const t=De.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({tabletOverlay:t})})({gradient:"radial"===De[0].overlayGradType?`radial-gradient(ellipse at ${De[0].overlayBgImgPosition}, ${De[0].overlay?(0,At.KadenceColorOutput)(De[0].overlay,void 0!==De[0].overlayFirstOpacity&&""!==De[0].overlayFirstOpacity?Ye:1):""} ${De[0].overlayGradLoc}%, ${De[0].overlaySecond?(0,At.KadenceColorOutput)(De[0].overlaySecond,void 0!==De[0].overlaySecondOpacity&&""!==De[0].overlaySecondOpacity?De[0].overlaySecondOpacity:1):""} ${De[0].overlayGradLocSecond}%)`:`linear-gradient(${De[0].overlayGradAngle}deg, ${De[0].overlay?(0,At.KadenceColorOutput)(De[0].overlay,void 0!==Ye&&""!==De[0].overlayFirstOpacity?De[0].overlayFirstOpacity:1):""} ${De[0].overlayGradLoc}%, ${De[0].overlaySecond?(0,At.KadenceColorOutput)(De[0].overlaySecond,void 0!==De[0].overlaySecondOpacity&&""!==De[0].tabletOverlay[0].overlaySecondOpacity?De[0].overlaySecondOpacity:1):""} ${De[0].overlayGradLocSecond}%)`,currentOverlayTab:"gradient"})}if(ze&&ze[0]&&ze[0].currentOverlayTab&&"grad"===ze[0].currentOverlayTab){(e=>{const t=ze.map(((t,n)=>(0===n&&(t={...t,...e}),t)));n({mobileOverlay:t})})({gradient:"radial"===ze[0].overlayGradType?`radial-gradient(ellipse at ${ze[0].overlayBgImgPosition}, ${ze[0].overlay?(0,At.KadenceColorOutput)(ze[0].overlay,void 0!==ze[0].overlayFirstOpacity&&""!==ze[0].overlayFirstOpacity?Ye:1):""} ${ze[0].overlayGradLoc}%, ${ze[0].overlaySecond?(0,At.KadenceColorOutput)(ze[0].overlaySecond,void 0!==ze[0].overlaySecondOpacity&&""!==ze[0].overlaySecondOpacity?ze[0].overlaySecondOpacity:1):""} ${ze[0].overlayGradLocSecond}%)`:`linear-gradient(${ze[0].overlayGradAngle}deg, ${ze[0].overlay?(0,At.KadenceColorOutput)(ze[0].overlay,void 0!==Ye&&""!==ze[0].overlayFirstOpacity?ze[0].overlayFirstOpacity:1):""} ${ze[0].overlayGradLoc}%, ${ze[0].overlaySecond?(0,At.KadenceColorOutput)(ze[0].overlaySecond,void 0!==ze[0].overlaySecondOpacity&&""!==ze[0].mobileOverlay[0].overlaySecondOpacity?ze[0].overlaySecondOpacity:1):""} ${ze[0].overlayGradLocSecond}%)`,currentOverlayTab:"gradient"})}const l=JSON.parse(JSON.stringify(t.borderStyle?t.borderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let i=!1;""!==Et&&(l[0].top[0]=Et,l[0].right[0]=Et,l[0].bottom[0]=Et,l[0].left[0]=Et,i=!0,n({border:""})),""===ht?.[0]&&""===ht?.[1]&&""===ht?.[2]&&""===ht?.[3]||(l[0].top[2]=ht?.[0]||"",l[0].right[2]=ht?.[1]||"",l[0].bottom[2]=ht?.[2]||"",l[0].left[2]=ht?.[3]||"",i=!0,n({borderWidth:["","","",""]})),i&&n({borderStyle:l});const s=JSON.parse(JSON.stringify(t.tabletBorderStyle?t.tabletBorderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let u=!1;""!==wt&&(s[0].top[0]=wt,s[0].right[0]=wt,s[0].bottom[0]=wt,s[0].left[0]=wt,u=!0,n({tabletBorder:""})),""===bt?.[0]&&""===bt?.[1]&&""===bt?.[2]&&""===bt?.[3]||(s[0].top[2]=bt?.[0]||"",s[0].right[2]=bt?.[1]||"",s[0].bottom[2]=bt?.[2]||"",s[0].left[2]=bt?.[3]||"",u=!0,n({tabletBorderWidth:["","","",""]})),u&&n({tabletBorderStyle:s});const d=JSON.parse(JSON.stringify(t.mobileBorderStyle?t.mobileBorderStyle:[{top:["","",""],right:["","",""],bottom:["","",""],left:["","",""],unit:"px"}]));let p=!1;""!==_t&&(d[0].top[0]=_t,d[0].right[0]=_t,d[0].bottom[0]=_t,d[0].left[0]=_t,p=!0,n({mobileBorder:""})),""===ft?.[0]&&""===ft?.[1]&&""===ft?.[2]&&""===ft?.[3]||(d[0].top[2]=ft?.[0]||"",d[0].right[2]=ft?.[1]||"",d[0].bottom[2]=ft?.[2]||"",d[0].left[2]=ft?.[3]||"",p=!0,n({mobileBorderWidth:["","","",""]})),p&&n({mobileBorderStyle:d}),(!Jt||Jt<2)&&n({kbVersion:2})}),[]),(0,Nt.useEffect)((()=>{if(pn<h&&g)u(pn,h);else if(pn<h&&!g){const e=(0,At.setBlockDefaults)("kadence/rowlayout",t);u(pn,e.columns)}}),[pn,h]),(0,Nt.useEffect)((()=>{In("kadence.dynamicBackground","",t,"bgImg",n,c,xn,!B)}),[B,c]);const[gn,hn]=(0,Nt.useState)(!1),[bn,fn]=(0,Nt.useState)(!1),[vn,yn]=(0,Nt.useState)(null),kn=(0,Nt.useRef)(),En=()=>{kn.current&&window.clearTimeout(kn.current)},[wn,Sn]=(0,Nt.useState)("general"),[Cn,xn]=(0,Nt.useState)(""),In=(0,Ct.debounce)(At.setDynamicState,200),On=(0,At.getPreviewSize)(dn,_e,Se,Ce),Mn=(document.querySelector('iframe[name="editor-canvas"]')?.contentWindow.document||document,L||B||ot||ne||at||$?"kt-row-has-bg":""),Pn=!("undefined"==typeof kadence_blocks_params||!kadence_blocks_params.isKadenceT),Tn=Pn&&!0===Ze?"var(--global-content-edge-padding)":"0px",Nn=!Mn||Pn&&!0===Ze?"":"sm",Rn=(0,At.getPreviewSize)(dn,void 0!==Ft?.[0]?Ft[0]:"",void 0!==Ae?Ae[0]:"",void 0!==zt?zt[0]:""),Ln=(0,At.getPreviewSize)(dn,void 0!==Ft?.[1]&&""!==Ft[1]?Ft[1]:Nn,void 0!==Ae?Ae[1]:"",void 0!==zt?zt[1]:""),Bn=(0,At.getPreviewSize)(dn,void 0!==Ft?.[2]?Ft[2]:"",void 0!==Ae?Ae[2]:"",void 0!==zt?zt[2]:""),Dn=(0,At.getPreviewSize)(dn,void 0!==Ft?.[3]&&""!==Ft[3]?Ft[3]:Nn,void 0!==Ae?Ae[3]:"",void 0!==zt?zt[3]:""),Fn=(0,At.getPreviewSize)(dn,void 0!==le?le:"",void 0!==Mt&&Mt[0]?Mt[0]:"",void 0!==Mt&&Mt[1]?Mt[1]:""),zn=(0,At.getPreviewSize)(dn,void 0!==re?re:"",void 0!==et?et:"",void 0!==tt?tt:""),jn=(0,At.getPreviewSize)(dn,void 0!==jt&&void 0!==jt[0]?jt[0]:"",void 0!==Ht&&void 0!==Ht[0]?Ht[0]:"",void 0!==Wt&&void 0!==Wt[0]?Wt[0]:""),Hn=(0,At.getPreviewSize)(dn,void 0!==jt&&void 0!==jt[2]?jt[2]:"",void 0!==Ht&&void 0!==Ht[2]?Ht[2]:"",void 0!==Wt&&void 0!==Wt[2]?Wt[2]:""),Wn=(0,At.getPreviewSize)(dn,void 0!==fe?fe:"",void 0!==ye?ye:"",void 0!==ve?ve:""),Vn=(0,At.getPreviewSize)(dn,void 0!==ke?ke:"",void 0!==we?we:"",void 0!==Ee?Ee:""),$n=(0,At.getPreviewSize)(dn,void 0!==ce?ce:"",void 0!==de?de:"",void 0!==ue?ue:""),Un=(0,At.getPreviewSize)(dn,void 0!==pe?pe:"",void 0!==ge?ge:"",void 0!==me?me:""),Zn=""!==Ln?Ip(Ln,Xe||"px"):Tn,Gn=Dn?Ip(Dn,Xe||"px"):Tn,qn=(0,At.getPreviewSize)(dn,v||"equal",y||"",b||""),Kn=(0,At.getPreviewSize)(dn,v||"equal",y&&"inherit"!==y?y:"",b||""),Jn=!(!(vt?.[0]||vt?.[1]||vt?.[2]||vt?.[3])||!1===rn),Yn=["row","last-row","first-row","grid-layout","two-grid","three-grid"],Xn=["firstColumnWidth","secondColumnWidth","thirdColumnWidth","fourthColumnWidth","fifthColumnWidth","sixthColumnWidth"],Qn=[],eo=[];for(let e=0;e<Xn.length;e++){const n="Desktop"==dn?"":dn,o=t[Xn[e]],a=t[Xn[e]+"Tablet"],r=t[Xn[e]+"Mobile"],l=(0,At.getPreviewSize)(dn,o,a,r,!0),i="inherit"==qn?l:t[Xn[e]+n],s=Ep?.[h]?.[Kn]?.[e],c=i||Kn;Qn.push(Math.abs(c)===parseFloat(c)?i:null!=s?s:0),eo.push(`${c}`)}const to=!!(On&&eo[0]!=qn||vn),no=Cp(dn,(0,At.getPreviewSize)(dn,k,Ut,Zt),Lt,Bt),oo=Cp(dn,(0,At.getPreviewSize)(dn,E,qt,Gt),Vt,$t),ao=Sp(no,h),ro=It()({"kt-row-column-wrap":!0,[`align${Qe}`]:Qe,[`kb-row-id-${g}`]:g,[`kt-has-${h}-columns`]:h,[`kt-row-layout-${Kn}`]:Kn,[`kt-row-valign-${W}`]:W,[`current-tab-${f}`]:f,[`kt-v-gutter-${E}`]:E,[`kt-m-colapse-${w}`]:"Desktop"!==dn&&w,[Mn]:Mn,"has-border-radius":Jn,"kt-inner-column-height-full":je,"kvs-false":(0,At.getPreviewSize)(dn,rt,lt,it),"kadence-has-rcp-display":mt&&kadence_blocks_params&&kadence_blocks_params.rcp_access}),lo=[{key:"equal",col:1,name:(0,o.__)("Row","kadence-blocks"),icon:a.rowIcon},{key:"equal",col:2,name:(0,o.__)("Two: Equal","kadence-blocks"),icon:a.twoColIcon},{key:"left-golden",col:2,name:(0,o.__)("Two: Left Heavy 66/33","kadence-blocks"),icon:a.twoLeftGoldenIcon},{key:"right-golden",col:2,name:(0,o.__)("Two: Right Heavy 33/66","kadence-blocks"),icon:a.twoRightGoldenIcon},{key:"equal",col:3,name:(0,o.__)("Three: Equal","kadence-blocks"),icon:a.threeColIcon},{key:"left-half",col:3,name:(0,o.__)("Three: Left Heavy 50/25/25","kadence-blocks"),icon:a.leftHalfIcon},{key:"right-half",col:3,name:(0,o.__)("Three: Right Heavy 25/25/50","kadence-blocks"),icon:a.rightHalfIcon},{key:"center-half",col:3,name:(0,o.__)("Three: Center Heavy 25/50/25","kadence-blocks"),icon:a.centerHalfIcon},{key:"center-wide",col:3,name:(0,o.__)("Three: Wide Center 20/60/20","kadence-blocks"),icon:a.wideCenterIcon},{key:"center-exwide",col:3,name:(0,o.__)("Three: Wider Center 15/70/15","kadence-blocks"),icon:a.exWideCenterIcon},{key:"equal",col:4,name:(0,o.__)("Four: Equal","kadence-blocks"),icon:a.fourColIcon},{key:"left-forty",col:4,name:(0,o.__)("Four: Left Heavy 40/20/20/20","kadence-blocks"),icon:a.lFourFortyIcon},{key:"right-forty",col:4,name:(0,o.__)("Four: Right Heavy 20/20/20/40","kadence-blocks"),icon:a.rFourFortyIcon},{key:"equal",col:5,name:(0,o.__)("Five: Equal","kadence-blocks"),icon:a.fiveColIcon},{key:"equal",col:6,name:(0,o.__)("Six: Equal","kadence-blocks"),icon:a.sixColIcon}];let io="";for(let e=0;e<h;e++){const t=vn?vn[e]:Qn[e];io+=` minmax(0, calc( ${parseFloat(t)}%${ao?" - ("+ao+" / "+h+")":""} ) )`}const so=It()({"innerblocks-wrap":!0,"kb-theme-content-width":Ze,[`kt-layout-inner-wrap-id${g}`]:g,[`kb-grid-columns-${h}`]:h}),co=(0,Nt.useRef)(null),{children:uo,...po}=(0,An.useInnerBlocksProps)({ref:co,className:so,style:{maxWidth:!Ze&&Fn?Fn+Ne:void 0,minHeight:zn&&Xe&&"%"!==Xe?"calc("+zn+Te+" - ("+(""!==Rn?Ip(Rn,Xe||"px"):"0px")+" + "+(""!==Bn?Ip(Bn,Xe||"px"):"0px")+")":void 0,paddingLeft:""!==Dn?Ip(Dn,Xe||"px"):void 0,paddingRight:""!==Ln?Ip(Ln,Xe||"px"):void 0}},{allowedBlocks:jp,orientation:"horizontal",renderAppender:!1,templateLock:Kt}),mo=(0,At.mouseOverVisualizer)(),go=(0,At.mouseOverVisualizer)();return(0,l.createElement)(l.Fragment,null,"contentOnly"!==Kt&&!ln&&(0,At.showSettings)("allSettings","kadence/rowlayout")&&(0,l.createElement)(An.BlockControls,null,(0,l.createElement)(An.BlockAlignmentToolbar,{value:Qe,controls:["center","wide","full"],onChange:e=>n({align:e})}),(0,l.createElement)(Rt.ToolbarGroup,{group:"content-width"},(0,l.createElement)(Rt.ToolbarButton,{className:"kb-content-width",icon:Ze?(0,l.createElement)(Mp,{value:"theme"}):(0,l.createElement)(Mp,{value:"normal"}),onClick:()=>{gn||hn(!0)},isPressed:!!gn,"aria-haspopup":"true","aria-expanded":gn,label:(0,o.__)("Inner Content Width","kadence-blocks"),showTooltip:!0}),gn&&(0,l.createElement)(Rt.Popover,{className:"kb-content-width-popover",position:"bottom center",onClick:()=>{},expandOnMobile:!0,onClose:()=>{hn(!1)}},(0,l.createElement)("div",{className:"kb-content-width-popover-inner-wrap"},(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Use Theme Content Inner Width?","kadence-blocks"),checked:void 0!==Ze&&Ze,onChange:e=>n({inheritMaxWidth:e})}),!0!==Ze&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Custom Content Max Width","kadence-blocks"),value:le||"",onChange:e=>{n({maxWidth:e})},tabletValue:void 0!==Mt&&void 0!==Mt[0]?Mt[0]:"",onChangeTablet:e=>{n({responsiveMaxWidth:[e,void 0!==Mt&&void 0!==Mt[1]?Mt[1]:""]})},mobileValue:void 0!==Mt&&void 0!==Mt[1]?Mt[1]:"",onChangeMobile:e=>{n({responsiveMaxWidth:[void 0!==Mt&&void 0!==Mt[0]?Mt[0]:"",e]})},min:0,max:"px"===Ne?2e3:100,step:1,unit:Ne||"px",onUnit:e=>{n({maxWidthUnit:e})},units:["px","%","vw","rem"]}))))),(0,l.createElement)(Rt.ToolbarGroup,{group:"align"},(0,l.createElement)(An.BlockVerticalAlignmentControl,{value:"middle"===W?"center":W,onChange:e=>{n("center"===e?{verticalAlignment:"middle"}:"bottom"===e?{verticalAlignment:"bottom"}:{verticalAlignment:"top"})}})),(0,l.createElement)(Rt.ToolbarGroup,{group:"add-block"},(0,l.createElement)(Rt.ToolbarButton,{className:"kb-row-add-section",icon:Dt,onClick:()=>{const e=(0,r.createBlock)("kadence/column",{});s(e)},label:(0,o.__)("Add Another Section","kadence-blocks"),showTooltip:!0})),(0,l.createElement)(Ot.CopyPasteAttributes,{attributes:t,defaultAttributes:Tp.attributes,blockSlug:Tp.name,onPaste:e=>n(e)})),!ln&&(0,At.showSettings)("allSettings","kadence/rowlayout")&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(An.InspectorControls,null,(0,l.createElement)(Ot.InspectorControlTabs,{panelName:"rowlayout",setActiveTab:Sn,activeTab:wn,tabs:[{key:"general",title:(0,o.__)("Layout","kadence-blocks"),icon:Dp},{key:"style",title:(0,o.__)("Style","kadence-blocks"),icon:Fp},{key:"advanced",title:(0,o.__)("Advanced","kadence-blocks"),icon:zp}]}),"general"===wn&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Np,{clientId:m,attributes:t,setAttributes:n,updateColumns:u,innerItemCount:pn,widthString:eo[0],previewDevice:dn})),"style"===wn&&(0,l.createElement)(Rp,{clientId:m,attributes:t,setAttributes:n,isSelected:p,context:c}),"advanced"===wn&&(0,l.createElement)(l.Fragment,null,(0,At.showSettings)("paddingMargin","kadence/rowlayout")&&(0,l.createElement)(Ot.KadencePanelBody,{panelName:"kb-row-padding"},(0,l.createElement)(Ot.ResponsiveMeasureRangeControl,{label:(0,o.__)("Padding","kadence-blocks"),value:Mn&&void 0!==Ft&&void 0!==Ft[0]&&""===Ft[1]&&""===Ft[3]?[Ft[0],"sm",Ft[2],"sm"]:void 0!==Ft&&void 0!==Ft[0]?Ft:["sm","","sm",""],tabletValue:Ae,mobileValue:void 0!==zt&&void 0!==zt[0]?zt:["","","",""],onChange:e=>n({padding:e}),onChangeTablet:e=>n({tabletPadding:e}),onChangeMobile:e=>n({mobilePadding:e}),min:0,max:"em"===Xe||"rem"===Xe?25:999,step:"em"===Xe||"rem"===Xe?.1:1,deskDefault:["sm","","sm",""],unit:Xe,options:kp,units:["px","em","rem","%","vh","vw"],onUnit:e=>n({paddingUnit:e}),onMouseOver:mo.onMouseOver,onMouseOut:mo.onMouseOut}),(0,l.createElement)(Ot.ResponsiveMeasureRangeControl,{label:(0,o.__)("Margin","kadence-blocks"),value:[void 0!==jt&&void 0!==jt[0]?jt[0]:"","auto",void 0!==jt&&void 0!==jt[2]?jt[2]:"","auto"],tabletValue:[void 0!==Ht&&void 0!==Ht[0]?Ht[0]:"","auto",void 0!==Ht&&void 0!==Ht[2]?Ht[2]:"","auto"],mobileValue:[void 0!==Wt&&void 0!==Wt[0]?Wt[0]:"","auto",void 0!==Wt&&void 0!==Wt[2]?Wt[2]:"","auto"],onChange:e=>{n({margin:[e[0],"",e[2],""]})},onChangeTablet:e=>{n({tabletMargin:[e[0],"",e[2],""]})},onChangeMobile:e=>{n({mobileMargin:[e[0],"",e[2],""]})},min:"em"===Re||"rem"===Re?-25:-999,max:"em"===Re||"rem"===Re?25:999,step:"em"===Re||"rem"===Re?.1:1,unit:Re,allowEmpty:!0,options:kp,units:["px","em","rem","%","vh"],onUnit:e=>n({marginUnit:e}),onMouseOver:go.onMouseOver,onMouseOut:go.onMouseOut,allowAuto:!0})),(0,l.createElement)("div",{className:"kt-sidebar-settings-spacer"}),(0,At.showSettings)("structure","kadence/rowlayout")&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Structure Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-structure-settings"},(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Container HTML tag","kadence-blocks"),value:ae,options:[{value:"div",label:"div"},{value:"header",label:"header"},{value:"section",label:"section"},{value:"article",label:"article"},{value:"main",label:"main"},{value:"aside",label:"aside"},{value:"footer",label:"footer"}],onChange:e=>n({htmlTag:e})}),(0,l.createElement)(Ot.ResponsiveRangeControls,{label:(0,o.__)("Minimum Height","kadence-blocks"),value:re||"",onChange:e=>{n({minHeight:e})},tabletValue:void 0!==et?et:"",onChangeTablet:e=>{n({minHeightTablet:e})},mobileValue:void 0!==tt?tt:"",onChangeMobile:e=>{n({minHeightMobile:e})},min:0,max:"px"===Te?2e3:200,step:1,unit:Te||"px",onUnit:e=>{n({minHeightUnit:e})},units:["px","vw","vh"],reset:!0}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Inner Column Height 100%","kadence-blocks"),checked:void 0!==je&&je,onChange:e=>n({columnsInnerHeight:e})}),(0,l.createElement)(Ot.RangeControl,{label:(0,o.__)("Z-Index Control","kadence-blocks"),value:He,onChange:e=>{n({zIndex:e})},min:-200,max:2e3,reset:!0})),(0,l.createElement)(Ot.KadencePanelBody,{title:(0,o.__)("Visibility Settings","kadence-blocks"),initialOpen:!1,panelName:"kb-row-visibility-settings"},(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Hide on Desktop","kadence-blocks"),checked:void 0!==rt&&rt,onChange:e=>n({vsdesk:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Hide on Tablet","kadence-blocks"),checked:void 0!==lt&&lt,onChange:e=>n({vstablet:e})}),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Hide on Mobile","kadence-blocks"),checked:void 0!==it&&it,onChange:e=>n({vsmobile:e})}),(0,l.createElement)("h2",null,(0,o.__)("User Visibility Settings","kadence-blocks")),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Hide from Logged in Users","kadence-blocks"),checked:void 0!==ct&&ct,onChange:e=>n({loggedIn:e})}),ct&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)("div",{className:"components-base-control"},(0,l.createElement)("span",{className:"kadence-sidebar-label"},(0,o.__)("Optional: Hide from Specific User Roles","kadence-blocks")),(0,l.createElement)("div",{className:"kt-meta-select-wrap"},(0,l.createElement)(St,{options:kadence_blocks_user_params&&kadence_blocks_user_params.userVisibility?kadence_blocks_user_params.userVisibility:[],value:st,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"",onChange:e=>n({loggedInUser:e})}))),(0,l.createElement)("div",{className:"components-base-control"},(0,l.createElement)("span",{className:"kadence-sidebar-label"},(0,o.__)("Optional: Show Only to Specific User Roles","kadence-blocks")),(0,l.createElement)("div",{className:"kt-meta-select-wrap"},(0,l.createElement)(St,{options:kadence_blocks_user_params&&kadence_blocks_user_params.userVisibility?kadence_blocks_user_params.userVisibility:[],value:dt,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"",onChange:e=>n({loggedInShow:e})})))),(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Hide from Loggedout Users","kadence-blocks"),checked:void 0!==ut&&ut,onChange:e=>n({loggedOut:e})}),kadence_blocks_params&&kadence_blocks_params.rcp_access&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Restrict based on Membership","kadence-blocks"),checked:void 0!==mt&&mt,onChange:e=>n({rcpMembership:e})}),mt&&(0,l.createElement)(l.Fragment,null,(0,l.createElement)(Rt.SelectControl,{label:(0,o.__)("Minimum Access Level","kadence-blocks"),value:pt,options:kadence_blocks_params&&kadence_blocks_params.rcp_access?kadence_blocks_params.rcp_access:[],onChange:e=>n({rcpAccess:e})}),(0,l.createElement)("div",{className:"components-base-control"},(0,l.createElement)("span",{className:"kadence-sidebar-label"},(0,o.__)("Specific Memberships","kadence-blocks")),(0,l.createElement)("div",{className:"kt-meta-select-wrap"},(0,l.createElement)(St,{options:kadence_blocks_params&&kadence_blocks_params.rcp_levels?kadence_blocks_params.rcp_levels:[],value:gt,isMulti:!0,maxMenuHeight:200,isClearable:!0,placeholder:"Any Membership",onChange:e=>n({rcpMembershipLevel:e})}))))))),(0,l.createElement)(Ot.KadenceBlockDefaults,{attributes:t,defaultAttributes:Tp.attributes,blockSlug:Tp.name}))),(0,l.createElement)(An.InspectorAdvancedControls,null,(0,l.createElement)(Rt.ToggleControl,{label:(0,o.__)("Row Content Only Editing","kadence-blocks"),checked:"contentOnly"===Kt,onChange:e=>n({templateLock:"contentOnly"})}))),(0,l.createElement)(Ap,{backgroundClasses:ro,attributes:t,previewDevice:dn,dynamicBackgroundImg:Cn},(0,l.createElement)("style",null,xe?`.kb-row-id-${g}, .kb-row-id-${g} p:not(.use-for-specificity), .kb-row-id-${g} h1:not(.use-for-specificity), .kb-row-id-${g} h2:not(.use-for-specificity), .kb-row-id-${g} h3:not(.use-for-specificity), .kb-row-id-${g} h4:not(.use-for-specificity), .kb-row-id-${g} h5:not(.use-for-specificity), .kb-row-id-${g} h6:not(.use-for-specificity) { color: ${(0,At.KadenceColorOutput)(xe)}; }`:"",h&&2===h&&Ze&&(tn||nn)&&"row"!==qn&&"full"===Qe&&"Desktop"===dn&&(0,l.createElement)(l.Fragment,null,nn?`@media (min-width: 1290px) {.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(2) > .kadence-inner-column-inner { margin-inline-end: calc( ( ( ( var( --global-kb-editor-full-width ) - ( var( --kb-global-content-width ) - ( ${Zn} *2 ) ) ) /2 ) *-1) ) !important; }}@media (max-width: 1289px) {.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(2) > .kadence-inner-column-inner { margin-inline-end: calc( ${Zn} * -1 ) !important; }}`:"",tn?`@media (min-width: 1290px) {.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(1) > .kadence-inner-column-inner { margin-inline-start: calc( ( ( ( var( --global-kb-editor-full-width ) - ( var( --kb-global-content-width ) - ( ${Gn} *2 ) ) ) /2 ) *-1) ) !important; }}@media (max-width: 1289px) {.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(1) > .kadence-inner-column-inner { margin-inline-start: calc( ${Zn} * -1 ) !important; }}`:""),h&&2===h&&Ze&&(tn||nn)&&"row"!==qn&&"full"===Qe&&"Tablet"===dn&&(0,l.createElement)(l.Fragment,null,nn?`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(2) > .kadence-inner-column-inner { margin-inline-end: calc( ${Zn} *-1 ) !important; }`:"",tn?`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kb-grid-columns-2.kt-layout-inner-wrap-id${g} > .wp-block-kadence-column:nth-child(1) > .kadence-inner-column-inner { margin-inline-start: calc( ${Gn} *-1 ) !important; }`:""),Ie?`.kb-row-id-${g} a:not(.use-for-specificity) { color: ${(0,At.KadenceColorOutput)(Ie)}; }`:"",Oe?`.kb-row-id-${g} a:not(.use-for-specificity):hover { color: ${(0,At.KadenceColorOutput)(Oe)}; }`:"",(0,l.createElement)(l.Fragment,null,void 0!==no?`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kt-layout-inner-wrap-id${g}, .wp-block-kadence-rowlayout.kb-row-id-${g} > .kb-grid-align-display-wrap > .kb-grid-align-display { column-gap:${no} }`:""),void 0!==oo?`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kt-layout-inner-wrap-id${g}, .wp-block-kadence-rowlayout.kb-row-id-${g} > .kb-grid-align-display-wrap > .kb-grid-align-display { row-gap:${oo} }`:"",h&&!Yn.includes(Kn)&&(0,l.createElement)(l.Fragment,null,`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap.kt-layout-inner-wrap-id${g} { grid-template-columns: ${io} }`),"Desktop"!==dn&&"right-to-left"===w&&("grid-layout"===qn||"row"===qn||"last-row"===qn||"first-row"===qn)&&(0,l.createElement)(l.Fragment,null,(0,Ct.times)(h,(e=>{const t=e+1;return`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap >  .wp-block-kadence-column:nth-child(${t}) { order: ${h-t} }`})),(0,Ct.times)(h,(e=>`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap >  .wp-block-kadence-column:nth-child(${e+1+h}) { order: ${h-(e+1)+10} }`)),(0,Ct.times)(h,(e=>`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap >  .wp-block-kadence-column:nth-child(${e+1+h+h}) { order: ${h-(e+1)+20} }`)),(0,Ct.times)(h,(e=>`.wp-block-kadence-rowlayout.kb-row-id-${g} > .innerblocks-wrap >  .wp-block-kadence-column:nth-child(${e+1+h+h+h}) { order: ${h-(e+1)+30} }`))),He&&He>30&&(0,l.createElement)(l.Fragment,null,`.components-popover.block-editor-block-list__block-popover { z-index: ${He+1e3} }`,";"),Pt&&(0,l.createElement)(l.Fragment,null,Pt.replace(/selector/g,`.kb-row-id-${g}`)),p&&v&&"contentOnly"!==Kt&&"row"!==v&&h&&1!==h&&"Desktop"===dn&&(0,At.showSettings)("columnResize","kadence/rowlayout")&&(0,l.createElement)(l.Fragment,null,".block-editor-block-popover__inbetween-container .block-editor-block-list__insertion-point.is-horizontal.is-with-inserter { display: none }",";")),(0,l.createElement)(ic,{attributes:t,previewDevice:dn}),v&&"grid-layout"===v&&(0,l.createElement)(Bp,{attributes:t,setAttributes:n}),!v&&(0,l.createElement)("div",{className:"kt-select-layout"},(0,l.createElement)("div",{className:"kt-select-layout-title"},(0,o.__)("Select Your Layout","kadence-blocks")),(0,l.createElement)(Rt.ButtonGroup,{"aria-label":(0,o.__)("Column Layout","kadence-blocks")},(0,Ct.map)(lo,(({name:e,key:t,icon:o,col:a})=>(0,l.createElement)(Rt.Button,{key:t,className:"kt-layout-btn",isSmall:!0,label:e,icon:o,onClick:()=>{u(h,a),n({colLayout:t,columns:a,firstColumnWidth:0,secondColumnWidth:0,thirdColumnWidth:0,fourthColumnWidth:0,fifthColumnWidth:0,sixthColumnWidth:0})}})))),(0,l.createElement)(Rt.Button,{className:"kt-prebuilt",onClick:()=>n({isPrebuiltModal:!0})},(0,o.__)("Design Library","kadence-blocks"))),v&&"none"!==he&&""!==he&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${he}`,style:{height:Wn+on,color:(0,At.KadenceColorOutput)(be)}},Pp(he,"top",Vn+"%")),v&&(0,l.createElement)(Lp,{previewDevice:dn,edge:"top",isPreviewMode:ln,attributes:t,setAttributes:n,toggleSelection:d,finishedResizing:()=>{fn(!0),En(),kn.current=setTimeout((()=>{fn(!1)}),100)}}),v&&(0,l.createElement)("div",{...po},p&&v&&"contentOnly"!==Kt&&!Yn.includes(Kn)&&h&&(0,At.showSettings)("allSettings","kadence/rowlayout")&&(0,At.showSettings)("columnResize","kadence/rowlayout")&&(0,l.createElement)(Ot.ColumnDragResizer,{attributes:t,setAttributes:n,previewDevice:dn,columns:h,columnWidths:vn||Qn,columnGap:no,columnsUnlocked:Le,onColumnsUnlocked:e=>n({columnsUnlocked:e}),onResize:e=>{yn(e)},onResizeTablet:e=>{yn(e)},onResizeMobile:e=>{yn(e)},onResizeStop:e=>{n({firstColumnWidth:e?.[0],secondColumnWidth:e?.[1],thirdColumnWidth:e?.[2],fourthColumnWidth:e?.[3],fifthColumnWidth:e?.[4],sixthColumnWidth:e?.[5]}),yn(null)},onResizeStopTablet:e=>{n({firstColumnWidthTablet:e?.[0],secondColumnWidthTablet:e?.[1],thirdColumnWidthTablet:e?.[2],fourthColumnWidthTablet:e?.[3],fifthColumnWidthTablet:e?.[4],sixthColumnWidthTablet:e?.[5]}),yn(null)},onResizeStopMobile:e=>{n({firstColumnWidthMobile:e?.[0],secondColumnWidthMobile:e?.[1],thirdColumnWidthMobile:e?.[2],fourthColumnWidthMobile:e?.[3],fifthColumnWidthMobile:e?.[4],sixthColumnWidthMobile:e?.[5]}),yn(null)},active:to,tempDuringResize:!0}),uo),v&&(0,l.createElement)(Lp,{previewDevice:dn,edge:"bottom",isPreviewMode:ln,attributes:t,setAttributes:n,toggleSelection:d,finishedResizing:()=>{fn(!0),En(),kn.current=setTimeout((()=>{fn(!1)}),100)}}),v&&"none"!==ie&&""!==ie&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${ie}`,style:{height:$n+an,color:(0,At.KadenceColorOutput)(se)}},Pp(ie,"bottom",Un+"%")),(0,l.createElement)(Ot.SpacingVisualizer,{style:{maxWidth:!Ze&&Fn?Fn+Ne:void 0},type:"inside",forceHide:bn,forceShow:mo.isMouseOver,spacing:[Ip(Rn,Xe||"px"),Ip(Ln,Xe||"px"),Ip(Bn,Xe||"px"),Ip(Dn,Xe||"px")]}),(0,l.createElement)(Ot.SpacingVisualizer,{type:"outside",forceShow:go.isMouseOver,spacing:[Ip(jn,Re||"px"),0,Ip(Hn,Re||"px"),0]})))})),{Fragment:Wp}=wp.element,Vp=[{attributes:Tp.attributes,supports:{anchor:!0,ktdynamic:!0,kbcss:!0},save:({attributes:e})=>{const{columns:t,blockAlignment:n,inheritMaxWidth:a,align:r,mobileLayout:i,currentOverlayTab:s,overlayBgImg:c,overlay:u,colLayout:d,tabletLayout:p,collapseOrder:m,uniqueID:g,columnGutter:h,collapseGutter:b,bgColor:f,bgImg:v,verticalAlignment:y,htmlTag:k,bottomSep:E,bottomSepColor:w,topSep:_,topSepColor:S,firstColumnWidth:C,secondColumnWidth:x,overlayBgImgAttachment:I,bgImgAttachment:O,columnsInnerHeight:A,backgroundInline:M,backgroundSettingTab:P,backgroundSliderCount:T,backgroundSliderSettings:N,backgroundSlider:R,bgImgSize:L,bgImgPosition:B,bgImgRepeat:D,backgroundVideoType:F,backgroundVideo:z,bgColorClass:j,vsdesk:H,vstablet:W,vsmobile:V,tabletOverlay:$,mobileOverlay:U}=e;let Z,G;"ct"===E?Z=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===E?Z=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===E?Z=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===E?Z=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===E?Z=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===E?Z=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===E?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===E?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===E?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===E?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===E?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===E?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===E?Z=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===E?Z=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===E?Z=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===E?Z=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===E?Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===E&&(Z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"}))),"ct"===_?G=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===_?G=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===_?G=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===_?G=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===_?G=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===_?G=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===_?G=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===_?G=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===_?G=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===_?G=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===_?G=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===_?G=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===_?G=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===_?G=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===_?G=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===_?G=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===_?G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===_&&(G=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})));const q=!C||2!==t&&3!==t?"":" kt-custom-first-width-"+C,K=!x||2!==t&&3!==t?"":" kt-custom-second-width-"+x,J=x&&C&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(C)+parseFloat(x))))/10:"",Y=d||"equal",X=p||"inherit",Q=k||"div",ee=i||"inherit",te=g||"notset",ne=s&&"grad"===s?"gradient":"normal",oe=It()({"wp-block-kadence-rowlayout":!0,[`align${r||"none"}`]:!0,"kvs-lg-false":"undefined"!==H&&H,"kvs-md-false":"undefined"!==W&&W,"kvs-sm-false":"undefined"!==V&&V}),ae=(0,An.getColorClassName)("background-color",j),re=It()("kt-row-layout-inner",{"kt-row-has-bg":f||v||u||c,["kt-layout-id"+te]:te,"kt-jarallax":v&&"parallax"===O,[ae]:ae}),le=It()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${h}`]:h,[`kt-v-gutter-${b||"default"}`]:!0,[`kt-row-valign-${y}`]:y,[`kt-row-layout-${Y}`]:Y,[`kt-tab-layout-${X}`]:X,[`kt-m-colapse-${m}`]:m,[`kt-mobile-layout-${ee}`]:ee,[q]:q,[K]:K,[J]:J,"kt-inner-column-height-full":void 0!==A&&!0===A,"kb-theme-content-width":a});let ie=!(!u&&!c);return ie||(ie=!!($&&$[0]&&$[0].enable)),ie||(ie=!!(U&&U[0]&&U[0].enable)),(0,l.createElement)(Q,{className:oe},(0,l.createElement)("div",{id:`kt-layout-id${g}`,className:re,style:{backgroundImage:"slider"!==P&&"video"!==P&&M&&void 0!==v&&""!==v?"url("+v+")":void 0}},"slider"===P&&(()=>{let e;return e=void 0===N||void 0!==N&&void 0===N[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:N,(0,l.createElement)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`},(0,l.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed},(0,Ct.times)(void 0!==T?T:1,(e=>(e=>{let t;return t=void 0===R||void 0!==R&&void 0===R[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:R,(0,l.createElement)("div",{className:"kb-bg-slide-contain"},(0,l.createElement)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?(0,At.KadenceColorOutput)(t[e].bgColor):void 0,backgroundImage:t[e]&&""!==t[e].bgImg?"url("+t[e].bgImg+")":void 0,backgroundSize:L||void 0,backgroundPosition:B||void 0,backgroundRepeat:D||void 0}}))})(e)))))})(),"video"===P&&(0,l.createElement)("div",{className:"kb-blocks-bg-video-container"},(void 0===F||""===F||"local"===F)&&(()=>{const e=void 0!==z&&void 0!==z[0]&&void 0!==z[0].local?z:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,l.createElement)(Wp,null,(0,l.createElement)("video",{className:"kb-blocks-bg-video",poster:void 0!==v&&""!==v?v:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,l.createElement)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5"},(0,l.createElement)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))),(0,l.createElement)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))),!1===e[0].mute&&(0,l.createElement)(Wp,null,(0,l.createElement)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"}))),(0,l.createElement)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"}))))))})()),ie&&(0,l.createElement)("div",{className:`kt-row-layout-overlay kt-row-overlay-${ne}${c&&"gradient"!==ne&&"parallax"===I?" kt-jarallax":""}`}),_&&"none"!==_&&""!==_&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${_}`},(0,l.createElement)("svg",{style:{fill:(0,At.KadenceColorOutput)(S)},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},G)),(0,l.createElement)("div",{className:le},(0,l.createElement)(An.InnerBlocks.Content,null)),E&&"none"!==E&&""!==E&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${E}`},(0,l.createElement)("svg",{style:{fill:(0,At.KadenceColorOutput)(w)},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},Z))))}},{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},collapseGutter:{type:"string",default:"default"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayFirstOpacity:{type:"number",default:""},overlaySecondOpacity:{type:"number",default:""},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},align:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},tabletPadding:{type:"array",default:["","","",""]},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},marginUnit:{type:"string",default:"px"},minHeightUnit:{type:"string",default:"px"},maxWidthUnit:{type:"string",default:"px"},columnsUnlocked:{type:"boolean",default:!1},tabletBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},tabletOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},mobileBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},mobileOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},columnsInnerHeight:{type:"boolean",default:!1},topSepWidth:{type:"number",default:""},topSepWidthTablet:{type:"number",default:""},topSepWidthMobile:{type:"number",default:""},backgroundInline:{type:"boolean",default:!1},backgroundSettingTab:{type:"string",default:"normal"},backgroundSliderCount:{type:"number",default:1},backgroundSlider:{type:"array",default:[{bgColor:"",bgImg:"",bgImgID:""}]},backgroundSliderSettings:{type:"array",default:[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]},backgroundVideoType:{type:"string",default:"local"},backgroundVideo:{type:"array",default:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}]},zIndex:{type:"number",default:""},paddingUnit:{type:"string",default:"px"},inheritMaxWidth:{type:"boolean",default:!1},noCustomDefaults:{type:"boolean",default:!1},isPrebuiltModal:{type:"boolean",default:!1},minHeightTablet:{type:"number",default:""},minHeightMobile:{type:"number",default:""},bgColorClass:{type:"string",default:""},vsdesk:{type:"boolean",default:!1},vstablet:{type:"boolean",default:!1},vsmobile:{type:"boolean",default:!1},loggedIn:{type:"boolean",default:!1},loggedInUser:{type:"array"},loggedInShow:{type:"array"},loggedOut:{type:"boolean",default:!1},borderWidth:{type:"array",default:["","","",""]},tabletBorderWidth:{type:"array",default:["","","",""]},mobileBorderWidth:{type:"array",default:["","","",""]},borderRadius:{type:"array",default:["","","",""]},tabletBorderRadius:{type:"array",default:["","","",""]},mobileBorderRadius:{type:"array",default:["","","",""]},border:{type:"string",default:""},tabletBorder:{type:"string",default:""},mobileBorder:{type:"string",default:""},responsiveMaxWidth:{type:"array",default:["",""]},kadenceBlockCSS:{type:"string",default:""},kadenceDynamic:{type:"object"},kadenceConditional:{type:"object"}},supports:{anchor:!0,ktdynamic:!0,kbcss:!0},save:({attributes:e})=>{const{columns:t,blockAlignment:n,inheritMaxWidth:a,align:r,mobileLayout:i,currentOverlayTab:s,overlayBgImg:c,overlay:u,colLayout:d,tabletLayout:p,collapseOrder:m,uniqueID:g,columnGutter:h,collapseGutter:b,bgColor:f,bgImg:v,verticalAlignment:y,htmlTag:k,bottomSep:E,bottomSepColor:w,topSep:_,topSepColor:S,firstColumnWidth:C,secondColumnWidth:x,overlayBgImgAttachment:I,bgImgAttachment:O,columnsInnerHeight:A,backgroundInline:M,backgroundSettingTab:P,backgroundSliderCount:T,backgroundSliderSettings:N,backgroundSlider:R,bgImgSize:L,bgImgPosition:B,bgImgRepeat:D,backgroundVideoType:F,backgroundVideo:z,bgColorClass:j,vsdesk:H,vstablet:W,vsmobile:V}=e;let $,U;"ct"===E?$=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===E?$=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===E?$=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===E?$=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===E?$=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===E?$=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===E?$=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===E?$=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===E?$=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===E?$=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===E?$=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===E?$=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===E?$=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===E?$=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===E?$=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===E?$=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===E?$=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===E&&($=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"}))),"ct"===_?U=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===_?U=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===_?U=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===_?U=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===_?U=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===_?U=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===_?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===_?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===_?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===_?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===_?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===_?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===_?U=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===_?U=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===_?U=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===_?U=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===_?U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===_&&(U=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})));const Z=!C||2!==t&&3!==t?"":" kt-custom-first-width-"+C,G=!x||2!==t&&3!==t?"":" kt-custom-second-width-"+x,q=x&&C&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(C)+parseFloat(x))))/10:"",K=d||"equal",J=p||"inherit",Y=k||"div",X=i||"inherit",Q=g||"notset",ee=s&&"grad"===s?"gradient":"normal",te=It()({[`align${r||"none"}`]:!0,"kvs-lg-false":"undefined"!==H&&H,"kvs-md-false":"undefined"!==W&&W,"kvs-sm-false":"undefined"!==V&&V}),ne=(0,An.getColorClassName)("background-color",j),oe=It()("kt-row-layout-inner",{"kt-row-has-bg":f||v||u||c,["kt-layout-id"+Q]:Q,"kt-jarallax":v&&"parallax"===O,[ne]:ne}),ae=It()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${h}`]:h,[`kt-v-gutter-${b||"default"}`]:!0,[`kt-row-valign-${y}`]:y,[`kt-row-layout-${K}`]:K,[`kt-tab-layout-${J}`]:J,[`kt-m-colapse-${m}`]:m,[`kt-mobile-layout-${X}`]:X,[Z]:Z,[G]:G,[q]:q,"kt-inner-column-height-full":void 0!==A&&!0===A,"kb-theme-content-width":a});return(0,l.createElement)(Y,{className:te},(0,l.createElement)("div",{id:`kt-layout-id${g}`,className:oe,style:{backgroundImage:"slider"!==P&&"video"!==P&&M&&void 0!==v&&""!==v?"url("+v+")":void 0}},"slider"===P&&(()=>{let e;return e=void 0===N||void 0!==N&&void 0===N[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:N,(0,l.createElement)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`},(0,l.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed},(0,Ct.times)(void 0!==T?T:1,(e=>(e=>{let t;return t=void 0===R||void 0!==R&&void 0===R[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:R,(0,l.createElement)("div",{className:"kb-bg-slide-contain"},(0,l.createElement)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?(0,At.KadenceColorOutput)(t[e].bgColor):void 0,backgroundImage:t[e]&&""!==t[e].bgImg?'url("'+t[e].bgImg+'")':void 0,backgroundSize:L||void 0,backgroundPosition:B||void 0,backgroundRepeat:D||void 0}}))})(e)))))})(),"video"===P&&(0,l.createElement)("div",{className:"kb-blocks-bg-video-container"},(void 0===F||""===F||"local"===F)&&(()=>{const e=void 0!==z&&void 0!==z[0]&&void 0!==z[0].local?z:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,l.createElement)(Wp,null,(0,l.createElement)("video",{className:"kb-blocks-bg-video",poster:void 0!==v&&""!==v?v:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,l.createElement)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5"},(0,l.createElement)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))),(0,l.createElement)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))),!1===e[0].mute&&(0,l.createElement)(Wp,null,(0,l.createElement)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"}))),(0,l.createElement)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"}))))))})()),(u||c)&&(0,l.createElement)("div",{className:`kt-row-layout-overlay kt-row-overlay-${ee}${c&&"gradient"!==ee&&"parallax"===I?" kt-jarallax":""}`}),_&&"none"!==_&&""!==_&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${_}`},(0,l.createElement)("svg",{style:{fill:(0,At.KadenceColorOutput)(S)},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},U)),(0,l.createElement)("div",{className:ae},(0,l.createElement)(An.InnerBlocks.Content,null)),E&&"none"!==E&&""!==E&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${E}`},(0,l.createElement)("svg",{style:{fill:(0,At.KadenceColorOutput)(w)},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},$))))}},{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},collapseGutter:{type:"string",default:"default"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayFirstOpacity:{type:"number",default:""},overlaySecondOpacity:{type:"number",default:""},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""},tabletPadding:{type:"array",default:["","","",""]},topMarginT:{type:"number",default:""},bottomMarginT:{type:"number",default:""},marginUnit:{type:"string",default:"px"},minHeightUnit:{type:"string",default:"px"},maxWidthUnit:{type:"string",default:"px"},columnsUnlocked:{type:"boolean",default:!1},tabletBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},tabletOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},mobileBackground:{type:"array",default:[{enable:!1,bgColor:"",bgImg:"",bgImgID:"",bgImgSize:"cover",bgImgPosition:"center center",bgImgAttachment:"scroll",bgImgRepeat:"no-repeat",forceOverDesk:!1}]},mobileOverlay:{type:"array",default:[{enable:!1,currentOverlayTab:"normal",overlay:"",overlaySecond:"#00B5E2",overlayGradLoc:0,overlayGradLocSecond:100,overlayGradType:"linear",overlayGradAngle:180,overlayBgImg:"",overlayBgImgID:"",overlayBgImgSize:"cover",overlayBgImgPosition:"center center",overlayBgImgAttachment:"scroll",overlayBgImgRepeat:"no-repeat",overlayOpacity:30,overlayBlendMod:"none"}]},columnsInnerHeight:{type:"boolean",default:!1},topSepWidth:{type:"number",default:""},topSepWidthTablet:{type:"number",default:""},topSepWidthMobile:{type:"number",default:""},backgroundInline:{type:"boolean",default:!1},backgroundSettingTab:{type:"string",default:"normal"},backgroundSliderCount:{type:"number",default:1},backgroundSlider:{type:"array",default:[{bgColor:"",bgImg:"",bgImgID:""}]},backgroundSliderSettings:{type:"array",default:[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]},backgroundVideoType:{type:"string",default:"local"},backgroundVideo:{type:"array",default:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}]},zIndex:{type:"number",default:""},paddingUnit:{type:"string",default:"px"},noCustomDefaults:{type:"boolean",default:!1}},supports:{anchor:!0,ktdynamic:!0,kbcss:!0},migrate(e){const t=e.blockAlignment?e.blockAlignment:void 0;return e.blockAlignment&&delete e.blockAlignment,{...e,align:t||void 0}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:a,currentOverlayTab:r,overlayBgImg:i,overlay:s,colLayout:c,tabletLayout:u,collapseOrder:d,uniqueID:p,columnGutter:m,collapseGutter:g,bgColor:h,bgImg:b,verticalAlignment:f,htmlTag:v,bottomSep:y,bottomSepColor:k,topSep:E,topSepColor:w,firstColumnWidth:_,secondColumnWidth:S,overlayBgImgAttachment:C,bgImgAttachment:x,columnsInnerHeight:I,backgroundInline:O,backgroundSettingTab:A,backgroundSliderCount:M,backgroundSliderSettings:P,backgroundSlider:T,bgImgSize:N,bgImgPosition:R,bgImgRepeat:L,backgroundVideoType:B,backgroundVideo:D}=e;let F,z;"ct"===y?F=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===y?F=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===y?F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===y?F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===y?F=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===y?F=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===y?F=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===y?F=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===y?F=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===y?F=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===y?F=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===y?F=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===y?F=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===y?F=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===y?F=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===y?F=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===y?F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===y?F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===y?F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===y?F=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===y?F=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===y&&(F=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"}))),"ct"===E?z=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===E?z=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===E?z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===E?z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===E?z=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===E?z=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===E?z=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===E?z=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===E?z=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===E?z=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===E?z=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===E?z=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===E?z=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===E?z=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===E?z=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===E?z=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===E?z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===E?z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===E?z=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===E?z=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===E&&(z=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const j=!_||2!==t&&3!==t?"":" kt-custom-first-width-"+_,H=!S||2!==t&&3!==t?"":" kt-custom-second-width-"+S,W=S&&_&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(_)+parseFloat(S))))/10:"",V=c||"equal",$=u||"inherit",U=v||"div",Z=a||"inherit",G=p||"notset",q=h||b||s||i?"kt-row-has-bg":"",K=r&&"grad"===r?"gradient":"normal",J=It()(`align${n||"none"}`),Y=It()(`kt-row-layout-inner ${q} kt-layout-id${G}${b&&"parallax"===x?" kt-jarallax":""}`),X=It()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${m} kt-v-gutter-${g||"default"} kt-row-valign-${f} kt-row-layout-${V} kt-tab-layout-${$} kt-m-colapse-${d} kt-mobile-layout-${Z}${j}${H}${W}${void 0!==I&&!0===I?" kt-inner-column-height-full":""}`);return(0,l.createElement)(U,{className:J},(0,l.createElement)("div",{id:`kt-layout-id${p}`,className:Y,style:{backgroundImage:"slider"!==A&&"video"!==A&&O&&void 0!==b&&""!==b?"url("+b+")":void 0}},"slider"===A&&(()=>{let e;return e=void 0===P||void 0!==P&&void 0===P[0]?[{arrowStyle:"none",dotStyle:"dark",autoPlay:!0,speed:7e3,fade:!0,tranSpeed:400}]:P,(0,l.createElement)("div",{className:`kt-blocks-carousel kb-blocks-bg-slider kt-carousel-container-dotstyle-${e[0].dotStyle}`},(0,l.createElement)("div",{className:`kt-blocks-carousel-init kb-blocks-bg-slider-init kt-carousel-arrowstyle-${e[0].arrowStyle} kt-carousel-dotstyle-${e[0].dotStyle}`,"data-slider-anim-speed":e[0].tranSpeed,"data-slider-type":"slider","data-slider-scroll":"1","data-slider-arrows":"none"!==e[0].arrowStyle,"data-slider-fade":e[0].fade,"data-slider-dots":"none"!==e[0].dotStyle,"data-slider-hover-pause":"false","data-slider-auto":e[0].autoPlay,"data-slider-speed":e[0].speed},(0,Ct.times)(void 0!==M?M:1,(e=>(e=>{let t;return t=void 0===T||void 0!==T&&void 0===T[0]?[{bgColor:"",bgImg:"",bgImgID:""}]:T,(0,l.createElement)("div",{className:"kb-bg-slide-contain"},(0,l.createElement)("div",{className:`kb-bg-slide kb-bg-slide-${e}`,style:{backgroundColor:t[e]&&""!==t[e].bgColor?t[e].bgColor:void 0,backgroundImage:t[e]&&""!==t[e].bgImg?'url("'+t[e].bgImg+'")':void 0,backgroundSize:N||void 0,backgroundPosition:R||void 0,backgroundRepeat:L||void 0}}))})(e)))))})(),"video"===A&&(0,l.createElement)("div",{className:"kb-blocks-bg-video-container"},(void 0===B||""===B||"local"===B)&&(()=>{const e=void 0!==D&&void 0!==D[0]&&void 0!==D[0].local?D:[{youTube:"",local:"",localID:"",vimeo:"",ratio:"16/9",btns:!1,loop:!0,mute:!0}];return(0,l.createElement)(Wp,null,(0,l.createElement)("video",{className:"kb-blocks-bg-video",poster:void 0!==b&&""!==b?b:void 0,playsinline:"",autoplay:"",muted:!1!==e[0].mute&&"",loop:!1!==e[0].loop&&"",src:e[0].local}),!0===e[0].btns&&(0,l.createElement)("div",{className:"kb-background-video-buttons-wrapper kb-background-video-buttons-html5"},(0,l.createElement)("button",{className:"kb-background-video-play kb-toggle-video-btn","aria-label":(0,o.__)("Play","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M424.4 214.7L72.4 6.6C43.8-10.3 0 6.1 0 47.9V464c0 37.5 40.7 60.1 72.4 41.3l352-208c31.4-18.5 31.5-64.1 0-82.6z"}))),(0,l.createElement)("button",{className:"kb-background-video-pause kb-toggle-video-btn","aria-label":(0,o.__)("Pause","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 448 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M144 479H48c-26.5 0-48-21.5-48-48V79c0-26.5 21.5-48 48-48h96c26.5 0 48 21.5 48 48v352c0 26.5-21.5 48-48 48zm304-48V79c0-26.5-21.5-48-48-48h-96c-26.5 0-48 21.5-48 48v352c0 26.5 21.5 48 48 48h96c26.5 0 48-21.5 48-48z"}))),!1===e[0].mute&&(0,l.createElement)(Wp,null,(0,l.createElement)("button",{className:"kb-background-video-unmute kb-toggle-video-btn","aria-label":(0,o.__)("Unmute","kadence-blocks"),"aria-hidden":"true",style:"display: none;"},(0,l.createElement)("svg",{viewBox:"0 0 256 512",height:"16",width:"16",fill:"currentColor",xmlns:"https://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971z"}))),(0,l.createElement)("button",{className:"kb-background-video-mute kb-toggle-video-btn","aria-label":(0,o.__)("Mute","kadence-blocks"),"aria-hidden":"false"},(0,l.createElement)("svg",{viewBox:"0 0 576 512",height:"16",width:"16",fill:"currentColor",xmlns:"http://www.w3.org/2000/svg"},(0,l.createElement)("path",{d:"M256 88.017v335.964c0 21.438-25.943 31.998-40.971 16.971L126.059 352H24c-13.255 0-24-10.745-24-24V184c0-13.255 10.745-24 24-24h102.059l88.971-88.954c15.01-15.01 40.97-4.49 40.97 16.971zm182.056-77.876C422.982.92 403.283 5.668 394.061 20.745c-9.221 15.077-4.473 34.774 10.604 43.995C468.967 104.063 512 174.983 512 256c0 73.431-36.077 142.292-96.507 184.206-14.522 10.072-18.129 30.01-8.057 44.532 10.076 14.528 30.016 18.126 44.531 8.057C529.633 438.927 576 350.406 576 256c0-103.244-54.579-194.877-137.944-245.859zM480 256c0-68.547-36.15-129.777-91.957-163.901-15.076-9.22-34.774-4.471-43.994 10.607-9.22 15.078-4.471 34.774 10.607 43.994C393.067 170.188 416 211.048 416 256c0 41.964-20.62 81.319-55.158 105.276-14.521 10.073-18.128 30.01-8.056 44.532 6.216 8.96 16.185 13.765 26.322 13.765a31.862 31.862 0 0 0 18.21-5.709C449.091 377.953 480 318.938 480 256zm-96 0c0-33.717-17.186-64.35-45.972-81.944-15.079-9.214-34.775-4.463-43.992 10.616s-4.464 34.775 10.615 43.992C314.263 234.538 320 244.757 320 256a32.056 32.056 0 0 1-13.802 26.332c-14.524 10.069-18.136 30.006-8.067 44.53 10.07 14.525 30.008 18.136 44.53 8.067C368.546 316.983 384 287.478 384 256z"}))))))})()),(s||i)&&(0,l.createElement)("div",{className:`kt-row-layout-overlay kt-row-overlay-${K}${i&&"gradient"!==K&&"parallax"===C?" kt-jarallax":""}`}),E&&"none"!==E&&""!==E&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${E}`},(0,l.createElement)("svg",{style:{fill:w},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},z)),(0,l.createElement)("div",{className:X},(0,l.createElement)(An.InnerBlocks.Content,null)),y&&"none"!==y&&""!==y&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${y}`},(0,l.createElement)("svg",{style:{fill:k},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},F))))}},{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""},firstColumnWidth:{type:"number"},secondColumnWidth:{type:"number"},textColor:{type:"string",default:""},linkColor:{type:"string",default:""},linkHoverColor:{type:"string",default:""}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:o,currentOverlayTab:a,overlayBgImg:r,overlay:i,colLayout:s,tabletLayout:c,collapseOrder:u,uniqueID:d,columnGutter:p,bgColor:m,bgImg:g,verticalAlignment:h,htmlTag:b,bottomSep:f,bottomSepColor:v,topSep:y,topSepColor:k,firstColumnWidth:E}=e;let w,_;"ct"===f?w=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===f?w=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===f?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===f?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===f?w=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===f?w=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===f?w=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===f?w=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===f?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===f?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===f?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===f?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===f?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===f?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===f?w=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===f?w=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===f?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===f?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===f?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===f?w=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===f&&(w=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"})),"ct"===y?_=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===y?_=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===y?_=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===y?_=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===y?_=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===y?_=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===y?_=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===y?_=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===y?_=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===y?_=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===y?_=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===y?_=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===y?_=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===y?_=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===y?_=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===y?_=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===y?_=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===y?_=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===y?_=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===y?_=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===y&&(_=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const S=E&&2===t?" kt-custom-first-width-"+E:"",C=s||"equal",x=c||"inherit",I=b||"div",O=o||"inherit",A=d||"notset",M=m||g||i||r?"kt-row-has-bg":"",P=a&&"grad"===a?"gradient":"normal",T=It()(`align${n}`),N=It()(`kt-row-layout-inner ${M} kt-layout-id${A}`),R=It()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${p} kt-row-valign-${h} kt-row-layout-${C} kt-tab-layout-${x} kt-m-colapse-${u} kt-mobile-layout-${O}${S}`);return(0,l.createElement)(I,{className:T},(0,l.createElement)("div",{id:`kt-layout-id${d}`,className:N},(i||r)&&(0,l.createElement)("div",{className:`kt-row-layout-overlay kt-row-overlay-${P}`}),y&&"none"!==y&&""!==y&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${y}`},(0,l.createElement)("svg",{style:{fill:k},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},_)),(0,l.createElement)("div",{className:R},(0,l.createElement)(An.InnerBlocks.Content,null)),f&&"none"!==f&&""!==f&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${f}`},(0,l.createElement)("svg",{style:{fill:v},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},w))))}},{attributes:{uniqueID:{type:"string",default:""},columns:{type:"number",default:2},mobileLayout:{type:"string",default:"row"},tabletLayout:{type:"string",default:"inherit"},collapseOrder:{type:"string",default:"left-to-right"},columnGutter:{type:"string",default:"default"},colLayout:{type:"string",default:""},currentTab:{type:"string",default:"desk"},currentOverlayTab:{type:"string",default:"normal"},htmlTag:{type:"string",default:"div"},minHeight:{type:"number",default:0},maxWidth:{type:"number",default:""},topPadding:{type:"number",default:25},bottomPadding:{type:"number",default:25},leftPadding:{type:"number",default:""},rightPadding:{type:"number",default:""},topPaddingM:{type:"number",default:""},bottomPaddingM:{type:"number",default:""},leftPaddingM:{type:"number",default:""},rightPaddingM:{type:"number",default:""},topMargin:{type:"number",default:""},bottomMargin:{type:"number",default:""},topMarginM:{type:"number",default:""},bottomMarginM:{type:"number",default:""},bgColor:{type:"string",default:""},bgImg:{type:"string",default:""},bgImgID:{type:"string",default:""},bgImgSize:{type:"string",default:"cover"},bgImgPosition:{type:"string",default:"center center"},bgImgAttachment:{type:"string",default:"scroll"},bgImgRepeat:{type:"string",default:"no-repeat"},overlay:{type:"string",default:""},overlaySecond:{type:"string",default:"#00B5E2"},overlayGradLoc:{type:"number",default:0},overlayGradLocSecond:{type:"number",default:100},overlayGradType:{type:"string",default:"linear"},overlayGradAngle:{type:"number",default:180},overlayBgImg:{type:"string",default:""},overlayBgImgID:{type:"string",default:""},overlayBgImgSize:{type:"string",default:"cover"},overlayBgImgPosition:{type:"string",default:"center center"},overlayBgImgAttachment:{type:"string",default:"scroll"},overlayBgImgRepeat:{type:"string",default:"no-repeat"},overlayOpacity:{type:"number",default:30},overlayBlendMode:{type:"string",default:"none"},blockAlignment:{type:"string",default:"none"},verticalAlignment:{type:"string",default:"top"},topSep:{type:"string",default:"none"},topSepColor:{type:"string",default:"#ffffff"},topSepFlip:{type:"boolean",default:!1},topSepHeight:{type:"number",default:100},topSepHeightTab:{type:"number",default:""},topSepHeightMobile:{type:"number",default:""},bottomSep:{type:"string",default:"none"},bottomSepColor:{type:"string",default:"#ffffff"},bottomSepFlip:{type:"boolean",default:!1},bottomSepHeight:{type:"number",default:100},bottomSepWidth:{type:"number",default:100},bottomSepWidthTab:{type:"number",default:""},bottomSepWidthMobile:{type:"number",default:""},bottomSepHeightTab:{type:"number",default:""},bottomSepHeightMobile:{type:"number",default:""}},save:({attributes:e})=>{const{columns:t,blockAlignment:n,mobileLayout:o,currentOverlayTab:a,overlayBgImg:r,overlay:i,colLayout:s,tabletLayout:c,collapseOrder:u,uniqueID:d,columnGutter:p,bgColor:m,bgImg:g,verticalAlignment:h,htmlTag:b,bottomSep:f,bottomSepColor:v,topSep:y,topSepColor:k}=e;let E,w;"ct"===f?E=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===f?E=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===f?E=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===f?E=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===f?E=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===f?E=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===f?E=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===f?E=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===f?E=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===f?E=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===f?E=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===f?E=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===f?E=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===f?E=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===f?E=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===f?E=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===f?E=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===f?E=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===f?E=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===f?E=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===f&&(E=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"})),"ct"===y?w=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===y?w=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===y?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===y?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===y?w=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===y?w=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===y?w=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===y?w=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===y?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===y?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===y?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===y?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===y?w=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===y?w=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===y?w=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===y?w=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===y?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===y?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===y?w=(0,l.createElement)(Wp,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===y?w=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===y&&(w=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}));const _=s||"equal",S=c||"inherit",C=b||"div",x=o||"inherit",I=d||"notset",O=m||g||i||r?"kt-row-has-bg":"",A=a&&"grad"===a?"gradient":"normal",M=It()(`align${n}`),P=It()(`kt-row-layout-inner ${O} kt-layout-id${I}`),T=It()(`kt-row-column-wrap kt-has-${t}-columns kt-gutter-${p} kt-row-valign-${h} kt-row-layout-${_} kt-tab-layout-${S} kt-m-colapse-${u} kt-mobile-layout-${x}`);return(0,l.createElement)(C,{className:M},(0,l.createElement)("div",{id:`kt-layout-id${d}`,className:P},(i||r)&&(0,l.createElement)("div",{className:`kt-row-layout-overlay kt-row-overlay-${A}`}),y&&"none"!==y&&(0,l.createElement)("div",{className:`kt-row-layout-top-sep kt-row-sep-type-${y}`},(0,l.createElement)("svg",{style:{fill:k},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},w)),(0,l.createElement)("div",{className:T},(0,l.createElement)(An.InnerBlocks.Content,null)),f&&"none"!==f&&(0,l.createElement)("div",{className:`kt-row-layout-bottom-sep kt-row-sep-type-${f}`},(0,l.createElement)("svg",{style:{fill:v},viewBox:"0 0 1000 100",preserveAspectRatio:"none"},E))))}}];(0,r.registerBlockType)("kadence/rowlayout",{...Tp,title:(0,o._x)("Row Layout","block title","kadence-blocks"),description:(0,o.__)("A container to hold a grid layout.","kadence-blocks"),keywords:[(0,o.__)("column","kadence-blocks"),(0,o.__)("row/layout","kadence-blocks"),"KB"],icon:{src:a.blockRowIcon},edit:e=>{const{clientId:t,attributes:n}=e,{isPrebuiltModal:o}=n;if(o)return(0,l.createElement)(ac,{clientId:t,open:!!o,onlyModal:!!o});const{rowBlock:a,realColumnCount:r}=(0,Tt.useSelect)((e=>{const{getBlock:n}=e("core/block-editor"),o=n(t);return{rowBlock:o,isUniqueBlock:o.innerBlocks.length}}),[t]);return(0,l.createElement)(Hp,{realColumnCount:r,rowBlock:a,...e})},save:function({attributes:e}){const{columns:t,blockAlignment:n,inheritMaxWidth:o,align:a,mobileLayout:r,currentOverlayTab:i,overlayBgImg:s,overlay:c,colLayout:u,tabletLayout:d,collapseOrder:p,uniqueID:m,columnGutter:g,collapseGutter:h,bgColor:b,bgImg:f,verticalAlignment:v,htmlTag:y,bottomSep:k,bottomSepColor:E,topSep:w,topSepColor:_,firstColumnWidth:S,secondColumnWidth:C,overlayBgImgAttachment:x,bgImgAttachment:I,columnsInnerHeight:O,backgroundInline:A,backgroundSettingTab:M,backgroundSliderCount:P,backgroundSliderSettings:T,backgroundSlider:N,bgImgSize:R,bgImgPosition:L,bgImgRepeat:B,backgroundVideoType:D,backgroundVideo:F,bgColorClass:z,vsdesk:j,vstablet:H,vsmobile:W,tabletOverlay:V,mobileOverlay:$}=e;let U,Z;"ct"===k?U=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===k?U=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===k?U=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===k?U=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===k?U=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===k?U=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===k?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===k?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===k?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===k?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===k?U=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===k?U=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===k?U=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===k?U=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===k?U=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===k?U=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===k?U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===k&&(U=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"}))),"ct"===w?Z=(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z"}):"cti"===w?Z=(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"}):"ctd"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,0l-500,98l-500,-98l0,100l1000,0l0,-100Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,20l-500,78l-500,-78l0,80l1000,0l0,-80Z"})):"ctdi"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M500,2l500,78l0,20l-1000,0l0,-20l500,-78Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M500,2l500,98l-1000,0l500,-98Z"})):"sltl"===w?Z=(0,l.createElement)("path",{d:"M1000,0l-1000,100l1000,0l0,-100Z"}):"sltli"===w?Z=(0,l.createElement)("path",{d:"M0,100l1000,-100l-1000,0l0,100Z"}):"sltr"===w?Z=(0,l.createElement)("path",{d:"M0,0l1000,100l-1000,0l0,-100Z"}):"sltri"===w?Z=(0,l.createElement)("path",{d:"M1000,100l-1000,-100l1000,0l0,100Z"}):"crv"===w?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -270.987,-98 -500,-98c-229.013,0 -500,98 -500,98l1000,0Z"}):"crvi"===w?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -270.987,98 -500,98c-229.013,0 -500,-98 -500,-98l0,100l1000,0l0,-100Z"}):"crvl"===w?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -420.987,-98 -650,-98c-229.013,0 -350,98 -350,98l1000,0Z"}):"crvli"===w?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -420.987,98 -650,98c-229.013,0 -350,-98 -350,-98l0,100l1000,0l0,-100Z"}):"crvr"===w?Z=(0,l.createElement)("path",{d:"M1000,100c0,0 -120.987,-98 -350,-98c-229.013,0 -650,98 -650,98l1000,0Z"}):"crvri"===w?Z=(0,l.createElement)("path",{d:"M1000,0c0,0 -120.987,98 -350,98c-229.013,0 -650,-98 -650,-98l0,100l1000,0l0,-100Z"}):"wave"===w?Z=(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}):"wavei"===w?Z=(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}):"waves"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,78 -500,78c-154.895,0 -250,-30 -250,-30l0,50l1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,73 -500,73c-154.895,0 -250,-45 -250,-45l0,70l1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,40c0,0 -120.077,-38.076 -250,-38c-129.923,0.076 -345.105,68 -500,68c-154.895,0 -250,-65 -250,-65l0,95l1000,0l0,-60Z",style:{opacity:.4}})):"wavesi"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,78 500,78c154.895,0 250,-30 250,-30l0,50l-1000,0l0,-60Z"}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,73 500,73c154.895,0 250,-45 250,-45l0,70l-1000,0l0,-60Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M0,40c0,0 120.077,-38.076 250,-38c129.923,0.076 345.105,68 500,68c154.895,0 250,-65 250,-65l0,95l-1000,0l0,-60Z",style:{opacity:.4}})):"mtns"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{d:"M1000,50l-182.69,-45.286l-292.031,61.197l-190.875,-41.075l-143.748,28.794l-190.656,-23.63l0,70l1000,0l0,-50Z",style:{opacity:.4}}),(0,l.createElement)("path",{d:"M1000,57l-152.781,-22.589l-214.383,19.81l-159.318,-21.471l-177.44,25.875l-192.722,5.627l-103.356,-27.275l0,63.023l1000,0l0,-43Z"})):"littri"===w?Z=(0,l.createElement)("path",{d:"M500,2l25,98l-50,0l25,-98Z"}):"littrii"===w?Z=(0,l.createElement)("path",{d:"M1000,100l-1000,0l0,-100l475,0l25,98l25,-98l475,0l0,100Z"}):"threelevels"===w?Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M0 95L1000 0v100H0v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M0 95l1000-67.944V100H0v-5z"}),(0,l.createElement)("path",{d:"M0 95l1000-40.887V100H0v-5z"})):"threelevelsi"===w&&(Z=(0,l.createElement)(l.Fragment,null,(0,l.createElement)("path",{style:{opacity:.33},d:"M1000 95L0 0v100h1000v-5z"}),(0,l.createElement)("path",{style:{opacity:.66},d:"M1000 95L0 27.056V100h1000v-5z"}),(0,l.createElement)("path",{d:"M1000 95L0 54.113V100h1000v-5z"})));const G=!S||2!==t&&3!==t?"":" kt-custom-first-width-"+S,q=!C||2!==t&&3!==t?"":" kt-custom-second-width-"+C,K=C&&S&&3===t?" kt-custom-third-width-"+Math.round(10*(100-(parseFloat(S)+parseFloat(C))))/10:"",J=u||"equal",Y=d||"inherit",X=r||"inherit",Q=m||"notset",ee=It()({"wp-block-kadence-rowlayout":!0,[`align${a||"none"}`]:!0,"kvs-lg-false":"undefined"!==j&&j,"kvs-md-false":"undefined"!==H&&H,"kvs-sm-false":"undefined"!==W&&W}),te=(An.useBlockProps.save({className:ee}),(0,An.getColorClassName)("background-color",z));It()("kt-row-layout-inner",{"kt-row-has-bg":b||f||c||s,["kt-layout-id"+Q]:Q,"kt-jarallax":f&&"parallax"===I,[te]:te}),It()({"kt-row-column-wrap":!0,[`kt-has-${t}-columns`]:t,[`kt-gutter-${g}`]:g,[`kt-v-gutter-${h||"default"}`]:!0,[`kt-row-valign-${v}`]:v,[`kt-row-layout-${J}`]:J,[`kt-tab-layout-${Y}`]:Y,[`kt-m-colapse-${p}`]:p,[`kt-mobile-layout-${X}`]:X,[G]:G,[q]:q,[K]:K,"kt-inner-column-height-full":void 0!==O&&!0===O,"kb-theme-content-width":o});let ne=!(!c&&!s);return ne||(ne=!!(V&&V[0]&&V[0].enable)),ne||(ne=!!($&&$[0]&&$[0].enable)),(0,l.createElement)(An.InnerBlocks.Content,null)},deprecated:Vp,example:{attributes:{colLayout:"equal",columns:2,customGutter:[0,0,0]},innerBlocks:[{name:"kadence/column",attributes:{background:"#DADADA",padding:[30,20,30,20]},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,o.__)("Column 1","kadence-blocks")}}]},{name:"kadence/column",attributes:{background:"#f5f5f5",padding:[30,20,30,20]},innerBlocks:[{name:"core/paragraph",attributes:{content:(0,o.__)("Column 2","kadence-blocks")}}]}]}})},2485:(e,t)=>{var n;!function(){"use strict";var o={}.hasOwnProperty;function a(){for(var e=[],t=0;t<arguments.length;t++){var n=arguments[t];if(n){var r=typeof n;if("string"===r||"number"===r)e.push(n);else if(Array.isArray(n)){if(n.length){var l=a.apply(null,n);l&&e.push(l)}}else if("object"===r)if(n.toString===Object.prototype.toString)for(var i in n)o.call(n,i)&&n[i]&&e.push(i);else e.push(n.toString())}}return e.join(" ")}e.exports?(a.default=a,e.exports=a):void 0===(n=function(){return a}.apply(t,[]))||(e.exports=n)}()},2963:(e,t,n)=>{"use strict";var o=n(4994);t.__esModule=!0,t.default=function(e,t){e.classList?e.classList.add(t):(0,a.default)(e,t)||("string"==typeof e.className?e.className=e.className+" "+t:e.setAttribute("class",(e.className&&e.className.baseVal||"")+" "+t))};var a=o(n(598));e.exports=t.default},598:(e,t)=>{"use strict";t.__esModule=!0,t.default=function(e,t){return e.classList?!!t&&e.classList.contains(t):-1!==(" "+(e.className.baseVal||e.className)+" ").indexOf(" "+t+" ")},e.exports=t.default},788:e=>{"use strict";function t(e,t){return e.replace(new RegExp("(^|\\s)"+t+"(?:\\s|$)","g"),"$1").replace(/\s+/g," ").replace(/^\s*|\s*$/g,"")}e.exports=function(e,n){e.classList?e.classList.remove(n):"string"==typeof e.className?e.className=t(e.className,n):e.setAttribute("class",t(e.className&&e.className.baseVal||"",n))}},5127:()=>{!function(){"use strict";if("object"==typeof window)if("IntersectionObserver"in window&&"IntersectionObserverEntry"in window&&"intersectionRatio"in window.IntersectionObserverEntry.prototype)"isIntersecting"in window.IntersectionObserverEntry.prototype||Object.defineProperty(window.IntersectionObserverEntry.prototype,"isIntersecting",{get:function(){return this.intersectionRatio>0}});else{var e=window.document,t=[],n=null,o=null;r.prototype.THROTTLE_TIMEOUT=100,r.prototype.POLL_INTERVAL=null,r.prototype.USE_MUTATION_OBSERVER=!0,r._setupCrossOriginUpdater=function(){return n||(n=function(e,n){o=e&&n?u(e,n):{top:0,bottom:0,left:0,right:0,width:0,height:0},t.forEach((function(e){e._checkForIntersections()}))}),n},r._resetCrossOriginUpdater=function(){n=null,o=null},r.prototype.observe=function(e){if(!this._observationTargets.some((function(t){return t.element==e}))){if(!e||1!=e.nodeType)throw new Error("target must be an Element");this._registerInstance(),this._observationTargets.push({element:e,entry:null}),this._monitorIntersections(e.ownerDocument),this._checkForIntersections()}},r.prototype.unobserve=function(e){this._observationTargets=this._observationTargets.filter((function(t){return t.element!=e})),this._unmonitorIntersections(e.ownerDocument),0==this._observationTargets.length&&this._unregisterInstance()},r.prototype.disconnect=function(){this._observationTargets=[],this._unmonitorAllIntersections(),this._unregisterInstance()},r.prototype.takeRecords=function(){var e=this._queuedEntries.slice();return this._queuedEntries=[],e},r.prototype._initThresholds=function(e){var t=e||[0];return Array.isArray(t)||(t=[t]),t.sort().filter((function(e,t,n){if("number"!=typeof e||isNaN(e)||e<0||e>1)throw new Error("threshold must be a number between 0 and 1 inclusively");return e!==n[t-1]}))},r.prototype._parseRootMargin=function(e){var t=(e||"0px").split(/\s+/).map((function(e){var t=/^(-?\d*\.?\d+)(px|%)$/.exec(e);if(!t)throw new Error("rootMargin must be specified in pixels or percent");return{value:parseFloat(t[1]),unit:t[2]}}));return t[1]=t[1]||t[0],t[2]=t[2]||t[0],t[3]=t[3]||t[1],t},r.prototype._monitorIntersections=function(t){var n=t.defaultView;if(n&&-1==this._monitoringDocuments.indexOf(t)){var o=this._checkForIntersections,a=null,r=null;if(this.POLL_INTERVAL?a=n.setInterval(o,this.POLL_INTERVAL):(l(n,"resize",o,!0),l(t,"scroll",o,!0),this.USE_MUTATION_OBSERVER&&"MutationObserver"in n&&(r=new n.MutationObserver(o)).observe(t,{attributes:!0,childList:!0,characterData:!0,subtree:!0})),this._monitoringDocuments.push(t),this._monitoringUnsubscribes.push((function(){var e=t.defaultView;e&&(a&&e.clearInterval(a),i(e,"resize",o,!0)),i(t,"scroll",o,!0),r&&r.disconnect()})),t!=(this.root&&this.root.ownerDocument||e)){var s=m(t);s&&this._monitorIntersections(s.ownerDocument)}}},r.prototype._unmonitorIntersections=function(t){var n=this._monitoringDocuments.indexOf(t);if(-1!=n){var o=this.root&&this.root.ownerDocument||e,a=this._observationTargets.some((function(e){var n=e.element.ownerDocument;if(n==t)return!0;for(;n&&n!=o;){var a=m(n);if((n=a&&a.ownerDocument)==t)return!0}return!1}));if(!a){var r=this._monitoringUnsubscribes[n];if(this._monitoringDocuments.splice(n,1),this._monitoringUnsubscribes.splice(n,1),r(),t!=o){var l=m(t);l&&this._unmonitorIntersections(l.ownerDocument)}}}},r.prototype._unmonitorAllIntersections=function(){var e=this._monitoringUnsubscribes.slice(0);this._monitoringDocuments.length=0,this._monitoringUnsubscribes.length=0;for(var t=0;t<e.length;t++)e[t]()},r.prototype._checkForIntersections=function(){if(this.root||!n||o){var e=this._rootIsInDom(),t=e?this._getRootRect():{top:0,bottom:0,left:0,right:0,width:0,height:0};this._observationTargets.forEach((function(o){var r=o.element,l=s(r),i=this._rootContainsTarget(r),c=o.entry,u=e&&i&&this._computeTargetAndRootIntersection(r,l,t),d=o.entry=new a({time:window.performance&&performance.now&&performance.now(),target:r,boundingClientRect:l,rootBounds:n&&!this.root?null:t,intersectionRect:u});c?e&&i?this._hasCrossedThreshold(c,d)&&this._queuedEntries.push(d):c&&c.isIntersecting&&this._queuedEntries.push(d):this._queuedEntries.push(d)}),this),this._queuedEntries.length&&this._callback(this.takeRecords(),this)}},r.prototype._computeTargetAndRootIntersection=function(t,a,r){if("none"!=window.getComputedStyle(t).display){for(var l,i,c,d,m,g,h,b,f=a,v=p(t),y=!1;!y&&v;){var k=null,E=1==v.nodeType?window.getComputedStyle(v):{};if("none"==E.display)return null;if(v==this.root||9==v.nodeType)if(y=!0,v==this.root||v==e)n&&!this.root?!o||0==o.width&&0==o.height?(v=null,k=null,f=null):k=o:k=r;else{var w=p(v),_=w&&s(w),S=w&&this._computeTargetAndRootIntersection(w,_,r);_&&S?(v=w,k=u(_,S)):(v=null,f=null)}else{var C=v.ownerDocument;v!=C.body&&v!=C.documentElement&&"visible"!=E.overflow&&(k=s(v))}if(k&&(l=k,i=f,void 0,void 0,void 0,void 0,void 0,void 0,c=Math.max(l.top,i.top),d=Math.min(l.bottom,i.bottom),m=Math.max(l.left,i.left),b=d-c,f=(h=(g=Math.min(l.right,i.right))-m)>=0&&b>=0&&{top:c,bottom:d,left:m,right:g,width:h,height:b}||null),!f)break;v=v&&p(v)}return f}},r.prototype._getRootRect=function(){var t;if(this.root)t=s(this.root);else{var n=e.documentElement,o=e.body;t={top:0,left:0,right:n.clientWidth||o.clientWidth,width:n.clientWidth||o.clientWidth,bottom:n.clientHeight||o.clientHeight,height:n.clientHeight||o.clientHeight}}return this._expandRectByRootMargin(t)},r.prototype._expandRectByRootMargin=function(e){var t=this._rootMarginValues.map((function(t,n){return"px"==t.unit?t.value:t.value*(n%2?e.width:e.height)/100})),n={top:e.top-t[0],right:e.right+t[1],bottom:e.bottom+t[2],left:e.left-t[3]};return n.width=n.right-n.left,n.height=n.bottom-n.top,n},r.prototype._hasCrossedThreshold=function(e,t){var n=e&&e.isIntersecting?e.intersectionRatio||0:-1,o=t.isIntersecting?t.intersectionRatio||0:-1;if(n!==o)for(var a=0;a<this.thresholds.length;a++){var r=this.thresholds[a];if(r==n||r==o||r<n!=r<o)return!0}},r.prototype._rootIsInDom=function(){return!this.root||d(e,this.root)},r.prototype._rootContainsTarget=function(t){return d(this.root||e,t)&&(!this.root||this.root.ownerDocument==t.ownerDocument)},r.prototype._registerInstance=function(){t.indexOf(this)<0&&t.push(this)},r.prototype._unregisterInstance=function(){var e=t.indexOf(this);-1!=e&&t.splice(e,1)},window.IntersectionObserver=r,window.IntersectionObserverEntry=a}function a(e){this.time=e.time,this.target=e.target,this.rootBounds=c(e.rootBounds),this.boundingClientRect=c(e.boundingClientRect),this.intersectionRect=c(e.intersectionRect||{top:0,bottom:0,left:0,right:0,width:0,height:0}),this.isIntersecting=!!e.intersectionRect;var t=this.boundingClientRect,n=t.width*t.height,o=this.intersectionRect,a=o.width*o.height;this.intersectionRatio=n?Number((a/n).toFixed(4)):this.isIntersecting?1:0}function r(e,t){var n,o,a,r=t||{};if("function"!=typeof e)throw new Error("callback must be a function");if(r.root&&1!=r.root.nodeType)throw new Error("root must be an Element");this._checkForIntersections=(n=this._checkForIntersections.bind(this),o=this.THROTTLE_TIMEOUT,a=null,function(){a||(a=setTimeout((function(){n(),a=null}),o))}),this._callback=e,this._observationTargets=[],this._queuedEntries=[],this._rootMarginValues=this._parseRootMargin(r.rootMargin),this.thresholds=this._initThresholds(r.threshold),this.root=r.root||null,this.rootMargin=this._rootMarginValues.map((function(e){return e.value+e.unit})).join(" "),this._monitoringDocuments=[],this._monitoringUnsubscribes=[]}function l(e,t,n,o){"function"==typeof e.addEventListener?e.addEventListener(t,n,o||!1):"function"==typeof e.attachEvent&&e.attachEvent("on"+t,n)}function i(e,t,n,o){"function"==typeof e.removeEventListener?e.removeEventListener(t,n,o||!1):"function"==typeof e.detatchEvent&&e.detatchEvent("on"+t,n)}function s(e){var t;try{t=e.getBoundingClientRect()}catch(e){}return t?(t.width&&t.height||(t={top:t.top,right:t.right,bottom:t.bottom,left:t.left,width:t.right-t.left,height:t.bottom-t.top}),t):{top:0,bottom:0,left:0,right:0,width:0,height:0}}function c(e){return!e||"x"in e?e:{top:e.top,y:e.top,bottom:e.bottom,left:e.left,x:e.left,right:e.right,width:e.width,height:e.height}}function u(e,t){var n=t.top-e.top,o=t.left-e.left;return{top:n,left:o,height:t.height,width:t.width,bottom:n+t.height,right:o+t.width}}function d(e,t){for(var n=t;n;){if(n==e)return!0;n=p(n)}return!1}function p(t){var n=t.parentNode;return 9==t.nodeType&&t!=e?m(t):n&&11==n.nodeType&&n.host?n.host:n&&n.assignedSlot?n.assignedSlot.parentNode:n}function m(e){try{return e.defaultView&&e.defaultView.frameElement||null}catch(e){return null}}}()},8616:e=>{e.exports=function(e,t){var n,o,a=0;function r(){var r,l,i=n,s=arguments.length;e:for(;i;){if(i.args.length===arguments.length){for(l=0;l<s;l++)if(i.args[l]!==arguments[l]){i=i.next;continue e}return i!==n&&(i===o&&(o=i.prev),i.prev.next=i.next,i.next&&(i.next.prev=i.prev),i.next=n,i.prev=null,n.prev=i,n=i),i.val}i=i.next}for(r=new Array(s),l=0;l<s;l++)r[l]=arguments[l];return i={args:r,val:e.apply(null,r)},n?(n.prev=i,i.next=n):o=i,a===t.maxSize?(o=o.prev).next=null:a++,n=i,i.val}return t=t||{},r.clear=function(){n=null,o=null,a=0},r}},3491:function(e){(function(){var t,n,o,a,r,l;"undefined"!=typeof performance&&null!==performance&&performance.now?e.exports=function(){return performance.now()}:"undefined"!=typeof process&&null!==process&&process.hrtime?(e.exports=function(){return(t()-r)/1e6},n=process.hrtime,a=(t=function(){var e;return 1e9*(e=n())[0]+e[1]})(),l=1e9*process.uptime(),r=a-l):Date.now?(e.exports=function(){return Date.now()-o},o=Date.now()):(e.exports=function(){return(new Date).getTime()-o},o=(new Date).getTime())}).call(this)},2694:(e,t,n)=>{"use strict";var o=n(6925);function a(){}function r(){}r.resetWarningCache=a,e.exports=function(){function e(e,t,n,a,r,l){if(l!==o){var i=new Error("Calling PropTypes validators directly is not supported by the `prop-types` package. Use PropTypes.checkPropTypes() to call them. Read more at http://fb.me/use-check-prop-types");throw i.name="Invariant Violation",i}}function t(){return e}e.isRequired=e;var n={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:r,resetWarningCache:a};return n.PropTypes=n,n}},5556:(e,t,n)=>{e.exports=n(2694)()},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},3146:(e,t,n)=>{for(var o=n(3491),a="undefined"==typeof window?n.g:window,r=["moz","webkit"],l="AnimationFrame",i=a["request"+l],s=a["cancel"+l]||a["cancelRequest"+l],c=0;!i&&c<r.length;c++)i=a[r[c]+"Request"+l],s=a[r[c]+"Cancel"+l]||a[r[c]+"CancelRequest"+l];if(!i||!s){var u=0,d=0,p=[],m=1e3/60;i=function(e){if(0===p.length){var t=o(),n=Math.max(0,m-(t-u));u=n+t,setTimeout((function(){var e=p.slice(0);p.length=0;for(var t=0;t<e.length;t++)if(!e[t].cancelled)try{e[t].callback(u)}catch(e){setTimeout((function(){throw e}),0)}}),Math.round(n))}return p.push({handle:++d,callback:e,cancelled:!1}),d},s=function(e){for(var t=0;t<p.length;t++)p[t].handle===e&&(p[t].cancelled=!0)}}e.exports=function(e){return i.call(a,e)},e.exports.cancel=function(){s.apply(a,arguments)},e.exports.polyfill=function(e){e||(e=a),e.requestAnimationFrame=i,e.cancelAnimationFrame=s}},7633:(e,t,n)=>{"use strict";var o=n(1609);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=Object.prototype.hasOwnProperty,l=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,i={},s={};function c(e){return!!r.call(s,e)||!r.call(i,e)&&(l.test(e)?s[e]=!0:(i[e]=!0,!1))}function u(e,t,n,o,a,r,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=l}var d={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){d[e]=new u(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];d[t]=new u(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){d[e]=new u(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){d[e]=new u(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){d[e]=new u(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){d[e]=new u(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){d[e]=new u(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){d[e]=new u(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){d[e]=new u(e,5,!1,e.toLowerCase(),null,!1,!1)}));var p=/[\-:]([a-z])/g;function m(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(p,m);d[t]=new u(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(p,m);d[t]=new u(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(p,m);d[t]=new u(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!1,!1)})),d.xlinkHref=new u("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){d[e]=new u(e,1,!1,e.toLowerCase(),null,!0,!0)}));var g={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},h=["Webkit","ms","Moz","O"];Object.keys(g).forEach((function(e){h.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),g[t]=g[e]}))}));var b=/["'&<>]/;function f(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=b.exec(e);if(t){var n,o="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(o+=e.substring(a,n)),a=n+1,o+=t}e=a!==n?o+e.substring(a,n):o}return e}var v=/([A-Z])/g,y=/^ms-/,k=Array.isArray;function E(e,t){return{insertionMode:e,selectedValue:t}}var w=new Map;function _(e,t,n){if("object"!=typeof n)throw Error(a(62));for(var o in t=!0,n)if(r.call(n,o)){var l=n[o];if(null!=l&&"boolean"!=typeof l&&""!==l){if(0===o.indexOf("--")){var i=f(o);l=f((""+l).trim())}else{i=o;var s=w.get(i);void 0!==s||(s=f(i.replace(v,"-$1").toLowerCase().replace(y,"-ms-")),w.set(i,s)),i=s,l="number"==typeof l?0===l||r.call(g,o)?""+l:l+"px":f((""+l).trim())}t?(t=!1,e.push(' style="',i,":",l)):e.push(";",i,":",l)}}t||e.push('"')}function S(e,t,n,o){switch(n){case"style":return void _(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=d.hasOwnProperty(n)?d[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=t.attributeName,t.type){case 3:o&&e.push(" ",n,'=""');break;case 4:!0===o?e.push(" ",n,'=""'):!1!==o&&e.push(" ",n,'="',f(o),'"');break;case 5:isNaN(o)||e.push(" ",n,'="',f(o),'"');break;case 6:!isNaN(o)&&1<=o&&e.push(" ",n,'="',f(o),'"');break;default:t.sanitizeURL&&(o=""+o),e.push(" ",n,'="',f(o),'"')}}else if(c(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(" ",n,'="',f(o),'"')}}function C(e,t,n){if(null!=t){if(null!=n)throw Error(a(60));if("object"!=typeof t||!("__html"in t))throw Error(a(61));null!=(t=t.__html)&&e.push(""+t)}}function x(e,t,n,o){e.push(A(n));var a,l=n=null;for(a in t)if(r.call(t,a)){var i=t[a];if(null!=i)switch(a){case"children":n=i;break;case"dangerouslySetInnerHTML":l=i;break;default:S(e,o,a,i)}}return e.push(">"),C(e,l,n),"string"==typeof n?(e.push(f(n)),null):n}var I=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,O=new Map;function A(e){var t=O.get(e);if(void 0===t){if(!I.test(e))throw Error(a(65,e));t="<"+e,O.set(e,t)}return t}function M(e,t,n){if(e.push('\x3c!--$?--\x3e<template id="'),null===n)throw Error(a(395));return e.push(n),e.push('"></template>')}var P=/[<\u2028\u2029]/g;function T(e){return JSON.stringify(e).replace(P,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}function N(e,t,n,o){return n.generateStaticMarkup?(e.push(f(t)),!1):(""===t?e=o:(o&&e.push("\x3c!-- --\x3e"),e.push(f(t)),e=!0),e)}var R=Object.assign,L=Symbol.for("react.element"),B=Symbol.for("react.portal"),D=Symbol.for("react.fragment"),F=Symbol.for("react.strict_mode"),z=Symbol.for("react.profiler"),j=Symbol.for("react.provider"),H=Symbol.for("react.context"),W=Symbol.for("react.forward_ref"),V=Symbol.for("react.suspense"),$=Symbol.for("react.suspense_list"),U=Symbol.for("react.memo"),Z=Symbol.for("react.lazy"),G=Symbol.for("react.scope"),q=Symbol.for("react.debug_trace_mode"),K=Symbol.for("react.legacy_hidden"),J=Symbol.for("react.default_value"),Y=Symbol.iterator;function X(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case D:return"Fragment";case B:return"Portal";case z:return"Profiler";case F:return"StrictMode";case V:return"Suspense";case $:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case H:return(e.displayName||"Context")+".Consumer";case j:return(e._context.displayName||"Context")+".Provider";case W:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case U:return null!==(t=e.displayName||null)?t:X(e.type)||"Memo";case Z:t=e._payload,e=e._init;try{return X(e(t))}catch(e){}}return null}var Q={};function ee(e,t){if(!(e=e.contextTypes))return Q;var n,o={};for(n in e)o[n]=t[n];return o}var te=null;function ne(e,t){if(e!==t){e.context._currentValue2=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(a(401))}else{if(null===n)throw Error(a(401));ne(e,n)}t.context._currentValue2=t.value}}function oe(e){e.context._currentValue2=e.parentValue,null!==(e=e.parent)&&oe(e)}function ae(e){var t=e.parent;null!==t&&ae(t),e.context._currentValue2=e.value}function re(e,t){if(e.context._currentValue2=e.parentValue,null===(e=e.parent))throw Error(a(402));e.depth===t.depth?ne(e,t):re(e,t)}function le(e,t){var n=t.parent;if(null===n)throw Error(a(402));e.depth===n.depth?ne(e,n):le(e,n),t.context._currentValue2=t.value}function ie(e){var t=te;t!==e&&(null===t?ae(e):null===e?oe(t):t.depth===e.depth?ne(t,e):t.depth>e.depth?re(t,e):le(t,e),te=e)}var se={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function ce(e,t,n,o){var a=void 0!==e.state?e.state:null;e.updater=se,e.props=n,e.state=a;var r={queue:[],replace:!1};e._reactInternals=r;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue2:o,"function"==typeof(l=t.getDerivedStateFromProps)&&(a=null==(l=l(n,a))?a:R({},a,l),e.state=a),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&se.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,l=r.replace,r.queue=null,r.replace=!1,l&&1===t.length)e.state=t[0];else{for(r=l?t[0]:e.state,a=!0,l=l?1:0;l<t.length;l++){var i=t[l];null!=(i="function"==typeof i?i.call(e,r,n,o):i)&&(a?(a=!1,r=R({},r,i)):R(r,i))}e.state=r}else r.queue=null}var ue={id:1,overflow:""};function de(e,t,n){var o=e.id;e=e.overflow;var a=32-pe(o)-1;o&=~(1<<a),n+=1;var r=32-pe(t)+a;if(30<r){var l=a-a%5;return r=(o&(1<<l)-1).toString(32),o>>=l,a-=l,{id:1<<32-pe(t)+a|n<<a|o,overflow:r+e}}return{id:1<<r|n<<a|o,overflow:e}}var pe=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(me(e)/ge|0)|0},me=Math.log,ge=Math.LN2,he="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},be=null,fe=null,ve=null,ye=null,ke=!1,Ee=!1,we=0,_e=null,Se=0;function Ce(){if(null===be)throw Error(a(321));return be}function xe(){if(0<Se)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function Ie(){return null===ye?null===ve?(ke=!1,ve=ye=xe()):(ke=!0,ye=ve):null===ye.next?(ke=!1,ye=ye.next=xe()):(ke=!0,ye=ye.next),ye}function Oe(){fe=be=null,Ee=!1,ve=null,Se=0,ye=_e=null}function Ae(e,t){return"function"==typeof t?t(e):t}function Me(e,t,n){if(be=Ce(),ye=Ie(),ke){var o=ye.queue;if(t=o.dispatch,null!==_e&&void 0!==(n=_e.get(o))){_e.delete(o),o=ye.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return ye.memoizedState=o,[o,t]}return[ye.memoizedState,t]}return e=e===Ae?"function"==typeof t?t():t:void 0!==n?n(t):t,ye.memoizedState=e,e=(e=ye.queue={last:null,dispatch:null}).dispatch=Te.bind(null,be,e),[ye.memoizedState,e]}function Pe(e,t){if(be=Ce(),t=void 0===t?null:t,null!==(ye=Ie())){var n=ye.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var a=0;a<o.length&&a<t.length;a++)if(!he(t[a],o[a])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),ye.memoizedState=[e,t],e}function Te(e,t,n){if(25<=Se)throw Error(a(301));if(e===be)if(Ee=!0,e={action:n,next:null},null===_e&&(_e=new Map),void 0===(n=_e.get(t)))_e.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function Ne(){throw Error(a(394))}function Re(){}var Le={readContext:function(e){return e._currentValue2},useContext:function(e){return Ce(),e._currentValue2},useMemo:Pe,useReducer:Me,useRef:function(e){be=Ce();var t=(ye=Ie()).memoizedState;return null===t?(e={current:e},ye.memoizedState=e):t},useState:function(e){return Me(Ae,e)},useInsertionEffect:Re,useLayoutEffect:function(){},useCallback:function(e,t){return Pe((function(){return e}),t)},useImperativeHandle:Re,useEffect:Re,useDebugValue:Re,useDeferredValue:function(e){return Ce(),e},useTransition:function(){return Ce(),[!1,Ne]},useId:function(){var e=fe.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-pe(e)-1)).toString(32)+t;var n=Be;if(null===n)throw Error(a(404));return t=we++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Ce(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(a(407));return n()}},Be=null,De=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function Fe(e){return console.error(e),null}function ze(){}function je(e,t,n,o,a,r,l,i){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&tt(e)},blockedBoundary:n,blockedSegment:o,abortSet:a,legacyContext:r,context:l,treeContext:i};return a.add(s),s}function He(e,t,n,o,a,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:a,textEmbedded:r}}function We(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function Ve(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,e.destination.destroy(t)):(e.status=1,e.fatalError=t)}function $e(e,t,n,o,a){for(be={},fe=t,we=0,e=n(o,a);Ee;)Ee=!1,we=0,Se+=1,ye=null,e=n(o,a);return Oe(),e}function Ue(e,t,n,o){var r=n.render(),l=o.childContextTypes;if(null!=l){var i=t.legacyContext;if("function"!=typeof n.getChildContext)o=i;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(a(108,X(o)||"Unknown",s));o=R({},i,n)}t.legacyContext=o,qe(e,t,r),t.legacyContext=i}else qe(e,t,r)}function Ze(e,t){if(e&&e.defaultProps){for(var n in t=R({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function Ge(e,t,n,l,i){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){i=ee(n,t.legacyContext);var s=n.contextType;ce(s=new n(l,"object"==typeof s&&null!==s?s._currentValue2:i),n,l,i),Ue(e,t,s,n)}else{i=$e(e,t,n,l,s=ee(n,t.legacyContext));var u=0!==we;if("object"==typeof i&&null!==i&&"function"==typeof i.render&&void 0===i.$$typeof)ce(i,n,l,s),Ue(e,t,i,n);else if(u){l=t.treeContext,t.treeContext=de(l,1,0);try{qe(e,t,i)}finally{t.treeContext=l}}else qe(e,t,i)}else{if("string"!=typeof n){switch(n){case K:case q:case F:case z:case D:case $:return void qe(e,t,l.children);case G:throw Error(a(343));case V:e:{n=t.blockedBoundary,i=t.blockedSegment,s=l.fallback,l=l.children;var d={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:u=new Set,errorDigest:null},p=He(0,i.chunks.length,d,i.formatContext,!1,!1);i.children.push(p),i.lastPushedText=!1;var m=He(0,0,null,i.formatContext,!1,!1);m.parentFlushed=!0,t.blockedBoundary=d,t.blockedSegment=m;try{if(Je(e,t,l),e.responseState.generateStaticMarkup||m.lastPushedText&&m.textEmbedded&&m.chunks.push("\x3c!-- --\x3e"),m.status=1,Qe(d,m),0===d.pendingTasks)break e}catch(t){m.status=4,d.forceClientRender=!0,d.errorDigest=We(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=i}t=je(e,s,n,p,u,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case W:if(l=$e(e,t,n.render,l,i),0!==we){n=t.treeContext,t.treeContext=de(n,1,0);try{qe(e,t,l)}finally{t.treeContext=n}}else qe(e,t,l);return;case U:return void Ge(e,t,n=n.type,l=Ze(n,l),i);case j:if(i=l.children,n=n._context,l=l.value,s=n._currentValue2,n._currentValue2=l,te=l={parent:u=te,depth:null===u?0:u.depth+1,context:n,parentValue:s,value:l},t.context=l,qe(e,t,i),null===(e=te))throw Error(a(403));return l=e.parentValue,e.context._currentValue2=l===J?e.context._defaultValue:l,e=te=e.parent,void(t.context=e);case H:return void qe(e,t,l=(l=l.children)(n._currentValue2));case Z:return void Ge(e,t,n=(i=n._init)(n._payload),l=Ze(n,l),void 0)}throw Error(a(130,null==n?n:typeof n,""))}switch(s=function(e,t,n,l,i){switch(t){case"select":e.push(A("select"));var s=null,u=null;for(g in n)if(r.call(n,g)){var d=n[g];if(null!=d)switch(g){case"children":s=d;break;case"dangerouslySetInnerHTML":u=d;break;case"defaultValue":case"value":break;default:S(e,l,g,d)}}return e.push(">"),C(e,u,s),s;case"option":u=i.selectedValue,e.push(A("option"));var p=d=null,m=null,g=null;for(s in n)if(r.call(n,s)){var h=n[s];if(null!=h)switch(s){case"children":d=h;break;case"selected":m=h;break;case"dangerouslySetInnerHTML":g=h;break;case"value":p=h;default:S(e,l,s,h)}}if(null!=u)if(n=null!==p?""+p:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(d),k(u)){for(l=0;l<u.length;l++)if(""+u[l]===n){e.push(' selected=""');break}}else""+u===n&&e.push(' selected=""');else m&&e.push(' selected=""');return e.push(">"),C(e,g,d),d;case"textarea":for(d in e.push(A("textarea")),g=u=s=null,n)if(r.call(n,d)&&null!=(p=n[d]))switch(d){case"children":g=p;break;case"value":s=p;break;case"defaultValue":u=p;break;case"dangerouslySetInnerHTML":throw Error(a(91));default:S(e,l,d,p)}if(null===s&&null!==u&&(s=u),e.push(">"),null!=g){if(null!=s)throw Error(a(92));if(k(g)&&1<g.length)throw Error(a(93));s=""+g}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),null!==s&&e.push(f(""+s)),null;case"input":for(u in e.push(A("input")),p=g=d=s=null,n)if(r.call(n,u)&&null!=(m=n[u]))switch(u){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,"input"));case"defaultChecked":p=m;break;case"defaultValue":d=m;break;case"checked":g=m;break;case"value":s=m;break;default:S(e,l,u,m)}return null!==g?S(e,l,"checked",g):null!==p&&S(e,l,"checked",p),null!==s?S(e,l,"value",s):null!==d&&S(e,l,"value",d),e.push("/>"),null;case"menuitem":for(var b in e.push(A("menuitem")),n)if(r.call(n,b)&&null!=(s=n[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(a(400));default:S(e,l,b,s)}return e.push(">"),null;case"title":for(h in e.push(A("title")),s=null,n)if(r.call(n,h)&&null!=(u=n[h]))switch(h){case"children":s=u;break;case"dangerouslySetInnerHTML":throw Error(a(434));default:S(e,l,h,u)}return e.push(">"),s;case"listing":case"pre":for(p in e.push(A(t)),u=s=null,n)if(r.call(n,p)&&null!=(d=n[p]))switch(p){case"children":s=d;break;case"dangerouslySetInnerHTML":u=d;break;default:S(e,l,p,d)}if(e.push(">"),null!=u){if(null!=s)throw Error(a(60));if("object"!=typeof u||!("__html"in u))throw Error(a(61));null!=(n=u.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push("\n",n):e.push(""+n))}return"string"==typeof s&&"\n"===s[0]&&e.push("\n"),s;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var v in e.push(A(t)),n)if(r.call(n,v)&&null!=(s=n[v]))switch(v){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,t));default:S(e,l,v,s)}return e.push("/>"),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return x(e,n,t,l);case"html":return 0===i.insertionMode&&e.push("<!DOCTYPE html>"),x(e,n,t,l);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return x(e,n,t,l);for(m in e.push(A(t)),u=s=null,n)if(r.call(n,m)&&null!=(d=n[m]))switch(m){case"children":s=d;break;case"dangerouslySetInnerHTML":u=d;break;case"style":_(e,l,d);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:c(m)&&"function"!=typeof d&&"symbol"!=typeof d&&e.push(" ",m,'="',f(d),'"')}return e.push(">"),C(e,u,s),s}}((i=t.blockedSegment).chunks,n,l,e.responseState,i.formatContext),i.lastPushedText=!1,u=i.formatContext,i.formatContext=function(e,t,n){switch(t){case"select":return E(1,null!=n.value?n.value:n.defaultValue);case"svg":return E(2,null);case"math":return E(3,null);case"foreignObject":return E(1,null);case"table":return E(4,null);case"thead":case"tbody":case"tfoot":return E(5,null);case"colgroup":return E(7,null);case"tr":return E(6,null)}return 4<=e.insertionMode||0===e.insertionMode?E(1,null):e}(u,n,l),Je(e,t,s),i.formatContext=u,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:i.chunks.push("</",n,">")}i.lastPushedText=!1}}function qe(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case L:return void Ge(e,t,n.type,n.props,n.ref);case B:throw Error(a(257));case Z:var o=n._init;return void qe(e,t,n=o(n._payload))}if(k(n))return void Ke(e,t,n);if((o=null===n||"object"!=typeof n?null:"function"==typeof(o=Y&&n[Y]||n["@@iterator"])?o:null)&&(o=o.call(n))){if(!(n=o.next()).done){var r=[];do{r.push(n.value),n=o.next()}while(!n.done);Ke(e,t,r)}return}throw e=Object.prototype.toString.call(n),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(o=t.blockedSegment).lastPushedText=N(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"==typeof n&&((o=t.blockedSegment).lastPushedText=N(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function Ke(e,t,n){for(var o=n.length,a=0;a<o;a++){var r=t.treeContext;t.treeContext=de(r,o,a);try{Je(e,t,n[a])}finally{t.treeContext=r}}}function Je(e,t,n){var o=t.blockedSegment.formatContext,a=t.legacyContext,r=t.context;try{return qe(e,t,n)}catch(s){if(Oe(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=o,t.legacyContext=a,t.context=r,ie(r),s;n=s;var l=t.blockedSegment,i=He(0,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(i),l.lastPushedText=!1,e=je(e,t.node,t.blockedBoundary,i,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=a,t.context=r,ie(r)}}function Ye(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,et(this,t,e)}function Xe(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.push(null))):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(a(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return Xe(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function Qe(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&Qe(e,n)}else e.completedSegments.push(t)}function et(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(a(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=ze,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&Qe(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(Ye,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(Qe(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function tt(e){if(2!==e.status){var t=te,n=De.current;De.current=Le;var o=Be;Be=e.responseState;try{var a,r=e.pingedTasks;for(a=0;a<r.length;a++){var l=r[a],i=e,s=l.blockedSegment;if(0===s.status){ie(l.context);try{qe(i,l,l.node),i.responseState.generateStaticMarkup||s.lastPushedText&&s.textEmbedded&&s.chunks.push("\x3c!-- --\x3e"),l.abortSet.delete(l),s.status=1,et(i,l.blockedBoundary,s)}catch(e){if(Oe(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=l.ping;e.then(c,c)}else{l.abortSet.delete(l),s.status=4;var u=l.blockedBoundary,d=e,p=We(i,d);null===u?Ve(i,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&i.clientRenderedBoundaries.push(u))),i.allPendingTasks--,0===i.allPendingTasks&&(0,i.onAllReady)()}}}}r.splice(0,a),null!==e.destination&&it(e,e.destination)}catch(t){We(e,t),Ve(e,t)}finally{Be=o,De.current=n,n===Le&&ie(t)}}}function nt(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,t.push('<template id="'),t.push(e.placeholderPrefix),e=o.toString(16),t.push(e),t.push('"></template>');case 1:n.status=2;var r=!0;o=n.chunks;var l=0;n=n.children;for(var i=0;i<n.length;i++){for(r=n[i];l<r.index;l++)t.push(o[l]);r=ot(e,t,r)}for(;l<o.length-1;l++)t.push(o[l]);return l<o.length&&(r=t.push(o[l])),r;default:throw Error(a(390))}}function ot(e,t,n){var o=n.boundary;if(null===o)return nt(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)return e.responseState.generateStaticMarkup||(o=o.errorDigest,t.push("\x3c!--$!--\x3e"),t.push("<template"),o&&(t.push(' data-dgst="'),o=f(o),t.push(o),t.push('"')),t.push("></template>")),nt(e,t,n),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e");if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var r=e.responseState,l=r.nextSuspenseID++;return r=r.boundaryPrefix+l.toString(16),o=o.id=r,M(t,e.responseState,o),nt(e,t,n),t.push("\x3c!--/$--\x3e")}if(o.byteSize>e.progressiveChunkSize)return o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),M(t,e.responseState,o.id),nt(e,t,n),t.push("\x3c!--/$--\x3e");if(e.responseState.generateStaticMarkup||t.push("\x3c!--$--\x3e"),1!==(n=o.completedSegments).length)throw Error(a(391));return ot(e,t,n[0]),!!e.responseState.generateStaticMarkup||t.push("\x3c!--/$--\x3e")}function at(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return e.push('<div hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 2:return e.push('<svg aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 3:return e.push('<math aria-hidden="true" style="display:none" id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 4:return e.push('<table hidden id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 5:return e.push('<table hidden><tbody id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 6:return e.push('<table hidden><tr id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');case 7:return e.push('<table hidden><colgroup id="'),e.push(t.segmentPrefix),t=o.toString(16),e.push(t),e.push('">');default:throw Error(a(397))}}(t,e.responseState,n.formatContext,n.id),ot(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return e.push("</div>");case 2:return e.push("</svg>");case 3:return e.push("</math>");case 4:return e.push("</table>");case 5:return e.push("</tbody></table>");case 6:return e.push("</tr></table>");case 7:return e.push("</colgroup></table>");default:throw Error(a(397))}}(t,n.formatContext)}function rt(e,t,n){for(var o=n.completedSegments,r=0;r<o.length;r++)lt(e,t,n,o[r]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,t.push(e.startInlineScript),e.sentCompleteBoundaryFunction?t.push('$RC("'):(e.sentCompleteBoundaryFunction=!0,t.push('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("')),null===o)throw Error(a(395));return n=n.toString(16),t.push(o),t.push('","'),t.push(e.segmentPrefix),t.push(n),t.push('")<\/script>')}function lt(e,t,n,o){if(2===o.status)return!0;var r=o.id;if(-1===r){if(-1===(o.id=n.rootSegmentID))throw Error(a(392));return at(e,t,o)}return at(e,t,o),e=e.responseState,t.push(e.startInlineScript),e.sentCompleteSegmentFunction?t.push('$RS("'):(e.sentCompleteSegmentFunction=!0,t.push('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("')),t.push(e.segmentPrefix),r=r.toString(16),t.push(r),t.push('","'),t.push(e.placeholderPrefix),t.push(r),t.push('")<\/script>')}function it(e,t){try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){ot(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)t.push(o[n]);n<o.length&&t.push(o[n])}var r,l=e.clientRenderedBoundaries;for(r=0;r<l.length;r++){var i=l[r];o=t;var s=e.responseState,c=i.id,u=i.errorDigest,d=i.errorMessage,p=i.errorComponentStack;if(o.push(s.startInlineScript),s.sentClientRenderFunction?o.push('$RX("'):(s.sentClientRenderFunction=!0,o.push('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("')),null===c)throw Error(a(395));if(o.push(c),o.push('"'),u||d||p){o.push(",");var m=T(u||"");o.push(m)}if(d||p){o.push(",");var g=T(d||"");o.push(g)}if(p){o.push(",");var h=T(p);o.push(h)}if(!o.push(")<\/script>"))return e.destination=null,r++,void l.splice(0,r)}l.splice(0,r);var b=e.completedBoundaries;for(r=0;r<b.length;r++)if(!rt(e,t,b[r]))return e.destination=null,r++,void b.splice(0,r);b.splice(0,r);var f=e.partialBoundaries;for(r=0;r<f.length;r++){var v=f[r];e:{l=e,i=t;var y=v.completedSegments;for(s=0;s<y.length;s++)if(!lt(l,i,v,y[s])){s++,y.splice(0,s);var k=!1;break e}y.splice(0,s),k=!0}if(!k)return e.destination=null,r++,void f.splice(0,r)}f.splice(0,r);var E=e.completedBoundaries;for(r=0;r<E.length;r++)if(!rt(e,t,E[r]))return e.destination=null,r++,void E.splice(0,r);E.splice(0,r)}finally{0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.push(null)}}function st(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return Xe(n,e,t)})),n.clear(),null!==e.destination&&it(e,e.destination)}catch(t){We(e,t),Ve(e,t)}}function ct(){}function ut(e,t,n,o){var r=!1,l=null,i="",s={push:function(e){return null!==e&&(i+=e),!0},destroy:function(e){r=!0,l=e}},c=!1;if(e=function(e,t,n,o,a,r,l){var i=[],s=new Set;return(n=He(t={destination:null,responseState:t,progressiveChunkSize:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:s,pingedTasks:i,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===a?Fe:a,onAllReady:ze,onShellReady:void 0===l?ze:l,onShellError:ze,onFatalError:ze},0,null,n,!1,!1)).parentFlushed=!0,e=je(t,e,null,n,s,Q,null,ue),i.push(e),t}(e,function(e,t){return{bootstrapChunks:[],startInlineScript:"<script>",placeholderPrefix:(t=void 0===t?"":t)+"P:",segmentPrefix:t+"S:",boundaryPrefix:t+"B:",idPrefix:t,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1,generateStaticMarkup:e}}(n,t?t.identifierPrefix:void 0),{insertionMode:1,selectedValue:null},1/0,ct,0,(function(){c=!0})),tt(e),st(e,o),1===e.status)e.status=2,s.destroy(e.fatalError);else if(2!==e.status&&null===e.destination){e.destination=s;try{it(e,s)}catch(t){We(e,t),Ve(e,t)}}if(r)throw l;if(!c)throw Error(a(426));return i}t.renderToNodeStream=function(){throw Error(a(207))},t.renderToStaticMarkup=function(e,t){return ut(e,t,!0,'The server used "renderToStaticMarkup" which does not support Suspense. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.renderToStaticNodeStream=function(){throw Error(a(208))},t.renderToString=function(e,t){return ut(e,t,!1,'The server used "renderToString" which does not support Suspense. If you intended for this Suspense boundary to render the fallback content on the server consider throwing an Error somewhere within the Suspense boundary. If you intended to have the server wait for the suspended component please switch to "renderToReadableStream" which supports Suspense on the server')},t.version="18.2.0"},2911:(e,t,n)=>{"use strict";var o=n(1609);function a(e){for(var t="https://reactjs.org/docs/error-decoder.html?invariant="+e,n=1;n<arguments.length;n++)t+="&args[]="+encodeURIComponent(arguments[n]);return"Minified React error #"+e+"; visit "+t+" for the full message or use the non-minified dev environment for full errors and additional helpful warnings."}var r=null,l=0;function i(e,t){if(0!==t.length)if(512<t.length)0<l&&(e.enqueue(new Uint8Array(r.buffer,0,l)),r=new Uint8Array(512),l=0),e.enqueue(t);else{var n=r.length-l;n<t.length&&(0===n?e.enqueue(r):(r.set(t.subarray(0,n),l),e.enqueue(r),t=t.subarray(n)),r=new Uint8Array(512),l=0),r.set(t,l),l+=t.length}}function s(e,t){return i(e,t),!0}function c(e){r&&0<l&&(e.enqueue(new Uint8Array(r.buffer,0,l)),r=null,l=0)}var u=new TextEncoder;function d(e){return u.encode(e)}function p(e){return u.encode(e)}function m(e,t){"function"==typeof e.error?e.error(t):e.close()}var g=Object.prototype.hasOwnProperty,h=/^[:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD][:A-Z_a-z\u00C0-\u00D6\u00D8-\u00F6\u00F8-\u02FF\u0370-\u037D\u037F-\u1FFF\u200C-\u200D\u2070-\u218F\u2C00-\u2FEF\u3001-\uD7FF\uF900-\uFDCF\uFDF0-\uFFFD\-.0-9\u00B7\u0300-\u036F\u203F-\u2040]*$/,b={},f={};function v(e){return!!g.call(f,e)||!g.call(b,e)&&(h.test(e)?f[e]=!0:(b[e]=!0,!1))}function y(e,t,n,o,a,r,l){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=o,this.attributeNamespace=a,this.mustUseProperty=n,this.propertyName=e,this.type=t,this.sanitizeURL=r,this.removeEmptyString=l}var k={};"children dangerouslySetInnerHTML defaultValue defaultChecked innerHTML suppressContentEditableWarning suppressHydrationWarning style".split(" ").forEach((function(e){k[e]=new y(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((function(e){var t=e[0];k[t]=new y(t,1,!1,e[1],null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((function(e){k[e]=new y(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((function(e){k[e]=new y(e,2,!1,e,null,!1,!1)})),"allowFullScreen async autoFocus autoPlay controls default defer disabled disablePictureInPicture disableRemotePlayback formNoValidate hidden loop noModule noValidate open playsInline readOnly required reversed scoped seamless itemScope".split(" ").forEach((function(e){k[e]=new y(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((function(e){k[e]=new y(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((function(e){k[e]=new y(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((function(e){k[e]=new y(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((function(e){k[e]=new y(e,5,!1,e.toLowerCase(),null,!1,!1)}));var E=/[\-:]([a-z])/g;function w(e){return e[1].toUpperCase()}"accent-height alignment-baseline arabic-form baseline-shift cap-height clip-path clip-rule color-interpolation color-interpolation-filters color-profile color-rendering dominant-baseline enable-background fill-opacity fill-rule flood-color flood-opacity font-family font-size font-size-adjust font-stretch font-style font-variant font-weight glyph-name glyph-orientation-horizontal glyph-orientation-vertical horiz-adv-x horiz-origin-x image-rendering letter-spacing lighting-color marker-end marker-mid marker-start overline-position overline-thickness paint-order panose-1 pointer-events rendering-intent shape-rendering stop-color stop-opacity strikethrough-position strikethrough-thickness stroke-dasharray stroke-dashoffset stroke-linecap stroke-linejoin stroke-miterlimit stroke-opacity stroke-width text-anchor text-decoration text-rendering underline-position underline-thickness unicode-bidi unicode-range units-per-em v-alphabetic v-hanging v-ideographic v-mathematical vector-effect vert-adv-y vert-origin-x vert-origin-y word-spacing writing-mode xmlns:xlink x-height".split(" ").forEach((function(e){var t=e.replace(E,w);k[t]=new y(t,1,!1,e,null,!1,!1)})),"xlink:actuate xlink:arcrole xlink:role xlink:show xlink:title xlink:type".split(" ").forEach((function(e){var t=e.replace(E,w);k[t]=new y(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((function(e){var t=e.replace(E,w);k[t]=new y(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((function(e){k[e]=new y(e,1,!1,e.toLowerCase(),null,!1,!1)})),k.xlinkHref=new y("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((function(e){k[e]=new y(e,1,!1,e.toLowerCase(),null,!0,!0)}));var _={animationIterationCount:!0,aspectRatio:!0,borderImageOutset:!0,borderImageSlice:!0,borderImageWidth:!0,boxFlex:!0,boxFlexGroup:!0,boxOrdinalGroup:!0,columnCount:!0,columns:!0,flex:!0,flexGrow:!0,flexPositive:!0,flexShrink:!0,flexNegative:!0,flexOrder:!0,gridArea:!0,gridRow:!0,gridRowEnd:!0,gridRowSpan:!0,gridRowStart:!0,gridColumn:!0,gridColumnEnd:!0,gridColumnSpan:!0,gridColumnStart:!0,fontWeight:!0,lineClamp:!0,lineHeight:!0,opacity:!0,order:!0,orphans:!0,tabSize:!0,widows:!0,zIndex:!0,zoom:!0,fillOpacity:!0,floodOpacity:!0,stopOpacity:!0,strokeDasharray:!0,strokeDashoffset:!0,strokeMiterlimit:!0,strokeOpacity:!0,strokeWidth:!0},S=["Webkit","ms","Moz","O"];Object.keys(_).forEach((function(e){S.forEach((function(t){t=t+e.charAt(0).toUpperCase()+e.substring(1),_[t]=_[e]}))}));var C=/["'&<>]/;function x(e){if("boolean"==typeof e||"number"==typeof e)return""+e;e=""+e;var t=C.exec(e);if(t){var n,o="",a=0;for(n=t.index;n<e.length;n++){switch(e.charCodeAt(n)){case 34:t="&quot;";break;case 38:t="&amp;";break;case 39:t="&#x27;";break;case 60:t="&lt;";break;case 62:t="&gt;";break;default:continue}a!==n&&(o+=e.substring(a,n)),a=n+1,o+=t}e=a!==n?o+e.substring(a,n):o}return e}var I=/([A-Z])/g,O=/^ms-/,A=Array.isArray,M=p("<script>"),P=p("<\/script>"),T=p('<script src="'),N=p('<script type="module" src="'),R=p('" async=""><\/script>'),L=/(<\/|<)(s)(cript)/gi;function B(e,t,n,o){return t+("s"===n?"\\u0073":"\\u0053")+o}function D(e,t){return{insertionMode:e,selectedValue:t}}var F=p("\x3c!-- --\x3e");function z(e,t,n,o){return""===t?o:(o&&e.push(F),e.push(d(x(t))),!0)}var j=new Map,H=p(' style="'),W=p(":"),V=p(";");function $(e,t,n){if("object"!=typeof n)throw Error(a(62));for(var o in t=!0,n)if(g.call(n,o)){var r=n[o];if(null!=r&&"boolean"!=typeof r&&""!==r){if(0===o.indexOf("--")){var l=d(x(o));r=d(x((""+r).trim()))}else{l=o;var i=j.get(l);void 0!==i||(i=p(x(l.replace(I,"-$1").toLowerCase().replace(O,"-ms-"))),j.set(l,i)),l=i,r="number"==typeof r?0===r||g.call(_,o)?d(""+r):d(r+"px"):d(x((""+r).trim()))}t?(t=!1,e.push(H,l,W,r)):e.push(V,l,W,r)}}t||e.push(G)}var U=p(" "),Z=p('="'),G=p('"'),q=p('=""');function K(e,t,n,o){switch(n){case"style":return void $(e,t,o);case"defaultValue":case"defaultChecked":case"innerHTML":case"suppressContentEditableWarning":case"suppressHydrationWarning":return}if(!(2<n.length)||"o"!==n[0]&&"O"!==n[0]||"n"!==n[1]&&"N"!==n[1])if(null!==(t=k.hasOwnProperty(n)?k[n]:null)){switch(typeof o){case"function":case"symbol":return;case"boolean":if(!t.acceptsBooleans)return}switch(n=d(t.attributeName),t.type){case 3:o&&e.push(U,n,q);break;case 4:!0===o?e.push(U,n,q):!1!==o&&e.push(U,n,Z,d(x(o)),G);break;case 5:isNaN(o)||e.push(U,n,Z,d(x(o)),G);break;case 6:!isNaN(o)&&1<=o&&e.push(U,n,Z,d(x(o)),G);break;default:t.sanitizeURL&&(o=""+o),e.push(U,n,Z,d(x(o)),G)}}else if(v(n)){switch(typeof o){case"function":case"symbol":return;case"boolean":if("data-"!==(t=n.toLowerCase().slice(0,5))&&"aria-"!==t)return}e.push(U,d(n),Z,d(x(o)),G)}}var J=p(">"),Y=p("/>");function X(e,t,n){if(null!=t){if(null!=n)throw Error(a(60));if("object"!=typeof t||!("__html"in t))throw Error(a(61));null!=(t=t.__html)&&e.push(d(""+t))}}var Q=p(' selected=""');function ee(e,t,n,o){e.push(ae(n));var a,r=n=null;for(a in t)if(g.call(t,a)){var l=t[a];if(null!=l)switch(a){case"children":n=l;break;case"dangerouslySetInnerHTML":r=l;break;default:K(e,o,a,l)}}return e.push(J),X(e,r,n),"string"==typeof n?(e.push(d(x(n))),null):n}var te=p("\n"),ne=/^[a-zA-Z][a-zA-Z:_\.\-\d]*$/,oe=new Map;function ae(e){var t=oe.get(e);if(void 0===t){if(!ne.test(e))throw Error(a(65,e));t=p("<"+e),oe.set(e,t)}return t}var re=p("<!DOCTYPE html>");var le=p("</"),ie=p(">"),se=p('<template id="'),ce=p('"></template>'),ue=p("\x3c!--$--\x3e"),de=p('\x3c!--$?--\x3e<template id="'),pe=p('"></template>'),me=p("\x3c!--$!--\x3e"),ge=p("\x3c!--/$--\x3e"),he=p("<template"),be=p('"'),fe=p(' data-dgst="');p(' data-msg="'),p(' data-stck="');var ve=p("></template>");function ye(e,t,n){if(i(e,de),null===n)throw Error(a(395));return i(e,n),s(e,pe)}var ke=p('<div hidden id="'),Ee=p('">'),we=p("</div>"),_e=p('<svg aria-hidden="true" style="display:none" id="'),Se=p('">'),Ce=p("</svg>"),xe=p('<math aria-hidden="true" style="display:none" id="'),Ie=p('">'),Oe=p("</math>"),Ae=p('<table hidden id="'),Me=p('">'),Pe=p("</table>"),Te=p('<table hidden><tbody id="'),Ne=p('">'),Re=p("</tbody></table>"),Le=p('<table hidden><tr id="'),Be=p('">'),De=p("</tr></table>"),Fe=p('<table hidden><colgroup id="'),ze=p('">'),je=p("</colgroup></table>"),He=p('function $RS(a,b){a=document.getElementById(a);b=document.getElementById(b);for(a.parentNode.removeChild(a);a.firstChild;)b.parentNode.insertBefore(a.firstChild,b);b.parentNode.removeChild(b)};$RS("'),We=p('$RS("'),Ve=p('","'),$e=p('")<\/script>'),Ue=p('function $RC(a,b){a=document.getElementById(a);b=document.getElementById(b);b.parentNode.removeChild(b);if(a){a=a.previousSibling;var f=a.parentNode,c=a.nextSibling,e=0;do{if(c&&8===c.nodeType){var d=c.data;if("/$"===d)if(0===e)break;else e--;else"$"!==d&&"$?"!==d&&"$!"!==d||e++}d=c.nextSibling;f.removeChild(c);c=d}while(c);for(;b.firstChild;)f.insertBefore(b.firstChild,c);a.data="$";a._reactRetry&&a._reactRetry()}};$RC("'),Ze=p('$RC("'),Ge=p('","'),qe=p('")<\/script>'),Ke=p('function $RX(b,c,d,e){var a=document.getElementById(b);a&&(b=a.previousSibling,b.data="$!",a=a.dataset,c&&(a.dgst=c),d&&(a.msg=d),e&&(a.stck=e),b._reactRetry&&b._reactRetry())};$RX("'),Je=p('$RX("'),Ye=p('"'),Xe=p(")<\/script>"),Qe=p(","),et=/[<\u2028\u2029]/g;function tt(e){return JSON.stringify(e).replace(et,(function(e){switch(e){case"<":return"\\u003c";case"\u2028":return"\\u2028";case"\u2029":return"\\u2029";default:throw Error("escapeJSStringsForInstructionScripts encountered a match it does not know how to replace. this means the match regex and the replacement characters are no longer in sync. This is a bug in React")}}))}var nt=Object.assign,ot=Symbol.for("react.element"),at=Symbol.for("react.portal"),rt=Symbol.for("react.fragment"),lt=Symbol.for("react.strict_mode"),it=Symbol.for("react.profiler"),st=Symbol.for("react.provider"),ct=Symbol.for("react.context"),ut=Symbol.for("react.forward_ref"),dt=Symbol.for("react.suspense"),pt=Symbol.for("react.suspense_list"),mt=Symbol.for("react.memo"),gt=Symbol.for("react.lazy"),ht=Symbol.for("react.scope"),bt=Symbol.for("react.debug_trace_mode"),ft=Symbol.for("react.legacy_hidden"),vt=Symbol.for("react.default_value"),yt=Symbol.iterator;function kt(e){if(null==e)return null;if("function"==typeof e)return e.displayName||e.name||null;if("string"==typeof e)return e;switch(e){case rt:return"Fragment";case at:return"Portal";case it:return"Profiler";case lt:return"StrictMode";case dt:return"Suspense";case pt:return"SuspenseList"}if("object"==typeof e)switch(e.$$typeof){case ct:return(e.displayName||"Context")+".Consumer";case st:return(e._context.displayName||"Context")+".Provider";case ut:var t=e.render;return(e=e.displayName)||(e=""!==(e=t.displayName||t.name||"")?"ForwardRef("+e+")":"ForwardRef"),e;case mt:return null!==(t=e.displayName||null)?t:kt(e.type)||"Memo";case gt:t=e._payload,e=e._init;try{return kt(e(t))}catch(e){}}return null}var Et={};function wt(e,t){if(!(e=e.contextTypes))return Et;var n,o={};for(n in e)o[n]=t[n];return o}var _t=null;function St(e,t){if(e!==t){e.context._currentValue=e.parentValue,e=e.parent;var n=t.parent;if(null===e){if(null!==n)throw Error(a(401))}else{if(null===n)throw Error(a(401));St(e,n)}t.context._currentValue=t.value}}function Ct(e){e.context._currentValue=e.parentValue,null!==(e=e.parent)&&Ct(e)}function xt(e){var t=e.parent;null!==t&&xt(t),e.context._currentValue=e.value}function It(e,t){if(e.context._currentValue=e.parentValue,null===(e=e.parent))throw Error(a(402));e.depth===t.depth?St(e,t):It(e,t)}function Ot(e,t){var n=t.parent;if(null===n)throw Error(a(402));e.depth===n.depth?St(e,n):Ot(e,n),t.context._currentValue=t.value}function At(e){var t=_t;t!==e&&(null===t?xt(e):null===e?Ct(t):t.depth===e.depth?St(t,e):t.depth>e.depth?It(t,e):Ot(t,e),_t=e)}var Mt={isMounted:function(){return!1},enqueueSetState:function(e,t){null!==(e=e._reactInternals).queue&&e.queue.push(t)},enqueueReplaceState:function(e,t){(e=e._reactInternals).replace=!0,e.queue=[t]},enqueueForceUpdate:function(){}};function Pt(e,t,n,o){var a=void 0!==e.state?e.state:null;e.updater=Mt,e.props=n,e.state=a;var r={queue:[],replace:!1};e._reactInternals=r;var l=t.contextType;if(e.context="object"==typeof l&&null!==l?l._currentValue:o,"function"==typeof(l=t.getDerivedStateFromProps)&&(a=null==(l=l(n,a))?a:nt({},a,l),e.state=a),"function"!=typeof t.getDerivedStateFromProps&&"function"!=typeof e.getSnapshotBeforeUpdate&&("function"==typeof e.UNSAFE_componentWillMount||"function"==typeof e.componentWillMount))if(t=e.state,"function"==typeof e.componentWillMount&&e.componentWillMount(),"function"==typeof e.UNSAFE_componentWillMount&&e.UNSAFE_componentWillMount(),t!==e.state&&Mt.enqueueReplaceState(e,e.state,null),null!==r.queue&&0<r.queue.length)if(t=r.queue,l=r.replace,r.queue=null,r.replace=!1,l&&1===t.length)e.state=t[0];else{for(r=l?t[0]:e.state,a=!0,l=l?1:0;l<t.length;l++){var i=t[l];null!=(i="function"==typeof i?i.call(e,r,n,o):i)&&(a?(a=!1,r=nt({},r,i)):nt(r,i))}e.state=r}else r.queue=null}var Tt={id:1,overflow:""};function Nt(e,t,n){var o=e.id;e=e.overflow;var a=32-Rt(o)-1;o&=~(1<<a),n+=1;var r=32-Rt(t)+a;if(30<r){var l=a-a%5;return r=(o&(1<<l)-1).toString(32),o>>=l,a-=l,{id:1<<32-Rt(t)+a|n<<a|o,overflow:r+e}}return{id:1<<r|n<<a|o,overflow:e}}var Rt=Math.clz32?Math.clz32:function(e){return 0==(e>>>=0)?32:31-(Lt(e)/Bt|0)|0},Lt=Math.log,Bt=Math.LN2,Dt="function"==typeof Object.is?Object.is:function(e,t){return e===t&&(0!==e||1/e==1/t)||e!=e&&t!=t},Ft=null,zt=null,jt=null,Ht=null,Wt=!1,Vt=!1,$t=0,Ut=null,Zt=0;function Gt(){if(null===Ft)throw Error(a(321));return Ft}function qt(){if(0<Zt)throw Error(a(312));return{memoizedState:null,queue:null,next:null}}function Kt(){return null===Ht?null===jt?(Wt=!1,jt=Ht=qt()):(Wt=!0,Ht=jt):null===Ht.next?(Wt=!1,Ht=Ht.next=qt()):(Wt=!0,Ht=Ht.next),Ht}function Jt(){zt=Ft=null,Vt=!1,jt=null,Zt=0,Ht=Ut=null}function Yt(e,t){return"function"==typeof t?t(e):t}function Xt(e,t,n){if(Ft=Gt(),Ht=Kt(),Wt){var o=Ht.queue;if(t=o.dispatch,null!==Ut&&void 0!==(n=Ut.get(o))){Ut.delete(o),o=Ht.memoizedState;do{o=e(o,n.action),n=n.next}while(null!==n);return Ht.memoizedState=o,[o,t]}return[Ht.memoizedState,t]}return e=e===Yt?"function"==typeof t?t():t:void 0!==n?n(t):t,Ht.memoizedState=e,e=(e=Ht.queue={last:null,dispatch:null}).dispatch=en.bind(null,Ft,e),[Ht.memoizedState,e]}function Qt(e,t){if(Ft=Gt(),t=void 0===t?null:t,null!==(Ht=Kt())){var n=Ht.memoizedState;if(null!==n&&null!==t){var o=n[1];e:if(null===o)o=!1;else{for(var a=0;a<o.length&&a<t.length;a++)if(!Dt(t[a],o[a])){o=!1;break e}o=!0}if(o)return n[0]}}return e=e(),Ht.memoizedState=[e,t],e}function en(e,t,n){if(25<=Zt)throw Error(a(301));if(e===Ft)if(Vt=!0,e={action:n,next:null},null===Ut&&(Ut=new Map),void 0===(n=Ut.get(t)))Ut.set(t,e);else{for(t=n;null!==t.next;)t=t.next;t.next=e}}function tn(){throw Error(a(394))}function nn(){}var on={readContext:function(e){return e._currentValue},useContext:function(e){return Gt(),e._currentValue},useMemo:Qt,useReducer:Xt,useRef:function(e){Ft=Gt();var t=(Ht=Kt()).memoizedState;return null===t?(e={current:e},Ht.memoizedState=e):t},useState:function(e){return Xt(Yt,e)},useInsertionEffect:nn,useLayoutEffect:function(){},useCallback:function(e,t){return Qt((function(){return e}),t)},useImperativeHandle:nn,useEffect:nn,useDebugValue:nn,useDeferredValue:function(e){return Gt(),e},useTransition:function(){return Gt(),[!1,tn]},useId:function(){var e=zt.treeContext,t=e.overflow;e=((e=e.id)&~(1<<32-Rt(e)-1)).toString(32)+t;var n=an;if(null===n)throw Error(a(404));return t=$t++,e=":"+n.idPrefix+"R"+e,0<t&&(e+="H"+t.toString(32)),e+":"},useMutableSource:function(e,t){return Gt(),t(e._source)},useSyncExternalStore:function(e,t,n){if(void 0===n)throw Error(a(407));return n()}},an=null,rn=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentDispatcher;function ln(e){return console.error(e),null}function sn(){}function cn(e,t,n,o,a,r,l,i){e.allPendingTasks++,null===n?e.pendingRootTasks++:n.pendingTasks++;var s={node:t,ping:function(){var t=e.pingedTasks;t.push(s),1===t.length&&Cn(e)},blockedBoundary:n,blockedSegment:o,abortSet:a,legacyContext:r,context:l,treeContext:i};return a.add(s),s}function un(e,t,n,o,a,r){return{status:0,id:-1,index:t,parentFlushed:!1,chunks:[],children:[],formatContext:o,boundary:n,lastPushedText:a,textEmbedded:r}}function dn(e,t){if(null!=(e=e.onError(t))&&"string"!=typeof e)throw Error('onError returned something with a type other than "string". onError should return a string and may return null or undefined but must not return anything else. It received something of type "'+typeof e+'" instead');return e}function pn(e,t){var n=e.onShellError;n(t),(n=e.onFatalError)(t),null!==e.destination?(e.status=2,m(e.destination,t)):(e.status=1,e.fatalError=t)}function mn(e,t,n,o,a){for(Ft={},zt=t,$t=0,e=n(o,a);Vt;)Vt=!1,$t=0,Zt+=1,Ht=null,e=n(o,a);return Jt(),e}function gn(e,t,n,o){var r=n.render(),l=o.childContextTypes;if(null!=l){var i=t.legacyContext;if("function"!=typeof n.getChildContext)o=i;else{for(var s in n=n.getChildContext())if(!(s in l))throw Error(a(108,kt(o)||"Unknown",s));o=nt({},i,n)}t.legacyContext=o,fn(e,t,r),t.legacyContext=i}else fn(e,t,r)}function hn(e,t){if(e&&e.defaultProps){for(var n in t=nt({},t),e=e.defaultProps)void 0===t[n]&&(t[n]=e[n]);return t}return t}function bn(e,t,n,r,l){if("function"==typeof n)if(n.prototype&&n.prototype.isReactComponent){l=wt(n,t.legacyContext);var i=n.contextType;Pt(i=new n(r,"object"==typeof i&&null!==i?i._currentValue:l),n,r,l),gn(e,t,i,n)}else{l=mn(e,t,n,r,i=wt(n,t.legacyContext));var s=0!==$t;if("object"==typeof l&&null!==l&&"function"==typeof l.render&&void 0===l.$$typeof)Pt(l,n,r,i),gn(e,t,l,n);else if(s){r=t.treeContext,t.treeContext=Nt(r,1,0);try{fn(e,t,l)}finally{t.treeContext=r}}else fn(e,t,l)}else{if("string"!=typeof n){switch(n){case ft:case bt:case lt:case it:case rt:case pt:return void fn(e,t,r.children);case ht:throw Error(a(343));case dt:e:{n=t.blockedBoundary,l=t.blockedSegment,i=r.fallback,r=r.children;var c={id:null,rootSegmentID:-1,parentFlushed:!1,pendingTasks:0,forceClientRender:!1,completedSegments:[],byteSize:0,fallbackAbortableTasks:s=new Set,errorDigest:null},u=un(0,l.chunks.length,c,l.formatContext,!1,!1);l.children.push(u),l.lastPushedText=!1;var p=un(0,0,null,l.formatContext,!1,!1);p.parentFlushed=!0,t.blockedBoundary=c,t.blockedSegment=p;try{if(yn(e,t,r),p.lastPushedText&&p.textEmbedded&&p.chunks.push(F),p.status=1,wn(c,p),0===c.pendingTasks)break e}catch(t){p.status=4,c.forceClientRender=!0,c.errorDigest=dn(e,t)}finally{t.blockedBoundary=n,t.blockedSegment=l}t=cn(e,i,n,u,s,t.legacyContext,t.context,t.treeContext),e.pingedTasks.push(t)}return}if("object"==typeof n&&null!==n)switch(n.$$typeof){case ut:if(r=mn(e,t,n.render,r,l),0!==$t){n=t.treeContext,t.treeContext=Nt(n,1,0);try{fn(e,t,r)}finally{t.treeContext=n}}else fn(e,t,r);return;case mt:return void bn(e,t,n=n.type,r=hn(n,r),l);case st:if(l=r.children,n=n._context,r=r.value,i=n._currentValue,n._currentValue=r,_t=r={parent:s=_t,depth:null===s?0:s.depth+1,context:n,parentValue:i,value:r},t.context=r,fn(e,t,l),null===(e=_t))throw Error(a(403));return r=e.parentValue,e.context._currentValue=r===vt?e.context._defaultValue:r,e=_t=e.parent,void(t.context=e);case ct:return void fn(e,t,r=(r=r.children)(n._currentValue));case gt:return void bn(e,t,n=(l=n._init)(n._payload),r=hn(n,r),void 0)}throw Error(a(130,null==n?n:typeof n,""))}switch(i=function(e,t,n,r,l){switch(t){case"select":e.push(ae("select"));var i=null,s=null;for(m in n)if(g.call(n,m)){var c=n[m];if(null!=c)switch(m){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;case"defaultValue":case"value":break;default:K(e,r,m,c)}}return e.push(J),X(e,s,i),i;case"option":s=l.selectedValue,e.push(ae("option"));var u=c=null,p=null,m=null;for(i in n)if(g.call(n,i)){var h=n[i];if(null!=h)switch(i){case"children":c=h;break;case"selected":p=h;break;case"dangerouslySetInnerHTML":m=h;break;case"value":u=h;default:K(e,r,i,h)}}if(null!=s)if(n=null!==u?""+u:function(e){var t="";return o.Children.forEach(e,(function(e){null!=e&&(t+=e)})),t}(c),A(s)){for(r=0;r<s.length;r++)if(""+s[r]===n){e.push(Q);break}}else""+s===n&&e.push(Q);else p&&e.push(Q);return e.push(J),X(e,m,c),c;case"textarea":for(c in e.push(ae("textarea")),m=s=i=null,n)if(g.call(n,c)&&null!=(u=n[c]))switch(c){case"children":m=u;break;case"value":i=u;break;case"defaultValue":s=u;break;case"dangerouslySetInnerHTML":throw Error(a(91));default:K(e,r,c,u)}if(null===i&&null!==s&&(i=s),e.push(J),null!=m){if(null!=i)throw Error(a(92));if(A(m)&&1<m.length)throw Error(a(93));i=""+m}return"string"==typeof i&&"\n"===i[0]&&e.push(te),null!==i&&e.push(d(x(""+i))),null;case"input":for(s in e.push(ae("input")),u=m=c=i=null,n)if(g.call(n,s)&&null!=(p=n[s]))switch(s){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,"input"));case"defaultChecked":u=p;break;case"defaultValue":c=p;break;case"checked":m=p;break;case"value":i=p;break;default:K(e,r,s,p)}return null!==m?K(e,r,"checked",m):null!==u&&K(e,r,"checked",u),null!==i?K(e,r,"value",i):null!==c&&K(e,r,"value",c),e.push(Y),null;case"menuitem":for(var b in e.push(ae("menuitem")),n)if(g.call(n,b)&&null!=(i=n[b]))switch(b){case"children":case"dangerouslySetInnerHTML":throw Error(a(400));default:K(e,r,b,i)}return e.push(J),null;case"title":for(h in e.push(ae("title")),i=null,n)if(g.call(n,h)&&null!=(s=n[h]))switch(h){case"children":i=s;break;case"dangerouslySetInnerHTML":throw Error(a(434));default:K(e,r,h,s)}return e.push(J),i;case"listing":case"pre":for(u in e.push(ae(t)),s=i=null,n)if(g.call(n,u)&&null!=(c=n[u]))switch(u){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;default:K(e,r,u,c)}if(e.push(J),null!=s){if(null!=i)throw Error(a(60));if("object"!=typeof s||!("__html"in s))throw Error(a(61));null!=(n=s.__html)&&("string"==typeof n&&0<n.length&&"\n"===n[0]?e.push(te,d(n)):e.push(d(""+n)))}return"string"==typeof i&&"\n"===i[0]&&e.push(te),i;case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":for(var f in e.push(ae(t)),n)if(g.call(n,f)&&null!=(i=n[f]))switch(f){case"children":case"dangerouslySetInnerHTML":throw Error(a(399,t));default:K(e,r,f,i)}return e.push(Y),null;case"annotation-xml":case"color-profile":case"font-face":case"font-face-src":case"font-face-uri":case"font-face-format":case"font-face-name":case"missing-glyph":return ee(e,n,t,r);case"html":return 0===l.insertionMode&&e.push(re),ee(e,n,t,r);default:if(-1===t.indexOf("-")&&"string"!=typeof n.is)return ee(e,n,t,r);for(p in e.push(ae(t)),s=i=null,n)if(g.call(n,p)&&null!=(c=n[p]))switch(p){case"children":i=c;break;case"dangerouslySetInnerHTML":s=c;break;case"style":$(e,r,c);break;case"suppressContentEditableWarning":case"suppressHydrationWarning":break;default:v(p)&&"function"!=typeof c&&"symbol"!=typeof c&&e.push(U,d(p),Z,d(x(c)),G)}return e.push(J),X(e,s,i),i}}((l=t.blockedSegment).chunks,n,r,e.responseState,l.formatContext),l.lastPushedText=!1,s=l.formatContext,l.formatContext=function(e,t,n){switch(t){case"select":return D(1,null!=n.value?n.value:n.defaultValue);case"svg":return D(2,null);case"math":return D(3,null);case"foreignObject":return D(1,null);case"table":return D(4,null);case"thead":case"tbody":case"tfoot":return D(5,null);case"colgroup":return D(7,null);case"tr":return D(6,null)}return 4<=e.insertionMode||0===e.insertionMode?D(1,null):e}(s,n,r),yn(e,t,i),l.formatContext=s,n){case"area":case"base":case"br":case"col":case"embed":case"hr":case"img":case"input":case"keygen":case"link":case"meta":case"param":case"source":case"track":case"wbr":break;default:l.chunks.push(le,d(n),ie)}l.lastPushedText=!1}}function fn(e,t,n){if(t.node=n,"object"==typeof n&&null!==n){switch(n.$$typeof){case ot:return void bn(e,t,n.type,n.props,n.ref);case at:throw Error(a(257));case gt:var o=n._init;return void fn(e,t,n=o(n._payload))}if(A(n))return void vn(e,t,n);if((o=null===n||"object"!=typeof n?null:"function"==typeof(o=yt&&n[yt]||n["@@iterator"])?o:null)&&(o=o.call(n))){if(!(n=o.next()).done){var r=[];do{r.push(n.value),n=o.next()}while(!n.done);vn(e,t,r)}return}throw e=Object.prototype.toString.call(n),Error(a(31,"[object Object]"===e?"object with keys {"+Object.keys(n).join(", ")+"}":e))}"string"==typeof n?(o=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,n,e.responseState,o.lastPushedText):"number"==typeof n&&((o=t.blockedSegment).lastPushedText=z(t.blockedSegment.chunks,""+n,e.responseState,o.lastPushedText))}function vn(e,t,n){for(var o=n.length,a=0;a<o;a++){var r=t.treeContext;t.treeContext=Nt(r,o,a);try{yn(e,t,n[a])}finally{t.treeContext=r}}}function yn(e,t,n){var o=t.blockedSegment.formatContext,a=t.legacyContext,r=t.context;try{return fn(e,t,n)}catch(s){if(Jt(),"object"!=typeof s||null===s||"function"!=typeof s.then)throw t.blockedSegment.formatContext=o,t.legacyContext=a,t.context=r,At(r),s;n=s;var l=t.blockedSegment,i=un(0,l.chunks.length,null,l.formatContext,l.lastPushedText,!0);l.children.push(i),l.lastPushedText=!1,e=cn(e,t.node,t.blockedBoundary,i,t.abortSet,t.legacyContext,t.context,t.treeContext).ping,n.then(e,e),t.blockedSegment.formatContext=o,t.legacyContext=a,t.context=r,At(r)}}function kn(e){var t=e.blockedBoundary;(e=e.blockedSegment).status=3,Sn(this,t,e)}function En(e,t,n){var o=e.blockedBoundary;e.blockedSegment.status=3,null===o?(t.allPendingTasks--,2!==t.status&&(t.status=2,null!==t.destination&&t.destination.close())):(o.pendingTasks--,o.forceClientRender||(o.forceClientRender=!0,e=void 0===n?Error(a(432)):n,o.errorDigest=t.onError(e),o.parentFlushed&&t.clientRenderedBoundaries.push(o)),o.fallbackAbortableTasks.forEach((function(e){return En(e,t,n)})),o.fallbackAbortableTasks.clear(),t.allPendingTasks--,0===t.allPendingTasks&&(o=t.onAllReady)())}function wn(e,t){if(0===t.chunks.length&&1===t.children.length&&null===t.children[0].boundary){var n=t.children[0];n.id=t.id,n.parentFlushed=!0,1===n.status&&wn(e,n)}else e.completedSegments.push(t)}function Sn(e,t,n){if(null===t){if(n.parentFlushed){if(null!==e.completedRootSegment)throw Error(a(389));e.completedRootSegment=n}e.pendingRootTasks--,0===e.pendingRootTasks&&(e.onShellError=sn,(t=e.onShellReady)())}else t.pendingTasks--,t.forceClientRender||(0===t.pendingTasks?(n.parentFlushed&&1===n.status&&wn(t,n),t.parentFlushed&&e.completedBoundaries.push(t),t.fallbackAbortableTasks.forEach(kn,e),t.fallbackAbortableTasks.clear()):n.parentFlushed&&1===n.status&&(wn(t,n),1===t.completedSegments.length&&t.parentFlushed&&e.partialBoundaries.push(t)));e.allPendingTasks--,0===e.allPendingTasks&&(e=e.onAllReady)()}function Cn(e){if(2!==e.status){var t=_t,n=rn.current;rn.current=on;var o=an;an=e.responseState;try{var a,r=e.pingedTasks;for(a=0;a<r.length;a++){var l=r[a],i=e,s=l.blockedSegment;if(0===s.status){At(l.context);try{fn(i,l,l.node),s.lastPushedText&&s.textEmbedded&&s.chunks.push(F),l.abortSet.delete(l),s.status=1,Sn(i,l.blockedBoundary,s)}catch(e){if(Jt(),"object"==typeof e&&null!==e&&"function"==typeof e.then){var c=l.ping;e.then(c,c)}else{l.abortSet.delete(l),s.status=4;var u=l.blockedBoundary,d=e,p=dn(i,d);null===u?pn(i,d):(u.pendingTasks--,u.forceClientRender||(u.forceClientRender=!0,u.errorDigest=p,u.parentFlushed&&i.clientRenderedBoundaries.push(u))),i.allPendingTasks--,0===i.allPendingTasks&&(0,i.onAllReady)()}}}}r.splice(0,a),null!==e.destination&&Pn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}finally{an=o,rn.current=n,n===on&&At(t)}}}function xn(e,t,n){switch(n.parentFlushed=!0,n.status){case 0:var o=n.id=e.nextSegmentId++;return n.lastPushedText=!1,n.textEmbedded=!1,e=e.responseState,i(t,se),i(t,e.placeholderPrefix),i(t,e=d(o.toString(16))),s(t,ce);case 1:n.status=2;var r=!0;o=n.chunks;var l=0;n=n.children;for(var c=0;c<n.length;c++){for(r=n[c];l<r.index;l++)i(t,o[l]);r=In(e,t,r)}for(;l<o.length-1;l++)i(t,o[l]);return l<o.length&&(r=s(t,o[l])),r;default:throw Error(a(390))}}function In(e,t,n){var o=n.boundary;if(null===o)return xn(e,t,n);if(o.parentFlushed=!0,o.forceClientRender)o=o.errorDigest,s(t,me),i(t,he),o&&(i(t,fe),i(t,d(x(o))),i(t,be)),s(t,ve),xn(e,t,n);else if(0<o.pendingTasks){o.rootSegmentID=e.nextSegmentId++,0<o.completedSegments.length&&e.partialBoundaries.push(o);var r=e.responseState,l=r.nextSuspenseID++;r=p(r.boundaryPrefix+l.toString(16)),o=o.id=r,ye(t,e.responseState,o),xn(e,t,n)}else if(o.byteSize>e.progressiveChunkSize)o.rootSegmentID=e.nextSegmentId++,e.completedBoundaries.push(o),ye(t,e.responseState,o.id),xn(e,t,n);else{if(s(t,ue),1!==(n=o.completedSegments).length)throw Error(a(391));In(e,t,n[0])}return s(t,ge)}function On(e,t,n){return function(e,t,n,o){switch(n.insertionMode){case 0:case 1:return i(e,ke),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Ee);case 2:return i(e,_e),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Se);case 3:return i(e,xe),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Ie);case 4:return i(e,Ae),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Me);case 5:return i(e,Te),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Ne);case 6:return i(e,Le),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,Be);case 7:return i(e,Fe),i(e,t.segmentPrefix),i(e,d(o.toString(16))),s(e,ze);default:throw Error(a(397))}}(t,e.responseState,n.formatContext,n.id),In(e,t,n),function(e,t){switch(t.insertionMode){case 0:case 1:return s(e,we);case 2:return s(e,Ce);case 3:return s(e,Oe);case 4:return s(e,Pe);case 5:return s(e,Re);case 6:return s(e,De);case 7:return s(e,je);default:throw Error(a(397))}}(t,n.formatContext)}function An(e,t,n){for(var o=n.completedSegments,r=0;r<o.length;r++)Mn(e,t,n,o[r]);if(o.length=0,e=e.responseState,o=n.id,n=n.rootSegmentID,i(t,e.startInlineScript),e.sentCompleteBoundaryFunction?i(t,Ze):(e.sentCompleteBoundaryFunction=!0,i(t,Ue)),null===o)throw Error(a(395));return n=d(n.toString(16)),i(t,o),i(t,Ge),i(t,e.segmentPrefix),i(t,n),s(t,qe)}function Mn(e,t,n,o){if(2===o.status)return!0;var r=o.id;if(-1===r){if(-1===(o.id=n.rootSegmentID))throw Error(a(392));return On(e,t,o)}return On(e,t,o),i(t,(e=e.responseState).startInlineScript),e.sentCompleteSegmentFunction?i(t,We):(e.sentCompleteSegmentFunction=!0,i(t,He)),i(t,e.segmentPrefix),i(t,r=d(r.toString(16))),i(t,Ve),i(t,e.placeholderPrefix),i(t,r),s(t,$e)}function Pn(e,t){r=new Uint8Array(512),l=0;try{var n=e.completedRootSegment;if(null!==n&&0===e.pendingRootTasks){In(e,t,n),e.completedRootSegment=null;var o=e.responseState.bootstrapChunks;for(n=0;n<o.length-1;n++)i(t,o[n]);n<o.length&&s(t,o[n])}var u,p=e.clientRenderedBoundaries;for(u=0;u<p.length;u++){var m=p[u];o=t;var g=e.responseState,h=m.id,b=m.errorDigest,f=m.errorMessage,v=m.errorComponentStack;if(i(o,g.startInlineScript),g.sentClientRenderFunction?i(o,Je):(g.sentClientRenderFunction=!0,i(o,Ke)),null===h)throw Error(a(395));if(i(o,h),i(o,Ye),(b||f||v)&&(i(o,Qe),i(o,d(tt(b||"")))),(f||v)&&(i(o,Qe),i(o,d(tt(f||"")))),v&&(i(o,Qe),i(o,d(tt(v)))),!s(o,Xe))return e.destination=null,u++,void p.splice(0,u)}p.splice(0,u);var y=e.completedBoundaries;for(u=0;u<y.length;u++)if(!An(e,t,y[u]))return e.destination=null,u++,void y.splice(0,u);y.splice(0,u),c(t),r=new Uint8Array(512),l=0;var k=e.partialBoundaries;for(u=0;u<k.length;u++){var E=k[u];e:{p=e,m=t;var w=E.completedSegments;for(g=0;g<w.length;g++)if(!Mn(p,m,E,w[g])){g++,w.splice(0,g);var _=!1;break e}w.splice(0,g),_=!0}if(!_)return e.destination=null,u++,void k.splice(0,u)}k.splice(0,u);var S=e.completedBoundaries;for(u=0;u<S.length;u++)if(!An(e,t,S[u]))return e.destination=null,u++,void S.splice(0,u);S.splice(0,u)}finally{c(t),0===e.allPendingTasks&&0===e.pingedTasks.length&&0===e.clientRenderedBoundaries.length&&0===e.completedBoundaries.length&&t.close()}}function Tn(e,t){try{var n=e.abortableTasks;n.forEach((function(n){return En(n,e,t)})),n.clear(),null!==e.destination&&Pn(e,e.destination)}catch(t){dn(e,t),pn(e,t)}}t.renderToReadableStream=function(e,t){return new Promise((function(n,o){var a,r,l=new Promise((function(e,t){r=e,a=t})),i=function(e,t,n,o,a,r,l,i,s){var c=[],u=new Set;return(n=un(t={destination:null,responseState:t,progressiveChunkSize:void 0===o?12800:o,status:0,fatalError:null,nextSegmentId:0,allPendingTasks:0,pendingRootTasks:0,completedRootSegment:null,abortableTasks:u,pingedTasks:c,clientRenderedBoundaries:[],completedBoundaries:[],partialBoundaries:[],onError:void 0===a?ln:a,onAllReady:void 0===r?sn:r,onShellReady:void 0===l?sn:l,onShellError:void 0===i?sn:i,onFatalError:void 0===s?sn:s},0,null,n,!1,!1)).parentFlushed=!0,e=cn(t,e,null,n,u,Et,null,Tt),c.push(e),t}(e,function(e,t,n,o,a){e=void 0===e?"":e,t=void 0===t?M:p('<script nonce="'+x(t)+'">');var r=[];if(void 0!==n&&r.push(t,d((""+n).replace(L,B)),P),void 0!==o)for(n=0;n<o.length;n++)r.push(T,d(x(o[n])),R);if(void 0!==a)for(o=0;o<a.length;o++)r.push(N,d(x(a[o])),R);return{bootstrapChunks:r,startInlineScript:t,placeholderPrefix:p(e+"P:"),segmentPrefix:p(e+"S:"),boundaryPrefix:e+"B:",idPrefix:e,nextSuspenseID:0,sentCompleteSegmentFunction:!1,sentCompleteBoundaryFunction:!1,sentClientRenderFunction:!1}}(t?t.identifierPrefix:void 0,t?t.nonce:void 0,t?t.bootstrapScriptContent:void 0,t?t.bootstrapScripts:void 0,t?t.bootstrapModules:void 0),function(e){return D("http://www.w3.org/2000/svg"===e?2:"http://www.w3.org/1998/Math/MathML"===e?3:0,null)}(t?t.namespaceURI:void 0),t?t.progressiveChunkSize:void 0,t?t.onError:void 0,r,(function(){var e=new ReadableStream({type:"bytes",pull:function(e){if(1===i.status)i.status=2,m(e,i.fatalError);else if(2!==i.status&&null===i.destination){i.destination=e;try{Pn(i,e)}catch(e){dn(i,e),pn(i,e)}}},cancel:function(){Tn(i)}},{highWaterMark:0});e.allReady=l,n(e)}),(function(e){l.catch((function(){})),o(e)}),a);if(t&&t.signal){var s=t.signal,c=function(){Tn(i,s.reason),s.removeEventListener("abort",c)};s.addEventListener("abort",c)}Cn(i)}))},t.version="18.2.0"},5848:(e,t,n)=>{"use strict";var o,a;o=n(7633),a=n(2911),o.version,t.F0=o.renderToString,o.renderToStaticMarkup,o.renderToNodeStream,o.renderToStaticNodeStream,a.renderToReadableStream},1528:(e,t,n)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),a=n(1609),r=i(a),l=i(n(5556));function i(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.scrollListener=n.scrollListener.bind(n),n.eventListenerOptions=n.eventListenerOptions.bind(n),n.mousewheelListener=n.mousewheelListener.bind(n),n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),o(t,[{key:"componentDidMount",value:function(){this.pageLoaded=this.props.pageStart,this.options=this.eventListenerOptions(),this.attachScrollListener()}},{key:"componentDidUpdate",value:function(){if(this.props.isReverse&&this.loadMore){var e=this.getParentElement(this.scrollComponent);e.scrollTop=e.scrollHeight-this.beforeScrollHeight+this.beforeScrollTop,this.loadMore=!1}this.attachScrollListener()}},{key:"componentWillUnmount",value:function(){this.detachScrollListener(),this.detachMousewheelListener()}},{key:"isPassiveSupported",value:function(){var e=!1,t={get passive(){e=!0}};try{document.addEventListener("test",null,t),document.removeEventListener("test",null,t)}catch(e){}return e}},{key:"eventListenerOptions",value:function(){return this.props.useCapture,this.isPassiveSupported()?{useCapture:this.props.useCapture,passive:!0}:{passive:!1}}},{key:"setDefaultLoader",value:function(e){this.defaultLoader=e}},{key:"detachMousewheelListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.scrollComponent.parentNode),e.removeEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture)}},{key:"detachScrollListener",value:function(){var e=window;!1===this.props.useWindow&&(e=this.getParentElement(this.scrollComponent)),e.removeEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),e.removeEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture)}},{key:"getParentElement",value:function(e){var t=this.props.getScrollParent&&this.props.getScrollParent();return null!=t?t:e&&e.parentNode}},{key:"filterProps",value:function(e){return e}},{key:"attachScrollListener",value:function(){var e=this.getParentElement(this.scrollComponent);if(this.props.hasMore&&e){var t=window;!1===this.props.useWindow&&(t=e),t.addEventListener("mousewheel",this.mousewheelListener,this.options?this.options:this.props.useCapture),t.addEventListener("scroll",this.scrollListener,this.options?this.options:this.props.useCapture),t.addEventListener("resize",this.scrollListener,this.options?this.options:this.props.useCapture),this.props.initialLoad&&this.scrollListener()}}},{key:"mousewheelListener",value:function(e){1!==e.deltaY||this.isPassiveSupported()||e.preventDefault()}},{key:"scrollListener",value:function(){var e=this.scrollComponent,t=window,n=this.getParentElement(e),o=void 0;if(this.props.useWindow){var a=document.documentElement||document.body.parentNode||document.body,r=void 0!==t.pageYOffset?t.pageYOffset:a.scrollTop;o=this.props.isReverse?r:this.calculateOffset(e,r)}else o=this.props.isReverse?n.scrollTop:e.scrollHeight-n.scrollTop-n.clientHeight;o<Number(this.props.threshold)&&e&&null!==e.offsetParent&&(this.detachScrollListener(),this.beforeScrollHeight=n.scrollHeight,this.beforeScrollTop=n.scrollTop,"function"==typeof this.props.loadMore&&(this.props.loadMore(this.pageLoaded+=1),this.loadMore=!0))}},{key:"calculateOffset",value:function(e,t){return e?this.calculateTopPosition(e)+(e.offsetHeight-t-window.innerHeight):0}},{key:"calculateTopPosition",value:function(e){return e?e.offsetTop+this.calculateTopPosition(e.offsetParent):0}},{key:"render",value:function(){var e=this,t=this.filterProps(this.props),n=t.children,o=t.element,a=t.hasMore,l=(t.initialLoad,t.isReverse),i=t.loader,s=(t.loadMore,t.pageStart,t.ref),c=(t.threshold,t.useCapture,t.useWindow,t.getScrollParent,function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(t,["children","element","hasMore","initialLoad","isReverse","loader","loadMore","pageStart","ref","threshold","useCapture","useWindow","getScrollParent"]));c.ref=function(t){e.scrollComponent=t,s&&s(t)};var u=[n];return a&&(i?l?u.unshift(i):u.push(i):this.defaultLoader&&(l?u.unshift(this.defaultLoader):u.push(this.defaultLoader))),r.default.createElement(o,c,u)}}]),t}(a.Component);s.propTypes={children:l.default.node.isRequired,element:l.default.node,hasMore:l.default.bool,initialLoad:l.default.bool,isReverse:l.default.bool,loader:l.default.node,loadMore:l.default.func.isRequired,pageStart:l.default.number,ref:l.default.func,getScrollParent:l.default.func,threshold:l.default.number,useCapture:l.default.bool,useWindow:l.default.bool},s.defaultProps={element:"div",hasMore:!1,initialLoad:!0,pageStart:0,ref:null,threshold:250,useWindow:!0,isReverse:!1,useCapture:!1,loader:null,getScrollParent:null},t.default=s,e.exports=t.default},9039:(e,t,n)=>{e.exports=n(1528)},1345:(e,t,n)=>{"use strict";function o(){var e=this.constructor.getDerivedStateFromProps(this.props,this.state);null!=e&&this.setState(e)}function a(e){this.setState(function(t){var n=this.constructor.getDerivedStateFromProps(e,t);return null!=n?n:null}.bind(this))}function r(e,t){try{var n=this.props,o=this.state;this.props=e,this.state=t,this.__reactInternalSnapshotFlag=!0,this.__reactInternalSnapshot=this.getSnapshotBeforeUpdate(n,o)}finally{this.props=n,this.state=o}}function l(e){var t=e.prototype;if(!t||!t.isReactComponent)throw new Error("Can only polyfill class components");if("function"!=typeof e.getDerivedStateFromProps&&"function"!=typeof t.getSnapshotBeforeUpdate)return e;var n=null,l=null,i=null;if("function"==typeof t.componentWillMount?n="componentWillMount":"function"==typeof t.UNSAFE_componentWillMount&&(n="UNSAFE_componentWillMount"),"function"==typeof t.componentWillReceiveProps?l="componentWillReceiveProps":"function"==typeof t.UNSAFE_componentWillReceiveProps&&(l="UNSAFE_componentWillReceiveProps"),"function"==typeof t.componentWillUpdate?i="componentWillUpdate":"function"==typeof t.UNSAFE_componentWillUpdate&&(i="UNSAFE_componentWillUpdate"),null!==n||null!==l||null!==i){var s=e.displayName||e.name,c="function"==typeof e.getDerivedStateFromProps?"getDerivedStateFromProps()":"getSnapshotBeforeUpdate()";throw Error("Unsafe legacy lifecycles will not be called for components using new component APIs.\n\n"+s+" uses "+c+" but also contains the following legacy lifecycles:"+(null!==n?"\n  "+n:"")+(null!==l?"\n  "+l:"")+(null!==i?"\n  "+i:"")+"\n\nThe above lifecycles should be removed. Learn more about this warning here:\nhttps://fb.me/react-async-component-lifecycle-hooks")}if("function"==typeof e.getDerivedStateFromProps&&(t.componentWillMount=o,t.componentWillReceiveProps=a),"function"==typeof t.getSnapshotBeforeUpdate){if("function"!=typeof t.componentDidUpdate)throw new Error("Cannot polyfill getSnapshotBeforeUpdate() for components that do not define componentDidUpdate() on the prototype");t.componentWillUpdate=r;var u=t.componentDidUpdate;t.componentDidUpdate=function(e,t,n){var o=this.__reactInternalSnapshotFlag?this.__reactInternalSnapshot:n;u.call(this,e,t,o)}}return e}n.r(t),n.d(t,{polyfill:()=>l}),o.__suppressDeprecationWarning=!0,a.__suppressDeprecationWarning=!0,r.__suppressDeprecationWarning=!0},8006:(e,t,n)=>{"use strict";var o=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},a=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),r=n(1609),l=s(r),i=s(n(5556));function s(e){return e&&e.__esModule?e:{default:e}}var c={position:"absolute",top:0,left:0,visibility:"hidden",height:0,overflow:"scroll",whiteSpace:"pre"},u=["extraWidth","injectStyles","inputClassName","inputRef","inputStyle","minWidth","onAutosize","placeholderIsMinWidth"],d=function(e,t){t.style.fontSize=e.fontSize,t.style.fontFamily=e.fontFamily,t.style.fontWeight=e.fontWeight,t.style.fontStyle=e.fontStyle,t.style.letterSpacing=e.letterSpacing,t.style.textTransform=e.textTransform},p=!("undefined"==typeof window||!window.navigator)&&/MSIE |Trident\/|Edge\//.test(window.navigator.userAgent),m=function(){return p?"_"+Math.random().toString(36).substr(2,12):void 0},g=function(e){function t(e){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var n=function(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return n.inputRef=function(e){n.input=e,"function"==typeof n.props.inputRef&&n.props.inputRef(e)},n.placeHolderSizerRef=function(e){n.placeHolderSizer=e},n.sizerRef=function(e){n.sizer=e},n.state={inputWidth:e.minWidth,inputId:e.id||m()},n}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),a(t,[{key:"componentDidMount",value:function(){this.mounted=!0,this.copyInputStyles(),this.updateInputWidth()}},{key:"UNSAFE_componentWillReceiveProps",value:function(e){var t=e.id;t!==this.props.id&&this.setState({inputId:t||m()})}},{key:"componentDidUpdate",value:function(e,t){t.inputWidth!==this.state.inputWidth&&"function"==typeof this.props.onAutosize&&this.props.onAutosize(this.state.inputWidth),this.updateInputWidth()}},{key:"componentWillUnmount",value:function(){this.mounted=!1}},{key:"copyInputStyles",value:function(){if(this.mounted&&window.getComputedStyle){var e=this.input&&window.getComputedStyle(this.input);e&&(d(e,this.sizer),this.placeHolderSizer&&d(e,this.placeHolderSizer))}}},{key:"updateInputWidth",value:function(){if(this.mounted&&this.sizer&&void 0!==this.sizer.scrollWidth){var e=void 0;e=this.props.placeholder&&(!this.props.value||this.props.value&&this.props.placeholderIsMinWidth)?Math.max(this.sizer.scrollWidth,this.placeHolderSizer.scrollWidth)+2:this.sizer.scrollWidth+2,(e+="number"===this.props.type&&void 0===this.props.extraWidth?16:parseInt(this.props.extraWidth)||0)<this.props.minWidth&&(e=this.props.minWidth),e!==this.state.inputWidth&&this.setState({inputWidth:e})}}},{key:"getInput",value:function(){return this.input}},{key:"focus",value:function(){this.input.focus()}},{key:"blur",value:function(){this.input.blur()}},{key:"select",value:function(){this.input.select()}},{key:"renderStyles",value:function(){var e=this.props.injectStyles;return p&&e?l.default.createElement("style",{dangerouslySetInnerHTML:{__html:"input#"+this.state.inputId+"::-ms-clear {display: none;}"}}):null}},{key:"render",value:function(){var e=[this.props.defaultValue,this.props.value,""].reduce((function(e,t){return null!=e?e:t})),t=o({},this.props.style);t.display||(t.display="inline-block");var n=o({boxSizing:"content-box",width:this.state.inputWidth+"px"},this.props.inputStyle),a=function(e,t){var n={};for(var o in e)t.indexOf(o)>=0||Object.prototype.hasOwnProperty.call(e,o)&&(n[o]=e[o]);return n}(this.props,[]);return function(e){u.forEach((function(t){return delete e[t]}))}(a),a.className=this.props.inputClassName,a.id=this.state.inputId,a.style=n,l.default.createElement("div",{className:this.props.className,style:t},this.renderStyles(),l.default.createElement("input",o({},a,{ref:this.inputRef})),l.default.createElement("div",{ref:this.sizerRef,style:c},e),this.props.placeholder?l.default.createElement("div",{ref:this.placeHolderSizerRef,style:c},this.props.placeholder):null)}}]),t}(r.Component);g.propTypes={className:i.default.string,defaultValue:i.default.any,extraWidth:i.default.oneOfType([i.default.number,i.default.string]),id:i.default.string,injectStyles:i.default.bool,inputClassName:i.default.string,inputRef:i.default.func,inputStyle:i.default.object,minWidth:i.default.oneOfType([i.default.number,i.default.string]),onAutosize:i.default.func,onChange:i.default.func,placeholder:i.default.string,placeholderIsMinWidth:i.default.bool,style:i.default.object,value:i.default.any},g.defaultProps={minWidth:1,injectStyles:!0},t.A=g},220:(e,t,n)=>{"use strict";var o=n(6305),a=n(4994);t.A=void 0;var r=a(n(4634)),l=a(n(6305)),i=o(n(1609)),s=a(n(9893)),c=n(4848);function u(){}i.default.createElement;var d={contain:"react-Slidy--contain",cover:"react-Slidy--cover",fullHeight:"react-Slidy--fullHeight",fullWidth:"react-Slidy--fullWidth"};t.A=function(e){var t=e.ArrowLeft,o=e.ArrowRight,a=e.children,p=e.classNameBase,m=void 0===p?"react-Slidy":p,g=e.doAfterDestroy,h=void 0===g?u:g,b=e.doAfterInit,f=void 0===b?u:b,v=e.doAfterSlide,y=void 0===v?u:v,k=e.doBeforeSlide,E=void 0===k?u:k,w=e.imageObjectFit,_=e.infiniteLoop,S=void 0!==_&&_,C=e.itemsToPreload,x=void 0===C?1:C,I=e.initialSlide,O=void 0===I?0:I,A=e.ease,M=void 0===A?"ease":A,P=e.lazyLoadSlider,T=void 0===P||P,N=e.lazyLoadConfig,R=void 0===N?{offset:150}:N,L=e.keyboardNavigation,B=void 0!==L&&L,D=e.numOfSlides,F=void 0===D?1:D,z=e.sanitize,j=void 0===z||z,H=e.slide,W=void 0===H?0:H,V=e.slideSpeed,$=void 0===V?500:V,U=e.showArrows,Z=void 0===U||U,G=e.useFullHeight,q=void 0!==G&&G,K=e.useFullWidth,J=void 0===K||K,Y=(0,i.useState)(!T),X=Y[0],Q=Y[1],ee=(0,i.useRef)(null);(0,i.useEffect)((function(){var e;if(T){var t=function(){var t=R.offset,n=void 0===t?0:t;(e=new window.IntersectionObserver(te,{rootMargin:n+"px 0px 0px"})).observe(ee.current)};"IntersectionObserver"in window?t():Promise.resolve().then((function(){return(0,l.default)(n(5127))})).then(t)}return function(){return e&&e.disconnect()}}),[]);var te=function(e,t){var n=e[0];(n.isIntersecting||n.intersectionRatio>0)&&(t.unobserve(n.target),Q(!0))},ne=Math.min(F,i.default.Children.count(a)),oe=[m,q&&d.fullHeight,J&&d.fullWidth,w&&d[w]].filter(Boolean).join(" "),ae={ArrowLeft:t,ArrowRight:o,children:a,classNameBase:m,doAfterDestroy:h,doAfterInit:f,doAfterSlide:y,doBeforeSlide:E,ease:M,infiniteLoop:S,initialSlide:O,itemsToPreload:x,keyboardNavigation:B,numOfSlides:F,showArrows:Z,slide:W,slideSpeed:$};return(0,c.jsx)("div",{className:oe,ref:ee,children:X&&(0,c.jsx)(s.default,(0,r.default)({},ae,{numOfSlides:j?ne:F,children:a}))})}},9893:(e,t,n)=>{"use strict";var o=n(6305),a=n(4994);Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t=e.ArrowLeft,n=e.ArrowRight,o=e.children,a=e.classNameBase,d=e.doAfterDestroy,p=e.doAfterInit,m=e.doAfterSlide,g=e.doBeforeSlide,h=e.ease,b=e.infiniteLoop,f=e.initialSlide,v=e.itemsToPreload,y=e.keyboardNavigation,k=e.numOfSlides,E=e.showArrows,w=e.slide,_=e.slideSpeed,S=(0,l.useState)({goTo:c,next:c,prev:c,updateItems:c}),C=S[0],x=S[1],I=(0,l.useState)(f),O=I[0],A=I[1],M=(0,l.useState)(f),P=M[0],T=M[1],N=(0,l.useRef)(null),R=(0,l.useRef)(null),L=function(e){return Array.isArray(e)?e:[e]}(o);(0,l.useEffect)((function(){w!==O&&C.goTo(w)}),[w]),(0,l.useEffect)((function(){var e,t=(0,i.default)(N.current,{ease:h,doAfterSlide:m,doBeforeSlide:g,numOfSlides:k,slideSpeed:_,infiniteLoop:b,slidesDOMEl:R.current,initialSlide:O,items:L.length,onNext:function(e){return A(e),e>P&&T(e),e},onPrev:function(e){return A(e),e}});return x(t),p(),y&&(e=function(e){39===e.keyCode?t.next(e):37===e.keyCode&&t.prev(e)},document.addEventListener("keydown",e)),function(){!function(e,t){e&&e.clean()&&e.destroy(),t()}(t,d),y&&document.removeEventListener("keydown",e)}}),[]),(0,l.useEffect)((function(){C&&C.updateItems(L.length)}));var B,D,F=function(e){var t=e.index,n=e.maxIndex,o=e.items,a=e.itemsToPreload,r=e.numOfSlides,l=Math.max(a,r);if(t>=o.length-r){var i=o.length>r?o.slice(0,r-1):[];return[].concat(o.slice(0,n+l),i)}return o.slice(0,n+l)}({index:O,maxIndex:P,items:L,itemsToPreload:v,numOfSlides:k}),z=function(e){return L.length>k&&C.next(e)};return(0,s.jsxs)(s.Fragment,{children:[E&&(0,s.jsxs)(s.Fragment,{children:[(B={disabled:0===O&&!b,onClick:function(e){return C.prev(e)}},D=a+"-arrow "+a+"-arrowLeft",t?(0,s.jsx)(t,(0,r.default)({},B,{className:D})):(0,s.jsx)("span",(0,r.default)({"aria-label":"Previous",className:D+" "+a+"-prev",role:"button"},B))),function(){var e={disabled:(L.length<=k||O===L.length-1)&&!b,onClick:z},t=a+"-arrow "+a+"-arrowRight";return n?(0,s.jsx)(n,(0,r.default)({},e,{className:t})):(0,s.jsx)("span",(0,r.default)({"aria-label":"Next",className:t+" "+a+"-next",role:"button"},e))}()]}),(0,s.jsx)("div",{ref:N,children:(0,s.jsx)("ul",{ref:R,children:F.map(u(k))})})]})};var r=a(n(4634)),l=o(n(1609)),i=a(n(7529)),s=n(4848);function c(e){}l.default.createElement;var u=function(e){return function(t,n){var o=1!==e?{width:100/e+"%"}:{};return(0,s.jsx)("li",{style:o,children:t},n)}}},7529:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.translate=i,t.infiniteIndex=s,t.clampNumber=c,t.default=function(e,t){var d=t.doAfterSlide,p=t.doBeforeSlide,m=t.ease,g=t.infiniteLoop,h=t.initialSlide,b=t.numOfSlides,f=t.onNext,v=t.onPrev,y=t.slidesDOMEl,k=t.slideSpeed,E=t.items;if(null!==e){var w=h,_=!1,S=!1,C=0,x=0,I=0,O=0;return y.addEventListener(a,P),e.addEventListener("touchstart",T,l),e.addEventListener("touchmove",N,l),e.addEventListener("touchend",R,l),0!==w&&A(0),{clean:function(){return function(e){for(;e.childElementCount>1;)null!==e&&e.removeChild(e.lastChild);return!0}(y)},destroy:function(){e.removeEventListener("touchstart",T,l),e.removeEventListener("touchmove",N,l),e.removeEventListener("touchend",R,l),y.removeEventListener(a,P)},goTo:L,next:function(e){e.preventDefault(),e.stopPropagation(),M(!0)},prev:function(e){e.preventDefault(),e.stopPropagation(),M(!1)},slide:M,updateItems:function(e){E=e}}}function A(e,t,n){void 0===t&&(t=""),void 0===n&&(n=0);var o=100/b;y.style.cssText=function(e,t,n,o,a){return""+(""!==t?"transition-timing-function: "+t+";":"")+(e?"transition-duration: "+e+"ms;":"")+"transform: "+i(n,o,a)+";"}(e,t,w,n,o)}function M(e){var t=w+1*(!0===e?1:-1);g&&(t=s(t,E)),L(t=c(t,0,E-1))}function P(){!0===S&&(A(0),S=!1)}function T(e){var t=u(e);_=void 0,I=t.pageX,O=t.pageY}function N(e){if(!(e.touches.length>1||e.scale&&1!==e.scale)){var t=u(e);C=t.pageX-I,x=t.pageY-O,void 0!==_?_||(e.preventDefault(),A(0,n,-1*C)):(_=r(C)<r(x))||(document.ontouchmove=function(e){return e.preventDefault()})}}function R(){if(document.ontouchmove=function(){return!0},!_){var e=r(C)>o,t=C<0;!0===e&&!1==(!1===t&&0===w||!0===t&&w===E-1)?M(t):A(k,n)}C=x=I=O=0}function L(e){e!==w&&(e<=E&&(p({currentSlide:w,nextSlide:e}),e>w?f(e):v(e),w=e),A(k,m),y.addEventListener(a,(function e(t){d({currentSlide:w}),t.currentTarget.removeEventListener(t.type,e)})))}};var n="linear",o=50,a="transitionend",r=Math.abs,l={passive:!1};function i(e,t,n){void 0===n&&(n=100);var o=e*n*-1;return"translate3d("+(t?"calc("+o+"% - "+t+"px)":o+"%")+", 0, 0)"}function s(e,t){return e<0?t-1:e>=t?0:e}function c(e,t,n){return Math.min(Math.max(e,t),n)}function u(e){return e.targetTouches?e.targetTouches[0]:e.touches[0]}},8514:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0,function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}t.default=e}(n(5556));var o=i(n(2963)),a=i(n(788)),r=i(n(1609)),l=i(n(495));function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}n(554);var c=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,o.default)(e,t)}))},u=function(e,t){return e&&t&&t.split(" ").forEach((function(t){return(0,a.default)(e,t)}))},d=function(e){var t,n;function o(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).onEnter=function(e,n){var o=t.getClassNames(n?"appear":"enter").className;t.removeClasses(e,"exit"),c(e,o),t.props.onEnter&&t.props.onEnter(e,n)},t.onEntering=function(e,n){var o=t.getClassNames(n?"appear":"enter").activeClassName;t.reflowAndAddClass(e,o),t.props.onEntering&&t.props.onEntering(e,n)},t.onEntered=function(e,n){var o=t.getClassNames("appear").doneClassName,a=t.getClassNames("enter").doneClassName,r=n?o+" "+a:a;t.removeClasses(e,n?"appear":"enter"),c(e,r),t.props.onEntered&&t.props.onEntered(e,n)},t.onExit=function(e){var n=t.getClassNames("exit").className;t.removeClasses(e,"appear"),t.removeClasses(e,"enter"),c(e,n),t.props.onExit&&t.props.onExit(e)},t.onExiting=function(e){var n=t.getClassNames("exit").activeClassName;t.reflowAndAddClass(e,n),t.props.onExiting&&t.props.onExiting(e)},t.onExited=function(e){var n=t.getClassNames("exit").doneClassName;t.removeClasses(e,"exit"),c(e,n),t.props.onExited&&t.props.onExited(e)},t.getClassNames=function(e){var n=t.props.classNames,o="string"==typeof n,a=o?(o&&n?n+"-":"")+e:n[e];return{className:a,activeClassName:o?a+"-active":n[e+"Active"],doneClassName:o?a+"-done":n[e+"Done"]}},t}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var a=o.prototype;return a.removeClasses=function(e,t){var n=this.getClassNames(t),o=n.className,a=n.activeClassName,r=n.doneClassName;o&&u(e,o),a&&u(e,a),r&&u(e,r)},a.reflowAndAddClass=function(e,t){t&&(e&&e.scrollTop,c(e,t))},a.render=function(){var e=s({},this.props);return delete e.classNames,r.default.createElement(l.default,s({},e,{onEnter:this.onEnter,onEntered:this.onEntered,onEntering:this.onEntering,onExit:this.onExit,onExiting:this.onExiting,onExited:this.onExited}))},o}(r.default.Component);d.defaultProps={classNames:""},d.propTypes={};var p=d;t.default=p,e.exports=t.default},1369:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0,l(n(5556));var o=l(n(1609)),a=n(5795),r=l(n(2312));function l(e){return e&&e.__esModule?e:{default:e}}var i=function(e){var t,n;function l(){for(var t,n=arguments.length,o=new Array(n),a=0;a<n;a++)o[a]=arguments[a];return(t=e.call.apply(e,[this].concat(o))||this).handleEnter=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEnter",0,n)},t.handleEntering=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntering",0,n)},t.handleEntered=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onEntered",0,n)},t.handleExit=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExit",1,n)},t.handleExiting=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExiting",1,n)},t.handleExited=function(){for(var e=arguments.length,n=new Array(e),o=0;o<e;o++)n[o]=arguments[o];return t.handleLifecycle("onExited",1,n)},t}n=e,(t=l).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var i=l.prototype;return i.handleLifecycle=function(e,t,n){var r,l=this.props.children,i=o.default.Children.toArray(l)[t];i.props[e]&&(r=i.props)[e].apply(r,n),this.props[e]&&this.props[e]((0,a.findDOMNode)(this))},i.render=function(){var e=this.props,t=e.children,n=e.in,a=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["children","in"]),l=o.default.Children.toArray(t),i=l[0],s=l[1];return delete a.onEnter,delete a.onEntering,delete a.onEntered,delete a.onExit,delete a.onExiting,delete a.onExited,o.default.createElement(r.default,a,n?o.default.cloneElement(i,{key:"first",onEnter:this.handleEnter,onEntering:this.handleEntering,onEntered:this.handleEntered}):o.default.cloneElement(s,{key:"second",onEnter:this.handleExit,onEntering:this.handleExiting,onEntered:this.handleExited}))},l}(o.default.Component);i.propTypes={};var s=i;t.default=s,e.exports=t.default},495:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=t.EXITING=t.ENTERED=t.ENTERING=t.EXITED=t.UNMOUNTED=void 0;var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)if(Object.prototype.hasOwnProperty.call(e,n)){var o=Object.defineProperty&&Object.getOwnPropertyDescriptor?Object.getOwnPropertyDescriptor(e,n):{};o.get||o.set?Object.defineProperty(t,n,o):t[n]=e[n]}return t.default=e,t}(n(5556)),a=i(n(1609)),r=i(n(5795)),l=n(1345);function i(e){return e&&e.__esModule?e:{default:e}}n(554);var s="unmounted";t.UNMOUNTED=s;var c="exited";t.EXITED=c;var u="entering";t.ENTERING=u;var d="entered";t.ENTERED=d;var p="exiting";t.EXITING=p;var m=function(e){var t,n;function o(t,n){var o;o=e.call(this,t,n)||this;var a,r=n.transitionGroup,l=r&&!r.isMounting?t.enter:t.appear;return o.appearStatus=null,t.in?l?(a=c,o.appearStatus=u):a=d:a=t.unmountOnExit||t.mountOnEnter?s:c,o.state={status:a},o.nextCallback=null,o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var l=o.prototype;return l.getChildContext=function(){return{transitionGroup:null}},o.getDerivedStateFromProps=function(e,t){return e.in&&t.status===s?{status:c}:null},l.componentDidMount=function(){this.updateStatus(!0,this.appearStatus)},l.componentDidUpdate=function(e){var t=null;if(e!==this.props){var n=this.state.status;this.props.in?n!==u&&n!==d&&(t=u):n!==u&&n!==d||(t=p)}this.updateStatus(!1,t)},l.componentWillUnmount=function(){this.cancelNextCallback()},l.getTimeouts=function(){var e,t,n,o=this.props.timeout;return e=t=n=o,null!=o&&"number"!=typeof o&&(e=o.exit,t=o.enter,n=void 0!==o.appear?o.appear:t),{exit:e,enter:t,appear:n}},l.updateStatus=function(e,t){if(void 0===e&&(e=!1),null!==t){this.cancelNextCallback();var n=r.default.findDOMNode(this);t===u?this.performEnter(n,e):this.performExit(n)}else this.props.unmountOnExit&&this.state.status===c&&this.setState({status:s})},l.performEnter=function(e,t){var n=this,o=this.props.enter,a=this.context.transitionGroup?this.context.transitionGroup.isMounting:t,r=this.getTimeouts(),l=a?r.appear:r.enter;t||o?(this.props.onEnter(e,a),this.safeSetState({status:u},(function(){n.props.onEntering(e,a),n.onTransitionEnd(e,l,(function(){n.safeSetState({status:d},(function(){n.props.onEntered(e,a)}))}))}))):this.safeSetState({status:d},(function(){n.props.onEntered(e)}))},l.performExit=function(e){var t=this,n=this.props.exit,o=this.getTimeouts();n?(this.props.onExit(e),this.safeSetState({status:p},(function(){t.props.onExiting(e),t.onTransitionEnd(e,o.exit,(function(){t.safeSetState({status:c},(function(){t.props.onExited(e)}))}))}))):this.safeSetState({status:c},(function(){t.props.onExited(e)}))},l.cancelNextCallback=function(){null!==this.nextCallback&&(this.nextCallback.cancel(),this.nextCallback=null)},l.safeSetState=function(e,t){t=this.setNextCallback(t),this.setState(e,t)},l.setNextCallback=function(e){var t=this,n=!0;return this.nextCallback=function(o){n&&(n=!1,t.nextCallback=null,e(o))},this.nextCallback.cancel=function(){n=!1},this.nextCallback},l.onTransitionEnd=function(e,t,n){this.setNextCallback(n);var o=null==t&&!this.props.addEndListener;e&&!o?(this.props.addEndListener&&this.props.addEndListener(e,this.nextCallback),null!=t&&setTimeout(this.nextCallback,t)):setTimeout(this.nextCallback,0)},l.render=function(){var e=this.state.status;if(e===s)return null;var t=this.props,n=t.children,o=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(t,["children"]);if(delete o.in,delete o.mountOnEnter,delete o.unmountOnExit,delete o.appear,delete o.enter,delete o.exit,delete o.timeout,delete o.addEndListener,delete o.onEnter,delete o.onEntering,delete o.onEntered,delete o.onExit,delete o.onExiting,delete o.onExited,"function"==typeof n)return n(e,o);var r=a.default.Children.only(n);return a.default.cloneElement(r,o)},o}(a.default.Component);function g(){}m.contextTypes={transitionGroup:o.object},m.childContextTypes={transitionGroup:function(){}},m.propTypes={},m.defaultProps={in:!1,mountOnEnter:!1,unmountOnExit:!1,appear:!1,enter:!0,exit:!0,onEnter:g,onEntering:g,onEntered:g,onExit:g,onExiting:g,onExited:g},m.UNMOUNTED=0,m.EXITED=1,m.ENTERING=2,m.ENTERED=3,m.EXITING=4;var h=(0,l.polyfill)(m);t.default=h},2312:(e,t,n)=>{"use strict";t.__esModule=!0,t.default=void 0;var o=i(n(5556)),a=i(n(1609)),r=n(1345),l=n(2958);function i(e){return e&&e.__esModule?e:{default:e}}function s(){return s=Object.assign||function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},s.apply(this,arguments)}function c(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}var u=Object.values||function(e){return Object.keys(e).map((function(t){return e[t]}))},d=function(e){var t,n;function o(t,n){var o,a=(o=e.call(this,t,n)||this).handleExited.bind(c(c(o)));return o.state={handleExited:a,firstRender:!0},o}n=e,(t=o).prototype=Object.create(n.prototype),t.prototype.constructor=t,t.__proto__=n;var r=o.prototype;return r.getChildContext=function(){return{transitionGroup:{isMounting:!this.appeared}}},r.componentDidMount=function(){this.appeared=!0,this.mounted=!0},r.componentWillUnmount=function(){this.mounted=!1},o.getDerivedStateFromProps=function(e,t){var n=t.children,o=t.handleExited;return{children:t.firstRender?(0,l.getInitialChildMapping)(e,o):(0,l.getNextChildMapping)(e,n,o),firstRender:!1}},r.handleExited=function(e,t){var n=(0,l.getChildMapping)(this.props.children);e.key in n||(e.props.onExited&&e.props.onExited(t),this.mounted&&this.setState((function(t){var n=s({},t.children);return delete n[e.key],{children:n}})))},r.render=function(){var e=this.props,t=e.component,n=e.childFactory,o=function(e,t){if(null==e)return{};var n,o,a={},r=Object.keys(e);for(o=0;o<r.length;o++)n=r[o],t.indexOf(n)>=0||(a[n]=e[n]);return a}(e,["component","childFactory"]),r=u(this.state.children).map(n);return delete o.appear,delete o.enter,delete o.exit,null===t?r:a.default.createElement(t,o,r)},o}(a.default.Component);d.childContextTypes={transitionGroup:o.default.object.isRequired},d.propTypes={},d.defaultProps={component:"div",childFactory:function(e){return e}};var p=(0,r.polyfill)(d);t.default=p,e.exports=t.default},9790:(e,t,n)=>{"use strict";var o=i(n(8514)),a=i(n(1369)),r=i(n(2312)),l=i(n(495));function i(e){return e&&e.__esModule?e:{default:e}}e.exports={Transition:l.default,TransitionGroup:r.default,ReplaceTransition:a.default,CSSTransition:o.default}},2958:(e,t,n)=>{"use strict";t.__esModule=!0,t.getChildMapping=a,t.mergeChildMappings=r,t.getInitialChildMapping=function(e,t){return a(e.children,(function(n){return(0,o.cloneElement)(n,{onExited:t.bind(null,n),in:!0,appear:l(n,"appear",e),enter:l(n,"enter",e),exit:l(n,"exit",e)})}))},t.getNextChildMapping=function(e,t,n){var i=a(e.children),s=r(t,i);return Object.keys(s).forEach((function(a){var r=s[a];if((0,o.isValidElement)(r)){var c=a in t,u=a in i,d=t[a],p=(0,o.isValidElement)(d)&&!d.props.in;!u||c&&!p?u||!c||p?u&&c&&(0,o.isValidElement)(d)&&(s[a]=(0,o.cloneElement)(r,{onExited:n.bind(null,r),in:d.props.in,exit:l(r,"exit",e),enter:l(r,"enter",e)})):s[a]=(0,o.cloneElement)(r,{in:!1}):s[a]=(0,o.cloneElement)(r,{onExited:n.bind(null,r),in:!0,exit:l(r,"exit",e),enter:l(r,"enter",e)})}})),s};var o=n(1609);function a(e,t){var n=Object.create(null);return e&&o.Children.map(e,(function(e){return e})).forEach((function(e){n[e.key]=function(e){return t&&(0,o.isValidElement)(e)?t(e):e}(e)})),n}function r(e,t){function n(n){return n in t?t[n]:e[n]}e=e||{},t=t||{};var o,a=Object.create(null),r=[];for(var l in e)l in t?r.length&&(a[l]=r,r=[]):r.push(l);var i={};for(var s in t){if(a[s])for(o=0;o<a[s].length;o++){var c=a[s][o];i[a[s][o]]=n(c)}i[s]=n(s)}for(o=0;o<r.length;o++)i[r[o]]=n(r[o]);return i}function l(e,t,n){return null!=n[t]?n[t]:e.props[t]}},554:(e,t,n)=>{"use strict";var o;t.__esModule=!0,t.classNamesShape=t.timeoutsShape=void 0,(o=n(5556))&&o.__esModule,t.timeoutsShape=null,t.classNamesShape=null},1020:(e,t,n)=>{"use strict";var o=n(1609),a=Symbol.for("react.element"),r=Symbol.for("react.fragment"),l=Object.prototype.hasOwnProperty,i=o.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,s={key:!0,ref:!0,__self:!0,__source:!0};function c(e,t,n){var o,r={},c=null,u=null;for(o in void 0!==n&&(c=""+n),void 0!==t.key&&(c=""+t.key),void 0!==t.ref&&(u=t.ref),t)l.call(t,o)&&!s.hasOwnProperty(o)&&(r[o]=t[o]);if(e&&e.defaultProps)for(o in t=e.defaultProps)void 0===r[o]&&(r[o]=t[o]);return{$$typeof:a,type:e,key:c,ref:u,props:r,_owner:i.current}}t.Fragment=r,t.jsx=c,t.jsxs=c},4848:(e,t,n)=>{"use strict";e.exports=n(1020)},731:e=>{var t={À:"A",Á:"A",Â:"A",Ã:"A",Ä:"A",Å:"A",Ấ:"A",Ắ:"A",Ẳ:"A",Ẵ:"A",Ặ:"A",Æ:"AE",Ầ:"A",Ằ:"A",Ȃ:"A",Ç:"C",Ḉ:"C",È:"E",É:"E",Ê:"E",Ë:"E",Ế:"E",Ḗ:"E",Ề:"E",Ḕ:"E",Ḝ:"E",Ȇ:"E",Ì:"I",Í:"I",Î:"I",Ï:"I",Ḯ:"I",Ȋ:"I",Ð:"D",Ñ:"N",Ò:"O",Ó:"O",Ô:"O",Õ:"O",Ö:"O",Ø:"O",Ố:"O",Ṍ:"O",Ṓ:"O",Ȏ:"O",Ù:"U",Ú:"U",Û:"U",Ü:"U",Ý:"Y",à:"a",á:"a",â:"a",ã:"a",ä:"a",å:"a",ấ:"a",ắ:"a",ẳ:"a",ẵ:"a",ặ:"a",æ:"ae",ầ:"a",ằ:"a",ȃ:"a",ç:"c",ḉ:"c",è:"e",é:"e",ê:"e",ë:"e",ế:"e",ḗ:"e",ề:"e",ḕ:"e",ḝ:"e",ȇ:"e",ì:"i",í:"i",î:"i",ï:"i",ḯ:"i",ȋ:"i",ð:"d",ñ:"n",ò:"o",ó:"o",ô:"o",õ:"o",ö:"o",ø:"o",ố:"o",ṍ:"o",ṓ:"o",ȏ:"o",ù:"u",ú:"u",û:"u",ü:"u",ý:"y",ÿ:"y",Ā:"A",ā:"a",Ă:"A",ă:"a",Ą:"A",ą:"a",Ć:"C",ć:"c",Ĉ:"C",ĉ:"c",Ċ:"C",ċ:"c",Č:"C",č:"c",C̆:"C",c̆:"c",Ď:"D",ď:"d",Đ:"D",đ:"d",Ē:"E",ē:"e",Ĕ:"E",ĕ:"e",Ė:"E",ė:"e",Ę:"E",ę:"e",Ě:"E",ě:"e",Ĝ:"G",Ǵ:"G",ĝ:"g",ǵ:"g",Ğ:"G",ğ:"g",Ġ:"G",ġ:"g",Ģ:"G",ģ:"g",Ĥ:"H",ĥ:"h",Ħ:"H",ħ:"h",Ḫ:"H",ḫ:"h",Ĩ:"I",ĩ:"i",Ī:"I",ī:"i",Ĭ:"I",ĭ:"i",Į:"I",į:"i",İ:"I",ı:"i",IJ:"IJ",ij:"ij",Ĵ:"J",ĵ:"j",Ķ:"K",ķ:"k",Ḱ:"K",ḱ:"k",K̆:"K",k̆:"k",Ĺ:"L",ĺ:"l",Ļ:"L",ļ:"l",Ľ:"L",ľ:"l",Ŀ:"L",ŀ:"l",Ł:"l",ł:"l",Ḿ:"M",ḿ:"m",M̆:"M",m̆:"m",Ń:"N",ń:"n",Ņ:"N",ņ:"n",Ň:"N",ň:"n",ʼn:"n",N̆:"N",n̆:"n",Ō:"O",ō:"o",Ŏ:"O",ŏ:"o",Ő:"O",ő:"o",Œ:"OE",œ:"oe",P̆:"P",p̆:"p",Ŕ:"R",ŕ:"r",Ŗ:"R",ŗ:"r",Ř:"R",ř:"r",R̆:"R",r̆:"r",Ȓ:"R",ȓ:"r",Ś:"S",ś:"s",Ŝ:"S",ŝ:"s",Ş:"S",Ș:"S",ș:"s",ş:"s",Š:"S",š:"s",ß:"ss",Ţ:"T",ţ:"t",ț:"t",Ț:"T",Ť:"T",ť:"t",Ŧ:"T",ŧ:"t",T̆:"T",t̆:"t",Ũ:"U",ũ:"u",Ū:"U",ū:"u",Ŭ:"U",ŭ:"u",Ů:"U",ů:"u",Ű:"U",ű:"u",Ų:"U",ų:"u",Ȗ:"U",ȗ:"u",V̆:"V",v̆:"v",Ŵ:"W",ŵ:"w",Ẃ:"W",ẃ:"w",X̆:"X",x̆:"x",Ŷ:"Y",ŷ:"y",Ÿ:"Y",Y̆:"Y",y̆:"y",Ź:"Z",ź:"z",Ż:"Z",ż:"z",Ž:"Z",ž:"z",ſ:"s",ƒ:"f",Ơ:"O",ơ:"o",Ư:"U",ư:"u",Ǎ:"A",ǎ:"a",Ǐ:"I",ǐ:"i",Ǒ:"O",ǒ:"o",Ǔ:"U",ǔ:"u",Ǖ:"U",ǖ:"u",Ǘ:"U",ǘ:"u",Ǚ:"U",ǚ:"u",Ǜ:"U",ǜ:"u",Ứ:"U",ứ:"u",Ṹ:"U",ṹ:"u",Ǻ:"A",ǻ:"a",Ǽ:"AE",ǽ:"ae",Ǿ:"O",ǿ:"o",Þ:"TH",þ:"th",Ṕ:"P",ṕ:"p",Ṥ:"S",ṥ:"s",X́:"X",x́:"x",Ѓ:"Г",ѓ:"г",Ќ:"К",ќ:"к",A̋:"A",a̋:"a",E̋:"E",e̋:"e",I̋:"I",i̋:"i",Ǹ:"N",ǹ:"n",Ồ:"O",ồ:"o",Ṑ:"O",ṑ:"o",Ừ:"U",ừ:"u",Ẁ:"W",ẁ:"w",Ỳ:"Y",ỳ:"y",Ȁ:"A",ȁ:"a",Ȅ:"E",ȅ:"e",Ȉ:"I",ȉ:"i",Ȍ:"O",ȍ:"o",Ȑ:"R",ȑ:"r",Ȕ:"U",ȕ:"u",B̌:"B",b̌:"b",Č̣:"C",č̣:"c",Ê̌:"E",ê̌:"e",F̌:"F",f̌:"f",Ǧ:"G",ǧ:"g",Ȟ:"H",ȟ:"h",J̌:"J",ǰ:"j",Ǩ:"K",ǩ:"k",M̌:"M",m̌:"m",P̌:"P",p̌:"p",Q̌:"Q",q̌:"q",Ř̩:"R",ř̩:"r",Ṧ:"S",ṧ:"s",V̌:"V",v̌:"v",W̌:"W",w̌:"w",X̌:"X",x̌:"x",Y̌:"Y",y̌:"y",A̧:"A",a̧:"a",B̧:"B",b̧:"b",Ḑ:"D",ḑ:"d",Ȩ:"E",ȩ:"e",Ɛ̧:"E",ɛ̧:"e",Ḩ:"H",ḩ:"h",I̧:"I",i̧:"i",Ɨ̧:"I",ɨ̧:"i",M̧:"M",m̧:"m",O̧:"O",o̧:"o",Q̧:"Q",q̧:"q",U̧:"U",u̧:"u",X̧:"X",x̧:"x",Z̧:"Z",z̧:"z",й:"и",Й:"И",ё:"е",Ё:"Е"},n=Object.keys(t).join("|"),o=new RegExp(n,"g"),a=new RegExp(n,"");function r(e){return t[e]}var l=function(e){return e.replace(o,r)};e.exports=l,e.exports.has=function(e){return!!e.match(a)},e.exports.remove=l},8226:e=>{e.exports=function(){"use strict";return function(e){var t="/*|*/",n=t+"}";function o(t){if(t)try{e(t+"}")}catch(e){}}return function(a,r,l,i,s,c,u,d,p,m){switch(a){case 1:if(0===p&&64===r.charCodeAt(0))return e(r+";"),"";break;case 2:if(0===d)return r+t;break;case 3:switch(d){case 102:case 112:return e(l[0]+r),"";default:return r+(0===m?t:"")}case-2:r.split(n).forEach(o)}}}}()},1609:e=>{"use strict";e.exports=window.React},5795:e=>{"use strict";e.exports=window.ReactDOM},4634:e=>{function t(){return e.exports=t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var o in n)Object.prototype.hasOwnProperty.call(n,o)&&(e[o]=n[o])}return e},e.exports.__esModule=!0,e.exports.default=e.exports,t.apply(this,arguments)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},4994:e=>{e.exports=function(e){return e&&e.__esModule?e:{default:e}},e.exports.__esModule=!0,e.exports.default=e.exports},6305:(e,t,n)=>{var o=n(3738).default;function a(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,n=new WeakMap;return(a=function(e){return e?n:t})(e)}e.exports=function(e,t){if(!t&&e&&e.__esModule)return e;if(null===e||"object"!==o(e)&&"function"!=typeof e)return{default:e};var n=a(t);if(n&&n.has(e))return n.get(e);var r={},l=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var s=l?Object.getOwnPropertyDescriptor(e,i):null;s&&(s.get||s.set)?Object.defineProperty(r,i,s):r[i]=e[i]}return r.default=e,n&&n.set(e,r),r},e.exports.__esModule=!0,e.exports.default=e.exports},3738:e=>{function t(n){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(n)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports}},n={};function o(e){var a=n[e];if(void 0!==a)return a.exports;var r=n[e]={exports:{}};return t[e].call(r.exports,r,r.exports,o),r.exports}o.m=t,e=[],o.O=(t,n,a,r)=>{if(!n){var l=1/0;for(u=0;u<e.length;u++){n=e[u][0],a=e[u][1],r=e[u][2];for(var i=!0,s=0;s<n.length;s++)(!1&r||l>=r)&&Object.keys(o.O).every((e=>o.O[e](n[s])))?n.splice(s--,1):(i=!1,r<l&&(l=r));if(i){e.splice(u--,1);var c=a();void 0!==c&&(t=c)}}return t}r=r||0;for(var u=e.length;u>0&&e[u-1][2]>r;u--)e[u]=e[u-1];e[u]=[n,a,r]},o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},o.d=(e,t)=>{for(var n in t)o.o(t,n)&&!o.o(e,n)&&Object.defineProperty(e,n,{enumerable:!0,get:t[n]})},o.g=function(){if("object"==typeof globalThis)return globalThis;try{return this||new Function("return this")()}catch(e){if("object"==typeof window)return window}}(),o.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),o.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})},(()=>{var e;o.g.importScripts&&(e=o.g.location+"");var t=o.g.document;if(!e&&t&&(t.currentScript&&"SCRIPT"===t.currentScript.tagName.toUpperCase()&&(e=t.currentScript.src),!e)){var n=t.getElementsByTagName("script");if(n.length)for(var a=n.length-1;a>-1&&(!e||!/^http(s?):/.test(e));)e=n[a--].src}if(!e)throw new Error("Automatic publicPath is not supported in this browser");e=e.replace(/#.*$/,"").replace(/\?.*$/,"").replace(/\/[^\/]+$/,"/"),o.p=e})(),(()=>{var e={48:0,29:0};o.O.j=t=>0===e[t];var t=(t,n)=>{var a,r,l=n[0],i=n[1],s=n[2],c=0;if(l.some((t=>0!==e[t]))){for(a in i)o.o(i,a)&&(o.m[a]=i[a]);if(s)var u=s(o)}for(t&&t(n);c<l.length;c++)r=l[c],o.o(e,r)&&e[r]&&e[r][0](),e[r]=0;return o.O(u)},n=self.webpackChunkkadence=self.webpackChunkkadence||[];n.forEach(t.bind(null,0)),n.push=t.bind(null,n.push.bind(n))})();var a=o.O(void 0,[29],(()=>o(4233)));a=o.O(a),(this.kadence=this.kadence||{})["blocks-rowlayout"]=a})();

Filemanager

Name Type Size Permission Actions
blocks Folder 0755
images Folder 0755
admin-kadence-home.asset.php File 260 B 0644
admin-kadence-home.css File 42.54 KB 0644
admin-kadence-home.js File 331.56 KB 0644
blocks-accordion.asset.php File 275 B 0644
blocks-accordion.css File 12.26 KB 0644
blocks-accordion.js File 65.94 KB 0644
blocks-advanced-form.asset.php File 404 B 0644
blocks-advanced-form.css File 30.99 KB 0644
blocks-advanced-form.js File 420.08 KB 0644
blocks-advancedbtn.asset.php File 288 B 0644
blocks-advancedbtn.css File 8.82 KB 0644
blocks-advancedbtn.js File 124.14 KB 0644
blocks-advancedgallery.asset.php File 315 B 0644
blocks-advancedgallery.css File 29.13 KB 0644
blocks-advancedgallery.js File 153.72 KB 0644
blocks-advancedheading.asset.php File 330 B 0644
blocks-advancedheading.css File 18.39 KB 0644
blocks-advancedheading.js File 126.14 KB 0644
blocks-column.asset.php File 256 B 0644
blocks-column.css File 9.03 KB 0644
blocks-column.js File 95.59 KB 0644
blocks-countdown.asset.php File 281 B 0644
blocks-countdown.css File 4.39 KB 0644
blocks-countdown.js File 65.05 KB 0644
blocks-countup.asset.php File 234 B 0644
blocks-countup.css File 91 B 0644
blocks-countup.js File 39.05 KB 0644
blocks-form.asset.php File 324 B 0644
blocks-form.css File 8.01 KB 0644
blocks-form.js File 295.96 KB 0644
blocks-googlemaps.asset.php File 287 B 0644
blocks-googlemaps.css File 515 B 0644
blocks-googlemaps.js File 152.02 KB 0644
blocks-header.asset.php File 328 B 0644
blocks-header.css File 17.33 KB 0644
blocks-header.js File 295.24 KB 0644
blocks-icon.asset.php File 261 B 0644
blocks-icon.css File 1.2 KB 0644
blocks-icon.js File 42.66 KB 0644
blocks-iconlist.asset.php File 289 B 0644
blocks-iconlist.css File 2.65 KB 0644
blocks-iconlist.js File 55.04 KB 0644
blocks-identity.asset.php File 250 B 0644
blocks-identity.css File 2.88 KB 0644
blocks-identity.js File 78.88 KB 0644
blocks-image.asset.php File 328 B 0644
blocks-image.css File 6.39 KB 0644
blocks-image.js File 64.23 KB 0644
blocks-infobox.asset.php File 303 B 0644
blocks-infobox.css File 8.58 KB 0644
blocks-infobox.js File 208.7 KB 0644
blocks-lottie.asset.php File 244 B 0644
blocks-lottie.css File 276 B 0644
blocks-lottie.js File 399.32 KB 0644
blocks-navigation-link.asset.php File 392 B 0644
blocks-navigation-link.css File 1 B 0644
blocks-navigation-link.js File 111.29 KB 0644
blocks-navigation.asset.php File 316 B 0644
blocks-navigation.css File 154.75 KB 0644
blocks-navigation.js File 185.56 KB 0644
blocks-posts.asset.php File 301 B 0644
blocks-posts.css File 5.83 KB 0644
blocks-posts.js File 27.17 KB 0644
blocks-progress-bar.asset.php File 244 B 0644
blocks-progress-bar.css File 888 B 0644
blocks-progress-bar.js File 68.32 KB 0644
blocks-rowlayout.asset.php File 361 B 0644
blocks-rowlayout.css File 114.04 KB 0644
blocks-rowlayout.js File 819.02 KB 0644
blocks-search.asset.php File 234 B 0644
blocks-search.css File 1.28 KB 0644
blocks-search.js File 28.92 KB 0644
blocks-show-more.asset.php File 244 B 0644
blocks-show-more.css File 189 B 0644
blocks-show-more.js File 11.87 KB 0644
blocks-single-icon.asset.php File 234 B 0644
blocks-single-icon.js File 16.82 KB 0644
blocks-singlebtn.asset.php File 288 B 0644
blocks-singlebtn.js File 67.43 KB 0644
blocks-spacer.asset.php File 234 B 0644
blocks-spacer.css File 1.88 KB 0644
blocks-spacer.js File 22.91 KB 0644
blocks-table.asset.php File 298 B 0644
blocks-table.css File 269 B 0644
blocks-table.js File 43.46 KB 0644
blocks-tableofcontents.asset.php File 285 B 0644
blocks-tableofcontents.css File 7.64 KB 0644
blocks-tableofcontents.js File 40.17 KB 0644
blocks-tabs.asset.php File 300 B 0644
blocks-tabs.css File 14.48 KB 0644
blocks-tabs.js File 180.84 KB 0644
blocks-testimonial.asset.php File 261 B 0644
blocks-testimonial.js File 45.21 KB 0644
blocks-testimonials.asset.php File 261 B 0644
blocks-testimonials.css File 19.51 KB 0644
blocks-testimonials.js File 246.17 KB 0644
blocks-videopopup.asset.php File 273 B 0644
blocks-videopopup.css File 1.72 KB 0644
blocks-videopopup.js File 51.68 KB 0644
components.asset.php File 363 B 0644
components.css File 93.12 KB 0644
components.js File 647.82 KB 0644
early-filters.asset.php File 212 B 0644
early-filters.js File 3.32 KB 0644
extension-block-css.asset.php File 231 B 0644
extension-block-css.js File 503.13 KB 0644
extension-image-picker.asset.php File 219 B 0644
extension-image-picker.css File 6.1 KB 0644
extension-image-picker.js File 88.64 KB 0644
extension-kadence-base.asset.php File 99 B 0644
extension-kadence-base.js File 198 B 0644
extension-stores.asset.php File 103 B 0644
extension-stores.js File 5.86 KB 0644
header-visual-builder.asset.php File 239 B 0644
header-visual-builder.css File 8.93 KB 0644
header-visual-builder.js File 63.86 KB 0644
helpers.asset.php File 187 B 0644
helpers.js File 27.17 KB 0644
icons.asset.php File 91 B 0644
icons.js File 457.37 KB 0644
plugin-kadence-control.asset.php File 374 B 0644
plugin-kadence-control.css File 4.18 KB 0644
plugin-kadence-control.js File 155.14 KB 0644
style-blocks-accordion.css File 10.96 KB 0644
style-blocks-advanced-form.css File 16.23 KB 0644
style-blocks-advancedbtn.css File 2.62 KB 0644
style-blocks-advancedgallery.css File 29.79 KB 0644
style-blocks-advancedheading.css File 196 B 0644
style-blocks-column.css File 1.44 KB 0644
style-blocks-countdown.css File 3.7 KB 0644
style-blocks-form.css File 9.49 KB 0644
style-blocks-header.css File 10.18 KB 0644
style-blocks-icon.css File 1.02 KB 0644
style-blocks-iconlist.css File 3.51 KB 0644
style-blocks-identity.css File 2.41 KB 0644
style-blocks-image.css File 4.5 KB 0644
style-blocks-infobox.css File 7.54 KB 0644
style-blocks-lottie.css File 239 B 0644
style-blocks-navigation.css File 96.07 KB 0644
style-blocks-posts.css File 8.37 KB 0644
style-blocks-progress-bar.css File 813 B 0644
style-blocks-rowlayout.css File 7.83 KB 0644
style-blocks-search.css File 1.28 KB 0644
style-blocks-spacer.css File 2.25 KB 0644
style-blocks-table.css File 112 B 0644
style-blocks-tableofcontents.css File 8.29 KB 0644
style-blocks-tabs.css File 10.23 KB 0644
style-blocks-testimonials.css File 10.54 KB 0644
style-blocks-videopopup.css File 4.59 KB 0644