🐐 GOAT Shell

Current path: home/fresvfqn/emergencywaterdamagemanhattan.com/wp-content/plugins/sureforms/assets/build/



⬆️ Go up: assets

📄 Viewing: formEditor.js

/*! For license information please see formEditor.js.LICENSE.txt */
(()=>{var e,t,r={387:(e,t,r)=>{"use strict";r(51609),r(41458),r(3769)},659:(e,t,r)=>{var n=r(51873),o=Object.prototype,i=o.hasOwnProperty,a=o.toString,s=n?n.toStringTag:void 0;e.exports=function(e){var t=i.call(e,s),r=e[s];try{e[s]=void 0;var n=!0}catch(e){}var o=a.call(e);return n&&(t?e[s]=r:delete e[s]),o}},1455:e=>{"use strict";e.exports=window.wp.apiFetch},1882:(e,t,r)=>{var n=r(72552),o=r(23805);e.exports=function(e){if(!o(e))return!1;var t=n(e);return"[object Function]"==t||"[object GeneratorFunction]"==t||"[object AsyncFunction]"==t||"[object Proxy]"==t}},2404:(e,t,r)=>{var n=r(60270);e.exports=function(e,t){return n(e,t)}},2694:(e,t,r)=>{"use strict";var n=r(6925);function o(){}function i(){}i.resetWarningCache=o,e.exports=function(){function e(e,t,r,o,i,a){if(a!==n){var s=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 s.name="Invariant Violation",s}}function t(){return e}e.isRequired=e;var r={array:e,bigint:e,bool:e,func:e,number:e,object:e,string:e,symbol:e,any:e,arrayOf:t,element:e,elementType:e,instanceOf:t,node:e,objectOf:t,oneOf:t,oneOfType:t,shape:t,exact:t,checkPropTypes:i,resetWarningCache:o};return r.PropTypes=r,r}},3072:(e,t)=>{"use strict";var r="function"==typeof Symbol&&Symbol.for,n=r?Symbol.for("react.element"):60103,o=r?Symbol.for("react.portal"):60106,i=r?Symbol.for("react.fragment"):60107,a=r?Symbol.for("react.strict_mode"):60108,s=r?Symbol.for("react.profiler"):60114,l=r?Symbol.for("react.provider"):60109,u=r?Symbol.for("react.context"):60110,c=r?Symbol.for("react.async_mode"):60111,d=r?Symbol.for("react.concurrent_mode"):60111,f=r?Symbol.for("react.forward_ref"):60112,m=r?Symbol.for("react.suspense"):60113,p=r?Symbol.for("react.suspense_list"):60120,h=r?Symbol.for("react.memo"):60115,g=r?Symbol.for("react.lazy"):60116,b=r?Symbol.for("react.block"):60121,y=r?Symbol.for("react.fundamental"):60117,v=r?Symbol.for("react.responder"):60118,D=r?Symbol.for("react.scope"):60119;function _(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case n:switch(e=e.type){case c:case d:case i:case s:case a:case m:return e;default:switch(e=e&&e.$$typeof){case u:case f:case g:case h:case l:return e;default:return t}}case o:return t}}}function x(e){return _(e)===d}t.AsyncMode=c,t.ConcurrentMode=d,t.ContextConsumer=u,t.ContextProvider=l,t.Element=n,t.ForwardRef=f,t.Fragment=i,t.Lazy=g,t.Memo=h,t.Portal=o,t.Profiler=s,t.StrictMode=a,t.Suspense=m,t.isAsyncMode=function(e){return x(e)||_(e)===c},t.isConcurrentMode=x,t.isContextConsumer=function(e){return _(e)===u},t.isContextProvider=function(e){return _(e)===l},t.isElement=function(e){return"object"==typeof e&&null!==e&&e.$$typeof===n},t.isForwardRef=function(e){return _(e)===f},t.isFragment=function(e){return _(e)===i},t.isLazy=function(e){return _(e)===g},t.isMemo=function(e){return _(e)===h},t.isPortal=function(e){return _(e)===o},t.isProfiler=function(e){return _(e)===s},t.isStrictMode=function(e){return _(e)===a},t.isSuspense=function(e){return _(e)===m},t.isValidElementType=function(e){return"string"==typeof e||"function"==typeof e||e===i||e===d||e===s||e===a||e===m||e===p||"object"==typeof e&&null!==e&&(e.$$typeof===g||e.$$typeof===h||e.$$typeof===l||e.$$typeof===u||e.$$typeof===f||e.$$typeof===y||e.$$typeof===v||e.$$typeof===D||e.$$typeof===b)},t.typeOf=_},3650:(e,t,r)=>{var n=r(74335)(Object.keys,Object);e.exports=n},3656:(e,t,r)=>{e=r.nmd(e);var n=r(9325),o=r(89935),i=t&&!t.nodeType&&t,a=i&&e&&!e.nodeType&&e,s=a&&a.exports===i?n.Buffer:void 0,l=(s?s.isBuffer:void 0)||o;e.exports=l},3769:(e,t,r)=>{"use strict";r(51609),r(41458)},3942:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-separator{width:100%;height:1px;margin:25px 0;background-color:#e6e7e9}.srfm-separator--removed-top-space{margin-top:0 !important}.srfm-inspector-tab .components-panel__body .srfm-separator{width:auto;margin:25px -16px}",""]);const s=a},4146:(e,t,r)=>{"use strict";var n=r(73404),o={childContextTypes:!0,contextType:!0,contextTypes:!0,defaultProps:!0,displayName:!0,getDefaultProps:!0,getDerivedStateFromError:!0,getDerivedStateFromProps:!0,mixins:!0,propTypes:!0,type:!0},i={name:!0,length:!0,prototype:!0,caller:!0,callee:!0,arguments:!0,arity:!0},a={$$typeof:!0,compare:!0,defaultProps:!0,displayName:!0,propTypes:!0,type:!0},s={};function l(e){return n.isMemo(e)?a:s[e.$$typeof]||o}s[n.ForwardRef]={$$typeof:!0,render:!0,defaultProps:!0,displayName:!0,propTypes:!0},s[n.Memo]=a;var u=Object.defineProperty,c=Object.getOwnPropertyNames,d=Object.getOwnPropertySymbols,f=Object.getOwnPropertyDescriptor,m=Object.getPrototypeOf,p=Object.prototype;e.exports=function e(t,r,n){if("string"!=typeof r){if(p){var o=m(r);o&&o!==p&&e(t,o,n)}var a=c(r);d&&(a=a.concat(d(r)));for(var s=l(t),h=l(r),g=0;g<a.length;++g){var b=a[g];if(!(i[b]||n&&n[b]||h&&h[b]||s&&s[b])){var y=f(r,b);try{u(t,b,y)}catch(e){}}}}return t}},4509:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).has(e)}},4595:(e,t,r)=>{"use strict";r.d(t,{E:()=>o});var n=r(51609),o="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect},4664:(e,t,r)=>{var n=r(79770),o=r(63345),i=Object.prototype.propertyIsEnumerable,a=Object.getOwnPropertySymbols,s=a?function(e){return null==e?[]:(e=Object(e),n(a(e),(function(t){return i.call(e,t)})))}:o;e.exports=s},4759:(e,t,r)=>{"use strict";r.d(t,{A:()=>z,A4:()=>V,B$:()=>B,Cb:()=>P,P2:()=>v,XB:()=>M,_C:()=>C,cn:()=>A,lj:()=>w,nC:()=>_,oI:()=>O,rD:()=>S,xO:()=>q,xT:()=>D,yn:()=>R});var n=r(1455),o=r.n(n),i=r(27723),a=(r(60799),r(43656)),s=r(47143),l=r(93832),u=r(34164),c=r(50856),d=r(60443),f=r(52619);function m(e){return m="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},m(e)}function p(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||h(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.")}()}function h(e,t){if(e){if("string"==typeof e)return g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?g(e,t):void 0}}function g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function b(){b=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=k(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var u=c(t,r,n);if("normal"===u.type){if(o=n.done?4:2,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=4,n.method="throw",n.arg=u.arg)}}}(t,n,new C(o||[])),!0),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d={};function f(){}function p(){}function h(){}var g={};l(g,i,(function(){return this}));var y=Object.getPrototypeOf,v=y&&y(y(M([])));v&&v!==r&&n.call(v,i)&&(g=v);var D=h.prototype=f.prototype=Object.create(g);function _(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function x(e,t){function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==m(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function k(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,k(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function E(e){this.tryEntries.push(e)}function w(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function C(e){this.tryEntries=[[-1]],e.forEach(E,this),this.reset(!0)}function M(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(m(t)+" is not iterable")}return p.prototype=h,l(D,"constructor",h),l(h,"constructor",p),p.displayName=l(h,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===p||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,h):(e.__proto__=h,l(e,s,"GeneratorFunction")),e.prototype=Object.create(D),e},t.awrap=function(e){return{__await:e}},_(x.prototype),l(x.prototype,a,(function(){return this})),t.AsyncIterator=x,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new x(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},_(D),l(D,s,"Generator"),l(D,i,(function(){return this})),l(D,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=M,C.prototype={constructor:C,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(w),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],u=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<u)return n(u),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),w(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;w(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:M(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function y(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function v(e){return e?e.toLowerCase().replace(/[^a-zA-Z ]/g,"").replace(/\s+/g,"-"):""}function D(e){if(e.current){var t=e.current.parentElement.closest(".components-panel__body");if(t&&t.querySelector(".components-panel__body-title"))return v(t.querySelector(".components-panel__body-title").textContent)}return null}var _=function(e){var t,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",n=(arguments.length>1&&void 0!==arguments[1]?arguments[1]:[]).map((function(t){var r=p(t,2),n=r[0];return{title:r[1],onClick:function(){e(n)}}}));return 0===n.length&&(n=[{title:(0,i.__)("No tags available","sureforms")}]),0!==r.length&&(n=[{title:r,isDisabled:!0,onclick:function(){return!1}}].concat(function(e){if(Array.isArray(e))return g(e)}(t=n)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||h(t)||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.")}())),n};function x(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"...",n=e.split(/\s+/);return n.length<=t?e:n.slice(0,t).join(" ")+r}var k=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:[],o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:[];Array.isArray(e)&&0===e.length||e.forEach((function(e){var i;if(!(0,f.applyFilters)("srfm.smartTags.isBlockProcessedExternally",!1,{block:e,blockSlugs:t,tagsArray:r,uniqueSlugs:n,trimTextToWords:x})){if(Array.isArray(null==e?void 0:e.innerBlocks)&&0!==(null==e?void 0:e.innerBlocks.length))return k(e.innerBlocks,t,r,n,o);if((!o.length||o.includes(null==e?void 0:e.name))&&null!=e&&null!==(i=e.attributes)&&void 0!==i&&i.block_id){var a=t[e.attributes.block_id];if(void 0!==a&&a&&"-1"!==a&&!n.includes(a)){var s="{form:"+a+"}",l=x(e.attributes.label,5);"srfm/gdpr"===(null==e?void 0:e.name)&&(l="[GDPR] ".concat(l)),r.push([s,l]),n.push(a)}}}}))},E=["srfm/inline-button","srfm/page-break","srfm/separator","srfm/advanced-heading","srfm/image","srfm/icon","srfm/link","srfm/login","srfm/html"],w=function(e){var t,r,n=(0,(0,s.select)(a.store).getBlocks)(),o=j(e,n);if(null!==(t=Object.keys(o))&&void 0!==t&&t.length){var i=[],l=[],u=[];void 0===window.sureforms&&(window.sureforms={}),window.sureforms.formSpecificSmartTags=i,window.sureforms.formSpecificEmailSmartTags=l,window.sureforms.formSpecificUploadSmartTags=u,null!==(r=n)&&void 0!==r&&r.length&&(n=n.filter((function(e){return!E.includes(null==e?void 0:e.name)})),k(n,o,i,[]),k(n,o,l,[],["srfm/email"]),k(n,o,u,[],["srfm/upload"]),window.sureforms.formSpecificSmartTags=i,window.sureforms.formSpecificEmailSmartTags=l,window.sureforms.formSpecificUploadSmartTags=u)}},C=function(e){return e&&Object.keys(e).length>0&&Object.getPrototypeOf(e)===Object.prototype},M=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"utm_medium";try{var n=new URL(e);return n.searchParams.set(r,t),n.toString()}catch(t){return console.error("Invalid URL:",t),e}},A=function(){return(0,c.QP)(u.A.apply(void 0,arguments))},N=function(e,t){for(var r=(0,l.cleanForSlug)(e),n=r,o=1;t.has(n);)n="".concat(r,"-").concat(o),o++;return n},j=function(e,t){var r={},n=new Set,o=function(t){var i,a=function(e){var t="undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(!t){if(Array.isArray(e)||(t=h(e))){t&&(e=t);var r=0,n=function(){};return{s:n,n:function(){return r>=e.length?{done:!0}:{done:!1,value:e[r++]}},e:function(e){throw e},f:n}}throw new TypeError("Invalid attempt to iterate non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}var o,i=!0,a=!1;return{s:function(){t=t.call(e)},n:function(){var e=t.next();return i=e.done,e},e:function(e){a=!0,o=e},f:function(){try{i||null==t.return||t.return()}finally{if(a)throw o}}}}(t);try{for(a.s();!(i=a.n()).done;){var s=i.value,l=s.attributes,u=l.slug,c=l.label,d=l.block_id;u||(u=N(c,n),e(s.clientId,{slug:u})),r[d]=u,n.add(u),Array.isArray(s.innerBlocks)&&s.innerBlocks.length>0&&o(s.innerBlocks)}}catch(e){a.e(e)}finally{a.f()}};return o(t),r},O=function(e,t){if(Object.keys(t).length>0)for(var r=0,n=Object.entries(t);r<n.length;r++){var o=p(n[r],2),i=o[0],a=o[1];e.style.setProperty(i,a)}},T={ACTIVATE:"sureforms_recommended_plugin_activate",INSTALL:"sureforms_recommended_plugin_install"},S=function(e){return{Installed:srfm_admin.plugin_activate_text,Install:(0,i.__)("Install & Activate","sureforms"),Activated:srfm_admin.plugin_activated_text}[e.status]||e.status},I=function(e){return"Installed"===e?T.ACTIVATE:"Activated"===e?"":T.INSTALL},F=function(){var e,t=(e=b().mark((function e(t){var r,n,a,s,l;return b().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return r=t.url,n=t.formData,a=t.successCallback,s=t.errorCallback,e.prev=1,e.next=4,o()({url:r,method:"POST",body:n});case 4:(l=e.sent).success?a(l):s(l),e.next=12;break;case 8:e.prev=8,e.t0=e.catch(1),console.error("API Error:",e.t0),d.o.error((0,i.__)("An error occurred. Please try again later.","sureforms"),{duration:5e3});case 12:case"end":return e.stop()}}),e,null,[[1,8]])})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){y(i,n,o,a,s,"next",e)}function s(e){y(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function L(e){var t,r=e.plugin,n=e.event,o=new window.FormData;o.append("action",T.ACTIVATE),o.append("security",null!==(t=srfm_admin.sfPluginManagerNonce)&&void 0!==t?t:srfm_admin.sf_plugin_manager_nonce),o.append("init",r.path),o.append("slug",r.slug),n.target.innerText=srfm_admin.plugin_activating_text,F({url:srfm_admin.ajax_url,formData:o,successCallback:function(){var e;if("sureforms_menu"===(null===(e=srfm_admin)||void 0===e?void 0:e.current_screen_id)){var t,r,o=null===(t=(r=n.target).closest)||void 0===t?void 0:t.call(r,"button");o&&(o.style.backgroundColor="#F0FDF4")}n.target.innerText=srfm_admin.plugin_activated_text},errorCallback:function(){d.o.error((0,i.__)("Plugin activation failed, Please try again later.","sureforms"),{duration:5e3}),n.target.innerText=srfm_admin.plugin_activate_text}})}function R(e){var t=e.plugin,r=e.event,n=I(t.status);if(n){var o=new window.FormData;n===T.INSTALL?(o.append("action",T.INSTALL),o.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),o.append("slug",t.slug),r.target.innerText=srfm_admin.plugin_installing_text,F({url:srfm_admin.ajax_url,formData:o,successCallback:function(){r.target.innerText=srfm_admin.plugin_installed_text,L({plugin:t,event:r})},errorCallback:function(){r.target.innerText=(0,i.__)("Install","sureforms"),alert((0,i.__)("Plugin Installation failed, Please try again later.","sureforms"))}})):n===T.ACTIVATE&&L({plugin:t,event:r})}}var P=function(){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"#FFC9B2",t=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"#C7CBFF",r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,n=arguments.length>4&&void 0!==arguments[4]?arguments[4]:100,o=arguments.length>5&&void 0!==arguments[5]?arguments[5]:90;return"radial"===(arguments.length>0&&void 0!==arguments[0]?arguments[0]:"linear")?"radial-gradient(".concat(e," ").concat(r,"%, ").concat(t," ").concat(n,"% )"):"linear-gradient( ".concat(o,"deg, ").concat(e," ").concat(r,"%, ").concat(t," ").concat(n,"%)")},B=function(e,t){e&&Object.keys(e).forEach((function(r){r in t||(t[r]=e[r].default)}))},z=function(e){o()({path:"/wp/v2/pages"}).then((function(t){if(t){var r=t.map((function(e){var t,r;return{label:null!==(t=e.title)&&void 0!==t&&t.rendered?null===(r=e.title)||void 0===r?void 0:r.rendered:e.id.toString(),value:e.link}}));e(r)}})).catch((function(e){return console.error("Error:",e)}))},q=function(e){if(!e)return null;try{var t=JSON.parse(e);if(t&&"object"===m(t))return t}catch(t){console.warn("SRFM message: Invalid JSON string:",e,t)}return null},V=function(e){return JSON.parse(JSON.stringify(e,null,2))}},4901:(e,t,r)=>{var n=r(72552),o=r(30294),i=r(40346),a={};a["[object Float32Array]"]=a["[object Float64Array]"]=a["[object Int8Array]"]=a["[object Int16Array]"]=a["[object Int32Array]"]=a["[object Uint8Array]"]=a["[object Uint8ClampedArray]"]=a["[object Uint16Array]"]=a["[object Uint32Array]"]=!0,a["[object Arguments]"]=a["[object Array]"]=a["[object ArrayBuffer]"]=a["[object Boolean]"]=a["[object DataView]"]=a["[object Date]"]=a["[object Error]"]=a["[object Function]"]=a["[object Map]"]=a["[object Number]"]=a["[object Object]"]=a["[object RegExp]"]=a["[object Set]"]=a["[object String]"]=a["[object WeakMap]"]=!1,e.exports=function(e){return i(e)&&o(e.length)&&!!a[n(e)]}},5338:(e,t,r)=>{"use strict";var n=r(75795);t.H=n.createRoot,n.hydrateRoot},5556:(e,t,r)=>{e.exports=r(2694)()},5861:(e,t,r)=>{var n=r(55580),o=r(68223),i=r(32804),a=r(76545),s=r(28303),l=r(72552),u=r(47473),c="[object Map]",d="[object Promise]",f="[object Set]",m="[object WeakMap]",p="[object DataView]",h=u(n),g=u(o),b=u(i),y=u(a),v=u(s),D=l;(n&&D(new n(new ArrayBuffer(1)))!=p||o&&D(new o)!=c||i&&D(i.resolve())!=d||a&&D(new a)!=f||s&&D(new s)!=m)&&(D=function(e){var t=l(e),r="[object Object]"==t?e.constructor:void 0,n=r?u(r):"";if(n)switch(n){case h:return p;case g:return c;case b:return d;case y:return f;case v:return m}return t}),e.exports=D},6359:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,'.components-panel[data-srfm-tab]{z-index:99}.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .components-panel__body.block-editor-block-inspector__advanced,.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .components-panel__body.editor-block-inspector__advanced.block-editor-block-inspector__advanced,.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .block-editor-block-inspector>div>.components-panel__body{display:none}.components-panel[data-srfm-tab]:not([data-srfm-tab=advance]) .block-editor-block-inspector>div>.components-panel__body.srfm-dynamic-content-wrap{display:block;border-bottom:1px solid #e0e0e0 !important}.components-panel[data-srfm-tab] .block-editor-block-card{position:relative;z-index:1;overflow:hidden}.components-panel[data-srfm-tab] .block-editor-block-card::before{content:"";position:absolute;top:0;left:-16px;right:-16px;bottom:0;background:#fff;z-index:-1}.components-panel[data-srfm-tab] .components-panel__body.edit-post-settings-sidebar__panel-block .block-editor-block-card{overflow:unset}.components-panel[data-srfm-tab] .components-panel__body.edit-post-settings-sidebar__panel-block .block-editor-block-card::before{top:-16px}.components-panel[data-srfm-tab=advance] .block-editor-block-inspector__advanced{border-color:rgba(0,0,0,0)}[dir=rtl] .srfm-inspector-tabs{direction:rtl}[dir=rtl] .srfm-inspector-tabs>div:first-child.srfm-active::after{border-left:1px solid #d6d9dd;border-right:0}[dir=rtl] .srfm-inspector-tabs>div:last-child.srfm-active::after{border-left:0;border-right:1px solid #d6d9dd}.srfm-inspector-tabs{display:flex;position:relative;background:#fff;z-index:9;height:65px}.srfm-inspector-tabs>div{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;background:#fff;cursor:pointer}.srfm-inspector-tabs>div::after,.srfm-inspector-tabs>div::before{content:"";position:absolute;display:block;top:0;left:0;width:100%}.srfm-inspector-tabs>div::after{border-bottom:1px solid #d6d9dd;height:100%;z-index:1}.srfm-inspector-tabs>div:first-child.srfm-active::after{border-left:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div:last-child.srfm-active::after{border-right:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div.srfm-active::after{border-left:1px solid #d6d9dd;border-right:1px solid #d6d9dd;border-bottom:0;box-shadow:inset 0 -3px 0 0 #007cba;color:#007cba}.srfm-inspector-tabs>div.srfm-active::before{height:0;background-color:rgba(0,0,0,0);z-index:2}.srfm-inspector-tabs>div h5{margin:6px 0 0;font-size:13px;font-weight:400;line-height:1.2}.srfm-inspector-tabs>div h5,.srfm-inspector-tabs>div svg{z-index:2;fill:#585858}.srfm-inspector-tabs>div.srfm-active h5{color:#0085ba}.srfm-inspector-tabs>div.srfm-active path{fill:#0085ba}.components-panel .components-panel__body .srfm-inspector-tabs-container{position:static !important;border-top:0 !important;top:0 !important}.srfm-inspector-tabs-container{position:sticky;top:-3px;z-index:9;border-top:calc(.1em + 1px) solid #f2f4f5;direction:initial}.srfm-inspector-tab .components-panel__body:first-child,.edit-post-settings-sidebar__panel-block .srfm-inspector-tab .components-panel__body:first-child{margin-top:0;border-top:none !important}',""]);const s=a},6378:(e,t,r)=>{"use strict";function n(e){return n="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},n(e)}r.d(t,{A:()=>n})},6925:e=>{"use strict";e.exports="SECRET_DO_NOT_PASS_THIS_OR_YOU_WILL_BE_FIRED"},7448:e=>{"use strict";e.exports=JSON.parse("{\"error\":\"<svg width='14' height='14' viewBox='0 0 14 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M7 5V7.5M13 7C13 10.3137 10.3137 13 7 13C3.68629 13 1 10.3137 1 7C1 3.68629 3.68629 1 7 1C10.3137 1 13 3.68629 13 7ZM7 9.5H7.005V9.505H7V9.5Z' stroke='currentColor' stroke-width='1.33' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"email\":\"<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M1.66406 5.83203L8.46816 10.5949C9.01914 10.9806 9.29463 11.1734 9.59428 11.2481C9.85898 11.3141 10.1358 11.3141 10.4005 11.2481C10.7002 11.1734 10.9757 10.9806 11.5266 10.5949L18.3307 5.83203M5.66406 16.6654H14.3307C15.7309 16.6654 16.4309 16.6654 16.9657 16.3929C17.4361 16.1532 17.8186 15.7707 18.0582 15.3003C18.3307 14.7656 18.3307 14.0655 18.3307 12.6654V7.33203C18.3307 5.9319 18.3307 5.23183 18.0582 4.69705C17.8186 4.22665 17.4361 3.8442 16.9657 3.60451C16.4309 3.33203 15.7309 3.33203 14.3307 3.33203H5.66406C4.26393 3.33203 3.56387 3.33203 3.02909 3.60451C2.55868 3.8442 2.17623 4.22665 1.93655 4.69705C1.66406 5.23183 1.66406 5.9319 1.66406 7.33203V12.6654C1.66406 14.0655 1.66406 14.7656 1.93655 15.3003C2.17623 15.7707 2.55868 16.1532 3.02909 16.3929C3.56387 16.6654 4.26393 16.6654 5.66406 16.6654Z' stroke='currentColor' stroke-width='1.66667' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"lock\":\"<svg width='18' height='22' viewBox='0 0 18 22' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M13.5 9.5V5.75C13.5 3.26472 11.4853 1.25 9 1.25C6.51472 1.25 4.5 3.26472 4.5 5.75V9.5M3.75 20.75H14.25C15.4926 20.75 16.5 19.7426 16.5 18.5V11.75C16.5 10.5074 15.4926 9.5 14.25 9.5H3.75C2.50736 9.5 1.5 10.5074 1.5 11.75V18.5C1.5 19.7426 2.50736 20.75 3.75 20.75Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"copy\":\"<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_13273_9485)'><path d='M13.3333 6H7.33333C6.59695 6 6 6.59695 6 7.33333V13.3333C6 14.0697 6.59695 14.6667 7.33333 14.6667H13.3333C14.0697 14.6667 14.6667 14.0697 14.6667 13.3333V7.33333C14.6667 6.59695 14.0697 6 13.3333 6Z' stroke='#6B7280' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/><path d='M3.3335 10.0026H2.66683C2.31321 10.0026 1.97407 9.86213 1.72402 9.61208C1.47397 9.36203 1.3335 9.02289 1.3335 8.66927V2.66927C1.3335 2.31565 1.47397 1.97651 1.72402 1.72646C1.97407 1.47641 2.31321 1.33594 2.66683 1.33594H8.66683C9.02045 1.33594 9.35959 1.47641 9.60964 1.72646C9.85969 1.97651 10.0002 2.31565 10.0002 2.66927V3.33594' stroke='#020617' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_13273_9485'><rect width='16' height='16' fill='white'/></clipPath></defs></svg>\",\"check-circle-solid\":\"<svg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M15.1663 7.38674V8.00007C15.1655 9.43769 14.7 10.8365 13.8392 11.988C12.9785 13.1394 11.7685 13.9817 10.3899 14.3893C9.0113 14.797 7.53785 14.748 6.18932 14.2498C4.8408 13.7516 3.68944 12.8308 2.90698 11.6248C2.12452 10.4188 1.75287 8.99211 1.84746 7.55761C1.94205 6.12312 2.49781 4.75762 3.43186 3.66479C4.36591 2.57195 5.6282 1.81033 7.03047 1.4935C8.43274 1.17668 9.89985 1.32163 11.213 1.90674' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/><path d='M15.1667 2.6665L8.5 9.33984L6.5 7.33984' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"check-circle\":\"<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor' data-slot='icon'><path stroke-linecap='round' stroke-linejoin='round' d='M9 12.75 11.25 15 15 9.75M21 12a9 9 0 1 1-18 0 9 9 0 0 1 18 0Z' /></svg>\",\"circle-checked\":\"<svg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M15.1663 7.38674V8.00007C15.1655 9.43769 14.7 10.8365 13.8392 11.988C12.9785 13.1394 11.7685 13.9817 10.3899 14.3893C9.0113 14.797 7.53785 14.748 6.18932 14.2498C4.8408 13.7516 3.68944 12.8308 2.90698 11.6248C2.12452 10.4188 1.75287 8.99211 1.84746 7.55761C1.94205 6.12312 2.49781 4.75762 3.43186 3.66479C4.36591 2.57195 5.6282 1.81033 7.03047 1.4935C8.43274 1.17668 9.89985 1.32163 11.213 1.90674' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/><path d='M15.1667 2.6665L8.5 9.33984L6.5 7.33984' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"circle-unchecked\":\"<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><g clip-path='url(#clip0_12462_11016)'><path d='M7.99967 14.6668C11.6816 14.6668 14.6663 11.6821 14.6663 8.00016C14.6663 4.31826 11.6816 1.3335 7.99967 1.3335C4.31778 1.3335 1.33301 4.31826 1.33301 8.00016C1.33301 11.6821 4.31778 14.6668 7.99967 14.6668Z' stroke='#1E1E1E' stroke-opacity='0.7' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_12462_11016'><rect width='16' height='16' fill='white'/></clipPath></defs></svg>\",\"square-checked\":\"<svg width='17' height='16' viewBox='0 0 17 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M6.5 7.33366L8.5 9.33366L15.1667 2.66699' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/><path d='M14.5 8V12.6667C14.5 13.0203 14.3595 13.3594 14.1095 13.6095C13.8594 13.8595 13.5203 14 13.1667 14H3.83333C3.47971 14 3.14057 13.8595 2.89052 13.6095C2.64048 13.3594 2.5 13.0203 2.5 12.6667V3.33333C2.5 2.97971 2.64048 2.64057 2.89052 2.39052C3.14057 2.14048 3.47971 2 3.83333 2H11.1667' stroke='#111C44' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"square-unchecked\":\"<svg width='16' height='16' viewBox='0 0 16 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M12.6667 2H3.33333C2.59695 2 2 2.59695 2 3.33333V12.6667C2 13.403 2.59695 14 3.33333 14H12.6667C13.403 14 14 13.403 14 12.6667V3.33333C14 2.59695 13.403 2 12.6667 2Z' stroke='#1E1E1E' stroke-opacity='0.7' stroke-width='1.25' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"angle-down\":\"<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke-width='1.5' stroke='currentColor'><path stroke-linecap='round' stroke-linejoin='round' d='M19.5 8.25l-7.5 7.5-7.5-7.5' /></svg>\",\"document\":\"<svg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' strokeWidth={1.5} stroke='currentColor' dataSlot='icon'><path strokeLinecap='round' strokeLinejoin='round' d='M19.5 14.25v-2.625a3.375 3.375 0 0 0-3.375-3.375h-1.5A1.125 1.125 0 0 1 13.5 7.125v-1.5a3.375 3.375 0 0 0-3.375-3.375H8.25m2.25 0H5.625c-.621 0-1.125.504-1.125 1.125v17.25c0 .621.504 1.125 1.125 1.125h12.75c.621 0 1.125-.504 1.125-1.125V11.25a9 9 0 0 0-9-9Z' /></svg>\",\"remove\":\"<svg class='block-title-svg' xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'><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' /></svg>\",\"vertical_settings\":\"<svg width='14' height='16' viewBox='0 0 14 16' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M2 9.25L2 1.125M2 9.25C2.69036 9.25 3.25 9.80964 3.25 10.5C3.25 11.1904 2.69036 11.75 2 11.75M2 9.25C1.30964 9.25 0.75 9.80964 0.75 10.5C0.75 11.1904 1.30964 11.75 2 11.75M2 14.875L2 11.75M12 9.25V1.125M12 9.25C12.6904 9.25 13.25 9.80964 13.25 10.5C13.25 11.1904 12.6904 11.75 12 11.75M12 9.25C11.3096 9.25 10.75 9.80964 10.75 10.5C10.75 11.1904 11.3096 11.75 12 11.75M12 14.875L12 11.75M7 4.25V1.125M7 4.25C7.69036 4.25 8.25 4.80964 8.25 5.5C8.25 6.19036 7.69036 6.75 7 6.75M7 4.25C6.30964 4.25 5.75 4.80964 5.75 5.5C5.75 6.19036 6.30964 6.75 7 6.75M7 14.875V6.75' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"message\":\"<svg width='16' height='14' viewBox='0 0 16 14' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M5.75 5.5C5.75 5.63807 5.63807 5.75 5.5 5.75C5.36193 5.75 5.25 5.63807 5.25 5.5C5.25 5.36193 5.36193 5.25 5.5 5.25C5.63807 5.25 5.75 5.36193 5.75 5.5ZM5.75 5.5H5.5M8.25 5.5C8.25 5.63807 8.13807 5.75 8 5.75C7.86193 5.75 7.75 5.63807 7.75 5.5C7.75 5.36193 7.86193 5.25 8 5.25C8.13807 5.25 8.25 5.36193 8.25 5.5ZM8.25 5.5H8M10.75 5.5C10.75 5.63807 10.6381 5.75 10.5 5.75C10.3619 5.75 10.25 5.63807 10.25 5.5C10.25 5.36193 10.3619 5.25 10.5 5.25C10.6381 5.25 10.75 5.36193 10.75 5.5ZM10.75 5.5H10.5M1.5 7.50623C1.5 8.57362 2.24894 9.5027 3.30497 9.65797C4.02905 9.76444 4.761 9.84665 5.5 9.90376V13L8.28899 10.211C8.42681 10.0732 8.61289 9.99484 8.80774 9.99001C10.1248 9.95739 11.4221 9.8452 12.695 9.65805C13.751 9.50279 14.5 8.5737 14.5 7.5063V3.4937C14.5 2.42631 13.751 1.49722 12.695 1.34196C11.1627 1.11668 9.59507 1 8.00019 1C6.40517 1 4.83741 1.1167 3.30498 1.34202C2.24894 1.49729 1.5 2.42637 1.5 3.49376V7.50623Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"instant-form-warning\":\"<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M18.108 15L11.4414 3.33332C11.296 3.07682 11.0852 2.86347 10.8305 2.71504C10.5757 2.56661 10.2862 2.4884 9.99136 2.4884C9.69654 2.4884 9.40699 2.56661 9.15226 2.71504C8.89753 2.86347 8.68673 3.07682 8.54136 3.33332L1.8747 15C1.72777 15.2544 1.65072 15.5432 1.65137 15.8371C1.65202 16.1309 1.73035 16.4194 1.8784 16.6732C2.02646 16.927 2.23899 17.1371 2.49444 17.2823C2.7499 17.4275 3.0392 17.5026 3.33303 17.5H16.6664C16.9588 17.4997 17.246 17.4225 17.4991 17.2761C17.7522 17.1297 17.9624 16.9192 18.1085 16.6659C18.2545 16.4126 18.3314 16.1253 18.3313 15.8329C18.3312 15.5405 18.2542 15.2532 18.108 15Z' stroke='#F59E0B' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 7.5V10.8333' stroke='#F59E0B' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 14.1666H10.0083' stroke='#F59E0B' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"vertical_ellipsis\":\"<svg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' width='24' height='24' aria-hidden='true' focusable='false'><path d='M13 19h-2v-2h2v2zm0-6h-2v-2h2v2zm0-6h-2V5h2v2z'></path></svg>\",\"integration\":\"<svg width='24' height='24' viewBox='0 0 24 24' fill='none' style='fill:none' class='srfm-fill-none' xmlns='http://www.w3.org/2000/svg'><path d='M13.5 16.875H16.875M16.875 16.875H20.25M16.875 16.875V13.5M16.875 16.875V20.25M6 10.5H8.25C9.49264 10.5 10.5 9.49264 10.5 8.25V6C10.5 4.75736 9.49264 3.75 8.25 3.75H6C4.75736 3.75 3.75 4.75736 3.75 6V8.25C3.75 9.49264 4.75736 10.5 6 10.5ZM6 20.25H8.25C9.49264 20.25 10.5 19.2426 10.5 18V15.75C10.5 14.5074 9.49264 13.5 8.25 13.5H6C4.75736 13.5 3.75 14.5074 3.75 15.75V18C3.75 19.2426 4.75736 20.25 6 20.25ZM15.75 10.5H18C19.2426 10.5 20.25 9.49264 20.25 8.25V6C20.25 4.75736 19.2426 3.75 18 3.75H15.75C14.5074 3.75 13.5 4.75736 13.5 6V8.25C13.5 9.49264 14.5074 10.5 15.75 10.5Z' stroke='#0F172A' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"validations\":\"<svg width='18' height='18' viewBox='0 0 18 18' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M9 6.5V9.625M16.5 9C16.5 13.1421 13.1421 16.5 9 16.5C4.85786 16.5 1.5 13.1421 1.5 9C1.5 4.85786 4.85786 1.5 9 1.5C13.1421 1.5 16.5 4.85786 16.5 9ZM9 12.125H9.00625V12.1313H9V12.125Z' stroke='#475569' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></svg>\",\"custom_plus_icon\":\"<svg width='8' height='8' viewBox='0 0 8 8' class='srfm-custom-plus-icon'><path fill='srfmDarkColor' d='M4.35613 0.231675L3.52528 0.231675V3.52561L0.231343 3.52561V4.35647L3.52528 4.35647V7.65041L4.35613 7.65041L4.35613 4.35647H7.65007V3.52561H4.35613L4.35613 0.231675Z'/></svg>\",\"warning\":\"<svg width='20' height='20' viewBox='0 0 20 20' fill='none' xmlns='http://www.w3.org/2000/svg'><path d='M18.1085 14.9999L11.4419 3.33319C11.2965 3.0767 11.0857 2.86335 10.831 2.71492C10.5762 2.56649 10.2867 2.48828 9.99185 2.48828C9.69703 2.48828 9.40748 2.56649 9.15275 2.71492C8.89802 2.86335 8.68722 3.0767 8.54185 3.33319L1.87519 14.9999C1.72825 15.2543 1.65121 15.5431 1.65186 15.837C1.65251 16.1308 1.73083 16.4192 1.87889 16.673C2.02695 16.9269 2.23948 17.137 2.49493 17.2822C2.75039 17.4274 3.03969 17.5025 3.33352 17.4999H16.6669C16.9593 17.4996 17.2465 17.4223 17.4996 17.2759C17.7527 17.1295 17.9629 16.9191 18.1089 16.6658C18.255 16.4125 18.3319 16.1252 18.3318 15.8328C18.3317 15.5404 18.2547 15.2531 18.1085 14.9999Z' stroke='#EAB308' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' /><path d='M10 7.5V10.8333' stroke='#EAB308' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' /><path d='M10 14.168H10.0083' stroke='#EAB308' strokeWidth='1.5' strokeLinecap='round' strokeLinejoin='round' /></svg>\",\"signature\":\"<svg stroke='#B4B4B4' fill='#B4B4B4' style='fill: #B4B4B4;' strokeWidth='0' viewBox='0 0 32 32' height='24' width='24' xmlns='http://www.w3.org/2000/svg'><path d='M 9.3125 4 C 8.558594 4 7.90625 4.367188 7.3125 4.875 C 6.71875 5.382813 6.171875 6.066406 5.6875 6.9375 C 4.71875 8.683594 4 11.132813 4 14.1875 C 4 15.753906 4.363281 17.367188 5.09375 18.65625 C 5.253906 18.9375 5.515625 19.125 5.71875 19.375 C 5.175781 20.039063 4.28125 21.28125 4.28125 21.28125 L 5.71875 22.71875 C 5.71875 22.71875 6.710938 21.351563 7.34375 20.59375 C 7.746094 20.765625 8.125 21 8.59375 21 C 10.308594 21 12.097656 20.25 13.75 19.3125 C 14.28125 19.71875 14.878906 20 15.5 20 C 17.554688 20 19.117188 18.792969 20.21875 17.71875 C 20.539063 17.40625 20.753906 17.175781 21 16.90625 C 20.996094 17.179688 20.988281 17.429688 21.0625 17.75 C 21.121094 17.992188 21.1875 18.292969 21.4375 18.5625 C 21.6875 18.832031 22.136719 19 22.5 19 C 23.230469 19 23.652344 18.664063 24.09375 18.34375 C 24.535156 18.023438 24.953125 17.640625 25.40625 17.28125 C 26.316406 16.5625 27.285156 16 28 16 L 28 14 C 26.414063 14 25.175781 14.9375 24.1875 15.71875 C 23.71875 16.089844 23.296875 16.414063 22.96875 16.65625 C 22.96875 16.601563 22.96875 16.589844 22.96875 16.53125 C 22.980469 16.167969 23.035156 15.761719 22.96875 15.3125 C 22.9375 15.089844 22.863281 14.855469 22.65625 14.5625 C 22.449219 14.269531 21.984375 14 21.59375 14 C 21.03125 14 20.824219 14.242188 20.625 14.40625 C 20.425781 14.570313 20.277344 14.738281 20.09375 14.9375 C 19.726563 15.335938 19.289063 15.816406 18.8125 16.28125 C 17.972656 17.101563 16.984375 17.722656 15.90625 17.875 C 16.621094 17.300781 17.339844 16.730469 17.84375 16.09375 C 18.507813 15.257813 19 14.40625 19 13.40625 C 19 12.84375 18.929688 12.074219 18.5 11.34375 C 18.070313 10.613281 17.144531 10 16 10 C 14.769531 10 13.648438 10.605469 12.96875 11.5625 C 12.289063 12.519531 12 13.746094 12 15.1875 C 12 16.167969 12.222656 16.980469 12.53125 17.6875 C 11.140625 18.417969 9.699219 19 8.59375 19 C 10.285156 16.464844 12 13.011719 12 8.8125 C 12 7.941406 12.007813 6.914063 11.71875 5.96875 C 11.574219 5.496094 11.34375 5.015625 10.9375 4.625 C 10.53125 4.234375 9.929688 4 9.3125 4 Z M 9.3125 6 C 9.492188 6 9.5 6.035156 9.5625 6.09375 C 9.625 6.152344 9.699219 6.296875 9.78125 6.5625 C 9.941406 7.089844 10 7.980469 10 8.8125 C 10 12.355469 8.484375 15.457031 6.96875 17.78125 C 6.933594 17.722656 6.878906 17.71875 6.84375 17.65625 C 6.324219 16.746094 6 15.421875 6 14.1875 C 6 11.441406 6.65625 9.3125 7.4375 7.90625 C 7.828125 7.203125 8.230469 6.6875 8.59375 6.375 C 8.957031 6.0625 9.265625 6 9.3125 6 Z M 16 12 C 16.554688 12 16.636719 12.132813 16.78125 12.375 C 16.925781 12.617188 17 13.066406 17 13.40625 C 17 13.65625 16.789063 14.238281 16.28125 14.875 C 15.839844 15.429688 15.167969 16.003906 14.4375 16.5625 C 14.261719 16.160156 14 15.867188 14 15.1875 C 14 14.027344 14.246094 13.179688 14.59375 12.6875 C 14.941406 12.195313 15.332031 12 16 12 Z M 4 26 L 4 28 L 28 28 L 28 26 Z' /></svg>\",\"info_circle\":\"<svg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 20 20' fill='none'><g clip-path='url(#clip0_19887_25482)'><path d='M9.99935 18.3327C14.6017 18.3327 18.3327 14.6017 18.3327 9.99935C18.3327 5.39698 14.6017 1.66602 9.99935 1.66602C5.39698 1.66602 1.66602 5.39698 1.66602 9.99935C1.66602 14.6017 5.39698 18.3327 9.99935 18.3327Z' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 6.66602V9.99935' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/><path d='M10 13.334H10.0083' stroke='currentColor' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/></g><defs><clipPath id='clip0_19887_25482'><rect width='20' height='20' fill='white'/></clipPath></defs></svg>\",\"redo\":\"<svg viewBox='0 0 18 18'><polygon class='ql-fill ql-stroke' points='12 10 14 12 16 10 12 10' /><path class='ql-stroke' d='M9.91,13.91A4.6,4.6,0,0,1,9,14a5,5,0,1,1,5-5'/></svg>\",\"undo\":\"<svg viewBox='0 0 18 18'><polygon class='ql-fill ql-stroke' points='6 10 4 12 2 10 6 10' /><path class='ql-stroke' d='M8.09,13.91A4.6,4.6,0,0,0,9,14,5,5,0,1,0,4,9' /></svg>\",\"rocket\":\"<svg width=\\\"16\\\" height=\\\"16\\\" viewBox=\\\"0 0 16 16\\\" fill=\\\"none\\\" xmlns=\\\"http://www.w3.org/2000/svg\\\"><path d=\\\"M3.00033 11C2.00033 11.84 1.66699 14.3333 1.66699 14.3333C1.66699 14.3333 4.16033 14 5.00033 13C5.47366 12.44 5.46699 11.58 4.94033 11.06C4.6812 10.8126 4.33985 10.6697 3.98181 10.6587C3.62376 10.6476 3.27424 10.7691 3.00033 11Z\\\" stroke=\\\"#D54407\\\" stroke-width=\\\"1.25\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M8 10.0001L6 8.00008C6.35476 7.0797 6.80147 6.19746 7.33333 5.36675C8.11012 4.12474 9.19175 3.10212 10.4753 2.39614C11.7589 1.69017 13.2018 1.32433 14.6667 1.33342C14.6667 3.14675 14.1467 6.33342 10.6667 8.66675C9.82459 9.19923 8.93123 9.64591 8 10.0001Z\\\" stroke=\\\"#D54407\\\" stroke-width=\\\"1.25\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M6.00033 8.00009H2.66699C2.66699 8.00009 3.03366 5.98009 4.00033 5.33343C5.08033 4.61343 7.33366 5.33343 7.33366 5.33343\\\" stroke=\\\"#D54407\\\" stroke-width=\\\"1.25\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/><path d=\\\"M8 10.0001V13.3334C8 13.3334 10.02 12.9667 10.6667 12.0001C11.3867 10.9201 10.6667 8.66675 10.6667 8.66675\\\" stroke=\\\"#D54407\\\" stroke-width=\\\"1.25\\\" stroke-linecap=\\\"round\\\" stroke-linejoin=\\\"round\\\"/></svg>\"}")},8661:(e,t,r)=>{"use strict";r.d(t,{K:()=>i});var n=r(38298),o={notify:function(){},get:function(){return[]}};function i(e,t){var r,i=o;function a(){l.onStateChange&&l.onStateChange()}function s(){var o,s,l;r||(r=t?t.addNestedSub(a):e.subscribe(a),o=(0,n.f)(),s=null,l=null,i={clear:function(){s=null,l=null},notify:function(){o((function(){for(var e=s;e;)e.callback(),e=e.next}))},get:function(){for(var e=[],t=s;t;)e.push(t),t=t.next;return e},subscribe:function(e){var t=!0,r=l={callback:e,next:null,prev:l};return r.prev?r.prev.next=r:s=r,function(){t&&null!==s&&(t=!1,r.next?r.next.prev=r.prev:l=r.prev,r.prev?r.prev.next=r.next:s=r.next)}}})}var l={addNestedSub:function(e){return s(),i.subscribe(e)},notifyNestedSubs:function(){i.notify()},handleChangeWrapper:a,isSubscribed:function(){return Boolean(r)},trySubscribe:s,tryUnsubscribe:function(){r&&(r(),r=void 0,i.clear(),i=o)},getListeners:function(){return i}};return l}},9325:(e,t,r)=>{var n=r(34840),o="object"==typeof self&&self&&self.Object===Object&&self,i=n||o||Function("return this")();e.exports=i},10308:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function e(t,r){void 0===r&&(r={});for(var n=[],o="function"==typeof r.replace,u=r.transform||a.returnFirstArg,c=r.library||s,d=c.cloneElement,f=c.createElement,m=c.isValidElement,p=t.length,h=0;h<p;h++){var g=t[h];if(o){var b=r.replace(g,h);if(m(b)){p>1&&(b=d(b,{key:b.key||h})),n.push(u(b,g,h));continue}}if("text"!==g.type){var y=g,v={};l(y)?((0,a.setStyleProp)(y.attribs.style,y.attribs),v=y.attribs):y.attribs&&(v=(0,i.default)(y.attribs,y.name));var D=void 0;switch(g.type){case"script":case"style":g.children[0]&&(v.dangerouslySetInnerHTML={__html:g.children[0].data});break;case"tag":"textarea"===g.name&&g.children[0]?v.defaultValue=g.children[0].data:g.children&&g.children.length&&(D=e(g.children,r));break;default:continue}p>1&&(v.key=h),n.push(u(f(g.name,v,D),g,h))}else{var _=!g.data.trim().length;if(_&&g.parent&&!(0,a.canTextBeChildOfNode)(g.parent))continue;if(r.trim&&_)continue;n.push(u(g.data,g,h))}}return 1===n.length?n[0]:n};var o=r(51609),i=n(r(20840)),a=r(74958),s={cloneElement:o.cloneElement,createElement:o.createElement,isValidElement:o.isValidElement};function l(e){return a.PRESERVE_CUSTOM_ATTRIBUTES&&"tag"===e.type&&(0,a.isCustomComponent)(e.name,e.attribs)}},10392:e=>{e.exports=function(e,t){return null==e?void 0:e[t]}},10540:e=>{"use strict";e.exports=function(e){var t=document.createElement("style");return e.setAttributes(t,e.attributes),e.insert(t,e.options),t}},10560:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-spacing-control{position:relative;display:inline-block}.srfm-spacing-control .components-base-control__label{margin-bottom:5px}.srfm-spacing-control .components-base-control__help{margin-top:-8px}.srfm-spacing-control input[type=number].srfm-spacing-control__number,.srfm-spacing-control .srfm-spacing-control__link{border-left:1px solid;border-right:1px solid;border-color:#e6e7e9;color:#50575e;border-radius:0;box-shadow:none !important;height:30px;margin:0 -1px 0 0;padding-right:1px;width:25%}.srfm-spacing-control input[type=number].srfm-spacing-control__number:focus{z-index:1;outline-offset:-1px;outline:1px solid #ccc}.srfm-spacing-control .srfm-spacing-control__link{border:1px solid #959595;background-color:#959595;color:#fff;justify-content:center;display:flex;align-items:center;padding:2px 0;font-size:12px;line-height:28px;cursor:pointer;transition:none}.srfm-spacing-control .srfm-spacing-control__link.srfm-spacing-control-disconnected{border-color:#e6e7e9;background-color:#fff;color:#959595}.srfm-spacing-control .srfm-spacing-control__mobile-controls button[type=button]>span{cursor:pointer;width:15px;height:15px;font-size:15px}.srfm-spacing-control .srfm-spacing-control__inputs>:first-child.srfm-spacing-control__number{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.srfm-spacing-control .srfm-spacing-control__inputs>:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.srfm-spacing-control .srfm-control__actions .components-tab-panel__tabs{padding-right:4px;margin-right:0}.srfm-spacing-control .srfm-spacing-control__inputs{display:flex}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item{border:0;display:none;font-size:10px;height:30px;justify-content:center;left:50px;line-height:12px;padding:0;position:absolute;text-align:center;text-shadow:none;top:-5px;width:26px;z-index:1;box-shadow:unset;border-radius:unset;color:unset}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item.is-active{display:block}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item:focus:enabled{box-shadow:inset 0 0 0 1px #fff}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item:focus:enabled svg{fill:#fff}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item svg{position:relative}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item.srfm-spacing-control__mobile-controls-item--spacing.components-button.is-secondary:active:not(:disabled),.srfm-spacing-control .srfm-spacing-control__mobile-controls-item.srfm-spacing-control__mobile-controls-item--spacing.components-button.is-tertiary:active:not(:disabled){background:#fff;color:#50575e}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item.components-button.is-secondary:hover:not(:disabled),.srfm-spacing-control .srfm-spacing-control__mobile-controls-item.components-button.is-tertiary:hover:not(:disabled){color:unset;background:unset;box-shadow:unset}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item--default svg{top:3px}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item--desktop svg{top:3px}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item--tablet svg{top:3px}.srfm-spacing-control .srfm-spacing-control__mobile-controls-item--mobile svg{top:3px}.srfm-spacing-control .srfm-spacing-control__input-labels{display:flex;margin-bottom:-3px}.srfm-spacing-control .srfm-spacing-control__input-labels span{text-align:center;width:20%}.srfm-spacing-control .srfm-spacing-control__input-labels .srfm-spacing-control__link-label{width:10%}.srfm-spacing-control .srfm-control__label{margin-bottom:0;width:50%}.srfm-spacing-control .srfm-spacing-control__number-label{color:#ccc;display:block;font-size:10px;margin-top:5px}",""]);const s=a},10629:(e,t,r)=>{"use strict";r.d(t,{A:()=>n});const n=function(e){var t=[],r=null,n=function(){for(var n=arguments.length,o=new Array(n),i=0;i<n;i++)o[i]=arguments[i];t=o,r||(r=requestAnimationFrame((function(){r=null,e.apply(void 0,t)})))};return n.cancel=function(){r&&(cancelAnimationFrame(r),r=null)},n}},10900:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(50442);const o=n.default||n},11561:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=!0,o="Invariant failed";function i(e,t){if(!e){if(n)throw new Error(o);var r="function"==typeof t?t():t,i=r?"".concat(o,": ").concat(r):o;throw new Error(i)}}},12651:(e,t,r)=>{var n=r(74218);e.exports=function(e,t){var r=e.__data__;return n(t)?r["string"==typeof t?"string":"hash"]:r.map}},12749:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;return n?void 0!==t[e]:o.call(t,e)}},14210:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,a){this.acceptsBooleans=2===t||3===t||4===t,this.attributeName=n,this.attributeNamespace=o,this.mustUseProperty=r,this.propertyName=e,this.type=t,this.sanitizeURL=i,this.removeEmptyString=a}const o={};["children","dangerouslySetInnerHTML","defaultValue","defaultChecked","innerHTML","suppressContentEditableWarning","suppressHydrationWarning","style"].forEach((e=>{o[e]=new n(e,0,!1,e,null,!1,!1)})),[["acceptCharset","accept-charset"],["className","class"],["htmlFor","for"],["httpEquiv","http-equiv"]].forEach((([e,t])=>{o[e]=new n(e,1,!1,t,null,!1,!1)})),["contentEditable","draggable","spellCheck","value"].forEach((e=>{o[e]=new n(e,2,!1,e.toLowerCase(),null,!1,!1)})),["autoReverse","externalResourcesRequired","focusable","preserveAlpha"].forEach((e=>{o[e]=new n(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"].forEach((e=>{o[e]=new n(e,3,!1,e.toLowerCase(),null,!1,!1)})),["checked","multiple","muted","selected"].forEach((e=>{o[e]=new n(e,3,!0,e,null,!1,!1)})),["capture","download"].forEach((e=>{o[e]=new n(e,4,!1,e,null,!1,!1)})),["cols","rows","size","span"].forEach((e=>{o[e]=new n(e,6,!1,e,null,!1,!1)})),["rowSpan","start"].forEach((e=>{o[e]=new n(e,5,!1,e.toLowerCase(),null,!1,!1)}));const i=/[\-\:]([a-z])/g,a=e=>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"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,null,!1,!1)})),["xlink:actuate","xlink:arcrole","xlink:role","xlink:show","xlink:title","xlink:type"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/1999/xlink",!1,!1)})),["xml:base","xml:lang","xml:space"].forEach((e=>{const t=e.replace(i,a);o[t]=new n(t,1,!1,e,"http://www.w3.org/XML/1998/namespace",!1,!1)})),["tabIndex","crossOrigin"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!1,!1)})),o.xlinkHref=new n("xlinkHref",1,!1,"xlink:href","http://www.w3.org/1999/xlink",!0,!1),["src","href","action","formAction"].forEach((e=>{o[e]=new n(e,1,!1,e.toLowerCase(),null,!0,!0)}));const{CAMELCASE:s,SAME:l,possibleStandardNames:u}=r(96811),c=RegExp.prototype.test.bind(new RegExp("^(data|aria)-[: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]*$")),d=Object.keys(u).reduce(((e,t)=>{const r=u[t];return r===l?e[t]=t:r===s?e[t.toLowerCase()]=t:e[t]=r,e}),{});t.BOOLEAN=3,t.BOOLEANISH_STRING=2,t.NUMERIC=5,t.OVERLOADED_BOOLEAN=4,t.POSITIVE_NUMERIC=6,t.RESERVED=0,t.STRING=1,t.getPropertyInfo=function(e){return o.hasOwnProperty(e)?o[e]:null},t.isCustomAttribute=c,t.possibleStandardNames=d},14248:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length;++r<n;)if(t(e[r],r,e))return!0;return!1}},14297:(e,t,r)=>{"use strict";r.d(t,{A:()=>x});var n=r(17508),o=r(41079),i=r(4146),a=r.n(i),s=r(51609),l=r.n(s),u=r(44363),c=r(8661),d=r(4595),f=r(41458),m=["getDisplayName","methodName","renderCountProp","shouldHandleStateChanges","storeKey","withRef","forwardRef","context"],p=["reactReduxForwardedRef"],h=[],g=[null,null];function b(e,t){var r=e[1];return[t.payload,r+1]}function y(e,t,r){(0,d.E)((function(){return e.apply(void 0,t)}),r)}function v(e,t,r,n,o,i,a){e.current=n,t.current=o,r.current=!1,i.current&&(i.current=null,a())}function D(e,t,r,n,o,i,a,s,l,u){if(e){var c=!1,d=null,f=function(){if(!c){var e,r,f=t.getState();try{e=n(f,o.current)}catch(e){r=e,d=e}r||(d=null),e===i.current?a.current||l():(i.current=e,s.current=e,a.current=!0,u({type:"STORE_UPDATED",payload:{error:r}}))}};return r.onStateChange=f,r.trySubscribe(),f(),function(){if(c=!0,r.tryUnsubscribe(),r.onStateChange=null,d)throw d}}}var _=function(){return[null,0]};function x(e,t){void 0===t&&(t={});var r=t,i=r.getDisplayName,d=void 0===i?function(e){return"ConnectAdvanced("+e+")"}:i,x=r.methodName,k=void 0===x?"connectAdvanced":x,E=r.renderCountProp,w=void 0===E?void 0:E,C=r.shouldHandleStateChanges,M=void 0===C||C,A=r.storeKey,N=void 0===A?"store":A,j=(r.withRef,r.forwardRef),O=void 0!==j&&j,T=r.context,S=void 0===T?f.t:T,I=(0,o.A)(r,m),F=S;return function(t){var r=t.displayName||t.name||"Component",i=d(r),f=(0,n.A)({},I,{getDisplayName:d,methodName:k,renderCountProp:w,shouldHandleStateChanges:M,storeKey:N,displayName:i,wrappedComponentName:r,WrappedComponent:t}),m=I.pure,x=m?s.useMemo:function(e){return e()};function E(r){var i=(0,s.useMemo)((function(){var e=r.reactReduxForwardedRef,t=(0,o.A)(r,p);return[r.context,e,t]}),[r]),a=i[0],d=i[1],m=i[2],k=(0,s.useMemo)((function(){return a&&a.Consumer&&(0,u.isContextConsumer)(l().createElement(a.Consumer,null))?a:F}),[a,F]),E=(0,s.useContext)(k),w=Boolean(r.store)&&Boolean(r.store.getState)&&Boolean(r.store.dispatch);Boolean(E)&&Boolean(E.store);var C=w?r.store:E.store,A=(0,s.useMemo)((function(){return function(t){return e(t.dispatch,f)}(C)}),[C]),N=(0,s.useMemo)((function(){if(!M)return g;var e=(0,c.K)(C,w?null:E.subscription),t=e.notifyNestedSubs.bind(e);return[e,t]}),[C,w,E]),j=N[0],O=N[1],T=(0,s.useMemo)((function(){return w?E:(0,n.A)({},E,{subscription:j})}),[w,E,j]),S=(0,s.useReducer)(b,h,_),I=S[0][0],L=S[1];if(I&&I.error)throw I.error;var R=(0,s.useRef)(),P=(0,s.useRef)(m),B=(0,s.useRef)(),z=(0,s.useRef)(!1),q=x((function(){return B.current&&m===P.current?B.current:A(C.getState(),m)}),[C,I,m]);y(v,[P,R,z,m,q,B,O]),y(D,[M,C,j,A,P,R,z,B,O,L],[C,j,A]);var V=(0,s.useMemo)((function(){return l().createElement(t,(0,n.A)({},q,{ref:d}))}),[d,t,q]);return(0,s.useMemo)((function(){return M?l().createElement(k.Provider,{value:T},V):V}),[k,V,T])}var C=m?l().memo(E):E;if(C.WrappedComponent=t,C.displayName=E.displayName=i,O){var A=l().forwardRef((function(e,t){return l().createElement(C,(0,n.A)({},e,{reactReduxForwardedRef:t}))}));return A.displayName=i,A.WrappedComponent=t,a()(A,t)}return a()(C,t)}}},14528:e=>{e.exports=function(e,t){for(var r=-1,n=t.length,o=e.length;++r<n;)e[o+r]=t[r];return e}},15270:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=t.CARRIAGE_RETURN_PLACEHOLDER=t.CARRIAGE_RETURN_REGEX=t.CARRIAGE_RETURN=t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES=void 0,t.CASE_SENSITIVE_TAG_NAMES=["animateMotion","animateTransform","clipPath","feBlend","feColorMatrix","feComponentTransfer","feComposite","feConvolveMatrix","feDiffuseLighting","feDisplacementMap","feDropShadow","feFlood","feFuncA","feFuncB","feFuncG","feFuncR","feGaussianBlur","feImage","feMerge","feMergeNode","feMorphology","feOffset","fePointLight","feSpecularLighting","feSpotLight","feTile","feTurbulence","foreignObject","linearGradient","radialGradient","textPath"],t.CASE_SENSITIVE_TAG_NAMES_MAP=t.CASE_SENSITIVE_TAG_NAMES.reduce((function(e,t){return e[t.toLowerCase()]=t,e}),{}),t.CARRIAGE_RETURN="\r",t.CARRIAGE_RETURN_REGEX=new RegExp(t.CARRIAGE_RETURN,"g"),t.CARRIAGE_RETURN_PLACEHOLDER="__HTML_DOM_PARSER_CARRIAGE_RETURN_PLACEHOLDER_".concat(Date.now(),"__"),t.CARRIAGE_RETURN_PLACEHOLDER_REGEX=new RegExp(t.CARRIAGE_RETURN_PLACEHOLDER,"g")},17508:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},17670:(e,t,r)=>{var n=r(12651);e.exports=function(e){var t=n(this,e).delete(e);return this.size-=t?1:0,t}},19219:e=>{e.exports=function(e,t){return e.has(t)}},19788:e=>{var t=/\/\*[^*]*\*+([^/*][^*]*\*+)*\//g,r=/\n/g,n=/^\s*/,o=/^(\*?[-#/*\\\w]+(\[[0-9a-z_-]+\])?)\s*/,i=/^:\s*/,a=/^((?:'(?:\\'|.)*?'|"(?:\\"|.)*?"|\([^)]*?\)|[^};])+)/,s=/^[;\s]*/,l=/^\s+|\s+$/g,u="";function c(e){return e?e.replace(l,u):u}e.exports=function(e,l){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];l=l||{};var d=1,f=1;function m(e){var t=e.match(r);t&&(d+=t.length);var n=e.lastIndexOf("\n");f=~n?e.length-n:f+e.length}function p(){var e={line:d,column:f};return function(t){return t.position=new h(e),v(),t}}function h(e){this.start=e,this.end={line:d,column:f},this.source=l.source}h.prototype.content=e;var g=[];function b(t){var r=new Error(l.source+":"+d+":"+f+": "+t);if(r.reason=t,r.filename=l.source,r.line=d,r.column=f,r.source=e,!l.silent)throw r;g.push(r)}function y(t){var r=t.exec(e);if(r){var n=r[0];return m(n),e=e.slice(n.length),r}}function v(){y(n)}function D(e){var t;for(e=e||[];t=_();)!1!==t&&e.push(t);return e}function _(){var t=p();if("/"==e.charAt(0)&&"*"==e.charAt(1)){for(var r=2;u!=e.charAt(r)&&("*"!=e.charAt(r)||"/"!=e.charAt(r+1));)++r;if(r+=2,u===e.charAt(r-1))return b("End of comment missing");var n=e.slice(2,r-2);return f+=2,m(n),e=e.slice(r),f+=2,t({type:"comment",comment:n})}}function x(){var e=p(),r=y(o);if(r){if(_(),!y(i))return b("property missing ':'");var n=y(a),l=e({type:"declaration",property:c(r[0].replace(t,u)),value:n?c(n[0].replace(t,u)):u});return y(s),l}}return v(),function(){var e,t=[];for(D(t);e=x();)!1!==e&&(t.push(e),D(t));return t}()}},20125:(e,t,r)=>{"use strict";r(51609),r(3769),r(8661),r(4595),r(41458)},20317:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e,n){r[++t]=[n,e]})),r}},20840:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){void 0===e&&(e={});var r={},u=Boolean(e.type&&s[e.type]);for(var c in e){var d=e[c];if((0,n.isCustomAttribute)(c))r[c]=d;else{var f=c.toLowerCase(),m=l(f);if(m){var p=(0,n.getPropertyInfo)(m);switch(i.includes(m)&&a.includes(t)&&!u&&(m=l("default"+f)),r[m]=d,p&&p.type){case n.BOOLEAN:r[m]=!0;break;case n.OVERLOADED_BOOLEAN:""===d&&(r[m]=!0)}}else o.PRESERVE_CUSTOM_ATTRIBUTES&&(r[c]=d)}}return(0,o.setStyleProp)(e.style,r),r};var n=r(14210),o=r(74958),i=["checked","value"],a=["input","select","textarea"],s={reset:!0,submit:!0};function l(e){return n.possibleStandardNames[e]}},21020:(e,t,r)=>{"use strict";var n=r(51609),o=Symbol.for("react.element"),i=Symbol.for("react.fragment"),a=Object.prototype.hasOwnProperty,s=n.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,l={key:!0,ref:!0,__self:!0,__source:!0};function u(e,t,r){var n,i={},u=null,c=null;for(n in void 0!==r&&(u=""+r),void 0!==t.key&&(u=""+t.key),void 0!==t.ref&&(c=t.ref),t)a.call(t,n)&&!l.hasOwnProperty(n)&&(i[n]=t[n]);if(e&&e.defaultProps)for(n in t=e.defaultProps)void 0===i[n]&&(i[n]=t[n]);return{$$typeof:o,type:e,key:u,ref:c,props:i,_owner:s.current}}t.Fragment=i,t.jsx=u,t.jsxs=u},21549:(e,t,r)=>{var n=r(22032),o=r(63862),i=r(66721),a=r(12749),s=r(35749);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},21724:(e,t,r)=>{"use strict";r.d(t,{AH:()=>m,I4:()=>v,i7:()=>b,mj:()=>y});let n={data:""},o=e=>"object"==typeof window?((e?e.querySelector("#_goober"):window._goober)||Object.assign((e||document.head).appendChild(document.createElement("style")),{innerHTML:" ",id:"_goober"})).firstChild:e||n,i=/(?:([\u0080-\uFFFF\w-%@]+) *:? *([^{;]+?);|([^;}{]*?) *{)|(}\s*)/g,a=/\/\*[^]*?\*\/|  +/g,s=/\n+/g,l=(e,t)=>{let r="",n="",o="";for(let i in e){let a=e[i];"@"==i[0]?"i"==i[1]?r=i+" "+a+";":n+="f"==i[1]?l(a,i):i+"{"+l(a,"k"==i[1]?"":t)+"}":"object"==typeof a?n+=l(a,t?t.replace(/([^,])+/g,(e=>i.replace(/([^,]*:\S+\([^)]*\))|([^,])+/g,(t=>/&/.test(t)?t.replace(/&/g,e):e?e+" "+t:t)))):i):null!=a&&(i=/^--/.test(i)?i:i.replace(/[A-Z]/g,"-$&").toLowerCase(),o+=l.p?l.p(i,a):i+":"+a+";")}return r+(t&&o?t+"{"+o+"}":o)+n},u={},c=e=>{if("object"==typeof e){let t="";for(let r in e)t+=r+c(e[r]);return t}return e},d=(e,t,r,n,o)=>{let d=c(e),f=u[d]||(u[d]=(e=>{let t=0,r=11;for(;t<e.length;)r=101*r+e.charCodeAt(t++)>>>0;return"go"+r})(d));if(!u[f]){let t=d!==e?e:(e=>{let t,r,n=[{}];for(;t=i.exec(e.replace(a,""));)t[4]?n.shift():t[3]?(r=t[3].replace(s," ").trim(),n.unshift(n[0][r]=n[0][r]||{})):n[0][t[1]]=t[2].replace(s," ").trim();return n[0]})(e);u[f]=l(o?{["@keyframes "+f]:t}:t,r?"":"."+f)}let m=r&&u.g?u.g:null;return r&&(u.g=u[f]),((e,t,r,n)=>{n?t.data=t.data.replace(n,e):-1===t.data.indexOf(e)&&(t.data=r?e+t.data:t.data+e)})(u[f],t,n,m),f},f=(e,t,r)=>e.reduce(((e,n,o)=>{let i=t[o];if(i&&i.call){let e=i(r),t=e&&e.props&&e.props.className||/^go/.test(e)&&e;i=t?"."+t:e&&"object"==typeof e?e.props?"":l(e,""):!1===e?"":e}return e+n+(null==i?"":i)}),"");function m(e){let t=this||{},r=e.call?e(t.p):e;return d(r.unshift?r.raw?f(r,[].slice.call(arguments,1),t.p):r.reduce(((e,r)=>Object.assign(e,r&&r.call?r(t.p):r)),{}):r,o(t.target),t.g,t.o,t.k)}m.bind({g:1});let p,h,g,b=m.bind({k:1});function y(e,t,r,n){l.p=t,p=e,h=r,g=n}function v(e,t){let r=this||{};return function(){let n=arguments;function o(i,a){let s=Object.assign({},i),l=s.className||o.className;r.p=Object.assign({theme:h&&h()},s),r.o=/ *go\d+/.test(l),s.className=m.apply(r,n)+(l?" "+l:""),t&&(s.ref=a);let u=e;return e[0]&&(u=s.as||e,delete s.as),g&&u[0]&&g(s),p(u,s)}return t?t(o):o}}},21986:(e,t,r)=>{var n=r(51873),o=r(37828),i=r(75288),a=r(25911),s=r(20317),l=r(84247),u=n?n.prototype:void 0,c=u?u.valueOf:void 0;e.exports=function(e,t,r,n,u,d,f){switch(r){case"[object DataView]":if(e.byteLength!=t.byteLength||e.byteOffset!=t.byteOffset)return!1;e=e.buffer,t=t.buffer;case"[object ArrayBuffer]":return!(e.byteLength!=t.byteLength||!d(new o(e),new o(t)));case"[object Boolean]":case"[object Date]":case"[object Number]":return i(+e,+t);case"[object Error]":return e.name==t.name&&e.message==t.message;case"[object RegExp]":case"[object String]":return e==t+"";case"[object Map]":var m=s;case"[object Set]":var p=1&n;if(m||(m=l),e.size!=t.size&&!p)return!1;var h=f.get(e);if(h)return h==t;n|=2,f.set(e,t);var g=a(m(e),m(t),n,u,d,f);return f.delete(e),g;case"[object Symbol]":if(c)return c.call(e)==c.call(t)}return!1}},22032:(e,t,r)=>{var n=r(81042);e.exports=function(){this.__data__=n?n(null):{},this.size=0}},22799:(e,t)=>{"use strict";var r=60103,n=60106,o=60107,i=60108,a=60114,s=60109,l=60110,u=60112,c=60113,d=60120,f=60115,m=60116;if("function"==typeof Symbol&&Symbol.for){var p=Symbol.for;r=p("react.element"),n=p("react.portal"),o=p("react.fragment"),i=p("react.strict_mode"),a=p("react.profiler"),s=p("react.provider"),l=p("react.context"),u=p("react.forward_ref"),c=p("react.suspense"),d=p("react.suspense_list"),f=p("react.memo"),m=p("react.lazy"),p("react.block"),p("react.server.block"),p("react.fundamental"),p("react.debug_trace_mode"),p("react.legacy_hidden")}t.isContextConsumer=function(e){return function(e){if("object"==typeof e&&null!==e){var t=e.$$typeof;switch(t){case r:switch(e=e.type){case o:case a:case i:case c:case d:return e;default:switch(e=e&&e.$$typeof){case l:case u:case m:case f:case s:return e;default:return t}}case n:return t}}}(e)===l}},23805:e=>{e.exports=function(e){var t=typeof e;return null!=e&&("object"==t||"function"==t)}},24739:(e,t,r)=>{var n=r(26025);e.exports=function(e){var t=this.__data__,r=n(t,e);return r<0?void 0:t[r][1]}},25911:(e,t,r)=>{var n=r(38859),o=r(14248),i=r(19219);e.exports=function(e,t,r,a,s,l){var u=1&r,c=e.length,d=t.length;if(c!=d&&!(u&&d>c))return!1;var f=l.get(e),m=l.get(t);if(f&&m)return f==t&&m==e;var p=-1,h=!0,g=2&r?new n:void 0;for(l.set(e,t),l.set(t,e);++p<c;){var b=e[p],y=t[p];if(a)var v=u?a(y,b,p,t,e,l):a(b,y,p,e,t,l);if(void 0!==v){if(v)continue;h=!1;break}if(g){if(!o(t,(function(e,t){if(!i(g,t)&&(b===e||s(b,e,r,a,l)))return g.push(t)}))){h=!1;break}}else if(b!==y&&!s(b,y,r,a,l)){h=!1;break}}return l.delete(e),l.delete(t),h}},26025:(e,t,r)=>{var n=r(75288);e.exports=function(e,t){for(var r=e.length;r--;)if(n(e[r][0],t))return r;return-1}},26344:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(6378),o=r(87445);function i(e){var t=(0,o.A)(e,"string");return"symbol"==(0,n.A)(t)?t:t+""}},27301:e=>{e.exports=function(e){return function(t){return e(t)}}},27534:(e,t,r)=>{var n=r(72552),o=r(40346);e.exports=function(e){return o(e)&&"[object Arguments]"==n(e)}},27587:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=r(17508);function o(e,t,r){return(0,n.A)({},r,e,t)}const i=[function(e){return"function"==typeof e?function(e){return function(t,r){r.displayName;var n,o=r.pure,i=r.areMergedPropsEqual,a=!1;return function(t,r,s){var l=e(t,r,s);return a?o&&i(l,n)||(n=l):(a=!0,n=l),n}}}(e):void 0},function(e){return e?void 0:function(){return o}}]},27723:e=>{"use strict";e.exports=window.wp.i18n},28303:(e,t,r)=>{var n=r(56110)(r(9325),"WeakMap");e.exports=n},29817:e=>{e.exports=function(e){return this.__data__.has(e)}},30294:e=>{e.exports=function(e){return"number"==typeof e&&e>-1&&e%1==0&&e<=9007199254740991}},30361:e=>{var t=/^(?:0|[1-9]\d*)$/;e.exports=function(e,r){var n=typeof e;return!!(r=null==r?9007199254740991:r)&&("number"==n||"symbol"!=n&&t.test(e))&&e>-1&&e%1==0&&e<r}},31175:(e,t,r)=>{var n=r(26025);e.exports=function(e,t){var r=this.__data__,o=n(r,e);return o<0?(++this.size,r.push([e,t])):r[o][1]=t,this}},31380:e=>{e.exports=function(e){return this.__data__.set(e,"__lodash_hash_undefined__"),this}},31601:e=>{"use strict";e.exports=function(e){return e[1]}},32737:(e,t,r)=>{"use strict";r.d(t,{Kr:()=>i,hb:()=>a});var n=r(51609);function o(e,t){var r=(0,n.useState)((function(){return{inputs:t,result:e()}}))[0],o=(0,n.useRef)(!0),i=(0,n.useRef)(r),a=o.current||Boolean(t&&i.current.inputs&&function(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(e[r]!==t[r])return!1;return!0}(t,i.current.inputs))?i.current:{inputs:t,result:e()};return(0,n.useEffect)((function(){o.current=!1,i.current=a}),[a]),a.result}var i=o,a=function(e,t){return o((function(){return e}),t)}},32804:(e,t,r)=>{var n=r(56110)(r(9325),"Promise");e.exports=n},34164:(e,t,r)=>{"use strict";function n(e){var t,r,o="";if("string"==typeof e||"number"==typeof e)o+=e;else if("object"==typeof e)if(Array.isArray(e)){var i=e.length;for(t=0;t<i;t++)e[t]&&(r=n(e[t]))&&(o&&(o+=" "),o+=r)}else for(r in e)e[r]&&(o&&(o+=" "),o+=r);return o}function o(){for(var e,t,r=0,o="",i=arguments.length;r<i;r++)(e=arguments[r])&&(t=n(e))&&(o&&(o+=" "),o+=t);return o}r.d(t,{$:()=>o,A:()=>i});const i=o},34840:(e,t,r)=>{var n="object"==typeof r.g&&r.g&&r.g.Object===Object&&r.g;e.exports=n},35229:function(e,t,r){"use strict";var n=(this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}})(r(51133)),o=r(98917);function i(e,t){var r={};return e&&"string"==typeof e?((0,n.default)(e,(function(e,n){e&&n&&(r[(0,o.camelCase)(e,t)]=n)})),r):r}i.default=i,e.exports=i},35749:(e,t,r)=>{var n=r(81042);e.exports=function(e,t){var r=this.__data__;return this.size+=this.has(e)?0:1,r[e]=n&&void 0===t?"__lodash_hash_undefined__":t,this}},36323:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-gradient-picker .components-custom-gradient-picker__gradient-bar{border-radius:5px;height:30px}.srfm-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__control-point-button{top:9px;width:12px;height:12px}.srfm-gradient-picker .components-custom-gradient-picker__gradient-bar .components-custom-gradient-picker__insert-point{top:7px}.srfm-inspector-tab .srfm-background-gradient .srfm-color-popover-container,.srfm-inspector-tab .srfm-background-gradient .srfm-multi-buttons-control,.srfm-inspector-tab .srfm-background-gradient .srfm-size-type-field-tabs,.srfm-inspector-tab .srfm-background-gradient .components-button-group,.srfm-background-image-overlay-gradient .srfm-color-popover-container,.srfm-background-image-overlay-gradient .srfm-multi-buttons-control,.srfm-background-image-overlay-gradient .srfm-size-type-field-tabs,.srfm-background-image-overlay-gradient .components-button-group{margin-bottom:24px}.srfm-inspector-tab .srfm-background-gradient .srfm-size-type-field-tabs,.srfm-background-image-overlay-gradient .srfm-size-type-field-tabs{display:block}.srfm-inspector-tab .srfm-background-gradient .srfm-gradient-advanced-option,.srfm-background-image-overlay-gradient .srfm-gradient-advanced-option{width:100%;justify-content:right;margin-bottom:5px;padding-right:0}",""]);const s=a},36957:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)Object.prototype.hasOwnProperty.call(t,r)&&(e[r]=t[r])},n(e,t)},function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Class extends value "+String(t)+" is not a constructor or null");function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)};Object.defineProperty(t,"__esModule",{value:!0}),t.cloneNode=t.hasChildren=t.isDocument=t.isDirective=t.isComment=t.isText=t.isCDATA=t.isTag=t.Element=t.Document=t.CDATA=t.NodeWithChildren=t.ProcessingInstruction=t.Comment=t.Text=t.DataNode=t.Node=void 0;var a=r(45413),s=function(){function e(){this.parent=null,this.prev=null,this.next=null,this.startIndex=null,this.endIndex=null}return Object.defineProperty(e.prototype,"parentNode",{get:function(){return this.parent},set:function(e){this.parent=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"previousSibling",{get:function(){return this.prev},set:function(e){this.prev=e},enumerable:!1,configurable:!0}),Object.defineProperty(e.prototype,"nextSibling",{get:function(){return this.next},set:function(e){this.next=e},enumerable:!1,configurable:!0}),e.prototype.cloneNode=function(e){return void 0===e&&(e=!1),x(this,e)},e}();t.Node=s;var l=function(e){function t(t){var r=e.call(this)||this;return r.data=t,r}return o(t,e),Object.defineProperty(t.prototype,"nodeValue",{get:function(){return this.data},set:function(e){this.data=e},enumerable:!1,configurable:!0}),t}(s);t.DataNode=l;var u=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Text,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 3},enumerable:!1,configurable:!0}),t}(l);t.Text=u;var c=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Comment,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 8},enumerable:!1,configurable:!0}),t}(l);t.Comment=c;var d=function(e){function t(t,r){var n=e.call(this,r)||this;return n.name=t,n.type=a.ElementType.Directive,n}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),t}(l);t.ProcessingInstruction=d;var f=function(e){function t(t){var r=e.call(this)||this;return r.children=t,r}return o(t,e),Object.defineProperty(t.prototype,"firstChild",{get:function(){var e;return null!==(e=this.children[0])&&void 0!==e?e:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"lastChild",{get:function(){return this.children.length>0?this.children[this.children.length-1]:null},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"childNodes",{get:function(){return this.children},set:function(e){this.children=e},enumerable:!1,configurable:!0}),t}(s);t.NodeWithChildren=f;var m=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.CDATA,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 4},enumerable:!1,configurable:!0}),t}(f);t.CDATA=m;var p=function(e){function t(){var t=null!==e&&e.apply(this,arguments)||this;return t.type=a.ElementType.Root,t}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 9},enumerable:!1,configurable:!0}),t}(f);t.Document=p;var h=function(e){function t(t,r,n,o){void 0===n&&(n=[]),void 0===o&&(o="script"===t?a.ElementType.Script:"style"===t?a.ElementType.Style:a.ElementType.Tag);var i=e.call(this,n)||this;return i.name=t,i.attribs=r,i.type=o,i}return o(t,e),Object.defineProperty(t.prototype,"nodeType",{get:function(){return 1},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"tagName",{get:function(){return this.name},set:function(e){this.name=e},enumerable:!1,configurable:!0}),Object.defineProperty(t.prototype,"attributes",{get:function(){var e=this;return Object.keys(this.attribs).map((function(t){var r,n;return{name:t,value:e.attribs[t],namespace:null===(r=e["x-attribsNamespace"])||void 0===r?void 0:r[t],prefix:null===(n=e["x-attribsPrefix"])||void 0===n?void 0:n[t]}}))},enumerable:!1,configurable:!0}),t}(f);function g(e){return(0,a.isTag)(e)}function b(e){return e.type===a.ElementType.CDATA}function y(e){return e.type===a.ElementType.Text}function v(e){return e.type===a.ElementType.Comment}function D(e){return e.type===a.ElementType.Directive}function _(e){return e.type===a.ElementType.Root}function x(e,t){var r;if(void 0===t&&(t=!1),y(e))r=new u(e.data);else if(v(e))r=new c(e.data);else if(g(e)){var n=t?k(e.children):[],o=new h(e.name,i({},e.attribs),n);n.forEach((function(e){return e.parent=o})),null!=e.namespace&&(o.namespace=e.namespace),e["x-attribsNamespace"]&&(o["x-attribsNamespace"]=i({},e["x-attribsNamespace"])),e["x-attribsPrefix"]&&(o["x-attribsPrefix"]=i({},e["x-attribsPrefix"])),r=o}else if(b(e)){n=t?k(e.children):[];var a=new m(n);n.forEach((function(e){return e.parent=a})),r=a}else if(_(e)){n=t?k(e.children):[];var s=new p(n);n.forEach((function(e){return e.parent=s})),e["x-mode"]&&(s["x-mode"]=e["x-mode"]),r=s}else{if(!D(e))throw new Error("Not implemented yet: ".concat(e.type));var l=new d(e.name,e.data);null!=e["x-name"]&&(l["x-name"]=e["x-name"],l["x-publicId"]=e["x-publicId"],l["x-systemId"]=e["x-systemId"]),r=l}return r.startIndex=e.startIndex,r.endIndex=e.endIndex,null!=e.sourceCodeLocation&&(r.sourceCodeLocation=e.sourceCodeLocation),r}function k(e){for(var t=e.map((function(e){return x(e,!0)})),r=1;r<t.length;r++)t[r].prev=t[r-1],t[r-1].next=t[r];return t}t.Element=h,t.isTag=g,t.isCDATA=b,t.isText=y,t.isComment=v,t.isDirective=D,t.isDocument=_,t.hasChildren=function(e){return Object.prototype.hasOwnProperty.call(e,"children")},t.cloneNode=x},37167:(e,t,r)=>{var n=r(4901),o=r(27301),i=r(86009),a=i&&i.isTypedArray,s=a?o(a):n;e.exports=s},37217:(e,t,r)=>{var n=r(80079),o=r(51420),i=r(90938),a=r(63605),s=r(29817),l=r(80945);function u(e){var t=this.__data__=new n(e);this.size=t.size}u.prototype.clear=o,u.prototype.delete=i,u.prototype.get=a,u.prototype.has=s,u.prototype.set=l,e.exports=u},37828:(e,t,r)=>{var n=r(9325).Uint8Array;e.exports=n},38209:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=r(39693);function o(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function i(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?o(Object(r),!0).forEach((function(t){(0,n.A)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}},38298:(e,t,r)=>{"use strict";r.d(t,{d:()=>o,f:()=>i});var n=function(e){e()},o=function(e){return n=e},i=function(){return n}},38859:(e,t,r)=>{var n=r(53661),o=r(31380),i=r(51459);function a(e){var t=-1,r=null==e?0:e.length;for(this.__data__=new n;++t<r;)this.add(e[t])}a.prototype.add=a.prototype.push=o,a.prototype.has=i,e.exports=a},39380:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-text-control{position:relative}.srfm-text-control--open-dynamic-content{flex-direction:column;align-items:unset}.srfm-text-control .components-base-control__field{margin-bottom:0}.srfm-text-control .components-text-control__input{margin-left:0;margin-right:0;color:#50575e;border-color:#e6e7e9}.srfm-text-control .components-text-control__input:focus{border-color:#959595;box-shadow:unset}.srfm-text-control .srfm-control__header .srfm-number-control__actions .srfm-reset{height:fit-content}.srfm-text-control__controls{position:relative}.srfm-text-control__controls .components-dropdown{position:absolute;top:0;right:0}.srfm-text-control__controls .components-dropdown.srfm-scroll-dropdown .components-dropdown-menu__toggle{min-width:21px;padding:0;max-height:31px}.srfm-text-control__controls .components-dropdown.srfm-scroll-dropdown .components-dropdown-menu__toggle svg{position:absolute;right:0;min-height:31px}.srfm-text-control__controls>.components-button{position:absolute;right:0;bottom:0;padding:0 8px;border-radius:2px;height:30px}.srfm-text-control__controls>.components-button svg{width:18px;stroke:#555d66;stroke-width:1.4;fill:none}.srfm-text-control__controls-inline .components-base-control__field{display:flex;align-items:center}.srfm-text-control__controls-inline .components-base-control__field>label{flex:50%;margin-bottom:unset}.srfm-text-control__controls-inline .components-base-control__field>input{flex:50%}.srfm-text-control__controls-textarea{position:relative}.srfm-text-control__controls-textarea>.components-button{top:2px;bottom:auto}.srfm-text-control__controls-textarea textarea{color:#50575e;border-color:#e6e7e9}.srfm-text-control__controls-textarea textarea:focus{border-color:#959595;box-shadow:unset}.srfm-text-control.components-base-control>.components-base-control__help{margin-top:10px}.srfm-text-control.srfm-with-dropdown .components-text-control__input{padding-right:35px}",""]);const s=a},39693:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(26344);function o(e,t,r){return(t=(0,n.A)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},40346:e=>{e.exports=function(e){return null!=e&&"object"==typeof e}},41079:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}r.d(t,{A:()=>n})},41141:function(e,t,r){"use strict";var n=this&&this.__createBinding||(Object.create?function(e,t,r,n){void 0===n&&(n=r);var o=Object.getOwnPropertyDescriptor(t,r);o&&!("get"in o?!t.__esModule:o.writable||o.configurable)||(o={enumerable:!0,get:function(){return t[r]}}),Object.defineProperty(e,n,o)}:function(e,t,r,n){void 0===n&&(n=r),e[n]=t[r]}),o=this&&this.__exportStar||function(e,t){for(var r in e)"default"===r||Object.prototype.hasOwnProperty.call(t,r)||n(t,e,r)};Object.defineProperty(t,"__esModule",{value:!0}),t.DomHandler=void 0;var i=r(45413),a=r(36957);o(r(36957),t);var s={withStartIndices:!1,withEndIndices:!1,xmlMode:!1},l=function(){function e(e,t,r){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null,"function"==typeof t&&(r=t,t=s),"object"==typeof e&&(t=e,e=void 0),this.callback=null!=e?e:null,this.options=null!=t?t:s,this.elementCB=null!=r?r:null}return e.prototype.onparserinit=function(e){this.parser=e},e.prototype.onreset=function(){this.dom=[],this.root=new a.Document(this.dom),this.done=!1,this.tagStack=[this.root],this.lastNode=null,this.parser=null},e.prototype.onend=function(){this.done||(this.done=!0,this.parser=null,this.handleCallback(null))},e.prototype.onerror=function(e){this.handleCallback(e)},e.prototype.onclosetag=function(){this.lastNode=null;var e=this.tagStack.pop();this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),this.elementCB&&this.elementCB(e)},e.prototype.onopentag=function(e,t){var r=this.options.xmlMode?i.ElementType.Tag:void 0,n=new a.Element(e,t,void 0,r);this.addNode(n),this.tagStack.push(n)},e.prototype.ontext=function(e){var t=this.lastNode;if(t&&t.type===i.ElementType.Text)t.data+=e,this.options.withEndIndices&&(t.endIndex=this.parser.endIndex);else{var r=new a.Text(e);this.addNode(r),this.lastNode=r}},e.prototype.oncomment=function(e){if(this.lastNode&&this.lastNode.type===i.ElementType.Comment)this.lastNode.data+=e;else{var t=new a.Comment(e);this.addNode(t),this.lastNode=t}},e.prototype.oncommentend=function(){this.lastNode=null},e.prototype.oncdatastart=function(){var e=new a.Text(""),t=new a.CDATA([e]);this.addNode(t),e.parent=t,this.lastNode=e},e.prototype.oncdataend=function(){this.lastNode=null},e.prototype.onprocessinginstruction=function(e,t){var r=new a.ProcessingInstruction(e,t);this.addNode(r)},e.prototype.handleCallback=function(e){if("function"==typeof this.callback)this.callback(e,this.dom);else if(e)throw e},e.prototype.addNode=function(e){var t=this.tagStack[this.tagStack.length-1],r=t.children[t.children.length-1];this.options.withStartIndices&&(e.startIndex=this.parser.startIndex),this.options.withEndIndices&&(e.endIndex=this.parser.endIndex),t.children.push(e),r&&(e.prev=r,r.next=e),e.parent=t,this.lastNode=null},e}();t.DomHandler=l,t.default=l},41458:(e,t,r)=>{"use strict";r.d(t,{t:()=>o});var n=r(51609),o=r.n(n)().createContext(null)},41657:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(94456);function o(e,t){e.prototype=Object.create(t.prototype),e.prototype.constructor=e,(0,n.A)(e,t)}},41811:(e,t,r)=>{"use strict";r.d(t,{A:()=>i});var n=Number.isNaN||function(e){return"number"==typeof e&&e!=e};function o(e,t){if(e.length!==t.length)return!1;for(var r=0;r<e.length;r++)if(!((o=e[r])===(i=t[r])||n(o)&&n(i)))return!1;var o,i;return!0}const i=function(e,t){var r;void 0===t&&(t=o);var n,i=[],a=!1;return function(){for(var o=[],s=0;s<arguments.length;s++)o[s]=arguments[s];return a&&r===this&&t(o,i)||(n=e.apply(this,o),a=!0,r=this,i=o),n}}},42724:(e,t,r)=>{"use strict";r.d(t,{r:()=>n.unstable_batchedUpdates});var n=r(75795)},43656:e=>{"use strict";e.exports=window.wp.editor},44363:(e,t,r)=>{"use strict";e.exports=r(22799)},44676:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-range-control .srfm-range-control__mobile-controls{display:flex;width:100%;align-items:center}.srfm-range-control .srfm-range-control__mobile-controls .components-base-control.components-range-control{-webkit-tap-highlight-color:rgba(0,0,0,0);box-sizing:border-box;align-items:flex-start;-webkit-box-pack:start;justify-content:flex-start;margin-right:20px;position:relative;width:100%;margin-bottom:0;max-height:30px}.srfm-range-control .srfm-range-control__mobile-controls .components-base-control.components-range-control .components-range-control__tooltip{left:45%}.srfm-range-control .srfm-range-control__mobile-controls .components-input-control__container{flex:0 0 0%;width:100%}.srfm-range-control .srfm-range-control__mobile-controls .components-number-control{width:35%;margin-left:10px}.srfm-range-control .srfm-range-control__mobile-controls .components-number-control .components-input-control__input{padding:0 1px 0 6px !important;text-align:left;font-size:14px}.srfm-range-control .srfm-range-control__mobile-controls .components-range-control__marks{top:13px}",""]);const s=a},44868:e=>{"use strict";e.exports=function(e,t){Object.keys(t).forEach((function(r){e.setAttribute(r,t[r])}))}},45083:(e,t,r)=>{var n=r(1882),o=r(87296),i=r(23805),a=r(47473),s=/^\[object .+?Constructor\]$/,l=Function.prototype,u=Object.prototype,c=l.toString,d=u.hasOwnProperty,f=RegExp("^"+c.call(d).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");e.exports=function(e){return!(!i(e)||o(e))&&(n(e)?f:s).test(a(e))}},45413:(e,t)=>{"use strict";var r;Object.defineProperty(t,"__esModule",{value:!0}),t.Doctype=t.CDATA=t.Tag=t.Style=t.Script=t.Comment=t.Directive=t.Text=t.Root=t.isTag=t.ElementType=void 0,function(e){e.Root="root",e.Text="text",e.Directive="directive",e.Comment="comment",e.Script="script",e.Style="style",e.Tag="tag",e.CDATA="cdata",e.Doctype="doctype"}(r=t.ElementType||(t.ElementType={})),t.isTag=function(e){return e.type===r.Tag||e.type===r.Script||e.type===r.Style},t.Root=r.Root,t.Text=r.Text,t.Directive=r.Directive,t.Comment=r.Comment,t.Script=r.Script,t.Style=r.Style,t.Tag=r.Tag,t.CDATA=r.CDATA,t.Doctype=r.Doctype},45708:function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=function(e,t){return n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},n(e,t)},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)}),i=this&&this.__assign||function(){return i=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},i.apply(this,arguments)},a=this&&this.__spreadArrays||function(){for(var e=0,t=0,r=arguments.length;t<r;t++)e+=arguments[t].length;var n=Array(e),o=0;for(t=0;t<r;t++)for(var i=arguments[t],a=0,s=i.length;a<s;a++,o++)n[o]=i[a];return n},s=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}},l=s(r(51609)),u=s(r(75795)),c=s(r(2404)),d=s(r(91574)),f=function(e){function t(t){var r=e.call(this,t)||this;r.dirtyProps=["modules","formats","bounds","theme","children"],r.cleanProps=["id","className","style","placeholder","tabIndex","onChange","onChangeSelection","onFocus","onBlur","onKeyPress","onKeyDown","onKeyUp"],r.state={generation:0},r.selection=null,r.onEditorChange=function(e,t,n,o){var i,a,s,l;"text-change"===e?null===(a=(i=r).onEditorChangeText)||void 0===a||a.call(i,r.editor.root.innerHTML,t,o,r.unprivilegedEditor):"selection-change"===e&&(null===(l=(s=r).onEditorChangeSelection)||void 0===l||l.call(s,t,o,r.unprivilegedEditor))};var n=r.isControlled()?t.value:t.defaultValue;return r.value=null!=n?n:"",r}return o(t,e),t.prototype.validateProps=function(e){var t;if(l.default.Children.count(e.children)>1)throw new Error("The Quill editing area can only be composed of a single React element.");if(l.default.Children.count(e.children)&&"textarea"===(null===(t=l.default.Children.only(e.children))||void 0===t?void 0:t.type))throw new Error("Quill does not support editing on a <textarea>. Use a <div> instead.");if(this.lastDeltaChangeSet&&e.value===this.lastDeltaChangeSet)throw new Error("You are passing the `delta` object from the `onChange` event back as `value`. You most probably want `editor.getContents()` instead. See: https://github.com/zenoamaro/react-quill#using-deltas")},t.prototype.shouldComponentUpdate=function(e,t){var r,n=this;if(this.validateProps(e),!this.editor||this.state.generation!==t.generation)return!0;if("value"in e){var o=this.getEditorContents(),i=null!=(r=e.value)?r:"";this.isEqualValue(i,o)||this.setEditorContents(this.editor,i)}return e.readOnly!==this.props.readOnly&&this.setEditorReadOnly(this.editor,e.readOnly),a(this.cleanProps,this.dirtyProps).some((function(t){return!c.default(e[t],n.props[t])}))},t.prototype.shouldComponentRegenerate=function(e){var t=this;return this.dirtyProps.some((function(r){return!c.default(e[r],t.props[r])}))},t.prototype.componentDidMount=function(){this.instantiateEditor(),this.setEditorContents(this.editor,this.getEditorContents())},t.prototype.componentWillUnmount=function(){this.destroyEditor()},t.prototype.componentDidUpdate=function(e,t){var r=this;if(this.editor&&this.shouldComponentRegenerate(e)){var n=this.editor.getContents(),o=this.editor.getSelection();this.regenerationSnapshot={delta:n,selection:o},this.setState({generation:this.state.generation+1}),this.destroyEditor()}if(this.state.generation!==t.generation){var i=this.regenerationSnapshot,a=(n=i.delta,i.selection);delete this.regenerationSnapshot,this.instantiateEditor();var s=this.editor;s.setContents(n),m((function(){return r.setEditorSelection(s,a)}))}},t.prototype.instantiateEditor=function(){this.editor?this.hookEditor(this.editor):this.editor=this.createEditor(this.getEditingArea(),this.getEditorConfig())},t.prototype.destroyEditor=function(){this.editor&&this.unhookEditor(this.editor)},t.prototype.isControlled=function(){return"value"in this.props},t.prototype.getEditorConfig=function(){return{bounds:this.props.bounds,formats:this.props.formats,modules:this.props.modules,placeholder:this.props.placeholder,readOnly:this.props.readOnly,scrollingContainer:this.props.scrollingContainer,tabIndex:this.props.tabIndex,theme:this.props.theme}},t.prototype.getEditor=function(){if(!this.editor)throw new Error("Accessing non-instantiated editor");return this.editor},t.prototype.createEditor=function(e,t){var r=new d.default(e,t);return null!=t.tabIndex&&this.setEditorTabIndex(r,t.tabIndex),this.hookEditor(r),r},t.prototype.hookEditor=function(e){this.unprivilegedEditor=this.makeUnprivilegedEditor(e),e.on("editor-change",this.onEditorChange)},t.prototype.unhookEditor=function(e){e.off("editor-change",this.onEditorChange)},t.prototype.getEditorContents=function(){return this.value},t.prototype.getEditorSelection=function(){return this.selection},t.prototype.isDelta=function(e){return e&&e.ops},t.prototype.isEqualValue=function(e,t){return this.isDelta(e)&&this.isDelta(t)?c.default(e.ops,t.ops):c.default(e,t)},t.prototype.setEditorContents=function(e,t){var r=this;this.value=t;var n=this.getEditorSelection();"string"==typeof t?e.setContents(e.clipboard.convert(t)):e.setContents(t),m((function(){return r.setEditorSelection(e,n)}))},t.prototype.setEditorSelection=function(e,t){if(this.selection=t,t){var r=e.getLength();t.index=Math.max(0,Math.min(t.index,r-1)),t.length=Math.max(0,Math.min(t.length,r-1-t.index)),e.setSelection(t)}},t.prototype.setEditorTabIndex=function(e,t){var r,n;(null===(n=null===(r=e)||void 0===r?void 0:r.scroll)||void 0===n?void 0:n.domNode)&&(e.scroll.domNode.tabIndex=t)},t.prototype.setEditorReadOnly=function(e,t){t?e.disable():e.enable()},t.prototype.makeUnprivilegedEditor=function(e){var t=e;return{getHTML:function(){return t.root.innerHTML},getLength:t.getLength.bind(t),getText:t.getText.bind(t),getContents:t.getContents.bind(t),getSelection:t.getSelection.bind(t),getBounds:t.getBounds.bind(t)}},t.prototype.getEditingArea=function(){if(!this.editingArea)throw new Error("Instantiating on missing editing area");var e=u.default.findDOMNode(this.editingArea);if(!e)throw new Error("Cannot find element for editing area");if(3===e.nodeType)throw new Error("Editing area cannot be a text node");return e},t.prototype.renderEditingArea=function(){var e=this,t=this.props,r=t.children,n=t.preserveWhitespace,o={key:this.state.generation,ref:function(t){e.editingArea=t}};return l.default.Children.count(r)?l.default.cloneElement(l.default.Children.only(r),o):n?l.default.createElement("pre",i({},o)):l.default.createElement("div",i({},o))},t.prototype.render=function(){var e;return l.default.createElement("div",{id:this.props.id,style:this.props.style,key:this.state.generation,className:"quill "+(e=this.props.className,null!=e?e:""),onKeyPress:this.props.onKeyPress,onKeyDown:this.props.onKeyDown,onKeyUp:this.props.onKeyUp},this.renderEditingArea())},t.prototype.onEditorChangeText=function(e,t,r,n){var o,i;if(this.editor){var a=this.isDelta(this.value)?n.getContents():n.getHTML();a!==this.getEditorContents()&&(this.lastDeltaChangeSet=t,this.value=a,null===(i=(o=this.props).onChange)||void 0===i||i.call(o,e,t,r,n))}},t.prototype.onEditorChangeSelection=function(e,t,r){var n,o,i,a,s,l;if(this.editor){var u=this.getEditorSelection(),d=!u&&e,f=u&&!e;c.default(e,u)||(this.selection=e,null===(o=(n=this.props).onChangeSelection)||void 0===o||o.call(n,e,t,r),d?null===(a=(i=this.props).onFocus)||void 0===a||a.call(i,e,t,r):f&&(null===(l=(s=this.props).onBlur)||void 0===l||l.call(s,u,t,r)))}},t.prototype.focus=function(){this.editor&&this.editor.focus()},t.prototype.blur=function(){this.editor&&(this.selection=null,this.editor.blur())},t.displayName="React Quill",t.Quill=d.default,t.defaultProps={theme:"snow",modules:{},readOnly:!1},t}(l.default.Component);function m(e){Promise.resolve().then(e)}e.exports=f},46942:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e="",t=0;t<arguments.length;t++){var r=arguments[t];r&&(e=a(e,i(r)))}return e}function i(e){if("string"==typeof e||"number"==typeof e)return e;if("object"!=typeof e)return"";if(Array.isArray(e))return o.apply(null,e);if(e.toString!==Object.prototype.toString&&!e.toString.toString().includes("[native code]"))return e.toString();var t="";for(var r in e)n.call(e,r)&&e[r]&&(t=a(t,r));return t}function a(e,t){return t?e?e+" "+t:e+t:e}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},47143:e=>{"use strict";e.exports=window.wp.data},47473:e=>{var t=Function.prototype.toString;e.exports=function(e){if(null!=e){try{return t.call(e)}catch(e){}try{return e+""}catch(e){}}return""}},48655:(e,t,r)=>{var n=r(26025);e.exports=function(e){return n(this.__data__,e)>-1}},49124:(e,t,r)=>{"use strict";function n(e,t){return e===t?0!==e||0!==t||1/e==1/t:e!=e&&t!=t}function o(e,t){if(n(e,t))return!0;if("object"!=typeof e||null===e||"object"!=typeof t||null===t)return!1;var r=Object.keys(e),o=Object.keys(t);if(r.length!==o.length)return!1;for(var i=0;i<r.length;i++)if(!Object.prototype.hasOwnProperty.call(t,r[i])||!n(e[r[i]],t[r[i]]))return!1;return!0}r.d(t,{A:()=>o})},49924:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>n.Kq,Ng:()=>n.Ng});var n=r(62179),o=r(42724);(0,r(38298).d)(o.r)},49990:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(null,arguments)}r.d(t,{A:()=>n})},50002:(e,t,r)=>{var n=r(82199),o=r(4664),i=r(95950);e.exports=function(e){return n(e,i,o)}},50442:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.htmlToDOM=t.domToReact=t.attributesToProps=t.Text=t.ProcessingInstruction=t.Element=t.Comment=void 0,t.default=function(e,t){if("string"!=typeof e)throw new TypeError("First argument must be a string");return e?(0,a.default)((0,o.default)(e,(null==t?void 0:t.htmlparser2)||l),t):[]};var o=n(r(92471));t.htmlToDOM=o.default;var i=n(r(20840));t.attributesToProps=i.default;var a=n(r(10308));t.domToReact=a.default;var s=r(41141);Object.defineProperty(t,"Comment",{enumerable:!0,get:function(){return s.Comment}}),Object.defineProperty(t,"Element",{enumerable:!0,get:function(){return s.Element}}),Object.defineProperty(t,"ProcessingInstruction",{enumerable:!0,get:function(){return s.ProcessingInstruction}}),Object.defineProperty(t,"Text",{enumerable:!0,get:function(){return s.Text}});var l={lowerCaseAttributeNames:!1}},50689:(e,t,r)=>{var n=r(50002),o=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,i,a,s){var l=1&r,u=n(e),c=u.length;if(c!=n(t).length&&!l)return!1;for(var d=c;d--;){var f=u[d];if(!(l?f in t:o.call(t,f)))return!1}var m=s.get(e),p=s.get(t);if(m&&p)return m==t&&p==e;var h=!0;s.set(e,t),s.set(t,e);for(var g=l;++d<c;){var b=e[f=u[d]],y=t[f];if(i)var v=l?i(y,b,f,t,e,s):i(b,y,f,e,t,s);if(!(void 0===v?b===y||a(b,y,r,i,s):v)){h=!1;break}g||(g="constructor"==f)}if(h&&!g){var D=e.constructor,_=t.constructor;D==_||!("constructor"in e)||!("constructor"in t)||"function"==typeof D&&D instanceof D&&"function"==typeof _&&_ instanceof _||(h=!1)}return s.delete(e),s.delete(t),h}},50856:(e,t,r)=>{"use strict";r.d(t,{QP:()=>le});const n=e=>{const t=s(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),o(r,t)||a(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},o=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),i=n?o(e.slice(1),n):void 0;if(i)return i;if(0===t.validators.length)return;const a=e.join("-");return t.validators.find((({validator:e})=>e(a)))?.classGroupId},i=/^\[(.+)\]$/,a=e=>{if(i.test(e)){const t=i.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},s=e=>{const{theme:t,classGroups:r}=e,n={nextPart:new Map,validators:[]};for(const e in r)l(r[e],n,e,t);return n},l=(e,t,r,n)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return c(e)?void l(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,o])=>{l(o,u(t,e),r,n)}))}else(""===e?t:u(t,e)).classGroupId=r}))},u=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},c=e=>e.isThemeGetter,d=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},f=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;for(let a=0;a<e.length;a++){let s=e[a];if(0===n&&0===o){if(":"===s){t.push(e.slice(i,a)),i=a+1;continue}if("/"===s){r=a;continue}}"["===s?n++:"]"===s?n--:"("===s?o++:")"===s&&o--}const a=0===t.length?e:e.substring(i),s=m(a);return{modifiers:t,hasImportantModifier:s!==a,baseClassName:s,maybePostfixModifierPosition:r&&r>i?r-i:void 0}};if(t){const e=t+":",r=n;n=t=>t.startsWith(e)?r(t.substring(e.length)):{isExternal:!0,modifiers:[],hasImportantModifier:!1,baseClassName:t,maybePostfixModifierPosition:void 0}}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},m=e=>e.endsWith("!")?e.substring(0,e.length-1):e.startsWith("!")?e.substring(1):e,p=e=>{const t=Object.fromEntries(e.orderSensitiveModifiers.map((e=>[e,!0])));return e=>{if(e.length<=1)return e;const r=[];let n=[];return e.forEach((e=>{"["===e[0]||t[e]?(r.push(...n.sort(),e),n=[]):n.push(e)})),r.push(...n.sort()),r}},h=/\s+/;function g(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=b(e))&&(n&&(n+=" "),n+=t);return n}const b=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=b(e[n]))&&(r&&(r+=" "),r+=t);return r};function y(e,...t){let r,o,i,a=function(l){const u=t.reduce(((e,t)=>t(e)),e());return r=(e=>({cache:d(e.cacheSize),parseClassName:f(e),sortModifiers:p(e),...n(e)}))(u),o=r.cache.get,i=r.cache.set,a=s,s(l)};function s(e){const t=o(e);if(t)return t;const n=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i}=t,a=[],s=e.trim().split(h);let l="";for(let e=s.length-1;e>=0;e-=1){const t=s[e],{isExternal:u,modifiers:c,hasImportantModifier:d,baseClassName:f,maybePostfixModifierPosition:m}=r(t);if(u){l=t+(l.length>0?" "+l:l);continue}let p=!!m,h=n(p?f.substring(0,m):f);if(!h){if(!p){l=t+(l.length>0?" "+l:l);continue}if(h=n(f),!h){l=t+(l.length>0?" "+l:l);continue}p=!1}const g=i(c).join(":"),b=d?g+"!":g,y=b+h;if(a.includes(y))continue;a.push(y);const v=o(h,p);for(let e=0;e<v.length;++e){const t=v[e];a.push(b+t)}l=t+(l.length>0?" "+l:l)}return l})(e,r);return i(e,n),n}return function(){return a(g.apply(null,arguments))}}const v=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},D=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,_=/^\((?:(\w[\w-]*):)?(.+)\)$/i,x=/^\d+\/\d+$/,k=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,E=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,w=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,C=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,M=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,A=e=>x.test(e),N=e=>!!e&&!Number.isNaN(Number(e)),j=e=>!!e&&Number.isInteger(Number(e)),O=e=>e.endsWith("%")&&N(e.slice(0,-1)),T=e=>k.test(e),S=()=>!0,I=e=>E.test(e)&&!w.test(e),F=()=>!1,L=e=>C.test(e),R=e=>M.test(e),P=e=>!z(e)&&!Q(e),B=e=>J(e,ne,F),z=e=>D.test(e),q=e=>J(e,oe,I),V=e=>J(e,ie,N),U=e=>J(e,te,F),H=e=>J(e,re,R),Y=e=>J(e,se,L),Q=e=>_.test(e),W=e=>ee(e,oe),G=e=>ee(e,ae),Z=e=>ee(e,te),$=e=>ee(e,ne),K=e=>ee(e,re),X=e=>ee(e,se,!0),J=(e,t,r)=>{const n=D.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},ee=(e,t,r=!1)=>{const n=_.exec(e);return!!n&&(n[1]?t(n[1]):r)},te=e=>"position"===e||"percentage"===e,re=e=>"image"===e||"url"===e,ne=e=>"length"===e||"size"===e||"bg-size"===e,oe=e=>"length"===e,ie=e=>"number"===e,ae=e=>"family-name"===e,se=e=>"shadow"===e,le=y((Symbol.toStringTag,()=>{const e=v("color"),t=v("font"),r=v("text"),n=v("font-weight"),o=v("tracking"),i=v("leading"),a=v("breakpoint"),s=v("container"),l=v("spacing"),u=v("radius"),c=v("shadow"),d=v("inset-shadow"),f=v("text-shadow"),m=v("drop-shadow"),p=v("blur"),h=v("perspective"),g=v("aspect"),b=v("ease"),y=v("animate"),D=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Q,z],_=()=>[Q,z,l],x=()=>[A,"full","auto",..._()],k=()=>[j,"none","subgrid",Q,z],E=()=>["auto",{span:["full",j,Q,z]},j,Q,z],w=()=>[j,"auto",Q,z],C=()=>["auto","min","max","fr",Q,z],M=()=>["auto",..._()],I=()=>[A,"auto","full","dvw","dvh","lvw","lvh","svw","svh","min","max","fit",..._()],F=()=>[e,Q,z],L=()=>["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom",Z,U,{position:[Q,z]}],R=()=>["auto","cover","contain",$,B,{size:[Q,z]}],J=()=>[O,W,q],ee=()=>["","none","full",u,Q,z],te=()=>["",N,W,q],re=()=>[N,O,Z,U],ne=()=>["","none",p,Q,z],oe=()=>["none",N,Q,z],ie=()=>["none",N,Q,z],ae=()=>[N,Q,z],se=()=>[A,"full",..._()];return{cacheSize:500,theme:{animate:["spin","ping","pulse","bounce"],aspect:["video"],blur:[T],breakpoint:[T],color:[S],container:[T],"drop-shadow":[T],ease:["in","out","in-out"],font:[P],"font-weight":["thin","extralight","light","normal","medium","semibold","bold","extrabold","black"],"inset-shadow":[T],leading:["none","tight","snug","normal","relaxed","loose"],perspective:["dramatic","near","normal","midrange","distant","none"],radius:[T],shadow:[T],spacing:["px",N],text:[T],"text-shadow":[T],tracking:["tighter","tight","normal","wide","wider","widest"]},classGroups:{aspect:[{aspect:["auto","square",A,z,Q,g]}],container:["container"],columns:[{columns:[N,z,Q,s]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],sr:["sr-only","not-sr-only"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:D()}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:x()}],"inset-x":[{"inset-x":x()}],"inset-y":[{"inset-y":x()}],start:[{start:x()}],end:[{end:x()}],top:[{top:x()}],right:[{right:x()}],bottom:[{bottom:x()}],left:[{left:x()}],visibility:["visible","invisible","collapse"],z:[{z:[j,"auto",Q,z]}],basis:[{basis:[A,"full","auto",s,..._()]}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["nowrap","wrap","wrap-reverse"]}],flex:[{flex:[N,A,"auto","initial","none",z]}],grow:[{grow:["",N,Q,z]}],shrink:[{shrink:["",N,Q,z]}],order:[{order:[j,"first","last","none",Q,z]}],"grid-cols":[{"grid-cols":k()}],"col-start-end":[{col:E()}],"col-start":[{"col-start":w()}],"col-end":[{"col-end":w()}],"grid-rows":[{"grid-rows":k()}],"row-start-end":[{row:E()}],"row-start":[{"row-start":w()}],"row-end":[{"row-end":w()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":C()}],"auto-rows":[{"auto-rows":C()}],gap:[{gap:_()}],"gap-x":[{"gap-x":_()}],"gap-y":[{"gap-y":_()}],"justify-content":[{justify:["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe","normal"]}],"justify-items":[{"justify-items":["start","end","center","stretch","center-safe","end-safe","normal"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"align-items":[{items:["start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"align-self":[{self:["auto","start","end","center","stretch","center-safe","end-safe",{baseline:["","last"]}]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline","center-safe","end-safe"]}],"place-items":[{"place-items":["start","end","center","stretch","center-safe","end-safe","baseline"]}],"place-self":[{"place-self":["auto","start","end","center","stretch","center-safe","end-safe"]}],p:[{p:_()}],px:[{px:_()}],py:[{py:_()}],ps:[{ps:_()}],pe:[{pe:_()}],pt:[{pt:_()}],pr:[{pr:_()}],pb:[{pb:_()}],pl:[{pl:_()}],m:[{m:M()}],mx:[{mx:M()}],my:[{my:M()}],ms:[{ms:M()}],me:[{me:M()}],mt:[{mt:M()}],mr:[{mr:M()}],mb:[{mb:M()}],ml:[{ml:M()}],"space-x":[{"space-x":_()}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":_()}],"space-y-reverse":["space-y-reverse"],size:[{size:I()}],w:[{w:[s,"screen",...I()]}],"min-w":[{"min-w":[s,"screen","none",...I()]}],"max-w":[{"max-w":[s,"screen","none","prose",{screen:[a]},...I()]}],h:[{h:["screen","lh",...I()]}],"min-h":[{"min-h":["screen","lh","none",...I()]}],"max-h":[{"max-h":["screen","lh",...I()]}],"font-size":[{text:["base",r,W,q]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:[n,Q,V]}],"font-stretch":[{"font-stretch":["ultra-condensed","extra-condensed","condensed","semi-condensed","normal","semi-expanded","expanded","extra-expanded","ultra-expanded",O,z]}],"font-family":[{font:[G,z,t]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:[o,Q,z]}],"line-clamp":[{"line-clamp":[N,"none",Q,V]}],leading:[{leading:[i,..._()]}],"list-image":[{"list-image":["none",Q,z]}],"list-style-position":[{list:["inside","outside"]}],"list-style-type":[{list:["disc","decimal","none",Q,z]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"placeholder-color":[{placeholder:F()}],"text-color":[{text:F()}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","wavy"]}],"text-decoration-thickness":[{decoration:[N,"from-font","auto",Q,q]}],"text-decoration-color":[{decoration:F()}],"underline-offset":[{"underline-offset":[N,"auto",Q,z]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:_()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Q,z]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],wrap:[{wrap:["break-word","anywhere","normal"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Q,z]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:L()}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","space","round"]}]}],"bg-size":[{bg:R()}],"bg-image":[{bg:["none",{linear:[{to:["t","tr","r","br","b","bl","l","tl"]},j,Q,z],radial:["",Q,z],conic:[j,Q,z]},K,H]}],"bg-color":[{bg:F()}],"gradient-from-pos":[{from:J()}],"gradient-via-pos":[{via:J()}],"gradient-to-pos":[{to:J()}],"gradient-from":[{from:F()}],"gradient-via":[{via:F()}],"gradient-to":[{to:F()}],rounded:[{rounded:ee()}],"rounded-s":[{"rounded-s":ee()}],"rounded-e":[{"rounded-e":ee()}],"rounded-t":[{"rounded-t":ee()}],"rounded-r":[{"rounded-r":ee()}],"rounded-b":[{"rounded-b":ee()}],"rounded-l":[{"rounded-l":ee()}],"rounded-ss":[{"rounded-ss":ee()}],"rounded-se":[{"rounded-se":ee()}],"rounded-ee":[{"rounded-ee":ee()}],"rounded-es":[{"rounded-es":ee()}],"rounded-tl":[{"rounded-tl":ee()}],"rounded-tr":[{"rounded-tr":ee()}],"rounded-br":[{"rounded-br":ee()}],"rounded-bl":[{"rounded-bl":ee()}],"border-w":[{border:te()}],"border-w-x":[{"border-x":te()}],"border-w-y":[{"border-y":te()}],"border-w-s":[{"border-s":te()}],"border-w-e":[{"border-e":te()}],"border-w-t":[{"border-t":te()}],"border-w-r":[{"border-r":te()}],"border-w-b":[{"border-b":te()}],"border-w-l":[{"border-l":te()}],"divide-x":[{"divide-x":te()}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":te()}],"divide-y-reverse":["divide-y-reverse"],"border-style":[{border:["solid","dashed","dotted","double","hidden","none"]}],"divide-style":[{divide:["solid","dashed","dotted","double","hidden","none"]}],"border-color":[{border:F()}],"border-color-x":[{"border-x":F()}],"border-color-y":[{"border-y":F()}],"border-color-s":[{"border-s":F()}],"border-color-e":[{"border-e":F()}],"border-color-t":[{"border-t":F()}],"border-color-r":[{"border-r":F()}],"border-color-b":[{"border-b":F()}],"border-color-l":[{"border-l":F()}],"divide-color":[{divide:F()}],"outline-style":[{outline:["solid","dashed","dotted","double","none","hidden"]}],"outline-offset":[{"outline-offset":[N,Q,z]}],"outline-w":[{outline:["",N,W,q]}],"outline-color":[{outline:F()}],shadow:[{shadow:["","none",c,X,Y]}],"shadow-color":[{shadow:F()}],"inset-shadow":[{"inset-shadow":["none",d,X,Y]}],"inset-shadow-color":[{"inset-shadow":F()}],"ring-w":[{ring:te()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:F()}],"ring-offset-w":[{"ring-offset":[N,q]}],"ring-offset-color":[{"ring-offset":F()}],"inset-ring-w":[{"inset-ring":te()}],"inset-ring-color":[{"inset-ring":F()}],"text-shadow":[{"text-shadow":["none",f,X,Y]}],"text-shadow-color":[{"text-shadow":F()}],opacity:[{opacity:[N,Q,z]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-darker","plus-lighter"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],"mask-clip":[{"mask-clip":["border","padding","content","fill","stroke","view"]},"mask-no-clip"],"mask-composite":[{mask:["add","subtract","intersect","exclude"]}],"mask-image-linear-pos":[{"mask-linear":[N]}],"mask-image-linear-from-pos":[{"mask-linear-from":re()}],"mask-image-linear-to-pos":[{"mask-linear-to":re()}],"mask-image-linear-from-color":[{"mask-linear-from":F()}],"mask-image-linear-to-color":[{"mask-linear-to":F()}],"mask-image-t-from-pos":[{"mask-t-from":re()}],"mask-image-t-to-pos":[{"mask-t-to":re()}],"mask-image-t-from-color":[{"mask-t-from":F()}],"mask-image-t-to-color":[{"mask-t-to":F()}],"mask-image-r-from-pos":[{"mask-r-from":re()}],"mask-image-r-to-pos":[{"mask-r-to":re()}],"mask-image-r-from-color":[{"mask-r-from":F()}],"mask-image-r-to-color":[{"mask-r-to":F()}],"mask-image-b-from-pos":[{"mask-b-from":re()}],"mask-image-b-to-pos":[{"mask-b-to":re()}],"mask-image-b-from-color":[{"mask-b-from":F()}],"mask-image-b-to-color":[{"mask-b-to":F()}],"mask-image-l-from-pos":[{"mask-l-from":re()}],"mask-image-l-to-pos":[{"mask-l-to":re()}],"mask-image-l-from-color":[{"mask-l-from":F()}],"mask-image-l-to-color":[{"mask-l-to":F()}],"mask-image-x-from-pos":[{"mask-x-from":re()}],"mask-image-x-to-pos":[{"mask-x-to":re()}],"mask-image-x-from-color":[{"mask-x-from":F()}],"mask-image-x-to-color":[{"mask-x-to":F()}],"mask-image-y-from-pos":[{"mask-y-from":re()}],"mask-image-y-to-pos":[{"mask-y-to":re()}],"mask-image-y-from-color":[{"mask-y-from":F()}],"mask-image-y-to-color":[{"mask-y-to":F()}],"mask-image-radial":[{"mask-radial":[Q,z]}],"mask-image-radial-from-pos":[{"mask-radial-from":re()}],"mask-image-radial-to-pos":[{"mask-radial-to":re()}],"mask-image-radial-from-color":[{"mask-radial-from":F()}],"mask-image-radial-to-color":[{"mask-radial-to":F()}],"mask-image-radial-shape":[{"mask-radial":["circle","ellipse"]}],"mask-image-radial-size":[{"mask-radial":[{closest:["side","corner"],farthest:["side","corner"]}]}],"mask-image-radial-pos":[{"mask-radial-at":["center","top","bottom","left","right","top-left","left-top","top-right","right-top","bottom-right","right-bottom","bottom-left","left-bottom"]}],"mask-image-conic-pos":[{"mask-conic":[N]}],"mask-image-conic-from-pos":[{"mask-conic-from":re()}],"mask-image-conic-to-pos":[{"mask-conic-to":re()}],"mask-image-conic-from-color":[{"mask-conic-from":F()}],"mask-image-conic-to-color":[{"mask-conic-to":F()}],"mask-mode":[{mask:["alpha","luminance","match"]}],"mask-origin":[{"mask-origin":["border","padding","content","fill","stroke","view"]}],"mask-position":[{mask:L()}],"mask-repeat":[{mask:["no-repeat",{repeat:["","x","y","space","round"]}]}],"mask-size":[{mask:R()}],"mask-type":[{"mask-type":["alpha","luminance"]}],"mask-image":[{mask:["none",Q,z]}],filter:[{filter:["","none",Q,z]}],blur:[{blur:ne()}],brightness:[{brightness:[N,Q,z]}],contrast:[{contrast:[N,Q,z]}],"drop-shadow":[{"drop-shadow":["","none",m,X,Y]}],"drop-shadow-color":[{"drop-shadow":F()}],grayscale:[{grayscale:["",N,Q,z]}],"hue-rotate":[{"hue-rotate":[N,Q,z]}],invert:[{invert:["",N,Q,z]}],saturate:[{saturate:[N,Q,z]}],sepia:[{sepia:["",N,Q,z]}],"backdrop-filter":[{"backdrop-filter":["","none",Q,z]}],"backdrop-blur":[{"backdrop-blur":ne()}],"backdrop-brightness":[{"backdrop-brightness":[N,Q,z]}],"backdrop-contrast":[{"backdrop-contrast":[N,Q,z]}],"backdrop-grayscale":[{"backdrop-grayscale":["",N,Q,z]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[N,Q,z]}],"backdrop-invert":[{"backdrop-invert":["",N,Q,z]}],"backdrop-opacity":[{"backdrop-opacity":[N,Q,z]}],"backdrop-saturate":[{"backdrop-saturate":[N,Q,z]}],"backdrop-sepia":[{"backdrop-sepia":["",N,Q,z]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":_()}],"border-spacing-x":[{"border-spacing-x":_()}],"border-spacing-y":[{"border-spacing-y":_()}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["","all","colors","opacity","shadow","transform","none",Q,z]}],"transition-behavior":[{transition:["normal","discrete"]}],duration:[{duration:[N,"initial",Q,z]}],ease:[{ease:["linear","initial",b,Q,z]}],delay:[{delay:[N,Q,z]}],animate:[{animate:["none",y,Q,z]}],backface:[{backface:["hidden","visible"]}],perspective:[{perspective:[h,Q,z]}],"perspective-origin":[{"perspective-origin":D()}],rotate:[{rotate:oe()}],"rotate-x":[{"rotate-x":oe()}],"rotate-y":[{"rotate-y":oe()}],"rotate-z":[{"rotate-z":oe()}],scale:[{scale:ie()}],"scale-x":[{"scale-x":ie()}],"scale-y":[{"scale-y":ie()}],"scale-z":[{"scale-z":ie()}],"scale-3d":["scale-3d"],skew:[{skew:ae()}],"skew-x":[{"skew-x":ae()}],"skew-y":[{"skew-y":ae()}],transform:[{transform:[Q,z,"","none","gpu","cpu"]}],"transform-origin":[{origin:D()}],"transform-style":[{transform:["3d","flat"]}],translate:[{translate:se()}],"translate-x":[{"translate-x":se()}],"translate-y":[{"translate-y":se()}],"translate-z":[{"translate-z":se()}],"translate-none":["translate-none"],accent:[{accent:F()}],appearance:[{appearance:["none","auto"]}],"caret-color":[{caret:F()}],"color-scheme":[{scheme:["normal","dark","light","light-dark","only-dark","only-light"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Q,z]}],"field-sizing":[{"field-sizing":["fixed","content"]}],"pointer-events":[{"pointer-events":["auto","none"]}],resize:[{resize:["none","","y","x"]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":_()}],"scroll-mx":[{"scroll-mx":_()}],"scroll-my":[{"scroll-my":_()}],"scroll-ms":[{"scroll-ms":_()}],"scroll-me":[{"scroll-me":_()}],"scroll-mt":[{"scroll-mt":_()}],"scroll-mr":[{"scroll-mr":_()}],"scroll-mb":[{"scroll-mb":_()}],"scroll-ml":[{"scroll-ml":_()}],"scroll-p":[{"scroll-p":_()}],"scroll-px":[{"scroll-px":_()}],"scroll-py":[{"scroll-py":_()}],"scroll-ps":[{"scroll-ps":_()}],"scroll-pe":[{"scroll-pe":_()}],"scroll-pt":[{"scroll-pt":_()}],"scroll-pr":[{"scroll-pr":_()}],"scroll-pb":[{"scroll-pb":_()}],"scroll-pl":[{"scroll-pl":_()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Q,z]}],fill:[{fill:["none",...F()]}],"stroke-w":[{stroke:[N,W,q,V]}],stroke:[{stroke:["none",...F()]}],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-x","border-w-y","border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-x","border-color-y","border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],translate:["translate-x","translate-y","translate-none"],"translate-none":["translate","translate-x","translate-y","translate-z"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]},orderSensitiveModifiers:["*","**","after","backdrop","before","details-content","file","first-letter","first-line","marker","placeholder","selection"]}}))},51133:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e,t){var r=null;if(!e||"string"!=typeof e)return r;var n=(0,o.default)(e),i="function"==typeof t;return n.forEach((function(e){if("declaration"===e.type){var n=e.property,o=e.value;i?t(n,o,e):o&&((r=r||{})[n]=o)}})),r};var o=n(r(19788))},51420:(e,t,r)=>{var n=r(80079);e.exports=function(){this.__data__=new n,this.size=0}},51459:e=>{e.exports=function(e){return this.__data__.has(e)}},51609:e=>{"use strict";e.exports=window.React},51873:(e,t,r)=>{var n=r(9325).Symbol;e.exports=n},52619:e=>{"use strict";e.exports=window.wp.hooks},53578:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-advanced-color-settings-container{display:flex;align-items:center}.srfm-advanced-color-settings-container .srfm-beside-color-click{display:flex;align-items:center}.srfm-advanced-color-settings-container .srfm-color-icon-indicate{height:auto;position:relative;transform:scale(1);transition:transform .1s ease;border-radius:50%;padding:0}.srfm-advanced-color-settings-container .srfm-has-alpha{background-image:linear-gradient(45deg, #ddd 25%, transparent 0),linear-gradient(-45deg, #ddd 25%, transparent 0),linear-gradient(45deg, transparent 75%, #ddd 0),linear-gradient(-45deg, transparent 75%, #ddd 0);background-size:10px 10px;background-position:0 0,0 5px,5px -5px,-5px 0}.srfm-advanced-color-settings-container .srfm-beside-color-label{flex-grow:1;margin:0}.srfm-advanced-color-settings-container .srfm-color-icon-indicate .component-color-indicator.srfm-advanced-color-indicate{width:28px;height:28px;border-radius:50%;margin:0;display:flex;justify-content:center;align-items:center}.srfm-advanced-color-settings-container .srfm-color-icon-indicate .component-color-indicator.srfm-advanced-color-indicate>svg{fill:rgba(0,0,0,0)}.srfm-advanced-color-settings-container .srfm-global-icon-black{color:#000}.srfm-advanced-color-settings-container .srfm-global-icon-white{color:#fff}.srfm-popover-color .components-popover__content{overflow-x:hidden;overflow-y:auto}.srfm-popover-color .components-circular-option-picker{padding:2px 0 10px 5px}.srfm-popover-color .components-circular-option-picker .components-circular-option-picker__swatches{margin-right:0;text-align:left}.srfm-popover-color .components-circular-option-picker .components-circular-option-picker__swatches .components-circular-option-picker__option-group{padding:0 10px}.srfm-popover-color .srfm-clear-btn-inside-picker{margin:5px 20px 20px 15px;padding:0 8px;border:1px solid #ccc;box-shadow:none}",""]);const s=a},53661:(e,t,r)=>{var n=r(63040),o=r(17670),i=r(90289),a=r(4509),s=r(72949);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},55481:(e,t,r)=>{var n=r(9325)["__core-js_shared__"];e.exports=n},55527:e=>{var t=Object.prototype;e.exports=function(e){var r=e&&e.constructor;return e===("function"==typeof r&&r.prototype||t)}},55580:(e,t,r)=>{var n=r(56110)(r(9325),"DataView");e.exports=n},56110:(e,t,r)=>{var n=r(45083),o=r(10392);e.exports=function(e,t){var r=o(e,t);return n(r)?r:void 0}},56427:e=>{"use strict";e.exports=window.wp.components},56449:e=>{var t=Array.isArray;e.exports=t},57971:(e,t,r)=>{"use strict";r.d(t,{A:()=>h});var n=r(17508),o=r(41079),i=r(14297),a=r(49124),s=r(60456),l=r(98869),u=r(27587),c=r(99820),d=["pure","areStatesEqual","areOwnPropsEqual","areStatePropsEqual","areMergedPropsEqual"];function f(e,t,r){for(var n=t.length-1;n>=0;n--){var o=t[n](e);if(o)return o}return function(t,n){throw new Error("Invalid value of type "+typeof e+" for "+r+" argument when connecting component "+n.wrappedComponentName+".")}}function m(e,t){return e===t}function p(e){var t=void 0===e?{}:e,r=t.connectHOC,p=void 0===r?i.A:r,h=t.mapStateToPropsFactories,g=void 0===h?l.Ay:h,b=t.mapDispatchToPropsFactories,y=void 0===b?s.Ay:b,v=t.mergePropsFactories,D=void 0===v?u.Ay:v,_=t.selectorFactory,x=void 0===_?c.Ay:_;return function(e,t,r,i){void 0===i&&(i={});var s=i,l=s.pure,u=void 0===l||l,c=s.areStatesEqual,h=void 0===c?m:c,b=s.areOwnPropsEqual,v=void 0===b?a.A:b,_=s.areStatePropsEqual,k=void 0===_?a.A:_,E=s.areMergedPropsEqual,w=void 0===E?a.A:E,C=(0,o.A)(s,d),M=f(e,g,"mapStateToProps"),A=f(t,y,"mapDispatchToProps"),N=f(r,D,"mergeProps");return p(x,(0,n.A)({methodName:"connect",getDisplayName:function(e){return"Connect("+e+")"},shouldHandleStateChanges:Boolean(e),initMapStateToProps:M,initMapDispatchToProps:A,initMergeProps:N,pure:u,areStatesEqual:h,areOwnPropsEqual:v,areStatePropsEqual:k,areMergedPropsEqual:w},C))}}const h=p()},59350:e=>{var t=Object.prototype.toString;e.exports=function(e){return t.call(e)}},59904:(e,t,r)=>{"use strict";r.d(t,{A:()=>l});var n=r(51609),o=r.n(n),i=r(41458),a=r(8661),s=r(4595);const l=function(e){var t=e.store,r=e.context,l=e.children,u=(0,n.useMemo)((function(){var e=(0,a.K)(t);return{store:t,subscription:e}}),[t]),c=(0,n.useMemo)((function(){return t.getState()}),[t]);(0,s.E)((function(){var e=u.subscription;return e.onStateChange=e.notifyNestedSubs,e.trySubscribe(),c!==t.getState()&&e.notifyNestedSubs(),function(){e.tryUnsubscribe(),e.onStateChange=null}}),[u,c]);var d=r||i.t;return o().createElement(d.Provider,{value:u},l)}},60270:(e,t,r)=>{var n=r(87068),o=r(40346);e.exports=function e(t,r,i,a,s){return t===r||(null==t||null==r||!o(t)&&!o(r)?t!=t&&r!=r:n(t,r,i,a,e,s))}},60443:(e,t,r)=>{"use strict";r.d(t,{$:()=>o,o:()=>i});let n=1;const o=new class{#e;#t;constructor(){this.#e=[],this.#t=[]}subscribe(e){return this.#t.push(e),()=>{this.#t=this.#t.filter((t=>t!==e))}}publish(e){this.#t.forEach((t=>t(e)))}add(e){this.#e.push(e),this.publish(e)}remove(e){return this.#e=this.#e.filter((t=>t.id!==e)),e}create(e){const{id:t,message:r="",jsx:o,...i}=e;if(!r&&"function"!=typeof o)return;const a="number"==typeof t?t:n++;return this.#e.find((e=>e.id===a))&&(this.#e=this.#e.map((e=>e.id===a?(this.publish({...e,title:r,jsx:o,...i}),{...e,title:r,jsx:o,...i}):e))),this.add({id:a,title:r,jsx:o,...i}),a}update(e,t){const{render:r}=t;let n=t;switch(typeof r){case"function":n={jsx:r,...t};break;case"string":n={title:r,...t}}this.#e=this.#e.map((t=>t.id===e?(this.publish({...t,...n}),{...t,...n}):t))}dismiss(e){return e||this.#e.forEach((e=>this.#t.forEach((t=>t({id:e.id,dismiss:!0}))))),this.#t.forEach((t=>t({id:e,dismiss:!0}))),e}history(){return this.#e}default(e="",t={}){return this.create({message:e,type:"neutral",...t})}success(e="",t={}){return this.create({message:e,type:"success",...t})}error(e="",t={}){return this.create({message:e,type:"error",...t})}warning(e="",t={}){return this.create({message:e,type:"warning",...t})}info(e="",t={}){return this.create({message:e,type:"info",...t})}custom(e,t={}){return this.create({jsx:e,type:"custom",...t})}},i=Object.seal(Object.assign(((e,t)=>o.default(e,t)),{success:o.success.bind(o),error:o.error.bind(o),warning:o.warning.bind(o),info:o.info.bind(o),custom:o.custom.bind(o),dismiss:o.dismiss.bind(o),update:o.update.bind(o)},{getHistory:o.history.bind(o)}))},60456:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>i});var n=r(77684),o=r(66778);const i=[function(e){return"function"==typeof e?(0,o.Qb)(e,"mapDispatchToProps"):void 0},function(e){return e?void 0:(0,o.o6)((function(e){return{dispatch:e}}))},function(e){return e&&"object"==typeof e?(0,o.o6)((function(t){return(0,n.A)(e,t)})):void 0}]},60799:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>T});var n=r(51609),o=r(21724),i=(e,t)=>(e=>"function"==typeof e)(e)?e(t):e,a=(()=>{let e=0;return()=>(++e).toString()})(),s=(()=>{let e;return()=>{if(void 0===e&&typeof window<"u"){let t=matchMedia("(prefers-reduced-motion: reduce)");e=!t||t.matches}return e}})(),l=(e,t)=>{switch(t.type){case 0:return{...e,toasts:[t.toast,...e.toasts].slice(0,20)};case 1:return{...e,toasts:e.toasts.map((e=>e.id===t.toast.id?{...e,...t.toast}:e))};case 2:let{toast:r}=t;return l(e,{type:e.toasts.find((e=>e.id===r.id))?1:0,toast:r});case 3:let{toastId:n}=t;return{...e,toasts:e.toasts.map((e=>e.id===n||void 0===n?{...e,dismissed:!0,visible:!1}:e))};case 4:return void 0===t.toastId?{...e,toasts:[]}:{...e,toasts:e.toasts.filter((e=>e.id!==t.toastId))};case 5:return{...e,pausedAt:t.time};case 6:let o=t.time-(e.pausedAt||0);return{...e,pausedAt:void 0,toasts:e.toasts.map((e=>({...e,pauseDuration:e.pauseDuration+o})))}}},u=[],c={toasts:[],pausedAt:void 0},d=e=>{c=l(c,e),u.forEach((e=>{e(c)}))},f=e=>(t,r)=>{let n=((e,t="blank",r)=>({createdAt:Date.now(),visible:!0,dismissed:!1,type:t,ariaProps:{role:"status","aria-live":"polite"},message:e,pauseDuration:0,...r,id:(null==r?void 0:r.id)||a()}))(t,e,r);return d({type:2,toast:n}),n.id},m=(e,t)=>f("blank")(e,t);m.error=f("error"),m.success=f("success"),m.loading=f("loading"),m.custom=f("custom"),m.dismiss=e=>{d({type:3,toastId:e})},m.remove=e=>d({type:4,toastId:e}),m.promise=(e,t,r)=>{let n=m.loading(t.loading,{...r,...null==r?void 0:r.loading});return"function"==typeof e&&(e=e()),e.then((e=>{let o=t.success?i(t.success,e):void 0;return o?m.success(o,{id:n,...r,...null==r?void 0:r.success}):m.dismiss(n),e})).catch((e=>{let o=t.error?i(t.error,e):void 0;o?m.error(o,{id:n,...r,...null==r?void 0:r.error}):m.dismiss(n)})),e},new Map;var p=o.i7`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
 transform: scale(1) rotate(45deg);
  opacity: 1;
}`,h=o.i7`
from {
  transform: scale(0);
  opacity: 0;
}
to {
  transform: scale(1);
  opacity: 1;
}`,g=o.i7`
from {
  transform: scale(0) rotate(90deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(90deg);
	opacity: 1;
}`,b=(0,o.I4)("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#ff4b4b"};
  position: relative;
  transform: rotate(45deg);

  animation: ${p} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;

  &:after,
  &:before {
    content: '';
    animation: ${h} 0.15s ease-out forwards;
    animation-delay: 150ms;
    position: absolute;
    border-radius: 3px;
    opacity: 0;
    background: ${e=>e.secondary||"#fff"};
    bottom: 9px;
    left: 4px;
    height: 2px;
    width: 12px;
  }

  &:before {
    animation: ${g} 0.15s ease-out forwards;
    animation-delay: 180ms;
    transform: rotate(90deg);
  }
`,y=o.i7`
  from {
    transform: rotate(0deg);
  }
  to {
    transform: rotate(360deg);
  }
`,v=(0,o.I4)("div")`
  width: 12px;
  height: 12px;
  box-sizing: border-box;
  border: 2px solid;
  border-radius: 100%;
  border-color: ${e=>e.secondary||"#e0e0e0"};
  border-right-color: ${e=>e.primary||"#616161"};
  animation: ${y} 1s linear infinite;
`,D=o.i7`
from {
  transform: scale(0) rotate(45deg);
	opacity: 0;
}
to {
  transform: scale(1) rotate(45deg);
	opacity: 1;
}`,_=o.i7`
0% {
	height: 0;
	width: 0;
	opacity: 0;
}
40% {
  height: 0;
	width: 6px;
	opacity: 1;
}
100% {
  opacity: 1;
  height: 10px;
}`,x=(0,o.I4)("div")`
  width: 20px;
  opacity: 0;
  height: 20px;
  border-radius: 10px;
  background: ${e=>e.primary||"#61d345"};
  position: relative;
  transform: rotate(45deg);

  animation: ${D} 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
  animation-delay: 100ms;
  &:after {
    content: '';
    box-sizing: border-box;
    animation: ${_} 0.2s ease-out forwards;
    opacity: 0;
    animation-delay: 200ms;
    position: absolute;
    border-right: 2px solid;
    border-bottom: 2px solid;
    border-color: ${e=>e.secondary||"#fff"};
    bottom: 6px;
    left: 6px;
    height: 10px;
    width: 6px;
  }
`,k=(0,o.I4)("div")`
  position: absolute;
`,E=(0,o.I4)("div")`
  position: relative;
  display: flex;
  justify-content: center;
  align-items: center;
  min-width: 20px;
  min-height: 20px;
`,w=o.i7`
from {
  transform: scale(0.6);
  opacity: 0.4;
}
to {
  transform: scale(1);
  opacity: 1;
}`,C=(0,o.I4)("div")`
  position: relative;
  transform: scale(0.6);
  opacity: 0.4;
  min-width: 20px;
  animation: ${w} 0.3s 0.12s cubic-bezier(0.175, 0.885, 0.32, 1.275)
    forwards;
`,M=({toast:e})=>{let{icon:t,type:r,iconTheme:o}=e;return void 0!==t?"string"==typeof t?n.createElement(C,null,t):t:"blank"===r?null:n.createElement(E,null,n.createElement(v,{...o}),"loading"!==r&&n.createElement(k,null,"error"===r?n.createElement(b,{...o}):n.createElement(x,{...o})))},A=e=>`\n0% {transform: translate3d(0,${-200*e}%,0) scale(.6); opacity:.5;}\n100% {transform: translate3d(0,0,0) scale(1); opacity:1;}\n`,N=e=>`\n0% {transform: translate3d(0,0,-1px) scale(1); opacity:1;}\n100% {transform: translate3d(0,${-150*e}%,-1px) scale(.6); opacity:0;}\n`,j=(0,o.I4)("div")`
  display: flex;
  align-items: center;
  background: #fff;
  color: #363636;
  line-height: 1.3;
  will-change: transform;
  box-shadow: 0 3px 10px rgba(0, 0, 0, 0.1), 0 3px 3px rgba(0, 0, 0, 0.05);
  max-width: 350px;
  pointer-events: auto;
  padding: 8px 10px;
  border-radius: 8px;
`,O=(0,o.I4)("div")`
  display: flex;
  justify-content: center;
  margin: 4px 10px;
  color: inherit;
  flex: 1 1 auto;
  white-space: pre-line;
`;n.memo((({toast:e,position:t,style:r,children:a})=>{let l=e.height?((e,t)=>{let r=e.includes("top")?1:-1,[n,i]=s()?["0%{opacity:0;} 100%{opacity:1;}","0%{opacity:1;} 100%{opacity:0;}"]:[A(r),N(r)];return{animation:t?`${(0,o.i7)(n)} 0.35s cubic-bezier(.21,1.02,.73,1) forwards`:`${(0,o.i7)(i)} 0.4s forwards cubic-bezier(.06,.71,.55,1)`}})(e.position||t||"top-center",e.visible):{opacity:0},u=n.createElement(M,{toast:e}),c=n.createElement(O,{...e.ariaProps},i(e.message,e));return n.createElement(j,{className:e.className,style:{...l,...r,...e.style}},"function"==typeof a?a({icon:u,message:c}):n.createElement(n.Fragment,null,u,c))})),(0,o.mj)(n.createElement),o.AH`
  z-index: 9999;
  > * {
    pointer-events: auto;
  }
`;var T=m},62179:(e,t,r)=>{"use strict";r.d(t,{Kq:()=>n.A,Ng:()=>o.A});var n=r(59904),o=(r(14297),r(41458),r(57971));r(96338),r(20125),r(387)},63040:(e,t,r)=>{var n=r(21549),o=r(80079),i=r(68223);e.exports=function(){this.size=0,this.__data__={hash:new n,map:new(i||o),string:new n}}},63345:e=>{e.exports=function(){return[]}},63605:e=>{e.exports=function(e){return this.__data__.get(e)}},63702:e=>{e.exports=function(){this.__data__=[],this.size=0}},63862:e=>{e.exports=function(e){var t=this.has(e)&&delete this.__data__[e];return this.size-=t?1:0,t}},64284:e=>{"use strict";var t,r=(t=[],function(e,r){return t[e]=r,t.filter(Boolean).join("\n")});function n(e,t,n,o){var i;if(n)i="";else{i="",o.supports&&(i+="@supports (".concat(o.supports,") {")),o.media&&(i+="@media ".concat(o.media," {"));var a=void 0!==o.layer;a&&(i+="@layer".concat(o.layer.length>0?" ".concat(o.layer):""," {")),i+=o.css,a&&(i+="}"),o.media&&(i+="}"),o.supports&&(i+="}")}if(e.styleSheet)e.styleSheet.cssText=r(t,i);else{var s=document.createTextNode(i),l=e.childNodes;l[t]&&e.removeChild(l[t]),l.length?e.insertBefore(s,l[t]):e.appendChild(s)}}var o={singleton:null,singletonCounter:0};e.exports=function(e){if("undefined"==typeof document)return{update:function(){},remove:function(){}};var t=o.singletonCounter++,r=o.singleton||(o.singleton=e.insertStyleElement(e));return{update:function(e){n(r,t,!1,e)},remove:function(e){n(r,t,!0,e)}}}},64894:(e,t,r)=>{var n=r(1882),o=r(30294);e.exports=function(e){return null!=e&&o(e.length)&&!n(e)}},65496:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){var t,r,f=(e=(0,n.escapeSpecialCharacters)(e)).match(s),m=f&&f[1]?f[1].toLowerCase():"";switch(m){case o:var p=d(e);return l.test(e)||null===(t=null==(b=p.querySelector(i))?void 0:b.parentNode)||void 0===t||t.removeChild(b),u.test(e)||null===(r=null==(b=p.querySelector(a))?void 0:b.parentNode)||void 0===r||r.removeChild(b),p.querySelectorAll(o);case i:case a:var g=c(e).querySelectorAll(m);return u.test(e)&&l.test(e)?g[0].parentNode.childNodes:g;default:return h?h(e):(b=c(e,a).querySelector(a)).childNodes;var b}};var n=r(67731),o="html",i="head",a="body",s=/<([a-zA-Z]+[0-9]?)/,l=/<head[^]*>/i,u=/<body[^]*>/i,c=function(e,t){throw new Error("This browser does not support `document.implementation.createHTMLDocument`")},d=function(e,t){throw new Error("This browser does not support `DOMParser.prototype.parseFromString`")},f="object"==typeof window&&window.DOMParser;if("function"==typeof f){var m=new f;c=d=function(e,t){return t&&(e="<".concat(t,">").concat(e,"</").concat(t,">")),m.parseFromString(e,"text/html")}}if("object"==typeof document&&document.implementation){var p=document.implementation.createHTMLDocument();c=function(e,t){if(t){var r=p.documentElement.querySelector(t);return r&&(r.innerHTML=e),p}return p.documentElement.innerHTML=e,p}}var h,g="object"==typeof document&&document.createElement("template");g&&g.content&&(h=function(e){return g.innerHTML=e,g.content.childNodes})},66721:(e,t,r)=>{var n=r(81042),o=Object.prototype.hasOwnProperty;e.exports=function(e){var t=this.__data__;if(n){var r=t[e];return"__lodash_hash_undefined__"===r?void 0:r}return o.call(t,e)?t[e]:void 0}},66778:(e,t,r)=>{"use strict";function n(e){return function(t,r){var n=e(t,r);function o(){return n}return o.dependsOnOwnProps=!1,o}}function o(e){return null!==e.dependsOnOwnProps&&void 0!==e.dependsOnOwnProps?Boolean(e.dependsOnOwnProps):1!==e.length}function i(e,t){return function(t,r){r.displayName;var n=function(e,t){return n.dependsOnOwnProps?n.mapToProps(e,t):n.mapToProps(e)};return n.dependsOnOwnProps=!0,n.mapToProps=function(t,r){n.mapToProps=e,n.dependsOnOwnProps=o(e);var i=n(t,r);return"function"==typeof i&&(n.mapToProps=i,n.dependsOnOwnProps=o(i),i=n(t,r)),i},n}}r.d(t,{Qb:()=>i,o6:()=>n})},67731:(e,t,r)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.formatAttributes=i,t.escapeSpecialCharacters=function(e){return e.replace(o.CARRIAGE_RETURN_REGEX,o.CARRIAGE_RETURN_PLACEHOLDER)},t.revertEscapedCharacters=s,t.formatDOM=function e(t,r,o){void 0===r&&(r=null);for(var l,u=[],c=0,d=t.length;c<d;c++){var f=t[c];switch(f.nodeType){case 1:var m=a(f.nodeName);(l=new n.Element(m,i(f.attributes))).children=e("template"===m?f.content.childNodes:f.childNodes,l);break;case 3:l=new n.Text(s(f.nodeValue));break;case 8:l=new n.Comment(f.nodeValue);break;default:continue}var p=u[c-1]||null;p&&(p.next=l),l.parent=r,l.prev=p,l.next=null,u.push(l)}return o&&((l=new n.ProcessingInstruction(o.substring(0,o.indexOf(" ")).toLowerCase(),o)).next=u[0]||null,l.parent=r,u.unshift(l),u[1]&&(u[1].prev=u[0])),u};var n=r(41141),o=r(15270);function i(e){for(var t={},r=0,n=e.length;r<n;r++){var o=e[r];t[o.name]=o.value}return t}function a(e){return function(e){return o.CASE_SENSITIVE_TAG_NAMES_MAP[e]}(e=e.toLowerCase())||e}function s(e){return e.replace(o.CARRIAGE_RETURN_PLACEHOLDER_REGEX,o.CARRIAGE_RETURN)}},68223:(e,t,r)=>{var n=r(56110)(r(9325),"Map");e.exports=n},70080:(e,t,r)=>{var n=r(26025),o=Array.prototype.splice;e.exports=function(e){var t=this.__data__,r=n(t,e);return!(r<0||(r==t.length-1?t.pop():o.call(t,r,1),--this.size,0))}},70695:(e,t,r)=>{var n=r(78096),o=r(72428),i=r(56449),a=r(3656),s=r(30361),l=r(37167),u=Object.prototype.hasOwnProperty;e.exports=function(e,t){var r=i(e),c=!r&&o(e),d=!r&&!c&&a(e),f=!r&&!c&&!d&&l(e),m=r||c||d||f,p=m?n(e.length,String):[],h=p.length;for(var g in e)!t&&!u.call(e,g)||m&&("length"==g||d&&("offset"==g||"parent"==g)||f&&("buffer"==g||"byteLength"==g||"byteOffset"==g)||s(g,h))||p.push(g);return p}},72428:(e,t,r)=>{var n=r(27534),o=r(40346),i=Object.prototype,a=i.hasOwnProperty,s=i.propertyIsEnumerable,l=n(function(){return arguments}())?n:function(e){return o(e)&&a.call(e,"callee")&&!s.call(e,"callee")};e.exports=l},72552:(e,t,r)=>{var n=r(51873),o=r(659),i=r(59350),a=n?n.toStringTag:void 0;e.exports=function(e){return null==e?void 0===e?"[object Undefined]":"[object Null]":a&&a in Object(e)?o(e):i(e)}},72949:(e,t,r)=>{var n=r(12651);e.exports=function(e,t){var r=n(this,e),o=r.size;return r.set(e,t),this.size+=r.size==o?0:1,this}},73404:(e,t,r)=>{"use strict";e.exports=r(3072)},74218:e=>{e.exports=function(e){var t=typeof e;return"string"==t||"number"==t||"symbol"==t||"boolean"==t?"__proto__"!==e:null===e}},74335:e=>{e.exports=function(e,t){return function(r){return e(t(r))}}},74456:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-bg-select-control .srfm-background-color,.srfm-bg-select-control .srfm-background-image,.srfm-bg-select-control .srfm-background-gradient,.srfm-bg-select-control .srfm-background-opacity,.srfm-bg-select-control .srfm-background-video,.srfm-bg-select-control .srfm-background-video-overlay,.srfm-bg-select-control .srfm-background-video-opacity,.srfm-bg-select-control .srfm-background-image-position,.srfm-bg-select-control .srfm-background-image-attachment,.srfm-bg-select-control .srfm-background-blend-mode,.srfm-bg-select-control .srfm-background-image-repeat,.srfm-bg-select-control .srfm-background-image-size,.srfm-bg-select-control .srfm-background-image-overlay-type,.srfm-bg-select-control .srfm-background-image-overlay-color,.srfm-bg-select-control .srfm-background-image-overlay-gradient,.srfm-bg-select-control .srfm-responsive-select-control{margin-top:25px}.srfm-bg-select-control .srfm-background-color .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-gradient .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-opacity .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-video .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-video-overlay .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-video-opacity .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-attachment .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-blend-mode .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-repeat .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-size .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-overlay-type .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-overlay-color .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-background-image-overlay-gradient .srfm-size-type-field-tabs>.components-base-control,.srfm-bg-select-control .srfm-responsive-select-control .srfm-size-type-field-tabs>.components-base-control{width:45%}.srfm-bg-select-control .srfm-background-image-overlay-opacity,.srfm-bg-select-control .srfm-background-image-overlay-gradient{margin-top:25px}.srfm-bg-select-control .srfm-background-image-overlay-opacity .srfm-range-control.srfm-size-type-field-tabs,.srfm-bg-select-control .srfm-background-image-overlay-gradient .srfm-range-control.srfm-size-type-field-tabs{flex-direction:column;align-items:flex-start}.srfm-bg-select-control .srfm-background-image>.components-base-control>.srfm-responsive-select-control .srfm-size-type-field-tabs{display:block}.srfm-bg-select-control .srfm-background-image>.components-base-control>.srfm-responsive-select-control .srfm-size-type-field-tabs>.components-base-control{width:100%}.srfm-bg-select-control .srfm-responsive-image-select.srfm-responsive-select-control .srfm-size-type-field-tabs .srfm-control__header{margin-bottom:10px}.srfm-bg-select-control .srfm-background-image-overlay-type .components-select-control{flex-direction:row;align-items:center}.srfm-bg-select-control .srfm-background-image-overlay-type .components-select-control .components-input-control__container{width:45%;flex:unset}.srfm-bg-select-control .srfm-background-image-size .srfm-responsive-control-inner>.components-base-control{display:block;margin-top:25px}.srfm-bg-select-control .srfm-background-image-size .srfm-range-control.srfm-size-type-field-tabs{display:block}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs{flex-direction:column;align-items:flex-start}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs .srfm-control__header{margin-bottom:10px}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs .components-focal-point-picker-control{width:100%}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs .components-focal-point-picker-control .components-focal-point-picker{border-radius:3px;border-color:#e6e7e9}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs .components-focal-point-picker-control .components-focal-point-picker img{border-radius:3px}.srfm-bg-select-control .srfm-background-image-position .srfm-size-type-field-tabs .components-focal-point-picker-control .focal-point-picker__controls-position-unit-control{width:115px}.srfm-bg-select-control .srfm-background-image-axis-position{margin-bottom:24px}.srfm-bg-select-control .srfm-background-image-overlay-type .srfm-multibutton-icons{align-items:center;display:grid;grid-template-columns:50% 50%}.srfm-bg-select-control .srfm-background-image-overlay-type .srfm-multibutton-icons .srfm-multi-buttons-control__label{margin-bottom:0}",""]);const s=a},74848:(e,t,r)=>{"use strict";e.exports=r(21020)},74958:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.returnFirstArg=t.canTextBeChildOfNode=t.ELEMENTS_WITH_NO_TEXT_CHILDREN=t.PRESERVE_CUSTOM_ATTRIBUTES=void 0,t.isCustomComponent=function(e,t){return e.includes("-")?!a.has(e):Boolean(t&&"string"==typeof t.is)},t.setStyleProp=function(e,t){if("string"==typeof e)if(e.trim())try{t.style=(0,i.default)(e,s)}catch(e){t.style={}}else t.style={}};var o=r(51609),i=n(r(35229)),a=new Set(["annotation-xml","color-profile","font-face","font-face-src","font-face-uri","font-face-format","font-face-name","missing-glyph"]),s={reactCompat:!0};t.PRESERVE_CUSTOM_ATTRIBUTES=Number(o.version.split(".")[0])>=16,t.ELEMENTS_WITH_NO_TEXT_CHILDREN=new Set(["tr","tbody","thead","tfoot","colgroup","table","head","html","frameset"]),t.canTextBeChildOfNode=function(e){return!t.ELEMENTS_WITH_NO_TEXT_CHILDREN.has(e.name)},t.returnFirstArg=function(e){return e}},75288:e=>{e.exports=function(e,t){return e===t||e!=e&&t!=t}},75795:e=>{"use strict";e.exports=window.ReactDOM},76314:e=>{"use strict";e.exports=function(e){var t=[];return t.toString=function(){return this.map((function(t){var r="",n=void 0!==t[5];return t[4]&&(r+="@supports (".concat(t[4],") {")),t[2]&&(r+="@media ".concat(t[2]," {")),n&&(r+="@layer".concat(t[5].length>0?" ".concat(t[5]):""," {")),r+=e(t),n&&(r+="}"),t[2]&&(r+="}"),t[4]&&(r+="}"),r})).join("")},t.i=function(e,r,n,o,i){"string"==typeof e&&(e=[[null,e,void 0]]);var a={};if(n)for(var s=0;s<this.length;s++){var l=this[s][0];null!=l&&(a[l]=!0)}for(var u=0;u<e.length;u++){var c=[].concat(e[u]);n&&a[c[0]]||(void 0!==i&&(void 0===c[5]||(c[1]="@layer".concat(c[5].length>0?" ".concat(c[5]):""," {").concat(c[1],"}")),c[5]=i),r&&(c[2]?(c[1]="@media ".concat(c[2]," {").concat(c[1],"}"),c[2]=r):c[2]=r),o&&(c[4]?(c[1]="@supports (".concat(c[4],") {").concat(c[1],"}"),c[4]=o):c[4]="".concat(o)),t.push(c))}},t}},76516:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-custom-css-panel .CodeMirror-wrap{border-top:1px solid #ddd6d6;border-bottom:1px solid #ddd6d6}.srfm-custom-css-panel .CodeMirror-wrap .CodeMirror-scroll{width:100%}.srfm-custom-css-panel .CodeMirror-wrap .CodeMirror-sizer{border-right:unset}.srfm-custom-css-panel .CodeMirror-wrap span.CodeMirror-matchingbracket{color:#ffc200}.srfm-custom-css-panel .CodeMirror-wrap .CodeMirror-vscrollbar{overflow-y:hidden}.interface-complementary-area.edit-post-sidebar:has(.srfm-sidebar){height:auto}.interface-interface-skeleton__sidebar:has(.srfm-sidebar){height:auto}.srfm-sidebar{height:100%}",""]);const s=a},76545:(e,t,r)=>{var n=r(56110)(r(9325),"Set");e.exports=n},77659:e=>{"use strict";var t={};e.exports=function(e,r){var n=function(e){if(void 0===t[e]){var r=document.querySelector(e);if(window.HTMLIFrameElement&&r instanceof window.HTMLIFrameElement)try{r=r.contentDocument.head}catch(e){r=null}t[e]=r}return t[e]}(e);if(!n)throw new Error("Couldn't find a style target. This probably means that the value for the 'insert' parameter is invalid.");n.appendChild(r)}},77684:(e,t,r)=>{"use strict";function n(e,t){var r={},n=function(n){var o=e[n];"function"==typeof o&&(r[n]=function(){return t(o.apply(void 0,arguments))})};for(var o in e)n(o);return r}r.d(t,{A:()=>n})},78096:e=>{e.exports=function(e,t){for(var r=-1,n=Array(e);++r<e;)n[r]=t(r);return n}},79770:e=>{e.exports=function(e,t){for(var r=-1,n=null==e?0:e.length,o=0,i=[];++r<n;){var a=e[r];t(a,r,e)&&(i[o++]=a)}return i}},80079:(e,t,r)=>{var n=r(63702),o=r(70080),i=r(24739),a=r(48655),s=r(31175);function l(e){var t=-1,r=null==e?0:e.length;for(this.clear();++t<r;){var n=e[t];this.set(n[0],n[1])}}l.prototype.clear=n,l.prototype.delete=o,l.prototype.get=i,l.prototype.has=a,l.prototype.set=s,e.exports=l},80945:(e,t,r)=>{var n=r(80079),o=r(68223),i=r(53661);e.exports=function(e,t){var r=this.__data__;if(r instanceof n){var a=r.__data__;if(!o||a.length<199)return a.push([e,t]),this.size=++r.size,this;r=this.__data__=new i(a)}return r.set(e,t),this.size=r.size,this}},81042:(e,t,r)=>{var n=r(56110)(Object,"create");e.exports=n},82199:(e,t,r)=>{var n=r(14528),o=r(56449);e.exports=function(e,t,r){var i=t(e);return o(e)?i:n(i,r(e))}},82960:(e,t,r)=>{"use strict";r.d(t,{Tw:()=>f,Zz:()=>d,y$:()=>l,zH:()=>c});var n=r(38209);function o(e){return"Minified Redux error #"+e+"; visit https://redux.js.org/Errors?code="+e+" for the full message or use the non-minified dev environment for full errors. "}var i="function"==typeof Symbol&&Symbol.observable||"@@observable",a=function(){return Math.random().toString(36).substring(7).split("").join(".")},s={INIT:"@@redux/INIT"+a(),REPLACE:"@@redux/REPLACE"+a(),PROBE_UNKNOWN_ACTION:function(){return"@@redux/PROBE_UNKNOWN_ACTION"+a()}};function l(e,t,r){var n;if("function"==typeof t&&"function"==typeof r||"function"==typeof r&&"function"==typeof arguments[3])throw new Error(o(0));if("function"==typeof t&&void 0===r&&(r=t,t=void 0),void 0!==r){if("function"!=typeof r)throw new Error(o(1));return r(l)(e,t)}if("function"!=typeof e)throw new Error(o(2));var a=e,u=t,c=[],d=c,f=!1;function m(){d===c&&(d=c.slice())}function p(){if(f)throw new Error(o(3));return u}function h(e){if("function"!=typeof e)throw new Error(o(4));if(f)throw new Error(o(5));var t=!0;return m(),d.push(e),function(){if(t){if(f)throw new Error(o(6));t=!1,m();var r=d.indexOf(e);d.splice(r,1),c=null}}}function g(e){if(!function(e){if("object"!=typeof e||null===e)return!1;for(var t=e;null!==Object.getPrototypeOf(t);)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t}(e))throw new Error(o(7));if(void 0===e.type)throw new Error(o(8));if(f)throw new Error(o(9));try{f=!0,u=a(u,e)}finally{f=!1}for(var t=c=d,r=0;r<t.length;r++)(0,t[r])();return e}return g({type:s.INIT}),(n={dispatch:g,subscribe:h,getState:p,replaceReducer:function(e){if("function"!=typeof e)throw new Error(o(10));a=e,g({type:s.REPLACE})}})[i]=function(){var e,t=h;return(e={subscribe:function(e){if("object"!=typeof e||null===e)throw new Error(o(11));function r(){e.next&&e.next(p())}return r(),{unsubscribe:t(r)}}})[i]=function(){return this},e},n}function u(e,t){return function(){return t(e.apply(this,arguments))}}function c(e,t){if("function"==typeof e)return u(e,t);if("object"!=typeof e||null===e)throw new Error(o(16));var r={};for(var n in e){var i=e[n];"function"==typeof i&&(r[n]=u(i,t))}return r}function d(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return 0===t.length?function(e){return e}:1===t.length?t[0]:t.reduce((function(e,t){return function(){return e(t.apply(void 0,arguments))}}))}function f(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return function(e){return function(){var r=e.apply(void 0,arguments),i=function(){throw new Error(o(15))},a={getState:r.getState,dispatch:function(){return i.apply(void 0,arguments)}},s=t.map((function(e){return e(a)}));return i=d.apply(void 0,s)(r.dispatch),(0,n.A)((0,n.A)({},r),{},{dispatch:i})}}}},84180:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-multi-button-button-group{display:flex !important;width:100%}.srfm-multi-button-button-group .srfm-multi-button{width:100%;justify-content:center;height:unset;padding:6px;line-height:16px;min-height:30px}.srfm-multi-button-button-group .srfm-multi-button:first-child{-webkit-border-radius:3px 0 0 3px;-moz-border-radius:3px 0 0 3px;border-radius:3px 0 0 3px}.srfm-multi-button-button-group .srfm-multi-button:last-child{-webkit-border-radius:0 3px 3px 0;-moz-border-radius:0 3px 3px 0;border-radius:0 3px 3px 0}.srfm-multi-button-button-group button.srfm-multi-button.is-secondary{color:#50575e;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group .srfm-multi-button.is-secondary:hover:not(:disabled),.srfm-multi-button-button-group .srfm-multi-button-grou[aria-label=Gap] .srfm-multi-button.is-tertiary:hover:not(:disabled){color:#1d2327;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group .srfm-multi-button.is-secondary,.srfm-multi-button-button-group .srfm-multi-button.is-tertiary{color:#50575e}.srfm-multi-button-button-group .srfm-multi-button.is-secondary:active:not(:disabled),.srfm-multi-button-button-group .srfm-multi-button-grou[aria-label=Gap] .srfm-multi-button.is-tertiary:active:not(:disabled){background:#fff;box-shadow:inset 0 0 0 1px #e6e7e9}.srfm-multi-button-button-group button.srfm-multi-button{font-size:13px;font-weight:400}.srfm-multi-button-button-group svg{width:18px;fill:#50575e}.srfm-multi-button-button-group svg path{fill:inherit}.srfm-multi-buttons-control.srfm-multibutton-icons .srfm-multi-button{padding:3px}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed:active{background-color:#dcf2ff}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed:hover{color:#007cba}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed,.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-primary.is-primary{color:#007cba;background-color:#dcf2ff;border-color:#cde9f9;box-shadow:inset 0 0 0 1px #cde9f9}.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-secondary.is-pressed svg,.srfm-multi-buttons__color-scheme--primary button.srfm-multi-button.is-primary.is-primary svg{fill:#007cba}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed:active{background-color:#959595}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed:hover{color:#fff}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed,.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-primary.is-primary{color:#fff;background-color:#959595;border-color:#959595;box-shadow:inset 0 0 0 1px #959595}.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-secondary.is-pressed svg,.srfm-multi-buttons__color-scheme--secondary button.srfm-multi-button.is-primary.is-primary svg{fill:#fff}.srfm-multi-buttons__layout--inline{align-items:center;display:grid;grid-template-columns:50% 50%}.srfm-multi-buttons__layout--inline .srfm-control__header,.srfm-multi-buttons__layout--inline .srfm-control-label{margin-bottom:0}",""]);const s=a},84247:e=>{e.exports=function(e){var t=-1,r=Array(e.size);return e.forEach((function(e){r[++t]=e})),r}},85072:e=>{"use strict";var t=[];function r(e){for(var r=-1,n=0;n<t.length;n++)if(t[n].identifier===e){r=n;break}return r}function n(e,n){for(var i={},a=[],s=0;s<e.length;s++){var l=e[s],u=n.base?l[0]+n.base:l[0],c=i[u]||0,d="".concat(u," ").concat(c);i[u]=c+1;var f=r(d),m={css:l[1],media:l[2],sourceMap:l[3],supports:l[4],layer:l[5]};if(-1!==f)t[f].references++,t[f].updater(m);else{var p=o(m,n);n.byIndex=s,t.splice(s,0,{identifier:d,updater:p,references:1})}a.push(d)}return a}function o(e,t){var r=t.domAPI(t);return r.update(e),function(t){if(t){if(t.css===e.css&&t.media===e.media&&t.sourceMap===e.sourceMap&&t.supports===e.supports&&t.layer===e.layer)return;r.update(e=t)}else r.remove()}}e.exports=function(e,o){var i=n(e=e||[],o=o||{});return function(e){e=e||[];for(var a=0;a<i.length;a++){var s=r(i[a]);t[s].references--}for(var l=n(e,o),u=0;u<i.length;u++){var c=r(i[u]);0===t[c].references&&(t[c].updater(),t.splice(c,1))}i=l}}},86009:(e,t,r)=>{e=r.nmd(e);var n=r(34840),o=t&&!t.nodeType&&t,i=o&&e&&!e.nodeType&&e,a=i&&i.exports===o&&n.process,s=function(){try{return i&&i.require&&i.require("util").types||a&&a.binding&&a.binding("util")}catch(e){}}();e.exports=s},86087:e=>{"use strict";e.exports=window.wp.element},86795:(e,t,r)=>{"use strict";r.d(t,{SQ:()=>d,YH:()=>m,a:()=>f,cY:()=>c,fT:()=>i,ge:()=>l,l:()=>o});var n=r(11561),o=function(e){var t=e.top,r=e.right,n=e.bottom,o=e.left;return{top:t,right:r,bottom:n,left:o,width:r-o,height:n-t,x:o,y:t,center:{x:(r+o)/2,y:(n+t)/2}}},i=function(e,t){return{top:e.top-t.top,left:e.left-t.left,bottom:e.bottom+t.bottom,right:e.right+t.right}},a=function(e,t){return{top:e.top+t.top,left:e.left+t.left,bottom:e.bottom-t.bottom,right:e.right-t.right}},s={top:0,right:0,bottom:0,left:0},l=function(e){var t=e.borderBox,r=e.margin,n=void 0===r?s:r,l=e.border,u=void 0===l?s:l,c=e.padding,d=void 0===c?s:c,f=o(i(t,n)),m=o(a(t,u)),p=o(a(m,d));return{marginBox:f,borderBox:o(t),paddingBox:m,contentBox:p,margin:n,border:u,padding:d}},u=function(e){var t=e.slice(0,-2);if("px"!==e.slice(-2))return 0;var r=Number(t);return isNaN(r)&&(0,n.A)(!1),r},c=function(e,t){var r,n,o=e.borderBox,i=e.border,a=e.margin,s=e.padding,u=(n=t,{top:(r=o).top+n.y,left:r.left+n.x,bottom:r.bottom+n.y,right:r.right+n.x});return l({borderBox:u,border:i,margin:a,padding:s})},d=function(e,t){return void 0===t&&(t={x:window.pageXOffset,y:window.pageYOffset}),c(e,t)},f=function(e,t){var r={top:u(t.marginTop),right:u(t.marginRight),bottom:u(t.marginBottom),left:u(t.marginLeft)},n={top:u(t.paddingTop),right:u(t.paddingRight),bottom:u(t.paddingBottom),left:u(t.paddingLeft)},o={top:u(t.borderTopWidth),right:u(t.borderRightWidth),bottom:u(t.borderBottomWidth),left:u(t.borderLeftWidth)};return l({borderBox:e,margin:r,padding:n,border:o})},m=function(e){var t=e.getBoundingClientRect(),r=window.getComputedStyle(e);return f(t,r)}},87068:(e,t,r)=>{var n=r(37217),o=r(25911),i=r(21986),a=r(50689),s=r(5861),l=r(56449),u=r(3656),c=r(37167),d="[object Arguments]",f="[object Array]",m="[object Object]",p=Object.prototype.hasOwnProperty;e.exports=function(e,t,r,h,g,b){var y=l(e),v=l(t),D=y?f:s(e),_=v?f:s(t),x=(D=D==d?m:D)==m,k=(_=_==d?m:_)==m,E=D==_;if(E&&u(e)){if(!u(t))return!1;y=!0,x=!1}if(E&&!x)return b||(b=new n),y||c(e)?o(e,t,r,h,g,b):i(e,t,D,r,h,g,b);if(!(1&r)){var w=x&&p.call(e,"__wrapped__"),C=k&&p.call(t,"__wrapped__");if(w||C){var M=w?e.value():e,A=C?t.value():t;return b||(b=new n),g(M,A,r,h,b)}}return!!E&&(b||(b=new n),a(e,t,r,h,g,b))}},87296:(e,t,r)=>{var n,o=r(55481),i=(n=/[^.]+$/.exec(o&&o.keys&&o.keys.IE_PROTO||""))?"Symbol(src)_1."+n:"";e.exports=function(e){return!!i&&i in e}},87445:(e,t,r)=>{"use strict";r.d(t,{A:()=>o});var n=r(6378);function o(e,t){if("object"!=(0,n.A)(e)||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,t||"default");if("object"!=(0,n.A)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return("string"===t?String:Number)(e)}},88984:(e,t,r)=>{var n=r(55527),o=r(3650),i=Object.prototype.hasOwnProperty;e.exports=function(e){if(!n(e))return o(e);var t=[];for(var r in Object(e))i.call(e,r)&&"constructor"!=r&&t.push(r);return t}},89194:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,".srfm-confirm-popup-wrapper{display:flex;flex-direction:row;align-items:flex-start;padding:24px;width:612px;height:166px;background:#fff;box-shadow:0 20px 25px -5px rgba(0,0,0,.1),0 10px 10px -5px rgba(0,0,0,.04);border-radius:2px}.srfm-confirm-popup-wrapper .components-modal__content{margin:0;padding:0;display:flex;flex-direction:row;gap:20px}.srfm-confirm-popup-wrapper .components-modal__content .components-modal__header{display:none}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-icon{display:flex;flex-direction:row;align-items:flex-start;padding:12px;gap:8px;width:54px;height:54px;background:#dcf2ff;border-radius:32px;flex:none;order:0;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-icon svg{stroke:#007cba}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content{box-sizing:border-box;display:flex;flex-direction:column;gap:24px}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text{display:flex;flex-direction:column;order:1;gap:4px}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text .srfm-confirm-popup-title{width:480px;height:28px;font-style:normal;font-weight:500;font-size:20px;line-height:28px;color:#1d2327;flex:none;order:0;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-text .srfm-confirm-popup-description{width:480px;height:20px;font-style:normal;font-weight:400;font-size:13px;line-height:20px;display:flex;align-items:center;color:#50575e;flex:none;order:1;flex-grow:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls{display:flex;flex-direction:row;align-items:flex-start;gap:12px;flex:none;order:2}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-confirm-popup-buttons{display:flex;flex-direction:row;justify-content:center;align-items:center;padding:9px 17px;box-shadow:0 1px 2px rgba(0,0,0,.05)}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-popup-confirmation-button{background:#007cba;color:#fff;border-radius:2px;flex:none;order:0}.srfm-confirm-popup-wrapper .components-modal__content .srfm-confirm-popup-content .srfm-confirm-popup-controls .srfm-popup-cancellation-button{background:#fff;border:1px solid #e6e7e9;border-radius:2px;flex:none;order:1}.srfm-confirm-popup-overlay{background-color:rgba(0,0,0,.4392156863)}",""]);const s=a},89935:e=>{e.exports=function(){return!1}},90289:(e,t,r)=>{var n=r(12651);e.exports=function(e){return n(this,e).get(e)}},90938:e=>{e.exports=function(e){var t=this.__data__,r=t.delete(e);return this.size=t.size,r}},91574:function(e){var t;"undefined"!=typeof self&&self,t=function(){return function(e){var t={};function r(n){if(t[n])return t[n].exports;var o=t[n]={i:n,l:!1,exports:{}};return e[n].call(o.exports,o,o.exports,r),o.l=!0,o.exports}return r.m=e,r.c=t,r.d=function(e,t,n){r.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:n})},r.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return r.d(t,"a",t),t},r.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},r.p="",r(r.s=109)}([function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(17),o=r(18),i=r(19),a=r(45),s=r(46),l=r(47),u=r(48),c=r(49),d=r(12),f=r(32),m=r(33),p=r(31),h=r(1),g={Scope:h.Scope,create:h.create,find:h.find,query:h.query,register:h.register,Container:n.default,Format:o.default,Leaf:i.default,Embed:u.default,Scroll:a.default,Block:l.default,Inline:s.default,Text:c.default,Attributor:{Attribute:d.default,Class:f.default,Style:m.default,Store:p.default}};t.default=g},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(t){var r=this;return t="[Parchment] "+t,(r=e.call(this,t)||this).message=t,r.name=r.constructor.name,r}return o(t,e),t}(Error);t.ParchmentError=i;var a,s={},l={},u={},c={};function d(e,t){var r;if(void 0===t&&(t=a.ANY),"string"==typeof e)r=c[e]||s[e];else if(e instanceof Text||e.nodeType===Node.TEXT_NODE)r=c.text;else if("number"==typeof e)e&a.LEVEL&a.BLOCK?r=c.block:e&a.LEVEL&a.INLINE&&(r=c.inline);else if(e instanceof HTMLElement){var n=(e.getAttribute("class")||"").split(/\s+/);for(var o in n)if(r=l[n[o]])break;r=r||u[e.tagName]}return null==r?null:t&a.LEVEL&r.scope&&t&a.TYPE&r.scope?r:null}t.DATA_KEY="__blot",function(e){e[e.TYPE=3]="TYPE",e[e.LEVEL=12]="LEVEL",e[e.ATTRIBUTE=13]="ATTRIBUTE",e[e.BLOT=14]="BLOT",e[e.INLINE=7]="INLINE",e[e.BLOCK=11]="BLOCK",e[e.BLOCK_BLOT=10]="BLOCK_BLOT",e[e.INLINE_BLOT=6]="INLINE_BLOT",e[e.BLOCK_ATTRIBUTE=9]="BLOCK_ATTRIBUTE",e[e.INLINE_ATTRIBUTE=5]="INLINE_ATTRIBUTE",e[e.ANY=15]="ANY"}(a=t.Scope||(t.Scope={})),t.create=function(e,t){var r=d(e);if(null==r)throw new i("Unable to create "+e+" blot");var n=r,o=e instanceof Node||e.nodeType===Node.TEXT_NODE?e:n.create(t);return new n(o,t)},t.find=function e(r,n){return void 0===n&&(n=!1),null==r?null:null!=r[t.DATA_KEY]?r[t.DATA_KEY].blot:n?e(r.parentNode,n):null},t.query=d,t.register=function e(){for(var t=[],r=0;r<arguments.length;r++)t[r]=arguments[r];if(t.length>1)return t.map((function(t){return e(t)}));var n=t[0];if("string"!=typeof n.blotName&&"string"!=typeof n.attrName)throw new i("Invalid definition");if("abstract"===n.blotName)throw new i("Cannot register abstract class");return c[n.blotName||n.attrName]=n,"string"==typeof n.keyName?s[n.keyName]=n:(null!=n.className&&(l[n.className]=n),null!=n.tagName&&(Array.isArray(n.tagName)?n.tagName=n.tagName.map((function(e){return e.toUpperCase()})):n.tagName=n.tagName.toUpperCase(),(Array.isArray(n.tagName)?n.tagName:[n.tagName]).forEach((function(e){null!=u[e]&&null!=n.className||(u[e]=n)})))),n}},function(e,t,r){var n=r(51),o=r(11),i=r(3),a=r(20),s=String.fromCharCode(0),l=function(e){Array.isArray(e)?this.ops=e:null!=e&&Array.isArray(e.ops)?this.ops=e.ops:this.ops=[]};l.prototype.insert=function(e,t){var r={};return 0===e.length?this:(r.insert=e,null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r))},l.prototype.delete=function(e){return e<=0?this:this.push({delete:e})},l.prototype.retain=function(e,t){if(e<=0)return this;var r={retain:e};return null!=t&&"object"==typeof t&&Object.keys(t).length>0&&(r.attributes=t),this.push(r)},l.prototype.push=function(e){var t=this.ops.length,r=this.ops[t-1];if(e=i(!0,{},e),"object"==typeof r){if("number"==typeof e.delete&&"number"==typeof r.delete)return this.ops[t-1]={delete:r.delete+e.delete},this;if("number"==typeof r.delete&&null!=e.insert&&(t-=1,"object"!=typeof(r=this.ops[t-1])))return this.ops.unshift(e),this;if(o(e.attributes,r.attributes)){if("string"==typeof e.insert&&"string"==typeof r.insert)return this.ops[t-1]={insert:r.insert+e.insert},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this;if("number"==typeof e.retain&&"number"==typeof r.retain)return this.ops[t-1]={retain:r.retain+e.retain},"object"==typeof e.attributes&&(this.ops[t-1].attributes=e.attributes),this}}return t===this.ops.length?this.ops.push(e):this.ops.splice(t,0,e),this},l.prototype.chop=function(){var e=this.ops[this.ops.length-1];return e&&e.retain&&!e.attributes&&this.ops.pop(),this},l.prototype.filter=function(e){return this.ops.filter(e)},l.prototype.forEach=function(e){this.ops.forEach(e)},l.prototype.map=function(e){return this.ops.map(e)},l.prototype.partition=function(e){var t=[],r=[];return this.forEach((function(n){(e(n)?t:r).push(n)})),[t,r]},l.prototype.reduce=function(e,t){return this.ops.reduce(e,t)},l.prototype.changeLength=function(){return this.reduce((function(e,t){return t.insert?e+a.length(t):t.delete?e-t.delete:e}),0)},l.prototype.length=function(){return this.reduce((function(e,t){return e+a.length(t)}),0)},l.prototype.slice=function(e,t){e=e||0,"number"!=typeof t&&(t=1/0);for(var r=[],n=a.iterator(this.ops),o=0;o<t&&n.hasNext();){var i;o<e?i=n.next(e-o):(i=n.next(t-o),r.push(i)),o+=a.length(i)}return new l(r)},l.prototype.compose=function(e){var t=a.iterator(this.ops),r=a.iterator(e.ops),n=[],i=r.peek();if(null!=i&&"number"==typeof i.retain&&null==i.attributes){for(var s=i.retain;"insert"===t.peekType()&&t.peekLength()<=s;)s-=t.peekLength(),n.push(t.next());i.retain-s>0&&r.next(i.retain-s)}for(var u=new l(n);t.hasNext()||r.hasNext();)if("insert"===r.peekType())u.push(r.next());else if("delete"===t.peekType())u.push(t.next());else{var c=Math.min(t.peekLength(),r.peekLength()),d=t.next(c),f=r.next(c);if("number"==typeof f.retain){var m={};"number"==typeof d.retain?m.retain=c:m.insert=d.insert;var p=a.attributes.compose(d.attributes,f.attributes,"number"==typeof d.retain);if(p&&(m.attributes=p),u.push(m),!r.hasNext()&&o(u.ops[u.ops.length-1],m)){var h=new l(t.rest());return u.concat(h).chop()}}else"number"==typeof f.delete&&"number"==typeof d.retain&&u.push(f)}return u.chop()},l.prototype.concat=function(e){var t=new l(this.ops.slice());return e.ops.length>0&&(t.push(e.ops[0]),t.ops=t.ops.concat(e.ops.slice(1))),t},l.prototype.diff=function(e,t){if(this.ops===e.ops)return new l;var r=[this,e].map((function(t){return t.map((function(r){if(null!=r.insert)return"string"==typeof r.insert?r.insert:s;throw new Error("diff() called "+(t===e?"on":"with")+" non-document")})).join("")})),i=new l,u=n(r[0],r[1],t),c=a.iterator(this.ops),d=a.iterator(e.ops);return u.forEach((function(e){for(var t=e[1].length;t>0;){var r=0;switch(e[0]){case n.INSERT:r=Math.min(d.peekLength(),t),i.push(d.next(r));break;case n.DELETE:r=Math.min(t,c.peekLength()),c.next(r),i.delete(r);break;case n.EQUAL:r=Math.min(c.peekLength(),d.peekLength(),t);var s=c.next(r),l=d.next(r);o(s.insert,l.insert)?i.retain(r,a.attributes.diff(s.attributes,l.attributes)):i.push(l).delete(r)}t-=r}})),i.chop()},l.prototype.eachLine=function(e,t){t=t||"\n";for(var r=a.iterator(this.ops),n=new l,o=0;r.hasNext();){if("insert"!==r.peekType())return;var i=r.peek(),s=a.length(i)-r.peekLength(),u="string"==typeof i.insert?i.insert.indexOf(t,s)-s:-1;if(u<0)n.push(r.next());else if(u>0)n.push(r.next(u));else{if(!1===e(n,r.next(1).attributes||{},o))return;o+=1,n=new l}}n.length()>0&&e(n,{},o)},l.prototype.transform=function(e,t){if(t=!!t,"number"==typeof e)return this.transformPosition(e,t);for(var r=a.iterator(this.ops),n=a.iterator(e.ops),o=new l;r.hasNext()||n.hasNext();)if("insert"!==r.peekType()||!t&&"insert"===n.peekType())if("insert"===n.peekType())o.push(n.next());else{var i=Math.min(r.peekLength(),n.peekLength()),s=r.next(i),u=n.next(i);if(s.delete)continue;u.delete?o.push(u):o.retain(i,a.attributes.transform(s.attributes,u.attributes,t))}else o.retain(a.length(r.next()));return o.chop()},l.prototype.transformPosition=function(e,t){t=!!t;for(var r=a.iterator(this.ops),n=0;r.hasNext()&&n<=e;){var o=r.peekLength(),i=r.peekType();r.next(),"delete"!==i?("insert"===i&&(n<e||!t)&&(e+=o),n+=o):e-=Math.min(o,e-n)}return e},e.exports=l},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n=Object.prototype.toString,o=Object.defineProperty,i=Object.getOwnPropertyDescriptor,a=function(e){return"function"==typeof Array.isArray?Array.isArray(e):"[object Array]"===n.call(e)},s=function(e){if(!e||"[object Object]"!==n.call(e))return!1;var t,o=r.call(e,"constructor"),i=e.constructor&&e.constructor.prototype&&r.call(e.constructor.prototype,"isPrototypeOf");if(e.constructor&&!o&&!i)return!1;for(t in e);return void 0===t||r.call(e,t)},l=function(e,t){o&&"__proto__"===t.name?o(e,t.name,{enumerable:!0,configurable:!0,value:t.newValue,writable:!0}):e[t.name]=t.newValue},u=function(e,t){if("__proto__"===t){if(!r.call(e,t))return;if(i)return i(e,t).value}return e[t]};e.exports=function e(){var t,r,n,o,i,c,d=arguments[0],f=1,m=arguments.length,p=!1;for("boolean"==typeof d&&(p=d,d=arguments[1]||{},f=2),(null==d||"object"!=typeof d&&"function"!=typeof d)&&(d={});f<m;++f)if(null!=(t=arguments[f]))for(r in t)n=u(d,r),d!==(o=u(t,r))&&(p&&o&&(s(o)||(i=a(o)))?(i?(i=!1,c=n&&a(n)?n:[]):c=n&&s(n)?n:{},l(d,{name:r,newValue:e(p,c,o)})):void 0!==o&&l(d,{name:r,newValue:o}));return d}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BlockEmbed=t.bubbleFormats=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=d(r(3)),a=d(r(2)),s=d(r(0)),l=d(r(16)),u=d(r(6)),c=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function p(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)}var h=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),n(t,[{key:"attach",value:function(){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"attach",this).call(this),this.attributes=new s.default.Attributor.Store(this.domNode)}},{key:"delta",value:function(){return(new a.default).insert(this.value(),(0,i.default)(this.formats(),this.attributes.values()))}},{key:"format",value:function(e,t){var r=s.default.query(e,s.default.Scope.BLOCK_ATTRIBUTE);null!=r&&this.attributes.attribute(r,t)}},{key:"formatAt",value:function(e,t,r,n){this.format(r,n)}},{key:"insertAt",value:function(e,r,n){if("string"==typeof r&&r.endsWith("\n")){var i=s.default.create(g.blotName);this.parent.insertBefore(i,0===e?this:this.next),i.insertAt(0,r.slice(0,-1))}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n)}}]),t}(s.default.Embed);h.scope=s.default.Scope.BLOCK_BLOT;var g=function(e){function t(e){f(this,t);var r=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e));return r.cache={},r}return p(t,e),n(t,[{key:"delta",value:function(){return null==this.cache.delta&&(this.cache.delta=this.descendants(s.default.Leaf).reduce((function(e,t){return 0===t.length()?e:e.insert(t.value(),b(t))}),new a.default).insert("\n",b(this))),this.cache.delta}},{key:"deleteAt",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),this.cache={}}},{key:"formatAt",value:function(e,r,n,i){r<=0||(s.default.query(n,s.default.Scope.BLOCK)?e+r===this.length()&&this.format(n,i):o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,Math.min(r,this.length()-e-1),n,i),this.cache={})}},{key:"insertAt",value:function(e,r,n){if(null!=n)return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);if(0!==r.length){var i=r.split("\n"),a=i.shift();a.length>0&&(e<this.length()-1||null==this.children.tail?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,Math.min(e,this.length()-1),a):this.children.tail.insertAt(this.children.tail.length(),a),this.cache={});var s=this;i.reduce((function(e,t){return(s=s.split(e,!0)).insertAt(0,t),t.length}),e+a.length)}}},{key:"insertBefore",value:function(e,r){var n=this.children.head;o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r),n instanceof l.default&&n.remove(),this.cache={}}},{key:"length",value:function(){return null==this.cache.length&&(this.cache.length=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"length",this).call(this)+1),this.cache.length}},{key:"moveChildren",value:function(e,r){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"moveChildren",this).call(this,e,r),this.cache={}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.cache={}}},{key:"path",value:function(e){return o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e,!0)}},{key:"removeChild",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"removeChild",this).call(this,e),this.cache={}}},{key:"split",value:function(e){var r=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(r&&(0===e||e>=this.length()-1)){var n=this.clone();return 0===e?(this.parent.insertBefore(n,this),this):(this.parent.insertBefore(n,this.next),n)}var i=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"split",this).call(this,e,r);return this.cache={},i}}]),t}(s.default.Block);function b(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return null==e?t:("function"==typeof e.formats&&(t=(0,i.default)(t,e.formats())),null==e.parent||"scroll"==e.parent.blotName||e.parent.statics.scope!==e.statics.scope?t:b(e.parent,t))}g.blotName="block",g.tagName="P",g.defaultChild="break",g.allowedChildren=[u.default,s.default.Embed,c.default],t.bubbleFormats=b,t.BlockEmbed=h,t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.overload=t.expandConfig=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}();r(50);var a=g(r(2)),s=g(r(14)),l=g(r(8)),u=g(r(9)),c=g(r(0)),d=r(15),f=g(d),m=g(r(3)),p=g(r(10)),h=g(r(34));function g(e){return e&&e.__esModule?e:{default:e}}function b(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var y=(0,p.default)("quill"),v=function(){function e(t){var r=this,n=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};if(function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.options=D(t,n),this.container=this.options.container,null==this.container)return y.error("Invalid Quill container",t);this.options.debug&&e.debug(this.options.debug);var o=this.container.innerHTML.trim();this.container.classList.add("ql-container"),this.container.innerHTML="",this.container.__quill=this,this.root=this.addContainer("ql-editor"),this.root.classList.add("ql-blank"),this.root.setAttribute("data-gramm",!1),this.scrollingContainer=this.options.scrollingContainer||this.root,this.emitter=new l.default,this.scroll=c.default.create(this.root,{emitter:this.emitter,whitelist:this.options.formats}),this.editor=new s.default(this.scroll),this.selection=new f.default(this.scroll,this.emitter),this.theme=new this.options.theme(this,this.options),this.keyboard=this.theme.addModule("keyboard"),this.clipboard=this.theme.addModule("clipboard"),this.history=this.theme.addModule("history"),this.theme.init(),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e){e===l.default.events.TEXT_CHANGE&&r.root.classList.toggle("ql-blank",r.editor.isBlank())})),this.emitter.on(l.default.events.SCROLL_UPDATE,(function(e,t){var n=r.selection.lastRange,o=n&&0===n.length?n.index:void 0;_.call(r,(function(){return r.editor.update(null,t,o)}),e)}));var i=this.clipboard.convert("<div class='ql-editor' style=\"white-space: normal;\">"+o+"<p><br></p></div>");this.setContents(i),this.history.clear(),this.options.placeholder&&this.root.setAttribute("data-placeholder",this.options.placeholder),this.options.readOnly&&this.disable()}return i(e,null,[{key:"debug",value:function(e){!0===e&&(e="log"),p.default.level(e)}},{key:"find",value:function(e){return e.__quill||c.default.find(e)}},{key:"import",value:function(e){return null==this.imports[e]&&y.error("Cannot import "+e+". Are you sure it was registered?"),this.imports[e]}},{key:"register",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if("string"!=typeof e){var o=e.attrName||e.blotName;"string"==typeof o?this.register("formats/"+o,e,t):Object.keys(e).forEach((function(n){r.register(n,e[n],t)}))}else null==this.imports[e]||n||y.warn("Overwriting "+e+" with",t),this.imports[e]=t,(e.startsWith("blots/")||e.startsWith("formats/"))&&"abstract"!==t.blotName?c.default.register(t):e.startsWith("modules")&&"function"==typeof t.register&&t.register()}}]),i(e,[{key:"addContainer",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if("string"==typeof e){var r=e;(e=document.createElement("div")).classList.add(r)}return this.container.insertBefore(e,t),e}},{key:"blur",value:function(){this.selection.setRange(null)}},{key:"deleteText",value:function(e,t,r){var n=this,i=x(e,t,r),a=o(i,4);return e=a[0],t=a[1],r=a[3],_.call(this,(function(){return n.editor.deleteText(e,t)}),r,e,-1*t)}},{key:"disable",value:function(){this.enable(!1)}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.scroll.enable(e),this.container.classList.toggle("ql-disabled",!e)}},{key:"focus",value:function(){var e=this.scrollingContainer.scrollTop;this.selection.focus(),this.scrollingContainer.scrollTop=e,this.scrollIntoView()}},{key:"format",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;return _.call(this,(function(){var n=r.getSelection(!0),o=new a.default;if(null==n)return o;if(c.default.query(e,c.default.Scope.BLOCK))o=r.editor.formatLine(n.index,n.length,b({},e,t));else{if(0===n.length)return r.selection.format(e,t),o;o=r.editor.formatText(n.index,n.length,b({},e,t))}return r.setSelection(n,l.default.sources.SILENT),o}),n)}},{key:"formatLine",value:function(e,t,r,n,i){var a,s=this,l=x(e,t,r,n,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],_.call(this,(function(){return s.editor.formatLine(e,t,a)}),i,e,0)}},{key:"formatText",value:function(e,t,r,n,i){var a,s=this,l=x(e,t,r,n,i),u=o(l,4);return e=u[0],t=u[1],a=u[2],i=u[3],_.call(this,(function(){return s.editor.formatText(e,t,a)}),i,e,0)}},{key:"getBounds",value:function(e){var t,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;t="number"==typeof e?this.selection.getBounds(e,r):this.selection.getBounds(e.index,e.length);var n=this.container.getBoundingClientRect();return{bottom:t.bottom-n.top,height:t.height,left:t.left-n.left,right:t.right-n.left,top:t.top-n.top,width:t.width}}},{key:"getContents",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=x(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getContents(e,t)}},{key:"getFormat",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.getSelection(!0),t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return"number"==typeof e?this.editor.getFormat(e,t):this.editor.getFormat(e.index,e.length)}},{key:"getIndex",value:function(e){return e.offset(this.scroll)}},{key:"getLength",value:function(){return this.scroll.length()}},{key:"getLeaf",value:function(e){return this.scroll.leaf(e)}},{key:"getLine",value:function(e){return this.scroll.line(e)}},{key:"getLines",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE;return"number"!=typeof e?this.scroll.lines(e.index,e.length):this.scroll.lines(e,t)}},{key:"getModule",value:function(e){return this.theme.modules[e]}},{key:"getSelection",value:function(){return arguments.length>0&&void 0!==arguments[0]&&arguments[0]&&this.focus(),this.update(),this.selection.getRange()[0]}},{key:"getText",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:this.getLength()-e,r=x(e,t),n=o(r,2);return e=n[0],t=n[1],this.editor.getText(e,t)}},{key:"hasFocus",value:function(){return this.selection.hasFocus()}},{key:"insertEmbed",value:function(t,r,n){var o=this,i=arguments.length>3&&void 0!==arguments[3]?arguments[3]:e.sources.API;return _.call(this,(function(){return o.editor.insertEmbed(t,r,n)}),i,t)}},{key:"insertText",value:function(e,t,r,n,i){var a,s=this,l=x(e,0,r,n,i),u=o(l,4);return e=u[0],a=u[2],i=u[3],_.call(this,(function(){return s.editor.insertText(e,t,a)}),i,e,t.length)}},{key:"isEnabled",value:function(){return!this.container.classList.contains("ql-disabled")}},{key:"off",value:function(){return this.emitter.off.apply(this.emitter,arguments)}},{key:"on",value:function(){return this.emitter.on.apply(this.emitter,arguments)}},{key:"once",value:function(){return this.emitter.once.apply(this.emitter,arguments)}},{key:"pasteHTML",value:function(e,t,r){this.clipboard.dangerouslyPasteHTML(e,t,r)}},{key:"removeFormat",value:function(e,t,r){var n=this,i=x(e,t,r),a=o(i,4);return e=a[0],t=a[1],r=a[3],_.call(this,(function(){return n.editor.removeFormat(e,t)}),r,e)}},{key:"scrollIntoView",value:function(){this.selection.scrollIntoView(this.scrollingContainer)}},{key:"setContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return _.call(this,(function(){e=new a.default(e);var r=t.getLength(),n=t.editor.deleteText(0,r),o=t.editor.applyDelta(e),i=o.ops[o.ops.length-1];return null!=i&&"string"==typeof i.insert&&"\n"===i.insert[i.insert.length-1]&&(t.editor.deleteText(t.getLength()-1,1),o.delete(1)),n.compose(o)}),r)}},{key:"setSelection",value:function(t,r,n){if(null==t)this.selection.setRange(null,r||e.sources.API);else{var i=x(t,r,n),a=o(i,4);t=a[0],r=a[1],n=a[3],this.selection.setRange(new d.Range(t,r),n),n!==l.default.sources.SILENT&&this.selection.scrollIntoView(this.scrollingContainer)}}},{key:"setText",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API,r=(new a.default).insert(e);return this.setContents(r,t)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.scroll.update(e);return this.selection.update(e),t}},{key:"updateContents",value:function(e){var t=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:l.default.sources.API;return _.call(this,(function(){return e=new a.default(e),t.editor.applyDelta(e,r)}),r,!0)}}]),e}();function D(e,t){if((t=(0,m.default)(!0,{container:e,modules:{clipboard:!0,keyboard:!0,history:!0}},t)).theme&&t.theme!==v.DEFAULTS.theme){if(t.theme=v.import("themes/"+t.theme),null==t.theme)throw new Error("Invalid theme "+t.theme+". Did you register it?")}else t.theme=h.default;var r=(0,m.default)(!0,{},t.theme.DEFAULTS);[r,t].forEach((function(e){e.modules=e.modules||{},Object.keys(e.modules).forEach((function(t){!0===e.modules[t]&&(e.modules[t]={})}))}));var n=Object.keys(r.modules).concat(Object.keys(t.modules)).reduce((function(e,t){var r=v.import("modules/"+t);return null==r?y.error("Cannot load "+t+" module. Are you sure you registered it?"):e[t]=r.DEFAULTS||{},e}),{});return null!=t.modules&&t.modules.toolbar&&t.modules.toolbar.constructor!==Object&&(t.modules.toolbar={container:t.modules.toolbar}),t=(0,m.default)(!0,{},v.DEFAULTS,{modules:n},r,t),["bounds","container","scrollingContainer"].forEach((function(e){"string"==typeof t[e]&&(t[e]=document.querySelector(t[e]))})),t.modules=Object.keys(t.modules).reduce((function(e,r){return t.modules[r]&&(e[r]=t.modules[r]),e}),{}),t}function _(e,t,r,n){if(this.options.strict&&!this.isEnabled()&&t===l.default.sources.USER)return new a.default;var o=null==r?null:this.getSelection(),i=this.editor.delta,s=e();if(null!=o&&(!0===r&&(r=o.index),null==n?o=k(o,s,t):0!==n&&(o=k(o,r,n,t)),this.setSelection(o,l.default.sources.SILENT)),s.length()>0){var u,c,d=[l.default.events.TEXT_CHANGE,s,i,t];(u=this.emitter).emit.apply(u,[l.default.events.EDITOR_CHANGE].concat(d)),t!==l.default.sources.SILENT&&(c=this.emitter).emit.apply(c,d)}return s}function x(e,t,r,o,i){var a={};return"number"==typeof e.index&&"number"==typeof e.length?"number"!=typeof t?(i=o,o=r,r=t,t=e.length,e=e.index):(t=e.length,e=e.index):"number"!=typeof t&&(i=o,o=r,r=t,t=0),"object"===(void 0===r?"undefined":n(r))?(a=r,i=o):"string"==typeof r&&(null!=o?a[r]=o:i=r),[e,t,a,i=i||l.default.sources.API]}function k(e,t,r,n){if(null==e)return null;var i=void 0,s=void 0;if(t instanceof a.default){var u=[e.index,e.index+e.length].map((function(e){return t.transformPosition(e,n!==l.default.sources.USER)})),c=o(u,2);i=c[0],s=c[1]}else{var f=[e.index,e.index+e.length].map((function(e){return e<t||e===t&&n===l.default.sources.USER?e:r>=0?e+r:Math.max(t,e+r)})),m=o(f,2);i=m[0],s=m[1]}return new d.Range(i,s-i)}v.DEFAULTS={bounds:null,formats:null,modules:{},placeholder:"",readOnly:!1,scrollingContainer:null,strict:!0,theme:"default"},v.events=l.default.events,v.sources=l.default.sources,v.version="1.3.7",v.imports={delta:a.default,parchment:c.default,"core/module":u.default,"core/theme":h.default},t.expandConfig=D,t.overload=x,t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=s(r(7)),a=s(r(0));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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),n(t,[{key:"formatAt",value:function(e,r,n,i){if(t.compare(this.statics.blotName,n)<0&&a.default.query(n,a.default.Scope.BLOT)){var s=this.isolate(e,r);i&&s.wrap(n,i)}else o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,i)}},{key:"optimize",value:function(e){if(o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.parent instanceof t&&t.compare(this.statics.blotName,this.parent.statics.blotName)>0){var r=this.parent.isolate(this.offset(),this.length());this.moveChildren(r),r.wrap(this)}}}],[{key:"compare",value:function(e,r){var n=t.order.indexOf(e),o=t.order.indexOf(r);return n>=0||o>=0?n-o:e===r?0:e<r?-1:1}}]),t}(a.default.Inline);l.allowedChildren=[l,a.default.Embed,i.default],l.order=["cursor","inline","underline","strike","italic","bold","script","link","code"],t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(0))&&n.__esModule?n:{default:n}).default.Text);t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=a(r(54));function a(e){return e&&e.__esModule?e:{default:e}}var s=(0,a(r(10)).default)("quill:events");["selectionchange","mousedown","mouseup","click"].forEach((function(e){document.addEventListener(e,(function(){for(var e=arguments.length,t=Array(e),r=0;r<e;r++)t[r]=arguments[r];[].slice.call(document.querySelectorAll(".ql-container")).forEach((function(e){var r;e.__quill&&e.__quill.emitter&&(r=e.__quill.emitter).handleDOM.apply(r,t)}))}))}));var l=function(e){function t(){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var e=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));return e.listeners={},e.on("error",s.error),e}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),n(t,[{key:"emit",value:function(){s.log.apply(s,arguments),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"emit",this).apply(this,arguments)}},{key:"handleDOM",value:function(e){for(var t=arguments.length,r=Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(this.listeners[e.type]||[]).forEach((function(t){var n=t.node,o=t.handler;(e.target===n||n.contains(e.target))&&o.apply(void 0,[e].concat(r))}))}},{key:"listenDOM",value:function(e,t,r){this.listeners[e]||(this.listeners[e]=[]),this.listeners[e].push({node:t,handler:r})}}]),t}(i.default);l.events={EDITOR_CHANGE:"editor-change",SCROLL_BEFORE_UPDATE:"scroll-before-update",SCROLL_OPTIMIZE:"scroll-optimize",SCROLL_UPDATE:"scroll-update",SELECTION_CHANGE:"selection-change",TEXT_CHANGE:"text-change"},l.sources={API:"api",SILENT:"silent",USER:"user"},t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r};n.DEFAULTS={},t.default=n},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=["error","warn","log","info"],o="warn";function i(e){if(n.indexOf(e)<=n.indexOf(o)){for(var t,r=arguments.length,i=Array(r>1?r-1:0),a=1;a<r;a++)i[a-1]=arguments[a];(t=console)[e].apply(t,i)}}function a(e){return n.reduce((function(t,r){return t[r]=i.bind(console,r,e),t}),{})}i.level=a.level=function(e){o=e},t.default=a},function(e,t,r){var n=Array.prototype.slice,o=r(52),i=r(53),a=e.exports=function(e,t,r){return r||(r={}),e===t||(e instanceof Date&&t instanceof Date?e.getTime()===t.getTime():!e||!t||"object"!=typeof e&&"object"!=typeof t?r.strict?e===t:e==t:function(e,t,r){var u,c;if(s(e)||s(t))return!1;if(e.prototype!==t.prototype)return!1;if(i(e))return!!i(t)&&(e=n.call(e),t=n.call(t),a(e,t,r));if(l(e)){if(!l(t))return!1;if(e.length!==t.length)return!1;for(u=0;u<e.length;u++)if(e[u]!==t[u])return!1;return!0}try{var d=o(e),f=o(t)}catch(e){return!1}if(d.length!=f.length)return!1;for(d.sort(),f.sort(),u=d.length-1;u>=0;u--)if(d[u]!=f[u])return!1;for(u=d.length-1;u>=0;u--)if(c=d[u],!a(e[c],t[c],r))return!1;return typeof e==typeof t}(e,t,r))};function s(e){return null==e}function l(e){return!(!e||"object"!=typeof e||"number"!=typeof e.length||"function"!=typeof e.copy||"function"!=typeof e.slice||e.length>0&&"number"!=typeof e[0])}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e,t,r){void 0===r&&(r={}),this.attrName=e,this.keyName=t;var o=n.Scope.TYPE&n.Scope.ATTRIBUTE;null!=r.scope?this.scope=r.scope&n.Scope.LEVEL|o:this.scope=n.Scope.ATTRIBUTE,null!=r.whitelist&&(this.whitelist=r.whitelist)}return e.keys=function(e){return[].map.call(e.attributes,(function(e){return e.name}))},e.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.setAttribute(this.keyName,t),!0)},e.prototype.canAdd=function(e,t){return null!=n.query(e,n.Scope.BLOT&(this.scope|n.Scope.TYPE))&&(null==this.whitelist||("string"==typeof t?this.whitelist.indexOf(t.replace(/["']/g,""))>-1:this.whitelist.indexOf(t)>-1))},e.prototype.remove=function(e){e.removeAttribute(this.keyName)},e.prototype.value=function(e){var t=e.getAttribute(this.keyName);return this.canAdd(e,t)&&t?t:""},e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Code=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=d(r(2)),s=d(r(0)),l=d(r(4)),u=d(r(6)),c=d(r(7));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function p(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)}var h=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),t}(u.default);h.blotName="code",h.tagName="CODE";var g=function(e){function t(){return f(this,t),m(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return p(t,e),o(t,[{key:"delta",value:function(){var e=this,t=this.domNode.textContent;return t.endsWith("\n")&&(t=t.slice(0,-1)),t.split("\n").reduce((function(t,r){return t.insert(r).insert("\n",e.formats())}),new a.default)}},{key:"format",value:function(e,r){if(e!==this.statics.blotName||!r){var o=this.descendant(c.default,this.length()-1),a=n(o,1)[0];null!=a&&a.deleteAt(a.length()-1,1),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}},{key:"formatAt",value:function(e,r,n,o){if(0!==r&&null!=s.default.query(n,s.default.Scope.BLOCK)&&(n!==this.statics.blotName||o!==this.statics.formats(this.domNode))){var i=this.newlineIndex(e);if(!(i<0||i>=e+r)){var a=this.newlineIndex(e,!0)+1,l=i-a+1,u=this.isolate(a,l),c=u.next;u.format(n,o),c instanceof t&&c.formatAt(0,e-a+r-l,n,o)}}}},{key:"insertAt",value:function(e,t,r){if(null==r){var o=this.descendant(c.default,e),i=n(o,2),a=i[0],s=i[1];a.insertAt(s,t)}}},{key:"length",value:function(){var e=this.domNode.textContent.length;return this.domNode.textContent.endsWith("\n")?e:e+1}},{key:"newlineIndex",value:function(e){if(arguments.length>1&&void 0!==arguments[1]&&arguments[1])return this.domNode.textContent.slice(0,e).lastIndexOf("\n");var t=this.domNode.textContent.slice(e).indexOf("\n");return t>-1?e+t:-1}},{key:"optimize",value:function(e){this.domNode.textContent.endsWith("\n")||this.appendChild(s.default.create("text","\n")),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&this.statics.formats(this.domNode)===r.statics.formats(r.domNode)&&(r.optimize(e),r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e),[].slice.call(this.domNode.querySelectorAll("*")).forEach((function(e){var t=s.default.find(e);null==t?e.parentNode.removeChild(e):t instanceof s.default.Embed?t.remove():t.unwrap()}))}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("spellcheck",!1),r}},{key:"formats",value:function(){return!0}}]),t}(l.default);g.blotName="code-block",g.tagName="PRE",g.TAB="  ",t.Code=h,t.default=g},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=b(r(2)),s=b(r(20)),l=b(r(0)),u=b(r(13)),c=b(r(24)),d=r(4),f=b(d),m=b(r(16)),p=b(r(21)),h=b(r(11)),g=b(r(3));function b(e){return e&&e.__esModule?e:{default:e}}var y=/^[ -~]*$/,v=function(){function e(t){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.scroll=t,this.delta=this.getDelta()}return i(e,[{key:"applyDelta",value:function(e){var t=this,r=!1;this.scroll.update();var i=this.scroll.length();return this.scroll.batchStart(),(e=function(e){return e.reduce((function(e,t){if(1===t.insert){var r=(0,p.default)(t.attributes);return delete r.image,e.insert({image:t.attributes.image},r)}if(null==t.attributes||!0!==t.attributes.list&&!0!==t.attributes.bullet||((t=(0,p.default)(t)).attributes.list?t.attributes.list="ordered":(t.attributes.list="bullet",delete t.attributes.bullet)),"string"==typeof t.insert){var n=t.insert.replace(/\r\n/g,"\n").replace(/\r/g,"\n");return e.insert(n,t.attributes)}return e.push(t)}),new a.default)}(e)).reduce((function(e,a){var u=a.retain||a.delete||a.insert.length||1,c=a.attributes||{};if(null!=a.insert){if("string"==typeof a.insert){var m=a.insert;m.endsWith("\n")&&r&&(r=!1,m=m.slice(0,-1)),e>=i&&!m.endsWith("\n")&&(r=!0),t.scroll.insertAt(e,m);var p=t.scroll.line(e),h=o(p,2),b=h[0],y=h[1],v=(0,g.default)({},(0,d.bubbleFormats)(b));if(b instanceof f.default){var D=b.descendant(l.default.Leaf,y),_=o(D,1)[0];v=(0,g.default)(v,(0,d.bubbleFormats)(_))}c=s.default.attributes.diff(v,c)||{}}else if("object"===n(a.insert)){var x=Object.keys(a.insert)[0];if(null==x)return e;t.scroll.insertAt(e,x,a.insert[x])}i+=u}return Object.keys(c).forEach((function(r){t.scroll.formatAt(e,u,r,c[r])})),e+u}),0),e.reduce((function(e,r){return"number"==typeof r.delete?(t.scroll.deleteAt(e,r.delete),e):e+(r.retain||r.insert.length||1)}),0),this.scroll.batchEnd(),this.update(e)}},{key:"deleteText",value:function(e,t){return this.scroll.deleteAt(e,t),this.update((new a.default).retain(e).delete(t))}},{key:"formatLine",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return this.scroll.update(),Object.keys(n).forEach((function(o){if(null==r.scroll.whitelist||r.scroll.whitelist[o]){var i=r.scroll.lines(e,Math.max(t,1)),a=t;i.forEach((function(t){var i=t.length();if(t instanceof u.default){var s=e-t.offset(r.scroll),l=t.newlineIndex(s+a)-s+1;t.formatAt(s,l,o,n[o])}else t.format(o,n[o]);a-=i}))}})),this.scroll.optimize(),this.update((new a.default).retain(e).retain(t,(0,p.default)(n)))}},{key:"formatText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t,o,n[o])})),this.update((new a.default).retain(e).retain(t,(0,p.default)(n)))}},{key:"getContents",value:function(e,t){return this.delta.slice(e,e+t)}},{key:"getDelta",value:function(){return this.scroll.lines().reduce((function(e,t){return e.concat(t.delta())}),new a.default)}},{key:"getFormat",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=[],n=[];0===t?this.scroll.path(e).forEach((function(e){var t=o(e,1)[0];t instanceof f.default?r.push(t):t instanceof l.default.Leaf&&n.push(t)})):(r=this.scroll.lines(e,t),n=this.scroll.descendants(l.default.Leaf,e,t));var i=[r,n].map((function(e){if(0===e.length)return{};for(var t=(0,d.bubbleFormats)(e.shift());Object.keys(t).length>0;){var r=e.shift();if(null==r)return t;t=D((0,d.bubbleFormats)(r),t)}return t}));return g.default.apply(g.default,i)}},{key:"getText",value:function(e,t){return this.getContents(e,t).filter((function(e){return"string"==typeof e.insert})).map((function(e){return e.insert})).join("")}},{key:"insertEmbed",value:function(e,t,r){return this.scroll.insertAt(e,t,r),this.update((new a.default).retain(e).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},t,r)))}},{key:"insertText",value:function(e,t){var r=this,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};return t=t.replace(/\r\n/g,"\n").replace(/\r/g,"\n"),this.scroll.insertAt(e,t),Object.keys(n).forEach((function(o){r.scroll.formatAt(e,t.length,o,n[o])})),this.update((new a.default).retain(e).insert(t,(0,p.default)(n)))}},{key:"isBlank",value:function(){if(0==this.scroll.children.length)return!0;if(this.scroll.children.length>1)return!1;var e=this.scroll.children.head;return e.statics.blotName===f.default.blotName&&!(e.children.length>1)&&e.children.head instanceof m.default}},{key:"removeFormat",value:function(e,t){var r=this.getText(e,t),n=this.scroll.line(e+t),i=o(n,2),s=i[0],l=i[1],c=0,d=new a.default;null!=s&&(c=s instanceof u.default?s.newlineIndex(l)-l+1:s.length()-l,d=s.delta().slice(l,l+c-1).insert("\n"));var f=this.getContents(e,t+c).diff((new a.default).insert(r).concat(d)),m=(new a.default).retain(e).concat(f);return this.applyDelta(m)}},{key:"update",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:void 0,n=this.delta;if(1===t.length&&"characterData"===t[0].type&&t[0].target.data.match(y)&&l.default.find(t[0].target)){var o=l.default.find(t[0].target),i=(0,d.bubbleFormats)(o),s=o.offset(this.scroll),u=t[0].oldValue.replace(c.default.CONTENTS,""),f=(new a.default).insert(u),m=(new a.default).insert(o.value());e=(new a.default).retain(s).concat(f.diff(m,r)).reduce((function(e,t){return t.insert?e.insert(t.insert,i):e.push(t)}),new a.default),this.delta=n.compose(e)}else this.delta=this.getDelta(),e&&(0,h.default)(n.compose(e),this.delta)||(e=n.diff(this.delta,r));return e}}]),e}();function D(e,t){return Object.keys(t).reduce((function(r,n){return null==e[n]||(t[n]===e[n]?r[n]=t[n]:Array.isArray(t[n])?t[n].indexOf(e[n])<0&&(r[n]=t[n].concat([e[n]])):r[n]=[t[n],e[n]]),r}),{})}t.default=v},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.Range=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=u(r(0)),a=u(r(21)),s=u(r(11)),l=u(r(8));function u(e){return e&&e.__esModule?e:{default:e}}function c(e){if(Array.isArray(e)){for(var t=0,r=Array(e.length);t<e.length;t++)r[t]=e[t];return r}return Array.from(e)}function d(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}var f=(0,u(r(10)).default)("quill:selection"),m=function e(t){var r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;d(this,e),this.index=t,this.length=r},p=function(){function e(t,r){var n=this;d(this,e),this.emitter=r,this.scroll=t,this.composing=!1,this.mouseDown=!1,this.root=this.scroll.domNode,this.cursor=i.default.create("cursor",this),this.lastRange=this.savedRange=new m(0,0),this.handleComposition(),this.handleDragging(),this.emitter.listenDOM("selectionchange",document,(function(){n.mouseDown||setTimeout(n.update.bind(n,l.default.sources.USER),1)})),this.emitter.on(l.default.events.EDITOR_CHANGE,(function(e,t){e===l.default.events.TEXT_CHANGE&&t.length()>0&&n.update(l.default.sources.SILENT)})),this.emitter.on(l.default.events.SCROLL_BEFORE_UPDATE,(function(){if(n.hasFocus()){var e=n.getNativeRange();null!=e&&e.start.node!==n.cursor.textNode&&n.emitter.once(l.default.events.SCROLL_UPDATE,(function(){try{n.setNativeRange(e.start.node,e.start.offset,e.end.node,e.end.offset)}catch(e){}}))}})),this.emitter.on(l.default.events.SCROLL_OPTIMIZE,(function(e,t){if(t.range){var r=t.range,o=r.startNode,i=r.startOffset,a=r.endNode,s=r.endOffset;n.setNativeRange(o,i,a,s)}})),this.update(l.default.sources.SILENT)}return o(e,[{key:"handleComposition",value:function(){var e=this;this.root.addEventListener("compositionstart",(function(){e.composing=!0})),this.root.addEventListener("compositionend",(function(){if(e.composing=!1,e.cursor.parent){var t=e.cursor.restore();if(!t)return;setTimeout((function(){e.setNativeRange(t.startNode,t.startOffset,t.endNode,t.endOffset)}),1)}}))}},{key:"handleDragging",value:function(){var e=this;this.emitter.listenDOM("mousedown",document.body,(function(){e.mouseDown=!0})),this.emitter.listenDOM("mouseup",document.body,(function(){e.mouseDown=!1,e.update(l.default.sources.USER)}))}},{key:"focus",value:function(){this.hasFocus()||(this.root.focus(),this.setRange(this.savedRange))}},{key:"format",value:function(e,t){if(null==this.scroll.whitelist||this.scroll.whitelist[e]){this.scroll.update();var r=this.getNativeRange();if(null!=r&&r.native.collapsed&&!i.default.query(e,i.default.Scope.BLOCK)){if(r.start.node!==this.cursor.textNode){var n=i.default.find(r.start.node,!1);if(null==n)return;if(n instanceof i.default.Leaf){var o=n.split(r.start.offset);n.parent.insertBefore(this.cursor,o)}else n.insertBefore(this.cursor,r.start.node);this.cursor.attach()}this.cursor.format(e,t),this.scroll.optimize(),this.setNativeRange(this.cursor.textNode,this.cursor.textNode.data.length),this.update()}}}},{key:"getBounds",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,r=this.scroll.length();e=Math.min(e,r-1),t=Math.min(e+t,r-1)-e;var o=void 0,i=this.scroll.leaf(e),a=n(i,2),s=a[0],l=a[1];if(null==s)return null;var u=s.position(l,!0),c=n(u,2);o=c[0],l=c[1];var d=document.createRange();if(t>0){d.setStart(o,l);var f=this.scroll.leaf(e+t),m=n(f,2);if(s=m[0],l=m[1],null==s)return null;var p=s.position(l,!0),h=n(p,2);return o=h[0],l=h[1],d.setEnd(o,l),d.getBoundingClientRect()}var g="left",b=void 0;return o instanceof Text?(l<o.data.length?(d.setStart(o,l),d.setEnd(o,l+1)):(d.setStart(o,l-1),d.setEnd(o,l),g="right"),b=d.getBoundingClientRect()):(b=s.domNode.getBoundingClientRect(),l>0&&(g="right")),{bottom:b.top+b.height,height:b.height,left:b[g],right:b[g],top:b.top,width:0}}},{key:"getNativeRange",value:function(){var e=document.getSelection();if(null==e||e.rangeCount<=0)return null;var t=e.getRangeAt(0);if(null==t)return null;var r=this.normalizeNative(t);return f.info("getNativeRange",r),r}},{key:"getRange",value:function(){var e=this.getNativeRange();return null==e?[null,null]:[this.normalizedToRange(e),e]}},{key:"hasFocus",value:function(){return document.activeElement===this.root}},{key:"normalizedToRange",value:function(e){var t=this,r=[[e.start.node,e.start.offset]];e.native.collapsed||r.push([e.end.node,e.end.offset]);var o=r.map((function(e){var r=n(e,2),o=r[0],a=r[1],s=i.default.find(o,!0),l=s.offset(t.scroll);return 0===a?l:s instanceof i.default.Container?l+s.length():l+s.index(o,a)})),a=Math.min(Math.max.apply(Math,c(o)),this.scroll.length()-1),s=Math.min.apply(Math,[a].concat(c(o)));return new m(s,a-s)}},{key:"normalizeNative",value:function(e){if(!h(this.root,e.startContainer)||!e.collapsed&&!h(this.root,e.endContainer))return null;var t={start:{node:e.startContainer,offset:e.startOffset},end:{node:e.endContainer,offset:e.endOffset},native:e};return[t.start,t.end].forEach((function(e){for(var t=e.node,r=e.offset;!(t instanceof Text)&&t.childNodes.length>0;)if(t.childNodes.length>r)t=t.childNodes[r],r=0;else{if(t.childNodes.length!==r)break;r=(t=t.lastChild)instanceof Text?t.data.length:t.childNodes.length+1}e.node=t,e.offset=r})),t}},{key:"rangeToNative",value:function(e){var t=this,r=e.collapsed?[e.index]:[e.index,e.index+e.length],o=[],i=this.scroll.length();return r.forEach((function(e,r){e=Math.min(i-1,e);var a,s=t.scroll.leaf(e),l=n(s,2),u=l[0],c=l[1],d=u.position(c,0!==r),f=n(d,2);a=f[0],c=f[1],o.push(a,c)})),o.length<2&&(o=o.concat(o)),o}},{key:"scrollIntoView",value:function(e){var t=this.lastRange;if(null!=t){var r=this.getBounds(t.index,t.length);if(null!=r){var o=this.scroll.length()-1,i=this.scroll.line(Math.min(t.index,o)),a=n(i,1)[0],s=a;if(t.length>0){var l=this.scroll.line(Math.min(t.index+t.length,o));s=n(l,1)[0]}if(null!=a&&null!=s){var u=e.getBoundingClientRect();r.top<u.top?e.scrollTop-=u.top-r.top:r.bottom>u.bottom&&(e.scrollTop+=r.bottom-u.bottom)}}}}},{key:"setNativeRange",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:e,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:t,o=arguments.length>4&&void 0!==arguments[4]&&arguments[4];if(f.info("setNativeRange",e,t,r,n),null==e||null!=this.root.parentNode&&null!=e.parentNode&&null!=r.parentNode){var i=document.getSelection();if(null!=i)if(null!=e){this.hasFocus()||this.root.focus();var a=(this.getNativeRange()||{}).native;if(null==a||o||e!==a.startContainer||t!==a.startOffset||r!==a.endContainer||n!==a.endOffset){"BR"==e.tagName&&(t=[].indexOf.call(e.parentNode.childNodes,e),e=e.parentNode),"BR"==r.tagName&&(n=[].indexOf.call(r.parentNode.childNodes,r),r=r.parentNode);var s=document.createRange();s.setStart(e,t),s.setEnd(r,n),i.removeAllRanges(),i.addRange(s)}}else i.removeAllRanges(),this.root.blur(),document.body.focus()}}},{key:"setRange",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:l.default.sources.API;if("string"==typeof t&&(r=t,t=!1),f.info("setRange",e),null!=e){var n=this.rangeToNative(e);this.setNativeRange.apply(this,c(n).concat([t]))}else this.setNativeRange(null);this.update(r)}},{key:"update",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:l.default.sources.USER,t=this.lastRange,r=this.getRange(),o=n(r,2),i=o[0],u=o[1];if(this.lastRange=i,null!=this.lastRange&&(this.savedRange=this.lastRange),!(0,s.default)(t,this.lastRange)){var c;!this.composing&&null!=u&&u.native.collapsed&&u.start.node!==this.cursor.textNode&&this.cursor.restore();var d,f=[l.default.events.SELECTION_CHANGE,(0,a.default)(this.lastRange),(0,a.default)(t),e];(c=this.emitter).emit.apply(c,[l.default.events.EDITOR_CHANGE].concat(f)),e!==l.default.sources.SILENT&&(d=this.emitter).emit.apply(d,f)}}}]),e}();function h(e,t){try{t.parentNode}catch(e){return!1}return t instanceof Text&&(t=t.parentNode),e.contains(t)}t.Range=m,t.default=p},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"insertInto",value:function(e,r){0===e.children.length?i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertInto",this).call(this,e,r):this.remove()}},{key:"length",value:function(){return 0}},{key:"value",value:function(){return""}}],[{key:"value",value:function(){}}]),t}(((n=r(0))&&n.__esModule?n:{default:n}).default.Embed);a.blotName="break",a.tagName="BR",t.default=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(44),a=r(30),s=r(1),l=function(e){function t(t){var r=e.call(this,t)||this;return r.build(),r}return o(t,e),t.prototype.appendChild=function(e){this.insertBefore(e)},t.prototype.attach=function(){e.prototype.attach.call(this),this.children.forEach((function(e){e.attach()}))},t.prototype.build=function(){var e=this;this.children=new i.default,[].slice.call(this.domNode.childNodes).reverse().forEach((function(t){try{var r=u(t);e.insertBefore(r,e.children.head||void 0)}catch(e){if(e instanceof s.ParchmentError)return;throw e}}))},t.prototype.deleteAt=function(e,t){if(0===e&&t===this.length())return this.remove();this.children.forEachAt(e,t,(function(e,t,r){e.deleteAt(t,r)}))},t.prototype.descendant=function(e,r){var n=this.children.find(r),o=n[0],i=n[1];return null==e.blotName&&e(o)||null!=e.blotName&&o instanceof e?[o,i]:o instanceof t?o.descendant(e,i):[null,-1]},t.prototype.descendants=function(e,r,n){void 0===r&&(r=0),void 0===n&&(n=Number.MAX_VALUE);var o=[],i=n;return this.children.forEachAt(r,n,(function(r,n,a){(null==e.blotName&&e(r)||null!=e.blotName&&r instanceof e)&&o.push(r),r instanceof t&&(o=o.concat(r.descendants(e,n,i))),i-=a})),o},t.prototype.detach=function(){this.children.forEach((function(e){e.detach()})),e.prototype.detach.call(this)},t.prototype.formatAt=function(e,t,r,n){this.children.forEachAt(e,t,(function(e,t,o){e.formatAt(t,o,r,n)}))},t.prototype.insertAt=function(e,t,r){var n=this.children.find(e),o=n[0],i=n[1];if(o)o.insertAt(i,t,r);else{var a=null==r?s.create("text",t):s.create(t,r);this.appendChild(a)}},t.prototype.insertBefore=function(e,t){if(null!=this.statics.allowedChildren&&!this.statics.allowedChildren.some((function(t){return e instanceof t})))throw new s.ParchmentError("Cannot insert "+e.statics.blotName+" into "+this.statics.blotName);e.insertInto(this,t)},t.prototype.length=function(){return this.children.reduce((function(e,t){return e+t.length()}),0)},t.prototype.moveChildren=function(e,t){this.children.forEach((function(r){e.insertBefore(r,t)}))},t.prototype.optimize=function(t){if(e.prototype.optimize.call(this,t),0===this.children.length)if(null!=this.statics.defaultChild){var r=s.create(this.statics.defaultChild);this.appendChild(r),r.optimize(t)}else this.remove()},t.prototype.path=function(e,r){void 0===r&&(r=!1);var n=this.children.find(e,r),o=n[0],i=n[1],a=[[this,e]];return o instanceof t?a.concat(o.path(i,r)):(null!=o&&a.push([o,i]),a)},t.prototype.removeChild=function(e){this.children.remove(e)},t.prototype.replace=function(r){r instanceof t&&r.moveChildren(this),e.prototype.replace.call(this,r)},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=this.clone();return this.parent.insertBefore(r,this.next),this.children.forEachAt(e,this.length(),(function(e,n,o){e=e.split(n,t),r.appendChild(e)})),r},t.prototype.unwrap=function(){this.moveChildren(this.parent,this.next),this.remove()},t.prototype.update=function(e,t){var r=this,n=[],o=[];e.forEach((function(e){e.target===r.domNode&&"childList"===e.type&&(n.push.apply(n,e.addedNodes),o.push.apply(o,e.removedNodes))})),o.forEach((function(e){if(!(null!=e.parentNode&&"IFRAME"!==e.tagName&&document.body.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY)){var t=s.find(e);null!=t&&(null!=t.domNode.parentNode&&t.domNode.parentNode!==r.domNode||t.detach())}})),n.filter((function(e){return e.parentNode==r.domNode})).sort((function(e,t){return e===t?0:e.compareDocumentPosition(t)&Node.DOCUMENT_POSITION_FOLLOWING?1:-1})).forEach((function(e){var t=null;null!=e.nextSibling&&(t=s.find(e.nextSibling));var n=u(e);n.next==t&&null!=n.next||(null!=n.parent&&n.parent.removeChild(r),r.insertBefore(n,t||void 0))}))},t}(a.default);function u(e){var t=s.find(e);if(null==t)try{t=s.create(e)}catch(r){t=s.create(s.Scope.INLINE),[].slice.call(e.childNodes).forEach((function(e){t.domNode.appendChild(e)})),e.parentNode&&e.parentNode.replaceChild(t.domNode,e),t.attach()}return t}t.default=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(12),a=r(31),s=r(17),l=r(1),u=function(e){function t(t){var r=e.call(this,t)||this;return r.attributes=new a.default(r.domNode),r}return o(t,e),t.formats=function(e){return"string"==typeof this.tagName||(Array.isArray(this.tagName)?e.tagName.toLowerCase():void 0)},t.prototype.format=function(e,t){var r=l.query(e);r instanceof i.default?this.attributes.attribute(r,t):t&&(null==r||e===this.statics.blotName&&this.formats()[e]===t||this.replaceWith(e,t))},t.prototype.formats=function(){var e=this.attributes.values(),t=this.statics.formats(this.domNode);return null!=t&&(e[this.statics.blotName]=t),e},t.prototype.replaceWith=function(t,r){var n=e.prototype.replaceWith.call(this,t,r);return this.attributes.copy(n),n},t.prototype.update=function(t,r){var n=this;e.prototype.update.call(this,t,r),t.some((function(e){return e.target===n.domNode&&"attributes"===e.type}))&&this.attributes.build()},t.prototype.wrap=function(r,n){var o=e.prototype.wrap.call(this,r,n);return o instanceof t&&o.statics.scope===this.statics.scope&&this.attributes.move(o),o},t}(s.default);t.default=u},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(30),a=r(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.value=function(e){return!0},t.prototype.index=function(e,t){return this.domNode===e||this.domNode.compareDocumentPosition(e)&Node.DOCUMENT_POSITION_CONTAINED_BY?Math.min(t,1):-1},t.prototype.position=function(e,t){var r=[].indexOf.call(this.parent.domNode.childNodes,this.domNode);return e>0&&(r+=1),[this.parent.domNode,r]},t.prototype.value=function(){var e;return(e={})[this.statics.blotName]=this.statics.value(this.domNode)||!0,e},t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,r){var n=r(11),o=r(3),i={attributes:{compose:function(e,t,r){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var n=o(!0,{},t);for(var i in r||(n=Object.keys(n).reduce((function(e,t){return null!=n[t]&&(e[t]=n[t]),e}),{})),e)void 0!==e[i]&&void 0===t[i]&&(n[i]=e[i]);return Object.keys(n).length>0?n:void 0},diff:function(e,t){"object"!=typeof e&&(e={}),"object"!=typeof t&&(t={});var r=Object.keys(e).concat(Object.keys(t)).reduce((function(r,o){return n(e[o],t[o])||(r[o]=void 0===t[o]?null:t[o]),r}),{});return Object.keys(r).length>0?r:void 0},transform:function(e,t,r){if("object"!=typeof e)return t;if("object"==typeof t){if(!r)return t;var n=Object.keys(t).reduce((function(r,n){return void 0===e[n]&&(r[n]=t[n]),r}),{});return Object.keys(n).length>0?n:void 0}}},iterator:function(e){return new a(e)},length:function(e){return"number"==typeof e.delete?e.delete:"number"==typeof e.retain?e.retain:"string"==typeof e.insert?e.insert.length:1}};function a(e){this.ops=e,this.index=0,this.offset=0}a.prototype.hasNext=function(){return this.peekLength()<1/0},a.prototype.next=function(e){e||(e=1/0);var t=this.ops[this.index];if(t){var r=this.offset,n=i.length(t);if(e>=n-r?(e=n-r,this.index+=1,this.offset=0):this.offset+=e,"number"==typeof t.delete)return{delete:e};var o={};return t.attributes&&(o.attributes=t.attributes),"number"==typeof t.retain?o.retain=e:"string"==typeof t.insert?o.insert=t.insert.substr(r,e):o.insert=t.insert,o}return{retain:1/0}},a.prototype.peek=function(){return this.ops[this.index]},a.prototype.peekLength=function(){return this.ops[this.index]?i.length(this.ops[this.index])-this.offset:1/0},a.prototype.peekType=function(){return this.ops[this.index]?"number"==typeof this.ops[this.index].delete?"delete":"number"==typeof this.ops[this.index].retain?"retain":"insert":"retain"},a.prototype.rest=function(){if(this.hasNext()){if(0===this.offset)return this.ops.slice(this.index);var e=this.offset,t=this.index,r=this.next(),n=this.ops.slice(this.index);return this.offset=e,this.index=t,[r].concat(n)}return[]},e.exports=i},function(e,t){var r=function(){"use strict";function e(e,t){return null!=t&&e instanceof t}var t,r,n;try{t=Map}catch(e){t=function(){}}try{r=Set}catch(e){r=function(){}}try{n=Promise}catch(e){n=function(){}}function o(i,s,l,u,c){"object"==typeof s&&(l=s.depth,u=s.prototype,c=s.includeNonEnumerable,s=s.circular);var d=[],f=[],m="undefined"!=typeof Buffer;return void 0===s&&(s=!0),void 0===l&&(l=1/0),function i(l,p){if(null===l)return null;if(0===p)return l;var h,g;if("object"!=typeof l)return l;if(e(l,t))h=new t;else if(e(l,r))h=new r;else if(e(l,n))h=new n((function(e,t){l.then((function(t){e(i(t,p-1))}),(function(e){t(i(e,p-1))}))}));else if(o.__isArray(l))h=[];else if(o.__isRegExp(l))h=new RegExp(l.source,a(l)),l.lastIndex&&(h.lastIndex=l.lastIndex);else if(o.__isDate(l))h=new Date(l.getTime());else{if(m&&Buffer.isBuffer(l))return h=Buffer.allocUnsafe?Buffer.allocUnsafe(l.length):new Buffer(l.length),l.copy(h),h;e(l,Error)?h=Object.create(l):void 0===u?(g=Object.getPrototypeOf(l),h=Object.create(g)):(h=Object.create(u),g=u)}if(s){var b=d.indexOf(l);if(-1!=b)return f[b];d.push(l),f.push(h)}for(var y in e(l,t)&&l.forEach((function(e,t){var r=i(t,p-1),n=i(e,p-1);h.set(r,n)})),e(l,r)&&l.forEach((function(e){var t=i(e,p-1);h.add(t)})),l){var v;g&&(v=Object.getOwnPropertyDescriptor(g,y)),v&&null==v.set||(h[y]=i(l[y],p-1))}if(Object.getOwnPropertySymbols){var D=Object.getOwnPropertySymbols(l);for(y=0;y<D.length;y++){var _=D[y];(!(k=Object.getOwnPropertyDescriptor(l,_))||k.enumerable||c)&&(h[_]=i(l[_],p-1),k.enumerable||Object.defineProperty(h,_,{enumerable:!1}))}}if(c){var x=Object.getOwnPropertyNames(l);for(y=0;y<x.length;y++){var k,E=x[y];(k=Object.getOwnPropertyDescriptor(l,E))&&k.enumerable||(h[E]=i(l[E],p-1),Object.defineProperty(h,E,{enumerable:!1}))}}return h}(i,l)}function i(e){return Object.prototype.toString.call(e)}function a(e){var t="";return e.global&&(t+="g"),e.ignoreCase&&(t+="i"),e.multiline&&(t+="m"),t}return o.clonePrototype=function(e){if(null===e)return null;var t=function(){};return t.prototype=e,new t},o.__objToStr=i,o.__isDate=function(e){return"object"==typeof e&&"[object Date]"===i(e)},o.__isArray=function(e){return"object"==typeof e&&"[object Array]"===i(e)},o.__isRegExp=function(e){return"object"==typeof e&&"[object RegExp]"===i(e)},o.__getRegExpFlags=a,o}();"object"==typeof e&&e.exports&&(e.exports=r)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=m(r(0)),s=m(r(8)),l=r(4),u=m(l),c=m(r(16)),d=m(r(13)),f=m(r(25));function m(e){return e&&e.__esModule?e:{default:e}}function p(e){return e instanceof u.default||e instanceof l.BlockEmbed}var h=function(e){function t(e,r){!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.emitter=r.emitter,Array.isArray(r.whitelist)&&(n.whitelist=r.whitelist.reduce((function(e,t){return e[t]=!0,e}),{})),n.domNode.addEventListener("DOMNodeInserted",(function(){})),n.optimize(),n.enable(),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:"batchStart",value:function(){this.batch=!0}},{key:"batchEnd",value:function(){this.batch=!1,this.optimize()}},{key:"deleteAt",value:function(e,r){var o=this.line(e),a=n(o,2),s=a[0],u=a[1],f=this.line(e+r),m=n(f,1)[0];if(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"deleteAt",this).call(this,e,r),null!=m&&s!==m&&u>0){if(s instanceof l.BlockEmbed||m instanceof l.BlockEmbed)return void this.optimize();if(s instanceof d.default){var p=s.newlineIndex(s.length(),!0);if(p>-1&&(s=s.split(p+1))===m)return void this.optimize()}else if(m instanceof d.default){var h=m.newlineIndex(0);h>-1&&m.split(h+1)}var g=m.children.head instanceof c.default?null:m.children.head;s.moveChildren(m,g),s.remove()}this.optimize()}},{key:"enable",value:function(){var e=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];this.domNode.setAttribute("contenteditable",e)}},{key:"formatAt",value:function(e,r,n,o){(null==this.whitelist||this.whitelist[n])&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"formatAt",this).call(this,e,r,n,o),this.optimize())}},{key:"insertAt",value:function(e,r,n){if(null==n||null==this.whitelist||this.whitelist[r]){if(e>=this.length())if(null==n||null==a.default.query(r,a.default.Scope.BLOCK)){var o=a.default.create(this.statics.defaultChild);this.appendChild(o),null==n&&r.endsWith("\n")&&(r=r.slice(0,-1)),o.insertAt(0,r,n)}else{var s=a.default.create(r,n);this.appendChild(s)}else i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertAt",this).call(this,e,r,n);this.optimize()}}},{key:"insertBefore",value:function(e,r){if(e.statics.scope===a.default.Scope.INLINE_BLOT){var n=a.default.create(this.statics.defaultChild);n.appendChild(e),e=n}i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r)}},{key:"leaf",value:function(e){return this.path(e).pop()||[null,-1]}},{key:"line",value:function(e){return e===this.length()?this.line(e-1):this.descendant(p,e)}},{key:"lines",value:function(){return function e(t,r,n){var o=[],i=n;return t.children.forEachAt(r,n,(function(t,r,n){p(t)?o.push(t):t instanceof a.default.Container&&(o=o.concat(e(t,r,i))),i-=n})),o}(this,arguments.length>0&&void 0!==arguments[0]?arguments[0]:0,arguments.length>1&&void 0!==arguments[1]?arguments[1]:Number.MAX_VALUE)}},{key:"optimize",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[],r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};!0!==this.batch&&(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e,r),e.length>0&&this.emitter.emit(s.default.events.SCROLL_OPTIMIZE,e,r))}},{key:"path",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"path",this).call(this,e).slice(1)}},{key:"update",value:function(e){if(!0!==this.batch){var r=s.default.sources.USER;"string"==typeof e&&(r=e),Array.isArray(e)||(e=this.observer.takeRecords()),e.length>0&&this.emitter.emit(s.default.events.SCROLL_BEFORE_UPDATE,r,e),i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"update",this).call(this,e.concat([])),e.length>0&&this.emitter.emit(s.default.events.SCROLL_UPDATE,r,e)}}}]),t}(a.default.Scroll);h.blotName="scroll",h.className="ql-editor",h.tagName="DIV",h.defaultChild="block",h.allowedChildren=[u.default,l.BlockEmbed,f.default],t.default=h},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SHORTKEY=t.default=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=h(r(21)),s=h(r(11)),l=h(r(3)),u=h(r(2)),c=h(r(20)),d=h(r(0)),f=h(r(5)),m=h(r(10)),p=h(r(9));function h(e){return e&&e.__esModule?e:{default:e}}function g(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var b=(0,m.default)("quill:keyboard"),y=/Mac/i.test(navigator.platform)?"metaKey":"ctrlKey",v=function(e){function t(e,r){!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,r));return n.bindings={},Object.keys(n.options.bindings).forEach((function(t){("list autofill"!==t||null==e.scroll.whitelist||e.scroll.whitelist.list)&&n.options.bindings[t]&&n.addBinding(n.options.bindings[t])})),n.addBinding({key:t.keys.ENTER,shiftKey:null},E),n.addBinding({key:t.keys.ENTER,metaKey:null,ctrlKey:null,altKey:null},(function(){})),/Firefox/i.test(navigator.userAgent)?(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0},_),n.addBinding({key:t.keys.DELETE},{collapsed:!0},x)):(n.addBinding({key:t.keys.BACKSPACE},{collapsed:!0,prefix:/^.?$/},_),n.addBinding({key:t.keys.DELETE},{collapsed:!0,suffix:/^.?$/},x)),n.addBinding({key:t.keys.BACKSPACE},{collapsed:!1},k),n.addBinding({key:t.keys.DELETE},{collapsed:!1},k),n.addBinding({key:t.keys.BACKSPACE,altKey:null,ctrlKey:null,metaKey:null,shiftKey:null},{collapsed:!0,offset:0},_),n.listen(),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),i(t,null,[{key:"match",value:function(e,t){return t=M(t),!["altKey","ctrlKey","metaKey","shiftKey"].some((function(r){return!!t[r]!==e[r]&&null!==t[r]}))&&t.key===(e.which||e.keyCode)}}]),i(t,[{key:"addBinding",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{},n=M(e);if(null==n||null==n.key)return b.warn("Attempted to add invalid keyboard binding",n);"function"==typeof t&&(t={handler:t}),"function"==typeof r&&(r={handler:r}),n=(0,l.default)(n,t,r),this.bindings[n.key]=this.bindings[n.key]||[],this.bindings[n.key].push(n)}},{key:"listen",value:function(){var e=this;this.quill.root.addEventListener("keydown",(function(r){if(!r.defaultPrevented){var i=r.which||r.keyCode,a=(e.bindings[i]||[]).filter((function(e){return t.match(r,e)}));if(0!==a.length){var l=e.quill.getSelection();if(null!=l&&e.quill.hasFocus()){var u=e.quill.getLine(l.index),c=o(u,2),f=c[0],m=c[1],p=e.quill.getLeaf(l.index),h=o(p,2),g=h[0],b=h[1],y=0===l.length?[g,b]:e.quill.getLeaf(l.index+l.length),v=o(y,2),D=v[0],_=v[1],x=g instanceof d.default.Text?g.value().slice(0,b):"",k=D instanceof d.default.Text?D.value().slice(_):"",E={collapsed:0===l.length,empty:0===l.length&&f.length()<=1,format:e.quill.getFormat(l),offset:m,prefix:x,suffix:k};a.some((function(t){if(null!=t.collapsed&&t.collapsed!==E.collapsed)return!1;if(null!=t.empty&&t.empty!==E.empty)return!1;if(null!=t.offset&&t.offset!==E.offset)return!1;if(Array.isArray(t.format)){if(t.format.every((function(e){return null==E.format[e]})))return!1}else if("object"===n(t.format)&&!Object.keys(t.format).every((function(e){return!0===t.format[e]?null!=E.format[e]:!1===t.format[e]?null==E.format[e]:(0,s.default)(t.format[e],E.format[e])})))return!1;return!(null!=t.prefix&&!t.prefix.test(E.prefix)||null!=t.suffix&&!t.suffix.test(E.suffix)||!0===t.handler.call(e,l,E))}))&&r.preventDefault()}}}}))}}]),t}(p.default);function D(e,t){var r,n=e===v.keys.LEFT?"prefix":"suffix";return g(r={key:e,shiftKey:t,altKey:null},n,/^$/),g(r,"handler",(function(r){var n=r.index;e===v.keys.RIGHT&&(n+=r.length+1);var i=this.quill.getLeaf(n);return!(o(i,1)[0]instanceof d.default.Embed&&(e===v.keys.LEFT?t?this.quill.setSelection(r.index-1,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index-1,f.default.sources.USER):t?this.quill.setSelection(r.index,r.length+1,f.default.sources.USER):this.quill.setSelection(r.index+r.length+1,f.default.sources.USER),1))})),r}function _(e,t){if(!(0===e.index||this.quill.getLength()<=1)){var r=this.quill.getLine(e.index),n=o(r,1)[0],i={};if(0===t.offset){var a=this.quill.getLine(e.index-1),s=o(a,1)[0];if(null!=s&&s.length()>1){var l=n.formats(),u=this.quill.getFormat(e.index-1,1);i=c.default.attributes.diff(l,u)||{}}}var d=/[\uD800-\uDBFF][\uDC00-\uDFFF]$/.test(t.prefix)?2:1;this.quill.deleteText(e.index-d,d,f.default.sources.USER),Object.keys(i).length>0&&this.quill.formatLine(e.index-d,d,i,f.default.sources.USER),this.quill.focus()}}function x(e,t){var r=/^[\uD800-\uDBFF][\uDC00-\uDFFF]/.test(t.suffix)?2:1;if(!(e.index>=this.quill.getLength()-r)){var n={},i=0,a=this.quill.getLine(e.index),s=o(a,1)[0];if(t.offset>=s.length()-1){var l=this.quill.getLine(e.index+1),u=o(l,1)[0];if(u){var d=s.formats(),m=this.quill.getFormat(e.index,1);n=c.default.attributes.diff(d,m)||{},i=u.length()}}this.quill.deleteText(e.index,r,f.default.sources.USER),Object.keys(n).length>0&&this.quill.formatLine(e.index+i-1,r,n,f.default.sources.USER)}}function k(e){var t=this.quill.getLines(e),r={};if(t.length>1){var n=t[0].formats(),o=t[t.length-1].formats();r=c.default.attributes.diff(o,n)||{}}this.quill.deleteText(e,f.default.sources.USER),Object.keys(r).length>0&&this.quill.formatLine(e.index,1,r,f.default.sources.USER),this.quill.setSelection(e.index,f.default.sources.SILENT),this.quill.focus()}function E(e,t){var r=this;e.length>0&&this.quill.scroll.deleteAt(e.index,e.length);var n=Object.keys(t.format).reduce((function(e,r){return d.default.query(r,d.default.Scope.BLOCK)&&!Array.isArray(t.format[r])&&(e[r]=t.format[r]),e}),{});this.quill.insertText(e.index,"\n",n,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.focus(),Object.keys(t.format).forEach((function(e){null==n[e]&&(Array.isArray(t.format[e])||"link"!==e&&r.quill.format(e,t.format[e],f.default.sources.USER))}))}function w(e){return{key:v.keys.TAB,shiftKey:!e,format:{"code-block":!0},handler:function(t){var r=d.default.query("code-block"),n=t.index,i=t.length,a=this.quill.scroll.descendant(r,n),s=o(a,2),l=s[0],u=s[1];if(null!=l){var c=this.quill.getIndex(l),m=l.newlineIndex(u,!0)+1,p=l.newlineIndex(c+u+i),h=l.domNode.textContent.slice(m,p).split("\n");u=0,h.forEach((function(t,o){e?(l.insertAt(m+u,r.TAB),u+=r.TAB.length,0===o?n+=r.TAB.length:i+=r.TAB.length):t.startsWith(r.TAB)&&(l.deleteAt(m+u,r.TAB.length),u-=r.TAB.length,0===o?n-=r.TAB.length:i-=r.TAB.length),u+=t.length+1})),this.quill.update(f.default.sources.USER),this.quill.setSelection(n,i,f.default.sources.SILENT)}}}}function C(e){return{key:e[0].toUpperCase(),shortKey:!0,handler:function(t,r){this.quill.format(e,!r.format[e],f.default.sources.USER)}}}function M(e){if("string"==typeof e||"number"==typeof e)return M({key:e});if("object"===(void 0===e?"undefined":n(e))&&(e=(0,a.default)(e,!1)),"string"==typeof e.key)if(null!=v.keys[e.key.toUpperCase()])e.key=v.keys[e.key.toUpperCase()];else{if(1!==e.key.length)return null;e.key=e.key.toUpperCase().charCodeAt(0)}return e.shortKey&&(e[y]=e.shortKey,delete e.shortKey),e}v.keys={BACKSPACE:8,TAB:9,ENTER:13,ESCAPE:27,LEFT:37,UP:38,RIGHT:39,DOWN:40,DELETE:46},v.DEFAULTS={bindings:{bold:C("bold"),italic:C("italic"),underline:C("underline"),indent:{key:v.keys.TAB,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","+1",f.default.sources.USER)}},outdent:{key:v.keys.TAB,shiftKey:!0,format:["blockquote","indent","list"],handler:function(e,t){if(t.collapsed&&0!==t.offset)return!0;this.quill.format("indent","-1",f.default.sources.USER)}},"outdent backspace":{key:v.keys.BACKSPACE,collapsed:!0,shiftKey:null,metaKey:null,ctrlKey:null,altKey:null,format:["indent","list"],offset:0,handler:function(e,t){null!=t.format.indent?this.quill.format("indent","-1",f.default.sources.USER):null!=t.format.list&&this.quill.format("list",!1,f.default.sources.USER)}},"indent code-block":w(!0),"outdent code-block":w(!1),"remove tab":{key:v.keys.TAB,shiftKey:!0,collapsed:!0,prefix:/\t$/,handler:function(e){this.quill.deleteText(e.index-1,1,f.default.sources.USER)}},tab:{key:v.keys.TAB,handler:function(e){this.quill.history.cutoff();var t=(new u.default).retain(e.index).delete(e.length).insert("\t");this.quill.updateContents(t,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index+1,f.default.sources.SILENT)}},"list empty enter":{key:v.keys.ENTER,collapsed:!0,format:["list"],empty:!0,handler:function(e,t){this.quill.format("list",!1,f.default.sources.USER),t.format.indent&&this.quill.format("indent",!1,f.default.sources.USER)}},"checklist enter":{key:v.keys.ENTER,collapsed:!0,format:{list:"checked"},handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],i=r[1],a=(0,l.default)({},n.formats(),{list:"checked"}),s=(new u.default).retain(e.index).insert("\n",a).retain(n.length()-i-1).retain(1,{list:"unchecked"});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"header enter":{key:v.keys.ENTER,collapsed:!0,format:["header"],suffix:/^$/,handler:function(e,t){var r=this.quill.getLine(e.index),n=o(r,2),i=n[0],a=n[1],s=(new u.default).retain(e.index).insert("\n",t.format).retain(i.length()-a-1).retain(1,{header:null});this.quill.updateContents(s,f.default.sources.USER),this.quill.setSelection(e.index+1,f.default.sources.SILENT),this.quill.scrollIntoView()}},"list autofill":{key:" ",collapsed:!0,format:{list:!1},prefix:/^\s*?(\d+\.|-|\*|\[ ?\]|\[x\])$/,handler:function(e,t){var r=t.prefix.length,n=this.quill.getLine(e.index),i=o(n,2),a=i[0],s=i[1];if(s>r)return!0;var l=void 0;switch(t.prefix.trim()){case"[]":case"[ ]":l="unchecked";break;case"[x]":l="checked";break;case"-":case"*":l="bullet";break;default:l="ordered"}this.quill.insertText(e.index," ",f.default.sources.USER),this.quill.history.cutoff();var c=(new u.default).retain(e.index-s).delete(r+1).retain(a.length()-2-s).retain(1,{list:l});this.quill.updateContents(c,f.default.sources.USER),this.quill.history.cutoff(),this.quill.setSelection(e.index-r,f.default.sources.SILENT)}},"code exit":{key:v.keys.ENTER,collapsed:!0,format:["code-block"],prefix:/\n\n$/,suffix:/^\s+$/,handler:function(e){var t=this.quill.getLine(e.index),r=o(t,2),n=r[0],i=r[1],a=(new u.default).retain(e.index+n.length()-i-2).retain(1,{"code-block":null}).delete(1);this.quill.updateContents(a,f.default.sources.USER)}},"embed left":D(v.keys.LEFT,!1),"embed left shift":D(v.keys.LEFT,!0),"embed right":D(v.keys.RIGHT,!1),"embed right shift":D(v.keys.RIGHT,!0)}},t.default=v,t.SHORTKEY=y},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=s(r(0)),a=s(r(7));function s(e){return e&&e.__esModule?e:{default:e}}var l=function(e){function t(e,r){!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.selection=r,n.textNode=document.createTextNode(t.CONTENTS),n.domNode.appendChild(n.textNode),n._length=0,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,null,[{key:"value",value:function(){}}]),o(t,[{key:"detach",value:function(){null!=this.parent&&this.parent.removeChild(this)}},{key:"format",value:function(e,r){if(0!==this._length)return n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);for(var o=this,a=0;null!=o&&o.statics.scope!==i.default.Scope.BLOCK_BLOT;)a+=o.offset(o.parent),o=o.parent;null!=o&&(this._length=t.CONTENTS.length,o.optimize(),o.formatAt(a,t.CONTENTS.length,e,r),this._length=0)}},{key:"index",value:function(e,r){return e===this.textNode?0:n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"length",value:function(){return this._length}},{key:"position",value:function(){return[this.textNode,this.textNode.data.length]}},{key:"remove",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this),this.parent=null}},{key:"restore",value:function(){if(!this.selection.composing&&null!=this.parent){var e=this.textNode,r=this.selection.getNativeRange(),n=void 0,o=void 0,s=void 0;if(null!=r&&r.start.node===e&&r.end.node===e){var l=[e,r.start.offset,r.end.offset];n=l[0],o=l[1],s=l[2]}for(;null!=this.domNode.lastChild&&this.domNode.lastChild!==this.textNode;)this.domNode.parentNode.insertBefore(this.domNode.lastChild,this.domNode);if(this.textNode.data!==t.CONTENTS){var u=this.textNode.data.split(t.CONTENTS).join("");this.next instanceof a.default?(n=this.next.domNode,this.next.insertAt(0,u),this.textNode.data=t.CONTENTS):(this.textNode.data=u,this.parent.insertBefore(i.default.create(this.textNode),this),this.textNode=document.createTextNode(t.CONTENTS),this.domNode.appendChild(this.textNode))}if(this.remove(),null!=o){var c=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}([o,s].map((function(e){return Math.max(0,Math.min(n.data.length,e-1))})),2);return o=c[0],s=c[1],{startNode:n,startOffset:o,endNode:n,endOffset:s}}}}},{key:"update",value:function(e,t){var r=this;if(e.some((function(e){return"characterData"===e.type&&e.target===r.textNode}))){var n=this.restore();n&&(t.range=n)}}},{key:"value",value:function(){return""}}]),t}(i.default.Embed);l.blotName="cursor",l.className="ql-cursor",l.tagName="span",l.CONTENTS="\ufeff",t.default=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=a(r(0)),o=r(4),i=a(o);function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(n.default.Container);s.allowedChildren=[i.default,o.BlockEmbed,s],t.default=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.ColorStyle=t.ColorClass=t.ColorAttributor=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"value",value:function(e){var r=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e);return r.startsWith("rgb(")?"#"+(r=r.replace(/^[^\d]+/,"").replace(/[^\d]+$/,"")).split(",").map((function(e){return("00"+parseInt(e).toString(16)).slice(-2)})).join(""):r}}]),t}(a.default.Attributor.Style),l=new a.default.Attributor.Class("color","ql-color",{scope:a.default.Scope.INLINE}),u=new s("color","color",{scope:a.default.Scope.INLINE});t.ColorAttributor=s,t.ColorClass=l,t.ColorStyle=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.sanitize=t.default=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"format",value:function(e,r){if(e!==this.statics.blotName||!r)return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r);r=this.constructor.sanitize(r),this.domNode.setAttribute("href",r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return e=this.sanitize(e),r.setAttribute("href",e),r.setAttribute("rel","noopener noreferrer"),r.setAttribute("target","_blank"),r}},{key:"formats",value:function(e){return e.getAttribute("href")}},{key:"sanitize",value:function(e){return s(e,this.PROTOCOL_WHITELIST)?e:this.SANITIZED_URL}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);function s(e,t){var r=document.createElement("a");r.href=e;var n=r.href.slice(0,r.href.indexOf(":"));return t.indexOf(n)>-1}a.blotName="link",a.tagName="A",a.SANITIZED_URL="about:blank",a.PROTOCOL_WHITELIST=["http","https","mailto","tel"],t.default=a,t.sanitize=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n="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},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=s(r(23)),a=s(r(107));function s(e){return e&&e.__esModule?e:{default:e}}var l=0;function u(e,t){e.setAttribute(t,!("true"===e.getAttribute(t)))}var c=function(){function e(t){var r=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.select=t,this.container=document.createElement("span"),this.buildPicker(),this.select.style.display="none",this.select.parentNode.insertBefore(this.container,this.select),this.label.addEventListener("mousedown",(function(){r.togglePicker()})),this.label.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:r.togglePicker();break;case i.default.keys.ESCAPE:r.escape(),e.preventDefault()}})),this.select.addEventListener("change",this.update.bind(this))}return o(e,[{key:"togglePicker",value:function(){this.container.classList.toggle("ql-expanded"),u(this.label,"aria-expanded"),u(this.options,"aria-hidden")}},{key:"buildItem",value:function(e){var t=this,r=document.createElement("span");return r.tabIndex="0",r.setAttribute("role","button"),r.classList.add("ql-picker-item"),e.hasAttribute("value")&&r.setAttribute("data-value",e.getAttribute("value")),e.textContent&&r.setAttribute("data-label",e.textContent),r.addEventListener("click",(function(){t.selectItem(r,!0)})),r.addEventListener("keydown",(function(e){switch(e.keyCode){case i.default.keys.ENTER:t.selectItem(r,!0),e.preventDefault();break;case i.default.keys.ESCAPE:t.escape(),e.preventDefault()}})),r}},{key:"buildLabel",value:function(){var e=document.createElement("span");return e.classList.add("ql-picker-label"),e.innerHTML=a.default,e.tabIndex="0",e.setAttribute("role","button"),e.setAttribute("aria-expanded","false"),this.container.appendChild(e),e}},{key:"buildOptions",value:function(){var e=this,t=document.createElement("span");t.classList.add("ql-picker-options"),t.setAttribute("aria-hidden","true"),t.tabIndex="-1",t.id="ql-picker-options-"+l,l+=1,this.label.setAttribute("aria-controls",t.id),this.options=t,[].slice.call(this.select.options).forEach((function(r){var n=e.buildItem(r);t.appendChild(n),!0===r.selected&&e.selectItem(n)})),this.container.appendChild(t)}},{key:"buildPicker",value:function(){var e=this;[].slice.call(this.select.attributes).forEach((function(t){e.container.setAttribute(t.name,t.value)})),this.container.classList.add("ql-picker"),this.label=this.buildLabel(),this.buildOptions()}},{key:"escape",value:function(){var e=this;this.close(),setTimeout((function(){return e.label.focus()}),1)}},{key:"close",value:function(){this.container.classList.remove("ql-expanded"),this.label.setAttribute("aria-expanded","false"),this.options.setAttribute("aria-hidden","true")}},{key:"selectItem",value:function(e){var t=arguments.length>1&&void 0!==arguments[1]&&arguments[1],r=this.container.querySelector(".ql-selected");if(e!==r&&(null!=r&&r.classList.remove("ql-selected"),null!=e&&(e.classList.add("ql-selected"),this.select.selectedIndex=[].indexOf.call(e.parentNode.children,e),e.hasAttribute("data-value")?this.label.setAttribute("data-value",e.getAttribute("data-value")):this.label.removeAttribute("data-value"),e.hasAttribute("data-label")?this.label.setAttribute("data-label",e.getAttribute("data-label")):this.label.removeAttribute("data-label"),t))){if("function"==typeof Event)this.select.dispatchEvent(new Event("change"));else if("object"===("undefined"==typeof Event?"undefined":n(Event))){var o=document.createEvent("Event");o.initEvent("change",!0,!0),this.select.dispatchEvent(o)}this.close()}}},{key:"update",value:function(){var e=void 0;if(this.select.selectedIndex>-1){var t=this.container.querySelector(".ql-picker-options").children[this.select.selectedIndex];e=this.select.options[this.select.selectedIndex],this.selectItem(t)}else this.selectItem(null);var r=null!=e&&e!==this.select.querySelector("option[selected]");this.label.classList.toggle("ql-active",r)}}]),e}();t.default=c},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=b(r(0)),o=b(r(5)),i=r(4),a=b(i),s=b(r(16)),l=b(r(25)),u=b(r(24)),c=b(r(35)),d=b(r(6)),f=b(r(22)),m=b(r(7)),p=b(r(55)),h=b(r(42)),g=b(r(23));function b(e){return e&&e.__esModule?e:{default:e}}o.default.register({"blots/block":a.default,"blots/block/embed":i.BlockEmbed,"blots/break":s.default,"blots/container":l.default,"blots/cursor":u.default,"blots/embed":c.default,"blots/inline":d.default,"blots/scroll":f.default,"blots/text":m.default,"modules/clipboard":p.default,"modules/history":h.default,"modules/keyboard":g.default}),n.default.register(a.default,s.default,u.default,d.default,f.default,m.default),t.default=o.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(1),o=function(){function e(e){this.domNode=e,this.domNode[n.DATA_KEY]={blot:this}}return Object.defineProperty(e.prototype,"statics",{get:function(){return this.constructor},enumerable:!0,configurable:!0}),e.create=function(e){if(null==this.tagName)throw new n.ParchmentError("Blot definition missing tagName");var t;return Array.isArray(this.tagName)?("string"==typeof e&&(e=e.toUpperCase(),parseInt(e).toString()===e&&(e=parseInt(e))),t="number"==typeof e?document.createElement(this.tagName[e-1]):this.tagName.indexOf(e)>-1?document.createElement(e):document.createElement(this.tagName[0])):t=document.createElement(this.tagName),this.className&&t.classList.add(this.className),t},e.prototype.attach=function(){null!=this.parent&&(this.scroll=this.parent.scroll)},e.prototype.clone=function(){var e=this.domNode.cloneNode(!1);return n.create(e)},e.prototype.detach=function(){null!=this.parent&&this.parent.removeChild(this),delete this.domNode[n.DATA_KEY]},e.prototype.deleteAt=function(e,t){this.isolate(e,t).remove()},e.prototype.formatAt=function(e,t,r,o){var i=this.isolate(e,t);if(null!=n.query(r,n.Scope.BLOT)&&o)i.wrap(r,o);else if(null!=n.query(r,n.Scope.ATTRIBUTE)){var a=n.create(this.statics.scope);i.wrap(a),a.format(r,o)}},e.prototype.insertAt=function(e,t,r){var o=null==r?n.create("text",t):n.create(t,r),i=this.split(e);this.parent.insertBefore(o,i)},e.prototype.insertInto=function(e,t){void 0===t&&(t=null),null!=this.parent&&this.parent.children.remove(this);var r=null;e.children.insertBefore(this,t),null!=t&&(r=t.domNode),this.domNode.parentNode==e.domNode&&this.domNode.nextSibling==r||e.domNode.insertBefore(this.domNode,r),this.parent=e,this.attach()},e.prototype.isolate=function(e,t){var r=this.split(e);return r.split(t),r},e.prototype.length=function(){return 1},e.prototype.offset=function(e){return void 0===e&&(e=this.parent),null==this.parent||this==e?0:this.parent.children.offset(this)+this.parent.offset(e)},e.prototype.optimize=function(e){null!=this.domNode[n.DATA_KEY]&&delete this.domNode[n.DATA_KEY].mutations},e.prototype.remove=function(){null!=this.domNode.parentNode&&this.domNode.parentNode.removeChild(this.domNode),this.detach()},e.prototype.replace=function(e){null!=e.parent&&(e.parent.insertBefore(this,e.next),e.remove())},e.prototype.replaceWith=function(e,t){var r="string"==typeof e?n.create(e,t):e;return r.replace(this),r},e.prototype.split=function(e,t){return 0===e?this:this.next},e.prototype.update=function(e,t){},e.prototype.wrap=function(e,t){var r="string"==typeof e?n.create(e,t):e;return null!=this.parent&&this.parent.insertBefore(r,this.next),r.appendChild(this),r},e.blotName="abstract",e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=r(12),o=r(32),i=r(33),a=r(1),s=function(){function e(e){this.attributes={},this.domNode=e,this.build()}return e.prototype.attribute=function(e,t){t?e.add(this.domNode,t)&&(null!=e.value(this.domNode)?this.attributes[e.attrName]=e:delete this.attributes[e.attrName]):(e.remove(this.domNode),delete this.attributes[e.attrName])},e.prototype.build=function(){var e=this;this.attributes={};var t=n.default.keys(this.domNode),r=o.default.keys(this.domNode),s=i.default.keys(this.domNode);t.concat(r).concat(s).forEach((function(t){var r=a.query(t,a.Scope.ATTRIBUTE);r instanceof n.default&&(e.attributes[r.attrName]=r)}))},e.prototype.copy=function(e){var t=this;Object.keys(this.attributes).forEach((function(r){var n=t.attributes[r].value(t.domNode);e.format(r,n)}))},e.prototype.move=function(e){var t=this;this.copy(e),Object.keys(this.attributes).forEach((function(e){t.attributes[e].remove(t.domNode)})),this.attributes={}},e.prototype.values=function(){var e=this;return Object.keys(this.attributes).reduce((function(t,r){return t[r]=e.attributes[r].value(e.domNode),t}),{})},e}();t.default=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function i(e,t){return(e.getAttribute("class")||"").split(/\s+/).filter((function(e){return 0===e.indexOf(t+"-")}))}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("class")||"").split(/\s+/).map((function(e){return e.split("-").slice(0,-1).join("-")}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(this.remove(e),e.classList.add(this.keyName+"-"+t),!0)},t.prototype.remove=function(e){i(e,this.keyName).forEach((function(t){e.classList.remove(t)})),0===e.classList.length&&e.removeAttribute("class")},t.prototype.value=function(e){var t=(i(e,this.keyName)[0]||"").slice(this.keyName.length+1);return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});function i(e){var t=e.split("-"),r=t.slice(1).map((function(e){return e[0].toUpperCase()+e.slice(1)})).join("");return t[0]+r}Object.defineProperty(t,"__esModule",{value:!0});var a=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.keys=function(e){return(e.getAttribute("style")||"").split(";").map((function(e){return e.split(":")[0].trim()}))},t.prototype.add=function(e,t){return!!this.canAdd(e,t)&&(e.style[i(this.keyName)]=t,!0)},t.prototype.remove=function(e){e.style[i(this.keyName)]="",e.getAttribute("style")||e.removeAttribute("style")},t.prototype.value=function(e){var t=e.style[i(this.keyName)];return this.canAdd(e,t)?t:""},t}(r(12).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.options=r,this.modules={}}return n(e,[{key:"init",value:function(){var e=this;Object.keys(this.options.modules).forEach((function(t){null==e.modules[t]&&e.addModule(t)}))}},{key:"addModule",value:function(e){var t=this.quill.constructor.import("modules/"+e);return this.modules[e]=new t(this.quill,this.options.modules[e]||{}),this.modules[e]}}]),e}();o.DEFAULTS={modules:{}},o.themes={default:o},t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=s(r(0)),a=s(r(7));function s(e){return e&&e.__esModule?e:{default:e}}var l="\ufeff",u=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 r=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 r.contentNode=document.createElement("span"),r.contentNode.setAttribute("contenteditable",!1),[].slice.call(r.domNode.childNodes).forEach((function(e){r.contentNode.appendChild(e)})),r.leftGuard=document.createTextNode(l),r.rightGuard=document.createTextNode(l),r.domNode.appendChild(r.leftGuard),r.domNode.appendChild(r.contentNode),r.domNode.appendChild(r.rightGuard),r}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),n(t,[{key:"index",value:function(e,r){return e===this.leftGuard?0:e===this.rightGuard?1:o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"index",this).call(this,e,r)}},{key:"restore",value:function(e){var t=void 0,r=void 0,n=e.data.split(l).join("");if(e===this.leftGuard)if(this.prev instanceof a.default){var o=this.prev.length();this.prev.insertAt(o,n),t={startNode:this.prev.domNode,startOffset:o+n.length}}else r=document.createTextNode(n),this.parent.insertBefore(i.default.create(r),this),t={startNode:r,startOffset:n.length};else e===this.rightGuard&&(this.next instanceof a.default?(this.next.insertAt(0,n),t={startNode:this.next.domNode,startOffset:n.length}):(r=document.createTextNode(n),this.parent.insertBefore(i.default.create(r),this.next),t={startNode:r,startOffset:n.length}));return e.data=l,t}},{key:"update",value:function(e,t){var r=this;e.forEach((function(e){if("characterData"===e.type&&(e.target===r.leftGuard||e.target===r.rightGuard)){var n=r.restore(e.target);n&&(t.range=n)}}))}}]),t}(i.default.Embed);t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.AlignStyle=t.AlignClass=t.AlignAttribute=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i={scope:o.default.Scope.BLOCK,whitelist:["right","center","justify"]},a=new o.default.Attributor.Attribute("align","align",i),s=new o.default.Attributor.Class("align","ql-align",i),l=new o.default.Attributor.Style("align","text-align",i);t.AlignAttribute=a,t.AlignClass=s,t.AlignStyle=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.BackgroundStyle=t.BackgroundClass=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i=r(26),a=new o.default.Attributor.Class("background","ql-bg",{scope:o.default.Scope.INLINE}),s=new i.ColorAttributor("background","background-color",{scope:o.default.Scope.INLINE});t.BackgroundClass=a,t.BackgroundStyle=s},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.DirectionStyle=t.DirectionClass=t.DirectionAttribute=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i={scope:o.default.Scope.BLOCK,whitelist:["rtl"]},a=new o.default.Attributor.Attribute("direction","dir",i),s=new o.default.Attributor.Class("direction","ql-direction",i),l=new o.default.Attributor.Style("direction","direction",i);t.DirectionAttribute=a,t.DirectionClass=s,t.DirectionStyle=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.FontClass=t.FontStyle=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},s={scope:a.default.Scope.INLINE,whitelist:["serif","monospace"]},l=new a.default.Attributor.Class("font","ql-font",s),u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"value",value:function(e){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e).replace(/["']/g,"")}}]),t}(a.default.Attributor.Style),c=new u("font","font-family",s);t.FontStyle=c,t.FontClass=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.SizeStyle=t.SizeClass=void 0;var n,o=(n=r(0))&&n.__esModule?n:{default:n},i=new o.default.Attributor.Class("size","ql-size",{scope:o.default.Scope.INLINE,whitelist:["small","large","huge"]}),a=new o.default.Attributor.Style("size","font-size",{scope:o.default.Scope.INLINE,whitelist:["10px","18px","32px"]});t.SizeClass=i,t.SizeStyle=a},function(e,t,r){"use strict";e.exports={align:{"":r(76),center:r(77),right:r(78),justify:r(79)},background:r(80),blockquote:r(81),bold:r(82),clean:r(83),code:r(58),"code-block":r(58),color:r(84),direction:{"":r(85),rtl:r(86)},float:{center:r(87),full:r(88),left:r(89),right:r(90)},formula:r(91),header:{1:r(92),2:r(93)},italic:r(94),image:r(95),indent:{"+1":r(96),"-1":r(97)},link:r(98),list:{ordered:r(99),bullet:r(100),check:r(101)},script:{sub:r(102),super:r(103)},strike:r(104),underline:r(105),video:r(106)}},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.getLastChangeIndex=t.default=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=a(r(0)),i=a(r(5));function a(e){return e&&e.__esModule?e:{default:e}}var s=function(e){function t(e,r){!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,r));return n.lastRecorded=0,n.ignoreChange=!1,n.clear(),n.quill.on(i.default.events.EDITOR_CHANGE,(function(e,t,r,o){e!==i.default.events.TEXT_CHANGE||n.ignoreChange||(n.options.userOnly&&o!==i.default.sources.USER?n.transform(t):n.record(t,r))})),n.quill.keyboard.addBinding({key:"Z",shortKey:!0},n.undo.bind(n)),n.quill.keyboard.addBinding({key:"Z",shortKey:!0,shiftKey:!0},n.redo.bind(n)),/Win/i.test(navigator.platform)&&n.quill.keyboard.addBinding({key:"Y",shortKey:!0},n.redo.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),n(t,[{key:"change",value:function(e,t){if(0!==this.stack[e].length){var r=this.stack[e].pop();this.stack[t].push(r),this.lastRecorded=0,this.ignoreChange=!0,this.quill.updateContents(r[e],i.default.sources.USER),this.ignoreChange=!1;var n=l(r[e]);this.quill.setSelection(n)}}},{key:"clear",value:function(){this.stack={undo:[],redo:[]}}},{key:"cutoff",value:function(){this.lastRecorded=0}},{key:"record",value:function(e,t){if(0!==e.ops.length){this.stack.redo=[];var r=this.quill.getContents().diff(t),n=Date.now();if(this.lastRecorded+this.options.delay>n&&this.stack.undo.length>0){var o=this.stack.undo.pop();r=r.compose(o.undo),e=o.redo.compose(e)}else this.lastRecorded=n;this.stack.undo.push({redo:e,undo:r}),this.stack.undo.length>this.options.maxStack&&this.stack.undo.shift()}}},{key:"redo",value:function(){this.change("redo","undo")}},{key:"transform",value:function(e){this.stack.undo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)})),this.stack.redo.forEach((function(t){t.undo=e.transform(t.undo,!0),t.redo=e.transform(t.redo,!0)}))}},{key:"undo",value:function(){this.change("undo","redo")}}]),t}(a(r(9)).default);function l(e){var t=e.reduce((function(e,t){return e+(t.delete||0)}),0),r=e.length()-t;return function(e){var t=e.ops[e.ops.length-1];return null!=t&&(null!=t.insert?"string"==typeof t.insert&&t.insert.endsWith("\n"):null!=t.attributes&&Object.keys(t.attributes).some((function(e){return null!=o.default.query(e,o.default.Scope.BLOCK)})))}(e)&&(r-=1),r}s.DEFAULTS={delay:1e3,maxStack:100,userOnly:!1},t.default=s,t.getLastChangeIndex=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BaseTooltip=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=p(r(3)),a=p(r(2)),s=p(r(8)),l=p(r(23)),u=p(r(34)),c=p(r(59)),d=p(r(60)),f=p(r(28)),m=p(r(61));function p(e){return e&&e.__esModule?e:{default:e}}function h(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function g(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}function b(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)}var y=[!1,"center","right","justify"],v=["#000000","#e60000","#ff9900","#ffff00","#008a00","#0066cc","#9933ff","#ffffff","#facccc","#ffebcc","#ffffcc","#cce8cc","#cce0f5","#ebd6ff","#bbbbbb","#f06666","#ffc266","#ffff66","#66b966","#66a3e0","#c285ff","#888888","#a10000","#b26b00","#b2b200","#006100","#0047b2","#6b24b2","#444444","#5c0000","#663d00","#666600","#003700","#002966","#3d1466"],D=[!1,"serif","monospace"],_=["1","2","3",!1],x=["small",!1,"large","huge"],k=function(e){function t(e,r){h(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return e.emitter.listenDOM("click",document.body,(function t(r){if(!document.body.contains(e.root))return document.body.removeEventListener("click",t);null==n.tooltip||n.tooltip.root.contains(r.target)||document.activeElement===n.tooltip.textbox||n.quill.hasFocus()||n.tooltip.hide(),null!=n.pickers&&n.pickers.forEach((function(e){e.container.contains(r.target)||e.close()}))})),n}return b(t,e),n(t,[{key:"addModule",value:function(e){var r=o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"addModule",this).call(this,e);return"toolbar"===e&&this.extendToolbar(r),r}},{key:"buildButtons",value:function(e,t){e.forEach((function(e){(e.getAttribute("class")||"").split(/\s+/).forEach((function(r){if(r.startsWith("ql-")&&(r=r.slice(3),null!=t[r]))if("direction"===r)e.innerHTML=t[r][""]+t[r].rtl;else if("string"==typeof t[r])e.innerHTML=t[r];else{var n=e.value||"";null!=n&&t[r][n]&&(e.innerHTML=t[r][n])}}))}))}},{key:"buildPickers",value:function(e,t){var r=this;this.pickers=e.map((function(e){if(e.classList.contains("ql-align"))return null==e.querySelector("option")&&w(e,y),new d.default(e,t.align);if(e.classList.contains("ql-background")||e.classList.contains("ql-color")){var r=e.classList.contains("ql-background")?"background":"color";return null==e.querySelector("option")&&w(e,v,"background"===r?"#ffffff":"#000000"),new c.default(e,t[r])}return null==e.querySelector("option")&&(e.classList.contains("ql-font")?w(e,D):e.classList.contains("ql-header")?w(e,_):e.classList.contains("ql-size")&&w(e,x)),new f.default(e)})),this.quill.on(s.default.events.EDITOR_CHANGE,(function(){r.pickers.forEach((function(e){e.update()}))}))}}]),t}(u.default);k.DEFAULTS=(0,i.default)(!0,{},u.default.DEFAULTS,{modules:{toolbar:{handlers:{formula:function(){this.quill.theme.tooltip.edit("formula")},image:function(){var e=this,t=this.container.querySelector("input.ql-image[type=file]");null==t&&((t=document.createElement("input")).setAttribute("type","file"),t.setAttribute("accept","image/png, image/gif, image/jpeg, image/bmp, image/x-icon"),t.classList.add("ql-image"),t.addEventListener("change",(function(){if(null!=t.files&&null!=t.files[0]){var r=new FileReader;r.onload=function(r){var n=e.quill.getSelection(!0);e.quill.updateContents((new a.default).retain(n.index).delete(n.length).insert({image:r.target.result}),s.default.sources.USER),e.quill.setSelection(n.index+1,s.default.sources.SILENT),t.value=""},r.readAsDataURL(t.files[0])}})),this.container.appendChild(t)),t.click()},video:function(){this.quill.theme.tooltip.edit("video")}}}}});var E=function(e){function t(e,r){h(this,t);var n=g(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.textbox=n.root.querySelector('input[type="text"]'),n.listen(),n}return b(t,e),n(t,[{key:"listen",value:function(){var e=this;this.textbox.addEventListener("keydown",(function(t){l.default.match(t,"enter")?(e.save(),t.preventDefault()):l.default.match(t,"escape")&&(e.cancel(),t.preventDefault())}))}},{key:"cancel",value:function(){this.hide()}},{key:"edit",value:function(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:"link",t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;this.root.classList.remove("ql-hidden"),this.root.classList.add("ql-editing"),null!=t?this.textbox.value=t:e!==this.root.getAttribute("data-mode")&&(this.textbox.value=""),this.position(this.quill.getBounds(this.quill.selection.savedRange)),this.textbox.select(),this.textbox.setAttribute("placeholder",this.textbox.getAttribute("data-"+e)||""),this.root.setAttribute("data-mode",e)}},{key:"restoreFocus",value:function(){var e=this.quill.scrollingContainer.scrollTop;this.quill.focus(),this.quill.scrollingContainer.scrollTop=e}},{key:"save",value:function(){var e,t,r=this.textbox.value;switch(this.root.getAttribute("data-mode")){case"link":var n=this.quill.root.scrollTop;this.linkRange?(this.quill.formatText(this.linkRange,"link",r,s.default.sources.USER),delete this.linkRange):(this.restoreFocus(),this.quill.format("link",r,s.default.sources.USER)),this.quill.root.scrollTop=n;break;case"video":r=(t=(e=r).match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtube\.com\/watch.*v=([a-zA-Z0-9_-]+)/)||e.match(/^(?:(https?):\/\/)?(?:(?:www|m)\.)?youtu\.be\/([a-zA-Z0-9_-]+)/))?(t[1]||"https")+"://www.youtube.com/embed/"+t[2]+"?showinfo=0":(t=e.match(/^(?:(https?):\/\/)?(?:www\.)?vimeo\.com\/(\d+)/))?(t[1]||"https")+"://player.vimeo.com/video/"+t[2]+"/":e;case"formula":if(!r)break;var o=this.quill.getSelection(!0);if(null!=o){var i=o.index+o.length;this.quill.insertEmbed(i,this.root.getAttribute("data-mode"),r,s.default.sources.USER),"formula"===this.root.getAttribute("data-mode")&&this.quill.insertText(i+1," ",s.default.sources.USER),this.quill.setSelection(i+2,s.default.sources.USER)}}this.textbox.value="",this.hide()}}]),t}(m.default);function w(e,t){var r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];t.forEach((function(t){var n=document.createElement("option");t===r?n.setAttribute("selected","selected"):n.setAttribute("value",t),e.appendChild(n)}))}t.BaseTooltip=E,t.default=k},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(){this.head=this.tail=null,this.length=0}return e.prototype.append=function(){for(var e=[],t=0;t<arguments.length;t++)e[t]=arguments[t];this.insertBefore(e[0],null),e.length>1&&this.append.apply(this,e.slice(1))},e.prototype.contains=function(e){for(var t,r=this.iterator();t=r();)if(t===e)return!0;return!1},e.prototype.insertBefore=function(e,t){e&&(e.next=t,null!=t?(e.prev=t.prev,null!=t.prev&&(t.prev.next=e),t.prev=e,t===this.head&&(this.head=e)):null!=this.tail?(this.tail.next=e,e.prev=this.tail,this.tail=e):(e.prev=null,this.head=this.tail=e),this.length+=1)},e.prototype.offset=function(e){for(var t=0,r=this.head;null!=r;){if(r===e)return t;t+=r.length(),r=r.next}return-1},e.prototype.remove=function(e){this.contains(e)&&(null!=e.prev&&(e.prev.next=e.next),null!=e.next&&(e.next.prev=e.prev),e===this.head&&(this.head=e.next),e===this.tail&&(this.tail=e.prev),this.length-=1)},e.prototype.iterator=function(e){return void 0===e&&(e=this.head),function(){var t=e;return null!=e&&(e=e.next),t}},e.prototype.find=function(e,t){void 0===t&&(t=!1);for(var r,n=this.iterator();r=n();){var o=r.length();if(e<o||t&&e===o&&(null==r.next||0!==r.next.length()))return[r,e];e-=o}return[null,0]},e.prototype.forEach=function(e){for(var t,r=this.iterator();t=r();)e(t)},e.prototype.forEachAt=function(e,t,r){if(!(t<=0))for(var n,o=this.find(e),i=o[0],a=e-o[1],s=this.iterator(i);(n=s())&&a<e+t;){var l=n.length();e>a?r(n,e-a,Math.min(t,a+l-e)):r(n,0,Math.min(l,e+t-a)),a+=l}},e.prototype.map=function(e){return this.reduce((function(t,r){return t.push(e(r)),t}),[])},e.prototype.reduce=function(e,t){for(var r,n=this.iterator();r=n();)t=e(t,r);return t},e}();t.default=n},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(17),a=r(1),s={attributes:!0,characterData:!0,characterDataOldValue:!0,childList:!0,subtree:!0},l=function(e){function t(t){var r=e.call(this,t)||this;return r.scroll=r,r.observer=new MutationObserver((function(e){r.update(e)})),r.observer.observe(r.domNode,s),r.attach(),r}return o(t,e),t.prototype.detach=function(){e.prototype.detach.call(this),this.observer.disconnect()},t.prototype.deleteAt=function(t,r){this.update(),0===t&&r===this.length()?this.children.forEach((function(e){e.remove()})):e.prototype.deleteAt.call(this,t,r)},t.prototype.formatAt=function(t,r,n,o){this.update(),e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){this.update(),e.prototype.insertAt.call(this,t,r,n)},t.prototype.optimize=function(t,r){var n=this;void 0===t&&(t=[]),void 0===r&&(r={}),e.prototype.optimize.call(this,r);for(var o=[].slice.call(this.observer.takeRecords());o.length>0;)t.push(o.pop());for(var s=function(e,t){void 0===t&&(t=!0),null!=e&&e!==n&&null!=e.domNode.parentNode&&(null==e.domNode[a.DATA_KEY].mutations&&(e.domNode[a.DATA_KEY].mutations=[]),t&&s(e.parent))},l=function(e){null!=e.domNode[a.DATA_KEY]&&null!=e.domNode[a.DATA_KEY].mutations&&(e instanceof i.default&&e.children.forEach(l),e.optimize(r))},u=t,c=0;u.length>0;c+=1){if(c>=100)throw new Error("[Parchment] Maximum optimize iterations reached");for(u.forEach((function(e){var t=a.find(e.target,!0);null!=t&&(t.domNode===e.target&&("childList"===e.type?(s(a.find(e.previousSibling,!1)),[].forEach.call(e.addedNodes,(function(e){var t=a.find(e,!1);s(t,!1),t instanceof i.default&&t.children.forEach((function(e){s(e,!1)}))}))):"attributes"===e.type&&s(t.prev)),s(t))})),this.children.forEach(l),o=(u=[].slice.call(this.observer.takeRecords())).slice();o.length>0;)t.push(o.pop())}},t.prototype.update=function(t,r){var n=this;void 0===r&&(r={}),(t=t||this.observer.takeRecords()).map((function(e){var t=a.find(e.target,!0);return null==t?null:null==t.domNode[a.DATA_KEY].mutations?(t.domNode[a.DATA_KEY].mutations=[e],t):(t.domNode[a.DATA_KEY].mutations.push(e),null)})).forEach((function(e){null!=e&&e!==n&&null!=e.domNode[a.DATA_KEY]&&e.update(e.domNode[a.DATA_KEY].mutations||[],r)})),null!=this.domNode[a.DATA_KEY].mutations&&e.prototype.update.call(this,this.domNode[a.DATA_KEY].mutations,r),this.optimize(t,r)},t.blotName="scroll",t.defaultChild="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="DIV",t}(i.default);t.default=l},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(18),a=r(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(r){if(r.tagName!==t.tagName)return e.formats.call(this,r)},t.prototype.format=function(r,n){var o=this;r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):(this.children.forEach((function(e){e instanceof i.default||(e=e.wrap(t.blotName,!0)),o.attributes.copy(e)})),this.unwrap())},t.prototype.formatAt=function(t,r,n,o){null!=this.formats()[n]||a.query(n,a.Scope.ATTRIBUTE)?this.isolate(t,r).format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r);var n=this.formats();if(0===Object.keys(n).length)return this.unwrap();var o=this.next;o instanceof t&&o.prev===this&&function(e,t){if(Object.keys(e).length!==Object.keys(t).length)return!1;for(var r in e)if(e[r]!==t[r])return!1;return!0}(n,o.formats())&&(o.moveChildren(this),o.remove())},t.blotName="inline",t.scope=a.Scope.INLINE_BLOT,t.tagName="SPAN",t}(i.default);t.default=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(18),a=r(1),s=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(r){var n=a.query(t.blotName).tagName;if(r.tagName!==n)return e.formats.call(this,r)},t.prototype.format=function(r,n){null!=a.query(r,a.Scope.BLOCK)&&(r!==this.statics.blotName||n?e.prototype.format.call(this,r,n):this.replaceWith(t.blotName))},t.prototype.formatAt=function(t,r,n,o){null!=a.query(n,a.Scope.BLOCK)?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.insertAt=function(t,r,n){if(null==n||null!=a.query(r,a.Scope.INLINE))e.prototype.insertAt.call(this,t,r,n);else{var o=this.split(t),i=a.create(r,n);o.parent.insertBefore(i,o)}},t.prototype.update=function(t,r){navigator.userAgent.match(/Trident/)?this.build():e.prototype.update.call(this,t,r)},t.blotName="block",t.scope=a.Scope.BLOCK_BLOT,t.tagName="P",t}(i.default);t.default=s},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=function(e){function t(){return null!==e&&e.apply(this,arguments)||this}return o(t,e),t.formats=function(e){},t.prototype.format=function(t,r){e.prototype.formatAt.call(this,0,this.length(),t,r)},t.prototype.formatAt=function(t,r,n,o){0===t&&r===this.length()?this.format(n,o):e.prototype.formatAt.call(this,t,r,n,o)},t.prototype.formats=function(){return this.statics.formats(this.domNode)},t}(r(19).default);t.default=i},function(e,t,r){"use strict";var n,o=this&&this.__extends||(n=Object.setPrototypeOf||{__proto__:[]}instanceof Array&&function(e,t){e.__proto__=t}||function(e,t){for(var r in t)t.hasOwnProperty(r)&&(e[r]=t[r])},function(e,t){function r(){this.constructor=e}n(e,t),e.prototype=null===t?Object.create(t):(r.prototype=t.prototype,new r)});Object.defineProperty(t,"__esModule",{value:!0});var i=r(19),a=r(1),s=function(e){function t(t){var r=e.call(this,t)||this;return r.text=r.statics.value(r.domNode),r}return o(t,e),t.create=function(e){return document.createTextNode(e)},t.value=function(e){var t=e.data;return t.normalize&&(t=t.normalize()),t},t.prototype.deleteAt=function(e,t){this.domNode.data=this.text=this.text.slice(0,e)+this.text.slice(e+t)},t.prototype.index=function(e,t){return this.domNode===e?t:-1},t.prototype.insertAt=function(t,r,n){null==n?(this.text=this.text.slice(0,t)+r+this.text.slice(t),this.domNode.data=this.text):e.prototype.insertAt.call(this,t,r,n)},t.prototype.length=function(){return this.text.length},t.prototype.optimize=function(r){e.prototype.optimize.call(this,r),this.text=this.statics.value(this.domNode),0===this.text.length?this.remove():this.next instanceof t&&this.next.prev===this&&(this.insertAt(this.length(),this.next.value()),this.next.remove())},t.prototype.position=function(e,t){return void 0===t&&(t=!1),[this.domNode,e]},t.prototype.split=function(e,t){if(void 0===t&&(t=!1),!t){if(0===e)return this;if(e===this.length())return this.next}var r=a.create(this.domNode.splitText(e));return this.parent.insertBefore(r,this.next),this.text=this.statics.value(this.domNode),r},t.prototype.update=function(e,t){var r=this;e.some((function(e){return"characterData"===e.type&&e.target===r.domNode}))&&(this.text=this.statics.value(this.domNode))},t.prototype.value=function(){return this.text},t.blotName="text",t.scope=a.Scope.INLINE_BLOT,t}(i.default);t.default=s},function(e,t,r){"use strict";var n=document.createElement("div");if(n.classList.toggle("test-class",!1),n.classList.contains("test-class")){var o=DOMTokenList.prototype.toggle;DOMTokenList.prototype.toggle=function(e,t){return arguments.length>1&&!this.contains(e)==!t?t:o.call(this,e)}}String.prototype.startsWith||(String.prototype.startsWith=function(e,t){return t=t||0,this.substr(t,e.length)===e}),String.prototype.endsWith||(String.prototype.endsWith=function(e,t){var r=this.toString();("number"!=typeof t||!isFinite(t)||Math.floor(t)!==t||t>r.length)&&(t=r.length),t-=e.length;var n=r.indexOf(e,t);return-1!==n&&n===t}),Array.prototype.find||Object.defineProperty(Array.prototype,"find",{value:function(e){if(null===this)throw new TypeError("Array.prototype.find called on null or undefined");if("function"!=typeof e)throw new TypeError("predicate must be a function");for(var t,r=Object(this),n=r.length>>>0,o=arguments[1],i=0;i<n;i++)if(t=r[i],e.call(o,t,i,r))return t}}),document.addEventListener("DOMContentLoaded",(function(){document.execCommand("enableObjectResizing",!1,!1),document.execCommand("autoUrlDetect",!1,!1)}))},function(e,t){var r=-1;function n(e,t,l){if(e==t)return e?[[0,e]]:[];(l<0||e.length<l)&&(l=null);var c=i(e,t),d=e.substring(0,c);c=a(e=e.substring(c),t=t.substring(c));var f=e.substring(e.length-c),m=function(e,t){var s;if(!e)return[[1,t]];if(!t)return[[r,e]];var l=e.length>t.length?e:t,u=e.length>t.length?t:e,c=l.indexOf(u);if(-1!=c)return s=[[1,l.substring(0,c)],[0,u],[1,l.substring(c+u.length)]],e.length>t.length&&(s[0][0]=s[2][0]=r),s;if(1==u.length)return[[r,e],[1,t]];var d=function(e,t){var r=e.length>t.length?e:t,n=e.length>t.length?t:e;if(r.length<4||2*n.length<r.length)return null;function o(e,t,r){for(var n,o,s,l,u=e.substring(r,r+Math.floor(e.length/4)),c=-1,d="";-1!=(c=t.indexOf(u,c+1));){var f=i(e.substring(r),t.substring(c)),m=a(e.substring(0,r),t.substring(0,c));d.length<m+f&&(d=t.substring(c-m,c)+t.substring(c,c+f),n=e.substring(0,r-m),o=e.substring(r+f),s=t.substring(0,c-m),l=t.substring(c+f))}return 2*d.length>=e.length?[n,o,s,l,d]:null}var s,l,u,c,d,f=o(r,n,Math.ceil(r.length/4)),m=o(r,n,Math.ceil(r.length/2));return f||m?(s=m?f&&f[4].length>m[4].length?f:m:f,e.length>t.length?(l=s[0],u=s[1],c=s[2],d=s[3]):(c=s[0],d=s[1],l=s[2],u=s[3]),[l,u,c,d,s[4]]):null}(e,t);if(d){var f=d[0],m=d[1],p=d[2],h=d[3],g=d[4],b=n(f,p),y=n(m,h);return b.concat([[0,g]],y)}return function(e,t){for(var n=e.length,i=t.length,a=Math.ceil((n+i)/2),s=a,l=2*a,u=new Array(l),c=new Array(l),d=0;d<l;d++)u[d]=-1,c[d]=-1;u[s+1]=0,c[s+1]=0;for(var f=n-i,m=f%2!=0,p=0,h=0,g=0,b=0,y=0;y<a;y++){for(var v=-y+p;v<=y-h;v+=2){for(var D=s+v,_=(C=v==-y||v!=y&&u[D-1]<u[D+1]?u[D+1]:u[D-1]+1)-v;C<n&&_<i&&e.charAt(C)==t.charAt(_);)C++,_++;if(u[D]=C,C>n)h+=2;else if(_>i)p+=2;else if(m&&(E=s+f-v)>=0&&E<l&&-1!=c[E]&&C>=(k=n-c[E]))return o(e,t,C,_)}for(var x=-y+g;x<=y-b;x+=2){for(var k,E=s+x,w=(k=x==-y||x!=y&&c[E-1]<c[E+1]?c[E+1]:c[E-1]+1)-x;k<n&&w<i&&e.charAt(n-k-1)==t.charAt(i-w-1);)k++,w++;if(c[E]=k,k>n)b+=2;else if(w>i)g+=2;else if(!m){var C;if((D=s+f-x)>=0&&D<l&&-1!=u[D]&&(_=s+(C=u[D])-D,C>=(k=n-k)))return o(e,t,C,_)}}}return[[r,e],[1,t]]}(e,t)}(e=e.substring(0,e.length-c),t=t.substring(0,t.length-c));return d&&m.unshift([0,d]),f&&m.push([0,f]),s(m),null!=l&&(m=function(e,t){var n=function(e,t){if(0===t)return[0,e];for(var n=0,o=0;o<e.length;o++){var i=e[o];if(i[0]===r||0===i[0]){var a=n+i[1].length;if(t===a)return[o+1,e];if(t<a){e=e.slice();var s=t-n,l=[i[0],i[1].slice(0,s)],u=[i[0],i[1].slice(s)];return e.splice(o,1,l,u),[o+1,e]}n=a}}throw new Error("cursor_pos is out of bounds!")}(e,t),o=n[1],i=n[0],a=o[i],s=o[i+1];if(null==a)return e;if(0!==a[0])return e;if(null!=s&&a[1]+s[1]===s[1]+a[1])return o.splice(i,2,s,a),u(o,i,2);if(null!=s&&0===s[1].indexOf(a[1])){o.splice(i,2,[s[0],a[1]],[0,a[1]]);var l=s[1].slice(a[1].length);return l.length>0&&o.splice(i+2,0,[s[0],l]),u(o,i,3)}return e}(m,l)),function(e){for(var t=!1,n=function(e){return e.charCodeAt(0)>=56320&&e.charCodeAt(0)<=57343},o=2;o<e.length;o+=1)0===e[o-2][0]&&((i=e[o-2][1]).charCodeAt(i.length-1)>=55296&&i.charCodeAt(i.length-1)<=56319)&&e[o-1][0]===r&&n(e[o-1][1])&&1===e[o][0]&&n(e[o][1])&&(t=!0,e[o-1][1]=e[o-2][1].slice(-1)+e[o-1][1],e[o][1]=e[o-2][1].slice(-1)+e[o][1],e[o-2][1]=e[o-2][1].slice(0,-1));var i;if(!t)return e;var a=[];for(o=0;o<e.length;o+=1)e[o][1].length>0&&a.push(e[o]);return a}(m)}function o(e,t,r,o){var i=e.substring(0,r),a=t.substring(0,o),s=e.substring(r),l=t.substring(o),u=n(i,a),c=n(s,l);return u.concat(c)}function i(e,t){if(!e||!t||e.charAt(0)!=t.charAt(0))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,i=0;r<o;)e.substring(i,o)==t.substring(i,o)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function a(e,t){if(!e||!t||e.charAt(e.length-1)!=t.charAt(t.length-1))return 0;for(var r=0,n=Math.min(e.length,t.length),o=n,i=0;r<o;)e.substring(e.length-o,e.length-i)==t.substring(t.length-o,t.length-i)?i=r=o:n=o,o=Math.floor((n-r)/2+r);return o}function s(e){e.push([0,""]);for(var t,n=0,o=0,l=0,u="",c="";n<e.length;)switch(e[n][0]){case 1:l++,c+=e[n][1],n++;break;case r:o++,u+=e[n][1],n++;break;case 0:o+l>1?(0!==o&&0!==l&&(0!==(t=i(c,u))&&(n-o-l>0&&0==e[n-o-l-1][0]?e[n-o-l-1][1]+=c.substring(0,t):(e.splice(0,0,[0,c.substring(0,t)]),n++),c=c.substring(t),u=u.substring(t)),0!==(t=a(c,u))&&(e[n][1]=c.substring(c.length-t)+e[n][1],c=c.substring(0,c.length-t),u=u.substring(0,u.length-t))),0===o?e.splice(n-l,o+l,[1,c]):0===l?e.splice(n-o,o+l,[r,u]):e.splice(n-o-l,o+l,[r,u],[1,c]),n=n-o-l+(o?1:0)+(l?1:0)+1):0!==n&&0==e[n-1][0]?(e[n-1][1]+=e[n][1],e.splice(n,1)):n++,l=0,o=0,u="",c=""}""===e[e.length-1][1]&&e.pop();var d=!1;for(n=1;n<e.length-1;)0==e[n-1][0]&&0==e[n+1][0]&&(e[n][1].substring(e[n][1].length-e[n-1][1].length)==e[n-1][1]?(e[n][1]=e[n-1][1]+e[n][1].substring(0,e[n][1].length-e[n-1][1].length),e[n+1][1]=e[n-1][1]+e[n+1][1],e.splice(n-1,1),d=!0):e[n][1].substring(0,e[n+1][1].length)==e[n+1][1]&&(e[n-1][1]+=e[n+1][1],e[n][1]=e[n][1].substring(e[n+1][1].length)+e[n+1][1],e.splice(n+1,1),d=!0)),n++;d&&s(e)}var l=n;function u(e,t,r){for(var n=t+r-1;n>=0&&n>=t-1;n--)if(n+1<e.length){var o=e[n],i=e[n+1];o[0]===i[1]&&e.splice(n,2,[o[0],o[1]+i[1]])}return e}l.INSERT=1,l.DELETE=r,l.EQUAL=0,e.exports=l},function(e,t){function r(e){var t=[];for(var r in e)t.push(r);return t}(e.exports="function"==typeof Object.keys?Object.keys:r).shim=r},function(e,t){var r="[object Arguments]"==function(){return Object.prototype.toString.call(arguments)}();function n(e){return"[object Arguments]"==Object.prototype.toString.call(e)}function o(e){return e&&"object"==typeof e&&"number"==typeof e.length&&Object.prototype.hasOwnProperty.call(e,"callee")&&!Object.prototype.propertyIsEnumerable.call(e,"callee")||!1}(t=e.exports=r?n:o).supported=n,t.unsupported=o},function(e,t){"use strict";var r=Object.prototype.hasOwnProperty,n="~";function o(){}function i(e,t,r){this.fn=e,this.context=t,this.once=r||!1}function a(){this._events=new o,this._eventsCount=0}Object.create&&(o.prototype=Object.create(null),(new o).__proto__||(n=!1)),a.prototype.eventNames=function(){var e,t,o=[];if(0===this._eventsCount)return o;for(t in e=this._events)r.call(e,t)&&o.push(n?t.slice(1):t);return Object.getOwnPropertySymbols?o.concat(Object.getOwnPropertySymbols(e)):o},a.prototype.listeners=function(e,t){var r=n?n+e:e,o=this._events[r];if(t)return!!o;if(!o)return[];if(o.fn)return[o.fn];for(var i=0,a=o.length,s=new Array(a);i<a;i++)s[i]=o[i].fn;return s},a.prototype.emit=function(e,t,r,o,i,a){var s=n?n+e:e;if(!this._events[s])return!1;var l,u,c=this._events[s],d=arguments.length;if(c.fn){switch(c.once&&this.removeListener(e,c.fn,void 0,!0),d){case 1:return c.fn.call(c.context),!0;case 2:return c.fn.call(c.context,t),!0;case 3:return c.fn.call(c.context,t,r),!0;case 4:return c.fn.call(c.context,t,r,o),!0;case 5:return c.fn.call(c.context,t,r,o,i),!0;case 6:return c.fn.call(c.context,t,r,o,i,a),!0}for(u=1,l=new Array(d-1);u<d;u++)l[u-1]=arguments[u];c.fn.apply(c.context,l)}else{var f,m=c.length;for(u=0;u<m;u++)switch(c[u].once&&this.removeListener(e,c[u].fn,void 0,!0),d){case 1:c[u].fn.call(c[u].context);break;case 2:c[u].fn.call(c[u].context,t);break;case 3:c[u].fn.call(c[u].context,t,r);break;case 4:c[u].fn.call(c[u].context,t,r,o);break;default:if(!l)for(f=1,l=new Array(d-1);f<d;f++)l[f-1]=arguments[f];c[u].fn.apply(c[u].context,l)}}return!0},a.prototype.on=function(e,t,r){var o=new i(t,r||this),a=n?n+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.once=function(e,t,r){var o=new i(t,r||this,!0),a=n?n+e:e;return this._events[a]?this._events[a].fn?this._events[a]=[this._events[a],o]:this._events[a].push(o):(this._events[a]=o,this._eventsCount++),this},a.prototype.removeListener=function(e,t,r,i){var a=n?n+e:e;if(!this._events[a])return this;if(!t)return 0==--this._eventsCount?this._events=new o:delete this._events[a],this;var s=this._events[a];if(s.fn)s.fn!==t||i&&!s.once||r&&s.context!==r||(0==--this._eventsCount?this._events=new o:delete this._events[a]);else{for(var l=0,u=[],c=s.length;l<c;l++)(s[l].fn!==t||i&&!s[l].once||r&&s[l].context!==r)&&u.push(s[l]);u.length?this._events[a]=1===u.length?u[0]:u:0==--this._eventsCount?this._events=new o:delete this._events[a]}return this},a.prototype.removeAllListeners=function(e){var t;return e?(t=n?n+e:e,this._events[t]&&(0==--this._eventsCount?this._events=new o:delete this._events[t])):(this._events=new o,this._eventsCount=0),this},a.prototype.off=a.prototype.removeListener,a.prototype.addListener=a.prototype.on,a.prototype.setMaxListeners=function(){return this},a.prefixed=n,a.EventEmitter=a,void 0!==e&&(e.exports=a)},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.matchText=t.matchSpacing=t.matchNewline=t.matchBlot=t.matchAttributor=t.default=void 0;var n="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},o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},i=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),a=v(r(3)),s=v(r(2)),l=v(r(0)),u=v(r(5)),c=v(r(10)),d=v(r(9)),f=r(36),m=r(37),p=v(r(13)),h=r(26),g=r(38),b=r(39),y=r(40);function v(e){return e&&e.__esModule?e:{default:e}}function D(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var _=(0,c.default)("quill:clipboard"),x="__ql-matcher",k=[[Node.TEXT_NODE,R],[Node.TEXT_NODE,F],["br",function(e,t){return N(t,"\n")||t.insert("\n"),t}],[Node.ELEMENT_NODE,F],[Node.ELEMENT_NODE,I],[Node.ELEMENT_NODE,L],[Node.ELEMENT_NODE,S],[Node.ELEMENT_NODE,function(e,t){var r={},n=e.style||{};return n.fontStyle&&"italic"===A(e).fontStyle&&(r.italic=!0),n.fontWeight&&(A(e).fontWeight.startsWith("bold")||parseInt(A(e).fontWeight)>=700)&&(r.bold=!0),Object.keys(r).length>0&&(t=M(t,r)),parseFloat(n.textIndent||0)>0&&(t=(new s.default).insert("\t").concat(t)),t}],["li",function(e,t){var r=l.default.query(e);if(null==r||"list-item"!==r.blotName||!N(t,"\n"))return t;for(var n=-1,o=e.parentNode;!o.classList.contains("ql-clipboard");)"list"===(l.default.query(o)||{}).blotName&&(n+=1),o=o.parentNode;return n<=0?t:t.compose((new s.default).retain(t.length()-1).retain(1,{indent:n}))}],["b",T.bind(T,"bold")],["i",T.bind(T,"italic")],["style",function(){return new s.default}]],E=[f.AlignAttribute,g.DirectionAttribute].reduce((function(e,t){return e[t.keyName]=t,e}),{}),w=[f.AlignStyle,m.BackgroundStyle,h.ColorStyle,g.DirectionStyle,b.FontStyle,y.SizeStyle].reduce((function(e,t){return e[t.keyName]=t,e}),{}),C=function(e){function t(e,r){!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,r));return n.quill.root.addEventListener("paste",n.onPaste.bind(n)),n.container=n.quill.addContainer("ql-clipboard"),n.container.setAttribute("contenteditable",!0),n.container.setAttribute("tabindex",-1),n.matchers=[],k.concat(n.options.matchers).forEach((function(e){var t=o(e,2),i=t[0],a=t[1];(r.matchVisual||a!==L)&&n.addMatcher(i,a)})),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),i(t,[{key:"addMatcher",value:function(e,t){this.matchers.push([e,t])}},{key:"convert",value:function(e){if("string"==typeof e)return this.container.innerHTML=e.replace(/\>\r?\n +\</g,"><"),this.convert();var t=this.quill.getFormat(this.quill.selection.savedRange.index);if(t[p.default.blotName]){var r=this.container.innerText;return this.container.innerHTML="",(new s.default).insert(r,D({},p.default.blotName,t[p.default.blotName]))}var n=this.prepareMatching(),i=o(n,2),a=i[0],l=i[1],u=O(this.container,a,l);return N(u,"\n")&&null==u.ops[u.ops.length-1].attributes&&(u=u.compose((new s.default).retain(u.length()-1).delete(1))),_.log("convert",this.container.innerHTML,u),this.container.innerHTML="",u}},{key:"dangerouslyPasteHTML",value:function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:u.default.sources.API;if("string"==typeof e)this.quill.setContents(this.convert(e),t),this.quill.setSelection(0,u.default.sources.SILENT);else{var n=this.convert(t);this.quill.updateContents((new s.default).retain(e).concat(n),r),this.quill.setSelection(e+n.length(),u.default.sources.SILENT)}}},{key:"onPaste",value:function(e){var t=this;if(!e.defaultPrevented&&this.quill.isEnabled()){var r=this.quill.getSelection(),n=(new s.default).retain(r.index),o=this.quill.scrollingContainer.scrollTop;this.container.focus(),this.quill.selection.update(u.default.sources.SILENT),setTimeout((function(){n=n.concat(t.convert()).delete(r.length),t.quill.updateContents(n,u.default.sources.USER),t.quill.setSelection(n.length()-r.length,u.default.sources.SILENT),t.quill.scrollingContainer.scrollTop=o,t.quill.focus()}),1)}}},{key:"prepareMatching",value:function(){var e=this,t=[],r=[];return this.matchers.forEach((function(n){var i=o(n,2),a=i[0],s=i[1];switch(a){case Node.TEXT_NODE:r.push(s);break;case Node.ELEMENT_NODE:t.push(s);break;default:[].forEach.call(e.container.querySelectorAll(a),(function(e){e[x]=e[x]||[],e[x].push(s)}))}})),[t,r]}}]),t}(d.default);function M(e,t,r){return"object"===(void 0===t?"undefined":n(t))?Object.keys(t).reduce((function(e,r){return M(e,r,t[r])}),e):e.reduce((function(e,n){return n.attributes&&n.attributes[t]?e.push(n):e.insert(n.insert,(0,a.default)({},D({},t,r),n.attributes))}),new s.default)}function A(e){if(e.nodeType!==Node.ELEMENT_NODE)return{};var t="__ql-computed-style";return e[t]||(e[t]=window.getComputedStyle(e))}function N(e,t){for(var r="",n=e.ops.length-1;n>=0&&r.length<t.length;--n){var o=e.ops[n];if("string"!=typeof o.insert)break;r=o.insert+r}return r.slice(-1*t.length)===t}function j(e){if(0===e.childNodes.length)return!1;var t=A(e);return["block","list-item"].indexOf(t.display)>-1}function O(e,t,r){return e.nodeType===e.TEXT_NODE?r.reduce((function(t,r){return r(e,t)}),new s.default):e.nodeType===e.ELEMENT_NODE?[].reduce.call(e.childNodes||[],(function(n,o){var i=O(o,t,r);return o.nodeType===e.ELEMENT_NODE&&(i=t.reduce((function(e,t){return t(o,e)}),i),i=(o[x]||[]).reduce((function(e,t){return t(o,e)}),i)),n.concat(i)}),new s.default):new s.default}function T(e,t,r){return M(r,e,!0)}function S(e,t){var r=l.default.Attributor.Attribute.keys(e),n=l.default.Attributor.Class.keys(e),o=l.default.Attributor.Style.keys(e),i={};return r.concat(n).concat(o).forEach((function(t){var r=l.default.query(t,l.default.Scope.ATTRIBUTE);null!=r&&(i[r.attrName]=r.value(e),i[r.attrName])||(null==(r=E[t])||r.attrName!==t&&r.keyName!==t||(i[r.attrName]=r.value(e)||void 0),null==(r=w[t])||r.attrName!==t&&r.keyName!==t||(r=w[t],i[r.attrName]=r.value(e)||void 0))})),Object.keys(i).length>0&&(t=M(t,i)),t}function I(e,t){var r=l.default.query(e);if(null==r)return t;if(r.prototype instanceof l.default.Embed){var n={},o=r.value(e);null!=o&&(n[r.blotName]=o,t=(new s.default).insert(n,r.formats(e)))}else"function"==typeof r.formats&&(t=M(t,r.blotName,r.formats(e)));return t}function F(e,t){return N(t,"\n")||(j(e)||t.length()>0&&e.nextSibling&&j(e.nextSibling))&&t.insert("\n"),t}function L(e,t){if(j(e)&&null!=e.nextElementSibling&&!N(t,"\n\n")){var r=e.offsetHeight+parseFloat(A(e).marginTop)+parseFloat(A(e).marginBottom);e.nextElementSibling.offsetTop>e.offsetTop+1.5*r&&t.insert("\n")}return t}function R(e,t){var r=e.data;if("O:P"===e.parentNode.tagName)return t.insert(r.trim());if(0===r.trim().length&&e.parentNode.classList.contains("ql-clipboard"))return t;if(!A(e.parentNode).whiteSpace.startsWith("pre")){var n=function(e,t){return(t=t.replace(/[^\u00a0]/g,"")).length<1&&e?" ":t};r=(r=r.replace(/\r\n/g," ").replace(/\n/g," ")).replace(/\s\s+/g,n.bind(n,!0)),(null==e.previousSibling&&j(e.parentNode)||null!=e.previousSibling&&j(e.previousSibling))&&(r=r.replace(/^\s+/,n.bind(n,!1))),(null==e.nextSibling&&j(e.parentNode)||null!=e.nextSibling&&j(e.nextSibling))&&(r=r.replace(/\s+$/,n.bind(n,!1)))}return t.insert(r)}C.DEFAULTS={matchers:[],matchVisual:!0},t.default=C,t.matchAttributor=S,t.matchBlot=I,t.matchNewline=F,t.matchSpacing=L,t.matchText=R},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"optimize",value:function(e){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e),this.domNode.tagName!==this.statics.tagName[0]&&this.replaceWith(this.statics.blotName)}}],[{key:"create",value:function(){return i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this)}},{key:"formats",value:function(){return!0}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);a.blotName="bold",a.tagName=["STRONG","B"],t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.addControls=t.default=void 0;var n=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=c(r(2)),a=c(r(0)),s=c(r(5)),l=c(r(10)),u=c(r(9));function c(e){return e&&e.__esModule?e:{default:e}}function d(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!=typeof t&&"function"!=typeof t?e:t}var f=(0,l.default)("quill:toolbar"),m=function(e){function t(e,r){!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t);var o,i=d(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if(Array.isArray(i.options.container)){var a=document.createElement("div");h(a,i.options.container),e.container.parentNode.insertBefore(a,e.container),i.container=a}else"string"==typeof i.options.container?i.container=document.querySelector(i.options.container):i.container=i.options.container;return i.container instanceof HTMLElement?(i.container.classList.add("ql-toolbar"),i.controls=[],i.handlers={},Object.keys(i.options.handlers).forEach((function(e){i.addHandler(e,i.options.handlers[e])})),[].forEach.call(i.container.querySelectorAll("button, select"),(function(e){i.attach(e)})),i.quill.on(s.default.events.EDITOR_CHANGE,(function(e,t){e===s.default.events.SELECTION_CHANGE&&i.update(t)})),i.quill.on(s.default.events.SCROLL_OPTIMIZE,(function(){var e=i.quill.selection.getRange(),t=n(e,1)[0];i.update(t)})),i):(o=f.error("Container required for toolbar",i.options),d(i,o))}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:"addHandler",value:function(e,t){this.handlers[e]=t}},{key:"attach",value:function(e){var t=this,r=[].find.call(e.classList,(function(e){return 0===e.indexOf("ql-")}));if(r){if(r=r.slice(3),"BUTTON"===e.tagName&&e.setAttribute("type","button"),null==this.handlers[r]){if(null!=this.quill.scroll.whitelist&&null==this.quill.scroll.whitelist[r])return void f.warn("ignoring attaching to disabled format",r,e);if(null==a.default.query(r))return void f.warn("ignoring attaching to nonexistent format",r,e)}var o="SELECT"===e.tagName?"change":"click";e.addEventListener(o,(function(o){var l=void 0;if("SELECT"===e.tagName){if(e.selectedIndex<0)return;var u=e.options[e.selectedIndex];l=!u.hasAttribute("selected")&&(u.value||!1)}else l=!e.classList.contains("ql-active")&&(e.value||!e.hasAttribute("value")),o.preventDefault();t.quill.focus();var c=t.quill.selection.getRange(),d=n(c,1)[0];if(null!=t.handlers[r])t.handlers[r].call(t,l);else if(a.default.query(r).prototype instanceof a.default.Embed){if(!(l=prompt("Enter "+r)))return;t.quill.updateContents((new i.default).retain(d.index).delete(d.length).insert(function(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}({},r,l)),s.default.sources.USER)}else t.quill.format(r,l,s.default.sources.USER);t.update(d)})),this.controls.push([r,e])}}},{key:"update",value:function(e){var t=null==e?{}:this.quill.getFormat(e);this.controls.forEach((function(r){var o=n(r,2),i=o[0],a=o[1];if("SELECT"===a.tagName){var s=void 0;if(null==e)s=null;else if(null==t[i])s=a.querySelector("option[selected]");else if(!Array.isArray(t[i])){var l=t[i];"string"==typeof l&&(l=l.replace(/\"/g,'\\"')),s=a.querySelector('option[value="'+l+'"]')}null==s?(a.value="",a.selectedIndex=-1):s.selected=!0}else if(null==e)a.classList.remove("ql-active");else if(a.hasAttribute("value")){var u=t[i]===a.getAttribute("value")||null!=t[i]&&t[i].toString()===a.getAttribute("value")||null==t[i]&&!a.getAttribute("value");a.classList.toggle("ql-active",u)}else a.classList.toggle("ql-active",null!=t[i])}))}}]),t}(u.default);function p(e,t,r){var n=document.createElement("button");n.setAttribute("type","button"),n.classList.add("ql-"+t),null!=r&&(n.value=r),e.appendChild(n)}function h(e,t){Array.isArray(t[0])||(t=[t]),t.forEach((function(t){var r=document.createElement("span");r.classList.add("ql-formats"),t.forEach((function(e){if("string"==typeof e)p(r,e);else{var t=Object.keys(e)[0],n=e[t];Array.isArray(n)?function(e,t,r){var n=document.createElement("select");n.classList.add("ql-"+t),r.forEach((function(e){var t=document.createElement("option");!1!==e?t.setAttribute("value",e):t.setAttribute("selected","selected"),n.appendChild(t)})),e.appendChild(n)}(r,t,n):p(r,t,n)}})),e.appendChild(r)}))}m.DEFAULTS={},m.DEFAULTS={container:null,handlers:{clean:function(){var e=this,t=this.quill.getSelection();if(null!=t)if(0==t.length){var r=this.quill.getFormat();Object.keys(r).forEach((function(t){null!=a.default.query(t,a.default.Scope.INLINE)&&e.quill.format(t,!1)}))}else this.quill.removeFormat(t,s.default.sources.USER)},direction:function(e){var t=this.quill.getFormat().align;"rtl"===e&&null==t?this.quill.format("align","right",s.default.sources.USER):e||"right"!==t||this.quill.format("align",!1,s.default.sources.USER),this.quill.format("direction",e,s.default.sources.USER)},indent:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t),n=parseInt(r.indent||0);if("+1"===e||"-1"===e){var o="+1"===e?1:-1;"rtl"===r.direction&&(o*=-1),this.quill.format("indent",n+o,s.default.sources.USER)}},link:function(e){!0===e&&(e=prompt("Enter link URL:")),this.quill.format("link",e,s.default.sources.USER)},list:function(e){var t=this.quill.getSelection(),r=this.quill.getFormat(t);"check"===e?"checked"===r.list||"unchecked"===r.list?this.quill.format("list",!1,s.default.sources.USER):this.quill.format("list","unchecked",s.default.sources.USER):this.quill.format("list",e,s.default.sources.USER)}}},t.default=m,t.addControls=h},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polyline class="ql-even ql-stroke" points="5 7 3 9 5 11"></polyline> <polyline class="ql-even ql-stroke" points="13 7 15 9 13 11"></polyline> <line class=ql-stroke x1=10 x2=8 y1=5 y2=13></line> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(e,r){!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.label.innerHTML=r,n.container.classList.add("ql-color-picker"),[].slice.call(n.container.querySelectorAll(".ql-picker-item"),0,7).forEach((function(e){e.classList.add("ql-primary")})),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:"buildItem",value:function(e){var r=i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"buildItem",this).call(this,e);return r.style.backgroundColor=e.getAttribute("value")||"",r}},{key:"selectItem",value:function(e,r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r);var n=this.label.querySelector(".ql-color-label"),o=e&&e.getAttribute("data-value")||"";n&&("line"===n.tagName?n.style.stroke=o:n.style.fill=o)}}]),t}(((n=r(28))&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(e,r){!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.container.classList.add("ql-icon-picker"),[].forEach.call(n.container.querySelectorAll(".ql-picker-item"),(function(e){e.innerHTML=r[e.getAttribute("data-value")||""]})),n.defaultItem=n.container.querySelector(".ql-selected"),n.selectItem(n.defaultItem),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:"selectItem",value:function(e,r){i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"selectItem",this).call(this,e,r),e=e||this.defaultItem,this.label.innerHTML=e.innerHTML}}]),t}(((n=r(28))&&n.__esModule?n:{default:n}).default);t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function(){function e(t,r){var n=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),this.quill=t,this.boundsContainer=r||document.body,this.root=t.addContainer("ql-tooltip"),this.root.innerHTML=this.constructor.TEMPLATE,this.quill.root===this.quill.scrollingContainer&&this.quill.root.addEventListener("scroll",(function(){n.root.style.marginTop=-1*n.quill.root.scrollTop+"px"})),this.hide()}return n(e,[{key:"hide",value:function(){this.root.classList.add("ql-hidden")}},{key:"position",value:function(e){var t=e.left+e.width/2-this.root.offsetWidth/2,r=e.bottom+this.quill.root.scrollTop;this.root.style.left=t+"px",this.root.style.top=r+"px",this.root.classList.remove("ql-flip");var n=this.boundsContainer.getBoundingClientRect(),o=this.root.getBoundingClientRect(),i=0;if(o.right>n.right&&(i=n.right-o.right,this.root.style.left=t+i+"px"),o.left<n.left&&(i=n.left-o.left,this.root.style.left=t+i+"px"),o.bottom>n.bottom){var a=o.bottom-o.top,s=e.bottom-e.top+a;this.root.style.top=r-s+"px",this.root.classList.add("ql-flip")}return i}},{key:"show",value:function(){this.root.classList.remove("ql-editing"),this.root.classList.remove("ql-hidden")}}]),e}();t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=f(r(3)),a=f(r(8)),s=r(43),l=f(s),u=f(r(27)),c=r(15),d=f(r(41));function f(e){return e&&e.__esModule?e:{default:e}}function m(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function p(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}function h(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)}var g=[[{header:["1","2","3",!1]}],["bold","italic","underline","link"],[{list:"ordered"},{list:"bullet"}],["clean"]],b=function(e){function t(e,r){m(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=g);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-snow"),n}return h(t,e),o(t,[{key:"extendToolbar",value:function(e){e.container.classList.add("ql-snow"),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),d.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),d.default),this.tooltip=new y(this.quill,this.options.bounds),e.container.querySelector(".ql-link")&&this.quill.keyboard.addBinding({key:"K",shortKey:!0},(function(t,r){e.handlers.link.call(e,!r.format.link)}))}}]),t}(l.default);b.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){if(e){var t=this.quill.getSelection();if(null==t||0==t.length)return;var r=this.quill.getText(t);/^\S+@\S+\.\S+$/.test(r)&&0!==r.indexOf("mailto:")&&(r="mailto:"+r),this.quill.theme.tooltip.edit("link",r)}else this.quill.format("link",!1)}}}}});var y=function(e){function t(e,r){m(this,t);var n=p(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.preview=n.root.querySelector("a.ql-preview"),n}return h(t,e),o(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector("a.ql-action").addEventListener("click",(function(t){e.root.classList.contains("ql-editing")?e.save():e.edit("link",e.preview.textContent),t.preventDefault()})),this.root.querySelector("a.ql-remove").addEventListener("click",(function(t){if(null!=e.linkRange){var r=e.linkRange;e.restoreFocus(),e.quill.formatText(r,"link",!1,a.default.sources.USER),delete e.linkRange}t.preventDefault(),e.hide()})),this.quill.on(a.default.events.SELECTION_CHANGE,(function(t,r,n){if(null!=t){if(0===t.length&&n===a.default.sources.USER){var o=function(e,t){if(Array.isArray(e))return e;if(Symbol.iterator in Object(e))return function(e,t){var r=[],n=!0,o=!1,i=void 0;try{for(var a,s=e[Symbol.iterator]();!(n=(a=s.next()).done)&&(r.push(a.value),!t||r.length!==t);n=!0);}catch(e){o=!0,i=e}finally{try{!n&&s.return&&s.return()}finally{if(o)throw i}}return r}(e,t);throw new TypeError("Invalid attempt to destructure non-iterable instance")}(e.quill.scroll.descendant(u.default,t.index),2),i=o[0],s=o[1];if(null!=i){e.linkRange=new c.Range(t.index-s,i.length());var l=u.default.formats(i.domNode);return e.preview.textContent=l,e.preview.setAttribute("href",l),e.show(),void e.position(e.quill.getBounds(e.linkRange))}}else delete e.linkRange;e.hide()}}))}},{key:"show",value:function(){n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"show",this).call(this),this.root.removeAttribute("data-mode")}}]),t}(s.BaseTooltip);y.TEMPLATE=['<a class="ql-preview" rel="noopener noreferrer" target="_blank" href="about:blank"></a>','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-action"></a>','<a class="ql-remove"></a>'].join(""),t.default=b},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n=F(r(29)),o=r(36),i=r(38),a=r(64),s=F(r(65)),l=F(r(66)),u=r(67),c=F(u),d=r(37),f=r(26),m=r(39),p=r(40),h=F(r(56)),g=F(r(68)),b=F(r(27)),y=F(r(69)),v=F(r(70)),D=F(r(71)),_=F(r(72)),x=F(r(73)),k=r(13),E=F(k),w=F(r(74)),C=F(r(75)),M=F(r(57)),A=F(r(41)),N=F(r(28)),j=F(r(59)),O=F(r(60)),T=F(r(61)),S=F(r(108)),I=F(r(62));function F(e){return e&&e.__esModule?e:{default:e}}n.default.register({"attributors/attribute/direction":i.DirectionAttribute,"attributors/class/align":o.AlignClass,"attributors/class/background":d.BackgroundClass,"attributors/class/color":f.ColorClass,"attributors/class/direction":i.DirectionClass,"attributors/class/font":m.FontClass,"attributors/class/size":p.SizeClass,"attributors/style/align":o.AlignStyle,"attributors/style/background":d.BackgroundStyle,"attributors/style/color":f.ColorStyle,"attributors/style/direction":i.DirectionStyle,"attributors/style/font":m.FontStyle,"attributors/style/size":p.SizeStyle},!0),n.default.register({"formats/align":o.AlignClass,"formats/direction":i.DirectionClass,"formats/indent":a.IndentClass,"formats/background":d.BackgroundStyle,"formats/color":f.ColorStyle,"formats/font":m.FontClass,"formats/size":p.SizeClass,"formats/blockquote":s.default,"formats/code-block":E.default,"formats/header":l.default,"formats/list":c.default,"formats/bold":h.default,"formats/code":k.Code,"formats/italic":g.default,"formats/link":b.default,"formats/script":y.default,"formats/strike":v.default,"formats/underline":D.default,"formats/image":_.default,"formats/video":x.default,"formats/list/item":u.ListItem,"modules/formula":w.default,"modules/syntax":C.default,"modules/toolbar":M.default,"themes/bubble":S.default,"themes/snow":I.default,"ui/icons":A.default,"ui/picker":N.default,"ui/icon-picker":O.default,"ui/color-picker":j.default,"ui/tooltip":T.default},!0),t.default=n.default},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.IndentClass=void 0;var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},s=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"add",value:function(e,r){if("+1"===r||"-1"===r){var n=this.value(e)||0;r="+1"===r?n+1:n-1}return 0===r?(this.remove(e),!0):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"add",this).call(this,e,r)}},{key:"canAdd",value:function(e,r){return i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,r)||i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"canAdd",this).call(this,e,parseInt(r))}},{key:"value",value:function(e){return parseInt(i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"value",this).call(this,e))||void 0}}]),t}(a.default.Attributor.Class),l=new s("indent","ql-indent",{scope:a.default.Scope.BLOCK,whitelist:[1,2,3,4,5,6,7,8]});t.IndentClass=l},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(4))&&n.__esModule?n:{default:n}).default);o.blotName="blockquote",o.tagName="blockquote",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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,null,[{key:"formats",value:function(e){return this.tagName.indexOf(e.tagName)+1}}]),t}(((n=r(4))&&n.__esModule?n:{default:n}).default);i.blotName="header",i.tagName=["H1","H2","H3","H4","H5","H6"],t.default=i},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.ListItem=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=l(r(0)),a=l(r(4)),s=l(r(25));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function d(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)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"format",value:function(e,r){e!==m.blotName||r?o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r):this.replaceWith(i.default.create(this.statics.scope))}},{key:"remove",value:function(){null==this.prev&&null==this.next?this.parent.remove():o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"remove",this).call(this)}},{key:"replaceWith",value:function(e,r){return this.parent.isolate(this.offset(this.parent),this.length()),e===this.parent.statics.blotName?(this.parent.replaceWith(e,r),this):(this.parent.unwrap(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e,r))}}],[{key:"formats",value:function(e){return e.tagName===this.tagName?void 0:o(t.__proto__||Object.getPrototypeOf(t),"formats",this).call(this,e)}}]),t}(a.default);f.blotName="list-item",f.tagName="LI";var m=function(e){function t(e){u(this,t);var r=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e)),n=function(t){if(t.target.parentNode===e){var n=r.statics.formats(e),o=i.default.find(t.target);"checked"===n?o.format("list","unchecked"):"unchecked"===n&&o.format("list","checked")}};return e.addEventListener("touchstart",n),e.addEventListener("mousedown",n),r}return d(t,e),n(t,null,[{key:"create",value:function(e){var r="ordered"===e?"OL":"UL",n=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,r);return"checked"!==e&&"unchecked"!==e||n.setAttribute("data-checked","checked"===e),n}},{key:"formats",value:function(e){return"OL"===e.tagName?"ordered":"UL"===e.tagName?e.hasAttribute("data-checked")?"true"===e.getAttribute("data-checked")?"checked":"unchecked":"bullet":void 0}}]),n(t,[{key:"format",value:function(e,t){this.children.length>0&&this.children.tail.format(e,t)}},{key:"formats",value:function(){return e={},t=this.statics.blotName,r=this.statics.formats(this.domNode),t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e;var e,t,r}},{key:"insertBefore",value:function(e,r){if(e instanceof f)o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"insertBefore",this).call(this,e,r);else{var n=null==r?this.length():r.offset(this),i=this.split(n);i.parent.insertBefore(e,i)}}},{key:"optimize",value:function(e){o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"optimize",this).call(this,e);var r=this.next;null!=r&&r.prev===this&&r.statics.blotName===this.statics.blotName&&r.domNode.tagName===this.domNode.tagName&&r.domNode.getAttribute("data-checked")===this.domNode.getAttribute("data-checked")&&(r.moveChildren(this),r.remove())}},{key:"replace",value:function(e){if(e.statics.blotName!==this.statics.blotName){var r=i.default.create(this.statics.defaultChild);e.moveChildren(r),this.appendChild(r)}o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replace",this).call(this,e)}}]),t}(s.default);m.blotName="list",m.scope=i.default.Scope.BLOCK_BLOT,m.tagName=["OL","UL"],m.defaultChild="list-item",m.allowedChildren=[f],t.ListItem=f,t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(56))&&n.__esModule?n:{default:n}).default);o.blotName="italic",o.tagName=["EM","I"],t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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,null,[{key:"create",value:function(e){return"super"===e?document.createElement("sup"):"sub"===e?document.createElement("sub"):i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e)}},{key:"formats",value:function(e){return"SUB"===e.tagName?"sub":"SUP"===e.tagName?"super":void 0}}]),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);a.blotName="script",a.tagName=["SUB","SUP"],t.default=a},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);o.blotName="strike",o.tagName="S",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}(t,e),t}(((n=r(6))&&n.__esModule?n:{default:n}).default);o.blotName="underline",o.tagName="U",t.default=o},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=(n=r(0))&&n.__esModule?n:{default:n},s=r(27),l=["alt","height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"format",value:function(e,r){l.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return l.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"match",value:function(e){return/\.(jpe?g|gif|png)$/.test(e)||/^data:image\/.+;base64/.test(e)}},{key:"sanitize",value:function(e){return(0,s.sanitize)(e,["http","https","data"])?e:"//:0"}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.default.Embed);u.blotName="image",u.tagName="IMG",t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var n,o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},a=r(4),s=(n=r(27))&&n.__esModule?n:{default:n},l=["height","width"],u=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),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)).apply(this,arguments))}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:"format",value:function(e,r){l.indexOf(e)>-1?r?this.domNode.setAttribute(e,r):this.domNode.removeAttribute(e):i(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"format",this).call(this,e,r)}}],[{key:"create",value:function(e){var r=i(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return r.setAttribute("frameborder","0"),r.setAttribute("allowfullscreen",!0),r.setAttribute("src",this.sanitize(e)),r}},{key:"formats",value:function(e){return l.reduce((function(t,r){return e.hasAttribute(r)&&(t[r]=e.getAttribute(r)),t}),{})}},{key:"sanitize",value:function(e){return s.default.sanitize(e)}},{key:"value",value:function(e){return e.getAttribute("src")}}]),t}(a.BlockEmbed);u.blotName="video",u.className="ql-video",u.tagName="IFRAME",t.default=u},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.FormulaBlot=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=l(r(35)),a=l(r(5)),s=l(r(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function d(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)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,null,[{key:"create",value:function(e){var r=o(t.__proto__||Object.getPrototypeOf(t),"create",this).call(this,e);return"string"==typeof e&&(window.katex.render(e,r,{throwOnError:!1,errorColor:"#f00"}),r.setAttribute("data-value",e)),r}},{key:"value",value:function(e){return e.getAttribute("data-value")}}]),t}(i.default);f.blotName="formula",f.className="ql-formula",f.tagName="SPAN";var m=function(e){function t(){u(this,t);var e=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this));if(null==window.katex)throw new Error("Formula module requires KaTeX.");return e}return d(t,e),n(t,null,[{key:"register",value:function(){a.default.register(f,!0)}}]),t}(s.default);t.FormulaBlot=f,t.default=m},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.CodeToken=t.CodeBlock=void 0;var n=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),o=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},i=l(r(0)),a=l(r(5)),s=l(r(9));function l(e){return e&&e.__esModule?e:{default:e}}function u(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function c(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}function d(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)}var f=function(e){function t(){return u(this,t),c(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments))}return d(t,e),n(t,[{key:"replaceWith",value:function(e){this.domNode.textContent=this.domNode.textContent,this.attach(),o(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"replaceWith",this).call(this,e)}},{key:"highlight",value:function(e){var t=this.domNode.textContent;this.cachedText!==t&&((t.trim().length>0||null==this.cachedText)&&(this.domNode.innerHTML=e(t),this.domNode.normalize(),this.attach()),this.cachedText=t)}}]),t}(l(r(13)).default);f.className="ql-syntax";var m=new i.default.Attributor.Class("token","hljs",{scope:i.default.Scope.INLINE}),p=function(e){function t(e,r){u(this,t);var n=c(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));if("function"!=typeof n.options.highlight)throw new Error("Syntax module requires highlight.js. Please include the library on the page before Quill.");var o=null;return n.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){clearTimeout(o),o=setTimeout((function(){n.highlight(),o=null}),n.options.interval)})),n.highlight(),n}return d(t,e),n(t,null,[{key:"register",value:function(){a.default.register(m,!0),a.default.register(f,!0)}}]),n(t,[{key:"highlight",value:function(){var e=this;if(!this.quill.selection.composing){this.quill.update(a.default.sources.USER);var t=this.quill.getSelection();this.quill.scroll.descendants(f).forEach((function(t){t.highlight(e.options.highlight)})),this.quill.update(a.default.sources.SILENT),null!=t&&this.quill.setSelection(t,a.default.sources.SILENT)}}}]),t}(s.default);p.DEFAULTS={highlight:null==window.hljs?null:function(e){return window.hljs.highlightAuto(e).value},interval:1e3},t.CodeBlock=f,t.CodeToken=m,t.default=p},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=13 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=14 x2=4 y1=14 y2=14></line> <line class=ql-stroke x1=12 x2=6 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=5 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=9 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=15 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=15 x2=3 y1=14 y2=14></line> <line class=ql-stroke x1=15 x2=3 y1=4 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <g class="ql-fill ql-color-label"> <polygon points="6 6.868 6 6 5 6 5 7 5.942 7 6 6.868"></polygon> <rect height=1 width=1 x=4 y=4></rect> <polygon points="6.817 5 6 5 6 6 6.38 6 6.817 5"></polygon> <rect height=1 width=1 x=2 y=6></rect> <rect height=1 width=1 x=3 y=5></rect> <rect height=1 width=1 x=4 y=7></rect> <polygon points="4 11.439 4 11 3 11 3 12 3.755 12 4 11.439"></polygon> <rect height=1 width=1 x=2 y=12></rect> <rect height=1 width=1 x=2 y=9></rect> <rect height=1 width=1 x=2 y=15></rect> <polygon points="4.63 10 4 10 4 11 4.192 11 4.63 10"></polygon> <rect height=1 width=1 x=3 y=8></rect> <path d=M10.832,4.2L11,4.582V4H10.708A1.948,1.948,0,0,1,10.832,4.2Z></path> <path d=M7,4.582L7.168,4.2A1.929,1.929,0,0,1,7.292,4H7V4.582Z></path> <path d=M8,13H7.683l-0.351.8a1.933,1.933,0,0,1-.124.2H8V13Z></path> <rect height=1 width=1 x=12 y=2></rect> <rect height=1 width=1 x=11 y=3></rect> <path d=M9,3H8V3.282A1.985,1.985,0,0,1,9,3Z></path> <rect height=1 width=1 x=2 y=3></rect> <rect height=1 width=1 x=6 y=2></rect> <rect height=1 width=1 x=3 y=2></rect> <rect height=1 width=1 x=5 y=3></rect> <rect height=1 width=1 x=9 y=2></rect> <rect height=1 width=1 x=15 y=14></rect> <polygon points="13.447 10.174 13.469 10.225 13.472 10.232 13.808 11 14 11 14 10 13.37 10 13.447 10.174"></polygon> <rect height=1 width=1 x=13 y=7></rect> <rect height=1 width=1 x=15 y=5></rect> <rect height=1 width=1 x=14 y=6></rect> <rect height=1 width=1 x=15 y=8></rect> <rect height=1 width=1 x=14 y=9></rect> <path d=M3.775,14H3v1H4V14.314A1.97,1.97,0,0,1,3.775,14Z></path> <rect height=1 width=1 x=14 y=3></rect> <polygon points="12 6.868 12 6 11.62 6 12 6.868"></polygon> <rect height=1 width=1 x=15 y=2></rect> <rect height=1 width=1 x=12 y=5></rect> <rect height=1 width=1 x=13 y=4></rect> <polygon points="12.933 9 13 9 13 8 12.495 8 12.933 9"></polygon> <rect height=1 width=1 x=9 y=14></rect> <rect height=1 width=1 x=8 y=15></rect> <path d=M6,14.926V15H7V14.316A1.993,1.993,0,0,1,6,14.926Z></path> <rect height=1 width=1 x=5 y=15></rect> <path d=M10.668,13.8L10.317,13H10v1h0.792A1.947,1.947,0,0,1,10.668,13.8Z></path> <rect height=1 width=1 x=11 y=15></rect> <path d=M14.332,12.2a1.99,1.99,0,0,1,.166.8H15V12H14.245Z></path> <rect height=1 width=1 x=14 y=15></rect> <rect height=1 width=1 x=15 y=11></rect> </g> <polyline class=ql-stroke points="5.5 13 9 5 12.5 13"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=11 y2=11></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class="ql-fill ql-stroke" height=3 width=3 x=4 y=5></rect> <rect class="ql-fill ql-stroke" height=3 width=3 x=11 y=5></rect> <path class="ql-even ql-fill ql-stroke" d=M7,8c0,4.031-3,5-3,5></path> <path class="ql-even ql-fill ql-stroke" d=M14,8c0,4.031-3,5-3,5></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,4H9.5A2.5,2.5,0,0,1,12,6.5v0A2.5,2.5,0,0,1,9.5,9H5A0,0,0,0,1,5,9V4A0,0,0,0,1,5,4Z></path> <path class=ql-stroke d=M5,9h5.5A2.5,2.5,0,0,1,13,11.5v0A2.5,2.5,0,0,1,10.5,14H5a0,0,0,0,1,0,0V9A0,0,0,0,1,5,9Z></path> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=5 x2=13 y1=3 y2=3></line> <line class=ql-stroke x1=6 x2=9.35 y1=12 y2=3></line> <line class=ql-stroke x1=11 x2=15 y1=11 y2=15></line> <line class=ql-stroke x1=15 x2=11 y1=11 y2=15></line> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=7 x=2 y=14></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-color-label ql-stroke ql-transparent" x1=3 x2=15 y1=15 y2=15></line> <polyline class=ql-stroke points="5.5 11 9 3 12.5 11"></polyline> <line class=ql-stroke x1=11.63 x2=6.38 y1=9 y2=9></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="3 11 5 9 3 7 3 11"></polygon> <line class="ql-stroke ql-fill" x1=15 x2=11 y1=4 y2=4></line> <path class=ql-fill d=M11,3a3,3,0,0,0,0,6h1V3H11Z></path> <rect class=ql-fill height=11 width=1 x=11 y=4></rect> <rect class=ql-fill height=11 width=1 x=13 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class="ql-stroke ql-fill" points="15 12 13 10 15 8 15 12"></polygon> <line class="ql-stroke ql-fill" x1=9 x2=5 y1=4 y2=4></line> <path class=ql-fill d=M5,3A3,3,0,0,0,5,9H6V3H5Z></path> <rect class=ql-fill height=11 width=1 x=5 y=4></rect> <rect class=ql-fill height=11 width=1 x=7 y=4></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M14,16H4a1,1,0,0,1,0-2H14A1,1,0,0,1,14,16Z /> <path class=ql-fill d=M14,4H4A1,1,0,0,1,4,2H14A1,1,0,0,1,14,4Z /> <rect class=ql-fill x=3 y=6 width=12 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M13,16H5a1,1,0,0,1,0-2h8A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H5A1,1,0,0,1,5,2h8A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=2 y=6 width=14 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15,8H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,8Z /> <path class=ql-fill d=M15,12H13a1,1,0,0,1,0-2h2A1,1,0,0,1,15,12Z /> <path class=ql-fill d=M15,16H5a1,1,0,0,1,0-2H15A1,1,0,0,1,15,16Z /> <path class=ql-fill d=M15,4H5A1,1,0,0,1,5,2H15A1,1,0,0,1,15,4Z /> <rect class=ql-fill x=2 y=6 width=8 height=6 rx=1 ry=1 /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M5,8H3A1,1,0,0,1,3,6H5A1,1,0,0,1,5,8Z /> <path class=ql-fill d=M5,12H3a1,1,0,0,1,0-2H5A1,1,0,0,1,5,12Z /> <path class=ql-fill d=M13,16H3a1,1,0,0,1,0-2H13A1,1,0,0,1,13,16Z /> <path class=ql-fill d=M13,4H3A1,1,0,0,1,3,2H13A1,1,0,0,1,13,4Z /> <rect class=ql-fill x=8 y=6 width=8 height=6 rx=1 ry=1 transform="translate(24 18) rotate(-180)"/> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M11.759,2.482a2.561,2.561,0,0,0-3.53.607A7.656,7.656,0,0,0,6.8,6.2C6.109,9.188,5.275,14.677,4.15,14.927a1.545,1.545,0,0,0-1.3-.933A0.922,0.922,0,0,0,2,15.036S1.954,16,4.119,16s3.091-2.691,3.7-5.553c0.177-.826.36-1.726,0.554-2.6L8.775,6.2c0.381-1.421.807-2.521,1.306-2.676a1.014,1.014,0,0,0,1.02.56A0.966,0.966,0,0,0,11.759,2.482Z></path> <rect class=ql-fill height=1.6 rx=0.8 ry=0.8 width=5 x=5.15 y=6.2></rect> <path class=ql-fill d=M13.663,12.027a1.662,1.662,0,0,1,.266-0.276q0.193,0.069.456,0.138a2.1,2.1,0,0,0,.535.069,1.075,1.075,0,0,0,.767-0.3,1.044,1.044,0,0,0,.314-0.8,0.84,0.84,0,0,0-.238-0.619,0.8,0.8,0,0,0-.594-0.239,1.154,1.154,0,0,0-.781.3,4.607,4.607,0,0,0-.781,1q-0.091.15-.218,0.346l-0.246.38c-0.068-.288-0.137-0.582-0.212-0.885-0.459-1.847-2.494-.984-2.941-0.8-0.482.2-.353,0.647-0.094,0.529a0.869,0.869,0,0,1,1.281.585c0.217,0.751.377,1.436,0.527,2.038a5.688,5.688,0,0,1-.362.467,2.69,2.69,0,0,1-.264.271q-0.221-.08-0.471-0.147a2.029,2.029,0,0,0-.522-0.066,1.079,1.079,0,0,0-.768.3A1.058,1.058,0,0,0,9,15.131a0.82,0.82,0,0,0,.832.852,1.134,1.134,0,0,0,.787-0.3,5.11,5.11,0,0,0,.776-0.993q0.141-.219.215-0.34c0.046-.076.122-0.194,0.223-0.346a2.786,2.786,0,0,0,.918,1.726,2.582,2.582,0,0,0,2.376-.185c0.317-.181.212-0.565,0-0.494A0.807,0.807,0,0,1,14.176,15a5.159,5.159,0,0,1-.913-2.446l0,0Q13.487,12.24,13.663,12.027Z></path> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M10,4V14a1,1,0,0,1-2,0V10H3v4a1,1,0,0,1-2,0V4A1,1,0,0,1,3,4V8H8V4a1,1,0,0,1,2,0Zm6.06787,9.209H14.98975V7.59863a.54085.54085,0,0,0-.605-.60547h-.62744a1.01119,1.01119,0,0,0-.748.29688L11.645,8.56641a.5435.5435,0,0,0-.022.8584l.28613.30762a.53861.53861,0,0,0,.84717.0332l.09912-.08789a1.2137,1.2137,0,0,0,.2417-.35254h.02246s-.01123.30859-.01123.60547V13.209H12.041a.54085.54085,0,0,0-.605.60547v.43945a.54085.54085,0,0,0,.605.60547h4.02686a.54085.54085,0,0,0,.605-.60547v-.43945A.54085.54085,0,0,0,16.06787,13.209Z /> </svg>'},function(e,t){e.exports='<svg viewBox="0 0 18 18"> <path class=ql-fill d=M16.73975,13.81445v.43945a.54085.54085,0,0,1-.605.60547H11.855a.58392.58392,0,0,1-.64893-.60547V14.0127c0-2.90527,3.39941-3.42187,3.39941-4.55469a.77675.77675,0,0,0-.84717-.78125,1.17684,1.17684,0,0,0-.83594.38477c-.2749.26367-.561.374-.85791.13184l-.4292-.34082c-.30811-.24219-.38525-.51758-.1543-.81445a2.97155,2.97155,0,0,1,2.45361-1.17676,2.45393,2.45393,0,0,1,2.68408,2.40918c0,2.45312-3.1792,2.92676-3.27832,3.93848h2.79443A.54085.54085,0,0,1,16.73975,13.81445ZM9,3A.99974.99974,0,0,0,8,4V8H3V4A1,1,0,0,0,1,4V14a1,1,0,0,0,2,0V10H8v4a1,1,0,0,0,2,0V4A.99974.99974,0,0,0,9,3Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=13 y1=4 y2=4></line> <line class=ql-stroke x1=5 x2=11 y1=14 y2=14></line> <line class=ql-stroke x1=8 x2=10 y1=14 y2=4></line> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=10 width=12 x=3 y=4></rect> <circle class=ql-fill cx=6 cy=7 r=1></circle> <polyline class="ql-even ql-fill" points="5 12 5 11 7 9 8 10 11 7 13 9 13 12 5 12"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class="ql-fill ql-stroke" points="3 7 3 11 5 9 3 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=3 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="5 7 5 11 3 9 5 7"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=11 y1=7 y2=11></line> <path class="ql-even ql-stroke" d=M8.9,4.577a3.476,3.476,0,0,1,.36,4.679A3.476,3.476,0,0,1,4.577,8.9C3.185,7.5,2.035,6.4,4.217,4.217S7.5,3.185,8.9,4.577Z></path> <path class="ql-even ql-stroke" d=M13.423,9.1a3.476,3.476,0,0,0-4.679-.36,3.476,3.476,0,0,0,.36,4.679c1.392,1.392,2.5,2.542,4.679.36S14.815,10.5,13.423,9.1Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=7 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=7 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=7 x2=15 y1=14 y2=14></line> <line class="ql-stroke ql-thin" x1=2.5 x2=4.5 y1=5.5 y2=5.5></line> <path class=ql-fill d=M3.5,6A0.5,0.5,0,0,1,3,5.5V3.085l-0.276.138A0.5,0.5,0,0,1,2.053,3c-0.124-.247-0.023-0.324.224-0.447l1-.5A0.5,0.5,0,0,1,4,2.5v3A0.5,0.5,0,0,1,3.5,6Z></path> <path class="ql-stroke ql-thin" d=M4.5,10.5h-2c0-.234,1.85-1.076,1.85-2.234A0.959,0.959,0,0,0,2.5,8.156></path> <path class="ql-stroke ql-thin" d=M2.5,14.846a0.959,0.959,0,0,0,1.85-.109A0.7,0.7,0,0,0,3.75,14a0.688,0.688,0,0,0,.6-0.736,0.959,0.959,0,0,0-1.85-.109></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class=ql-stroke x1=6 x2=15 y1=4 y2=4></line> <line class=ql-stroke x1=6 x2=15 y1=9 y2=9></line> <line class=ql-stroke x1=6 x2=15 y1=14 y2=14></line> <line class=ql-stroke x1=3 x2=3 y1=4 y2=4></line> <line class=ql-stroke x1=3 x2=3 y1=9 y2=9></line> <line class=ql-stroke x1=3 x2=3 y1=14 y2=14></line> </svg>'},function(e,t){e.exports='<svg class="" viewbox="0 0 18 18"> <line class=ql-stroke x1=9 x2=15 y1=4 y2=4></line> <polyline class=ql-stroke points="3 4 4 5 6 3"></polyline> <line class=ql-stroke x1=9 x2=15 y1=14 y2=14></line> <polyline class=ql-stroke points="3 14 4 15 6 13"></polyline> <line class=ql-stroke x1=9 x2=15 y1=9 y2=9></line> <polyline class=ql-stroke points="3 9 4 10 6 8"></polyline> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,15H13.861a3.858,3.858,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.921,1.921,0,0,0,12.021,11.7a0.50013,0.50013,0,1,0,.957.291h0a0.914,0.914,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.076-1.16971,1.86982-1.93971,2.43082A1.45639,1.45639,0,0,0,12,15.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,15Z /> <path class=ql-fill d=M9.65,5.241a1,1,0,0,0-1.409.108L6,7.964,3.759,5.349A1,1,0,0,0,2.192,6.59178Q2.21541,6.6213,2.241,6.649L4.684,9.5,2.241,12.35A1,1,0,0,0,3.71,13.70722q0.02557-.02768.049-0.05722L6,11.036,8.241,13.65a1,1,0,1,0,1.567-1.24277Q9.78459,12.3777,9.759,12.35L7.316,9.5,9.759,6.651A1,1,0,0,0,9.65,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-fill d=M15.5,7H13.861a4.015,4.015,0,0,0,1.914-2.975,1.8,1.8,0,0,0-1.6-1.751A1.922,1.922,0,0,0,12.021,3.7a0.5,0.5,0,1,0,.957.291,0.917,0.917,0,0,1,1.053-.725,0.81,0.81,0,0,1,.744.762c0,1.077-1.164,1.925-1.934,2.486A1.423,1.423,0,0,0,12,7.5a0.5,0.5,0,0,0,.5.5h3A0.5,0.5,0,0,0,15.5,7Z /> <path class=ql-fill d=M9.651,5.241a1,1,0,0,0-1.41.108L6,7.964,3.759,5.349a1,1,0,1,0-1.519,1.3L4.683,9.5,2.241,12.35a1,1,0,1,0,1.519,1.3L6,11.036,8.241,13.65a1,1,0,0,0,1.519-1.3L7.317,9.5,9.759,6.651A1,1,0,0,0,9.651,5.241Z /> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <line class="ql-stroke ql-thin" x1=15.5 x2=2.5 y1=8.5 y2=9.5></line> <path class=ql-fill d=M9.007,8C6.542,7.791,6,7.519,6,6.5,6,5.792,7.283,5,9,5c1.571,0,2.765.679,2.969,1.309a1,1,0,0,0,1.9-.617C13.356,4.106,11.354,3,9,3,6.2,3,4,4.538,4,6.5a3.2,3.2,0,0,0,.5,1.843Z></path> <path class=ql-fill d=M8.984,10C11.457,10.208,12,10.479,12,11.5c0,0.708-1.283,1.5-3,1.5-1.571,0-2.765-.679-2.969-1.309a1,1,0,1,0-1.9.617C4.644,13.894,6.646,15,9,15c2.8,0,5-1.538,5-3.5a3.2,3.2,0,0,0-.5-1.843Z></path> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <path class=ql-stroke d=M5,3V9a4.012,4.012,0,0,0,4,4H9a4.012,4.012,0,0,0,4-4V3></path> <rect class=ql-fill height=1 rx=0.5 ry=0.5 width=12 x=3 y=15></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <rect class=ql-stroke height=12 width=12 x=3 y=3></rect> <rect class=ql-fill height=12 width=1 x=5 y=3></rect> <rect class=ql-fill height=12 width=1 x=12 y=3></rect> <rect class=ql-fill height=2 width=8 x=5 y=8></rect> <rect class=ql-fill height=1 width=3 x=3 y=5></rect> <rect class=ql-fill height=1 width=3 x=3 y=7></rect> <rect class=ql-fill height=1 width=3 x=3 y=10></rect> <rect class=ql-fill height=1 width=3 x=3 y=12></rect> <rect class=ql-fill height=1 width=3 x=12 y=5></rect> <rect class=ql-fill height=1 width=3 x=12 y=7></rect> <rect class=ql-fill height=1 width=3 x=12 y=10></rect> <rect class=ql-fill height=1 width=3 x=12 y=12></rect> </svg>'},function(e,t){e.exports='<svg viewbox="0 0 18 18"> <polygon class=ql-stroke points="7 11 9 13 11 11 7 11"></polygon> <polygon class=ql-stroke points="7 7 9 5 11 7 7 7"></polygon> </svg>'},function(e,t,r){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default=t.BubbleTooltip=void 0;var n=function e(t,r,n){null===t&&(t=Function.prototype);var o=Object.getOwnPropertyDescriptor(t,r);if(void 0===o){var i=Object.getPrototypeOf(t);return null===i?void 0:e(i,r,n)}if("value"in o)return o.value;var a=o.get;return void 0!==a?a.call(n):void 0},o=function(){function e(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}return function(t,r,n){return r&&e(t.prototype,r),n&&e(t,n),t}}(),i=d(r(3)),a=d(r(8)),s=r(43),l=d(s),u=r(15),c=d(r(41));function d(e){return e&&e.__esModule?e:{default:e}}function f(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function m(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}function p(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)}var h=[["bold","italic","link"],[{header:1},{header:2},"blockquote"]],g=function(e){function t(e,r){f(this,t),null!=r.modules.toolbar&&null==r.modules.toolbar.container&&(r.modules.toolbar.container=h);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.container.classList.add("ql-bubble"),n}return p(t,e),o(t,[{key:"extendToolbar",value:function(e){this.tooltip=new b(this.quill,this.options.bounds),this.tooltip.root.appendChild(e.container),this.buildButtons([].slice.call(e.container.querySelectorAll("button")),c.default),this.buildPickers([].slice.call(e.container.querySelectorAll("select")),c.default)}}]),t}(l.default);g.DEFAULTS=(0,i.default)(!0,{},l.default.DEFAULTS,{modules:{toolbar:{handlers:{link:function(e){e?this.quill.theme.tooltip.edit():this.quill.format("link",!1)}}}}});var b=function(e){function t(e,r){f(this,t);var n=m(this,(t.__proto__||Object.getPrototypeOf(t)).call(this,e,r));return n.quill.on(a.default.events.EDITOR_CHANGE,(function(e,t,r,o){if(e===a.default.events.SELECTION_CHANGE)if(null!=t&&t.length>0&&o===a.default.sources.USER){n.show(),n.root.style.left="0px",n.root.style.width="",n.root.style.width=n.root.offsetWidth+"px";var i=n.quill.getLines(t.index,t.length);if(1===i.length)n.position(n.quill.getBounds(t));else{var s=i[i.length-1],l=n.quill.getIndex(s),c=Math.min(s.length()-1,t.index+t.length-l),d=n.quill.getBounds(new u.Range(l,c));n.position(d)}}else document.activeElement!==n.textbox&&n.quill.hasFocus()&&n.hide()})),n}return p(t,e),o(t,[{key:"listen",value:function(){var e=this;n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"listen",this).call(this),this.root.querySelector(".ql-close").addEventListener("click",(function(){e.root.classList.remove("ql-editing")})),this.quill.on(a.default.events.SCROLL_OPTIMIZE,(function(){setTimeout((function(){if(!e.root.classList.contains("ql-hidden")){var t=e.quill.getSelection();null!=t&&e.position(e.quill.getBounds(t))}}),1)}))}},{key:"cancel",value:function(){this.show()}},{key:"position",value:function(e){var r=n(t.prototype.__proto__||Object.getPrototypeOf(t.prototype),"position",this).call(this,e),o=this.root.querySelector(".ql-tooltip-arrow");if(o.style.marginLeft="",0===r)return r;o.style.marginLeft=-1*r-o.offsetWidth/2+"px"}}]),t}(s.BaseTooltip);b.TEMPLATE=['<span class="ql-tooltip-arrow"></span>','<div class="ql-tooltip-editor">','<input type="text" data-formula="e=mc^2" data-link="https://quilljs.com" data-video="Embed URL">','<a class="ql-close"></a>',"</div>"].join(""),t.BubbleTooltip=b,t.default=g},function(e,t,r){e.exports=r(63)}]).default},e.exports=t()},92253:(e,t,r)=>{"use strict";r.d(t,{S:()=>K,v:()=>$});var n=r(5338),o=r(86087),i=r(85072),a=r.n(i),s=r(64284),l=r.n(s),u=r(77659),c=r.n(u),d=r(44868),f=r.n(d),m=r(10540),p=r.n(m),h=r(98658),g={};h.A&&h.A.locals&&(g.locals=h.A.locals);var b,y=0,v={attributes:{id:"sureforms-editor-styles"}};v.setAttributes=f(),v.insert=c().bind(null,"head"),v.domAPI=l(),v.insertStyleElement=p(),g.use=function(e){return v.options=e||{},y++||(b=a()(h.A,v)),g},g.unuse=function(){y>0&&! --y&&(b(),b=null)};const D=g;var _=r(47143);const x=window.wp.blocks;var k=r(56427),E=r(27723),w=r(7448),C=r(10900);function M(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return A(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?A(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.")}()}function A(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const N=function(e){var t=e.block,r=e.id,n=e.create,i=e.blockInsertionPoint,a=e.getSelectedBlockClientId,s=e.getSelectedBlockAllowedBlocks,l=e.getBlockRootClientId,u=e.defaultAllowedQuickSidebarBlocks,c=e.updateDefaultAllowedQuickSidebarBlocks,d=e.saveOptionToDatabase,f=M((0,o.useState)(!1),2),m=f[0],p=f[1],h=(0,o.useRef)(!1),g=(0,_.useDispatch)("core/notices").createNotice,b=M((0,o.useState)(0),2),y=b[0],v=b[1],D="quick-action-sidebar/remove-notices-flow/removed-notice/".concat(y),x=(0,C.Ay)(w.remove),A=function(){p(!0)},N=function(){p(!1)},j=React.createElement(k.Popover,{placement:"right",key:r,className:"srfm-ee-quick-access__sidebar--blocks--block--icon--name"},React.createElement("div",{className:"block-title"},React.createElement("div",{onClick:function(){var e,r;r=function(e,t){return e.filter((function(e){return e!==t}))}(u,(e=t).name),c(r),d(r),v((function(e){return e+1})),g("success",(0,E.sprintf)((0,E.__)("%s Removed from Quick Action Bar.","sureforms"),e.title),{type:"snackbar",id:D,isDismissible:!0}),setTimeout((function(){(0,_.dispatch)("core/notices").removeNotice(D)}),1e3)},className:"srfm-ee-quick-access__sidebar--blocks--block--name"},x),t.title&&t.title)),O=t.name.split("/"),T=O[0],S=O[1];return React.createElement("div",{id:"draggable-box__".concat(T,"--").concat(S)},React.createElement(k.Draggable,{elementId:"draggable-box__".concat(T,"--").concat(S),__experimentalTransferDataType:"wp-blocks",transferData:{type:"inserter",blocks:[n(t.name)]}},(function(e){var o,u=e.onDraggableStart,c=e.onDraggableEnd;return React.createElement("div",{className:"srfm-ee-quick-access__sidebar--blocks--block",key:r,onClick:function(e){!function(e,t){var r,o=l||"",u=i;s&&s.includes(t)&&(u=(0,_.select)("core/block-editor").getSelectedBlock().innerBlocks.length,o=a),null!=e&&null!==(r=e.target)&&void 0!==r&&null!==(r=r.classList)&&void 0!==r&&r.contains("block-title-svg")?h.current=!1:(0,_.dispatch)("core/block-editor").insertBlocks(n(t.name),u,o)}(e,t)},draggable:!0,onDragStart:function(e){h.current=!0,u&&u(e)},onDragEnd:function(e){h.current=!1,c&&c(e)},onMouseOver:A,onMouseOut:N,onFocus:A,onBlur:N},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--blocks--block--icon"},React.createElement(k.Icon,{icon:null!==(o=t.icon)&&void 0!==o&&o.src?t.icon.src:t.icon})),m&&j)})))};var j=r(97053);function O(){return O=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},O.apply(null,arguments)}function T(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return S(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?S(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.")}()}function S(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const I=function(e){var t=e.initialItems,r=e.updateDefaultAllowedQuickSidebarBlocks,n=e.saveOptionToDatabase,i=T((0,o.useState)(t),2),a=i[0],s=i[1];return React.createElement(j.JY,{onDragEnd:function(e){if(e.destination){var t=Array.from(a),o=T(t.splice(e.source.index,1),1)[0];t.splice(e.destination.index,0,o);var i=t.map((function(e){return e.name}));n(i),s(t),r(i)}}},React.createElement(j.gL,{droppableId:"droppable"},(function(e){return React.createElement("div",O({className:"srfm-ee-quick-access__sidebar--blocks"},e.droppableProps,{ref:e.innerRef}),a.map((function(e,t){return React.createElement(j.sx,{key:e.id,draggableId:e.id,index:t},(function(t){var r,n,o;return React.createElement("div",O({className:"srfm-ee-quick-access__sidebar--blocks--block",ref:t.innerRef},t.draggableProps,t.dragHandleProps),React.createElement("div",{className:"srfm-ee-quick-access__sidebar-icon__".concat(null==e||null===(r=e.name)||void 0===r?void 0:r.split("/")[0]," srfm-ee-quick-access__sidebar-icon__").concat(null==e||null===(n=e.name)||void 0===n?void 0:n.split("/")[0],"--").concat(null==e||null===(o=e.name)||void 0===o?void 0:o.split("/")[1]," srfm-ee-quick-access__sidebar--blocks--block--icon")},React.createElement(k.Icon,{icon:e.icon.src?e.icon.src:e.icon})))}))})),e.placeholder)})))},F=function(e){var t=e.defaultAllowedQuickSidebarBlocks,r=e.updateDefaultAllowedQuickSidebarBlocks,n=e.saveOptionToDatabase,o=e.enableRearrange,i=(0,x.getBlockTypes)(),a=(0,_.useSelect)((function(e){var t=e("core/block-editor"),r=t.getBlockInsertionPoint().index,n=t.getSelectedBlockClientId();return{blockInsertionPoint:r,getBlockRootClientId:t.getBlockRootClientId(c),getSelectedBlockClientId:n,getSelectedBlockAllowedBlocks:t.getAllowedBlocks(n)||[]}})),s=a.blockInsertionPoint,l=a.getBlockRootClientId,u=a.getSelectedBlockAllowedBlocks,c=a.getSelectedBlockClientId,d=i.filter((function(e){return t.includes(e.name)})),f=function(e){return(0,x.createBlock)(e)};d.forEach((function(e,t){e.id="".concat(t+1)}));var m=t.filter((function(e){return null!=e})).map((function(e){return d.find((function(t){return t.name===e}))})).filter((function(e){return void 0!==e}));return React.createElement(React.Fragment,null,!o&&m.map((function(e,o){return React.createElement(N,{key:o,id:o,block:e,create:f,blockInsertionPoint:s,getBlockRootClientId:l,getSelectedBlockClientId:c,getSelectedBlockAllowedBlocks:u,defaultAllowedQuickSidebarBlocks:t,updateDefaultAllowedQuickSidebarBlocks:r,saveOptionToDatabase:n})})),o&&React.createElement(I,{initialItems:m,updateDefaultAllowedQuickSidebarBlocks:r,saveOptionToDatabase:n}))};function L(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||R(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.")}()}function R(e,t){if(e){if("string"==typeof e)return P(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?P(e,t):void 0}}function P(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const B=function(e){var t=e.closePopover,r=e.defaultAllowedQuickSidebarBlocks,n=e.saveOptionToDatabase,i=L((0,o.useState)(""),2),a=i[0],s=i[1],l=(0,_.useDispatch)("core/notices").createNotice,u=L((0,o.useState)(0),2),c=u[0],d=u[1],f="quick-action-sidebar/add-notices-flow/added-notice/".concat(c),m=(0,x.getBlockTypes)(),p=function(){t(!1)},h=m.filter((function(e){var t;return null===(t=e.title.toLowerCase())||void 0===t?void 0:t.includes(a.toLowerCase())})),g=[],b=[];h.forEach((function(e){null!=r&&r.includes(e.name)?g.push(e):"srfm/form"!==e.name&&b.push(e)}));var y=function(e){var t;return(null==e||null===(t=e.name)||void 0===t?void 0:t.includes("srfm/"))&&!e.parent},v=function(e){var t;return null==e||null===(t=e.title)||void 0===t||null===(t=t.toLowerCase())||void 0===t?void 0:t.includes(a.toLowerCase())};return React.createElement(k.Popover,{onClose:p,placement:"right-start",className:"srfm-quick-action-block-popover"},React.createElement(k.SearchControl,{value:a,onChange:function(e){return s(e)},label:"Search Blocks",className:"srfm-quick-action-block-popover-search"}),React.createElement("div",{className:"srfm-block-container"},b.some((function(e){return y(e)&&v(e)}))&&React.createElement("div",{className:"block-editor-inserter__panel-header srfm-quick-action-block-popover-header__add-to-quick-action-bar"},React.createElement("h2",{className:"block-editor-inserter__panel-title"},(0,E.__)("Add to Quick Action Bar","sureforms"))),b.map((function(e,t){var o;return y(e)&&React.createElement("div",{key:t,className:"srfm-block-wrap",onClick:function(){return o=e,i=[].concat(function(e){if(Array.isArray(e))return P(e)}(t=r)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(t)||R(t)||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.")}(),[o.name]),n(i),d((function(e){return e+1})),l("success",(0,E.sprintf)((0,E.__)("%s Added to Quick Action Bar.","sureforms"),o.title),{type:"snackbar",id:f,isDismissible:!0}),setTimeout((function(){(0,_.dispatch)("core/notices").removeNotice(f)}),1e3),void p();var t,o,i},style:{cursor:"pointer"}},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--blocks--block--icon"},React.createElement(k.Icon,{icon:null!==(o=e.icon)&&void 0!==o&&o.src?e.icon.src:e.icon})),React.createElement("div",{className:"block-title"},e.title))})),g.some((function(e){return y(e)&&v(e)}))&&React.createElement("div",{className:"block-editor-inserter__panel-header srfm-quick-action-block-popover-header__already-present-in-quick-action-bar"},React.createElement("h2",{className:"block-editor-inserter__panel-title"},(0,E.__)("Already Present in Quick Action Bar","sureforms"))),g.map((function(e,t){var r;return y(e)&&React.createElement("div",{key:t,className:"srfm-block-wrap"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--blocks--block--icon"},React.createElement(k.Icon,{icon:null!==(r=e.icon)&&void 0!==r&&r.src?e.icon.src:e.icon})),React.createElement("div",{className:"block-title"},e.title))})),!b.some((function(e){return y(e)&&v(e)}))&&!g.some((function(e){return y(e)&&e.title.toLowerCase().includes(a.toLowerCase())}))&&React.createElement("div",{className:"block-editor-inserter__no-results"},React.createElement("p",null,(0,E.__)("No results found.","sureforms")))))};var z=r(1455),q=r.n(z),V=r(4759);function U(e){return U="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},U(e)}function H(){H=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=_(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var u=c(t,r,n);if("normal"===u.type){if(o=n.done?4:2,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=4,n.method="throw",n.arg=u.arg)}}}(t,n,new E(o||[])),!0),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d={};function f(){}function m(){}function p(){}var h={};l(h,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(w([])));b&&b!==r&&n.call(b,i)&&(h=b);var y=p.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==U(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function _(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function x(e){this.tryEntries.push(e)}function k(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function E(e){this.tryEntries=[[-1]],e.forEach(x,this),this.reset(!0)}function w(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(U(t)+" is not iterable")}return m.prototype=p,l(y,"constructor",p),l(p,"constructor",m),m.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},v(D.prototype),l(D.prototype,a,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new D(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=w,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],u=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<u)return n(u),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),k(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:w(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function Y(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}const Q=function(){var e,t=(e=H().mark((function e(t){var r,n,o,i,a,s;return H().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.url,n=t.action,o=t.data,(0,V._C)(o)){e.next=3;break}return e.abrupt("return",Promise.reject(new Error((0,E.__)("data object is empty","sureforms"))));case 3:for(a in(i=new window.FormData).append("action",n),o)s=o[a],i.append(a,s);return e.next=8,q()({url:r,method:"POST",body:i});case 8:return e.abrupt("return",e.sent);case 9:case"end":return e.stop()}}),e)})),function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){Y(i,n,o,a,s,"next",e)}function s(e){Y(i,n,o,a,s,"throw",e)}a(void 0)}))});return function(e){return t.apply(this,arguments)}}();function W(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return G(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?G(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.")}()}function G(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Z=function(){var e=W((0,o.useState)(srfm_quick_sidebar_blocks.allowed_blocks),2),t=e[0],r=e[1],n=W((0,o.useState)(!1),2),i=n[0],a=n[1],s=W((0,o.useState)(!1),2),l=s[0],u=s[1],c=W((0,o.useState)(null),2),d=c[0],f=c[1],m=W((0,o.useState)(0),2),p=m[0],h=m[1],g=function(e){return f(e)},b=function(){return f(!1)};(0,o.useEffect)((function(){var e=function(e){var t;!document.querySelector(".srfm-ee-quick-access")||document.querySelector(".srfm-ee-quick-access").contains(e.target)||null!==(t=document.querySelector(".popover"))&&void 0!==t&&t.contains(e.target)||(a(!1),u(!1),h(0))};return document.body.addEventListener("click",e),function(){document.body.removeEventListener("click",e)}}),[]),(0,o.useLayoutEffect)((function(){return D.use(),function(){D.unuse()}}),[]);var y=function(){a(!0),u(!1)},v=function(){a(!1),u(!1)},_=function(){u(!0)};function x(e){r(e)}var w=function(e){x(e);var t={security:srfm_quick_sidebar_blocks.srfm_ajax_nonce,defaultAllowedQuickSidebarBlocks:JSON.stringify(e)};Q({url:srfm_quick_sidebar_blocks.srfm_ajax_url,action:"srfm_global_update_allowed_block",data:t})};return React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-ee-quick-access"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--blocks"},React.createElement(F,{defaultAllowedQuickSidebarBlocks:t,updateDefaultAllowedQuickSidebarBlocks:x,saveOptionToDatabase:w,enableRearrange:l}))),React.createElement("div",{className:"srfm-ee-quick-access__sidebar--tabs-container"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--tabs"},["add","sort"].map((function(e,r){return React.createElement("div",{key:r,className:"tab ".concat(p===r?"active":""),onClick:function(){return function(e){h(e)}(r)}},"add"===e&&React.createElement("div",{className:"srfm-ee-quick-access__sidebar--actions"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--actions--plus"},React.createElement("div",{className:"srfm-quick-action-sidebar-wrap"},React.createElement("div",{id:"plus-icon",onClick:y,onMouseOver:function(){return g("add")},onMouseOut:b,onFocus:function(){return g("add")},onBlur:b},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",fill:"#fff",focusable:"false"},React.createElement("path",{d:"M18 11.2h-5.2V6h-1.6v5.2H6v1.6h5.2V18h1.6v-5.2H18z"}))),i&&React.createElement(B,{closePopover:v,updateDefaultAllowedQuickSidebarBlocks:x,defaultAllowedQuickSidebarBlocks:t,saveOptionToDatabase:w}),"add"===d&&React.createElement(k.Popover,{placement:"right",className:"srfm-ee-quick-access__sidebar--blocks--block--icon--name"},React.createElement("div",{className:"block-title"},(0,E.__)("Add blocks to Quick Action Bar","sureforms")))))),"sort"===e&&React.createElement("div",{className:"srfm-ee-quick-access__sidebar--actions"},React.createElement("div",{className:"srfm-ee-quick-access__sidebar--actions--plus rearrange"},React.createElement("div",{className:"srfm-quick-action-sidebar-wrap"},React.createElement("div",{id:"rearrange-icon",onClick:_,onMouseOver:function(){return g("sort")},onMouseOut:b,onFocus:function(){return g("sort")},onBlur:b},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24","aria-hidden":"true",fill:"#fff",focusable:"false"},React.createElement("path",{d:"m19 7-3-3-8.5 8.5-1 4 4-1L19 7Zm-7 11.5H5V20h7v-1.5Z"})),"sort"===d&&React.createElement(k.Popover,{placement:"right",className:"srfm-ee-quick-access__sidebar--blocks--block--icon--name"},React.createElement("div",{className:"block-title"},(0,E.__)("Re-arrange block inside Quick Action Bar","sureforms"))))))))}))))))};var $=function(e){var t=new URL(e);if("/wp-admin/site-editor.php"===t.pathname)if("edit"===t.searchParams.get("canvas"))X();else{var r=document.querySelector(".srfm-ee-quick-access");r&&r.parentElement.remove()}},K=function(){var e=setInterval((function(){var t=document.querySelector(".interface-interface-skeleton__body");if(t)if(document.querySelector(".srfm-ee-quick-access-container"))clearInterval(e);else{clearInterval(e);var r=t.querySelector(".srfm-ee-quick-access");r||((r=document.createElement("div")).classList.add("srfm-ee-quick-access-container"),t.insertBefore(r,t.firstChild)),(0,n.H)(r).render(React.createElement(Z,null))}}),100)},X=function(){var e=setInterval((function(){var t=document.querySelector(".edit-site-editor__interface-skeleton");t&&(t.classList.contains("is-loading")||(clearInterval(e),K()))}),100)}},92471:function(e,t,r){"use strict";var n=this&&this.__importDefault||function(e){return e&&e.__esModule?e:{default:e}};Object.defineProperty(t,"__esModule",{value:!0}),t.default=function(e){if("string"!=typeof e)throw new TypeError("First argument must be a string");if(!e)return[];var t=e.match(a),r=t?t[1]:void 0;return(0,i.formatDOM)((0,o.default)(e),null,r)};var o=n(r(65496)),i=r(67731),a=/<(![a-zA-Z\s]+)>/},93832:e=>{"use strict";e.exports=window.wp.url},94456:(e,t,r)=>{"use strict";function n(e,t){return n=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},n(e,t)}r.d(t,{A:()=>n})},95950:(e,t,r)=>{var n=r(70695),o=r(88984),i=r(64894);e.exports=function(e){return i(e)?n(e):o(e)}},96338:(e,t,r)=>{"use strict";r(41458),r(387)},96811:(e,t)=>{t.SAME=0,t.CAMELCASE=1,t.possibleStandardNames={accept:0,acceptCharset:1,"accept-charset":"acceptCharset",accessKey:1,action:0,allowFullScreen:1,alt:0,as:0,async:0,autoCapitalize:1,autoComplete:1,autoCorrect:1,autoFocus:1,autoPlay:1,autoSave:1,capture:0,cellPadding:1,cellSpacing:1,challenge:0,charSet:1,checked:0,children:0,cite:0,class:"className",classID:1,className:1,cols:0,colSpan:1,content:0,contentEditable:1,contextMenu:1,controls:0,controlsList:1,coords:0,crossOrigin:1,dangerouslySetInnerHTML:1,data:0,dateTime:1,default:0,defaultChecked:1,defaultValue:1,defer:0,dir:0,disabled:0,disablePictureInPicture:1,disableRemotePlayback:1,download:0,draggable:0,encType:1,enterKeyHint:1,for:"htmlFor",form:0,formMethod:1,formAction:1,formEncType:1,formNoValidate:1,formTarget:1,frameBorder:1,headers:0,height:0,hidden:0,high:0,href:0,hrefLang:1,htmlFor:1,httpEquiv:1,"http-equiv":"httpEquiv",icon:0,id:0,innerHTML:1,inputMode:1,integrity:0,is:0,itemID:1,itemProp:1,itemRef:1,itemScope:1,itemType:1,keyParams:1,keyType:1,kind:0,label:0,lang:0,list:0,loop:0,low:0,manifest:0,marginWidth:1,marginHeight:1,max:0,maxLength:1,media:0,mediaGroup:1,method:0,min:0,minLength:1,multiple:0,muted:0,name:0,noModule:1,nonce:0,noValidate:1,open:0,optimum:0,pattern:0,placeholder:0,playsInline:1,poster:0,preload:0,profile:0,radioGroup:1,readOnly:1,referrerPolicy:1,rel:0,required:0,reversed:0,role:0,rows:0,rowSpan:1,sandbox:0,scope:0,scoped:0,scrolling:0,seamless:0,selected:0,shape:0,size:0,sizes:0,span:0,spellCheck:1,src:0,srcDoc:1,srcLang:1,srcSet:1,start:0,step:0,style:0,summary:0,tabIndex:1,target:0,title:0,type:0,useMap:1,value:0,width:0,wmode:0,wrap:0,about:0,accentHeight:1,"accent-height":"accentHeight",accumulate:0,additive:0,alignmentBaseline:1,"alignment-baseline":"alignmentBaseline",allowReorder:1,alphabetic:0,amplitude:0,arabicForm:1,"arabic-form":"arabicForm",ascent:0,attributeName:1,attributeType:1,autoReverse:1,azimuth:0,baseFrequency:1,baselineShift:1,"baseline-shift":"baselineShift",baseProfile:1,bbox:0,begin:0,bias:0,by:0,calcMode:1,capHeight:1,"cap-height":"capHeight",clip:0,clipPath:1,"clip-path":"clipPath",clipPathUnits:1,clipRule:1,"clip-rule":"clipRule",color:0,colorInterpolation:1,"color-interpolation":"colorInterpolation",colorInterpolationFilters:1,"color-interpolation-filters":"colorInterpolationFilters",colorProfile:1,"color-profile":"colorProfile",colorRendering:1,"color-rendering":"colorRendering",contentScriptType:1,contentStyleType:1,cursor:0,cx:0,cy:0,d:0,datatype:0,decelerate:0,descent:0,diffuseConstant:1,direction:0,display:0,divisor:0,dominantBaseline:1,"dominant-baseline":"dominantBaseline",dur:0,dx:0,dy:0,edgeMode:1,elevation:0,enableBackground:1,"enable-background":"enableBackground",end:0,exponent:0,externalResourcesRequired:1,fill:0,fillOpacity:1,"fill-opacity":"fillOpacity",fillRule:1,"fill-rule":"fillRule",filter:0,filterRes:1,filterUnits:1,floodOpacity:1,"flood-opacity":"floodOpacity",floodColor:1,"flood-color":"floodColor",focusable:0,fontFamily:1,"font-family":"fontFamily",fontSize:1,"font-size":"fontSize",fontSizeAdjust:1,"font-size-adjust":"fontSizeAdjust",fontStretch:1,"font-stretch":"fontStretch",fontStyle:1,"font-style":"fontStyle",fontVariant:1,"font-variant":"fontVariant",fontWeight:1,"font-weight":"fontWeight",format:0,from:0,fx:0,fy:0,g1:0,g2:0,glyphName:1,"glyph-name":"glyphName",glyphOrientationHorizontal:1,"glyph-orientation-horizontal":"glyphOrientationHorizontal",glyphOrientationVertical:1,"glyph-orientation-vertical":"glyphOrientationVertical",glyphRef:1,gradientTransform:1,gradientUnits:1,hanging:0,horizAdvX:1,"horiz-adv-x":"horizAdvX",horizOriginX:1,"horiz-origin-x":"horizOriginX",ideographic:0,imageRendering:1,"image-rendering":"imageRendering",in2:0,in:0,inlist:0,intercept:0,k1:0,k2:0,k3:0,k4:0,k:0,kernelMatrix:1,kernelUnitLength:1,kerning:0,keyPoints:1,keySplines:1,keyTimes:1,lengthAdjust:1,letterSpacing:1,"letter-spacing":"letterSpacing",lightingColor:1,"lighting-color":"lightingColor",limitingConeAngle:1,local:0,markerEnd:1,"marker-end":"markerEnd",markerHeight:1,markerMid:1,"marker-mid":"markerMid",markerStart:1,"marker-start":"markerStart",markerUnits:1,markerWidth:1,mask:0,maskContentUnits:1,maskUnits:1,mathematical:0,mode:0,numOctaves:1,offset:0,opacity:0,operator:0,order:0,orient:0,orientation:0,origin:0,overflow:0,overlinePosition:1,"overline-position":"overlinePosition",overlineThickness:1,"overline-thickness":"overlineThickness",paintOrder:1,"paint-order":"paintOrder",panose1:0,"panose-1":"panose1",pathLength:1,patternContentUnits:1,patternTransform:1,patternUnits:1,pointerEvents:1,"pointer-events":"pointerEvents",points:0,pointsAtX:1,pointsAtY:1,pointsAtZ:1,prefix:0,preserveAlpha:1,preserveAspectRatio:1,primitiveUnits:1,property:0,r:0,radius:0,refX:1,refY:1,renderingIntent:1,"rendering-intent":"renderingIntent",repeatCount:1,repeatDur:1,requiredExtensions:1,requiredFeatures:1,resource:0,restart:0,result:0,results:0,rotate:0,rx:0,ry:0,scale:0,security:0,seed:0,shapeRendering:1,"shape-rendering":"shapeRendering",slope:0,spacing:0,specularConstant:1,specularExponent:1,speed:0,spreadMethod:1,startOffset:1,stdDeviation:1,stemh:0,stemv:0,stitchTiles:1,stopColor:1,"stop-color":"stopColor",stopOpacity:1,"stop-opacity":"stopOpacity",strikethroughPosition:1,"strikethrough-position":"strikethroughPosition",strikethroughThickness:1,"strikethrough-thickness":"strikethroughThickness",string:0,stroke:0,strokeDasharray:1,"stroke-dasharray":"strokeDasharray",strokeDashoffset:1,"stroke-dashoffset":"strokeDashoffset",strokeLinecap:1,"stroke-linecap":"strokeLinecap",strokeLinejoin:1,"stroke-linejoin":"strokeLinejoin",strokeMiterlimit:1,"stroke-miterlimit":"strokeMiterlimit",strokeWidth:1,"stroke-width":"strokeWidth",strokeOpacity:1,"stroke-opacity":"strokeOpacity",suppressContentEditableWarning:1,suppressHydrationWarning:1,surfaceScale:1,systemLanguage:1,tableValues:1,targetX:1,targetY:1,textAnchor:1,"text-anchor":"textAnchor",textDecoration:1,"text-decoration":"textDecoration",textLength:1,textRendering:1,"text-rendering":"textRendering",to:0,transform:0,typeof:0,u1:0,u2:0,underlinePosition:1,"underline-position":"underlinePosition",underlineThickness:1,"underline-thickness":"underlineThickness",unicode:0,unicodeBidi:1,"unicode-bidi":"unicodeBidi",unicodeRange:1,"unicode-range":"unicodeRange",unitsPerEm:1,"units-per-em":"unitsPerEm",unselectable:0,vAlphabetic:1,"v-alphabetic":"vAlphabetic",values:0,vectorEffect:1,"vector-effect":"vectorEffect",version:0,vertAdvY:1,"vert-adv-y":"vertAdvY",vertOriginX:1,"vert-origin-x":"vertOriginX",vertOriginY:1,"vert-origin-y":"vertOriginY",vHanging:1,"v-hanging":"vHanging",vIdeographic:1,"v-ideographic":"vIdeographic",viewBox:1,viewTarget:1,visibility:0,vMathematical:1,"v-mathematical":"vMathematical",vocab:0,widths:0,wordSpacing:1,"word-spacing":"wordSpacing",writingMode:1,"writing-mode":"writingMode",x1:0,x2:0,x:0,xChannelSelector:1,xHeight:1,"x-height":"xHeight",xlinkActuate:1,"xlink:actuate":"xlinkActuate",xlinkArcrole:1,"xlink:arcrole":"xlinkArcrole",xlinkHref:1,"xlink:href":"xlinkHref",xlinkRole:1,"xlink:role":"xlinkRole",xlinkShow:1,"xlink:show":"xlinkShow",xlinkTitle:1,"xlink:title":"xlinkTitle",xlinkType:1,"xlink:type":"xlinkType",xmlBase:1,"xml:base":"xmlBase",xmlLang:1,"xml:lang":"xmlLang",xmlns:0,"xml:space":"xmlSpace",xmlnsXlink:1,"xmlns:xlink":"xmlnsXlink",xmlSpace:1,y1:0,y2:0,y:0,yChannelSelector:1,z:0,zoomAndPan:1}},97053:(e,t,r)=>{"use strict";r.d(t,{JY:()=>Kr,gL:()=>On,sx:()=>Mn});var n=r(51609),o=r.n(n),i=r(41657),a=r(49990),s=r(82960),l=r(49924),u=r(32737),c=r(86795),d=r(41811),f=r(10629),m=r(75795),p=r.n(m);function h(e,t){}function g(){}function b(e,t,r){var n=t.map((function(t){var n,o,i=(n=r,o=t.options,(0,a.A)({},n,{},o));return e.addEventListener(t.eventName,t.fn,i),function(){e.removeEventListener(t.eventName,t.fn,i)}}));return function(){n.forEach((function(e){e()}))}}h.bind(null,"warn"),h.bind(null,"error");var y=!0,v="Invariant failed";function D(e){this.message=e}function _(e,t){if(!e)throw new D(y?v:v+": "+(t||""))}D.prototype.toString=function(){return this.message};var x=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).callbacks=null,t.unbind=g,t.onWindowError=function(e){var r=t.getCallbacks();r.isDragging()&&r.tryAbort(),e.error instanceof D&&e.preventDefault()},t.getCallbacks=function(){if(!t.callbacks)throw new Error("Unable to find AppCallbacks in <ErrorBoundary/>");return t.callbacks},t.setCallbacks=function(e){t.callbacks=e},t}(0,i.A)(t,e);var r=t.prototype;return r.componentDidMount=function(){this.unbind=b(window,[{eventName:"error",fn:this.onWindowError}])},r.componentDidCatch=function(e){if(!(e instanceof D))throw e;this.setState({})},r.componentWillUnmount=function(){this.unbind()},r.render=function(){return this.props.children(this.setCallbacks)},t}(o().Component),k=function(e){return e+1},E=function(e,t){var r=e.droppableId===t.droppableId,n=k(e.index),o=k(t.index);return r?"\n      You have moved the item from position "+n+"\n      to position "+o+"\n    ":"\n    You have moved the item from position "+n+"\n    in list "+e.droppableId+"\n    to list "+t.droppableId+"\n    in position "+o+"\n  "},w=function(e,t,r){return t.droppableId===r.droppableId?"\n      The item "+e+"\n      has been combined with "+r.draggableId:"\n      The item "+e+"\n      in list "+t.droppableId+"\n      has been combined with "+r.draggableId+"\n      in list "+r.droppableId+"\n    "},C=function(e){return"\n  The item has returned to its starting position\n  of "+k(e.index)+"\n"},M={dragHandleUsageInstructions:"\n  Press space bar to start a drag.\n  When dragging you can use the arrow keys to move the item around and escape to cancel.\n  Some screen readers may require you to be in focus mode or to use your pass through key\n",onDragStart:function(e){return"\n  You have lifted an item in position "+k(e.source.index)+"\n"},onDragUpdate:function(e){var t=e.destination;if(t)return E(e.source,t);var r=e.combine;return r?w(e.draggableId,e.source,r):"You are over an area that cannot be dropped on"},onDragEnd:function(e){if("CANCEL"===e.reason)return"\n      Movement cancelled.\n      "+C(e.source)+"\n    ";var t=e.destination,r=e.combine;return t?"\n      You have dropped the item.\n      "+E(e.source,t)+"\n    ":r?"\n      You have dropped the item.\n      "+w(e.draggableId,e.source,r)+"\n    ":"\n    The item has been dropped while not over a drop area.\n    "+C(e.source)+"\n  "}},A={x:0,y:0},N=function(e,t){return{x:e.x+t.x,y:e.y+t.y}},j=function(e,t){return{x:e.x-t.x,y:e.y-t.y}},O=function(e,t){return e.x===t.x&&e.y===t.y},T=function(e){return{x:0!==e.x?-e.x:0,y:0!==e.y?-e.y:0}},S=function(e,t,r){var n;return void 0===r&&(r=0),(n={})[e]=t,n["x"===e?"y":"x"]=r,n},I=function(e,t){return Math.sqrt(Math.pow(t.x-e.x,2)+Math.pow(t.y-e.y,2))},F=function(e,t){return Math.min.apply(Math,t.map((function(t){return I(e,t)})))},L=function(e){return function(t){return{x:e(t.x),y:e(t.y)}}},R=function(e,t){return{top:e.top+t.y,left:e.left+t.x,bottom:e.bottom+t.y,right:e.right+t.x}},P=function(e){return[{x:e.left,y:e.top},{x:e.right,y:e.top},{x:e.left,y:e.bottom},{x:e.right,y:e.bottom}]},B=function(e,t){return t&&t.shouldClipSubject?function(e,t){var r=(0,c.l)({top:Math.max(t.top,e.top),right:Math.min(t.right,e.right),bottom:Math.min(t.bottom,e.bottom),left:Math.max(t.left,e.left)});return r.width<=0||r.height<=0?null:r}(t.pageMarginBox,e):(0,c.l)(e)},z=function(e){var t=e.page,r=e.withPlaceholder,n=e.axis,o=e.frame,i=function(e,t){return t?R(e,t.scroll.diff.displacement):e}(t.marginBox,o),s=function(e,t,r){var n;return r&&r.increasedBy?(0,a.A)({},e,((n={})[t.end]=e[t.end]+r.increasedBy[t.line],n)):e}(i,n,r);return{page:t,withPlaceholder:r,active:B(s,o)}},q=function(e,t){e.frame||_(!1);var r=e.frame,n=j(t,r.scroll.initial),o=T(n),i=(0,a.A)({},r,{scroll:{initial:r.scroll.initial,current:t,diff:{value:n,displacement:o},max:r.scroll.max}}),s=z({page:e.subject.page,withPlaceholder:e.subject.withPlaceholder,axis:e.axis,frame:i});return(0,a.A)({},e,{frame:i,subject:s})};function V(e){return Object.values?Object.values(e):Object.keys(e).map((function(t){return e[t]}))}function U(e,t){if(e.findIndex)return e.findIndex(t);for(var r=0;r<e.length;r++)if(t(e[r]))return r;return-1}function H(e,t){if(e.find)return e.find(t);var r=U(e,t);return-1!==r?e[r]:void 0}function Y(e){return Array.prototype.slice.call(e)}var Q=(0,d.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),W=(0,d.A)((function(e){return e.reduce((function(e,t){return e[t.descriptor.id]=t,e}),{})})),G=(0,d.A)((function(e){return V(e)})),Z=(0,d.A)((function(e){return V(e)})),$=(0,d.A)((function(e,t){var r=Z(t).filter((function(t){return e===t.descriptor.droppableId})).sort((function(e,t){return e.descriptor.index-t.descriptor.index}));return r}));function K(e){return e.at&&"REORDER"===e.at.type?e.at.destination:null}function X(e){return e.at&&"COMBINE"===e.at.type?e.at.combine:null}var J=(0,d.A)((function(e,t){return t.filter((function(t){return t.descriptor.id!==e.descriptor.id}))})),ee=function(e,t){return e.descriptor.droppableId===t.descriptor.id},te={point:A,value:0},re={invisible:{},visible:{},all:[]},ne={displaced:re,displacedBy:te,at:null},oe=function(e,t){return function(r){return e<=r&&r<=t}},ie=function(e){var t=oe(e.top,e.bottom),r=oe(e.left,e.right);return function(n){if(t(n.top)&&t(n.bottom)&&r(n.left)&&r(n.right))return!0;var o=t(n.top)||t(n.bottom),i=r(n.left)||r(n.right);if(o&&i)return!0;var a=n.top<e.top&&n.bottom>e.bottom,s=n.left<e.left&&n.right>e.right;return!(!a||!s)||a&&i||s&&o}},ae=function(e){var t=oe(e.top,e.bottom),r=oe(e.left,e.right);return function(e){return t(e.top)&&t(e.bottom)&&r(e.left)&&r(e.right)}},se={direction:"vertical",line:"y",crossAxisLine:"x",start:"top",end:"bottom",size:"height",crossAxisStart:"left",crossAxisEnd:"right",crossAxisSize:"width"},le={direction:"horizontal",line:"x",crossAxisLine:"y",start:"left",end:"right",size:"width",crossAxisStart:"top",crossAxisEnd:"bottom",crossAxisSize:"height"},ue=function(e){var t=e.target,r=e.destination,n=e.viewport,o=e.withDroppableDisplacement,i=e.isVisibleThroughFrameFn,a=o?function(e,t){var r=t.frame?t.frame.scroll.diff.displacement:A;return R(e,r)}(t,r):t;return function(e,t,r){return!!t.subject.active&&r(t.subject.active)(e)}(a,r,i)&&function(e,t,r){return r(t)(e)}(a,n,i)},ce=function(e){return ue((0,a.A)({},e,{isVisibleThroughFrameFn:ae}))};function de(e){var t=e.afterDragging,r=e.destination,n=e.displacedBy,o=e.viewport,i=e.forceShouldAnimate,s=e.last;return t.reduce((function(e,t){var l,u=function(e,t){var r=e.page.marginBox,n={top:t.point.y,right:0,bottom:0,left:t.point.x};return(0,c.l)((0,c.fT)(r,n))}(t,n),d=t.descriptor.id;if(e.all.push(d),l={target:u,destination:r,viewport:o,withDroppableDisplacement:!0},!ue((0,a.A)({},l,{isVisibleThroughFrameFn:ie})))return e.invisible[t.descriptor.id]=!0,e;var f=function(e,t,r){if("boolean"==typeof r)return r;if(!t)return!0;var n=t.invisible,o=t.visible;if(n[e])return!1;var i=o[e];return!i||i.shouldAnimate}(d,s,i),m={draggableId:d,shouldAnimate:f};return e.visible[d]=m,e}),{all:[],visible:{},invisible:{}})}function fe(e){var t=e.insideDestination,r=e.inHomeList,n=e.displacedBy,o=e.destination,i=function(e,t){if(!e.length)return 0;var r=e[e.length-1].descriptor.index;return t.inHomeList?r:r+1}(t,{inHomeList:r});return{displaced:re,displacedBy:n,at:{type:"REORDER",destination:{droppableId:o.descriptor.id,index:i}}}}function me(e){var t=e.draggable,r=e.insideDestination,n=e.destination,o=e.viewport,i=e.displacedBy,a=e.last,s=e.index,l=e.forceShouldAnimate,u=ee(t,n);if(null==s)return fe({insideDestination:r,inHomeList:u,displacedBy:i,destination:n});var c=H(r,(function(e){return e.descriptor.index===s}));if(!c)return fe({insideDestination:r,inHomeList:u,displacedBy:i,destination:n});var d=J(t,r),f=r.indexOf(c);return{displaced:de({afterDragging:d.slice(f),destination:n,displacedBy:i,last:a,viewport:o.frame,forceShouldAnimate:l}),displacedBy:i,at:{type:"REORDER",destination:{droppableId:n.descriptor.id,index:s}}}}function pe(e,t){return Boolean(t.effected[e])}var he=function(e,t){return t.margin[e.start]+t.borderBox[e.size]/2},ge=function(e,t,r){return t[e.crossAxisStart]+r.margin[e.crossAxisStart]+r.borderBox[e.crossAxisSize]/2},be=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return S(t.line,r.marginBox[t.end]+he(t,n),ge(t,r.marginBox,n))},ye=function(e){var t=e.axis,r=e.moveRelativeTo,n=e.isMoving;return S(t.line,r.marginBox[t.start]-function(e,t){return t.margin[e.end]+t.borderBox[e.size]/2}(t,n),ge(t,r.marginBox,n))},ve=function(e,t){var r=e.frame;return r?N(t,r.scroll.diff.displacement):t},De=function(e){var t=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.afterCritical,a=r.page.borderBox.center,s=t.at;return n&&s?"REORDER"===s.type?function(e){var t=e.impact,r=e.draggable,n=e.draggables,o=e.droppable,i=e.afterCritical,a=$(o.descriptor.id,n),s=r.page,l=o.axis;if(!a.length)return function(e){var t=e.axis,r=e.moveInto,n=e.isMoving;return S(t.line,r.contentBox[t.start]+he(t,n),ge(t,r.contentBox,n))}({axis:l,moveInto:o.page,isMoving:s});var u=t.displaced,d=t.displacedBy,f=u.all[0];if(f){var m=n[f];if(pe(f,i))return ye({axis:l,moveRelativeTo:m.page,isMoving:s});var p=(0,c.cY)(m.page,d.point);return ye({axis:l,moveRelativeTo:p,isMoving:s})}var h=a[a.length-1];if(h.descriptor.id===r.descriptor.id)return s.borderBox.center;if(pe(h.descriptor.id,i)){var g=(0,c.cY)(h.page,T(i.displacedBy.point));return be({axis:l,moveRelativeTo:g,isMoving:s})}return be({axis:l,moveRelativeTo:h.page,isMoving:s})}({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:i}):function(e){var t=e.afterCritical,r=e.impact,n=e.draggables,o=X(r);o||_(!1);var i=o.draggableId,a=n[i].page.borderBox.center,s=function(e){var t=e.displaced,r=e.afterCritical,n=e.combineWith,o=e.displacedBy,i=Boolean(t.visible[n]||t.invisible[n]);return pe(n,r)?i?A:T(o.point):i?o.point:A}({displaced:r.displaced,afterCritical:t,combineWith:i,displacedBy:r.displacedBy});return N(a,s)}({impact:t,draggables:o,afterCritical:i}):a}(e),r=e.droppable;return r?ve(r,t):t},_e=function(e,t){var r=j(t,e.scroll.initial),n=T(r);return{frame:(0,c.l)({top:t.y,bottom:t.y+e.frame.height,left:t.x,right:t.x+e.frame.width}),scroll:{initial:e.scroll.initial,max:e.scroll.max,current:t,diff:{value:r,displacement:n}}}};function xe(e,t){return e.map((function(e){return t[e]}))}var ke=function(e){var t,r,n=e.pageBorderBoxCenter,o=e.draggable,i=(t=e.viewport,r=n,N(t.scroll.diff.displacement,r)),a=j(i,o.page.borderBox.center);return N(o.client.borderBox.center,a)},Ee=function(e){var t=e.draggable,r=e.destination,n=e.newPageBorderBoxCenter,o=e.viewport,i=e.withDroppableDisplacement,s=e.onlyOnMainAxis,l=void 0!==s&&s,u=j(n,t.page.borderBox.center),c={target:R(t.page.borderBox,u),destination:r,withDroppableDisplacement:i,viewport:o};return l?function(e){return ue((0,a.A)({},e,{isVisibleThroughFrameFn:(t=e.destination.axis,function(e){var r=oe(e.top,e.bottom),n=oe(e.left,e.right);return function(e){return t===se?r(e.top)&&r(e.bottom):n(e.left)&&n(e.right)}})}));var t}(c):ce(c)},we=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.draggables,i=e.previousImpact,s=e.viewport,l=e.previousPageBorderBoxCenter,u=e.previousClientSelection,c=e.afterCritical;if(!n.isEnabled)return null;var d=$(n.descriptor.id,o),f=ee(r,n),m=function(e){var t=e.isMovingForward,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.previousImpact;if(!n.isCombineEnabled)return null;if(!K(i))return null;function s(e){var t={type:"COMBINE",combine:{draggableId:e,droppableId:n.descriptor.id}};return(0,a.A)({},i,{at:t})}var l=i.displaced.all,u=l.length?l[0]:null;if(t)return u?s(u):null;var c=J(r,o);if(!u)return c.length?s(c[c.length-1].descriptor.id):null;var d=U(c,(function(e){return e.descriptor.id===u}));-1===d&&_(!1);var f=d-1;return f<0?null:s(c[f].descriptor.id)}({isMovingForward:t,draggable:r,destination:n,insideDestination:d,previousImpact:i})||function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.draggable,o=e.draggables,i=e.destination,a=e.insideDestination,s=e.previousImpact,l=e.viewport,u=e.afterCritical,c=s.at;if(c||_(!1),"REORDER"===c.type){var d=function(e){var t=e.isMovingForward,r=e.isInHomeList,n=e.insideDestination,o=e.location;if(!n.length)return null;var i=o.index,a=t?i+1:i-1,s=n[0].descriptor.index,l=n[n.length-1].descriptor.index;return a<s||a>(r?l:l+1)?null:a}({isMovingForward:t,isInHomeList:r,location:c.destination,insideDestination:a});return null==d?null:me({draggable:n,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:d})}var f=function(e){var t=e.isMovingForward,r=e.draggables,n=e.combine,o=e.afterCritical;if(!e.destination.isCombineEnabled)return null;var i=n.draggableId,a=r[i].descriptor.index;return pe(i,o)?t?a:a-1:t?a+1:a}({isMovingForward:t,destination:i,displaced:s.displaced,draggables:o,combine:c.combine,afterCritical:u});return null==f?null:me({draggable:n,insideDestination:a,destination:i,viewport:l,last:s.displaced,displacedBy:s.displacedBy,index:f})}({isMovingForward:t,isInHomeList:f,draggable:r,draggables:o,destination:n,insideDestination:d,previousImpact:i,viewport:s,afterCritical:c});if(!m)return null;var p=De({impact:m,draggable:r,droppable:n,draggables:o,afterCritical:c});if(Ee({draggable:r,destination:n,newPageBorderBoxCenter:p,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0}))return{clientSelection:ke({pageBorderBoxCenter:p,draggable:r,viewport:s}),impact:m,scrollJumpRequest:null};var h=j(p,l),g=function(e){var t=e.impact,r=e.viewport,n=e.destination,o=e.draggables,i=e.maxScrollChange,s=_e(r,N(r.scroll.current,i)),l=n.frame?q(n,N(n.frame.scroll.current,i)):n,u=t.displaced,c=de({afterDragging:xe(u.all,o),destination:n,displacedBy:t.displacedBy,viewport:s.frame,last:u,forceShouldAnimate:!1}),d=de({afterDragging:xe(u.all,o),destination:l,displacedBy:t.displacedBy,viewport:r.frame,last:u,forceShouldAnimate:!1}),f={},m={},p=[u,c,d];return u.all.forEach((function(e){var t=function(e,t){for(var r=0;r<t.length;r++){var n=t[r].visible[e];if(n)return n}return null}(e,p);t?m[e]=t:f[e]=!0})),(0,a.A)({},t,{displaced:{all:u.all,invisible:f,visible:m}})}({impact:m,viewport:s,destination:n,draggables:o,maxScrollChange:h});return{clientSelection:u,impact:g,scrollJumpRequest:h}},Ce=function(e){var t=e.subject.active;return t||_(!1),t},Me=function(e,t){var r=e.page.borderBox.center;return pe(e.descriptor.id,t)?j(r,t.displacedBy.point):r},Ae=function(e,t){var r=e.page.borderBox;return pe(e.descriptor.id,t)?R(r,T(t.displacedBy.point)):r},Ne=(0,d.A)((function(e,t){var r=t[e.line];return{value:r,point:S(e.line,r)}})),je=function(e,t){return(0,a.A)({},e,{scroll:(0,a.A)({},e.scroll,{max:t})})},Oe=function(e,t,r){var n=e.frame;ee(t,e)&&_(!1),e.subject.withPlaceholder&&_(!1);var o=Ne(e.axis,t.displaceBy).point,i=function(e,t,r){var n=e.axis;if("virtual"===e.descriptor.mode)return S(n.line,t[n.line]);var o=e.subject.page.contentBox[n.size],i=$(e.descriptor.id,r).reduce((function(e,t){return e+t.client.marginBox[n.size]}),0)+t[n.line]-o;return i<=0?null:S(n.line,i)}(e,o,r),s={placeholderSize:o,increasedBy:i,oldFrameMaxScroll:e.frame?e.frame.scroll.max:null};if(!n){var l=z({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:e.frame});return(0,a.A)({},e,{subject:l})}var u=i?N(n.scroll.max,i):n.scroll.max,c=je(n,u),d=z({page:e.subject.page,withPlaceholder:s,axis:e.axis,frame:c});return(0,a.A)({},e,{subject:d,frame:c})},Te=function(e){var t=e.at;return t?"REORDER"===t.type?t.destination.droppableId:t.combine.droppableId:null},Se=function(e){var t=e.state,r=e.type,n=function(e,t){var r=Te(e);return r?t[r]:null}(t.impact,t.dimensions.droppables),o=Boolean(n),i=t.dimensions.droppables[t.critical.droppable.id],a=n||i,s=a.axis.direction,l="vertical"===s&&("MOVE_UP"===r||"MOVE_DOWN"===r)||"horizontal"===s&&("MOVE_LEFT"===r||"MOVE_RIGHT"===r);if(l&&!o)return null;var u="MOVE_DOWN"===r||"MOVE_RIGHT"===r,c=t.dimensions.draggables[t.critical.draggable.id],d=t.current.page.borderBoxCenter,f=t.dimensions,m=f.draggables,p=f.droppables;return l?we({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,destination:a,draggables:m,viewport:t.viewport,previousClientSelection:t.current.client.selection,previousImpact:t.impact,afterCritical:t.afterCritical}):function(e){var t=e.isMovingForward,r=e.previousPageBorderBoxCenter,n=e.draggable,o=e.isOver,i=e.draggables,a=e.droppables,s=e.viewport,l=e.afterCritical,u=function(e){var t=e.isMovingForward,r=e.pageBorderBoxCenter,n=e.source,o=e.droppables,i=e.viewport,a=n.subject.active;if(!a)return null;var s=n.axis,l=oe(a[s.start],a[s.end]),u=G(o).filter((function(e){return e!==n})).filter((function(e){return e.isEnabled})).filter((function(e){return Boolean(e.subject.active)})).filter((function(e){return ie(i.frame)(Ce(e))})).filter((function(e){var r=Ce(e);return t?a[s.crossAxisEnd]<r[s.crossAxisEnd]:r[s.crossAxisStart]<a[s.crossAxisStart]})).filter((function(e){var t=Ce(e),r=oe(t[s.start],t[s.end]);return l(t[s.start])||l(t[s.end])||r(a[s.start])||r(a[s.end])})).sort((function(e,r){var n=Ce(e)[s.crossAxisStart],o=Ce(r)[s.crossAxisStart];return t?n-o:o-n})).filter((function(e,t,r){return Ce(e)[s.crossAxisStart]===Ce(r[0])[s.crossAxisStart]}));if(!u.length)return null;if(1===u.length)return u[0];var c=u.filter((function(e){return oe(Ce(e)[s.start],Ce(e)[s.end])(r[s.line])}));return 1===c.length?c[0]:c.length>1?c.sort((function(e,t){return Ce(e)[s.start]-Ce(t)[s.start]}))[0]:u.sort((function(e,t){var n=F(r,P(Ce(e))),o=F(r,P(Ce(t)));return n!==o?n-o:Ce(e)[s.start]-Ce(t)[s.start]}))[0]}({isMovingForward:t,pageBorderBoxCenter:r,source:o,droppables:a,viewport:s});if(!u)return null;var c=$(u.descriptor.id,i),d=function(e){var t=e.pageBorderBoxCenter,r=e.viewport,n=e.destination,o=e.afterCritical,i=e.insideDestination.filter((function(e){return ce({target:Ae(e,o),destination:n,viewport:r.frame,withDroppableDisplacement:!0})})).sort((function(e,r){var i=I(t,ve(n,Me(e,o))),a=I(t,ve(n,Me(r,o)));return i<a?-1:a<i?1:e.descriptor.index-r.descriptor.index}));return i[0]||null}({pageBorderBoxCenter:r,viewport:s,destination:u,insideDestination:c,afterCritical:l}),f=function(e){var t=e.previousPageBorderBoxCenter,r=e.moveRelativeTo,n=e.insideDestination,o=e.draggable,i=e.draggables,a=e.destination,s=e.viewport,l=e.afterCritical;if(!r){if(n.length)return null;var u={displaced:re,displacedBy:te,at:{type:"REORDER",destination:{droppableId:a.descriptor.id,index:0}}},c=De({impact:u,draggable:o,droppable:a,draggables:i,afterCritical:l}),d=ee(o,a)?a:Oe(a,o,i);return Ee({draggable:o,destination:d,newPageBorderBoxCenter:c,viewport:s.frame,withDroppableDisplacement:!1,onlyOnMainAxis:!0})?u:null}var f,m=Boolean(t[a.axis.line]<=r.page.borderBox.center[a.axis.line]),p=(f=r.descriptor.index,r.descriptor.id===o.descriptor.id||m?f:f+1);return me({draggable:o,insideDestination:n,destination:a,viewport:s,displacedBy:Ne(a.axis,o.displaceBy),last:re,index:p})}({previousPageBorderBoxCenter:r,destination:u,draggable:n,draggables:i,moveRelativeTo:d,insideDestination:c,viewport:s,afterCritical:l});if(!f)return null;var m=De({impact:f,draggable:n,droppable:u,draggables:i,afterCritical:l});return{clientSelection:ke({pageBorderBoxCenter:m,draggable:n,viewport:s}),impact:f,scrollJumpRequest:null}}({isMovingForward:u,previousPageBorderBoxCenter:d,draggable:c,isOver:a,draggables:m,droppables:p,viewport:t.viewport,afterCritical:t.afterCritical})};function Ie(e){return"DRAGGING"===e.phase||"COLLECTING"===e.phase}function Fe(e){var t=oe(e.top,e.bottom),r=oe(e.left,e.right);return function(e){return t(e.y)&&r(e.x)}}var Le=function(e,t){return(0,c.l)(R(e,t))};function Re(e){var t=e.displaced,r=e.id;return Boolean(t.visible[r]||t.invisible[r])}var Pe=function(e){var t=e.pageOffset,r=e.draggable,n=e.draggables,o=e.droppables,i=e.previousImpact,a=e.viewport,s=e.afterCritical,l=Le(r.page.borderBox,t),u=function(e){var t=e.pageBorderBox,r=e.draggable,n=e.droppables,o=G(n).filter((function(e){if(!e.isEnabled)return!1;var r,n,o=e.subject.active;if(!o)return!1;if(n=o,!((r=t).left<n.right&&r.right>n.left&&r.top<n.bottom&&r.bottom>n.top))return!1;if(Fe(o)(t.center))return!0;var i=e.axis,a=o.center[i.crossAxisLine],s=t[i.crossAxisStart],l=t[i.crossAxisEnd],u=oe(o[i.crossAxisStart],o[i.crossAxisEnd]),c=u(s),d=u(l);return!c&&!d||(c?s<a:l>a)}));return o.length?1===o.length?o[0].descriptor.id:function(e){var t=e.pageBorderBox,r=e.candidates,n=e.draggable.page.borderBox.center,o=r.map((function(e){var r=e.axis,o=S(e.axis.line,t.center[r.line],e.page.borderBox.center[r.crossAxisLine]);return{id:e.descriptor.id,distance:I(n,o)}})).sort((function(e,t){return t.distance-e.distance}));return o[0]?o[0].id:null}({pageBorderBox:t,draggable:r,candidates:o}):null}({pageBorderBox:l,draggable:r,droppables:o});if(!u)return ne;var c=o[u],d=$(c.descriptor.id,n),f=function(e,t){var r=e.frame;return r?Le(t,r.scroll.diff.value):t}(c,l);return function(e){var t=e.draggable,r=e.pageBorderBoxWithDroppableScroll,n=e.previousImpact,o=e.destination,i=e.insideDestination,a=e.afterCritical;if(!o.isCombineEnabled)return null;var s=o.axis,l=Ne(o.axis,t.displaceBy),u=l.value,c=r[s.start],d=r[s.end],f=H(J(t,i),(function(e){var t=e.descriptor.id,r=e.page.borderBox,o=r[s.size]/4,i=pe(t,a),l=Re({displaced:n.displaced,id:t});return i?l?d>r[s.start]+o&&d<r[s.end]-o:c>r[s.start]-u+o&&c<r[s.end]-u-o:l?d>r[s.start]+u+o&&d<r[s.end]+u-o:c>r[s.start]+o&&c<r[s.end]-o}));return f?{displacedBy:l,displaced:n.displaced,at:{type:"COMBINE",combine:{draggableId:f.descriptor.id,droppableId:o.descriptor.id}}}:null}({pageBorderBoxWithDroppableScroll:f,draggable:r,previousImpact:i,destination:c,insideDestination:d,afterCritical:s})||function(e){var t=e.pageBorderBoxWithDroppableScroll,r=e.draggable,n=e.destination,o=e.insideDestination,i=e.last,a=e.viewport,s=e.afterCritical,l=n.axis,u=Ne(n.axis,r.displaceBy),c=u.value,d=t[l.start],f=t[l.end],m=function(e){var t=e.draggable,r=e.closest;return r?e.inHomeList&&r.descriptor.index>t.descriptor.index?r.descriptor.index-1:r.descriptor.index:null}({draggable:r,closest:H(J(r,o),(function(e){var t=e.descriptor.id,r=e.page.borderBox.center[l.line],n=pe(t,s),o=Re({displaced:i,id:t});return n?o?f<=r:d<r-c:o?f<=r+c:d<r})),inHomeList:ee(r,n)});return me({draggable:r,insideDestination:o,destination:n,viewport:a,last:i,displacedBy:u,index:m})}({pageBorderBoxWithDroppableScroll:f,draggable:r,destination:c,insideDestination:d,last:i.displaced,viewport:a,afterCritical:s})},Be=function(e,t){var r;return(0,a.A)({},e,((r={})[t.descriptor.id]=t,r))},ze=function(e){var t=e.state,r=e.clientSelection,n=e.dimensions,o=e.viewport,i=e.impact,s=e.scrollJumpRequest,l=o||t.viewport,u=n||t.dimensions,c=r||t.current.client.selection,d=j(c,t.initial.client.selection),f={offset:d,selection:c,borderBoxCenter:N(t.initial.client.borderBoxCenter,d)},m={selection:N(f.selection,l.scroll.current),borderBoxCenter:N(f.borderBoxCenter,l.scroll.current),offset:N(f.offset,l.scroll.diff.value)},p={client:f,page:m};if("COLLECTING"===t.phase)return(0,a.A)({phase:"COLLECTING"},t,{dimensions:u,viewport:l,current:p});var h=u.draggables[t.critical.draggable.id],g=i||Pe({pageOffset:m.offset,draggable:h,draggables:u.draggables,droppables:u.droppables,previousImpact:t.impact,viewport:l,afterCritical:t.afterCritical}),b=function(e){var t=e.draggable,r=e.draggables,n=e.droppables,o=e.impact,i=function(e){var t=e.previousImpact,r=e.impact,n=e.droppables,o=Te(t),i=Te(r);if(!o)return n;if(o===i)return n;var s=n[o];if(!s.subject.withPlaceholder)return n;var l=function(e){var t=e.subject.withPlaceholder;t||_(!1);var r=e.frame;if(!r){var n=z({page:e.subject.page,axis:e.axis,frame:null,withPlaceholder:null});return(0,a.A)({},e,{subject:n})}var o=t.oldFrameMaxScroll;o||_(!1);var i=je(r,o),s=z({page:e.subject.page,axis:e.axis,frame:i,withPlaceholder:null});return(0,a.A)({},e,{subject:s,frame:i})}(s);return Be(n,l)}({previousImpact:e.previousImpact,impact:o,droppables:n}),s=Te(o);if(!s)return i;var l=n[s];if(ee(t,l))return i;if(l.subject.withPlaceholder)return i;var u=Oe(l,t,r);return Be(i,u)}({draggable:h,impact:g,previousImpact:t.impact,draggables:u.draggables,droppables:u.droppables});return(0,a.A)({},t,{current:p,dimensions:{draggables:u.draggables,droppables:b},impact:g,viewport:l,scrollJumpRequest:s||null,forceShouldAnimate:!s&&null})},qe=function(e){var t=e.impact,r=e.viewport,n=e.draggables,o=e.destination,i=e.forceShouldAnimate,s=t.displaced,l=function(e,t){return e.map((function(e){return t[e]}))}(s.all,n),u=de({afterDragging:l,destination:o,displacedBy:t.displacedBy,viewport:r.frame,forceShouldAnimate:i,last:s});return(0,a.A)({},t,{displaced:u})},Ve=function(e){var t=e.impact,r=e.draggable,n=e.droppable,o=e.draggables,i=e.viewport,a=e.afterCritical,s=De({impact:t,draggable:r,draggables:o,droppable:n,afterCritical:a});return ke({pageBorderBoxCenter:s,draggable:r,viewport:i})},Ue=function(e){var t=e.state,r=e.dimensions,n=e.viewport;"SNAP"!==t.movementMode&&_(!1);var o=t.impact,i=n||t.viewport,a=r||t.dimensions,s=a.draggables,l=a.droppables,u=s[t.critical.draggable.id],c=Te(o);c||_(!1);var d=l[c],f=qe({impact:o,viewport:i,destination:d,draggables:s}),m=Ve({impact:f,draggable:u,droppable:d,draggables:s,viewport:i,afterCritical:t.afterCritical});return ze({impact:f,clientSelection:m,state:t,dimensions:a,viewport:i})},He=function(e){var t=e.draggable,r=e.home,n=e.draggables,o=e.viewport,i=Ne(r.axis,t.displaceBy),a=$(r.descriptor.id,n),s=a.indexOf(t);-1===s&&_(!1);var l,u=a.slice(s+1),c=u.reduce((function(e,t){return e[t.descriptor.id]=!0,e}),{}),d={inVirtualList:"virtual"===r.descriptor.mode,displacedBy:i,effected:c};return{impact:{displaced:de({afterDragging:u,destination:r,displacedBy:i,last:null,viewport:o.frame,forceShouldAnimate:!1}),displacedBy:i,at:{type:"REORDER",destination:(l=t.descriptor,{index:l.index,droppableId:l.droppableId})}},afterCritical:d}},Ye=function(e){return"SNAP"===e.movementMode},Qe=function(e,t,r){var n=function(e,t){return{draggables:e.draggables,droppables:Be(e.droppables,t)}}(e.dimensions,t);return!Ye(e)||r?ze({state:e,dimensions:n}):Ue({state:e,dimensions:n})};function We(e){return e.isDragging&&"SNAP"===e.movementMode?(0,a.A)({phase:"DRAGGING"},e,{scrollJumpRequest:null}):e}var Ge={phase:"IDLE",completed:null,shouldFlush:!1},Ze=function(e,t){if(void 0===e&&(e=Ge),"FLUSH"===t.type)return(0,a.A)({},Ge,{shouldFlush:!0});if("INITIAL_PUBLISH"===t.type){"IDLE"!==e.phase&&_(!1);var r=t.payload,n=r.critical,o=r.clientSelection,i=r.viewport,s=r.dimensions,l=r.movementMode,u=s.draggables[n.draggable.id],d=s.droppables[n.droppable.id],f={selection:o,borderBoxCenter:u.client.borderBox.center,offset:A},m={client:f,page:{selection:N(f.selection,i.scroll.initial),borderBoxCenter:N(f.selection,i.scroll.initial),offset:N(f.selection,i.scroll.diff.value)}},p=G(s.droppables).every((function(e){return!e.isFixedOnPage})),h=He({draggable:u,home:d,draggables:s.draggables,viewport:i}),g=h.impact;return{phase:"DRAGGING",isDragging:!0,critical:n,movementMode:l,dimensions:s,initial:m,current:m,isWindowScrollAllowed:p,impact:g,afterCritical:h.afterCritical,onLiftImpact:g,viewport:i,scrollJumpRequest:null,forceShouldAnimate:null}}if("COLLECTION_STARTING"===t.type)return"COLLECTING"===e.phase||"DROP_PENDING"===e.phase?e:("DRAGGING"!==e.phase&&_(!1),(0,a.A)({phase:"COLLECTING"},e,{phase:"COLLECTING"}));if("PUBLISH_WHILE_DRAGGING"===t.type)return"COLLECTING"!==e.phase&&"DROP_PENDING"!==e.phase&&_(!1),function(e){var t=e.state,r=e.published,n=r.modified.map((function(e){var r=t.dimensions.droppables[e.droppableId];return q(r,e.scroll)})),o=(0,a.A)({},t.dimensions.droppables,{},Q(n)),i=W(function(e){var t=e.additions,r=e.updatedDroppables,n=e.viewport,o=n.scroll.diff.value;return t.map((function(e){var t=e.descriptor.droppableId,i=function(e){var t=e.frame;return t||_(!1),t}(r[t]),s=i.scroll.diff.value,l=function(e){var t=e.draggable,r=e.offset,n=e.initialWindowScroll,o=(0,c.cY)(t.client,r),i=(0,c.SQ)(o,n);return(0,a.A)({},t,{placeholder:(0,a.A)({},t.placeholder,{client:o}),client:o,page:i})}({draggable:e,offset:N(o,s),initialWindowScroll:n.scroll.initial});return l}))}({additions:r.additions,updatedDroppables:o,viewport:t.viewport})),s=(0,a.A)({},t.dimensions.draggables,{},i);r.removals.forEach((function(e){delete s[e]}));var l={droppables:o,draggables:s},u=Te(t.impact),d=u?l.droppables[u]:null,f=l.draggables[t.critical.draggable.id],m=l.droppables[t.critical.droppable.id],p=He({draggable:f,home:m,draggables:s,viewport:t.viewport}),h=p.impact,g=p.afterCritical,b=d&&d.isCombineEnabled?t.impact:h,y=Pe({pageOffset:t.current.page.offset,draggable:l.draggables[t.critical.draggable.id],draggables:l.draggables,droppables:l.droppables,previousImpact:b,viewport:t.viewport,afterCritical:g}),v=(0,a.A)({phase:"DRAGGING"},t,{phase:"DRAGGING",impact:y,onLiftImpact:h,dimensions:l,afterCritical:g,forceShouldAnimate:!1});return"COLLECTING"===t.phase?v:(0,a.A)({phase:"DROP_PENDING"},v,{phase:"DROP_PENDING",reason:t.reason,isWaiting:!1})}({state:e,published:t.payload});if("MOVE"===t.type){if("DROP_PENDING"===e.phase)return e;Ie(e)||_(!1);var b=t.payload.client;return O(b,e.current.client.selection)?e:ze({state:e,clientSelection:b,impact:Ye(e)?e.impact:null})}if("UPDATE_DROPPABLE_SCROLL"===t.type){if("DROP_PENDING"===e.phase)return We(e);if("COLLECTING"===e.phase)return We(e);Ie(e)||_(!1);var y=t.payload,v=y.id,D=y.newScroll,x=e.dimensions.droppables[v];if(!x)return e;var k=q(x,D);return Qe(e,k,!1)}if("UPDATE_DROPPABLE_IS_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ie(e)||_(!1);var E=t.payload,w=E.id,C=E.isEnabled,M=e.dimensions.droppables[w];M||_(!1),M.isEnabled===C&&_(!1);var j=(0,a.A)({},M,{isEnabled:C});return Qe(e,j,!0)}if("UPDATE_DROPPABLE_IS_COMBINE_ENABLED"===t.type){if("DROP_PENDING"===e.phase)return e;Ie(e)||_(!1);var T=t.payload,S=T.id,I=T.isCombineEnabled,F=e.dimensions.droppables[S];F||_(!1),F.isCombineEnabled===I&&_(!1);var L=(0,a.A)({},F,{isCombineEnabled:I});return Qe(e,L,!0)}if("MOVE_BY_WINDOW_SCROLL"===t.type){if("DROP_PENDING"===e.phase||"DROP_ANIMATING"===e.phase)return e;Ie(e)||_(!1),e.isWindowScrollAllowed||_(!1);var R=t.payload.newScroll;if(O(e.viewport.scroll.current,R))return We(e);var P=_e(e.viewport,R);return Ye(e)?Ue({state:e,viewport:P}):ze({state:e,viewport:P})}if("UPDATE_VIEWPORT_MAX_SCROLL"===t.type){if(!Ie(e))return e;var B=t.payload.maxScroll;if(O(B,e.viewport.scroll.max))return e;var z=(0,a.A)({},e.viewport,{scroll:(0,a.A)({},e.viewport.scroll,{max:B})});return(0,a.A)({phase:"DRAGGING"},e,{viewport:z})}if("MOVE_UP"===t.type||"MOVE_DOWN"===t.type||"MOVE_LEFT"===t.type||"MOVE_RIGHT"===t.type){if("COLLECTING"===e.phase||"DROP_PENDING"===e.phase)return e;"DRAGGING"!==e.phase&&_(!1);var V=Se({state:e,type:t.type});return V?ze({state:e,impact:V.impact,clientSelection:V.clientSelection,scrollJumpRequest:V.scrollJumpRequest}):e}if("DROP_PENDING"===t.type){var U=t.payload.reason;return"COLLECTING"!==e.phase&&_(!1),(0,a.A)({phase:"DROP_PENDING"},e,{phase:"DROP_PENDING",isWaiting:!0,reason:U})}if("DROP_ANIMATE"===t.type){var H=t.payload,Y=H.completed,Z=H.dropDuration,$=H.newHomeClientOffset;return"DRAGGING"!==e.phase&&"DROP_PENDING"!==e.phase&&_(!1),{phase:"DROP_ANIMATING",completed:Y,dropDuration:Z,newHomeClientOffset:$,dimensions:e.dimensions}}return"DROP_COMPLETE"===t.type?{phase:"IDLE",completed:t.payload.completed,shouldFlush:!1}:e},$e=function(e){return{type:"LIFT",payload:e}},Ke=function(e){return{type:"PUBLISH_WHILE_DRAGGING",payload:e}},Xe=function(){return{type:"COLLECTION_STARTING",payload:null}},Je=function(e){return{type:"UPDATE_DROPPABLE_SCROLL",payload:e}},et=function(e){return{type:"UPDATE_DROPPABLE_IS_ENABLED",payload:e}},tt=function(e){return{type:"UPDATE_DROPPABLE_IS_COMBINE_ENABLED",payload:e}},rt=function(e){return{type:"MOVE",payload:e}},nt=function(){return{type:"MOVE_UP",payload:null}},ot=function(){return{type:"MOVE_DOWN",payload:null}},it=function(){return{type:"MOVE_RIGHT",payload:null}},at=function(){return{type:"MOVE_LEFT",payload:null}},st=function(){return{type:"FLUSH",payload:null}},lt=function(e){return{type:"DROP_COMPLETE",payload:e}},ut=function(e){return{type:"DROP",payload:e}},ct="cubic-bezier(.2,1,.1,1)",dt=0,ft=.7,mt=.75,pt="0.2s cubic-bezier(0.2, 0, 0, 1)",ht={fluid:"opacity "+pt,snap:"transform "+pt+", opacity "+pt,drop:function(e){var t=e+"s "+ct;return"transform "+t+", opacity "+t},outOfTheWay:"transform "+pt,placeholder:"height "+pt+", width "+pt+", margin "+pt},gt=function(e){return O(e,A)?null:"translate("+e.x+"px, "+e.y+"px)"},bt=gt,yt=.33,vt=.55-yt,Dt=function(e){var t=e.getState,r=e.dispatch;return function(e){return function(n){if("DROP"===n.type){var o=t(),i=n.payload.reason;if("COLLECTING"!==o.phase){if("IDLE"!==o.phase){"DROP_PENDING"===o.phase&&o.isWaiting&&_(!1),"DRAGGING"!==o.phase&&"DROP_PENDING"!==o.phase&&_(!1);var s=o.critical,l=o.dimensions,u=l.draggables[o.critical.draggable.id],c=function(e){var t=e.draggables,r=e.reason,n=e.lastImpact,o=e.home,i=e.viewport,s=e.onLiftImpact;return n.at&&"DROP"===r?"REORDER"===n.at.type?{impact:n,didDropInsideDroppable:!0}:{impact:(0,a.A)({},n,{displaced:re}),didDropInsideDroppable:!0}:{impact:qe({draggables:t,impact:s,destination:o,viewport:i,forceShouldAnimate:!0}),didDropInsideDroppable:!1}}({reason:i,lastImpact:o.impact,afterCritical:o.afterCritical,onLiftImpact:o.onLiftImpact,home:o.dimensions.droppables[o.critical.droppable.id],viewport:o.viewport,draggables:o.dimensions.draggables}),d=c.impact,f=c.didDropInsideDroppable,m=f?K(d):null,p=f?X(d):null,h={index:s.draggable.index,droppableId:s.droppable.id},g={draggableId:u.descriptor.id,type:u.descriptor.type,source:h,reason:i,mode:o.movementMode,destination:m,combine:p},b=function(e){var t=e.impact,r=e.draggable,n=e.dimensions,o=e.viewport,i=e.afterCritical,a=n.draggables,s=n.droppables,l=Te(t),u=l?s[l]:null,c=s[r.descriptor.droppableId],d=Ve({impact:t,draggable:r,draggables:a,afterCritical:i,droppable:u||c,viewport:o});return j(d,r.client.borderBox.center)}({impact:d,draggable:u,dimensions:l,viewport:o.viewport,afterCritical:o.afterCritical}),y={critical:o.critical,afterCritical:o.afterCritical,result:g,impact:d};if(!O(o.current.client.offset,b)||Boolean(g.combine)){var v=function(e){var t=e.reason,r=I(e.current,e.destination);if(r<=0)return yt;if(r>=1500)return.55;var n=yt+vt*(r/1500);return Number(("CANCEL"===t?.6*n:n).toFixed(2))}({current:o.current.client.offset,destination:b,reason:i});r({type:"DROP_ANIMATE",payload:{newHomeClientOffset:b,dropDuration:v,completed:y}})}else r(lt({completed:y}))}}else r(function(e){return{type:"DROP_PENDING",payload:e}}({reason:i}))}else e(n)}}},_t=function(){return{x:window.pageXOffset,y:window.pageYOffset}};var xt=function(e){var t=function(e){var t=e.onWindowScroll,r=(0,f.A)((function(){t(_t())})),n=function(e){return{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(t){t.target!==window&&t.target!==window.document||e()}}}(r),o=g;function i(){return o!==g}return{start:function(){i()&&_(!1),o=b(window,[n])},stop:function(){i()||_(!1),r.cancel(),o(),o=g},isActive:i}}({onWindowScroll:function(t){e.dispatch({type:"MOVE_BY_WINDOW_SCROLL",payload:{newScroll:t}})}});return function(e){return function(r){t.isActive()||"INITIAL_PUBLISH"!==r.type||t.start(),t.isActive()&&function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(r)&&t.stop(),e(r)}}},kt=function(e,t){t()},Et=function(e,t){return{draggableId:e.draggable.id,type:e.droppable.type,source:{droppableId:e.droppable.id,index:e.draggable.index},mode:t}},wt=function(e,t,r,n){if(e){var o=function(e){var t=!1,r=!1,n=setTimeout((function(){r=!0})),o=function(o){t||r||(t=!0,e(o),clearTimeout(n))};return o.wasCalled=function(){return t},o}(r);e(t,{announce:o}),o.wasCalled()||r(n(t))}else r(n(t))},Ct=function(e,t){var r=function(e,t){var r,n=(r=[],{add:function(e){var t=setTimeout((function(){return function(e){var t=U(r,(function(t){return t.timerId===e}));-1===t&&_(!1),r.splice(t,1)[0].callback()}(t)})),n={timerId:t,callback:e};r.push(n)},flush:function(){if(r.length){var e=[].concat(r);r.length=0,e.forEach((function(e){clearTimeout(e.timerId),e.callback()}))}}}),o=null,i=function(r){o||_(!1),o=null,kt(0,(function(){return wt(e().onDragEnd,r,t,M.onDragEnd)}))};return{beforeCapture:function(t,r){o&&_(!1),kt(0,(function(){var n=e().onBeforeCapture;n&&n({draggableId:t,mode:r})}))},beforeStart:function(t,r){o&&_(!1),kt(0,(function(){var n=e().onBeforeDragStart;n&&n(Et(t,r))}))},start:function(r,i){o&&_(!1);var a=Et(r,i);o={mode:i,lastCritical:r,lastLocation:a.source,lastCombine:null},n.add((function(){kt(0,(function(){return wt(e().onDragStart,a,t,M.onDragStart)}))}))},update:function(r,i){var s=K(i),l=X(i);o||_(!1);var u=!function(e,t){if(e===t)return!0;var r=e.draggable.id===t.draggable.id&&e.draggable.droppableId===t.draggable.droppableId&&e.draggable.type===t.draggable.type&&e.draggable.index===t.draggable.index,n=e.droppable.id===t.droppable.id&&e.droppable.type===t.droppable.type;return r&&n}(r,o.lastCritical);u&&(o.lastCritical=r);var c,d,f=(d=s,!(null==(c=o.lastLocation)&&null==d||null!=c&&null!=d&&c.droppableId===d.droppableId&&c.index===d.index));f&&(o.lastLocation=s);var m=!function(e,t){return null==e&&null==t||null!=e&&null!=t&&e.draggableId===t.draggableId&&e.droppableId===t.droppableId}(o.lastCombine,l);if(m&&(o.lastCombine=l),u||f||m){var p=(0,a.A)({},Et(r,o.mode),{combine:l,destination:s});n.add((function(){kt(0,(function(){return wt(e().onDragUpdate,p,t,M.onDragUpdate)}))}))}},flush:function(){o||_(!1),n.flush()},drop:i,abort:function(){if(o){var e=(0,a.A)({},Et(o.lastCritical,o.mode),{combine:null,destination:null,reason:"CANCEL"});i(e)}}}}(e,t);return function(e){return function(t){return function(n){if("BEFORE_INITIAL_CAPTURE"!==n.type){if("INITIAL_PUBLISH"===n.type){var o=n.payload.critical;return r.beforeStart(o,n.payload.movementMode),t(n),void r.start(o,n.payload.movementMode)}if("DROP_COMPLETE"===n.type){var i=n.payload.completed.result;return r.flush(),t(n),void r.drop(i)}if(t(n),"FLUSH"!==n.type){var a=e.getState();"DRAGGING"===a.phase&&r.update(a.critical,a.impact)}else r.abort()}else r.beforeCapture(n.payload.draggableId,n.payload.movementMode)}}}},Mt=function(e){return function(t){return function(r){if("DROP_ANIMATION_FINISHED"===r.type){var n=e.getState();"DROP_ANIMATING"!==n.phase&&_(!1),e.dispatch(lt({completed:n.completed}))}else t(r)}}},At=function(e){var t=null,r=null;return function(n){return function(o){if("FLUSH"!==o.type&&"DROP_COMPLETE"!==o.type&&"DROP_ANIMATION_FINISHED"!==o.type||(r&&(cancelAnimationFrame(r),r=null),t&&(t(),t=null)),n(o),"DROP_ANIMATE"===o.type){var i={eventName:"scroll",options:{capture:!0,passive:!1,once:!0},fn:function(){"DROP_ANIMATING"===e.getState().phase&&e.dispatch({type:"DROP_ANIMATION_FINISHED",payload:null})}};r=requestAnimationFrame((function(){r=null,t=b(window,[i])}))}}}},Nt=function(e){return function(t){return function(r){if(t(r),"PUBLISH_WHILE_DRAGGING"===r.type){var n=e.getState();"DROP_PENDING"===n.phase&&(n.isWaiting||e.dispatch(ut({reason:n.reason})))}}}},jt=s.Zz,Ot=function(e){var t,r=e.dimensionMarshal,n=e.focusMarshal,o=e.styleMarshal,i=e.getResponders,a=e.announce,l=e.autoScroller;return(0,s.y$)(Ze,jt((0,s.Tw)((t=o,function(){return function(e){return function(r){"INITIAL_PUBLISH"===r.type&&t.dragging(),"DROP_ANIMATE"===r.type&&t.dropping(r.payload.completed.result.reason),"FLUSH"!==r.type&&"DROP_COMPLETE"!==r.type||t.resting(),e(r)}}}),function(e){return function(){return function(t){return function(r){"DROP_COMPLETE"!==r.type&&"FLUSH"!==r.type&&"DROP_ANIMATE"!==r.type||e.stopPublishing(),t(r)}}}}(r),function(e){return function(t){var r=t.getState,n=t.dispatch;return function(t){return function(o){if("LIFT"===o.type){var i=o.payload,a=i.id,s=i.clientSelection,l=i.movementMode,u=r();"DROP_ANIMATING"===u.phase&&n(lt({completed:u.completed})),"IDLE"!==r().phase&&_(!1),n(st()),n({type:"BEFORE_INITIAL_CAPTURE",payload:{draggableId:a,movementMode:l}});var c={draggableId:a,scrollOptions:{shouldPublishImmediately:"SNAP"===l}},d=e.startPublishing(c),f=d.critical,m=d.dimensions,p=d.viewport;n({type:"INITIAL_PUBLISH",payload:{critical:f,dimensions:m,clientSelection:s,movementMode:l,viewport:p}})}else t(o)}}}}(r),Dt,Mt,At,Nt,function(e){return function(t){return function(r){return function(n){if(function(e){return"DROP_COMPLETE"===e.type||"DROP_ANIMATE"===e.type||"FLUSH"===e.type}(n))return e.stop(),void r(n);if("INITIAL_PUBLISH"===n.type){r(n);var o=t.getState();return"DRAGGING"!==o.phase&&_(!1),void e.start(o)}r(n),e.scroll(t.getState())}}}}(l),xt,function(e){var t=!1;return function(){return function(r){return function(n){if("INITIAL_PUBLISH"===n.type)return t=!0,e.tryRecordFocus(n.payload.critical.draggable.id),r(n),void e.tryRestoreFocusRecorded();if(r(n),t){if("FLUSH"===n.type)return t=!1,void e.tryRestoreFocusRecorded();if("DROP_COMPLETE"===n.type){t=!1;var o=n.payload.completed.result;o.combine&&e.tryShiftRecord(o.draggableId,o.combine.draggableId),e.tryRestoreFocusRecorded()}}}}}}(n),Ct(i,a))))},Tt=function(e){var t=e.scrollHeight,r=e.scrollWidth,n=e.height,o=e.width,i=j({x:r,y:t},{x:o,y:n});return{x:Math.max(0,i.x),y:Math.max(0,i.y)}},St=function(){var e=document.documentElement;return e||_(!1),e},It=function(){var e=St();return Tt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,width:e.clientWidth,height:e.clientHeight})};function Ft(e,t,r){return r.descriptor.id!==t.id&&r.descriptor.type===t.type&&"virtual"===e.droppable.getById(r.descriptor.droppableId).descriptor.mode}var Lt,Rt,Pt=function(e,t){var r=null,n=function(e){var t=e.registry,r=e.callbacks,n={additions:{},removals:{},modified:{}},o=null,i=function(){o||(r.collectionStarting(),o=requestAnimationFrame((function(){o=null;var e=n,i=e.additions,a=e.removals,s=e.modified,l=Object.keys(i).map((function(e){return t.draggable.getById(e).getDimension(A)})).sort((function(e,t){return e.descriptor.index-t.descriptor.index})),u=Object.keys(s).map((function(e){return{droppableId:e,scroll:t.droppable.getById(e).callbacks.getScrollWhileDragging()}})),c={additions:l,removals:Object.keys(a),modified:u};n={additions:{},removals:{},modified:{}},r.publish(c)})))};return{add:function(e){var t=e.descriptor.id;n.additions[t]=e,n.modified[e.descriptor.droppableId]=!0,n.removals[t]&&delete n.removals[t],i()},remove:function(e){var t=e.descriptor;n.removals[t.id]=!0,n.modified[t.droppableId]=!0,n.additions[t.id]&&delete n.additions[t.id],i()},stop:function(){o&&(cancelAnimationFrame(o),o=null,n={additions:{},removals:{},modified:{}})}}}({callbacks:{publish:t.publishWhileDragging,collectionStarting:t.collectionStarting},registry:e}),o=function(t){r||_(!1);var o=r.critical.draggable;"ADDITION"===t.type&&Ft(e,o,t.value)&&n.add(t.value),"REMOVAL"===t.type&&Ft(e,o,t.value)&&n.remove(t.value)};return{updateDroppableIsEnabled:function(n,o){e.droppable.exists(n)||_(!1),r&&t.updateDroppableIsEnabled({id:n,isEnabled:o})},updateDroppableIsCombineEnabled:function(n,o){r&&(e.droppable.exists(n)||_(!1),t.updateDroppableIsCombineEnabled({id:n,isCombineEnabled:o}))},scrollDroppable:function(t,n){r&&e.droppable.getById(t).callbacks.scroll(n)},updateDroppableScroll:function(n,o){r&&(e.droppable.exists(n)||_(!1),t.updateDroppableScroll({id:n,newScroll:o}))},startPublishing:function(t){r&&_(!1);var n=e.draggable.getById(t.draggableId),i=e.droppable.getById(n.descriptor.droppableId),a={draggable:n.descriptor,droppable:i.descriptor},s=e.subscribe(o);return r={critical:a,unsubscribe:s},function(e){var t,r,n,o,i,a,s,l=e.critical,u=e.scrollOptions,d=e.registry,f=(t=_t(),r=It(),n=t.y,o=t.x,i=St(),a=o+i.clientWidth,s=n+i.clientHeight,{frame:(0,c.l)({top:n,left:o,right:a,bottom:s}),scroll:{initial:t,current:t,max:r,diff:{value:A,displacement:A}}}),m=f.scroll.current,p=l.droppable,h=d.droppable.getAllByType(p.type).map((function(e){return e.callbacks.getDimensionAndWatchScroll(m,u)})),g=d.draggable.getAllByType(l.draggable.type).map((function(e){return e.getDimension(m)}));return{dimensions:{draggables:W(g),droppables:Q(h)},critical:l,viewport:f}}({critical:a,registry:e,scrollOptions:t.scrollOptions})},stopPublishing:function(){if(r){n.stop();var t=r.critical.droppable;e.droppable.getAllByType(t.type).forEach((function(e){return e.callbacks.dragStopped()})),r.unsubscribe(),r=null}}}},Bt=function(e,t){return"IDLE"===e.phase||"DROP_ANIMATING"===e.phase&&e.completed.result.draggableId!==t&&"DROP"===e.completed.result.reason},zt=function(e){window.scrollBy(e.x,e.y)},qt=(0,d.A)((function(e){return G(e).filter((function(e){return!!e.isEnabled&&!!e.frame}))})),Vt=function(e){return Math.pow(e,2)},Ut=function(e){var t=e.startOfRange,r=e.endOfRange,n=e.current,o=r-t;return 0===o?0:(n-t)/o},Ht=360,Yt=1200,Qt=function(e){var t=e.distanceToEdge,r=e.thresholds,n=e.dragStartTime,o=e.shouldUseTimeDampening,i=function(e,t){if(e>t.startScrollingFrom)return 0;if(e<=t.maxScrollValueAt)return 28;if(e===t.startScrollingFrom)return 1;var r=Ut({startOfRange:t.maxScrollValueAt,endOfRange:t.startScrollingFrom,current:e}),n=28*Vt(1-r);return Math.ceil(n)}(t,r);return 0===i?0:o?Math.max(function(e,t){var r=t,n=Yt,o=Date.now()-r;if(o>=Yt)return e;if(o<Ht)return 1;var i=Ut({startOfRange:Ht,endOfRange:n,current:o}),a=e*Vt(i);return Math.ceil(a)}(i,n),1):i},Wt=function(e){var t=e.container,r=e.distanceToEdges,n=e.dragStartTime,o=e.axis,i=e.shouldUseTimeDampening,a=function(e,t){return{startScrollingFrom:.25*e[t.size],maxScrollValueAt:.05*e[t.size]}}(t,o);return r[o.end]<r[o.start]?Qt({distanceToEdge:r[o.end],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i}):-1*Qt({distanceToEdge:r[o.start],thresholds:a,dragStartTime:n,shouldUseTimeDampening:i})},Gt=L((function(e){return 0===e?0:e})),Zt=function(e){var t=e.dragStartTime,r=e.container,n=e.subject,o=e.center,i=e.shouldUseTimeDampening,a={top:o.y-r.top,right:r.right-o.x,bottom:r.bottom-o.y,left:o.x-r.left},s=Wt({container:r,distanceToEdges:a,dragStartTime:t,axis:se,shouldUseTimeDampening:i}),l=Wt({container:r,distanceToEdges:a,dragStartTime:t,axis:le,shouldUseTimeDampening:i}),u=Gt({x:l,y:s});if(O(u,A))return null;var c=function(e){var t=e.container,r=e.subject,n=e.proposedScroll,o=r.height>t.height,i=r.width>t.width;return i||o?i&&o?null:{x:i?0:n.x,y:o?0:n.y}:n}({container:r,subject:n,proposedScroll:u});return c?O(c,A)?null:c:null},$t=L((function(e){return 0===e?0:e>0?1:-1})),Kt=(Lt=function(e,t){return e<0?e:e>t?e-t:0},function(e){var t=e.current,r=e.max,n=e.change,o=N(t,n),i={x:Lt(o.x,r.x),y:Lt(o.y,r.y)};return O(i,A)?null:i}),Xt=function(e){var t=e.max,r=e.current,n=e.change,o={x:Math.max(r.x,t.x),y:Math.max(r.y,t.y)},i=$t(n),a=Kt({max:o,current:r,change:i});return!a||0!==i.x&&0===a.x||0!==i.y&&0===a.y},Jt=function(e,t){return Xt({current:e.scroll.current,max:e.scroll.max,change:t})},er=function(e,t){var r=e.frame;return!!r&&Xt({current:r.scroll.current,max:r.scroll.max,change:t})},tr=function(e){var t=e.state,r=e.dragStartTime,n=e.shouldUseTimeDampening,o=e.scrollWindow,i=e.scrollDroppable,a=t.current.page.borderBoxCenter,s=t.dimensions.draggables[t.critical.draggable.id].page.marginBox;if(t.isWindowScrollAllowed){var l=function(e){var t=e.viewport,r=e.subject,n=e.center,o=e.shouldUseTimeDampening,i=Zt({dragStartTime:e.dragStartTime,container:t.frame,subject:r,center:n,shouldUseTimeDampening:o});return i&&Jt(t,i)?i:null}({dragStartTime:r,viewport:t.viewport,subject:s,center:a,shouldUseTimeDampening:n});if(l)return void o(l)}var u=function(e){var t=e.center,r=e.destination,n=e.droppables;if(r){var o=n[r];return o.frame?o:null}var i=function(e,t){var r=H(qt(t),(function(t){return t.frame||_(!1),Fe(t.frame.pageMarginBox)(e)}));return r}(t,n);return i}({center:a,destination:Te(t.impact),droppables:t.dimensions.droppables});if(u){var c=function(e){var t=e.droppable,r=e.subject,n=e.center,o=e.dragStartTime,i=e.shouldUseTimeDampening,a=t.frame;if(!a)return null;var s=Zt({dragStartTime:o,container:a.pageMarginBox,subject:r,center:n,shouldUseTimeDampening:i});return s&&er(t,s)?s:null}({dragStartTime:r,droppable:u,subject:s,center:a,shouldUseTimeDampening:n});c&&i(u.descriptor.id,c)}},rr=function(e){var t=e.move,r=e.scrollDroppable,n=e.scrollWindow;return function(e){var o=e.scrollJumpRequest;if(o){var i=Te(e.impact);i||_(!1);var a=function(e,t){if(!er(e,t))return t;var n=function(e,t){var r=e.frame;return r&&er(e,t)?Kt({current:r.scroll.current,max:r.scroll.max,change:t}):null}(e,t);if(!n)return r(e.descriptor.id,t),null;var o=j(t,n);return r(e.descriptor.id,o),j(t,o)}(e.dimensions.droppables[i],o);if(a){var s=e.viewport,l=function(e,t,r){if(!e)return r;if(!Jt(t,r))return r;var o=function(e,t){if(!Jt(e,t))return null;var r=e.scroll.max,n=e.scroll.current;return Kt({current:n,max:r,change:t})}(t,r);if(!o)return n(r),null;var i=j(r,o);return n(i),j(r,i)}(e.isWindowScrollAllowed,s,a);l&&function(e,r){var n=N(e.current.client.selection,r);t({client:n})}(e,l)}}}},nr=function(e){var t=e.scrollDroppable,r=e.scrollWindow,n=e.move,o=function(e){var t=e.scrollWindow,r=e.scrollDroppable,n=(0,f.A)(t),o=(0,f.A)(r),i=null,a=function(e){i||_(!1);var t=i,r=t.shouldUseTimeDampening,a=t.dragStartTime;tr({state:e,scrollWindow:n,scrollDroppable:o,dragStartTime:a,shouldUseTimeDampening:r})};return{start:function(e){i&&_(!1);var t=Date.now(),r=!1,n=function(){r=!0};tr({state:e,dragStartTime:0,shouldUseTimeDampening:!1,scrollWindow:n,scrollDroppable:n}),i={dragStartTime:t,shouldUseTimeDampening:r},r&&a(e)},stop:function(){i&&(n.cancel(),o.cancel(),i=null)},scroll:a}}({scrollWindow:r,scrollDroppable:t}),i=rr({move:n,scrollWindow:r,scrollDroppable:t});return{scroll:function(e){"DRAGGING"===e.phase&&("FLUID"!==e.movementMode?e.scrollJumpRequest&&i(e):o.scroll(e))},start:o.start,stop:o.stop}},or="data-rbd",ir={base:Rt=or+"-drag-handle",draggableId:Rt+"-draggable-id",contextId:Rt+"-context-id"},ar=function(){var e=or+"-draggable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),sr=function(){var e=or+"-droppable";return{base:e,contextId:e+"-context-id",id:e+"-id"}}(),lr={contextId:or+"-scroll-container-context-id"},ur=function(e,t){return e.map((function(e){var r=e.styles[t];return r?e.selector+" { "+r+" }":""})).join(" ")},cr=function(e){var t,r,n,o=(t=e,function(e){return"["+e+'="'+t+'"]'}),i=(r="\n      cursor: -webkit-grab;\n      cursor: grab;\n    ",{selector:o(ir.contextId),styles:{always:"\n          -webkit-touch-callout: none;\n          -webkit-tap-highlight-color: rgba(0,0,0,0);\n          touch-action: manipulation;\n        ",resting:r,dragging:"pointer-events: none;",dropAnimating:r}}),a=[(n="\n      transition: "+ht.outOfTheWay+";\n    ",{selector:o(ar.contextId),styles:{dragging:n,dropAnimating:n,userCancel:n}}),i,{selector:o(sr.contextId),styles:{always:"overflow-anchor: none;"}},{selector:"body",styles:{dragging:"\n        cursor: grabbing;\n        cursor: -webkit-grabbing;\n        user-select: none;\n        -webkit-user-select: none;\n        -moz-user-select: none;\n        -ms-user-select: none;\n        overflow-anchor: none;\n      "}}];return{always:ur(a,"always"),resting:ur(a,"resting"),dragging:ur(a,"dragging"),dropAnimating:ur(a,"dropAnimating"),userCancel:ur(a,"userCancel")}},dr="undefined"!=typeof window&&void 0!==window.document&&void 0!==window.document.createElement?n.useLayoutEffect:n.useEffect,fr=function(){var e=document.querySelector("head");return e||_(!1),e},mr=function(e){var t=document.createElement("style");return e&&t.setAttribute("nonce",e),t.type="text/css",t},pr=function(e){return e&&e.ownerDocument?e.ownerDocument.defaultView:window};function hr(e){return e instanceof pr(e).HTMLElement}function gr(){var e={draggables:{},droppables:{}},t=[];function r(e){t.length&&t.forEach((function(t){return t(e)}))}function n(t){return e.draggables[t]||null}function o(t){return e.droppables[t]||null}return{draggable:{register:function(t){e.draggables[t.descriptor.id]=t,r({type:"ADDITION",value:t})},update:function(t,r){var n=e.draggables[r.descriptor.id];n&&n.uniqueId===t.uniqueId&&(delete e.draggables[r.descriptor.id],e.draggables[t.descriptor.id]=t)},unregister:function(t){var o=t.descriptor.id,i=n(o);i&&t.uniqueId===i.uniqueId&&(delete e.draggables[o],r({type:"REMOVAL",value:t}))},getById:function(e){var t=n(e);return t||_(!1),t},findById:n,exists:function(e){return Boolean(n(e))},getAllByType:function(t){return V(e.draggables).filter((function(e){return e.descriptor.type===t}))}},droppable:{register:function(t){e.droppables[t.descriptor.id]=t},unregister:function(t){var r=o(t.descriptor.id);r&&t.uniqueId===r.uniqueId&&delete e.droppables[t.descriptor.id]},getById:function(e){var t=o(e);return t||_(!1),t},findById:o,exists:function(e){return Boolean(o(e))},getAllByType:function(t){return V(e.droppables).filter((function(e){return e.descriptor.type===t}))}},subscribe:function(e){return t.push(e),function(){var r=t.indexOf(e);-1!==r&&t.splice(r,1)}},clean:function(){e.draggables={},e.droppables={},t.length=0}}}var br=o().createContext(null),yr=function(){var e=document.body;return e||_(!1),e},vr={position:"absolute",width:"1px",height:"1px",margin:"-1px",border:"0",padding:"0",overflow:"hidden",clip:"rect(0 0 0 0)","clip-path":"inset(100%)"},Dr=function(e){return"rbd-announcement-"+e},_r=0,xr={separator:"::"};function kr(e,t){return void 0===t&&(t=xr),(0,u.Kr)((function(){return""+e+t.separator+_r++}),[t.separator,e])}var Er=o().createContext(null);function wr(e){var t=(0,n.useRef)(e);return(0,n.useEffect)((function(){t.current=e})),t}var Cr,Mr,Ar=((Cr={})[13]=!0,Cr[9]=!0,Cr),Nr=function(e){Ar[e.keyCode]&&e.preventDefault()},jr=function(){var e="visibilitychange";return"undefined"==typeof document?e:H([e,"ms"+e,"webkit"+e,"moz"+e,"o"+e],(function(e){return"on"+e in document}))||e}(),Or={type:"IDLE"};function Tr(){}var Sr=((Mr={})[34]=!0,Mr[33]=!0,Mr[36]=!0,Mr[35]=!0,Mr);var Ir={type:"IDLE"},Fr={input:!0,button:!0,textarea:!0,select:!0,option:!0,optgroup:!0,video:!0,audio:!0};function Lr(e,t){if(null==t)return!1;if(Boolean(Fr[t.tagName.toLowerCase()]))return!0;var r=t.getAttribute("contenteditable");return"true"===r||""===r||t!==e&&Lr(e,t.parentElement)}function Rr(e,t){var r=t.target;return!!hr(r)&&Lr(e,r)}var Pr=function(e){return(0,c.l)(e.getBoundingClientRect()).center},Br=function(){var e="matches";return"undefined"==typeof document?e:H([e,"msMatchesSelector","webkitMatchesSelector"],(function(e){return e in Element.prototype}))||e}();function zr(e,t){return null==e?null:e[Br](t)?e:zr(e.parentElement,t)}function qr(e,t){return e.closest?e.closest(t):zr(e,t)}function Vr(e){e.preventDefault()}function Ur(e){var t=e.expected,r=e.phase,n=e.isLockActive;return e.shouldWarn,!!n()&&t===r}function Hr(e){var t=e.lockAPI,r=e.store,n=e.registry,o=e.draggableId;if(t.isClaimed())return!1;var i=n.draggable.findById(o);return!!i&&!!i.options.isEnabled&&!!Bt(r.getState(),o)}var Yr=[function(e){var t=(0,n.useRef)(Or),r=(0,n.useRef)(g),o=(0,u.Kr)((function(){return{eventName:"mousedown",fn:function(t){if(!t.defaultPrevented&&0===t.button&&!(t.ctrlKey||t.metaKey||t.shiftKey||t.altKey)){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,s,{sourceEvent:t});if(o){t.preventDefault();var i={x:t.clientX,y:t.clientY};r.current(),d(o,i)}}}}}}),[e]),i=(0,u.Kr)((function(){return{eventName:"webkitmouseforcewillbegin",fn:function(t){if(!t.defaultPrevented){var r=e.findClosestDraggableId(t);if(r){var n=e.findOptionsForDraggable(r);n&&(n.shouldRespectForcePress||e.canGetLock(r)&&t.preventDefault())}}}}}),[e]),a=(0,u.hb)((function(){r.current=b(window,[i,o],{passive:!1,capture:!0})}),[i,o]),s=(0,u.hb)((function(){"IDLE"!==t.current.type&&(t.current=Or,r.current(),a())}),[a]),l=(0,u.hb)((function(){var e=t.current;s(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[s]),c=(0,u.hb)((function(){var e=function(e){var t=e.cancel,r=e.completed,n=e.getPhase,o=e.setPhase;return[{eventName:"mousemove",fn:function(e){var t=e.button,r=e.clientX,i=e.clientY;if(0===t){var a={x:r,y:i},s=n();if("DRAGGING"===s.type)return e.preventDefault(),void s.actions.move(a);if("PENDING"!==s.type&&_(!1),l=s.point,u=a,Math.abs(u.x-l.x)>=5||Math.abs(u.y-l.y)>=5){var l,u;e.preventDefault();var c=s.actions.fluidLift(a);o({type:"DRAGGING",actions:c})}}}},{eventName:"mouseup",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"mousedown",fn:function(e){"DRAGGING"===n().type&&e.preventDefault(),t()}},{eventName:"keydown",fn:function(e){if("PENDING"!==n().type)return 27===e.keyCode?(e.preventDefault(),void t()):void Nr(e);t()}},{eventName:"resize",fn:t},{eventName:"scroll",options:{passive:!0,capture:!1},fn:function(){"PENDING"===n().type&&t()}},{eventName:"webkitmouseforcedown",fn:function(e){var r=n();"IDLE"===r.type&&_(!1),r.actions.shouldRespectForcePress()?t():e.preventDefault()}},{eventName:jr,fn:t}]}({cancel:l,completed:s,getPhase:function(){return t.current},setPhase:function(e){t.current=e}});r.current=b(window,e,{capture:!0,passive:!1})}),[l,s]),d=(0,u.hb)((function(e,r){"IDLE"!==t.current.type&&_(!1),t.current={type:"PENDING",point:r,actions:e},c()}),[c]);dr((function(){return a(),function(){r.current()}}),[a])},function(e){var t=(0,n.useRef)(Tr),r=(0,u.Kr)((function(){return{eventName:"keydown",fn:function(r){if(!r.defaultPrevented&&32===r.keyCode){var n=e.findClosestDraggableId(r);if(n){var i=e.tryGetLock(n,l,{sourceEvent:r});if(i){r.preventDefault();var a=!0,s=i.snapLift();t.current(),t.current=b(window,function(e,t){function r(){t(),e.cancel()}return[{eventName:"keydown",fn:function(n){return 27===n.keyCode?(n.preventDefault(),void r()):32===n.keyCode?(n.preventDefault(),t(),void e.drop()):40===n.keyCode?(n.preventDefault(),void e.moveDown()):38===n.keyCode?(n.preventDefault(),void e.moveUp()):39===n.keyCode?(n.preventDefault(),void e.moveRight()):37===n.keyCode?(n.preventDefault(),void e.moveLeft()):void(Sr[n.keyCode]?n.preventDefault():Nr(n))}},{eventName:"mousedown",fn:r},{eventName:"mouseup",fn:r},{eventName:"click",fn:r},{eventName:"touchstart",fn:r},{eventName:"resize",fn:r},{eventName:"wheel",fn:r,options:{passive:!0}},{eventName:jr,fn:r}]}(s,l),{capture:!0,passive:!1})}}}function l(){a||_(!1),a=!1,t.current(),o()}}}}),[e]),o=(0,u.hb)((function(){t.current=b(window,[r],{passive:!1,capture:!0})}),[r]);dr((function(){return o(),function(){t.current()}}),[o])},function(e){var t=(0,n.useRef)(Ir),r=(0,n.useRef)(g),o=(0,u.hb)((function(){return t.current}),[]),i=(0,u.hb)((function(e){t.current=e}),[]),a=(0,u.Kr)((function(){return{eventName:"touchstart",fn:function(t){if(!t.defaultPrevented){var n=e.findClosestDraggableId(t);if(n){var o=e.tryGetLock(n,l,{sourceEvent:t});if(o){var i=t.touches[0],a={x:i.clientX,y:i.clientY};r.current(),m(o,a)}}}}}}),[e]),s=(0,u.hb)((function(){r.current=b(window,[a],{capture:!0,passive:!1})}),[a]),l=(0,u.hb)((function(){var e=t.current;"IDLE"!==e.type&&("PENDING"===e.type&&clearTimeout(e.longPressTimerId),i(Ir),r.current(),s())}),[s,i]),c=(0,u.hb)((function(){var e=t.current;l(),"DRAGGING"===e.type&&e.actions.cancel({shouldBlockNextClick:!0}),"PENDING"===e.type&&e.actions.abort()}),[l]),d=(0,u.hb)((function(){var e={capture:!0,passive:!1},t={cancel:c,completed:l,getPhase:o},n=b(window,function(e){var t=e.cancel,r=e.completed,n=e.getPhase;return[{eventName:"touchmove",options:{capture:!1},fn:function(e){var r=n();if("DRAGGING"===r.type){r.hasMoved=!0;var o=e.touches[0],i={x:o.clientX,y:o.clientY};e.preventDefault(),r.actions.move(i)}else t()}},{eventName:"touchend",fn:function(e){var o=n();"DRAGGING"===o.type?(e.preventDefault(),o.actions.drop({shouldBlockNextClick:!0}),r()):t()}},{eventName:"touchcancel",fn:function(e){"DRAGGING"===n().type?(e.preventDefault(),t()):t()}},{eventName:"touchforcechange",fn:function(e){var r=n();"IDLE"===r.type&&_(!1);var o=e.touches[0];if(o&&o.force>=.15){var i=r.actions.shouldRespectForcePress();if("PENDING"!==r.type)return i?r.hasMoved?void e.preventDefault():void t():void e.preventDefault();i&&t()}}},{eventName:jr,fn:t}]}(t),e),i=b(window,function(e){var t=e.cancel,r=e.getPhase;return[{eventName:"orientationchange",fn:t},{eventName:"resize",fn:t},{eventName:"contextmenu",fn:function(e){e.preventDefault()}},{eventName:"keydown",fn:function(e){"DRAGGING"===r().type?(27===e.keyCode&&e.preventDefault(),t()):t()}},{eventName:jr,fn:t}]}(t),e);r.current=function(){n(),i()}}),[c,o,l]),f=(0,u.hb)((function(){var e=o();"PENDING"!==e.type&&_(!1);var t=e.actions.fluidLift(e.point);i({type:"DRAGGING",actions:t,hasMoved:!1})}),[o,i]),m=(0,u.hb)((function(e,t){"IDLE"!==o().type&&_(!1);var r=setTimeout(f,120);i({type:"PENDING",point:t,actions:e,longPressTimerId:r}),d()}),[d,o,i,f]);dr((function(){return s(),function(){r.current();var e=o();"PENDING"===e.type&&(clearTimeout(e.longPressTimerId),i(Ir))}}),[o,s,i]),dr((function(){return b(window,[{eventName:"touchmove",fn:function(){},options:{capture:!1,passive:!1}}])}),[])}];function Qr(e){var t=e.contextId,r=e.store,o=e.registry,i=e.customSensors,s=e.enableDefaultSensors,l=[].concat(s?Yr:[],i||[]),c=(0,n.useState)((function(){return function(){var e=null;function t(){e||_(!1),e=null}return{isClaimed:function(){return Boolean(e)},isActive:function(t){return t===e},claim:function(t){e&&_(!1);var r={abandon:t};return e=r,r},release:t,tryAbandon:function(){e&&(e.abandon(),t())}}}()}))[0],d=(0,u.hb)((function(e,t){e.isDragging&&!t.isDragging&&c.tryAbandon()}),[c]);dr((function(){var e=r.getState();return r.subscribe((function(){var t=r.getState();d(e,t),e=t}))}),[c,r,d]),dr((function(){return c.tryAbandon}),[c.tryAbandon]);for(var m=(0,u.hb)((function(e){return Hr({lockAPI:c,registry:o,store:r,draggableId:e})}),[c,o,r]),p=(0,u.hb)((function(e,n,i){return function(e){var t=e.lockAPI,r=e.contextId,n=e.store,o=e.registry,i=e.draggableId,s=e.forceSensorStop,l=e.sourceEvent;if(!Hr({lockAPI:t,store:n,registry:o,draggableId:i}))return null;var u=o.draggable.getById(i),c=function(e,t){var r="["+ar.contextId+'="'+e+'"]',n=H(Y(document.querySelectorAll(r)),(function(e){return e.getAttribute(ar.id)===t}));return n&&hr(n)?n:null}(r,u.descriptor.id);if(!c)return null;if(l&&!u.options.canDragInteractiveElements&&Rr(c,l))return null;var d=t.claim(s||g),m="PRE_DRAG";function p(){return u.options.shouldRespectForcePress}function h(){return t.isActive(d)}var y=function(e,t){Ur({expected:e,phase:m,isLockActive:h,shouldWarn:!0})&&n.dispatch(t())}.bind(null,"DRAGGING");function v(e){function r(){t.release(),m="COMPLETED"}function o(t,o){if(void 0===o&&(o={shouldBlockNextClick:!1}),e.cleanup(),o.shouldBlockNextClick){var i=b(window,[{eventName:"click",fn:Vr,options:{once:!0,passive:!1,capture:!0}}]);setTimeout(i)}r(),n.dispatch(ut({reason:t}))}return"PRE_DRAG"!==m&&(r(),"PRE_DRAG"!==m&&_(!1)),n.dispatch($e(e.liftActionArgs)),m="DRAGGING",(0,a.A)({isActive:function(){return Ur({expected:"DRAGGING",phase:m,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,drop:function(e){return o("DROP",e)},cancel:function(e){return o("CANCEL",e)}},e.actions)}return{isActive:function(){return Ur({expected:"PRE_DRAG",phase:m,isLockActive:h,shouldWarn:!1})},shouldRespectForcePress:p,fluidLift:function(e){var t=(0,f.A)((function(e){y((function(){return rt({client:e})}))})),r=v({liftActionArgs:{id:i,clientSelection:e,movementMode:"FLUID"},cleanup:function(){return t.cancel()},actions:{move:t}});return(0,a.A)({},r,{move:t})},snapLift:function(){var e={moveUp:function(){return y(nt)},moveRight:function(){return y(it)},moveDown:function(){return y(ot)},moveLeft:function(){return y(at)}};return v({liftActionArgs:{id:i,clientSelection:Pr(c),movementMode:"SNAP"},cleanup:g,actions:e})},abort:function(){Ur({expected:"PRE_DRAG",phase:m,isLockActive:h,shouldWarn:!0})&&t.release()}}}({lockAPI:c,registry:o,contextId:t,store:r,draggableId:e,forceSensorStop:n,sourceEvent:i&&i.sourceEvent?i.sourceEvent:null})}),[t,c,o,r]),h=(0,u.hb)((function(e){return function(e,t){var r=function(e,t){var r,n=t.target;if(!((r=n)instanceof pr(r).Element))return null;var o=function(e){return"["+ir.contextId+'="'+e+'"]'}(e),i=qr(n,o);return i&&hr(i)?i:null}(e,t);return r?r.getAttribute(ir.draggableId):null}(t,e)}),[t]),y=(0,u.hb)((function(e){var t=o.draggable.findById(e);return t?t.options:null}),[o.draggable]),v=(0,u.hb)((function(){c.isClaimed()&&(c.tryAbandon(),"IDLE"!==r.getState().phase&&r.dispatch(st()))}),[c,r]),D=(0,u.hb)(c.isClaimed,[c]),x=(0,u.Kr)((function(){return{canGetLock:m,tryGetLock:p,findClosestDraggableId:h,findOptionsForDraggable:y,tryReleaseLock:v,isLockClaimed:D}}),[m,p,h,y,v,D]),k=0;k<l.length;k++)l[k](x)}var Wr=function(e){return{onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragEnd:e.onDragEnd,onDragUpdate:e.onDragUpdate}};function Gr(e){return e.current||_(!1),e.current}function Zr(e){var t=e.contextId,r=e.setCallbacks,i=e.sensors,c=e.nonce,f=e.dragHandleUsageInstructions,m=(0,n.useRef)(null),p=wr(e),h=(0,u.hb)((function(){return Wr(p.current)}),[p]),g=function(e){var t=(0,u.Kr)((function(){return Dr(e)}),[e]),r=(0,n.useRef)(null);return(0,n.useEffect)((function(){var e=document.createElement("div");return r.current=e,e.id=t,e.setAttribute("aria-live","assertive"),e.setAttribute("aria-atomic","true"),(0,a.A)(e.style,vr),yr().appendChild(e),function(){setTimeout((function(){var t=yr();t.contains(e)&&t.removeChild(e),e===r.current&&(r.current=null)}))}}),[t]),(0,u.hb)((function(e){var t=r.current;t&&(t.textContent=e)}),[])}(t),b=function(e){var t=e.contextId,r=e.text,o=kr("hidden-text",{separator:"-"}),i=(0,u.Kr)((function(){return"rbd-hidden-text-"+(e={contextId:t,uniqueId:o}).contextId+"-"+e.uniqueId;var e}),[o,t]);return(0,n.useEffect)((function(){var e=document.createElement("div");return e.id=i,e.textContent=r,e.style.display="none",yr().appendChild(e),function(){var t=yr();t.contains(e)&&t.removeChild(e)}}),[i,r]),i}({contextId:t,text:f}),y=function(e,t){var r=(0,u.Kr)((function(){return cr(e)}),[e]),o=(0,n.useRef)(null),i=(0,n.useRef)(null),a=(0,u.hb)((0,d.A)((function(e){var t=i.current;t||_(!1),t.textContent=e})),[]),s=(0,u.hb)((function(e){var t=o.current;t||_(!1),t.textContent=e}),[]);dr((function(){(o.current||i.current)&&_(!1);var n=mr(t),l=mr(t);return o.current=n,i.current=l,n.setAttribute(or+"-always",e),l.setAttribute(or+"-dynamic",e),fr().appendChild(n),fr().appendChild(l),s(r.always),a(r.resting),function(){var e=function(e){var t=e.current;t||_(!1),fr().removeChild(t),e.current=null};e(o),e(i)}}),[t,s,a,r.always,r.resting,e]);var l=(0,u.hb)((function(){return a(r.dragging)}),[a,r.dragging]),c=(0,u.hb)((function(e){a("DROP"!==e?r.userCancel:r.dropAnimating)}),[a,r.dropAnimating,r.userCancel]),f=(0,u.hb)((function(){i.current&&a(r.resting)}),[a,r.resting]);return(0,u.Kr)((function(){return{dragging:l,dropping:c,resting:f}}),[l,c,f])}(t,c),v=(0,u.hb)((function(e){Gr(m).dispatch(e)}),[]),D=(0,u.Kr)((function(){return(0,s.zH)({publishWhileDragging:Ke,updateDroppableScroll:Je,updateDroppableIsEnabled:et,updateDroppableIsCombineEnabled:tt,collectionStarting:Xe},v)}),[v]),x=function(){var e=(0,u.Kr)(gr,[]);return(0,n.useEffect)((function(){return function(){requestAnimationFrame(e.clean)}}),[e]),e}(),k=(0,u.Kr)((function(){return Pt(x,D)}),[x,D]),E=(0,u.Kr)((function(){return nr((0,a.A)({scrollWindow:zt,scrollDroppable:k.scrollDroppable},(0,s.zH)({move:rt},v)))}),[k.scrollDroppable,v]),w=function(e){var t=(0,n.useRef)({}),r=(0,n.useRef)(null),o=(0,n.useRef)(null),i=(0,n.useRef)(!1),a=(0,u.hb)((function(e,r){var n={id:e,focus:r};return t.current[e]=n,function(){var r=t.current;r[e]!==n&&delete r[e]}}),[]),s=(0,u.hb)((function(t){var r=function(e,t){var r="["+ir.contextId+'="'+e+'"]',n=Y(document.querySelectorAll(r));if(!n.length)return null;var o=H(n,(function(e){return e.getAttribute(ir.draggableId)===t}));return o&&hr(o)?o:null}(e,t);r&&r!==document.activeElement&&r.focus()}),[e]),l=(0,u.hb)((function(e,t){r.current===e&&(r.current=t)}),[]),c=(0,u.hb)((function(){o.current||i.current&&(o.current=requestAnimationFrame((function(){o.current=null;var e=r.current;e&&s(e)})))}),[s]),d=(0,u.hb)((function(e){r.current=null;var t=document.activeElement;t&&t.getAttribute(ir.draggableId)===e&&(r.current=e)}),[]);return dr((function(){return i.current=!0,function(){i.current=!1;var e=o.current;e&&cancelAnimationFrame(e)}}),[]),(0,u.Kr)((function(){return{register:a,tryRecordFocus:d,tryRestoreFocusRecorded:c,tryShiftRecord:l}}),[a,d,c,l])}(t),C=(0,u.Kr)((function(){return Ot({announce:g,autoScroller:E,dimensionMarshal:k,focusMarshal:w,getResponders:h,styleMarshal:y})}),[g,E,k,w,h,y]);m.current=C;var M=(0,u.hb)((function(){var e=Gr(m);"IDLE"!==e.getState().phase&&e.dispatch(st())}),[]),A=(0,u.hb)((function(){var e=Gr(m).getState();return e.isDragging||"DROP_ANIMATING"===e.phase}),[]);r((0,u.Kr)((function(){return{isDragging:A,tryAbort:M}}),[A,M]));var N=(0,u.hb)((function(e){return Bt(Gr(m).getState(),e)}),[]),j=(0,u.hb)((function(){return Ie(Gr(m).getState())}),[]),O=(0,u.Kr)((function(){return{marshal:k,focus:w,contextId:t,canLift:N,isMovementAllowed:j,dragHandleUsageInstructionsId:b,registry:x}}),[t,k,b,w,N,j,x]);return Qr({contextId:t,store:C,registry:x,customSensors:i,enableDefaultSensors:!1!==e.enableDefaultSensors}),(0,n.useEffect)((function(){return M}),[M]),o().createElement(Er.Provider,{value:O},o().createElement(l.Kq,{context:br,store:C},e.children))}var $r=0;function Kr(e){var t=(0,u.Kr)((function(){return""+$r++}),[]),r=e.dragHandleUsageInstructions||M.dragHandleUsageInstructions;return o().createElement(x,null,(function(n){return o().createElement(Zr,{nonce:e.nonce,contextId:t,setCallbacks:n,dragHandleUsageInstructions:r,enableDefaultSensors:e.enableDefaultSensors,sensors:e.sensors,onBeforeCapture:e.onBeforeCapture,onBeforeDragStart:e.onBeforeDragStart,onDragStart:e.onDragStart,onDragUpdate:e.onDragUpdate,onDragEnd:e.onDragEnd},e.children)}))}var Xr=function(e){return function(t){return e===t}},Jr=Xr("scroll"),en=Xr("auto"),tn=(Xr("visible"),function(e,t){return t(e.overflowX)||t(e.overflowY)}),rn=function e(t){return null==t||t===document.body||t===document.documentElement?null:function(e){var t=window.getComputedStyle(e),r={overflowX:t.overflowX,overflowY:t.overflowY};return tn(r,Jr)||tn(r,en)}(t)?t:e(t.parentElement)},nn=function(e){return{x:e.scrollLeft,y:e.scrollTop}},on=function e(t){return!!t&&("fixed"===window.getComputedStyle(t).position||e(t.parentElement))},an={passive:!1},sn={passive:!0},ln=function(e){return e.shouldPublishImmediately?an:sn};function un(e){var t=(0,n.useContext)(e);return t||_(!1),t}var cn=function(e){return e&&e.env.closestScrollable||null};function dn(){}var fn={width:0,height:0,margin:{top:0,right:0,bottom:0,left:0}},mn=o().memo((function(e){var t=(0,n.useRef)(null),r=(0,u.hb)((function(){t.current&&(clearTimeout(t.current),t.current=null)}),[]),i=e.animate,a=e.onTransitionEnd,s=e.onClose,l=e.contextId,c=(0,n.useState)("open"===e.animate),d=c[0],f=c[1];(0,n.useEffect)((function(){return d?"open"!==i?(r(),f(!1),dn):t.current?dn:(t.current=setTimeout((function(){t.current=null,f(!1)})),r):dn}),[i,d,r]);var m=(0,u.hb)((function(e){"height"===e.propertyName&&(a(),"close"===i&&s())}),[i,s,a]),p=function(e){var t=e.isAnimatingOpenOnMount,r=e.placeholder,n=e.animate,o=function(e){var t=e.placeholder;return e.isAnimatingOpenOnMount||"close"===e.animate?fn:{height:t.client.borderBox.height,width:t.client.borderBox.width,margin:t.client.margin}}({isAnimatingOpenOnMount:t,placeholder:r,animate:n});return{display:r.display,boxSizing:"border-box",width:o.width,height:o.height,marginTop:o.margin.top,marginRight:o.margin.right,marginBottom:o.margin.bottom,marginLeft:o.margin.left,flexShrink:"0",flexGrow:"0",pointerEvents:"none",transition:"none"!==n?ht.placeholder:null}}({isAnimatingOpenOnMount:d,animate:e.animate,placeholder:e.placeholder});return o().createElement(e.placeholder.tagName,{style:p,"data-rbd-placeholder-context-id":l,onTransitionEnd:m,ref:e.innerRef})})),pn=o().createContext(null),hn=function(e){function t(){for(var t,r=arguments.length,n=new Array(r),o=0;o<r;o++)n[o]=arguments[o];return(t=e.call.apply(e,[this].concat(n))||this).state={isVisible:Boolean(t.props.on),data:t.props.on,animate:t.props.shouldAnimate&&t.props.on?"open":"none"},t.onClose=function(){"close"===t.state.animate&&t.setState({isVisible:!1})},t}return(0,i.A)(t,e),t.getDerivedStateFromProps=function(e,t){return e.shouldAnimate?e.on?{isVisible:!0,data:e.on,animate:"open"}:t.isVisible?{isVisible:!0,data:t.data,animate:"close"}:{isVisible:!1,animate:"close",data:null}:{isVisible:Boolean(e.on),data:e.on,animate:"none"}},t.prototype.render=function(){if(!this.state.isVisible)return null;var e={onClose:this.onClose,data:this.state.data,animate:this.state.animate};return this.props.children(e)},t}(o().PureComponent),gn=function(e,t){return t?ht.drop(t.duration):e?ht.snap:ht.fluid},bn=function(e,t){return e?t?dt:ft:null};function yn(e){return"DRAGGING"===e.type?(r=(t=e).dimension.client,n=t.offset,o=t.combineWith,i=t.dropping,a=Boolean(o),s=function(e){return null!=e.forceShouldAnimate?e.forceShouldAnimate:"SNAP"===e.mode}(t),l=Boolean(i),u=l?function(e,t){var r=gt(e);return r?t?r+" scale("+mt+")":r:null}(n,a):bt(n),{position:"fixed",top:r.marginBox.top,left:r.marginBox.left,boxSizing:"border-box",width:r.borderBox.width,height:r.borderBox.height,transition:gn(s,i),transform:u,opacity:bn(a,l),zIndex:l?4500:5e3,pointerEvents:"none"}):{transform:bt((c=e).offset),transition:c.shouldAnimateDisplacement?null:"none"};var t,r,n,o,i,a,s,l,u,c}function vn(e){e.preventDefault()}var Dn=function(e,t){return e===t},_n=function(e){var t=e.combine,r=e.destination;return r?r.droppableId:t?t.droppableId:null};function xn(e){return{isDragging:!1,isDropAnimating:!1,isClone:!1,dropAnimation:null,mode:null,draggingOver:null,combineTargetFor:e,combineWith:null}}var kn={mapped:{type:"SECONDARY",offset:A,combineTargetFor:null,shouldAnimateDisplacement:!0,snapshot:xn(null)}},En={dropAnimationFinished:function(){return{type:"DROP_ANIMATION_FINISHED",payload:null}}},wn=(0,l.Ng)((function(){var e,t,r,n=(e=(0,d.A)((function(e,t){return{x:e,y:t}})),t=(0,d.A)((function(e,t,r,n,o){return{isDragging:!0,isClone:t,isDropAnimating:Boolean(o),dropAnimation:o,mode:e,draggingOver:r,combineWith:n,combineTargetFor:null}})),r=(0,d.A)((function(e,r,n,o,i,a,s){return{mapped:{type:"DRAGGING",dropping:null,draggingOver:i,combineWith:a,mode:r,offset:e,dimension:n,forceShouldAnimate:s,snapshot:t(r,o,i,a,null)}}})),function(n,o){if(n.isDragging){if(n.critical.draggable.id!==o.draggableId)return null;var i=n.current.client.offset,a=n.dimensions.draggables[o.draggableId],s=Te(n.impact),l=(c=n.impact).at&&"COMBINE"===c.at.type?c.at.combine.draggableId:null,u=n.forceShouldAnimate;return r(e(i.x,i.y),n.movementMode,a,o.isClone,s,l,u)}var c;if("DROP_ANIMATING"===n.phase){var d=n.completed;if(d.result.draggableId!==o.draggableId)return null;var f=o.isClone,m=n.dimensions.draggables[o.draggableId],p=d.result,h=p.mode,g=_n(p),b=function(e){return e.combine?e.combine.draggableId:null}(p),y={duration:n.dropDuration,curve:ct,moveTo:n.newHomeClientOffset,opacity:b?dt:null,scale:b?mt:null};return{mapped:{type:"DRAGGING",offset:n.newHomeClientOffset,dimension:m,dropping:y,draggingOver:g,combineWith:b,mode:h,forceShouldAnimate:null,snapshot:t(h,f,g,b,y)}}}return null}),o=function(){var e=(0,d.A)((function(e,t){return{x:e,y:t}})),t=(0,d.A)(xn),r=(0,d.A)((function(e,r,n){return void 0===r&&(r=null),{mapped:{type:"SECONDARY",offset:e,combineTargetFor:r,shouldAnimateDisplacement:n,snapshot:t(r)}}})),n=function(e){return e?r(A,e,!0):null},o=function(t,o,i,a){var s=i.displaced.visible[t],l=Boolean(a.inVirtualList&&a.effected[t]),u=X(i),c=u&&u.draggableId===t?o:null;if(!s){if(!l)return n(c);if(i.displaced.invisible[t])return null;var d=T(a.displacedBy.point),f=e(d.x,d.y);return r(f,c,!0)}if(l)return n(c);var m=i.displacedBy.point,p=e(m.x,m.y);return r(p,c,s.shouldAnimate)};return function(e,t){if(e.isDragging)return e.critical.draggable.id===t.draggableId?null:o(t.draggableId,e.critical.draggable.id,e.impact,e.afterCritical);if("DROP_ANIMATING"===e.phase){var r=e.completed;return r.result.draggableId===t.draggableId?null:o(t.draggableId,r.result.draggableId,r.impact,r.afterCritical)}return null}}();return function(e,t){return n(e,t)||o(e,t)||kn}}),En,null,{context:br,pure:!0,areStatePropsEqual:Dn})((function(e){var t=(0,n.useRef)(null),r=(0,u.hb)((function(e){t.current=e}),[]),o=(0,u.hb)((function(){return t.current}),[]),i=un(Er),a=i.contextId,s=i.dragHandleUsageInstructionsId,l=i.registry,d=un(pn),f=d.type,m=d.droppableId,p=(0,u.Kr)((function(){return{id:e.draggableId,index:e.index,type:f,droppableId:m}}),[e.draggableId,e.index,f,m]),h=e.children,g=e.draggableId,b=e.isEnabled,y=e.shouldRespectForcePress,v=e.canDragInteractiveElements,D=e.isClone,x=e.mapped,k=e.dropAnimationFinished;D||function(e){var t=kr("draggable"),r=e.descriptor,o=e.registry,i=e.getDraggableRef,a=e.canDragInteractiveElements,s=e.shouldRespectForcePress,l=e.isEnabled,d=(0,u.Kr)((function(){return{canDragInteractiveElements:a,shouldRespectForcePress:s,isEnabled:l}}),[a,l,s]),f=(0,u.hb)((function(e){var t=i();return t||_(!1),function(e,t,r){void 0===r&&(r=A);var n=window.getComputedStyle(t),o=t.getBoundingClientRect(),i=(0,c.a)(o,n),a=(0,c.SQ)(i,r);return{descriptor:e,placeholder:{client:i,tagName:t.tagName.toLowerCase(),display:n.display},displaceBy:{x:i.marginBox.width,y:i.marginBox.height},client:i,page:a}}(r,t,e)}),[r,i]),m=(0,u.Kr)((function(){return{uniqueId:t,descriptor:r,options:d,getDimension:f}}),[r,f,d,t]),p=(0,n.useRef)(m),h=(0,n.useRef)(!0);dr((function(){return o.draggable.register(p.current),function(){return o.draggable.unregister(p.current)}}),[o.draggable]),dr((function(){if(h.current)h.current=!1;else{var e=p.current;p.current=m,o.draggable.update(m,e)}}),[m,o.draggable])}((0,u.Kr)((function(){return{descriptor:p,registry:l,getDraggableRef:o,canDragInteractiveElements:v,shouldRespectForcePress:y,isEnabled:b}}),[p,l,o,v,y,b]));var E=(0,u.Kr)((function(){return b?{tabIndex:0,role:"button","aria-describedby":s,"data-rbd-drag-handle-draggable-id":g,"data-rbd-drag-handle-context-id":a,draggable:!1,onDragStart:vn}:null}),[a,s,g,b]),w=(0,u.hb)((function(e){"DRAGGING"===x.type&&x.dropping&&"transform"===e.propertyName&&k()}),[k,x]),C=(0,u.Kr)((function(){var e=yn(x),t="DRAGGING"===x.type&&x.dropping?w:null;return{innerRef:r,draggableProps:{"data-rbd-draggable-context-id":a,"data-rbd-draggable-id":g,style:e,onTransitionEnd:t},dragHandleProps:E}}),[a,E,g,x,w,r]),M=(0,u.Kr)((function(){return{draggableId:p.id,type:p.type,source:{index:p.index,droppableId:p.droppableId}}}),[p.droppableId,p.id,p.index,p.type]);return h(C,x.snapshot,M)}));function Cn(e){return un(pn).isUsingCloneFor!==e.draggableId||e.isClone?o().createElement(wn,e):null}function Mn(e){var t="boolean"!=typeof e.isDragDisabled||!e.isDragDisabled,r=Boolean(e.disableInteractiveElementBlocking),n=Boolean(e.shouldRespectForcePress);return o().createElement(Cn,(0,a.A)({},e,{isClone:!1,isEnabled:t,canDragInteractiveElements:r,shouldRespectForcePress:n}))}var An=function(e,t){return e===t.droppable.type},Nn=function(e,t){return t.draggables[e.draggable.id]},jn={mode:"standard",type:"DEFAULT",direction:"vertical",isDropDisabled:!1,isCombineEnabled:!1,ignoreContainerClipping:!1,renderClone:null,getContainerForClone:function(){return document.body||_(!1),document.body}},On=(0,l.Ng)((function(){var e={placeholder:null,shouldAnimatePlaceholder:!0,snapshot:{isDraggingOver:!1,draggingOverWith:null,draggingFromThisWith:null,isUsingPlaceholder:!1},useClone:null},t=(0,a.A)({},e,{shouldAnimatePlaceholder:!1}),r=(0,d.A)((function(e){return{draggableId:e.id,type:e.type,source:{index:e.index,droppableId:e.droppableId}}})),n=(0,d.A)((function(n,o,i,a,s,l){var u=s.descriptor.id;if(s.descriptor.droppableId===n){var c=l?{render:l,dragging:r(s.descriptor)}:null,d={isDraggingOver:i,draggingOverWith:i?u:null,draggingFromThisWith:u,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!1,snapshot:d,useClone:c}}if(!o)return t;if(!a)return e;var f={isDraggingOver:i,draggingOverWith:u,draggingFromThisWith:null,isUsingPlaceholder:!0};return{placeholder:s.placeholder,shouldAnimatePlaceholder:!0,snapshot:f,useClone:null}}));return function(r,o){var i=o.droppableId,a=o.type,s=!o.isDropDisabled,l=o.renderClone;if(r.isDragging){var u=r.critical;if(!An(a,u))return t;var c=Nn(u,r.dimensions),d=Te(r.impact)===i;return n(i,s,d,d,c,l)}if("DROP_ANIMATING"===r.phase){var f=r.completed;if(!An(a,f.critical))return t;var m=Nn(f.critical,r.dimensions);return n(i,s,_n(f.result)===i,Te(f.impact)===i,m,l)}if("IDLE"===r.phase&&r.completed&&!r.shouldFlush){var p=r.completed;if(!An(a,p.critical))return t;var h=Te(p.impact)===i,g=Boolean(p.impact.at&&"COMBINE"===p.impact.at.type),b=p.critical.droppable.id===i;return h?g?e:t:b?e:t}return t}}),{updateViewportMaxScroll:function(e){return{type:"UPDATE_VIEWPORT_MAX_SCROLL",payload:e}}},null,{context:br,pure:!0,areStatePropsEqual:Dn})((function(e){var t=(0,n.useContext)(Er);t||_(!1);var r=t.contextId,i=t.isMovementAllowed,a=(0,n.useRef)(null),s=(0,n.useRef)(null),l=e.children,m=e.droppableId,h=e.type,g=e.mode,b=e.direction,y=e.ignoreContainerClipping,v=e.isDropDisabled,D=e.isCombineEnabled,x=e.snapshot,k=e.useClone,E=e.updateViewportMaxScroll,w=e.getContainerForClone,C=(0,u.hb)((function(){return a.current}),[]),M=(0,u.hb)((function(e){a.current=e}),[]),N=((0,u.hb)((function(){return s.current}),[]),(0,u.hb)((function(e){s.current=e}),[])),j=(0,u.hb)((function(){i()&&E({maxScroll:It()})}),[i,E]);!function(e){var t=(0,n.useRef)(null),r=un(Er),o=kr("droppable"),i=r.registry,a=r.marshal,s=wr(e),l=(0,u.Kr)((function(){return{id:e.droppableId,type:e.type,mode:e.mode}}),[e.droppableId,e.mode,e.type]),m=(0,n.useRef)(l),p=(0,u.Kr)((function(){return(0,d.A)((function(e,r){t.current||_(!1);var n={x:e,y:r};a.updateDroppableScroll(l.id,n)}))}),[l.id,a]),h=(0,u.hb)((function(){var e=t.current;return e&&e.env.closestScrollable?nn(e.env.closestScrollable):A}),[]),g=(0,u.hb)((function(){var e=h();p(e.x,e.y)}),[h,p]),b=(0,u.Kr)((function(){return(0,f.A)(g)}),[g]),y=(0,u.hb)((function(){var e=t.current,r=cn(e);e&&r||_(!1),e.scrollOptions.shouldPublishImmediately?g():b()}),[b,g]),v=(0,u.hb)((function(e,n){t.current&&_(!1);var o=s.current,i=o.getDroppableRef();i||_(!1);var a=function(e){return{closestScrollable:rn(e),isFixedOnPage:on(e)}}(i),u={ref:i,descriptor:l,env:a,scrollOptions:n};t.current=u;var d=function(e){var t=e.ref,r=e.descriptor,n=e.env,o=e.windowScroll,i=e.direction,a=e.isDropDisabled,s=e.isCombineEnabled,l=e.shouldClipSubject,u=n.closestScrollable,d=function(e,t){var r=(0,c.YH)(e);if(!t)return r;if(e!==t)return r;var n=r.paddingBox.top-t.scrollTop,o=r.paddingBox.left-t.scrollLeft,i=n+t.scrollHeight,a={top:n,right:o+t.scrollWidth,bottom:i,left:o},s=(0,c.fT)(a,r.border);return(0,c.ge)({borderBox:s,margin:r.margin,border:r.border,padding:r.padding})}(t,u),f=(0,c.SQ)(d,o),m=function(){if(!u)return null;var e=(0,c.YH)(u),t={scrollHeight:u.scrollHeight,scrollWidth:u.scrollWidth};return{client:e,page:(0,c.SQ)(e,o),scroll:nn(u),scrollSize:t,shouldClipSubject:l}}(),p=function(e){var t=e.descriptor,r=e.isEnabled,n=e.isCombineEnabled,o=e.isFixedOnPage,i=e.direction,a=e.client,s=e.page,l=e.closest,u=function(){if(!l)return null;var e=l.scrollSize,t=l.client,r=Tt({scrollHeight:e.scrollHeight,scrollWidth:e.scrollWidth,height:t.paddingBox.height,width:t.paddingBox.width});return{pageMarginBox:l.page.marginBox,frameClient:t,scrollSize:e,shouldClipSubject:l.shouldClipSubject,scroll:{initial:l.scroll,current:l.scroll,max:r,diff:{value:A,displacement:A}}}}(),c="vertical"===i?se:le;return{descriptor:t,isCombineEnabled:n,isFixedOnPage:o,axis:c,isEnabled:r,client:a,page:s,frame:u,subject:z({page:s,withPlaceholder:null,axis:c,frame:u})}}({descriptor:r,isEnabled:!a,isCombineEnabled:s,isFixedOnPage:n.isFixedOnPage,direction:i,client:d,page:f,closest:m});return p}({ref:i,descriptor:l,env:a,windowScroll:e,direction:o.direction,isDropDisabled:o.isDropDisabled,isCombineEnabled:o.isCombineEnabled,shouldClipSubject:!o.ignoreContainerClipping}),f=a.closestScrollable;return f&&(f.setAttribute(lr.contextId,r.contextId),f.addEventListener("scroll",y,ln(u.scrollOptions))),d}),[r.contextId,l,y,s]),D=(0,u.hb)((function(){var e=t.current,r=cn(e);return e&&r||_(!1),nn(r)}),[]),x=(0,u.hb)((function(){var e=t.current;e||_(!1);var r=cn(e);t.current=null,r&&(b.cancel(),r.removeAttribute(lr.contextId),r.removeEventListener("scroll",y,ln(e.scrollOptions)))}),[y,b]),k=(0,u.hb)((function(e){var r=t.current;r||_(!1);var n=cn(r);n||_(!1),n.scrollTop+=e.y,n.scrollLeft+=e.x}),[]),E=(0,u.Kr)((function(){return{getDimensionAndWatchScroll:v,getScrollWhileDragging:D,dragStopped:x,scroll:k}}),[x,v,D,k]),w=(0,u.Kr)((function(){return{uniqueId:o,descriptor:l,callbacks:E}}),[E,l,o]);dr((function(){return m.current=w.descriptor,i.droppable.register(w),function(){t.current&&x(),i.droppable.unregister(w)}}),[E,l,x,w,a,i.droppable]),dr((function(){t.current&&a.updateDroppableIsEnabled(m.current.id,!e.isDropDisabled)}),[e.isDropDisabled,a]),dr((function(){t.current&&a.updateDroppableIsCombineEnabled(m.current.id,e.isCombineEnabled)}),[e.isCombineEnabled,a])}({droppableId:m,type:h,mode:g,direction:b,isDropDisabled:v,isCombineEnabled:D,ignoreContainerClipping:y,getDroppableRef:C});var O=o().createElement(hn,{on:e.placeholder,shouldAnimate:e.shouldAnimatePlaceholder},(function(e){var t=e.onClose,n=e.data,i=e.animate;return o().createElement(mn,{placeholder:n,onClose:t,innerRef:N,animate:i,contextId:r,onTransitionEnd:j})})),T=(0,u.Kr)((function(){return{innerRef:M,placeholder:O,droppableProps:{"data-rbd-droppable-id":m,"data-rbd-droppable-context-id":r}}}),[r,m,O,M]),S=k?k.dragging.draggableId:null,I=(0,u.Kr)((function(){return{droppableId:m,type:h,isUsingCloneFor:S}}),[m,S,h]);return o().createElement(pn.Provider,{value:I},l(T,x),function(){if(!k)return null;var e=k.dragging,t=k.render,r=o().createElement(Cn,{draggableId:e.draggableId,index:e.source.index,isClone:!0,isEnabled:!0,shouldRespectForcePress:!1,canDragInteractiveElements:!0},(function(r,n){return t(r,n,e)}));return p().createPortal(r,w())}())}));On.defaultProps=jn},98658:(e,t,r)=>{"use strict";r.d(t,{A:()=>s});var n=r(31601),o=r.n(n),i=r(76314),a=r.n(i)()(o());a.push([e.id,'.srfm-ee-quick-access-container{z-index:999999}.srfm-ee-quick-access{display:flex;height:auto;width:60px;background:#1e1e1e;color:#fff;justify-content:center}.srfm-ee-quick-access .srfm-ee-quick-access__sidebar--tabs-container{position:fixed;bottom:35px}.srfm-ee-quick-access .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block--icon{fill:#fff}.srfm-ee-quick-access__sidebar{width:60px;height:100%;background:#1e1e1e;display:flex;flex-direction:column;position:absolute;overflow:auto}.srfm-ee-quick-access__sidebar ::-webkit-scrollbar{width:0;background:rgba(0,0,0,0)}.srfm-ee-quick-access__sidebar--blocks,.srfm-ee-quick-access__sidebar--actions{display:flex;flex-direction:column;justify-content:flex-start;align-items:center;overflow-y:overlay;overflow-x:hidden;cursor:pointer;max-height:calc(100vh - 212px);flex-grow:1}.srfm-ee-quick-access__sidebar--blocks--block,.srfm-ee-quick-access__sidebar--actions--block{display:flex;cursor:grab;border-radius:6px;gap:8px;padding:12px}.srfm-ee-quick-access__sidebar--blocks--block--icon,.srfm-ee-quick-access__sidebar--actions--block--icon{display:flex;width:24px;height:24px;justify-content:center;align-items:center}.srfm-ee-quick-access__sidebar--blocks--block--icon--name,.srfm-ee-quick-access__sidebar--actions--block--icon--name{display:flex;flex-direction:row;align-content:center;justify-content:center;align-items:center}.srfm-ee-quick-access__sidebar--blocks--block--icon--name .components-popover__content,.srfm-ee-quick-access__sidebar--actions--block--icon--name .components-popover__content{background:none;border:none;box-shadow:none;width:auto}.srfm-ee-quick-access__sidebar--blocks--block--icon--name .block-title,.srfm-ee-quick-access__sidebar--actions--block--icon--name .block-title{display:flex;align-content:center;justify-content:center;align-items:center;font-size:14px;border-radius:4px;margin-right:20px;margin-left:15px;background:#1e1e1e;color:#fff;padding:5px 10px;cursor:pointer}.srfm-ee-quick-access__sidebar--blocks--block--icon--name .block-title .srfm-ee-quick-access__sidebar--blocks--block--name,.srfm-ee-quick-access__sidebar--actions--block--icon--name .block-title .srfm-ee-quick-access__sidebar--blocks--block--name{padding-right:4px}.srfm-ee-quick-access__sidebar--blocks--block--icon--name .block-title .srfm-ee-quick-access__sidebar--blocks--block--name .block-title-svg,.srfm-ee-quick-access__sidebar--actions--block--icon--name .block-title .srfm-ee-quick-access__sidebar--blocks--block--name .block-title-svg{cursor:pointer;margin-top:5px;width:15px;height:15px}.srfm-ee-quick-access__sidebar--blocks--block span:not(.dashicon),.srfm-ee-quick-access__sidebar--actions--block span:not(.dashicon){display:none}.srfm-ee-quick-access__sidebar--blocks--block:hover,.srfm-ee-quick-access__sidebar--actions--block:hover{background:#1d2939}.srfm-ee-quick-access__sidebar--blocks--block:hover span:not(.dashicon),.srfm-ee-quick-access__sidebar--actions--block:hover span:not(.dashicon){display:none}.srfm-ee-quick-access__sidebar--actions{cursor:pointer;position:relative;bottom:6px;left:0;margin-top:10px}.srfm-ee-quick-access__sidebar--actions .srfm-quick-action-sidebar-wrap #plus-icon,.srfm-ee-quick-access__sidebar--actions .srfm-quick-action-sidebar-wrap #rearrange-icon{display:flex;align-content:center;justify-content:center;align-items:center;padding:12px 12px;flex-direction:column}.srfm-ee-quick-access__sidebar--tab{display:inline-block;cursor:pointer}.srfm-ee-quick-access__sidebar--tabs{display:flex;flex-direction:column}.srfm-ee-quick-access__sidebar--tabs .tab.active #plus-icon,.srfm-ee-quick-access__sidebar--tabs .tab.active #rearrange-icon{background-color:#1d2939;color:#fff}.edit-site-layout.is-full-canvas.is-edit-mode .edit-site-layout__view-mode-toggle.components-button{border-bottom:#1e1e1e}.srfm-quick-action-block-popover{margin-left:15px}.srfm-quick-action-block-popover ::-webkit-scrollbar{width:0;background:rgba(0,0,0,0)}.srfm-quick-action-block-popover .components-popover__content{width:348px;height:279px;background:#fff;padding:16px;border-radius:6px;gap:16px}.srfm-quick-action-block-popover .components-popover__content .srfm-quick-action-block-popover-search input.components-search-control__input{width:316px;height:40px;padding:10px 14px;border-radius:4px;border:1px solid #007cba;background:#fff}.srfm-quick-action-block-popover .components-popover__content .srfm-quick-action-block-popover-search input.components-search-control__input:focus{border:1px solid #007cba;box-shadow:none}.srfm-quick-action-block-popover .components-popover__content .srfm-quick-action-block-popover-search input.components-search-control__input::placeholder{color:#aaa;font-size:12px;font-weight:500}.srfm-quick-action-block-popover .components-popover__content .srfm-quick-action-block-popover-search svg{fill:#aaa}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container{display:flex;flex-wrap:wrap;overflow:hidden;flex-direction:row;align-items:stretch}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-quick-action-block-popover-header__already-present-in-quick-action-bar,.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-quick-action-block-popover-header__add-to-quick-action-bar{width:316px;padding:16px 0 8px 0}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-quick-action-block-popover-header__already-present-in-quick-action-bar .block-editor-inserter__panel-title,.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-quick-action-block-popover-header__add-to-quick-action-bar .block-editor-inserter__panel-title{color:#50575e;font-size:13px;font-weight:400;text-transform:capitalize}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap{margin:0;display:flex;flex-direction:column;align-items:center;justify-content:center;position:relative;transition:all .05s ease-in-out;align-content:stretch;width:105.33px;height:100px;border-radius:4px}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap .srfm-ee-quick-access__sidebar--blocks--block--icon{width:64px;height:48px;padding:12px 20px;gap:10px}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap svg.uagb-editor-icons rect,.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap svg.uagb-editor-icons path{stroke:#0063a1}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap .block-title{color:#1e1e1e;text-align:center;width:57px;height:28px;padding:4px 0 8px 0;gap:10px;font-size:12px;line-height:16px;letter-spacing:0}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap:hover::after{background:#007cba;content:"";border-radius:2px;bottom:0;left:0;opacity:.04;pointer-events:none;position:absolute;right:0;top:0}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .srfm-block-wrap:hover .block-title{color:#007cba;filter:brightness(0.95)}.srfm-quick-action-block-popover .components-popover__content .srfm-block-container .block-editor-inserter__no-results{padding:50px 105px}.components-popover__fallback-container svg.block-title-svg{width:10px;height:10px;fill:#fff}.components-popover__fallback-container svg.block-title-svg:hover{fill:red}.edit-site-layout__canvas .srfm-ee-quick-access__sidebar{padding-top:1px}div#widgets-editor .srfm-ee-quick-access__sidebar--blocks,div#widgets-editor .srfm-ee-quick-access__sidebar--actions{max-height:calc(100vh - 180px)}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__core svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__core svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__core svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wcfb svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wcfb svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wcfb svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wpsp svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wpsp svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__wpsp svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--cart svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--checkout svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--mini-cart-contents svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--product-top-rated svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--store-notices svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--featured-category svg path:first-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce--active-filters svg path:first-child{fill:none}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__woocommerce svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--gif path:last-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--map path:last-child,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--markdown path:last-child{fill:#fff}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--business-hours svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--business-hours svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--business-hours svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--button svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--button svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--button svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--calendly svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--calendly svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--calendly svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--contact-info svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--contact-info svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--contact-info svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--donations svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--donations svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--donations svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--eventbrite svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--eventbrite svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--eventbrite svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--google-calendar svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--google-calendar svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--google-calendar svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--image-compare svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--image-compare svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--image-compare svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--like svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--like svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--like svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--opentable svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--opentable svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--opentable svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--pinterest svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--pinterest svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--pinterest svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--podcast-player svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--podcast-player svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--podcast-player svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--rating-star svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--rating-star svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--rating-star svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--repeat-visitor svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--repeat-visitor svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--repeat-visitor svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--send-a-message svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--send-a-message svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--send-a-message svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--slideshow svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--slideshow svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--slideshow svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--story svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--story svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--story svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tiled-gallery svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tiled-gallery svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tiled-gallery svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tock svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tock svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--tock svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--payments-intro svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--payments-intro svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--payments-intro svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--blogroll svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--blogroll svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--blogroll svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--nextdoor svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--nextdoor svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--nextdoor svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--sharing-buttons svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--sharing-buttons svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__jetpack--sharing-buttons svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--container svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--container svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--container svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--buttons svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--buttons svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--buttons svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--login-button svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--login-button svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__premium-content--login-button svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__mailpoet svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__mailpoet svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__mailpoet svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart svg circle{fill:#fff;stroke-width:1.4px}.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart-menu-icon svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart-menu-icon svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart-menu-icon svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--order-confirmation svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--order-confirmation svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--order-confirmation svg circle,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart svg path,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart svg rect,.srfm-ee-quick-access-container .srfm-ee-quick-access__sidebar .srfm-ee-quick-access__sidebar--blocks .srfm-ee-quick-access__sidebar--blocks--block .srfm-ee-quick-access__sidebar--blocks--block--icon.srfm-ee-quick-access__sidebar-icon__surecart--cart svg circle{fill:none;stroke-width:1.4px}.srfm-ee-quick-access__sidebar--blocks-sortable{display:flex;flex-direction:column;overflow:auto}.srfm-ee-quick-access__sidebar--blocks-sortable--block{margin-bottom:10px}.srfm-ee-quick-access__sidebar--prevent-editor-interactions{pointer-events:none}',""]);const s=a},98869:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>o});var n=r(66778);const o=[function(e){return"function"==typeof e?(0,n.Qb)(e,"mapStateToProps"):void 0},function(e){return e?void 0:(0,n.o6)((function(){return{}}))}]},98917:(e,t)=>{"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.camelCase=void 0;var r=/^--[a-zA-Z0-9_-]+$/,n=/-([a-z])/g,o=/^[^-]+$/,i=/^-(webkit|moz|ms|o|khtml)-/,a=/^-(ms)-/,s=function(e,t){return t.toUpperCase()},l=function(e,t){return"".concat(t,"-")};t.camelCase=function(e,t){return void 0===t&&(t={}),function(e){return!e||o.test(e)||r.test(e)}(e)?e:(e=e.toLowerCase(),(e=t.reactCompat?e.replace(a,l):e.replace(i,l)).replace(n,s))}},99820:(e,t,r)=>{"use strict";r.d(t,{Ay:()=>s});var n=r(41079),o=["initMapStateToProps","initMapDispatchToProps","initMergeProps"];function i(e,t,r,n){return function(o,i){return r(e(o,i),t(n,i),i)}}function a(e,t,r,n,o){var i,a,s,l,u,c=o.areStatesEqual,d=o.areOwnPropsEqual,f=o.areStatePropsEqual,m=!1;return function(o,p){return m?function(o,m){var p,h,g=!d(m,a),b=!c(o,i,m,a);return i=o,a=m,g&&b?(s=e(i,a),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):g?(e.dependsOnOwnProps&&(s=e(i,a)),t.dependsOnOwnProps&&(l=t(n,a)),u=r(s,l,a)):b?(p=e(i,a),h=!f(p,s),s=p,h&&(u=r(s,l,a)),u):u}(o,p):(s=e(i=o,a=p),l=t(n,a),u=r(s,l,a),m=!0,u)}}function s(e,t){var r=t.initMapStateToProps,s=t.initMapDispatchToProps,l=t.initMergeProps,u=(0,n.A)(t,o),c=r(e,u),d=s(e,u),f=l(e,u);return(u.pure?a:i)(c,d,f,e,u)}}},n={};function o(e){var t=n[e];if(void 0!==t)return t.exports;var i=n[e]={id:e,loaded:!1,exports:{}};return r[e].call(i.exports,i,i.exports,o),i.loaded=!0,i.exports}o.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return o.d(t,{a:t}),t},t=Object.getPrototypeOf?e=>Object.getPrototypeOf(e):e=>e.__proto__,o.t=function(r,n){if(1&n&&(r=this(r)),8&n)return r;if("object"==typeof r&&r){if(4&n&&r.__esModule)return r;if(16&n&&"function"==typeof r.then)return r}var i=Object.create(null);o.r(i);var a={};e=e||[null,t({}),t([]),t(t)];for(var s=2&n&&r;"object"==typeof s&&!~e.indexOf(s);s=t(s))Object.getOwnPropertyNames(s).forEach((e=>a[e]=()=>r[e]));return a.default=()=>r,o.d(i,a),i},o.d=(e,t)=>{for(var r in t)o.o(t,r)&&!o.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},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})},o.nmd=e=>(e.paths=[],e.children||(e.children=[]),e),(()=>{"use strict";var e={};o.r(e),o.d(e,{Button:()=>tv,CaptionLabel:()=>rv,Chevron:()=>nv,Day:()=>ov,DayButton:()=>iv,Dropdown:()=>av,DropdownNav:()=>sv,Footer:()=>lv,Month:()=>uv,MonthCaption:()=>cv,MonthGrid:()=>dv,Months:()=>fv,MonthsDropdown:()=>mv,Nav:()=>pv,NextMonthButton:()=>hv,Option:()=>gv,PreviousMonthButton:()=>bv,Root:()=>yv,Select:()=>vv,Week:()=>Dv,WeekNumber:()=>kv,WeekNumberHeader:()=>Ev,Weekday:()=>_v,Weekdays:()=>xv,Weeks:()=>wv,YearsDropdown:()=>Cv});var t={};o.r(t),o.d(t,{formatCaption:()=>Av,formatDay:()=>jv,formatMonthCaption:()=>Nv,formatMonthDropdown:()=>Ov,formatWeekNumber:()=>Tv,formatWeekNumberHeader:()=>Sv,formatWeekdayName:()=>Iv,formatYearCaption:()=>Lv,formatYearDropdown:()=>Fv});var r={};o.r(r),o.d(r,{labelCaption:()=>Pv,labelDay:()=>qv,labelDayButton:()=>zv,labelGrid:()=>Rv,labelGridcell:()=>Bv,labelMonthDropdown:()=>Uv,labelNav:()=>Vv,labelNext:()=>Hv,labelPrevious:()=>Yv,labelWeekNumber:()=>Wv,labelWeekNumberHeader:()=>Gv,labelWeekday:()=>Qv,labelYearDropdown:()=>Zv});const n=window.wp.plugins;var i=o(56427),a=o(27723),s=o(86087),l=o(47143),u=o(43656);const c=window.wp.blockEditor,d=window.wp.preferences,f=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0];if(!window.localStorage)return null;if(!e)return localStorage;var t=localStorage.getItem(e);return t?JSON.parse(t):null};var m=o(52619);function p(e){return p="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},p(e)}function h(){return h=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},h.apply(null,arguments)}function g(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?g(Object(r),!0).forEach((function(t){y(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):g(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function y(e,t,r){return(t=function(e){var t=function(e){if("object"!=p(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=p(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==p(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function v(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const D=(0,s.memo)((function(e){var t,r,n,o,a=e.children,u=(0,s.useRef)(null),c=null===(t=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name,d=f("srfmSettingState"),p=(n=(0,s.useState)("style"),o=2,function(e){if(Array.isArray(e))return e}(n)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(n,o)||function(e,t){if(e){if("string"==typeof e)return v(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?v(e,t):void 0}}(n,o)||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.")}()),g=p[0],D=p[1];(0,s.useEffect)((function(){var e,t,r;D((r="style",null!=u&&null!==(e=u.current)&&void 0!==e&&null!==(e=e.parentElement)&&void 0!==e&&e.classList.contains("srfm-tab-content-general")&&(r="general"),null!=u&&null!==(t=u.current)&&void 0!==t&&null!==(t=t.parentElement)&&void 0!==t&&t.classList.contains("srfm-tab-content-advance")&&(r="advance"),r))}),[u]);var _=null!=e&&e.title?null==e?void 0:e.title.toLowerCase().replace(/[^a-zA-Z ]/g,"").replace(/\s+/g,"-"):"",x=null==c||null===(r=c.split("/"))||void 0===r?void 0:r.pop(),k=(0,m.applyFilters)("srfm.".concat(x,".").concat(g,".").concat(_,".before"),"",c),E=(0,m.applyFilters)("srfm.".concat(x,".").concat(g,".").concat(_),"",c);return React.createElement(i.PanelBody,h({},e,{onToggle:function(){var e,t,r;"enabled"===srfm_blocks_info.collapse_panels&&function(e){for(var t=[],r=e.parentNode.firstChild;r;)1===r.nodeType&&r!==e&&r.classList.contains("is-opened")&&t.push(r),r=r.nextSibling;return t}(u.current).forEach((function(e){e.querySelector(".components-button").click()}));var n=!1;null==u||null===(e=u.current)||void 0===e||e.classList.forEach((function(e){e.includes("srfm-advance-panel-body")&&(n=e)}));var o="style";null!=u&&null!==(t=u.current)&&void 0!==t&&null!==(t=t.parentElement)&&void 0!==t&&t.classList.contains("srfm-tab-content-general")&&(o="general"),null!=u&&null!==(r=u.current)&&void 0!==r&&null!==(r=r.parentElement)&&void 0!==r&&r.classList.contains("srfm-tab-content-advance")&&(o="advance");var i=b(b({},d),{},y({},c,b(b({},null==d?void 0:d[c]),{},{selectedPanel:n,selectedTab:o}))),a=f();a&&a.setItem("srfmSettingState",JSON.stringify(i))},ref:u,className:"srfm-advance-panel-body-".concat(_)}),k,a,E)}));var _=function(){return(0,l.useSelect)((function(e){var t;return{deviceType:(null===(t=e("core/editor"))||void 0===t?void 0:t.getDeviceType())||"Desktop"}}),[]).deviceType||""},x=o(4759);const k=function(e){var t=e.text;return t?React.createElement("p",{className:"components-base-control__help"},t):null};function E(e){return E="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(e)}function w(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function C(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?w(Object(r),!0).forEach((function(t){M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):w(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function M(e,t,r){return(t=function(e){var t=function(e){if("object"!=E(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=E(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==E(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function A(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return N(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?N(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.")}()}function N(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const j=function(e){var t,r=e.label,n=e.responsive,o=e.help,u=void 0!==o&&o,c=_(),d=A((0,s.useState)(!1),2),p=d[0],h=d[1],g=A((0,s.useState)(null),2),b=g[0],y=g[1],v=(0,s.useRef)(null),D=(0,l.select)("core/block-editor").getSelectedBlock,E=null===(t=D())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){y((0,x.xT)(v))}),[E]);var w=(0,s.useCallback)((function(e){null!==(0,l.dispatch)("core/edit-post")&&(0,(0,l.dispatch)("core/edit-post").__experimentalSetPreviewDeviceType)(e),h(p)}),[]),N={desktop:React.createElement("svg",{width:"8",height:"7",viewBox:"0 0 8 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M7.33333 0H0.666667C0.298611 0 0 0.293945 0 0.65625V5.03125C0 5.39355 0.298611 5.6875 0.666667 5.6875H3.33333L3.11111 6.34375H2.11111C1.92639 6.34375 1.77778 6.49004 1.77778 6.67188C1.77778 6.85371 1.92639 7 2.11111 7H5.88889C6.07361 7 6.22222 6.85371 6.22222 6.67188C6.22222 6.49004 6.07361 6.34375 5.88889 6.34375H4.88889L4.66667 5.6875H7.33333C7.70139 5.6875 8 5.39355 8 5.03125V0.65625C8 0.293945 7.70139 0 7.33333 0ZM7.11111 4.8125H0.888889V0.875H7.11111V4.8125Z"})),tablet:React.createElement("svg",{width:"6",height:"7",viewBox:"0 0 6 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M5 0H1C0.446667 0 0 0.390833 0 0.875V6.125C0 6.60917 0.446667 7 1 7H5C5.55333 7 6 6.60917 6 6.125V0.875C6 0.390833 5.55333 0 5 0ZM3.66667 6.41667H2.33333V6.125H3.66667V6.41667ZM5.41667 5.54167H0.583333V0.875H5.41667V5.54167Z"})),mobile:React.createElement("svg",{width:"4",height:"7",viewBox:"0 0 4 7",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",{d:"M3.33333 0H0.666667C0.297778 0 0 0.390833 0 0.875V6.125C0 6.60917 0.297778 7 0.666667 7H3.33333C3.70222 7 4 6.60917 4 6.125V0.875C4 0.390833 3.70222 0 3.33333 0ZM2.44444 6.41667H1.55556V6.125H2.44444V6.41667ZM3.61111 5.54167H0.388889V0.875H3.61111V5.54167Z"}))},j=[{name:(0,a.__)("Desktop","sureforms"),staticName:"Desktop",title:N.desktop,itemClass:"srfm-desktop-tab srfm-responsive-tabs"},{name:(0,a.__)("Tablet","sureforms"),staticName:"Tablet",title:N.tablet,itemClass:"srfm-tablet-tab srfm-responsive-tabs"},{name:(0,a.__)("Mobile","sureforms"),staticName:"Mobile",key:"mobile",title:N.mobile,itemClass:"srfm-mobile-tab srfm-responsive-tabs"}];if(!c)return null;var O=(0,x.P2)(e.label),T=(0,m.applyFilters)("srfm.".concat(E,".").concat(b,".").concat(O,".before"),"",E),S=(0,m.applyFilters)("srfm.".concat(E,".").concat(b,".").concat(O),"",E);return React.createElement("div",{ref:v,className:"srfm-responsive-label-wrap"},T,r&&React.createElement("span",{className:"srfm-control-label"},r),!p&&n&&React.createElement(i.Button,{key:"srfm-responsive-common-button",className:"srfm-responsive-common-button",onClick:function(e){var t,r=e.target,n=null;"svg"===r.tagName&&(r=r.closest(".srfm-responsive-common-button")),r.closest(".srfm-typography-options.active")&&(n=".srfm-typography-options"),r.closest(".srfm-box-shadow-options.active")&&(n=".srfm-box-shadow-options");var o=null===(t=D())||void 0===t?void 0:t.name,i=f("srfmSettingState"),a=r.closest(".srfm-inspector-tab"),s=r.closest(".components-panel__body.is-opened"),l="";s.classList&&0!==s.classList&&s.classList.forEach((function(e){e.includes("srfm-advance-panel-body")&&(l=e)}));var u="style";a.classList.contains("srfm-tab-content-general")&&(u="general"),a.classList.contains("srfm-tab-content-advance")&&(u="advance");var c=C(C({},i),{},M({},o,{selectedTab:u,selectedPanel:l,selectedSetting:n})),d=f();d&&d.setItem("srfmSettingState",JSON.stringify(c)),h(!p)}},N[c.toLowerCase()]),p&&n&&React.createElement(i.ButtonGroup,{className:"srfm-range-control-responsive components-tab-panel__tabs","aria-label":(0,a.__)("Device","sureforms")},j.map((function(e){var t=e.name,r=e.staticName,n=e.key,o=e.title,s=e.itemClass;return React.createElement(i.Tooltip,{text:(0,a.sprintf)("%s",t),key:n},React.createElement(i.Button,{key:n,className:"components-button components-tab-panel__tabs-item ".concat(s).concat(r===c?" active-tab":""),"aria-pressed":c===r,onClick:function(){return w(r)}},o))}))),React.createElement(k,{text:u}),S)};var O=o(85072),T=o.n(O),S=o(64284),I=o.n(S),F=o(77659),L=o.n(F),R=o(44868),P=o.n(R),B=o(10540),z=o.n(B),q=o(39380),V={};q.A&&q.A.locals&&(V.locals=q.A.locals);var U,H=0,Y={attributes:{id:"sureforms-editor-styles"}};Y.setAttributes=P(),Y.insert=L().bind(null,"head"),Y.domAPI=I(),Y.insertStyleElement=z(),V.use=function(e){return Y.options=e||{},H++||(U=T()(q.A,Y)),V},V.unuse=function(){H>0&&! --H&&(U(),U=null)};const Q=V;var W=o(46942),G=o.n(W);const Z=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string","default":""},"required":{"type":"boolean","default":false},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Text Field"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"textLength":{"type":"number","default":100},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"inputMask":{"type":"string","default":"none"},"customInputMask":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),$=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string","default":""},"required":{"type":"boolean","default":false},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Email"},"help":{"type":"string","default":""},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"confirmLabel":{"type":"string","default":"Confirm Email"},"isConfirmEmail":{"type":"boolean","default":false},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),K=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Phone Number"},"placeholder":{"type":"string"},"help":{"type":"string","default":""},"isUnique":{"type":"boolean","default":false},"duplicateMsg":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"autoCountry":{"type":"boolean","default":true},"defaultCountry":{"type":"string","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),X=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"required":{"type":"boolean"},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Textarea"},"help":{"type":"string","default":""},"maxLength":{"type":"number","default":""},"rows":{"type":"number","default":4},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"isRichText":{"type":"boolean","default":false},"readOnly":{"type":"boolean","default":false}}}'),J=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"required":{"type":"boolean","default":false},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"URL"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),ee=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"defaultValue":{"type":"string"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"required":{"type":"boolean","default":false},"errorMsg":{"type":"string","default":""},"placeholder":{"type":"string","default":""},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Number"},"help":{"type":"string","default":""},"formatType":{"type":"string","default":"us-style"},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"prefix":{"type":"string","default":""},"suffix":{"type":"string","default":""},"readOnly":{"type":"boolean","default":false}}}'),te=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Checkbox"},"required":{"type":"boolean"},"checked":{"type":"boolean","default":false},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),re=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"Address"},"formId":{"type":"number","default":""},"help":{"type":"string","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),ne=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"singleSelection":{"type":"boolean"},"minValue":{"type":"number"},"maxValue":{"type":"number"},"verticalLayout":{"type":"boolean"},"options":{"type":"array","default":[{"optionTitle":"Option 1","icon":"","image":""}]},"fieldWidth":{"type":"number","default":100},"choiceWidth":{"type":"number","default":50},"label":{"default":"Multi Choice","type":"string","selector":"input"},"help":{"type":"string","default":""},"style":{"type":"string","default":"buttons"},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""},"optionType":{"type":"string","default":"icon"}}}'),oe=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"required":{"type":"boolean"},"multiSelect":{"type":"boolean","default":false},"minValue":{"type":"number"},"maxValue":{"type":"number"},"searchable":{"type":"boolean","default":true},"options":{"type":"array","default":[{"label":"Option 1","icon":""},{"label":"Option 2","icon":""}]},"fieldWidth":{"type":"number","default":100},"label":{"default":"Dropdown","type":"string"},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"placeholder":{"type":"string","default":"Select an option"},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),ie=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"label":{"type":"string","default":"I consent to have this website store my submitted information so they can respond to my inquiry."},"checked":{"type":"boolean","default":false},"help":{"type":"string","default":""},"errorMsg":{"type":"string","default":""},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false},"slug":{"type":"string","default":""}}}'),ae=JSON.parse('{"attributes":{"preview":{"type":"boolean","default":false},"block_id":{"type":"string"},"fieldWidth":{"type":"number","default":100},"buttonText":{"type":"string","default":"Submit"},"formId":{"type":"number","default":""},"isConditionalLogic":{"type":"boolean","default":false}}}');function se(e){var t;return{type:"string",default:null===(t=srfm_block_data)||void 0===t||null===(t=t.srfm_default_dynamic_block_option)||void 0===t?void 0:t[e]}}function le(e){return le="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},le(e)}function ue(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ce(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?ue(Object(r),!0).forEach((function(t){de(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):ue(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function de(e,t,r){return(t=function(e){var t=function(e){if("object"!=le(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=le(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==le(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var fe={form_padding_top:{default:0},form_padding_right:{default:0},form_padding_bottom:{default:0},form_padding_left:{default:0},form_padding_unit:{default:"px"},form_padding_link:{default:!0},form_border_radius_top:{default:0},form_border_radius_right:{default:0},form_border_radius_bottom:{default:0},form_border_radius_left:{default:0},form_border_radius_unit:{default:"px"},form_border_radius_link:{default:!0}},me={instant_form_padding_top:{default:32},instant_form_padding_right:{default:32},instant_form_padding_bottom:{default:32},instant_form_padding_left:{default:32},instant_form_padding_unit:{default:"px"},instant_form_padding_link:{default:!0},instant_form_border_radius_top:{default:12},instant_form_border_radius_right:{default:12},instant_form_border_radius_bottom:{default:12},instant_form_border_radius_left:{default:12},instant_form_border_radius_unit:{default:"px"},instant_form_border_radius_link:{default:!0}},pe=ce(ce(ce({},fe),me),{},{_srfm_submit_button_text:{default:(0,a.__)("Submit","sureforms")},first_page_label:{default:(0,a.__)("Page Break Label","sureforms")},next_button_text:{default:(0,a.__)("Next","sureforms")},back_button_text:{default:(0,a.__)("Back","sureforms")},primary_color:{default:"#111C44"},text_color:{default:"#1E1E1E"},text_color_on_primary:{default:"#FFFFFF"},form_container_width:{default:620},cover_color:{default:"#111C44"},bg_color:{default:"#ffffff"},gradient_type:{default:"basic"},bg_gradient_type:{default:"linear"},bg_gradient_angle:{default:90},bg_gradient_color_1:{default:"#FFC9B2"},bg_gradient_color_2:{default:"#C7CBFF"},bg_gradient_location_1:{default:0},bg_gradient_location_2:{default:100},bg_overlay_custom_size:{default:100},bg_overlay_custom_size_unit:{default:"%"},bg_image_size_custom:{default:100},bg_image_size_custom_unit:{default:"%"},bg_overlay_opacity:{default:1},bg_image_overlay_color:{default:"#FFFFFF75"},overlay_gradient_type:{default:"basic"},bg_overlay_gradient_type:{default:"linear"},bg_overlay_gradient_angle:{default:90},bg_overlay_gradient_color_1:{default:"#FFC9B2"},bg_overlay_gradient_color_2:{default:"#C7CBFF"},bg_overlay_gradient_location_1:{default:0},bg_overlay_gradient_location_2:{default:100}}),he={input:ce(ce({},Z.attributes),{},{errorMsg:se("srfm_input_block_required_text"),duplicateMsg:se("srfm_input_block_unique_text")}),email:ce(ce({},$.attributes),{},{errorMsg:se("srfm_email_block_required_text"),duplicateMsg:se("srfm_email_block_unique_text")}),checkbox:ce(ce({},te.attributes),{},{errorMsg:se("srfm_checkbox_block_required_text")}),address:ce({},re.attributes),"multi-choice":ce(ce({},ne.attributes),{},{errorMsg:se("srfm_multi_choice_block_required_text")}),dropdown:ce(ce({},oe.attributes),{},{errorMsg:se("srfm_dropdown_block_required_text")}),phone:ce(ce({},K.attributes),{},{errorMsg:se("srfm_phone_block_required_text"),duplicateMsg:se("srfm_phone_block_unique_text")}),textarea:ce(ce({},X.attributes),{},{errorMsg:se("srfm_textarea_block_required_text")}),url:ce(ce({},J.attributes),{},{errorMsg:se("srfm_url_block_required_text")}),number:ce(ce({},ee.attributes),{},{errorMsg:se("srfm_number_block_required_text")}),gdpr:ce(ce({},ie.attributes),{},{errorMsg:se("srfm_gdpr_block_required_text")}),"inline-button":ce({},ae.attributes),form_specific:pe};function ge(e){return ge="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},ge(e)}function be(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ye(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?be(Object(r),!0).forEach((function(t){ve(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):be(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function ve(e,t,r){return(t=function(e){var t=function(e){if("object"!=ge(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=ge(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==ge(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function De(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return _e(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_e(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.")}()}function _e(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const xe=function(e){var t,r=De((0,s.useState)(null),2),n=r[0],o=r[1],u=(0,s.useRef)(null),c=e.onReset,d=e.attributeNames,f=e.setAttributes,p=e.isFormSpecific,h=e.isValueArray,g=void 0!==h&&h,b=De((0,s.useState)(!1),2),y=b[0],v=b[1],D=(0,l.select)("core/block-editor").getSelectedBlock,_=null===(t=D())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){o((0,x.xT)(u))}),[_]);var k=(0,m.applyFilters)("srfm.blocksAttributes",he),E=function(){var e,t=p?"form_specific":null===(e=D())||void 0===e?void 0:e.name.split("/").pop(),r=!1;return d&&void 0!==k[t]&&d.map((function(e){if(e){var n,o,i=void 0!==(null===(n=k[t][e])||void 0===n?void 0:n.default)?null===(o=k[t][e])||void 0===o?void 0:o.default:"";r=ye(ye({},r),{},ve({},e,i))}return e})),r},w=function(){var t,r=E(),n=null===(t=D())||void 0===t?void 0:t.attributes,o=!0;if(p&&r&&d){if(g)return o=d.every((function(t,n){return r[t]===e.value[n]})),o;var i=d[0];return r[i]===e.value}return d.map((function(e){return null!=n&&n[e]&&(null==n?void 0:n[e])!==(null==r?void 0:r[e])&&(o=!1),e})),o}(),C="reset",M=(0,m.applyFilters)("srfm.".concat(_,".").concat(n,".").concat(C,".before"),"",_),A=(0,m.applyFilters)("srfm.".concat(_,".").concat(n,".").concat(C),"",_);return React.createElement(i.Tooltip,{text:(0,a.__)("Reset","sureforms"),key:"reset",ref:u},M,React.createElement(i.Button,{className:"srfm-reset",isSecondary:!0,isSmall:!0,onClick:function(e){var t;e.preventDefault(),t=E(),d&&d.map((function(e){return e&&f&&f(ve({},e,null==t?void 0:t[e])),v(!y),e})),c&&c(t)},disabled:w},React.createElement(i.Dashicon,{icon:"image-rotate"})),A)},ke=JSON.parse("{\"Op\":\"<svg xmlns='http://www.w3.org/2000/svg' width='24' height='24' viewBox='0 0 24 24' fill='none'><path fillRule='evenodd' clipRule='evenodd' d='M10.5 6C10.5 5.17157 11.1716 4.5 12 4.5C12.8284 4.5 13.5 5.17157 13.5 6C13.5 6.82843 12.8284 7.5 12 7.5C11.1716 7.5 10.5 6.82843 10.5 6ZM10.5 12C10.5 11.1716 11.1716 10.5 12 10.5C12.8284 10.5 13.5 11.1716 13.5 12C13.5 12.8284 12.8284 13.5 12 13.5C11.1716 13.5 10.5 12.8284 10.5 12ZM10.5 18C10.5 17.1716 11.1716 16.5 12 16.5C12.8284 16.5 13.5 17.1716 13.5 18C13.5 18.8284 12.8284 19.5 12 19.5C11.1716 19.5 10.5 18.8284 10.5 18Z' fill='#0F172A' /></svg>\"}");var Ee=o(10900);function we(e){var t=e.icon,r=e.label,n=e.text,o=e.tagFor,s=e.cssClass,l=e.tagsArray,u=e.setTargetData,c=(0,Ee.Ay)(ke.Op),d=[];return(0,m.applyFilters)("srfm.editorSmartTagList.editorTagsArray",l,o).forEach((function(e){d.push((0,x.nC)(u,e.tags,e.label))})),React.createElement(i.DropdownMenu,{icon:null!=t?t:c,className:null!=s?s:"srfm-scroll-dropdown",label:null!=r?r:(0,a.__)("Select Shortcodes","sureforms"),text:n,controls:d})}function Ce(e){return Ce="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},Ce(e)}function Me(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ce(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ce(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ce(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ae(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Ne(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(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.")}()}function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var je=function(e){var t,r=Ae((0,s.useState)(null),2),n=r[0],o=r[1],u=(0,s.useRef)(null),c=Ae((0,s.useState)(null==e?void 0:e.value),2),d=c[0],f=c[1];(0,s.useLayoutEffect)((function(){return Q.use(),function(){Q.unuse()}}),[]);var p=(0,l.useSelect)((function(e){return e("core/block-editor").getSelectedBlock()}),[]),h=null==p?void 0:p.name.split("/").pop();(0,s.useEffect)((function(){o((0,x.xT)(u))}),[h]),(0,s.useEffect)((function(){f(null==e?void 0:e.value)}),[e]);var g=e.enableDynamicContent&&e.name?(0,m.applyFilters)("srfm.registerTextExtender","",null==p?void 0:p.name,e.name,e.dynamicContentType):null,b=function(){var t,r;if(!e.enableDynamicContent||!e.name)return!1;var n=null==p||null===(t=p.attributes)||void 0===t?void 0:t.dynamicContent;return!(!n||!0!==(null==n||null===(r=n[e.name])||void 0===r?void 0:r.enable))},y=function(t){if(e.name&&null!=e&&e.setAttributes)e.setAttributes(Me({},e.name,t));else if(null!=e&&e.setAttributes){var r;null==e||e.setAttributes(Me({},null==e||null===(r=e.data)||void 0===r?void 0:r.label,t))}null!=e&&e.onChange&&(null==e||e.onChange(t),f(t))},v=function(t){var r,n;null!=e&&e.onChange&&(null==e||e.onChange(t[null==e||null===(r=e.data)||void 0===r?void 0:r.label]),f(t[null==e||null===(n=e.data)||void 0===n?void 0:n.label]))},D=function(){var t;return React.createElement("div",{className:"srfm-control__header"},React.createElement(j,{label:null==e?void 0:e.label}),React.createElement("div",{className:"srfm-number-control__actions srfm-control__actions"},React.createElement(xe,{onReset:v,value:d,attributeNames:[null==e||null===(t=e.data)||void 0===t?void 0:t.label],setAttributes:null==e?void 0:e.setAttributes,isFormSpecific:null==e?void 0:e.isFormSpecific})))},_=(0,x.P2)(e.label),E=(0,m.applyFilters)("srfm.".concat(h,".").concat(n,".").concat(_,".before"),"",h),w=(0,m.applyFilters)("srfm.".concat(h,".").concat(n,".").concat(_),"",h),C=null!==(t=window.srfm_block_data)&&void 0!==t&&t.smart_tags_array?Object.entries(window.srfm_block_data.smart_tags_array):[];return React.createElement("div",{ref:u,className:"components-base-control"},E,React.createElement("div",{className:G()("components-base-control srfm-text-control srfm-size-type-field-tabs",b()?" srfm-text-control--open-dynamic-content":"",e.className)},"inline"!==(null==e?void 0:e.variant)&&(null==e?void 0:e.showHeaderControls)&&React.createElement(D,null),React.createElement("div",{className:G()("srfm-text-control__controls","srfm-text-control__controls-"+(null==e?void 0:e.variant))},!b()&&React.createElement(React.Fragment,null,"textarea"!==(null==e?void 0:e.variant)&&React.createElement(i.TextControl,{label:("inline"===(null==e?void 0:e.variant)||!("inline"===(null==e?void 0:e.variant)||null!=e&&e.showHeaderControls))&&(null==e?void 0:e.label),type:null==e?void 0:e.type,value:d,onChange:y,onBlur:function(t){null!=e&&e.onBlur&&e.onBlur(t)},disabled:null==e?void 0:e.disabled,autoComplete:null==e?void 0:e.autoComplete,readOnly:b(),placeholder:null==e?void 0:e.placeholder}),"textarea"===(null==e?void 0:e.variant)&&React.createElement(i.TextareaControl,{label:(null==e||!e.showHeaderControls)&&(null==e?void 0:e.label),value:d,onChange:y,autoComplete:null==e?void 0:e.autoComplete,readOnly:b()}),!0===(null==e?void 0:e.withSmartTagDropdown)&&React.createElement(we,{tagsArray:[{tags:C,label:(0,a.__)("Generic tags","sureforms")}],setTargetData:function(e){return y(d+e)}})),b()&&"inline"===(null==e?void 0:e.variant)&&React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"components-base-control__field"},React.createElement("label",{className:"components-base-control__label"},e.label))),g),React.createElement(k,{text:e.help})),w)};je.defaultProps={label:"",type:"text",className:"",allowReset:!0,resetFallbackValue:"",placeholder:null,variant:"full-width",autoComplete:"off",showHeaderControls:!0,dynamicContentType:"url",enableDynamicContent:!1,help:!1,isFormSpecific:!1,withSmartTagDropdown:!1,disabled:!1};const Oe=je,Te=function(e){var t=e.settingName,r=e.popupId,n=e.openModal;return React.createElement("div",{className:"srfm-custom-layout-panel components-panel__body"},React.createElement("h2",{className:"components-panel__body-title"},React.createElement("button",{className:"components-button components-panel__body-toggle",onClick:n,"data-popup":r},React.createElement("span",{className:"srfm-title"},React.createElement("div",null,t)),React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{id:"heroicons-mini/ellipsis-horizontal"},React.createElement("g",{id:"Union"},React.createElement("path",{d:"M3.60156 12.0031C3.60156 11.009 4.40745 10.2031 5.40156 10.2031C6.39567 10.2031 7.20156 11.009 7.20156 12.0031C7.20156 12.9972 6.39567 13.8031 5.40156 13.8031C4.40745 13.8031 3.60156 12.9972 3.60156 12.0031Z",fill:"#555D66"}),React.createElement("path",{d:"M10.2016 12.0031C10.2016 11.009 11.0074 10.2031 12.0016 10.2031C12.9957 10.2031 13.8016 11.009 13.8016 12.0031C13.8016 12.9972 12.9957 13.8031 12.0016 13.8031C11.0074 13.8031 10.2016 12.9972 10.2016 12.0031Z",fill:"#555D66"}),React.createElement("path",{d:"M18.6016 10.2031C17.6074 10.2031 16.8016 11.009 16.8016 12.0031C16.8016 12.9972 17.6074 13.8031 18.6016 13.8031C19.5957 13.8031 20.4016 12.9972 20.4016 12.0031C20.4016 11.009 19.5957 10.2031 18.6016 10.2031Z",fill:"#555D66"})))))))};var Se=o(74848),Ie=o(51609),Fe=o.t(Ie,2),Le=o.n(Ie);const Re=(0,Ie.createContext)({});function Pe(e){const t=(0,Ie.useRef)(null);return null===t.current&&(t.current=e()),t.current}const Be=(0,Ie.createContext)(null),ze=(0,Ie.createContext)({transformPagePoint:e=>e,isStatic:!1,reducedMotion:"never"});class qe extends Ie.Component{getSnapshotBeforeUpdate(e){const t=this.props.childRef.current;if(t&&e.isPresent&&!this.props.isPresent){const e=this.props.sizeRef.current;e.height=t.offsetHeight||0,e.width=t.offsetWidth||0,e.top=t.offsetTop,e.left=t.offsetLeft}return null}componentDidUpdate(){}render(){return this.props.children}}function Ve({children:e,isPresent:t}){const r=(0,Ie.useId)(),n=(0,Ie.useRef)(null),o=(0,Ie.useRef)({width:0,height:0,top:0,left:0}),{nonce:i}=(0,Ie.useContext)(ze);return(0,Ie.useInsertionEffect)((()=>{const{width:e,height:a,top:s,left:l}=o.current;if(t||!n.current||!e||!a)return;n.current.dataset.motionPopId=r;const u=document.createElement("style");return i&&(u.nonce=i),document.head.appendChild(u),u.sheet&&u.sheet.insertRule(`\n          [data-motion-pop-id="${r}"] {\n            position: absolute !important;\n            width: ${e}px !important;\n            height: ${a}px !important;\n            top: ${s}px !important;\n            left: ${l}px !important;\n          }\n        `),()=>{document.head.removeChild(u)}}),[t]),(0,Se.jsx)(qe,{isPresent:t,childRef:n,sizeRef:o,children:Ie.cloneElement(e,{ref:n})})}const Ue=({children:e,initial:t,isPresent:r,onExitComplete:n,custom:o,presenceAffectsLayout:i,mode:a})=>{const s=Pe(He),l=(0,Ie.useId)(),u=(0,Ie.useCallback)((e=>{s.set(e,!0);for(const e of s.values())if(!e)return;n&&n()}),[s,n]),c=(0,Ie.useMemo)((()=>({id:l,initial:t,isPresent:r,custom:o,onExitComplete:u,register:e=>(s.set(e,!1),()=>s.delete(e))})),i?[Math.random(),u]:[r,u]);return(0,Ie.useMemo)((()=>{s.forEach(((e,t)=>s.set(t,!1)))}),[r]),Ie.useEffect((()=>{!r&&!s.size&&n&&n()}),[r]),"popLayout"===a&&(e=(0,Se.jsx)(Ve,{isPresent:r,children:e})),(0,Se.jsx)(Be.Provider,{value:c,children:e})};function He(){return new Map}function Ye(e=!0){const t=(0,Ie.useContext)(Be);if(null===t)return[!0,null];const{isPresent:r,onExitComplete:n,register:o}=t,i=(0,Ie.useId)();(0,Ie.useEffect)((()=>{e&&o(i)}),[e]);const a=(0,Ie.useCallback)((()=>e&&n&&n(i)),[i,n,e]);return!r&&n?[!1,a]:[!0]}const Qe=e=>e.key||"";function We(e){const t=[];return Ie.Children.forEach(e,(e=>{(0,Ie.isValidElement)(e)&&t.push(e)})),t}const Ge="undefined"!=typeof window,Ze=Ge?Ie.useLayoutEffect:Ie.useEffect,$e=({children:e,custom:t,initial:r=!0,onExitComplete:n,presenceAffectsLayout:o=!0,mode:i="sync",propagate:a=!1})=>{const[s,l]=Ye(a),u=(0,Ie.useMemo)((()=>We(e)),[e]),c=a&&!s?[]:u.map(Qe),d=(0,Ie.useRef)(!0),f=(0,Ie.useRef)(u),m=Pe((()=>new Map)),[p,h]=(0,Ie.useState)(u),[g,b]=(0,Ie.useState)(u);Ze((()=>{d.current=!1,f.current=u;for(let e=0;e<g.length;e++){const t=Qe(g[e]);c.includes(t)?m.delete(t):!0!==m.get(t)&&m.set(t,!1)}}),[g,c.length,c.join("-")]);const y=[];if(u!==p){let e=[...u];for(let t=0;t<g.length;t++){const r=g[t],n=Qe(r);c.includes(n)||(e.splice(t,0,r),y.push(r))}return"wait"===i&&y.length&&(e=y),b(We(e)),void h(u)}const{forceRender:v}=(0,Ie.useContext)(Re);return(0,Se.jsx)(Se.Fragment,{children:g.map((e=>{const p=Qe(e),h=!(a&&!s)&&(u===g||c.includes(p));return(0,Se.jsx)(Ue,{isPresent:h,initial:!(d.current&&!r)&&void 0,custom:h?void 0:t,presenceAffectsLayout:o,mode:i,onExitComplete:h?void 0:()=>{if(!m.has(p))return;m.set(p,!0);let e=!0;m.forEach((t=>{t||(e=!1)})),e&&(null==v||v(),b(f.current),a&&(null==l||l()),n&&n())},children:e},p)}))})};function Ke(e){if("undefined"==typeof Proxy)return e;const t=new Map;return new Proxy(((...t)=>e(...t)),{get:(r,n)=>"create"===n?e:(t.has(n)||t.set(n,e(n)),t.get(n))})}function Xe(e){return null!==e&&"object"==typeof e&&"function"==typeof e.start}const Je=e=>Array.isArray(e);function et(e,t){if(!Array.isArray(t))return!1;const r=t.length;if(r!==e.length)return!1;for(let n=0;n<r;n++)if(t[n]!==e[n])return!1;return!0}function tt(e){return"string"==typeof e||Array.isArray(e)}function rt(e){const t=[{},{}];return null==e||e.values.forEach(((e,r)=>{t[0][r]=e.get(),t[1][r]=e.getVelocity()})),t}function nt(e,t,r,n){if("function"==typeof t){const[o,i]=rt(n);t=t(void 0!==r?r:e.custom,o,i)}if("string"==typeof t&&(t=e.variants&&e.variants[t]),"function"==typeof t){const[o,i]=rt(n);t=t(void 0!==r?r:e.custom,o,i)}return t}function ot(e,t,r){const n=e.getProps();return nt(n,t,void 0!==r?r:n.custom,e)}const it=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],at=["initial",...it];function st(e){let t;return()=>(void 0===t&&(t=e()),t)}const lt=st((()=>void 0!==window.ScrollTimeline));class ut{constructor(e){this.stop=()=>this.runAll("stop"),this.animations=e.filter(Boolean)}get finished(){return Promise.all(this.animations.map((e=>"finished"in e?e.finished:e)))}getAll(e){return this.animations[0][e]}setAll(e,t){for(let r=0;r<this.animations.length;r++)this.animations[r][e]=t}attachTimeline(e,t){const r=this.animations.map((r=>lt()&&r.attachTimeline?r.attachTimeline(e):"function"==typeof t?t(r):void 0));return()=>{r.forEach(((e,t)=>{e&&e(),this.animations[t].stop()}))}}get time(){return this.getAll("time")}set time(e){this.setAll("time",e)}get speed(){return this.getAll("speed")}set speed(e){this.setAll("speed",e)}get startTime(){return this.getAll("startTime")}get duration(){let e=0;for(let t=0;t<this.animations.length;t++)e=Math.max(e,this.animations[t].duration);return e}runAll(e){this.animations.forEach((t=>t[e]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class ct extends ut{then(e,t){return Promise.all(this.animations).then(e).catch(t)}}function dt(e,t){return e?e[t]||e.default||e:void 0}const ft=2e4;function mt(e){let t=0,r=e.next(t);for(;!r.done&&t<ft;)t+=50,r=e.next(t);return t>=ft?1/0:t}function pt(e){return"function"==typeof e}function ht(e,t){e.timeline=t,e.onfinish=null}const gt=e=>Array.isArray(e)&&"number"==typeof e[0],bt={linearEasing:void 0};function yt(e,t){const r=st(e);return()=>{var e;return null!==(e=bt[t])&&void 0!==e?e:r()}}const vt=yt((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(e){return!1}return!0}),"linearEasing"),Dt=(e,t,r)=>{const n=t-e;return 0===n?1:(r-e)/n},_t=(e,t,r=10)=>{let n="";const o=Math.max(Math.round(t/r),2);for(let t=0;t<o;t++)n+=e(Dt(0,o-1,t))+", ";return`linear(${n.substring(0,n.length-2)})`};function xt(e){return Boolean("function"==typeof e&&vt()||!e||"string"==typeof e&&(e in Et||vt())||gt(e)||Array.isArray(e)&&e.every(xt))}const kt=([e,t,r,n])=>`cubic-bezier(${e}, ${t}, ${r}, ${n})`,Et={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:kt([0,.65,.55,1]),circOut:kt([.55,0,1,.45]),backIn:kt([.31,.01,.66,-.59]),backOut:kt([.33,1.53,.69,.99])};function wt(e,t){return e?"function"==typeof e&&vt()?_t(e,t):gt(e)?kt(e):Array.isArray(e)?e.map((e=>wt(e,t)||Et.easeOut)):Et[e]:void 0}const Ct={x:!1,y:!1};function Mt(){return Ct.x||Ct.y}function At(e,t){const r=function(e){if(e instanceof Element)return[e];if("string"==typeof e){let t=document;const r=t.querySelectorAll(e);return r?Array.from(r):[]}return Array.from(e)}(e),n=new AbortController;return[r,{passive:!0,...t,signal:n.signal},()=>n.abort()]}function Nt(e){return t=>{"touch"===t.pointerType||Mt()||e(t)}}const jt=(e,t)=>!!t&&(e===t||jt(e,t.parentElement)),Ot=e=>"mouse"===e.pointerType?"number"!=typeof e.button||e.button<=0:!1!==e.isPrimary,Tt=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]),St=new WeakSet;function It(e){return t=>{"Enter"===t.key&&e(t)}}function Ft(e,t){e.dispatchEvent(new PointerEvent("pointer"+t,{isPrimary:!0,bubbles:!0}))}function Lt(e){return Ot(e)&&!Mt()}const Rt=e=>1e3*e,Pt=e=>e/1e3,Bt=e=>e,zt=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],qt=new Set(zt),Vt=new Set(["width","height","top","left","right","bottom",...zt]),Ut=["read","resolveKeyframes","update","preRender","render","postRender"];function Ht(e,t){let r=!1,n=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>r=!0,a=Ut.reduce(((e,t)=>(e[t]=function(e){let t=new Set,r=new Set,n=!1,o=!1;const i=new WeakSet;let a={delta:0,timestamp:0,isProcessing:!1};function s(t){i.has(t)&&(l.schedule(t),e()),t(a)}const l={schedule:(e,o=!1,a=!1)=>{const s=a&&n?t:r;return o&&i.add(e),s.has(e)||s.add(e),e},cancel:e=>{r.delete(e),i.delete(e)},process:e=>{a=e,n?o=!0:(n=!0,[t,r]=[r,t],t.forEach(s),t.clear(),n=!1,o&&(o=!1,l.process(e)))}};return l}(i),e)),{}),{read:s,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:f}=a,m=()=>{const i=performance.now();r=!1,o.delta=n?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,s.process(o),l.process(o),u.process(o),c.process(o),d.process(o),f.process(o),o.isProcessing=!1,r&&t&&(n=!1,e(m))};return{schedule:Ut.reduce(((t,i)=>{const s=a[i];return t[i]=(t,i=!1,a=!1)=>(r||(r=!0,n=!0,o.isProcessing||e(m)),s.schedule(t,i,a)),t}),{}),cancel:e=>{for(let t=0;t<Ut.length;t++)a[Ut[t]].cancel(e)},state:o,steps:a}}const{schedule:Yt,cancel:Qt,state:Wt,steps:Gt}=Ht("undefined"!=typeof requestAnimationFrame?requestAnimationFrame:Bt,!0);let Zt;function $t(){Zt=void 0}const Kt={now:()=>(void 0===Zt&&Kt.set(Wt.isProcessing?Wt.timestamp:performance.now()),Zt),set:e=>{Zt=e,queueMicrotask($t)}};function Xt(e,t){-1===e.indexOf(t)&&e.push(t)}function Jt(e,t){const r=e.indexOf(t);r>-1&&e.splice(r,1)}class er{constructor(){this.subscriptions=[]}add(e){return Xt(this.subscriptions,e),()=>Jt(this.subscriptions,e)}notify(e,t,r){const n=this.subscriptions.length;if(n)if(1===n)this.subscriptions[0](e,t,r);else for(let o=0;o<n;o++){const n=this.subscriptions[o];n&&n(e,t,r)}}getSize(){return this.subscriptions.length}clear(){this.subscriptions.length=0}}function tr(e,t){return t?e*(1e3/t):0}const rr={current:void 0};class nr{constructor(e,t={}){this.version="11.18.2",this.canTrackVelocity=null,this.events={},this.updateAndNotify=(e,t=!0)=>{const r=Kt.now();this.updatedAt!==r&&this.setPrevFrameValue(),this.prev=this.current,this.setCurrent(e),this.current!==this.prev&&this.events.change&&this.events.change.notify(this.current),t&&this.events.renderRequest&&this.events.renderRequest.notify(this.current)},this.hasAnimated=!1,this.setCurrent(e),this.owner=t.owner}setCurrent(e){var t;this.current=e,this.updatedAt=Kt.now(),null===this.canTrackVelocity&&void 0!==e&&(this.canTrackVelocity=(t=this.current,!isNaN(parseFloat(t))))}setPrevFrameValue(e=this.current){this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt}onChange(e){return this.on("change",e)}on(e,t){this.events[e]||(this.events[e]=new er);const r=this.events[e].add(t);return"change"===e?()=>{r(),Yt.read((()=>{this.events.change.getSize()||this.stop()}))}:r}clearListeners(){for(const e in this.events)this.events[e].clear()}attach(e,t){this.passiveEffect=e,this.stopPassiveEffect=t}set(e,t=!0){t&&this.passiveEffect?this.passiveEffect(e,this.updateAndNotify):this.updateAndNotify(e,t)}setWithVelocity(e,t,r){this.set(t),this.prev=void 0,this.prevFrameValue=e,this.prevUpdatedAt=this.updatedAt-r}jump(e,t=!0){this.updateAndNotify(e),this.prev=e,this.prevUpdatedAt=this.prevFrameValue=void 0,t&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return rr.current&&rr.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const e=Kt.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||e-this.updatedAt>30)return 0;const t=Math.min(this.updatedAt-this.prevUpdatedAt,30);return tr(parseFloat(this.current)-parseFloat(this.prevFrameValue),t)}start(e){return this.stop(),new Promise((t=>{this.hasAnimated=!0,this.animation=e(t),this.events.animationStart&&this.events.animationStart.notify()})).then((()=>{this.events.animationComplete&&this.events.animationComplete.notify(),this.clearAnimation()}))}stop(){this.animation&&(this.animation.stop(),this.events.animationCancel&&this.events.animationCancel.notify()),this.clearAnimation()}isAnimating(){return!!this.animation}clearAnimation(){delete this.animation}destroy(){this.clearListeners(),this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}}function or(e,t){return new nr(e,t)}function ir(e,t,r){e.hasValue(t)?e.getValue(t).set(r):e.addValue(t,or(r))}const ar=e=>Boolean(e&&e.getVelocity);function sr(e,t){const r=e.getValue("willChange");if(n=r,Boolean(ar(n)&&n.add))return r.add(t);var n}const lr=e=>e.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),ur="data-"+lr("framerAppearId");function cr(e){return e.props[ur]}const dr=(e,t,r)=>(((1-3*r+3*t)*e+(3*r-6*t))*e+3*t)*e;function fr(e,t,r,n){if(e===t&&r===n)return Bt;return o=>0===o||1===o?o:dr(function(e,t,r,n,o){let i,a,s=0;do{a=t+(r-t)/2,i=dr(a,n,o)-e,i>0?r=a:t=a}while(Math.abs(i)>1e-7&&++s<12);return a}(o,0,1,e,r),t,n)}const mr=e=>t=>t<=.5?e(2*t)/2:(2-e(2*(1-t)))/2,pr=e=>t=>1-e(1-t),hr=fr(.33,1.53,.69,.99),gr=pr(hr),br=mr(gr),yr=e=>(e*=2)<1?.5*gr(e):.5*(2-Math.pow(2,-10*(e-1))),vr=e=>1-Math.sin(Math.acos(e)),Dr=pr(vr),_r=mr(vr),xr=e=>/^0[^.\s]+$/u.test(e),kr=(e,t,r)=>r>t?t:r<e?e:r,Er={test:e=>"number"==typeof e,parse:parseFloat,transform:e=>e},wr={...Er,transform:e=>kr(0,1,e)},Cr={...Er,default:1},Mr=e=>Math.round(1e5*e)/1e5,Ar=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu,Nr=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,jr=(e,t)=>r=>Boolean("string"==typeof r&&Nr.test(r)&&r.startsWith(e)||t&&!function(e){return null==e}(r)&&Object.prototype.hasOwnProperty.call(r,t)),Or=(e,t,r)=>n=>{if("string"!=typeof n)return n;const[o,i,a,s]=n.match(Ar);return{[e]:parseFloat(o),[t]:parseFloat(i),[r]:parseFloat(a),alpha:void 0!==s?parseFloat(s):1}},Tr={...Er,transform:e=>Math.round((e=>kr(0,255,e))(e))},Sr={test:jr("rgb","red"),parse:Or("red","green","blue"),transform:({red:e,green:t,blue:r,alpha:n=1})=>"rgba("+Tr.transform(e)+", "+Tr.transform(t)+", "+Tr.transform(r)+", "+Mr(wr.transform(n))+")"},Ir={test:jr("#"),parse:function(e){let t="",r="",n="",o="";return e.length>5?(t=e.substring(1,3),r=e.substring(3,5),n=e.substring(5,7),o=e.substring(7,9)):(t=e.substring(1,2),r=e.substring(2,3),n=e.substring(3,4),o=e.substring(4,5),t+=t,r+=r,n+=n,o+=o),{red:parseInt(t,16),green:parseInt(r,16),blue:parseInt(n,16),alpha:o?parseInt(o,16)/255:1}},transform:Sr.transform},Fr=e=>({test:t=>"string"==typeof t&&t.endsWith(e)&&1===t.split(" ").length,parse:parseFloat,transform:t=>`${t}${e}`}),Lr=Fr("deg"),Rr=Fr("%"),Pr=Fr("px"),Br=Fr("vh"),zr=Fr("vw"),qr={...Rr,parse:e=>Rr.parse(e)/100,transform:e=>Rr.transform(100*e)},Vr={test:jr("hsl","hue"),parse:Or("hue","saturation","lightness"),transform:({hue:e,saturation:t,lightness:r,alpha:n=1})=>"hsla("+Math.round(e)+", "+Rr.transform(Mr(t))+", "+Rr.transform(Mr(r))+", "+Mr(wr.transform(n))+")"},Ur={test:e=>Sr.test(e)||Ir.test(e)||Vr.test(e),parse:e=>Sr.test(e)?Sr.parse(e):Vr.test(e)?Vr.parse(e):Ir.parse(e),transform:e=>"string"==typeof e?e:e.hasOwnProperty("red")?Sr.transform(e):Vr.transform(e)},Hr=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu,Yr="number",Qr="color",Wr=/var\s*\(\s*--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)|#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\)|-?(?:\d+(?:\.\d+)?|\.\d+)/giu;function Gr(e){const t=e.toString(),r=[],n={color:[],number:[],var:[]},o=[];let i=0;const a=t.replace(Wr,(e=>(Ur.test(e)?(n.color.push(i),o.push(Qr),r.push(Ur.parse(e))):e.startsWith("var(")?(n.var.push(i),o.push("var"),r.push(e)):(n.number.push(i),o.push(Yr),r.push(parseFloat(e))),++i,"${}"))).split("${}");return{values:r,split:a,indexes:n,types:o}}function Zr(e){return Gr(e).values}function $r(e){const{split:t,types:r}=Gr(e),n=t.length;return e=>{let o="";for(let i=0;i<n;i++)if(o+=t[i],void 0!==e[i]){const t=r[i];o+=t===Yr?Mr(e[i]):t===Qr?Ur.transform(e[i]):e[i]}return o}}const Kr=e=>"number"==typeof e?0:e,Xr={test:function(e){var t,r;return isNaN(e)&&"string"==typeof e&&((null===(t=e.match(Ar))||void 0===t?void 0:t.length)||0)+((null===(r=e.match(Hr))||void 0===r?void 0:r.length)||0)>0},parse:Zr,createTransformer:$r,getAnimatableNone:function(e){const t=Zr(e);return $r(e)(t.map(Kr))}},Jr=new Set(["brightness","contrast","saturate","opacity"]);function en(e){const[t,r]=e.slice(0,-1).split("(");if("drop-shadow"===t)return e;const[n]=r.match(Ar)||[];if(!n)return e;const o=r.replace(n,"");let i=Jr.has(t)?1:0;return n!==r&&(i*=100),t+"("+i+o+")"}const tn=/\b([a-z-]*)\(.*?\)/gu,rn={...Xr,getAnimatableNone:e=>{const t=e.match(tn);return t?t.map(en).join(" "):e}},nn={borderWidth:Pr,borderTopWidth:Pr,borderRightWidth:Pr,borderBottomWidth:Pr,borderLeftWidth:Pr,borderRadius:Pr,radius:Pr,borderTopLeftRadius:Pr,borderTopRightRadius:Pr,borderBottomRightRadius:Pr,borderBottomLeftRadius:Pr,width:Pr,maxWidth:Pr,height:Pr,maxHeight:Pr,top:Pr,right:Pr,bottom:Pr,left:Pr,padding:Pr,paddingTop:Pr,paddingRight:Pr,paddingBottom:Pr,paddingLeft:Pr,margin:Pr,marginTop:Pr,marginRight:Pr,marginBottom:Pr,marginLeft:Pr,backgroundPositionX:Pr,backgroundPositionY:Pr},on={rotate:Lr,rotateX:Lr,rotateY:Lr,rotateZ:Lr,scale:Cr,scaleX:Cr,scaleY:Cr,scaleZ:Cr,skew:Lr,skewX:Lr,skewY:Lr,distance:Pr,translateX:Pr,translateY:Pr,translateZ:Pr,x:Pr,y:Pr,z:Pr,perspective:Pr,transformPerspective:Pr,opacity:wr,originX:qr,originY:qr,originZ:Pr},an={...Er,transform:Math.round},sn={...nn,...on,zIndex:an,size:Pr,fillOpacity:wr,strokeOpacity:wr,numOctaves:an},ln={...sn,color:Ur,backgroundColor:Ur,outlineColor:Ur,fill:Ur,stroke:Ur,borderColor:Ur,borderTopColor:Ur,borderRightColor:Ur,borderBottomColor:Ur,borderLeftColor:Ur,filter:rn,WebkitFilter:rn},un=e=>ln[e];function cn(e,t){let r=un(e);return r!==rn&&(r=Xr),r.getAnimatableNone?r.getAnimatableNone(t):void 0}const dn=new Set(["auto","none","0"]),fn=e=>e===Er||e===Pr,mn=(e,t)=>parseFloat(e.split(", ")[t]),pn=(e,t)=>(r,{transform:n})=>{if("none"===n||!n)return 0;const o=n.match(/^matrix3d\((.+)\)$/u);if(o)return mn(o[1],t);{const t=n.match(/^matrix\((.+)\)$/u);return t?mn(t[1],e):0}},hn=new Set(["x","y","z"]),gn=zt.filter((e=>!hn.has(e))),bn={width:({x:e},{paddingLeft:t="0",paddingRight:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),height:({y:e},{paddingTop:t="0",paddingBottom:r="0"})=>e.max-e.min-parseFloat(t)-parseFloat(r),top:(e,{top:t})=>parseFloat(t),left:(e,{left:t})=>parseFloat(t),bottom:({y:e},{top:t})=>parseFloat(t)+(e.max-e.min),right:({x:e},{left:t})=>parseFloat(t)+(e.max-e.min),x:pn(4,13),y:pn(5,14)};bn.translateX=bn.x,bn.translateY=bn.y;const yn=new Set;let vn=!1,Dn=!1;function _n(){if(Dn){const e=Array.from(yn).filter((e=>e.needsMeasurement)),t=new Set(e.map((e=>e.element))),r=new Map;t.forEach((e=>{const t=function(e){const t=[];return gn.forEach((r=>{const n=e.getValue(r);void 0!==n&&(t.push([r,n.get()]),n.set(r.startsWith("scale")?1:0))})),t}(e);t.length&&(r.set(e,t),e.render())})),e.forEach((e=>e.measureInitialState())),t.forEach((e=>{e.render();const t=r.get(e);t&&t.forEach((([t,r])=>{var n;null===(n=e.getValue(t))||void 0===n||n.set(r)}))})),e.forEach((e=>e.measureEndState())),e.forEach((e=>{void 0!==e.suspendedScrollY&&window.scrollTo(0,e.suspendedScrollY)}))}Dn=!1,vn=!1,yn.forEach((e=>e.complete())),yn.clear()}function xn(){yn.forEach((e=>{e.readKeyframes(),e.needsMeasurement&&(Dn=!0)}))}class kn{constructor(e,t,r,n,o,i=!1){this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...e],this.onComplete=t,this.name=r,this.motionValue=n,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(yn.add(this),vn||(vn=!0,Yt.read(xn),Yt.resolveKeyframes(_n))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:e,name:t,element:r,motionValue:n}=this;for(let o=0;o<e.length;o++)if(null===e[o])if(0===o){const o=null==n?void 0:n.get(),i=e[e.length-1];if(void 0!==o)e[0]=o;else if(r&&t){const n=r.readValue(t,i);null!=n&&(e[0]=n)}void 0===e[0]&&(e[0]=i),n&&void 0===o&&n.set(e[0])}else e[o]=e[o-1]}setFinalKeyframe(){}measureInitialState(){}renderEndStyles(){}measureEndState(){}complete(){this.isComplete=!0,this.onComplete(this.unresolvedKeyframes,this.finalKeyframe),yn.delete(this)}cancel(){this.isComplete||(this.isScheduled=!1,yn.delete(this))}resume(){this.isComplete||this.scheduleResolve()}}let En=Bt,wn=Bt;const Cn=e=>/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(e),Mn=e=>t=>"string"==typeof t&&t.startsWith(e),An=Mn("--"),Nn=Mn("var(--"),jn=e=>!!Nn(e)&&On.test(e.split("/*")[0].trim()),On=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,Tn=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function Sn(e,t,r=1){wn(r<=4,`Max CSS variable fallback depth detected in property "${e}". This may indicate a circular fallback dependency.`);const[n,o]=function(e){const t=Tn.exec(e);if(!t)return[,];const[,r,n,o]=t;return[`--${null!=r?r:n}`,o]}(e);if(!n)return;const i=window.getComputedStyle(t).getPropertyValue(n);if(i){const e=i.trim();return Cn(e)?parseFloat(e):e}return jn(o)?Sn(o,t,r+1):o}const In=e=>t=>t.test(e),Fn=[Er,Pr,Rr,Lr,zr,Br,{test:e=>"auto"===e,parse:e=>e}],Ln=e=>Fn.find(In(e));class Rn extends kn{constructor(e,t,r,n,o){super(e,t,r,n,o,!0)}readKeyframes(){const{unresolvedKeyframes:e,element:t,name:r}=this;if(!t||!t.current)return;super.readKeyframes();for(let r=0;r<e.length;r++){let n=e[r];if("string"==typeof n&&(n=n.trim(),jn(n))){const o=Sn(n,t.current);void 0!==o&&(e[r]=o),r===e.length-1&&(this.finalKeyframe=n)}}if(this.resolveNoneKeyframes(),!Vt.has(r)||2!==e.length)return;const[n,o]=e,i=Ln(n),a=Ln(o);if(i!==a)if(fn(i)&&fn(a))for(let t=0;t<e.length;t++){const r=e[t];"string"==typeof r&&(e[t]=parseFloat(r))}else this.needsMeasurement=!0}resolveNoneKeyframes(){const{unresolvedKeyframes:e,name:t}=this,r=[];for(let t=0;t<e.length;t++)("number"==typeof(n=e[t])?0===n:null===n||"none"===n||"0"===n||xr(n))&&r.push(t);var n;r.length&&function(e,t,r){let n,o=0;for(;o<e.length&&!n;){const t=e[o];"string"==typeof t&&!dn.has(t)&&Gr(t).values.length&&(n=e[o]),o++}if(n&&r)for(const o of t)e[o]=cn(r,n)}(e,r,t)}measureInitialState(){const{element:e,unresolvedKeyframes:t,name:r}=this;if(!e||!e.current)return;"height"===r&&(this.suspendedScrollY=window.pageYOffset),this.measuredOrigin=bn[r](e.measureViewportBox(),window.getComputedStyle(e.current)),t[0]=this.measuredOrigin;const n=t[t.length-1];void 0!==n&&e.getValue(r,n).jump(n,!1)}measureEndState(){var e;const{element:t,name:r,unresolvedKeyframes:n}=this;if(!t||!t.current)return;const o=t.getValue(r);o&&o.jump(this.measuredOrigin,!1);const i=n.length-1,a=n[i];n[i]=bn[r](t.measureViewportBox(),window.getComputedStyle(t.current)),null!==a&&void 0===this.finalKeyframe&&(this.finalKeyframe=a),(null===(e=this.removedTransforms)||void 0===e?void 0:e.length)&&this.removedTransforms.forEach((([e,r])=>{t.getValue(e).set(r)})),this.resolveNoneKeyframes()}}const Pn=(e,t)=>!("zIndex"===t||"number"!=typeof e&&!Array.isArray(e)&&("string"!=typeof e||!Xr.test(e)&&"0"!==e||e.startsWith("url(")));function Bn(e,t,r,n){const o=e[0];if(null===o)return!1;if("display"===t||"visibility"===t)return!0;const i=e[e.length-1],a=Pn(o,t),s=Pn(i,t);return En(a===s,`You are trying to animate ${t} from "${o}" to "${i}". ${o} is not an animatable value - to enable this animation set ${o} to a value animatable to ${i} via the \`style\` property.`),!(!a||!s)&&(function(e){const t=e[0];if(1===e.length)return!0;for(let r=0;r<e.length;r++)if(e[r]!==t)return!0}(e)||("spring"===r||pt(r))&&n)}const zn=e=>null!==e;function qn(e,{repeat:t,repeatType:r="loop"},n){const o=e.filter(zn),i=t&&"loop"!==r&&t%2==1?0:o.length-1;return i&&void 0!==n?n:o[i]}class Vn{constructor({autoplay:e=!0,delay:t=0,type:r="keyframes",repeat:n=0,repeatDelay:o=0,repeatType:i="loop",...a}){this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=Kt.now(),this.options={autoplay:e,delay:t,type:r,repeat:n,repeatDelay:o,repeatType:i,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(xn(),_n()),this._resolved}onKeyframesResolved(e,t){this.resolvedAt=Kt.now(),this.hasAttemptedResolve=!0;const{name:r,type:n,velocity:o,delay:i,onComplete:a,onUpdate:s,isGenerator:l}=this.options;if(!l&&!Bn(e,r,n,o)){if(!i)return s&&s(qn(e,this.options,t)),a&&a(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(e,t);!1!==u&&(this._resolved={keyframes:e,finalKeyframe:t,...u},this.onPostResolved())}onPostResolved(){}then(e,t){return this.currentFinishedPromise.then(e,t)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((e=>{this.resolveFinishedPromise=e}))}}const Un=(e,t,r)=>e+(t-e)*r;function Hn(e,t,r){return r<0&&(r+=1),r>1&&(r-=1),r<1/6?e+6*(t-e)*r:r<.5?t:r<2/3?e+(t-e)*(2/3-r)*6:e}function Yn(e,t){return r=>r>0?t:e}const Qn=(e,t,r)=>{const n=e*e,o=r*(t*t-n)+n;return o<0?0:Math.sqrt(o)},Wn=[Ir,Sr,Vr];function Gn(e){const t=(r=e,Wn.find((e=>e.test(r))));var r;if(En(Boolean(t),`'${e}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(t))return!1;let n=t.parse(e);return t===Vr&&(n=function({hue:e,saturation:t,lightness:r,alpha:n}){e/=360,r/=100;let o=0,i=0,a=0;if(t/=100){const n=r<.5?r*(1+t):r+t-r*t,s=2*r-n;o=Hn(s,n,e+1/3),i=Hn(s,n,e),a=Hn(s,n,e-1/3)}else o=i=a=r;return{red:Math.round(255*o),green:Math.round(255*i),blue:Math.round(255*a),alpha:n}}(n)),n}const Zn=(e,t)=>{const r=Gn(e),n=Gn(t);if(!r||!n)return Yn(e,t);const o={...r};return e=>(o.red=Qn(r.red,n.red,e),o.green=Qn(r.green,n.green,e),o.blue=Qn(r.blue,n.blue,e),o.alpha=Un(r.alpha,n.alpha,e),Sr.transform(o))},$n=(e,t)=>r=>t(e(r)),Kn=(...e)=>e.reduce($n),Xn=new Set(["none","hidden"]);function Jn(e,t){return r=>Un(e,t,r)}function eo(e){return"number"==typeof e?Jn:"string"==typeof e?jn(e)?Yn:Ur.test(e)?Zn:no:Array.isArray(e)?to:"object"==typeof e?Ur.test(e)?Zn:ro:Yn}function to(e,t){const r=[...e],n=r.length,o=e.map(((e,r)=>eo(e)(e,t[r])));return e=>{for(let t=0;t<n;t++)r[t]=o[t](e);return r}}function ro(e,t){const r={...e,...t},n={};for(const o in r)void 0!==e[o]&&void 0!==t[o]&&(n[o]=eo(e[o])(e[o],t[o]));return e=>{for(const t in n)r[t]=n[t](e);return r}}const no=(e,t)=>{const r=Xr.createTransformer(t),n=Gr(e),o=Gr(t);return n.indexes.var.length===o.indexes.var.length&&n.indexes.color.length===o.indexes.color.length&&n.indexes.number.length>=o.indexes.number.length?Xn.has(e)&&!o.values.length||Xn.has(t)&&!n.values.length?function(e,t){return Xn.has(e)?r=>r<=0?e:t:r=>r>=1?t:e}(e,t):Kn(to(function(e,t){var r;const n=[],o={color:0,var:0,number:0};for(let i=0;i<t.values.length;i++){const a=t.types[i],s=e.indexes[a][o[a]],l=null!==(r=e.values[s])&&void 0!==r?r:0;n[i]=l,o[a]++}return n}(n,o),o.values),r):(En(!0,`Complex values '${e}' and '${t}' too different to mix. Ensure all colors are of the same type, and that each contains the same quantity of number and color values. Falling back to instant transition.`),Yn(e,t))};function oo(e,t,r){return"number"==typeof e&&"number"==typeof t&&"number"==typeof r?Un(e,t,r):eo(e)(e,t)}function io(e,t,r){const n=Math.max(t-5,0);return tr(r-e(n),t-n)}const ao=.01,so=2,lo=.005,uo=.5;const co=12;function fo(e,t){return e*Math.sqrt(1-t*t)}const mo=["duration","bounce"],po=["stiffness","damping","mass"];function ho(e,t){return t.some((t=>void 0!==e[t]))}function go(e=.3,t=.3){const r="object"!=typeof e?{visualDuration:e,keyframes:[0,1],bounce:t}:e;let{restSpeed:n,restDelta:o}=r;const i=r.keyframes[0],a=r.keyframes[r.keyframes.length-1],s={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:f,isResolvedFromDuration:m}=function(e){let t={velocity:0,stiffness:100,damping:10,mass:1,isResolvedFromDuration:!1,...e};if(!ho(e,po)&&ho(e,mo))if(e.visualDuration){const r=e.visualDuration,n=2*Math.PI/(1.2*r),o=n*n,i=2*kr(.05,1,1-(e.bounce||0))*Math.sqrt(o);t={...t,mass:1,stiffness:o,damping:i}}else{const r=function({duration:e=800,bounce:t=.3,velocity:r=0,mass:n=1}){let o,i;En(e<=Rt(10),"Spring duration must be 10 seconds or less");let a=1-t;a=kr(.05,1,a),e=kr(.01,10,Pt(e)),a<1?(o=t=>{const n=t*a,o=n*e;return.001-(n-r)/fo(t,a)*Math.exp(-o)},i=t=>{const n=t*a*e,i=n*r+r,s=Math.pow(a,2)*Math.pow(t,2)*e,l=Math.exp(-n),u=fo(Math.pow(t,2),a);return(.001-o(t)>0?-1:1)*((i-s)*l)/u}):(o=t=>Math.exp(-t*e)*((t-r)*e+1)-.001,i=t=>Math.exp(-t*e)*(e*e*(r-t)));const s=function(e,t,r){let n=r;for(let r=1;r<co;r++)n-=e(n)/t(n);return n}(o,i,5/e);if(e=Rt(e),isNaN(s))return{stiffness:100,damping:10,duration:e};{const t=Math.pow(s,2)*n;return{stiffness:t,damping:2*a*Math.sqrt(n*t),duration:e}}}(e);t={...t,...r,mass:1},t.isResolvedFromDuration=!0}return t}({...r,velocity:-Pt(r.velocity||0)}),p=f||0,h=u/(2*Math.sqrt(l*c)),g=a-i,b=Pt(Math.sqrt(l/c)),y=Math.abs(g)<5;let v;if(n||(n=y?ao:so),o||(o=y?lo:uo),h<1){const e=fo(b,h);v=t=>{const r=Math.exp(-h*b*t);return a-r*((p+h*b*g)/e*Math.sin(e*t)+g*Math.cos(e*t))}}else if(1===h)v=e=>a-Math.exp(-b*e)*(g+(p+b*g)*e);else{const e=b*Math.sqrt(h*h-1);v=t=>{const r=Math.exp(-h*b*t),n=Math.min(e*t,300);return a-r*((p+h*b*g)*Math.sinh(n)+e*g*Math.cosh(n))/e}}const D={calculatedDuration:m&&d||null,next:e=>{const t=v(e);if(m)s.done=e>=d;else{let r=0;h<1&&(r=0===e?Rt(p):io(v,e,t));const i=Math.abs(r)<=n,l=Math.abs(a-t)<=o;s.done=i&&l}return s.value=s.done?a:t,s},toString:()=>{const e=Math.min(mt(D),ft),t=_t((t=>D.next(e*t).value),e,30);return e+"ms "+t}};return D}function bo({keyframes:e,velocity:t=0,power:r=.8,timeConstant:n=325,bounceDamping:o=10,bounceStiffness:i=500,modifyTarget:a,min:s,max:l,restDelta:u=.5,restSpeed:c}){const d=e[0],f={done:!1,value:d},m=e=>void 0===s?l:void 0===l||Math.abs(s-e)<Math.abs(l-e)?s:l;let p=r*t;const h=d+p,g=void 0===a?h:a(h);g!==h&&(p=g-d);const b=e=>-p*Math.exp(-e/n),y=e=>g+b(e),v=e=>{const t=b(e),r=y(e);f.done=Math.abs(t)<=u,f.value=f.done?g:r};let D,_;const x=e=>{var t;t=f.value,(void 0!==s&&t<s||void 0!==l&&t>l)&&(D=e,_=go({keyframes:[f.value,m(f.value)],velocity:io(y,e,f.value),damping:o,stiffness:i,restDelta:u,restSpeed:c}))};return x(0),{calculatedDuration:null,next:e=>{let t=!1;return _||void 0!==D||(t=!0,v(e),x(e)),void 0!==D&&e>=D?_.next(e-D):(!t&&v(e),f)}}}const yo=fr(.42,0,1,1),vo=fr(0,0,.58,1),Do=fr(.42,0,.58,1),_o={linear:Bt,easeIn:yo,easeInOut:Do,easeOut:vo,circIn:vr,circInOut:_r,circOut:Dr,backIn:gr,backInOut:br,backOut:hr,anticipate:yr},xo=e=>{if(gt(e)){wn(4===e.length,"Cubic bezier arrays must contain four numerical values.");const[t,r,n,o]=e;return fr(t,r,n,o)}return"string"==typeof e?(wn(void 0!==_o[e],`Invalid easing type '${e}'`),_o[e]):e};function ko({duration:e=300,keyframes:t,times:r,ease:n="easeInOut"}){const o=(e=>Array.isArray(e)&&"number"!=typeof e[0])(n)?n.map(xo):xo(n),i={done:!1,value:t[0]},a=function(e,t){return e.map((e=>e*t))}(r&&r.length===t.length?r:function(e){const t=[0];return function(e,t){const r=e[e.length-1];for(let n=1;n<=t;n++){const o=Dt(0,t,n);e.push(Un(r,1,o))}}(t,e.length-1),t}(t),e),s=function(e,t,{clamp:r=!0,ease:n,mixer:o}={}){const i=e.length;if(wn(i===t.length,"Both input and output ranges must be the same length"),1===i)return()=>t[0];if(2===i&&t[0]===t[1])return()=>t[1];const a=e[0]===e[1];e[0]>e[i-1]&&(e=[...e].reverse(),t=[...t].reverse());const s=function(e,t,r){const n=[],o=r||oo,i=e.length-1;for(let r=0;r<i;r++){let i=o(e[r],e[r+1]);if(t){const e=Array.isArray(t)?t[r]||Bt:t;i=Kn(e,i)}n.push(i)}return n}(t,n,o),l=s.length,u=r=>{if(a&&r<e[0])return t[0];let n=0;if(l>1)for(;n<e.length-2&&!(r<e[n+1]);n++);const o=Dt(e[n],e[n+1],r);return s[n](o)};return r?t=>u(kr(e[0],e[i-1],t)):u}(a,t,{ease:Array.isArray(o)?o:(l=t,u=o,l.map((()=>u||Do)).splice(0,l.length-1))});var l,u;return{calculatedDuration:e,next:t=>(i.value=s(t),i.done=t>=e,i)}}const Eo=e=>{const t=({timestamp:t})=>e(t);return{start:()=>Yt.update(t,!0),stop:()=>Qt(t),now:()=>Wt.isProcessing?Wt.timestamp:Kt.now()}},wo={decay:bo,inertia:bo,tween:ko,keyframes:ko,spring:go},Co=e=>e/100;class Mo extends Vn{constructor(e){super(e),this.holdTime=null,this.cancelTime=null,this.currentTime=0,this.playbackSpeed=1,this.pendingPlayState="running",this.startTime=null,this.state="idle",this.stop=()=>{if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.teardown();const{onStop:e}=this.options;e&&e()};const{name:t,motionValue:r,element:n,keyframes:o}=this.options,i=(null==n?void 0:n.KeyframeResolver)||kn;this.resolver=new i(o,((e,t)=>this.onKeyframesResolved(e,t)),t,r,n),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(e){const{type:t="keyframes",repeat:r=0,repeatDelay:n=0,repeatType:o,velocity:i=0}=this.options,a=pt(t)?t:wo[t]||ko;let s,l;a!==ko&&"number"!=typeof e[0]&&(s=Kn(Co,oo(e[0],e[1])),e=[0,100]);const u=a({...this.options,keyframes:e});"mirror"===o&&(l=a({...this.options,keyframes:[...e].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=mt(u));const{calculatedDuration:c}=u,d=c+n;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:s,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(r+1)-n}}onPostResolved(){const{autoplay:e=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&e?this.state=this.pendingPlayState:this.pause()}tick(e,t=!1){const{resolved:r}=this;if(!r){const{keyframes:e}=this.options;return{done:!0,value:e[e.length-1]}}const{finalKeyframe:n,generator:o,mirroredGenerator:i,mapPercentToKeyframes:a,keyframes:s,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=r;if(null===this.startTime)return o.next(0);const{delay:d,repeat:f,repeatType:m,repeatDelay:p,onUpdate:h}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,e):this.speed<0&&(this.startTime=Math.min(e-u/this.speed,this.startTime)),t?this.currentTime=e:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(e-this.startTime)*this.speed;const g=this.currentTime-d*(this.speed>=0?1:-1),b=this.speed>=0?g<0:g>u;this.currentTime=Math.max(g,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let y=this.currentTime,v=o;if(f){const e=Math.min(this.currentTime,u)/c;let t=Math.floor(e),r=e%1;!r&&e>=1&&(r=1),1===r&&t--,t=Math.min(t,f+1),Boolean(t%2)&&("reverse"===m?(r=1-r,p&&(r-=p/c)):"mirror"===m&&(v=i)),y=kr(0,1,r)*c}const D=b?{done:!1,value:s[0]}:v.next(y);a&&(D.value=a(D.value));let{done:_}=D;b||null===l||(_=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const x=null===this.holdTime&&("finished"===this.state||"running"===this.state&&_);return x&&void 0!==n&&(D.value=qn(s,this.options,n)),h&&h(D.value),x&&this.finish(),D}get duration(){const{resolved:e}=this;return e?Pt(e.calculatedDuration):0}get time(){return Pt(this.currentTime)}set time(e){e=Rt(e),this.currentTime=e,null!==this.holdTime||0===this.speed?this.holdTime=e:this.driver&&(this.startTime=this.driver.now()-e/this.speed)}get speed(){return this.playbackSpeed}set speed(e){const t=this.playbackSpeed!==e;this.playbackSpeed=e,t&&(this.time=Pt(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:e=Eo,onPlay:t,startTime:r}=this.options;this.driver||(this.driver=e((e=>this.tick(e)))),t&&t();const n=this.driver.now();null!==this.holdTime?this.startTime=n-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=n):this.startTime=null!=r?r:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var e;this._resolved?(this.state="paused",this.holdTime=null!==(e=this.currentTime)&&void 0!==e?e:0):this.pendingPlayState="paused"}complete(){"running"!==this.state&&this.play(),this.pendingPlayState=this.state="finished",this.holdTime=null}finish(){this.teardown(),this.state="finished";const{onComplete:e}=this.options;e&&e()}cancel(){null!==this.cancelTime&&this.tick(this.cancelTime),this.teardown(),this.updateFinishedPromise()}teardown(){this.state="idle",this.stopDriver(),this.resolveFinishedPromise(),this.updateFinishedPromise(),this.startTime=this.cancelTime=null,this.resolver.cancel()}stopDriver(){this.driver&&(this.driver.stop(),this.driver=void 0)}sample(e){return this.startTime=0,this.tick(e,!0)}}const Ao=new Set(["opacity","clipPath","filter","transform"]),No=st((()=>Object.hasOwnProperty.call(Element.prototype,"animate"))),jo={anticipate:yr,backInOut:br,circInOut:_r};class Oo extends Vn{constructor(e){super(e);const{name:t,motionValue:r,element:n,keyframes:o}=this.options;this.resolver=new Rn(o,((e,t)=>this.onKeyframesResolved(e,t)),t,r,n),this.resolver.scheduleResolve()}initPlayback(e,t){let{duration:r=300,times:n,ease:o,type:i,motionValue:a,name:s,startTime:l}=this.options;if(!a.owner||!a.owner.current)return!1;if("string"==typeof o&&vt()&&o in jo&&(o=jo[o]),function(e){return pt(e.type)||"spring"===e.type||!xt(e.ease)}(this.options)){const{onComplete:t,onUpdate:a,motionValue:s,element:l,...u}=this.options,c=function(e,t){const r=new Mo({...t,keyframes:e,repeat:0,delay:0,isGenerator:!0});let n={done:!1,value:e[0]};const o=[];let i=0;for(;!n.done&&i<2e4;)n=r.sample(i),o.push(n.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(e,u);1===(e=c.keyframes).length&&(e[1]=e[0]),r=c.duration,n=c.times,o=c.ease,i="keyframes"}const u=function(e,t,r,{delay:n=0,duration:o=300,repeat:i=0,repeatType:a="loop",ease:s="easeInOut",times:l}={}){const u={[t]:r};l&&(u.offset=l);const c=wt(s,o);return Array.isArray(c)&&(u.easing=c),e.animate(u,{delay:n,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===a?"alternate":"normal"})}(a.owner.current,s,e,{...this.options,duration:r,times:n,ease:o});return u.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(ht(u,this.pendingTimeline),this.pendingTimeline=void 0):u.onfinish=()=>{const{onComplete:r}=this.options;a.set(qn(e,this.options,t)),r&&r(),this.cancel(),this.resolveFinishedPromise()},{animation:u,duration:r,times:n,type:i,ease:o,keyframes:e}}get duration(){const{resolved:e}=this;if(!e)return 0;const{duration:t}=e;return Pt(t)}get time(){const{resolved:e}=this;if(!e)return 0;const{animation:t}=e;return Pt(t.currentTime||0)}set time(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.currentTime=Rt(e)}get speed(){const{resolved:e}=this;if(!e)return 1;const{animation:t}=e;return t.playbackRate}set speed(e){const{resolved:t}=this;if(!t)return;const{animation:r}=t;r.playbackRate=e}get state(){const{resolved:e}=this;if(!e)return"idle";const{animation:t}=e;return t.playState}get startTime(){const{resolved:e}=this;if(!e)return null;const{animation:t}=e;return t.startTime}attachTimeline(e){if(this._resolved){const{resolved:t}=this;if(!t)return Bt;const{animation:r}=t;ht(r,e)}else this.pendingTimeline=e;return Bt}play(){if(this.isStopped)return;const{resolved:e}=this;if(!e)return;const{animation:t}=e;"finished"===t.playState&&this.updateFinishedPromise(),t.play()}pause(){const{resolved:e}=this;if(!e)return;const{animation:t}=e;t.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:e}=this;if(!e)return;const{animation:t,keyframes:r,duration:n,type:o,ease:i,times:a}=e;if("idle"===t.playState||"finished"===t.playState)return;if(this.time){const{motionValue:e,onUpdate:t,onComplete:s,element:l,...u}=this.options,c=new Mo({...u,keyframes:r,duration:n,type:o,ease:i,times:a,isGenerator:!0}),d=Rt(this.time);e.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:s}=this.options;s&&s(),this.cancel()}complete(){const{resolved:e}=this;e&&e.animation.finish()}cancel(){const{resolved:e}=this;e&&e.animation.cancel()}static supports(e){const{motionValue:t,name:r,repeatDelay:n,repeatType:o,damping:i,type:a}=e;if(!(t&&t.owner&&t.owner.current instanceof HTMLElement))return!1;const{onUpdate:s,transformTemplate:l}=t.owner.getProps();return No()&&r&&Ao.has(r)&&!s&&!l&&!n&&"mirror"!==o&&0!==i&&"inertia"!==a}}const To={type:"spring",stiffness:500,damping:25,restSpeed:10},So={type:"keyframes",duration:.8},Io={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Fo=(e,{keyframes:t})=>t.length>2?So:qt.has(e)?e.startsWith("scale")?{type:"spring",stiffness:550,damping:0===t[1]?2*Math.sqrt(550):30,restSpeed:10}:To:Io,Lo=(e,t,r,n={},o,i)=>a=>{const s=dt(n,e)||{},l=s.delay||n.delay||0;let{elapsed:u=0}=n;u-=Rt(l);let c={keyframes:Array.isArray(r)?r:[null,r],ease:"easeOut",velocity:t.getVelocity(),...s,delay:-u,onUpdate:e=>{t.set(e),s.onUpdate&&s.onUpdate(e)},onComplete:()=>{a(),s.onComplete&&s.onComplete()},name:e,motionValue:t,element:i?void 0:o};(function({when:e,delay:t,delayChildren:r,staggerChildren:n,staggerDirection:o,repeat:i,repeatType:a,repeatDelay:s,from:l,elapsed:u,...c}){return!!Object.keys(c).length})(s)||(c={...c,...Fo(e,c)}),c.duration&&(c.duration=Rt(c.duration)),c.repeatDelay&&(c.repeatDelay=Rt(c.repeatDelay)),void 0!==c.from&&(c.keyframes[0]=c.from);let d=!1;if((!1===c.type||0===c.duration&&!c.repeatDelay)&&(c.duration=0,0===c.delay&&(d=!0)),d&&!i&&void 0!==t.get()){const e=qn(c.keyframes,s);if(void 0!==e)return Yt.update((()=>{c.onUpdate(e),c.onComplete()})),new ct([])}return!i&&Oo.supports(c)?new Oo(c):new Mo(c)};function Ro({protectedKeys:e,needsAnimating:t},r){const n=e.hasOwnProperty(r)&&!0!==t[r];return t[r]=!1,n}function Po(e,t,{delay:r=0,transitionOverride:n,type:o}={}){var i;let{transition:a=e.getDefaultTransition(),transitionEnd:s,...l}=t;n&&(a=n);const u=[],c=o&&e.animationState&&e.animationState.getState()[o];for(const t in l){const n=e.getValue(t,null!==(i=e.latestValues[t])&&void 0!==i?i:null),o=l[t];if(void 0===o||c&&Ro(c,t))continue;const s={delay:r,...dt(a||{},t)};let d=!1;if(window.MotionHandoffAnimation){const r=cr(e);if(r){const e=window.MotionHandoffAnimation(r,t,Yt);null!==e&&(s.startTime=e,d=!0)}}sr(e,t),n.start(Lo(t,n,o,e.shouldReduceMotion&&Vt.has(t)?{type:!1}:s,e,d));const f=n.animation;f&&u.push(f)}return s&&Promise.all(u).then((()=>{Yt.update((()=>{s&&function(e,t){const r=ot(e,t);let{transitionEnd:n={},transition:o={},...i}=r||{};i={...i,...n};for(const t in i)ir(e,t,(a=i[t],Je(a)?a[a.length-1]||0:a));var a}(e,s)}))})),u}function Bo(e,t,r={}){var n;const o=ot(e,t,"exit"===r.type?null===(n=e.presenceContext)||void 0===n?void 0:n.custom:void 0);let{transition:i=e.getDefaultTransition()||{}}=o||{};r.transitionOverride&&(i=r.transitionOverride);const a=o?()=>Promise.all(Po(e,o,r)):()=>Promise.resolve(),s=e.variantChildren&&e.variantChildren.size?(n=0)=>{const{delayChildren:o=0,staggerChildren:a,staggerDirection:s}=i;return function(e,t,r=0,n=0,o=1,i){const a=[],s=(e.variantChildren.size-1)*n,l=1===o?(e=0)=>e*n:(e=0)=>s-e*n;return Array.from(e.variantChildren).sort(zo).forEach(((e,n)=>{e.notify("AnimationStart",t),a.push(Bo(e,t,{...i,delay:r+l(n)}).then((()=>e.notify("AnimationComplete",t))))})),Promise.all(a)}(e,t,o+n,a,s,r)}:()=>Promise.resolve(),{when:l}=i;if(l){const[e,t]="beforeChildren"===l?[a,s]:[s,a];return e().then((()=>t()))}return Promise.all([a(),s(r.delay)])}function zo(e,t){return e.sortNodePosition(t)}const qo=at.length;function Vo(e){if(!e)return;if(!e.isControllingVariants){const t=e.parent&&Vo(e.parent)||{};return void 0!==e.props.initial&&(t.initial=e.props.initial),t}const t={};for(let r=0;r<qo;r++){const n=at[r],o=e.props[n];(tt(o)||!1===o)&&(t[n]=o)}return t}const Uo=[...it].reverse(),Ho=it.length;function Yo(e){let t=function(e){return t=>Promise.all(t.map((({animation:t,options:r})=>function(e,t,r={}){let n;if(e.notify("AnimationStart",t),Array.isArray(t)){const o=t.map((t=>Bo(e,t,r)));n=Promise.all(o)}else if("string"==typeof t)n=Bo(e,t,r);else{const o="function"==typeof t?ot(e,t,r.custom):t;n=Promise.all(Po(e,o,r))}return n.then((()=>{e.notify("AnimationComplete",t)}))}(e,t,r))))}(e),r=Wo(),n=!0;const o=t=>(r,n)=>{var o;const i=ot(e,n,"exit"===t?null===(o=e.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:e,transitionEnd:t,...n}=i;r={...r,...n,...t}}return r};function i(i){const{props:a}=e,s=Vo(e.parent)||{},l=[],u=new Set;let c={},d=1/0;for(let t=0;t<Ho;t++){const p=Uo[t],h=r[p],g=void 0!==a[p]?a[p]:s[p],b=tt(g),y=p===i?h.isActive:null;!1===y&&(d=t);let v=g===s[p]&&g!==a[p]&&b;if(v&&n&&e.manuallyAnimateOnMount&&(v=!1),h.protectedKeys={...c},!h.isActive&&null===y||!g&&!h.prevProp||Xe(g)||"boolean"==typeof g)continue;const D=(f=h.prevProp,"string"==typeof(m=g)?m!==f:!!Array.isArray(m)&&!et(m,f));let _=D||p===i&&h.isActive&&!v&&b||t>d&&b,x=!1;const k=Array.isArray(g)?g:[g];let E=k.reduce(o(p),{});!1===y&&(E={});const{prevResolvedValues:w={}}=h,C={...w,...E},M=t=>{_=!0,u.has(t)&&(x=!0,u.delete(t)),h.needsAnimating[t]=!0;const r=e.getValue(t);r&&(r.liveStyle=!1)};for(const e in C){const t=E[e],r=w[e];if(c.hasOwnProperty(e))continue;let n=!1;n=Je(t)&&Je(r)?!et(t,r):t!==r,n?null!=t?M(e):u.add(e):void 0!==t&&u.has(e)?M(e):h.protectedKeys[e]=!0}h.prevProp=g,h.prevResolvedValues=E,h.isActive&&(c={...c,...E}),n&&e.blockInitialAnimation&&(_=!1),_&&(!v||!D||x)&&l.push(...k.map((e=>({animation:e,options:{type:p}}))))}var f,m;if(u.size){const t={};u.forEach((r=>{const n=e.getBaseTarget(r),o=e.getValue(r);o&&(o.liveStyle=!0),t[r]=null!=n?n:null})),l.push({animation:t})}let p=Boolean(l.length);return!n||!1!==a.initial&&a.initial!==a.animate||e.manuallyAnimateOnMount||(p=!1),n=!1,p?t(l):Promise.resolve()}return{animateChanges:i,setActive:function(t,n){var o;if(r[t].isActive===n)return Promise.resolve();null===(o=e.variantChildren)||void 0===o||o.forEach((e=>{var r;return null===(r=e.animationState)||void 0===r?void 0:r.setActive(t,n)})),r[t].isActive=n;const a=i(t);for(const e in r)r[e].protectedKeys={};return a},setAnimateFunction:function(r){t=r(e)},getState:()=>r,reset:()=>{r=Wo(),n=!0}}}function Qo(e=!1){return{isActive:e,protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function Wo(){return{animate:Qo(!0),whileInView:Qo(),whileHover:Qo(),whileTap:Qo(),whileDrag:Qo(),whileFocus:Qo(),exit:Qo()}}class Go{constructor(e){this.isMounted=!1,this.node=e}update(){}}let Zo=0;const $o={animation:{Feature:class extends Go{constructor(e){super(e),e.animationState||(e.animationState=Yo(e))}updateAnimationControlsSubscription(){const{animate:e}=this.node.getProps();Xe(e)&&(this.unmountControls=e.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:e}=this.node.getProps(),{animate:t}=this.node.prevProps||{};e!==t&&this.updateAnimationControlsSubscription()}unmount(){var e;this.node.animationState.reset(),null===(e=this.unmountControls)||void 0===e||e.call(this)}}},exit:{Feature:class extends Go{constructor(){super(...arguments),this.id=Zo++}update(){if(!this.node.presenceContext)return;const{isPresent:e,onExitComplete:t}=this.node.presenceContext,{isPresent:r}=this.node.prevPresenceContext||{};if(!this.node.animationState||e===r)return;const n=this.node.animationState.setActive("exit",!e);t&&!e&&n.then((()=>t(this.id)))}mount(){const{register:e}=this.node.presenceContext||{};e&&(this.unmount=e(this.id))}unmount(){}}}};function Ko(e,t,r,n={passive:!0}){return e.addEventListener(t,r,n),()=>e.removeEventListener(t,r)}function Xo(e){return{point:{x:e.pageX,y:e.pageY}}}function Jo(e,t,r,n){return Ko(e,t,(e=>t=>Ot(t)&&e(t,Xo(t)))(r),n)}const ei=(e,t)=>Math.abs(e-t);class ti{constructor(e,t,{transformPagePoint:r,contextWindow:n,dragSnapToOrigin:o=!1}={}){if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const e=oi(this.lastMoveEventInfo,this.history),t=null!==this.startEvent,r=function(e,t){const r=ei(e.x,t.x),n=ei(e.y,t.y);return Math.sqrt(r**2+n**2)}(e.offset,{x:0,y:0})>=3;if(!t&&!r)return;const{point:n}=e,{timestamp:o}=Wt;this.history.push({...n,timestamp:o});const{onStart:i,onMove:a}=this.handlers;t||(i&&i(this.lastMoveEvent,e),this.startEvent=this.lastMoveEvent),a&&a(this.lastMoveEvent,e)},this.handlePointerMove=(e,t)=>{this.lastMoveEvent=e,this.lastMoveEventInfo=ri(t,this.transformPagePoint),Yt.update(this.updatePoint,!0)},this.handlePointerUp=(e,t)=>{this.end();const{onEnd:r,onSessionEnd:n,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=oi("pointercancel"===e.type?this.lastMoveEventInfo:ri(t,this.transformPagePoint),this.history);this.startEvent&&r&&r(e,i),n&&n(e,i)},!Ot(e))return;this.dragSnapToOrigin=o,this.handlers=t,this.transformPagePoint=r,this.contextWindow=n||window;const i=ri(Xo(e),this.transformPagePoint),{point:a}=i,{timestamp:s}=Wt;this.history=[{...a,timestamp:s}];const{onSessionStart:l}=t;l&&l(e,oi(i,this.history)),this.removeListeners=Kn(Jo(this.contextWindow,"pointermove",this.handlePointerMove),Jo(this.contextWindow,"pointerup",this.handlePointerUp),Jo(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(e){this.handlers=e}end(){this.removeListeners&&this.removeListeners(),Qt(this.updatePoint)}}function ri(e,t){return t?{point:t(e.point)}:e}function ni(e,t){return{x:e.x-t.x,y:e.y-t.y}}function oi({point:e},t){return{point:e,delta:ni(e,ai(t)),offset:ni(e,ii(t)),velocity:si(t,.1)}}function ii(e){return e[0]}function ai(e){return e[e.length-1]}function si(e,t){if(e.length<2)return{x:0,y:0};let r=e.length-1,n=null;const o=ai(e);for(;r>=0&&(n=e[r],!(o.timestamp-n.timestamp>Rt(t)));)r--;if(!n)return{x:0,y:0};const i=Pt(o.timestamp-n.timestamp);if(0===i)return{x:0,y:0};const a={x:(o.x-n.x)/i,y:(o.y-n.y)/i};return a.x===1/0&&(a.x=0),a.y===1/0&&(a.y=0),a}function li(e){return e&&"object"==typeof e&&Object.prototype.hasOwnProperty.call(e,"current")}function ui(e){return e.max-e.min}function ci(e,t,r,n=.5){e.origin=n,e.originPoint=Un(t.min,t.max,e.origin),e.scale=ui(r)/ui(t),e.translate=Un(r.min,r.max,e.origin)-e.originPoint,(e.scale>=.9999&&e.scale<=1.0001||isNaN(e.scale))&&(e.scale=1),(e.translate>=-.01&&e.translate<=.01||isNaN(e.translate))&&(e.translate=0)}function di(e,t,r,n){ci(e.x,t.x,r.x,n?n.originX:void 0),ci(e.y,t.y,r.y,n?n.originY:void 0)}function fi(e,t,r){e.min=r.min+t.min,e.max=e.min+ui(t)}function mi(e,t,r){e.min=t.min-r.min,e.max=e.min+ui(t)}function pi(e,t,r){mi(e.x,t.x,r.x),mi(e.y,t.y,r.y)}function hi(e,t,r){return{min:void 0!==t?e.min+t:void 0,max:void 0!==r?e.max+r-(e.max-e.min):void 0}}function gi(e,t){let r=t.min-e.min,n=t.max-e.max;return t.max-t.min<e.max-e.min&&([r,n]=[n,r]),{min:r,max:n}}const bi=.35;function yi(e,t,r){return{min:vi(e,t),max:vi(e,r)}}function vi(e,t){return"number"==typeof e?e:e[t]||0}const Di=()=>({x:{min:0,max:0},y:{min:0,max:0}});function _i(e){return[e("x"),e("y")]}function xi({top:e,left:t,right:r,bottom:n}){return{x:{min:t,max:r},y:{min:e,max:n}}}function ki(e){return void 0===e||1===e}function Ei({scale:e,scaleX:t,scaleY:r}){return!ki(e)||!ki(t)||!ki(r)}function wi(e){return Ei(e)||Ci(e)||e.z||e.rotate||e.rotateX||e.rotateY||e.skewX||e.skewY}function Ci(e){return Mi(e.x)||Mi(e.y)}function Mi(e){return e&&"0%"!==e}function Ai(e,t,r){return r+t*(e-r)}function Ni(e,t,r,n,o){return void 0!==o&&(e=Ai(e,o,n)),Ai(e,r,n)+t}function ji(e,t=0,r=1,n,o){e.min=Ni(e.min,t,r,n,o),e.max=Ni(e.max,t,r,n,o)}function Oi(e,{x:t,y:r}){ji(e.x,t.translate,t.scale,t.originPoint),ji(e.y,r.translate,r.scale,r.originPoint)}const Ti=.999999999999,Si=1.0000000000001;function Ii(e,t){e.min=e.min+t,e.max=e.max+t}function Fi(e,t,r,n,o=.5){ji(e,t,r,Un(e.min,e.max,o),n)}function Li(e,t){Fi(e.x,t.x,t.scaleX,t.scale,t.originX),Fi(e.y,t.y,t.scaleY,t.scale,t.originY)}function Ri(e,t){return xi(function(e,t){if(!t)return e;const r=t({x:e.left,y:e.top}),n=t({x:e.right,y:e.bottom});return{top:r.y,left:r.x,bottom:n.y,right:n.x}}(e.getBoundingClientRect(),t))}const Pi=({current:e})=>e?e.ownerDocument.defaultView:null,Bi=new WeakMap;class zi{constructor(e){this.openDragLock=null,this.isDragging=!1,this.currentDirection=null,this.originPoint={x:0,y:0},this.constraints=!1,this.hasMutatedConstraints=!1,this.elastic={x:{min:0,max:0},y:{min:0,max:0}},this.visualElement=e}start(e,{snapToCursor:t=!1}={}){const{presenceContext:r}=this.visualElement;if(r&&!1===r.isPresent)return;const{dragSnapToOrigin:n}=this.getProps();this.panSession=new ti(e,{onSessionStart:e=>{const{dragSnapToOrigin:r}=this.getProps();r?this.pauseAnimation():this.stopAnimation(),t&&this.snapToCursor(Xo(e).point)},onStart:(e,t)=>{const{drag:r,dragPropagation:n,onDragStart:o}=this.getProps();if(r&&!n&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=r)||"y"===i?Ct[i]?null:(Ct[i]=!0,()=>{Ct[i]=!1}):Ct.x||Ct.y?null:(Ct.x=Ct.y=!0,()=>{Ct.x=Ct.y=!1}),!this.openDragLock))return;var i;this.isDragging=!0,this.currentDirection=null,this.resolveConstraints(),this.visualElement.projection&&(this.visualElement.projection.isAnimationBlocked=!0,this.visualElement.projection.target=void 0),_i((e=>{let t=this.getAxisMotionValue(e).get()||0;if(Rr.test(t)){const{projection:r}=this.visualElement;if(r&&r.layout){const n=r.layout.layoutBox[e];n&&(t=ui(n)*(parseFloat(t)/100))}}this.originPoint[e]=t})),o&&Yt.postRender((()=>o(e,t))),sr(this.visualElement,"transform");const{animationState:a}=this.visualElement;a&&a.setActive("whileDrag",!0)},onMove:(e,t)=>{const{dragPropagation:r,dragDirectionLock:n,onDirectionLock:o,onDrag:i}=this.getProps();if(!r&&!this.openDragLock)return;const{offset:a}=t;if(n&&null===this.currentDirection)return this.currentDirection=function(e,t=10){let r=null;return Math.abs(e.y)>t?r="y":Math.abs(e.x)>t&&(r="x"),r}(a),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",t.point,a),this.updateAxis("y",t.point,a),this.visualElement.render(),i&&i(e,t)},onSessionEnd:(e,t)=>this.stop(e,t),resumeAnimation:()=>_i((e=>{var t;return"paused"===this.getAnimationState(e)&&(null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:n,contextWindow:Pi(this.visualElement)})}stop(e,t){const r=this.isDragging;if(this.cancel(),!r)return;const{velocity:n}=t;this.startAnimation(n);const{onDragEnd:o}=this.getProps();o&&Yt.postRender((()=>o(e,t)))}cancel(){this.isDragging=!1;const{projection:e,animationState:t}=this.visualElement;e&&(e.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:r}=this.getProps();!r&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),t&&t.setActive("whileDrag",!1)}updateAxis(e,t,r){const{drag:n}=this.getProps();if(!r||!qi(e,n,this.currentDirection))return;const o=this.getAxisMotionValue(e);let i=this.originPoint[e]+r[e];this.constraints&&this.constraints[e]&&(i=function(e,{min:t,max:r},n){return void 0!==t&&e<t?e=n?Un(t,e,n.min):Math.max(e,t):void 0!==r&&e>r&&(e=n?Un(r,e,n.max):Math.min(e,r)),e}(i,this.constraints[e],this.elastic[e])),o.set(i)}resolveConstraints(){var e;const{dragConstraints:t,dragElastic:r}=this.getProps(),n=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(e=this.visualElement.projection)||void 0===e?void 0:e.layout,o=this.constraints;t&&li(t)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!t||!n)&&function(e,{top:t,left:r,bottom:n,right:o}){return{x:hi(e.x,r,o),y:hi(e.y,t,n)}}(n.layoutBox,t),this.elastic=function(e=bi){return!1===e?e=0:!0===e&&(e=bi),{x:yi(e,"left","right"),y:yi(e,"top","bottom")}}(r),o!==this.constraints&&n&&this.constraints&&!this.hasMutatedConstraints&&_i((e=>{!1!==this.constraints&&this.getAxisMotionValue(e)&&(this.constraints[e]=function(e,t){const r={};return void 0!==t.min&&(r.min=t.min-e.min),void 0!==t.max&&(r.max=t.max-e.min),r}(n.layoutBox[e],this.constraints[e]))}))}resolveRefConstraints(){const{dragConstraints:e,onMeasureDragConstraints:t}=this.getProps();if(!e||!li(e))return!1;const r=e.current;wn(null!==r,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:n}=this.visualElement;if(!n||!n.layout)return!1;const o=function(e,t,r){const n=Ri(e,r),{scroll:o}=t;return o&&(Ii(n.x,o.offset.x),Ii(n.y,o.offset.y)),n}(r,n.root,this.visualElement.getTransformPagePoint());let i=function(e,t){return{x:gi(e.x,t.x),y:gi(e.y,t.y)}}(n.layout.layoutBox,o);if(t){const e=t(function({x:e,y:t}){return{top:t.min,right:e.max,bottom:t.max,left:e.min}}(i));this.hasMutatedConstraints=!!e,e&&(i=xi(e))}return i}startAnimation(e){const{drag:t,dragMomentum:r,dragElastic:n,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:a}=this.getProps(),s=this.constraints||{},l=_i((a=>{if(!qi(a,t,this.currentDirection))return;let l=s&&s[a]||{};i&&(l={min:0,max:0});const u=n?200:1e6,c=n?40:1e7,d={type:"inertia",velocity:r?e[a]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(a,d)}));return Promise.all(l).then(a)}startAxisValueAnimation(e,t){const r=this.getAxisMotionValue(e);return sr(this.visualElement,e),r.start(Lo(e,r,0,t,this.visualElement,!1))}stopAnimation(){_i((e=>this.getAxisMotionValue(e).stop()))}pauseAnimation(){_i((e=>{var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.pause()}))}getAnimationState(e){var t;return null===(t=this.getAxisMotionValue(e).animation)||void 0===t?void 0:t.state}getAxisMotionValue(e){const t=`_drag${e.toUpperCase()}`,r=this.visualElement.getProps();return r[t]||this.visualElement.getValue(e,(r.initial?r.initial[e]:void 0)||0)}snapToCursor(e){_i((t=>{const{drag:r}=this.getProps();if(!qi(t,r,this.currentDirection))return;const{projection:n}=this.visualElement,o=this.getAxisMotionValue(t);if(n&&n.layout){const{min:r,max:i}=n.layout.layoutBox[t];o.set(e[t]-Un(r,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:e,dragConstraints:t}=this.getProps(),{projection:r}=this.visualElement;if(!li(t)||!r||!this.constraints)return;this.stopAnimation();const n={x:0,y:0};_i((e=>{const t=this.getAxisMotionValue(e);if(t&&!1!==this.constraints){const r=t.get();n[e]=function(e,t){let r=.5;const n=ui(e),o=ui(t);return o>n?r=Dt(t.min,t.max-n,e.min):n>o&&(r=Dt(e.min,e.max-o,t.min)),kr(0,1,r)}({min:r,max:r},this.constraints[e])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",r.root&&r.root.updateScroll(),r.updateLayout(),this.resolveConstraints(),_i((t=>{if(!qi(t,e,null))return;const r=this.getAxisMotionValue(t),{min:o,max:i}=this.constraints[t];r.set(Un(o,i,n[t]))}))}addListeners(){if(!this.visualElement.current)return;Bi.set(this.visualElement,this);const e=Jo(this.visualElement.current,"pointerdown",(e=>{const{drag:t,dragListener:r=!0}=this.getProps();t&&r&&this.start(e)})),t=()=>{const{dragConstraints:e}=this.getProps();li(e)&&e.current&&(this.constraints=this.resolveRefConstraints())},{projection:r}=this.visualElement,n=r.addEventListener("measure",t);r&&!r.layout&&(r.root&&r.root.updateScroll(),r.updateLayout()),Yt.read(t);const o=Ko(window,"resize",(()=>this.scalePositionWithinConstraints())),i=r.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t})=>{this.isDragging&&t&&(_i((t=>{const r=this.getAxisMotionValue(t);r&&(this.originPoint[t]+=e[t].translate,r.set(r.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),e(),n(),i&&i()}}getProps(){const e=this.visualElement.getProps(),{drag:t=!1,dragDirectionLock:r=!1,dragPropagation:n=!1,dragConstraints:o=!1,dragElastic:i=bi,dragMomentum:a=!0}=e;return{...e,drag:t,dragDirectionLock:r,dragPropagation:n,dragConstraints:o,dragElastic:i,dragMomentum:a}}}function qi(e,t,r){return!(!0!==t&&t!==e||null!==r&&r!==e)}const Vi=e=>(t,r)=>{e&&Yt.postRender((()=>e(t,r)))},Ui=(0,Ie.createContext)({}),Hi={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function Yi(e,t){return t.max===t.min?0:e/(t.max-t.min)*100}const Qi={correct:(e,t)=>{if(!t.target)return e;if("string"==typeof e){if(!Pr.test(e))return e;e=parseFloat(e)}return`${Yi(e,t.target.x)}% ${Yi(e,t.target.y)}%`}},Wi={correct:(e,{treeScale:t,projectionDelta:r})=>{const n=e,o=Xr.parse(e);if(o.length>5)return n;const i=Xr.createTransformer(e),a="number"!=typeof o[0]?1:0,s=r.x.scale*t.x,l=r.y.scale*t.y;o[0+a]/=s,o[1+a]/=l;const u=Un(s,l,.5);return"number"==typeof o[2+a]&&(o[2+a]/=u),"number"==typeof o[3+a]&&(o[3+a]/=u),i(o)}},Gi={},{schedule:Zi,cancel:$i}=Ht(queueMicrotask,!1);class Ki extends Ie.Component{componentDidMount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r,layoutId:n}=this.props,{projection:o}=e;var i;i=Ji,Object.assign(Gi,i),o&&(t.group&&t.group.add(o),r&&r.register&&n&&r.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),Hi.hasEverUpdated=!0}getSnapshotBeforeUpdate(e){const{layoutDependency:t,visualElement:r,drag:n,isPresent:o}=this.props,i=r.projection;return i?(i.isPresent=o,n||e.layoutDependency!==t||void 0===t?i.willUpdate():this.safeToRemove(),e.isPresent!==o&&(o?i.promote():i.relegate()||Yt.postRender((()=>{const e=i.getStack();e&&e.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:e}=this.props.visualElement;e&&(e.root.didUpdate(),Zi.postRender((()=>{!e.currentAnimation&&e.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:e,layoutGroup:t,switchLayoutGroup:r}=this.props,{projection:n}=e;n&&(n.scheduleCheckAfterUnmount(),t&&t.group&&t.group.remove(n),r&&r.deregister&&r.deregister(n))}safeToRemove(){const{safeToRemove:e}=this.props;e&&e()}render(){return null}}function Xi(e){const[t,r]=Ye(),n=(0,Ie.useContext)(Re);return(0,Se.jsx)(Ki,{...e,layoutGroup:n,switchLayoutGroup:(0,Ie.useContext)(Ui),isPresent:t,safeToRemove:r})}const Ji={borderRadius:{...Qi,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:Qi,borderTopRightRadius:Qi,borderBottomLeftRadius:Qi,borderBottomRightRadius:Qi,boxShadow:Wi},ea=(e,t)=>e.depth-t.depth;class ta{constructor(){this.children=[],this.isDirty=!1}add(e){Xt(this.children,e),this.isDirty=!0}remove(e){Jt(this.children,e),this.isDirty=!0}forEach(e){this.isDirty&&this.children.sort(ea),this.isDirty=!1,this.children.forEach(e)}}function ra(e){const t=ar(e)?e.get():e;return r=t,Boolean(r&&"object"==typeof r&&r.mix&&r.toValue)?t.toValue():t;var r}const na=["TopLeft","TopRight","BottomLeft","BottomRight"],oa=na.length,ia=e=>"string"==typeof e?parseFloat(e):e,aa=e=>"number"==typeof e||Pr.test(e);function sa(e,t){return void 0!==e[t]?e[t]:e.borderRadius}const la=ca(0,.5,Dr),ua=ca(.5,.95,Bt);function ca(e,t,r){return n=>n<e?0:n>t?1:r(Dt(e,t,n))}function da(e,t){e.min=t.min,e.max=t.max}function fa(e,t){da(e.x,t.x),da(e.y,t.y)}function ma(e,t){e.translate=t.translate,e.scale=t.scale,e.originPoint=t.originPoint,e.origin=t.origin}function pa(e,t,r,n,o){return e=Ai(e-=t,1/r,n),void 0!==o&&(e=Ai(e,1/o,n)),e}function ha(e,t,[r,n,o],i,a){!function(e,t=0,r=1,n=.5,o,i=e,a=e){if(Rr.test(t)&&(t=parseFloat(t),t=Un(a.min,a.max,t/100)-a.min),"number"!=typeof t)return;let s=Un(i.min,i.max,n);e===i&&(s-=t),e.min=pa(e.min,t,r,s,o),e.max=pa(e.max,t,r,s,o)}(e,t[r],t[n],t[o],t.scale,i,a)}const ga=["x","scaleX","originX"],ba=["y","scaleY","originY"];function ya(e,t,r,n){ha(e.x,t,ga,r?r.x:void 0,n?n.x:void 0),ha(e.y,t,ba,r?r.y:void 0,n?n.y:void 0)}function va(e){return 0===e.translate&&1===e.scale}function Da(e){return va(e.x)&&va(e.y)}function _a(e,t){return e.min===t.min&&e.max===t.max}function xa(e,t){return Math.round(e.min)===Math.round(t.min)&&Math.round(e.max)===Math.round(t.max)}function ka(e,t){return xa(e.x,t.x)&&xa(e.y,t.y)}function Ea(e){return ui(e.x)/ui(e.y)}function wa(e,t){return e.translate===t.translate&&e.scale===t.scale&&e.originPoint===t.originPoint}class Ca{constructor(){this.members=[]}add(e){Xt(this.members,e),e.scheduleRender()}remove(e){if(Jt(this.members,e),e===this.prevLead&&(this.prevLead=void 0),e===this.lead){const e=this.members[this.members.length-1];e&&this.promote(e)}}relegate(e){const t=this.members.findIndex((t=>e===t));if(0===t)return!1;let r;for(let e=t;e>=0;e--){const t=this.members[e];if(!1!==t.isPresent){r=t;break}}return!!r&&(this.promote(r),!0)}promote(e,t){const r=this.lead;if(e!==r&&(this.prevLead=r,this.lead=e,e.show(),r)){r.instance&&r.scheduleRender(),e.scheduleRender(),e.resumeFrom=r,t&&(e.resumeFrom.preserveOpacity=!0),r.snapshot&&(e.snapshot=r.snapshot,e.snapshot.latestValues=r.animationValues||r.latestValues),e.root&&e.root.isUpdating&&(e.isLayoutDirty=!0);const{crossfade:n}=e.options;!1===n&&r.hide()}}exitAnimationComplete(){this.members.forEach((e=>{const{options:t,resumingFrom:r}=e;t.onExitComplete&&t.onExitComplete(),r&&r.options.onExitComplete&&r.options.onExitComplete()}))}scheduleRender(){this.members.forEach((e=>{e.instance&&e.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const Ma={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Aa="undefined"!=typeof window&&void 0!==window.MotionDebug,Na=["","X","Y","Z"],ja={visibility:"hidden"};let Oa=0;function Ta(e,t,r,n){const{latestValues:o}=t;o[e]&&(r[e]=o[e],t.setStaticValue(e,0),n&&(n[e]=0))}function Sa(e){if(e.hasCheckedOptimisedAppear=!0,e.root===e)return;const{visualElement:t}=e.options;if(!t)return;const r=cr(t);if(window.MotionHasOptimisedAnimation(r,"transform")){const{layout:t,layoutId:n}=e.options;window.MotionCancelOptimisedAnimation(r,"transform",Yt,!(t||n))}const{parent:n}=e;n&&!n.hasCheckedOptimisedAppear&&Sa(n)}function Ia({attachResizeListener:e,defaultParent:t,measureScroll:r,checkIsScrollRoot:n,resetTransform:o}){return class{constructor(e={},r=(null==t?void 0:t())){this.id=Oa++,this.animationId=0,this.children=new Set,this.options={},this.isTreeAnimating=!1,this.isAnimationBlocked=!1,this.isLayoutDirty=!1,this.isProjectionDirty=!1,this.isSharedProjectionDirty=!1,this.isTransformDirty=!1,this.updateManuallyBlocked=!1,this.updateBlockedByResize=!1,this.isUpdating=!1,this.isSVG=!1,this.needsReset=!1,this.shouldResetTransform=!1,this.hasCheckedOptimisedAppear=!1,this.treeScale={x:1,y:1},this.eventHandlers=new Map,this.hasTreeAnimated=!1,this.updateScheduled=!1,this.scheduleUpdate=()=>this.update(),this.projectionUpdateScheduled=!1,this.checkUpdateFailed=()=>{this.isUpdating&&(this.isUpdating=!1,this.clearAllSnapshots())},this.updateProjection=()=>{this.projectionUpdateScheduled=!1,Aa&&(Ma.totalNodes=Ma.resolvedTargetDeltas=Ma.recalculatedProjection=0),this.nodes.forEach(Ra),this.nodes.forEach(Ha),this.nodes.forEach(Ya),this.nodes.forEach(Pa),Aa&&window.MotionDebug.record(Ma)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=e,this.root=r?r.root||r:this,this.path=r?[...r.path,r]:[],this.parent=r,this.depth=r?r.depth+1:0;for(let e=0;e<this.path.length;e++)this.path[e].shouldResetTransform=!0;this.root===this&&(this.nodes=new ta)}addEventListener(e,t){return this.eventHandlers.has(e)||this.eventHandlers.set(e,new er),this.eventHandlers.get(e).add(t)}notifyListeners(e,...t){const r=this.eventHandlers.get(e);r&&r.notify(...t)}hasListeners(e){return this.eventHandlers.has(e)}mount(t,r=this.root.hasTreeAnimated){if(this.instance)return;var n;this.isSVG=(n=t)instanceof SVGElement&&"svg"!==n.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:a}=this.options;if(a&&!a.current&&a.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),r&&(i||o)&&(this.isLayoutDirty=!0),e){let r;const n=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,r&&r(),r=function(e,t){const r=Kt.now(),n=({timestamp:o})=>{const i=o-r;i>=t&&(Qt(n),e(i-t))};return Yt.read(n,!0),()=>Qt(n)}(n,250),Hi.hasAnimatedSinceResize&&(Hi.hasAnimatedSinceResize=!1,this.nodes.forEach(Ua))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&a&&(o||i)&&this.addEventListener("didUpdate",(({delta:e,hasLayoutChanged:t,hasRelativeTargetChanged:r,layout:n})=>{if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const o=this.options.transition||a.getDefaultTransition()||Ka,{onLayoutAnimationStart:i,onLayoutAnimationComplete:s}=a.getProps(),l=!this.targetLayout||!ka(this.targetLayout,n)||r,u=!t&&r;if(this.options.layoutRoot||this.resumeFrom&&this.resumeFrom.instance||u||t&&(l||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,u);const t={...dt(o,"layout"),onPlay:i,onComplete:s};(a.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else t||Ua(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=n}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const e=this.getStack();e&&e.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,Qt(this.updateProjection)}blockUpdate(){this.updateManuallyBlocked=!0}unblockUpdate(){this.updateManuallyBlocked=!1}isUpdateBlocked(){return this.updateManuallyBlocked||this.updateBlockedByResize}isTreeAnimationBlocked(){return this.isAnimationBlocked||this.parent&&this.parent.isTreeAnimationBlocked()||!1}startUpdate(){this.isUpdateBlocked()||(this.isUpdating=!0,this.nodes&&this.nodes.forEach(Qa),this.animationId++)}getTransformTemplate(){const{visualElement:e}=this.options;return e&&e.getProps().transformTemplate}willUpdate(e=!0){if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Sa(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let e=0;e<this.path.length;e++){const t=this.path[e];t.shouldResetTransform=!0,t.updateScroll("snapshot"),t.options.layoutRoot&&t.willUpdate(!1)}const{layoutId:t,layout:r}=this.options;if(void 0===t&&!r)return;const n=this.getTransformTemplate();this.prevTransformTemplateValue=n?n(this.latestValues,""):void 0,this.updateSnapshot(),e&&this.notifyListeners("willUpdate")}update(){if(this.updateScheduled=!1,this.isUpdateBlocked())return this.unblockUpdate(),this.clearAllSnapshots(),void this.nodes.forEach(za);this.isUpdating||this.nodes.forEach(qa),this.isUpdating=!1,this.nodes.forEach(Va),this.nodes.forEach(Fa),this.nodes.forEach(La),this.clearAllSnapshots();const e=Kt.now();Wt.delta=kr(0,1e3/60,e-Wt.timestamp),Wt.timestamp=e,Wt.isProcessing=!0,Gt.update.process(Wt),Gt.preRender.process(Wt),Gt.render.process(Wt),Wt.isProcessing=!1}didUpdate(){this.updateScheduled||(this.updateScheduled=!0,Zi.read(this.scheduleUpdate))}clearAllSnapshots(){this.nodes.forEach(Ba),this.sharedNodes.forEach(Wa)}scheduleUpdateProjection(){this.projectionUpdateScheduled||(this.projectionUpdateScheduled=!0,Yt.preRender(this.updateProjection,!1,!0))}scheduleCheckAfterUnmount(){Yt.postRender((()=>{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure())}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let e=0;e<this.path.length;e++)this.path[e].updateScroll();const e=this.layout;this.layout=this.measure(!1),this.layoutCorrected={x:{min:0,max:0},y:{min:0,max:0}},this.isLayoutDirty=!1,this.projectionDelta=void 0,this.notifyListeners("measure",this.layout.layoutBox);const{visualElement:t}=this.options;t&&t.notify("LayoutMeasure",this.layout.layoutBox,e?e.layoutBox:void 0)}updateScroll(e="measure"){let t=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===e&&(t=!1),t){const t=n(this.instance);this.scroll={animationId:this.root.animationId,phase:e,isRoot:t,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:t}}}resetTransform(){if(!o)return;const e=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,t=this.projectionDelta&&!Da(this.projectionDelta),r=this.getTransformTemplate(),n=r?r(this.latestValues,""):void 0,i=n!==this.prevTransformTemplateValue;e&&(t||wi(this.latestValues)||i)&&(o(this.instance,n),this.shouldResetTransform=!1,this.scheduleRender())}measure(e=!0){const t=this.measurePageBox();let r=this.removeElementScroll(t);var n;return e&&(r=this.removeTransform(r)),es((n=r).x),es(n.y),{animationId:this.root.animationId,measuredBox:t,layoutBox:r,latestValues:{},source:this.id}}measurePageBox(){var e;const{visualElement:t}=this.options;if(!t)return{x:{min:0,max:0},y:{min:0,max:0}};const r=t.measureViewportBox();if(!(null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)&&!this.path.some(rs)){const{scroll:e}=this.root;e&&(Ii(r.x,e.offset.x),Ii(r.y,e.offset.y))}return r}removeElementScroll(e){var t;const r={x:{min:0,max:0},y:{min:0,max:0}};if(fa(r,e),null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)return r;for(let t=0;t<this.path.length;t++){const n=this.path[t],{scroll:o,options:i}=n;n!==this.root&&o&&i.layoutScroll&&(o.wasRoot&&fa(r,e),Ii(r.x,o.offset.x),Ii(r.y,o.offset.y))}return r}applyTransform(e,t=!1){const r={x:{min:0,max:0},y:{min:0,max:0}};fa(r,e);for(let e=0;e<this.path.length;e++){const n=this.path[e];!t&&n.options.layoutScroll&&n.scroll&&n!==n.root&&Li(r,{x:-n.scroll.offset.x,y:-n.scroll.offset.y}),wi(n.latestValues)&&Li(r,n.latestValues)}return wi(this.latestValues)&&Li(r,this.latestValues),r}removeTransform(e){const t={x:{min:0,max:0},y:{min:0,max:0}};fa(t,e);for(let e=0;e<this.path.length;e++){const r=this.path[e];if(!r.instance)continue;if(!wi(r.latestValues))continue;Ei(r.latestValues)&&r.updateSnapshot();const n={x:{min:0,max:0},y:{min:0,max:0}};fa(n,r.measurePageBox()),ya(t,r.latestValues,r.snapshot?r.snapshot.layoutBox:void 0,n)}return wi(this.latestValues)&&ya(t,this.latestValues),t}setTargetDelta(e){this.targetDelta=e,this.root.scheduleUpdateProjection(),this.isProjectionDirty=!0}setOptions(e){this.options={...this.options,...e,crossfade:void 0===e.crossfade||e.crossfade}}clearMeasurements(){this.scroll=void 0,this.layout=void 0,this.snapshot=void 0,this.prevTransformTemplateValue=void 0,this.targetDelta=void 0,this.target=void 0,this.isLayoutDirty=!1}forceRelativeParentToResolveTarget(){this.relativeParent&&this.relativeParent.resolvedRelativeTargetAt!==Wt.timestamp&&this.relativeParent.resolveTargetDelta(!0)}resolveTargetDelta(e=!1){var t;const r=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=r.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=r.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=r.isSharedProjectionDirty);const n=Boolean(this.resumingFrom)||this!==r;if(!(e||n&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=Wt.timestamp,!this.targetDelta&&!this.relativeTarget){const e=this.getClosestProjectingParent();e&&e.layout&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},pi(this.relativeTargetOrigin,this.layout.layoutBox,e.layout.layoutBox),fa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var a,s,l;if(this.target||(this.target={x:{min:0,max:0},y:{min:0,max:0}},this.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}}),this.relativeTarget&&this.relativeTargetOrigin&&this.relativeParent&&this.relativeParent.target?(this.forceRelativeParentToResolveTarget(),a=this.target,s=this.relativeTarget,l=this.relativeParent.target,fi(a.x,s.x,l.x),fi(a.y,s.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):fa(this.target,this.layout.layoutBox),Oi(this.target,this.targetDelta)):fa(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const e=this.getClosestProjectingParent();e&&Boolean(e.resumingFrom)===Boolean(this.resumingFrom)&&!e.options.layoutScroll&&e.target&&1!==this.animationProgress?(this.relativeParent=e,this.forceRelativeParentToResolveTarget(),this.relativeTarget={x:{min:0,max:0},y:{min:0,max:0}},this.relativeTargetOrigin={x:{min:0,max:0},y:{min:0,max:0}},pi(this.relativeTargetOrigin,this.target,e.target),fa(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Aa&&Ma.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Ei(this.parent.latestValues)&&!Ci(this.parent.latestValues))return this.parent.isProjecting()?this.parent:this.parent.getClosestProjectingParent()}isProjecting(){return Boolean((this.relativeTarget||this.targetDelta||this.options.layoutRoot)&&this.layout)}calcProjection(){var e;const t=this.getLead(),r=Boolean(this.resumingFrom)||this!==t;let n=!0;if((this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty))&&(n=!1),r&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(n=!1),this.resolvedRelativeTargetAt===Wt.timestamp&&(n=!1),n)return;const{layout:o,layoutId:i}=this.options;if(this.isTreeAnimating=Boolean(this.parent&&this.parent.isTreeAnimating||this.currentAnimation||this.pendingAnimation),this.isTreeAnimating||(this.targetDelta=this.relativeTarget=void 0),!this.layout||!o&&!i)return;fa(this.layoutCorrected,this.layout.layoutBox);const a=this.treeScale.x,s=this.treeScale.y;!function(e,t,r,n=!1){const o=r.length;if(!o)return;let i,a;t.x=t.y=1;for(let s=0;s<o;s++){i=r[s],a=i.projectionDelta;const{visualElement:o}=i.options;o&&o.props.style&&"contents"===o.props.style.display||(n&&i.options.layoutScroll&&i.scroll&&i!==i.root&&Li(e,{x:-i.scroll.offset.x,y:-i.scroll.offset.y}),a&&(t.x*=a.x.scale,t.y*=a.y.scale,Oi(e,a)),n&&wi(i.latestValues)&&Li(e,i.latestValues))}t.x<Si&&t.x>Ti&&(t.x=1),t.y<Si&&t.y>Ti&&(t.y=1)}(this.layoutCorrected,this.treeScale,this.path,r),!t.layout||t.target||1===this.treeScale.x&&1===this.treeScale.y||(t.target=t.layout.layoutBox,t.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=t;l?(this.projectionDelta&&this.prevProjectionDelta?(ma(this.prevProjectionDelta.x,this.projectionDelta.x),ma(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),di(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===a&&this.treeScale.y===s&&wa(this.projectionDelta.x,this.prevProjectionDelta.x)&&wa(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Aa&&Ma.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(e=!0){var t;if(null===(t=this.options.visualElement)||void 0===t||t.scheduleRender(),e){const e=this.getStack();e&&e.scheduleRender()}this.resumingFrom&&!this.resumingFrom.instance&&(this.resumingFrom=void 0)}createProjectionDeltas(){this.prevProjectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDelta={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}},this.projectionDeltaWithTransform={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}}}setAnimationOrigin(e,t=!1){const r=this.snapshot,n=r?r.latestValues:{},o={...this.latestValues},i={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};this.relativeParent&&this.relativeParent.options.layoutRoot||(this.relativeTarget=this.relativeTargetOrigin=void 0),this.attemptToResolveRelativeTarget=!t;const a={x:{min:0,max:0},y:{min:0,max:0}},s=(r?r.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(s&&!u&&!0===this.options.crossfade&&!this.path.some($a));let d;this.animationProgress=0,this.mixTargetDelta=t=>{const r=t/1e3;Ga(i.x,e.x,r),Ga(i.y,e.y,r),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(pi(a,this.layout.layoutBox,this.relativeParent.layout.layoutBox),function(e,t,r,n){Za(e.x,t.x,r.x,n),Za(e.y,t.y,r.y,n)}(this.relativeTarget,this.relativeTargetOrigin,a,r),d&&function(e,t){return _a(e.x,t.x)&&_a(e.y,t.y)}(this.relativeTarget,d)&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),fa(d,this.relativeTarget)),s&&(this.animationValues=o,function(e,t,r,n,o,i){o?(e.opacity=Un(0,void 0!==r.opacity?r.opacity:1,la(n)),e.opacityExit=Un(void 0!==t.opacity?t.opacity:1,0,ua(n))):i&&(e.opacity=Un(void 0!==t.opacity?t.opacity:1,void 0!==r.opacity?r.opacity:1,n));for(let o=0;o<oa;o++){const i=`border${na[o]}Radius`;let a=sa(t,i),s=sa(r,i);void 0===a&&void 0===s||(a||(a=0),s||(s=0),0===a||0===s||aa(a)===aa(s)?(e[i]=Math.max(Un(ia(a),ia(s),n),0),(Rr.test(s)||Rr.test(a))&&(e[i]+="%")):e[i]=s)}(t.rotate||r.rotate)&&(e.rotate=Un(t.rotate||0,r.rotate||0,n))}(o,n,this.latestValues,r,c,u)),this.root.scheduleUpdateProjection(),this.scheduleRender(),this.animationProgress=r},this.mixTargetDelta(this.options.layoutRoot?1e3:0)}startAnimation(e){this.notifyListeners("animationStart"),this.currentAnimation&&this.currentAnimation.stop(),this.resumingFrom&&this.resumingFrom.currentAnimation&&this.resumingFrom.currentAnimation.stop(),this.pendingAnimation&&(Qt(this.pendingAnimation),this.pendingAnimation=void 0),this.pendingAnimation=Yt.update((()=>{Hi.hasAnimatedSinceResize=!0,this.currentAnimation=function(e,t,r){const n=ar(0)?0:or(0);return n.start(Lo("",n,1e3,r)),n.animation}(0,0,{...e,onUpdate:t=>{this.mixTargetDelta(t),e.onUpdate&&e.onUpdate(t)},onComplete:()=>{e.onComplete&&e.onComplete(),this.completeAnimation()}}),this.resumingFrom&&(this.resumingFrom.currentAnimation=this.currentAnimation),this.pendingAnimation=void 0}))}completeAnimation(){this.resumingFrom&&(this.resumingFrom.currentAnimation=void 0,this.resumingFrom.preserveOpacity=void 0);const e=this.getStack();e&&e.exitAnimationComplete(),this.resumingFrom=this.currentAnimation=this.animationValues=void 0,this.notifyListeners("animationComplete")}finishAnimation(){this.currentAnimation&&(this.mixTargetDelta&&this.mixTargetDelta(1e3),this.currentAnimation.stop()),this.completeAnimation()}applyTransformsToTarget(){const e=this.getLead();let{targetWithTransforms:t,target:r,layout:n,latestValues:o}=e;if(t&&r&&n){if(this!==e&&this.layout&&n&&ts(this.options.animationType,this.layout.layoutBox,n.layoutBox)){r=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const t=ui(this.layout.layoutBox.x);r.x.min=e.target.x.min,r.x.max=r.x.min+t;const n=ui(this.layout.layoutBox.y);r.y.min=e.target.y.min,r.y.max=r.y.min+n}fa(t,r),Li(t,o),di(this.projectionDeltaWithTransform,this.layoutCorrected,t,o)}}registerSharedNode(e,t){this.sharedNodes.has(e)||this.sharedNodes.set(e,new Ca),this.sharedNodes.get(e).add(t);const r=t.options.initialPromotionConfig;t.promote({transition:r?r.transition:void 0,preserveFollowOpacity:r&&r.shouldPreserveFollowOpacity?r.shouldPreserveFollowOpacity(t):void 0})}isLead(){const e=this.getStack();return!e||e.lead===this}getLead(){var e;const{layoutId:t}=this.options;return t&&(null===(e=this.getStack())||void 0===e?void 0:e.lead)||this}getPrevLead(){var e;const{layoutId:t}=this.options;return t?null===(e=this.getStack())||void 0===e?void 0:e.prevLead:void 0}getStack(){const{layoutId:e}=this.options;if(e)return this.root.sharedNodes.get(e)}promote({needsReset:e,transition:t,preserveFollowOpacity:r}={}){const n=this.getStack();n&&n.promote(this,r),e&&(this.projectionDelta=void 0,this.needsReset=!0),t&&this.setOptions({transition:t})}relegate(){const e=this.getStack();return!!e&&e.relegate(this)}resetSkewAndRotation(){const{visualElement:e}=this.options;if(!e)return;let t=!1;const{latestValues:r}=e;if((r.z||r.rotate||r.rotateX||r.rotateY||r.rotateZ||r.skewX||r.skewY)&&(t=!0),!t)return;const n={};r.z&&Ta("z",e,n,this.animationValues);for(let t=0;t<Na.length;t++)Ta(`rotate${Na[t]}`,e,n,this.animationValues),Ta(`skew${Na[t]}`,e,n,this.animationValues);e.render();for(const t in n)e.setStaticValue(t,n[t]),this.animationValues&&(this.animationValues[t]=n[t]);e.scheduleRender()}getProjectionStyles(e){var t,r;if(!this.instance||this.isSVG)return;if(!this.isVisible)return ja;const n={visibility:""},o=this.getTransformTemplate();if(this.needsReset)return this.needsReset=!1,n.opacity="",n.pointerEvents=ra(null==e?void 0:e.pointerEvents)||"",n.transform=o?o(this.latestValues,""):"none",n;const i=this.getLead();if(!this.projectionDelta||!this.layout||!i.target){const t={};return this.options.layoutId&&(t.opacity=void 0!==this.latestValues.opacity?this.latestValues.opacity:1,t.pointerEvents=ra(null==e?void 0:e.pointerEvents)||""),this.hasProjected&&!wi(this.latestValues)&&(t.transform=o?o({},""):"none",this.hasProjected=!1),t}const a=i.animationValues||i.latestValues;this.applyTransformsToTarget(),n.transform=function(e,t,r){let n="";const o=e.x.translate/t.x,i=e.y.translate/t.y,a=(null==r?void 0:r.z)||0;if((o||i||a)&&(n=`translate3d(${o}px, ${i}px, ${a}px) `),1===t.x&&1===t.y||(n+=`scale(${1/t.x}, ${1/t.y}) `),r){const{transformPerspective:e,rotate:t,rotateX:o,rotateY:i,skewX:a,skewY:s}=r;e&&(n=`perspective(${e}px) ${n}`),t&&(n+=`rotate(${t}deg) `),o&&(n+=`rotateX(${o}deg) `),i&&(n+=`rotateY(${i}deg) `),a&&(n+=`skewX(${a}deg) `),s&&(n+=`skewY(${s}deg) `)}const s=e.x.scale*t.x,l=e.y.scale*t.y;return 1===s&&1===l||(n+=`scale(${s}, ${l})`),n||"none"}(this.projectionDeltaWithTransform,this.treeScale,a),o&&(n.transform=o(a,n.transform));const{x:s,y:l}=this.projectionDelta;n.transformOrigin=`${100*s.origin}% ${100*l.origin}% 0`,i.animationValues?n.opacity=i===this?null!==(r=null!==(t=a.opacity)&&void 0!==t?t:this.latestValues.opacity)&&void 0!==r?r:1:this.preserveOpacity?this.latestValues.opacity:a.opacityExit:n.opacity=i===this?void 0!==a.opacity?a.opacity:"":void 0!==a.opacityExit?a.opacityExit:0;for(const e in Gi){if(void 0===a[e])continue;const{correct:t,applyTo:r}=Gi[e],o="none"===n.transform?a[e]:t(a[e],i);if(r){const e=r.length;for(let t=0;t<e;t++)n[r[t]]=o}else n[e]=o}return this.options.layoutId&&(n.pointerEvents=i===this?ra(null==e?void 0:e.pointerEvents)||"":"none"),n}clearSnapshot(){this.resumeFrom=this.snapshot=void 0}resetTree(){this.root.nodes.forEach((e=>{var t;return null===(t=e.currentAnimation)||void 0===t?void 0:t.stop()})),this.root.nodes.forEach(za),this.root.sharedNodes.clear()}}}function Fa(e){e.updateLayout()}function La(e){var t;const r=(null===(t=e.resumeFrom)||void 0===t?void 0:t.snapshot)||e.snapshot;if(e.isLead()&&e.layout&&r&&e.hasListeners("didUpdate")){const{layoutBox:t,measuredBox:n}=e.layout,{animationType:o}=e.options,i=r.source!==e.layout.source;"size"===o?_i((e=>{const n=i?r.measuredBox[e]:r.layoutBox[e],o=ui(n);n.min=t[e].min,n.max=n.min+o})):ts(o,r.layoutBox,t)&&_i((n=>{const o=i?r.measuredBox[n]:r.layoutBox[n],a=ui(t[n]);o.max=o.min+a,e.relativeTarget&&!e.currentAnimation&&(e.isProjectionDirty=!0,e.relativeTarget[n].max=e.relativeTarget[n].min+a)}));const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};di(a,t,r.layoutBox);const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?di(s,e.applyTransform(n,!0),r.measuredBox):di(s,t,r.layoutBox);const l=!Da(a);let u=!1;if(!e.resumeFrom){const n=e.getClosestProjectingParent();if(n&&!n.resumeFrom){const{snapshot:o,layout:i}=n;if(o&&i){const a={x:{min:0,max:0},y:{min:0,max:0}};pi(a,r.layoutBox,o.layoutBox);const s={x:{min:0,max:0},y:{min:0,max:0}};pi(s,t,i.layoutBox),ka(a,s)||(u=!0),n.options.layoutRoot&&(e.relativeTarget=s,e.relativeTargetOrigin=a,e.relativeParent=n)}}}e.notifyListeners("didUpdate",{layout:t,snapshot:r,delta:s,layoutDelta:a,hasLayoutChanged:l,hasRelativeTargetChanged:u})}else if(e.isLead()){const{onExitComplete:t}=e.options;t&&t()}e.options.transition=void 0}function Ra(e){Aa&&Ma.totalNodes++,e.parent&&(e.isProjecting()||(e.isProjectionDirty=e.parent.isProjectionDirty),e.isSharedProjectionDirty||(e.isSharedProjectionDirty=Boolean(e.isProjectionDirty||e.parent.isProjectionDirty||e.parent.isSharedProjectionDirty)),e.isTransformDirty||(e.isTransformDirty=e.parent.isTransformDirty))}function Pa(e){e.isProjectionDirty=e.isSharedProjectionDirty=e.isTransformDirty=!1}function Ba(e){e.clearSnapshot()}function za(e){e.clearMeasurements()}function qa(e){e.isLayoutDirty=!1}function Va(e){const{visualElement:t}=e.options;t&&t.getProps().onBeforeLayoutMeasure&&t.notify("BeforeLayoutMeasure"),e.resetTransform()}function Ua(e){e.finishAnimation(),e.targetDelta=e.relativeTarget=e.target=void 0,e.isProjectionDirty=!0}function Ha(e){e.resolveTargetDelta()}function Ya(e){e.calcProjection()}function Qa(e){e.resetSkewAndRotation()}function Wa(e){e.removeLeadSnapshot()}function Ga(e,t,r){e.translate=Un(t.translate,0,r),e.scale=Un(t.scale,1,r),e.origin=t.origin,e.originPoint=t.originPoint}function Za(e,t,r,n){e.min=Un(t.min,r.min,n),e.max=Un(t.max,r.max,n)}function $a(e){return e.animationValues&&void 0!==e.animationValues.opacityExit}const Ka={duration:.45,ease:[.4,0,.1,1]},Xa=e=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(e),Ja=Xa("applewebkit/")&&!Xa("chrome/")?Math.round:Bt;function es(e){e.min=Ja(e.min),e.max=Ja(e.max)}function ts(e,t,r){return"position"===e||"preserve-aspect"===e&&(n=Ea(t),o=Ea(r),!(Math.abs(n-o)<=.2));var n,o}function rs(e){var t;return e!==e.root&&(null===(t=e.scroll)||void 0===t?void 0:t.wasRoot)}const ns=Ia({attachResizeListener:(e,t)=>Ko(e,"resize",t),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),os={current:void 0},is=Ia({measureScroll:e=>({x:e.scrollLeft,y:e.scrollTop}),defaultParent:()=>{if(!os.current){const e=new ns({});e.mount(window),e.setOptions({layoutScroll:!0}),os.current=e}return os.current},resetTransform:(e,t)=>{e.style.transform=void 0!==t?t:"none"},checkIsScrollRoot:e=>Boolean("fixed"===window.getComputedStyle(e).position)}),as={pan:{Feature:class extends Go{constructor(){super(...arguments),this.removePointerDownListener=Bt}onPointerDown(e){this.session=new ti(e,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Pi(this.node)})}createPanHandlers(){const{onPanSessionStart:e,onPanStart:t,onPan:r,onPanEnd:n}=this.node.getProps();return{onSessionStart:Vi(e),onStart:Vi(t),onMove:r,onEnd:(e,t)=>{delete this.session,n&&Yt.postRender((()=>n(e,t)))}}}mount(){this.removePointerDownListener=Jo(this.node.current,"pointerdown",(e=>this.onPointerDown(e)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends Go{constructor(e){super(e),this.removeGroupControls=Bt,this.removeListeners=Bt,this.controls=new zi(e)}mount(){const{dragControls:e}=this.node.getProps();e&&(this.removeGroupControls=e.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||Bt}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:is,MeasureLayout:Xi}};function ss(e,t,r){const{props:n}=e;e.animationState&&n.whileHover&&e.animationState.setActive("whileHover","Start"===r);const o=n["onHover"+r];o&&Yt.postRender((()=>o(t,Xo(t))))}function ls(e,t,r){const{props:n}=e;e.animationState&&n.whileTap&&e.animationState.setActive("whileTap","Start"===r);const o=n["onTap"+("End"===r?"":r)];o&&Yt.postRender((()=>o(t,Xo(t))))}const us=new WeakMap,cs=new WeakMap,ds=e=>{const t=us.get(e.target);t&&t(e)},fs=e=>{e.forEach(ds)};const ms={some:0,all:1},ps={inView:{Feature:class extends Go{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:e={}}=this.node.getProps(),{root:t,margin:r,amount:n="some",once:o}=e,i={root:t?t.current:void 0,rootMargin:r,threshold:"number"==typeof n?n:ms[n]};return function(e,t,r){const n=function({root:e,...t}){const r=e||document;cs.has(r)||cs.set(r,{});const n=cs.get(r),o=JSON.stringify(t);return n[o]||(n[o]=new IntersectionObserver(fs,{root:e,...t})),n[o]}(t);return us.set(e,r),n.observe(e),()=>{us.delete(e),n.unobserve(e)}}(this.node.current,i,(e=>{const{isIntersecting:t}=e;if(this.isInView===t)return;if(this.isInView=t,o&&!t&&this.hasEnteredView)return;t&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",t);const{onViewportEnter:r,onViewportLeave:n}=this.node.getProps(),i=t?r:n;i&&i(e)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:e,prevProps:t}=this.node;["amount","margin","root"].some(function({viewport:e={}},{viewport:t={}}={}){return r=>e[r]!==t[r]}(e,t))&&this.startObserver()}unmount(){}}},tap:{Feature:class extends Go{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=At(e,r),a=e=>{const n=e.currentTarget;if(!Lt(e)||St.has(n))return;St.add(n);const i=t(e),a=(e,t)=>{window.removeEventListener("pointerup",s),window.removeEventListener("pointercancel",l),Lt(e)&&St.has(n)&&(St.delete(n),"function"==typeof i&&i(e,{success:t}))},s=e=>{a(e,r.useGlobalTarget||jt(n,e.target))},l=e=>{a(e,!1)};window.addEventListener("pointerup",s,o),window.addEventListener("pointercancel",l,o)};return n.forEach((e=>{(function(e){return Tt.has(e.tagName)||-1!==e.tabIndex})(e)||null!==e.getAttribute("tabindex")||(e.tabIndex=0),(r.useGlobalTarget?window:e).addEventListener("pointerdown",a,o),e.addEventListener("focus",(e=>((e,t)=>{const r=e.currentTarget;if(!r)return;const n=It((()=>{if(St.has(r))return;Ft(r,"down");const e=It((()=>{Ft(r,"up")}));r.addEventListener("keyup",e,t),r.addEventListener("blur",(()=>Ft(r,"cancel")),t)}));r.addEventListener("keydown",n,t),r.addEventListener("blur",(()=>r.removeEventListener("keydown",n)),t)})(e,o)),o)})),i}(e,(e=>(ls(this.node,e,"Start"),(e,{success:t})=>ls(this.node,e,t?"End":"Cancel"))),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends Go{constructor(){super(...arguments),this.isActive=!1}onFocus(){let e=!1;try{e=this.node.current.matches(":focus-visible")}catch(t){e=!0}e&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!0),this.isActive=!0)}onBlur(){this.isActive&&this.node.animationState&&(this.node.animationState.setActive("whileFocus",!1),this.isActive=!1)}mount(){this.unmount=Kn(Ko(this.node.current,"focus",(()=>this.onFocus())),Ko(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends Go{mount(){const{current:e}=this.node;e&&(this.unmount=function(e,t,r={}){const[n,o,i]=At(e,r),a=Nt((e=>{const{target:r}=e,n=t(e);if("function"!=typeof n||!r)return;const i=Nt((e=>{n(e),r.removeEventListener("pointerleave",i)}));r.addEventListener("pointerleave",i,o)}));return n.forEach((e=>{e.addEventListener("pointerenter",a,o)})),i}(e,(e=>(ss(this.node,e,"Start"),e=>ss(this.node,e,"End")))))}unmount(){}}}},hs={layout:{ProjectionNode:is,MeasureLayout:Xi}},gs=(0,Ie.createContext)({strict:!1}),bs=(0,Ie.createContext)({});function ys(e){return Xe(e.animate)||at.some((t=>tt(e[t])))}function vs(e){return Boolean(ys(e)||e.variants)}function Ds(e){return Array.isArray(e)?e.join(" "):e}const _s={animation:["animate","variants","whileHover","whileTap","exit","whileInView","whileFocus","whileDrag"],exit:["exit"],drag:["drag","dragControls"],focus:["whileFocus"],hover:["whileHover","onHoverStart","onHoverEnd"],tap:["whileTap","onTap","onTapStart","onTapCancel"],pan:["onPan","onPanStart","onPanSessionStart","onPanEnd"],inView:["whileInView","onViewportEnter","onViewportLeave"],layout:["layout","layoutId"]},xs={};for(const e in _s)xs[e]={isEnabled:t=>_s[e].some((e=>!!t[e]))};const ks=Symbol.for("motionComponentSymbol");function Es(e,t,r){return(0,Ie.useCallback)((n=>{n&&e.onMount&&e.onMount(n),t&&(n?t.mount(n):t.unmount()),r&&("function"==typeof r?r(n):li(r)&&(r.current=n))}),[t])}function ws(e,t,r,n,o){var i,a;const{visualElement:s}=(0,Ie.useContext)(bs),l=(0,Ie.useContext)(gs),u=(0,Ie.useContext)(Be),c=(0,Ie.useContext)(ze).reducedMotion,d=(0,Ie.useRef)(null);n=n||l.renderer,!d.current&&n&&(d.current=n(e,{visualState:t,parent:s,props:r,presenceContext:u,blockInitialAnimation:!!u&&!1===u.initial,reducedMotionConfig:c}));const f=d.current,m=(0,Ie.useContext)(Ui);!f||f.projection||!o||"html"!==f.type&&"svg"!==f.type||function(e,t,r,n){const{layoutId:o,layout:i,drag:a,dragConstraints:s,layoutScroll:l,layoutRoot:u}=t;e.projection=new r(e.latestValues,t["data-framer-portal-id"]?void 0:Cs(e.parent)),e.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(a)||s&&li(s),visualElement:e,animationType:"string"==typeof i?i:"both",initialPromotionConfig:n,layoutScroll:l,layoutRoot:u})}(d.current,r,o,m);const p=(0,Ie.useRef)(!1);(0,Ie.useInsertionEffect)((()=>{f&&p.current&&f.update(r,u)}));const h=r[ur],g=(0,Ie.useRef)(Boolean(h)&&!(null===(i=window.MotionHandoffIsComplete)||void 0===i?void 0:i.call(window,h))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,h)));return Ze((()=>{f&&(p.current=!0,window.MotionIsMounted=!0,f.updateFeatures(),Zi.render(f.render),g.current&&f.animationState&&f.animationState.animateChanges())})),(0,Ie.useEffect)((()=>{f&&(!g.current&&f.animationState&&f.animationState.animateChanges(),g.current&&(queueMicrotask((()=>{var e;null===(e=window.MotionHandoffMarkAsComplete)||void 0===e||e.call(window,h)})),g.current=!1))})),f}function Cs(e){if(e)return!1!==e.options.allowProjection?e.projection:Cs(e.parent)}function Ms({preloadedFeatures:e,createVisualElement:t,useRender:r,useVisualState:n,Component:o}){var i,a;function s(e,i){let a;const s={...(0,Ie.useContext)(ze),...e,layoutId:As(e)},{isStatic:l}=s,u=function(e){const{initial:t,animate:r}=function(e,t){if(ys(e)){const{initial:t,animate:r}=e;return{initial:!1===t||tt(t)?t:void 0,animate:tt(r)?r:void 0}}return!1!==e.inherit?t:{}}(e,(0,Ie.useContext)(bs));return(0,Ie.useMemo)((()=>({initial:t,animate:r})),[Ds(t),Ds(r)])}(e),c=n(e,l);if(!l&&Ge){(0,Ie.useContext)(gs).strict;const e=function(e){const{drag:t,layout:r}=xs;if(!t&&!r)return{};const n={...t,...r};return{MeasureLayout:(null==t?void 0:t.isEnabled(e))||(null==r?void 0:r.isEnabled(e))?n.MeasureLayout:void 0,ProjectionNode:n.ProjectionNode}}(s);a=e.MeasureLayout,u.visualElement=ws(o,c,s,t,e.ProjectionNode)}return(0,Se.jsxs)(bs.Provider,{value:u,children:[a&&u.visualElement?(0,Se.jsx)(a,{visualElement:u.visualElement,...s}):null,r(o,e,Es(c,u.visualElement,i),c,l,u.visualElement)]})}e&&function(e){for(const t in e)xs[t]={...xs[t],...e[t]}}(e),s.displayName=`motion.${"string"==typeof o?o:`create(${null!==(a=null!==(i=o.displayName)&&void 0!==i?i:o.name)&&void 0!==a?a:""})`}`;const l=(0,Ie.forwardRef)(s);return l[ks]=o,l}function As({layoutId:e}){const t=(0,Ie.useContext)(Re).id;return t&&void 0!==e?t+"-"+e:e}const Ns=["animate","circle","defs","desc","ellipse","g","image","line","filter","marker","mask","metadata","path","pattern","polygon","polyline","rect","stop","switch","symbol","svg","text","tspan","use","view"];function js(e){return"string"==typeof e&&!e.includes("-")&&!!(Ns.indexOf(e)>-1||/[A-Z]/u.test(e))}const Os=e=>(t,r)=>{const n=(0,Ie.useContext)(bs),o=(0,Ie.useContext)(Be),i=()=>function({scrapeMotionValuesFromProps:e,createRenderState:t,onUpdate:r},n,o,i){const a={latestValues:Ts(n,o,i,e),renderState:t()};return r&&(a.onMount=e=>r({props:n,current:e,...a}),a.onUpdate=e=>r(e)),a}(e,t,n,o);return r?i():Pe(i)};function Ts(e,t,r,n){const o={},i=n(e,{});for(const e in i)o[e]=ra(i[e]);let{initial:a,animate:s}=e;const l=ys(e),u=vs(e);t&&u&&!l&&!1!==e.inherit&&(void 0===a&&(a=t.initial),void 0===s&&(s=t.animate));let c=!!r&&!1===r.initial;c=c||!1===a;const d=c?s:a;if(d&&"boolean"!=typeof d&&!Xe(d)){const t=Array.isArray(d)?d:[d];for(let r=0;r<t.length;r++){const n=nt(e,t[r]);if(n){const{transitionEnd:e,transition:t,...r}=n;for(const e in r){let t=r[e];Array.isArray(t)&&(t=t[c?t.length-1:0]),null!==t&&(o[e]=t)}for(const t in e)o[t]=e[t]}}}return o}const Ss=(e,t)=>t&&"number"==typeof e?t.transform(e):e,Is={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},Fs=zt.length;function Ls(e,t,r){const{style:n,vars:o,transformOrigin:i}=e;let a=!1,s=!1;for(const e in t){const r=t[e];if(qt.has(e))a=!0;else if(An(e))o[e]=r;else{const t=Ss(r,sn[e]);e.startsWith("origin")?(s=!0,i[e]=t):n[e]=t}}if(t.transform||(a||r?n.transform=function(e,t,r){let n="",o=!0;for(let i=0;i<Fs;i++){const a=zt[i],s=e[a];if(void 0===s)continue;let l=!0;if(l="number"==typeof s?s===(a.startsWith("scale")?1:0):0===parseFloat(s),!l||r){const e=Ss(s,sn[a]);l||(o=!1,n+=`${Is[a]||a}(${e}) `),r&&(t[a]=e)}}return n=n.trim(),r?n=r(t,o?"":n):o&&(n="none"),n}(t,e.transform,r):n.transform&&(n.transform="none")),s){const{originX:e="50%",originY:t="50%",originZ:r=0}=i;n.transformOrigin=`${e} ${t} ${r}`}}const Rs={offset:"stroke-dashoffset",array:"stroke-dasharray"},Ps={offset:"strokeDashoffset",array:"strokeDasharray"};function Bs(e,t,r){return"string"==typeof e?e:Pr.transform(t+r*e)}function zs(e,{attrX:t,attrY:r,attrScale:n,originX:o,originY:i,pathLength:a,pathSpacing:s=1,pathOffset:l=0,...u},c,d){if(Ls(e,u,d),c)return void(e.style.viewBox&&(e.attrs.viewBox=e.style.viewBox));e.attrs=e.style,e.style={};const{attrs:f,style:m,dimensions:p}=e;f.transform&&(p&&(m.transform=f.transform),delete f.transform),p&&(void 0!==o||void 0!==i||m.transform)&&(m.transformOrigin=function(e,t,r){return`${Bs(t,e.x,e.width)} ${Bs(r,e.y,e.height)}`}(p,void 0!==o?o:.5,void 0!==i?i:.5)),void 0!==t&&(f.x=t),void 0!==r&&(f.y=r),void 0!==n&&(f.scale=n),void 0!==a&&function(e,t,r=1,n=0,o=!0){e.pathLength=1;const i=o?Rs:Ps;e[i.offset]=Pr.transform(-n);const a=Pr.transform(t),s=Pr.transform(r);e[i.array]=`${a} ${s}`}(f,a,s,l,!1)}const qs=e=>"string"==typeof e&&"svg"===e.toLowerCase();function Vs(e,{style:t,vars:r},n,o){Object.assign(e.style,t,o&&o.getProjectionStyles(n));for(const t in r)e.style.setProperty(t,r[t])}const Us=new Set(["baseFrequency","diffuseConstant","kernelMatrix","kernelUnitLength","keySplines","keyTimes","limitingConeAngle","markerHeight","markerWidth","numOctaves","targetX","targetY","surfaceScale","specularConstant","specularExponent","stdDeviation","tableValues","viewBox","gradientTransform","pathLength","startOffset","textLength","lengthAdjust"]);function Hs(e,t,r,n){Vs(e,t,void 0,n);for(const r in t.attrs)e.setAttribute(Us.has(r)?r:lr(r),t.attrs[r])}function Ys(e,{layout:t,layoutId:r}){return qt.has(e)||e.startsWith("origin")||(t||void 0!==r)&&(!!Gi[e]||"opacity"===e)}function Qs(e,t,r){var n;const{style:o}=e,i={};for(const a in o)(ar(o[a])||t.style&&ar(t.style[a])||Ys(a,e)||void 0!==(null===(n=null==r?void 0:r.getValue(a))||void 0===n?void 0:n.liveStyle))&&(i[a]=o[a]);return i}function Ws(e,t,r){const n=Qs(e,t,r);for(const r in e)(ar(e[r])||ar(t[r]))&&(n[-1!==zt.indexOf(r)?"attr"+r.charAt(0).toUpperCase()+r.substring(1):r]=e[r]);return n}const Gs=["x","y","width","height","cx","cy","r"],Zs={useVisualState:Os({scrapeMotionValuesFromProps:Ws,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),onUpdate:({props:e,prevProps:t,current:r,renderState:n,latestValues:o})=>{if(!r)return;let i=!!e.drag;if(!i)for(const e in o)if(qt.has(e)){i=!0;break}if(!i)return;let a=!t;if(t)for(let r=0;r<Gs.length;r++){const n=Gs[r];e[n]!==t[n]&&(a=!0)}a&&Yt.read((()=>{!function(e,t){try{t.dimensions="function"==typeof e.getBBox?e.getBBox():e.getBoundingClientRect()}catch(e){t.dimensions={x:0,y:0,width:0,height:0}}}(r,n),Yt.render((()=>{zs(n,o,qs(r.tagName),e.transformTemplate),Hs(r,n)}))}))}})},$s={useVisualState:Os({scrapeMotionValuesFromProps:Qs,createRenderState:()=>({style:{},transform:{},transformOrigin:{},vars:{}})})};function Ks(e,t,r){for(const n in t)ar(t[n])||Ys(n,r)||(e[n]=t[n])}function Xs(e,t){const r={},n=function(e,t){const r={};return Ks(r,e.style||{},e),Object.assign(r,function({transformTemplate:e},t){return(0,Ie.useMemo)((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{}};return Ls(r,t,e),Object.assign({},r.vars,r.style)}),[t])}(e,t)),r}(e,t);return e.drag&&!1!==e.dragListener&&(r.draggable=!1,n.userSelect=n.WebkitUserSelect=n.WebkitTouchCallout="none",n.touchAction=!0===e.drag?"none":"pan-"+("x"===e.drag?"y":"x")),void 0===e.tabIndex&&(e.onTap||e.onTapStart||e.whileTap)&&(r.tabIndex=0),r.style=n,r}const Js=new Set(["animate","exit","variants","initial","style","values","variants","transition","transformTemplate","custom","inherit","onBeforeLayoutMeasure","onAnimationStart","onAnimationComplete","onUpdate","onDragStart","onDrag","onDragEnd","onMeasureDragConstraints","onDirectionLock","onDragTransitionEnd","_dragX","_dragY","onHoverStart","onHoverEnd","onViewportEnter","onViewportLeave","globalTapTarget","ignoreStrict","viewport"]);function el(e){return e.startsWith("while")||e.startsWith("drag")&&"draggable"!==e||e.startsWith("layout")||e.startsWith("onTap")||e.startsWith("onPan")||e.startsWith("onLayout")||Js.has(e)}let tl=e=>!el(e);try{(rl=require("@emotion/is-prop-valid").default)&&(tl=e=>e.startsWith("on")?!el(e):rl(e))}catch(e){}var rl;function nl(e,t,r,n){const o=(0,Ie.useMemo)((()=>{const r={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return zs(r,t,qs(n),e.transformTemplate),{...r.attrs,style:{...r.style}}}),[t]);if(e.style){const t={};Ks(t,e.style,e),o.style={...t,...o.style}}return o}function ol(e=!1){return(t,r,n,{latestValues:o},i)=>{const a=(js(t)?nl:Xs)(r,o,i,t),s=function(e,t,r){const n={};for(const o in e)"values"===o&&"object"==typeof e.values||(tl(o)||!0===r&&el(o)||!t&&!el(o)||e.draggable&&o.startsWith("onDrag"))&&(n[o]=e[o]);return n}(r,"string"==typeof t,e),l=t!==Ie.Fragment?{...s,...a,ref:n}:{},{children:u}=r,c=(0,Ie.useMemo)((()=>ar(u)?u.get():u),[u]);return(0,Ie.createElement)(t,{...l,children:c})}}function il(e,t){return function(r,{forwardMotionProps:n}={forwardMotionProps:!1}){return Ms({...js(r)?Zs:$s,preloadedFeatures:e,useRender:ol(n),createVisualElement:t,Component:r})}}const al={current:null},sl={current:!1},ll=[...Fn,Ur,Xr],ul=new WeakMap,cl=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class dl{scrapeMotionValuesFromProps(e,t,r){return{}}constructor({parent:e,props:t,presenceContext:r,reducedMotionConfig:n,blockInitialAnimation:o,visualState:i},a={}){this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=kn,this.features={},this.valueSubscriptions=new Map,this.prevMotionValues={},this.events={},this.propEventSubscriptions={},this.notifyUpdate=()=>this.notify("Update",this.latestValues),this.render=()=>{this.current&&(this.triggerBuild(),this.renderInstance(this.current,this.renderState,this.props.style,this.projection))},this.renderScheduledAt=0,this.scheduleRender=()=>{const e=Kt.now();this.renderScheduledAt<e&&(this.renderScheduledAt=e,Yt.render(this.render,!1,!0))};const{latestValues:s,renderState:l,onUpdate:u}=i;this.onUpdate=u,this.latestValues=s,this.baseTarget={...s},this.initialValues=t.initial?{...s}:{},this.renderState=l,this.parent=e,this.props=t,this.presenceContext=r,this.depth=e?e.depth+1:0,this.reducedMotionConfig=n,this.options=a,this.blockInitialAnimation=Boolean(o),this.isControllingVariants=ys(t),this.isVariantNode=vs(t),this.isVariantNode&&(this.variantChildren=new Set),this.manuallyAnimateOnMount=Boolean(e&&e.current);const{willChange:c,...d}=this.scrapeMotionValuesFromProps(t,{},this);for(const e in d){const t=d[e];void 0!==s[e]&&ar(t)&&t.set(s[e],!1)}}mount(e){this.current=e,ul.set(e,this),this.projection&&!this.projection.instance&&this.projection.mount(e),this.parent&&this.isVariantNode&&!this.isControllingVariants&&(this.removeFromVariantTree=this.parent.addVariantChild(this)),this.values.forEach(((e,t)=>this.bindToMotionValue(t,e))),sl.current||function(){if(sl.current=!0,Ge)if(window.matchMedia){const e=window.matchMedia("(prefers-reduced-motion)"),t=()=>al.current=e.matches;e.addListener(t),t()}else al.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||al.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){ul.delete(this.current),this.projection&&this.projection.unmount(),Qt(this.notifyUpdate),Qt(this.render),this.valueSubscriptions.forEach((e=>e())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const e in this.events)this.events[e].clear();for(const e in this.features){const t=this.features[e];t&&(t.unmount(),t.isMounted=!1)}this.current=null}bindToMotionValue(e,t){this.valueSubscriptions.has(e)&&this.valueSubscriptions.get(e)();const r=qt.has(e),n=t.on("change",(t=>{this.latestValues[e]=t,this.props.onUpdate&&Yt.preRender(this.notifyUpdate),r&&this.projection&&(this.projection.isTransformDirty=!0)})),o=t.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,e,t)),this.valueSubscriptions.set(e,(()=>{n(),o(),i&&i(),t.owner&&t.stop()}))}sortNodePosition(e){return this.current&&this.sortInstanceNodePosition&&this.type===e.type?this.sortInstanceNodePosition(this.current,e.current):0}updateFeatures(){let e="animation";for(e in xs){const t=xs[e];if(!t)continue;const{isEnabled:r,Feature:n}=t;if(!this.features[e]&&n&&r(this.props)&&(this.features[e]=new n(this)),this.features[e]){const t=this.features[e];t.isMounted?t.update():(t.mount(),t.isMounted=!0)}}}triggerBuild(){this.build(this.renderState,this.latestValues,this.props)}measureViewportBox(){return this.current?this.measureInstanceViewportBox(this.current,this.props):{x:{min:0,max:0},y:{min:0,max:0}}}getStaticValue(e){return this.latestValues[e]}setStaticValue(e,t){this.latestValues[e]=t}update(e,t){(e.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=e,this.prevPresenceContext=this.presenceContext,this.presenceContext=t;for(let t=0;t<cl.length;t++){const r=cl[t];this.propEventSubscriptions[r]&&(this.propEventSubscriptions[r](),delete this.propEventSubscriptions[r]);const n=e["on"+r];n&&(this.propEventSubscriptions[r]=this.on(r,n))}this.prevMotionValues=function(e,t,r){for(const n in t){const o=t[n],i=r[n];if(ar(o))e.addValue(n,o);else if(ar(i))e.addValue(n,or(o,{owner:e}));else if(i!==o)if(e.hasValue(n)){const t=e.getValue(n);!0===t.liveStyle?t.jump(o):t.hasAnimated||t.set(o)}else{const t=e.getStaticValue(n);e.addValue(n,or(void 0!==t?t:o,{owner:e}))}}for(const n in r)void 0===t[n]&&e.removeValue(n);return t}(this,this.scrapeMotionValuesFromProps(e,this.prevProps,this),this.prevMotionValues),this.handleChildMotionValue&&this.handleChildMotionValue(),this.onUpdate&&this.onUpdate(this)}getProps(){return this.props}getVariant(e){return this.props.variants?this.props.variants[e]:void 0}getDefaultTransition(){return this.props.transition}getTransformPagePoint(){return this.props.transformPagePoint}getClosestVariantNode(){return this.isVariantNode?this:this.parent?this.parent.getClosestVariantNode():void 0}addVariantChild(e){const t=this.getClosestVariantNode();if(t)return t.variantChildren&&t.variantChildren.add(e),()=>t.variantChildren.delete(e)}addValue(e,t){const r=this.values.get(e);t!==r&&(r&&this.removeValue(e),this.bindToMotionValue(e,t),this.values.set(e,t),this.latestValues[e]=t.get())}removeValue(e){this.values.delete(e);const t=this.valueSubscriptions.get(e);t&&(t(),this.valueSubscriptions.delete(e)),delete this.latestValues[e],this.removeValueFromRenderState(e,this.renderState)}hasValue(e){return this.values.has(e)}getValue(e,t){if(this.props.values&&this.props.values[e])return this.props.values[e];let r=this.values.get(e);return void 0===r&&void 0!==t&&(r=or(null===t?void 0:t,{owner:this}),this.addValue(e,r)),r}readValue(e,t){var r;let n=void 0===this.latestValues[e]&&this.current?null!==(r=this.getBaseTargetFromProps(this.props,e))&&void 0!==r?r:this.readValueFromInstance(this.current,e,this.options):this.latestValues[e];return null!=n&&("string"==typeof n&&(Cn(n)||xr(n))?n=parseFloat(n):(o=n,!ll.find(In(o))&&Xr.test(t)&&(n=cn(e,t))),this.setBaseTarget(e,ar(n)?n.get():n)),ar(n)?n.get():n;var o}setBaseTarget(e,t){this.baseTarget[e]=t}getBaseTarget(e){var t;const{initial:r}=this.props;let n;if("string"==typeof r||"object"==typeof r){const o=nt(this.props,r,null===(t=this.presenceContext)||void 0===t?void 0:t.custom);o&&(n=o[e])}if(r&&void 0!==n)return n;const o=this.getBaseTargetFromProps(this.props,e);return void 0===o||ar(o)?void 0!==this.initialValues[e]&&void 0===n?void 0:this.baseTarget[e]:o}on(e,t){return this.events[e]||(this.events[e]=new er),this.events[e].add(t)}notify(e,...t){this.events[e]&&this.events[e].notify(...t)}}class fl extends dl{constructor(){super(...arguments),this.KeyframeResolver=Rn}sortInstanceNodePosition(e,t){return 2&e.compareDocumentPosition(t)?1:-1}getBaseTargetFromProps(e,t){return e.style?e.style[t]:void 0}removeValueFromRenderState(e,{vars:t,style:r}){delete t[e],delete r[e]}handleChildMotionValue(){this.childSubscription&&(this.childSubscription(),delete this.childSubscription);const{children:e}=this.props;ar(e)&&(this.childSubscription=e.on("change",(e=>{this.current&&(this.current.textContent=`${e}`)})))}}class ml extends fl{constructor(){super(...arguments),this.type="html",this.renderInstance=Vs}readValueFromInstance(e,t){if(qt.has(t)){const e=un(t);return e&&e.default||0}{const n=(r=e,window.getComputedStyle(r)),o=(An(t)?n.getPropertyValue(t):n[t])||0;return"string"==typeof o?o.trim():o}var r}measureInstanceViewportBox(e,{transformPagePoint:t}){return Ri(e,t)}build(e,t,r){Ls(e,t,r.transformTemplate)}scrapeMotionValuesFromProps(e,t,r){return Qs(e,t,r)}}class pl extends fl{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Di}getBaseTargetFromProps(e,t){return e[t]}readValueFromInstance(e,t){if(qt.has(t)){const e=un(t);return e&&e.default||0}return t=Us.has(t)?t:lr(t),e.getAttribute(t)}scrapeMotionValuesFromProps(e,t,r){return Ws(e,t,r)}build(e,t,r){zs(e,t,this.isSVGTag,r.transformTemplate)}renderInstance(e,t,r,n){Hs(e,t,0,n)}mount(e){this.isSVGTag=qs(e.tagName),super.mount(e)}}const hl=(e,t)=>js(e)?new pl(t):new ml(t,{allowProjection:e!==Ie.Fragment}),gl=Ke(il({...$o,...ps,...as,...hs},hl)),bl=e=>{const t=_l(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{const r=e.split("-");return""===r[0]&&1!==r.length&&r.shift(),yl(r,t)||Dl(e)},getConflictingClassGroupIds:(e,t)=>{const o=r[e]||[];return t&&n[e]?[...o,...n[e]]:o}}},yl=(e,t)=>{if(0===e.length)return t.classGroupId;const r=e[0],n=t.nextPart.get(r),o=n?yl(e.slice(1),n):void 0;if(o)return o;if(0===t.validators.length)return;const i=e.join("-");return t.validators.find((({validator:e})=>e(i)))?.classGroupId},vl=/^\[(.+)\]$/,Dl=e=>{if(vl.test(e)){const t=vl.exec(e)[1],r=t?.substring(0,t.indexOf(":"));if(r)return"arbitrary.."+r}},_l=e=>{const{theme:t,prefix:r}=e,n={nextPart:new Map,validators:[]};return wl(Object.entries(e.classGroups),r).forEach((([e,r])=>{xl(r,n,e,t)})),n},xl=(e,t,r,n)=>{e.forEach((e=>{if("string"!=typeof e){if("function"==typeof e)return El(e)?void xl(e(n),t,r,n):void t.validators.push({validator:e,classGroupId:r});Object.entries(e).forEach((([e,o])=>{xl(o,kl(t,e),r,n)}))}else(""===e?t:kl(t,e)).classGroupId=r}))},kl=(e,t)=>{let r=e;return t.split("-").forEach((e=>{r.nextPart.has(e)||r.nextPart.set(e,{nextPart:new Map,validators:[]}),r=r.nextPart.get(e)})),r},El=e=>e.isThemeGetter,wl=(e,t)=>t?e.map((([e,r])=>[e,r.map((e=>"string"==typeof e?t+e:"object"==typeof e?Object.fromEntries(Object.entries(e).map((([e,r])=>[t+e,r]))):e))])):e,Cl=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=new Map,n=new Map;const o=(o,i)=>{r.set(o,i),t++,t>e&&(t=0,n=r,r=new Map)};return{get(e){let t=r.get(e);return void 0!==t?t:void 0!==(t=n.get(e))?(o(e,t),t):void 0},set(e,t){r.has(e)?r.set(e,t):o(e,t)}}},Ml=e=>{const{separator:t,experimentalParseClassName:r}=e,n=1===t.length,o=t[0],i=t.length,a=e=>{const r=[];let a,s=0,l=0;for(let u=0;u<e.length;u++){let c=e[u];if(0===s){if(c===o&&(n||e.slice(u,u+i)===t)){r.push(e.slice(l,u)),l=u+i;continue}if("/"===c){a=u;continue}}"["===c?s++:"]"===c&&s--}const u=0===r.length?e:e.substring(l),c=u.startsWith("!");return{modifiers:r,hasImportantModifier:c,baseClassName:c?u.substring(1):u,maybePostfixModifierPosition:a&&a>l?a-l:void 0}};return r?e=>r({className:e,parseClassName:a}):a},Al=e=>{if(e.length<=1)return e;const t=[];let r=[];return e.forEach((e=>{"["===e[0]?(t.push(...r.sort(),e),r=[]):r.push(e)})),t.push(...r.sort()),t},Nl=/\s+/;function jl(){let e,t,r=0,n="";for(;r<arguments.length;)(e=arguments[r++])&&(t=Ol(e))&&(n&&(n+=" "),n+=t);return n}const Ol=e=>{if("string"==typeof e)return e;let t,r="";for(let n=0;n<e.length;n++)e[n]&&(t=Ol(e[n]))&&(r&&(r+=" "),r+=t);return r};function Tl(e,...t){let r,n,o,i=function(s){const l=t.reduce(((e,t)=>t(e)),e());return r=(e=>({cache:Cl(e.cacheSize),parseClassName:Ml(e),...bl(e)}))(l),n=r.cache.get,o=r.cache.set,i=a,a(s)};function a(e){const t=n(e);if(t)return t;const i=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o}=t,i=[],a=e.trim().split(Nl);let s="";for(let e=a.length-1;e>=0;e-=1){const t=a[e],{modifiers:l,hasImportantModifier:u,baseClassName:c,maybePostfixModifierPosition:d}=r(t);let f=Boolean(d),m=n(f?c.substring(0,d):c);if(!m){if(!f){s=t+(s.length>0?" "+s:s);continue}if(m=n(c),!m){s=t+(s.length>0?" "+s:s);continue}f=!1}const p=Al(l).join(":"),h=u?p+"!":p,g=h+m;if(i.includes(g))continue;i.push(g);const b=o(m,f);for(let e=0;e<b.length;++e){const t=b[e];i.push(h+t)}s=t+(s.length>0?" "+s:s)}return s})(e,r);return o(e,i),i}return function(){return i(jl.apply(null,arguments))}}const Sl=e=>{const t=t=>t[e]||[];return t.isThemeGetter=!0,t},Il=/^\[(?:([a-z-]+):)?(.+)\]$/i,Fl=/^\d+\/\d+$/,Ll=new Set(["px","full","screen"]),Rl=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,Pl=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,Bl=/^(rgba?|hsla?|hwb|(ok)?(lab|lch))\(.+\)$/,zl=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,ql=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,Vl=e=>Hl(e)||Ll.has(e)||Fl.test(e),Ul=e=>nu(e,"length",ou),Hl=e=>Boolean(e)&&!Number.isNaN(Number(e)),Yl=e=>nu(e,"number",Hl),Ql=e=>Boolean(e)&&Number.isInteger(Number(e)),Wl=e=>e.endsWith("%")&&Hl(e.slice(0,-1)),Gl=e=>Il.test(e),Zl=e=>Rl.test(e),$l=new Set(["length","size","percentage"]),Kl=e=>nu(e,$l,iu),Xl=e=>nu(e,"position",iu),Jl=new Set(["image","url"]),eu=e=>nu(e,Jl,su),tu=e=>nu(e,"",au),ru=()=>!0,nu=(e,t,r)=>{const n=Il.exec(e);return!!n&&(n[1]?"string"==typeof t?n[1]===t:t.has(n[1]):r(n[2]))},ou=e=>Pl.test(e)&&!Bl.test(e),iu=()=>!1,au=e=>zl.test(e),su=e=>ql.test(e),lu=(Symbol.toStringTag,()=>{const e=Sl("colors"),t=Sl("spacing"),r=Sl("blur"),n=Sl("brightness"),o=Sl("borderColor"),i=Sl("borderRadius"),a=Sl("borderSpacing"),s=Sl("borderWidth"),l=Sl("contrast"),u=Sl("grayscale"),c=Sl("hueRotate"),d=Sl("invert"),f=Sl("gap"),m=Sl("gradientColorStops"),p=Sl("gradientColorStopPositions"),h=Sl("inset"),g=Sl("margin"),b=Sl("opacity"),y=Sl("padding"),v=Sl("saturate"),D=Sl("scale"),_=Sl("sepia"),x=Sl("skew"),k=Sl("space"),E=Sl("translate"),w=()=>["auto",Gl,t],C=()=>[Gl,t],M=()=>["",Vl,Ul],A=()=>["auto",Hl,Gl],N=()=>["","0",Gl],j=()=>[Hl,Gl];return{cacheSize:500,separator:":",theme:{colors:[ru],spacing:[Vl,Ul],blur:["none","",Zl,Gl],brightness:j(),borderColor:[e],borderRadius:["none","","full",Zl,Gl],borderSpacing:C(),borderWidth:M(),contrast:j(),grayscale:N(),hueRotate:j(),invert:N(),gap:C(),gradientColorStops:[e],gradientColorStopPositions:[Wl,Ul],inset:w(),margin:w(),opacity:j(),padding:C(),saturate:j(),scale:j(),sepia:N(),skew:j(),space:C(),translate:C()},classGroups:{aspect:[{aspect:["auto","square","video",Gl]}],container:["container"],columns:[{columns:[Zl]}],"break-after":[{"break-after":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-before":[{"break-before":["auto","avoid","all","avoid-page","page","left","right","column"]}],"break-inside":[{"break-inside":["auto","avoid","avoid-page","avoid-column"]}],"box-decoration":[{"box-decoration":["slice","clone"]}],box:[{box:["border","content"]}],display:["block","inline-block","inline","flex","inline-flex","table","inline-table","table-caption","table-cell","table-column","table-column-group","table-footer-group","table-header-group","table-row-group","table-row","flow-root","grid","inline-grid","contents","list-item","hidden"],float:[{float:["right","left","none","start","end"]}],clear:[{clear:["left","right","both","none","start","end"]}],isolation:["isolate","isolation-auto"],"object-fit":[{object:["contain","cover","fill","none","scale-down"]}],"object-position":[{object:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Gl]}],overflow:[{overflow:["auto","hidden","clip","visible","scroll"]}],"overflow-x":[{"overflow-x":["auto","hidden","clip","visible","scroll"]}],"overflow-y":[{"overflow-y":["auto","hidden","clip","visible","scroll"]}],overscroll:[{overscroll:["auto","contain","none"]}],"overscroll-x":[{"overscroll-x":["auto","contain","none"]}],"overscroll-y":[{"overscroll-y":["auto","contain","none"]}],position:["static","fixed","absolute","relative","sticky"],inset:[{inset:[h]}],"inset-x":[{"inset-x":[h]}],"inset-y":[{"inset-y":[h]}],start:[{start:[h]}],end:[{end:[h]}],top:[{top:[h]}],right:[{right:[h]}],bottom:[{bottom:[h]}],left:[{left:[h]}],visibility:["visible","invisible","collapse"],z:[{z:["auto",Ql,Gl]}],basis:[{basis:w()}],"flex-direction":[{flex:["row","row-reverse","col","col-reverse"]}],"flex-wrap":[{flex:["wrap","wrap-reverse","nowrap"]}],flex:[{flex:["1","auto","initial","none",Gl]}],grow:[{grow:N()}],shrink:[{shrink:N()}],order:[{order:["first","last","none",Ql,Gl]}],"grid-cols":[{"grid-cols":[ru]}],"col-start-end":[{col:["auto",{span:["full",Ql,Gl]},Gl]}],"col-start":[{"col-start":A()}],"col-end":[{"col-end":A()}],"grid-rows":[{"grid-rows":[ru]}],"row-start-end":[{row:["auto",{span:[Ql,Gl]},Gl]}],"row-start":[{"row-start":A()}],"row-end":[{"row-end":A()}],"grid-flow":[{"grid-flow":["row","col","dense","row-dense","col-dense"]}],"auto-cols":[{"auto-cols":["auto","min","max","fr",Gl]}],"auto-rows":[{"auto-rows":["auto","min","max","fr",Gl]}],gap:[{gap:[f]}],"gap-x":[{"gap-x":[f]}],"gap-y":[{"gap-y":[f]}],"justify-content":[{justify:["normal","start","end","center","between","around","evenly","stretch"]}],"justify-items":[{"justify-items":["start","end","center","stretch"]}],"justify-self":[{"justify-self":["auto","start","end","center","stretch"]}],"align-content":[{content:["normal","start","end","center","between","around","evenly","stretch","baseline"]}],"align-items":[{items:["start","end","center","baseline","stretch"]}],"align-self":[{self:["auto","start","end","center","stretch","baseline"]}],"place-content":[{"place-content":["start","end","center","between","around","evenly","stretch","baseline"]}],"place-items":[{"place-items":["start","end","center","baseline","stretch"]}],"place-self":[{"place-self":["auto","start","end","center","stretch"]}],p:[{p:[y]}],px:[{px:[y]}],py:[{py:[y]}],ps:[{ps:[y]}],pe:[{pe:[y]}],pt:[{pt:[y]}],pr:[{pr:[y]}],pb:[{pb:[y]}],pl:[{pl:[y]}],m:[{m:[g]}],mx:[{mx:[g]}],my:[{my:[g]}],ms:[{ms:[g]}],me:[{me:[g]}],mt:[{mt:[g]}],mr:[{mr:[g]}],mb:[{mb:[g]}],ml:[{ml:[g]}],"space-x":[{"space-x":[k]}],"space-x-reverse":["space-x-reverse"],"space-y":[{"space-y":[k]}],"space-y-reverse":["space-y-reverse"],w:[{w:["auto","min","max","fit","svw","lvw","dvw",Gl,t]}],"min-w":[{"min-w":[Gl,t,"min","max","fit"]}],"max-w":[{"max-w":[Gl,t,"none","full","min","max","fit","prose",{screen:[Zl]},Zl]}],h:[{h:[Gl,t,"auto","min","max","fit","svh","lvh","dvh"]}],"min-h":[{"min-h":[Gl,t,"min","max","fit","svh","lvh","dvh"]}],"max-h":[{"max-h":[Gl,t,"min","max","fit","svh","lvh","dvh"]}],size:[{size:[Gl,t,"auto","min","max","fit"]}],"font-size":[{text:["base",Zl,Ul]}],"font-smoothing":["antialiased","subpixel-antialiased"],"font-style":["italic","not-italic"],"font-weight":[{font:["thin","extralight","light","normal","medium","semibold","bold","extrabold","black",Yl]}],"font-family":[{font:[ru]}],"fvn-normal":["normal-nums"],"fvn-ordinal":["ordinal"],"fvn-slashed-zero":["slashed-zero"],"fvn-figure":["lining-nums","oldstyle-nums"],"fvn-spacing":["proportional-nums","tabular-nums"],"fvn-fraction":["diagonal-fractions","stacked-fractions"],tracking:[{tracking:["tighter","tight","normal","wide","wider","widest",Gl]}],"line-clamp":[{"line-clamp":["none",Hl,Yl]}],leading:[{leading:["none","tight","snug","normal","relaxed","loose",Vl,Gl]}],"list-image":[{"list-image":["none",Gl]}],"list-style-type":[{list:["none","disc","decimal",Gl]}],"list-style-position":[{list:["inside","outside"]}],"placeholder-color":[{placeholder:[e]}],"placeholder-opacity":[{"placeholder-opacity":[b]}],"text-alignment":[{text:["left","center","right","justify","start","end"]}],"text-color":[{text:[e]}],"text-opacity":[{"text-opacity":[b]}],"text-decoration":["underline","overline","line-through","no-underline"],"text-decoration-style":[{decoration:["solid","dashed","dotted","double","none","wavy"]}],"text-decoration-thickness":[{decoration:["auto","from-font",Vl,Ul]}],"underline-offset":[{"underline-offset":["auto",Vl,Gl]}],"text-decoration-color":[{decoration:[e]}],"text-transform":["uppercase","lowercase","capitalize","normal-case"],"text-overflow":["truncate","text-ellipsis","text-clip"],"text-wrap":[{text:["wrap","nowrap","balance","pretty"]}],indent:[{indent:C()}],"vertical-align":[{align:["baseline","top","middle","bottom","text-top","text-bottom","sub","super",Gl]}],whitespace:[{whitespace:["normal","nowrap","pre","pre-line","pre-wrap","break-spaces"]}],break:[{break:["normal","words","all","keep"]}],hyphens:[{hyphens:["none","manual","auto"]}],content:[{content:["none",Gl]}],"bg-attachment":[{bg:["fixed","local","scroll"]}],"bg-clip":[{"bg-clip":["border","padding","content","text"]}],"bg-opacity":[{"bg-opacity":[b]}],"bg-origin":[{"bg-origin":["border","padding","content"]}],"bg-position":[{bg:["bottom","center","left","left-bottom","left-top","right","right-bottom","right-top","top",Xl]}],"bg-repeat":[{bg:["no-repeat",{repeat:["","x","y","round","space"]}]}],"bg-size":[{bg:["auto","cover","contain",Kl]}],"bg-image":[{bg:["none",{"gradient-to":["t","tr","r","br","b","bl","l","tl"]},eu]}],"bg-color":[{bg:[e]}],"gradient-from-pos":[{from:[p]}],"gradient-via-pos":[{via:[p]}],"gradient-to-pos":[{to:[p]}],"gradient-from":[{from:[m]}],"gradient-via":[{via:[m]}],"gradient-to":[{to:[m]}],rounded:[{rounded:[i]}],"rounded-s":[{"rounded-s":[i]}],"rounded-e":[{"rounded-e":[i]}],"rounded-t":[{"rounded-t":[i]}],"rounded-r":[{"rounded-r":[i]}],"rounded-b":[{"rounded-b":[i]}],"rounded-l":[{"rounded-l":[i]}],"rounded-ss":[{"rounded-ss":[i]}],"rounded-se":[{"rounded-se":[i]}],"rounded-ee":[{"rounded-ee":[i]}],"rounded-es":[{"rounded-es":[i]}],"rounded-tl":[{"rounded-tl":[i]}],"rounded-tr":[{"rounded-tr":[i]}],"rounded-br":[{"rounded-br":[i]}],"rounded-bl":[{"rounded-bl":[i]}],"border-w":[{border:[s]}],"border-w-x":[{"border-x":[s]}],"border-w-y":[{"border-y":[s]}],"border-w-s":[{"border-s":[s]}],"border-w-e":[{"border-e":[s]}],"border-w-t":[{"border-t":[s]}],"border-w-r":[{"border-r":[s]}],"border-w-b":[{"border-b":[s]}],"border-w-l":[{"border-l":[s]}],"border-opacity":[{"border-opacity":[b]}],"border-style":[{border:["solid","dashed","dotted","double","none","hidden"]}],"divide-x":[{"divide-x":[s]}],"divide-x-reverse":["divide-x-reverse"],"divide-y":[{"divide-y":[s]}],"divide-y-reverse":["divide-y-reverse"],"divide-opacity":[{"divide-opacity":[b]}],"divide-style":[{divide:["solid","dashed","dotted","double","none"]}],"border-color":[{border:[o]}],"border-color-x":[{"border-x":[o]}],"border-color-y":[{"border-y":[o]}],"border-color-s":[{"border-s":[o]}],"border-color-e":[{"border-e":[o]}],"border-color-t":[{"border-t":[o]}],"border-color-r":[{"border-r":[o]}],"border-color-b":[{"border-b":[o]}],"border-color-l":[{"border-l":[o]}],"divide-color":[{divide:[o]}],"outline-style":[{outline:["","solid","dashed","dotted","double","none"]}],"outline-offset":[{"outline-offset":[Vl,Gl]}],"outline-w":[{outline:[Vl,Ul]}],"outline-color":[{outline:[e]}],"ring-w":[{ring:M()}],"ring-w-inset":["ring-inset"],"ring-color":[{ring:[e]}],"ring-opacity":[{"ring-opacity":[b]}],"ring-offset-w":[{"ring-offset":[Vl,Ul]}],"ring-offset-color":[{"ring-offset":[e]}],shadow:[{shadow:["","inner","none",Zl,tu]}],"shadow-color":[{shadow:[ru]}],opacity:[{opacity:[b]}],"mix-blend":[{"mix-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity","plus-lighter","plus-darker"]}],"bg-blend":[{"bg-blend":["normal","multiply","screen","overlay","darken","lighten","color-dodge","color-burn","hard-light","soft-light","difference","exclusion","hue","saturation","color","luminosity"]}],filter:[{filter:["","none"]}],blur:[{blur:[r]}],brightness:[{brightness:[n]}],contrast:[{contrast:[l]}],"drop-shadow":[{"drop-shadow":["","none",Zl,Gl]}],grayscale:[{grayscale:[u]}],"hue-rotate":[{"hue-rotate":[c]}],invert:[{invert:[d]}],saturate:[{saturate:[v]}],sepia:[{sepia:[_]}],"backdrop-filter":[{"backdrop-filter":["","none"]}],"backdrop-blur":[{"backdrop-blur":[r]}],"backdrop-brightness":[{"backdrop-brightness":[n]}],"backdrop-contrast":[{"backdrop-contrast":[l]}],"backdrop-grayscale":[{"backdrop-grayscale":[u]}],"backdrop-hue-rotate":[{"backdrop-hue-rotate":[c]}],"backdrop-invert":[{"backdrop-invert":[d]}],"backdrop-opacity":[{"backdrop-opacity":[b]}],"backdrop-saturate":[{"backdrop-saturate":[v]}],"backdrop-sepia":[{"backdrop-sepia":[_]}],"border-collapse":[{border:["collapse","separate"]}],"border-spacing":[{"border-spacing":[a]}],"border-spacing-x":[{"border-spacing-x":[a]}],"border-spacing-y":[{"border-spacing-y":[a]}],"table-layout":[{table:["auto","fixed"]}],caption:[{caption:["top","bottom"]}],transition:[{transition:["none","all","","colors","opacity","shadow","transform",Gl]}],duration:[{duration:j()}],ease:[{ease:["linear","in","out","in-out",Gl]}],delay:[{delay:j()}],animate:[{animate:["none","spin","ping","pulse","bounce",Gl]}],transform:[{transform:["","gpu","none"]}],scale:[{scale:[D]}],"scale-x":[{"scale-x":[D]}],"scale-y":[{"scale-y":[D]}],rotate:[{rotate:[Ql,Gl]}],"translate-x":[{"translate-x":[E]}],"translate-y":[{"translate-y":[E]}],"skew-x":[{"skew-x":[x]}],"skew-y":[{"skew-y":[x]}],"transform-origin":[{origin:["center","top","top-right","right","bottom-right","bottom","bottom-left","left","top-left",Gl]}],accent:[{accent:["auto",e]}],appearance:[{appearance:["none","auto"]}],cursor:[{cursor:["auto","default","pointer","wait","text","move","help","not-allowed","none","context-menu","progress","cell","crosshair","vertical-text","alias","copy","no-drop","grab","grabbing","all-scroll","col-resize","row-resize","n-resize","e-resize","s-resize","w-resize","ne-resize","nw-resize","se-resize","sw-resize","ew-resize","ns-resize","nesw-resize","nwse-resize","zoom-in","zoom-out",Gl]}],"caret-color":[{caret:[e]}],"pointer-events":[{"pointer-events":["none","auto"]}],resize:[{resize:["none","y","x",""]}],"scroll-behavior":[{scroll:["auto","smooth"]}],"scroll-m":[{"scroll-m":C()}],"scroll-mx":[{"scroll-mx":C()}],"scroll-my":[{"scroll-my":C()}],"scroll-ms":[{"scroll-ms":C()}],"scroll-me":[{"scroll-me":C()}],"scroll-mt":[{"scroll-mt":C()}],"scroll-mr":[{"scroll-mr":C()}],"scroll-mb":[{"scroll-mb":C()}],"scroll-ml":[{"scroll-ml":C()}],"scroll-p":[{"scroll-p":C()}],"scroll-px":[{"scroll-px":C()}],"scroll-py":[{"scroll-py":C()}],"scroll-ps":[{"scroll-ps":C()}],"scroll-pe":[{"scroll-pe":C()}],"scroll-pt":[{"scroll-pt":C()}],"scroll-pr":[{"scroll-pr":C()}],"scroll-pb":[{"scroll-pb":C()}],"scroll-pl":[{"scroll-pl":C()}],"snap-align":[{snap:["start","end","center","align-none"]}],"snap-stop":[{snap:["normal","always"]}],"snap-type":[{snap:["none","x","y","both"]}],"snap-strictness":[{snap:["mandatory","proximity"]}],touch:[{touch:["auto","none","manipulation"]}],"touch-x":[{"touch-pan":["x","left","right"]}],"touch-y":[{"touch-pan":["y","up","down"]}],"touch-pz":["touch-pinch-zoom"],select:[{select:["none","text","all","auto"]}],"will-change":[{"will-change":["auto","scroll","contents","transform",Gl]}],fill:[{fill:[e,"none"]}],"stroke-w":[{stroke:[Vl,Ul,Yl]}],stroke:[{stroke:[e,"none"]}],sr:["sr-only","not-sr-only"],"forced-color-adjust":[{"forced-color-adjust":["auto","none"]}]},conflictingClassGroups:{overflow:["overflow-x","overflow-y"],overscroll:["overscroll-x","overscroll-y"],inset:["inset-x","inset-y","start","end","top","right","bottom","left"],"inset-x":["right","left"],"inset-y":["top","bottom"],flex:["basis","grow","shrink"],gap:["gap-x","gap-y"],p:["px","py","ps","pe","pt","pr","pb","pl"],px:["pr","pl"],py:["pt","pb"],m:["mx","my","ms","me","mt","mr","mb","ml"],mx:["mr","ml"],my:["mt","mb"],size:["w","h"],"font-size":["leading"],"fvn-normal":["fvn-ordinal","fvn-slashed-zero","fvn-figure","fvn-spacing","fvn-fraction"],"fvn-ordinal":["fvn-normal"],"fvn-slashed-zero":["fvn-normal"],"fvn-figure":["fvn-normal"],"fvn-spacing":["fvn-normal"],"fvn-fraction":["fvn-normal"],"line-clamp":["display","overflow"],rounded:["rounded-s","rounded-e","rounded-t","rounded-r","rounded-b","rounded-l","rounded-ss","rounded-se","rounded-ee","rounded-es","rounded-tl","rounded-tr","rounded-br","rounded-bl"],"rounded-s":["rounded-ss","rounded-es"],"rounded-e":["rounded-se","rounded-ee"],"rounded-t":["rounded-tl","rounded-tr"],"rounded-r":["rounded-tr","rounded-br"],"rounded-b":["rounded-br","rounded-bl"],"rounded-l":["rounded-tl","rounded-bl"],"border-spacing":["border-spacing-x","border-spacing-y"],"border-w":["border-w-s","border-w-e","border-w-t","border-w-r","border-w-b","border-w-l"],"border-w-x":["border-w-r","border-w-l"],"border-w-y":["border-w-t","border-w-b"],"border-color":["border-color-s","border-color-e","border-color-t","border-color-r","border-color-b","border-color-l"],"border-color-x":["border-color-r","border-color-l"],"border-color-y":["border-color-t","border-color-b"],"scroll-m":["scroll-mx","scroll-my","scroll-ms","scroll-me","scroll-mt","scroll-mr","scroll-mb","scroll-ml"],"scroll-mx":["scroll-mr","scroll-ml"],"scroll-my":["scroll-mt","scroll-mb"],"scroll-p":["scroll-px","scroll-py","scroll-ps","scroll-pe","scroll-pt","scroll-pr","scroll-pb","scroll-pl"],"scroll-px":["scroll-pr","scroll-pl"],"scroll-py":["scroll-pt","scroll-pb"],touch:["touch-x","touch-y","touch-pz"],"touch-x":["touch"],"touch-y":["touch"],"touch-pz":["touch"]},conflictingClassGroupModifiers:{"font-size":["leading"]}}}),uu=Tl(lu);var cu=o(34164);const du=(...e)=>uu((0,cu.$)(...e)),fu=(...e)=>(...t)=>e.forEach((e=>e?.(...t))),mu={1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},pu=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&r.indexOf(e)===t)).join(" ");var hu={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const gu=(0,Ie.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>(0,Ie.createElement)("svg",{ref:l,...hu,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:pu("lucide",o),...s},[...a.map((([e,t])=>(0,Ie.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),bu=(e,t)=>{const r=(0,Ie.forwardRef)((({className:r,...n},o)=>{return(0,Ie.createElement)(gu,{ref:o,iconNode:t,className:pu(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i}));return r.displayName=`${e}`,r},yu=bu("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]);var vu=o(75795);const Du=(0,Ie.createContext)({}),_u=()=>(0,Ie.useContext)(Du),xu={open:{opacity:1},exit:{opacity:0}},ku={duration:.2},Eu=({open:e,setOpen:t,children:r,trigger:n=null,className:o,exitOnClickOutside:i=!1,exitOnEsc:a=!0,design:s="simple",scrollLock:l=!0})=>{const u=void 0!==e&&void 0!==t,[c,d]=(0,Ie.useState)(!1),f=(0,Ie.useRef)(null),m=(0,Ie.useRef)(null),p=(0,Ie.useMemo)((()=>u?e:c),[e,c]),h=(0,Ie.useMemo)((()=>u?t:d),[d,d]),g=()=>{p||h(!0)},b=()=>{p&&h(!1)},y=(0,Ie.useCallback)((()=>(0,Ie.isValidElement)(n)?(0,Ie.cloneElement)(n,{onClick:fu(g,n?.props?.onClick)}):"function"==typeof n?n({onClick:g}):null),[n,g,b]),v=e=>{"Escape"===e.key&&a&&b()},D=e=>{i&&f.current&&!f.current.contains(e.target)&&b()};return(0,Ie.useEffect)((()=>(window.addEventListener("keydown",v),document.addEventListener("mousedown",D),()=>{window.removeEventListener("keydown",v),document.removeEventListener("mousedown",D)})),[p]),(0,Ie.useEffect)((()=>{if(!l)return;const e=document.querySelector("html");return p&&e&&(e.style.overflow="hidden"),()=>{e&&(e.style.overflow="")}}),[p]),(0,Se.jsxs)(Se.Fragment,{children:[y(),(0,Se.jsx)(Du.Provider,{value:{open:p,setOpen:h,handleClose:b,design:s,dialogContainerRef:m,dialogRef:f},children:(0,Se.jsx)("div",{ref:m,className:du("fixed z-999999 w-0 h-0 overflow-visible",o),children:r})})]})};Eu.displayName="Dialog";const wu=({children:e,className:t})=>{const{open:r,handleClose:n,dialogRef:o}=_u();return(0,Se.jsx)($e,{children:r&&(0,Se.jsx)(gl.div,{className:"fixed inset-0 overflow-y-auto",initial:"exit",animate:"open",exit:"exit",variants:xu,role:"dialog",transition:ku,children:(0,Se.jsx)("div",{className:"flex items-center justify-center min-h-full",children:(0,Se.jsx)("div",{ref:o,className:du("flex flex-col gap-5 w-120 h-fit bg-background-primary border border-solid border-border-subtle rounded-xl shadow-soft-shadow-2xl my-5 overflow-hidden",t),children:"function"==typeof e?e({close:n}):e})})})})};wu.displayName="Dialog.Panel";const Cu=({className:e,...t})=>{const{open:r,dialogContainerRef:n}=_u();return n?.current?(0,Se.jsx)(Se.Fragment,{children:(0,vu.createPortal)((0,Se.jsx)($e,{children:r&&(0,Se.jsx)(gl.div,{className:du("fixed inset-0 -z-10 bg-background-inverse/90",e),...t,initial:"exit",animate:"open",exit:"exit",variants:xu,transition:ku})}),n.current)}):null};Cu.displayName="Dialog.Backdrop";const Mu=({children:e,className:t,...r})=>(0,Se.jsx)("div",{className:du("space-y-2 px-5 pt-5 pb-1",t),...r,children:e});Mu.displayName="Dialog.Header";const Au=({children:e,as:t="h3",className:r,...n})=>(0,Se.jsx)(t,{className:du("text-base font-semibold text-text-primary m-0 p-0",r),...n,children:e});Au.displayName="Dialog.Title";const Nu=({children:e,as:t="p",className:r,...n})=>(0,Se.jsx)(t,{className:du("text-sm font-normal text-text-secondary my-0 ml-0 mr-1 p-0",r),...n,children:e});Nu.displayName="Dialog.Description";const ju=({className:e,...t})=>(0,Se.jsx)("button",{className:du("bg-transparent inline-flex justify-center items-center border-0 p-1 m-0 cursor-pointer focus:outline-none outline-none shadow-none",e),"aria-label":"Close dialog",...t,children:(0,Se.jsx)(yu,{className:"size-4 text-text-primary shrink-0"})}),Ou=({children:e,as:t=Ie.Fragment,...r})=>{const{handleClose:n}=_u();return e?t===Ie.Fragment?"function"==typeof e?e({close:n}):(0,Ie.cloneElement)(e,{onClick:n}):(0,Se.jsx)(t,{...r,onClick:n,children:e}):(0,Se.jsx)(ju,{onClick:n,...r})};Ou.displayName="Dialog.CloseButton";const Tu=({children:e,className:t,...r})=>(0,Se.jsx)("div",{className:du("px-5",t),...r,children:e});Tu.displayName="Dialog.Body";const Su=({children:e,className:t})=>{const{design:r,handleClose:n}=_u();return(0,Se.jsx)("div",{className:du("p-4 flex justify-end gap-3",{"bg-background-secondary":"footer-divided"===r},t),children:e?"function"==typeof e?e({close:n}):e:null})};Su.displayName="Dialog.Footer",Eu.Panel=wu,Eu.Title=Au,Eu.Description=Nu,Eu.CloseButton=Ou,Eu.Header=Mu,Eu.Body=Tu,Eu.Footer=Su,Eu.Backdrop=Cu;const Iu={sm:{1:"grid-cols-1",2:"grid-cols-2",3:"grid-cols-3",4:"grid-cols-4",5:"grid-cols-5",6:"grid-cols-6",7:"grid-cols-7",8:"grid-cols-8",9:"grid-cols-9",10:"grid-cols-10",11:"grid-cols-11",12:"grid-cols-12"},md:{1:"md:grid-cols-1",2:"md:grid-cols-2",3:"md:grid-cols-3",4:"md:grid-cols-4",5:"md:grid-cols-5",6:"md:grid-cols-6",7:"md:grid-cols-7",8:"md:grid-cols-8",9:"md:grid-cols-9",10:"md:grid-cols-10",11:"md:grid-cols-11",12:"md:grid-cols-12"},lg:{1:"lg:grid-cols-1",2:"lg:grid-cols-2",3:"lg:grid-cols-3",4:"lg:grid-cols-4",5:"lg:grid-cols-5",6:"lg:grid-cols-6",7:"lg:grid-cols-7",8:"lg:grid-cols-8",9:"lg:grid-cols-9",10:"lg:grid-cols-10",11:"lg:grid-cols-11",12:"lg:grid-cols-12"}},Fu={sm:{xs:"gap-2",sm:"gap-4",md:"gap-5",lg:"gap-6",xl:"gap-6","2xl":"gap-8"},md:{xs:"md:gap-2",sm:"md:gap-4",md:"md:gap-5",lg:"md:gap-6",xl:"md:gap-6","2xl":"md:gap-8"},lg:{xs:"lg:gap-2",sm:"lg:gap-4",md:"lg:gap-5",lg:"lg:gap-6",xl:"lg:gap-6","2xl":"lg:gap-8"}},Lu={sm:{xs:"gap-x-2",sm:"gap-x-4",md:"gap-x-5",lg:"gap-x-6",xl:"gap-x-6","2xl":"gap-x-8"},md:{xs:"md:gap-x-2",sm:"md:gap-x-4",md:"md:gap-x-5",lg:"md:gap-x-6",xl:"md:gap-x-6","2xl":"md:gap-x-8"},lg:{xs:"lg:gap-x-2",sm:"lg:gap-x-4",md:"lg:gap-x-5",lg:"lg:gap-x-6",xl:"lg:gap-x-6","2xl":"lg:gap-x-8"}},Ru={sm:{xs:"gap-y-2",sm:"gap-y-4",md:"gap-y-5",lg:"gap-y-6",xl:"gap-y-6","2xl":"gap-y-8"},md:{xs:"md:gap-y-2",sm:"md:gap-y-4",md:"md:gap-y-5",lg:"md:gap-y-6",xl:"md:gap-y-6","2xl":"md:gap-y-8"},lg:{xs:"lg:gap-y-2",sm:"lg:gap-y-4",md:"lg:gap-y-5",lg:"lg:gap-y-6",xl:"lg:gap-y-6","2xl":"lg:gap-y-8"}},Pu={sm:{1:"col-span-1",2:"col-span-2",3:"col-span-3",4:"col-span-4",5:"col-span-5",6:"col-span-6",7:"col-span-7",8:"col-span-8",9:"col-span-9",10:"col-span-10",11:"col-span-11",12:"col-span-12"},md:{1:"md:col-span-1",2:"md:col-span-2",3:"md:col-span-3",4:"md:col-span-4",5:"md:col-span-5",6:"md:col-span-6",7:"md:col-span-7",8:"md:col-span-8",9:"md:col-span-9",10:"md:col-span-10",11:"md:col-span-11",12:"md:col-span-12"},lg:{1:"lg:col-span-1",2:"lg:col-span-2",3:"lg:col-span-3",4:"lg:col-span-4",5:"lg:col-span-5",6:"lg:col-span-6",7:"lg:col-span-7",8:"lg:col-span-8",9:"lg:col-span-9",10:"lg:col-span-10",11:"lg:col-span-11",12:"lg:col-span-12"}},Bu={sm:{1:"col-start-1",2:"col-start-2",3:"col-start-3",4:"col-start-4",5:"col-start-5",6:"col-start-6",7:"col-start-7",8:"col-start-8",9:"col-start-9",10:"col-start-10",11:"col-start-11",12:"col-start-12"},md:{1:"md:col-start-1",2:"md:col-start-2",3:"md:col-start-3",4:"md:col-start-4",5:"md:col-start-5",6:"md:col-start-6",7:"md:col-start-7",8:"md:col-start-8",9:"md:col-start-9",10:"md:col-start-10",11:"md:col-start-11",12:"md:col-start-12"},lg:{1:"lg:col-start-1",2:"lg:col-start-2",3:"lg:col-start-3",4:"lg:col-start-4",5:"lg:col-start-5",6:"lg:col-start-6",7:"lg:col-start-7",8:"lg:col-start-8",9:"lg:col-start-9",10:"lg:col-start-10",11:"lg:col-start-11",12:"lg:col-start-12"}},zu={sm:{row:"grid-flow-row",column:"grid-flow-col","row-dense":"grid-flow-row-dense","column-dense":"grid-flow-col-dense"},md:{row:"md:grid-flow-row",column:"md:grid-flow-col","row-dense":"md:grid-flow-row-dense","column-dense":"md:grid-flow-col-dense"},lg:{row:"lg:grid-flow-row",column:"lg:grid-flow-col","row-dense":"lg:grid-flow-row-dense","column-dense":"lg:grid-flow-col-dense"}},qu={sm:{normal:"justify-normal",start:"justify-start",end:"justify-end",center:"justify-center",between:"justify-between",around:"justify-around",evenly:"justify-evenly",stretch:"justify-stretch"},md:{normal:"md:justify-normal",start:"md:justify-start",end:"md:justify-end",center:"md:justify-center",between:"md:justify-between",around:"md:justify-around",evenly:"md:justify-evenly",stretch:"md:justify-stretch"},lg:{normal:"lg:justify-normal",start:"lg:justify-start",end:"lg:justify-end",center:"lg:justify-center",between:"lg:justify-between",around:"lg:justify-around",evenly:"lg:justify-evenly",stretch:"lg:justify-stretch"}},Vu={sm:{start:"items-start",end:"items-end",center:"items-center",baseline:"items-baseline",stretch:"items-stretch"},md:{start:"md:items-start",end:"md:items-end",center:"md:items-center",baseline:"md:items-baseline",stretch:"md:items-stretch"},lg:{start:"lg:items-start",end:"lg:items-end",center:"lg:items-center",baseline:"lg:items-baseline",stretch:"lg:items-stretch"}},Uu={sm:{start:"self-start",end:"self-end",center:"self-center",baseline:"self-baseline",stretch:"self-stretch"},md:{start:"md:self-start",end:"md:self-end",center:"md:self-center",baseline:"md:self-baseline",stretch:"md:self-stretch"},lg:{start:"lg:self-start",end:"lg:self-end",center:"lg:self-center",baseline:"lg:self-baseline",stretch:"lg:self-stretch"}},Hu={sm:{auto:"justify-self-auto",start:"justify-self-start",end:"justify-self-end",center:"justify-self-center",baseline:"justify-self-baseline",stretch:"justify-self-stretch"},md:{auto:"md:justify-self-auto",start:"md:justify-self-start",end:"md:justify-self-end",center:"md:justify-self-center",baseline:"md:justify-self-baseline",stretch:"md:justify-self-stretch"},lg:{auto:"lg:justify-self-auto",start:"lg:justify-self-start",end:"lg:justify-self-end",center:"lg:justify-self-center",baseline:"lg:justify-self-baseline",stretch:"lg:justify-self-stretch"}},Yu={sm:{row:"flex-row","row-reverse":"flex-row-reverse",column:"flex-col","column-reverse":"flex-col-reverse"},md:{row:"md:flex-row","row-reverse":"md:flex-row-reverse",column:"md:flex-col","column-reverse":"md:flex-col-reverse"},lg:{row:"lg:flex-row","row-reverse":"lg:flex-row-reverse",column:"lg:flex-col","column-reverse":"lg:flex-col-reverse"}},Qu={sm:{wrap:"flex-wrap","wrap-reverse":"flex-wrap-reverse",nowrap:"flex-nowrap"},md:{wrap:"md:flex-wrap","wrap-reverse":"md:flex-wrap-reverse",nowrap:"md:flex-nowrap"},lg:{wrap:"lg:flex-wrap","wrap-reverse":"lg:flex-wrap-reverse",nowrap:"lg:flex-nowrap"}},Wu={sm:{1:"w-full",2:"w-1/2",3:"w-1/3",4:"w-1/4",5:"w-1/5",6:"w-1/6",7:"w-1/7",8:"w-1/8",9:"w-1/9",10:"w-1/10",11:"w-1/11",12:"w-1/12"},md:{1:"md:w-full",2:"md:w-1/2",3:"md:w-1/3",4:"md:w-1/4",5:"md:w-1/5",6:"md:w-1/6",7:"md:w-1/7",8:"md:w-1/8",9:"md:w-1/9",10:"md:w-1/10",11:"md:w-1/11",12:"md:w-1/12"},lg:{1:"lg:w-full",2:"lg:w-1/2",3:"lg:w-1/3",4:"lg:w-1/4",5:"lg:w-1/5",6:"lg:w-1/6",7:"lg:w-1/7",8:"lg:w-1/8",9:"lg:w-1/9",10:"lg:w-1/10",11:"lg:w-1/11",12:"lg:w-1/12"}},Gu={sm:{1:"order-1",2:"order-2",3:"order-3",4:"order-4",5:"order-5",6:"order-6",7:"order-7",8:"order-8",9:"order-9",10:"order-10",11:"order-11",12:"order-12",first:"order-first",last:"order-last",none:"order-none"},md:{1:"md:order-1",2:"md:order-2",3:"md:order-3",4:"md:order-4",5:"md:order-5",6:"md:order-6",7:"md:order-7",8:"md:order-8",9:"md:order-9",10:"md:order-10",11:"md:order-11",12:"md:order-12",first:"md:order-first",last:"md:order-last",none:"md:order-none"},lg:{1:"lg:order-1",2:"lg:order-2",3:"lg:order-3",4:"lg:order-4",5:"lg:order-5",6:"lg:order-6",7:"lg:order-7",8:"lg:order-8",9:"lg:order-9",10:"lg:order-10",11:"lg:order-11",12:"lg:order-12",first:"lg:order-first",last:"lg:order-last",none:"lg:order-none"}},Zu={sm:{0:"grow-0",1:"grow"},md:{0:"md:grow-0",1:"md:grow"},lg:{0:"lg:grow-0",1:"lg:grow"}},$u={sm:{0:"shrink-0",1:"shrink"},md:{0:"md:shrink-0",1:"md:shrink"},lg:{0:"lg:shrink-0",1:"lg:shrink"}},Ku=(e,t,r,n="sm")=>{const o=[];switch(typeof e){case"object":for(const[n,i]of Object.entries(e))t[n]&&o.push(t?.[n]?.[i]??t?.[n]?.[r?.[n]]??"");break;case"string":case"number":const i=n;o.push(t?.[i]?.[e]??t?.[i]?.[r?.[i]]??"");break;default:if(void 0===e)break;o.push(t?.[n]?.[r]??"")}return o.join(" ")},Xu=({className:e,cols:t,gap:r,gapX:n,gapY:o,align:i,justify:a,gridFlow:s,colsSubGrid:l=!1,rowsSubGrid:u=!1,autoRows:c=!1,autoCols:d=!1,children:f,...m})=>{const p=Ku(t,Iu,1),h=Ku(r,Fu,"sm"),g=Ku(n,Lu,""),b=Ku(o,Ru,""),y=Ku(i,Vu,""),v=Ku(a,qu,""),D=Ku(s,zu,"");return(0,Se.jsx)("div",{className:du("grid",{"grid-cols-subgrid":l,"grid-rows-subgrid":u,"auto-cols-auto":d,"auto-rows-auto":c},p,h,g,b,y,v,D,e),...m,children:f})};Xu.Item=({className:e,children:t,colSpan:r,colStart:n,alignSelf:o,justifySelf:i,...a})=>{const s=Ku(r,Pu,0),l=Ku(n,Bu,0),u=Ku(o,Uu,""),c=Ku(i,Hu,"");return(0,Se.jsx)("div",{className:du(s,l,u,c,e),...a,children:t})};const Ju=(0,Ie.createContext)({}),ec=({containerType:e="flex",gap:t="sm",gapX:r,gapY:n,direction:o,justify:i,align:a,wrap:s,cols:l,className:u,children:c,...d})=>{if("grid"===e)return(0,Se.jsx)(Ju.Provider,{value:{containerType:e},children:(0,Se.jsx)(Xu,{className:u,gap:t,gapX:r,gapY:n,cols:l,children:c,align:a,justify:i,...d})});const f=Ku(s,Qu,""),m=Ku(t,Fu,"sm"),p=Ku(r,Lu,""),h=Ku(n,Ru,""),g=Ku(o,Yu,""),b=Ku(i,qu,""),y=Ku(a,Vu,""),v=du("flex",f,m,p,h,g,b,y,u);return(0,Se.jsx)(Ju.Provider,{value:{containerType:e,cols:l},children:"flex"===e?(0,Se.jsx)("div",{className:v,children:c}):(0,Se.jsx)(Xu,{className:u,gap:t,gapX:r,gapY:n,cols:l,children:c,align:a,justify:i,...d})})},tc=({grow:e,shrink:t,order:r,alignSelf:n,justifySelf:o,className:i,children:a,...s})=>{const{containerType:l,cols:u}=(0,Ie.useContext)(Ju);if("grid"===l)return(0,Se.jsx)(Xu.Item,{className:i,alignSelf:n,justifySelf:o,children:a,...s});const c=Ku(n,Uu,""),d=Ku(o,Hu,""),f=Ku(e,Zu,0),m=Ku(t,$u,0),p=Ku(r,Gu,0),h=Ku(u,Wu,1);return(0,Se.jsx)("div",{className:du("box-border",f,m,p,c,d,h,i),children:a})};ec.Item=tc,ec.displayName="Container",tc.displayName="Container.Item";const rc=({title:e="",description:t="",icon:r=null,iconPosition:n="right",tag:o="h2",size:i="sm",className:a=""})=>{const s={xs:"gap-1 [&>svg]:size-3.5",sm:"gap-1 [&>svg]:size-4",md:"gap-1.5 [&>svg]:size-5",lg:"gap-1.5 [&>svg]:size-5"};if(!e)return null;const l=()=>(0,Se.jsx)(o,{className:du("font-semibold p-0 m-0",{xs:"text-base [&>*]:text-base gap-1",sm:"text-lg [&>*]:text-lg gap-1",md:"text-xl [&>*]:text-xl gap-1.5",lg:"text-2xl [&>*]:text-2xl gap-1.5"}[i]),children:e});return t?(0,Se.jsxs)("div",{className:a,children:[(0,Se.jsxs)("div",{children:[r&&"left"===n&&(0,Se.jsxs)("div",{className:du("flex items-center",s[i]),children:[r,l()]}),r&&"right"===n&&(0,Se.jsxs)("div",{className:du("flex items-center",s[i]),children:[l(),r]}),!r&&l()]}),(0,Se.jsx)("p",{className:du("text-text-secondary font-normal my-0",{xs:"text-sm",sm:"text-sm",md:"text-base",lg:"text-base"}[i]),children:t})]}):(0,Se.jsxs)("div",{className:a,children:[r&&"left"===n&&(0,Se.jsxs)("div",{className:du("flex items-center",s[i]),children:[r,l()]}),r&&"right"===n&&(0,Se.jsxs)("div",{className:du("flex items-center",s[i]),children:[l(),r]}),!r&&l()]})},nc=(0,Ie.forwardRef)(((e,t)=>{const{variant:r="primary",size:n="md",type:o="button",tag:i="button",className:a,children:s,disabled:l=!1,destructive:u=!1,icon:c=null,iconPosition:d="left",loading:f=!1,...m}=e,p=u&&"focus:ring-focus-error",h=f?"opacity-50 disabled:cursor-not-allowed":"",g={primary:"text-text-on-color bg-button-primary hover:bg-button-primary-hover outline-button-primary hover:outline-button-primary-hover shadow-xs disabled:shadow-none focus:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",secondary:"text-text-on-color bg-button-secondary hover:bg-button-secondary-hover outline-button-secondary hover:outline-button-secondary-hover shadow-xs focus:shadow-none disabled:shadow-none disabled:bg-button-disabled disabled:outline-button-disabled",outline:"text-button-tertiary-color outline-border-subtle bg-button-tertiary shadow-sm focus:shadow-none hover:bg-button-tertiary-hover hover:outline-border-subtle disabled:bg-button-tertiary disabled:outline-border-disabled",ghost:"text-text-primary bg-transparent outline-transparent hover:bg-button-tertiary-hover",link:"outline-none text-link-primary bg-transparent hover:text-link-primary-hover hover:underline p-0 border-0 leading-none"}[r],b=u&&!l?{primary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",secondary:"bg-button-danger hover:bg-button-danger-hover outline-button-danger hover:outline-button-danger-hover",outline:"text-button-danger outline outline-1 outline-button-danger hover:outline-button-danger bg-button-tertiary hover:bg-field-background-error",ghost:"text-button-danger hover:bg-field-background-error",link:"text-button-danger hover:text-button-danger-secondary"}[r]:"",y={xs:"p-1 rounded [&>svg]:size-4",sm:"p-2 rounded [&>svg]:size-4 gap-0.5",md:"p-2.5 rounded-md text-sm [&>svg]:size-5 gap-1",lg:"p-3 rounded-lg text-base [&>svg]:size-6 gap-1"}[n];let v,D=null,_="";return c&&(_="flex items-center justify-center","left"===d?v=c:D=c),(0,Se.jsxs)(i,{ref:t,type:o,className:du(_,"outline outline-1 border-none cursor-pointer transition-colors duration-300 ease-in-out text-xs font-semibold focus:ring-2 focus:ring-toggle-on focus:ring-offset-2 disabled:text-text-disabled",y,g,b,p,h,{"cursor-default":l},a),disabled:l,...m,children:[(0,Se.jsx)(Ie.Fragment,{children:v},"left-icon"),s?(0,Se.jsx)("span",{className:"px-1",children:s}):null,(0,Se.jsx)(Ie.Fragment,{children:D},"right-icon")]})}));nc.displayName="Button";const oc=function(e){var t=e.tabs,r=e.selectedTab,n=e.setSelectedTab,o=e.parentTab;return React.createElement("nav",{className:"shrink-0 w-[16rem] p-2 h-full bg-background-primary overflow-y-auto"},React.createElement("ul",{className:"w-full h-full bg-background-primary p-2 space-y-1 m-0"},t.map((function(e){var t,i=e.id===r||null!==o&&e.id===o;return void 0===e.parent&&React.createElement("li",{key:e.id},React.createElement("button",{className:(0,x.cn)("w-full flex items-center justify-start gap-2.5 px-2 py-2 rounded-md text-text-secondary bg-transparent hover:bg-brand-background-50 outline-none focus:outline-none focus:ring-1 focus:ring-focus border-0 transition-[colors,box-shadow] duration-200 cursor-pointer",i&&"active bg-brand-background-50 text-text-primary"),onClick:(t=e.id,function(){n(t)})},React.createElement("span",{className:(0,x.cn)("[&>svg]:size-5 [&>img]:size-5 text-icon-secondary [&>svg]:!text-icon-secondary shrink-0 h-[20px]",i&&"text-icon-interactive [&>svg]:!text-icon-interactive")},e.icon),React.createElement("span",{className:"text-base font-normal text-left  break-words whitespace-normal"},e.label)))}))))},ic=(...e)=>e.filter(((e,t,r)=>Boolean(e)&&""!==e.trim()&&r.indexOf(e)===t)).join(" ").trim();var ac={xmlns:"http://www.w3.org/2000/svg",width:24,height:24,viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:2,strokeLinecap:"round",strokeLinejoin:"round"};const sc=(0,Ie.forwardRef)((({color:e="currentColor",size:t=24,strokeWidth:r=2,absoluteStrokeWidth:n,className:o="",children:i,iconNode:a,...s},l)=>(0,Ie.createElement)("svg",{ref:l,...ac,width:t,height:t,stroke:e,strokeWidth:n?24*Number(r)/Number(t):r,className:ic("lucide",o),...s},[...a.map((([e,t])=>(0,Ie.createElement)(e,t))),...Array.isArray(i)?i:[i]]))),lc=(e,t)=>{const r=(0,Ie.forwardRef)((({className:r,...n},o)=>{return(0,Ie.createElement)(sc,{ref:o,iconNode:t,className:ic(`lucide-${i=e,i.replace(/([a-z0-9])([A-Z])/g,"$1-$2").toLowerCase()}`,r),...n});var i}));return r.displayName=`${e}`,r},uc=lc("CircleCheckBig",[["path",{d:"M21.801 10A10 10 0 1 1 17 3.335",key:"yps3ct"}],["path",{d:"m9 11 3 3L22 4",key:"1pflzl"}]]),cc=lc("ShieldCheck",[["path",{d:"M20 13c0 5-3.5 7.5-7.66 8.95a1 1 0 0 1-.67-.01C7.5 20.5 4 18 4 13V6a1 1 0 0 1 1-1c2 0 4.5-1.2 6.24-2.72a1.17 1.17 0 0 1 1.52 0C14.51 3.81 17 5 19 5a1 1 0 0 1 1 1z",key:"oel41y"}],["path",{d:"m9 12 2 2 4-4",key:"dzmm74"}]]),dc=lc("Settings",[["path",{d:"M12.22 2h-.44a2 2 0 0 0-2 2v.18a2 2 0 0 1-1 1.73l-.43.25a2 2 0 0 1-2 0l-.15-.08a2 2 0 0 0-2.73.73l-.22.38a2 2 0 0 0 .73 2.73l.15.1a2 2 0 0 1 1 1.72v.51a2 2 0 0 1-1 1.74l-.15.09a2 2 0 0 0-.73 2.73l.22.38a2 2 0 0 0 2.73.73l.15-.08a2 2 0 0 1 2 0l.43.25a2 2 0 0 1 1 1.73V20a2 2 0 0 0 2 2h.44a2 2 0 0 0 2-2v-.18a2 2 0 0 1 1-1.73l.43-.25a2 2 0 0 1 2 0l.15.08a2 2 0 0 0 2.73-.73l.22-.39a2 2 0 0 0-.73-2.73l-.15-.08a2 2 0 0 1-1-1.74v-.5a2 2 0 0 1 1-1.74l.15-.09a2 2 0 0 0 .73-2.73l-.22-.38a2 2 0 0 0-2.73-.73l-.15.08a2 2 0 0 1-2 0l-.43-.25a2 2 0 0 1-1-1.73V4a2 2 0 0 0-2-2z",key:"1qme2f"}],["circle",{cx:"12",cy:"12",r:"3",key:"1v7zrd"}]]),fc=lc("CodeXml",[["path",{d:"m18 16 4-4-4-4",key:"1inbqp"}],["path",{d:"m6 8-4 4 4 4",key:"15zrgr"}],["path",{d:"m14.5 4-5 16",key:"e7oirm"}]]),mc=lc("X",[["path",{d:"M18 6 6 18",key:"1bl5f8"}],["path",{d:"m6 6 12 12",key:"d8bk6v"}]]),pc=function(){return(0,s.useEffect)((function(){var e,t;null!==(e=window)&&void 0!==e&&e.SureTriggers&&null!==(t=window)&&void 0!==t&&t.SureTriggersConfig&&window.SureTriggers.init(window.SureTriggersConfig)}),[]),React.createElement("div",{className:"h-full bg-background-primary rounded-xl p-4 mb-6 flex flex-col gap-2"},React.createElement(rc,{tag:"h4",title:(0,a.__)("OttoKit Settings","sureforms"),size:"md",className:"p-2"}),React.createElement("div",{className:"h-full flex flex-col gap-1 bg-background-secondary rounded-lg p-2"},React.createElement("div",{id:"suretriggers-iframe-wrapper",className:"size-full [&>iframe]:rounded-md"})))};let hc=(e=21)=>{let t="",r=crypto.getRandomValues(new Uint8Array(e|=0));for(;e--;)t+="useandom-26T198340PX75pxJACKVERYMINDBUSHWOLF_GQZbfghjklqvwyzrict"[63&r[e]];return t};const gc=(0,Ie.forwardRef)((({children:e=null,tag:t="label",size:r="sm",className:n="",variant:o="neutral",required:i=!1,...a},s)=>{if(!e)return null;let l="";return i&&(l="after:content-['*'] after:text-field-required after:ml-0.5"),(0,Se.jsx)(t,{ref:s,className:du("font-medium text-field-label flex items-center gap-0.5",{xs:"text-xs [&>*]:text-xs [&>svg]:h-3 [&>svg]:w-3",sm:"text-sm [&>*]:text-sm [&>svg]:h-4 [&>svg]:w-4",md:"text-base [&>*]:text-base [&>svg]:h-5 [&>svg]:w-5"}[r],{neutral:"text-field-label [&>*]:text-field-label",help:"text-field-helper [&>*]:text-field-helper",error:"text-support-error [&>*]:text-support-error",disabled:"text-field-color-disabled disabled cursor-not-allowed [&>*]:text-field-color-disabled"}[o],l,{neutral:"",help:"font-normal",error:"font-normal",disabled:""}?.[o],n),...a,children:e})}));gc.displayName="Label";const bc=({label:e,switchId:t,disabled:r=!1,children:n,size:o})=>{const i={xs:"text-xs leading-4 font-medium",sm:"text-sm leading-5 font-medium",md:"text-base leading-6 font-medium"},a={xs:"text-xs leading-4 font-normal",sm:"text-sm leading-5 font-normal",md:"text-sm leading-5 font-normal"},s={xs:"space-y-0.5",sm:"space-y-0.5",md:"space-y-1"};if((0,Ie.isValidElement)(e))return(0,Se.jsxs)("div",{className:du("inline-flex items-center gap-3","items-start"),children:[n,e]});const l=!e?.heading&&!e?.description,u=e?.heading&&e?.description?"items-start":"items-center";return l?n:(0,Se.jsxs)("div",{className:du("inline-flex",u,"gap-3"),children:[n,(()=>{const{heading:n="",description:l=""}=e||{};return(0,Se.jsxs)("div",{className:du("space-y-0.5",s[o]),children:[n&&(0,Se.jsx)(gc,{htmlFor:t,className:du("m-0",i[o]),...r&&{variant:"disabled"},children:n}),l&&(0,Se.jsx)(gc,{tag:"p",variant:"help",className:du("text-sm font-normal leading-5 m-0",a[o]),...r&&{variant:"disabled"},children:l})]})})()]})},yc=(0,Ie.forwardRef)((({id:e,onChange:t,value:r,defaultValue:n=!1,size:o="sm",disabled:i=!1,label:a={heading:"",description:""},name:s,className:l,...u},c)=>{const d="lg"===o?"md":o,f=(0,Ie.useMemo)((()=>typeof r<"u"),[r]),m=(0,Ie.useMemo)((()=>e||`switch-${hc()}`),[]),[p,h]=(0,Ie.useState)(n),g="primary",b=(0,Ie.useCallback)((()=>f?r:p),[f,r,p]),y={primary:{input:"bg-toggle-off checked:bg-toggle-on focus:ring focus:ring-toggle-on focus:ring-offset-2 border border-solid border-toggle-off-border checked:border-toggle-on-border shadow-toggleContainer focus:outline-none checked:focus:border-toggle-on-border focus:border-toggle-off-border",toggleDial:"bg-toggle-dial-background shadow-toggleDial"}},v={md:{container:"w-11 h-6",toggleDial:"size-4 peer-checked:translate-x-5"},sm:{container:"w-10 h-5",toggleDial:"size-3 peer-checked:translate-x-5"},xs:{container:"w-8 h-4",toggleDial:"size-2.5 peer-checked:translate-x-3.75"}};return(0,Se.jsx)(bc,{label:a,switchId:m,disabled:i,size:d,children:(0,Se.jsxs)("div",{className:du("relative group/switch inline-block cursor-pointer rounded-full shrink-0",v[d].container,l),children:[(0,Se.jsx)("input",{ref:c,id:m,type:"checkbox",className:du("peer appearance-none absolute rounded-full cursor-pointer transition-colors duration-300 h-full w-full  before:content-[''] checked:before:content-[''] m-0 checked:[background-image:none]",y[g].input,i&&"bg-toggle-off-disabled disabled:border-transparent disabled:cursor-not-allowed checked:disabled:bg-toggle-on-disabled disabled:shadow-toggle-disabled",!i&&{primary:{input:"group-hover/switch:bg-toggle-off-hover checked:group-hover/switch:bg-toggle-on-hover checked:group-hover/switch:border-toggle-on-border"}}[g].input),checked:b(),onChange:e=>{if(i)return;const r=e.target.checked;f||h(r),"function"==typeof t&&t(r)},disabled:i,name:s,...u}),(0,Se.jsx)("label",{htmlFor:m,className:du("peer/toggle-dial bg-white border rounded-full absolute cursor-pointer shadow-md before:content[''] before:transition-opacity before:opacity-0 hover:before:opacity-10 before:hidden border-none transition-all duration-300 top-2/4 not-rtl:left-1 rtl:right-1 -translate-y-2/4 before:w-10 before:h-10 before:rounded-full before:absolute before:top-2/4 not-rtl:before:left-2/4 rtl:before:right-2/4 before:-translate-y-2/4 before:-translate-x-2/4",v[d].toggleDial,y[g].toggleDial,i&&"peer-disabled:cursor-not-allowed",!i&&{md:"group-hover/switch:size-5 group-focus-within/switch:size-5 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",sm:"group-hover/switch:size-4 group-focus-within/switch:size-4 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5",xs:"group-hover/switch:size-3.25 group-focus-within/switch:size-3.25 not-rtl:group-focus-within/switch:left-0.5 rtl:group-focus-within/switch:right-0.5 not-rtl:group-hover/switch:left-0.5 rtl:group-hover/switch:right-0.5"}[d])})]})})}));yc.displayName="Switch";const vc=bu("Upload",[["path",{d:"M21 15v4a2 2 0 0 1-2 2H5a2 2 0 0 1-2-2v-4",key:"ih7n3h"}],["polyline",{points:"17 8 12 3 7 8",key:"t8dd8p"}],["line",{x1:"12",x2:"12",y1:"3",y2:"15",key:"widbto"}]]),Dc=bu("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),_c=bu("Check",[["path",{d:"M20 6 9 17l-5-5",key:"1gmf2c"}]]),xc=bu("TriangleAlert",[["path",{d:"m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3",key:"wmoenq"}],["path",{d:"M12 9v4",key:"juzpu7"}],["path",{d:"M12 17h.01",key:"p32p05"}]]),kc=bu("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]),Ec="light",wc="neutral",Cc=({icon:e,theme:t=Ec,variant:r=wc})=>{const n="[&>svg]:h-5 [&>svg]:w-5",o=(({theme:e=Ec,variant:t=wc})=>{let r="light"===e?"text-icon-secondary":"text-icon-inverse";return r={info:"light"===e?"text-support-info":"text-support-info-inverse",success:"light"===e?"text-support-success":"text-support-success-inverse",warning:"light"===e?"text-support-warning":"text-support-warning-inverse",error:"light"===e?"text-support-error":"text-support-error-inverse"}[t]||r,r})({theme:t,variant:r});if(e&&(0,Ie.isValidElement)(e))return(0,Ie.cloneElement)(e,{className:du(n,o,e?.props?.className??"")});const i={neutral:(0,Se.jsx)(Dc,{className:du(n,o)}),info:(0,Se.jsx)(Dc,{className:du(n,o)}),success:(0,Se.jsx)(_c,{className:du(n,o)}),warning:(0,Se.jsx)(xc,{className:du(n,o)}),error:(0,Se.jsx)(kc,{className:du(n,o)})};return i[r]||i.neutral},Mc=({actionType:e="button",onAction:t=()=>{},actionLabel:r="",theme:n=Ec})=>{const o="focus:ring-0 focus:ring-offset-0 ring-offset-0 focus:outline-none";let i="text-button-primary border-button-primary hover:border-button-primary hover:text-button-primary-hover";switch("dark"===n&&(i="text-text-inverse border-text-inverse hover:border-text-inverse hover:text-text-inverse"),e){case"button":return(0,Se.jsx)(nc,{variant:"outline",size:"xs",onClick:t,className:du("rounded",o,i,"dark"===n?"bg-transparent hover:bg-transparent":"bg-white hover:bg-white"),children:r});case"link":return(0,Se.jsx)(nc,{variant:"link",size:"xs",onClick:t,className:du(o,i),children:r});default:return null}},Ac=({theme:e=Ec,title:t="",inline:r=!1})=>t?(0,Se.jsx)("span",{className:du("block",{light:"text-text-primary",dark:"text-text-inverse"}[e],"text-sm leading-5 font-semibold",r?"inline":"block"),children:t}):null,Nc=({theme:e=Ec,content:t="",inline:r=!1})=>t?(0,Se.jsx)("span",{className:du({light:"text-text-primary",dark:"text-text-inverse"}[e],"block text-sm [&_*]:text-sm leading-5 [&_*]:leading-5 font-normal [word-break:break-word]",r?"inline":"block"),children:t}):null,jc=(...e)=>t=>{e.forEach((e=>{"function"==typeof e?e(t):e&&(e.current=t)}))},Oc=(0,Ie.forwardRef)((({id:e,type:t="text",defaultValue:r="",value:n,size:o="sm",className:i="",disabled:a=!1,onChange:s=()=>{},error:l=!1,onError:u=()=>{},prefix:c=null,suffix:d=null,label:f="",...m},p)=>{const h=(0,Ie.useRef)(null),g=(0,Ie.useMemo)((()=>e||`input-${t}-${hc()}`),[e]),b=(0,Ie.useMemo)((()=>typeof n<"u"),[n]),[y,v]=(0,Ie.useState)(r),[D,_]=(0,Ie.useState)(null),x=(0,Ie.useCallback)((()=>b?n:y),[b,n,y]),k=e=>{if(a)return;let r;"file"===t?(r=e.target.files,r&&r.length>0?_(r[0].name):_(null)):r=e.target.value,!b&&"file"!==t&&v(r),"function"==typeof s&&s(r)},E=()=>{_(null),h.current&&(h.current.value=""),s(null)},w="bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary w-full outline outline-1 outline-border-subtle border-none transition-[color,box-shadow,outline] duration-200",C={xs:"px-2 py-1 rounded",sm:"p-3 py-2 rounded",md:"p-3.5 py-2.5 rounded-md",lg:"p-4 py-3 rounded-lg"},M={xs:"text-xs font-medium",sm:"text-sm font-medium",md:"text-sm font-medium",lg:"text-base font-medium"},A={xs:"text-xs",sm:"text-xs",md:"text-sm",lg:"text-base"},N={sm:c?"pl-8":"",md:c?"pl-9":"",lg:c?"pl-10":""},j={sm:d?"pr-8":"",md:d?"pr-9":"",lg:d?"pr-10":""},O=a?"hover:outline-border-disabled":"hover:outline-border-strong",T="focus:outline-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",S=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",I=l?"focus:outline-focus-error-border focus:ring-field-color-error outline-focus-error-border":"",F=a?"outline-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",L=a?"outline-border-disabled cursor-not-allowed text-text-disabled file:text-text-tertiary":"",R="font-normal placeholder-text-tertiary text-text-primary pointer-events-none absolute inset-y-0 flex flex-1 items-center [&>svg]:h-4 [&>svg]:w-4",P=a?"font-normal placeholder-text-tertiary text-icon-disabled pointer-events-none absolute inset-y-0 flex flex-1 items-center":"font-normal placeholder-text-tertiary text-field-placeholder pointer-events-none absolute inset-y-0 flex flex-1 items-center",B={xs:"[&>svg]:size-4",sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6"},z=(0,Ie.useMemo)((()=>f?(0,Se.jsx)(gc,{className:du(M[o]),htmlFor:g,...m?.required&&{required:!0},children:f}):null),[f,o,g]),q=D?"file:border-0 file:bg-transparent pr-10":"text-text-tertiary file:border-0 file:bg-transparent pr-10";return"file"===t?(0,Se.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[z,(0,Se.jsxs)("div",{className:du("w-full relative flex focus-within:z-10",i),children:[(0,Se.jsx)("input",{ref:jc(h,p),id:g,type:"file",className:du(w,L,C[o],A[o],T,O,I,q),disabled:a,onChange:k,onInvalid:u,...m}),(0,Se.jsx)("div",{className:du(P,"right-0 pr-3",B[o]),children:(0,Se.jsx)(vc,{})})]})]}):(0,Se.jsxs)("div",{className:"flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[z,(0,Se.jsxs)("div",{className:du("w-full relative flex focus-within:z-10",i),children:[c?(0,Se.jsx)("div",{className:du(R,"left-0 pl-3",A[o]),children:c}):null,(0,Se.jsx)("input",{ref:jc(h,p),id:g,type:t,className:du(w,F,C[o],A[o],N[o],j[o],T,O,S),disabled:a,onChange:k,onInvalid:u,value:x(),...m}),"file"===t?D?(0,Se.jsx)("div",{className:du(P,"right-0 pr-3 cursor-pointer z-20 pointer-events-auto",B[o]),onClick:E,role:"button",tabIndex:0,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&E()},children:(0,Se.jsx)(yu,{})}):(0,Se.jsx)("div",{className:du(P,"right-0 pr-3",B[o]),children:(0,Se.jsx)(vc,{})}):d?(0,Se.jsx)("div",{className:du(R,"right-0 pr-3",A[o]),children:d}):null]})]})}));Oc.displayName="Input";const Tc=lc("ArrowLeft",[["path",{d:"m12 19-7-7 7-7",key:"1l729n"}],["path",{d:"M19 12H5",key:"x3x0zl"}]]),Sc=function(e){var t=e.children,r=e.title,n=e.className,o=e.onClickBack,i=e.onClickAction,s=e.actionBtnText,l=e.actionBtnIcon,u=e.actionBtnVariant,c=void 0===u?"primary":u,d=e.actionLeftContent,f=e.actionBtnDisabled,m=void 0!==f&&f,p=e.hideTitle,h=void 0!==p&&p,g=e.shouldShowAutoSaveText,b=void 0!==g&&g,y=(0,a.__)("All changes will be saved automatically when you press back.","sureforms");return React.createElement("div",{className:(0,x.cn)("pb-8",!h&&"space-y-7")},React.createElement(ec,{align:"center",justify:"between"},React.createElement(ec,{className:"gap-0",direction:"column"},React.createElement(ec.Item,{className:"flex items-center gap-2"},o&&React.createElement(nc,{className:"p-0",size:"md",variant:"ghost",onClick:function(){"function"==typeof o&&o()},icon:React.createElement(Tc,null)}),!h&&React.createElement(rc,{tag:"h4",title:r,size:"md"})),React.createElement(ec.Item,{className:"pl-7"},b&&React.createElement(gc,{size:"sm",variant:"help",className:"text-text-on-button-disabled font-normal"},y))),React.createElement(ec,{align:"center",className:"gap-3"},d,i&&React.createElement(nc,{size:"md",onClick:function(e){"function"==typeof i&&i(e)},icon:l,variant:c,disabled:m},s))),React.createElement("div",{className:(0,x.cn)("bg-background-primary rounded-xl p-4 shadow-sm",n)},t))};function Ic(e){return Ic="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},Ic(e)}function Fc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Lc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Fc(Object(r),!0).forEach((function(t){Rc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Fc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Rc(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ic(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ic(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ic(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const Pc=function(e){var t,r,n,o,i,s,c,d=e.complianceData,f=(0,l.useDispatch)(u.store).editPost,m=function(e,t){var r=d.map((function(r){return Lc(Lc({},r),{},Rc({},e,t))}));f({meta:{_srfm_compliance:r}})},p=[{id:"gdpr",label:{heading:(0,a.__)("Enable GDPR Compliance","sureforms"),description:(0,a.__)("When enabled this form will not store User IP, Browser Name and the Device Name in the Entries.","sureforms")}},{id:"do_not_store_entries",label:{heading:(0,a.__)("Never store entry data after form submission","sureforms"),description:(0,a.__)("When enabled this form will never store Entries.","sureforms")},condition:null===(t=d[0])||void 0===t?void 0:t.gdpr},{id:"auto_delete_entries",label:{heading:(0,a.__)("Automatically delete entries","sureforms"),description:(0,a.__)("When enabled this form will automatically delete entries after a certain period of time.","sureforms")},condition:(null===(r=d[0])||void 0===r?void 0:r.gdpr)&&!(null!==(n=d[0])&&void 0!==n&&n.do_not_store_entries)}];return React.createElement(Sc,{className:"!mt-0"},React.createElement(React.Fragment,null,React.createElement(rc,{size:"xs",className:"mb-4",title:(0,a.__)("Compliance Settings","sureforms")}),React.createElement(ec,{direction:"column",className:"gap-6"},p.map((function(e){var t,r=e.id,n=e.label,o=e.condition;return(void 0===o||o)&&function(e){var t=e.id,r=e.label,n=e.value,o=e.onChange,i=e.key;return React.createElement(yc,{key:i,label:r,value:n,onChange:function(e){return o(t,e)}})}({id:r,label:n,value:null===(t=d[0])||void 0===t?void 0:t[r],onChange:m,key:r})})),(null===(o=d[0])||void 0===o?void 0:o.auto_delete_entries)&&!(null!==(i=d[0])&&void 0!==i&&i.do_not_store_entries)&&(null===(s=d[0])||void 0===s?void 0:s.gdpr)&&React.createElement(ec,{direction:"column",className:"gap-1.5"},React.createElement(Oc,{"aria-label":(0,a.__)("Entries older than the selected days will be deleted.","sureforms"),size:"md",type:"number",value:null===(c=d[0])||void 0===c?void 0:c.auto_delete_days,label:(0,a.__)("Entries Time Period","sureforms"),onChange:function(e){(e=parseInt(e))<0&&(e=1),e=e.toString(),m("auto_delete_days",e)}}),React.createElement(ec,{gap:"0",align:"center"},React.createElement(gc,{tag:"p",size:"sm",variant:"help"},(0,a.__)("Entries older than the days set will be deleted automatically.","sureforms")))))))};var Bc=o(76516),zc={};Bc.A&&Bc.A.locals&&(zc.locals=Bc.A.locals);var qc,Vc=0,Uc={attributes:{id:"sureforms-editor-styles"}};Uc.setAttributes=P(),Uc.insert=L().bind(null,"head"),Uc.domAPI=I(),Uc.insertStyleElement=z(),zc.use=function(e){return Uc.options=e||{},Vc++||(qc=T()(Bc.A,Uc)),zc},zc.unuse=function(){Vc>0&&! --Vc&&(qc(),qc=null)};const Hc=zc,Yc=(0,Ie.forwardRef)((({id:e,defaultValue:t="",value:r,size:n="sm",className:o="",disabled:i=!1,onChange:a=()=>{},error:s=!1,onError:l=()=>{},...u},c)=>{const d=(0,Ie.useMemo)((()=>e||`input-textarea-${hc()}`),[e]),f=(0,Ie.useMemo)((()=>typeof r<"u"),[r]),[m,p]=(0,Ie.useState)(t),h=(0,Ie.useCallback)((()=>f?r:m),[f,r,m]),g=i?"hover:border-border-disabled":"hover:border-border-strong",b=s?"focus:border-focus-error-border focus:ring-field-color-error border-focus-error-border":"";return(0,Se.jsx)("textarea",{ref:c,id:d,className:du("py-2 rounded border border-solid border-border-subtle bg-field-secondary-background font-normal placeholder-text-tertiary text-text-primary focus:outline-none transition ease-in-out duration-200",i?"border-border-disabled bg-field-background-disabled cursor-not-allowed text-text-disabled":"",{sm:"px-3 rounded text-xs",md:"px-3 rounded-md text-sm",lg:"px-4 rounded-lg text-base"}[n],"focus:border-focus-border focus:ring-2 focus:ring-toggle-on focus:ring-offset-2",g,b,o),disabled:i,onChange:e=>{if(i)return;const t=e.target.value;f||p(t),"function"==typeof a&&a(t)},onInvalid:l,value:h(),...u})}));function Qc(e){return Qc="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},Qc(e)}function Wc(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Gc(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Wc(Object(r),!0).forEach((function(t){Zc(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Wc(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Zc(e,t,r){return(t=function(e){var t=function(e){if("object"!=Qc(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Qc(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Qc(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function $c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}Yc.displayName="TextArea";const Kc=function(e){var t,r,n=e.formCustomCssData,o=(0,s.useRef)(null),i=(t=(0,s.useState)(n),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return $c(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?$c(e,t):void 0}}(t,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.")}()),u=i[0],c=i[1];return(0,s.useLayoutEffect)((function(){return Hc.use(),function(){Hc.unuse()}}),[]),(0,s.useEffect)((function(){var e,t,r,n=function(){var e=document.querySelector(".srfm-custom-css-panel"),t=null==e?void 0:e.querySelectorAll(".CodeMirror-wrap");null==t||t.forEach((function(e){null==e||e.remove()}))};return n(),t=null===(e=wp)||void 0===e||null===(e=e.codeEditor)||void 0===e?void 0:e.initialize(null==o?void 0:o.current,Gc(Gc({},wp.codeEditor.defaultSettings.codemirror),{},{scrollbarStyle:null})),(r=document.querySelector(".srfm-css-editor .CodeMirror-code"))&&(null==r||r.addEventListener("keyup",(function(){var e,r;null==t||null===(e=t.codemirror)||void 0===e||e.save();var n=null==t||null===(r=t.codemirror)||void 0===r?void 0:r.getValue();c(n),(0,l.dispatch)("core/editor").editPost({meta:{_srfm_form_custom_css:n}})}))),n}),[o]),React.createElement(Sc,{title:(0,a.__)("Custom CSS","sureforms")},React.createElement(ec,{direction:"column",className:"gap-2"},React.createElement(gc,{variant:"neutral",size:"md",className:"font-normal text-text-secondary"},(0,a.__)("The following CSS styles added below will only apply to this form container.","sureforms")),React.createElement("div",{className:"srfm-custom-css-panel srfm-css-editor"},React.createElement(Yc,{"aria-label":(0,a.__)("Custom CSS Panel","sureforms"),id:"srfm-css-editor",size:"sm",value:u,ref:o}))))};function Xc(){return"undefined"!=typeof window}function Jc(e){return rd(e)?(e.nodeName||"").toLowerCase():"#document"}function ed(e){var t;return(null==e||null==(t=e.ownerDocument)?void 0:t.defaultView)||window}function td(e){var t;return null==(t=(rd(e)?e.ownerDocument:e.document)||window.document)?void 0:t.documentElement}function rd(e){return!!Xc()&&(e instanceof Node||e instanceof ed(e).Node)}function nd(e){return!!Xc()&&(e instanceof Element||e instanceof ed(e).Element)}function od(e){return!!Xc()&&(e instanceof HTMLElement||e instanceof ed(e).HTMLElement)}function id(e){return!(!Xc()||"undefined"==typeof ShadowRoot)&&(e instanceof ShadowRoot||e instanceof ed(e).ShadowRoot)}function ad(e){const{overflow:t,overflowX:r,overflowY:n,display:o}=fd(e);return/auto|scroll|overlay|hidden|clip/.test(t+n+r)&&!["inline","contents"].includes(o)}function sd(e){return["table","td","th"].includes(Jc(e))}function ld(e){return[":popover-open",":modal"].some((t=>{try{return e.matches(t)}catch(e){return!1}}))}function ud(e){const t=cd(),r=nd(e)?fd(e):e;return["transform","translate","scale","rotate","perspective"].some((e=>!!r[e]&&"none"!==r[e]))||!!r.containerType&&"normal"!==r.containerType||!t&&!!r.backdropFilter&&"none"!==r.backdropFilter||!t&&!!r.filter&&"none"!==r.filter||["transform","translate","scale","rotate","perspective","filter"].some((e=>(r.willChange||"").includes(e)))||["paint","layout","strict","content"].some((e=>(r.contain||"").includes(e)))}function cd(){return!("undefined"==typeof CSS||!CSS.supports)&&CSS.supports("-webkit-backdrop-filter","none")}function dd(e){return["html","body","#document"].includes(Jc(e))}function fd(e){return ed(e).getComputedStyle(e)}function md(e){return nd(e)?{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}:{scrollLeft:e.scrollX,scrollTop:e.scrollY}}function pd(e){if("html"===Jc(e))return e;const t=e.assignedSlot||e.parentNode||id(e)&&e.host||td(e);return id(t)?t.host:t}function hd(e){const t=pd(e);return dd(t)?e.ownerDocument?e.ownerDocument.body:e.body:od(t)&&ad(t)?t:hd(t)}function gd(e,t,r){var n;void 0===t&&(t=[]),void 0===r&&(r=!0);const o=hd(e),i=o===(null==(n=e.ownerDocument)?void 0:n.body),a=ed(o);if(i){const e=bd(a);return t.concat(a,a.visualViewport||[],ad(o)?o:[],e&&r?gd(e):[])}return t.concat(o,gd(o,[],r))}function bd(e){return e.parent&&Object.getPrototypeOf(e.parent)?e.frameElement:null}function yd(e){let t=e.activeElement;for(;null!=(null==(r=t)||null==(r=r.shadowRoot)?void 0:r.activeElement);){var r;t=t.shadowRoot.activeElement}return t}function vd(e,t){if(!e||!t)return!1;const r=null==t.getRootNode?void 0:t.getRootNode();if(e.contains(t))return!0;if(r&&id(r)){let r=t;for(;r;){if(e===r)return!0;r=r.parentNode||r.host}}return!1}function Dd(){const e=navigator.userAgentData;return null!=e&&e.platform?e.platform:navigator.platform}function _d(){const e=navigator.userAgentData;return e&&Array.isArray(e.brands)?e.brands.map((e=>{let{brand:t,version:r}=e;return t+"/"+r})).join(" "):navigator.userAgent}function xd(e){return!(0!==e.mozInputSource||!e.isTrusted)||(wd()&&e.pointerType?"click"===e.type&&1===e.buttons:0===e.detail&&!e.pointerType)}function kd(e){return!_d().includes("jsdom/")&&(!wd()&&0===e.width&&0===e.height||wd()&&1===e.width&&1===e.height&&0===e.pressure&&0===e.detail&&"mouse"===e.pointerType||e.width<1&&e.height<1&&0===e.pressure&&0===e.detail&&"touch"===e.pointerType)}function Ed(){return/apple/i.test(navigator.vendor)}function wd(){const e=/android/i;return e.test(Dd())||e.test(_d())}function Cd(){return Dd().toLowerCase().startsWith("mac")&&!navigator.maxTouchPoints}function Md(e,t){const r=["mouse","pen"];return t||r.push("",void 0),r.includes(e)}function Ad(e){return(null==e?void 0:e.ownerDocument)||document}function Nd(e,t){if(null==t)return!1;if("composedPath"in e)return e.composedPath().includes(t);const r=e;return null!=r.target&&t.contains(r.target)}function jd(e){return"composedPath"in e?e.composedPath()[0]:e.target}function Od(e){return od(e)&&e.matches("input:not([type='hidden']):not([disabled]),[contenteditable]:not([contenteditable='false']),textarea:not([disabled])")}function Td(e){e.preventDefault(),e.stopPropagation()}function Sd(e){return!!e&&"combobox"===e.getAttribute("role")&&Od(e)}const Id=Math.min,Fd=Math.max,Ld=Math.round,Rd=Math.floor,Pd=e=>({x:e,y:e}),Bd={left:"right",right:"left",bottom:"top",top:"bottom"},zd={start:"end",end:"start"};function qd(e,t,r){return Fd(e,Id(t,r))}function Vd(e,t){return"function"==typeof e?e(t):e}function Ud(e){return e.split("-")[0]}function Hd(e){return e.split("-")[1]}function Yd(e){return"x"===e?"y":"x"}function Qd(e){return"y"===e?"height":"width"}function Wd(e){return["top","bottom"].includes(Ud(e))?"y":"x"}function Gd(e){return Yd(Wd(e))}function Zd(e){return e.replace(/start|end/g,(e=>zd[e]))}function $d(e){return e.replace(/left|right|bottom|top/g,(e=>Bd[e]))}function Kd(e){return"number"!=typeof e?function(e){return{top:0,right:0,bottom:0,left:0,...e}}(e):{top:e,right:e,bottom:e,left:e}}function Xd(e){const{x:t,y:r,width:n,height:o}=e;return{width:n,height:o,top:r,left:t,right:t+n,bottom:r+o,x:t,y:r}}var Jd=["input:not([inert])","select:not([inert])","textarea:not([inert])","a[href]:not([inert])","button:not([inert])","[tabindex]:not(slot):not([inert])","audio[controls]:not([inert])","video[controls]:not([inert])",'[contenteditable]:not([contenteditable="false"]):not([inert])',"details>summary:first-of-type:not([inert])","details:not([inert])"].join(","),ef="undefined"==typeof Element,tf=ef?function(){}:Element.prototype.matches||Element.prototype.msMatchesSelector||Element.prototype.webkitMatchesSelector,rf=!ef&&Element.prototype.getRootNode?function(e){var t;return null==e||null===(t=e.getRootNode)||void 0===t?void 0:t.call(e)}:function(e){return null==e?void 0:e.ownerDocument},nf=function e(t,r){var n;void 0===r&&(r=!0);var o=null==t||null===(n=t.getAttribute)||void 0===n?void 0:n.call(t,"inert");return""===o||"true"===o||r&&t&&e(t.parentNode)},of=function e(t,r,n){for(var o=[],i=Array.from(t);i.length;){var a=i.shift();if(!nf(a,!1))if("SLOT"===a.tagName){var s=a.assignedElements(),l=e(s.length?s:a.children,!0,n);n.flatten?o.push.apply(o,l):o.push({scopeParent:a,candidates:l})}else{tf.call(a,Jd)&&n.filter(a)&&(r||!t.includes(a))&&o.push(a);var u=a.shadowRoot||"function"==typeof n.getShadowRoot&&n.getShadowRoot(a),c=!nf(u,!1)&&(!n.shadowRootFilter||n.shadowRootFilter(a));if(u&&c){var d=e(!0===u?a.children:u.children,!0,n);n.flatten?o.push.apply(o,d):o.push({scopeParent:a,candidates:d})}else i.unshift.apply(i,a.children)}}return o},af=function(e){return!isNaN(parseInt(e.getAttribute("tabindex"),10))},sf=function(e){if(!e)throw new Error("No node provided");return e.tabIndex<0&&(/^(AUDIO|VIDEO|DETAILS)$/.test(e.tagName)||function(e){var t,r=null==e||null===(t=e.getAttribute)||void 0===t?void 0:t.call(e,"contenteditable");return""===r||"true"===r}(e))&&!af(e)?0:e.tabIndex},lf=function(e,t){return e.tabIndex===t.tabIndex?e.documentOrder-t.documentOrder:e.tabIndex-t.tabIndex},uf=function(e){return"INPUT"===e.tagName},cf=function(e){var t=e.getBoundingClientRect(),r=t.width,n=t.height;return 0===r&&0===n},df=function(e,t){return!(t.disabled||nf(t)||function(e){return uf(e)&&"hidden"===e.type}(t)||function(e,t){var r=t.displayCheck,n=t.getShadowRoot;if("hidden"===getComputedStyle(e).visibility)return!0;var o=tf.call(e,"details>summary:first-of-type")?e.parentElement:e;if(tf.call(o,"details:not([open]) *"))return!0;if(r&&"full"!==r&&"legacy-full"!==r){if("non-zero-area"===r)return cf(e)}else{if("function"==typeof n){for(var i=e;e;){var a=e.parentElement,s=rf(e);if(a&&!a.shadowRoot&&!0===n(a))return cf(e);e=e.assignedSlot?e.assignedSlot:a||s===e.ownerDocument?a:s.host}e=i}if(function(e){var t,r,n,o,i=e&&rf(e),a=null===(t=i)||void 0===t?void 0:t.host,s=!1;if(i&&i!==e)for(s=!!(null!==(r=a)&&void 0!==r&&null!==(n=r.ownerDocument)&&void 0!==n&&n.contains(a)||null!=e&&null!==(o=e.ownerDocument)&&void 0!==o&&o.contains(e));!s&&a;){var l,u,c;s=!(null===(u=a=null===(l=i=rf(a))||void 0===l?void 0:l.host)||void 0===u||null===(c=u.ownerDocument)||void 0===c||!c.contains(a))}return s}(e))return!e.getClientRects().length;if("legacy-full"!==r)return!0}return!1}(t,e)||function(e){return"DETAILS"===e.tagName&&Array.prototype.slice.apply(e.children).some((function(e){return"SUMMARY"===e.tagName}))}(t)||function(e){if(/^(INPUT|BUTTON|SELECT|TEXTAREA)$/.test(e.tagName))for(var t=e.parentElement;t;){if("FIELDSET"===t.tagName&&t.disabled){for(var r=0;r<t.children.length;r++){var n=t.children.item(r);if("LEGEND"===n.tagName)return!!tf.call(t,"fieldset[disabled] *")||!n.contains(e)}return!0}t=t.parentElement}return!1}(t))},ff=function(e,t){return!(function(e){return function(e){return uf(e)&&"radio"===e.type}(e)&&!function(e){if(!e.name)return!0;var t,r=e.form||rf(e),n=function(e){return r.querySelectorAll('input[type="radio"][name="'+e+'"]')};if("undefined"!=typeof window&&void 0!==window.CSS&&"function"==typeof window.CSS.escape)t=n(window.CSS.escape(e.name));else try{t=n(e.name)}catch(e){return console.error("Looks like you have a radio button with a name attribute containing invalid CSS selector characters and need the CSS.escape polyfill: %s",e.message),!1}var o=function(e,t){for(var r=0;r<e.length;r++)if(e[r].checked&&e[r].form===t)return e[r]}(t,e.form);return!o||o===e}(e)}(t)||sf(t)<0||!df(e,t))},mf=function(e){var t=parseInt(e.getAttribute("tabindex"),10);return!!(isNaN(t)||t>=0)},pf=function e(t){var r=[],n=[];return t.forEach((function(t,o){var i=!!t.scopeParent,a=i?t.scopeParent:t,s=function(e,t){var r=sf(e);return r<0&&t&&!af(e)?0:r}(a,i),l=i?e(t.candidates):a;0===s?i?r.push.apply(r,l):r.push(a):n.push({documentOrder:o,tabIndex:s,item:t,isScope:i,content:l})})),n.sort(lf).reduce((function(e,t){return t.isScope?e.push.apply(e,t.content):e.push(t.content),e}),[]).concat(r)},hf=function(e,t){var r;return r=(t=t||{}).getShadowRoot?of([e],t.includeContainer,{filter:ff.bind(null,t),flatten:!1,getShadowRoot:t.getShadowRoot,shadowRootFilter:mf}):function(e,t,r){if(nf(e))return[];var n=Array.prototype.slice.apply(e.querySelectorAll(Jd));return t&&tf.call(e,Jd)&&n.unshift(e),n.filter(r)}(e,t.includeContainer,ff.bind(null,t)),pf(r)};function gf(e,t,r){let{reference:n,floating:o}=e;const i=Wd(t),a=Gd(t),s=Qd(a),l=Ud(t),u="y"===i,c=n.x+n.width/2-o.width/2,d=n.y+n.height/2-o.height/2,f=n[s]/2-o[s]/2;let m;switch(l){case"top":m={x:c,y:n.y-o.height};break;case"bottom":m={x:c,y:n.y+n.height};break;case"right":m={x:n.x+n.width,y:d};break;case"left":m={x:n.x-o.width,y:d};break;default:m={x:n.x,y:n.y}}switch(Hd(t)){case"start":m[a]-=f*(r&&u?-1:1);break;case"end":m[a]+=f*(r&&u?-1:1)}return m}async function bf(e,t){var r;void 0===t&&(t={});const{x:n,y:o,platform:i,rects:a,elements:s,strategy:l}=e,{boundary:u="clippingAncestors",rootBoundary:c="viewport",elementContext:d="floating",altBoundary:f=!1,padding:m=0}=Vd(t,e),p=Kd(m),h=s[f?"floating"===d?"reference":"floating":d],g=Xd(await i.getClippingRect({element:null==(r=await(null==i.isElement?void 0:i.isElement(h)))||r?h:h.contextElement||await(null==i.getDocumentElement?void 0:i.getDocumentElement(s.floating)),boundary:u,rootBoundary:c,strategy:l})),b="floating"===d?{x:n,y:o,width:a.floating.width,height:a.floating.height}:a.reference,y=await(null==i.getOffsetParent?void 0:i.getOffsetParent(s.floating)),v=await(null==i.isElement?void 0:i.isElement(y))&&await(null==i.getScale?void 0:i.getScale(y))||{x:1,y:1},D=Xd(i.convertOffsetParentRelativeRectToViewportRelativeRect?await i.convertOffsetParentRelativeRectToViewportRelativeRect({elements:s,rect:b,offsetParent:y,strategy:l}):b);return{top:(g.top-D.top+p.top)/v.y,bottom:(D.bottom-g.bottom+p.bottom)/v.y,left:(g.left-D.left+p.left)/v.x,right:(D.right-g.right+p.right)/v.x}}function yf(e){const t=fd(e);let r=parseFloat(t.width)||0,n=parseFloat(t.height)||0;const o=od(e),i=o?e.offsetWidth:r,a=o?e.offsetHeight:n,s=Ld(r)!==i||Ld(n)!==a;return s&&(r=i,n=a),{width:r,height:n,$:s}}function vf(e){return nd(e)?e:e.contextElement}function Df(e){const t=vf(e);if(!od(t))return Pd(1);const r=t.getBoundingClientRect(),{width:n,height:o,$:i}=yf(t);let a=(i?Ld(r.width):r.width)/n,s=(i?Ld(r.height):r.height)/o;return a&&Number.isFinite(a)||(a=1),s&&Number.isFinite(s)||(s=1),{x:a,y:s}}const _f=Pd(0);function xf(e){const t=ed(e);return cd()&&t.visualViewport?{x:t.visualViewport.offsetLeft,y:t.visualViewport.offsetTop}:_f}function kf(e,t,r,n){void 0===t&&(t=!1),void 0===r&&(r=!1);const o=e.getBoundingClientRect(),i=vf(e);let a=Pd(1);t&&(n?nd(n)&&(a=Df(n)):a=Df(e));const s=function(e,t,r){return void 0===t&&(t=!1),!(!r||t&&r!==ed(e))&&t}(i,r,n)?xf(i):Pd(0);let l=(o.left+s.x)/a.x,u=(o.top+s.y)/a.y,c=o.width/a.x,d=o.height/a.y;if(i){const e=ed(i),t=n&&nd(n)?ed(n):n;let r=e,o=bd(r);for(;o&&n&&t!==r;){const e=Df(o),t=o.getBoundingClientRect(),n=fd(o),i=t.left+(o.clientLeft+parseFloat(n.paddingLeft))*e.x,a=t.top+(o.clientTop+parseFloat(n.paddingTop))*e.y;l*=e.x,u*=e.y,c*=e.x,d*=e.y,l+=i,u+=a,r=ed(o),o=bd(r)}}return Xd({width:c,height:d,x:l,y:u})}function Ef(e,t){const r=md(e).scrollLeft;return t?t.left+r:kf(td(e)).left+r}function wf(e,t,r){void 0===r&&(r=!1);const n=e.getBoundingClientRect();return{x:n.left+t.scrollLeft-(r?0:Ef(e,n)),y:n.top+t.scrollTop}}function Cf(e,t,r){let n;if("viewport"===t)n=function(e,t){const r=ed(e),n=td(e),o=r.visualViewport;let i=n.clientWidth,a=n.clientHeight,s=0,l=0;if(o){i=o.width,a=o.height;const e=cd();(!e||e&&"fixed"===t)&&(s=o.offsetLeft,l=o.offsetTop)}return{width:i,height:a,x:s,y:l}}(e,r);else if("document"===t)n=function(e){const t=td(e),r=md(e),n=e.ownerDocument.body,o=Fd(t.scrollWidth,t.clientWidth,n.scrollWidth,n.clientWidth),i=Fd(t.scrollHeight,t.clientHeight,n.scrollHeight,n.clientHeight);let a=-r.scrollLeft+Ef(e);const s=-r.scrollTop;return"rtl"===fd(n).direction&&(a+=Fd(t.clientWidth,n.clientWidth)-o),{width:o,height:i,x:a,y:s}}(td(e));else if(nd(t))n=function(e,t){const r=kf(e,!0,"fixed"===t),n=r.top+e.clientTop,o=r.left+e.clientLeft,i=od(e)?Df(e):Pd(1);return{width:e.clientWidth*i.x,height:e.clientHeight*i.y,x:o*i.x,y:n*i.y}}(t,r);else{const r=xf(e);n={x:t.x-r.x,y:t.y-r.y,width:t.width,height:t.height}}return Xd(n)}function Mf(e,t){const r=pd(e);return!(r===t||!nd(r)||dd(r))&&("fixed"===fd(r).position||Mf(r,t))}function Af(e,t,r){const n=od(t),o=td(t),i="fixed"===r,a=kf(e,!0,i,t);let s={scrollLeft:0,scrollTop:0};const l=Pd(0);function u(){l.x=Ef(o)}if(n||!n&&!i)if(("body"!==Jc(t)||ad(o))&&(s=md(t)),n){const e=kf(t,!0,i,t);l.x=e.x+t.clientLeft,l.y=e.y+t.clientTop}else o&&u();i&&!n&&o&&u();const c=!o||n||i?Pd(0):wf(o,s);return{x:a.left+s.scrollLeft-l.x-c.x,y:a.top+s.scrollTop-l.y-c.y,width:a.width,height:a.height}}function Nf(e){return"static"===fd(e).position}function jf(e,t){if(!od(e)||"fixed"===fd(e).position)return null;if(t)return t(e);let r=e.offsetParent;return td(e)===r&&(r=r.ownerDocument.body),r}function Of(e,t){const r=ed(e);if(ld(e))return r;if(!od(e)){let t=pd(e);for(;t&&!dd(t);){if(nd(t)&&!Nf(t))return t;t=pd(t)}return r}let n=jf(e,t);for(;n&&sd(n)&&Nf(n);)n=jf(n,t);return n&&dd(n)&&Nf(n)&&!ud(n)?r:n||function(e){let t=pd(e);for(;od(t)&&!dd(t);){if(ud(t))return t;if(ld(t))return null;t=pd(t)}return null}(e)||r}const Tf={convertOffsetParentRelativeRectToViewportRelativeRect:function(e){let{elements:t,rect:r,offsetParent:n,strategy:o}=e;const i="fixed"===o,a=td(n),s=!!t&&ld(t.floating);if(n===a||s&&i)return r;let l={scrollLeft:0,scrollTop:0},u=Pd(1);const c=Pd(0),d=od(n);if((d||!d&&!i)&&(("body"!==Jc(n)||ad(a))&&(l=md(n)),od(n))){const e=kf(n);u=Df(n),c.x=e.x+n.clientLeft,c.y=e.y+n.clientTop}const f=!a||d||i?Pd(0):wf(a,l,!0);return{width:r.width*u.x,height:r.height*u.y,x:r.x*u.x-l.scrollLeft*u.x+c.x+f.x,y:r.y*u.y-l.scrollTop*u.y+c.y+f.y}},getDocumentElement:td,getClippingRect:function(e){let{element:t,boundary:r,rootBoundary:n,strategy:o}=e;const i=[..."clippingAncestors"===r?ld(t)?[]:function(e,t){const r=t.get(e);if(r)return r;let n=gd(e,[],!1).filter((e=>nd(e)&&"body"!==Jc(e))),o=null;const i="fixed"===fd(e).position;let a=i?pd(e):e;for(;nd(a)&&!dd(a);){const t=fd(a),r=ud(a);r||"fixed"!==t.position||(o=null),(i?!r&&!o:!r&&"static"===t.position&&o&&["absolute","fixed"].includes(o.position)||ad(a)&&!r&&Mf(e,a))?n=n.filter((e=>e!==a)):o=t,a=pd(a)}return t.set(e,n),n}(t,this._c):[].concat(r),n],a=i[0],s=i.reduce(((e,r)=>{const n=Cf(t,r,o);return e.top=Fd(n.top,e.top),e.right=Id(n.right,e.right),e.bottom=Id(n.bottom,e.bottom),e.left=Fd(n.left,e.left),e}),Cf(t,a,o));return{width:s.right-s.left,height:s.bottom-s.top,x:s.left,y:s.top}},getOffsetParent:Of,getElementRects:async function(e){const t=this.getOffsetParent||Of,r=this.getDimensions,n=await r(e.floating);return{reference:Af(e.reference,await t(e.floating),e.strategy),floating:{x:0,y:0,width:n.width,height:n.height}}},getClientRects:function(e){return Array.from(e.getClientRects())},getDimensions:function(e){const{width:t,height:r}=yf(e);return{width:t,height:r}},getScale:Df,isElement:nd,isRTL:function(e){return"rtl"===fd(e).direction}};function Sf(e,t){return e.x===t.x&&e.y===t.y&&e.width===t.width&&e.height===t.height}function If(e,t,r,n){void 0===n&&(n={});const{ancestorScroll:o=!0,ancestorResize:i=!0,elementResize:a="function"==typeof ResizeObserver,layoutShift:s="function"==typeof IntersectionObserver,animationFrame:l=!1}=n,u=vf(e),c=o||i?[...u?gd(u):[],...gd(t)]:[];c.forEach((e=>{o&&e.addEventListener("scroll",r,{passive:!0}),i&&e.addEventListener("resize",r)}));const d=u&&s?function(e,t){let r,n=null;const o=td(e);function i(){var e;clearTimeout(r),null==(e=n)||e.disconnect(),n=null}return function a(s,l){void 0===s&&(s=!1),void 0===l&&(l=1),i();const u=e.getBoundingClientRect(),{left:c,top:d,width:f,height:m}=u;if(s||t(),!f||!m)return;const p={rootMargin:-Rd(d)+"px "+-Rd(o.clientWidth-(c+f))+"px "+-Rd(o.clientHeight-(d+m))+"px "+-Rd(c)+"px",threshold:Fd(0,Id(1,l))||1};let h=!0;function g(t){const n=t[0].intersectionRatio;if(n!==l){if(!h)return a();n?a(!1,n):r=setTimeout((()=>{a(!1,1e-7)}),1e3)}1!==n||Sf(u,e.getBoundingClientRect())||a(),h=!1}try{n=new IntersectionObserver(g,{...p,root:o.ownerDocument})}catch(e){n=new IntersectionObserver(g,p)}n.observe(e)}(!0),i}(u,r):null;let f,m=-1,p=null;a&&(p=new ResizeObserver((e=>{let[n]=e;n&&n.target===u&&p&&(p.unobserve(t),cancelAnimationFrame(m),m=requestAnimationFrame((()=>{var e;null==(e=p)||e.observe(t)}))),r()})),u&&!l&&p.observe(u),p.observe(t));let h=l?kf(e):null;return l&&function t(){const n=kf(e);h&&!Sf(h,n)&&r(),h=n,f=requestAnimationFrame(t)}(),r(),()=>{var e;c.forEach((e=>{o&&e.removeEventListener("scroll",r),i&&e.removeEventListener("resize",r)})),null==d||d(),null==(e=p)||e.disconnect(),p=null,l&&cancelAnimationFrame(f)}}const Ff=function(e){return void 0===e&&(e=0),{name:"offset",options:e,async fn(t){var r,n;const{x:o,y:i,placement:a,middlewareData:s}=t,l=await async function(e,t){const{placement:r,platform:n,elements:o}=e,i=await(null==n.isRTL?void 0:n.isRTL(o.floating)),a=Ud(r),s=Hd(r),l="y"===Wd(r),u=["left","top"].includes(a)?-1:1,c=i&&l?-1:1,d=Vd(t,e);let{mainAxis:f,crossAxis:m,alignmentAxis:p}="number"==typeof d?{mainAxis:d,crossAxis:0,alignmentAxis:null}:{mainAxis:d.mainAxis||0,crossAxis:d.crossAxis||0,alignmentAxis:d.alignmentAxis};return s&&"number"==typeof p&&(m="end"===s?-1*p:p),l?{x:m*c,y:f*u}:{x:f*u,y:m*c}}(t,e);return a===(null==(r=s.offset)?void 0:r.placement)&&null!=(n=s.arrow)&&n.alignmentOffset?{}:{x:o+l.x,y:i+l.y,data:{...l,placement:a}}}}},Lf=function(e){return void 0===e&&(e={}),{name:"shift",options:e,async fn(t){const{x:r,y:n,placement:o}=t,{mainAxis:i=!0,crossAxis:a=!1,limiter:s={fn:e=>{let{x:t,y:r}=e;return{x:t,y:r}}},...l}=Vd(e,t),u={x:r,y:n},c=await bf(t,l),d=Wd(Ud(o)),f=Yd(d);let m=u[f],p=u[d];if(i){const e="y"===f?"bottom":"right";m=qd(m+c["y"===f?"top":"left"],m,m-c[e])}if(a){const e="y"===d?"bottom":"right";p=qd(p+c["y"===d?"top":"left"],p,p-c[e])}const h=s.fn({...t,[f]:m,[d]:p});return{...h,data:{x:h.x-r,y:h.y-n,enabled:{[f]:i,[d]:a}}}}}},Rf=function(e){return void 0===e&&(e={}),{name:"flip",options:e,async fn(t){var r,n;const{placement:o,middlewareData:i,rects:a,initialPlacement:s,platform:l,elements:u}=t,{mainAxis:c=!0,crossAxis:d=!0,fallbackPlacements:f,fallbackStrategy:m="bestFit",fallbackAxisSideDirection:p="none",flipAlignment:h=!0,...g}=Vd(e,t);if(null!=(r=i.arrow)&&r.alignmentOffset)return{};const b=Ud(o),y=Wd(s),v=Ud(s)===s,D=await(null==l.isRTL?void 0:l.isRTL(u.floating)),_=f||(v||!h?[$d(s)]:function(e){const t=$d(e);return[Zd(e),t,Zd(t)]}(s)),x="none"!==p;!f&&x&&_.push(...function(e,t,r,n){const o=Hd(e);let i=function(e,t,r){const n=["left","right"],o=["right","left"],i=["top","bottom"],a=["bottom","top"];switch(e){case"top":case"bottom":return r?t?o:n:t?n:o;case"left":case"right":return t?i:a;default:return[]}}(Ud(e),"start"===r,n);return o&&(i=i.map((e=>e+"-"+o)),t&&(i=i.concat(i.map(Zd)))),i}(s,h,p,D));const k=[s,..._],E=await bf(t,g),w=[];let C=(null==(n=i.flip)?void 0:n.overflows)||[];if(c&&w.push(E[b]),d){const e=function(e,t,r){void 0===r&&(r=!1);const n=Hd(e),o=Gd(e),i=Qd(o);let a="x"===o?n===(r?"end":"start")?"right":"left":"start"===n?"bottom":"top";return t.reference[i]>t.floating[i]&&(a=$d(a)),[a,$d(a)]}(o,a,D);w.push(E[e[0]],E[e[1]])}if(C=[...C,{placement:o,overflows:w}],!w.every((e=>e<=0))){var M,A;const e=((null==(M=i.flip)?void 0:M.index)||0)+1,t=k[e];if(t){var N;const r="alignment"===d&&y!==Wd(t),n=(null==(N=C[0])?void 0:N.overflows[0])>0;if(!r||n)return{data:{index:e,overflows:C},reset:{placement:t}}}let r=null==(A=C.filter((e=>e.overflows[0]<=0)).sort(((e,t)=>e.overflows[1]-t.overflows[1]))[0])?void 0:A.placement;if(!r)switch(m){case"bestFit":{var j;const e=null==(j=C.filter((e=>{if(x){const t=Wd(e.placement);return t===y||"y"===t}return!0})).map((e=>[e.placement,e.overflows.filter((e=>e>0)).reduce(((e,t)=>e+t),0)])).sort(((e,t)=>e[1]-t[1]))[0])?void 0:j[0];e&&(r=e);break}case"initialPlacement":r=s}if(o!==r)return{reset:{placement:r}}}return{}}}},Pf=function(e){return void 0===e&&(e={}),{name:"size",options:e,async fn(t){var r,n;const{placement:o,rects:i,platform:a,elements:s}=t,{apply:l=()=>{},...u}=Vd(e,t),c=await bf(t,u),d=Ud(o),f=Hd(o),m="y"===Wd(o),{width:p,height:h}=i.floating;let g,b;"top"===d||"bottom"===d?(g=d,b=f===(await(null==a.isRTL?void 0:a.isRTL(s.floating))?"start":"end")?"left":"right"):(b=d,g="end"===f?"top":"bottom");const y=h-c.top-c.bottom,v=p-c.left-c.right,D=Id(h-c[g],y),_=Id(p-c[b],v),x=!t.middlewareData.shift;let k=D,E=_;if(null!=(r=t.middlewareData.shift)&&r.enabled.x&&(E=v),null!=(n=t.middlewareData.shift)&&n.enabled.y&&(k=y),x&&!f){const e=Fd(c.left,0),t=Fd(c.right,0),r=Fd(c.top,0),n=Fd(c.bottom,0);m?E=p-2*(0!==e||0!==t?e+t:Fd(c.left,c.right)):k=h-2*(0!==r||0!==n?r+n:Fd(c.top,c.bottom))}await l({...t,availableWidth:E,availableHeight:k});const w=await a.getDimensions(s.floating);return p!==w.width||h!==w.height?{reset:{rects:!0}}:{}}}},Bf=e=>({name:"arrow",options:e,async fn(t){const{x:r,y:n,placement:o,rects:i,platform:a,elements:s,middlewareData:l}=t,{element:u,padding:c=0}=Vd(e,t)||{};if(null==u)return{};const d=Kd(c),f={x:r,y:n},m=Gd(o),p=Qd(m),h=await a.getDimensions(u),g="y"===m,b=g?"top":"left",y=g?"bottom":"right",v=g?"clientHeight":"clientWidth",D=i.reference[p]+i.reference[m]-f[m]-i.floating[p],_=f[m]-i.reference[m],x=await(null==a.getOffsetParent?void 0:a.getOffsetParent(u));let k=x?x[v]:0;k&&await(null==a.isElement?void 0:a.isElement(x))||(k=s.floating[v]||i.floating[p]);const E=D/2-_/2,w=k/2-h[p]/2-1,C=Id(d[b],w),M=Id(d[y],w),A=C,N=k-h[p]-M,j=k/2-h[p]/2+E,O=qd(A,j,N),T=!l.arrow&&null!=Hd(o)&&j!==O&&i.reference[p]/2-(j<A?C:M)-h[p]/2<0,S=T?j<A?j-A:j-N:0;return{[m]:f[m]+S,data:{[m]:O,centerOffset:j-O-S,...T&&{alignmentOffset:S}},reset:T}}}),zf=(e,t,r)=>{const n=new Map,o={platform:Tf,...r},i={...o.platform,_c:n};return(async(e,t,r)=>{const{placement:n="bottom",strategy:o="absolute",middleware:i=[],platform:a}=r,s=i.filter(Boolean),l=await(null==a.isRTL?void 0:a.isRTL(t));let u=await a.getElementRects({reference:e,floating:t,strategy:o}),{x:c,y:d}=gf(u,n,l),f=n,m={},p=0;for(let r=0;r<s.length;r++){const{name:i,fn:h}=s[r],{x:g,y:b,data:y,reset:v}=await h({x:c,y:d,initialPlacement:n,placement:f,strategy:o,middlewareData:m,rects:u,platform:a,elements:{reference:e,floating:t}});c=null!=g?g:c,d=null!=b?b:d,m={...m,[i]:{...m[i],...y}},v&&p<=50&&(p++,"object"==typeof v&&(v.placement&&(f=v.placement),v.rects&&(u=!0===v.rects?await a.getElementRects({reference:e,floating:t,strategy:o}):v.rects),({x:c,y:d}=gf(u,f,l))),r=-1)}return{x:c,y:d,placement:f,strategy:o,middlewareData:m}})(e,t,{...o,platform:i})};var qf="undefined"!=typeof document?Ie.useLayoutEffect:Ie.useEffect;function Vf(e,t){if(e===t)return!0;if(typeof e!=typeof t)return!1;if("function"==typeof e&&e.toString()===t.toString())return!0;let r,n,o;if(e&&t&&"object"==typeof e){if(Array.isArray(e)){if(r=e.length,r!==t.length)return!1;for(n=r;0!=n--;)if(!Vf(e[n],t[n]))return!1;return!0}if(o=Object.keys(e),r=o.length,r!==Object.keys(t).length)return!1;for(n=r;0!=n--;)if(!{}.hasOwnProperty.call(t,o[n]))return!1;for(n=r;0!=n--;){const r=o[n];if(!("_owner"===r&&e.$$typeof||Vf(e[r],t[r])))return!1}return!0}return e!=e&&t!=t}function Uf(e){return"undefined"==typeof window?1:(e.ownerDocument.defaultView||window).devicePixelRatio||1}function Hf(e,t){const r=Uf(e);return Math.round(t*r)/r}function Yf(e){const t=Ie.useRef(e);return qf((()=>{t.current=e})),t}const Qf=e=>({name:"arrow",options:e,fn(t){const{element:r,padding:n}="function"==typeof e?e(t):e;return r&&(o=r,{}.hasOwnProperty.call(o,"current"))?null!=r.current?Bf({element:r.current,padding:n}).fn(t):{}:r?Bf({element:r,padding:n}).fn(t):{};var o}}),Wf=(e,t)=>({...Ff(e),options:[e,t]}),Gf=(e,t)=>({...Lf(e),options:[e,t]}),Zf=(e,t)=>({...Rf(e),options:[e,t]}),$f=(e,t)=>({...Pf(e),options:[e,t]}),Kf=(e,t)=>({...Qf(e),options:[e,t]}),Xf={...Fe},Jf=Xf.useInsertionEffect||(e=>e());function em(e){const t=Ie.useRef((()=>{}));return Jf((()=>{t.current=e})),Ie.useCallback((function(){for(var e=arguments.length,r=new Array(e),n=0;n<e;n++)r[n]=arguments[n];return null==t.current?void 0:t.current(...r)}),[])}const tm="ArrowUp",rm="ArrowDown",nm="ArrowLeft",om="ArrowRight";function im(e,t,r){return Math.floor(e/t)!==r}function am(e,t){return t<0||t>=e.current.length}function sm(e,t){return um(e,{disabledIndices:t})}function lm(e,t){return um(e,{decrement:!0,startingIndex:e.current.length,disabledIndices:t})}function um(e,t){let{startingIndex:r=-1,decrement:n=!1,disabledIndices:o,amount:i=1}=void 0===t?{}:t;const a=e.current;let s=r;do{s+=n?-i:i}while(s>=0&&s<=a.length-1&&fm(a,s,o));return s}function cm(e,t,r,n,o){if(-1===e)return-1;const i=r.indexOf(e),a=t[e];switch(o){case"tl":return i;case"tr":return a?i+a.width-1:i;case"bl":return a?i+(a.height-1)*n:i;case"br":return r.lastIndexOf(e)}}function dm(e,t){return t.flatMap(((t,r)=>e.includes(t)?[r]:[]))}function fm(e,t,r){if(r)return r.includes(t);const n=e[t];return null==n||n.hasAttribute("disabled")||"true"===n.getAttribute("aria-disabled")}var mm="undefined"!=typeof document?Ie.useLayoutEffect:Ie.useEffect;function pm(){return pm=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},pm.apply(this,arguments)}let hm=!1,gm=0;const bm=()=>"floating-ui-"+Math.random().toString(36).slice(2,6)+gm++,ym=Xf.useId||function(){const[e,t]=Ie.useState((()=>hm?bm():void 0));return mm((()=>{null==e&&t(bm())}),[]),Ie.useEffect((()=>{hm=!0}),[]),e},vm=Ie.forwardRef((function(e,t){const{context:{placement:r,elements:{floating:n},middlewareData:{arrow:o,shift:i}},width:a=14,height:s=7,tipRadius:l=0,strokeWidth:u=0,staticOffset:c,stroke:d,d:f,style:{transform:m,...p}={},...h}=e,g=ym(),[b,y]=Ie.useState(!1);if(mm((()=>{n&&"rtl"===fd(n).direction&&y(!0)}),[n]),!n)return null;const[v,D]=r.split("-"),_="top"===v||"bottom"===v;let x=c;(_&&null!=i&&i.x||!_&&null!=i&&i.y)&&(x=null);const k=2*u,E=k/2,w=a/2*(l/-8+1),C=s/2*l/4,M=!!f,A=x&&"end"===D?"bottom":"top";let N=x&&"end"===D?"right":"left";x&&b&&(N="end"===D?"left":"right");const j=null!=(null==o?void 0:o.x)?x||o.x:"",O=null!=(null==o?void 0:o.y)?x||o.y:"",T=f||"M0,0 H"+a+" L"+(a-w)+","+(s-C)+" Q"+a/2+","+s+" "+w+","+(s-C)+" Z",S={top:M?"rotate(180deg)":"",left:M?"rotate(90deg)":"rotate(-90deg)",bottom:M?"":"rotate(180deg)",right:M?"rotate(-90deg)":"rotate(90deg)"}[v];return Ie.createElement("svg",pm({},h,{"aria-hidden":!0,ref:t,width:M?a:a+k,height:a,viewBox:"0 0 "+a+" "+(s>a?s:a),style:{position:"absolute",pointerEvents:"none",[N]:j,[A]:O,[v]:_||M?"100%":"calc(100% - "+k/2+"px)",transform:[S,m].filter((e=>!!e)).join(" "),...p}}),k>0&&Ie.createElement("path",{clipPath:"url(#"+g+")",fill:"none",stroke:d,strokeWidth:k+(f?0:1),d:T}),Ie.createElement("path",{stroke:k&&!f?h.fill:"none",d:T}),Ie.createElement("clipPath",{id:g},Ie.createElement("rect",{x:-E,y:E*(M?-1:1),width:a+k,height:a})))}));const Dm=Ie.createContext(null),_m=Ie.createContext(null),xm=()=>{var e;return(null==(e=Ie.useContext(Dm))?void 0:e.id)||null},km=()=>Ie.useContext(_m);function Em(e){return"data-floating-ui-"+e}function wm(e){const t=(0,Ie.useRef)(e);return mm((()=>{t.current=e})),t}const Cm=Em("safe-polygon");function Mm(e,t,r){return r&&!Md(r)?0:"number"==typeof e?e:null==e?void 0:e[t]}let Am=0;function Nm(e,t){void 0===t&&(t={});const{preventScroll:r=!1,cancelPrevious:n=!0,sync:o=!1}=t;n&&cancelAnimationFrame(Am);const i=()=>null==e?void 0:e.focus({preventScroll:r});o?i():Am=requestAnimationFrame(i)}function jm(e,t){let r=e.filter((e=>{var r;return e.parentId===t&&(null==(r=e.context)?void 0:r.open)})),n=r;for(;n.length;)n=e.filter((e=>{var t;return null==(t=n)?void 0:t.some((t=>{var r;return e.parentId===t.id&&(null==(r=e.context)?void 0:r.open)}))})),r=r.concat(n);return r}let Om=new WeakMap,Tm=new WeakSet,Sm={},Im=0;const Fm=e=>e&&(e.host||Fm(e.parentNode));function Lm(e,t,r){void 0===t&&(t=!1),void 0===r&&(r=!1);const n=Ad(e[0]).body;return function(e,t,r,n){const o="data-floating-ui-inert",i=n?"inert":r?"aria-hidden":null,a=(s=t,e.map((e=>{if(s.contains(e))return e;const t=Fm(e);return s.contains(t)?t:null})).filter((e=>null!=e)));var s;const l=new Set,u=new Set(a),c=[];Sm[o]||(Sm[o]=new WeakMap);const d=Sm[o];return a.forEach((function e(t){t&&!l.has(t)&&(l.add(t),t.parentNode&&e(t.parentNode))})),function e(t){t&&!u.has(t)&&[].forEach.call(t.children,(t=>{if("script"!==Jc(t))if(l.has(t))e(t);else{const e=i?t.getAttribute(i):null,r=null!==e&&"false"!==e,n=(Om.get(t)||0)+1,a=(d.get(t)||0)+1;Om.set(t,n),d.set(t,a),c.push(t),1===n&&r&&Tm.add(t),1===a&&t.setAttribute(o,""),!r&&i&&t.setAttribute(i,"true")}}))}(t),l.clear(),Im++,()=>{c.forEach((e=>{const t=(Om.get(e)||0)-1,r=(d.get(e)||0)-1;Om.set(e,t),d.set(e,r),t||(!Tm.has(e)&&i&&e.removeAttribute(i),Tm.delete(e)),r||e.removeAttribute(o)})),Im--,Im||(Om=new WeakMap,Om=new WeakMap,Tm=new WeakSet,Sm={})}}(e.concat(Array.from(n.querySelectorAll("[aria-live]"))),n,t,r)}const Rm=()=>({getShadowRoot:!0,displayCheck:"function"==typeof ResizeObserver&&ResizeObserver.toString().includes("[native code]")?"full":"none"});function Pm(e,t){const r=hf(e,Rm());"prev"===t&&r.reverse();const n=r.indexOf(yd(Ad(e)));return r.slice(n+1)[0]}function Bm(){return Pm(document.body,"next")}function zm(){return Pm(document.body,"prev")}function qm(e,t){const r=t||e.currentTarget,n=e.relatedTarget;return!n||!vd(r,n)}function Vm(e){hf(e,Rm()).forEach((e=>{e.dataset.tabindex=e.getAttribute("tabindex")||"",e.setAttribute("tabindex","-1")}))}function Um(e){e.querySelectorAll("[data-tabindex]").forEach((e=>{const t=e.dataset.tabindex;delete e.dataset.tabindex,t?e.setAttribute("tabindex",t):e.removeAttribute("tabindex")}))}const Hm={border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"fixed",whiteSpace:"nowrap",width:"1px",top:0,left:0};function Ym(e){"Tab"===e.key&&(e.target,clearTimeout(void 0))}const Qm=Ie.forwardRef((function(e,t){const[r,n]=Ie.useState();mm((()=>(Ed()&&n("button"),document.addEventListener("keydown",Ym),()=>{document.removeEventListener("keydown",Ym)})),[]);const o={ref:t,tabIndex:0,role:r,"aria-hidden":!r||void 0,[Em("focus-guard")]:"",style:Hm};return Ie.createElement("span",pm({},e,o))})),Wm=Ie.createContext(null),Gm=Em("portal");function Zm(e){const{children:t,id:r,root:n,preserveTabOrder:o=!0}=e,i=function(e){void 0===e&&(e={});const{id:t,root:r}=e,n=ym(),o=$m(),[i,a]=Ie.useState(null),s=Ie.useRef(null);return mm((()=>()=>{null==i||i.remove(),queueMicrotask((()=>{s.current=null}))}),[i]),mm((()=>{if(!n)return;if(s.current)return;const e=t?document.getElementById(t):null;if(!e)return;const r=document.createElement("div");r.id=n,r.setAttribute(Gm,""),e.appendChild(r),s.current=r,a(r)}),[t,n]),mm((()=>{if(null===r)return;if(!n)return;if(s.current)return;let e=r||(null==o?void 0:o.portalNode);e&&!nd(e)&&(e=e.current),e=e||document.body;let i=null;t&&(i=document.createElement("div"),i.id=t,e.appendChild(i));const l=document.createElement("div");l.id=n,l.setAttribute(Gm,""),e=i||e,e.appendChild(l),s.current=l,a(l)}),[t,r,n,o]),i}({id:r,root:n}),[a,s]=Ie.useState(null),l=Ie.useRef(null),u=Ie.useRef(null),c=Ie.useRef(null),d=Ie.useRef(null),f=null==a?void 0:a.modal,m=null==a?void 0:a.open,p=!!a&&!a.modal&&a.open&&o&&!(!n&&!i);return Ie.useEffect((()=>{if(i&&o&&!f)return i.addEventListener("focusin",e,!0),i.addEventListener("focusout",e,!0),()=>{i.removeEventListener("focusin",e,!0),i.removeEventListener("focusout",e,!0)};function e(e){i&&qm(e)&&("focusin"===e.type?Um:Vm)(i)}}),[i,o,f]),Ie.useEffect((()=>{i&&(m||Um(i))}),[m,i]),Ie.createElement(Wm.Provider,{value:Ie.useMemo((()=>({preserveTabOrder:o,beforeOutsideRef:l,afterOutsideRef:u,beforeInsideRef:c,afterInsideRef:d,portalNode:i,setFocusManagerState:s})),[o,i])},p&&i&&Ie.createElement(Qm,{"data-type":"outside",ref:l,onFocus:e=>{if(qm(e,i)){var t;null==(t=c.current)||t.focus()}else{const e=zm()||(null==a?void 0:a.refs.domReference.current);null==e||e.focus()}}}),p&&i&&Ie.createElement("span",{"aria-owns":i.id,style:Hm}),i&&vu.createPortal(t,i),p&&i&&Ie.createElement(Qm,{"data-type":"outside",ref:u,onFocus:e=>{if(qm(e,i)){var t;null==(t=d.current)||t.focus()}else{const t=Bm()||(null==a?void 0:a.refs.domReference.current);null==t||t.focus(),(null==a?void 0:a.closeOnFocusOut)&&(null==a||a.onOpenChange(!1,e.nativeEvent,"focus-out"))}}}))}const $m=()=>Ie.useContext(Wm),Km="data-floating-ui-focusable";function Xm(e){return e?e.hasAttribute(Km)?e:e.querySelector("["+Km+"]")||e:null}let Jm=[];function ep(e){Jm=Jm.filter((e=>e.isConnected));let t=e;if(t&&"body"!==Jc(t)){if(!function(e,t){if(t=t||{},!e)throw new Error("No node provided");return!1!==tf.call(e,Jd)&&ff(t,e)}(t,Rm())){const e=hf(t,Rm())[0];e&&(t=e)}Jm.push(t),Jm.length>20&&(Jm=Jm.slice(-20))}}function tp(){return Jm.slice().reverse().find((e=>e.isConnected))}const rp=Ie.forwardRef((function(e,t){return Ie.createElement("button",pm({},e,{type:"button",ref:t,tabIndex:-1,style:Hm}))}));function np(e){const{context:t,children:r,disabled:n=!1,order:o=["content"],guards:i=!0,initialFocus:a=0,returnFocus:s=!0,restoreFocus:l=!1,modal:u=!0,visuallyHiddenDismiss:c=!1,closeOnFocusOut:d=!0}=e,{open:f,refs:m,nodeId:p,onOpenChange:h,events:g,dataRef:b,floatingId:y,elements:{domReference:v,floating:D}}=t,_="number"==typeof a&&a<0,x=Sd(v)&&_,k="undefined"==typeof HTMLElement||!("inert"in HTMLElement.prototype)||i,E=wm(o),w=wm(a),C=wm(s),M=km(),A=$m(),N=Ie.useRef(null),j=Ie.useRef(null),O=Ie.useRef(!1),T=Ie.useRef(!1),S=Ie.useRef(-1),I=null!=A,F=Xm(D),L=em((function(e){return void 0===e&&(e=F),e?hf(e,Rm()):[]})),R=em((e=>{const t=L(e);return E.current.map((e=>v&&"reference"===e?v:F&&"floating"===e?F:t)).filter(Boolean).flat()}));function P(e){return!n&&c&&u?Ie.createElement(rp,{ref:"start"===e?N:j,onClick:e=>h(!1,e.nativeEvent)},"string"==typeof c?c:"Dismiss"):null}Ie.useEffect((()=>{if(n)return;if(!u)return;function e(e){if("Tab"===e.key){vd(F,yd(Ad(F)))&&0===L().length&&!x&&Td(e);const t=R(),r=jd(e);"reference"===E.current[0]&&r===v&&(Td(e),e.shiftKey?Nm(t[t.length-1]):Nm(t[1])),"floating"===E.current[1]&&r===F&&e.shiftKey&&(Td(e),Nm(t[0]))}}const t=Ad(F);return t.addEventListener("keydown",e),()=>{t.removeEventListener("keydown",e)}}),[n,v,F,u,E,x,L,R]),Ie.useEffect((()=>{if(!n&&D)return D.addEventListener("focusin",e),()=>{D.removeEventListener("focusin",e)};function e(e){const t=jd(e),r=L().indexOf(t);-1!==r&&(S.current=r)}}),[n,D,L]),Ie.useEffect((()=>{if(!n&&d)return D&&od(v)?(v.addEventListener("focusout",t),v.addEventListener("pointerdown",e),D.addEventListener("focusout",t),()=>{v.removeEventListener("focusout",t),v.removeEventListener("pointerdown",e),D.removeEventListener("focusout",t)}):void 0;function e(){T.current=!0,setTimeout((()=>{T.current=!1}))}function t(e){const t=e.relatedTarget;queueMicrotask((()=>{const r=!(vd(v,t)||vd(D,t)||vd(t,D)||vd(null==A?void 0:A.portalNode,t)||null!=t&&t.hasAttribute(Em("focus-guard"))||M&&(jm(M.nodesRef.current,p).find((e=>{var r,n;return vd(null==(r=e.context)?void 0:r.elements.floating,t)||vd(null==(n=e.context)?void 0:n.elements.domReference,t)}))||function(e,t){var r;let n=[],o=null==(r=e.find((e=>e.id===t)))?void 0:r.parentId;for(;o;){const t=e.find((e=>e.id===o));o=null==t?void 0:t.parentId,t&&(n=n.concat(t))}return n}(M.nodesRef.current,p).find((e=>{var r,n;return(null==(r=e.context)?void 0:r.elements.floating)===t||(null==(n=e.context)?void 0:n.elements.domReference)===t}))));if(l&&r&&yd(Ad(F))===Ad(F).body){od(F)&&F.focus();const e=S.current,t=L(),r=t[e]||t[t.length-1]||F;od(r)&&r.focus()}!x&&u||!t||!r||T.current||t===tp()||(O.current=!0,h(!1,e,"focus-out"))}))}}),[n,v,D,F,u,p,M,A,h,d,l,L,x]),Ie.useEffect((()=>{var e;if(n)return;const t=Array.from((null==A||null==(e=A.portalNode)?void 0:e.querySelectorAll("["+Em("portal")+"]"))||[]);if(D){const e=[D,...t,N.current,j.current,E.current.includes("reference")||x?v:null].filter((e=>null!=e)),r=u||x?Lm(e,k,!k):Lm(e);return()=>{r()}}}),[n,v,D,u,E,A,x,k]),mm((()=>{if(n||!od(F))return;const e=yd(Ad(F));queueMicrotask((()=>{const t=R(F),r=w.current,n=("number"==typeof r?t[r]:r.current)||F,o=vd(F,e);_||o||!f||Nm(n,{preventScroll:n===F})}))}),[n,f,F,_,R,w]),mm((()=>{if(n||!F)return;let e=!1;const t=Ad(F),r=yd(t);let o=b.current.openEvent;function i(t){let{open:r,reason:n,event:i,nested:a}=t;r&&(o=i),"escape-key"===n&&m.domReference.current&&ep(m.domReference.current),"hover"===n&&"mouseleave"===i.type&&(O.current=!0),"outside-press"===n&&(a?(O.current=!1,e=!0):O.current=!(xd(i)||kd(i)))}ep(r),g.on("openchange",i);const a=t.createElement("span");return a.setAttribute("tabindex","-1"),a.setAttribute("aria-hidden","true"),Object.assign(a.style,Hm),I&&v&&v.insertAdjacentElement("afterend",a),()=>{g.off("openchange",i);const r=yd(t),n=vd(D,r)||M&&jm(M.nodesRef.current,p).some((e=>{var t;return vd(null==(t=e.context)?void 0:t.elements.floating,r)}));(n||o&&["click","mousedown"].includes(o.type))&&m.domReference.current&&ep(m.domReference.current);const s="boolean"==typeof C.current?tp()||a:C.current.current||a;queueMicrotask((()=>{C.current&&!O.current&&od(s)&&(s===r||r===t.body||n)&&s.focus({preventScroll:e}),a.remove()}))}}),[n,D,F,C,b,m,g,M,p,I,v]),Ie.useEffect((()=>{queueMicrotask((()=>{O.current=!1}))}),[n]),mm((()=>{if(!n&&A)return A.setFocusManagerState({modal:u,closeOnFocusOut:d,open:f,onOpenChange:h,refs:m}),()=>{A.setFocusManagerState(null)}}),[n,A,u,f,h,m,d]),mm((()=>{if(n)return;if(!F)return;if("function"!=typeof MutationObserver)return;if(_)return;const e=()=>{const e=F.getAttribute("tabindex"),t=L(),r=yd(Ad(D)),n=t.indexOf(r);-1!==n&&(S.current=n),E.current.includes("floating")||r!==m.domReference.current&&0===t.length?"0"!==e&&F.setAttribute("tabindex","0"):"-1"!==e&&F.setAttribute("tabindex","-1")};e();const t=new MutationObserver(e);return t.observe(F,{childList:!0,subtree:!0,attributes:!0}),()=>{t.disconnect()}}),[n,D,F,m,E,L,_]);const B=!n&&k&&(!u||!x)&&(I||u);return Ie.createElement(Ie.Fragment,null,B&&Ie.createElement(Qm,{"data-type":"inside",ref:null==A?void 0:A.beforeInsideRef,onFocus:e=>{if(u){const e=R();Nm("reference"===o[0]?e[0]:e[e.length-1])}else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(O.current=!1,qm(e,A.portalNode)){const e=Bm()||v;null==e||e.focus()}else{var t;null==(t=A.beforeOutsideRef.current)||t.focus()}}}),!x&&P("start"),r,P("end"),B&&Ie.createElement(Qm,{"data-type":"inside",ref:null==A?void 0:A.afterInsideRef,onFocus:e=>{if(u)Nm(R()[0]);else if(null!=A&&A.preserveTabOrder&&A.portalNode)if(d&&(O.current=!0),qm(e,A.portalNode)){const e=zm()||v;null==e||e.focus()}else{var t;null==(t=A.afterOutsideRef.current)||t.focus()}}}))}function op(e){return od(e.target)&&"BUTTON"===e.target.tagName}function ip(e){return Od(e)}function ap(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,dataRef:o,elements:{domReference:i}}=e,{enabled:a=!0,event:s="click",toggle:l=!0,ignoreMouse:u=!1,keyboardHandlers:c=!0,stickIfOpen:d=!0}=t,f=Ie.useRef(),m=Ie.useRef(!1),p=Ie.useMemo((()=>({onPointerDown(e){f.current=e.pointerType},onMouseDown(e){const t=f.current;0===e.button&&"click"!==s&&(Md(t,!0)&&u||(!r||!l||o.current.openEvent&&d&&"mousedown"!==o.current.openEvent.type?(e.preventDefault(),n(!0,e.nativeEvent,"click")):n(!1,e.nativeEvent,"click")))},onClick(e){const t=f.current;"mousedown"===s&&f.current?f.current=void 0:Md(t,!0)&&u||(!r||!l||o.current.openEvent&&d&&"click"!==o.current.openEvent.type?n(!0,e.nativeEvent,"click"):n(!1,e.nativeEvent,"click"))},onKeyDown(e){f.current=void 0,e.defaultPrevented||!c||op(e)||(" "!==e.key||ip(i)||(e.preventDefault(),m.current=!0),"Enter"===e.key&&n(!r||!l,e.nativeEvent,"click"))},onKeyUp(e){e.defaultPrevented||!c||op(e)||ip(i)||" "===e.key&&m.current&&(m.current=!1,n(!r||!l,e.nativeEvent,"click"))}})),[o,i,s,u,c,n,r,d,l]);return Ie.useMemo((()=>a?{reference:p}:{}),[a,p])}const sp={pointerdown:"onPointerDown",mousedown:"onMouseDown",click:"onClick"},lp={pointerdown:"onPointerDownCapture",mousedown:"onMouseDownCapture",click:"onClickCapture"},up=e=>{var t,r;return{escapeKey:"boolean"==typeof e?e:null!=(t=null==e?void 0:e.escapeKey)&&t,outsidePress:"boolean"==typeof e?e:null==(r=null==e?void 0:e.outsidePress)||r}};function cp(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,elements:o,dataRef:i}=e,{enabled:a=!0,escapeKey:s=!0,outsidePress:l=!0,outsidePressEvent:u="pointerdown",referencePress:c=!1,referencePressEvent:d="pointerdown",ancestorScroll:f=!1,bubbles:m,capture:p}=t,h=km(),g=em("function"==typeof l?l:()=>!1),b="function"==typeof l?g:l,y=Ie.useRef(!1),v=Ie.useRef(!1),{escapeKey:D,outsidePress:_}=up(m),{escapeKey:x,outsidePress:k}=up(p),E=Ie.useRef(!1),w=em((e=>{var t;if(!r||!a||!s||"Escape"!==e.key)return;if(E.current)return;const o=null==(t=i.current.floatingContext)?void 0:t.nodeId,l=h?jm(h.nodesRef.current,o):[];if(!D&&(e.stopPropagation(),l.length>0)){let e=!0;if(l.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__escapeKeyBubbles||(e=!1)})),!e)return}n(!1,function(e){return"nativeEvent"in e}(e)?e.nativeEvent:e,"escape-key")})),C=em((e=>{var t;const r=()=>{var t;w(e),null==(t=jd(e))||t.removeEventListener("keydown",r)};null==(t=jd(e))||t.addEventListener("keydown",r)})),M=em((e=>{var t;const r=y.current;y.current=!1;const a=v.current;if(v.current=!1,"click"===u&&a)return;if(r)return;if("function"==typeof b&&!b(e))return;const s=jd(e),l="["+Em("inert")+"]",c=Ad(o.floating).querySelectorAll(l);let d=nd(s)?s:null;for(;d&&!dd(d);){const e=pd(d);if(dd(e)||!nd(e))break;d=e}if(c.length&&nd(s)&&!s.matches("html,body")&&!vd(s,o.floating)&&Array.from(c).every((e=>!vd(d,e))))return;if(od(s)&&j){const t=s.clientWidth>0&&s.scrollWidth>s.clientWidth,r=s.clientHeight>0&&s.scrollHeight>s.clientHeight;let n=r&&e.offsetX>s.clientWidth;if(r&&"rtl"===fd(s).direction&&(n=e.offsetX<=s.offsetWidth-s.clientWidth),n||t&&e.offsetY>s.clientHeight)return}const f=null==(t=i.current.floatingContext)?void 0:t.nodeId,m=h&&jm(h.nodesRef.current,f).some((t=>{var r;return Nd(e,null==(r=t.context)?void 0:r.elements.floating)}));if(Nd(e,o.floating)||Nd(e,o.domReference)||m)return;const p=h?jm(h.nodesRef.current,f):[];if(p.length>0){let e=!0;if(p.forEach((t=>{var r;null==(r=t.context)||!r.open||t.context.dataRef.current.__outsidePressBubbles||(e=!1)})),!e)return}n(!1,e,"outside-press")})),A=em((e=>{var t;const r=()=>{var t;M(e),null==(t=jd(e))||t.removeEventListener(u,r)};null==(t=jd(e))||t.addEventListener(u,r)}));Ie.useEffect((()=>{if(!r||!a)return;i.current.__escapeKeyBubbles=D,i.current.__outsidePressBubbles=_;let e=-1;function t(e){n(!1,e,"ancestor-scroll")}function l(){window.clearTimeout(e),E.current=!0}function c(){e=window.setTimeout((()=>{E.current=!1}),cd()?5:0)}const d=Ad(o.floating);s&&(d.addEventListener("keydown",x?C:w,x),d.addEventListener("compositionstart",l),d.addEventListener("compositionend",c)),b&&d.addEventListener(u,k?A:M,k);let m=[];return f&&(nd(o.domReference)&&(m=gd(o.domReference)),nd(o.floating)&&(m=m.concat(gd(o.floating))),!nd(o.reference)&&o.reference&&o.reference.contextElement&&(m=m.concat(gd(o.reference.contextElement)))),m=m.filter((e=>{var t;return e!==(null==(t=d.defaultView)?void 0:t.visualViewport)})),m.forEach((e=>{e.addEventListener("scroll",t,{passive:!0})})),()=>{s&&(d.removeEventListener("keydown",x?C:w,x),d.removeEventListener("compositionstart",l),d.removeEventListener("compositionend",c)),b&&d.removeEventListener(u,k?A:M,k),m.forEach((e=>{e.removeEventListener("scroll",t)})),window.clearTimeout(e)}}),[i,o,s,b,u,r,n,f,a,D,_,w,x,C,M,k,A]),Ie.useEffect((()=>{y.current=!1}),[b,u]);const N=Ie.useMemo((()=>({onKeyDown:w,[sp[d]]:e=>{c&&n(!1,e.nativeEvent,"reference-press")}})),[w,n,c,d]),j=Ie.useMemo((()=>({onKeyDown:w,onMouseDown(){v.current=!0},onMouseUp(){v.current=!0},[lp[u]]:()=>{y.current=!0}})),[w,u]);return Ie.useMemo((()=>a?{reference:N,floating:j}:{}),[a,N,j])}function dp(e){void 0===e&&(e={});const{nodeId:t}=e,r=function(e){const{open:t=!1,onOpenChange:r,elements:n}=e,o=ym(),i=Ie.useRef({}),[a]=Ie.useState((()=>function(){const e=new Map;return{emit(t,r){var n;null==(n=e.get(t))||n.forEach((e=>e(r)))},on(t,r){e.set(t,[...e.get(t)||[],r])},off(t,r){var n;e.set(t,(null==(n=e.get(t))?void 0:n.filter((e=>e!==r)))||[])}}}())),s=null!=xm(),[l,u]=Ie.useState(n.reference),c=em(((e,t,n)=>{i.current.openEvent=e?t:void 0,a.emit("openchange",{open:e,event:t,reason:n,nested:s}),null==r||r(e,t,n)})),d=Ie.useMemo((()=>({setPositionReference:u})),[]),f=Ie.useMemo((()=>({reference:l||n.reference||null,floating:n.floating||null,domReference:n.reference})),[l,n.reference,n.floating]);return Ie.useMemo((()=>({dataRef:i,open:t,onOpenChange:c,elements:f,events:a,floatingId:o,refs:d})),[t,c,f,a,o,d])}({...e,elements:{reference:null,floating:null,...e.elements}}),n=e.rootContext||r,o=n.elements,[i,a]=Ie.useState(null),[s,l]=Ie.useState(null),u=(null==o?void 0:o.domReference)||i,c=Ie.useRef(null),d=km();mm((()=>{u&&(c.current=u)}),[u]);const f=function(e){void 0===e&&(e={});const{placement:t="bottom",strategy:r="absolute",middleware:n=[],platform:o,elements:{reference:i,floating:a}={},transform:s=!0,whileElementsMounted:l,open:u}=e,[c,d]=Ie.useState({x:0,y:0,strategy:r,placement:t,middlewareData:{},isPositioned:!1}),[f,m]=Ie.useState(n);Vf(f,n)||m(n);const[p,h]=Ie.useState(null),[g,b]=Ie.useState(null),y=Ie.useCallback((e=>{e!==x.current&&(x.current=e,h(e))}),[]),v=Ie.useCallback((e=>{e!==k.current&&(k.current=e,b(e))}),[]),D=i||p,_=a||g,x=Ie.useRef(null),k=Ie.useRef(null),E=Ie.useRef(c),w=null!=l,C=Yf(l),M=Yf(o),A=Yf(u),N=Ie.useCallback((()=>{if(!x.current||!k.current)return;const e={placement:t,strategy:r,middleware:f};M.current&&(e.platform=M.current),zf(x.current,k.current,e).then((e=>{const t={...e,isPositioned:!1!==A.current};j.current&&!Vf(E.current,t)&&(E.current=t,vu.flushSync((()=>{d(t)})))}))}),[f,t,r,M,A]);qf((()=>{!1===u&&E.current.isPositioned&&(E.current.isPositioned=!1,d((e=>({...e,isPositioned:!1}))))}),[u]);const j=Ie.useRef(!1);qf((()=>(j.current=!0,()=>{j.current=!1})),[]),qf((()=>{if(D&&(x.current=D),_&&(k.current=_),D&&_){if(C.current)return C.current(D,_,N);N()}}),[D,_,N,C,w]);const O=Ie.useMemo((()=>({reference:x,floating:k,setReference:y,setFloating:v})),[y,v]),T=Ie.useMemo((()=>({reference:D,floating:_})),[D,_]),S=Ie.useMemo((()=>{const e={position:r,left:0,top:0};if(!T.floating)return e;const t=Hf(T.floating,c.x),n=Hf(T.floating,c.y);return s?{...e,transform:"translate("+t+"px, "+n+"px)",...Uf(T.floating)>=1.5&&{willChange:"transform"}}:{position:r,left:t,top:n}}),[r,s,T.floating,c.x,c.y]);return Ie.useMemo((()=>({...c,update:N,refs:O,elements:T,floatingStyles:S})),[c,N,O,T,S])}({...e,elements:{...o,...s&&{reference:s}}}),m=Ie.useCallback((e=>{const t=nd(e)?{getBoundingClientRect:()=>e.getBoundingClientRect(),contextElement:e}:e;l(t),f.refs.setReference(t)}),[f.refs]),p=Ie.useCallback((e=>{(nd(e)||null===e)&&(c.current=e,a(e)),(nd(f.refs.reference.current)||null===f.refs.reference.current||null!==e&&!nd(e))&&f.refs.setReference(e)}),[f.refs]),h=Ie.useMemo((()=>({...f.refs,setReference:p,setPositionReference:m,domReference:c})),[f.refs,p,m]),g=Ie.useMemo((()=>({...f.elements,domReference:u})),[f.elements,u]),b=Ie.useMemo((()=>({...f,...n,refs:h,elements:g,nodeId:t})),[f,h,g,t,n]);return mm((()=>{n.dataRef.current.floatingContext=b;const e=null==d?void 0:d.nodesRef.current.find((e=>e.id===t));e&&(e.context=b)})),Ie.useMemo((()=>({...f,context:b,refs:h,elements:g})),[f,h,g,b])}const fp="active",mp="selected";function pp(e,t,r){const n=new Map,o="item"===r;let i=e;if(o&&e){const{[fp]:t,[mp]:r,...n}=e;i=n}return{..."floating"===r&&{tabIndex:-1,[Km]:""},...i,...t.map((t=>{const n=t?t[r]:null;return"function"==typeof n?e?n(e):null:n})).concat(e).reduce(((e,t)=>t?(Object.entries(t).forEach((t=>{let[r,i]=t;var a;o&&[fp,mp].includes(r)||(0===r.indexOf("on")?(n.has(r)||n.set(r,[]),"function"==typeof i&&(null==(a=n.get(r))||a.push(i),e[r]=function(){for(var e,t=arguments.length,o=new Array(t),i=0;i<t;i++)o[i]=arguments[i];return null==(e=n.get(r))?void 0:e.map((e=>e(...o))).find((e=>void 0!==e))})):e[r]=i)})),e):e),{})}}function hp(e){void 0===e&&(e=[]);const t=e.map((e=>null==e?void 0:e.reference)),r=e.map((e=>null==e?void 0:e.floating)),n=e.map((e=>null==e?void 0:e.item)),o=Ie.useCallback((t=>pp(t,e,"reference")),t),i=Ie.useCallback((t=>pp(t,e,"floating")),r),a=Ie.useCallback((t=>pp(t,e,"item")),n);return Ie.useMemo((()=>({getReferenceProps:o,getFloatingProps:i,getItemProps:a})),[o,i,a])}let gp=!1;function bp(e,t,r){switch(e){case"vertical":return t;case"horizontal":return r;default:return t||r}}function yp(e,t){return bp(t,e===tm||e===rm,e===nm||e===om)}function vp(e,t,r){return bp(t,e===rm,r?e===nm:e===om)||"Enter"===e||" "===e||""===e}function Dp(e,t,r){return bp(t,r?e===om:e===nm,e===tm)}function _p(e,t){const{open:r,onOpenChange:n,elements:o}=e,{listRef:i,activeIndex:a,onNavigate:s=()=>{},enabled:l=!0,selectedIndex:u=null,allowEscape:c=!1,loop:d=!1,nested:f=!1,rtl:m=!1,virtual:p=!1,focusItemOnOpen:h="auto",focusItemOnHover:g=!0,openOnArrowKeyDown:b=!0,disabledIndices:y,orientation:v="vertical",cols:D=1,scrollItemIntoView:_=!0,virtualItemRef:x,itemSizes:k,dense:E=!1}=t,w=wm(Xm(o.floating)),C=xm(),M=km(),A=em(s),N=Sd(o.domReference),j=Ie.useRef(h),O=Ie.useRef(null!=u?u:-1),T=Ie.useRef(null),S=Ie.useRef(!0),I=Ie.useRef(A),F=Ie.useRef(!!o.floating),L=Ie.useRef(r),R=Ie.useRef(!1),P=Ie.useRef(!1),B=wm(y),z=wm(r),q=wm(_),V=wm(u),[U,H]=Ie.useState(),[Y,Q]=Ie.useState(),W=em((function(e,t,r){function n(e){p?(H(e.id),null==M||M.events.emit("virtualfocus",e),x&&(x.current=e)):Nm(e,{preventScroll:!0,sync:!(!Cd()||!Ed())&&(gp||R.current)})}void 0===r&&(r=!1);const o=e.current[t.current];o&&n(o),requestAnimationFrame((()=>{const i=e.current[t.current]||o;if(!i)return;o||n(i);const a=q.current;a&&Z&&(r||!S.current)&&(null==i.scrollIntoView||i.scrollIntoView("boolean"==typeof a?{block:"nearest",inline:"nearest"}:a))}))}));mm((()=>{document.createElement("div").focus({get preventScroll(){return gp=!0,!1}})}),[]),mm((()=>{l&&(r&&o.floating?j.current&&null!=u&&(P.current=!0,O.current=u,A(u)):F.current&&(O.current=-1,I.current(null)))}),[l,r,o.floating,u,A]),mm((()=>{if(l&&r&&o.floating)if(null==a){if(R.current=!1,null!=V.current)return;if(F.current&&(O.current=-1,W(i,O)),(!L.current||!F.current)&&j.current&&(null!=T.current||!0===j.current&&null==T.current)){let e=0;const t=()=>{null==i.current[0]?(e<2&&(e?requestAnimationFrame:queueMicrotask)(t),e++):(O.current=null==T.current||vp(T.current,v,m)||f?sm(i,B.current):lm(i,B.current),T.current=null,A(O.current))};t()}}else am(i,a)||(O.current=a,W(i,O,P.current),P.current=!1)}),[l,r,o.floating,a,V,f,i,v,m,A,W,B]),mm((()=>{var e;if(!l||o.floating||!M||p||!F.current)return;const t=M.nodesRef.current,r=null==(e=t.find((e=>e.id===C)))||null==(e=e.context)?void 0:e.elements.floating,n=yd(Ad(o.floating)),i=t.some((e=>e.context&&vd(e.context.elements.floating,n)));r&&!i&&S.current&&r.focus({preventScroll:!0})}),[l,o.floating,M,C,p]),mm((()=>{if(l&&M&&p&&!C)return M.events.on("virtualfocus",e),()=>{M.events.off("virtualfocus",e)};function e(e){Q(e.id),x&&(x.current=e)}}),[l,M,p,C,x]),mm((()=>{I.current=A,F.current=!!o.floating})),mm((()=>{r||(T.current=null)}),[r]),mm((()=>{L.current=r}),[r]);const G=null!=a,Z=Ie.useMemo((()=>{function e(e){if(!r)return;const t=i.current.indexOf(e);-1!==t&&A(t)}return{onFocus(t){let{currentTarget:r}=t;e(r)},onClick:e=>{let{currentTarget:t}=e;return t.focus({preventScroll:!0})},...g&&{onMouseMove(t){let{currentTarget:r}=t;e(r)},onPointerLeave(e){let{pointerType:t}=e;S.current&&"touch"!==t&&(O.current=-1,W(i,O),A(null),p||Nm(w.current,{preventScroll:!0}))}}}}),[r,w,W,g,i,A,p]),$=em((e=>{if(S.current=!1,R.current=!0,229===e.which)return;if(!z.current&&e.currentTarget===w.current)return;if(f&&Dp(e.key,v,m))return Td(e),n(!1,e.nativeEvent,"list-navigation"),void(od(o.domReference)&&(p?null==M||M.events.emit("virtualfocus",o.domReference):o.domReference.focus()));const t=O.current,a=sm(i,y),s=lm(i,y);if(N||("Home"===e.key&&(Td(e),O.current=a,A(O.current)),"End"===e.key&&(Td(e),O.current=s,A(O.current))),D>1){const t=k||Array.from({length:i.current.length},(()=>({width:1,height:1}))),r=function(e,t,r){const n=[];let o=0;return e.forEach(((e,i)=>{let{width:a,height:s}=e,l=!1;for(r&&(o=0);!l;){const e=[];for(let r=0;r<a;r++)for(let n=0;n<s;n++)e.push(o+r+n*t);o%t+a<=t&&e.every((e=>null==n[e]))?(e.forEach((e=>{n[e]=i})),l=!0):o++}})),[...n]}(t,D,E),n=r.findIndex((e=>null!=e&&!fm(i.current,e,y))),o=r.reduce(((e,t,r)=>null==t||fm(i.current,t,y)?e:r),-1),l=r[function(e,t){let{event:r,orientation:n,loop:o,rtl:i,cols:a,disabledIndices:s,minIndex:l,maxIndex:u,prevIndex:c,stopEvent:d=!1}=t,f=c;if(r.key===tm){if(d&&Td(r),-1===c)f=u;else if(f=um(e,{startingIndex:f,amount:a,decrement:!0,disabledIndices:s}),o&&(c-a<l||f<0)){const e=c%a,t=u%a,r=u-(t-e);f=t===e?u:t>e?r:r-a}am(e,f)&&(f=c)}if(r.key===rm&&(d&&Td(r),-1===c?f=l:(f=um(e,{startingIndex:c,amount:a,disabledIndices:s}),o&&c+a>u&&(f=um(e,{startingIndex:c%a-a,amount:a,disabledIndices:s}))),am(e,f)&&(f=c)),"both"===n){const t=Rd(c/a);r.key===(i?nm:om)&&(d&&Td(r),c%a!=a-1?(f=um(e,{startingIndex:c,disabledIndices:s}),o&&im(f,a,t)&&(f=um(e,{startingIndex:c-c%a-1,disabledIndices:s}))):o&&(f=um(e,{startingIndex:c-c%a-1,disabledIndices:s})),im(f,a,t)&&(f=c)),r.key===(i?om:nm)&&(d&&Td(r),c%a!=0?(f=um(e,{startingIndex:c,decrement:!0,disabledIndices:s}),o&&im(f,a,t)&&(f=um(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s}))):o&&(f=um(e,{startingIndex:c+(a-c%a),decrement:!0,disabledIndices:s})),im(f,a,t)&&(f=c));const n=Rd(u/a)===t;am(e,f)&&(f=o&&n?r.key===(i?om:nm)?u:um(e,{startingIndex:c-c%a-1,disabledIndices:s}):c)}return f}({current:r.map((e=>null!=e?i.current[e]:null))},{event:e,orientation:v,loop:d,rtl:m,cols:D,disabledIndices:dm([...y||i.current.map(((e,t)=>fm(i.current,t)?t:void 0)),void 0],r),minIndex:n,maxIndex:o,prevIndex:cm(O.current>s?a:O.current,t,r,D,e.key===rm?"bl":e.key===(m?nm:om)?"tr":"tl"),stopEvent:!0})];if(null!=l&&(O.current=l,A(O.current)),"both"===v)return}if(yp(e.key,v)){if(Td(e),r&&!p&&yd(e.currentTarget.ownerDocument)===e.currentTarget)return O.current=vp(e.key,v,m)?a:s,void A(O.current);vp(e.key,v,m)?O.current=d?t>=s?c&&t!==i.current.length?-1:a:um(i,{startingIndex:t,disabledIndices:y}):Math.min(s,um(i,{startingIndex:t,disabledIndices:y})):O.current=d?t<=a?c&&-1!==t?i.current.length:s:um(i,{startingIndex:t,decrement:!0,disabledIndices:y}):Math.max(a,um(i,{startingIndex:t,decrement:!0,disabledIndices:y})),am(i,O.current)?A(null):A(O.current)}})),K=Ie.useMemo((()=>p&&r&&G&&{"aria-activedescendant":Y||U}),[p,r,G,Y,U]),X=Ie.useMemo((()=>({"aria-orientation":"both"===v?void 0:v,...!Sd(o.domReference)&&K,onKeyDown:$,onPointerMove(){S.current=!0}})),[K,$,o.domReference,v]),J=Ie.useMemo((()=>{function e(e){"auto"===h&&xd(e.nativeEvent)&&(j.current=!0)}return{...K,onKeyDown(e){S.current=!1;const t=e.key.startsWith("Arrow"),o=["Home","End"].includes(e.key),a=t||o,s=function(e,t,r){return bp(t,r?e===nm:e===om,e===rm)}(e.key,v,m),l=Dp(e.key,v,m),c=yp(e.key,v),d=(f?s:c)||"Enter"===e.key||""===e.key.trim();if(p&&r){const t=null==M?void 0:M.nodesRef.current.find((e=>null==e.parentId)),r=M&&t?function(e,t){let r,n=-1;return function t(o,i){i>n&&(r=o,n=i),jm(e,o).forEach((e=>{t(e.id,i+1)}))}(t,0),e.find((e=>e.id===r))}(M.nodesRef.current,t.id):null;if(a&&r&&x){const t=new KeyboardEvent("keydown",{key:e.key,bubbles:!0});if(s||l){var h,g;const n=(null==(h=r.context)?void 0:h.elements.domReference)===e.currentTarget,o=l&&!n?null==(g=r.context)?void 0:g.elements.domReference:s?i.current.find((e=>(null==e?void 0:e.id)===U)):null;o&&(Td(e),o.dispatchEvent(t),Q(void 0))}var y;if((c||o)&&r.context&&r.context.open&&r.parentId&&e.currentTarget!==r.context.elements.domReference)return Td(e),void(null==(y=r.context.elements.domReference)||y.dispatchEvent(t))}return $(e)}(r||b||!t)&&(d&&(T.current=f&&c?null:e.key),f?s&&(Td(e),r?(O.current=sm(i,B.current),A(O.current)):n(!0,e.nativeEvent,"list-navigation")):c&&(null!=u&&(O.current=u),Td(e),!r&&b?n(!0,e.nativeEvent,"list-navigation"):$(e),r&&A(O.current)))},onFocus(){r&&!p&&A(null)},onPointerDown:function(e){j.current=h,"auto"===h&&kd(e.nativeEvent)&&(j.current=!0)},onMouseDown:e,onClick:e}}),[U,K,$,B,h,i,f,A,n,r,b,v,m,u,M,p,x]);return Ie.useMemo((()=>l?{reference:J,floating:X,item:Z}:{}),[l,J,X,Z])}const xp=new Map([["select","listbox"],["combobox","listbox"],["label",!1]]);function kp(e,t){var r;void 0===t&&(t={});const{open:n,floatingId:o}=e,{enabled:i=!0,role:a="dialog"}=t,s=null!=(r=xp.get(a))?r:a,l=ym(),u=null!=xm(),c=Ie.useMemo((()=>"tooltip"===s||"label"===a?{["aria-"+("label"===a?"labelledby":"describedby")]:n?o:void 0}:{"aria-expanded":n?"true":"false","aria-haspopup":"alertdialog"===s?"dialog":s,"aria-controls":n?o:void 0,..."listbox"===s&&{role:"combobox"},..."menu"===s&&{id:l},..."menu"===s&&u&&{role:"menuitem"},..."select"===a&&{"aria-autocomplete":"none"},..."combobox"===a&&{"aria-autocomplete":"list"}}),[s,o,u,n,l,a]),d=Ie.useMemo((()=>{const e={id:o,...s&&{role:s}};return"tooltip"===s||"label"===a?e:{...e,..."menu"===s&&{"aria-labelledby":l}}}),[s,o,l,a]),f=Ie.useCallback((e=>{let{active:t,selected:r}=e;const n={role:"option",...t&&{id:o+"-option"}};switch(a){case"select":return{...n,"aria-selected":t&&r};case"combobox":return{...n,...t&&{"aria-selected":!0}}}return{}}),[o,a]);return Ie.useMemo((()=>i?{reference:c,floating:d,item:f}:{}),[i,c,d,f])}const Ep=e=>e.replace(/[A-Z]+(?![a-z])|[A-Z]/g,((e,t)=>(t?"-":"")+e.toLowerCase()));function Cp(e,t){return"function"==typeof e?e(t):e}function Mp(e,t){void 0===t&&(t={});const{initial:r={opacity:0},open:n,close:o,common:i,duration:a=250}=t,s=e.placement,l=s.split("-")[0],u=Ie.useMemo((()=>({side:l,placement:s})),[l,s]),c="number"==typeof a,d=(c?a:a.open)||0,f=(c?a:a.close)||0,[m,p]=Ie.useState((()=>({...Cp(i,u),...Cp(r,u)}))),{isMounted:h,status:g}=function(e,t){void 0===t&&(t={});const{open:r,elements:{floating:n}}=e,{duration:o=250}=t,i=("number"==typeof o?o:o.close)||0,[a,s]=Ie.useState("unmounted"),l=function(e,t){const[r,n]=Ie.useState(e);return e&&!r&&n(!0),Ie.useEffect((()=>{if(!e&&r){const e=setTimeout((()=>n(!1)),t);return()=>clearTimeout(e)}}),[e,r,t]),r}(r,i);return l||"close"!==a||s("unmounted"),mm((()=>{if(n){if(r){s("initial");const e=requestAnimationFrame((()=>{s("open")}));return()=>{cancelAnimationFrame(e)}}s("close")}}),[r,n]),{isMounted:l,status:a}}(e,{duration:a}),b=wm(r),y=wm(n),v=wm(o),D=wm(i);return mm((()=>{const e=Cp(b.current,u),t=Cp(v.current,u),r=Cp(D.current,u),n=Cp(y.current,u)||Object.keys(e).reduce(((e,t)=>(e[t]="",e)),{});if("initial"===g&&p((t=>({transitionProperty:t.transitionProperty,...r,...e}))),"open"===g&&p({transitionProperty:Object.keys(n).map(Ep).join(","),transitionDuration:d+"ms",...r,...n}),"close"===g){const n=t||e;p({transitionProperty:Object.keys(n).map(Ep).join(","),transitionDuration:f+"ms",...r,...n})}}),[f,v,b,y,D,d,g,u]),{isMounted:h,styles:m}}function Ap(e,t){const[r,n]=e;let o=!1;const i=t.length;for(let e=0,a=i-1;e<i;a=e++){const[i,s]=t[e]||[0,0],[l,u]=t[a]||[0,0];s>=n!=u>=n&&r<=(l-i)*(n-s)/(u-s)+i&&(o=!o)}return o}function Np(e){void 0===e&&(e={});const{buffer:t=.5,blockPointerEvents:r=!1,requireIntent:n=!0}=e;let o,i=!1,a=null,s=null,l=performance.now();const u=e=>{let{x:r,y:u,placement:c,elements:d,onClose:f,nodeId:m,tree:p}=e;return function(e){function h(){clearTimeout(o),f()}if(clearTimeout(o),!d.domReference||!d.floating||null==c||null==r||null==u)return;const{clientX:g,clientY:b}=e,y=[g,b],v=jd(e),D="mouseleave"===e.type,_=vd(d.floating,v),x=vd(d.domReference,v),k=d.domReference.getBoundingClientRect(),E=d.floating.getBoundingClientRect(),w=c.split("-")[0],C=r>E.right-E.width/2,M=u>E.bottom-E.height/2,A=function(e,t){return e[0]>=t.x&&e[0]<=t.x+t.width&&e[1]>=t.y&&e[1]<=t.y+t.height}(y,k),N=E.width>k.width,j=E.height>k.height,O=(N?k:E).left,T=(N?k:E).right,S=(j?k:E).top,I=(j?k:E).bottom;if(_&&(i=!0,!D))return;if(x&&(i=!1),x&&!D)return void(i=!0);if(D&&nd(e.relatedTarget)&&vd(d.floating,e.relatedTarget))return;if(p&&jm(p.nodesRef.current,m).some((e=>{let{context:t}=e;return null==t?void 0:t.open})))return;if("top"===w&&u>=k.bottom-1||"bottom"===w&&u<=k.top+1||"left"===w&&r>=k.right-1||"right"===w&&r<=k.left+1)return h();let F=[];switch(w){case"top":F=[[O,k.top+1],[O,E.bottom-1],[T,E.bottom-1],[T,k.top+1]];break;case"bottom":F=[[O,E.top+1],[O,k.bottom-1],[T,k.bottom-1],[T,E.top+1]];break;case"left":F=[[E.right-1,I],[E.right-1,S],[k.left+1,S],[k.left+1,I]];break;case"right":F=[[k.right-1,I],[k.right-1,S],[E.left+1,S],[E.left+1,I]]}if(!Ap([g,b],F)){if(i&&!A)return h();if(!D&&n){const t=function(e,t){const r=performance.now(),n=r-l;if(null===a||null===s||0===n)return a=e,s=t,l=r,null;const o=e-a,i=t-s,u=Math.sqrt(o*o+i*i);return a=e,s=t,l=r,u/n}(e.clientX,e.clientY);if(null!==t&&t<.1)return h()}Ap([g,b],function(e){let[r,n]=e;switch(w){case"top":return[[N?r+t/2:C?r+4*t:r-4*t,n+t+1],[N?r-t/2:C?r+4*t:r-4*t,n+t+1],[E.left,C||N?E.bottom-t:E.top],[E.right,C?N?E.bottom-t:E.top:E.bottom-t]];case"bottom":return[[N?r+t/2:C?r+4*t:r-4*t,n-t],[N?r-t/2:C?r+4*t:r-4*t,n-t],[E.left,C||N?E.top+t:E.bottom],[E.right,C?N?E.top+t:E.bottom:E.top+t]];case"left":{const e=[r+t+1,j?n+t/2:M?n+4*t:n-4*t],o=[r+t+1,j?n-t/2:M?n+4*t:n-4*t];return[[M||j?E.right-t:E.left,E.top],[M?j?E.right-t:E.left:E.right-t,E.bottom],e,o]}case"right":return[[r-t,j?n+t/2:M?n+4*t:n-4*t],[r-t,j?n-t/2:M?n+4*t:n-4*t],[M||j?E.left+t:E.right,E.top],[M?j?E.left+t:E.right:E.left+t,E.bottom]]}}([r,u]))?!i&&n&&(o=window.setTimeout(h,40)):h()}}};return u.__options={blockPointerEvents:r},u}const jp=bu("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),Op=(0,Ie.createContext)({}),Tp=()=>(0,Ie.useContext)(Op),Sp=({size:e="md",children:t,className:r})=>(0,Se.jsx)(Op.Provider,{value:{size:e},children:(0,Se.jsx)("div",{className:du("flex flex-col bg-background-primary p-2",r),children:t})});Sp.displayName="Menu";const Ip=({heading:e,arrow:t=!1,showArrowOnHover:r=!1,open:n=!0,onClick:o,children:i,className:a})=>{const[s,l]=(0,Ie.useState)(n),[u,c]=(0,Ie.useState)(!1),{size:d}=Tp(),f={sm:"text-xs",md:"text-sm"}[d??"md"],m={sm:"size-4",md:"size-5"}[d??"md"],p=()=>{l(!s),o&&o(!s)};return(0,Se.jsxs)("div",{children:[!!e&&(0,Se.jsxs)("div",{role:"button",tabIndex:0,onClick:p,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&p()},onMouseEnter:()=>r&&c(!0),onMouseLeave:()=>r&&c(!1),className:du("text-text-primary bg-transparent cursor-pointer flex justify-between items-center gap-1",f,e?"p-1":"p-0",a),"aria-expanded":s,children:[(0,Se.jsx)("span",{className:"text-text-tertiary",children:e}),t&&(0,Se.jsx)(gl.span,{className:"flex items-center text-border-strong",initial:"hidden",animate:r?s||u?"visible":"hidden":"visible",exit:"hidden",variants:{visible:{opacity:1},hidden:{opacity:0}},transition:{duration:.15},children:(0,Se.jsx)(gl.span,{className:"inline-flex p-1",variants:{open:{rotate:180},closed:{rotate:0}},animate:s?"open":"closed",transition:{duration:.15},children:(0,Se.jsx)(jp,{className:du("shrink-0",m)})})})]}),(0,Se.jsx)($e,{initial:!1,children:s&&(0,Se.jsx)(gl.ul,{role:"menu",variants:{open:{height:"auto",opacity:1},closed:{height:0,opacity:0}},initial:"closed",animate:"open",exit:"closed",transition:{duration:.3,ease:"easeInOut"},className:"overflow flex gap-0.5 flex-col m-0 bg-white rounded p-0",children:i})})]})};Ip.displayName="Menu.List";const Fp=({disabled:e=!1,active:t,onClick:r,children:n,className:o})=>{const{size:i}=Tp(),a={sm:"[&>svg]:size-4 [&>svg]:m-1 [&>*:not(svg)]:mx-1 [&>*:not(svg)]:my-0.5 text-sm",md:"[&>svg]:size-5 [&>svg]:m-1.5 [&>*:not(svg)]:m-1 text-base"}[i??"md"];return(0,Se.jsx)("li",{role:"menuitem",tabIndex:0,onClick:r,onKeyDown:e=>{("Enter"===e.key||" "===e.key)&&r?.()},className:du("flex p-1 gap-1 items-center bg-transparent border-none rounded text-text-secondary cursor-pointer m-0",a,"hover:bg-background-secondary hover:text-text-primary",e?"text-text-disabled hover:text-text-disabled cursor-not-allowed hover:bg-transparent":"",t?"text-icon-primary [&>svg]:text-icon-interactive bg-background-secondary":"","transition-colors duration-300 ease-in-out",o),children:n})};Fp.displayName="Menu.Item";const Lp=({variant:e="solid",className:t})=>{const r={solid:"border-solid",dashed:"border-dashed",dotted:"border-dotted",double:"border-double",hidden:"border-hidden",none:"border-none"}[e];return(0,Se.jsx)("li",{className:"m-0 p-0 list-none",role:"separator","aria-hidden":"true",children:(0,Se.jsx)("hr",{className:du("w-full border-0 border-t border-border-subtle",r,t)})})};Lp.displayName="Menu.Separator",Sp.List=Ip,Sp.Item=Fp,Sp.Separator=Lp;const Rp=(0,Ie.createContext)({}),Pp=()=>(0,Ie.useContext)(Rp),Bp=({placement:e="bottom",offset:t=10,boundary:r="clippingAncestors",children:n,className:o})=>{const[i,a]=(0,Ie.useState)(!1),{refs:s,floatingStyles:l,context:u}=dp({open:i,onOpenChange:a,placement:e,strategy:"fixed",middleware:[Wf(t),Zf({boundary:r}),Gf({boundary:r})],whileElementsMounted:If}),c=ap(u),d=cp(u),f=kp(u,{role:"menu"}),{getReferenceProps:m,getFloatingProps:p}=hp([c,d,f]),{isMounted:h,styles:g}=Mp(u,{duration:150,initial:{opacity:0,scale:.95},open:{opacity:1,scale:1},close:{opacity:0,scale:.95}}),b=()=>a((e=>!e));return(0,Se.jsx)(Rp.Provider,{value:{refs:s,handleClose:()=>a(!1),isMounted:h,styles:g,floatingStyles:l,getFloatingProps:p},children:(0,Se.jsxs)("div",{className:du("relative inline-block",o),children:[Ie.Children.map(n,(e=>Ie.isValidElement(e)&&"DropdownMenu.Trigger"===e?.type?.displayName?(0,Ie.cloneElement)(e,{ref:s.setReference,onClick:b,...m()}):null)),Ie.Children.toArray(n).filter((e=>Ie.isValidElement(e)&&["DropdownMenu.Portal","DropdownMenu.ContentWrapper"].includes(e.type.displayName||""))).map((e=>e))]})})};Bp.displayName="DropdownMenu";const zp=({children:e,className:t})=>{const{refs:r,floatingStyles:n,getFloatingProps:o,isMounted:i,styles:a}=Pp();return i&&(0,Se.jsx)("div",{ref:r.setFloating,className:t,style:{...n,...a},...o(),children:Ie.Children.map(e,(e=>"DropdownMenu.Content"===e?.type?.displayName?e:null))})};zp.displayName="DropdownMenu.ContentWrapper";const qp=({children:e,root:t,id:r})=>(0,Se.jsx)(Zm,{id:r,root:t,children:e});qp.displayName="DropdownMenu.Portal";const Vp=Ie.forwardRef((({children:e,className:t,...r},n)=>(0,Ie.isValidElement)(e)?Ie.cloneElement(e,{className:du(t,e.props.className),ref:n,...r}):(0,Se.jsx)("div",{ref:n,className:du("cursor-pointer",t),role:"button",tabIndex:0,...r,children:e})));Vp.displayName="DropdownMenu.Trigger";const Up=({children:e,className:t,...r})=>(0,Se.jsx)("div",{className:du("border border-solid border-border-subtle rounded-md shadow-lg overflow-hidden",t),children:(0,Se.jsx)(Sp,{...r,children:e})});Up.displayName="DropdownMenu.Content";const Hp=e=>(0,Se.jsx)(Sp.List,{...e});Hp.displayName="DropdownMenu.List";const Yp=({children:e,as:t=Sp.Item,...r})=>{const{handleClose:n}=Pp();return e?t===Ie.Fragment&&(0,Ie.isValidElement)(e)?(0,Ie.cloneElement)(e,{onClick:fu(e.props?.onClick,n)}):(0,Se.jsx)(t,{...r,className:du("px-2",r.className),onClick:fu(r.onClick,n),children:e}):null};Yp.displayName="DropdownMenu.Item";const Qp=e=>(0,Se.jsx)(Sp.Separator,{...e});Qp.displayName="DropdownMenu.Separator",Bp.Trigger=Vp,Bp.Content=Up,Bp.List=Hp,Bp.Item=Yp,Bp.Separator=Qp,Bp.Portal=qp,Bp.ContentWrapper=zp;const Wp=lc("EllipsisVertical",[["circle",{cx:"12",cy:"12",r:"1",key:"41hilf"}],["circle",{cx:"12",cy:"5",r:"1",key:"gxeob9"}],["circle",{cx:"12",cy:"19",r:"1",key:"lyex9k"}]]);function Gp(){return Gp=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Gp.apply(null,arguments)}function Zp(e){var t=e.icon,r=e.label,n=e.tagFor,o=e.tagsArray,i=e.setTargetData,a=e.className,s=e.triggerSize,l=void 0===s?"sm":s,u=e.triggerVariant,c=void 0===u?"outline":u,d=e.triggerClassName,f=e.dropdownPlacement,p=void 0===f?"bottom-start":f,h=[];return(0,m.applyFilters)("srfm.smartTagList.tagsArray",o,n).forEach((function(e){h.push((0,x.nC)(i,e.tags,e.label))})),React.createElement(Bp,{placement:p,className:"min-w-fit"},React.createElement(Bp.Trigger,null,React.createElement(nc,{variant:c,size:l,icon:null!=t?t:React.createElement(Wp,null),iconPosition:"right",className:(0,x.cn)("min-w-fit [&_svg]:shrink-0",d)},!!r&&r)),React.createElement(Bp.Portal,{id:"srfm-dialog-root"},React.createElement(Bp.ContentWrapper,null,React.createElement(Bp.Content,{className:(0,x.cn)("w-60 max-h-80 overflow-y-auto",a)},React.createElement(Bp.List,null,h.map((function(e,t){return e.map((function(e,r){return 0===r?React.createElement(gc,{key:"".concat(t,"-").concat(r,"-control-").concat(null==e?void 0:e.title),variant:"help",size:"xs",className:"p-2 text-text-primary font-medium text-sm",tabIndex:-1},null==e?void 0:e.title):React.createElement(Bp.Item,Gp({key:"".concat(t,"-").concat(r,"-control-").concat(null==e?void 0:e.title),className:"text-sm font-normal text-text-secondary hover:bg-background-secondary hover:text-text-primary focus:bg-background-secondary focus:text-text-primary"},"function"==typeof(null==e?void 0:e.onClick)?{onClick:null==e?void 0:e.onClick}:{}),null==e?void 0:e.title)}))})))))))}var $p=o(45708),Kp=o.n($p),Xp=o(7448);function Jp(e){return Jp="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},Jp(e)}var eh={toolbar:{container:"#toolbar",handlers:{undo:function(){this.quill.history.undo()},redo:function(){this.quill.history.redo()},image:function(){var e=this,t=document.createElement("input");t.setAttribute("type","file"),t.setAttribute("accept","image/*"),t.click(),t.onchange=function(t){var r=t.target.files[0];if(/^image\//.test(r.type)){var n=new FileReader;n.onload=function(){var t=n.result,r=e.quill.getSelection();e.quill.insertEmbed(r.index,"image",{src:t,alt:"","aria-hidden":"true"})},n.onerror=function(){console.error("Error while reading the file.")},n.readAsDataURL(r)}else console.warn("You could only upload images.")}}}},history:{delay:500,maxStack:100,userOnly:!0},clipboard:{matchVisual:!1,matchers:[["img",function(e,t){if("IMG"!==e.tagName)return t;if(t.ops){var r=t.ops[0].insert;"object"===Jp(r)&&r.image&&(r.image={src:e.getAttribute("src"),alt:e.getAttribute("alt"),"aria-hidden":e.getAttribute("aria-hidden")})}return t}]]}},th=["header","font","size","bold","italic","underline","align","strike","script","blockquote","background","list","bullet","indent","link","image","color","code-block"];const rh=function(){return React.createElement("div",{id:"toolbar",className:"border-x border-t border-b-0 border-field-border border-solid rounded-t-lg"},React.createElement("span",{className:"ql-formats"},React.createElement("select",{className:"ql-header",defaultValue:"false"},React.createElement("option",{value:"1"},"Heading 1"),React.createElement("option",{value:"2"},"Heading 2"),React.createElement("option",{value:"3"},"Heading 3"),React.createElement("option",{value:"4"},"Heading 4"),React.createElement("option",{value:"5"},"Heading 5"),React.createElement("option",{value:"6"},"Heading 6"),React.createElement("option",{value:"false"},"Normal")),React.createElement("button",{className:"ql-bold"}),React.createElement("button",{className:"ql-italic"}),React.createElement("button",{className:"ql-underline"}),React.createElement("button",{className:"ql-strike"}),React.createElement("button",{className:"ql-list",value:"ordered"}),React.createElement("button",{className:"ql-list",value:"bullet"}),React.createElement("button",{className:"ql-blockquote"}),React.createElement("select",{className:"ql-align"}),React.createElement("select",{className:"ql-color"}),React.createElement("select",{className:"ql-background"}),React.createElement("button",{className:"ql-link"}),React.createElement("button",{className:"ql-clean"}),React.createElement("button",{className:"ql-image"}),React.createElement("button",{className:"ql-undo"},(0,Ee.Ay)(Xp.undo)),React.createElement("button",{className:"ql-redo"},(0,Ee.Ay)(Xp.redo))))},nh=lc("ChevronDown",[["path",{d:"m6 9 6 6 6-6",key:"qrunsl"}]]),oh=(0,Ie.createContext)(null);const ih=e=>!e.isLayoutDirty&&e.willUpdate(!1);function ah(){const e=new Set,t=new WeakMap,r=()=>e.forEach(ih);return{add:n=>{e.add(n),t.set(n,n.addEventListener("willUpdate",r))},remove:n=>{e.delete(n);const o=t.get(n);o&&(o(),t.delete(n)),r()},dirty:r}}const sh=e=>!0===e,lh=({children:e,id:t,inherit:r=!0})=>{const n=(0,Ie.useContext)(Re),o=(0,Ie.useContext)(oh),[i,a]=function(){const e=function(){const e=(0,Ie.useRef)(!1);return Ze((()=>(e.current=!0,()=>{e.current=!1})),[]),e}(),[t,r]=(0,Ie.useState)(0),n=(0,Ie.useCallback)((()=>{e.current&&r(t+1)}),[t]);return[(0,Ie.useCallback)((()=>Yt.postRender(n)),[n]),t]}(),s=(0,Ie.useRef)(null),l=n.id||o;null===s.current&&((e=>sh(!0===e)||"id"===e)(r)&&l&&(t=t?l+"-"+t:l),s.current={id:t,group:sh(r)&&n.group||ah()});const u=(0,Ie.useMemo)((()=>({...s.current,forceRender:i})),[a]);return(0,Se.jsx)(Re.Provider,{value:u,children:e})},uh=(0,Ie.createContext)({}),ch=()=>(0,Ie.useContext)(uh),dh=(0,Ie.createContext)(null),fh=({children:e,activeItem:t=null,onChange:r,className:n,size:o="sm",orientation:i="horizontal",variant:a="pill",iconPosition:s="left",width:l="full"})=>{const u=hc(),c=ch()?.activeItem||t,d=(0,Ie.useCallback)(((e,t)=>{r&&r({event:e,value:t})}),[r]);let f,m="rounded-full",p="p-1",h="ring-1 ring-tab-border";"vertical"===i?f="gap-0.5":("rounded"===a||"pill"===a)&&("xs"===o||"sm"===o?f="gap-0.5":("md"===o||"lg"===o)&&(f="gap-1")),"rounded"===a||"vertical"===i?m="rounded-md":"underline"===a&&(m="rounded-none",p="p-0",h="border-t-0 border-r-0 border-l-0 border-b border-solid border-tab-border","xs"===o?f="gap-0":"sm"===o?f="gap-2.5":("md"===o||"lg"===o)&&(f="gap-3"));const g=du(`box-border [&>*]:box-border flex items-center ${"full"===l?"w-full":""} ${"vertical"===i?"flex-col":""}`,m,p,f,h,"underline"!==a?"bg-tab-background":"",n);return(0,Se.jsx)("div",{className:g,children:(0,Se.jsx)(dh.Provider,{value:{activeItem:c,onChange:d,size:o,variant:a,orientation:i,iconPosition:s,width:l},children:(0,Se.jsx)(lh,{id:u,children:Ie.Children.map(e,(e=>(0,Ie.isValidElement)(e)?Ie.cloneElement(e):null))})})})};fh.displayName="Tabs.Group";const mh=(0,Ie.forwardRef)((({slug:e,text:t,icon:r,className:n,disabled:o=!1,badge:i=null,...a},s)=>{const l=(0,Ie.useContext)(dh);if(!l)throw new Error("Tab should be used inside Tabs Group");const{activeItem:u,onChange:c,size:d,variant:f,orientation:m,iconPosition:p,width:h}=l,g={xs:"px-1.5 py-0.5 text-xs [&_svg]:size-3",sm:"underline"===f?"py-1.5 text-sm [&_svg]:size-4":"px-3 py-1.5 text-sm [&_svg]:size-4",md:"underline"===f?"py-2 text-base [&_svg]:size-5":"px-3.5 py-1.5 text-base [&_svg]:size-5",lg:"underline"===f?"p-2.5 text-lg [&_svg]:size-6":"px-3.5 py-1.5 text-lg [&_svg]:size-6"}[d],b=du("relative border-none bg-transparent text-text-secondary cursor-pointer flex items-center justify-center transition-[box-shadow,color,background-color] duration-200","full"===h?"flex-1":"","vertical"===m?"w-full justify-between":"");let y="rounded-full";"rounded"===f?y="rounded-md":"underline"===f&&(y="rounded-none");const v=du(b,"border-none",y,"hover:text-text-primary","focus:outline-none",g,u===e?"bg-background-primary text-text-primary shadow-sm":"",o?"text-text-disabled cursor-not-allowed hover:text-text-disabled":"",n),D=du("flex items-center gap-1");return(0,Se.jsxs)(gl.button,{ref:s,className:v,disabled:o,onClick:r=>{c(r,{slug:e,text:t})},...a,layoutRoot:!0,children:[u===e&&"underline"===f&&(0,Se.jsx)(gl.span,{layoutId:"underline",layoutDependency:u,className:"absolute right-0 left-0 -bottom-px h-px bg-border-interactive"}),(0,Se.jsxs)("span",{className:D,children:["left"===p&&r&&(0,Se.jsx)("span",{className:"mr-1 contents center-center transition duration-150",children:r}),t,"right"===p&&r&&(0,Se.jsx)("span",{className:"ml-1 contents center-center transition duration-150",children:r})]}),i&&(0,Ie.isValidElement)(i)&&i]})}));mh.displayName="Tabs.Tab";const ph=({activeItem:e,children:t})=>(0,Se.jsx)(uh.Provider,{value:{activeItem:e},children:t}),hh=({slug:e,children:t})=>{const r=ch();if(!r)throw new Error("TabPanel should be used inside Tabs");return e===r.activeItem?(0,Se.jsx)(Se.Fragment,{children:t}):null};function gh(e){return gh="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},gh(e)}function bh(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,yh(n.key),n)}}function yh(e){var t=function(e){if("object"!=gh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=gh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gh(t)?t:t+""}function vh(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){})))}catch(e){}return(vh=function(){return!!e})()}function Dh(){return Dh="undefined"!=typeof Reflect&&Reflect.get?Reflect.get.bind():function(e,t,r){var n=function(e,t){for(;!{}.hasOwnProperty.call(e,t)&&null!==(e=_h(e)););return e}(e,t);if(n){var o=Object.getOwnPropertyDescriptor(n,t);return o.get?o.get.call(arguments.length<3?e:r):o.value}},Dh.apply(null,arguments)}function _h(e){return _h=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},_h(e)}function xh(e,t){return xh=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},xh(e,t)}function kh(e,t){if(e){if("string"==typeof e)return Eh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Eh(e,t):void 0}}function Eh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}hh.displayName="Tabs.Panel",ph.Group=fh,ph.Tab=mh,ph.Panel=hh;const wh=function(e){var t,r,n,o,i,l=e.handleContentChange,u=e.content,c=e.allData,d=void 0!==c&&c,f=(0,s.useRef)(null),p=(0,s.useRef)(null),h=[{name:"srfm-editor-visual",title:(0,a.__)("Visual","sureforms"),value:"visual",className:"srfm-editor-visual"},{name:"srfm-editor-html",title:(0,a.__)("HTML","sureforms"),value:"html",className:"srfm-editor-html"}],g=(0,s.useRef)("srfm-editor-visual"),b=(o=(0,s.useState)("visual"),i=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(o,i)||kh(o,i)||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.")}()),y=b[0],v=b[1],D=null!==(t=window.srfm_block_data)&&void 0!==t&&t.smart_tags_array?Object.entries(window.srfm_block_data.smart_tags_array):[],_=null!==(r=null===(n=window.sureforms)||void 0===n?void 0:n.formSpecificSmartTags)&&void 0!==r?r:[],x={};d&&(x=[].concat(function(e){return function(e){if(Array.isArray(e))return Eh(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||kh(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.")}()}(_),[["{all_data}",(0,a.__)("All Data","sureforms")]])),$p.Quill.register($p.Quill.import("attributors/style/align"),!0);var k=function(e){function t(){return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,t),function(e,t,r){return t=_h(t),function(e,t){if(t&&("object"==gh(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(e,vh()?Reflect.construct(t,r||[],_h(e).constructor):t.apply(e,r))}(this,t,arguments)}return function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&xh(e,t)}(t,e),function(e,t,r){return r&&bh(e,r),Object.defineProperty(e,"prototype",{writable:!1}),e}(t,0,[{key:"create",value:function(e){var r=function(e,t,r){var n=Dh(_h(e),"create",r);return"function"==typeof n?function(e){return n.apply(r,e)}:n}(t,0,this)([]);return r.setAttribute("src",e.src),r.setAttribute("alt",""),r.setAttribute("aria-hidden","true"),r}},{key:"value",value:function(e){return{src:e.getAttribute("src"),alt:e.getAttribute("alt"),"aria-hidden":e.getAttribute("aria-hidden")}}}])}($p.Quill.import("blots/embed"));k.blotName="image",k.tagName="img",$p.Quill.register(k);var E=(0,m.applyFilters)("srfm.formSettings.formConfirmationSmartTags",[{tags:d?x:_,label:(0,a.__)("Form input tags","sureforms")},{tags:D,label:(0,a.__)("Generic tags","sureforms")}]);return React.createElement(React.Fragment,null,React.createElement(ph,{activeItem:y},React.createElement("div",{className:"flex items-center justify-between mb-1.5"},React.createElement(gc,null,(0,a.__)("Confirmation Message","sureforms")),React.createElement("div",{className:"flex items-center gap-2 min-w-fit"},React.createElement(ph.Group,{variant:"rounded",size:"xs",onChange:function(e){var t,r=e.value.slug;v(r),g.current=null===(t=h.find((function(e){return e.value===r})))||void 0===t?void 0:t.name}},h.map((function(e){return React.createElement(ph.Tab,{className:"text-sm font-medium",key:e.value,text:e.title,slug:e.value})}))),React.createElement(Zp,{tagFor:"formSettings.quillEditor",icon:React.createElement(nh,null),label:(0,a.__)("Add Shortcode","sureforms"),tagsArray:E,setTargetData:function(e){if("srfm-editor-visual"===g.current)!function(e){var t=f.current.getEditor(),r=t.getSelection(!0).index;if(!r){var n=t.getLength();t.setSelection(n,0),r=n-1}t.insertText(r,e)}(e);else{var t=p.current,r=t.selectionStart,n=t.selectionEnd;if(!r&&!n)return l(u+e);var o=t.value;t.value=o.substring(0,r)+e+o.substring(n),t.selectionStart=t.selectionEnd=r+e.length,l(t.value)}},dropdownPlacement:"bottom-end"}))),React.createElement(ph.Panel,{slug:"visual"},React.createElement("div",{className:""},React.createElement(rh,null),React.createElement(Kp(),{ref:f,formats:th,modules:eh,value:u,onChange:function(e){l(e)},className:"[&>div]:border [&>div]:border-field-border [&>div]:border-solid [&>div]:rounded-b-lg [&_.ql-editor]:min-h-[18.75rem]"}))),React.createElement(ph.Panel,{slug:"html"},React.createElement(Yc,{id:"srfm-editor-html",ref:p,onChange:function(e){return l(e)},className:"w-full min-h-[18.75rem] border border-field-border border-solid rounded-lg transition",value:u,size:"md"}))))};function Ch(e,t,r){var n=this,o=(0,Ie.useRef)(null),i=(0,Ie.useRef)(0),a=(0,Ie.useRef)(null),s=(0,Ie.useRef)([]),l=(0,Ie.useRef)(),u=(0,Ie.useRef)(),c=(0,Ie.useRef)(e),d=(0,Ie.useRef)(!0);c.current=e;var f="undefined"!=typeof window,m=!t&&0!==t&&f;if("function"!=typeof e)throw new TypeError("Expected a function");t=+t||0;var p=!!(r=r||{}).leading,h=!("trailing"in r)||!!r.trailing,g="maxWait"in r,b="debounceOnServer"in r&&!!r.debounceOnServer,y=g?Math.max(+r.maxWait||0,t):null;(0,Ie.useEffect)((function(){return d.current=!0,function(){d.current=!1}}),[]);var v=(0,Ie.useMemo)((function(){var e=function(e){var t=s.current,r=l.current;return s.current=l.current=null,i.current=e,u.current=c.current.apply(r,t)},r=function(e,t){m&&cancelAnimationFrame(a.current),a.current=m?requestAnimationFrame(e):setTimeout(e,t)},v=function(e){if(!d.current)return!1;var r=e-o.current;return!o.current||r>=t||r<0||g&&e-i.current>=y},D=function(t){return a.current=null,h&&s.current?e(t):(s.current=l.current=null,u.current)},_=function e(){var n=Date.now();if(v(n))return D(n);if(d.current){var a=t-(n-o.current),s=g?Math.min(a,y-(n-i.current)):a;r(e,s)}},x=function(){if(f||b){var c=Date.now(),m=v(c);if(s.current=[].slice.call(arguments),l.current=n,o.current=c,m){if(!a.current&&d.current)return i.current=o.current,r(_,t),p?e(o.current):u.current;if(g)return r(_,t),e(o.current)}return a.current||r(_,t),u.current}};return x.cancel=function(){a.current&&(m?cancelAnimationFrame(a.current):clearTimeout(a.current)),i.current=0,s.current=o.current=l.current=a.current=null},x.isPending=function(){return!!a.current},x.flush=function(){return a.current?D(Date.now()):u.current},x}),[p,g,t,y,h,m,f,b]);return v}const Mh=({variant:e="dark",placement:t="bottom",title:r="",content:n,arrow:o=!1,open:i,setOpen:a,children:s,className:l,tooltipPortalRoot:u,tooltipPortalId:c,boundary:d="clippingAncestors",strategy:f="fixed",offset:m=8,triggers:p=["hover","focus"],interactive:h=!1})=>{const g=(0,Ie.useMemo)((()=>"boolean"==typeof i&&"function"==typeof a),[i,a]),[b,y]=(0,Ie.useState)(!1),v=(0,Ie.useRef)(null),{refs:D,floatingStyles:_,context:x}=dp({open:g?i:b,onOpenChange:g?a:y,placement:t,strategy:f,middleware:[Wf(m),Zf({boundary:d}),Gf({boundary:d}),Kf({element:v})],whileElementsMounted:If}),k=ap(x,{enabled:!g&&p.includes("click")}),E=function(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,dataRef:o,events:i,elements:a}=e,{enabled:s=!0,delay:l=0,handleClose:u=null,mouseOnly:c=!1,restMs:d=0,move:f=!0}=t,m=km(),p=xm(),h=wm(u),g=wm(l),b=wm(r),y=Ie.useRef(),v=Ie.useRef(-1),D=Ie.useRef(),_=Ie.useRef(-1),x=Ie.useRef(!0),k=Ie.useRef(!1),E=Ie.useRef((()=>{})),w=Ie.useRef(!1),C=Ie.useCallback((()=>{var e;const t=null==(e=o.current.openEvent)?void 0:e.type;return(null==t?void 0:t.includes("mouse"))&&"mousedown"!==t}),[o]);Ie.useEffect((()=>{if(s)return i.on("openchange",e),()=>{i.off("openchange",e)};function e(e){let{open:t}=e;t||(clearTimeout(v.current),clearTimeout(_.current),x.current=!0,w.current=!1)}}),[s,i]),Ie.useEffect((()=>{if(!s)return;if(!h.current)return;if(!r)return;function e(e){C()&&n(!1,e,"hover")}const t=Ad(a.floating).documentElement;return t.addEventListener("mouseleave",e),()=>{t.removeEventListener("mouseleave",e)}}),[a.floating,r,n,s,h,C]);const M=Ie.useCallback((function(e,t,r){void 0===t&&(t=!0),void 0===r&&(r="hover");const o=Mm(g.current,"close",y.current);o&&!D.current?(clearTimeout(v.current),v.current=window.setTimeout((()=>n(!1,e,r)),o)):t&&(clearTimeout(v.current),n(!1,e,r))}),[g,n]),A=em((()=>{E.current(),D.current=void 0})),N=em((()=>{if(k.current){const e=Ad(a.floating).body;e.style.pointerEvents="",e.removeAttribute(Cm),k.current=!1}})),j=em((()=>!!o.current.openEvent&&["click","mousedown"].includes(o.current.openEvent.type)));Ie.useEffect((()=>{if(s&&nd(a.domReference)){var e;const n=a.domReference;return r&&n.addEventListener("mouseleave",l),null==(e=a.floating)||e.addEventListener("mouseleave",l),f&&n.addEventListener("mousemove",t,{once:!0}),n.addEventListener("mouseenter",t),n.addEventListener("mouseleave",i),()=>{var e;r&&n.removeEventListener("mouseleave",l),null==(e=a.floating)||e.removeEventListener("mouseleave",l),f&&n.removeEventListener("mousemove",t),n.removeEventListener("mouseenter",t),n.removeEventListener("mouseleave",i)}}function t(e){if(clearTimeout(v.current),x.current=!1,c&&!Md(y.current)||d>0&&!Mm(g.current,"open"))return;const t=Mm(g.current,"open",y.current);t?v.current=window.setTimeout((()=>{b.current||n(!0,e,"hover")}),t):r||n(!0,e,"hover")}function i(e){if(j())return;E.current();const t=Ad(a.floating);if(clearTimeout(_.current),w.current=!1,h.current&&o.current.floatingContext){r||clearTimeout(v.current),D.current=h.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),j()||M(e,!0,"safe-polygon")}});const n=D.current;return t.addEventListener("mousemove",n),void(E.current=()=>{t.removeEventListener("mousemove",n)})}("touch"!==y.current||!vd(a.floating,e.relatedTarget))&&M(e)}function l(e){j()||o.current.floatingContext&&(null==h.current||h.current({...o.current.floatingContext,tree:m,x:e.clientX,y:e.clientY,onClose(){N(),A(),j()||M(e)}})(e))}}),[a,s,e,c,d,f,M,A,N,n,r,b,m,g,h,o,j]),mm((()=>{var e;if(s&&r&&null!=(e=h.current)&&e.__options.blockPointerEvents&&C()){k.current=!0;const e=a.floating;if(nd(a.domReference)&&e){var t;const r=Ad(a.floating).body;r.setAttribute(Cm,"");const n=a.domReference,o=null==m||null==(t=m.nodesRef.current.find((e=>e.id===p)))||null==(t=t.context)?void 0:t.elements.floating;return o&&(o.style.pointerEvents=""),r.style.pointerEvents="none",n.style.pointerEvents="auto",e.style.pointerEvents="auto",()=>{r.style.pointerEvents="",n.style.pointerEvents="",e.style.pointerEvents=""}}}}),[s,r,p,a,m,h,C]),mm((()=>{r||(y.current=void 0,w.current=!1,A(),N())}),[r,A,N]),Ie.useEffect((()=>()=>{A(),clearTimeout(v.current),clearTimeout(_.current),N()}),[s,a.domReference,A,N]);const O=Ie.useMemo((()=>{function e(e){y.current=e.pointerType}return{onPointerDown:e,onPointerEnter:e,onMouseMove(e){const{nativeEvent:t}=e;function o(){x.current||b.current||n(!0,t,"hover")}c&&!Md(y.current)||r||0===d||w.current&&e.movementX**2+e.movementY**2<2||(clearTimeout(_.current),"touch"===y.current?o():(w.current=!0,_.current=window.setTimeout(o,d)))}}}),[c,n,r,b,d]),T=Ie.useMemo((()=>({onMouseEnter(){clearTimeout(v.current)},onMouseLeave(e){j()||M(e.nativeEvent,!1)}})),[M,j]);return Ie.useMemo((()=>s?{reference:O,floating:T}:{}),[s,O,T])}(x,{move:!1,enabled:!g&&p.includes("hover"),...h&&{handleClose:Np()}}),w=function(e,t){void 0===t&&(t={});const{open:r,onOpenChange:n,events:o,dataRef:i,elements:a}=e,{enabled:s=!0,visibleOnly:l=!0}=t,u=Ie.useRef(!1),c=Ie.useRef(),d=Ie.useRef(!0);Ie.useEffect((()=>{if(!s)return;const e=ed(a.domReference);function t(){!r&&od(a.domReference)&&a.domReference===yd(Ad(a.domReference))&&(u.current=!0)}function n(){d.current=!0}return e.addEventListener("blur",t),e.addEventListener("keydown",n,!0),()=>{e.removeEventListener("blur",t),e.removeEventListener("keydown",n,!0)}}),[a.domReference,r,s]),Ie.useEffect((()=>{if(s)return o.on("openchange",e),()=>{o.off("openchange",e)};function e(e){let{reason:t}=e;"reference-press"!==t&&"escape-key"!==t||(u.current=!0)}}),[o,s]),Ie.useEffect((()=>()=>{clearTimeout(c.current)}),[]);const f=Ie.useMemo((()=>({onPointerDown(e){kd(e.nativeEvent)||(d.current=!1)},onMouseLeave(){u.current=!1},onFocus(e){if(u.current)return;const t=jd(e.nativeEvent);if(l&&nd(t))try{if(Ed()&&Cd())throw Error();if(!t.matches(":focus-visible"))return}catch(e){if(!d.current&&!Od(t))return}n(!0,e.nativeEvent,"focus")},onBlur(e){u.current=!1;const t=e.relatedTarget,r=e.nativeEvent,o=nd(t)&&t.hasAttribute(Em("focus-guard"))&&"outside"===t.getAttribute("data-type");c.current=window.setTimeout((()=>{var e;const s=yd(a.domReference?a.domReference.ownerDocument:document);(t||s!==a.domReference)&&(vd(null==(e=i.current.floatingContext)?void 0:e.refs.floating.current,s)||vd(a.domReference,s)||o||n(!1,r,"focus"))}))}})),[i,a.domReference,n,l]);return Ie.useMemo((()=>s?{reference:f}:{}),[s,f])}(x,{enabled:!g&&p.includes("focus")}),C=cp(x),M=kp(x,{role:"tooltip"}),{getReferenceProps:A,getFloatingProps:N}=hp([k,E,w,C,M]),{isMounted:j,styles:O}=Mp(x,{duration:150,initial:{opacity:0},open:{opacity:1},close:{opacity:0}}),T={light:"bg-tooltip-background-light text-text-primary",dark:"bg-tooltip-background-dark text-text-on-color"}[e],S="dark"===e?"text-tooltip-background-dark":"text-tooltip-background-light";return(0,Se.jsxs)(Ie.Fragment,{children:[(0,Ie.isValidElement)(s)&&(0,Se.jsx)(Ie.Fragment,{children:(0,Ie.cloneElement)(s,{ref:jc(s.ref,D.setReference),className:du(s.props.className),...A()})},"tooltip-reference"),(0,Se.jsx)(Zm,{id:c,root:u,children:j&&(0,Se.jsxs)("div",{className:du("absolute z-20 py-2 px-3 rounded-md text-xs leading-4 shadow-soft-shadow-lg",T,"max-w-80 w-fit",l),ref:D.setFloating,style:{..._,...O},...N(),children:[(0,Se.jsxs)("div",{children:[!!r&&(0,Se.jsx)("span",{className:"font-semibold",children:r},"tooltip-title"),!!n&&(0,Se.jsx)("div",{className:"font-normal",children:n},"tooltip-content")]}),o&&(0,Se.jsx)(vm,{ref:v,context:x,className:du("fill-current",S)})]})})]})};function Ah(){return Ah=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},Ah.apply(null,arguments)}Mh.displayName="Tooltip";const Nh=function(e){var t=e.label,r=e.id,n=e.value,o=e.onChange,i=e.required,a=void 0!==i&&i,s=e.smartTagList,l=e.tagFor,u=e.setTargetData,c=e.showSmartTagList,d=void 0===c||c,f=e.helpText,m=e.padding,p=void 0===m?"":m,h=e.smartTagWrapperClasses,g=void 0===h?"mt-6":h,b=e.inputProps,y=void 0===b?{}:b,v=e.placeholder,D=void 0===v?"":v,_=e.labelWithTooltip,k=void 0!==_&&_;return React.createElement(ec,{direction:"column",className:(0,x.cn)("w-full gap-2",p)},React.createElement(ec,{align:"center",className:"gap-1.5"},React.createElement("div",{className:"flex-1 space-y-1.5"},React.createElement(Oc,Ah({"aria-label":t,type:"text",id:r,onChange:function(e){return o(e)},value:n,label:k?React.createElement(Mh,{content:f,title:t,placement:"left",triggers:["hover"],variant:"light",tooltipPortalId:"srfm-settings-container",className:"rounded-md border border-solid border-border-subtle shadow-sm"},React.createElement(gc,{htmlFor:r,size:"sm",className:"font-medium border-b border-t-0 border-l-0 border-r-0 border-dotted border-text-primary cursor-help inline-block"},t)):t,required:a,placeholder:D,size:"md",className:"[&>input]:text-field-input"},y))),d&&React.createElement("div",{className:(0,x.cn)(g)},React.createElement(Zp,{className:"shrink-0",tagFor:l,tagsArray:s,setTargetData:u,triggerSize:"md"}))),f&&!k&&React.createElement(gc,{size:"sm",variant:"help",className:"font-normal"},f))};function jh(e){return jh="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},jh(e)}function Oh(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Th(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Oh(Object(r),!0).forEach((function(t){Sh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Oh(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function Sh(e,t,r){return(t=function(e){var t=function(e){if("object"!=jh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=jh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==jh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ih(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Fh=function(e){var t=e.message;return React.createElement(ec,{className:"w-full p-3 gap-2 border border-solid border-alert-border-warning bg-alert-background-warning"},React.createElement("span",{className:"size-5"},(0,Ee.Ay)(null==Xp?void 0:Xp.warning)),React.createElement("span",{className:"text-sm font-normal"},t))};const Lh=function(e){var t,r,n=e.formData,o=e.setFormData,i=e.genericSmartTags,l=e.genericEmailSmartTags,u=e.formSmartTags,c=e.formEmailSmartTags,d=(t=(0,s.useState)(""),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return Ih(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ih(e,t):void 0}}(t,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.")}()),f=d[0],m=d[1];(0,s.useEffect)((function(){!function(){var e,t,r=(null==n?void 0:n.from_email)||"",o=(null==r?void 0:r.split("@")[1])||"",i=(null===(e=window)||void 0===e||null===(e=e.srfm_block_data)||void 0===e?void 0:e.site_url)||"",s=/^(?:[%\+\x2D\.0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])+@(?:[\x2D\.0-9A-Za-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])+\.(?:[A-Za-z\xAA\xB5\xBA\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE\u06EF\u06FA-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07CA-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09F0\u09F1\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B71\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D5F-\u0D61\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0EDC-\u0EDF\u0F00\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16F1-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1950-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u1A00-\u1A16\u1A20-\u1A54\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B83-\u1BA0\u1BAE\u1BAF\u1BBA-\u1BE5\u1C00-\u1C23\u1C4D-\u1C4F\u1C5A-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2071\u207F\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2183\u2184\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005\u3006\u3031-\u3035\u303B\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u31A0-\u31BF\u31F0-\u31FF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA61F\uA62A\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6E5\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA840-\uA873\uA882-\uA8B3\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA90A-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF\uA9E0-\uA9E4\uA9E6-\uA9EF\uA9FA-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDE80-\uDE9C\uDEA0-\uDED0\uDF00-\uDF1F\uDF2D-\uDF40\uDF42-\uDF49\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF]|\uD801[\uDC00-\uDC9D\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC60-\uDC76\uDC80-\uDC9E\uDCE0-\uDCF2\uDCF4\uDCF5\uDD00-\uDD15\uDD20-\uDD39\uDD80-\uDDB7\uDDBE\uDDBF\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE60-\uDE7C\uDE80-\uDE9C\uDEC0-\uDEC7\uDEC9-\uDEE4\uDF00-\uDF35\uDF40-\uDF55\uDF60-\uDF72\uDF80-\uDF91]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDD00-\uDD23\uDD4A-\uDD65\uDD6F-\uDD85\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF1C\uDF27\uDF30-\uDF45\uDF70-\uDF81\uDFB0-\uDFC4\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDD03-\uDD26\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDDA\uDDDC\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE80-\uDEAA\uDEB8\uDF00-\uDF1A\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCDF\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDFB0]|\uD808[\uDC00-\uDF99]|\uD809[\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE70-\uDEBE\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDE40-\uDE7F\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB]|\uD839[\uDCD0-\uDCEB\uDDD0-\uDDED\uDDF0\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDD00-\uDD43\uDD4B]|\uD83B[\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF]){2,}$/.test(r),l="";if(r.startsWith("{")&&r.endsWith("}"))l=null!==(t=srfm_block_data)&&void 0!==t&&t.is_suremails_active?(0,a.sprintf)((0,a.__)("The current 'From Email' address may not match your website domain name (%1$s). This can cause your notification emails to be blocked or marked as spam. Alternately, try using a From Address that matches your website domain (admin@%2$s).","sureforms"),i,i):React.createElement(React.Fragment,null,(0,a.sprintf)((0,a.__)("The current 'From Email' address may not match your website domain name (%s). This can cause your notification emails to be blocked or marked as spam. ","sureforms"),i),(0,a.__)("We strongly recommend that you install the free ","sureforms"),React.createElement("a",{href:"https://suremails.com?utm_medium=sureforms",target:"_blank",rel:"noopener noreferrer"},"SureMail"),(0,a.__)(" plugin! The Setup Wizard makes it easy to fix your emails. ","sureforms"),(0,a.sprintf)((0,a.__)(" Alternately, try using a From Address that matches your website domain (admin@%s).","sureforms"),i));else if(""!==r&&s)if(o!==i){var u;l=null!==(u=srfm_block_data)&&void 0!==u&&u.is_suremails_active?(0,a.sprintf)((0,a.__)("The current 'From Email' address does not match your website domain name (%1$s). This can cause your notification emails to be blocked or marked as spam. Alternately, try using a From Address that matches your website domain (admin@%2$s).","sureforms"),i,i):React.createElement(React.Fragment,null,(0,a.sprintf)((0,a.__)("The current 'From Email' address does not match your website domain name (%s). This can cause your notification emails to be blocked or marked as spam. ","sureforms"),i),(0,a.__)("We strongly recommend that you install the free ","sureforms"),React.createElement("a",{href:"https://suremails.com?utm_medium=sureforms",target:"_blank",rel:"noopener noreferrer"},"SureMail"),(0,a.__)(" plugin! The Setup Wizard makes it easy to fix your emails. ","sureforms"),(0,a.sprintf)((0,a.__)(" Alternately, try using a From Address that matches your website domain (admin@%s).","sureforms"),i))}else l=void 0;else l=(0,a.__)("Please enter a valid email address. Your notifications won't be sent if the field is not filled in correctly.","sureforms");m(l)}()}),[n]);var p=(0,a.__)("Notifications can use only one From Email so please enter a single address.","sureforms");return React.createElement(React.Fragment,null,React.createElement(Nh,{label:(0,a.__)("From Name","sureforms"),id:"srfm-email-notification-from-name",value:null==n?void 0:n.from_name,onChange:function(e){return o(Th(Th({},n),{},{from_name:e}))},required:!1,smartTagList:[{tags:u,label:(0,a.__)("Form input tags","sureforms")},{tags:i,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.fromName",setTargetData:function(e){return o(Th(Th({},n),{},{from_name:(null==n?void 0:n.from_name)+e}))}}),React.createElement(Nh,{label:(0,a.__)("From Email","sureforms"),id:"srfm-email-notification-from-email",value:null==n?void 0:n.from_email,onChange:function(e){o(Th(Th({},n),{},{from_email:e.trim()}))},required:!1,smartTagList:[{tags:c,label:(0,a.__)("Form input tags","sureforms")},{tags:l,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.fromEmail",setTargetData:function(e){return o(Th(Th({},n),{},{from_email:(null==n?void 0:n.from_email)+e}))},helpText:p}),React.createElement(ec,{direction:"column",className:"gap-0",align:"stretch"},f&&React.createElement(Fh,{message:f})))};function Rh(e){return Rh="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},Rh(e)}function Ph(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function Bh(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?Ph(Object(r),!0).forEach((function(t){zh(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):Ph(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function zh(e,t,r){return(t=function(e){var t=function(e){if("object"!=Rh(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Rh(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Rh(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function qh(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Vh(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Vh(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.")}()}function Vh(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Uh=function(e){var t,r,n,o,i,l,u=e.data,c=e.handleConfirmEmail,d=e.handleBackNotification,f=e.setHasValidationErrors,p=qh((0,s.useState)({id:u.id||!1,status:u.status||!0,is_raw_format:u.is_raw_format||!1,name:u.name||"New Notification",email_to:u.email_to||"",subject:u.subject||"",email_reply_to:u.email_reply_to||"",email_bcc:u.email_bcc||"",email_cc:u.email_cc||"",email_body:u.email_body||"",from_name:u.from_name||"{site_title}",from_email:u.from_email||"{admin_email}"}),2),h=p[0],g=p[1],b=qh((0,s.useState)({}),2),y=b[0],v=b[1],D=qh((0,s.useState)(u.subject||""),2),_=D[0],x=D[1];(0,s.useEffect)((function(){g(Bh(Bh({},h),{},{subject:_}))}),[_]);var k=null!==(t=window.srfm_block_data)&&void 0!==t&&t.smart_tags_array?Object.entries(window.srfm_block_data.smart_tags_array):[],E=null!==(r=window.srfm_block_data)&&void 0!==r&&r.smart_tags_array_email?Object.entries(window.srfm_block_data.smart_tags_array_email):[],w=null!==(n=null===(o=window.sureforms)||void 0===o?void 0:o.formSpecificSmartTags)&&void 0!==n?n:[],C=null!==(i=null===(l=window.sureforms)||void 0===l?void 0:l.formSpecificEmailSmartTags)&&void 0!==i?i:[],M=function(e){var t="subject"===e?"#srfm-email-notification-subject":"#srfm-email-notification-to",r=document.querySelector(t);r&&r.classList.remove("outline-focus-error-border")},A=function(e,t){if(t){var r=document.querySelector(e);null==r||r.classList.remove("outline-focus-error-border")}};(0,s.useEffect)((function(){A("#srfm-email-notification-to",h.email_to),A("#srfm-email-notification-subject",_)}),[h.email_to,_]),(0,s.useEffect)((function(){v(h)}),[]);var N=Ch((function(e){c(e)||f(!0)}),500);(0,s.useEffect)((function(){f(!1),h.id&&N(h)}),[h]);var j=(0,a.__)("Comma separated values are also accepted.","sureforms"),O=[{id:"name",component:React.createElement(Nh,{label:(0,a.__)("Name","sureforms"),id:"srfm-email-notification-name",value:h.name,onChange:function(e){return g(Bh(Bh({},h),{},{name:e}))},showSmartTagList:!1,smartTagList:[{tags:w,label:(0,a.__)("Form input tags","sureforms")},{tags:k,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"srfm-email-notification-name",setTargetData:function(e){return x(_+e)}})},{id:"send-email-to",component:React.createElement(Nh,{label:(0,a.__)("Send Email To","sureforms"),id:"srfm-email-notification-to",value:h.email_to,onChange:function(e){g(Bh(Bh({},h),{},{email_to:e})),M("email_to")},required:!0,helpText:j,smartTagList:[{tags:C,label:(0,a.__)("Form input tags","sureforms")},{tags:E,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.sendEmailTo",setTargetData:function(e){return g(Bh(Bh({},h),{},{email_to:h.email_to+e}))}})},{id:"subject",component:React.createElement(Nh,{label:(0,a.__)("Subject","sureforms"),id:"srfm-email-notification-subject",value:_,onChange:function(e){x(e),M("subject")},required:!0,smartTagList:[{tags:w,label:(0,a.__)("Form input tags","sureforms")},{tags:k,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.Subject",setTargetData:function(e){return x(_+e)}})},{id:"email-body",component:React.createElement("div",{className:"py-2 gap-6"},React.createElement(wh,{handleContentChange:function(e){g(Bh(Bh({},h),{},{email_body:e}))},content:h.email_body,formData:h,setFormData:g,allData:!0}))},{id:"from-email",component:React.createElement(Lh,{formData:h,setFormData:g,genericSmartTags:k,genericEmailSmartTags:E,formSmartTags:w,formEmailSmartTags:C})},{id:"cc",component:React.createElement(Nh,{label:(0,a.__)("CC","sureforms"),id:"srfm-email-notification-cc",value:h.email_cc,onChange:function(e){return g(Bh(Bh({},h),{},{email_cc:e}))},helpText:j,required:!1,smartTagList:[{tags:C,label:(0,a.__)("Form input tags","sureforms")},{tags:E,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.CC",setTargetData:function(e){return g(Bh(Bh({},h),{},{email_cc:h.email_cc+e}))}})},{id:"bcc",component:React.createElement(Nh,{label:(0,a.__)("BCC","sureforms"),id:"srfm-email-notification-bcc",value:h.email_bcc,onChange:function(e){return g(Bh(Bh({},h),{},{email_bcc:e}))},required:!1,helpText:j,smartTagList:[{tags:C,label:(0,a.__)("Form input tags","sureforms")},{tags:E,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.BCC",setTargetData:function(e){return g(Bh(Bh({},h),{},{email_bcc:h.email_bcc+e}))}})},{id:"reply-to",component:React.createElement(Nh,{label:(0,a.__)("Reply To","sureforms"),id:"srfm-email-notification-reply-to",value:h.email_reply_to,onChange:function(e){return g(Bh(Bh({},h),{},{email_reply_to:e}))},required:!1,helpText:j,smartTagList:[{tags:C,label:(0,a.__)("Form input tags","sureforms")},{tags:E,label:(0,a.__)("Generic tags","sureforms")}],tagFor:"emailConfirmation.replyTo",setTargetData:function(e){return g(Bh(Bh({},h),{},{email_reply_to:h.email_reply_to+e}))}})}],T=function(e,t){return(0,m.applyFilters)("srfm.singleFormEmail.settings",e,t)}(O,e);return T&&0!==T.length||(T=O),React.createElement(Sc,{title:(0,a.__)("Email Notifications","sureforms"),actionBtnText:(0,a.__)("Cancel","sureforms"),actionBtnVariant:"outline",onClickAction:function(){h.id&&c(y),d()},onClickBack:function(){c(h)&&d()},shouldShowAutoSaveText:!0},React.createElement(ec,{direction:"column",className:"gap-4 px-2"},T.map((function(e){return e.component}))))};var Hh=o(60443);const Yh={"top-left":"top-0 bottom-0 left-0 justify-start items-start","top-right":"top-0 bottom-0 right-0 justify-start items-end","bottom-left":"top-0 bottom-0 left-0 justify-end items-start","bottom-right":"top-0 bottom-0 right-0 justify-end items-end"},Qh={neutral:"border-alert-border-neutral bg-alert-background-neutral",custom:"border-alert-border-neutral bg-alert-background-neutral",info:"border-alert-border-info bg-alert-background-info",success:"border-alert-border-green bg-alert-background-green",warning:"border-alert-border-warning bg-alert-background-warning",error:"border-alert-border-danger bg-alert-background-danger"},Wh="bg-background-inverse border-background-inverse",Gh={light:"text-icon-secondary",dark:"text-icon-inverse"};let Zh=!1;const $h=({toastItem:e,title:t="",content:r="",autoDismiss:n=!0,dismissAfter:o=5e3,theme:i="light",design:a="stack",icon:s,variant:l="neutral",removeToast:u})=>{const c=(0,Ie.useRef)(0),d=(0,Ie.useRef)(0),f=(0,Ie.useRef)(),m=(e,t=o)=>{if(n&&!(o<0))return c.current=(new Date).getTime(),setTimeout((()=>{"function"==typeof u&&u(e.id)}),t)};(0,Ie.useEffect)((()=>{const t=o;return f.current=m(e,t),()=>{clearTimeout(f.current)}}),[]),(0,Ie.useEffect)((()=>{!e?.dismiss||"function"!=typeof u||u(e.id)}),[e]);const p=()=>{"function"==typeof u&&e?.action?.onClick?.((()=>u(e.id)))};let h=null;return"stack"===a&&(h=(0,Se.jsx)("div",{className:du("flex items-center justify-start p-4 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Wh:Qh?.[l],"w-[22.5rem]"),onMouseEnter:()=>{clearTimeout(f.current),d.current=(new Date).getTime()},onMouseLeave:()=>{f.current=m(e,o-(d.current-c.current))},children:"custom"!==e.type?(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Cc({variant:l,icon:s,theme:i})}),(0,Se.jsxs)("div",{className:"flex flex-col items-start justify-start gap-0.5 mr-6",children:[Ac({title:t,theme:i}),Nc({content:r,theme:i}),e?.action?.label&&"function"==typeof e?.action?.onClick&&(0,Se.jsx)("div",{className:"mt-2.5",children:Mc({actionLabel:e?.action?.label,actionType:e?.action?.type??"button",onAction:p,theme:i})})]}),(0,Se.jsx)("div",{className:"absolute right-4 top-4 [&_svg]:size-5",children:(0,Se.jsx)("button",{className:du("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Gh[i]??Gh.light),onClick:()=>{"function"==typeof u&&u(e.id)},children:(0,Se.jsx)(yu,{})})})]}):e?.jsx?.({close:()=>u(e.id),action:e?.action?{...e?.action,onClick:p}:null})})),"inline"===a&&(h=(0,Se.jsxs)("div",{className:du("flex items-center justify-start p-3 gap-2 relative border border-solid rounded-md shadow-lg","dark"===i?Wh:Qh?.[l],"lg:w-[47.5rem] w-full"),children:[(0,Se.jsx)("div",{className:"self-start flex items-center justify-center [&_svg]:size-5 shrink-0",children:Cc({variant:l,icon:s,theme:i})}),(0,Se.jsxs)("div",{className:"flex items-start justify-start gap-1 mr-10 [&>span:first-child]:shrink-0",children:[Ac({title:t,theme:i}),Nc({content:r,theme:i})]}),(0,Se.jsx)("div",{className:"absolute right-3 top-3 [&_svg]:size-5",children:(0,Se.jsx)("button",{className:du("bg-transparent m-0 p-0 border-none focus:outline-none active:outline-none cursor-pointer",Gh[i]??Gh.light),onClick:()=>u(e.id),children:(0,Se.jsx)(yu,{})})})]})),h},Kh=(eg=({position:e="top-right",design:t="stack",theme:r="light",className:n="",autoDismiss:o=!0,dismissAfter:i=5e3})=>{const[a,s]=(0,Ie.useState)([]);(0,Ie.useEffect)((()=>{Hh.$.subscribe((e=>{e?.dismiss?s((t=>t.map((t=>t.id===e.id?{...t,dismiss:!0}:t)))):setTimeout((()=>{(0,vu.flushSync)((()=>s((t=>-1!==t.findIndex((t=>t.id===e.id))?t.map((t=>t.id===e.id?{...t,...e}:t)):[...t,e]))))}))}))}),[]);const l=e=>{s((t=>t.filter((t=>t.id!==e))))};return(0,Se.jsx)("ul",{className:du("fixed flex flex-col list-none z-20 p-10 pointer-events-none [&>li]:pointer-events-auto gap-3",Yh[e]??Yh["top-right"],n),children:(0,Se.jsx)($e,{initial:!1,children:a.map((e=>(0,Se.jsx)(gl.li,{initial:{opacity:0,y:50,scale:.7},animate:{opacity:1,y:0,scale:1},exit:{opacity:0,scale:.6,transition:{duration:.15}},layoutId:`toast-${e.id}`,children:(0,Se.jsx)($h,{toastItem:e,title:e.title,content:e?.description,icon:e?.icon??void 0,design:e?.design??t,autoDismiss:e?.autoDismiss??o,dismissAfter:e?.dismissAfter??i,removeToast:l,variant:e.type,theme:e?.theme??r})},e.id)))})})},(0,Ie.memo)((e=>{const t=e.singleTon;return Zh&&t?null:(Zh=!0,(0,Se.jsx)(eg,{...e}))}))),Xh=bu("Minus",[["path",{d:"M5 12h14",key:"1ays0h"}]]),Jh=(0,Ie.forwardRef)((({id:e,label:t,defaultChecked:r=!1,checked:n,onChange:o,indeterminate:i,disabled:a,size:s="md",className:l,...u},c)=>{const d=(0,Ie.useMemo)((()=>e||`checkbox-${hc()}`),[e]),f=(0,Ie.useMemo)((()=>typeof n<"u"),[n]),[m,p]=(0,Ie.useState)(r||!1),h="primary",g={sm:{checkbox:"size-4 rounded gap-1",icon:"size-3",text:"text-sm",description:"text-sm",gap:"gap-0.5"},md:{checkbox:"size-5 rounded gap-1",icon:"size-4",text:"text-base",description:"text-sm",gap:"gap-1"}},b={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},y=(0,Ie.useCallback)((()=>f?n:m),[f,n,m]),v=(0,Ie.useCallback)((()=>(0,Ie.isValidElement)(t)?t:t?.heading||t?.description?(0,Se.jsxs)("div",{className:g[s].gap,children:[t?.heading&&(0,Se.jsx)(gc,{className:du("text-text-primary font-medium leading-4 m-0",g[s].text,g[s].gap,a&&"text-text-disabled"),htmlFor:d,children:t?.heading}),t?.description&&(0,Se.jsx)(gc,{tag:"p",className:du("font-normal leading-5 m-0",g[s].description,a&&"text-text-disabled"),variant:"help",children:t?.description})]}):null),[t,s,a]);return(0,Se.jsxs)("div",{className:du("inline-flex items-center justify-center gap-2",!!t&&"items-start",a&&"cursor-not-allowed"),children:[(0,Se.jsxs)("label",{className:du("relative flex items-center justify-center rounded-full p-0.5",!a&&"cursor-pointer"),htmlFor:d,children:[(0,Se.jsx)("input",{ref:c,id:d,type:"checkbox",className:du("peer relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",b[h].checkbox,g[s].checkbox,a&&"cursor-not-allowed disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled",l),checked:y(),onChange:e=>{if(a)return;const t=e.target.checked;f||p(t),"function"==typeof o&&o(t)},disabled:a,...u}),(0,Se.jsx)("span",{className:du("pointer-events-none inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",b[h].icon,a&&"cursor-not-allowed peer-disabled:text-border-disabled"),children:i?(0,Se.jsx)(Xh,{className:du(g[s]?.icon)}):(0,Se.jsx)(_c,{className:du(g[s]?.icon)})})]}),!!t&&v()]})}));var eg;Jh.displayName="Checkbox";const tg=(0,Ie.createContext)(void 0),rg=()=>{const e=(0,Ie.useContext)(tg);if(!e)throw new Error("Table components must be used within Table component");return e},ng=({children:e,className:t,checkboxSelection:r=!1,...n})=>{const o={checkboxSelection:r},i=Ie.Children.toArray(e).find((e=>Ie.isValidElement(e)&&e.type===ug)),a=Ie.Children.toArray(e).filter((e=>Ie.isValidElement(e)&&e.type!==ug));return(0,Se.jsx)(tg.Provider,{value:o,children:(0,Se.jsxs)("div",{className:"flow-root border-0.5 border-solid border-border-subtle rounded-md divide-y-0.5 divide-x-0 divide-solid divide-border-subtle overflow-hidden",children:[(0,Se.jsx)("div",{className:"overflow-x-auto w-full",children:(0,Se.jsx)("div",{className:"relative",children:(0,Se.jsx)("table",{className:du("table-fixed min-w-full border-collapse border-spacing-0",t),...n,children:a})})}),i]})})},og=({children:e,className:t,selected:r,onChangeSelection:n,indeterminate:o,disabled:i,...a})=>{const{checkboxSelection:s}=rg();return(0,Se.jsx)("thead",{className:du("bg-background-secondary border-x-0 border-t-0 border-b-0.5 border-solid border-border-subtle",t),...a,children:(0,Se.jsxs)("tr",{children:[s&&(0,Se.jsx)("th",{scope:"col",className:"relative px-5.5 w-11 overflow-hidden",children:(0,Se.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,Se.jsx)(Jh,{size:"sm",checked:r,indeterminate:o,disabled:i,onChange:e=>{"function"==typeof n&&n(e)},"aria-label":r?"Deselect all":"Select all"})})}),e]})})},ig=({children:e,className:t,...r})=>(0,Se.jsx)("th",{scope:"col",className:du("p-3 text-left text-sm font-medium leading-5 text-text-primary",t),...r,children:e}),ag=({children:e,className:t,...r})=>(0,Se.jsx)("tbody",{className:du("bg-background-primary divide-y-0.5 divide-x-0 divide-solid divide-border-subtle",t),...r,children:e}),sg=({children:e,selected:t,value:r,className:n,onChangeSelection:o,...i})=>{const{checkboxSelection:a}=rg();return(0,Se.jsxs)("tr",{className:du("hover:bg-background-secondary",t&&"bg-background-secondary",n),...i,children:[a&&(0,Se.jsx)("td",{className:"relative px-5.5 w-11 overflow-hidden",children:(0,Se.jsx)("div",{className:"absolute inset-0 grid grid-cols-1 place-content-center",children:(0,Se.jsx)(Jh,{size:"sm",checked:t,onChange:e=>{"function"==typeof o&&o(e,r)},"aria-label":"Select row"})})}),e]})},lg=({children:e,className:t,...r})=>(0,Se.jsx)("td",{className:du("px-3 py-3.5 text-sm font-normal leading-5 text-text-secondary",t),...r,children:e}),ug=({children:e,className:t,...r})=>{const{checkboxSelection:n}=rg();return(0,Se.jsx)("div",{className:du("px-3 py-3",n&&"px-4",t),...r,children:e})};ng.displayName="Table",og.displayName="Table.Head",ig.displayName="Table.HeadCell",ag.displayName="Table.Body",sg.displayName="Table.Row",lg.displayName="Table.Cell",ug.displayName="Table.Footer",ng.Head=og,ng.HeadCell=ig,ng.Body=ag,ng.Row=sg,ng.Cell=lg,ng.Footer=ug;const cg=lc("Copy",[["rect",{width:"14",height:"14",x:"8",y:"8",rx:"2",ry:"2",key:"17jyea"}],["path",{d:"M4 16c-1.1 0-2-.9-2-2V4c0-1.1.9-2 2-2h10c1.1 0 2 .9 2 2",key:"zix9uf"}]]),dg=lc("PenLine",[["path",{d:"M12 20h9",key:"t2du7b"}],["path",{d:"M16.376 3.622a1 1 0 0 1 3.002 3.002L7.368 18.635a2 2 0 0 1-.855.506l-2.872.838a.5.5 0 0 1-.62-.62l.838-2.872a2 2 0 0 1 .506-.854z",key:"1ykcvy"}]]),fg=lc("Trash",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}]]);function mg(e){return mg="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},mg(e)}var pg=["ariaLabel","icon","onClick","variant","classNames","label"];function hg(e){return function(e){if(Array.isArray(e))return _g(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Dg(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 gg(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function bg(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?gg(Object(r),!0).forEach((function(t){yg(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):gg(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function yg(e,t,r){return(t=function(e){var t=function(e){if("object"!=mg(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=mg(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mg(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function vg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Dg(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.")}()}function Dg(e,t){if(e){if("string"==typeof e)return _g(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?_g(e,t):void 0}}function _g(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function xg(){return xg=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},xg.apply(null,arguments)}var kg=(0,s.forwardRef)((function(e,t){var r=e.ariaLabel,n=e.icon,o=e.onClick,i=e.variant,a=void 0===i?"ghost":i,s=e.classNames,l=void 0===s?"text-icon-secondary":s,u=e.label,c=void 0===u?"":u,d=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(-1!==t.indexOf(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],-1===t.indexOf(r)&&{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(e,pg);return React.createElement(nc,xg({"aria-label":r,className:l,variant:a,size:"xs",onClick:o,icon:n,ref:t},d),c||"")}));const Eg=function(e){var t,r=e.setHasValidationErrors,n=e.emailNotificationData,o=vg((0,s.useState)(!1),2),i=o[0],c=o[1],d=vg((0,s.useState)([]),2),f=d[0],p=d[1],h=vg((0,s.useState)(null),2),g=h[0],b=h[1],y=(0,l.useDispatch)(u.store).editPost,v=function(e){c(!0),p(e)};function D(e,t){var r={};r[e]=t,y({meta:r})}var _=[{label:(0,a.__)("Status","sureforms")},{label:(0,a.__)("Name","sureforms")},{label:(0,a.__)("Subject","sureforms")},{label:(0,a.__)("Actions","sureforms")}],k=null===(t=srfm_admin)||void 0===t?void 0:t.is_rtl,E=k?"top-left":"top-right";if((0,s.useEffect)((function(){function e(){b(null)}return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[g]),i)return React.createElement(React.Fragment,null,React.createElement(Kh,{position:E,design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3,className:(0,x.cn)("z-[999999]",k?"[&>li>div>div.absolute]:right-auto [&>li>div>div.absolute]:left-[0.75rem!important]":"")}),React.createElement(Uh,{setHasValidationErrors:r,handleConfirmEmail:function(e){var t=e.email_to,o=e.subject,i=!1;if(t=t.trim(),o=o.trim(),!t){var s=document.querySelector("#srfm-email-notification-to");s&&s.classList.add("outline-focus-error-border"),i=!0}if(!o){var l=document.querySelector("#srfm-email-notification-subject");l&&l.classList.add("outline-focus-error-border"),i=!0}if(i)return Hh.o.dismiss(),Hh.o.error((0,a.__)("Please fill out the required field.","sureforms"),{duration:500}),r(!0),!1;var u=n;if(e.id)u=u.map((function(t){return t.id===e.id?e:t}));else{var c=n.length+1;e.id=c,u=[].concat(hg(u),[e])}return D("_srfm_email_notification",u),Hh.o.dismiss(),!0},handleBackNotification:function(){c(!1),r(!1)},data:f}));var w=(0,m.applyFilters)("srfm.emailNotification.loaded",[]);return w&&0!==w.length||(w=[]),React.createElement(Sc,{title:(0,a.__)("Email Notifications","sureforms"),actionBtnText:(0,a.__)("Add Notification","sureforms"),onClickAction:v,className:"gap-2"},React.createElement(Kh,{position:E,design:"stack",theme:"light",autoDismiss:!0,dismissAfter:5e3,className:(0,x.cn)("z-[999999]",k?"[&>li>div>div.absolute]:right-auto [&>li>div>div.absolute]:left-[0.75rem!important]":"")}),React.createElement(ng,{className:"rounded-md"},React.createElement(ng.Head,null,_.map((function(e,t){return React.createElement(ng.HeadCell,{key:t,className:3===t?"text-right":""},e.label)}))),React.createElement(ng.Body,null,n&&n.map((function(e){return React.createElement(ng.Row,{key:e.id,onChangeSelection:function(){},value:{status:e.status,name:e.name,subject:e.subject},className:"hover:bg-background-primary"},React.createElement(ng.Cell,null,React.createElement(yc,{"aria-label":"Email Notification Switch",id:e.id,size:"sm",checked:e.status,onChange:function(){var t;t=e,D("_srfm_email_notification",n.map((function(e){return e.id===t.id?bg(bg({},e),{},{status:!e.status}):e}))),Hh.o.dismiss(),t.status?Hh.o.success((0,a.__)("Email Notification disabled successfully.","sureforms"),{duration:500}):Hh.o.success((0,a.__)("Email Notification enabled successfully.","sureforms"),{duration:500})}})),React.createElement(ng.Cell,null,e.name),React.createElement(ng.Cell,null,e.subject),React.createElement(ng.Cell,null,React.createElement(ec,{align:"center",className:"gap-2",justify:"end"},React.createElement(kg,{ariaLabel:(0,a.__)("Duplicate","sureforms"),icon:React.createElement(cg,{className:"size-4"}),onClick:function(){return(r=bg({},t=e)).id&&(r.id=n.length+1),D("_srfm_email_notification",[].concat(hg(n),[r])),(0,m.doAction)("srfm.emailNotification.duplicated",t,r),Hh.o.dismiss(),void Hh.o.success((0,a.__)("Email Notification duplicated successfully.","sureforms"),{duration:500});var t,r}}),React.createElement(kg,{ariaLabel:(0,a.__)("Edit","sureforms"),icon:React.createElement(dg,{className:"size-4"}),onClick:function(){return v(e)}}),React.createElement(Mh,{arrow:!0,offset:20,content:React.createElement(ec,{direction:"column",className:"gap-2"},React.createElement("p",{className:"text-[13px] font-normal"},(0,a.__)("Are you sure to delete this?","sureforms")),React.createElement(ec,{className:"gap-3"},React.createElement(kg,{ariaLabel:(0,a.__)("Cancel","sureforms"),onClick:function(){return b(null)},label:(0,a.__)("Cancel","sureforms"),variant:"outline",className:"px-3"}),React.createElement(kg,{ariaLabel:(0,a.__)("Confirm","sureforms"),onClick:function(){return t=e,D("_srfm_email_notification",n.filter((function(e){return e.id!==t.id}))),(0,m.doAction)("srfm.emailNotification.deleted",t),Hh.o.dismiss(),void Hh.o.success((0,a.__)("Email Notification deleted successfully.","sureforms"),{duration:500});var t},label:(0,a.__)("Confirm","sureforms"),variant:"primary",className:"px-2 ml-2",destructive:!0}))),placement:"top",triggers:["click","focus"],tooltipPortalId:"srfm-settings-container",interactive:!0,className:"z-999999",variant:"light",open:g===e.id,setOpen:function(){return b(e.id)}},React.createElement(kg,{ariaLabel:(0,a.__)("Delete","sureforms"),icon:React.createElement(fg,{className:"text-icon-secondary size-4"}),onClick:function(){b(e.id)}})))))})))),w.map((function(e){return e.component})))},wg=lc("Plus",[["path",{d:"M5 12h14",key:"1ays0h"}],["path",{d:"M12 5v14",key:"s699le"}]]),Cg=lc("Trash2",[["path",{d:"M3 6h18",key:"d0wm0j"}],["path",{d:"M19 6v14c0 1-1 2-2 2H7c-1 0-2-1-2-2V6",key:"4alrt4"}],["path",{d:"M8 6V4c0-1 1-2 2-2h4c1 0 2 1 2 2v2",key:"v07s0e"}],["line",{x1:"10",x2:"10",y1:"11",y2:"17",key:"1uufr5"}],["line",{x1:"14",x2:"14",y1:"11",y2:"17",key:"xtxkd"}]]);function Mg(e,t,r){return(t=function(e){var t=function(e){if("object"!=Ng(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Ng(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Ng(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Ag(e){return function(e){if(Array.isArray(e))return Tg(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||Og(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 Ng(e){return Ng="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},Ng(e)}function jg(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||Og(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.")}()}function Og(e,t){if(e){if("string"==typeof e)return Tg(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Tg(e,t):void 0}}function Tg(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Sg=function(e){var t,r,n=e.defaultValue,o=e.onChange,i=e.placeholder,l=e.type,u=e.label,c=e.withSmartTags,d=null!==(t=null===(r=window.sureforms)||void 0===r?void 0:r.formSpecificSmartTags)&&void 0!==t?t:[],f=jg((0,s.useState)(n),2),m=f[0],p=f[1],h=function(e){o(e),p(e)};return React.createElement("div",{className:"space-y-1.5 flex-1"},u&&React.createElement(gc,null,u),React.createElement(Oc,{className:(0,x.cn)(c&&"[&>input]:pr-9 [&>input+div]:right-0 [&>input+div]:pr-2"),onChange:function(e){h(e)},value:m,type:null!=l?l:"text",placeholder:null!=i?i:"",suffix:c&&React.createElement(Zp,{tagsArray:[{tags:d,label:(0,a.__)("Form input tags","sureforms")}],setTargetData:h,triggerSize:"xs",triggerClassName:"!pointer-events-auto [box-shadow:none]",dropdownPlacement:"bottom-end"}),size:"md"}))};const Ig=function(e){var t=e.data,r=e.label,n=e.helpText,o=e.header,i=e.withSmartTags,l=e.handleOnChange,u=e.enabled,c=e.setEnabled,d=jg((0,s.useState)(t),2),f=d[0],m=d[1];return(0,s.useEffect)((function(){Array.isArray(t)&&t.length?m(t):t&&"object"===Ng(t)?m([t]):m([{"":""}])}),[t]),React.createElement("div",{className:"space-y-6"},React.createElement(Jh,{label:{heading:null!=r?r:"",description:null!=n?n:""},checked:u,onChange:function(e){c(e)},size:"sm"}),u&&React.createElement("div",{className:"space-y-1.5 w-full"},React.createElement(gc,null,o),React.createElement("div",{className:"space-y-2"},f.map((function(e,t){var r,n;return React.createElement("div",{key:"keyValue_".concat(t),className:"flex items-center justify-between gap-3 w-full"},React.createElement("div",{className:"flex gap-3 items-center w-full"},React.createElement(Sg,{type:"text",placeholder:(0,a.__)("Add Key","sureforms"),defaultValue:null!==(r=Object.keys(e)[0])&&void 0!==r?r:"",onChange:function(e){return function(e,t){var r,n=null!==(r=Object.values(f[e])[0])&&void 0!==r?r:"",o=Ag(f);o[e]=Mg({},t,n),l(o)}(t,e)}}),React.createElement(Sg,{type:"text",placeholder:(0,a.__)("Add Value","sureforms"),defaultValue:null!==(n=Object.values(e)[0])&&void 0!==n?n:"",withSmartTags:i,onChange:function(e){return function(e,t){var r,n=null!==(r=Object.keys(f[e])[0])&&void 0!==r?r:"",o=Ag(f);o[e]=Mg({},n,t),l(o)}(t,e)}})),React.createElement("div",{className:"flex gap-3 items-center justify-end"},React.createElement(nc,{size:"md",variant:"outline",onClick:function(){return function(e){var t=[].concat(Ag(f.slice(0,e+1)),[{"":""}],Ag(f.slice(e+1)));l(t)}(t)},icon:React.createElement(wg,null),iconPosition:"left"},(0,a.__)("Add","sureforms")),React.createElement(nc,{disabled:1===(null==f?void 0:f.length),variant:"ghost",size:"sm",onClick:function(){return function(e){var t=Ag(f),r=[].concat(Ag(t.slice(0,e)),Ag(t.slice(e+1)));m(r.length?r:[{"":""}]),l(r.length?r:[{"":""}])}(t)},icon:React.createElement(Cg,null)})))})))))},Fg=bu("ChevronsUpDown",[["path",{d:"m7 15 5 5 5-5",key:"1hf1tw"}],["path",{d:"m7 9 5-5 5 5",key:"sgt6xg"}]]),Lg=bu("Search",[["circle",{cx:"11",cy:"11",r:"8",key:"4ej97u"}],["path",{d:"m21 21-4.3-4.3",key:"1qie3q"}]]),Rg={sm:{icon:"[&>svg]:size-4",searchIcon:"[&>svg]:size-4",selectButton:"px-2.5 py-2 rounded text-xs font-medium leading-4 min-h-[2rem]",multiSelect:"pl-2 pr-2 py-1.5",displaySelected:"text-xs font-normal",dropdown:"rounded-md",dropdownItemsWrapper:"p-1.5",searchbarWrapper:"p-3 flex items-center gap-0.5",searchbar:"font-medium text-sm",searchbarIcon:"size-4",label:"text-sm font-medium"},md:{icon:"[&>svg]:size-5",searchIcon:"[&>svg]:size-5",selectButton:"px-3.5 py-2.5 rounded-md text-sm font-medium leading-4 min-h-[2.5rem]",multiSelect:"pl-2 pr-2.5 py-2",displaySelected:"text-sm font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-sm font-medium"},lg:{icon:"[&>svg]:size-6",searchIcon:"[&>svg]:size-5",selectButton:"px-4 py-3 rounded-lg text-sm font-medium leading-5 min-h-[3rem]",multiSelect:"pl-2.5 pr-3 py-2.5",displaySelected:"text-base font-normal",dropdown:"rounded-lg",dropdownItemsWrapper:"p-2",searchbarWrapper:"p-2.5 flex items-center gap-1",searchbar:"font-medium text-sm",searchbarIcon:"size-5",label:"text-base font-medium"}},Pg="group-disabled:text-field-color-disabled",Bg={sm:"w-[calc(100%+0.75rem)] translate-x-[-0.375rem]",md:"w-[calc(100%+1rem)] translate-x-[-0.5rem]",lg:"w-[calc(100%+1rem)] translate-x-[-0.5rem]"},zg={sm:"py-1.5 px-2 text-xs font-normal",md:"p-2 text-sm font-normal",lg:"p-2 text-base font-normal"},qg=e=>"string"==typeof e?e:"object"==typeof e&&"textContent"in e?e.textContent?.toString().toLowerCase()||"":"object"==typeof e&&"children"in e?qg(e.children):"",Vg=(0,Ie.forwardRef)((({label:e="",size:t="sm",className:r="",type:n="pill",variant:o="neutral",icon:i=null,disabled:a=!1,onClose:s=()=>{},closable:l=!1,onMouseDown:u=()=>{},disableHover:c=!1},d)=>{const f={neutral:"bg-badge-background-gray text-badge-color-gray border-badge-border-gray",red:"bg-badge-background-red text-badge-color-red border-badge-border-red",yellow:"bg-badge-background-yellow text-badge-color-yellow border-badge-border-yellow",green:"bg-badge-background-green text-badge-color-green border-badge-border-green",blue:"bg-badge-background-sky text-badge-color-sky border-badge-border-sky",inverse:"bg-background-inverse text-text-inverse border-background-inverse",disabled:"bg-badge-background-disabled text-badge-color-disabled border-badge-border-disabled disabled cursor-not-allowed"};let m="",p="group relative justify-center flex items-center cursor-pointer";const h={xxs:"[&>svg]:size-3",xs:"[&>svg]:size-3",sm:"[&>svg]:size-3",md:"[&>svg]:size-4",lg:"[&>svg]:size-5"};return a?(m=f.disabled,p+=" cursor-not-allowed disabled"):m=f[o],e?(0,Se.jsxs)("span",{className:du("font-medium border-badge-border-gray flex items-center justify-center border border-solid box-border max-w-full transition-colors duration-150 ease-in-out",{xxs:"py-0.5 px-0.5 text-xs h-4",xs:"py-0.5 px-1 text-xs h-5",sm:"py-1 px-1.5 text-xs h-6",md:"py-1 px-1.5 text-sm h-7",lg:"py-1 px-1.5 text-base h-8"}[t],{pill:"rounded-full",rounded:"rounded"}[n],"gap-0.5",m,!c&&{neutral:"hover:bg-badge-hover-gray",red:"hover:bg-badge-hover-red",yellow:"hover:bg-badge-hover-yellow",green:"hover:bg-badge-hover-green",blue:"hover:bg-badge-hover-sky",inverse:"hover:bg-badge-hover-inverse",disabled:"hover:bg-badge-hover-disabled"}[o],r),ref:d,children:[i?(0,Se.jsx)("span",{className:du("justify-center flex items-center",h[t]),children:i}):null,(0,Se.jsx)("span",{className:"px-1 truncate inline-block",children:e}),l&&(0,Se.jsxs)("span",{className:du(p,h[t]),onMouseDown:u,role:"button",tabIndex:0,...!a&&{onClick:s},children:[(0,Se.jsx)("span",{className:"sr-only",children:`Remove ${e}`}),(0,Se.jsx)(yu,{}),(0,Se.jsx)("span",{className:"absolute -inset-1"})]})]}):null}));Vg.displayName="Badge";const Ug=bu("LoaderCircle",[["path",{d:"M21 12a9 9 0 1 1-6.219-8.56",key:"13zald"}]]),Hg=({variant:e="primary",size:t="md",icon:r=null,className:n=""})=>{const o={primary:"text-brand-primary-600",secondary:"text-background-primary"}[e],i={sm:"[&>svg]:size-4",md:"[&>svg]:size-5",lg:"[&>svg]:size-6",xl:"[&>svg]:size-8"}[t];return(0,Se.jsx)("span",{className:du("flex",i,o,n),children:r||(0,Se.jsx)(Ug,{className:"animate-spin shrink-0"})})},Yg=(0,Ie.createContext)({}),Qg=()=>(0,Ie.useContext)(Yg);function Wg({children:e,icon:t=null,placeholder:r="Select an option",optionIcon:n=null,render:o,label:i,className:a,...s}){const{sizeValue:l,getReferenceProps:u,getValues:c,selectId:d,refs:f,isOpen:m,multiple:p,combobox:h,setSelected:g,onChange:b,isControlled:y,disabled:v,by:D}=Qg(),_={sm:"xs",md:"sm",lg:"md"}[l],x=(0,Ie.useCallback)((()=>{if(t)return t;const e="text-field-placeholder group-disabled:text-icon-disabled";return h?(0,Se.jsx)(Fg,{className:e}):(0,Se.jsx)(jp,{className:e})}),[t]),k=(0,Ie.useCallback)((()=>{const t=c();if(!t)return null;if(p)return t.map(((e,t)=>(0,Se.jsx)(Vg,{className:"cursor-default",icon:n,type:"rounded",size:_,onMouseDown:E(e),label:"function"==typeof o?o(e):e.toString(),closable:!0,disabled:v},t)));let r="string"==typeof t?t:"";if("function"==typeof o&&(r=o(t)),"function"==typeof e&&"function"!=typeof o){const n={value:t,...p?{onClose:E(t)}:{}};r=e(n)}return((0,Ie.isValidElement)(e)||"string"==typeof e)&&"function"!=typeof o&&(r=e),(0,Se.jsx)("span",{className:du("truncate",Rg[l].displaySelected,Pg),children:r})}),[c,v]),E=e=>t=>{t?.preventDefault(),t?.stopPropagation();const r=[...c()??[]],n=r.findIndex((t=>null!==t&&null!==e&&"object"==typeof t?t[D]===e[D]:t===e));-1!==n&&(r.splice(n,1),y||g(r),"function"==typeof b&&b(r))};return(0,Se.jsxs)("div",{className:"w-full flex flex-col items-start gap-1.5 [&_*]:box-border box-border",children:[!!i&&(0,Se.jsx)("label",{className:du(Rg[l]?.label,"text-field-label"),htmlFor:d,children:i}),(0,Se.jsxs)("button",{id:d,ref:f.setReference,className:du("flex items-center justify-between w-full box-border transition-[outline,background-color,color,box-shadow] duration-200 bg-white","outline outline-1 outline-field-border border-none cursor-pointer",!m&&"focus:ring-2 focus:ring-offset-2 focus:outline-focus-border focus:ring-focus [&:hover:not(:focus):not(:disabled)]:outline-border-strong",Rg[l].selectButton,p&&Rg[l].multiSelect,"group disabled:outline-field-border-disabled [&:hover:has(:disabled)]:outline-field-border-disabled disabled:cursor-default",a),tabIndex:0,disabled:v,...s,...u(),children:[(0,Se.jsxs)("div",{className:du("flex-1 grid items-center justify-start gap-1.5 overflow-hidden",c()&&"flex flex-wrap"),children:[k(),(p?!c()?.length:!c())&&(0,Se.jsx)("div",{className:du("[grid-area:1/1/2/3] text-field-input px-1",Rg[l].displaySelected,Pg),children:r})]}),(0,Se.jsx)("div",{className:du("flex items-center [&>svg]:shrink-0",Rg[l].icon),children:x()})]})]})}function Gg({label:e,children:t,className:r,...n}){const{index:o,totalGroups:i}=n,{sizeValue:a}=Qg();return(0,Se.jsxs)(Ie.Fragment,{children:[(0,Se.jsxs)("div",{className:"flex flex-col",role:"group","aria-label":e,children:[(0,Se.jsx)("div",{className:du("p-2 font-normal text-text-tertiary",{sm:"text-xs",md:"text-xs",lg:"text-sm"}[a],r),id:`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:e}),(0,Se.jsx)("div",{className:"flex flex-col",role:"presentation","aria-labelledby":`group-${e?.toLowerCase().replace(/\s+/g,"-")}`,children:t})]}),o<i&&!!(t&&Ie.Children.count(t)>0)&&(0,Se.jsx)("hr",{className:du("h-px my-2 w-full border-border-subtle border-b border-t-0 border-solid",Bg[a])})]})}function Zg({children:e,className:t}){const{isOpen:r,context:n,refs:o,combobox:i,floatingStyles:a,getFloatingProps:s,sizeValue:l,setSearchKeyword:u,setActiveIndex:c,setSelectedIndex:d,value:f,selected:m,getValues:p,searchKeyword:h,listContentRef:g,by:b,searchPlaceholder:y,activeIndex:v,searchFn:D,debounceDelay:_}=Qg(),x=(0,Ie.useMemo)((()=>{const t=p();let r=-1;if(t){let n=Ie.Children.toArray(e);n.length>0&&(0,Ie.isValidElement)(n[0])&&n[0].type===Gg&&(n=Ie.Children.toArray(e).map((e=>(0,Ie.isValidElement)(e)?Ie.Children.toArray(e.props.children):[])).flat()),r=n.findIndex((e=>{if(!(0,Ie.isValidElement)(e))return!1;const r=e.props.value;return"object"==typeof r&&"object"==typeof t?r[b]===t[b]:r===t}))}return r}),[f,m,e,b]);(0,Ie.useLayoutEffect)((()=>{r||(c(x),d(x))}),[x,r]),(0,Ie.useLayoutEffect)((()=>{r&&(i&&[-1,null].includes(v)||c(-1))}),[h,r]);const k=(0,Ie.useMemo)((()=>{let t=0,r=0;Ie.Children.forEach(e,(e=>{(0,Ie.isValidElement)(e)&&e.type===Gg&&Ie.Children.toArray(e.props.children).some((e=>{if(!(0,Ie.isValidElement)(e))return!1;if(h&&!D){const t=qg(e.props.children)?.toLowerCase(),r=h.toLowerCase();return t.includes(r)}return!0}))&&t++})),r=Math.max(0,t-1);let n=0,o=0;const i=e=>{if(!(0,Ie.isValidElement)(e))return null;if(e.type===Gg){const t=Ie.Children.map(e.props.children,i);if(!t?.some((e=>null!==e)))return null;const n={...e.props,children:t,index:o,totalGroups:r};return o++,(0,Ie.cloneElement)(e,n)}if(h&&!D){const t=qg(e.props?.children)?.toLowerCase(),r=h.toLowerCase();if(!t?.includes(r))return null}return(0,Ie.cloneElement)(e,{...e.props,index:n++})};return Ie.Children.map(e,i)}),[h,f,m,e,D]),E=Ie.Children.count(k);(0,Ie.useEffect)((()=>{g.current=[];let t=Ie.Children.toArray(e);t&&(0,Ie.isValidElement)(t[0])&&t[0].type===Gg&&(t=Ie.Children.toArray(t).map((e=>(0,Ie.isValidElement)(e)?e.props.children:null)).filter(Boolean)),Ie.Children.forEach(t,(e=>{if(!(0,Ie.isValidElement)(e))return;const t=qg(e.props?.children)?.toLowerCase();if(h&&!D){const e=h.toLowerCase();if(!t?.includes(e))return}g.current.push(t)}))}),[h,D]);const[w,C]=(0,Ie.useState)(!1),M=(0,Ie.useCallback)((async()=>{if(D&&"function"==typeof D&&!w){C(!0);try{await D(h)}catch(e){console.error(e)}finally{C(!1)}}}),[h]),A=((e,t=500)=>{const r=(0,Ie.useRef)(null);return(0,Ie.useCallback)(((...n)=>{r.current&&clearTimeout(r.current),r.current=setTimeout((()=>e(...n)),t)}),[e,t])})(M,_);return(0,Ie.useEffect)((()=>{"function"==typeof D&&A()}),[A]),(0,Se.jsx)(Se.Fragment,{children:r&&(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)(np,{context:n,modal:!1,visuallyHiddenDismiss:!0,children:(0,Se.jsxs)("div",{ref:o.setFloating,className:du("box-border [&_*]:box-border w-full bg-white outline-none shadow-lg outline outline-1 outline-border-subtle",i&&"grid grid-cols-1 grid-rows-[auto_1fr] divide-y divide-x-0 divide-solid divide-border-subtle",Rg[l].dropdown,!i&&"h-auto",i?"overflow-hidden":"overflow-y-auto overflow-x-hidden",t),style:{...a,zIndex:1},...s(),children:[i&&(0,Se.jsxs)("div",{className:du(Rg[l].searchbarWrapper),children:[w?(0,Se.jsx)(Hg,{className:Rg[l].searchbarIcon}):(0,Se.jsx)(Lg,{className:du("text-icon-secondary shrink-0",Rg[l].searchbarIcon)}),(0,Se.jsx)("input",{className:du("px-1 w-full placeholder:text-field-placeholder border-0 focus:outline-none focus:shadow-none",Rg[l].searchbar),type:"search",name:"keyword",placeholder:y,onChange:e=>u(e.target.value),value:h,autoComplete:"off"})]}),(0,Se.jsxs)("div",{className:du("overflow-y-auto overflow-x-hidden",!i&&"w-full h-full",Rg[l].dropdownItemsWrapper),children:[!!E&&k,!E&&(0,Se.jsx)("div",{className:du("p-2 text-center font-medium text-field-placeholder",zg[l]),children:"No items found"})]})]})})})})}function $g({children:e,root:t,id:r}){return(0,Se.jsx)(Zm,{id:r,root:t,children:e})}function Kg({value:e,selected:t,children:r,className:n,...o}){const{sizeValue:i,getItemProps:a,onKeyDownItem:s,onClickItem:l,activeIndex:u,selectedIndex:c,updateListRef:d,getValues:f,by:m,multiple:p}=Qg(),{index:h}=o,g=(0,Ie.useRef)(h),b=(0,Ie.useMemo)((()=>{if(!p)return!1;const t=f();return!!t&&t.some((t=>null!==t&&null!==e&&"object"==typeof t?t[m]===e[m]:t===e))}),[e,f]),y=(0,Ie.useMemo)((()=>"boolean"==typeof t?t:p?b:h===c),[b,c,t]);return(0,Se.jsxs)("div",{className:du("w-full flex items-center justify-between text-text-primary hover:bg-button-tertiary-hover rounded-md transition-all duration-150 cursor-pointer focus:outline-none focus-within:outline-none outline-none",zg[i],h===u&&"bg-button-tertiary-hover",n),ref:e=>{d(h,e)},role:"option",tabIndex:h===u?0:-1,"aria-selected":y&&h===u,...a({onClick(){l(g.current,e)},onKeyDown(t){s(t,g.current,e)}}),children:[(0,Se.jsx)("span",{className:"w-full truncate",children:r}),y&&(0,Se.jsx)(_c,{className:du("text-icon-on-color-disabled",{sm:"size-4",md:"size-4",lg:"size-5"}[i])})]})}const Xg=({id:e,size:t="md",value:r,defaultValue:n,onChange:o,by:i="id",children:a,multiple:s=!1,combobox:l=!1,disabled:u=!1,searchPlaceholder:c="Search...",searchFn:d,debounceDelay:f=500})=>{const m=(0,Ie.useMemo)((()=>e||`select-${hc()}`),[e]),p=(0,Ie.useMemo)((()=>typeof r<"u"),[r]),[h,g]=(0,Ie.useState)(n),[b,y]=(0,Ie.useState)(""),v=(0,Ie.useCallback)((()=>p?r:h),[p,r,h]),[D,_]=(0,Ie.useState)(!1),[x,k]=(0,Ie.useState)(null),[E,w]=(0,Ie.useState)(null),C={sm:l?256:172,md:l?256:216,lg:l?256:216},{refs:M,floatingStyles:A,context:N}=dp({strategy:"fixed",placement:"bottom-start",open:D,onOpenChange:_,whileElementsMounted:If,middleware:[Wf(5),Zf({padding:10}),$f({apply({rects:e,elements:r,availableHeight:n}){Object.assign(r.floating.style,{maxHeight:`min(${n}px, ${C[t]}px)`,maxWidth:`${e.reference.width}px`})},padding:10})]}),j=(0,Ie.useRef)([]),O=(0,Ie.useRef)([]),T=(0,Ie.useRef)(!1),S=ap(N,{event:"mousedown"}),I=cp(N),F=kp(N,{role:"listbox"}),L=_p(N,{listRef:j,activeIndex:x,selectedIndex:E,onNavigate:k,loop:!0}),R=function(e,t){var r;const{open:n,dataRef:o}=e,{listRef:i,activeIndex:a,onMatch:s,onTypingChange:l,enabled:u=!0,findMatch:c=null,resetMs:d=750,ignoreKeys:f=[],selectedIndex:m=null}=t,p=Ie.useRef(),h=Ie.useRef(""),g=Ie.useRef(null!=(r=null!=m?m:a)?r:-1),b=Ie.useRef(null),y=em(s),v=em(l),D=wm(c),_=wm(f);mm((()=>{n&&(clearTimeout(p.current),b.current=null,h.current="")}),[n]),mm((()=>{var e;n&&""===h.current&&(g.current=null!=(e=null!=m?m:a)?e:-1)}),[n,m,a]);const x=em((e=>{e?o.current.typing||(o.current.typing=e,v(e)):o.current.typing&&(o.current.typing=e,v(e))})),k=em((e=>{function t(e,t,r){const n=D.current?D.current(t,r):t.find((e=>0===(null==e?void 0:e.toLocaleLowerCase().indexOf(r.toLocaleLowerCase()))));return n?e.indexOf(n):-1}const r=i.current;if(h.current.length>0&&" "!==h.current[0]&&(-1===t(r,r,h.current)?x(!1):" "===e.key&&Td(e)),null==r||_.current.includes(e.key)||1!==e.key.length||e.ctrlKey||e.metaKey||e.altKey)return;n&&" "!==e.key&&(Td(e),x(!0)),r.every((e=>{var t,r;return!e||(null==(t=e[0])?void 0:t.toLocaleLowerCase())!==(null==(r=e[1])?void 0:r.toLocaleLowerCase())}))&&h.current===e.key&&(h.current="",g.current=b.current),h.current+=e.key,clearTimeout(p.current),p.current=setTimeout((()=>{h.current="",g.current=b.current,x(!1)}),d);const o=g.current,a=t(r,[...r.slice((o||0)+1),...r.slice(0,(o||0)+1)],h.current);-1!==a?(y(a),b.current=a):" "!==e.key&&(h.current="",x(!1))})),E=Ie.useMemo((()=>({onKeyDown:k})),[k]),w=Ie.useMemo((()=>({onKeyDown:k,onKeyUp(e){" "===e.key&&x(!1)}})),[k,x]);return Ie.useMemo((()=>u?{reference:E,floating:w}:{}),[u,E,w])}(N,{listRef:O,activeIndex:x,selectedIndex:E,onMatch:D?k:w,onTypingChange(e){T.current=e}}),{getReferenceProps:P,getFloatingProps:B,getItemProps:z}=hp([I,F,L,S,...l?[]:[R]]),q=(e,t)=>{if(s)return((e,t)=>{const r=[...v()??[]];-1===r.findIndex((e=>null!==e&&null!==t&&"object"==typeof e?e[i]===t[i]:e===t))&&(r.push(t),p||g(r),w(e),M.reference.current.focus(),_(!1),y(""),"function"==typeof o&&o(r))})(e,t);w(e),p||g(t),M.reference.current.focus(),_(!1),y(""),"function"==typeof o&&o(t)},V=(0,Ie.useCallback)(((e,t)=>{j.current[e]=t}),[]);return(0,Se.jsx)(Yg.Provider,{value:{selectedIndex:E,setSelectedIndex:w,activeIndex:x,setActiveIndex:k,selected:h,setSelected:g,handleSelect:q,combobox:l,sizeValue:t,multiple:s,onChange:o,isTypingRef:T,getItemProps:z,onClickItem:(e,t)=>{q(e,t)},onKeyDownItem:(e,t,r)=>{"Enter"===e.key&&(e.preventDefault(),q(t,r))," "===e.key&&!T.current&&(e.preventDefault(),q(t,r))},getValues:v,selectId:m,getReferenceProps:P,isOpen:D,value:r,updateListRef:V,refs:M,listContentRef:O,by:i,getFloatingProps:B,floatingStyles:A,context:N,searchKeyword:b,setSearchKeyword:y,disabled:u,isControlled:p,searchPlaceholder:c,searchFn:d,debounceDelay:f},children:a})};Xg.displayName="Select";const Jg=Object.assign(Xg,{Portal:$g,Button:Wg,Options:Zg,Option:Kg,OptionGroup:Gg});$g.displayName="Select.Portal",Wg.displayName="Select.Button",Zg.displayName="Select.Options",Kg.displayName="Select.Option",Gg.displayName="Select.OptionGroup";const eb={primary:{checkbox:"border-border-strong hover:border-border-interactive checked:border-border-interactive bg-white checked:bg-toggle-on checked:hover:bg-toggle-on-hover checked:hover:border-toggle-on-hover focus:ring-2 focus:ring-offset-2 focus:ring-focus",icon:"text-white"}},tb={sm:"text-sm leading-5",md:"text-base leading-6"},rb={sm:{checkbox:"size-4",icon:"size-1.5",info:"size-4"},md:{checkbox:"size-5",icon:"size-2",info:"size-5"}},nb={xs:"py-1 px-1 text-sm gap-0.5 [&>svg]:size-4",sm:"py-1 px-1.5 text-base gap-1 [&>svg]:size-4",md:"py-2 px-2.5 text-base gap-1 [&>svg]:size-5",lg:"py-2.5 px-3 text-base gap-1 [&>svg]:size-6"},ob=(0,Ie.createContext)({}),ib=()=>(0,Ie.useContext)(ob),ab=({children:e,name:t,style:r="simple",size:n="md",value:o,defaultValue:i,by:a="id",as:s="div",onChange:l,className:u,disableGroup:c=!1,vertical:d=!1,columns:f=4,multiSelection:m=!1,gapClassName:p="gap-2"})=>{const h=(0,Ie.useMemo)((()=>typeof o<"u"),[o]),g=(0,Ie.useMemo)((()=>t||`radio-button-group-${hc()}`),[t]);let b;b=h?o:m?i??[]:i;const[y,v]=(0,Ie.useState)(b),D=(0,Ie.useCallback)((e=>{if(m)v((t=>{let r;return r=Array.isArray(t)&&"string"==typeof e&&t.includes(e)?t.filter((t=>t!==e)):[...Array.isArray(t)?t:[],..."string"==typeof e?[e]:[]],"function"==typeof l&&l(r),r}));else{if(h||v(e),"function"!=typeof l)return;l(e)}}),[l]);u=du("grid grid-cols-4",mu[f],p,"tile"===r&&"gap-0",d&&"grid-cols-1",u);const _=du("tile"===r?"border border-border-subtle border-solid rounded-md shadow-sm":"gap-6",u),x=()=>(0,Se.jsx)(ob.Provider,{value:{name:g,value:h?o:y,by:a,onChange:D,isControlled:h,disableAll:c,style:r,columns:f,multiSelection:m,size:n},children:Ie.Children.map(e,(e=>(0,Ie.isValidElement)(e)?e:null))});return(0,Se.jsx)(Se.Fragment,{children:"tile"===r?(0,Se.jsx)("div",{className:_,children:x()}):(0,Se.jsx)(s,{...s===Ie.Fragment?{}:{className:u},children:x()})})};ab.displayName="RadioButton.Group";const sb=(0,Ie.forwardRef)((({id:e,label:t,value:r,children:n,disabled:o,icon:i=null,inlineIcon:a=!1,hideSelection:s=!1,reversePosition:l=!1,borderOn:u=!1,borderOnActive:c=!0,badgeItem:d=null,useSwitch:f=!1,info:m,minWidth:p=!0,...h},g)=>{const{buttonWrapperClasses:b,...y}=h,v=ib(),{name:D,value:_,by:x,onChange:k,disableAll:E,checked:w,multiSelection:C,size:M="md"}=v,A="primary",N=(0,Ie.useMemo)((()=>e||`radio-button-${hc()}`),[e]),j=(0,Ie.useMemo)((()=>E||o),[E,o]),O=(0,Ie.useMemo)((()=>C?Array.isArray(_)&&_.includes(r):typeof w<"u"?w:typeof _==typeof r&&("string"==typeof _?_===r:Array.isArray(_)?_.includes(r):_[x]===r[x])),[_,r,w]),T=(0,Ie.useCallback)((()=>(0,Ie.isValidElement)(t)?t:t?.heading?(0,Se.jsxs)("div",{className:du(!a&&{"space-y-3":"sm"===M,"space-y-4":"md"===M},l&&(f?"ml-10":"ml-4"),a&&"flex gap-2",a&&!t.description&&"items-center"),children:[i&&(0,Se.jsx)(Se.Fragment,{children:i}),(0,Se.jsxs)("div",{className:du(!i||!f||i&&d?{"space-y-0.5":"sm"===M,"space-y-1":"md"===M}:"space-y-0.5"),children:[(0,Se.jsx)("p",{className:du("text-text-primary font-medium m-0",tb[M],o&&"text-text-disabled cursor-not-allowed"),children:t.heading}),t.description&&(0,Se.jsx)("p",{className:"text-text-tertiary text-sm font-normal leading-5 m-0",children:t.description})]})]}):null),[t]);if("tile"===v.style)return(0,Se.jsx)(lb,{id:e,label:t,value:r,disabled:o,size:M,children:n});const S=()=>{j||(C?f&&k(r,!O):k(r))};return(0,Se.jsxs)("label",{className:du("inline-flex items-center relative cursor-pointer transition-all duration-300",!!t&&"items-start justify-between",p&&"min-w-[180px]",u&&"outline outline-field-border outline-1 rounded-md shadow-sm hover:outline-border-interactive",c&&u&&O&&"outline-border-interactive",{"pl-3.5 pr-2.5 py-2.5":"sm"===M&&!(i&&f),"p-3":"sm"===M&&(i&&f||i&&d),"pl-4 pr-3 py-3":"md"===M&&!(i&&f),"p-4":"md"===M&&(i&&f||i&&d)},"pr-12",j&&"cursor-not-allowed opacity-40",b),htmlFor:N,onClick:S,children:[!!t&&(0,Se.jsx)("label",{className:du("cursor-pointer",j&&"cursor-not-allowed"),htmlFor:N,children:T()}),!!m&&(0,Se.jsx)("div",{className:"absolute mr-0.5 bottom-1.5 right-3",children:(0,Se.jsx)(Mh,{title:m?.heading,content:m?.description,children:(0,Se.jsx)(Dc,{className:du("text-text-primary",rb[M]?.info)})})}),(0,Se.jsxs)("label",{className:du("absolute mr-0.5 right-3 flex items-center cursor-pointer rounded-full gap-2",l&&"left-0",j&&"cursor-not-allowed",a&&"mr-3"),onClick:S,children:[!!d&&d,!s&&(f?(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)(yc,{defaultValue:!1,size:M,onChange:()=>{C?k(r,!O):k(r)},checked:O,...y,"aria-label":t?.heading??"Switch"})}):(0,Se.jsxs)("span",{className:"relative p-0.5",children:[(0,Se.jsx)("input",{ref:g,id:N,type:C?"checkbox":"radio",className:du("peer flex relative cursor-pointer appearance-none transition-all m-0 before:content-[''] checked:before:content-[''] checked:before:hidden before:hidden !border-1.5 border-solid",!C&&"rounded-full",eb[A].checkbox,rb[M].checkbox,j&&"disabled:bg-white checked:disabled:bg-white disabled:border-border-disabled checked:disabled:border-border-disabled cursor-not-allowed"),name:D,value:r,onChange:e=>k(e.target.value),checked:O,disabled:j,...y}),(0,Se.jsx)("span",{className:du("inline-flex items-center absolute top-2/4 not-rtl:left-2/4 rtl:right-2/4 -translate-y-2/4 -translate-x-2/4 text-white opacity-0 transition-opacity peer-checked:opacity-100",eb[A].icon,j&&"peer-disabled:text-border-disabled cursor-not-allowed"),children:C?(0,Se.jsx)(_c,{className:"sm"===M?"size-3":"size-4"}):(0,Se.jsx)("div",{className:du("rounded-full bg-current",rb[M]?.icon)})})]}))]})]})}));sb.displayName="RadioButton.Button";const lb=({id:e,children:t,value:r,disabled:n,size:o="md",...i})=>{const a=ib(),{name:s,value:l,by:u,onChange:c,disableAll:d,checked:f}=a||{},m=(0,Ie.useMemo)((()=>e||`radio-button-${hc()}`),[e]),p=(0,Ie.useMemo)((()=>d||n),[d,n]),h=(0,Ie.useMemo)((()=>typeof f<"u"?f:typeof l==typeof r&&("string"==typeof l?l===r:Array.isArray(l)?l.includes(r):!(!l||!u)&&l[u]===r[u])),[l,r,f,u]),g=du("bg-background-primary text-primary cursor-pointer flex items-center justify-center","hover:bg-button-tertiary-hover","focus:outline-none",p?"text-text-disabled cursor-not-allowed":"",nb[o],"border-0 border-r border-border-subtle border-solid");return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsxs)("button",{type:"button",id:m,"aria-label":"Radio Button",className:du(g,"first:rounded-tl first:rounded-bl first:border-0 first:border-r first:border-border-subtle last:rounded-tr last:rounded-br last:border-0",h&&"bg-button-disabled"),onClick:()=>{c&&c(r)},disabled:p,...i,children:[(0,Se.jsx)("input",{type:"hidden",value:r,name:s,checked:h,onChange:e=>c?.(e.target.value)}),t]})})},ub=Object.assign(sb,{Group:ab,Button:sb});var cb=function(e){var t=e.className,r=e.cols,n=e.children;return React.createElement(ub.Group,{columns:null!=r?r:s.Children.count(n),className:(0,x.cn)("gap-3 max-w-fit",t),size:"sm"},n)},db=function(e){var t=e.label,r=e.value,n=e.checked,o=e.onChange,i=e.className;return React.createElement(ub.Button,{borderOn:!0,borderOnActive:!0,label:{heading:t},buttonWrapperClasses:(0,x.cn)("py-2 pl-2.5 pr-10 max-w-fit min-w-full",n&&"outline-focus",i),onChange:o,value:r,checked:n})};db.displayName="RadioGroup.Option",cb.Option=db;const fb=cb;function mb(e){return mb="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},mb(e)}function pb(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function hb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?pb(Object(r),!0).forEach((function(t){gb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):pb(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function gb(e,t,r){return(t=function(e){var t=function(e){if("object"!=mb(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=mb(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==mb(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function bb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var yb=[{label:(0,a.__)("Hide Form","sureforms"),value:"hide form"},{label:(0,a.__)("Reset Form","sureforms"),value:"reset form"}];const vb=function(e){var t,r,n,o=e.data,i=e.setData,l=e.pageOptions,u=e.setErrorMessage,c=e.errorMessage,d=e.keyValueComponent,f=(r=(0,s.useState)(!1),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,n)||function(e,t){if(e){if("string"==typeof e)return bb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?bb(e,t):void 0}}(r,n)||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.")}()),m=f[0],p=f[1];return(0,s.useEffect)((function(){p(!1)}),[null==o?void 0:o.confirmation_type]),React.createElement(React.Fragment,null,"same page"===(null==o?void 0:o.confirmation_type)&&React.createElement(React.Fragment,null,React.createElement("div",null,React.createElement(wh,{handleContentChange:function(e){i(hb(hb({},o),{},{message:e}))},content:null==o?void 0:o.message})),React.createElement("div",{className:"space-y-2"},React.createElement(gc,null,(0,a.__)("After Form Submission","sureforms")),React.createElement(fb,{cols:2},yb.map((function(e,t){return React.createElement(fb.Option,{key:t,label:e.label,value:e.value,checked:(null==o?void 0:o.submission_action)===e.value,onChange:function(){return i(hb(hb({},o),{},{submission_action:e.value}))}})}))))),"different page"===(null==o?void 0:o.confirmation_type)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"space-y-1.5"},React.createElement(gc,{htmlFor:"select-page"},(0,a.__)("Select Page to redirect","sureforms")),React.createElement(Jg,{options:l,value:null==o?void 0:o.page_url,onChange:function(e){p(!0),u(null),i(hb(hb({},o),{},{page_url:e}))},combobox:!0,searchPlaceholder:(0,a.__)("Search for a page","sureforms")},React.createElement(Jg.Button,{id:"select-page",placeholder:(0,a.__)("Select a page","sureforms")},null==l||null===(t=l.find((function(e){return e.value===(null==o?void 0:o.page_url)})))||void 0===t?void 0:t.label),React.createElement(Jg.Options,null,null==l?void 0:l.map((function(e){return React.createElement(Jg.Option,{key:e.value,value:e.value,selected:e.value===(null==o?void 0:o.page_url)},e.label)})))))),d()),"custom url"===(null==o?void 0:o.confirmation_type)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"space-y-1.5"},React.createElement(gc,{htmlFor:"custom-url-input",required:!0},(0,a.__)("Custom URL","sureforms")),React.createElement(Oc,{id:"custom-url-input",value:null==o?void 0:o.custom_url,onChange:function(e){p(!0),i(hb(hb({},o),{},{custom_url:e}))},size:"md"}),m&&c&&React.createElement(gc,{variant:"error",size:"sm"},c)),d()))};function Db(e){return Db="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},Db(e)}function _b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function xb(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?_b(Object(r),!0).forEach((function(t){kb(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):_b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function kb(e,t,r){return(t=function(e){var t=function(e){if("object"!=Db(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Db(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Db(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Eb(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return wb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?wb(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.")}()}function wb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Cb=function(e){var t,r=e.toast,n=e.setHasValidationErrors,o=(0,l.useSelect)((function(e){return e(u.store).getEditedPostAttribute("meta")})),i=(0,l.useDispatch)(u.store).editPost,c=Eb((0,s.useState)({}),2),d=c[0],f=c[1],p=Eb((0,s.useState)([]),2),h=p[0],g=p[1],b=Eb((0,s.useState)(null),2),y=b[0],v=b[1],D=Eb((0,s.useState)(null),2),_=D[0],k=D[1],E=Ch((function(){var e,t=A();if(v(t),""!==t)return n(!0),r.dismiss(),!1;(e={})._srfm_form_confirmation=[d],i({meta:e}),k(!0),r.dismiss()}),500);(0,s.useEffect)((function(){null!==y&&v(A()),n(!1),E(d)}),[d]),(0,s.useEffect)((function(){!0===_&&setTimeout((function(){k(!1),r.dismiss()}),500)}),[_]);var w=function(e){f(xb(xb({},d),{},{query_params:e}))},C=function(e){f(xb(xb({},d),{},{enable_query_params:e}))},M=function(){var e,t;return React.createElement(Ig,{data:null!==(e=null==d?void 0:d.query_params)&&void 0!==e?e:[{"":""}],enabled:null!==(t=null==d?void 0:d.enable_query_params)&&void 0!==t&&t,setEnabled:C,label:(0,a.__)("Add Query Parameters","sureforms"),helpText:(0,a.__)("Select if you want to add key-value pairs for form fields to include in query parameters","sureforms"),withSmartTags:!0,header:(0,a.__)("Query Parameters","sureforms"),handleOnChange:w})},A=function(){var e="";if("different page"!==(null==d?void 0:d.confirmation_type)||null!=d&&d.page_url||(e=(0,a.__)("Please select a page.","sureforms")),"custom url"===(null==d?void 0:d.confirmation_type))if(null!=d&&d.custom_url)try{var t=new URL(null==d?void 0:d.custom_url);e="https:"!==t.protocol?(0,a.__)("Suggestion: URL should use HTTPS","sureforms"):"localhost"!==t.hostname&&t.hostname.includes(".")&&t.hostname.split(".").pop().length>1?"":(0,a.__)("URL is missing Top Level Domain (TLD)","sureforms")}catch(t){e=(0,a.__)("Please enter a valid URL","sureforms")}else e=(0,a.__)("This field is required","sureforms");return e};(0,s.useEffect)((function(){(0,x.A)(g);var e=o._srfm_form_confirmation;e&&f(e[0])}),[]);var N=(0,m.applyFilters)("srfm.formConfirmation.confirmationType.inputs",[{label:(0,a.__)("Success Message","sureforms"),value:"same page",component:React.createElement(vb,{data:d,setData:f,pageOptions:h,errorMessage:y,setErrorMessage:v,keyValueComponent:M})},{label:(0,a.__)("Redirect","sureforms"),value:"different page",subOptionLabel:(0,a.__)("Redirect to","sureforms"),subOptions:[{label:(0,a.__)("Page","sureforms"),value:"different page"},{label:(0,a.__)("Custom URL","sureforms"),value:"custom url"}],component:React.createElement(vb,{data:d,setData:f,pageOptions:h,errorMessage:y,setErrorMessage:v,keyValueComponent:M})}],{data:d,setData:f,errorMessage:y,setErrorMessage:v}),j=N.find((function(e){var t;return e.value===(null==d?void 0:d.confirmation_type)||(null===(t=e.subOptions)||void 0===t?void 0:t.some((function(e){return e.value===(null==d?void 0:d.confirmation_type)})))}));return(0,s.useEffect)((function(){!j&&null!=d&&d.confirmation_type&&f(xb(xb({},d),{},{confirmation_type:"same page"}))}),[d]),React.createElement(Sc,{title:(0,a.__)("Form Confirmation","sureforms")},React.createElement("div",{className:"space-y-6"},React.createElement("div",{className:"space-y-2"},React.createElement(gc,null,(0,a.__)("Confirmation Type","sureforms")),React.createElement("div",null,React.createElement(fb,null,N.map((function(e,t){var r=function(e,t){var r;return e.value===t||(null===(r=e.subOptions)||void 0===r?void 0:r.some((function(e){return e.value===t})))}(e,null==d?void 0:d.confirmation_type);return React.createElement(fb.Option,{key:t,label:e.label,onChange:function(){return f(xb(xb({},d),{},{confirmation_type:e.value}))},value:e.value,checked:r})}))))),(null==j?void 0:j.subOptionLabel)&&React.createElement("div",{className:"space-y-2"},React.createElement(gc,null,null==j?void 0:j.subOptionLabel),React.createElement(fb,{cols:2},null==j||null===(t=j.subOptions)||void 0===t?void 0:t.map((function(e,t){return React.createElement(fb.Option,{key:t,label:e.label,value:e.value,checked:(null==d?void 0:d.confirmation_type)===e.value,onChange:function(){return f(xb(xb({},d),{},{confirmation_type:e.value}))}})})))),null==j?void 0:j.component))};var Mb=o(60799);function Ab(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return Nb(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Nb(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.")}()}function Nb(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var jb=(0,s.createContext)(null),Ob=function(e){var t,r=e.children,n=(t=(0,l.useSelect)((function(e){return e("core/editor").getEditedPostAttribute("meta")})),(0,x.xO)(null==t?void 0:t._srfm_form_restriction)||{}),o=(0,l.useDispatch)("core/editor").editPost,i=Ab((0,s.useState)(null),2),a=i[0],u=i[1],c=Ab((0,s.useState)(!1),2),d=c[0],f=c[1],m={rawMeta:n,updateMeta:function(e,t){var r=function(e,t){if(!a)return!1;var r=(0,x.A4)(a);return r[e]=t,u(r),!0}(e,t);if(r&&!d){var i=(0,x.A4)(n);i&&(i[e]=t,o({meta:{_srfm_form_restriction:JSON.stringify(i)}}))}},editMeta:function(){u((0,x.A4)(n)),f(!1)},preserveMetaData:a,setPreserveMetaData:u,newMeta:d,setNewMeta:f,resetPreserveMetaData:function(){u(null),f(!1)}};return React.createElement(jb.Provider,{value:m},r)};const Tb=lc("Info",[["circle",{cx:"12",cy:"12",r:"10",key:"1mglay"}],["path",{d:"M12 16v-4",key:"1dtifu"}],["path",{d:"M12 8h.01",key:"e9boi3"}]]),Sb=bu("ChevronLeft",[["path",{d:"m15 18-6-6 6-6",key:"1wnfg3"}]]),Ib=bu("ChevronRight",[["path",{d:"m9 18 6-6-6-6",key:"mthhwq"}]]),Fb=(0,Ie.createContext)(void 0);function Lb(){const e=(0,Ie.useContext)(Fb);if(void 0===e)throw new Error("useDayPicker() must be used within a custom component.");return e}var Rb,Pb,Bb,zb;!function(e){e.Root="root",e.Chevron="chevron",e.Day="day",e.DayButton="day_button",e.CaptionLabel="caption_label",e.Dropdowns="dropdowns",e.Dropdown="dropdown",e.DropdownRoot="dropdown_root",e.Footer="footer",e.MonthGrid="month_grid",e.MonthCaption="month_caption",e.MonthsDropdown="months_dropdown",e.Month="month",e.Months="months",e.Nav="nav",e.NextMonthButton="button_next",e.PreviousMonthButton="button_previous",e.Week="week",e.Weeks="weeks",e.Weekday="weekday",e.Weekdays="weekdays",e.WeekNumber="week_number",e.WeekNumberHeader="week_number_header",e.YearsDropdown="years_dropdown"}(Rb||(Rb={})),function(e){e.disabled="disabled",e.hidden="hidden",e.outside="outside",e.focused="focused",e.today="today"}(Pb||(Pb={})),function(e){e.range_end="range_end",e.range_middle="range_middle",e.range_start="range_start",e.selected="selected"}(Bb||(Bb={})),function(e){e.weeks_before_enter="weeks_before_enter",e.weeks_before_exit="weeks_before_exit",e.weeks_after_enter="weeks_after_enter",e.weeks_after_exit="weeks_after_exit",e.caption_after_enter="caption_after_enter",e.caption_after_exit="caption_after_exit",e.caption_before_enter="caption_before_enter",e.caption_before_exit="caption_before_exit"}(zb||(zb={}));const qb={lessThanXSeconds:{one:"less than a second",other:"less than {{count}} seconds"},xSeconds:{one:"1 second",other:"{{count}} seconds"},halfAMinute:"half a minute",lessThanXMinutes:{one:"less than a minute",other:"less than {{count}} minutes"},xMinutes:{one:"1 minute",other:"{{count}} minutes"},aboutXHours:{one:"about 1 hour",other:"about {{count}} hours"},xHours:{one:"1 hour",other:"{{count}} hours"},xDays:{one:"1 day",other:"{{count}} days"},aboutXWeeks:{one:"about 1 week",other:"about {{count}} weeks"},xWeeks:{one:"1 week",other:"{{count}} weeks"},aboutXMonths:{one:"about 1 month",other:"about {{count}} months"},xMonths:{one:"1 month",other:"{{count}} months"},aboutXYears:{one:"about 1 year",other:"about {{count}} years"},xYears:{one:"1 year",other:"{{count}} years"},overXYears:{one:"over 1 year",other:"over {{count}} years"},almostXYears:{one:"almost 1 year",other:"almost {{count}} years"}};function Vb(e){return(t={})=>{const r=t.width?String(t.width):e.defaultWidth;return e.formats[r]||e.formats[e.defaultWidth]}}const Ub={date:Vb({formats:{full:"EEEE, MMMM do, y",long:"MMMM do, y",medium:"MMM d, y",short:"MM/dd/yyyy"},defaultWidth:"full"}),time:Vb({formats:{full:"h:mm:ss a zzzz",long:"h:mm:ss a z",medium:"h:mm:ss a",short:"h:mm a"},defaultWidth:"full"}),dateTime:Vb({formats:{full:"{{date}} 'at' {{time}}",long:"{{date}} 'at' {{time}}",medium:"{{date}}, {{time}}",short:"{{date}}, {{time}}"},defaultWidth:"full"})},Hb={lastWeek:"'last' eeee 'at' p",yesterday:"'yesterday at' p",today:"'today at' p",tomorrow:"'tomorrow at' p",nextWeek:"eeee 'at' p",other:"P"};function Yb(e){return(t,r)=>{let n;if("formatting"===(r?.context?String(r.context):"standalone")&&e.formattingValues){const t=e.defaultFormattingWidth||e.defaultWidth,o=r?.width?String(r.width):t;n=e.formattingValues[o]||e.formattingValues[t]}else{const t=e.defaultWidth,o=r?.width?String(r.width):e.defaultWidth;n=e.values[o]||e.values[t]}return n[e.argumentCallback?e.argumentCallback(t):t]}}const Qb={ordinalNumber:(e,t)=>{const r=Number(e),n=r%100;if(n>20||n<10)switch(n%10){case 1:return r+"st";case 2:return r+"nd";case 3:return r+"rd"}return r+"th"},era:Yb({values:{narrow:["B","A"],abbreviated:["BC","AD"],wide:["Before Christ","Anno Domini"]},defaultWidth:"wide"}),quarter:Yb({values:{narrow:["1","2","3","4"],abbreviated:["Q1","Q2","Q3","Q4"],wide:["1st quarter","2nd quarter","3rd quarter","4th quarter"]},defaultWidth:"wide",argumentCallback:e=>e-1}),month:Yb({values:{narrow:["J","F","M","A","M","J","J","A","S","O","N","D"],abbreviated:["Jan","Feb","Mar","Apr","May","Jun","Jul","Aug","Sep","Oct","Nov","Dec"],wide:["January","February","March","April","May","June","July","August","September","October","November","December"]},defaultWidth:"wide"}),day:Yb({values:{narrow:["S","M","T","W","T","F","S"],short:["Su","Mo","Tu","We","Th","Fr","Sa"],abbreviated:["Sun","Mon","Tue","Wed","Thu","Fri","Sat"],wide:["Sunday","Monday","Tuesday","Wednesday","Thursday","Friday","Saturday"]},defaultWidth:"wide"}),dayPeriod:Yb({values:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"morning",afternoon:"afternoon",evening:"evening",night:"night"}},defaultWidth:"wide",formattingValues:{narrow:{am:"a",pm:"p",midnight:"mi",noon:"n",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},abbreviated:{am:"AM",pm:"PM",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"},wide:{am:"a.m.",pm:"p.m.",midnight:"midnight",noon:"noon",morning:"in the morning",afternoon:"in the afternoon",evening:"in the evening",night:"at night"}},defaultFormattingWidth:"wide"})};function Wb(e){return(t,r={})=>{const n=r.width,o=n&&e.matchPatterns[n]||e.matchPatterns[e.defaultMatchWidth],i=t.match(o);if(!i)return null;const a=i[0],s=n&&e.parsePatterns[n]||e.parsePatterns[e.defaultParseWidth],l=Array.isArray(s)?function(e){for(let t=0;t<e.length;t++)if(e[t].test(a))return t}(s):function(e){for(const t in e)if(Object.prototype.hasOwnProperty.call(e,t)&&e[t].test(a))return t}(s);let u;return u=e.valueCallback?e.valueCallback(l):l,u=r.valueCallback?r.valueCallback(u):u,{value:u,rest:t.slice(a.length)}}}const Gb={ordinalNumber:(Zb={matchPattern:/^(\d+)(th|st|nd|rd)?/i,parsePattern:/\d+/i,valueCallback:e=>parseInt(e,10)},(e,t={})=>{const r=e.match(Zb.matchPattern);if(!r)return null;const n=r[0],o=e.match(Zb.parsePattern);if(!o)return null;let i=Zb.valueCallback?Zb.valueCallback(o[0]):o[0];return i=t.valueCallback?t.valueCallback(i):i,{value:i,rest:e.slice(n.length)}}),era:Wb({matchPatterns:{narrow:/^(b|a)/i,abbreviated:/^(b\.?\s?c\.?|b\.?\s?c\.?\s?e\.?|a\.?\s?d\.?|c\.?\s?e\.?)/i,wide:/^(before christ|before common era|anno domini|common era)/i},defaultMatchWidth:"wide",parsePatterns:{any:[/^b/i,/^(a|c)/i]},defaultParseWidth:"any"}),quarter:Wb({matchPatterns:{narrow:/^[1234]/i,abbreviated:/^q[1234]/i,wide:/^[1234](th|st|nd|rd)? quarter/i},defaultMatchWidth:"wide",parsePatterns:{any:[/1/i,/2/i,/3/i,/4/i]},defaultParseWidth:"any",valueCallback:e=>e+1}),month:Wb({matchPatterns:{narrow:/^[jfmasond]/i,abbreviated:/^(jan|feb|mar|apr|may|jun|jul|aug|sep|oct|nov|dec)/i,wide:/^(january|february|march|april|may|june|july|august|september|october|november|december)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^j/i,/^f/i,/^m/i,/^a/i,/^m/i,/^j/i,/^j/i,/^a/i,/^s/i,/^o/i,/^n/i,/^d/i],any:[/^ja/i,/^f/i,/^mar/i,/^ap/i,/^may/i,/^jun/i,/^jul/i,/^au/i,/^s/i,/^o/i,/^n/i,/^d/i]},defaultParseWidth:"any"}),day:Wb({matchPatterns:{narrow:/^[smtwf]/i,short:/^(su|mo|tu|we|th|fr|sa)/i,abbreviated:/^(sun|mon|tue|wed|thu|fri|sat)/i,wide:/^(sunday|monday|tuesday|wednesday|thursday|friday|saturday)/i},defaultMatchWidth:"wide",parsePatterns:{narrow:[/^s/i,/^m/i,/^t/i,/^w/i,/^t/i,/^f/i,/^s/i],any:[/^su/i,/^m/i,/^tu/i,/^w/i,/^th/i,/^f/i,/^sa/i]},defaultParseWidth:"any"}),dayPeriod:Wb({matchPatterns:{narrow:/^(a|p|mi|n|(in the|at) (morning|afternoon|evening|night))/i,any:/^([ap]\.?\s?m\.?|midnight|noon|(in the|at) (morning|afternoon|evening|night))/i},defaultMatchWidth:"any",parsePatterns:{any:{am:/^a/i,pm:/^p/i,midnight:/^mi/i,noon:/^no/i,morning:/morning/i,afternoon:/afternoon/i,evening:/evening/i,night:/night/i}},defaultParseWidth:"any"})};var Zb;const $b={code:"en-US",formatDistance:(e,t,r)=>{let n;const o=qb[e];return n="string"==typeof o?o:1===t?o.one:o.other.replace("{{count}}",t.toString()),r?.addSuffix?r.comparison&&r.comparison>0?"in "+n:n+" ago":n},formatLong:Ub,formatRelative:(e,t,r,n)=>Hb[e],localize:Qb,match:Gb,options:{weekStartsOn:0,firstWeekContainsDate:1}},Kb=(Symbol.for("constructDateFrom"),{}),Xb={};function Jb(e,t){try{const r=(Kb[e]||=new Intl.DateTimeFormat("en-GB",{timeZone:e,hour:"numeric",timeZoneName:"longOffset"}).format)(t).split("GMT")[1]||"";return r in Xb?Xb[r]:ty(r,r.split(":"))}catch{if(e in Xb)return Xb[e];const t=e?.match(ey);return t?ty(e,t.slice(1)):NaN}}const ey=/([+-]\d\d):?(\d\d)?/;function ty(e,t){const r=+t[0],n=+(t[1]||0);return Xb[e]=r>0?60*r+n:60*r-n}class ry extends Date{constructor(...e){super(),e.length>1&&"string"==typeof e[e.length-1]&&(this.timeZone=e.pop()),this.internal=new Date,isNaN(Jb(this.timeZone,this))?this.setTime(NaN):e.length?"number"==typeof e[0]&&(1===e.length||2===e.length&&"number"!=typeof e[1])?this.setTime(e[0]):"string"==typeof e[0]?this.setTime(+new Date(e[0])):e[0]instanceof Date?this.setTime(+e[0]):(this.setTime(+new Date(...e)),iy(this),oy(this)):this.setTime(Date.now())}static tz(e,...t){return t.length?new ry(...t,e):new ry(Date.now(),e)}withTimeZone(e){return new ry(+this,e)}getTimezoneOffset(){return-Jb(this.timeZone,this)}setTime(e){return Date.prototype.setTime.apply(this,arguments),oy(this),+this}[Symbol.for("constructDateFrom")](e){return new ry(+new Date(e),this.timeZone)}}const ny=/^(get|set)(?!UTC)/;function oy(e){e.internal.setTime(+e),e.internal.setUTCMinutes(e.internal.getUTCMinutes()-e.getTimezoneOffset())}function iy(e){const t=Jb(e.timeZone,e),r=new Date(+e);r.setUTCHours(r.getUTCHours()-1);const n=-new Date(+e).getTimezoneOffset(),o=n- -new Date(+r).getTimezoneOffset(),i=Date.prototype.getHours.apply(e)!==e.internal.getUTCHours();o&&i&&e.internal.setUTCMinutes(e.internal.getUTCMinutes()+o);const a=n-t;a&&Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+a);const s=Jb(e.timeZone,e),l=-new Date(+e).getTimezoneOffset()-s-a;if(s!==t&&l){Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+l);const t=s-Jb(e.timeZone,e);t&&(e.internal.setUTCMinutes(e.internal.getUTCMinutes()+t),Date.prototype.setUTCMinutes.call(e,Date.prototype.getUTCMinutes.call(e)+t))}}Object.getOwnPropertyNames(Date.prototype).forEach((e=>{if(!ny.test(e))return;const t=e.replace(ny,"$1UTC");ry.prototype[t]&&(e.startsWith("get")?ry.prototype[e]=function(){return this.internal[t]()}:(ry.prototype[e]=function(){var e;return Date.prototype[t].apply(this.internal,arguments),e=this,Date.prototype.setFullYear.call(e,e.internal.getUTCFullYear(),e.internal.getUTCMonth(),e.internal.getUTCDate()),Date.prototype.setHours.call(e,e.internal.getUTCHours(),e.internal.getUTCMinutes(),e.internal.getUTCSeconds(),e.internal.getUTCMilliseconds()),iy(e),+this},ry.prototype[t]=function(){return Date.prototype[t].apply(this,arguments),oy(this),+this}))}));class ay extends ry{static tz(e,...t){return t.length?new ay(...t,e):new ay(Date.now(),e)}toISOString(){const[e,t,r]=this.tzComponents(),n=`${e}${t}:${r}`;return this.internal.toISOString().slice(0,-1)+n}toString(){return`${this.toDateString()} ${this.toTimeString()}`}toDateString(){const[e,t,r,n]=this.internal.toUTCString().split(" ");return`${e?.slice(0,-1)} ${r} ${t} ${n}`}toTimeString(){const e=this.internal.toUTCString().split(" ")[4],[t,r,n]=this.tzComponents();return`${e} GMT${t}${r}${n} (${o=this.timeZone,i=this,new Intl.DateTimeFormat("en-GB",{timeZone:o,timeZoneName:"long"}).format(i).slice(12)})`;var o,i}toLocaleString(e,t){return Date.prototype.toLocaleString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleDateString(e,t){return Date.prototype.toLocaleDateString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}toLocaleTimeString(e,t){return Date.prototype.toLocaleTimeString.call(this,e,{...t,timeZone:t?.timeZone||this.timeZone})}tzComponents(){const e=this.getTimezoneOffset();return[e>0?"-":"+",String(Math.floor(Math.abs(e)/60)).padStart(2,"0"),String(Math.abs(e)%60).padStart(2,"0")]}withTimeZone(e){return new ay(+this,e)}[Symbol.for("constructDateFrom")](e){return new ay(+new Date(e),this.timeZone)}}Math.pow(10,8);const sy=6048e5,ly=Symbol.for("constructDateFrom");function uy(e,t){return"function"==typeof e?e(t):e&&"object"==typeof e&&ly in e?e[ly](t):e instanceof Date?new e.constructor(t):new Date(t)}function cy(e,t){return uy(t||e,e)}function dy(e,t,r){const n=cy(e,r?.in);return isNaN(t)?uy(r?.in||e,NaN):t?(n.setDate(n.getDate()+t),n):n}function fy(e,t,r){const n=cy(e,r?.in);if(isNaN(t))return uy(r?.in||e,NaN);if(!t)return n;const o=n.getDate(),i=uy(r?.in||e,n.getTime());return i.setMonth(n.getMonth()+t+1,0),o>=i.getDate()?i:(n.setFullYear(i.getFullYear(),i.getMonth(),o),n)}function my(e){const t=cy(e),r=new Date(Date.UTC(t.getFullYear(),t.getMonth(),t.getDate(),t.getHours(),t.getMinutes(),t.getSeconds(),t.getMilliseconds()));return r.setUTCFullYear(t.getFullYear()),+e-+r}function py(e,...t){const r=uy.bind(null,e||t.find((e=>"object"==typeof e)));return t.map(r)}function hy(e,t){const r=cy(e,t?.in);return r.setHours(0,0,0,0),r}function gy(e,t,r){const[n,o]=py(r?.in,e,t),i=hy(n),a=hy(o),s=+i-my(i),l=+a-my(a);return Math.round((s-l)/864e5)}let by={};function yy(){return by}function vy(e,t){const r=yy(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=cy(e,t?.in),i=o.getDay(),a=6+(i<n?-7:0)-(i-n);return o.setDate(o.getDate()+a),o.setHours(23,59,59,999),o}function Dy(e,t){const r=cy(e,t?.in),n=r.getMonth();return r.setFullYear(r.getFullYear(),n+1,0),r.setHours(23,59,59,999),r}function _y(e,t){const r=cy(e,t?.in);return r.setFullYear(r.getFullYear(),0,1),r.setHours(0,0,0,0),r}function xy(e,t){const r=yy(),n=t?.weekStartsOn??t?.locale?.options?.weekStartsOn??r.weekStartsOn??r.locale?.options?.weekStartsOn??0,o=cy(e,t?.in),i=o.getDay(),a=(i<n?7:0)+i-n;return o.setDate(o.getDate()-a),o.setHours(0,0,0,0),o}function ky(e,t){return xy(e,{...t,weekStartsOn:1})}function Ey(e,t){const r=cy(e,t?.in),n=r.getFullYear(),o=uy(r,0);o.setFullYear(n+1,0,4),o.setHours(0,0,0,0);const i=ky(o),a=uy(r,0);a.setFullYear(n,0,4),a.setHours(0,0,0,0);const s=ky(a);return r.getTime()>=i.getTime()?n+1:r.getTime()>=s.getTime()?n:n-1}function wy(e,t){const r=cy(e,t?.in),n=+ky(r)-+function(e,t){const r=Ey(e,t),n=uy(t?.in||e,0);return n.setFullYear(r,0,4),n.setHours(0,0,0,0),ky(n)}(r);return Math.round(n/sy)+1}function Cy(e,t){const r=cy(e,t?.in),n=r.getFullYear(),o=yy(),i=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??o.firstWeekContainsDate??o.locale?.options?.firstWeekContainsDate??1,a=uy(t?.in||e,0);a.setFullYear(n+1,0,i),a.setHours(0,0,0,0);const s=xy(a,t),l=uy(t?.in||e,0);l.setFullYear(n,0,i),l.setHours(0,0,0,0);const u=xy(l,t);return+r>=+s?n+1:+r>=+u?n:n-1}function My(e,t){const r=cy(e,t?.in),n=+xy(r,t)-+function(e,t){const r=yy(),n=t?.firstWeekContainsDate??t?.locale?.options?.firstWeekContainsDate??r.firstWeekContainsDate??r.locale?.options?.firstWeekContainsDate??1,o=Cy(e,t),i=uy(t?.in||e,0);return i.setFullYear(o,0,n),i.setHours(0,0,0,0),xy(i,t)}(r,t);return Math.round(n/sy)+1}function Ay(e,t){return(e<0?"-":"")+Math.abs(e).toString().padStart(t,"0")}const Ny={y(e,t){const r=e.getFullYear(),n=r>0?r:1-r;return Ay("yy"===t?n%100:n,t.length)},M(e,t){const r=e.getMonth();return"M"===t?String(r+1):Ay(r+1,2)},d:(e,t)=>Ay(e.getDate(),t.length),a(e,t){const r=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.toUpperCase();case"aaa":return r;case"aaaaa":return r[0];default:return"am"===r?"a.m.":"p.m."}},h:(e,t)=>Ay(e.getHours()%12||12,t.length),H:(e,t)=>Ay(e.getHours(),t.length),m:(e,t)=>Ay(e.getMinutes(),t.length),s:(e,t)=>Ay(e.getSeconds(),t.length),S(e,t){const r=t.length,n=e.getMilliseconds();return Ay(Math.trunc(n*Math.pow(10,r-3)),t.length)}},jy={G:function(e,t,r){const n=e.getFullYear()>0?1:0;switch(t){case"G":case"GG":case"GGG":return r.era(n,{width:"abbreviated"});case"GGGGG":return r.era(n,{width:"narrow"});default:return r.era(n,{width:"wide"})}},y:function(e,t,r){if("yo"===t){const t=e.getFullYear(),n=t>0?t:1-t;return r.ordinalNumber(n,{unit:"year"})}return Ny.y(e,t)},Y:function(e,t,r,n){const o=Cy(e,n),i=o>0?o:1-o;return"YY"===t?Ay(i%100,2):"Yo"===t?r.ordinalNumber(i,{unit:"year"}):Ay(i,t.length)},R:function(e,t){return Ay(Ey(e),t.length)},u:function(e,t){return Ay(e.getFullYear(),t.length)},Q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"Q":return String(n);case"QQ":return Ay(n,2);case"Qo":return r.ordinalNumber(n,{unit:"quarter"});case"QQQ":return r.quarter(n,{width:"abbreviated",context:"formatting"});case"QQQQQ":return r.quarter(n,{width:"narrow",context:"formatting"});default:return r.quarter(n,{width:"wide",context:"formatting"})}},q:function(e,t,r){const n=Math.ceil((e.getMonth()+1)/3);switch(t){case"q":return String(n);case"qq":return Ay(n,2);case"qo":return r.ordinalNumber(n,{unit:"quarter"});case"qqq":return r.quarter(n,{width:"abbreviated",context:"standalone"});case"qqqqq":return r.quarter(n,{width:"narrow",context:"standalone"});default:return r.quarter(n,{width:"wide",context:"standalone"})}},M:function(e,t,r){const n=e.getMonth();switch(t){case"M":case"MM":return Ny.M(e,t);case"Mo":return r.ordinalNumber(n+1,{unit:"month"});case"MMM":return r.month(n,{width:"abbreviated",context:"formatting"});case"MMMMM":return r.month(n,{width:"narrow",context:"formatting"});default:return r.month(n,{width:"wide",context:"formatting"})}},L:function(e,t,r){const n=e.getMonth();switch(t){case"L":return String(n+1);case"LL":return Ay(n+1,2);case"Lo":return r.ordinalNumber(n+1,{unit:"month"});case"LLL":return r.month(n,{width:"abbreviated",context:"standalone"});case"LLLLL":return r.month(n,{width:"narrow",context:"standalone"});default:return r.month(n,{width:"wide",context:"standalone"})}},w:function(e,t,r,n){const o=My(e,n);return"wo"===t?r.ordinalNumber(o,{unit:"week"}):Ay(o,t.length)},I:function(e,t,r){const n=wy(e);return"Io"===t?r.ordinalNumber(n,{unit:"week"}):Ay(n,t.length)},d:function(e,t,r){return"do"===t?r.ordinalNumber(e.getDate(),{unit:"date"}):Ny.d(e,t)},D:function(e,t,r){const n=function(e,t){const r=cy(e,t?.in);return gy(r,_y(r))+1}(e);return"Do"===t?r.ordinalNumber(n,{unit:"dayOfYear"}):Ay(n,t.length)},E:function(e,t,r){const n=e.getDay();switch(t){case"E":case"EE":case"EEE":return r.day(n,{width:"abbreviated",context:"formatting"});case"EEEEE":return r.day(n,{width:"narrow",context:"formatting"});case"EEEEEE":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},e:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"e":return String(i);case"ee":return Ay(i,2);case"eo":return r.ordinalNumber(i,{unit:"day"});case"eee":return r.day(o,{width:"abbreviated",context:"formatting"});case"eeeee":return r.day(o,{width:"narrow",context:"formatting"});case"eeeeee":return r.day(o,{width:"short",context:"formatting"});default:return r.day(o,{width:"wide",context:"formatting"})}},c:function(e,t,r,n){const o=e.getDay(),i=(o-n.weekStartsOn+8)%7||7;switch(t){case"c":return String(i);case"cc":return Ay(i,t.length);case"co":return r.ordinalNumber(i,{unit:"day"});case"ccc":return r.day(o,{width:"abbreviated",context:"standalone"});case"ccccc":return r.day(o,{width:"narrow",context:"standalone"});case"cccccc":return r.day(o,{width:"short",context:"standalone"});default:return r.day(o,{width:"wide",context:"standalone"})}},i:function(e,t,r){const n=e.getDay(),o=0===n?7:n;switch(t){case"i":return String(o);case"ii":return Ay(o,t.length);case"io":return r.ordinalNumber(o,{unit:"day"});case"iii":return r.day(n,{width:"abbreviated",context:"formatting"});case"iiiii":return r.day(n,{width:"narrow",context:"formatting"});case"iiiiii":return r.day(n,{width:"short",context:"formatting"});default:return r.day(n,{width:"wide",context:"formatting"})}},a:function(e,t,r){const n=e.getHours()/12>=1?"pm":"am";switch(t){case"a":case"aa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"});case"aaa":return r.dayPeriod(n,{width:"abbreviated",context:"formatting"}).toLowerCase();case"aaaaa":return r.dayPeriod(n,{width:"narrow",context:"formatting"});default:return r.dayPeriod(n,{width:"wide",context:"formatting"})}},b:function(e,t,r){const n=e.getHours();let o;switch(o=12===n?"noon":0===n?"midnight":n/12>=1?"pm":"am",t){case"b":case"bb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"bbb":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"}).toLowerCase();case"bbbbb":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},B:function(e,t,r){const n=e.getHours();let o;switch(o=n>=17?"evening":n>=12?"afternoon":n>=4?"morning":"night",t){case"B":case"BB":case"BBB":return r.dayPeriod(o,{width:"abbreviated",context:"formatting"});case"BBBBB":return r.dayPeriod(o,{width:"narrow",context:"formatting"});default:return r.dayPeriod(o,{width:"wide",context:"formatting"})}},h:function(e,t,r){if("ho"===t){let t=e.getHours()%12;return 0===t&&(t=12),r.ordinalNumber(t,{unit:"hour"})}return Ny.h(e,t)},H:function(e,t,r){return"Ho"===t?r.ordinalNumber(e.getHours(),{unit:"hour"}):Ny.H(e,t)},K:function(e,t,r){const n=e.getHours()%12;return"Ko"===t?r.ordinalNumber(n,{unit:"hour"}):Ay(n,t.length)},k:function(e,t,r){let n=e.getHours();return 0===n&&(n=24),"ko"===t?r.ordinalNumber(n,{unit:"hour"}):Ay(n,t.length)},m:function(e,t,r){return"mo"===t?r.ordinalNumber(e.getMinutes(),{unit:"minute"}):Ny.m(e,t)},s:function(e,t,r){return"so"===t?r.ordinalNumber(e.getSeconds(),{unit:"second"}):Ny.s(e,t)},S:function(e,t){return Ny.S(e,t)},X:function(e,t,r){const n=e.getTimezoneOffset();if(0===n)return"Z";switch(t){case"X":return Ty(n);case"XXXX":case"XX":return Sy(n);default:return Sy(n,":")}},x:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"x":return Ty(n);case"xxxx":case"xx":return Sy(n);default:return Sy(n,":")}},O:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"O":case"OO":case"OOO":return"GMT"+Oy(n,":");default:return"GMT"+Sy(n,":")}},z:function(e,t,r){const n=e.getTimezoneOffset();switch(t){case"z":case"zz":case"zzz":return"GMT"+Oy(n,":");default:return"GMT"+Sy(n,":")}},t:function(e,t,r){return Ay(Math.trunc(+e/1e3),t.length)},T:function(e,t,r){return Ay(+e,t.length)}};function Oy(e,t=""){const r=e>0?"-":"+",n=Math.abs(e),o=Math.trunc(n/60),i=n%60;return 0===i?r+String(o):r+String(o)+t+Ay(i,2)}function Ty(e,t){return e%60==0?(e>0?"-":"+")+Ay(Math.abs(e)/60,2):Sy(e,t)}function Sy(e,t=""){const r=e>0?"-":"+",n=Math.abs(e);return r+Ay(Math.trunc(n/60),2)+t+Ay(n%60,2)}const Iy=(e,t)=>{switch(e){case"P":return t.date({width:"short"});case"PP":return t.date({width:"medium"});case"PPP":return t.date({width:"long"});default:return t.date({width:"full"})}},Fy=(e,t)=>{switch(e){case"p":return t.time({width:"short"});case"pp":return t.time({width:"medium"});case"ppp":return t.time({width:"long"});default:return t.time({width:"full"})}},Ly={p:Fy,P:(e,t)=>{const r=e.match(/(P+)(p+)?/)||[],n=r[1],o=r[2];if(!o)return Iy(e,t);let i;switch(n){case"P":i=t.dateTime({width:"short"});break;case"PP":i=t.dateTime({width:"medium"});break;case"PPP":i=t.dateTime({width:"long"});break;default:i=t.dateTime({width:"full"})}return i.replace("{{date}}",Iy(n,t)).replace("{{time}}",Fy(o,t))}},Ry=/^D+$/,Py=/^Y+$/,By=["D","DD","YY","YYYY"];function zy(e){return e instanceof Date||"object"==typeof e&&"[object Date]"===Object.prototype.toString.call(e)}const qy=/[yYQqMLwIdDecihHKkms]o|(\w)\1*|''|'(''|[^'])+('|$)|./g,Vy=/P+p+|P+|p+|''|'(''|[^'])+('|$)|./g,Uy=/^'([^]*?)'?$/,Hy=/''/g,Yy=/[a-zA-Z]/;function Qy(e,t,r){const n=yy(),o=r?.locale??n.locale??$b,i=r?.firstWeekContainsDate??r?.locale?.options?.firstWeekContainsDate??n.firstWeekContainsDate??n.locale?.options?.firstWeekContainsDate??1,a=r?.weekStartsOn??r?.locale?.options?.weekStartsOn??n.weekStartsOn??n.locale?.options?.weekStartsOn??0,s=cy(e,r?.in);if(!function(e){return!(!zy(e)&&"number"!=typeof e||isNaN(+cy(e)))}(s))throw new RangeError("Invalid time value");let l=t.match(Vy).map((e=>{const t=e[0];return"p"===t||"P"===t?(0,Ly[t])(e,o.formatLong):e})).join("").match(qy).map((e=>{if("''"===e)return{isToken:!1,value:"'"};const t=e[0];if("'"===t)return{isToken:!1,value:Wy(e)};if(jy[t])return{isToken:!0,value:e};if(t.match(Yy))throw new RangeError("Format string contains an unescaped latin alphabet character `"+t+"`");return{isToken:!1,value:e}}));o.localize.preprocessor&&(l=o.localize.preprocessor(s,l));const u={firstWeekContainsDate:i,weekStartsOn:a,locale:o};return l.map((n=>{if(!n.isToken)return n.value;const i=n.value;return(!r?.useAdditionalWeekYearTokens&&function(e){return Py.test(e)}(i)||!r?.useAdditionalDayOfYearTokens&&function(e){return Ry.test(e)}(i))&&function(e,t,r){const n=function(e,t,r){const n="Y"===e[0]?"years":"days of the month";return`Use \`${e.toLowerCase()}\` instead of \`${e}\` (in \`${t}\`) for formatting ${n} to the input \`${r}\`; see: https://github.com/date-fns/date-fns/blob/master/docs/unicodeTokens.md`}(e,t,r);if(console.warn(n),By.includes(e))throw new RangeError(n)}(i,t,String(e)),(0,jy[i[0]])(s,i,o.localize,u)})).join("")}function Wy(e){const t=e.match(Uy);return t?t[1].replace(Hy,"'"):e}function Gy(e,t){return+cy(e)>+cy(t)}function Zy(e,t){return+cy(e)<+cy(t)}function $y(e,t,r){const n=cy(e,r?.in),o=n.getFullYear(),i=n.getDate(),a=uy(r?.in||e,0);a.setFullYear(o,t,15),a.setHours(0,0,0,0);const s=function(e,t){const r=cy(e,t?.in),n=r.getFullYear(),o=r.getMonth(),i=uy(r,0);return i.setFullYear(n,o+1,0),i.setHours(0,0,0,0),i.getDate()}(a);return n.setMonth(t,Math.min(i,s)),n}function Ky(e,t){const r=cy(e,t?.in);return r.setDate(1),r.setHours(0,0,0,0),r}function Xy(e,t){const r=t.startOfMonth(e),n=r.getDay();return 1===n?r:0===n?t.addDays(r,-6):t.addDays(r,-1*(n-1))}class Jy{constructor(e,t){this.Date=Date,this.today=()=>this.overrides?.today?this.overrides.today():this.options.timeZone?ay.tz(this.options.timeZone):new this.Date,this.newDate=(e,t,r)=>this.overrides?.newDate?this.overrides.newDate(e,t,r):this.options.timeZone?new ay(e,t,r,this.options.timeZone):new Date(e,t,r),this.addDays=(e,t)=>this.overrides?.addDays?this.overrides.addDays(e,t):dy(e,t),this.addMonths=(e,t)=>this.overrides?.addMonths?this.overrides.addMonths(e,t):fy(e,t),this.addWeeks=(e,t)=>this.overrides?.addWeeks?this.overrides.addWeeks(e,t):function(e,t,r){return dy(e,7*t,r)}(e,t),this.addYears=(e,t)=>this.overrides?.addYears?this.overrides.addYears(e,t):function(e,t,r){return fy(e,12*t,r)}(e,t),this.differenceInCalendarDays=(e,t)=>this.overrides?.differenceInCalendarDays?this.overrides.differenceInCalendarDays(e,t):gy(e,t),this.differenceInCalendarMonths=(e,t)=>this.overrides?.differenceInCalendarMonths?this.overrides.differenceInCalendarMonths(e,t):function(e,t,r){const[n,o]=py(r?.in,e,t);return 12*(n.getFullYear()-o.getFullYear())+(n.getMonth()-o.getMonth())}(e,t),this.eachMonthOfInterval=e=>this.overrides?.eachMonthOfInterval?this.overrides.eachMonthOfInterval(e):function(e,t){const{start:r,end:n}=function(e,t){const[r,n]=py(e,t.start,t.end);return{start:r,end:n}}(t?.in,e);let o=+r>+n;const i=o?+r:+n,a=o?n:r;a.setHours(0,0,0,0),a.setDate(1);let s=t?.step??1;if(!s)return[];s<0&&(s=-s,o=!o);const l=[];for(;+a<=i;)l.push(uy(r,a)),a.setMonth(a.getMonth()+s);return o?l.reverse():l}(e),this.endOfBroadcastWeek=e=>this.overrides?.endOfBroadcastWeek?this.overrides.endOfBroadcastWeek(e,this):function(e,t){const r=Xy(e,t),n=function(e,t){const r=t.startOfMonth(e),n=r.getDay()>0?r.getDay():7,o=t.addDays(e,1-n),i=t.addDays(o,34);return t.getMonth(e)===t.getMonth(i)?5:4}(e,t);return t.addDays(r,7*n-1)}(e,this),this.endOfISOWeek=e=>this.overrides?.endOfISOWeek?this.overrides.endOfISOWeek(e):function(e,t){return vy(e,{...t,weekStartsOn:1})}(e),this.endOfMonth=e=>this.overrides?.endOfMonth?this.overrides.endOfMonth(e):Dy(e),this.endOfWeek=e=>this.overrides?.endOfWeek?this.overrides.endOfWeek(e,this.options):vy(e,this.options),this.endOfYear=e=>this.overrides?.endOfYear?this.overrides.endOfYear(e):function(e,t){const r=cy(e,t?.in),n=r.getFullYear();return r.setFullYear(n+1,0,0),r.setHours(23,59,59,999),r}(e),this.format=(e,t)=>{const r=this.overrides?.format?this.overrides.format(e,t,this.options):Qy(e,t,this.options);return this.options.numerals&&"latn"!==this.options.numerals?this.replaceDigits(r):r},this.getISOWeek=e=>this.overrides?.getISOWeek?this.overrides.getISOWeek(e):wy(e),this.getMonth=e=>this.overrides?.getMonth?this.overrides.getMonth(e,this.options):function(e,t){return cy(e,t?.in).getMonth()}(e,this.options),this.getYear=e=>this.overrides?.getYear?this.overrides.getYear(e,this.options):function(e,t){return cy(e,t?.in).getFullYear()}(e,this.options),this.getWeek=e=>this.overrides?.getWeek?this.overrides.getWeek(e,this.options):My(e,this.options),this.isAfter=(e,t)=>this.overrides?.isAfter?this.overrides.isAfter(e,t):Gy(e,t),this.isBefore=(e,t)=>this.overrides?.isBefore?this.overrides.isBefore(e,t):Zy(e,t),this.isDate=e=>this.overrides?.isDate?this.overrides.isDate(e):zy(e),this.isSameDay=(e,t)=>this.overrides?.isSameDay?this.overrides.isSameDay(e,t):function(e,t,r){const[n,o]=py(r?.in,e,t);return+hy(n)==+hy(o)}(e,t),this.isSameMonth=(e,t)=>this.overrides?.isSameMonth?this.overrides.isSameMonth(e,t):function(e,t,r){const[n,o]=py(r?.in,e,t);return n.getFullYear()===o.getFullYear()&&n.getMonth()===o.getMonth()}(e,t),this.isSameYear=(e,t)=>this.overrides?.isSameYear?this.overrides.isSameYear(e,t):function(e,t,r){const[n,o]=py(r?.in,e,t);return n.getFullYear()===o.getFullYear()}(e,t),this.max=e=>this.overrides?.max?this.overrides.max(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=uy.bind(null,e));const t=cy(e,n);(!r||r<t||isNaN(+t))&&(r=t)})),uy(n,r||NaN)}(e),this.min=e=>this.overrides?.min?this.overrides.min(e):function(e,t){let r,n=t?.in;return e.forEach((e=>{n||"object"!=typeof e||(n=uy.bind(null,e));const t=cy(e,n);(!r||r>t||isNaN(+t))&&(r=t)})),uy(n,r||NaN)}(e),this.setMonth=(e,t)=>this.overrides?.setMonth?this.overrides.setMonth(e,t):$y(e,t),this.setYear=(e,t)=>this.overrides?.setYear?this.overrides.setYear(e,t):function(e,t,r){const n=cy(e,r?.in);return isNaN(+n)?uy(r?.in||e,NaN):(n.setFullYear(t),n)}(e,t),this.startOfBroadcastWeek=e=>this.overrides?.startOfBroadcastWeek?this.overrides.startOfBroadcastWeek(e,this):Xy(e,this),this.startOfDay=e=>this.overrides?.startOfDay?this.overrides.startOfDay(e):hy(e),this.startOfISOWeek=e=>this.overrides?.startOfISOWeek?this.overrides.startOfISOWeek(e):ky(e),this.startOfMonth=e=>this.overrides?.startOfMonth?this.overrides.startOfMonth(e):Ky(e),this.startOfWeek=e=>this.overrides?.startOfWeek?this.overrides.startOfWeek(e,this.options):xy(e,this.options),this.startOfYear=e=>this.overrides?.startOfYear?this.overrides.startOfYear(e):_y(e),this.options={locale:$b,...e},this.overrides=t}getDigitMap(){const{numerals:e="latn"}=this.options,t=new Intl.NumberFormat("en-US",{numberingSystem:e}),r={};for(let e=0;e<10;e++)r[e.toString()]=t.format(e);return r}replaceDigits(e){const t=this.getDigitMap();return e.replace(/\d/g,(e=>t[e]||e))}formatNumber(e){return this.replaceDigits(e.toString())}}const ev=new Jy;function tv(e){return Ie.createElement("button",{...e})}function rv(e){return Ie.createElement("span",{...e})}function nv(e){const{size:t=24,orientation:r="left",className:n}=e;return Ie.createElement("svg",{className:n,width:t,height:t,viewBox:"0 0 24 24"},"up"===r&&Ie.createElement("polygon",{points:"6.77 17 12.5 11.43 18.24 17 20 15.28 12.5 8 5 15.28"}),"down"===r&&Ie.createElement("polygon",{points:"6.77 8 12.5 13.57 18.24 8 20 9.72 12.5 17 5 9.72"}),"left"===r&&Ie.createElement("polygon",{points:"16 18.112 9.81111111 12 16 5.87733333 14.0888889 4 6 12 14.0888889 20"}),"right"===r&&Ie.createElement("polygon",{points:"8 18.112 14.18888889 12 8 5.87733333 9.91111111 4 18 12 9.91111111 20"}))}function ov(e){const{day:t,modifiers:r,...n}=e;return Ie.createElement("td",{...n})}function iv(e){const{day:t,modifiers:r,...n}=e,o=Ie.useRef(null);return Ie.useEffect((()=>{r.focused&&o.current?.focus()}),[r.focused]),Ie.createElement("button",{ref:o,...n})}function av(e){const{options:t,className:r,components:n,classNames:o,...i}=e,a=[o[Rb.Dropdown],r].join(" "),s=t?.find((({value:e})=>e===i.value));return Ie.createElement("span",{"data-disabled":i.disabled,className:o[Rb.DropdownRoot]},Ie.createElement(n.Select,{className:a,...i},t?.map((({value:e,label:t,disabled:r})=>Ie.createElement(n.Option,{key:e,value:e,disabled:r},t)))),Ie.createElement("span",{className:o[Rb.CaptionLabel],"aria-hidden":!0},s?.label,Ie.createElement(n.Chevron,{orientation:"down",size:18,className:o[Rb.Chevron]})))}function sv(e){return Ie.createElement("div",{...e})}function lv(e){return Ie.createElement("div",{...e})}function uv(e){const{calendarMonth:t,displayIndex:r,...n}=e;return Ie.createElement("div",{...n},e.children)}function cv(e){const{calendarMonth:t,displayIndex:r,...n}=e;return Ie.createElement("div",{...n})}function dv(e){return Ie.createElement("table",{...e})}function fv(e){return Ie.createElement("div",{...e})}function mv(e){const{components:t}=Lb();return Ie.createElement(t.Dropdown,{...e})}function pv(e){const{onPreviousClick:t,onNextClick:r,previousMonth:n,nextMonth:o,...i}=e,{components:a,classNames:s,labels:{labelPrevious:l,labelNext:u}}=Lb(),c=(0,Ie.useCallback)((e=>{o&&r?.(e)}),[o,r]),d=(0,Ie.useCallback)((e=>{n&&t?.(e)}),[n,t]);return Ie.createElement("nav",{...i},Ie.createElement(a.PreviousMonthButton,{type:"button",className:s[Rb.PreviousMonthButton],tabIndex:n?void 0:-1,"aria-disabled":!n||void 0,"aria-label":l(n),onClick:d},Ie.createElement(a.Chevron,{disabled:!n||void 0,className:s[Rb.Chevron],orientation:"left"})),Ie.createElement(a.NextMonthButton,{type:"button",className:s[Rb.NextMonthButton],tabIndex:o?void 0:-1,"aria-disabled":!o||void 0,"aria-label":u(o),onClick:c},Ie.createElement(a.Chevron,{disabled:!o||void 0,orientation:"right",className:s[Rb.Chevron]})))}function hv(e){const{components:t}=Lb();return Ie.createElement(t.Button,{...e})}function gv(e){return Ie.createElement("option",{...e})}function bv(e){const{components:t}=Lb();return Ie.createElement(t.Button,{...e})}function yv(e){const{rootRef:t,...r}=e;return Ie.createElement("div",{...r,ref:t})}function vv(e){return Ie.createElement("select",{...e})}function Dv(e){const{week:t,...r}=e;return Ie.createElement("tr",{...r})}function _v(e){return Ie.createElement("th",{...e})}function xv(e){return Ie.createElement("thead",{"aria-hidden":!0},Ie.createElement("tr",{...e}))}function kv(e){const{week:t,...r}=e;return Ie.createElement("th",{...r})}function Ev(e){return Ie.createElement("th",{...e})}function wv(e){return Ie.createElement("tbody",{...e})}function Cv(e){const{components:t}=Lb();return Ie.createElement(t.Dropdown,{...e})}function Mv(){const e={};for(const t in Rb)e[Rb[t]]=`rdp-${Rb[t]}`;for(const t in Pb)e[Pb[t]]=`rdp-${Pb[t]}`;for(const t in Bb)e[Bb[t]]=`rdp-${Bb[t]}`;for(const t in zb)e[zb[t]]=`rdp-${zb[t]}`;return e}function Av(e,t,r){return(r??new Jy(t)).format(e,"LLLL y")}const Nv=Av;function jv(e,t,r){return(r??new Jy(t)).format(e,"d")}function Ov(e,t=ev){return t.format(e,"LLLL")}function Tv(e){return e<10?`0${e.toLocaleString()}`:`${e.toLocaleString()}`}function Sv(){return""}function Iv(e,t,r){return(r??new Jy(t)).format(e,"cccccc")}function Fv(e,t=ev){return t.format(e,"yyyy")}const Lv=Fv;function Rv(e,t,r){return(r??new Jy(t)).format(e,"LLLL y")}const Pv=Rv;function Bv(e,t,r,n){let o=(n??new Jy(r)).format(e,"PPPP");return t?.today&&(o=`Today, ${o}`),o}function zv(e,t,r,n){let o=(n??new Jy(r)).format(e,"PPPP");return t.today&&(o=`Today, ${o}`),t.selected&&(o=`${o}, selected`),o}const qv=zv;function Vv(){return""}function Uv(e){return"Choose the Month"}function Hv(e){return"Go to the Next Month"}function Yv(e){return"Go to the Previous Month"}function Qv(e,t,r){return(r??new Jy(t)).format(e,"cccc")}function Wv(e,t){return`Week ${e}`}function Gv(e){return"Week Number"}function Zv(e){return"Choose the Year"}const $v=e=>e instanceof HTMLElement?e:null,Kv=e=>[...e.querySelectorAll("[data-animated-month]")??[]],Xv=e=>$v(e.querySelector("[data-animated-caption]")),Jv=e=>$v(e.querySelector("[data-animated-weeks]"));function eD(e,t){const{month:r,defaultMonth:n,today:o=t.today(),numberOfMonths:i=1,endMonth:a,startMonth:s,timeZone:l}=e;let u=r||n||o;const{differenceInCalendarMonths:c,addMonths:d,startOfMonth:f}=t;return a&&c(a,u)<0&&(u=d(a,-1*(i-1))),s&&c(u,s)<0&&(u=s),u=l?new ay(u,l):u,f(u)}class tD{constructor(e,t,r=ev){this.date=e,this.displayMonth=t,this.outside=Boolean(t&&!r.isSameMonth(e,t)),this.dateLib=r}isEqualTo(e){return this.dateLib.isSameDay(e.date,this.date)&&this.dateLib.isSameMonth(e.displayMonth,this.displayMonth)}}class rD{constructor(e,t){this.days=t,this.weekNumber=e}}class nD{constructor(e,t){this.date=e,this.weeks=t}}function oD(e,t){const[r,n]=(0,Ie.useState)(e);return[void 0===t?r:t,n]}var iD;function aD(e){return!e[Pb.disabled]&&!e[Pb.hidden]&&!e[Pb.outside]}function sD(e,t,r=!1,n=ev){let{from:o,to:i}=e;const{differenceInCalendarDays:a,isSameDay:s}=n;return o&&i?(a(i,o)<0&&([o,i]=[i,o]),a(t,o)>=(r?1:0)&&a(i,t)>=(r?1:0)):!r&&i?s(i,t):!(r||!o)&&s(o,t)}function lD(e){return Boolean(e&&"object"==typeof e&&"before"in e&&"after"in e)}function uD(e){return Boolean(e&&"object"==typeof e&&"from"in e)}function cD(e){return Boolean(e&&"object"==typeof e&&"after"in e)}function dD(e){return Boolean(e&&"object"==typeof e&&"before"in e)}function fD(e){return Boolean(e&&"object"==typeof e&&"dayOfWeek"in e)}function mD(e,t){return Array.isArray(e)&&e.every(t.isDate)}function pD(e,t,r=ev){const n=Array.isArray(t)?t:[t],{isSameDay:o,differenceInCalendarDays:i,isAfter:a}=r;return n.some((t=>{if("boolean"==typeof t)return t;if(r.isDate(t))return o(e,t);if(mD(t,r))return t.includes(e);if(uD(t))return sD(t,e,!1,r);if(fD(t))return Array.isArray(t.dayOfWeek)?t.dayOfWeek.includes(e.getDay()):t.dayOfWeek===e.getDay();if(lD(t)){const r=i(t.before,e)>0,n=i(t.after,e)<0;return a(t.before,t.after)?n&&r:r||n}return cD(t)?i(e,t.after)>0:dD(t)?i(t.before,e)>0:"function"==typeof t&&t(e)}))}function hD(e,t,r,n,o,i,a,s=0){if(s>365)return;const l=function(e,t,r,n,o,i,a){const{ISOWeek:s,broadcastCalendar:l}=i,{addDays:u,addMonths:c,addWeeks:d,addYears:f,endOfBroadcastWeek:m,endOfISOWeek:p,endOfWeek:h,max:g,min:b,startOfBroadcastWeek:y,startOfISOWeek:v,startOfWeek:D}=a;let _={day:u,week:d,month:c,year:f,startOfWeek:e=>l?y(e,a):s?v(e):D(e),endOfWeek:e=>l?m(e,a):s?p(e):h(e)}[e](r,"after"===t?1:-1);return"before"===t&&n?_=g([n,_]):"after"===t&&o&&(_=b([o,_])),_}(e,t,r.date,n,o,i,a),u=Boolean(i.disabled&&pD(l,i.disabled,a)),c=Boolean(i.hidden&&pD(l,i.hidden,a)),d=new tD(l,l,a);return u||c?hD(e,t,d,n,o,i,a,s+1):d}function gD(e,t,r,n,o){const{autoFocus:i}=e,[a,s]=(0,Ie.useState)(),l=function(e,t,r,n){let o,i=-1;for(const a of e){const e=t(a);aD(e)&&(e[Pb.focused]&&i<iD.FocusedModifier?(o=a,i=iD.FocusedModifier):n?.isEqualTo(a)&&i<iD.LastFocused?(o=a,i=iD.LastFocused):r(a.date)&&i<iD.Selected?(o=a,i=iD.Selected):e[Pb.today]&&i<iD.Today&&(o=a,i=iD.Today))}return o||(o=e.find((e=>aD(t(e))))),o}(t.days,r,n||(()=>!1),a),[u,c]=(0,Ie.useState)(i?l:void 0);return{isFocusTarget:e=>Boolean(l?.isEqualTo(e)),setFocused:c,focused:u,blur:()=>{s(u),c(void 0)},moveFocus:(r,n)=>{if(!u)return;const i=hD(r,n,u,t.navStart,t.navEnd,e,o);i&&(t.goToDay(i),c(i))}}}function bD(e,t,r=ev){return sD(e,t.from,!1,r)||sD(e,t.to,!1,r)||sD(t,e.from,!1,r)||sD(t,e.to,!1,r)}function yD(e,t){const{disabled:r,excludeDisabled:n,selected:o,required:i,onSelect:a}=e,[s,l]=oD(o,a?o:void 0),u=a?o:s;return{selected:u,select:(o,s,c)=>{const{min:d,max:f}=e,m=o?function(e,t,r=0,n=0,o=!1,i=ev){const{from:a,to:s}=t||{},{isSameDay:l,isAfter:u,isBefore:c}=i;let d;if(a||s){if(a&&!s)d=l(a,e)?o?{from:a,to:void 0}:void 0:c(e,a)?{from:e,to:a}:{from:a,to:e};else if(a&&s)if(l(a,e)&&l(s,e))d=o?{from:a,to:s}:void 0;else if(l(a,e))d={from:a,to:r>0?void 0:e};else if(l(s,e))d={from:e,to:r>0?void 0:e};else if(c(e,a))d={from:e,to:s};else if(u(e,a))d={from:a,to:e};else{if(!u(e,s))throw new Error("Invalid range");d={from:a,to:e}}}else d={from:e,to:r>0?void 0:e};if(d?.from&&d?.to){const t=i.differenceInCalendarDays(d.to,d.from);(n>0&&t>n||r>1&&t<r)&&(d={from:e,to:void 0})}return d}(o,u,d,f,i,t):void 0;return n&&r&&m?.from&&m.to&&function(e,t,r=ev){const n=Array.isArray(t)?t:[t],o=n.filter((e=>"function"!=typeof e)).some((t=>"boolean"==typeof t?t:r.isDate(t)?sD(e,t,!1,r):mD(t,r)?t.some((t=>sD(e,t,!1,r))):uD(t)?!(!t.from||!t.to)&&bD(e,{from:t.from,to:t.to},r):fD(t)?function(e,t,r=ev){const n=Array.isArray(t)?t:[t];let o=e.from;const i=r.differenceInCalendarDays(e.to,e.from),a=Math.min(i,6);for(let e=0;e<=a;e++){if(n.includes(o.getDay()))return!0;o=r.addDays(o,1)}return!1}(e,t.dayOfWeek,r):lD(t)?r.isAfter(t.before,t.after)?bD(e,{from:r.addDays(t.after,1),to:r.addDays(t.before,-1)},r):pD(e.from,t,r)||pD(e.to,t,r):!(!cD(t)&&!dD(t))&&(pD(e.from,t,r)||pD(e.to,t,r))));if(o)return!0;const i=n.filter((e=>"function"==typeof e));if(i.length){let t=e.from;const n=r.differenceInCalendarDays(e.to,e.from);for(let e=0;e<=n;e++){if(i.some((e=>e(t))))return!0;t=r.addDays(t,1)}}return!1}({from:m.from,to:m.to},r,t)&&(m.from=o,m.to=void 0),a||l(m),a?.(m,o,s,c),m},isSelected:e=>u&&sD(u,e,!1,t)}}function vD(n){const{components:o,formatters:i,labels:a,dateLib:s,locale:l,classNames:u}=(0,Ie.useMemo)((()=>{const o={...$b,...n.locale};return{dateLib:new Jy({locale:o,weekStartsOn:n.broadcastCalendar?1:n.weekStartsOn,firstWeekContainsDate:n.firstWeekContainsDate,useAdditionalWeekYearTokens:n.useAdditionalWeekYearTokens,useAdditionalDayOfYearTokens:n.useAdditionalDayOfYearTokens,timeZone:n.timeZone,numerals:n.numerals},n.dateLib),components:(a=n.components,{...e,...a}),formatters:(i=n.formatters,i?.formatMonthCaption&&!i.formatCaption&&(i.formatCaption=i.formatMonthCaption),i?.formatYearCaption&&!i.formatYearDropdown&&(i.formatYearDropdown=i.formatYearCaption),{...t,...i}),labels:{...r,...n.labels},locale:o,classNames:{...Mv(),...n.classNames}};var i,a}),[n.locale,n.broadcastCalendar,n.weekStartsOn,n.firstWeekContainsDate,n.useAdditionalWeekYearTokens,n.useAdditionalDayOfYearTokens,n.timeZone,n.numerals,n.dateLib,n.components,n.formatters,n.labels,n.classNames]),{captionLayout:c,mode:d,onDayBlur:f,onDayClick:m,onDayFocus:p,onDayKeyDown:h,onDayMouseEnter:g,onDayMouseLeave:b,onNextClick:y,onPrevClick:v,showWeekNumber:D,styles:_}=n,{formatCaption:x,formatDay:k,formatMonthDropdown:E,formatWeekNumber:w,formatWeekNumberHeader:C,formatWeekdayName:M,formatYearDropdown:A}=i,N=function(e,t){const[r,n]=function(e,t){let{startMonth:r,endMonth:n}=e;const{startOfYear:o,startOfDay:i,startOfMonth:a,endOfMonth:s,addYears:l,endOfYear:u,newDate:c,today:d}=t,{fromYear:f,toYear:m,fromMonth:p,toMonth:h}=e;!r&&p&&(r=p),!r&&f&&(r=t.newDate(f,0,1)),!n&&h&&(n=h),!n&&m&&(n=c(m,11,31));const g="dropdown"===e.captionLayout||"dropdown-years"===e.captionLayout;return r?r=a(r):f?r=c(f,0,1):!r&&g&&(r=o(l(e.today??d(),-100))),n?n=s(n):m?n=c(m,11,31):!n&&g&&(n=u(e.today??d())),[r?i(r):r,n?i(n):n]}(e,t),{startOfMonth:o,endOfMonth:i}=t,a=eD(e,t),[s,l]=oD(a,e.month?a:void 0);(0,Ie.useEffect)((()=>{const r=eD(e,t);l(r)}),[e.timeZone]);const u=function(e,t,r,n){const{numberOfMonths:o=1}=r,i=[];for(let r=0;r<o;r++){const o=n.addMonths(e,r);if(t&&o>t)break;i.push(o)}return i}(s,n,e,t),c=function(e,t,r,n){const o=e[0],i=e[e.length-1],{ISOWeek:a,fixedWeeks:s,broadcastCalendar:l}=r??{},{addDays:u,differenceInCalendarDays:c,differenceInCalendarMonths:d,endOfBroadcastWeek:f,endOfISOWeek:m,endOfMonth:p,endOfWeek:h,isAfter:g,startOfBroadcastWeek:b,startOfISOWeek:y,startOfWeek:v}=n,D=l?b(o,n):a?y(o):v(o),_=c(l?f(i,n):a?m(p(i)):h(p(i)),D),x=d(i,o)+1,k=[];for(let e=0;e<=_;e++){const r=u(D,e);if(t&&g(r,t))break;k.push(r)}const E=(l?35:42)*x;if(s&&k.length<E){const e=E-k.length;for(let t=0;t<e;t++){const e=u(k[k.length-1],1);k.push(e)}}return k}(u,e.endMonth?i(e.endMonth):void 0,e,t),d=function(e,t,r,n){const{addDays:o,endOfBroadcastWeek:i,endOfISOWeek:a,endOfMonth:s,endOfWeek:l,getISOWeek:u,getWeek:c,startOfBroadcastWeek:d,startOfISOWeek:f,startOfWeek:m}=n,p=e.reduce(((e,p)=>{const h=r.broadcastCalendar?d(p,n):r.ISOWeek?f(p):m(p),g=r.broadcastCalendar?i(p,n):r.ISOWeek?a(s(p)):l(s(p)),b=t.filter((e=>e>=h&&e<=g)),y=r.broadcastCalendar?35:42;if(r.fixedWeeks&&b.length<y){const e=t.filter((e=>{const t=y-b.length;return e>g&&e<=o(g,t)}));b.push(...e)}const v=b.reduce(((e,t)=>{const o=r.ISOWeek?u(t):c(t),i=e.find((e=>e.weekNumber===o)),a=new tD(t,p,n);return i?i.days.push(a):e.push(new rD(o,[a])),e}),[]),D=new nD(p,v);return e.push(D),e}),[]);return r.reverseMonths?p.reverse():p}(u,c,e,t),f=function(e){return e.reduce(((e,t)=>[...e,...t.weeks]),[])}(d),m=d.reduce(((e,t)=>[...e,...t.weeks.reduce(((e,t)=>[...e,...t.days]),[])]),[]),p=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=n,u=o?i??1:1,c=a(e);return t&&l(c,t)<=0?void 0:s(c,-u)}(s,r,e,t),h=function(e,t,r,n){if(r.disableNavigation)return;const{pagedNavigation:o,numberOfMonths:i=1}=r,{startOfMonth:a,addMonths:s,differenceInCalendarMonths:l}=n,u=o?i:1,c=a(e);return t&&l(t,e)<i?void 0:s(c,u)}(s,n,e,t),{disableNavigation:g,onMonthChange:b}=e,y=e=>{if(g)return;let t=o(e);r&&t<o(r)&&(t=o(r)),n&&t>o(n)&&(t=o(n)),l(t),b?.(t)},v={months:d,weeks:f,days:m,navStart:r,navEnd:n,previousMonth:p,nextMonth:h,goToMonth:y,goToDay:e=>{(e=>f.some((t=>t.days.some((t=>t.isEqualTo(e))))))(e)||y(e.date)}};return v}(n,s),{days:j,months:O,navStart:T,navEnd:S,previousMonth:I,nextMonth:F,goToMonth:L}=N,R=function(e,t,r){const{disabled:n,hidden:o,modifiers:i,showOutsideDays:a,broadcastCalendar:s,today:l}=t,{isSameDay:u,isSameMonth:c,startOfMonth:d,isBefore:f,endOfMonth:m,isAfter:p}=r,h=t.startMonth&&d(t.startMonth),g=t.endMonth&&m(t.endMonth),b={[Pb.focused]:[],[Pb.outside]:[],[Pb.disabled]:[],[Pb.hidden]:[],[Pb.today]:[]},y={};for(const t of e){const{date:e,displayMonth:d}=t,m=Boolean(d&&!c(e,d)),v=Boolean(h&&f(e,h)),D=Boolean(g&&p(e,g)),_=Boolean(n&&pD(e,n,r)),x=Boolean(o&&pD(e,o,r))||v||D||!s&&!a&&m||s&&!1===a&&m,k=u(e,l??r.today());m&&b.outside.push(t),_&&b.disabled.push(t),x&&b.hidden.push(t),k&&b.today.push(t),i&&Object.keys(i).forEach((n=>{const o=i?.[n];o&&pD(e,o,r)&&(y[n]?y[n].push(t):y[n]=[t])}))}return e=>{const t={[Pb.focused]:!1,[Pb.disabled]:!1,[Pb.hidden]:!1,[Pb.outside]:!1,[Pb.today]:!1},r={};for(const r in b){const n=b[r];t[r]=n.some((t=>t===e))}for(const t in y)r[t]=y[t].some((t=>t===e));return{...t,...r}}}(j,n,s),{isSelected:P,select:B,selected:z}=function(e,t){const r=function(e,t){const{selected:r,required:n,onSelect:o}=e,[i,a]=oD(r,o?r:void 0),s=o?r:i,{isSameDay:l}=t;return{selected:s,select:(e,t,r)=>{let i=e;return!n&&s&&s&&l(e,s)&&(i=void 0),o||a(i),o?.(i,e,t,r),i},isSelected:e=>!!s&&l(s,e)}}(e,t),n=function(e,t){const{selected:r,required:n,onSelect:o}=e,[i,a]=oD(r,o?r:void 0),s=o?r:i,{isSameDay:l}=t,u=e=>s?.some((t=>l(t,e)))??!1,{min:c,max:d}=e;return{selected:s,select:(e,t,r)=>{let i=[...s??[]];if(u(e)){if(s?.length===c)return;if(n&&1===s?.length)return;i=s?.filter((t=>!l(t,e)))}else i=s?.length===d?[e]:[...i,e];return o||a(i),o?.(i,e,t,r),i},isSelected:u}}(e,t),o=yD(e,t);switch(e.mode){case"single":return r;case"multiple":return n;case"range":return o;default:return}}(n,s)??{},{blur:q,focused:V,isFocusTarget:U,moveFocus:H,setFocused:Y}=gD(n,N,R,P??(()=>!1),s),{labelDayButton:Q,labelGridcell:W,labelGrid:G,labelMonthDropdown:Z,labelNav:$,labelWeekday:K,labelWeekNumber:X,labelWeekNumberHeader:J,labelYearDropdown:ee}=a,te=(0,Ie.useMemo)((()=>function(e,t){const r=e.today(),n=t?e.startOfISOWeek(r):e.startOfWeek(r),o=[];for(let t=0;t<7;t++){const r=e.addDays(n,t);o.push(r)}return o}(s,n.ISOWeek)),[s,n.ISOWeek]),re=void 0!==d||void 0!==m,ne=(0,Ie.useCallback)((()=>{I&&(L(I),v?.(I))}),[I,L,v]),oe=(0,Ie.useCallback)((()=>{F&&(L(F),y?.(F))}),[L,F,y]),ie=(0,Ie.useCallback)(((e,t)=>r=>{r.preventDefault(),r.stopPropagation(),Y(e),B?.(e.date,t,r),m?.(e.date,t,r)}),[B,m,Y]),ae=(0,Ie.useCallback)(((e,t)=>r=>{Y(e),p?.(e.date,t,r)}),[p,Y]),se=(0,Ie.useCallback)(((e,t)=>r=>{q(),f?.(e.date,t,r)}),[q,f]),le=(0,Ie.useCallback)(((e,t)=>r=>{const o={ArrowLeft:["day","rtl"===n.dir?"after":"before"],ArrowRight:["day","rtl"===n.dir?"before":"after"],ArrowDown:["week","after"],ArrowUp:["week","before"],PageUp:[r.shiftKey?"year":"month","before"],PageDown:[r.shiftKey?"year":"month","after"],Home:["startOfWeek","before"],End:["endOfWeek","after"]};if(o[r.key]){r.preventDefault(),r.stopPropagation();const[e,t]=o[r.key];H(e,t)}h?.(e.date,t,r)}),[H,h,n.dir]),ue=(0,Ie.useCallback)(((e,t)=>r=>{g?.(e.date,t,r)}),[g]),ce=(0,Ie.useCallback)(((e,t)=>r=>{b?.(e.date,t,r)}),[b]),de=(0,Ie.useCallback)((e=>t=>{const r=Number(t.target.value),n=s.setMonth(s.startOfMonth(e),r);L(n)}),[s,L]),fe=(0,Ie.useCallback)((e=>t=>{const r=Number(t.target.value),n=s.setYear(s.startOfMonth(e),r);L(n)}),[s,L]),{className:me,style:pe}=(0,Ie.useMemo)((()=>({className:[u[Rb.Root],n.className].filter(Boolean).join(" "),style:{..._?.[Rb.Root],...n.style}})),[u,n.className,n.style,_]),he=function(e){const t={"data-mode":e.mode??void 0,"data-required":"required"in e?e.required:void 0,"data-multiple-months":e.numberOfMonths&&e.numberOfMonths>1||void 0,"data-week-numbers":e.showWeekNumber||void 0,"data-broadcast-calendar":e.broadcastCalendar||void 0};return Object.entries(e).forEach((([e,r])=>{e.startsWith("data-")&&(t[e]=r)})),t}(n),ge=(0,Ie.useRef)(null);!function(e,t,{classNames:r,months:n,focused:o,dateLib:i}){const a=(0,Ie.useRef)(null),s=(0,Ie.useRef)(n),l=(0,Ie.useRef)(!1);(0,Ie.useLayoutEffect)((()=>{const u=s.current;if(s.current=n,!(t&&e.current&&e.current instanceof HTMLElement&&0!==n.length&&0!==u.length&&n.length===u.length))return;const c=i.isSameMonth(n[0].date,u[0].date),d=i.isAfter(n[0].date,u[0].date),f=d?r[zb.caption_after_enter]:r[zb.caption_before_enter],m=d?r[zb.weeks_after_enter]:r[zb.weeks_before_enter],p=a.current,h=e.current.cloneNode(!0);if(h instanceof HTMLElement?(Kv(h).forEach((e=>{if(!(e instanceof HTMLElement))return;const t=$v(e.querySelector("[data-animated-month]"));t&&e.contains(t)&&e.removeChild(t);const r=Xv(e);r&&r.classList.remove(f);const n=Jv(e);n&&n.classList.remove(m)})),a.current=h):a.current=null,l.current||c||o)return;const g=p instanceof HTMLElement?Kv(p):[],b=Kv(e.current);if(b&&b.every((e=>e instanceof HTMLElement))&&g&&g.every((e=>e instanceof HTMLElement))){l.current=!0;const t=[];e.current.style.isolation="isolate";const n=(y=e.current,$v(y.querySelector("[data-animated-nav]")));n&&(n.style.zIndex="1"),b.forEach(((o,i)=>{const a=g[i];if(!a)return;o.style.position="relative",o.style.overflow="hidden";const s=Xv(o);s&&s.classList.add(f);const u=Jv(o);u&&u.classList.add(m);const c=()=>{l.current=!1,e.current&&(e.current.style.isolation=""),n&&(n.style.zIndex=""),s&&s.classList.remove(f),u&&u.classList.remove(m),o.style.position="",o.style.overflow="",o.contains(a)&&o.removeChild(a)};t.push(c),a.style.pointerEvents="none",a.style.position="absolute",a.style.overflow="hidden",a.setAttribute("aria-hidden","true");const p=(e=>$v(e.querySelector("[data-animated-weekdays]")))(a);p&&(p.style.opacity="0");const h=Xv(a);h&&(h.classList.add(d?r[zb.caption_before_exit]:r[zb.caption_after_exit]),h.addEventListener("animationend",c));const b=Jv(a);b&&b.classList.add(d?r[zb.weeks_before_exit]:r[zb.weeks_after_exit]),o.insertBefore(a,o.firstChild)}))}var y}))}(ge,Boolean(n.animate),{classNames:u,months:O,focused:V,dateLib:s});const be={dayPickerProps:n,selected:z,select:B,isSelected:P,months:O,nextMonth:F,previousMonth:I,goToMonth:L,getModifiers:R,components:o,classNames:u,styles:_,labels:a,formatters:i};return Ie.createElement(Fb.Provider,{value:be},Ie.createElement(o.Root,{rootRef:n.animate?ge:void 0,className:me,style:pe,dir:n.dir,id:n.id,lang:n.lang,nonce:n.nonce,title:n.title,role:n.role,"aria-label":n["aria-label"],...he},Ie.createElement(o.Months,{className:u[Rb.Months],style:_?.[Rb.Months]},!n.hideNavigation&&Ie.createElement(o.Nav,{"data-animated-nav":n.animate?"true":void 0,className:u[Rb.Nav],style:_?.[Rb.Nav],"aria-label":$(),onPreviousClick:ne,onNextClick:oe,previousMonth:I,nextMonth:F}),O.map(((e,t)=>{const r=function(e,t,r,n,o){const{startOfMonth:i,startOfYear:a,endOfYear:s,eachMonthOfInterval:l,getMonth:u}=o;return l({start:a(e),end:s(e)}).map((e=>{const a=n.formatMonthDropdown(e,o);return{value:u(e),label:a,disabled:t&&e<i(t)||r&&e>i(r)||!1}}))}(e.date,T,S,i,s),a=function(e,t,r,n){if(!e)return;if(!t)return;const{startOfYear:o,endOfYear:i,addYears:a,getYear:s,isBefore:l,isSameYear:u}=n,c=o(e),d=i(t),f=[];let m=c;for(;l(m,d)||u(m,d);)f.push(m),m=a(m,1);return f.map((e=>{const t=r.formatYearDropdown(e,n);return{value:s(e),label:t,disabled:!1}}))}(T,S,i,s);return Ie.createElement(o.Month,{"data-animated-month":n.animate?"true":void 0,className:u[Rb.Month],style:_?.[Rb.Month],key:t,displayIndex:t,calendarMonth:e},Ie.createElement(o.MonthCaption,{"data-animated-caption":n.animate?"true":void 0,className:u[Rb.MonthCaption],style:_?.[Rb.MonthCaption],calendarMonth:e,displayIndex:t},c?.startsWith("dropdown")?Ie.createElement(o.DropdownNav,{className:u[Rb.Dropdowns],style:_?.[Rb.Dropdowns]},"dropdown"===c||"dropdown-months"===c?Ie.createElement(o.MonthsDropdown,{className:u[Rb.MonthsDropdown],"aria-label":Z(),classNames:u,components:o,disabled:Boolean(n.disableNavigation),onChange:de(e.date),options:r,style:_?.[Rb.Dropdown],value:s.getMonth(e.date)}):Ie.createElement("span",null,E(e.date,s)),"dropdown"===c||"dropdown-years"===c?Ie.createElement(o.YearsDropdown,{className:u[Rb.YearsDropdown],"aria-label":ee(s.options),classNames:u,components:o,disabled:Boolean(n.disableNavigation),onChange:fe(e.date),options:a,style:_?.[Rb.Dropdown],value:s.getYear(e.date)}):Ie.createElement("span",null,A(e.date,s)),Ie.createElement("span",{role:"status","aria-live":"polite",style:{border:0,clip:"rect(0 0 0 0)",height:"1px",margin:"-1px",overflow:"hidden",padding:0,position:"absolute",width:"1px",whiteSpace:"nowrap",wordWrap:"normal"}},x(e.date,s.options,s))):Ie.createElement(o.CaptionLabel,{className:u[Rb.CaptionLabel],role:"status","aria-live":"polite"},x(e.date,s.options,s))),Ie.createElement(o.MonthGrid,{role:"grid","aria-multiselectable":"multiple"===d||"range"===d,"aria-label":G(e.date,s.options,s)||void 0,className:u[Rb.MonthGrid],style:_?.[Rb.MonthGrid]},!n.hideWeekdays&&Ie.createElement(o.Weekdays,{"data-animated-weekdays":n.animate?"true":void 0,className:u[Rb.Weekdays],style:_?.[Rb.Weekdays]},D&&Ie.createElement(o.WeekNumberHeader,{"aria-label":J(s.options),className:u[Rb.WeekNumberHeader],style:_?.[Rb.WeekNumberHeader],scope:"col"},C()),te.map(((e,t)=>Ie.createElement(o.Weekday,{"aria-label":K(e,s.options,s),className:u[Rb.Weekday],key:t,style:_?.[Rb.Weekday],scope:"col"},M(e,s.options,s))))),Ie.createElement(o.Weeks,{"data-animated-weeks":n.animate?"true":void 0,className:u[Rb.Weeks],style:_?.[Rb.Weeks]},e.weeks.map(((e,t)=>Ie.createElement(o.Week,{className:u[Rb.Week],key:e.weekNumber,style:_?.[Rb.Week],week:e},D&&Ie.createElement(o.WeekNumber,{week:e,style:_?.[Rb.WeekNumber],"aria-label":X(e.weekNumber,{locale:l}),className:u[Rb.WeekNumber],scope:"row",role:"rowheader"},w(e.weekNumber)),e.days.map((e=>{const{date:t}=e,r=R(e);if(r[Pb.focused]=!r.hidden&&Boolean(V?.isEqualTo(e)),r[Bb.selected]=P?.(t)||r.selected,uD(z)){const{from:e,to:n}=z;r[Bb.range_start]=Boolean(e&&n&&s.isSameDay(t,e)),r[Bb.range_end]=Boolean(e&&n&&s.isSameDay(t,n)),r[Bb.range_middle]=sD(z,t,!0,s)}const i=function(e,t={},r={}){let n={...t?.[Rb.Day]};return Object.entries(e).filter((([,e])=>!0===e)).forEach((([e])=>{n={...n,...r?.[e]}})),n}(r,_,n.modifiersStyles),a=function(e,t,r={}){return Object.entries(e).filter((([,e])=>!0===e)).reduce(((e,[n])=>(r[n]?e.push(r[n]):t[Pb[n]]?e.push(t[Pb[n]]):t[Bb[n]]&&e.push(t[Bb[n]]),e)),[t[Rb.Day]])}(r,u,n.modifiersClassNames),l=re||r.hidden?void 0:W(t,r,s.options,s);return Ie.createElement(o.Day,{key:`${s.format(t,"yyyy-MM-dd")}_${s.format(e.displayMonth,"yyyy-MM")}`,day:e,modifiers:r,className:a.join(" "),style:i,role:"gridcell","aria-selected":r.selected||void 0,"aria-label":l,"data-day":s.format(t,"yyyy-MM-dd"),"data-month":e.outside?s.format(t,"yyyy-MM"):void 0,"data-selected":r.selected||void 0,"data-disabled":r.disabled||void 0,"data-hidden":r.hidden||void 0,"data-outside":e.outside||void 0,"data-focused":r.focused||void 0,"data-today":r.today||void 0},!r.hidden&&re?Ie.createElement(o.DayButton,{className:u[Rb.DayButton],style:_?.[Rb.DayButton],type:"button",day:e,modifiers:r,disabled:r.disabled||void 0,tabIndex:U(e)?0:-1,"aria-label":Q(t,r,s.options,s),onClick:ie(e,r),onBlur:se(e,r),onFocus:ae(e,r),onKeyDown:le(e,r),onMouseEnter:ue(e,r),onMouseLeave:ce(e,r)},k(t,s.options,s)):!r.hidden&&k(e.date,s.options,s))}))))))))}))),n.footer&&Ie.createElement(o.Footer,{className:u[Rb.Footer],style:_?.[Rb.Footer],role:"status","aria-live":"polite"},n.footer)))}function DD(e,t){return+cy(e)==+cy(t)}!function(e){e[e.Today=0]="Today",e[e.Selected=1]="Selected",e[e.LastFocused=2]="LastFocused",e[e.FocusedModifier=3]="FocusedModifier"}(iD||(iD={}));const _D=()=>(0,Se.jsx)("span",{className:"bg-icon-interactive h-1 w-1 absolute rounded-full inline-block bottom-0 left-1/2 right-1/2"}),xD=e=>Qy(e,"E").slice(0,1),kD=(e,t=24)=>Array.from({length:t},((t,r)=>e+r)),ED=e=>"multiple"===e?[]:"range"===e?{from:void 0,to:void 0}:void 0,wD=({width:e,className:t,classNames:r,selectedDates:n,setSelectedDates:o,showOutsideDays:i=!0,mode:a="single",variant:s="normal",alignment:l="horizontal",numberOfMonths:u,disabled:c,...d})=>{const f=Ie.isValidElement(d.footer)||"function"==typeof d.footer,[m,p]=(0,Ie.useState)(!1),[h,g]=(0,Ie.useState)(!1),[b,y]=(0,Ie.useState)((new Date).getFullYear()),[v,D]=(0,Ie.useState)(b-b%24);void 0===n&&(n="multiple"===a?[]:"range"===a?{from:void 0,to:void 0}:void 0);const _=({weekdays:e})=>(0,Se.jsx)("div",{className:"flex justify-between",children:e.map(((e,t)=>(0,Se.jsx)("button",{className:"h-10 w-10 px-1.5 py-2 text-center text-text-secondary text-sm font-normal content-center bg-transparent border-none shrink-0",children:e},t)))}),x=e=>(0,Se.jsx)("div",{className:"flex flex-col bsf-force-ui-month-weeks",children:e.children[1].props.children.map(((e,t)=>(0,Se.jsx)("div",{className:"flex flex-row justify-between",children:e},t)))}),k=du("relative bg-background-primary shadow-datepicker-wrapper",e,"vertical"===l?"flex flex-col":"flex flex-row  gap-3","normal"===s?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"","presets"===s?"rounded-tr-md border border-solid border-border-subtle":"","dualdate"===s?"rounded-tr-md rounded-tl-md border border-solid border-border-subtle":"",f?"rounded-b-none":"rounded-bl-md rounded-br-md");return(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)(vD,{mode:a,selected:n,onSelect:(e,t)=>{if("range"===a){const r=n;if(!r?.from&&!r?.to||r?.from&&r?.to)return r.from&&DD(t,r?.from)||r.to&&DD(t,r?.to)?void o({from:void 0,to:void 0}):void o({from:t,to:void 0});if(r?.from&&!r?.to)return t<r.from?void o({from:t,to:r.from}):void o({from:r.from,to:t});o(e)}else"multiple"===a?n.some((e=>Qy(e,"yyyy-MM-dd")===Qy(t,"yyyy-MM-dd")))?o(n.filter((e=>Qy(e,"yyyy-MM-dd")!==Qy(t,"yyyy-MM-dd")))):o([...n,t]):"single"===a&&o(e)},hideNavigation:!0,captionLayout:"label",className:du(t),formatters:{formatWeekdayName:xD},classNames:{months:k,month:"flex flex-col p-2 gap-1 text-center w-full",caption:"relative flex justify-center items-center",table:"w-full border-separate border-spacing-0",head_row:"flex mb-1",head_cell:"text-muted-foreground rounded-md w-10 font-normal text-sm",row:"flex w-full mt-2",cell:"h-10 w-10 text-center text-sm p-0 relative",...r},numberOfMonths:u,showOutsideDays:!0,components:{MonthCaption:function(e){const{goToMonth:t,nextMonth:r,previousMonth:n}=Lb(),o=Qy(e.calendarMonth.date,"yyyy"),i=Qy(e.calendarMonth.date,"MMMM"),a=new Date(e.calendarMonth.date);a.setDate(a.getDate()-a.getDay());const s=Array.from({length:7},((e,t)=>{const r=new Date(a);return r.setDate(a.getDate()+t),xD(r)}));let l;return l=h?`${v} - ${v+23}`:m?o:`${i} ${o}`,(0,Se.jsxs)(Se.Fragment,{children:[(0,Se.jsxs)("div",{className:"flex justify-between",children:[(0,Se.jsx)(nc,{variant:"ghost",onClick:()=>{if(h)D(v-24);else if(m){const r=new Date(b-1,e.calendarMonth.date.getMonth());y(r.getFullYear()),t(r)}else t(n)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Previous Button",icon:(0,Se.jsx)(Sb,{className:"h-4 w-4 text-button-tertiary-color"})}),(0,Se.jsx)(nc,{variant:"ghost",onClick:()=>{u>1||(m?(g(!0),p(!1)):h?g(!1):p(!m))},children:l}),(0,Se.jsx)(nc,{variant:"ghost",onClick:()=>{if(h)D(v+24);else if(m){const r=new Date(b+1,e.calendarMonth.date.getMonth());y(r.getFullYear()),t(r)}else t(r)},className:"bg-background-primary border-none cursor-pointer","aria-label":"Next Button",icon:(0,Se.jsx)(Ib,{className:"h-4 w-4 text-button-tertiary-color"})})]}),h&&(0,Se.jsx)("div",{className:"grid grid-cols-4 w-full",children:kD(v).map((r=>(0,Se.jsxs)(nc,{variant:"ghost",onClick:()=>(r=>{y(r),g(!1),p(!0),t(new Date(r,e.calendarMonth.date.getMonth()))})(r),className:du("h-10 w-full text-center font-normal relative",r===b&&r!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",r===(new Date).getFullYear()&&"font-semibold"),children:[r,r===(new Date).getFullYear()&&_D()]},r)))}),m&&!h&&(0,Se.jsx)("div",{className:"grid grid-cols-4 gap-2 my-12",children:Array.from({length:12},((r,n)=>(0,Se.jsxs)(nc,{variant:"ghost",onClick:()=>{p(!1),t(new Date(b,n))},className:du("px-1.5 py-2 h-10 w-[4.375rem] text-center font-normal relative",n===e.calendarMonth.date.getMonth()&&n!==(new Date).getMonth()&&b===e.calendarMonth.date.getFullYear()&&e.calendarMonth.date.getFullYear()!==(new Date).getFullYear()&&"bg-background-brand text-text-on-color hover:bg-background-brand hover:text-black",n===(new Date).getMonth()&&(new Date).getFullYear()===b&&"font-semibold"),children:[Qy(new Date(0,n),"MMM"),(new Date).getMonth()===n&&(new Date).getFullYear()===b&&_D()]},n)))}),!m&&!h&&(0,Se.jsx)(_,{weekdays:s})]})},DayButton:({day:e,modifiers:t,...r})=>{const{selected:o,today:a,disabled:s,outside:l,range_middle:u,range_start:c,range_end:d}=t,f=c||d||u,m=new Date,p=n?.to,h=Qy(e.displayMonth,"yyyy-MM")===Qy(m,"yyyy-MM"),g=p&&Qy(p,"yyyy-MM")===Qy(e.date,"yyyy-MM"),b=function(e,t,r){return fy(e,-t,r)}(m,1),y=Qy(e.date,"yyyy-MM")===Qy(b,"yyyy-MM"),v=h||g||f,D=!i&&l,_=du("h-10 w-10 flex items-center justify-center transition text-text-secondary relative text-sm","border-none rounded",!o&&!f||l?"bg-transparent hover:bg-button-tertiary-hover":"bg-background-brand text-text-on-color",u&&v&&!l?"bg-brand-background-50 text-text-secondary rounded-none":"",s?"opacity-50 cursor-not-allowed text-text-disabled":"cursor-pointer",l&&!f||!v&&l||l&&!y||l?"bg-transparent opacity-50 text-text-disabled cursor-auto":"");return(0,Se.jsxs)("button",{className:du(_,a&&"font-semibold",D&&"opacity-0",c&&"fui-range-start",d&&"fui-range-end",u&&"fui-range-middle",{"[&:is([data-hover=true])]:bg-brand-background-50 [&:is([data-hover=true])]:rounded-none":!f&&!o}),disabled:s||l,onClick:e=>{"function"==typeof r.onClick&&r.onClick(e)},onMouseEnter:e=>{"function"==typeof r.onMouseEnter&&r.onMouseEnter(e),e.currentTarget.setAttribute("data-hover","true")},onMouseLeave:e=>{"function"==typeof r.onMouseLeave&&r.onMouseLeave(e),e.currentTarget.setAttribute("data-hover","false")},"aria-label":Qy(e.date,"EEEE, MMMM do, yyyy"),"data-selected":o,"data-day":Qy(e.date,"yyyy-MM-dd"),children:[r.children,a&&v&&(0,Se.jsx)("span",{className:"absolute h-1 w-1 bg-background-brand rounded-full bottom-1"})]})},Day:e=>{const t=Object.entries(e).reduce(((e,[t,r])=>(t.startsWith("data-")&&(e[t]=r),e)),{});return(0,Se.jsx)("div",{...t,className:du(e.className,"inline-flex"),children:e.children})},Weekdays:()=>(0,Se.jsx)(Se.Fragment,{}),Week:e=>(0,Se.jsx)("div",{className:du("bsf-force-ui-month-week flex flex-row",e.className),children:e.children}),Months:e=>(0,Se.jsx)(Se.Fragment,{children:(0,Se.jsx)("div",{className:du("bsf-force-ui-date-picker-month",k),children:e?.children?.map(((e,t)=>e?(0,Se.jsx)(Ie.Fragment,{children:e.map(((e,t)=>(0,Se.jsxs)(Ie.Fragment,{children:[t>0&&(0,Se.jsx)("div",{className:"border border-solid border-border-subtle border-l-0"}),e]},t)))},t):null))})}),MonthGrid:e=>m||h?(0,Se.jsx)(Se.Fragment,{}):(0,Se.jsx)(x,{...e})},..."range"===a?{required:!1}:{},...d,onDayMouseEnter:(e,t,r)=>{if("range"!==a)return;const o=n;if(o?.from&&o?.to||!o?.from&&!o?.to)return void Array.from(document.querySelectorAll("[data-hover]")).forEach((e=>{e.setAttribute("data-hover","false")}));const i=r.target,l=new Date(i.dataset.day),u=Zy(l,o.from),c=Gy(l,o.to);let d;switch(s){case"dualdate":case"presets":d=i.closest(".bsf-force-ui-date-picker-month");break;default:d=i.closest(".bsf-force-ui-month-weeks")}const f=Array.from(d.querySelectorAll("button"));c&&f.sort(((e,t)=>Gy(new Date(e.dataset.day),new Date(t.dataset.day))?-1:1)),u&&f.sort(((e,t)=>Zy(new Date(e.dataset.day),new Date(t.dataset.day))?1:-1));const m=f.indexOf(i),p=f.findIndex((e=>"true"===e.getAttribute("data-selected"))),h=[],g=Math.min(m,p),b=Math.max(m,p);for(let e=g;e<=b;e++)f[e]?.disabled||h.push(f[e]);f.forEach((e=>{e.setAttribute("data-hover",h.includes(e)?"true":"false")}))},disabled:c})})};function CD(e){return hy(Date.now(),e)}function MD(e){return uy(e,Date.now())}function AD(e){const t=MD(e?.in),r=t.getFullYear(),n=t.getMonth(),o=t.getDate(),i=MD(e?.in);return i.setFullYear(r,n,o-1),i.setHours(0,0,0,0),i}function ND(e,t,r){return dy(e,-t,r)}const jD=({selectionType:e="single",variant:t="normal",presets:r=[],onCancel:n,onApply:o,onDateSelect:i,applyButtonText:a="Apply",cancelButtonText:s="Cancel",showOutsideDays:l=!0,isFooter:u=!0,selected:c,disabled:d,...f})=>{const[m,p]=(0,Ie.useState)((()=>{if(!c)return ED(e);const t="multiple"===e&&Array.isArray(c),r="single"===e&&c instanceof Date;return t||"range"===e&&"from"in c&&"to"in c||r?c:ED(e)})),h=e=>{p(e),i&&i(e)},g=[{label:"Today",range:{from:CD(),to:CD()}},{label:"Yesterday",range:{from:AD(),to:AD()}},{label:"This Week",range:{from:xy(new Date,{weekStartsOn:1}),to:vy(new Date,{weekStartsOn:1})}},{label:"Last 7 Days",range:{from:hy(ND(new Date,6)),to:hy(new Date)}},{label:"This Month",range:{from:Ky(new Date),to:Dy(new Date)}},{label:"Last 30 Days",range:{from:hy(ND(new Date,29)),to:hy(new Date)}}],b=r.length>0?r:g,y=()=>{p("multiple"===e?[]:{from:void 0,to:void 0}),n&&n()},v=()=>{o&&o(m)};return"normal"===t?(0,Se.jsx)(wD,{...f,mode:e,variant:t,width:"w-[18.5rem]",selectedDates:m,showOutsideDays:l,setSelectedDates:h,footer:u&&(0,Se.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Se.jsx)(nc,{variant:"outline",onClick:y,children:s}),(0,Se.jsx)(nc,{onClick:v,children:a})]}),disabled:d}):"dualdate"===t?(0,Se.jsx)(wD,{mode:e,numberOfMonths:2,alignment:"horizontal",selectedDates:m,setSelectedDates:h,showOutsideDays:l,variant:t,width:"w-auto",footer:(0,Se.jsxs)("div",{className:"flex bg-background-primary justify-end p-2 gap-3 border border-solid border-border-subtle border-t-0 rounded-md rounded-tl-none rounded-tr-none",children:[(0,Se.jsx)(nc,{variant:"outline",onClick:y,children:s}),(0,Se.jsx)(nc,{onClick:v,children:a})]}),disabled:d,...f}):"presets"===t?(0,Se.jsxs)("div",{className:"flex flex-row shadow-datepicker-wrapper",children:[(0,Se.jsx)("div",{className:"flex flex-col gap-1 p-3 items-start border border-solid border-border-subtle border-r-0 rounded-tl-md rounded-bl-md bg-background-primary",children:b.map(((e,t)=>{const r=m&&"from"in m&&"to"in m&&m.from?.getTime()===e.range.from.getTime()&&m.to?.getTime()===e.range.to.getTime();return(0,Se.jsx)(nc,{onClick:()=>(e=>{p(e)})(e.range),variant:"ghost",className:du("text-left font-medium text-sm text-nowrap w-full",r&&"bg-brand-background-50"),children:e.label},t)}))}),(0,Se.jsx)(wD,{...f,mode:e,selectedDates:m,setSelectedDates:h,variant:t,showOutsideDays:l,width:"w-auto",numberOfMonths:2,footer:(0,Se.jsxs)("div",{className:"flex justify-end p-2 gap-3 border-l border-r border-t-0 border-b border-solid border-border-subtle bg-background-primary rounded-br-md",children:[(0,Se.jsx)(nc,{variant:"outline",onClick:y,children:s}),(0,Se.jsx)(nc,{onClick:v,children:a})]}),disabled:d})]}):void 0};function OD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const TD=function(e){var t,r,n=e.label,o=e.date,i=e.onDateChange,l=e.topValue,u=void 0===l?"4.5rem":l,c=(t=(0,s.useState)(!1),r=2,function(e){if(Array.isArray(e))return e}(t)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(t,r)||function(e,t){if(e){if("string"==typeof e)return OD(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?OD(e,t):void 0}}(t,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.")}()),d=c[0],f=c[1],m=(0,s.useRef)(null);(0,s.useEffect)((function(){var e=function(e){d&&m.current&&!m.current.contains(e.target)&&f(!1)};return document.addEventListener("mousedown",e),function(){document.removeEventListener("mousedown",e)}}),[d]);var p,h=function(e){if(e){var t=e.getFullYear(),r=String(e.getMonth()+1).padStart(2,"0"),n=String(e.getDate()).padStart(2,"0"),o="".concat(t,"-").concat(r,"-").concat(n);i(o)}};return React.createElement(React.Fragment,null,React.createElement("div",{className:"relative w-full z-50",ref:m},d&&React.createElement("div",{className:"absolute left-0 bg-white shadow-lg rounded z-999999 overflow-hidden",style:{top:u}},React.createElement(jD,{selectionType:"single",variant:"normal",selected:o?new Date(o):null,cancelButtonText:o?(0,a.__)("Clear","sureforms"):(0,a.__)("Cancel","sureforms"),onDateSelect:h,onApply:function(e){h(e),f(!1)},onCancel:function(){i(""),f(!1)}}))),React.createElement(Oc,{size:"md",className:"w-full cursor-pointer",label:n||(0,a.__)("Date","sureforms"),value:(p=o,p?new Date(p).toLocaleDateString(void 0,{year:"numeric",month:"2-digit",day:"2-digit"}):""),readOnly:!0,onClick:function(){return f(!0)},placeholder:"dd/mm/yyyy"}))};function SD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ID(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ID(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.")}()}function ID(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const FD=function(e){var t=e.hours,r=void 0===t?"12":t,n=e.minutes,o=void 0===n?"00":n,i=e.meridiem,a=void 0===i?"AM":i,l=e.onChange,u=void 0===l?function(){}:l,c=SD((0,s.useState)(r),2),d=c[0],f=c[1],m=SD((0,s.useState)(o),2),p=m[0],h=m[1],g=SD((0,s.useState)(a),2),b=g[0],y=g[1],v=Array.from({length:12},(function(e,t){return String(t+1).padStart(2,"0")})),D=Array.from({length:60},(function(e,t){return String(t).padStart(2,"0")}));return React.createElement("div",{className:"flex items-center gap-2 mt-[1.625rem]"},React.createElement(Jg,{value:d,onChange:function(e){f(e),u("hours",e)}},React.createElement(Jg.Button,{className:"w-20"}),React.createElement(Jg.Options,null,v.map((function(e){return React.createElement(Jg.Option,{key:e,value:e},e)})))),React.createElement("span",{"aria-hidden":"true"},":"),React.createElement(Jg,{value:p,onChange:function(e){h(e),u("minutes",e)}},React.createElement(Jg.Button,{className:"w-20"}),React.createElement(Jg.Options,null,D.map((function(e){return React.createElement(Jg.Option,{key:e,value:e},e)})))),React.createElement(Jg,{value:b,onChange:function(e){y(e),u("meridiem",e)}},React.createElement(Jg.Button,{className:"w-20"}),React.createElement(Jg.Options,null,["AM","PM"].map((function(e){return React.createElement(Jg.Option,{key:e,value:e},e)})))))},LD=function(){var e,t,r,n,o,i,l,u=(0,s.useContext)(jb),c=u.updateMeta,d=u.preserveMetaData;return React.createElement(Sc,{title:(0,a.__)("Advanced Settings","sureforms")},React.createElement("div",{id:"srfm-form-restriction-panel"}),React.createElement(rc,{size:"xs",className:"mb-4",title:(0,a.__)("Form Restriction","sureforms")}),React.createElement(ec,{direction:"column",className:"gap-6"},React.createElement(yc,{size:"sm",label:{heading:(0,a.__)("Maximum Number of Entries","sureforms"),message:(0,a.__)("Set the maximum number of entries allowed for this form. Once the limit is reached, the form will automatically be disabled.","sureforms")},checked:null!==(e=null==d?void 0:d.status)&&void 0!==e&&e,onChange:function(e){c("status",e)}}),(null==d?void 0:d.status)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"flex gap-2 w-full"},React.createElement("div",{className:"w-full"},React.createElement(Oc,{size:"md",type:"number",className:"w-full",value:null!==(t=null==d?void 0:d.maxEntries)&&void 0!==t?t:0,label:(0,a.__)("Maximum Entries","sureforms"),onChange:function(e){var t=parseInt(e,10);(isNaN(t)||t<0)&&(t=0),c("maxEntries",t)}}))),React.createElement("div",{className:"flex gap-2 w-1/2"},React.createElement("div",{className:"w-2/3"},React.createElement(TD,{label:React.createElement(React.Fragment,null,(0,a.__)("Date & Time","sureforms"),React.createElement(Mh,{tooltipPortalId:"srfm-form-restriction-panel",arrow:!0,interactive:!0,content:React.createElement("span",null,(0,s.createInterpolateElement)((0,a.__)("The Time Period setting works according to your WordPress site's time zone. <a>Click here</a> to open your WordPress General Settings, where you can check and update it.","sureforms"),{a:React.createElement("a",{href:(null===(r=srfm_admin)||void 0===r?void 0:r.general_settings_url)||"/wp-admin/options-general.php",target:"_blank",rel:"noopener noreferrer",className:"tooltip-link text-link-inverse text-xs font-semibold no-underline hover:no-underline"},(0,a.__)("Click here","sureforms"))})),placement:"top",triggers:["hover","focus"],variant:"dark"},React.createElement(Tb,{className:"size-4 !text-icon-secondary"}))),date:null==d?void 0:d.date,onDateChange:function(e){c("date",e)}})),(null==d?void 0:d.date)&&React.createElement("div",{className:"w-1/3"},React.createElement(FD,{hours:null!==(n=null==d?void 0:d.hours)&&void 0!==n?n:"12",minutes:null!==(o=null==d?void 0:d.minutes)&&void 0!==o?o:"00",meridiem:null!==(i=null==d?void 0:d.meridiem)&&void 0!==i?i:"AM",onChange:c}))),React.createElement("div",null,React.createElement(gc,{className:"mb-1"},(0,a.__)("Response Description After Maximum Entries","sureforms")),React.createElement(Yc,{size:"md",className:"w-full",value:null!==(l=null==d?void 0:d.message)&&void 0!==l?l:(0,a.__)("This form is now closed as we've received all the entries.","sureforms"),onChange:function(e){c("message",e)}})))))},RD={400:"font-normal",500:"font-medium",600:"font-semibold",700:"font-bold"},PD={36:"text-4xl",30:"text-3xl",24:"text-2xl",20:"text-xl",18:"text-lg",16:"text-base",14:"text-sm",12:"text-xs"},BD={44:"leading-11",38:"leading-9.5",32:"leading-8",30:"leading-7.5",28:"leading-7",24:"leading-6",20:"leading-5",16:"leading-4"},zD={2:"tracking-2"},qD={brand600:"text-brand-primary-600",link:"text-link-primary",primary:"text-text-primary",secondary:"text-text-secondary",tertiary:"text-text-tertiary",disabled:"text-text-disabled",help:"text-field-helper",label:"text-field-label",info:"text-support-info",success:"text-support-success",warning:"text-support-warning",error:"text-support-error",inverse:"text-text-on-color"},VD=(0,Ie.forwardRef)((function({as:e,children:t,weight:r,size:n,lineHeight:o,letterSpacing:i,color:a="primary",className:s,...l},u){return(0,Se.jsx)(e||"p",{ref:u,className:du("m-0 p-0",r?RD[r]:"",n?PD[n]:"",o?BD[o]:"",i?zD[i]:"",a?qD[a]:"",s),...l,children:t})})),UD=lc("Dot",[["circle",{cx:"12.1",cy:"12.1",r:"1",key:"18d7e5"}]]),HD=({variant:e="rectangular",className:t,...r})=>{const n={circular:"rounded-full bg-gray-200 ",rectangular:"rounded-md bg-gray-200"}[e],o={circular:"size-10",rectangular:"w-96 h-3"}[e];return(0,Se.jsx)("div",{className:du(n,"animate-pulse",o,t),...r})},YD=function(e){var t=e.count,r=e.variant,n=void 0===r?"rectangular":r,o=e.className;return Array.from({length:t},(function(e,t){return React.createElement(s.Fragment,{key:t},React.createElement(HD,{variant:n,className:(0,x.cn)("w-full inline-flex",o)}),React.createElement("br",null))}))};var QD=o(1455),WD=o.n(QD);function GD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return ZD(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?ZD(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.")}()}function ZD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const $D=function(e){var t,r=e.loading,n=e.isFormSettings,o=void 0!==n&&n,i=e.setSelectedTab,l=[(0,a.__)("Instantly send form entries to Slack, Mailchimp, or other apps","sureforms"),(0,a.__)("Set up alerts, notifications, or actions based on form submissions","sureforms"),(0,a.__)("Automate tasks like follow-ups, lead assignments, or data sync","sureforms")],u=null===(t=srfm_admin)||void 0===t||null===(t=t.integrations)||void 0===t?void 0:t.sure_triggers,c=GD((0,s.useState)(!1),2),d=c[0],f=c[1],m=GD((0,s.useState)(""),2),p=m[0],h=m[1],g=GD((0,s.useState)(null),2),b=g[0],y=g[1],v=GD((0,s.useState)(""),2),D=v[0],_=v[1],k=GD((0,s.useState)(""),2),E=k[0],w=k[1],C=function(){var e=new window.FormData;e.append("action","sureforms_integration"),e.append("formId",srfm_admin.form_id),e.append("security",srfm_admin.suretriggers_nonce),WD()({url:srfm_admin.ajax_url,method:"POST",body:e}).then((function(t){if(t.success)window.SureTriggersConfig=t.data.data,i&&i("suretriggers");else{if(t.data.code&&"invalid_secret_key"===t.data.code)var r={width:800,height:720},n={left:(screen.width-r.width)/2,top:(screen.height-r.height)/2},o=window.open(u.connection_url,"","width=".concat(r.width,",height=").concat(r.height,",top=").concat(n.top,",left=").concat(n.left,",scrollbars=0")),s=0,l=setInterval((function(){f(!0),h((0,a.__)("Connecting…","sureforms")),w((0,a.__)("Connecting…","sureforms")),WD()({url:srfm_admin.ajax_url,method:"POST",body:e}).then((function(e){e.success?(window.SureTriggersConfig=e.data.data,o.close(),clearInterval(l),y(!0),i&&i("suretriggers"),h(N("Activated",!0)),w(A("Activated"))):s++})),(s>=240||o.closed)&&(o.closed||o.close(),clearInterval(l),h(N("Activated",b||u.connected)),w(A("Activated")),f(!1))}),500);console.error(t.data.message)}}))},M=function(){var e=new window.FormData;e.append("action","sureforms_recommended_plugin_activate"),e.append("security",srfm_admin.sfPluginManagerNonce),e.append("init",u.path),w(srfm_admin.plugin_activating_text),h(srfm_admin.plugin_activating_text),WD()({url:srfm_admin.ajax_url,method:"POST",body:e}).then((function(e){e.success?(w(srfm_admin.plugin_activated_text),h(srfm_admin.plugin_activated_text),_(""),setTimeout((function(){_("sureforms_integrate_with_suretriggers"),w(A("Activated")),h(N("Activated",b||u.connected)),b&&C()}),2e3)):(alert((0,a.__)("Plugin activation failed, Please try again later.","sureforms")),w(srfm_admin.plugin_activate_text),h(srfm_admin.plugin_activate_text))}))},A=function(e){return"Activated"===e?o?b||u.connected?(0,a.__)("Get Started","sureforms"):(0,a.__)("Connect with OttoKit","sureforms"):(0,a.__)("Activated","sureforms"):"Installed"===e?(0,a.__)("Activate","sureforms"):(0,a.__)("Install & Activate","sureforms")},N=function(e){return"Activated"===e?o?arguments.length>1&&void 0!==arguments[1]&&arguments[1]?(0,a.__)("Get Started","sureforms"):(0,a.__)("Connect with OttoKit","sureforms"):(0,a.__)("Activated","sureforms"):"Installed"===e?(0,a.__)("Activate","sureforms"):(0,a.__)("Install & Activate","sureforms")};return(0,s.useEffect)((function(){var e;null===b&&y(u.connected),D?(b||u.connected)&&w(A(u.status)):(_("Activated"===(e=u.status)?"":"Installed"===e?"sureforms_recommended_plugin_activate":"sureforms_recommended_plugin_install"),w(A(u.status))),h(N(null==u?void 0:u.status,b||u.connected))}),[u,b,D]),React.createElement(React.Fragment,null,r?React.createElement("div",null,React.createElement(YD,{count:6,className:"h-6 rounded-sm"})):React.createElement(ec,{className:"flex bg-background-primary rounded-xl"},React.createElement(ec,{className:"p-2 rounded-lg bg-background-secondary gap-2 w-full"},React.createElement(ec,{className:"p-6 gap-6 rounded-md bg-background-primary w-full"},React.createElement(ec,null,React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjgwIiBoZWlnaHQ9IjI4MCIgdmlld0JveD0iMCAwIDI4MCAyODAiIGZpbGw9Im5vbmUiIHhtbG5zPSJodHRwOi8vd3d3LnczLm9yZy8yMDAwL3N2ZyI+CjxwYXRoIGQ9Ik0yMTEuNjggNzIuNDYzVjE1OC42NDdDMjExLjY4IDE2MC44MzEgMjA5Ljg4OCAxNjIuNTY3IDIwNy43NiAxNjIuNTY3SDcwLjk1MkM2OC43NjggMTYyLjU2NyA2Ny4wMzIgMTYwLjgzMSA2Ny4wMzIgMTU4LjY0N1Y3Mi40NjNDNjcuMDMyIDcwLjI3OSA2OC43NjggNjguNTQzIDcwLjk1MiA2OC41NDNIMjA3LjcwNEMyMDkuODg4IDY4LjU0MyAyMTEuNjI0IDcwLjI3OSAyMTEuNjggNzIuNDYzWiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIwNy43MDQgMTYyLjg0OEg3MC45NTJDNjguNiAxNjIuODQ4IDY2Ljc1MiAxNjAuOTQ0IDY2Ljc1MiAxNTguNjQ4VjcyLjQ2MzdDNjYuNzUyIDcwLjExMTcgNjguNjU2IDY4LjI2MzcgNzAuOTUyIDY4LjI2MzdIMjA3LjcwNEMyMTAuMDU2IDY4LjI2MzcgMjExLjkwNCA3MC4xNjc3IDIxMS45MDQgNzIuNDYzN1YxNTguNjQ4QzIxMS45NiAxNjAuOTQ0IDIxMC4wNTYgMTYyLjg0OCAyMDcuNzA0IDE2Mi44NDhaTTcwLjk1MiA2OC44MjM3QzY4LjkzNiA2OC44MjM3IDY3LjMxMiA3MC40NDc3IDY3LjMxMiA3Mi40NjM3VjE1OC42NDhDNjcuMzEyIDE2MC42NjQgNjguOTM2IDE2Mi4yODggNzAuOTUyIDE2Mi4yODhIMjA3LjcwNEMyMDkuNzIgMTYyLjI4OCAyMTEuMzQ0IDE2MC42NjQgMjExLjM0NCAxNTguNjQ4VjcyLjQ2MzdDMjExLjM0NCA3MC40NDc3IDIwOS43MiA2OC44MjM3IDIwNy43MDQgNjguODIzN0g3MC45NTJaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMDUuNjg4IDc0LjQyMzhINzIuOTEyMVYxNTYuNjg4SDIwNS42ODhWNzQuNDIzOFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMDUuNzQ0IDE1Ni45NjlINzIuOTEyMUM3Mi43NDQxIDE1Ni45NjkgNzIuNjMyMSAxNTYuODU3IDcyLjYzMjEgMTU2LjY4OVY3NC40MjQ1QzcyLjYzMjEgNzQuMjU2NSA3Mi43NDQxIDc0LjE0NDUgNzIuOTEyMSA3NC4xNDQ1SDIwNS43NDRDMjA1LjkxMiA3NC4xNDQ1IDIwNi4wMjQgNzQuMjU2NSAyMDYuMDI0IDc0LjQyNDVWMTU2LjY4OUMyMDYuMDI0IDE1Ni44NTcgMjA1LjkxMiAxNTYuOTY5IDIwNS43NDQgMTU2Ljk2OVpNNzMuMjQ4MSAxNTYuNDA5SDIwNS40NjRWNzQuNzA0NUg3My4yNDgxVjE1Ni40MDlaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik03MCAxMjEuNDA3QzY5LjI3MiAxMjEuNDA3IDY4LjY1NiAxMjAuNzkxIDY4LjY1NiAxMjAuMDYzQzY4LjY1NiAxMTkuMzM1IDY5LjI3MiAxMTguNzE5IDcwIDExOC43MTlDNzAuNzI4IDExOC43MTkgNzEuMzQ0IDExOS4zMzUgNzEuMzQ0IDEyMC4wNjNDNzEuMzQ0IDEyMC43OTEgNzAuNzI4IDEyMS40MDcgNzAgMTIxLjQwN1pNNzAgMTE5LjMzNUM2OS42MDggMTE5LjMzNSA2OS4yNzIgMTE5LjY3MSA2OS4yNzIgMTIwLjA2M0M2OS4yNzIgMTIwLjQ1NSA2OS42MDggMTIwLjc5MSA3MCAxMjAuNzkxQzcwLjM5MiAxMjAuNzkxIDcwLjcyOCAxMjAuNDU1IDcwLjcyOCAxMjAuMDYzQzcwLjc4NCAxMTkuNjcxIDcwLjQ0OCAxMTkuMzM1IDcwIDExOS4zMzVaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNzAgMTE4LjIxNUM2OS4yNzIgMTE4LjIxNSA2OC42NTYgMTE3LjU5OSA2OC42NTYgMTE2Ljg3MVYxMTEuMDQ3QzY4LjY1NiAxMTAuMzE5IDY5LjI3MiAxMDkuNzAzIDcwIDEwOS43MDNDNzAuNzI4IDEwOS43MDMgNzEuMzQ0IDExMC4zMTkgNzEuMzQ0IDExMS4wNDdWMTE2Ljg3MUM3MS4zNDQgMTE3LjU5OSA3MC43ODQgMTE4LjIxNSA3MCAxMTguMjE1Wk03MCAxMTAuMzE5QzY5LjYwOCAxMTAuMzE5IDY5LjI3MiAxMTAuNjU1IDY5LjI3MiAxMTEuMDQ3VjExNi44NzFDNjkuMjcyIDExNy4yNjMgNjkuNjA4IDExNy41OTkgNzAgMTE3LjU5OUM3MC4zOTIgMTE3LjU5OSA3MC43MjggMTE3LjI2MyA3MC43MjggMTE2Ljg3MVYxMTEuMDQ3QzcwLjc4NCAxMTAuNTk5IDcwLjQ0OCAxMTAuMjYzIDcwIDExMC4zMTlaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNNzAgMTIxLjQwN0M2OS4yNzIgMTIxLjQwNyA2OC42NTYgMTIwLjc5MSA2OC42NTYgMTIwLjA2M0M2OC42NTYgMTE5LjMzNSA2OS4yNzIgMTE4LjcxOSA3MCAxMTguNzE5QzcwLjcyOCAxMTguNzE5IDcxLjM0NCAxMTkuMzM1IDcxLjM0NCAxMjAuMDYzQzcxLjM0NCAxMjAuNzkxIDcwLjcyOCAxMjEuNDA3IDcwIDEyMS40MDdaTTcwIDExOS4zMzVDNjkuNjA4IDExOS4zMzUgNjkuMjcyIDExOS42NzEgNjkuMjcyIDEyMC4wNjNDNjkuMjcyIDEyMC40NTUgNjkuNjA4IDEyMC43OTEgNzAgMTIwLjc5MUM3MC4zOTIgMTIwLjc5MSA3MC43MjggMTIwLjQ1NSA3MC43MjggMTIwLjA2M0M3MC43ODQgMTE5LjY3MSA3MC40NDggMTE5LjMzNSA3MCAxMTkuMzM1WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNNzAgMTE4LjIxNUM2OS4yNzIgMTE4LjIxNSA2OC42NTYgMTE3LjU5OSA2OC42NTYgMTE2Ljg3MVYxMTEuMDQ3QzY4LjY1NiAxMTAuMzE5IDY5LjI3MiAxMDkuNzAzIDcwIDEwOS43MDNDNzAuNzI4IDEwOS43MDMgNzEuMzQ0IDExMC4zMTkgNzEuMzQ0IDExMS4wNDdWMTE2Ljg3MUM3MS4zNDQgMTE3LjU5OSA3MC43ODQgMTE4LjIxNSA3MCAxMTguMjE1Wk03MCAxMTAuMzE5QzY5LjYwOCAxMTAuMzE5IDY5LjI3MiAxMTAuNjU1IDY5LjI3MiAxMTEuMDQ3VjExNi44NzFDNjkuMjcyIDExNy4yNjMgNjkuNjA4IDExNy41OTkgNzAgMTE3LjU5OUM3MC4zOTIgMTE3LjU5OSA3MC43MjggMTE3LjI2MyA3MC43MjggMTE2Ljg3MVYxMTEuMDQ3QzcwLjc4NCAxMTAuNTk5IDcwLjQ0OCAxMTAuMjYzIDcwIDExMC4zMTlaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik03MCAxMjEuNDA3QzY5LjI3MiAxMjEuNDA3IDY4LjY1NiAxMjAuNzkxIDY4LjY1NiAxMjAuMDYzQzY4LjY1NiAxMTkuMzM1IDY5LjI3MiAxMTguNzE5IDcwIDExOC43MTlDNzAuNzI4IDExOC43MTkgNzEuMzQ0IDExOS4zMzUgNzEuMzQ0IDEyMC4wNjNDNzEuMzQ0IDEyMC43OTEgNzAuNzI4IDEyMS40MDcgNzAgMTIxLjQwN1pNNzAgMTE5LjMzNUM2OS42MDggMTE5LjMzNSA2OS4yNzIgMTE5LjY3MSA2OS4yNzIgMTIwLjA2M0M2OS4yNzIgMTIwLjQ1NSA2OS42MDggMTIwLjc5MSA3MCAxMjAuNzkxQzcwLjM5MiAxMjAuNzkxIDcwLjcyOCAxMjAuNDU1IDcwLjcyOCAxMjAuMDYzQzcwLjc4NCAxMTkuNjcxIDcwLjQ0OCAxMTkuMzM1IDcwIDExOS4zMzVaIiBzdHJva2U9IiMwODJGNDkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNNzAgMTE4LjIxNUM2OS4yNzIgMTE4LjIxNSA2OC42NTYgMTE3LjU5OSA2OC42NTYgMTE2Ljg3MVYxMTEuMDQ3QzY4LjY1NiAxMTAuMzE5IDY5LjI3MiAxMDkuNzAzIDcwIDEwOS43MDNDNzAuNzI4IDEwOS43MDMgNzEuMzQ0IDExMC4zMTkgNzEuMzQ0IDExMS4wNDdWMTE2Ljg3MUM3MS4zNDQgMTE3LjU5OSA3MC43ODQgMTE4LjIxNSA3MCAxMTguMjE1Wk03MCAxMTAuMzE5QzY5LjYwOCAxMTAuMzE5IDY5LjI3MiAxMTAuNjU1IDY5LjI3MiAxMTEuMDQ3VjExNi44NzFDNjkuMjcyIDExNy4yNjMgNjkuNjA4IDExNy41OTkgNzAgMTE3LjU5OUM3MC4zOTIgMTE3LjU5OSA3MC43MjggMTE3LjI2MyA3MC43MjggMTE2Ljg3MVYxMTEuMDQ3QzcwLjc4NCAxMTAuNTk5IDcwLjQ0OCAxMTAuMjYzIDcwIDExMC4zMTlaIiBzdHJva2U9IiMwODJGNDkiIHN0cm9rZS1saW5lY2FwPSJyb3VuZCIgc3Ryb2tlLWxpbmVqb2luPSJyb3VuZCIvPgo8cGF0aCBkPSJNMjMwLjk0NCAxODguMjE1QzIzNS4zMTIgMTg4LjMyNyAyMzguMDU2IDE5MC4zNDMgMjQxLjg2NCAxOTguODU1QzI0NS42NzIgMjA3LjM2NyAyNTIuMzkyIDIyMy45OTkgMjUyLjM5MiAyMjMuOTk5QzI1Mi4zOTIgMjIzLjk5OSAyMDYuMDI0IDIzNS4wMzEgMjA1Ljc0NCAyMzQuNTI3QzIwNS40NjQgMjMzLjk2NyAyMDIuMzg0IDE5OS4wMjMgMjAyLjM4NCAxOTkuMDIzQzIwMi4wNDggMTk2LjU1OSAyMDMuNDQ4IDE5NC4yMDcgMjA1LjggMTkzLjMxMUMyMDkuODMyIDE5MS42ODcgMjIxLjAzMiAxODcuNzY3IDIzMC45NDQgMTg4LjIxNVoiIGZpbGw9IiNGQ0JGQTUiLz4KPHBhdGggZD0iTTIzMC45NDQgMTg4LjIxNkMyMzAuOTQ0IDE4OC4yMTYgMjE2LjA0OCAxODguNTUyIDIwNS44IDE5My4zMTJMMjAxLjc2OCAxNzMuMTUyQzIwMS43NjggMTczLjE1MiAxOTYuNjcyIDE2Ny4wNDggMTk0LjgyNCAxNjIuNTY4SDIwNy43NkMyMDguNjU2IDE2Mi41NjggMjA5LjU1MiAxNjIuMjMyIDIxMC4yOCAxNjEuNjcyQzIwMS41NDQgMTQ5Ljc0NCAxOTcuNDU2IDEzNC44NDggMjAwLjA4OCAxMzMuNDQ4QzIwMi4zMjggMTMyLjIxNiAyMDcuMjU2IDEzNS41NzYgMjExLjY4IDE0MC4wNTZWMTIwLjE3NkMyMTcgMTI0Ljc2OCAyMjYuMDcyIDE0My41ODQgMjI2LjA3MiAxNDkuOEMyMjYuMDcyIDE1Ni40NjQgMjIzLjYwOCAxNjIuNzM2IDIyNC45NTIgMTY5LjczNkMyMjYuMjQgMTc2LjczNiAyMzAuOTQ0IDE4OC4yMTYgMjMwLjk0NCAxODguMjE2WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIwNS43NDQgMTkzLjU5MkMyMDUuNjg4IDE5My41OTIgMjA1LjYzMiAxOTMuNTkyIDIwNS42MzIgMTkzLjUzNkMyMDUuNTc2IDE5My40OCAyMDUuNTIgMTkzLjQyNCAyMDUuNDY0IDE5My4zNjhMMjAxLjQzMiAxNzMuMjY0QzIwMC44NzIgMTcyLjU5MiAxOTYuMjggMTY2Ljk5MiAxOTQuNDg4IDE2Mi42MjRDMTk0LjQzMiAxNjIuNTEyIDE5NC40ODggMTYyLjQ1NiAxOTQuNTQ0IDE2Mi4zNDRDMTk0LjYgMTYyLjI4OCAxOTQuNzEyIDE2Mi4yMzIgMTk0Ljc2OCAxNjIuMjMySDIwNy43MDRDMjA4LjQ4OCAxNjIuMjMyIDIwOS4yMTYgMTYyLjAwOCAyMDkuODMyIDE2MS41NkMyMDYuMzA0IDE1Ni42ODggMjAzLjQ0OCAxNTEuMzEyIDIwMS4zMiAxNDUuNzEyQzE5OS40NzIgMTQwLjcyOCAxOTguNjMyIDEzNi41MjggMTk5LjA4IDEzNC40NTZDMTk5LjEzNiAxMzMuOTUyIDE5OS40MTYgMTMzLjQ0OCAxOTkuODY0IDEzMy4xNjhDMjAyLjM4NCAxMzEuODI0IDIwNy4zMTIgMTM1LjQwOCAyMTEuMzQ0IDEzOS4zMjhWMTIwLjEyQzIxMS4zNDQgMTIwLjAwOCAyMTEuNCAxMTkuODk2IDIxMS41MTIgMTE5Ljg0QzIxMS42MjQgMTE5Ljc4NCAyMTEuNzM2IDExOS43ODQgMjExLjc5MiAxMTkuODk2QzIxNy4wNTYgMTI0LjQzMiAyMjYuMjQgMTQzLjQxNiAyMjYuMjQgMTQ5Ljc0NEMyMjYuMTg0IDE1Mi4zMiAyMjUuOTA0IDE1NC45NTIgMjI1LjQ1NiAxNTcuNTI4QzIyNC44OTYgMTYxLjM5MiAyMjQuMjggMTY1LjQyNCAyMjUuMTIgMTY5LjYyNEMyMjYuNDY0IDE3Ni41MTIgMjMxLjExMiAxODcuOTM2IDIzMS4xMTIgMTg4LjA0OEMyMzEuMTY4IDE4OC4xMDQgMjMxLjE2OCAxODguMjE2IDIzMS4xMTIgMTg4LjMyOEMyMzEuMDU2IDE4OC4zODQgMjMwLjk0NCAxODguNDQgMjMwLjg4OCAxODguNDRDMjMwLjcyIDE4OC40NCAyMTUuOTM2IDE4OC44MzIgMjA1Ljg1NiAxOTMuNTM2QzIwNS44NTYgMTkzLjU5MiAyMDUuOCAxOTMuNTkyIDIwNS43NDQgMTkzLjU5MlpNMTk1LjIxNiAxNjIuODQ4QzE5Ny4xMiAxNjcuMjcyIDIwMS44OCAxNzIuOTI4IDIwMS45MzYgMTcyLjk4NEMyMDEuOTkyIDE3My4wNCAyMDEuOTkyIDE3My4wNCAyMDEuOTkyIDE3My4wOTZMMjA1Ljk2OCAxOTIuODY0QzIxNS4yMDggMTg4LjY2NCAyMjguMDMyIDE4Ny45OTIgMjMwLjQ5NiAxODcuODhDMjI5LjY1NiAxODUuODA4IDIyNS43OTIgMTc1Ljk1MiAyMjQuNjE2IDE2OS43MzZDMjIzLjc3NiAxNjUuNDI0IDIyNC4zOTIgMTYxLjM5MiAyMjQuOTUyIDE1Ny40MTZDMjI1LjQgMTU0Ljg5NiAyMjUuNjI0IDE1Mi4zMiAyMjUuNjggMTQ5Ljc0NEMyMjUuNjggMTQzLjY5NiAyMTcuMTY4IDEyNS45NDQgMjExLjkwNCAxMjAuNzkyVjE0MEMyMTEuOTA0IDE0MC4xMTIgMjExLjg0OCAxNDAuMjI0IDIxMS43MzYgMTQwLjI4QzIxMS42MjQgMTQwLjMzNiAyMTEuNTEyIDE0MC4yOCAyMTEuNCAxNDAuMjI0QzIwNi41MjggMTM1LjI5NiAyMDEuOTkyIDEzMi42MDggMjAwLjE0NCAxMzMuNjcyQzE5OS44NjQgMTMzLjg5NiAxOTkuNjQgMTM0LjIzMiAxOTkuNjQgMTM0LjU2OEMxOTguOCAxMzguMjY0IDIwMi42NjQgMTUwLjg2NCAyMTAuNDQ4IDE2MS40NDhDMjEwLjU2IDE2MS41NiAyMTAuNTA0IDE2MS43MjggMjEwLjM5MiAxNjEuODRDMjA5LjY2NCAxNjIuNDU2IDIwOC43MTIgMTYyLjc5MiAyMDcuNzA0IDE2Mi43OTJMMTk1LjIxNiAxNjIuODQ4WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMjE3LjI4IDE0NS45OTFDMjE3LjIyNCAxNDUuOTkxIDIxNy4xMTIgMTQ1LjkzNSAyMTcuMDU2IDE0NS44NzlDMjE0LjA4OCAxNDIuNjg3IDIxMS40NTYgMTQwLjI3OSAyMTEuNDU2IDE0MC4yNzlDMjExLjM0NCAxNDAuMTY3IDIxMS4zNDQgMTM5Ljk5OSAyMTEuNDU2IDEzOS44ODdDMjExLjU2OCAxMzkuNzc1IDIxMS43MzYgMTM5Ljc3NSAyMTEuODQ4IDEzOS44ODdDMjExLjg0OCAxMzkuODg3IDIxNC40OCAxNDIuMzUxIDIxNy41MDQgMTQ1LjU0M0MyMTcuNjE2IDE0NS42NTUgMjE3LjYxNiAxNDUuODIzIDIxNy41MDQgMTQ1LjkzNUMyMTcuNDQ4IDE0NS45MzUgMjE3LjMzNiAxNDUuOTkxIDIxNy4yOCAxNDUuOTkxWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMjEyLjI5NiAxNjQuOTc2QzIxMi4xODQgMTY0Ljk3NiAyMTIuMTI4IDE2NC45MiAyMTIuMDcyIDE2NC44NjRMMjEwIDE2MS44NEMyMDkuODg4IDE2MS43MjggMjA5Ljk0NCAxNjEuNTA0IDIxMC4wNTYgMTYxLjQ0OEMyMTAuMTY4IDE2MS4zMzYgMjEwLjM5MiAxNjEuMzkyIDIxMC40NDggMTYxLjUwNEwyMTIuNTIgMTY0LjU4NEMyMTIuNjMyIDE2NC42OTYgMjEyLjU3NiAxNjQuODY0IDIxMi40NjQgMTY0Ljk3NkMyMTIuNDA4IDE2NC45NzYgMjEyLjM1MiAxNjQuOTc2IDIxMi4yOTYgMTY0Ljk3NloiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTQ3LjcxMiAxODguMjE1QzQzLjM0NCAxODguMzI3IDQwLjYgMTkwLjM0MyAzNi43OTIgMTk4Ljg1NUMzMi45ODQgMjA3LjM2NyAyNi4yMDggMjIzLjk5OSAyNi4yMDggMjIzLjk5OUMyNi4yMDggMjIzLjk5OSA3Mi41NzYgMjM1LjAzMSA3Mi44NTYgMjM0LjUyN0M3My4xMzYgMjMzLjk2NyA3Ni4yNzIgMTk5LjAyMyA3Ni4yNzIgMTk5LjAyM0M3Ni42MDggMTk2LjU1OSA3NS4yMDggMTk0LjIwNyA3Mi44NTYgMTkzLjMxMUM2OC44MjQgMTkxLjY4NyA1Ny42MjQgMTg3Ljc2NyA0Ny43MTIgMTg4LjIxNVoiIGZpbGw9IiNGQ0JGQTUiLz4KPHBhdGggZD0iTTQ3LjcxMTkgMTg4LjIxNkM0Ny43MTE5IDE4OC4yMTYgNjIuNjA3OSAxODguNTUyIDcyLjg1NTkgMTkzLjMxMkw3Ni44ODc5IDE3My4xNTJDNzYuODg3OSAxNzMuMTUyIDgxLjk4MzkgMTY3LjEwNCA4My44MzE5IDE2Mi41NjhINzAuODk1OUM2OS45OTk5IDE2Mi41NjggNjkuMTAzOSAxNjIuMjMyIDY4LjM3NTkgMTYxLjY3MkM3Ny4xMTE5IDE0OS43NDQgODEuMTk5OSAxMzQuODQ4IDc4LjU2NzkgMTMzLjQ0OEM3Ni4zMjc5IDEzMi4yMTYgNzEuMzk5OSAxMzUuNTc2IDY2Ljk3NTkgMTQwLjA1NlYxMjAuMTc2QzYxLjY1NTkgMTI0Ljc2OCA1Mi41ODM5IDE0My41ODQgNTIuNTgzOSAxNDkuOEM1Mi41ODM5IDE1Ni40NjQgNTUuMDQ3OSAxNjIuNzM2IDUzLjcwMzkgMTY5LjczNkM1Mi4zNTk5IDE3Ni43MzYgNDcuNzExOSAxODguMjE2IDQ3LjcxMTkgMTg4LjIxNloiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik03Mi44NTYgMTkzLjU5MkM3Mi44IDE5My41OTIgNzIuOCAxOTMuNTkyIDcyLjc0NCAxOTMuNTM2QzYyLjYwOCAxODguODMyIDQ3LjgyNCAxODguNDQgNDcuNjU2IDE4OC40NEM0Ny41NDQgMTg4LjQ0IDQ3LjQ4OCAxODguMzg0IDQ3LjQzMiAxODguMzI4QzQ3LjM3NiAxODguMjcyIDQ3LjM3NiAxODguMTYgNDcuMzc2IDE4OC4wNDhDNDcuNDMyIDE4Ny45MzYgNTIuMDggMTc2LjU2OCA1My40MjQgMTY5LjYyNEM1NC4yMDggMTY1LjQyNCA1My42NDggMTYxLjM5MiA1My4wODggMTU3LjUyOEM1Mi42NCAxNTQuOTUyIDUyLjQxNiAxNTIuMzc2IDUyLjMwNCAxNDkuNzQ0QzUyLjMwNCAxNDMuNDE2IDYxLjQ4OCAxMjQuNDMyIDY2Ljc1MiAxMTkuODk2QzY2Ljg2NCAxMTkuODQgNjYuOTc2IDExOS43ODQgNjcuMDg4IDExOS44NEM2Ny4yIDExOS44OTYgNjcuMjU2IDEyMC4wMDggNjcuMjU2IDEyMC4xMlYxMzkuMzI4QzcxLjIzMiAxMzUuMzUyIDc2LjIxNiAxMzEuODI0IDc4LjczNiAxMzMuMTY4Qzc5LjE4NCAxMzMuNDQ4IDc5LjQ2NCAxMzMuOTUyIDc5LjUyIDEzNC40NTZDNzkuOTY4IDEzNi41MjggNzkuMTg0IDE0MC43MjggNzcuMjggMTQ1LjcxMkM3NS4xNTIgMTUxLjM2OCA3Mi4yOTYgMTU2LjY4OCA2OC43NjggMTYxLjU2QzY5LjM4NCAxNjIuMDA4IDcwLjExMiAxNjIuMjMyIDcwLjg5NiAxNjIuMjMySDgzLjgzMkM4My45NDQgMTYyLjIzMiA4NCAxNjIuMjg4IDg0LjA1NiAxNjIuMzQ0Qzg0LjExMiAxNjIuNCA4NC4xMTIgMTYyLjUxMiA4NC4xMTIgMTYyLjYyNEM4Mi4zMiAxNjYuOTkyIDc3LjcyOCAxNzIuNTkyIDc3LjE2OCAxNzMuMjY0TDczLjEzNiAxOTMuMzY4QzczLjEzNiAxOTMuNDggNzMuMDggMTkzLjUzNiA3Mi45NjggMTkzLjUzNkM3Mi45NjggMTkzLjU5MiA3Mi45MTIgMTkzLjU5MiA3Mi44NTYgMTkzLjU5MlpNNDguMTA0IDE4Ny45MzZDNTAuNTY4IDE4OC4wNDggNjMuMzkyIDE4OC43MiA3Mi42MzIgMTkyLjkyTDc2LjYwOCAxNzMuMTUyQzc2LjYwOCAxNzMuMDk2IDc2LjY2NCAxNzMuMDQgNzYuNjY0IDE3My4wNEM3Ni43MiAxNzIuOTg0IDgxLjQ4IDE2Ny4yNzIgODMuMzg0IDE2Mi45MDRINzAuODRDNjkuODMyIDE2Mi45MDQgNjguODggMTYyLjU2OCA2OC4xNTIgMTYxLjk1MkM2OC4wNCAxNjEuODQgNjguMDQgMTYxLjY3MiA2OC4wOTYgMTYxLjU2Qzc1LjgyNCAxNTAuOTc2IDc5Ljc0NCAxMzguMzIgNzguOTA0IDEzNC42OEM3OC44NDggMTM0LjM0NCA3OC42OCAxMzQuMDA4IDc4LjQgMTMzLjc4NEM3Ni40OTYgMTMyLjc3NiA3MS45NiAxMzUuNDA4IDY3LjE0NCAxNDAuMzM2QzY3LjAzMiAxNDAuNDQ4IDY2Ljg2NCAxNDAuNDQ4IDY2Ljc1MiAxNDAuMzM2QzY2LjY5NiAxNDAuMjggNjYuNjQgMTQwLjIyNCA2Ni42NCAxNDAuMTEyVjEyMC45MDRDNjEuMzc2IDEyNi4wNTYgNTIuODY0IDE0My44MDggNTIuODY0IDE0OS44NTZDNTIuOTIgMTUyLjQzMiA1My4yIDE1NS4wMDggNTMuNTkyIDE1Ny41MjhDNTQuMTUyIDE2MS40NDggNTQuNzY4IDE2NS41MzYgNTMuOTI4IDE2OS44NDhDNTIuODA4IDE3Ni4wMDggNDguOTQ0IDE4NS44NjQgNDguMTA0IDE4Ny45MzZaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik02MS4zNzU5IDE0NS45OTJDNjEuMjA3OSAxNDUuOTkyIDYxLjA5NTkgMTQ1Ljg4IDYxLjA5NTkgMTQ1LjcxMkM2MS4wOTU5IDE0NS42NTYgNjEuMDk1OSAxNDUuNTQ0IDYxLjIwNzkgMTQ1LjQ4OEM2NC4xNzYgMTQyLjI5NiA2Ni44MDc5IDEzOS44ODggNjYuODYzOSAxMzkuODMyQzY2Ljk3NTkgMTM5LjcyIDY3LjE0MzkgMTM5LjcyIDY3LjI1NTkgMTM5LjgzMkM2Ny4zNjc5IDEzOS45NDQgNjcuMzY3OSAxNDAuMTEyIDY3LjI1NTkgMTQwLjIyNEM2Ny4xOTk5IDE0MC4yMjQgNjQuNjIzOSAxNDIuNjMyIDYxLjY1NTkgMTQ1LjgyNEM2MS40ODc5IDE0NS45MzYgNjEuNDMxOSAxNDUuOTkyIDYxLjM3NTkgMTQ1Ljk5MloiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTY2LjMwNDEgMTY0Ljk3NUM2Ni4yNDgxIDE2NC45NzUgNjYuMTkyMSAxNjQuOTc1IDY2LjEzNjEgMTY0LjkxOUM2Ni4wMjQxIDE2NC44MDcgNjUuOTY4MSAxNjQuNjM5IDY2LjA4MDEgMTY0LjUyN0w2OC4xNTIxIDE2MS40NDdDNjguMjY0MSAxNjEuMzM1IDY4LjQzMjEgMTYxLjI3OSA2OC41NDQxIDE2MS4zOTFDNjguNjU2MSAxNjEuNTAzIDY4LjcxMjEgMTYxLjY3MSA2OC42MDAxIDE2MS43ODNMNjYuNDcyMSAxNjQuODYzQzY2LjQ3MjEgMTY0Ljk3NSA2Ni4zNjAxIDE2NC45NzUgNjYuMzA0MSAxNjQuOTc1WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTA1LjA1NiAxNTYuOTY5QzEwNC44ODggMTU2Ljk2OSAxMDQuNzc2IDE1Ni44NTcgMTA0Ljc3NiAxNTYuNjg5Vjc0LjQyNDVDMTA0Ljc3NiA3NC4yNTY1IDEwNC44ODggNzQuMTQ0NSAxMDUuMDU2IDc0LjE0NDVDMTA1LjIyNCA3NC4xNDQ1IDEwNS4zMzYgNzQuMjU2NSAxMDUuMzM2IDc0LjQyNDVWMTU2LjY4OUMxMDUuMzkyIDE1Ni44NTcgMTA1LjIyNCAxNTYuOTY5IDEwNS4wNTYgMTU2Ljk2OVoiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTk5LjM5OTggNzkuMzUxNkg3OC43MzU4Vjg1LjQ1NTZIOTkuMzk5OFY3OS4zNTE2WiIgZmlsbD0iI0ZDQkZBNSIvPgo8cGF0aCBkPSJNOTkuMzQzOSA4NS42Nzk2SDc4LjY3OTlDNzguNTExOSA4NS42Nzk2IDc4LjM5OTkgODUuNTY3NiA3OC4zOTk5IDg1LjM5OTZWNzkuMjk1NkM3OC4zOTk5IDc5LjEyNzYgNzguNTExOSA3OS4wMTU2IDc4LjY3OTkgNzkuMDE1Nkg5OS4zNDM5Qzk5LjUxMTkgNzkuMDE1NiA5OS42MjM5IDc5LjEyNzYgOTkuNjIzOSA3OS4yOTU2Vjg1LjM5OTZDOTkuNjIzOSA4NS41Njc2IDk5LjUxMTkgODUuNjc5NiA5OS4zNDM5IDg1LjY3OTZaTTc5LjAxNTkgODUuMTE5Nkg5OS4wNjM5Vjc5LjYzMTZINzkuMDE1OVY4NS4xMTk2WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNODAuNzUyIDgzLjEwNDNMODMuMTYgODAuNjk2M0M4My4zMjggODAuNTI4MyA4My42NjQgODAuNTI4MyA4My44MzIgODAuNjk2M0M4NCA4MC44NjQzIDg0IDgxLjIwMDMgODMuODMyIDgxLjM2ODNMODEuNDI0IDgzLjc3NjNMODAuNzUyIDgzLjEwNDNaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNODEuNDIzOSA4NC4wNTU3QzgxLjM2NzkgODQuMDU1NyA4MS4yNTU5IDg0LjA1NTcgODEuMTk5OSA4My45OTk3TDgwLjUyNzkgODMuMzI3N0M4MC40NzE5IDgzLjI3MTcgODAuNDcxOSA4My4yMTU3IDgwLjQ3MTkgODMuMTAzN0M4MC40NzE5IDgzLjA0NzcgODAuNTI3OSA4Mi45MzU3IDgwLjUyNzkgODIuODc5N0w4Mi45MzU5IDgwLjQ3MTdDODMuMjE1OSA4MC4xOTE3IDgzLjcxOTkgODAuMTkxNyA4NC4wNTU5IDgwLjQ3MTdDODQuMzkxOSA4MC43NTE3IDg0LjMzNTkgODEuMjU1NyA4NC4wNTU5IDgxLjU5MTdMODEuNjQ3OSA4My45OTk3QzgxLjU5MTkgODMuOTk5NyA4MS40Nzk5IDg0LjA1NTcgODEuNDIzOSA4NC4wNTU3Wk04MS4xNDM5IDgzLjEwMzdMODEuNDIzOSA4My4zODM3TDgzLjYwNzkgODEuMTk5N0M4My42NjM5IDgxLjE0MzcgODMuNjYzOSA4MC45NzU3IDgzLjYwNzkgODAuOTE5N0M4My41NTE5IDgwLjg2MzcgODMuMzgzOSA4MC44NjM3IDgzLjMyNzkgODAuOTE5N0w4MS4xNDM5IDgzLjEwMzdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik04MS40MjM5IDgzLjc3NzVMODAuNzUxOSA4My4xMDU1TDgwLjM1OTkgODQuMTEzNUw4MS40MjM5IDgzLjc3NzVaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik04MC4zNTk4IDg0LjQ0ODJDODAuMzAzOCA4NC40NDgyIDgwLjE5MTggODQuMzkyMiA4MC4xMzU4IDg0LjMzNjJDODAuMDc5OCA4NC4yODAyIDgwLjAyMzggODQuMTY4MiA4MC4wNzk4IDg0LjA1NjJMODAuNDcxOCA4Mi45OTIyQzgwLjUyNzggODIuODgwMiA4MC41ODM4IDgyLjgyNDIgODAuNjk1OCA4Mi44MjQyQzgwLjgwNzggODIuODI0MiA4MC44NjM4IDgyLjgyNDIgODAuOTc1OCA4Mi44ODAyTDgxLjY0NzggODMuNTUyMkM4MS43NTk4IDgzLjY2NDIgODEuNzU5OCA4My44MzIyIDgxLjY0NzggODMuOTQ0MkM4MS41OTE4IDg0LjAwMDIgODEuNTkxOCA4NC4wMDAyIDgxLjUzNTggODQuMDAwMkw4MC40NzE4IDg0LjM5MjJDODAuNDE1OCA4NC40NDgyIDgwLjQxNTggODQuNDQ4MiA4MC4zNTk4IDg0LjQ0ODJaTTgwLjg2MzggODMuNjA4MlY4My42NjQySDgwLjkxOThMODAuODYzOCA4My42MDgyWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNOTkuMzQzOSA5Ni43MTMzSDc4LjY3OTlDNzguNTExOSA5Ni43MTMzIDc4LjM5OTkgOTYuNjAxMyA3OC4zOTk5IDk2LjQzMzNWOTEuMjI1M0M3OC4zOTk5IDkxLjA1NzMgNzguNTExOSA5MC45NDUzIDc4LjY3OTkgOTAuOTQ1M0g5OS4zNDM5Qzk5LjUxMTkgOTAuOTQ1MyA5OS42MjM5IDkxLjA1NzMgOTkuNjIzOSA5MS4yMjUzVjk2LjQzMzNDOTkuNjc5OSA5Ni41NDUzIDk5LjUxMTkgOTYuNzEzMyA5OS4zNDM5IDk2LjcxMzNaTTc5LjAxNTkgOTYuMTUzM0g5OS4wNjM5VjkxLjUwNTNINzkuMDE1OVY5Ni4xNTMzWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNOTkuMzQzOSAxMDUuMTEySDc4LjY3OTlDNzguNTExOSAxMDUuMTEyIDc4LjM5OTkgMTA1IDc4LjM5OTkgMTA0LjgzMlY5OS42MjM4Qzc4LjM5OTkgOTkuNDU1NyA3OC41MTE5IDk5LjM0MzggNzguNjc5OSA5OS4zNDM4SDk5LjM0MzlDOTkuNTExOSA5OS4zNDM4IDk5LjYyMzkgOTkuNDU1NyA5OS42MjM5IDk5LjYyMzhWMTA0LjgzMkM5OS42Nzk5IDEwNSA5OS41MTE5IDEwNS4xMTIgOTkuMzQzOSAxMDUuMTEyWk03OS4wMTU5IDEwNC41NTJIOTkuMDYzOVY5OS45MDM4SDc5LjAxNTlWMTA0LjU1MloiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTk5LjM0MzkgMTEzLjUxMkg3OC42Nzk5Qzc4LjUxMTkgMTEzLjUxMiA3OC4zOTk5IDExMy40IDc4LjM5OTkgMTEzLjIzMlYxMDguMDI0Qzc4LjM5OTkgMTA3Ljg1NiA3OC41MTE5IDEwNy43NDQgNzguNjc5OSAxMDcuNzQ0SDk5LjM0MzlDOTkuNTExOSAxMDcuNzQ0IDk5LjYyMzkgMTA3Ljg1NiA5OS42MjM5IDEwOC4wMjRWMTEzLjIzMkM5OS42Nzk5IDExMy40IDk5LjUxMTkgMTEzLjUxMiA5OS4zNDM5IDExMy41MTJaTTc5LjAxNTkgMTEyLjk1Mkg5OS4wNjM5VjEwOC4zMDRINzkuMDE1OVYxMTIuOTUyWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNOTkuMzQzOSAxMjEuOTEzSDc4LjY3OTlDNzguNTExOSAxMjEuOTEzIDc4LjM5OTkgMTIxLjgwMSA3OC4zOTk5IDEyMS42MzNWMTE2LjQyNUM3OC4zOTk5IDExNi4yNTcgNzguNTExOSAxMTYuMTQ1IDc4LjY3OTkgMTE2LjE0NUg5OS4zNDM5Qzk5LjUxMTkgMTE2LjE0NSA5OS42MjM5IDExNi4yNTcgOTkuNjIzOSAxMTYuNDI1VjEyMS42MzNDOTkuNjIzOSAxMjEuODAxIDk5LjUxMTkgMTIxLjkxMyA5OS4zNDM5IDEyMS45MTNaTTc5LjAxNTkgMTIxLjM1M0g5OS4wNjM5VjExNi43MDVINzkuMDE1OVYxMjEuMzUzWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTM0LjE3NiA5MS41MDUzSDExOC40OTZDMTE4LjMyOCA5MS41MDUzIDExOC4yMTYgOTEuMzkzMyAxMTguMjE2IDkxLjIyNTNDMTE4LjIxNiA5MS4wNTczIDExOC4zMjggOTAuOTQ1MyAxMTguNDk2IDkwLjk0NTNIMTM0LjE3NkMxMzQuMzQ0IDkwLjk0NTMgMTM0LjQ1NiA5MS4wNTczIDEzNC40NTYgOTEuMjI1M0MxMzQuNTEyIDkxLjMzNzMgMTM0LjM0NCA5MS41MDUzIDEzNC4xNzYgOTEuNTA1M1oiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTE5Mi45MiA5MS41MDUzSDE0MC4zOTJDMTQwLjIyNCA5MS41MDUzIDE0MC4xMTIgOTEuMzkzMyAxNDAuMTEyIDkxLjIyNTNDMTQwLjExMiA5MS4wNTczIDE0MC4yMjQgOTAuOTQ1MyAxNDAuMzkyIDkwLjk0NTNIMTkyLjkyQzE5My4wODggOTAuOTQ1MyAxOTMuMiA5MS4wNTczIDE5My4yIDkxLjIyNTNDMTkzLjIgOTEuMzkzMyAxOTMuMDg4IDkxLjUwNTMgMTkyLjkyIDkxLjUwNTNaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgOTQuOTIxM0gxNDAuMzkyQzE0MC4yMjQgOTQuOTIxMyAxNDAuMTEyIDk0LjgwOTMgMTQwLjExMiA5NC42NDEzQzE0MC4xMTIgOTQuNDczMyAxNDAuMjI0IDk0LjM2MTMgMTQwLjM5MiA5NC4zNjEzSDE5Mi45MkMxOTMuMDg4IDk0LjM2MTMgMTkzLjIgOTQuNDczMyAxOTMuMiA5NC42NDEzQzE5My4yIDk0LjgwOTMgMTkzLjA4OCA5NC45MjEzIDE5Mi45MiA5NC45MjEzWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTM0LjE3NiAxMDAuOEgxMTguNDk2QzExOC4zMjggMTAwLjggMTE4LjIxNiAxMDAuNjg4IDExOC4yMTYgMTAwLjUyQzExOC4yMTYgMTAwLjM1MiAxMTguMzI4IDEwMC4yNCAxMTguNDk2IDEwMC4yNEgxMzQuMTc2QzEzNC4zNDQgMTAwLjI0IDEzNC40NTYgMTAwLjM1MiAxMzQuNDU2IDEwMC41MkMxMzQuNDU2IDEwMC42ODggMTM0LjM0NCAxMDAuOCAxMzQuMTc2IDEwMC44WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDEwMC44SDE0MC4zOTJDMTQwLjIyNCAxMDAuOCAxNDAuMTEyIDEwMC42ODggMTQwLjExMiAxMDAuNTJDMTQwLjExMiAxMDAuMzUyIDE0MC4yMjQgMTAwLjI0IDE0MC4zOTIgMTAwLjI0SDE5Mi45MkMxOTMuMDg4IDEwMC4yNCAxOTMuMiAxMDAuMzUyIDE5My4yIDEwMC41MkMxOTMuMiAxMDAuNjMyIDE5My4wODggMTAwLjggMTkyLjkyIDEwMC44WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDEwNC4yMTZIMTQwLjM5MkMxNDAuMjI0IDEwNC4yMTYgMTQwLjExMiAxMDQuMTA0IDE0MC4xMTIgMTAzLjkzNkMxNDAuMTEyIDEwMy43NjggMTQwLjIyNCAxMDMuNjU2IDE0MC4zOTIgMTAzLjY1NkgxOTIuOTJDMTkzLjA4OCAxMDMuNjU2IDE5My4yIDEwMy43NjggMTkzLjIgMTAzLjkzNkMxOTMuMiAxMDQuMTA0IDE5My4wODggMTA0LjIxNiAxOTIuOTIgMTA0LjIxNloiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTEzNC4xNzYgMTEwLjA5N0gxMTguNDk2QzExOC4zMjggMTEwLjA5NyAxMTguMjE2IDEwOS45ODUgMTE4LjIxNiAxMDkuODE3QzExOC4yMTYgMTA5LjY0OSAxMTguMzI4IDEwOS41MzcgMTE4LjQ5NiAxMDkuNTM3SDEzNC4xNzZDMTM0LjM0NCAxMDkuNTM3IDEzNC40NTYgMTA5LjY0OSAxMzQuNDU2IDEwOS44MTdDMTM0LjQ1NiAxMDkuOTg1IDEzNC4zNDQgMTEwLjA5NyAxMzQuMTc2IDExMC4wOTdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTEwLjA5N0gxNDAuMzkyQzE0MC4yMjQgMTEwLjA5NyAxNDAuMTEyIDEwOS45ODUgMTQwLjExMiAxMDkuODE3QzE0MC4xMTIgMTA5LjY0OSAxNDAuMjI0IDEwOS41MzcgMTQwLjM5MiAxMDkuNTM3SDE5Mi45MkMxOTMuMDg4IDEwOS41MzcgMTkzLjIgMTA5LjY0OSAxOTMuMiAxMDkuODE3QzE5My4yIDEwOS45MjkgMTkzLjA4OCAxMTAuMDk3IDE5Mi45MiAxMTAuMDk3WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDExMy41MTNIMTQwLjM5MkMxNDAuMjI0IDExMy41MTMgMTQwLjExMiAxMTMuNDAxIDE0MC4xMTIgMTEzLjIzM0MxNDAuMTEyIDExMy4wNjUgMTQwLjIyNCAxMTIuOTUzIDE0MC4zOTIgMTEyLjk1M0gxOTIuOTJDMTkzLjA4OCAxMTIuOTUzIDE5My4yIDExMy4wNjUgMTkzLjIgMTEzLjIzM0MxOTMuMiAxMTMuNDAxIDE5My4wODggMTEzLjUxMyAxOTIuOTIgMTEzLjUxM1oiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTEzNC4xNzYgMTE5LjMzN0gxMTguNDk2QzExOC4zMjggMTE5LjMzNyAxMTguMjE2IDExOS4yMjUgMTE4LjIxNiAxMTkuMDU3QzExOC4yMTYgMTE4Ljg4OSAxMTguMzI4IDExOC43NzcgMTE4LjQ5NiAxMTguNzc3SDEzNC4xNzZDMTM0LjM0NCAxMTguNzc3IDEzNC40NTYgMTE4Ljg4OSAxMzQuNDU2IDExOS4wNTdDMTM0LjUxMiAxMTkuMjI1IDEzNC4zNDQgMTE5LjMzNyAxMzQuMTc2IDExOS4zMzdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xOTIuOTIgMTE5LjMzN0gxNDAuMzkyQzE0MC4yMjQgMTE5LjMzNyAxNDAuMTEyIDExOS4yMjUgMTQwLjExMiAxMTkuMDU3QzE0MC4xMTIgMTE4Ljg4OSAxNDAuMjI0IDExOC43NzcgMTQwLjM5MiAxMTguNzc3SDE5Mi45MkMxOTMuMDg4IDExOC43NzcgMTkzLjIgMTE4Ljg4OSAxOTMuMiAxMTkuMDU3QzE5My4yIDExOS4yMjUgMTkzLjA4OCAxMTkuMzM3IDE5Mi45MiAxMTkuMzM3WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDEyMi44MDhIMTQwLjM5MkMxNDAuMjI0IDEyMi44MDggMTQwLjExMiAxMjIuNjk2IDE0MC4xMTIgMTIyLjUyOEMxNDAuMTEyIDEyMi4zNiAxNDAuMjI0IDEyMi4yNDggMTQwLjM5MiAxMjIuMjQ4SDE5Mi45MkMxOTMuMDg4IDEyMi4yNDggMTkzLjIgMTIyLjM2IDE5My4yIDEyMi41MjhDMTkzLjIgMTIyLjY5NiAxOTMuMDg4IDEyMi44MDggMTkyLjkyIDEyMi44MDhaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xMzQuMTc2IDEyOC42MzJIMTE4LjQ5NkMxMTguMzI4IDEyOC42MzIgMTE4LjIxNiAxMjguNTIgMTE4LjIxNiAxMjguMzUyQzExOC4yMTYgMTI4LjE4NCAxMTguMzI4IDEyOC4wNzIgMTE4LjQ5NiAxMjguMDcySDEzNC4xNzZDMTM0LjM0NCAxMjguMDcyIDEzNC40NTYgMTI4LjE4NCAxMzQuNDU2IDEyOC4zNTJDMTM0LjUxMiAxMjguNTIgMTM0LjM0NCAxMjguNjMyIDEzNC4xNzYgMTI4LjYzMloiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTE5Mi45MiAxMjguNjMySDE0MC4zOTJDMTQwLjIyNCAxMjguNjMyIDE0MC4xMTIgMTI4LjUyIDE0MC4xMTIgMTI4LjM1MkMxNDAuMTEyIDEyOC4xODQgMTQwLjIyNCAxMjguMDcyIDE0MC4zOTIgMTI4LjA3MkgxOTIuOTJDMTkzLjA4OCAxMjguMDcyIDE5My4yIDEyOC4xODQgMTkzLjIgMTI4LjM1MkMxOTMuMiAxMjguNTIgMTkzLjA4OCAxMjguNjMyIDE5Mi45MiAxMjguNjMyWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDEzMi4xMDVIMTQwLjM5MkMxNDAuMjI0IDEzMi4xMDUgMTQwLjExMiAxMzEuOTkzIDE0MC4xMTIgMTMxLjgyNUMxNDAuMTEyIDEzMS42NTcgMTQwLjIyNCAxMzEuNTQ1IDE0MC4zOTIgMTMxLjU0NUgxOTIuOTJDMTkzLjA4OCAxMzEuNTQ1IDE5My4yIDEzMS42NTcgMTkzLjIgMTMxLjgyNUMxOTMuMiAxMzEuOTkzIDE5My4wODggMTMyLjEwNSAxOTIuOTIgMTMyLjEwNVoiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTEzNC4xNzYgODUuNjc5NkgxMTkuMjhDMTE5LjExMiA4NS42Nzk2IDExOSA4NS41Njc2IDExOSA4NS4zOTk2Vjc5LjI5NTZDMTE5IDc5LjEyNzYgMTE5LjExMiA3OS4wMTU2IDExOS4yOCA3OS4wMTU2SDEzNC4yMzJDMTM0LjQgNzkuMDE1NiAxMzQuNTEyIDc5LjEyNzYgMTM0LjUxMiA3OS4yOTU2Vjg1LjM5OTZDMTM0LjQ1NiA4NS41Njc2IDEzNC4zNDQgODUuNjc5NiAxMzQuMTc2IDg1LjY3OTZaTTExOS41MDQgODUuMTE5NkgxMzMuODk2Vjc5LjYzMTZIMTE5LjUwNFY4NS4xMTk2WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTkyLjkyIDg1LjY3OTZIMTQwLjM5MkMxNDAuMjI0IDg1LjY3OTYgMTQwLjExMiA4NS41Njc2IDE0MC4xMTIgODUuMzk5NlY3OS4yOTU2QzE0MC4xMTIgNzkuMTI3NiAxNDAuMjI0IDc5LjAxNTYgMTQwLjM5MiA3OS4wMTU2SDE5Mi45MkMxOTMuMDg4IDc5LjAxNTYgMTkzLjIgNzkuMTI3NiAxOTMuMiA3OS4yOTU2Vjg1LjM5OTZDMTkzLjIgODUuNTY3NiAxOTMuMDg4IDg1LjY3OTYgMTkyLjkyIDg1LjY3OTZaTTE0MC42NzIgODUuMTE5NkgxOTIuNjRWNzkuNjMxNkgxNDAuNjcyVjg1LjExOTZaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMzIuNTEyIDQzLjQwMDRIMTc3Ljk2OFY4OC4yNTY0SDIzMi41MTJWNDMuNDAwNFoiIGZpbGw9IndoaXRlIi8+CjxwYXRoIGQ9Ik0yMzIuNDU2IDg4LjUzNTFIMTc3Ljk2OEMxNzcuOCA4OC41MzUxIDE3Ny42ODggODguNDIzMSAxNzcuNjg4IDg4LjI1NTFWNDMuMzk5MUMxNzcuNjg4IDQzLjIzMTEgMTc3LjggNDMuMTE5MSAxNzcuOTY4IDQzLjExOTFIMjMyLjQ1NkMyMzIuNjI0IDQzLjExOTEgMjMyLjczNiA0My4yMzExIDIzMi43MzYgNDMuMzk5MVY4OC4yNTUxQzIzMi43MzYgODguNDIzMSAyMzIuNjI0IDg4LjUzNTEgMjMyLjQ1NiA4OC41MzUxWk0xNzguMTkyIDg3Ljk3NTFIMjMyLjEyVjQzLjY3OTFIMTc4LjE5MlY4Ny45NzUxWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMjIxLjU5MiA2MS4zNzdIMTg4LjA0OFY4My42NjVIMjIxLjU5MlY2MS4zNzdaIiBmaWxsPSJ3aGl0ZSIvPgo8cGF0aCBkPSJNMjIxLjU5MiA4My45NDM3SDE4OC4wNDhDMTg3Ljg4IDgzLjk0MzcgMTg3Ljc2OCA4My44MzE3IDE4Ny43NjggODMuNjYzN1Y2MS4zNzU3QzE4Ny43NjggNjEuMjA3NyAxODcuODggNjEuMDk1NyAxODguMDQ4IDYxLjA5NTdIMjIxLjU5MkMyMjEuNzYgNjEuMDk1NyAyMjEuODcyIDYxLjIwNzcgMjIxLjg3MiA2MS4zNzU3VjgzLjY2MzdDMjIxLjg3MiA4My43NzU3IDIyMS43NiA4My45NDM3IDIyMS41OTIgODMuOTQzN1pNMTg4LjMyOCA4My4zMjc3SDIyMS4zMTJWNjEuNTk5N0gxODguMzI4VjgzLjMyNzdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMjEuNTkyIDYxLjM3NTdMMjE3LjM5MiA2NC4xNzU3TDIwNC43OTIgNzIuNTE5N0wxOTIuMjQ4IDY0LjE3NTdMMTg4LjA0OCA2MS4zNzU3TDE5Mi4yNDggNTcuNzkxN0wyMDIuNjA4IDQ4Ljk5OTdMMjA0Ljc5MiA0Ny4wOTU3TDIwNy4wMzIgNDguOTk5N0wyMTcuMzkyIDU3Ljc5MTdMMjIxLjU5MiA2MS4zNzU3WiIgZmlsbD0id2hpdGUiLz4KPHBhdGggZD0iTTIwNC43OTIgNzIuNzk5N0MyMDQuNzM2IDcyLjc5OTcgMjA0LjY4IDcyLjc5OTcgMjA0LjYyNCA3Mi43NDM3TDE4Ny44OCA2MS41OTk3QzE4Ny44MjQgNjEuNTQzNyAxODcuNzY4IDYxLjQ4NzcgMTg3Ljc2OCA2MS4zNzU3QzE4Ny43NjggNjEuMjYzNyAxODcuODI0IDYxLjIwNzcgMTg3Ljg4IDYxLjE1MTdMMjA0LjYyNCA0Ni45Mjc4QzIwNC43MzYgNDYuODE1OCAyMDQuOTA0IDQ2LjgxNTggMjA1LjAxNiA0Ni45Mjc4TDIyMS43NiA2MS4xNTE3QzIyMS44MTYgNjEuMjA3NyAyMjEuODcyIDYxLjMxOTcgMjIxLjg3MiA2MS4zNzU3QzIyMS44NzIgNjEuNDg3NyAyMjEuODE2IDYxLjU0MzcgMjIxLjc2IDYxLjU5OTdMMjA0Ljk2IDcyLjc0MzdDMjA0LjkwNCA3Mi43OTk3IDIwNC44NDggNzIuNzk5NyAyMDQuNzkyIDcyLjc5OTdaTTE4OC40OTYgNjEuMzE5N0wyMDQuNzkyIDcyLjEyNzhMMjIxLjA4OCA2MS4zMTk3TDIwNC43OTIgNDcuNDg3N0wxODguNDk2IDYxLjMxOTdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xODguMDQ4IDgzLjk0MzRDMTg3Ljk5MiA4My45NDM0IDE4Ny45MzYgODMuOTQzNCAxODcuODggODMuODg3NEMxODcuNzY4IDgzLjc3NTQgMTg3LjcxMiA4My42MDc0IDE4Ny44MjQgODMuNDk1NEwxOTkuNDE2IDY4LjkzNTRDMTk5LjUyOCA2OC44MjM0IDE5OS42OTYgNjguNzY3NCAxOTkuODA4IDY4Ljg3OTRDMTk5LjkyIDY4Ljk5MTQgMTk5Ljk3NiA2OS4xNTk0IDE5OS44NjQgNjkuMjcxNEwxODguMjcyIDgzLjgzMTRDMTg4LjIxNiA4My44ODc0IDE4OC4xNiA4My45NDM0IDE4OC4wNDggODMuOTQzNFoiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTIyMS41OTIgODMuOTQ0OUMyMjEuNDggODMuOTQ0OSAyMjEuNDI0IDgzLjg4ODkgMjIxLjM2OCA4My44MzI5TDIwOS43NzYgNjkuMjcyOUMyMDkuNjY0IDY5LjE2MDkgMjA5LjY2NCA2OC45OTI5IDIwOS43NzYgNjguODgwOUMyMDkuODg4IDY4Ljc2ODkgMjEwLjA1NiA2OC43Njg5IDIxMC4xNjggNjguODgwOUwyMTAuMjI0IDY4LjkzNjlMMjIxLjgxNiA4My40OTY5QzIyMS45MjggODMuNjA4OSAyMjEuODcyIDgzLjc3NjkgMjIxLjc2IDgzLjg4ODlDMjIxLjcwNCA4My44ODg5IDIyMS42NDggODMuOTQ0OSAyMjEuNTkyIDgzLjk0NDlaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMTcuMzkyIDQ5VjY0LjE3NkwyMDQuNzkyIDcyLjUyTDE5Mi4yNDggNjQuMTc2VjQ5SDIxNy4zOTJaIiBmaWxsPSIjRkNCRkE1Ii8+CjxwYXRoIGQ9Ik0yMDQuNzkyIDcyLjgwMDdDMjA0LjczNiA3Mi44MDA3IDIwNC42OCA3Mi44MDA3IDIwNC42MjQgNzIuNzQ0N0wxOTIuMDggNjQuNDAwN0MxOTIuMDI0IDY0LjM0NDcgMTkxLjk2OCA2NC4yMzI3IDE5MS45NjggNjQuMTc2N1Y0OS4wMDA3QzE5MS45NjggNDguODMyNyAxOTIuMDggNDguNzIwNyAxOTIuMjQ4IDQ4LjcyMDdIMjE3LjMzNkMyMTcuNTA0IDQ4LjcyMDcgMjE3LjYxNiA0OC44MzI3IDIxNy42MTYgNDkuMDAwN1Y2NC4xNzY3QzIxNy42MTYgNjQuMjg4NyAyMTcuNTYgNjQuMzQ0NyAyMTcuNTA0IDY0LjQwMDdMMjA0Ljk2IDcyLjc0NDdDMjA0LjkwNCA3Mi44MDA3IDIwNC44NDggNzIuODAwNyAyMDQuNzkyIDcyLjgwMDdaTTE5Mi41MjggNjQuMDA4N0wyMDQuNzkyIDcyLjEyODdMMjE3LjA1NiA2NC4wMDg3VjQ5LjI4MDdIMTkyLjUyOFY2NC4wMDg3WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMjAyLjQ0IDUzLjY0NzlIMTk1LjIxNkMxOTUuMDQ4IDUzLjY0NzkgMTk0LjkzNiA1My41MzU5IDE5NC45MzYgNTMuMzY3OUMxOTQuOTM2IDUzLjE5OTkgMTk1LjA0OCA1My4wODc5IDE5NS4yMTYgNTMuMDg3OUgyMDIuNDRDMjAyLjYwOCA1My4wODc5IDIwMi43MiA1My4xOTk5IDIwMi43MiA1My4zNjc5QzIwMi43MiA1My41MzU5IDIwMi42MDggNTMuNjQ3OSAyMDIuNDQgNTMuNjQ3OVoiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTIxMy4zMDQgNTYuMjgwN0gxOTUuMjE2QzE5NS4wNDggNTYuMjgwNyAxOTQuOTM2IDU2LjE2ODcgMTk0LjkzNiA1Ni4wMDA3QzE5NC45MzYgNTUuODMyNyAxOTUuMDQ4IDU1LjcyMDcgMTk1LjIxNiA1NS43MjA3SDIxMy4zMDRDMjEzLjQ3MiA1NS43MjA3IDIxMy41ODQgNTUuODMyNyAyMTMuNTg0IDU2LjAwMDdDMjEzLjU4NCA1Ni4xMTI3IDIxMy40MTYgNTYuMjgwNyAyMTMuMzA0IDU2LjI4MDdaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMTMuMzA0IDU4Ljg1NjlIMTk1LjIxNkMxOTUuMDQ4IDU4Ljg1NjkgMTk0LjkzNiA1OC43NDQ5IDE5NC45MzYgNTguNTc2OUMxOTQuOTM2IDU4LjQwODkgMTk1LjA0OCA1OC4yOTY5IDE5NS4yMTYgNTguMjk2OUgyMTMuMzA0QzIxMy40NzIgNTguMjk2OSAyMTMuNTg0IDU4LjQwODkgMjEzLjU4NCA1OC41NzY5QzIxMy41ODQgNTguNzQ0OSAyMTMuNDE2IDU4Ljg1NjkgMjEzLjMwNCA1OC44NTY5WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMjEzLjMwNCA2MS40ODc3SDE5NS4yMTZDMTk1LjA0OCA2MS40ODc3IDE5NC45MzYgNjEuMzc1NyAxOTQuOTM2IDYxLjIwNzdDMTk0LjkzNiA2MS4wMzk3IDE5NS4wNDggNjAuOTI3NyAxOTUuMjE2IDYwLjkyNzdIMjEzLjMwNEMyMTMuNDcyIDYwLjkyNzcgMjEzLjU4NCA2MS4wMzk3IDIxMy41ODQgNjEuMjA3N0MyMTMuNTg0IDYxLjM3NTcgMjEzLjQxNiA2MS40ODc3IDIxMy4zMDQgNjEuNDg3N1oiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTIxMy4zMDQgNjQuMTIwNUgxOTUuMjE2QzE5NS4wNDggNjQuMTIwNSAxOTQuOTM2IDY0LjAwODUgMTk0LjkzNiA2My44NDA1QzE5NC45MzYgNjMuNjcyNSAxOTUuMDQ4IDYzLjU2MDUgMTk1LjIxNiA2My41NjA1SDIxMy4zMDRDMjEzLjQ3MiA2My41NjA1IDIxMy41ODQgNjMuNjcyNSAyMTMuNTg0IDYzLjg0MDVDMjEzLjU4NCA2My45NTI1IDIxMy40MTYgNjQuMTIwNSAyMTMuMzA0IDY0LjEyMDVaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xNzcuOTY4IDQ4LjYwNzRDMTgwLjg0NCA0OC42MDc0IDE4My4xNzYgNDYuMjc1NyAxODMuMTc2IDQzLjM5OTRDMTgzLjE3NiA0MC41MjMxIDE4MC44NDQgMzguMTkxNCAxNzcuOTY4IDM4LjE5MTRDMTc1LjA5MSAzOC4xOTE0IDE3Mi43NiA0MC41MjMxIDE3Mi43NiA0My4zOTk0QzE3Mi43NiA0Ni4yNzU3IDE3NS4wOTEgNDguNjA3NCAxNzcuOTY4IDQ4LjYwNzRaIiBmaWxsPSIjRkNCRkE1Ii8+CjxwYXRoIGQ9Ik0xNzcuOTY4IDQ4Ljg4ODFDMTc0Ljk0NCA0OC44ODgxIDE3Mi40OCA0Ni40MjQxIDE3Mi40OCA0My40MDAxQzE3Mi40OCA0MC4zNzYxIDE3NC45NDQgMzcuOTEyMSAxNzcuOTY4IDM3LjkxMjFDMTgwLjk5MiAzNy45MTIxIDE4My40NTYgNDAuMzc2MSAxODMuNDU2IDQzLjQwMDFDMTgzLjQgNDYuNDI0MSAxODAuOTkyIDQ4Ljg4ODEgMTc3Ljk2OCA0OC44ODgxWk0xNzcuOTY4IDM4LjQ3MjFDMTc1LjI4IDM4LjQ3MjEgMTczLjA0IDQwLjY1NjEgMTczLjA0IDQzLjQwMDFDMTczLjA0IDQ2LjA4ODEgMTc1LjIyNCA0OC4zMjgxIDE3Ny45NjggNDguMzI4MUMxODAuNjU2IDQ4LjMyODEgMTgyLjg5NiA0Ni4xNDQxIDE4Mi44OTYgNDMuNDAwMUMxODIuODQgNDAuNjU2MSAxODAuNjU2IDM4LjQ3MjEgMTc3Ljk2OCAzOC40NzIxWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTc3Ljk2OCA0Ni41OTNDMTc3LjggNDYuNTkzIDE3Ny42ODggNDYuNDgxIDE3Ny42ODggNDYuMzEzVjQwLjQ4OUMxNzcuNjg4IDQwLjMyMSAxNzcuOCA0MC4yMDkgMTc3Ljk2OCA0MC4yMDlDMTc4LjEzNiA0MC4yMDkgMTc4LjI0OCA0MC4zMjEgMTc4LjI0OCA0MC40ODlWNDYuMzEzQzE3OC4yNDggNDYuNDI1IDE3OC4wOCA0Ni41OTMgMTc3Ljk2OCA0Ni41OTNaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0xODAuODI0IDQzLjY3OTFIMTc1QzE3NC44MzIgNDMuNjc5MSAxNzQuNzIgNDMuNTY3MSAxNzQuNzIgNDMuMzk5MUMxNzQuNzIgNDMuMjMxMSAxNzQuODMyIDQzLjExOTEgMTc1IDQzLjExOTFIMTgwLjgyNEMxODAuOTkyIDQzLjExOTEgMTgxLjEwNCA0My4yMzExIDE4MS4xMDQgNDMuMzk5MUMxODEuMTYgNDMuNTY3MSAxODAuOTkyIDQzLjY3OTEgMTgwLjgyNCA0My42NzkxWiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTc1Ljg5NiA0NS42OTU1QzE3NS44NCA0NS42OTU1IDE3NS43MjggNDUuNjM5NSAxNzUuNjcyIDQ1LjU4MzVDMTc1LjU2IDQ1LjQ3MTUgMTc1LjU2IDQ1LjMwMzUgMTc1LjY3MiA0NS4xOTE1TDE3OS43NiA0MS4xMDM1QzE3OS44NzIgNDAuOTkxNSAxODAuMDQgNDAuOTkxNSAxODAuMTUyIDQxLjEwMzVDMTgwLjI2NCA0MS4yMTU1IDE4MC4yNjQgNDEuMzgzNSAxODAuMTUyIDQxLjQ5NTVMMTc2LjA2NCA0NS41ODM1QzE3Ni4wNjQgNDUuNjk1NSAxNzUuOTUyIDQ1LjY5NTUgMTc1Ljg5NiA0NS42OTU1WiIgZmlsbD0iIzA4MkY0OSIvPgo8cGF0aCBkPSJNMTc5Ljk4NCA0NS42OTU1QzE3OS45MjggNDUuNjk1NSAxNzkuODE2IDQ1LjYzOTUgMTc5Ljc2IDQ1LjU4MzVMMTc1LjY3MiA0MS40OTU1QzE3NS41NiA0MS4zODM1IDE3NS41NiA0MS4yMTU1IDE3NS42NzIgNDEuMTAzNUMxNzUuNzg0IDQwLjk5MTUgMTc1Ljk1MiA0MC45OTE1IDE3Ni4wNjQgNDEuMTAzNUwxODAuMTUyIDQ1LjE5MTVDMTgwLjI2NCA0NS4zMDM1IDE4MC4yNjQgNDUuNDcxNSAxODAuMTUyIDQ1LjU4MzVDMTgwLjE1MiA0NS42OTU1IDE4MC4wOTYgNDUuNjk1NSAxNzkuOTg0IDQ1LjY5NTVaIiBmaWxsPSIjMDgyRjQ5Ii8+CjxwYXRoIGQ9Ik0yMjEuNTkyIDc2Ljk0MzdDMjI0LjAzNSA3Ni45NDM3IDIyNi4wMTYgNzQuOTYzIDIyNi4wMTYgNzIuNTE5N0MyMjYuMDE2IDcwLjA3NjQgMjI0LjAzNSA2OC4wOTU3IDIyMS41OTIgNjguMDk1N0MyMTkuMTQ5IDY4LjA5NTcgMjE3LjE2OCA3MC4wNzY0IDIxNy4xNjggNzIuNTE5N0MyMTcuMTY4IDc0Ljk2MyAyMTkuMTQ5IDc2Ljk0MzcgMjIxLjU5MiA3Ni45NDM3WiIgZmlsbD0iI0ZDQkZBNSIvPgo8cGF0aCBkPSJNMjIxLjU5MiA3Ny4yMjQ0QzIxOC45NiA3Ny4yMjQ0IDIxNi44ODggNzUuMDk2NCAyMTYuODg4IDcyLjUyMDRDMjE2Ljg4OCA2OS44ODg0IDIxOS4wMTYgNjcuODE2NCAyMjEuNTkyIDY3LjgxNjRDMjI0LjIyNCA2Ny44MTY0IDIyNi4yOTYgNjkuOTQ0NCAyMjYuMjk2IDcyLjUyMDRDMjI2LjI5NiA3NS4wOTY0IDIyNC4xNjggNzcuMjI0NCAyMjEuNTkyIDc3LjIyNDRaTTIyMS41OTIgNjguMzc2NEMyMTkuMjk2IDY4LjM3NjQgMjE3LjQ0OCA3MC4yMjQ0IDIxNy40NDggNzIuNTIwNEMyMTcuNDQ4IDc0LjgxNjQgMjE5LjI5NiA3Ni42NjQ0IDIyMS41OTIgNzYuNjY0NEMyMjMuODg4IDc2LjY2NDQgMjI1LjczNiA3NC44MTY0IDIyNS43MzYgNzIuNTIwNEMyMjUuNzM2IDcwLjIyNDQgMjIzLjg4OCA2OC4zNzY0IDIyMS41OTIgNjguMzc2NFoiIGZpbGw9IiMwODJGNDkiLz4KPHBhdGggZD0iTTIyMS40MjQgNzAuODk1OUwyMjAuNjk2IDcxLjI4NzlMMjIwLjU4NCA3MC44Mzk5TDIyMS41MzYgNzAuMzM1OUgyMjIuMDRWNzQuNjQ3OUgyMjEuNDhMMjIxLjQyNCA3MC44OTU5WiIgZmlsbD0id2hpdGUiLz4KPC9zdmc+Cg==",alt:(0,a.__)("OttoKit","sureforms"),className:"w-[280px] h-[280px]"})),React.createElement(ec,{className:"gap-8"},React.createElement("div",{className:"space-y-2"},React.createElement(rc,{tag:"h3",title:(0,a.__)("Setup Integration via OttoKit","sureforms"),size:"md"}),React.createElement(VD,{size:16,weight:400,color:"secondary"},(0,a.__)("OttoKit connects with SureForms to help you send form data to your favorite tools and trigger automated workflows, no code needed.","sureforms")),l.map((function(e,t){return React.createElement(ec,{key:t,className:"flex items-center gap-1.5"},React.createElement(UD,{className:"text-icon-secondary"}),React.createElement(VD,{size:16,weight:400,color:"secondary"},e))})),React.createElement(ec,{className:"p-2 gap-3"},React.createElement(nc,{size:"md",className:o||"Activated"!==(null==u?void 0:u.status)?"":"bg-badge-background-green hover:bg-badge-background-green",variant:o||"Activated"!==(null==u?void 0:u.status)?"primary":"outline",onClick:function(e){if(o)switch(D){case"sureforms_recommended_plugin_activate":M();break;case"sureforms_recommended_plugin_install":(t=new window.FormData).append("action","sureforms_recommended_plugin_install"),t.append("_ajax_nonce",srfm_admin.plugin_installer_nonce),t.append("slug",u.slug),w(srfm_admin.plugin_installing_text),h(srfm_admin.plugin_installing_text),WD()({url:srfm_admin.ajax_url,method:"POST",body:t}).then((function(e){e.success?(_("sureforms_recommended_plugin_activate"),w(srfm_admin.plugin_installed_text),h(srfm_admin.plugin_installed_text),M()):(_("sureforms_recommended_plugin_install"),w((0,a.__)("Install","sureforms")),h((0,a.__)("Install","sureforms")),alert((0,a.__)("Plugin Installation failed, Please try again later.","sureforms")))}));break;default:C()}else(0,x.yn)({plugin:u,event:e});var t},disabled:d,icon:"Install"===(null==u?void 0:u.status)?React.createElement(wg,{className:"size-5"}):null},E||p||(0,x.rD)(u)))))))))};function KD(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XD(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?XD(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.")}()}function XD(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const JD=(0,s.memo)((function(e){var t,r=e.open,n=e.setOpen,o=e.sureformsKeys,i=e.targetTab,u=e.setHasValidationErrors,d=e.close,f=KD((0,s.useState)(null),2),p=f[0],h=f[1],g=(0,l.useDispatch)(c.store).updateBlockAttributes,b=(0,s.useContext)(jb).editMeta;(0,s.useEffect)((function(){b()}),[]),(0,s.useLayoutEffect)((function(){var e=document.getElementById("srfm-dialog-root");e||((e=document.createElement("div")).id="srfm-dialog-root",document.body.appendChild(e)),h(e)}),[]);var y=(0,l.useSelect)((function(e){return e("core/edit-post").isFeatureActive("fullscreenMode")}),[]);(0,s.useLayoutEffect)((function(){var e=function(){window.requestAnimationFrame((function(){var e=document.querySelector(".srfm-dialog-panel");if(e){var t,r=((t=document.getElementById("adminmenu"))?t.offsetWidth:0)+40;y?(e.style.removeProperty("margin-left"),e.style.removeProperty("margin-right")):(e.style.marginLeft="".concat(r,"px"),e.style.marginRight="40px")}}))};return e(),window.addEventListener("resize",e),function(){return window.removeEventListener("resize",e)}}),[r,y]);var v=o._srfm_email_notification||[],D=o._srfm_compliance||[],_=o._srfm_form_custom_css||[],k=KD((0,s.useState)(null!=i?i:"email_notification"),2),E=k[0],w=k[1],C=KD((0,s.useState)(null),2),M=C[0],A=C[1],N=(0,m.applyFilters)("srfm.formSettings.tabs",[{id:"form_confirmation",label:(0,a.__)("Form Confirmation","sureforms"),icon:React.createElement(uc,null),component:React.createElement(Cb,{setHasValidationErrors:u,toast:Mb.Ay})},{id:"email_notification",label:(0,a.__)("Email Notification","sureforms"),icon:React.createElement(cc,null),component:React.createElement(Eg,{setHasValidationErrors:u,emailNotificationData:v})},{id:"advanced-settings",label:(0,a.__)("Advanced Settings","sureforms"),icon:React.createElement(dc,null),component:React.createElement(React.Fragment,null,React.createElement(LD,null),React.createElement(Pc,{complianceData:D}))},{id:"ottokit",label:(0,a.__)("OttoKit","sureforms"),icon:React.createElement("img",{src:"data:image/svg+xml;base64,PHN2ZyB3aWR0aD0iMjAiIGhlaWdodD0iMjAiIHZpZXdCb3g9IjAgMCAyMCAyMCIgZmlsbD0ibm9uZSIgeG1sbnM9Imh0dHA6Ly93d3cudzMub3JnLzIwMDAvc3ZnIj4KPGcgY2xpcC1wYXRoPSJ1cmwoI2NsaXAwXzg0OF80NjQ4KSI+CjxwYXRoIGZpbGwtcnVsZT0iZXZlbm9kZCIgY2xpcC1ydWxlPSJldmVub2RkIiBkPSJNNS4zODUyOSAwQzIuNDExMDcgMCAwIDIuNDExMDcgMCA1LjM4NTI5VjE0LjYxNDdDMCAxNy41ODkgMi40MTEwNyAyMCA1LjM4NTI5IDIwSDE0LjYxNDdDMTcuNTg5IDIwIDIwIDE3LjU4OSAyMCAxNC42MTQ3VjUuMzg1MjlDMjAgMi40MTEwNyAxNy41ODkgMCAxNC42MTQ3IDBINS4zODUyOVpNMTQuMDU1MiAxMC4wNTY4QzE0LjA1NTIgMTIuMjgzNyAxMi4yNTAyIDE0LjA4OSAxMC4wMjMxIDE0LjA4OUM3Ljc5NjEgMTQuMDg5IDUuOTkxMDcgMTIuMjgzNyA1Ljk5MTA3IDEwLjA1NjhDNS45OTEwNyA3LjgyOTg4IDcuNzk2MSA2LjAyNDYyIDEwLjAyMzEgNi4wMjQ2MkMxMi4yNTAyIDYuMDI0NjIgMTQuMDU1MiA3LjgyOTg4IDE0LjA1NTIgMTAuMDU2OFpNMTYuOTcxOSAxMS41OTUxQzE2LjI2ODggMTQuNzg1NCAxMy40MjQ3IDE3LjE3MjQgMTAuMDIzMSAxNy4xNzI0QzYuNjIxNTcgMTcuMTcyNCAzLjc3NzQ2IDE0Ljc4NTQgMy4wNzQzOCAxMS41OTUxSDEuMTc2NDdWOC41MTgxOEgzLjA3NDQ2QzMuNzc3NjUgNS4zMjc5OSA2LjYyMTY5IDIuOTQxMTggMTAuMDIzMSAyLjk0MTE4QzEzLjQyNDYgMi45NDExOCAxNi4yNjg3IDUuMzI3OTkgMTYuOTcxOSA4LjUxODE4SDE4Ljg2ODhWMTEuNTk1MUgxNi45NzE5WiIgZmlsbD0iIzZCNzI4MCIvPgo8L2c+CjxkZWZzPgo8Y2xpcFBhdGggaWQ9ImNsaXAwXzg0OF80NjQ4Ij4KPHJlY3Qgd2lkdGg9IjIwIiBoZWlnaHQ9IjIwIiBmaWxsPSJ3aGl0ZSIvPgo8L2NsaXBQYXRoPgo8L2RlZnM+Cjwvc3ZnPgo=",alt:(0,a.__)("OttoKit","sureforms")}),component:React.createElement($D,{isFormSettings:!0,setSelectedTab:w})},{id:"form_custom_css",label:(0,a.__)("Custom CSS","sureforms"),icon:React.createElement(fc,null),component:React.createElement(Kc,{formCustomCssData:_})},{id:"suretriggers",parent:"ottokit",label:(0,a.__)("SureTriggers","sureforms"),icon:{},component:React.createElement(pc,null)}],{setSelectedTab:w,setHasValidationErrors:u});(0,x.lj)(g),(0,s.useEffect)((function(){var e=N.find((function(e){return e.id===E}));null!=e&&e.parent?A(e.parent):A(null)}),[E]),(0,s.useLayoutEffect)((function(){i&&r&&w(i)}),[i,r]);var j=(0,s.useMemo)((function(){return(0,m.applyFilters)("srfm.formSettings.dialog.tabClasses",{suretriggers:"h-full min-w-[800px] bg-background-primary shadow-sm rounded-xl",ottokit:"min-w-[800px] bg-background-primary p-4 shadow-sm rounded-xl border-subtle",default:"h-full max-w-[43.5rem]"},E)}),[E]),O=(0,x.cn)("w-full mx-auto",j[E]||j.default);return p&&(0,s.createPortal)(React.createElement(Eu,{design:"simple",exitOnEsc:!0,scrollLock:!0,open:r,setOpen:n,className:"[&>div>div]:h-full z-99999 border-radius-none"},React.createElement(Eu.Backdrop,null),React.createElement(Eu.Panel,{className:"h-full w-full m-auto rounded-none srfm-dialog-panel"},React.createElement(ec,{direction:"column",gap:"none",className:"w-full h-full pt-3 divide-y divide-x-0 divide-solid divide-border-subtle"},React.createElement(ec,{className:"py-2 px-4",justify:"between"},React.createElement(rc,{tag:"h6",title:(0,a.__)("Form Behavior","sureforms"),size:"xs"}),React.createElement(nc,{variant:"ghost",size:"sm",className:"p-1",onClick:d,icon:React.createElement(mc,null)})),React.createElement("div",{className:"w-full h-[calc(100%-3rem)] flex justify-start items-stretch"},React.createElement(oc,{tabs:N,selectedTab:E,setSelectedTab:w,parentTab:M}),React.createElement("div",{className:"p-8 w-full h-full bg-background-secondary overflow-y-auto"},React.createElement("div",{className:O},null===(t=N.find((function(e){return e.id===E})))||void 0===t?void 0:t.component)))))),p)}));function e_(e){return e_="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_(e)}function t_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function r_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?t_(Object(r),!0).forEach((function(t){n_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):t_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function n_(e,t,r){return(t=function(e){var t=function(e){if("object"!=e_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=e_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==e_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return i_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?i_(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.")}()}function i_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var a_="";const s_=function(e){var t,r=(0,l.useDispatch)("core/notices"),n=r.createNotice,o=r.removeNotice,c=(0,l.useDispatch)(u.store).editPost,d=e.defaultKeys,f=e.isPageBreak,p=(0,l.useSelect)((function(e){return e(u.store).getEditedPostAttribute("meta")})),h=(null===(t=p)||void 0===t?void 0:t._srfm_page_break_settings)||{},g=_(),b=o_((0,s.useState)(document.getElementById("srfm-form-container")),2),y=b[0],v=b[1],x=document.documentElement.querySelector("body"),k=o_((0,s.useState)(!1),2),E=k[0],w=k[1],C=o_((0,s.useState)(!1),2),M=C[0],A=C[1],N=o_((0,s.useState)(!1),2),j=N[0],O=N[1],T=function(e){var t=e.currentTarget.getAttribute("data-popup");A(t),w(!0),a_=btoa(JSON.stringify(p))};(0,l.useSelect)((function(e){var t;e("core/editor").isSavingPost()&&(null===(t=e("core/notices").getNotices())||void 0===t?void 0:t.filter((function(e){return"srfm-unsaved-changes-warning"===(null==e?void 0:e.id)})).length)>0&&o("srfm-unsaved-changes-warning")}),[]),(0,s.useEffect)((function(){setTimeout((function(){var e=document.getElementsByClassName("is-tablet-preview"),t=document.getElementsByClassName("is-mobile-preview");if(0!==e.length||0!==t.length){var r=e[0]||t[0];if(r){var n,o=r.querySelector("iframe"),i=(null==o?void 0:o.contentWindow.document)||(null==o?void 0:o.contentDocument),a=null==i||null===(n=i.querySelector("html"))||void 0===n?void 0:n.querySelector("body");v(a.querySelector(".is-root-container"))}}else v(document.getElementById("srfm-form-container"))}),100)}),[g,y]),p?x.style.setProperty("--srfm-font-size",p._srfm_fontsize?p._srfm_fontsize+"px":"none"):c({meta:p=d});var S=[{id:"form_confirmation",title:(0,a.__)("Form Confirmation","sureforms")},{id:"email_notification",title:(0,a.__)("Email Notification","sureforms")},{id:"advanced-settings",title:(0,a.__)("Advanced Settings","sureforms")}],I=(0,m.applyFilters)("srfm.formSettings.singleSettings",S);function F(e,t){c({meta:{_srfm_page_break_settings:r_(r_({},h),{},n_({},e,t))}})}return Array.isArray(I)||(I=S),React.createElement(React.Fragment,null,React.createElement(D,{title:(0,a.__)("General","sureforms"),initialOpen:!0},React.createElement(i.ToggleControl,{label:(0,a.__)("Use Labels as Placeholders","sureforms"),checked:p._srfm_use_label_as_placeholder,onChange:function(e){!function(e,t){var r=0,n="",o={};n&&(o[n]=r),o[e]=t,c({meta:o})}("_srfm_use_label_as_placeholder",e)}}),React.createElement("p",{className:"components-base-control__help"},(0,a.__)("Above setting will place the labels inside the fields as placeholders (where possible). This setting takes effect only on the live page, not in the editor preview.","sureforms"))),f&&React.createElement(D,{title:(0,a.__)("Page Break","sureforms"),initialOpen:!1},"none"!==(null==h?void 0:h.progress_indicator_type)&&React.createElement(React.Fragment,null,React.createElement(i.ToggleControl,{label:(0,a.__)("Show Labels","sureforms"),checked:null==h?void 0:h.toggle_label,onChange:function(e){F("toggle_label",e)}}),React.createElement(Oe,{label:(0,a.__)("First Page Label","sureforms"),value:null==h?void 0:h.first_page_label,data:{value:null==h?void 0:h.first_page_label,label:"first_page_label"},onChange:function(e){return F("first_page_label",e)},isFormSpecific:!0})),React.createElement(i.SelectControl,{label:(0,a.__)("Progress Indicator","sureforms"),value:null==h?void 0:h.progress_indicator_type,className:"srfm-progress-control",options:[{label:(0,a.__)("None","sureforms"),value:"none"},{label:(0,a.__)("Progress Bar","sureforms"),value:"progress-bar"},{label:(0,a.__)("Connector","sureforms"),value:"connector"},{label:(0,a.__)("Steps","sureforms"),value:"steps"}],onChange:function(e){return F("progress_indicator_type",e)},__nextHasNoMarginBottom:!0}),React.createElement(Oe,{data:{value:null==h?void 0:h.next_button_text,label:"next_button_text"},label:(0,a.__)("Next Button Text","sureforms"),value:null==h?void 0:h.next_button_text,onChange:function(e){F("next_button_text",e)},isFormSpecific:!0}),React.createElement(Oe,{data:{value:null==h?void 0:h.back_button_text,label:"back_button_text"},label:(0,a.__)("Back Button Text","sureforms"),value:null==h?void 0:h.back_button_text,onChange:function(e){F("back_button_text",e)},isFormSpecific:!0})),I.map((function(e){return React.createElement(Te,{key:e.id,settingName:e.title,popupId:e.id,openModal:T})})),React.createElement(Ob,null,React.createElement(JD,{open:E,setOpen:w,close:function(){j&&!confirm((0,a.__)("Are you sure you want to close? Your unsaved changes will be lost as you have some validation errors.","sureforms"))||(w(!1),btoa(JSON.stringify(p))!==a_&&n("warning",(0,a.__)("There are few unsaved changes. Please save your changes to reflect the updates.","sureforms"),{id:"srfm-unsaved-changes-warning",isDismissible:!0}))},sureformsKeys:p,targetTab:M,setHasValidationErrors:O})))};var l_={};l_.inherit=React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",fillRule:"evenodd",width:"24",height:"24",strokeLinejoin:"round",strokeMiterlimit:"1.5",clipRule:"evenodd",viewBox:"0 0 24 24"},React.createElement("path",{fill:"none",stroke:"currentColor",strokeWidth:"1.5",d:"M12.383 26.976l2.01-.941 1.884.538 1.623 1.666-.692.236.281 1.539 1.552 1.35-1.552 2.153",transform:"matrix(.68343 0 0 .68343 -5.086 -1.48)"}),React.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5",d:"M12.016 24.355l.998-.952M33.573 26.085l-1.636-1.343-1.348-1.248M26.35 27.774l.332.37 1.349.756-.711 2.768 1.274 1.203.989-.449 3.933-6.226",transform:"matrix(.68343 0 0 .68343 -5.086 -1.48)"}),React.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5",d:"M29.519 9.539c5.298 1.881 9.099 6.977 9.099 12.961 0 7.582-6.102 13.737-13.618 13.737S11.382 30.082 11.382 22.5",transform:"matrix(.68343 0 0 .68343 -5.086 -1.48)"}),React.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5",d:"M20.684 3.211v9.433h4.179l-6.429 6.429-6.429-6.429h4.179V8.021",transform:"matrix(.68343 0 0 .68343 -5.086 -1.48) translate(-6.686 -1.321) scale(1.55693)"}),React.createElement("path",{fill:"none",stroke:"currentColor",strokeLinecap:"square",strokeWidth:"1.5",d:"M32.994 21.014l.2.205 3.364.329 1.532 2.432M32.931 12.002l-3.219.944-1.054 1.996-.408-.003",transform:"matrix(.68343 0 0 .68343 -5.086 -1.48)"})),l_.globe=React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},React.createElement("circle",{cx:"12",cy:"12",r:"10"}),React.createElement("path",{d:"M12 2a14.5 14.5 0 0 0 0 20 14.5 14.5 0 0 0 0-20"}),React.createElement("path",{d:"M4 12h16"}),React.createElement("path",{d:"M4 8h16"}),React.createElement("path",{d:"M4 16h16"}));const u_=l_,c_=function(e){if(e&&e.includes("var")){var t=window.getComputedStyle(document.body);if((e=e.slice(4).slice(0,-1)).includes(","))return e.split(",").pop().trim();e=t.getPropertyValue(e).trim()}return e};var d_=o(53578),f_={};d_.A&&d_.A.locals&&(f_.locals=d_.A.locals);var m_,p_=0,h_={attributes:{id:"sureforms-editor-styles"}};h_.setAttributes=P(),h_.insert=L().bind(null,"head"),h_.domAPI=I(),h_.insertStyleElement=z(),f_.use=function(e){return h_.options=e||{},p_++||(m_=T()(d_.A,h_)),f_},f_.unuse=function(){p_>0&&! --p_&&(m_(),m_=null)};const g_=f_;function b_(e){return b_="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},b_(e)}function y_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function v_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y_(Object(r),!0).forEach((function(t){D_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function D_(e,t,r){return(t=function(e){var t=function(e){if("object"!=b_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=b_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==b_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function __(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return x_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?x_(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.")}()}function x_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var k_=function(e){var t=e.colorValue,r=e.className,n=e.isGlobal,o="component-color-indicator srfm-advanced-color-indicate";return o=r?"".concat(o," ").concat(r):o,React.createElement("span",{className:o,style:{background:t}},n?u_.globe:"")};const E_=function(e){var t,r=__((0,s.useState)(null),2),n=r[0],o=r[1],u=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){return g_.use(),function(){g_.unuse()}}),[]);var c=null===(t=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){o((0,x.xT)(u))}),[c]);var d=(0,l.useSelect)((function(e){return{colors:e("core/block-editor").getSettings().colors}})).colors,f=e.alpha,p=e.colorValue,h=e.opacityValue,g=e.backgroundVideoOpacity,b=e.onOpacityChange,y=e.data,v=e.setAttributes,D=e.onColorChange,_=e.label,k=e.help,E=e.isFormSpecific,w=void 0!==E&&E,C=__((0,s.useState)({alpha:!1!==f,colors:[],classSat:"first",currentColor:p,inherit:!1,currentOpacity:void 0!==h?h:1,isPalette:!(!p||!p.startsWith("palette")),refresh:!1}),2),M=C[0],A=C[1],N=__((0,s.useState)({isVisible:!1}),2),j=N[0],O=N[1];(0,s.useEffect)((function(){T(p,"")}),[p]);var T=function(e,t){var r,n,o,i=null==g?void 0:g.value;if(t)o=e;else if(null!=e&&e.rgb&&null!=e&&null!==(r=e.rgb)&&void 0!==r&&r.a&&1!==(null==e||null===(n=e.rgb)||void 0===n?void 0:n.a)){var a,s,l,u,c;b&&(i=null==e||null===(c=e.rgb)||void 0===c?void 0:c.a),o="rgba("+(null==e||null===(a=e.rgb)||void 0===a?void 0:a.r)+","+(null==e||null===(s=e.rgb)||void 0===s?void 0:s.g)+","+(null==e||null===(l=e.rgb)||void 0===l?void 0:l.b)+","+(null==e||null===(u=e.rgb)||void 0===u?void 0:u.a)+")"}else o=null!=e&&e.hex?null==e?void 0:e.hex:e;A({currentColor:o,currentOpacity:i,isPalette:!!t}),!0===t&&A({refresh:!(null!=M&&M.refresh)}),y&&v&&v(D_({},null==y?void 0:y.label,o)),D&&D(o),b&&b(i)},S=function(){!0===j.isVisible&&O({isVisible:!1})},I=M.currentColor?M.currentColor:p,F=function(e){var t=/^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(e),r=t?{r:parseInt(t[1],16),g:parseInt(t[2],16),b:parseInt(t[3],16)}:null;return r&&Math.round((299*r.r+587*r.g+114*r.b)/1e3)>125?"black":"white"}(c_(I)),L=I&&I.includes("var"),R=L?"srfm-global-indicator srfm-global-icon-".concat(F):"",P=(0,x.P2)(e.label),B=(0,m.applyFilters)("srfm.".concat(c,".").concat(n,".").concat(P,".before"),"",c),z=(0,m.applyFilters)("srfm.".concat(c,".").concat(n,".").concat(P),"",c);return React.createElement("div",{ref:u,className:"components-base-control"},B,React.createElement("div",{className:"srfm-color-popover-container new-srfm-advanced-colors"},React.createElement("div",{className:"srfm-advanced-color-settings-container"},_&&React.createElement("span",{className:"srfm-beside-color-label srfm-control-label"},_),React.createElement(xe,{onReset:function(t){var r;w&&null!=e&&e.onColorChange&&(null==e||e.onColorChange(t[null==e||null===(r=e.data)||void 0===r?void 0:r.label])),A(v_(v_({},M),{},{currentColor:t[null==y?void 0:y.label]}))},attributeNames:[null==y?void 0:y.label],setAttributes:v,isFormSpecific:w,value:null==e?void 0:e.value}),React.createElement("div",{className:"srfm-beside-color-click"},j.isVisible&&React.createElement(i.Popover,{position:"top left",className:"srfm-popover-color new-srfm-advanced-colors-pop",onClose:S},M.refresh&&React.createElement(React.Fragment,null,React.createElement(i.ColorPicker,{color:c_(I),onChangeComplete:function(e){return T(e,"")}})),!M.refresh&&React.createElement(React.Fragment,null,React.createElement(i.ColorPicker,{color:c_(I),onChangeComplete:function(e){return T(e,"")}})),d&&React.createElement(i.ColorPalette,{color:I,colors:d,onChange:function(e){return T(e,!0)},clearable:!1,disableCustomColors:!0}),React.createElement("button",{type:"button",onClick:function(){T("",!0)},className:"srfm-clear-btn-inside-picker components-button components-circular-option-picker__clear is-secondary is-small"},(0,a.__)("Clear","sureforms"))),j.isVisible&&React.createElement(i.Tooltip,{text:(0,a.__)("Select Color","sureforms")},React.createElement(i.Button,{className:"srfm-color-icon-indicate srfm-has-alpha",onClick:S},React.createElement(k_,{isGlobal:L,className:R,colorValue:I}),""===I&&M.inherit&&React.createElement("span",{className:"color-indicator-icon"},u_.inherit),p&&p.startsWith("palette")&&React.createElement("span",{className:"color-indicator-icon"},React.createElement(i.Dashicon,{icon:"admin-site"})))),!j.isVisible&&React.createElement(i.Tooltip,{text:(0,a.__)("Select Color","sureforms")},React.createElement(i.Button,{className:"srfm-color-icon-indicate srfm-has-alpha",onClick:function(){O({isVisible:!0})}},React.createElement(k_,{isGlobal:L,className:R,colorValue:I}),""===I&&M.inherit&&React.createElement("span",{className:"color-indicator-icon"},u_.inherit),p&&p.startsWith("palette")&&React.createElement("span",{className:"color-indicator-icon"},React.createElement(i.Dashicon,{icon:"admin-site"})))))),k&&React.createElement("p",{className:"components-base-control__help"},k)),z)};var w_=o(84180),C_={};w_.A&&w_.A.locals&&(C_.locals=w_.A.locals);var M_,A_=0,N_={attributes:{id:"sureforms-editor-styles"}};N_.setAttributes=P(),N_.insert=L().bind(null,"head"),N_.domAPI=I(),N_.insertStyleElement=z(),C_.use=function(e){return N_.options=e||{},A_++||(M_=T()(w_.A,N_)),C_},C_.unuse=function(){A_>0&&! --A_&&(M_(),M_=null)};const j_=C_;function O_(e){return O_="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},O_(e)}function T_(e,t,r){return(t=function(e){var t=function(e){if("object"!=O_(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=O_(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==O_(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function S_(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return I_(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?I_(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.")}()}function I_(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const F_=function(e){var t,r,n=S_((0,s.useState)(null),2),o=n[0],u=n[1],c=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){return j_.use(),function(){j_.unuse()}}),[]);var d=(0,l.select)("core/block-editor").getSelectedBlock,f=null===(t=d())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){u((0,x.xT)(c))}),[f]);var p=e.data,h=e.label,g=e.options,b=e.showIcons,y=e.responsive,v=e.onChange,D=e.colorVariant,E=void 0===D?"primary":D,w=e.layoutVariant,C=void 0===w?"full":w,M=e.help,A=void 0!==M&&M,N=!(!e.setAttributes||"function"!=typeof e.setAttributes)&&e.setAttributes,O=null===(r=d())||void 0===r?void 0:r.name.split("/").pop(),T=(0,m.applyFilters)("srfm.blocksAttributes",he),S=S_((0,s.useState)(!0),2),I=S[0],F=S[1],L=S_((0,s.useState)(!0),2),R=L[0],P=L[1],B=S_((0,s.useState)(!0),2),z=B[0],q=B[1],V=_(),U=b?"srfm-multibutton-icons":"";if(!g)return(0,a.__)("Please add a option props to MultiButtonsControl","sureforms");if(y){var H={};return H.Desktop=React.createElement(i.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":h},g.map((function(e){return React.createElement(i.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:p.desktop.value!==e.value||!I,isPrimary:p.desktop.value===e.value&&I,"aria-pressed":p.desktop.value===e.value,onClick:function(){if(F(!0),e.value===p.desktop.value&&I)return F(!1),void(N&&N(T_({},p.desktop.label,T[O][p.desktop.label].default)));N&&N(T_({},p.desktop.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},b?e.icon:e.label)}))),H.Tablet=React.createElement(i.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":h},g.map((function(e){return React.createElement(i.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:p.tablet.value!==e.value||!R,isPrimary:p.tablet.value===e.value&&R,"aria-pressed":p.tablet.value===e.value,onClick:function(){if(P(!0),e.value===p.tablet.value&&R)return P(!1),void(N&&N(T_({},p.tablet.label,T[O][p.tablet.label].default)));N&&N(T_({},p.tablet.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},b?e.icon:e.label)}))),H.Mobile=React.createElement(i.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":h},g.map((function(e){return React.createElement(i.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:p.mobile.value!==e.value||!z,isPrimary:p.mobile.value===e.value&&z,"aria-pressed":p.mobile.value===e.value,onClick:function(){if(q(!0),e.value===p.mobile.value&&z)return q(!1),void(N&&N(T_({},p.mobile.label,T[O][p.mobile.label].default)));N&&N(T_({},p.mobile.label,e.value))},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},b?e.icon:e.label)}))),React.createElement("div",{className:"components-base-control srfm-multi-buttons-control ".concat(U," srfm-multi-buttons__color-scheme--").concat(E," srfm-multi-buttons__layout--").concat(C)},React.createElement("div",{className:"srfm-control__header srfm-size-type-field-tabs"},React.createElement(j,{label:h,responsive:y})),H[V]?H[V]:H.Desktop,React.createElement(k,{text:A}))}var Y=(0,x.P2)(h),Q=(0,m.applyFilters)("srfm.".concat(O,".").concat(o,".").concat(Y,".before"),"",O),W=(0,m.applyFilters)("srfm.".concat(O,".").concat(o,".").concat(Y),"",O),G=(0,m.applyFilters)("srfm.".concat(O,".").concat(o,".").concat(Y,".options"),g,O);return React.createElement("div",{ref:c,className:"components-base-control"},Q,React.createElement("div",{className:" srfm-multi-buttons-control ".concat(U," srfm-multi-buttons__color-scheme--").concat(E," srfm-multi-buttons__layout--").concat(C)},React.createElement("div",{className:"srfm-multi-buttons-control__label srfm-control-label"},h),React.createElement(i.ButtonGroup,{className:"srfm-multi-button-button-group","aria-label":h},G.map((function(e){return React.createElement(i.Button,{key:"option-".concat(e.value),className:"srfm-multi-button",isSecondary:p.value!==e.value||!I,isPrimary:p.value===e.value&&I,"aria-pressed":p.value===e.value,onClick:function(){return t=e.value,F(!0),v&&v(t),void(t===p.value&&I?(F(!1),N&&N(T_({},p.label,null===(r=T[O])||void 0===r||null===(r=r[p.label])||void 0===r?void 0:r.default))):N&&N(T_({},p.label,t)));var t,r},"aria-label":e.tooltip,label:e.tooltip,showTooltip:!!e.tooltip},b?e.icon:e.label)}))),React.createElement(k,{text:A})),W)};function L_(e,t,r){return(t=function(e){var t=function(e){if("object"!=typeof e||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=typeof r)return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==typeof t?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function R_(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P_(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?R_(Object(r),!0).forEach((function(t){L_(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):R_(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}const B_=()=>{};let z_={},q_={},V_=null,U_={mark:B_,measure:B_};try{"undefined"!=typeof window&&(z_=window),"undefined"!=typeof document&&(q_=document),"undefined"!=typeof MutationObserver&&(V_=MutationObserver),"undefined"!=typeof performance&&(U_=performance)}catch(e){}const{userAgent:H_=""}=z_.navigator||{},Y_=z_,Q_=q_,W_=V_,G_=U_,Z_=(Y_.document,!!Q_.documentElement&&!!Q_.head&&"function"==typeof Q_.addEventListener&&"function"==typeof Q_.createElement),$_=~H_.indexOf("MSIE")||~H_.indexOf("Trident/");var K_={classic:{fa:"solid",fas:"solid","fa-solid":"solid",far:"regular","fa-regular":"regular",fal:"light","fa-light":"light",fat:"thin","fa-thin":"thin",fab:"brands","fa-brands":"brands"},duotone:{fa:"solid",fad:"solid","fa-solid":"solid","fa-duotone":"solid",fadr:"regular","fa-regular":"regular",fadl:"light","fa-light":"light",fadt:"thin","fa-thin":"thin"},sharp:{fa:"solid",fass:"solid","fa-solid":"solid",fasr:"regular","fa-regular":"regular",fasl:"light","fa-light":"light",fast:"thin","fa-thin":"thin"},"sharp-duotone":{fa:"solid",fasds:"solid","fa-solid":"solid",fasdr:"regular","fa-regular":"regular",fasdl:"light","fa-light":"light",fasdt:"thin","fa-thin":"thin"}},X_=["fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone"],J_="classic",ex="duotone",tx=[J_,ex,"sharp","sharp-duotone"],rx=new Map([["classic",{defaultShortPrefixId:"fas",defaultStyleId:"solid",styleIds:["solid","regular","light","thin","brands"],futureStyleIds:[],defaultFontWeight:900}],["sharp",{defaultShortPrefixId:"fass",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["duotone",{defaultShortPrefixId:"fad",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}],["sharp-duotone",{defaultShortPrefixId:"fasds",defaultStyleId:"solid",styleIds:["solid","regular","light","thin"],futureStyleIds:[],defaultFontWeight:900}]]),nx=["fak","fa-kit","fakd","fa-kit-duotone"],ox=["fak","fakd"],ix={GROUP:"duotone-group",SWAP_OPACITY:"swap-opacity",PRIMARY:"primary",SECONDARY:"secondary"},ax=["fak","fa-kit","fakd","fa-kit-duotone"],sx={classic:{fab:"fa-brands",fad:"fa-duotone",fal:"fa-light",far:"fa-regular",fas:"fa-solid",fat:"fa-thin"},duotone:{fadr:"fa-regular",fadl:"fa-light",fadt:"fa-thin"},sharp:{fass:"fa-solid",fasr:"fa-regular",fasl:"fa-light",fast:"fa-thin"},"sharp-duotone":{fasds:"fa-solid",fasdr:"fa-regular",fasdl:"fa-light",fasdt:"fa-thin"}},lx=["fa","fas","far","fal","fat","fad","fadr","fadl","fadt","fab","fass","fasr","fasl","fast","fasds","fasdr","fasdl","fasdt","fa-classic","fa-duotone","fa-sharp","fa-sharp-duotone","fa-solid","fa-regular","fa-light","fa-thin","fa-duotone","fa-brands"],ux=[1,2,3,4,5,6,7,8,9,10],cx=ux.concat([11,12,13,14,15,16,17,18,19,20]),dx=[...Object.keys({classic:["fas","far","fal","fat","fad"],duotone:["fadr","fadl","fadt"],sharp:["fass","fasr","fasl","fast"],"sharp-duotone":["fasds","fasdr","fasdl","fasdt"]}),"solid","regular","light","thin","duotone","brands","2xs","xs","sm","lg","xl","2xl","beat","border","fade","beat-fade","bounce","flip-both","flip-horizontal","flip-vertical","flip","fw","inverse","layers-counter","layers-text","layers","li","pull-left","pull-right","pulse","rotate-180","rotate-270","rotate-90","rotate-by","shake","spin-pulse","spin-reverse","spin","stack-1x","stack-2x","stack","ul",ix.GROUP,ix.SWAP_OPACITY,ix.PRIMARY,ix.SECONDARY].concat(ux.map((e=>"".concat(e,"x")))).concat(cx.map((e=>"w-".concat(e))));const fx="___FONT_AWESOME___",mx=16,px="svg-inline--fa",hx="data-fa-i2svg",gx="data-fa-pseudo-element",bx="data-prefix",yx="data-icon",vx="fontawesome-i2svg",Dx=["HTML","HEAD","STYLE","SCRIPT"],_x=(()=>{try{return!0}catch(e){return!1}})();function xx(e){return new Proxy(e,{get:(e,t)=>t in e?e[t]:e[J_]})}const kx=P_({},K_);kx[J_]=P_(P_(P_(P_({},{"fa-duotone":"duotone"}),K_[J_]),{fak:"kit","fa-kit":"kit"}),{fakd:"kit-duotone","fa-kit-duotone":"kit-duotone"});const Ex=xx(kx),wx=P_({},{classic:{solid:"fas",regular:"far",light:"fal",thin:"fat",brands:"fab"},duotone:{solid:"fad",regular:"fadr",light:"fadl",thin:"fadt"},sharp:{solid:"fass",regular:"fasr",light:"fasl",thin:"fast"},"sharp-duotone":{solid:"fasds",regular:"fasdr",light:"fasdl",thin:"fasdt"}});wx[J_]=P_(P_(P_(P_({},{duotone:"fad"}),wx[J_]),{kit:"fak"}),{"kit-duotone":"fakd"});const Cx=xx(wx),Mx=P_({},sx);Mx[J_]=P_(P_({},Mx[J_]),{fak:"fa-kit"});const Ax=xx(Mx),Nx=P_({},{classic:{"fa-brands":"fab","fa-duotone":"fad","fa-light":"fal","fa-regular":"far","fa-solid":"fas","fa-thin":"fat"},duotone:{"fa-regular":"fadr","fa-light":"fadl","fa-thin":"fadt"},sharp:{"fa-solid":"fass","fa-regular":"fasr","fa-light":"fasl","fa-thin":"fast"},"sharp-duotone":{"fa-solid":"fasds","fa-regular":"fasdr","fa-light":"fasdl","fa-thin":"fasdt"}});Nx[J_]=P_(P_({},Nx[J_]),{"fa-kit":"fak"}),xx(Nx);const jx=/fa(s|r|l|t|d|dr|dl|dt|b|k|kd|ss|sr|sl|st|sds|sdr|sdl|sdt)?[\-\ ]/,Ox="fa-layers-text",Tx=/Font ?Awesome ?([56 ]*)(Solid|Regular|Light|Thin|Duotone|Brands|Free|Pro|Sharp Duotone|Sharp|Kit)?.*/i,Sx=(xx(P_({},{classic:{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},duotone:{900:"fad",400:"fadr",300:"fadl",100:"fadt"},sharp:{900:"fass",400:"fasr",300:"fasl",100:"fast"},"sharp-duotone":{900:"fasds",400:"fasdr",300:"fasdl",100:"fasdt"}})),["class","data-prefix","data-icon","data-fa-transform","data-fa-mask"]),Ix="duotone-group",Fx="primary",Lx="secondary",Rx=["kit",...dx],Px=Y_.FontAwesomeConfig||{};Q_&&"function"==typeof Q_.querySelector&&[["data-family-prefix","familyPrefix"],["data-css-prefix","cssPrefix"],["data-family-default","familyDefault"],["data-style-default","styleDefault"],["data-replacement-class","replacementClass"],["data-auto-replace-svg","autoReplaceSvg"],["data-auto-add-css","autoAddCss"],["data-auto-a11y","autoA11y"],["data-search-pseudo-elements","searchPseudoElements"],["data-observe-mutations","observeMutations"],["data-mutate-approach","mutateApproach"],["data-keep-original-source","keepOriginalSource"],["data-measure-performance","measurePerformance"],["data-show-missing-icons","showMissingIcons"]].forEach((e=>{let[t,r]=e;const n=function(e){return""===e||"false"!==e&&("true"===e||e)}(function(e){var t=Q_.querySelector("script["+e+"]");if(t)return t.getAttribute(e)}(t));null!=n&&(Px[r]=n)}));const Bx={styleDefault:"solid",familyDefault:J_,cssPrefix:"fa",replacementClass:px,autoReplaceSvg:!0,autoAddCss:!0,autoA11y:!0,searchPseudoElements:!1,observeMutations:!0,mutateApproach:"async",keepOriginalSource:!0,measurePerformance:!1,showMissingIcons:!0};Px.familyPrefix&&(Px.cssPrefix=Px.familyPrefix);const zx=P_(P_({},Bx),Px);zx.autoReplaceSvg||(zx.observeMutations=!1);const qx={};Object.keys(Bx).forEach((e=>{Object.defineProperty(qx,e,{enumerable:!0,set:function(t){zx[e]=t,Vx.forEach((e=>e(qx)))},get:function(){return zx[e]}})})),Object.defineProperty(qx,"familyPrefix",{enumerable:!0,set:function(e){zx.cssPrefix=e,Vx.forEach((e=>e(qx)))},get:function(){return zx.cssPrefix}}),Y_.FontAwesomeConfig=qx;const Vx=[],Ux=mx,Hx={size:16,x:0,y:0,rotate:0,flipX:!1,flipY:!1};function Yx(){let e=12,t="";for(;e-- >0;)t+="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ"[62*Math.random()|0];return t}function Qx(e){const t=[];for(let r=(e||[]).length>>>0;r--;)t[r]=e[r];return t}function Wx(e){return e.classList?Qx(e.classList):(e.getAttribute("class")||"").split(" ").filter((e=>e))}function Gx(e){return"".concat(e).replace(/&/g,"&amp;").replace(/"/g,"&quot;").replace(/'/g,"&#39;").replace(/</g,"&lt;").replace(/>/g,"&gt;")}function Zx(e){return Object.keys(e||{}).reduce(((t,r)=>t+"".concat(r,": ").concat(e[r].trim(),";")),"")}function $x(e){return e.size!==Hx.size||e.x!==Hx.x||e.y!==Hx.y||e.rotate!==Hx.rotate||e.flipX||e.flipY}function Kx(){const e="fa",t=px,r=qx.cssPrefix,n=qx.replacementClass;let o=':root, :host {\n  --fa-font-solid: normal 900 1em/1 "Font Awesome 6 Free";\n  --fa-font-regular: normal 400 1em/1 "Font Awesome 6 Free";\n  --fa-font-light: normal 300 1em/1 "Font Awesome 6 Pro";\n  --fa-font-thin: normal 100 1em/1 "Font Awesome 6 Pro";\n  --fa-font-duotone: normal 900 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-regular: normal 400 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-light: normal 300 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-duotone-thin: normal 100 1em/1 "Font Awesome 6 Duotone";\n  --fa-font-brands: normal 400 1em/1 "Font Awesome 6 Brands";\n  --fa-font-sharp-solid: normal 900 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-regular: normal 400 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-light: normal 300 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-thin: normal 100 1em/1 "Font Awesome 6 Sharp";\n  --fa-font-sharp-duotone-solid: normal 900 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-regular: normal 400 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-light: normal 300 1em/1 "Font Awesome 6 Sharp Duotone";\n  --fa-font-sharp-duotone-thin: normal 100 1em/1 "Font Awesome 6 Sharp Duotone";\n}\n\nsvg:not(:root).svg-inline--fa, svg:not(:host).svg-inline--fa {\n  overflow: visible;\n  box-sizing: content-box;\n}\n\n.svg-inline--fa {\n  display: var(--fa-display, inline-block);\n  height: 1em;\n  overflow: visible;\n  vertical-align: -0.125em;\n}\n.svg-inline--fa.fa-2xs {\n  vertical-align: 0.1em;\n}\n.svg-inline--fa.fa-xs {\n  vertical-align: 0em;\n}\n.svg-inline--fa.fa-sm {\n  vertical-align: -0.0714285705em;\n}\n.svg-inline--fa.fa-lg {\n  vertical-align: -0.2em;\n}\n.svg-inline--fa.fa-xl {\n  vertical-align: -0.25em;\n}\n.svg-inline--fa.fa-2xl {\n  vertical-align: -0.3125em;\n}\n.svg-inline--fa.fa-pull-left {\n  margin-right: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-pull-right {\n  margin-left: var(--fa-pull-margin, 0.3em);\n  width: auto;\n}\n.svg-inline--fa.fa-li {\n  width: var(--fa-li-width, 2em);\n  top: 0.25em;\n}\n.svg-inline--fa.fa-fw {\n  width: var(--fa-fw-width, 1.25em);\n}\n\n.fa-layers svg.svg-inline--fa {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n}\n\n.fa-layers-counter, .fa-layers-text {\n  display: inline-block;\n  position: absolute;\n  text-align: center;\n}\n\n.fa-layers {\n  display: inline-block;\n  height: 1em;\n  position: relative;\n  text-align: center;\n  vertical-align: -0.125em;\n  width: 1em;\n}\n.fa-layers svg.svg-inline--fa {\n  transform-origin: center center;\n}\n\n.fa-layers-text {\n  left: 50%;\n  top: 50%;\n  transform: translate(-50%, -50%);\n  transform-origin: center center;\n}\n\n.fa-layers-counter {\n  background-color: var(--fa-counter-background-color, #ff253a);\n  border-radius: var(--fa-counter-border-radius, 1em);\n  box-sizing: border-box;\n  color: var(--fa-inverse, #fff);\n  line-height: var(--fa-counter-line-height, 1);\n  max-width: var(--fa-counter-max-width, 5em);\n  min-width: var(--fa-counter-min-width, 1.5em);\n  overflow: hidden;\n  padding: var(--fa-counter-padding, 0.25em 0.5em);\n  right: var(--fa-right, 0);\n  text-overflow: ellipsis;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-counter-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-bottom-right {\n  bottom: var(--fa-bottom, 0);\n  right: var(--fa-right, 0);\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom right;\n}\n\n.fa-layers-bottom-left {\n  bottom: var(--fa-bottom, 0);\n  left: var(--fa-left, 0);\n  right: auto;\n  top: auto;\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: bottom left;\n}\n\n.fa-layers-top-right {\n  top: var(--fa-top, 0);\n  right: var(--fa-right, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top right;\n}\n\n.fa-layers-top-left {\n  left: var(--fa-left, 0);\n  right: auto;\n  top: var(--fa-top, 0);\n  transform: scale(var(--fa-layers-scale, 0.25));\n  transform-origin: top left;\n}\n\n.fa-1x {\n  font-size: 1em;\n}\n\n.fa-2x {\n  font-size: 2em;\n}\n\n.fa-3x {\n  font-size: 3em;\n}\n\n.fa-4x {\n  font-size: 4em;\n}\n\n.fa-5x {\n  font-size: 5em;\n}\n\n.fa-6x {\n  font-size: 6em;\n}\n\n.fa-7x {\n  font-size: 7em;\n}\n\n.fa-8x {\n  font-size: 8em;\n}\n\n.fa-9x {\n  font-size: 9em;\n}\n\n.fa-10x {\n  font-size: 10em;\n}\n\n.fa-2xs {\n  font-size: 0.625em;\n  line-height: 0.1em;\n  vertical-align: 0.225em;\n}\n\n.fa-xs {\n  font-size: 0.75em;\n  line-height: 0.0833333337em;\n  vertical-align: 0.125em;\n}\n\n.fa-sm {\n  font-size: 0.875em;\n  line-height: 0.0714285718em;\n  vertical-align: 0.0535714295em;\n}\n\n.fa-lg {\n  font-size: 1.25em;\n  line-height: 0.05em;\n  vertical-align: -0.075em;\n}\n\n.fa-xl {\n  font-size: 1.5em;\n  line-height: 0.0416666682em;\n  vertical-align: -0.125em;\n}\n\n.fa-2xl {\n  font-size: 2em;\n  line-height: 0.03125em;\n  vertical-align: -0.1875em;\n}\n\n.fa-fw {\n  text-align: center;\n  width: 1.25em;\n}\n\n.fa-ul {\n  list-style-type: none;\n  margin-left: var(--fa-li-margin, 2.5em);\n  padding-left: 0;\n}\n.fa-ul > li {\n  position: relative;\n}\n\n.fa-li {\n  left: calc(-1 * var(--fa-li-width, 2em));\n  position: absolute;\n  text-align: center;\n  width: var(--fa-li-width, 2em);\n  line-height: inherit;\n}\n\n.fa-border {\n  border-color: var(--fa-border-color, #eee);\n  border-radius: var(--fa-border-radius, 0.1em);\n  border-style: var(--fa-border-style, solid);\n  border-width: var(--fa-border-width, 0.08em);\n  padding: var(--fa-border-padding, 0.2em 0.25em 0.15em);\n}\n\n.fa-pull-left {\n  float: left;\n  margin-right: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-pull-right {\n  float: right;\n  margin-left: var(--fa-pull-margin, 0.3em);\n}\n\n.fa-beat {\n  animation-name: fa-beat;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-bounce {\n  animation-name: fa-bounce;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.28, 0.84, 0.42, 1));\n}\n\n.fa-fade {\n  animation-name: fa-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-beat-fade {\n  animation-name: fa-beat-fade;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, cubic-bezier(0.4, 0, 0.6, 1));\n}\n\n.fa-flip {\n  animation-name: fa-flip;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, ease-in-out);\n}\n\n.fa-shake {\n  animation-name: fa-shake;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin {\n  animation-name: fa-spin;\n  animation-delay: var(--fa-animation-delay, 0s);\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 2s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, linear);\n}\n\n.fa-spin-reverse {\n  --fa-animation-direction: reverse;\n}\n\n.fa-pulse,\n.fa-spin-pulse {\n  animation-name: fa-spin;\n  animation-direction: var(--fa-animation-direction, normal);\n  animation-duration: var(--fa-animation-duration, 1s);\n  animation-iteration-count: var(--fa-animation-iteration-count, infinite);\n  animation-timing-function: var(--fa-animation-timing, steps(8));\n}\n\n@media (prefers-reduced-motion: reduce) {\n  .fa-beat,\n.fa-bounce,\n.fa-fade,\n.fa-beat-fade,\n.fa-flip,\n.fa-pulse,\n.fa-shake,\n.fa-spin,\n.fa-spin-pulse {\n    animation-delay: -1ms;\n    animation-duration: 1ms;\n    animation-iteration-count: 1;\n    transition-delay: 0s;\n    transition-duration: 0s;\n  }\n}\n@keyframes fa-beat {\n  0%, 90% {\n    transform: scale(1);\n  }\n  45% {\n    transform: scale(var(--fa-beat-scale, 1.25));\n  }\n}\n@keyframes fa-bounce {\n  0% {\n    transform: scale(1, 1) translateY(0);\n  }\n  10% {\n    transform: scale(var(--fa-bounce-start-scale-x, 1.1), var(--fa-bounce-start-scale-y, 0.9)) translateY(0);\n  }\n  30% {\n    transform: scale(var(--fa-bounce-jump-scale-x, 0.9), var(--fa-bounce-jump-scale-y, 1.1)) translateY(var(--fa-bounce-height, -0.5em));\n  }\n  50% {\n    transform: scale(var(--fa-bounce-land-scale-x, 1.05), var(--fa-bounce-land-scale-y, 0.95)) translateY(0);\n  }\n  57% {\n    transform: scale(1, 1) translateY(var(--fa-bounce-rebound, -0.125em));\n  }\n  64% {\n    transform: scale(1, 1) translateY(0);\n  }\n  100% {\n    transform: scale(1, 1) translateY(0);\n  }\n}\n@keyframes fa-fade {\n  50% {\n    opacity: var(--fa-fade-opacity, 0.4);\n  }\n}\n@keyframes fa-beat-fade {\n  0%, 100% {\n    opacity: var(--fa-beat-fade-opacity, 0.4);\n    transform: scale(1);\n  }\n  50% {\n    opacity: 1;\n    transform: scale(var(--fa-beat-fade-scale, 1.125));\n  }\n}\n@keyframes fa-flip {\n  50% {\n    transform: rotate3d(var(--fa-flip-x, 0), var(--fa-flip-y, 1), var(--fa-flip-z, 0), var(--fa-flip-angle, -180deg));\n  }\n}\n@keyframes fa-shake {\n  0% {\n    transform: rotate(-15deg);\n  }\n  4% {\n    transform: rotate(15deg);\n  }\n  8%, 24% {\n    transform: rotate(-18deg);\n  }\n  12%, 28% {\n    transform: rotate(18deg);\n  }\n  16% {\n    transform: rotate(-22deg);\n  }\n  20% {\n    transform: rotate(22deg);\n  }\n  32% {\n    transform: rotate(-12deg);\n  }\n  36% {\n    transform: rotate(12deg);\n  }\n  40%, 100% {\n    transform: rotate(0deg);\n  }\n}\n@keyframes fa-spin {\n  0% {\n    transform: rotate(0deg);\n  }\n  100% {\n    transform: rotate(360deg);\n  }\n}\n.fa-rotate-90 {\n  transform: rotate(90deg);\n}\n\n.fa-rotate-180 {\n  transform: rotate(180deg);\n}\n\n.fa-rotate-270 {\n  transform: rotate(270deg);\n}\n\n.fa-flip-horizontal {\n  transform: scale(-1, 1);\n}\n\n.fa-flip-vertical {\n  transform: scale(1, -1);\n}\n\n.fa-flip-both,\n.fa-flip-horizontal.fa-flip-vertical {\n  transform: scale(-1, -1);\n}\n\n.fa-rotate-by {\n  transform: rotate(var(--fa-rotate-angle, 0));\n}\n\n.fa-stack {\n  display: inline-block;\n  vertical-align: middle;\n  height: 2em;\n  position: relative;\n  width: 2.5em;\n}\n\n.fa-stack-1x,\n.fa-stack-2x {\n  bottom: 0;\n  left: 0;\n  margin: auto;\n  position: absolute;\n  right: 0;\n  top: 0;\n  z-index: var(--fa-stack-z-index, auto);\n}\n\n.svg-inline--fa.fa-stack-1x {\n  height: 1em;\n  width: 1.25em;\n}\n.svg-inline--fa.fa-stack-2x {\n  height: 2em;\n  width: 2.5em;\n}\n\n.fa-inverse {\n  color: var(--fa-inverse, #fff);\n}\n\n.sr-only,\n.fa-sr-only {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.sr-only-focusable:not(:focus),\n.fa-sr-only-focusable:not(:focus) {\n  position: absolute;\n  width: 1px;\n  height: 1px;\n  padding: 0;\n  margin: -1px;\n  overflow: hidden;\n  clip: rect(0, 0, 0, 0);\n  white-space: nowrap;\n  border-width: 0;\n}\n\n.svg-inline--fa .fa-primary {\n  fill: var(--fa-primary-color, currentColor);\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa .fa-secondary {\n  fill: var(--fa-secondary-color, currentColor);\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-primary {\n  opacity: var(--fa-secondary-opacity, 0.4);\n}\n\n.svg-inline--fa.fa-swap-opacity .fa-secondary {\n  opacity: var(--fa-primary-opacity, 1);\n}\n\n.svg-inline--fa mask .fa-primary,\n.svg-inline--fa mask .fa-secondary {\n  fill: black;\n}';if(r!==e||n!==t){const i=new RegExp("\\.".concat(e,"\\-"),"g"),a=new RegExp("\\--".concat(e,"\\-"),"g"),s=new RegExp("\\.".concat(t),"g");o=o.replace(i,".".concat(r,"-")).replace(a,"--".concat(r,"-")).replace(s,".".concat(n))}return o}let Xx=!1;function Jx(){qx.autoAddCss&&!Xx&&(function(e){if(!e||!Z_)return;const t=Q_.createElement("style");t.setAttribute("type","text/css"),t.innerHTML=e;const r=Q_.head.childNodes;let n=null;for(let e=r.length-1;e>-1;e--){const t=r[e],o=(t.tagName||"").toUpperCase();["STYLE","LINK"].indexOf(o)>-1&&(n=t)}Q_.head.insertBefore(t,n)}(Kx()),Xx=!0)}var ek={mixout:()=>({dom:{css:Kx,insertCss:Jx}}),hooks:()=>({beforeDOMElementCreation(){Jx()},beforeI2svg(){Jx()}})};const tk=Y_||{};tk[fx]||(tk[fx]={}),tk[fx].styles||(tk[fx].styles={}),tk[fx].hooks||(tk[fx].hooks={}),tk[fx].shims||(tk[fx].shims=[]);var rk=tk[fx];const nk=[],ok=function(){Q_.removeEventListener("DOMContentLoaded",ok),ik=1,nk.map((e=>e()))};let ik=!1;function ak(e){const{tag:t,attributes:r={},children:n=[]}=e;return"string"==typeof e?Gx(e):"<".concat(t," ").concat(function(e){return Object.keys(e||{}).reduce(((t,r)=>t+"".concat(r,'="').concat(Gx(e[r]),'" ')),"").trim()}(r),">").concat(n.map(ak).join(""),"</").concat(t,">")}function sk(e,t,r){if(e&&e[t]&&e[t][r])return{prefix:t,iconName:r,icon:e[t][r]}}Z_&&(ik=(Q_.documentElement.doScroll?/^loaded|^c/:/^loaded|^i|^c/).test(Q_.readyState),ik||Q_.addEventListener("DOMContentLoaded",ok));var lk=function(e,t,r,n){var o,i,a,s=Object.keys(e),l=s.length,u=void 0!==n?function(e,t){return function(r,n,o,i){return e.call(t,r,n,o,i)}}(t,n):t;for(void 0===r?(o=1,a=e[s[0]]):(o=0,a=r);o<l;o++)a=u(a,e[i=s[o]],i,e);return a};function uk(e){const t=function(e){const t=[];let r=0;const n=e.length;for(;r<n;){const o=e.charCodeAt(r++);if(o>=55296&&o<=56319&&r<n){const n=e.charCodeAt(r++);56320==(64512&n)?t.push(((1023&o)<<10)+(1023&n)+65536):(t.push(o),r--)}else t.push(o)}return t}(e);return 1===t.length?t[0].toString(16):null}function ck(e){return Object.keys(e).reduce(((t,r)=>{const n=e[r];return n.icon?t[n.iconName]=n.icon:t[r]=n,t}),{})}function dk(e,t){let r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const{skipHooks:n=!1}=r,o=ck(t);"function"!=typeof rk.hooks.addPack||n?rk.styles[e]=P_(P_({},rk.styles[e]||{}),o):rk.hooks.addPack(e,ck(t)),"fas"===e&&dk("fa",t)}const{styles:fk,shims:mk}=rk,pk=Object.keys(Ax),hk=pk.reduce(((e,t)=>(e[t]=Object.keys(Ax[t]),e)),{});let gk=null,bk={},yk={},vk={},Dk={},_k={};const xk=()=>{const e=e=>lk(fk,((t,r,n)=>(t[n]=lk(r,e,{}),t)),{});bk=e(((e,t,r)=>(t[3]&&(e[t[3]]=r),t[2]&&t[2].filter((e=>"number"==typeof e)).forEach((t=>{e[t.toString(16)]=r})),e))),yk=e(((e,t,r)=>(e[r]=r,t[2]&&t[2].filter((e=>"string"==typeof e)).forEach((t=>{e[t]=r})),e))),_k=e(((e,t,r)=>{const n=t[2];return e[r]=r,n.forEach((t=>{e[t]=r})),e}));const t="far"in fk||qx.autoFetchSvg,r=lk(mk,((e,r)=>{const n=r[0];let o=r[1];const i=r[2];return"far"!==o||t||(o="fas"),"string"==typeof n&&(e.names[n]={prefix:o,iconName:i}),"number"==typeof n&&(e.unicodes[n.toString(16)]={prefix:o,iconName:i}),e}),{names:{},unicodes:{}});vk=r.names,Dk=r.unicodes,gk=Ak(qx.styleDefault,{family:qx.familyDefault})};var kk;function Ek(e,t){return(bk[e]||{})[t]}function wk(e,t){return(_k[e]||{})[t]}function Ck(e){return vk[e]||{prefix:null,iconName:null}}function Mk(){return gk}function Ak(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{family:r=J_}=t,n=Ex[r][e];if(r===ex&&!e)return"fad";const o=Cx[r][e]||Cx[r][n],i=e in rk.styles?e:null;return o||i||null}function Nk(e){return e.sort().filter(((e,t,r)=>r.indexOf(e)===t))}function jk(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{skipLookups:r=!1}=t;let n=null;const o=lx.concat(ax),i=Nk(e.filter((e=>o.includes(e)))),a=Nk(e.filter((e=>!lx.includes(e)))),s=i.filter((e=>(n=e,!X_.includes(e)))),[l=null]=s,u=function(e){let t=J_;const r=pk.reduce(((e,t)=>(e[t]="".concat(qx.cssPrefix,"-").concat(t),e)),{});return tx.forEach((n=>{(e.includes(r[n])||e.some((e=>hk[n].includes(e))))&&(t=n)})),t}(i),c=P_(P_({},function(e){let t=[],r=null;return e.forEach((e=>{const n=function(e,t){const r=t.split("-"),n=r[0],o=r.slice(1).join("-");return n!==e||""===o||(i=o,~Rx.indexOf(i))?null:o;var i}(qx.cssPrefix,e);n?r=n:e&&t.push(e)})),{iconName:r,rest:t}}(a)),{},{prefix:Ak(l,{family:u})});return P_(P_(P_({},c),function(e){const{values:t,family:r,canonical:n,givenPrefix:o="",styles:i={},config:a={}}=e,s=r===ex,l=t.includes("fa-duotone")||t.includes("fad"),u="duotone"===a.familyDefault,c="fad"===n.prefix||"fa-duotone"===n.prefix;if(!s&&(l||u||c)&&(n.prefix="fad"),(t.includes("fa-brands")||t.includes("fab"))&&(n.prefix="fab"),!n.prefix&&Ok.includes(r)&&(Object.keys(i).find((e=>Tk.includes(e)))||a.autoFetchSvg)){const e=rx.get(r).defaultShortPrefixId;n.prefix=e,n.iconName=wk(n.prefix,n.iconName)||n.iconName}return"fa"!==n.prefix&&"fa"!==o||(n.prefix=Mk()||"fas"),n}({values:e,family:u,styles:fk,config:qx,canonical:c,givenPrefix:n})),function(e,t,r){let{prefix:n,iconName:o}=r;if(e||!n||!o)return{prefix:n,iconName:o};const i="fa"===t?Ck(o):{},a=wk(n,o);return o=i.iconName||a||o,n=i.prefix||n,"far"!==n||fk.far||!fk.fas||qx.autoFetchSvg||(n="fas"),{prefix:n,iconName:o}}(r,n,c))}kk=e=>{gk=Ak(e.styleDefault,{family:qx.familyDefault})},Vx.push(kk),xk();const Ok=tx.filter((e=>e!==J_||e!==ex)),Tk=Object.keys(sx).filter((e=>e!==J_)).map((e=>Object.keys(sx[e]))).flat();let Sk=[],Ik={};const Fk={},Lk=Object.keys(Fk);function Rk(e,t){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];return(Ik[e]||[]).forEach((e=>{t=e.apply(null,[t,...n])})),t}function Pk(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];(Ik[e]||[]).forEach((e=>{e.apply(null,r)}))}function Bk(){const e=arguments[0],t=Array.prototype.slice.call(arguments,1);return Fk[e]?Fk[e].apply(null,t):void 0}function zk(e){"fa"===e.prefix&&(e.prefix="fas");let{iconName:t}=e;const r=e.prefix||Mk();if(t)return t=wk(r,t)||t,sk(qk.definitions,r,t)||sk(rk.styles,r,t)}const qk=new class{constructor(){this.definitions={}}add(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.reduce(this._pullDefinitions,{});Object.keys(n).forEach((e=>{this.definitions[e]=P_(P_({},this.definitions[e]||{}),n[e]),dk(e,n[e]);const t=Ax[J_][e];t&&dk(t,n[e]),xk()}))}reset(){this.definitions={}}_pullDefinitions(e,t){const r=t.prefix&&t.iconName&&t.icon?{0:t}:t;return Object.keys(r).map((t=>{const{prefix:n,iconName:o,icon:i}=r[t],a=i[2];e[n]||(e[n]={}),a.length>0&&a.forEach((t=>{"string"==typeof t&&(e[n][t]=i)})),e[n][o]=i})),e}},Vk={i2svg:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return Z_?(Pk("beforeI2svg",e),Bk("pseudoElements2svg",e),Bk("i2svg",e)):Promise.reject(new Error("Operation requires a DOM of some kind."))},watch:function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t}=e;var r;!1===qx.autoReplaceSvg&&(qx.autoReplaceSvg=!0),qx.observeMutations=!0,r=()=>{Yk({autoReplaceSvgRoot:t}),Pk("watch",e)},Z_&&(ik?setTimeout(r,0):nk.push(r))}},Uk={icon:e=>{if(null===e)return null;if("object"==typeof e&&e.prefix&&e.iconName)return{prefix:e.prefix,iconName:wk(e.prefix,e.iconName)||e.iconName};if(Array.isArray(e)&&2===e.length){const t=0===e[1].indexOf("fa-")?e[1].slice(3):e[1],r=Ak(e[0]);return{prefix:r,iconName:wk(r,t)||t}}if("string"==typeof e&&(e.indexOf("".concat(qx.cssPrefix,"-"))>-1||e.match(jx))){const t=jk(e.split(" "),{skipLookups:!0});return{prefix:t.prefix||Mk(),iconName:wk(t.prefix,t.iconName)||t.iconName}}if("string"==typeof e){const t=Mk();return{prefix:t,iconName:wk(t,e)||e}}}},Hk={noAuto:()=>{qx.autoReplaceSvg=!1,qx.observeMutations=!1,Pk("noAuto")},config:qx,dom:Vk,parse:Uk,library:qk,findIconDefinition:zk,toHtml:ak},Yk=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{autoReplaceSvgRoot:t=Q_}=e;(Object.keys(rk.styles).length>0||qx.autoFetchSvg)&&Z_&&qx.autoReplaceSvg&&Hk.dom.i2svg({node:t})};function Qk(e,t){return Object.defineProperty(e,"abstract",{get:t}),Object.defineProperty(e,"html",{get:function(){return e.abstract.map((e=>ak(e)))}}),Object.defineProperty(e,"node",{get:function(){if(!Z_)return;const t=Q_.createElement("div");return t.innerHTML=e.html,t.children}}),e}function Wk(e){const{icons:{main:t,mask:r},prefix:n,iconName:o,transform:i,symbol:a,title:s,maskId:l,titleId:u,extra:c,watchable:d=!1}=e,{width:f,height:m}=r.found?r:t,p=ox.includes(n),h=[qx.replacementClass,o?"".concat(qx.cssPrefix,"-").concat(o):""].filter((e=>-1===c.classes.indexOf(e))).filter((e=>""!==e||!!e)).concat(c.classes).join(" ");let g={children:[],attributes:P_(P_({},c.attributes),{},{"data-prefix":n,"data-icon":o,class:h,role:c.attributes.role||"img",xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 ".concat(f," ").concat(m)})};const b=p&&!~c.classes.indexOf("fa-fw")?{width:"".concat(f/m*16*.0625,"em")}:{};d&&(g.attributes[hx]=""),s&&(g.children.push({tag:"title",attributes:{id:g.attributes["aria-labelledby"]||"title-".concat(u||Yx())},children:[s]}),delete g.attributes.title);const y=P_(P_({},g),{},{prefix:n,iconName:o,main:t,mask:r,maskId:l,transform:i,symbol:a,styles:P_(P_({},b),c.styles)}),{children:v,attributes:D}=r.found&&t.found?Bk("generateAbstractMask",y)||{children:[],attributes:{}}:Bk("generateAbstractIcon",y)||{children:[],attributes:{}};return y.children=v,y.attributes=D,a?function(e){let{prefix:t,iconName:r,children:n,attributes:o,symbol:i}=e;const a=!0===i?"".concat(t,"-").concat(qx.cssPrefix,"-").concat(r):i;return[{tag:"svg",attributes:{style:"display: none;"},children:[{tag:"symbol",attributes:P_(P_({},o),{},{id:a}),children:n}]}]}(y):function(e){let{children:t,main:r,mask:n,attributes:o,styles:i,transform:a}=e;if($x(a)&&r.found&&!n.found){const{width:e,height:t}=r,n={x:e/t/2,y:.5};o.style=Zx(P_(P_({},i),{},{"transform-origin":"".concat(n.x+a.x/16,"em ").concat(n.y+a.y/16,"em")}))}return[{tag:"svg",attributes:o,children:t}]}(y)}function Gk(e){const{content:t,width:r,height:n,transform:o,title:i,extra:a,watchable:s=!1}=e,l=P_(P_(P_({},a.attributes),i?{title:i}:{}),{},{class:a.classes.join(" ")});s&&(l[hx]="");const u=P_({},a.styles);$x(o)&&(u.transform=function(e){let{transform:t,width:r=mx,height:n=mx,startCentered:o=!1}=e,i="";return i+=o&&$_?"translate(".concat(t.x/Ux-r/2,"em, ").concat(t.y/Ux-n/2,"em) "):o?"translate(calc(-50% + ".concat(t.x/Ux,"em), calc(-50% + ").concat(t.y/Ux,"em)) "):"translate(".concat(t.x/Ux,"em, ").concat(t.y/Ux,"em) "),i+="scale(".concat(t.size/Ux*(t.flipX?-1:1),", ").concat(t.size/Ux*(t.flipY?-1:1),") "),i+="rotate(".concat(t.rotate,"deg) "),i}({transform:o,startCentered:!0,width:r,height:n}),u["-webkit-transform"]=u.transform);const c=Zx(u);c.length>0&&(l.style=c);const d=[];return d.push({tag:"span",attributes:l,children:[t]}),i&&d.push({tag:"span",attributes:{class:"sr-only"},children:[i]}),d}const{styles:Zk}=rk;function $k(e){const t=e[0],r=e[1],[n]=e.slice(4);let o=null;return o=Array.isArray(n)?{tag:"g",attributes:{class:"".concat(qx.cssPrefix,"-").concat(Ix)},children:[{tag:"path",attributes:{class:"".concat(qx.cssPrefix,"-").concat(Lx),fill:"currentColor",d:n[0]}},{tag:"path",attributes:{class:"".concat(qx.cssPrefix,"-").concat(Fx),fill:"currentColor",d:n[1]}}]}:{tag:"path",attributes:{fill:"currentColor",d:n}},{found:!0,width:t,height:r,icon:o}}const Kk={found:!1,width:512,height:512};function Xk(e,t){let r=t;return"fa"===t&&null!==qx.styleDefault&&(t=Mk()),new Promise(((n,o)=>{if("fa"===r){const r=Ck(e)||{};e=r.iconName||e,t=r.prefix||t}if(e&&t&&Zk[t]&&Zk[t][e])return n($k(Zk[t][e]));!function(e,t){_x||qx.showMissingIcons||!e||console.error('Icon with name "'.concat(e,'" and prefix "').concat(t,'" is missing.'))}(e,t),n(P_(P_({},Kk),{},{icon:qx.showMissingIcons&&e&&Bk("missingIconAbstract")||{}}))}))}const Jk=()=>{},eE=qx.measurePerformance&&G_&&G_.mark&&G_.measure?G_:{mark:Jk,measure:Jk},tE='FA "6.7.2"';var rE=e=>(eE.mark("".concat(tE," ").concat(e," begins")),()=>(e=>{eE.mark("".concat(tE," ").concat(e," ends")),eE.measure("".concat(tE," ").concat(e),"".concat(tE," ").concat(e," begins"),"".concat(tE," ").concat(e," ends"))})(e));const nE=()=>{};function oE(e){return"string"==typeof(e.getAttribute?e.getAttribute(hx):null)}function iE(e){return Q_.createElementNS("http://www.w3.org/2000/svg",e)}function aE(e){return Q_.createElement(e)}function sE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{ceFn:r=("svg"===e.tag?iE:aE)}=t;if("string"==typeof e)return Q_.createTextNode(e);const n=r(e.tag);return Object.keys(e.attributes||[]).forEach((function(t){n.setAttribute(t,e.attributes[t])})),(e.children||[]).forEach((function(e){n.appendChild(sE(e,{ceFn:r}))})),n}const lE={replace:function(e){const t=e[0];if(t.parentNode)if(e[1].forEach((e=>{t.parentNode.insertBefore(sE(e),t)})),null===t.getAttribute(hx)&&qx.keepOriginalSource){let e=Q_.createComment(function(e){let t=" ".concat(e.outerHTML," ");return t="".concat(t,"Font Awesome fontawesome.com "),t}(t));t.parentNode.replaceChild(e,t)}else t.remove()},nest:function(e){const t=e[0],r=e[1];if(~Wx(t).indexOf(qx.replacementClass))return lE.replace(e);const n=new RegExp("".concat(qx.cssPrefix,"-.*"));if(delete r[0].attributes.id,r[0].attributes.class){const e=r[0].attributes.class.split(" ").reduce(((e,t)=>(t===qx.replacementClass||t.match(n)?e.toSvg.push(t):e.toNode.push(t),e)),{toNode:[],toSvg:[]});r[0].attributes.class=e.toSvg.join(" "),0===e.toNode.length?t.removeAttribute("class"):t.setAttribute("class",e.toNode.join(" "))}const o=r.map((e=>ak(e))).join("\n");t.setAttribute(hx,""),t.innerHTML=o}};function uE(e){e()}function cE(e,t){const r="function"==typeof t?t:nE;if(0===e.length)r();else{let t=uE;"async"===qx.mutateApproach&&(t=Y_.requestAnimationFrame||uE),t((()=>{const t=!0===qx.autoReplaceSvg?lE.replace:lE[qx.autoReplaceSvg]||lE.replace,n=rE("mutate");e.map(t),n(),r()}))}}let dE=!1;function fE(){dE=!0}function mE(){dE=!1}let pE=null;function hE(e){if(!W_)return;if(!qx.observeMutations)return;const{treeCallback:t=nE,nodeCallback:r=nE,pseudoElementsCallback:n=nE,observeMutationsRoot:o=Q_}=e;pE=new W_((e=>{if(dE)return;const o=Mk();Qx(e).forEach((e=>{if("childList"===e.type&&e.addedNodes.length>0&&!oE(e.addedNodes[0])&&(qx.searchPseudoElements&&n(e.target),t(e.target)),"attributes"===e.type&&e.target.parentNode&&qx.searchPseudoElements&&n(e.target.parentNode),"attributes"===e.type&&oE(e.target)&&~Sx.indexOf(e.attributeName))if("class"===e.attributeName&&function(e){const t=e.getAttribute?e.getAttribute(bx):null,r=e.getAttribute?e.getAttribute(yx):null;return t&&r}(e.target)){const{prefix:t,iconName:r}=jk(Wx(e.target));e.target.setAttribute(bx,t||o),r&&e.target.setAttribute(yx,r)}else(i=e.target)&&i.classList&&i.classList.contains&&i.classList.contains(qx.replacementClass)&&r(e.target);var i}))})),Z_&&pE.observe(o,{childList:!0,attributes:!0,characterData:!0,subtree:!0})}function gE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{styleParser:!0};const{iconName:r,prefix:n,rest:o}=function(e){const t=e.getAttribute("data-prefix"),r=e.getAttribute("data-icon"),n=void 0!==e.innerText?e.innerText.trim():"";let o=jk(Wx(e));return o.prefix||(o.prefix=Mk()),t&&r&&(o.prefix=t,o.iconName=r),o.iconName&&o.prefix||(o.prefix&&n.length>0&&(o.iconName=(i=o.prefix,a=e.innerText,(yk[i]||{})[a]||Ek(o.prefix,uk(e.innerText)))),!o.iconName&&qx.autoFetchSvg&&e.firstChild&&e.firstChild.nodeType===Node.TEXT_NODE&&(o.iconName=e.firstChild.data)),o;var i,a}(e),i=function(e){const t=Qx(e.attributes).reduce(((e,t)=>("class"!==e.name&&"style"!==e.name&&(e[t.name]=t.value),e)),{}),r=e.getAttribute("title"),n=e.getAttribute("data-fa-title-id");return qx.autoA11y&&(r?t["aria-labelledby"]="".concat(qx.replacementClass,"-title-").concat(n||Yx()):(t["aria-hidden"]="true",t.focusable="false")),t}(e),a=Rk("parseNodeAttributes",{},e);let s=t.styleParser?function(e){const t=e.getAttribute("style");let r=[];return t&&(r=t.split(";").reduce(((e,t)=>{const r=t.split(":"),n=r[0],o=r.slice(1);return n&&o.length>0&&(e[n]=o.join(":").trim()),e}),{})),r}(e):[];return P_({iconName:r,title:e.getAttribute("title"),titleId:e.getAttribute("data-fa-title-id"),prefix:n,transform:Hx,mask:{iconName:null,prefix:null,rest:[]},maskId:null,symbol:!1,extra:{classes:o,styles:s,attributes:i}},a)}const{styles:bE}=rk;function yE(e){const t="nest"===qx.autoReplaceSvg?gE(e,{styleParser:!1}):gE(e);return~t.extra.classes.indexOf(Ox)?Bk("generateLayersText",e,t):Bk("generateSvgReplacementMutation",e,t)}function vE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;if(!Z_)return Promise.resolve();const r=Q_.documentElement.classList,n=e=>r.add("".concat(vx,"-").concat(e)),o=e=>r.remove("".concat(vx,"-").concat(e)),i=qx.autoFetchSvg?[...nx,...lx]:X_.concat(Object.keys(bE));i.includes("fa")||i.push("fa");const a=[".".concat(Ox,":not([").concat(hx,"])")].concat(i.map((e=>".".concat(e,":not([").concat(hx,"])")))).join(", ");if(0===a.length)return Promise.resolve();let s=[];try{s=Qx(e.querySelectorAll(a))}catch(e){}if(!(s.length>0))return Promise.resolve();n("pending"),o("complete");const l=rE("onTree"),u=s.reduce(((e,t)=>{try{const r=yE(t);r&&e.push(r)}catch(e){_x||"MissingIcon"===e.name&&console.error(e)}return e}),[]);return new Promise(((e,r)=>{Promise.all(u).then((r=>{cE(r,(()=>{n("active"),n("complete"),o("pending"),"function"==typeof t&&t(),l(),e()}))})).catch((e=>{l(),r(e)}))}))}function DE(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null;yE(e).then((e=>{e&&cE([e],t)}))}const _E=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:r=Hx,symbol:n=!1,mask:o=null,maskId:i=null,title:a=null,titleId:s=null,classes:l=[],attributes:u={},styles:c={}}=t;if(!e)return;const{prefix:d,iconName:f,icon:m}=e;return Qk(P_({type:"icon"},e),(()=>(Pk("beforeDOMElementCreation",{iconDefinition:e,params:t}),qx.autoA11y&&(a?u["aria-labelledby"]="".concat(qx.replacementClass,"-title-").concat(s||Yx()):(u["aria-hidden"]="true",u.focusable="false")),Wk({icons:{main:$k(m),mask:o?$k(o.icon):{found:!1,width:null,height:null,icon:{}}},prefix:d,iconName:f,transform:P_(P_({},Hx),r),symbol:n,title:a,maskId:i,titleId:s,extra:{attributes:u,styles:c,classes:l}}))))};var xE={mixout(){return{icon:(e=_E,function(t){let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const n=(t||{}).icon?t:zk(t||{});let{mask:o}=r;return o&&(o=(o||{}).icon?o:zk(o||{})),e(n,P_(P_({},r),{},{mask:o}))})};var e},hooks:()=>({mutationObserverCallbacks:e=>(e.treeCallback=vE,e.nodeCallback=DE,e)}),provides(e){e.i2svg=function(e){const{node:t=Q_,callback:r=()=>{}}=e;return vE(t,r)},e.generateSvgReplacementMutation=function(e,t){const{iconName:r,title:n,titleId:o,prefix:i,transform:a,symbol:s,mask:l,maskId:u,extra:c}=t;return new Promise(((t,d)=>{Promise.all([Xk(r,i),l.iconName?Xk(l.iconName,l.prefix):Promise.resolve({found:!1,width:512,height:512,icon:{}})]).then((l=>{let[d,f]=l;t([e,Wk({icons:{main:d,mask:f},prefix:i,iconName:r,transform:a,symbol:s,maskId:u,title:n,titleId:o,extra:c,watchable:!0})])})).catch(d)}))},e.generateAbstractIcon=function(e){let{children:t,attributes:r,main:n,transform:o,styles:i}=e;const a=Zx(i);let s;return a.length>0&&(r.style=a),$x(o)&&(s=Bk("generateAbstractTransformGrouping",{main:n,transform:o,containerWidth:n.width,iconWidth:n.width})),t.push(s||n.icon),{children:t,attributes:r}}}},kE={mixout:()=>({layer(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{classes:r=[]}=t;return Qk({type:"layer"},(()=>{Pk("beforeDOMElementCreation",{assembler:e,params:t});let n=[];return e((e=>{Array.isArray(e)?e.map((e=>{n=n.concat(e.abstract)})):n=n.concat(e.abstract)})),[{tag:"span",attributes:{class:["".concat(qx.cssPrefix,"-layers"),...r].join(" ")},children:n}]}))}})},EE={mixout:()=>({counter(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{title:r=null,classes:n=[],attributes:o={},styles:i={}}=t;return Qk({type:"counter",content:e},(()=>(Pk("beforeDOMElementCreation",{content:e,params:t}),function(e){const{content:t,title:r,extra:n}=e,o=P_(P_(P_({},n.attributes),r?{title:r}:{}),{},{class:n.classes.join(" ")}),i=Zx(n.styles);i.length>0&&(o.style=i);const a=[];return a.push({tag:"span",attributes:o,children:[t]}),r&&a.push({tag:"span",attributes:{class:"sr-only"},children:[r]}),a}({content:e.toString(),title:r,extra:{attributes:o,styles:i,classes:["".concat(qx.cssPrefix,"-layers-counter"),...n]}}))))}})},wE={mixout:()=>({text(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{transform:r=Hx,title:n=null,classes:o=[],attributes:i={},styles:a={}}=t;return Qk({type:"text",content:e},(()=>(Pk("beforeDOMElementCreation",{content:e,params:t}),Gk({content:e,transform:P_(P_({},Hx),r),title:n,extra:{attributes:i,styles:a,classes:["".concat(qx.cssPrefix,"-layers-text"),...o]}}))))}}),provides(e){e.generateLayersText=function(e,t){const{title:r,transform:n,extra:o}=t;let i=null,a=null;if($_){const t=parseInt(getComputedStyle(e).fontSize,10),r=e.getBoundingClientRect();i=r.width/t,a=r.height/t}return qx.autoA11y&&!r&&(o.attributes["aria-hidden"]="true"),Promise.resolve([e,Gk({content:e.innerHTML,width:i,height:a,transform:n,title:r,extra:o,watchable:!0})])}}};const CE=new RegExp('"',"ug"),ME=[1105920,1112319],AE=P_(P_(P_(P_({},{FontAwesome:{normal:"fas",400:"fas"}}),{"Font Awesome 6 Free":{900:"fas",400:"far"},"Font Awesome 6 Pro":{900:"fas",400:"far",normal:"far",300:"fal",100:"fat"},"Font Awesome 6 Brands":{400:"fab",normal:"fab"},"Font Awesome 6 Duotone":{900:"fad",400:"fadr",normal:"fadr",300:"fadl",100:"fadt"},"Font Awesome 6 Sharp":{900:"fass",400:"fasr",normal:"fasr",300:"fasl",100:"fast"},"Font Awesome 6 Sharp Duotone":{900:"fasds",400:"fasdr",normal:"fasdr",300:"fasdl",100:"fasdt"}}),{"Font Awesome 5 Free":{900:"fas",400:"far"},"Font Awesome 5 Pro":{900:"fas",400:"far",normal:"far",300:"fal"},"Font Awesome 5 Brands":{400:"fab",normal:"fab"},"Font Awesome 5 Duotone":{900:"fad"}}),{"Font Awesome Kit":{400:"fak",normal:"fak"},"Font Awesome Kit Duotone":{400:"fakd",normal:"fakd"}}),NE=Object.keys(AE).reduce(((e,t)=>(e[t.toLowerCase()]=AE[t],e)),{}),jE=Object.keys(NE).reduce(((e,t)=>{const r=NE[t];return e[t]=r[900]||[...Object.entries(r)][0][1],e}),{});function OE(e,t){const r="".concat("data-fa-pseudo-element-pending").concat(t.replace(":","-"));return new Promise(((n,o)=>{if(null!==e.getAttribute(r))return n();const i=Qx(e.children).filter((e=>e.getAttribute(gx)===t))[0],a=Y_.getComputedStyle(e,t),s=a.getPropertyValue("font-family"),l=s.match(Tx),u=a.getPropertyValue("font-weight"),c=a.getPropertyValue("content");if(i&&!l)return e.removeChild(i),n();if(l&&"none"!==c&&""!==c){const c=a.getPropertyValue("content");let d=function(e,t){const r=e.replace(/^['"]|['"]$/g,"").toLowerCase(),n=parseInt(t),o=isNaN(n)?"normal":n;return(NE[r]||{})[o]||jE[r]}(s,u);const{value:f,isSecondary:m}=function(e){const t=e.replace(CE,""),r=function(e){const t=e.length;let r,n=e.charCodeAt(0);return n>=55296&&n<=56319&&t>1&&(r=e.charCodeAt(1),r>=56320&&r<=57343)?1024*(n-55296)+r-56320+65536:n}(t),n=r>=ME[0]&&r<=ME[1],o=2===t.length&&t[0]===t[1];return{value:uk(o?t[0]:t),isSecondary:n||o}}(c),p=l[0].startsWith("FontAwesome");let h=Ek(d,f),g=h;if(p){const e=function(e){const t=Dk[e],r=Ek("fas",e);return t||(r?{prefix:"fas",iconName:r}:null)||{prefix:null,iconName:null}}(f);e.iconName&&e.prefix&&(h=e.iconName,d=e.prefix)}if(!h||m||i&&i.getAttribute(bx)===d&&i.getAttribute(yx)===g)n();else{e.setAttribute(r,g),i&&e.removeChild(i);const a={iconName:null,title:null,titleId:null,prefix:null,transform:Hx,symbol:!1,mask:{iconName:null,prefix:null,rest:[]},maskId:null,extra:{classes:[],styles:{},attributes:{}}},{extra:s}=a;s.attributes[gx]=t,Xk(h,d).then((o=>{const i=Wk(P_(P_({},a),{},{icons:{main:o,mask:{prefix:null,iconName:null,rest:[]}},prefix:d,iconName:g,extra:s,watchable:!0})),l=Q_.createElementNS("http://www.w3.org/2000/svg","svg");"::before"===t?e.insertBefore(l,e.firstChild):e.appendChild(l),l.outerHTML=i.map((e=>ak(e))).join("\n"),e.removeAttribute(r),n()})).catch(o)}}else n()}))}function TE(e){return Promise.all([OE(e,"::before"),OE(e,"::after")])}function SE(e){return!(e.parentNode===document.head||~Dx.indexOf(e.tagName.toUpperCase())||e.getAttribute(gx)||e.parentNode&&"svg"===e.parentNode.tagName)}function IE(e){if(Z_)return new Promise(((t,r)=>{const n=Qx(e.querySelectorAll("*")).filter(SE).map(TE),o=rE("searchPseudoElements");fE(),Promise.all(n).then((()=>{o(),mE(),t()})).catch((()=>{o(),mE(),r()}))}))}var FE={hooks:()=>({mutationObserverCallbacks:e=>(e.pseudoElementsCallback=IE,e)}),provides(e){e.pseudoElements2svg=function(e){const{node:t=Q_}=e;qx.searchPseudoElements&&IE(t)}}};let LE=!1;var RE={mixout:()=>({dom:{unwatch(){fE(),LE=!0}}}),hooks:()=>({bootstrap(){hE(Rk("mutationObserverCallbacks",{}))},noAuto(){pE&&pE.disconnect()},watch(e){const{observeMutationsRoot:t}=e;LE?mE():hE(Rk("mutationObserverCallbacks",{observeMutationsRoot:t}))}})};const PE=e=>e.toLowerCase().split(" ").reduce(((e,t)=>{const r=t.toLowerCase().split("-"),n=r[0];let o=r.slice(1).join("-");if(n&&"h"===o)return e.flipX=!0,e;if(n&&"v"===o)return e.flipY=!0,e;if(o=parseFloat(o),isNaN(o))return e;switch(n){case"grow":e.size=e.size+o;break;case"shrink":e.size=e.size-o;break;case"left":e.x=e.x-o;break;case"right":e.x=e.x+o;break;case"up":e.y=e.y-o;break;case"down":e.y=e.y+o;break;case"rotate":e.rotate=e.rotate+o}return e}),{size:16,x:0,y:0,flipX:!1,flipY:!1,rotate:0});var BE={mixout:()=>({parse:{transform:e=>PE(e)}}),hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-transform");return r&&(e.transform=PE(r)),e}}),provides(e){e.generateAbstractTransformGrouping=function(e){let{main:t,transform:r,containerWidth:n,iconWidth:o}=e;const i={transform:"translate(".concat(n/2," 256)")},a="translate(".concat(32*r.x,", ").concat(32*r.y,") "),s="scale(".concat(r.size/16*(r.flipX?-1:1),", ").concat(r.size/16*(r.flipY?-1:1),") "),l="rotate(".concat(r.rotate," 0 0)"),u={outer:i,inner:{transform:"".concat(a," ").concat(s," ").concat(l)},path:{transform:"translate(".concat(o/2*-1," -256)")}};return{tag:"g",attributes:P_({},u.outer),children:[{tag:"g",attributes:P_({},u.inner),children:[{tag:t.icon.tag,children:t.icon.children,attributes:P_(P_({},t.icon.attributes),u.path)}]}]}}}};const zE={x:0,y:0,width:"100%",height:"100%"};function qE(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.attributes&&(e.attributes.fill||t)&&(e.attributes.fill="black"),e}var VE={hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-mask"),n=r?jk(r.split(" ").map((e=>e.trim()))):{prefix:null,iconName:null,rest:[]};return n.prefix||(n.prefix=Mk()),e.mask=n,e.maskId=t.getAttribute("data-fa-mask-id"),e}}),provides(e){e.generateAbstractMask=function(e){let{children:t,attributes:r,main:n,mask:o,maskId:i,transform:a}=e;const{width:s,icon:l}=n,{width:u,icon:c}=o,d=function(e){let{transform:t,containerWidth:r,iconWidth:n}=e;const o={transform:"translate(".concat(r/2," 256)")},i="translate(".concat(32*t.x,", ").concat(32*t.y,") "),a="scale(".concat(t.size/16*(t.flipX?-1:1),", ").concat(t.size/16*(t.flipY?-1:1),") "),s="rotate(".concat(t.rotate," 0 0)");return{outer:o,inner:{transform:"".concat(i," ").concat(a," ").concat(s)},path:{transform:"translate(".concat(n/2*-1," -256)")}}}({transform:a,containerWidth:u,iconWidth:s}),f={tag:"rect",attributes:P_(P_({},zE),{},{fill:"white"})},m=l.children?{children:l.children.map(qE)}:{},p={tag:"g",attributes:P_({},d.inner),children:[qE(P_({tag:l.tag,attributes:P_(P_({},l.attributes),d.path)},m))]},h={tag:"g",attributes:P_({},d.outer),children:[p]},g="mask-".concat(i||Yx()),b="clip-".concat(i||Yx()),y={tag:"mask",attributes:P_(P_({},zE),{},{id:g,maskUnits:"userSpaceOnUse",maskContentUnits:"userSpaceOnUse"}),children:[f,h]},v={tag:"defs",children:[{tag:"clipPath",attributes:{id:b},children:(D=c,"g"===D.tag?D.children:[D])},y]};var D;return t.push(v,{tag:"rect",attributes:P_({fill:"currentColor","clip-path":"url(#".concat(b,")"),mask:"url(#".concat(g,")")},zE)}),{children:t,attributes:r}}}},UE={provides(e){let t=!1;Y_.matchMedia&&(t=Y_.matchMedia("(prefers-reduced-motion: reduce)").matches),e.missingIconAbstract=function(){const e=[],r={fill:"currentColor"},n={attributeType:"XML",repeatCount:"indefinite",dur:"2s"};e.push({tag:"path",attributes:P_(P_({},r),{},{d:"M156.5,447.7l-12.6,29.5c-18.7-9.5-35.9-21.2-51.5-34.9l22.7-22.7C127.6,430.5,141.5,440,156.5,447.7z M40.6,272H8.5 c1.4,21.2,5.4,41.7,11.7,61.1L50,321.2C45.1,305.5,41.8,289,40.6,272z M40.6,240c1.4-18.8,5.2-37,11.1-54.1l-29.5-12.6 C14.7,194.3,10,216.7,8.5,240H40.6z M64.3,156.5c7.8-14.9,17.2-28.8,28.1-41.5L69.7,92.3c-13.7,15.6-25.5,32.8-34.9,51.5 L64.3,156.5z M397,419.6c-13.9,12-29.4,22.3-46.1,30.4l11.9,29.8c20.7-9.9,39.8-22.6,56.9-37.6L397,419.6z M115,92.4 c13.9-12,29.4-22.3,46.1-30.4l-11.9-29.8c-20.7,9.9-39.8,22.6-56.8,37.6L115,92.4z M447.7,355.5c-7.8,14.9-17.2,28.8-28.1,41.5 l22.7,22.7c13.7-15.6,25.5-32.9,34.9-51.5L447.7,355.5z M471.4,272c-1.4,18.8-5.2,37-11.1,54.1l29.5,12.6 c7.5-21.1,12.2-43.5,13.6-66.8H471.4z M321.2,462c-15.7,5-32.2,8.2-49.2,9.4v32.1c21.2-1.4,41.7-5.4,61.1-11.7L321.2,462z M240,471.4c-18.8-1.4-37-5.2-54.1-11.1l-12.6,29.5c21.1,7.5,43.5,12.2,66.8,13.6V471.4z M462,190.8c5,15.7,8.2,32.2,9.4,49.2h32.1 c-1.4-21.2-5.4-41.7-11.7-61.1L462,190.8z M92.4,397c-12-13.9-22.3-29.4-30.4-46.1l-29.8,11.9c9.9,20.7,22.6,39.8,37.6,56.9 L92.4,397z M272,40.6c18.8,1.4,36.9,5.2,54.1,11.1l12.6-29.5C317.7,14.7,295.3,10,272,8.5V40.6z M190.8,50 c15.7-5,32.2-8.2,49.2-9.4V8.5c-21.2,1.4-41.7,5.4-61.1,11.7L190.8,50z M442.3,92.3L419.6,115c12,13.9,22.3,29.4,30.5,46.1 l29.8-11.9C470,128.5,457.3,109.4,442.3,92.3z M397,92.4l22.7-22.7c-15.6-13.7-32.8-25.5-51.5-34.9l-12.6,29.5 C370.4,72.1,384.4,81.5,397,92.4z"})});const o=P_(P_({},n),{},{attributeName:"opacity"}),i={tag:"circle",attributes:P_(P_({},r),{},{cx:"256",cy:"364",r:"28"}),children:[]};return t||i.children.push({tag:"animate",attributes:P_(P_({},n),{},{attributeName:"r",values:"28;14;28;28;14;28;"})},{tag:"animate",attributes:P_(P_({},o),{},{values:"1;0;1;1;0;1;"})}),e.push(i),e.push({tag:"path",attributes:P_(P_({},r),{},{opacity:"1",d:"M263.7,312h-16c-6.6,0-12-5.4-12-12c0-71,77.4-63.9,77.4-107.8c0-20-17.8-40.2-57.4-40.2c-29.1,0-44.3,9.6-59.2,28.7 c-3.9,5-11.1,6-16.2,2.4l-13.1-9.2c-5.6-3.9-6.9-11.8-2.6-17.2c21.2-27.2,46.4-44.7,91.2-44.7c52.3,0,97.4,29.8,97.4,80.2 c0,67.6-77.4,63.5-77.4,107.8C275.7,306.6,270.3,312,263.7,312z"}),children:t?[]:[{tag:"animate",attributes:P_(P_({},o),{},{values:"1;0;0;0;0;1;"})}]}),t||e.push({tag:"path",attributes:P_(P_({},r),{},{opacity:"0",d:"M232.5,134.5l7,168c0.3,6.4,5.6,11.5,12,11.5h9c6.4,0,11.7-5.1,12-11.5l7-168c0.3-6.8-5.2-12.5-12-12.5h-23 C237.7,122,232.2,127.7,232.5,134.5z"}),children:[{tag:"animate",attributes:P_(P_({},o),{},{values:"0;0;1;1;0;0;"})}]}),{tag:"g",attributes:{class:"missing"},children:e}}}};!function(e,t){let{mixoutsTo:r}=t;Sk=e,Ik={},Object.keys(Fk).forEach((e=>{-1===Lk.indexOf(e)&&delete Fk[e]})),Sk.forEach((e=>{const t=e.mixout?e.mixout():{};if(Object.keys(t).forEach((e=>{"function"==typeof t[e]&&(r[e]=t[e]),"object"==typeof t[e]&&Object.keys(t[e]).forEach((n=>{r[e]||(r[e]={}),r[e][n]=t[e][n]}))})),e.hooks){const t=e.hooks();Object.keys(t).forEach((e=>{Ik[e]||(Ik[e]=[]),Ik[e].push(t[e])}))}e.provides&&e.provides(Fk)}))}([ek,xE,kE,EE,wE,FE,RE,BE,VE,UE,{hooks:()=>({parseNodeAttributes(e,t){const r=t.getAttribute("data-fa-symbol"),n=null!==r&&(""===r||r);return e.symbol=n,e}})}],{mixoutsTo:Hk});const HE=Hk.parse,YE=Hk.icon;var QE=o(5556),WE=o.n(QE);function GE(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ZE(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?GE(Object(r),!0).forEach((function(t){KE(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GE(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $E(e){return $E="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(e)}function KE(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function XE(e){return function(e){if(Array.isArray(e))return JE(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 JE(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?JE(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 JE(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ew(e){return t=e,(t-=0)==t?e:(e=e.replace(/[\-_\s]+(.)?/g,(function(e,t){return t?t.toUpperCase():""}))).substr(0,1).toLowerCase()+e.substr(1);var t}var tw=["style"],rw=!1;try{rw=!0}catch(e){}function nw(e){return e&&"object"===$E(e)&&e.prefix&&e.iconName&&e.icon?e:HE.icon?HE.icon(e):null===e?null:e&&"object"===$E(e)&&e.prefix&&e.iconName?e:Array.isArray(e)&&2===e.length?{prefix:e[0],iconName:e[1]}:"string"==typeof e?{prefix:"fas",iconName:e}:void 0}function ow(e,t){return Array.isArray(t)&&t.length>0||!Array.isArray(t)&&t?KE({},e,t):{}}var iw={border:!1,className:"",mask:null,maskId:null,fixedWidth:!1,inverse:!1,flip:!1,icon:null,listItem:!1,pull:null,pulse:!1,rotation:null,size:null,spin:!1,spinPulse:!1,spinReverse:!1,beat:!1,fade:!1,beatFade:!1,bounce:!1,shake:!1,symbol:!1,title:"",titleId:null,transform:null,swapOpacity:!1},aw=Le().forwardRef((function(e,t){var r=ZE(ZE({},iw),e),n=r.icon,o=r.mask,i=r.symbol,a=r.className,s=r.title,l=r.titleId,u=r.maskId,c=nw(n),d=ow("classes",[].concat(XE(function(e){var t,r=e.beat,n=e.fade,o=e.beatFade,i=e.bounce,a=e.shake,s=e.flash,l=e.spin,u=e.spinPulse,c=e.spinReverse,d=e.pulse,f=e.fixedWidth,m=e.inverse,p=e.border,h=e.listItem,g=e.flip,b=e.size,y=e.rotation,v=e.pull,D=(KE(t={"fa-beat":r,"fa-fade":n,"fa-beat-fade":o,"fa-bounce":i,"fa-shake":a,"fa-flash":s,"fa-spin":l,"fa-spin-reverse":c,"fa-spin-pulse":u,"fa-pulse":d,"fa-fw":f,"fa-inverse":m,"fa-border":p,"fa-li":h,"fa-flip":!0===g,"fa-flip-horizontal":"horizontal"===g||"both"===g,"fa-flip-vertical":"vertical"===g||"both"===g},"fa-".concat(b),null!=b),KE(t,"fa-rotate-".concat(y),null!=y&&0!==y),KE(t,"fa-pull-".concat(v),null!=v),KE(t,"fa-swap-opacity",e.swapOpacity),t);return Object.keys(D).map((function(e){return D[e]?e:null})).filter((function(e){return e}))}(r)),XE((a||"").split(" ")))),f=ow("transform","string"==typeof r.transform?HE.transform(r.transform):r.transform),m=ow("mask",nw(o)),p=YE(c,ZE(ZE(ZE(ZE({},d),f),m),{},{symbol:i,title:s,titleId:l,maskId:u}));if(!p)return function(){var e;!rw&&console&&"function"==typeof console.error&&(e=console).error.apply(e,arguments)}("Could not find icon",c),null;var h=p.abstract,g={ref:t};return Object.keys(r).forEach((function(e){iw.hasOwnProperty(e)||(g[e]=r[e])})),sw(h[0],g)}));aw.displayName="FontAwesomeIcon",aw.propTypes={beat:WE().bool,border:WE().bool,beatFade:WE().bool,bounce:WE().bool,className:WE().string,fade:WE().bool,flash:WE().bool,mask:WE().oneOfType([WE().object,WE().array,WE().string]),maskId:WE().string,fixedWidth:WE().bool,inverse:WE().bool,flip:WE().oneOf([!0,!1,"horizontal","vertical","both"]),icon:WE().oneOfType([WE().object,WE().array,WE().string]),listItem:WE().bool,pull:WE().oneOf(["right","left"]),pulse:WE().bool,rotation:WE().oneOf([0,90,180,270]),shake:WE().bool,size:WE().oneOf(["2xs","xs","sm","lg","xl","2xl","1x","2x","3x","4x","5x","6x","7x","8x","9x","10x"]),spin:WE().bool,spinPulse:WE().bool,spinReverse:WE().bool,symbol:WE().oneOfType([WE().bool,WE().string]),title:WE().string,titleId:WE().string,transform:WE().oneOfType([WE().string,WE().object]),swapOpacity:WE().bool};var sw=function e(t,r){var n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if("string"==typeof r)return r;var o=(r.children||[]).map((function(r){return e(t,r)})),i=Object.keys(r.attributes||{}).reduce((function(e,t){var n=r.attributes[t];switch(t){case"class":e.attrs.className=n,delete r.attributes.class;break;case"style":e.attrs.style=n.split(";").map((function(e){return e.trim()})).filter((function(e){return e})).reduce((function(e,t){var r,n=t.indexOf(":"),o=ew(t.slice(0,n)),i=t.slice(n+1).trim();return o.startsWith("webkit")?e[(r=o,r.charAt(0).toUpperCase()+r.slice(1))]=i:e[o]=i,e}),{});break;default:0===t.indexOf("aria-")||0===t.indexOf("data-")?e.attrs[t.toLowerCase()]=n:e.attrs[ew(t)]=n}return e}),{attrs:{}}),a=n.style,s=void 0===a?{}:a,l=function(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}(n,tw);return i.attrs.style=ZE(ZE({},i.attrs.style),s),t.apply(void 0,[r.tag,ZE(ZE({},i.attrs),l)].concat(XE(o)))}.bind(null,Le().createElement);const lw={prefix:"fas",iconName:"align-justify",icon:[448,512,[],"f039","M448 64c0-17.7-14.3-32-32-32L32 32C14.3 32 0 46.3 0 64S14.3 96 32 96l384 0c17.7 0 32-14.3 32-32zm0 256c0-17.7-14.3-32-32-32L32 288c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 192c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32zM448 448c0-17.7-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32z"]},uw={prefix:"fas",iconName:"align-left",icon:[448,512,[],"f036","M288 64c0 17.7-14.3 32-32 32L32 96C14.3 96 0 81.7 0 64S14.3 32 32 32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32L32 352c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},cw={prefix:"fas",iconName:"align-center",icon:[448,512,[],"f037","M352 64c0-17.7-14.3-32-32-32L128 32c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32zm96 128c0-17.7-14.3-32-32-32L32 160c-17.7 0-32 14.3-32 32s14.3 32 32 32l384 0c17.7 0 32-14.3 32-32zM0 448c0 17.7 14.3 32 32 32l384 0c17.7 0 32-14.3 32-32s-14.3-32-32-32L32 416c-17.7 0-32 14.3-32 32zM352 320c0-17.7-14.3-32-32-32l-192 0c-17.7 0-32 14.3-32 32s14.3 32 32 32l192 0c17.7 0 32-14.3 32-32z"]},dw={prefix:"fas",iconName:"align-right",icon:[448,512,[],"f038","M448 64c0 17.7-14.3 32-32 32L192 96c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zm0 256c0 17.7-14.3 32-32 32l-224 0c-17.7 0-32-14.3-32-32s14.3-32 32-32l224 0c17.7 0 32 14.3 32 32zM0 192c0-17.7 14.3-32 32-32l384 0c17.7 0 32 14.3 32 32s-14.3 32-32 32L32 224c-17.7 0-32-14.3-32-32zM448 448c0 17.7-14.3 32-32 32L32 480c-17.7 0-32-14.3-32-32s14.3-32 32-32l384 0c17.7 0 32 14.3 32 32z"]},fw=window.wp.primitives,mw=(0,Ie.createElement)(fw.SVG,{viewBox:"0 0 24 24",xmlns:"http://www.w3.org/2000/svg"},(0,Ie.createElement)(fw.Path,{d:"M17.5 11.6L12 16l-5.5-4.4.9-1.2L12 14l4.5-3.6 1 1.2z"})),pw=function(e){var t,r,n=e.tooltipHeading,o=void 0===n?"":n,i=e.tooltipContent,s=void 0===i?"":i,l=e.tooltipPosition,u=void 0===l?"bottom":l,c=e.utmMedium,d=void 0===c?"":c;return React.createElement("div",{className:"srfm-tooltip"},React.createElement("span",{className:"srfm-premium-badge-text"},React.createElement("span",{className:"srfm-premium-text-wrapper"}," ",(0,a.__)("Premium","sureforms")," ")),React.createElement("div",{className:"tooltip-wrap ".concat(u)},React.createElement("div",{className:"tooltip-content"},React.createElement("div",{className:"tooltip-text"},React.createElement("h3",null,o),React.createElement("p",null,s)),React.createElement("a",{target:"_blank",href:(0,x.XB)((null===(t=srfm_admin)||void 0===t?void 0:t.pricing_page_url)||(null===(r=srfm_admin)||void 0===r?void 0:r.sureforms_pricing_page),d),rel:"noreferrer"},(0,a.__)("Upgrade","sureforms"))),React.createElement("i",null)))};var hw=o(74456),gw={};hw.A&&hw.A.locals&&(gw.locals=hw.A.locals);var bw,yw=0,vw={attributes:{id:"sureforms-editor-styles"}};vw.setAttributes=P(),vw.insert=L().bind(null,"head"),vw.domAPI=I(),vw.insertStyleElement=z(),gw.use=function(e){return vw.options=e||{},yw++||(bw=T()(hw.A,vw)),gw},gw.unuse=function(){yw>0&&! --yw&&(bw(),bw=null)};const Dw=gw;var _w=o(36323),xw={};_w.A&&_w.A.locals&&(xw.locals=_w.A.locals);var kw,Ew=0,ww={attributes:{id:"sureforms-editor-styles"}};ww.setAttributes=P(),ww.insert=L().bind(null,"head"),ww.domAPI=I(),ww.insertStyleElement=z(),xw.use=function(e){return ww.options=e||{},Ew++||(kw=T()(_w.A,ww)),xw},xw.unuse=function(){Ew>0&&! --Ew&&(kw(),kw=null)};const Cw=xw;var Mw=o(44676),Aw={};Mw.A&&Mw.A.locals&&(Aw.locals=Mw.A.locals);var Nw,jw=0,Ow={attributes:{id:"sureforms-editor-styles"}};Ow.setAttributes=P(),Ow.insert=L().bind(null,"head"),Ow.domAPI=I(),Ow.insertStyleElement=z(),Aw.use=function(e){return Ow.options=e||{},jw++||(Nw=T()(Mw.A,Ow)),Aw},Aw.unuse=function(){jw>0&&! --jw&&(Nw(),Nw=null)};const Tw=Aw;var Sw=function(e,t,r){var n=0;if(r){var o,i=_();n=(e||t.data[i.toLowerCase()].value)&&null!==(o=t.data[i.toLowerCase()])&&void 0!==o&&o.max?t.data[i.toLowerCase()].max:t.max}else n=e&&t.limitMax?t.limitMax[e]:t.max;return n},Iw=function(e,t,r){var n=0;if(r){var o,i=_();n=(e||t.data[i.toLowerCase()].value)&&null!==(o=t.data[i.toLowerCase()])&&void 0!==o&&o.min?t.data[i.toLowerCase()].min:t.min}else n=e&&t.limitMin?t.limitMin[e]:t.min;return n};function Fw(e){return Fw="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},Fw(e)}function Lw(e,t,r){return(t=function(e){var t=function(e){if("object"!=Fw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=Fw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==Fw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Rw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var Pw=!!i.__experimentalNumberControl,Bw=function(e){var t,r,n,o,u,c=(o=(0,s.useState)(null),u=2,function(e){if(Array.isArray(e))return e}(o)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(o,u)||function(e,t){if(e){if("string"==typeof e)return Rw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Rw(e,t):void 0}}(o,u)||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.")}()),d=c[0],f=c[1],p=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){return Tw.use(),function(){Tw.unuse()}}),[]);var h=null===(t=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){f((0,x.xT)(p))}),[h]);var g=e.withInputField,b=e.isShiftStepEnabled,y=Sw(null===(r=e.unit)||void 0===r?void 0:r.value,e),v=Iw(null===(n=e.unit)||void 0===n?void 0:n.value,e),D=isNaN(null==e?void 0:e.value)?"":null==e?void 0:e.value,_=[{name:(0,a.__)("Pixel","sureforms"),unitValue:"px"},{name:(0,a.__)("Em","sureforms"),unitValue:"em"}];e.units&&(_=e.units);var E,w=function(t){var r=parseFloat(t);e.setAttributes&&e.setAttributes(Lw({},e.data.label,r)),null!=e&&e.onChange&&e.onChange(r)},C=(0,x.P2)(e.label),M=(0,m.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(C,".before"),"",h),A=(0,m.applyFilters)("srfm.".concat(h,".").concat(d,".").concat(C),"",h),N=function(e){return isNaN(e)||Number(e)%1==0?1:.1};return React.createElement("div",{ref:p,className:"components-base-control"},M,React.createElement("div",{className:"srfm-range-control srfm-size-type-field-tabs"},React.createElement("div",{className:"srfm-control__header"},React.createElement(j,{label:e.label,responsive:e.responsive}),React.createElement("div",{className:"srfm-range-control__actions srfm-control__actions"},(null==e?void 0:e.allowReset)&&React.createElement(xe,{onReset:function(t){var r,n,o,i=Lw({},e.data.label,t[null==e||null===(r=e.data)||void 0===r?void 0:r.label]);null!=e&&e.onChange&&(null==e||e.onChange(t[null==e||null===(n=e.data)||void 0===n?void 0:n.label])),e.displayUnit&&(i[e.unit.label]=t[null==e||null===(o=e.unit)||void 0===o?void 0:o.label]),null!=e&&e.setAttributes&&e.setAttributes(i)},attributeNames:[e.data.label,e.displayUnit?e.unit.label:null].filter((function(e){return null!=e})),setAttributes:null==e?void 0:e.setAttributes,isFormSpecific:null==e?void 0:e.isFormSpecific,isValueArray:!0,value:[null==e?void 0:e.value,e.displayUnit?e.unit.value:null].filter((function(e){return null!=e}))}),e.displayUnit&&React.createElement(i.ButtonGroup,{className:"srfm-control__units","aria-label":(0,a.__)("Select Units","sureforms")},(E=[],_.map((function(t){return E.push(React.createElement(i.Tooltip,{text:(0,a.sprintf)((0,a.__)("%s units","sureforms"),t.name),key:t.name},React.createElement(i.Button,{key:t.unitValue,className:"srfm-range-control__units--"+t.name,isSmall:!0,isPrimary:e.unit.value===t.unitValue,isSecondary:e.unit.value!==t.unitValue,"aria-pressed":e.unit.value===t.unitValue,"aria-label":(0,a.sprintf)((0,a.__)("%s units","sureforms"),t.name),onClick:function(){return r=t.unitValue,n=Lw({},e.unit.label,r),y=parseFloat(Sw(r,e)),v=parseFloat(Iw(r,e)),e.value>y?(n[e.data.label]=y,null!=e&&e.onChange&&e.onChange(y)):e.value<v&&(n[e.data.label]=v,null!=e&&e.onChange&&e.onChange(v)),void(null!=e&&e.setAttributes&&e.setAttributes(n));var r,n}},t.unitValue)))})),E)))),React.createElement("div",{className:"srfm-range-control__mobile-controls"},React.createElement(i.RangeControl,{value:D,onChange:w,withInputField:!1,allowReset:!1,max:y,min:v,step:(null==e?void 0:e.step)||N(D),initialPosition:D,marks:(null==e?void 0:e.marks)||!1}),g&&Pw&&React.createElement(i.__experimentalNumberControl,{disabled:e.disabled,isShiftStepEnabled:b,max:y,min:v,onChange:w,value:D,step:(null==e?void 0:e.step)||N(D)})),React.createElement(k,{text:e.help})),A)};Bw.defaultProps={label:(0,a.__)("Margin","sureforms"),className:"",allowReset:!0,withInputField:!0,isShiftStepEnabled:!0,max:1/0,min:-1/0,resetFallbackValue:"",placeholder:null,unit:["px","em"],displayUnit:!0,responsive:!1,help:!1,marks:!1,isFormSpecific:!1};const zw=Bw;function qw(e){return qw="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},qw(e)}function Vw(e,t,r){return(t=function(e){var t=function(e){if("object"!=qw(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=qw(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==qw(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Uw(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const Hw=function(e){var t,r,n,o=(r=(0,s.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,n)||function(e,t){if(e){if("string"==typeof e)return Uw(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Uw(e,t):void 0}}(r,n)||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.")}()),u=o[0],c=o[1],d=(0,s.useRef)(null),f=(0,l.select)("core/block-editor").getSelectedBlock;(0,s.useLayoutEffect)((function(){return Cw.use(),function(){Cw.unuse()}}),[]);var p=e.setAttributes,h=e.gradientType,g=e.backgroundGradient,b=e.backgroundGradientColor2,y=e.backgroundGradientColor1,v=e.backgroundGradientType,D=e.backgroundGradientLocation1,_=e.backgroundGradientLocation2,k=e.backgroundGradientAngle,E=null===(t=f())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){c((0,x.xT)(d))}),[E]);var w="gradient-settings",C=(0,m.applyFilters)("srfm.".concat(E,".").concat(u,".").concat(w,".before"),"",E),M=(0,m.applyFilters)("srfm.".concat(E,".").concat(u,".").concat(w),"",E),A=void 0!==h&&void 0!==(null==h?void 0:h.value)?null==h?void 0:h.value:"basic";return React.createElement(React.Fragment,null,void 0!==h&&React.createElement(F_,{setAttributes:p,label:(0,a.__)("Select Gradient","sureforms"),data:{value:h.value,label:h.label},options:[{value:"basic",label:(0,a.__)("Basic","sureforms")},{value:"advanced",label:(0,a.__)("Advanced","sureforms")}],showIcons:!1}),React.createElement("div",{ref:d},C,"basic"===A&&React.createElement(i.GradientPicker,{__nextHasNoMargin:!0,value:(null==g?void 0:g.value)||null,onChange:function(e){p(Vw({},g.label,e))},className:"srfm-gradient-picker",gradients:[]}),M),"advanced"===A&&React.createElement(React.Fragment,null,React.createElement(E_,{label:(0,a.__)("Color 1","sureforms"),colorValue:y.value?y.value:"",data:{value:y.value,label:y.label},onColorChange:function(e){e!==y.value&&p(Vw({},y.label,e))},value:null==y?void 0:y.value,isFormSpecific:!0}),React.createElement(E_,{label:(0,a.__)("Color 2","sureforms"),colorValue:b.value?b.value:"",data:{value:b.value,label:b.label},onColorChange:function(e){e!==b.value&&p(Vw({},b.label,e))},value:null==b?void 0:b.value,isFormSpecific:!0}),React.createElement(F_,{setAttributes:p,label:(0,a.__)("Type","sureforms"),data:{value:v.value,label:v.label},className:"srfm-multi-button-alignment-control",options:[{value:"linear",label:(0,a.__)("Linear","sureforms")},{value:"radial",label:(0,a.__)("Radial","sureforms")}]}),React.createElement(zw,{label:(0,a.__)("Location 1","sureforms"),setAttributes:p,value:D.value,data:{value:D.value,label:D.label},min:0,max:100,displayUnit:!1,isFormSpecific:!0}),React.createElement(zw,{label:(0,a.__)("Location 2","sureforms"),setAttributes:p,value:_.value,data:{value:_.value,label:_.label},min:0,max:100,displayUnit:!1,isFormSpecific:!0}),"linear"===v.value&&React.createElement(zw,{label:(0,a.__)("Angle","sureforms"),setAttributes:p,value:k.value,data:{value:k.value,label:k.label},min:0,max:360,displayUnit:!1,isFormSpecific:!0})))};var Yw="#fff",Qw="#1d2327",Ww="none";const Gw={logo:(0,s.createElement)("svg",{width:20,height:20,viewBox:"0 0 85 85",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M41.7849 0C33.5206 0 25.4419 2.49258 18.5705 7.16254C11.699 11.8325 6.34331 18.4701 3.18071 26.236C0.0181112 34.0018 -0.809377 42.5471 0.802901 50.7913C2.41518 59.0355 6.3948 66.6083 12.2385 72.552C18.0822 78.4958 25.5276 82.5435 33.633 84.1834C41.7385 85.8232 50.1401 84.9816 57.7753 81.7649C65.4105 78.5482 71.9363 73.1008 76.5277 66.1117C81.1191 59.1226 83.5697 50.9057 83.5697 42.5C83.565 31.2298 79.1612 20.4225 71.326 12.4533C63.4908 4.48402 52.8655 0.0048112 41.7849 0ZM57.5278 49.0175C57.5278 49.1264 57.5278 49.2354 57.5278 49.3443V49.6529V49.8526C57.3161 51.0856 56.8673 52.2639 56.207 53.3201L55.8143 53.8829L55.2431 54.5546C55.0482 54.8082 54.8268 55.0396 54.5827 55.2445V55.3353L54.4578 55.4261L54.2079 55.6258C54.1249 55.7007 54.0353 55.7675 53.9402 55.8255L53.6724 56.0071L34.3061 69.0602C34.1479 69.1683 33.9612 69.2253 33.7706 69.2236H33.5743C33.447 69.1967 33.3262 69.1443 33.2189 69.0695C33.1117 68.9947 33.0201 68.899 32.9495 68.7879C32.9495 68.7879 32.5033 67.9891 32.4676 67.9347V67.7531V67.6623V67.5534V67.4263V67.2811C31.7014 65.262 31.6378 63.0371 32.2872 60.9761C32.9366 58.9152 34.2601 57.1424 36.0375 55.9526L45.0691 49.8708C45.2101 49.7754 45.3201 49.6398 45.3853 49.4809C45.4505 49.322 45.4679 49.147 45.4355 48.9781C45.403 48.8091 45.3221 48.6537 45.2029 48.5315C45.0837 48.4093 44.9316 48.3257 44.7657 48.2913L34.1633 46.1128H33.8599H33.7706H33.485H33.1816H33.0567H32.896H32.8068L32.5212 46.0038H32.4319H32.2534L31.9679 45.8586L31.6823 45.7134L31.4145 45.55L31.1468 45.3866C30.3041 44.8521 29.5509 44.1841 28.9156 43.4077L28.6836 43.0809L28.4159 42.6634C27.73 41.6278 27.255 40.4629 27.0189 39.2375C26.7828 38.012 26.7905 36.751 27.0415 35.5286C27.228 34.6884 27.5221 33.8766 27.9161 33.1141C28.0232 32.9144 28.1124 32.7328 28.2195 32.5694L28.3802 32.3153C28.4948 32.1207 28.6199 31.9329 28.755 31.7525L28.9156 31.5528L29.112 31.3167L29.3083 31.0989L29.4333 30.9718L29.6475 30.754L29.8259 30.5906L30.0223 30.4272L30.2365 30.2456H30.3257L30.4685 30.1185H30.5578L30.7898 29.9551L50.049 16.9746C50.1725 16.8912 50.3113 16.8338 50.457 16.806C50.6027 16.7782 50.7524 16.7804 50.8973 16.8126C51.0421 16.8448 51.1791 16.9062 51.3002 16.9933C51.4212 17.0804 51.5238 17.1913 51.6019 17.3195L51.7626 17.5918L51.8875 17.846C51.8875 17.9368 51.9768 18.0094 52.0125 18.082C52.0125 18.082 52.0125 18.082 52.0125 18.191C52.0239 18.2325 52.0239 18.2765 52.0125 18.318L52.1195 18.5904C52.1292 18.6383 52.1292 18.6877 52.1195 18.7356C52.1195 18.7356 52.1195 18.7356 52.1195 18.8445C52.8288 20.8305 52.8625 23.0011 52.2153 25.0089C51.5681 27.0166 50.2774 28.7455 48.5497 29.9188L39.6251 35.9462C39.4842 36.0415 39.3742 36.1772 39.309 36.3361C39.2438 36.495 39.2263 36.6699 39.2588 36.8389C39.2912 37.0078 39.3722 37.1632 39.4914 37.2854C39.6106 37.4077 39.7627 37.4912 39.9286 37.5256L50.4417 39.686C52.5458 40.1281 54.4361 41.2935 55.7948 42.9862C57.1536 44.679 57.8979 46.796 57.9027 48.9812C57.5635 48.4003 57.5278 48.9812 57.5278 48.9812V49.0175Z",fill:"url(#paint0_linear_619_170)"})),section:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M21 15V19C21 20.1046 20.1046 21 19 21H5C3.89543 21 3 20.1046 3 19L3 15M21 15L3 15M21 15V9M3 15L3 9M21 9V5C21 3.89543 20.1046 3 19 3L5 3C3.89543 3 3 3.89543 3 5L3 9M21 9L3 9",fill:Ww,stroke:Yw,strokeWidth:1.4})),buttons:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 17.5H17M7 6.5H17M5 10H19C20.1046 10 21 9.10457 21 8V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V8C3 9.10457 3.89543 10 5 10ZM5 21H19C20.1046 21 21 20.1046 21 19V16C21 14.8954 20.1046 14 19 14H5C3.89543 14 3 14.8954 3 16V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),buttons_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 11.5H17M5 15H19C20.1046 15 21 14.1046 21 13V10C21 8.89543 20.1046 8 19 8H5C3.89543 8 3 8.89543 3 10V13C3 14.1046 3.89543 15 5 15Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),advanced_heading:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M8 7V12.8333M8 12.8333V17M8 12.8333H16M16 12.8333V7M16 12.8333V17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),google_map:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M9 3.00002L4.10557 5.44723C3.428 5.78601 3 6.47854 3 7.23608V20.382C3 21.1254 3.78231 21.6089 4.44721 21.2764L9 19M9 3.00002L15 5.00002M9 3.00002V19M9 19L15 21M15 5.00002L19.5528 2.72362C20.2177 2.39117 21 2.87467 21 3.61805V16.7639C21 17.5215 20.572 18.214 19.8944 18.5528L15 21M15 5.00002V21",fill:Ww,stroke:Yw,strokeWidth:1.4})),info_box:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 13H17M7 16.5H15.3333M9 8C9 8.55228 8.55228 9 8 9C7.44772 9 7 8.55228 7 8C7 7.44772 7.44772 7 8 7C8.55228 7 9 7.44772 9 8ZM5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),post_carousel:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M0 17C1.10457 17 2 16.1046 2 15V8C2 6.89543 1.10457 6 0 6M24 17C22.8954 17 22 16.1046 22 15V8C22 6.89543 22.8954 6 24 6M7 17H17C18.1046 17 19 16.1046 19 15V8C19 6.89543 18.1046 6 17 6H7C5.89543 6 5 6.89543 5 8V15C5 16.1046 5.89543 17 7 17Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M8 11H12.5M8 14H16",stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),post_masonry:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 14C3 12.8954 3.89543 12 5 12H8C9.10457 12 10 12.8954 10 14V21C10 22.1046 9.10457 23 8 23H5C3.89543 23 3 22.1046 3 21V14Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M14 3C14 1.89543 14.8954 1 16 1H19C20.1046 1 21 1.89543 21 3V10C21 11.1046 20.1046 12 19 12H16C14.8954 12 14 11.1046 14 10V3Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M14 18C14 16.8954 14.8954 16 16 16H19C20.1046 16 21 16.8954 21 18V21C21 22.1046 20.1046 23 19 23H16C14.8954 23 14 22.1046 14 21V18Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M3 3C3 1.89543 3.89543 1 5 1H8C9.10457 1 10 1.89543 10 3V6C10 7.10457 9.10457 8 8 8H5C3.89543 8 3 7.10457 3 6V3Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),post_grid:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 16C3 14.8954 3.89543 14 5 14H8C9.10457 14 10 14.8954 10 16V19C10 20.1046 9.10457 21 8 21H5C3.89543 21 3 20.1046 3 19V16Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M14 16C14 14.8954 14.8954 14 16 14H19C20.1046 14 21 14.8954 21 16V19C21 20.1046 20.1046 21 19 21H16C14.8954 21 14 20.1046 14 19V16Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H8C9.10457 3 10 3.89543 10 5V8C10 9.10457 9.10457 10 8 10H5C3.89543 10 3 9.10457 3 8V5Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M14 5C14 3.89543 14.8954 3 16 3H19C20.1046 3 21 3.89543 21 5V8C21 9.10457 20.1046 10 19 10H16C14.8954 10 14 9.10457 14 8V5Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),testimonial:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M15.5 9.42857C15.5 10.2175 14.903 10.8571 14.1667 10.8571C13.4303 10.8571 12.8333 10.2175 12.8333 9.42857C12.8333 8.63959 13.4303 8 14.1667 8C14.903 8 15.5 8.63959 15.5 9.42857ZM15.5 9.42857C15.5 9.42857 15.5 11.5714 13.5 13M11.1667 9.42857C11.1667 10.2175 10.5697 10.8571 9.83333 10.8571C9.09695 10.8571 8.5 10.2175 8.5 9.42857C8.5 8.63959 9.09695 8 9.83333 8C10.5697 8 11.1667 8.63959 11.1667 9.42857ZM11.1667 9.42857C11.1667 9.42857 11.1667 11.5714 9.16667 13M12 21L14.4142 18.5858C14.7893 18.2107 15.298 18 15.8284 18H19C20.1046 18 21 17.1046 21 16V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H8.17157C8.70201 18 9.21071 18.2107 9.58579 18.5858L12 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),cf7_styler:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M4.51555 17C6.13007 19.412 8.87958 21 12 21C15.1204 21 17.8699 19.412 19.4845 17M4.51555 17C3.55827 15.5699 3 13.8501 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12C21 13.8501 20.4417 15.5699 19.4845 17M4.51555 17C5.75777 17 7.12889 15 8.43944 13M19.4845 17C18.2422 17 16.8711 15 15.5606 13M8.43944 13C9.75 11 11 9 12 9C13 9 14.25 11 15.5606 13M8.43944 13L9.09522 14.2607C9.47211 14.9852 10.5116 14.9769 10.8768 14.2464L11.3795 13.241C11.6848 12.6305 12.4984 12.4984 12.9811 12.9811L13.4309 13.4309C13.7632 13.7632 14.282 13.8193 14.6776 13.5658L15.5606 13",fill:Ww,stroke:Yw,strokeWidth:1.4})),gf_styler:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M17 12V15H7L6.99998 12.9996C6.99998 10.7905 8.79083 9.00001 10.9999 9.00001H17.5M3.33984 8.71466V15.2854C3.33984 16.0317 3.75541 16.7159 4.41768 17.0601L11.0779 20.5208C11.656 20.8212 12.3442 20.8212 12.9223 20.5208L19.5825 17.0601C20.2448 16.7159 20.6604 16.0317 20.6604 15.2854V8.71466C20.6604 7.96832 20.2448 7.28407 19.5825 6.93995L12.9223 3.47918C12.3442 3.1788 11.656 3.1788 11.0779 3.47918L4.41768 6.93995C3.75541 7.28407 3.33984 7.96832 3.33984 8.71466Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),content_timeline:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12.0001 3V7M12.0001 21V17M12.0001 7H15.0001M12.0001 7V12M15.0001 7C15.0001 8.10457 15.8954 9 17 9H19C20.1046 9 21 8.10457 21 7C21 5.89543 20.1046 5 19 5H17C15.8954 5 15.0001 5.89543 15.0001 7ZM12.0001 12H9M12.0001 12V17M9 12C9 13.1046 8.10457 14 7 14H5C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10H7C8.10457 10 9 10.8954 9 12ZM12.0001 17H15.0001M15.0001 17C15.0001 18.1046 15.8954 19 17 19H19C20.1046 19 21 18.1046 21 17C21 15.8954 20.1046 15 19 15H17C15.8954 15 15.0001 15.8954 15.0001 17Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),content_timeline_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M5.99993 3V7V12M5.99993 21V17V12M5.99993 12H9M9 12C9 13.1046 9.89543 14 11 14H16C17.1046 14 18 13.1046 18 12C18 10.8954 17.1046 10 16 10H11C9.89543 10 9 10.8954 9 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),call_to_action:(0,s.createElement)("svg",{width:40,height:40,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M16.4545 16.4545L14.6364 21L11 11L21 14.6364L16.4545 16.4545ZM16.4545 16.4545L21 21M9 16.9291C5.60771 16.4439 3 13.5265 3 10C3 6.13401 6.13401 3 10 3C13.5265 3 16.4439 5.60771 16.9291 9M8.5 12.5987C7.6033 12.0799 7 11.1104 7 10C7 8.34315 8.34315 7 10 7C11.1104 7 12.0799 7.6033 12.5987 8.5",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),post_timeline:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M4 3V6M4 6C2.89543 6 2 6.89543 2 8C2 9.10457 2.89543 10 4 10M4 6C5.10457 6 6 6.89543 6 8C6 9.10457 5.10457 10 4 10M4 10V14M4 14C2.89543 14 2 14.8954 2 16C2 17.1046 2.89543 18 4 18M4 14C5.10457 14 6 14.8954 6 16C6 17.1046 5.10457 18 4 18M4 18V21M11 18H19C20.1046 18 21 17.1046 21 16C21 14.8954 20.1046 14 19 14H11C9.89543 14 9 14.8954 9 16C9 17.1046 9.89543 18 11 18ZM11 10H19C20.1046 10 21 9.10457 21 8C21 6.89543 20.1046 6 19 6H11C9.89543 6 9 6.89543 9 8C9 9.10457 9.89543 10 11 10Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),icon_list:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M11 5H21M11 12H21M11 19H21",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M7 5C7 6.10457 6.10457 7 5 7C3.89543 7 3 6.10457 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M7 12C7 13.1046 6.10457 14 5 14C3.89543 14 3 13.1046 3 12C3 10.8954 3.89543 10 5 10C6.10457 10 7 10.8954 7 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M7 19C7 20.1046 6.10457 21 5 21C3.89543 21 3 20.1046 3 19C3 17.8954 3.89543 17 5 17C6.10457 17 7 17.8954 7 19Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),icon_list_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M11 5H21M13 11H21M13 16H21M13 20.5H21M7 5C7 6.10457 6.10457 7 5 7C3.89543 7 3 6.10457 3 5C3 3.89543 3.89543 3 5 3C6.10457 3 7 3.89543 7 5Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M9 11C9 11.5523 8.55228 12 8 12C7.44772 12 7 11.5523 7 11C7 10.4477 7.44772 10 8 10C8.55228 10 9 10.4477 9 11Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M9 16C9 16.5523 8.55228 17 8 17C7.44772 17 7 16.5523 7 16C7 15.4477 7.44772 15 8 15C8.55228 15 9 15.4477 9 16Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M9 20.5C9 21.0523 8.55228 21.5 8 21.5C7.44772 21.5 7 21.0523 7 20.5C7 19.9477 7.44772 19.5 8 19.5C8.55228 19.5 9 19.9477 9 20.5Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),team:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M17 20H22V18C22 16.3431 20.6569 15 19 15C18.0444 15 17.1931 15.4468 16.6438 16.1429M17 20H7M17 20V18C17 17.3438 16.8736 16.717 16.6438 16.1429M7 20H2V18C2 16.3431 3.34315 15 5 15C5.95561 15 6.80686 15.4468 7.35625 16.1429M7 20V18C7 17.3438 7.12642 16.717 7.35625 16.1429M7.35625 16.1429C8.0935 14.301 9.89482 13 12 13C14.1052 13 15.9065 14.301 16.6438 16.1429M15 7C15 8.65685 13.6569 10 12 10C10.3431 10 9 8.65685 9 7C9 5.34315 10.3431 4 12 4C13.6569 4 15 5.34315 15 7ZM21 10C21 11.1046 20.1046 12 19 12C17.8954 12 17 11.1046 17 10C17 8.89543 17.8954 8 19 8C20.1046 8 21 8.89543 21 10ZM7 10C7 11.1046 6.10457 12 5 12C3.89543 12 3 11.1046 3 10C3 8.89543 3.89543 8 5 8C6.10457 8 7 8.89543 7 10Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),tabs:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M10 3V6C10 7.10457 10.8954 8 12 8H15.5M15.5 8H21M15.5 8V3M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),tabs_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12 3V8C12 9.10457 12.8954 10 14 10H16.5H21M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),social_share:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M9 12C9 13.1046 8.10457 14 7 14C5.89543 14 5 13.1046 5 12C5 10.8954 5.89543 10 7 10C8.10457 10 9 10.8954 9 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M19 6C19 7.10457 18.1046 8 17 8C15.8954 8 15 7.10457 15 6C15 4.89543 15.8954 4 17 4C18.1046 4 19 4.89543 19 6Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M19 18C19 19.1046 18.1046 20 17 20C15.8954 20 15 19.1046 15 18C15 16.8954 15.8954 16 17 16C18.1046 16 19 16.8954 19 18Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M9 10.5L15 7M9 13.5L15 17",fill:Ww,stroke:Yw,strokeWidth:1.4})),social_share_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M9 10.5L15 7M9 13.5L15 17M21 18C21 19.6569 19.6569 21 18 21C16.3431 21 15 19.6569 15 18C15 16.3431 16.3431 15 18 15C19.6569 15 21 16.3431 21 18ZM9 12C9 13.1046 8.10457 14 7 14C5.89543 14 5 13.1046 5 12C5 10.8954 5.89543 10 7 10C8.10457 10 9 10.8954 9 12ZM19 6C19 7.10457 18.1046 8 17 8C15.8954 8 15 7.10457 15 6C15 4.89543 15.8954 4 17 4C18.1046 4 19 4.89543 19 6Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),restaurant_menu:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M17.7472 5.05554C17.5824 4.84998 17.3481 4.68976 17.074 4.59515C16.8912 4.53203 16.696 4.5 16.5 4.5M16.5 4.5C16.4022 4.5 16.3042 4.50797 16.2074 4.52402C15.9164 4.57225 15.6491 4.6913 15.4393 4.86612C15.2296 5.04093 15.0867 5.26366 15.0288 5.50614C14.9709 5.74861 15.0006 5.99995 15.1142 6.22835C15.2277 6.45676 15.42 6.65199 15.6666 6.78934C15.9133 6.92669 16.2033 7 16.5 7C16.7967 7 17.0867 7.07331 17.3334 7.21066C17.58 7.34802 17.7723 7.54324 17.8858 7.77165C17.9994 8.00005 18.0291 8.25139 17.9712 8.49386C17.9133 8.73634 17.7704 8.95907 17.5607 9.13388C17.3509 9.3087 17.0836 9.42775 16.7926 9.47598C16.6958 9.49203 16.5978 9.5 16.5 9.5M16.5 4.5V4M15.2528 8.94446C15.4176 9.15003 15.6519 9.31024 15.926 9.40485C16.1088 9.46797 16.304 9.5 16.5 9.5M16.5 9.5V10",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M17.7472 15.0555C17.5824 14.85 17.3481 14.6898 17.074 14.5952C16.8912 14.532 16.696 14.5 16.5 14.5M16.5 14.5C16.4022 14.5 16.3042 14.508 16.2074 14.524C15.9164 14.5723 15.6491 14.6913 15.4393 14.8661C15.2296 15.0409 15.0867 15.2637 15.0288 15.5061C14.9709 15.7486 15.0006 15.9999 15.1142 16.2284C15.2277 16.4568 15.42 16.652 15.6666 16.7893C15.9133 16.9267 16.2033 17 16.5 17C16.7967 17 17.0867 17.0733 17.3334 17.2107C17.58 17.348 17.7723 17.5432 17.8858 17.7716C17.9994 18.0001 18.0291 18.2514 17.9712 18.4939C17.9133 18.7363 17.7704 18.9591 17.5607 19.1339C17.3509 19.3087 17.0836 19.4278 16.7926 19.476C16.6958 19.492 16.5978 19.5 16.5 19.5M16.5 14.5V14M15.2528 18.9445C15.4176 19.15 15.6519 19.3102 15.926 19.4049C16.1088 19.468 16.304 19.5 16.5 19.5M16.5 19.5V20",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M6 5H12M6 15H12M6 8H9M6 18H9",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M3 3C3 1.89543 3.89543 1 5 1H19C20.1046 1 21 1.89543 21 3V21C21 22.1046 20.1046 23 19 23H5C3.89543 23 3 22.1046 3 21V3Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),restaurant_menu_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M20.6208 8.58331C20.3736 8.27496 20.0222 8.03464 19.611 7.89273C19.3367 7.79804 19.0441 7.75 18.75 7.75M18.75 7.75C18.6033 7.75 18.4563 7.76195 18.311 7.78603C17.8746 7.85838 17.4737 8.03695 17.159 8.29918C16.8443 8.5614 16.6301 8.89549 16.5432 9.25921C16.4564 9.62292 16.501 9.99992 16.6713 10.3425C16.8416 10.6851 17.13 10.978 17.5 11.184C17.87 11.39 18.305 11.5 18.75 11.5C19.195 11.5 19.63 11.61 20 11.816C20.37 12.022 20.6584 12.3149 20.8287 12.6575C20.999 13.0001 21.0436 13.3771 20.9568 13.7408C20.8699 14.1045 20.6557 14.4386 20.341 14.7008C20.0263 14.963 19.6254 15.1416 19.189 15.214C19.0437 15.2381 18.8967 15.25 18.75 15.25M18.75 7.75V7M16.8792 14.4167C17.1264 14.725 17.4778 14.9654 17.889 15.1073C18.1633 15.202 18.4559 15.25 18.75 15.25M18.75 15.25V16M3 9.5H12M3 13H7.5M3 3H20.9568M3 21H20.9568",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),blockquote:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 7H17M7 11H9M17 11.8571C17 12.3305 16.6418 12.7143 16.2 12.7143C15.7582 12.7143 15.4 12.3305 15.4 11.8571C15.4 11.3838 15.7582 11 16.2 11C16.6418 11 17 11.3838 17 11.8571ZM17 11.8571C17 11.8571 17 13.1429 15.8 14M13.6 11.8571C13.6 12.3305 13.2418 12.7143 12.8 12.7143C12.3582 12.7143 12 12.3305 12 11.8571C12 11.3838 12.3582 11 12.8 11C13.2418 11 13.6 11.3838 13.6 11.8571ZM13.6 11.8571C13.6 11.8571 13.6 13.1429 12.4 14M3 21V5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V16C21 17.1046 20.1046 18 19 18H7.66667C7.23393 18 6.81286 18.1404 6.46667 18.4L3 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),columns:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M15 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H15M15 3V21M15 3H9M15 21H9M9 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H9M9 3V21",fill:Ww,stroke:Yw,strokeWidth:1.4})),column:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H10C11.1046 3 12 3.89543 12 5V19C12 20.1046 11.1046 21 10 21H5C3.89543 21 3 20.1046 3 19V5Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M15 3H19C20.1046 3 21 3.89543 21 5V19C21 20.1046 20.1046 21 19 21H15",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeDasharray:1.4})),marketing_button:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 20.9895H17M4 16.9895H20",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M10 7H19M3 11H21C22.1046 11 23 10.1046 23 9V5C23 3.89543 22.1046 3 21 3H3C1.89543 3 1 3.89543 1 5V9C1 10.1046 1.89543 11 3 11ZM7 7C7 7.55228 6.55228 8 6 8C5.44772 8 5 7.55228 5 7C5 6.44772 5.44772 6 6 6C6.55228 6 7 6.44772 7 7Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),table_of_contents:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 16H13M7 12H15.3333M7 8H17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),faq:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M9.00006 9C9.50006 8 10.5001 7 12.0001 7C13.5002 7 15.0001 8.5 15.0001 10C15.0001 11.4553 14.0588 12.4399 13.0843 12.8686C13.0248 12.8948 12.9619 12.9116 12.8992 12.9285C12.4001 13.0627 12.0001 13.4804 12.0001 14M12.0001 17H12.0101M21.0001 12C21.0001 16.9706 16.9706 21 12.0001 21C10.5124 21 9.1091 20.6391 7.87286 20C7.19356 19.6488 3.56466 21.5054 3 21C2.43678 20.4959 4.93748 17.6302 4.51561 17C3.55833 15.5699 3.00006 13.8501 3.00006 12C3.00006 7.02944 7.0295 3 12.0001 3C16.9706 3 21.0001 7.02944 21.0001 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),faq_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12.0067 10.2C12.34 9.6 13.0067 9 14.0067 9C15.0067 9 16.0067 9.9 16.0067 10.8C16.0067 11.6628 15.394 12.2498 14.7527 12.5118C14.6977 12.5343 14.6397 12.5477 14.5824 12.5632C14.2608 12.6496 14.0067 12.8957 14.0067 13.2M14.0067 15H14.0133M11.0002 15H11.0069M8.00017 15H8.00684M21.0001 12C21.0001 16.9706 16.9706 21 12.0001 21C10.5124 21 9.1091 20.6391 7.87286 20C7.19356 19.6488 3.56466 21.5054 3 21C2.43678 20.4959 4.93748 17.6302 4.51561 17C3.55833 15.5699 3.00006 13.8501 3.00006 12C3.00006 7.02944 7.0295 3 12.0001 3C16.9706 3 21.0001 7.02944 21.0001 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),forms:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 10H17M7 7H10.5M9 17H15M7 13H17M13.5 7H17M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),how_to:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M13 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21H19C20.1046 21 21 20.1046 21 19V11M13 3L21 11M13 3V9C13 10.1046 13.8954 11 15 11H21M10 11H17M10 7H13M10 15H17M7 7H7.1M7 11H7.1M7 15H7.1",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),how_to_step:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M14 12C14 13.1046 13.1046 14 12 14C10.8954 14 10 13.1046 10 12C10 10.8954 10.8954 10 12 10C13.1046 10 14 10.8954 14 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M23 12C23 13.1046 22.1046 14 21 14C19.8954 14 19 13.1046 19 12C19 10.8954 19.8954 10 21 10C22.1046 10 23 10.8954 23 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M5 12C5 13.1046 4.10457 14 3 14C1.89543 14 1 13.1046 1 12C1 10.8954 1.89543 10 3 10C4.10457 10 5 10.8954 5 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M7.5 12H7.6",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"}),(0,s.createElement)("path",{d:"M16.5 12H16.6",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),inline_notice:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 21H21M3 3H21M10 12H19M3 17H21C22.1046 17 23 16.1046 23 15V9C23 7.89543 22.1046 7 21 7H3C1.89543 7 1 7.89543 1 9V15C1 16.1046 1.89543 17 3 17ZM7 12C7 12.5523 6.55228 13 6 13C5.44772 13 5 12.5523 5 12C5 11.4477 5.44772 11 6 11C6.55228 11 7 11.4477 7 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),wp_search:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 21L9 15M7 10C7 13.866 10.134 17 14 17C17.866 17 21 13.866 21 10C21 6.13401 17.866 3 14 3C10.134 3 7 6.13401 7 10Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),taxonomy_list:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M10 16H17M10 12H15M10 8H17M6.98999 8H6.99999M6.98999 12H6.99999M6.98999 16H6.99999M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),review:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 10.5H17M9.5 7H9.51M6.99 7H7M12 7H12.01M7 14H14M12 21L14.4142 18.5858C14.7893 18.2107 15.298 18 15.8284 18H19C20.1046 18 21 17.1046 21 16V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V16C3 17.1046 3.89543 18 5 18H8.17157C8.70201 18 9.21071 18.2107 9.58579 18.5858L12 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),lottie:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7 17C7 17 12 17.5 12 12C12 6.5 17 7 17 7M5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),accept:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M20 12H12M4 12L5.66667 14L9 10M3 17H21C22.1046 17 23 16.1046 23 15V9C23 7.89543 22.1046 7 21 7H3C1.89543 7 1 7.89543 1 9V15C1 16.1046 1.89543 17 3 17Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),checkbox:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M8 12L10.6667 15L16 9M5.77778 20H18.2222C19.2041 20 20 18.9767 20 17.7143V6.28571C20 5.02335 19.2041 4 18.2222 4H5.77778C4.79594 4 4 5.02335 4 6.28571V17.7143C4 18.9767 4.79594 20 5.77778 20Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),datepicker:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M8 7V3M16 7V3M8 13H8.1M11.9 13H12M16 13H16.1M5 21H19C20.1046 21 21 20.1046 21 19V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),email:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 8L10.8906 13.2604C11.5624 13.7083 12.4376 13.7083 13.1094 13.2604L21 8M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),hidden:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3.00024 3L6.5894 6.58916M21.0002 21L17.4114 17.4112M13.8751 18.8246C13.268 18.9398 12.6414 19 12.0007 19C7.52305 19 3.73275 16.0571 2.4585 12C2.80539 10.8955 3.33875 9.87361 4.02168 8.97118M9.87892 9.87868C10.4218 9.33579 11.1718 9 12.0002 9C13.6571 9 15.0002 10.3431 15.0002 12C15.0002 12.8284 14.6645 13.5784 14.1216 14.1213M9.87892 9.87868L14.1216 14.1213M9.87892 9.87868L6.5894 6.58916M14.1216 14.1213L6.5894 6.58916M14.1216 14.1213L17.4114 17.4112M6.5894 6.58916C8.14922 5.58354 10.0068 5 12.0007 5C16.4783 5 20.2686 7.94291 21.5429 12C20.836 14.2507 19.3548 16.1585 17.4114 17.4112",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),name:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M18 9H13M13 12H17M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19ZM7 14H9C9.55228 14 10 13.5523 10 13V9C10 8.44772 9.55228 8 9 8H7C6.44772 8 6 8.44772 6 9V13C6 13.5523 6.44772 14 7 14Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),phone:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H8.27924C8.70967 3 9.09181 3.27543 9.22792 3.68377L10.7257 8.17721C10.8831 8.64932 10.6694 9.16531 10.2243 9.38787L7.96701 10.5165C9.06925 12.9612 11.0388 14.9308 13.4835 16.033L14.6121 13.7757C14.8347 13.3306 15.3507 13.1169 15.8228 13.2743L20.3162 14.7721C20.7246 14.9082 21 15.2903 21 15.7208V19C21 20.1046 20.1046 21 19 21H18C9.71573 21 3 14.2843 3 6V5Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),radio:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12 7H22M12 17H22M8 7C8 8.65685 6.65685 10 5 10C3.34315 10 2 8.65685 2 7C2 5.34315 3.34315 4 5 4C6.65685 4 8 5.34315 8 7ZM8 17C8 18.6569 6.65685 20 5 20C3.34315 20 2 18.6569 2 17C2 15.3431 3.34315 14 5 14C6.65685 14 8 15.3431 8 17ZM5.5 7C5.5 7.27614 5.27614 7.5 5 7.5C4.72386 7.5 4.5 7.27614 4.5 7C4.5 6.72386 4.72386 6.5 5 6.5C5.27614 6.5 5.5 6.72386 5.5 7Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),select:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M5 17H17M5 14H19M4 9H20C21.1046 9 22 8.10457 22 7V5C22 3.89543 21.1046 3 20 3H4C2.89543 3 2 3.89543 2 5V7C2 8.10457 2.89543 9 4 9ZM4 21H20C21.1046 21 22 20.1046 22 19V12C22 10.8954 21.1046 10 20 10H4C2.89543 10 2 10.8954 2 12V19C2 20.1046 2.89543 21 4 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),textarea:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M15.5 16L18 13.5M18.5 16.5L18.6 16.4M5 19H19C20.1046 19 21 18.1046 21 17V7C21 5.89543 20.1046 5 19 5H5C3.89543 5 3 5.89543 3 7V17C3 18.1046 3.89543 19 5 19Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),toggle:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M2 12C2 8.68629 4.68629 6 8 6H16C19.3137 6 22 8.68629 22 12V12C22 15.3137 19.3137 18 16 18H8C4.68629 18 2 15.3137 2 12V12Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M20 12C20 14.2091 18.2091 16 16 16C13.7909 16 12 14.2091 12 12C12 9.79086 13.7909 8 16 8C18.2091 8 20 9.79086 20 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),url:(0,s.createElement)("svg",{width:24,height:24,role:"img",viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M13.8284 10.1716C12.2663 8.60948 9.73367 8.60948 8.17157 10.1716L4.17157 14.1716C2.60948 15.7337 2.60948 18.2663 4.17157 19.8284C5.73367 21.3905 8.26633 21.3905 9.82843 19.8284L10.93 18.7269M10.1716 13.8284C11.7337 15.3905 14.2663 15.3905 15.8284 13.8284L19.8284 9.82843C21.3905 8.26633 21.3905 5.73367 19.8284 4.17157C18.2663 2.60948 15.7337 2.60948 14.1716 4.17157L13.072 5.27118",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),star_rating:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M11.103 7.81696C11.4698 7.07371 12.5297 7.07371 12.8965 7.81696L13.8243 9.69697C13.97 9.99211 14.2516 10.1967 14.5773 10.244L16.652 10.5455C17.4722 10.6647 17.7997 11.6726 17.2062 12.2512L15.7049 13.7146C15.4692 13.9443 15.3617 14.2753 15.4173 14.5997L15.7717 16.666C15.9118 17.4829 15.0544 18.1059 14.3208 17.7202L12.4651 16.7446C12.1738 16.5915 11.8257 16.5915 11.5344 16.7446L9.67874 17.7202C8.94511 18.1059 8.08768 17.4829 8.22779 16.666L8.58219 14.5997C8.63783 14.2753 8.53028 13.9443 8.29459 13.7146L6.79332 12.2512C6.1998 11.6726 6.52731 10.6647 7.34753 10.5455L9.42225 10.244C9.74796 10.1967 10.0295 9.99211 10.1752 9.69697L11.103 7.81696Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M18.4424 14.106L20.1846 14.8943C21.0283 15.2761 21.9613 14.5667 21.7842 13.6782L21.6155 12.8313C21.5377 12.4411 21.6806 12.0403 21.99 11.7808L22.6034 11.2662C23.3499 10.6399 22.9822 9.44941 22.0043 9.32712L20.8958 9.18848C20.5373 9.14365 20.2219 8.93603 20.0458 8.62895L19.4377 7.56859C19.003 6.81047 17.8817 6.81047 17.447 7.56859L16.559 9.11719M5.55765 14.106L3.8154 14.8943C2.97172 15.2761 2.0387 14.5667 2.21577 13.6782L2.38454 12.8313C2.46229 12.4411 2.3194 12.0403 2.01002 11.7808L1.39664 11.2662C0.650069 10.6399 1.01784 9.44941 1.99569 9.32712L3.1042 9.18848C3.46273 9.14365 3.77814 8.93603 3.95423 8.62895L4.56227 7.56859C4.997 6.81047 6.11829 6.81047 6.55302 7.56859L7.44104 9.11719",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),container:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 16C3 14.8954 3.89543 14 5 14H8C9.10457 14 10 14.8954 10 16V19C10 20.1046 9.10457 21 8 21H5C3.89543 21 3 20.1046 3 19V16Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M14 16C14 14.8954 14.8954 14 16 14H19C20.1046 14 21 14.8954 21 16V19C21 20.1046 20.1046 21 19 21H16C14.8954 21 14 20.1046 14 19V16Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M3 5C3 3.89543 3.89543 3 5 3H19C20.1046 3 21 3.89543 21 5V8C21 9.10457 20.1046 10 19 10H5C3.89543 10 3 9.10457 3 8V5Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),image:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 17L7.41995 12.58C8.26284 11.7372 9.65125 11.8141 10.3959 12.7449L11.789 14.4863C12.4639 15.3298 13.6866 15.4851 14.5508 14.8369L15.6123 14.0408C16.4086 13.4436 17.5228 13.5228 18.2265 14.2265L21 17M17 8C17 8.55228 16.5523 9 16 9C15.4477 9 15 8.55228 15 8C15 7.44772 15.4477 7 16 7C16.5523 7 17 7.44772 17 8ZM5 21H19C20.1046 21 21 20.1046 21 19V5C21 3.89543 20.1046 3 19 3H5C3.89543 3 3 3.89543 3 5V19C3 20.1046 3.89543 21 5 21Z",fill:Ww,stroke:Yw,strokeWidth:1.4})),image_gallery:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M3 8.5V5C3 3.89543 3.89543 3 5 3H8.5C9.60457 3 10.5 3.89543 10.5 5V8.5M3 8.5C3 9.60457 3.89543 10.5 5 10.5H8.5C9.60457 10.5 10.5 9.60457 10.5 8.5M3 8.5L4.94679 6.87767C5.58153 6.34873 6.47618 6.26455 7.19844 6.6658L10.5 8.5M13.5 8.5V5C13.5 3.89543 14.3954 3 15.5 3H19C20.1046 3 21 3.89543 21 5V8.5M13.5 8.5C13.5 9.60457 14.3954 10.5 15.5 10.5H19C20.1046 10.5 21 9.60457 21 8.5M13.5 8.5L15.4468 6.87767C16.0815 6.34873 16.9762 6.26455 17.6984 6.6658L21 8.5M3 19V15.5C3 14.3954 3.89543 13.5 5 13.5H8.5C9.60457 13.5 10.5 14.3954 10.5 15.5V19M3 19C3 20.1046 3.89543 21 5 21H8.5C9.60457 21 10.5 20.1046 10.5 19M3 19L4.94679 17.3777C5.58153 16.8487 6.47618 16.7645 7.19844 17.1658L10.5 19M13.5 19V15.5C13.5 14.3954 14.3954 13.5 15.5 13.5H19C20.1046 13.5 21 14.3954 21 15.5V19M13.5 19C13.5 20.1046 14.3954 21 15.5 21H19C20.1046 21 21 20.1046 21 19M13.5 19L15.4468 17.3777C16.0815 16.8487 16.9762 16.7645 17.6984 17.1658L21 19",fill:Ww,stroke:Yw,strokeWidth:1.4})),counter:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M1 10.5L3 9.5V16.5M5.5 11C5.66667 10.5 6.3 9.5 7.5 9.5C9 9.5 9.5 10.5 9.5 11C9.5 13.0707 7 15 5.5 16.5H9.7M11.5 10.5C11.6667 10.1667 12.3 9.2 13.5 9.2C14.7 9.2 15.7 10 15.7 11C15.7 12 14.2 13 13 13C14 13 16.2469 13 16 15C15.8742 16.0188 14.8107 16.7 13.5 16.7C13 16.7 12 16.5 11.5 15.5M20.5 18V6M20.5 6L18 8M20.5 6L23 8",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),countdown:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12 5.39514V3.16507M16.2269 6.58948L17.8848 5.09796M9.69775 2.60654H14.3022M11.8872 13.4553H16.6079M20.0052 13.3886C20.0052 17.8099 16.4211 21.394 11.9999 21.394C7.57873 21.394 3.99463 17.8099 3.99463 13.3886C3.99463 8.96743 7.57873 5.38333 11.9999 5.38333C16.4211 5.38333 20.0052 8.96743 20.0052 13.3886ZM12.327 13.3886C12.327 13.2081 12.1807 13.0618 12.0002 13.0618C11.8197 13.0618 11.6733 13.2081 11.6733 13.3886C11.6733 13.5692 11.8197 13.7155 12.0002 13.7155C12.1807 13.7155 12.327 13.5692 12.327 13.3886Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),modal:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("rect",{x:3,y:7.30975,width:15.033,height:11.7712,rx:2,fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M6.86572 11.6992H14.1675",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M6.86572 14.6918H14.1675",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M19.0982 4.51694L20.1633 5.58197M20.1633 5.58197L21.2283 6.647M20.1633 5.58197L19.0982 6.647M20.1633 5.58197L21.2283 4.51694",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),slider:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 26 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("rect",{x:5.4502,y:4.98621,width:15.0978,height:11.2249,rx:2,fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M9.19922 9.10217H16.501",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M9.19922 12.0948H16.501",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M15.9987 19.0138H16.0054M12.9922 19.0138H12.9989M9.99219 19.0138H9.99885",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M2.49658 9.69873L1.49658 10.5987L2.49658 11.4987",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M23.5034 11.4987L24.5034 10.5987L23.5034 9.69872",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),slider_child:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 26 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("rect",{x:5.4502,y:6.38751,width:15.0978,height:11.2249,rx:2,fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M9.19922 10.5035H16.501",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M9.19922 13.4962H16.501",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M2.49658 11.1L1.49658 12.0001L2.49658 12.9",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M23.5034 12.9L24.5034 12L23.5034 11.1",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),login:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M12 16L16 12M16 12L12 8M16 12L4 12M7 16V17C7 18.6569 8.34315 20 10 20H17C18.6569 20 20 18.6569 20 17V7C20 5.34315 18.6569 4 17 4H10C8.34315 4 7 5.34315 7 7V8",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),register:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M14 21H4C4 17.134 7.13401 14 11 14C12.0736 14 13.0907 14.2417 14 14.6736M17 15V18M17 18V21M17 18H14M17 18H20M15 7C15 9.20914 13.2091 11 11 11C8.79086 11 7 9.20914 7 7C7 4.79086 8.79086 3 11 3C13.2091 3 15 4.79086 15 7Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),password:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M15 7C16.1046 7 17 7.89543 17 9M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),rePassword:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M13 9C13 7.9 13.8954 7 15 7C16.1046 7 17 7.89543 17 9C17 10.1 16.1 11 15 11M15 11V10M15 11L16 11.5M21 9C21 12.3137 18.3137 15 15 15C14.3938 15 13.8087 14.9101 13.2571 14.7429L11 17H9V19H7V21H4C3.44772 21 3 20.5523 3 20V17.4142C3 17.149 3.10536 16.8946 3.29289 16.7071L9.25707 10.7429C9.08989 10.1914 9 9.60617 9 9C9 5.68629 11.6863 3 15 3C18.3137 3 21 5.68629 21 9Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),instagram_feed:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M17 6.5H17.1M8.14286 21H15.8571C18.6975 21 21 18.6975 21 15.8571V8.14286C21 5.30254 18.6975 3 15.8571 3H8.14286C5.30254 3 3 5.30254 3 8.14286V15.8571C3 18.6975 5.30254 21 8.14286 21ZM16 12C16 14.2091 14.2091 16 12 16C9.79086 16 8 14.2091 8 12C8 9.79086 9.79086 8 12 8C14.2091 8 16 9.79086 16 12Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),loop_builder:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("g",null,(0,s.createElement)("path",{d:"M3.35981 8.80578C5.11039 7.05892 7.94864 7.05892 9.69922 8.80578L12.8689 11.9687L9.69922 15.1317C7.94864 16.8785 5.11039 16.8785 3.35981 15.1317C1.60923 13.3848 1.60923 10.5526 3.35981 8.80578Z",fill:Ww,stroke:Yw,strokeWidth:1.4}),(0,s.createElement)("path",{d:"M22.2987 15.1942C20.5481 16.9411 17.7099 16.9411 15.9593 15.1942L12.7896 12.0313L15.9593 8.86831C17.7099 7.12146 20.5481 7.12146 22.2987 8.86831C24.0493 10.6152 24.0493 13.4474 22.2987 15.1942Z",fill:Ww,stroke:Yw,strokeWidth:1.4}))),loop_wrapper:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7.21733 14.2448C5.93905 14.2448 5.29991 14.2448 4.82713 13.9634C4.54096 13.7931 4.30185 13.554 4.13151 13.2678C3.8501 12.795 3.8501 12.1559 3.8501 10.8776V7.02072C3.8501 5.1351 3.8501 4.19229 4.43588 3.60651C5.02167 3.02072 5.96448 3.02072 7.8501 3.02072H11.707C12.9852 3.02072 13.6244 3.02072 14.0972 3.30214C14.3833 3.47248 14.6224 3.71158 14.7928 3.99775C15.0742 4.47053 15.0742 5.10967 15.0742 6.38795M14.584 20.9793H17.8081C19.6937 20.9793 20.6365 20.9793 21.2223 20.3935C21.8081 19.8077 21.8081 18.8649 21.8081 16.9793V13.7552C21.8081 11.8696 21.8081 10.9267 21.2223 10.341C20.6365 9.75517 19.6937 9.75517 17.8081 9.75517H14.584C12.6984 9.75517 11.7556 9.75517 11.1698 10.341C10.584 10.9267 10.584 11.8696 10.584 13.7552V16.9793C10.584 18.8649 10.584 19.8077 11.1698 20.3935C11.7556 20.9793 12.6984 20.9793 14.584 20.9793Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),popup_builder:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 25 25",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M7.18382 7.82229C7.1591 7.79676 6.49721 7.78045 5.55331 7.77579C4.45592 7.77038 3.57129 8.66533 3.57129 9.76272V20.3833C3.57129 21.4879 4.46672 22.3833 5.57129 22.3833H15.7129C16.8175 22.3833 17.7129 21.4879 17.7129 20.3833V17.8467M11.5659 7.36682H17.0951C17.6474 7.36682 18.0951 7.81454 18.0951 8.36682V13.8366M7.62451 5.35669V15.8467C7.62451 16.9513 8.51994 17.8467 9.62451 17.8467H20.0361C21.1407 17.8467 22.0361 16.9513 22.0361 15.8467V5.35669C22.0361 4.25212 21.1407 3.35669 20.0361 3.35669H9.62451C8.51994 3.35669 7.62451 4.25212 7.62451 5.35669Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round"})),post_title:(0,s.createElement)("svg",{width:20,height:20},(0,s.createElement)("path",{fill:Qw,d:"M19.31 0h-18.619c-0.381 0-0.691 0.309-0.691 0.691v18.619c0 0.382 0.309 0.691 0.691 0.691h18.619c0.382 0 0.691-0.309 0.691-0.691v-18.619c0-0.381-0.309-0.691-0.69-0.691v0zM18.62 6.206h-4.825v-4.825h4.825v4.825zM18.62 12.413h-4.825v-4.825h4.825v4.825zM1.381 7.588h4.825v4.825h-4.825v-4.825zM7.588 7.588h4.825v4.825h-4.825v-4.825zM12.413 1.381v4.825h-4.825v-4.825h4.825zM6.206 1.381v4.825h-4.825v-4.825h4.825zM1.381 13.794h4.825v4.826h-4.825v-4.826zM7.588 18.62v-4.826h4.825v4.826h-4.825zM13.794 18.62v-4.826h4.825v4.826h-4.825z"})),quote_1:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M15.581 10.226h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.458 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.37 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),(0,s.createElement)("path",{d:"M15.581 14.285h-15.162c-0.233 0-0.419 0.373-0.419 0.827 0 0.458 0.186 0.826 0.419 0.826h15.161c0.233 0 0.419-0.369 0.419-0.826 0.001-0.454-0.186-0.827-0.418-0.827v0z"}),(0,s.createElement)("path",{d:"M15.581 18.346h-15.162c-0.233 0-0.419 0.37-0.419 0.826 0 0.459 0.186 0.828 0.419 0.828h15.161c0.233 0 0.419-0.369 0.419-0.828 0.001-0.455-0.186-0.826-0.418-0.826v0z"}),(0,s.createElement)("path",{d:"M9.126 0.595c-0.46 0.465-0.974 1.35-0.835 3.042 0.081 1.319 0.666 3.29 3.048 5.216 0.112 0.090 0.241 0.136 0.38 0.136 0.183 0 0.362-0.086 0.487-0.251 0.214-0.283 0.164-0.683-0.113-0.902-1.935-1.566-2.458-3.105-2.551-4.154 0.274 0.156 0.582 0.258 0.913 0.258 1.045 0 1.89-0.886 1.89-1.972 0-1.088-0.846-1.966-1.89-1.966-0.233 0-0.451 0.062-0.657 0.143l0.004-0.011-0.218 0.101-0.018 0.011-0.007 0.006-0.299 0.214-0.134 0.131z"}),(0,s.createElement)("path",{d:"M4.517 0.595c-0.465 0.465-0.974 1.35-0.841 3.042 0.085 1.319 0.671 3.29 3.049 5.216 0.116 0.090 0.245 0.136 0.383 0.136 0.178 0 0.366-0.086 0.487-0.251 0.214-0.283 0.165-0.683-0.108-0.902-1.939-1.566-2.467-3.105-2.56-4.154 0.278 0.156 0.584 0.258 0.92 0.258 1.046 0 1.885-0.886 1.885-1.972 0-1.088-0.845-1.966-1.885-1.966-0.236 0-0.447 0.062-0.657 0.143l0.010-0.011-0.218 0.101-0.022 0.011-0.009 0.006-0.305 0.214-0.129 0.13z"})),quote_2:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M4.599 6.686c-0.39 0.397-0.822 1.149-0.705 2.586 0.068 1.123 0.561 2.799 2.561 4.434 0.096 0.080 0.205 0.115 0.321 0.115 0.153 0 0.306-0.071 0.409-0.214 0.181-0.239 0.135-0.58-0.095-0.766-1.626-1.332-2.066-2.639-2.144-3.531 0.231 0.132 0.488 0.218 0.769 0.218 0.874 0 1.587-0.753 1.587-1.677s-0.711-1.672-1.587-1.672c-0.196 0-0.38 0.054-0.552 0.121l0.003-0.010-0.184 0.085-0.016 0.010-0.006 0.006-0.252 0.181-0.109 0.114z"}),(0,s.createElement)("path",{d:"M0.725 6.686c-0.389 0.397-0.821 1.149-0.706 2.586 0.068 1.123 0.562 2.799 2.56 4.434 0.094 0.077 0.204 0.114 0.322 0.114 0.151 0 0.31-0.073 0.409-0.213 0.177-0.239 0.136-0.582-0.090-0.767-1.63-1.332-2.072-2.639-2.149-3.531 0.23 0.132 0.486 0.218 0.772 0.218 0.879 0 1.583-0.753 1.583-1.677s-0.71-1.672-1.583-1.672c-0.199 0-0.378 0.054-0.554 0.121l0.008-0.010-0.184 0.085-0.018 0.010-0.009 0.006-0.253 0.182-0.108 0.114z"}),(0,s.createElement)("path",{d:"M19.25 6.929h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),(0,s.createElement)("path",{d:"M19.25 10.75h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"}),(0,s.createElement)("path",{d:"M19.25 14.571h-10.041c-0.414 0-0.75-0.336-0.75-0.75s0.336-0.75 0.75-0.75h10.041c0.414 0 0.75 0.336 0.75 0.75s-0.336 0.75-0.75 0.75z"})),quote_inline_icon:(0,s.createElement)("svg",{width:20,height:20,viewBox:"0 0 32 32"},(0,s.createElement)("path",{d:"M7.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.357-0.056 0.724-0.086 1.097-0.086zM25.031 14c3.866 0 7 3.134 7 7s-3.134 7-7 7-7-3.134-7-7l-0.031-1c0-7.732 6.268-14 14-14v4c-2.671 0-5.182 1.040-7.071 2.929-0.364 0.364-0.695 0.751-0.995 1.157 0.358-0.056 0.724-0.086 1.097-0.086z"})),quote_tweet_icon:(0,s.createElement)("svg",{width:20,height:20,viewBox:"0 0 512 512"},(0,s.createElement)("path",{d:"M459.37 151.716c.325 4.548.325 9.097.325 13.645 0 138.72-105.583 298.558-298.558 298.558-59.452 0-114.68-17.219-161.137-47.106 8.447.974 16.568 1.299 25.34 1.299 49.055 0 94.213-16.568 130.274-44.832-46.132-.975-84.792-31.188-98.112-72.772 6.498.974 12.995 1.624 19.818 1.624 9.421 0 18.843-1.3 27.614-3.573-48.081-9.747-84.143-51.98-84.143-102.985v-1.299c13.969 7.797 30.214 12.67 47.431 13.319-28.264-18.843-46.781-51.005-46.781-87.391 0-19.492 5.197-37.36 14.294-52.954 51.655 63.675 129.3 105.258 216.365 109.807-1.624-7.797-2.599-15.918-2.599-24.04 0-57.828 46.782-104.934 104.934-104.934 30.213 0 57.502 12.67 76.67 33.137 23.715-4.548 46.456-13.32 66.599-25.34-7.798 24.366-24.366 44.833-46.132 57.827 21.117-2.273 41.584-8.122 60.426-16.243-14.292 20.791-32.161 39.308-52.628 54.253z"})),at_the_rate:(0,s.createElement)("svg",{width:30,height:30,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M5.605 17.2c0-2.131 0.499-4.074 1.499-5.829 1-1.754 2.395-3.136 4.19-4.15 1.794-1.013 3.81-1.52 6.046-1.52 2.712 0 4.901 0.773 6.562 2.323 1.662 1.549 2.493 3.589 2.493 6.118 0 2.051-0.542 3.786-1.626 5.202-1.088 1.418-2.304 2.125-3.656 2.125-0.781 0-1.355-0.232-1.717-0.696-0.365-0.462-0.533-1.037-0.506-1.726-1.006 1.614-2.378 2.422-4.11 2.422-1.39 0-2.507-0.539-3.347-1.619-0.842-1.077-1.142-2.442-0.904-4.088 0.237-1.65 0.946-2.982 2.125-4.002 1.179-1.021 2.509-1.53 3.992-1.53s2.638 0.518 3.467 1.558c0.829 1.040 1.122 2.322 0.883 3.843l-0.494 3.2c-0.094 0.739 0.165 1.11 0.77 1.11 0.77 0 1.502-0.56 2.205-1.678 0.701-1.12 1.054-2.493 1.054-4.122 0-2.106-0.656-3.787-1.966-5.046-1.312-1.258-3.133-1.886-5.462-1.886-2.794 0-5.098 0.96-6.91 2.88-1.814 1.92-2.722 4.29-2.722 7.109 0 2.382 0.738 4.227 2.214 5.533 1.477 1.302 3.459 1.989 5.947 2.056l-0.376 1.509c-2.862-0.069-5.184-0.899-6.971-2.494-1.787-1.594-2.68-3.794-2.68-6.602zM19.15 15.85c0.17-1.15-0.014-2.118-0.558-2.899-0.542-0.781-1.28-1.173-2.214-1.173-0.933 0-1.79 0.392-2.571 1.173s-1.259 1.749-1.43 2.899c-0.171 1.152 0.013 2.122 0.557 2.91 0.542 0.787 1.282 1.181 2.214 1.181s1.79-0.394 2.573-1.181c0.781-0.789 1.256-1.758 1.43-2.91z"})),top_align:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M1.5 0.438v2.125h17v-2.125h-17zM5.75 8.938h3.188v10.625h2.125v-10.625h3.187l-4.25-4.25-4.25 4.25z"})),middle_align:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M18.5 11.063v-2.125h-17v2.125h17z"}),(0,s.createElement)("path",{d:"M12.707 3.519l-2.707-2.707-2.707 2.707h2.030v4.368h1.354v-4.368h2.030z"}),(0,s.createElement)("path",{d:"M7.293 16.48l2.707 2.707 2.707-2.707h-2.030v-4.368h-1.354v4.368h-2.030z"})),bottom_align:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M18.5 20v-2.125h-17v2.125h17zM14.25 11.5h-3.187v-10.625h-2.125v10.625h-3.188l4.25 4.25 4.25-4.25z"})),carousel_left:(0,s.createElement)("svg",{width:20,height:20,viewBox:"0 0 256 512",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M31.7 239l136-136c9.4-9.4 24.6-9.4 33.9 0l22.6 22.6c9.4 9.4 9.4 24.6 0 33.9L127.9 256l96.4 96.4c9.4 9.4 9.4 24.6 0 33.9L201.7 409c-9.4 9.4-24.6 9.4-33.9 0l-136-136c-9.5-9.4-9.5-24.6-.1-34z"})),carousel_right:(0,s.createElement)("svg",{width:20,height:20,viewBox:"0 0 256 512",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M224.3 273l-136 136c-9.4 9.4-24.6 9.4-33.9 0l-22.6-22.6c-9.4-9.4-9.4-24.6 0-33.9l96.4-96.4-96.4-96.4c-9.4-9.4-9.4-24.6 0-33.9L54.3 103c9.4-9.4 24.6-9.4 33.9 0l136 136c9.5 9.4 9.5 24.6.1 34z"})),top_margin:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M17 0.984h-14c-1.103 0-2 0.897-2 2v0.797h18v-0.797c0-1.103-0.897-2-2-2z"})),bottom_margin:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 1c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17 0h-14c-1.657 0-3 1.343-3 3v14c0 1.656 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M3 19.016h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.103 0.897 2 2 2z"})),left_margin:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.656 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M0.984 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),right_margin:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M19.015 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.104 0 2-0.896 2-2z"})),vertical_spacing:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.657 0 3-1.343 3-3v-14c0-1.656-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M17 0.983h-14c-1.103 0-2 0.896-2 2v0.797h18v-0.797c0-1.103-0.896-2-2-2z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M3 19.031h14c1.103 0 2-0.896 2-2v-0.797h-18v0.797c0 1.104 0.896 2 2 2z"})),horizontal_spacing:(0,s.createElement)("svg",{width:20,height:20,className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:"#999",d:"M17 0.999c1.103 0 2 0.897 2 2v14c0 1.103-0.897 2-2 2h-14c-1.103 0-2-0.897-2-2v-14c0-1.103 0.897-2 2-2h14zM17-0.001h-14c-1.657 0-3 1.343-3 3v14c0 1.657 1.343 3 3 3h14c1.656 0 3-1.343 3-3v-14c0-1.657-1.343-3-3-3v0z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M19.016 16.999v-14c0-1.103-0.896-2-2-2h-0.797v18h0.797c1.103 0 2-0.896 2-2z"}),(0,s.createElement)("path",{fill:"#575E67",d:"M0.968 2.999v14c0 1.103 0.896 2 2 2h0.797v-18h-0.797c-1.104 0-2 0.897-2 2z"})),form1:(0,s.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M41.5,2.1H7.8C4,2.1,1,5.2,1,8.9v40.5c0,3.7,3,6.8,6.8,6.8h18.6v-3.4H7.8c-1.9,0-3.4-1.5-3.4-3.4V8.9c0-1.9,1.5-3.4,3.4-3.4h33.8c1.9,0,3.4,1.5,3.4,3.4v19.8l3.4-3.4V8.9C48.3,5.2,45.2,2.1,41.5,2.1z"}),(0,s.createElement)("path",{fill:Qw,d:"M38.1,15.6h-27v-3.4h27V15.6z"}),(0,s.createElement)("path",{fill:Qw,d:"M38.1,23h-27v-3.4h27V23z"}),(0,s.createElement)("path",{fill:Qw,d:"M35.2,29.6H13.5v-2.7h21.7V29.6z"}),(0,s.createElement)("path",{fill:Qw,d:"M35.2,35.4H13.5v-2.7h21.7V35.4z"}),(0,s.createElement)("path",{fill:Qw,d:"M35.2,27.8v6.3h-2.7v-6.3H35.2z"}),(0,s.createElement)("path",{fill:Qw,d:"M16.2,27.9v6.3h-2.7v-6.3H16.2z"}),(0,s.createElement)("path",{fill:Qw,d:"M43.4,31.9c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.7,0.4-1.2,1-1.4,1.8c-0.9-0.3-1.9-0.1-2.7,0.3c-0.4,0.4-0.8,0.7-1.1,1.3L31,34c-1.1-1.3-3-1.5-4.4-0.7c-0.8,0.6-1.4,1.4-1.5,2.4c-0.1,1,0.1,2,0.8,2.8l4,4.5c-0.7,0.3-1.2,0.6-1.8,1.2c-0.4,0.5-0.9,1.2-1,1.9c0,0.3,0.1,0.6,0.3,0.9l5.8,6.5c4.3,4.8,11.6,5.5,16.5,1.6c0.2-0.1,0.3-0.2,0.4-0.4c0.1-0.1,0.3-0.2,0.3-0.3c5-4.7,5.2-12.9,0.4-18.3l-3-3.4C46.7,31.4,44.8,31.1,43.4,31.9z M49.1,37.5c4,4.5,3.8,11.2-0.3,15.2c-0.3,0.2-0.4,0.4-0.7,0.6c-3.8,3.1-9.9,2.4-13.3-1.4l-5.3-6c0-0.2,0.1-0.2,0.2-0.3c0.3-0.3,0.7-0.5,1.3-0.6c0.5,0,0.9,0.2,1.2,0.6l4.1,4.6c0.4,0.5,1.1,0.5,1.6,0.1s0.5-1.1,0.1-1.6l-4.1-4.6l-1.1-1.3l-5.2-5.9c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.3-0.5,0.5-0.8c0.4-0.2,1.1-0.1,1.5,0.3l5.2,5.8l1.5,1.7c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-1.5-1.7c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8c0.5-0.3,1.1-0.1,1.5,0.3l0.7,0.8l0.7,0.8c0.4,0.5,1.1,0.5,1.6,0.1c0.5-0.4,0.5-1.1,0.1-1.6l-0.7-0.8c-0.2-0.3-0.4-0.6-0.3-1c0-0.3,0.2-0.6,0.5-0.8l0,0c0.5-0.3,1.1-0.1,1.5,0.3L49.1,37.5L49.1,37.5z"})),form2:(0,s.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M44.4,5.6H10.9c-4.1,0-7.4,3.3-7.4,7.4v33.5c0,4.1,3.3,7.4,7.4,7.4h15.4l3.7-1.9l-3.7-1.9H10.9c-2.1,0-3.7-1.7-3.7-3.7V13.1c0-2.1,1.7-3.7,3.7-3.7h33.5c2.1,0,3.7,1.7,3.7,3.7v30l0.1-0.1c0.4-2.3,1.7-4.4,3.6-5.7V13.1C51.9,9,48.5,5.6,44.4,5.6z"}),(0,s.createElement)("path",{fill:Qw,d:"M14.7,19.6h26.1v-3.7H14.7V19.6z"}),(0,s.createElement)("path",{fill:Qw,d:"M14.7,27h26.1v-3.7H14.7V27z"}),(0,s.createElement)("path",{fill:Qw,d:"M14.7,34.5h26.1v-3.7H14.7V34.5z"}),(0,s.createElement)("path",{fill:Qw,d:"M56.2,45l0-3.7c0-1-0.4-2-1.1-2.6c-0.7-0.7-1.6-1.1-2.6-1.1l-22.6,0.2c-1,0-4.6,0.5-5.3,1.1l-7.1,4.6l7.2,4.4c0,0,4.2,1,5.3,1l22.6-0.2C54.5,48.7,56.2,47,56.2,45z M29.9,47.1c-0.3,0-1.2-0.2-2.2-0.4l-0.1-6.8c0.8-0.1,1.7-0.2,2.2-0.2l17-0.2l0.1,7.4L29.9,47.1z"})),form3:(0,s.createElement)("svg",{width:20,height:20,role:"img",viewBox:"0 0 58 58",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M41.5,46.1h-27v-3.4h27V46.1z"}),(0,s.createElement)("path",{fill:Qw,d:"M20.7,26.3l10.1,10.1l21.2-21.2L41.8,5.1L20.7,26.3z M44.2,12.8c0.7,0.7,0.7,1.8,0,2.5L32,27.6c-0.3,0.4-0.8,0.5-1.3,0.5c-0.5,0-0.9-0.2-1.3-0.5c-0.7-0.7-0.7-1.8,0-2.5l12.3-12.3C42.4,12.1,43.5,12.1,44.2,12.8z"}),(0,s.createElement)("path",{fill:Qw,d:"M56,5.8l-4.8-4.8c-1.4-1.4-3.9-1.4-5.3,0l-1.6,1.6l10.1,10.1l1.5-1.5C57.4,9.7,57.4,7.3,56,5.8z"}),(0,s.createElement)("path",{fill:Qw,d:"M46.9,56.3H4.6c-1,0-1.8-0.8-1.8-1.8V9.7c0-1,0.8-1.8,1.8-1.8H33c1,0,1.8,0.8,1.8,1.8c0,1-0.8,1.8-1.8,1.8H6.5v41.1h40.4c1.4,0,2.6-1.2,2.6-2.6V26.9c0-1,0.8-1.8,1.8-1.8c1,0,1.8,0.8,1.8,1.8V50C53.2,53.5,50.4,56.3,46.9,56.3z"})),close:(0,s.createElement)("svg",{width:8,height:8,viewBox:"0 0 6 6",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M5.91683 0.5875L5.32933 0L3.00016 2.32917L0.670996 0L0.0834961 0.5875L2.41266 2.91667L0.0834961 5.24583L0.670996 5.83333L3.00016 3.50417L5.32933 5.83333L5.91683 5.24583L3.58766 2.91667L5.91683 0.5875Z"})),add:(0,s.createElement)("svg",{width:8,height:8,viewBox:"0 0 8 8",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M4.35613 0.231675L3.52528 0.231675V3.52561L0.231343 3.52561V4.35647L3.52528 4.35647V7.65041L4.35613 7.65041L4.35613 4.35647H7.65007V3.52561H4.35613L4.35613 0.231675Z"})),video_placeholder:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M14.7519 11.1679L11.5547 9.03647C10.8901 8.59343 10 9.06982 10 9.86852V14.1315C10 14.9302 10.8901 15.4066 11.5547 14.9635L14.7519 12.8321C15.3457 12.4362 15.3457 11.5638 14.7519 11.1679Z",stroke:Qw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M21 12C21 16.9706 16.9706 21 12 21C7.02944 21 3 16.9706 3 12C3 7.02944 7.02944 3 12 3C16.9706 3 21 7.02944 21 12Z",stroke:Qw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"})),gallery_placeholder:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M6 14.6667L9.68329 10.9834C10.3857 10.281 11.5427 10.345 12.1632 11.1207L13.3242 12.5719C13.8866 13.2749 14.9055 13.4042 15.6257 12.8641L16.5103 12.2006C17.1738 11.703 18.1023 11.769 18.6888 12.3554L21 14.6667M6 6H4.66667C3.74619 6 3 6.74619 3 7.66667V19.3333C3 20.2538 3.74619 21 4.66667 21H16.3333C17.2538 21 18 20.2538 18 19.3333V18M17.6667 7.16667C17.6667 7.6269 17.2936 8 16.8333 8C16.3731 8 16 7.6269 16 7.16667C16 6.70643 16.3731 6.33333 16.8333 6.33333C17.2936 6.33333 17.6667 6.70643 17.6667 7.16667ZM7.66667 18H19.3333C20.2538 18 21 17.2538 21 16.3333V4.66667C21 3.74619 20.2538 3 19.3333 3H7.66667C6.74619 3 6 3.74619 6 4.66667V16.3333C6 17.2538 6.74619 18 7.66667 18Z",fill:Ww,stroke:Qw,strokeWidth:1.4})),bg_color:(0,s.createElement)("svg",{width:11,height:10,viewBox:"0 0 11 10",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M10.6927 1.08247C10.6927 1.08247 10.8502 0.615805 10.5119 0.289139C10.2027 -0.0141947 9.80023 0.149139 9.80023 0.149139C9.4444 0.324139 6.44023 2.17331 5.32606 3.39831C4.8244 3.95831 4.12439 5.60914 4.69023 6.20997C5.2269 6.78164 7.00023 6.11081 7.4844 5.62664C8.68606 4.42497 10.5236 1.44414 10.6927 1.08247ZM0.816895 9.29581C2.19939 8.38581 1.66856 7.30664 2.70106 6.58914C3.24356 6.20997 3.99606 6.22747 4.49773 6.75831C4.86523 7.14914 4.9644 8.25747 4.4044 8.77664C3.48856 9.62247 2.07106 9.68081 0.816895 9.29581Z"})),bg_gradient:(0,s.createElement)("svg",{width:12,height:12,viewBox:"0 0 10 10",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,fillRule:"evenodd",clipRule:"evenodd",d:"M1.11111 1.11111V8.88889H8.88889V1.11111H1.11111ZM0.555556 0C0.248731 0 0 0.248731 0 0.555556V9.44444C0 9.75127 0.248731 10 0.555556 10H9.44444C9.75127 10 10 9.75127 10 9.44444V0.555556C10 0.248731 9.75127 0 9.44444 0H0.555556Z"}),(0,s.createElement)("path",{fill:Qw,d:"M1.66667 1.66667H7.77778L1.66667 7.77778V1.66667Z"})),bg_image:(0,s.createElement)("svg",{width:14,height:14,viewBox:"0 0 14 14",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M1.5752 0.699951H12.4252C12.9082 0.699951 13.3002 1.09195 13.3002 1.57495V12.425C13.3002 12.908 12.9082 13.3 12.4252 13.3H1.5752C1.0922 13.3 0.700195 12.908 0.700195 12.425V1.57495C0.700195 1.09195 1.0922 0.699951 1.5752 0.699951ZM11.9002 11.9V2.09995H2.1002V11.9H11.9002ZM7.0002 4.19995C7.0002 3.42995 6.3702 2.79995 5.6002 2.79995C4.8302 2.79995 4.2002 3.42995 4.2002 4.19995C4.2002 4.96995 4.8302 5.59995 5.6002 5.59995C6.3702 5.59995 7.0002 4.96995 7.0002 4.19995ZM9.1002 7.69995C9.1002 7.69995 9.1002 3.49995 11.2002 3.49995V10.5C11.2002 10.885 10.8852 11.2 10.5002 11.2H3.5002C3.1152 11.2 2.8002 10.885 2.8002 10.5V5.59995C4.2002 5.59995 4.9002 8.39995 4.9002 8.39995C4.9002 8.39995 5.6002 6.29995 7.0002 6.29995C8.4002 6.29995 9.1002 7.69995 9.1002 7.69995Z"})),bg_video:(0,s.createElement)("svg",{width:14,height:8,viewBox:"0 0 14 8",className:"srfm-editor-icons"},(0,s.createElement)("path",{fill:Qw,d:"M8.4002 6.1V1.9C8.4002 1.13 7.7702 0.5 7.0002 0.5H2.1002C1.3302 0.5 0.700195 1.13 0.700195 1.9V6.1C0.700195 6.87 1.3302 7.5 2.1002 7.5H7.0002C7.7702 7.5 8.4002 6.87 8.4002 6.1ZM9.1002 4.35L13.3002 7.5V0.5L9.1002 3.65V4.35Z"})),dynamic_content:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"red",className:"srfm-editor-icons"},(0,s.createElement)("path",{stoke:Qw,strokeWidth:1.4,d:"M4 7V17C4 19.2091 7.58172 21 12 21C16.4183 21 20 19.2091 20 17V7M4 7C4 9.20914 7.58172 11 12 11C16.4183 11 20 9.20914 20 7M4 7C4 4.79086 7.58172 3 12 3C16.4183 3 20 4.79086 20 7M20 12C20 14.2091 16.4183 16 12 16C7.58172 16 4 14.2091 4 12"})),separator:(0,s.createElement)("svg",{width:24,height:24,viewBox:"0 0 24 24",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{stokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round",fill:Ww,stroke:Yw,d:"M4 12H20M14 17L12 19L10 17M14 7L12 5L10 7"})),icon:(0,s.createElement)("svg",{width:24,height:25,viewBox:"0 0 24 25",fill:"none",className:"srfm-editor-icons"},(0,s.createElement)("path",{d:"M21 12.6987C21 17.6693 16.9706 21.6987 12 21.6987C7.02944 21.6987 3 17.6693 3 12.6987C3 7.72817 7.02944 3.69873 12 3.69873C16.9706 3.69873 21 7.72817 21 12.6987Z",fill:Ww,stroke:Yw,strokeWidth:1.4,strokeLinecap:"round",strokeLinejoin:"round"}),(0,s.createElement)("path",{d:"M11.3217 9.12032C11.5991 8.5582 12.4007 8.5582 12.6781 9.12032L13.3798 10.5422C13.49 10.7654 13.7029 10.9201 13.9493 10.9559L15.5184 11.1839C16.1387 11.2741 16.3864 12.0364 15.9375 12.4739L14.8021 13.5807C14.6239 13.7544 14.5425 14.0048 14.5846 14.2501L14.8526 15.8129C14.9586 16.4307 14.3101 16.9019 13.7553 16.6102L12.3518 15.8723C12.1315 15.7565 11.8683 15.7565 11.6479 15.8723L10.2445 16.6102C9.68964 16.9019 9.04116 16.4307 9.14712 15.8129L9.41516 14.2501C9.45724 14.0048 9.3759 13.7544 9.19765 13.5807L8.06223 12.4739C7.61335 12.0364 7.86105 11.2741 8.48138 11.1839L10.0505 10.9559C10.2968 10.9201 10.5098 10.7654 10.6199 10.5422L11.3217 9.12032Z",fill:Ww,stroke:Yw,strokeWidth:1.4}))};var Zw=o(89194),$w={};Zw.A&&Zw.A.locals&&($w.locals=Zw.A.locals);var Kw,Xw=0,Jw={attributes:{id:"sureforms-editor-styles"}};Jw.setAttributes=P(),Jw.insert=L().bind(null,"head"),Jw.domAPI=I(),Jw.insertStyleElement=z(),$w.use=function(e){return Jw.options=e||{},Xw++||(Kw=T()(Zw.A,Jw)),$w},$w.unuse=function(){Xw>0&&! --Xw&&(Kw(),Kw=null)};const eC=$w;function tC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var rC=function(e){var t=e.isOpen,r=e.setOpen,n=e.onConfirm,o=e.title,l=e.description,u=e.confirmLabel,c=void 0===u?(0,a.__)("Confirm","sureforms"):u,d=e.cancelLabel,f=void 0===d?(0,a.__)("Cancel","sureforms"):d,m=e.processingLabel,p=void 0===m?(0,a.__)("Processing…","sureforms"):m,h=e.icon,g=void 0===h?"":h,b=e.executable,y=void 0!==b&&b;(0,s.useLayoutEffect)((function(){return eC.use(),function(){eC.unuse()}}),[]);var v,D,_=(v=(0,s.useState)(!1),D=2,function(e){if(Array.isArray(e))return e}(v)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(v,D)||function(e,t){if(e){if("string"==typeof e)return tC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?tC(e,t):void 0}}(v,D)||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.")}()),x=_[0],k=_[1],E=function(){r(!1),k(!1)};return React.createElement(React.Fragment,null,t&&React.createElement(i.Modal,{onRequestClose:E,className:"srfm-confirm-popup-wrapper",overlayClassName:"srfm-confirm-popup-overlay"},React.createElement("div",{className:"srfm-confirm-popup-icon"},""!==g?function(e){var t,r,n,o=arguments.length>1&&void 0!==arguments[1]&&arguments[1];if(e=function(e){return(e=(e=(e=(e=e.replace("far ","")).replace("fas ","")).replace("fab ","")).replace("fa-","")).replace("fa ","")}(e),0!==srfm_blocks_info.font_awesome_5_polyfill.length&&((r=srfm_blocks_info.srfm_svg_icons[e])||(r=srfm_blocks_info.srfm_svg_icons[null===(n=srfm_blocks_info.font_awesome_5_polyfill)||void 0===n?void 0:n[e]])),!r)return null;var i=null!==(t=r.svg)&&void 0!==t&&t.brands?r.svg.brands:r.svg.solid,a="0 0 ".concat(i.width," ").concat(i.height),s=i.path,l=null;switch(e){case"align-center":l={fillRule:"evenodd",clipRule:"evenodd",d:"M4 2H14V0H4V2ZM0 7H18V5H0V7ZM4 12H14V10H4V12Z"};break;case"align-left":l={fillRule:"evenodd",clipRule:"evenodd",d:"M10 2H0V0H10V2ZM18 7H0V5H18V7ZM10 12H0V10H10V12Z"};break;case"align-right":l={fillRule:"evenodd",clipRule:"evenodd",d:"M8 2H18V0H8V2ZM0 7H18V5H0V7ZM8 12H18V10H8V12Z"};break;case"align-justify":l={d:"M0 0H18V2H0V0ZM0 5.00001H18V7.00001H0V5.00001ZM0 10H18V12H0V10Z"}}return l?React.createElement("svg",{width:"18",height:"12",viewBox:"0 0 18 12",xmlns:"http://www.w3.org/2000/svg"},React.createElement("path",l)):o&&"not_set"!==o?React.createElement("svg",{width:"20",height:"20",xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:s})):React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",viewBox:a},React.createElement("path",{d:s}))}(g):React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",fill:"none",viewBox:"0 0 24 24",strokeWidth:"1.5",stroke:"currentColor"},React.createElement("path",{strokeLinecap:"round",strokeLinejoin:"round",d:"M12 9v3.75m9-.75a9 9 0 11-18 0 9 9 0 0118 0zm-9 3.75h.008v.008H12v-.008z"}))),React.createElement("div",{className:"srfm-confirm-popup-content"},React.createElement("div",{className:"srfm-confirm-popup-text"},React.createElement("span",{className:"srfm-confirm-popup-title"},o),React.createElement("span",{className:"srfm-confirm-popup-description"},l)),React.createElement("div",{className:"srfm-confirm-popup-controls"},!1===x?React.createElement(React.Fragment,null,React.createElement(i.Button,{className:"srfm-confirm-popup-buttons srfm-popup-confirmation-button",onClick:function(){k(!0),y?n(y):n()}},c),React.createElement(i.Button,{className:"srfm-confirm-popup-buttons srfm-popup-cancellation-button",onClick:E},f)):React.createElement(i.Button,{isBusy:!0,className:"srfm-confirm-popup-buttons srfm-popup-confirmation-button"},p)))))};rC.defaultProps={};const nC=rC;function oC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return iC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?iC(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.")}()}function iC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const aC=function(e){var t=oC((0,s.useState)(null),2),r=t[0],n=t[1],o=(0,s.useRef)(null),u=(0,l.useSelect)((function(e){return e("core/block-editor").getSelectedBlock()}),[]),d=f(),p=null==u?void 0:u.name.split("/").pop();(0,s.useEffect)((function(){n((0,x.xT)(o))}),[p]);var h,g,b,y=oC((0,s.useState)(!1),2),v=y[0],D=y[1],_=e.onModalClose,E=e.onSelectImage,w=e.backgroundImage,C=e.onRemoveImage,M=e.slug,A=void 0===M?"image":M,N=e.label,j=void 0===N?(0,a.__)("Image","sureforms"):N,O=e.disableLabel,T=void 0!==O&&O,S=e.disableRemove,I=void 0!==S&&S,F=e.allow,L=void 0===F?["image"]:F,R=e.disableDynamicContent,P=void 0!==R&&R,B=e.help,z=void 0!==B&&B,q=e.addIcon,V=void 0===q?null:q;switch(A){case"video":g=(0,a.__)("Select Video","sureforms"),b=(0,a.__)("Change Video","sureforms"),h=Gw.video_placeholder;break;case"lottie":g=(0,a.__)("Select Lottie Animation","sureforms"),b=(0,a.__)("Change Lottie Animation","sureforms"),h=Gw.lottie;break;case"svg":g=(0,a.__)("Upload SVG","sureforms"),b=(0,a.__)("Change SVG","sureforms");break;default:g=(0,a.__)("Select Image","sureforms"),b=(0,a.__)("Change Image","sureforms")}var U=P?null:(0,m.applyFilters)("srfm.registerImageExtender","",null==u?void 0:u.name,E),H=P?null:(0,m.applyFilters)("srfm.registerImageLinkExtender","",null==u?void 0:u.name,"bgImageLink","url"),Y=function(e){var t=new window.FormData;t.append("action","srfm_svg_confirmation"),t.append("svg_nonce",srfm_blocks_info.srfm_svg_confirmation_nonce),t.append("confirmation","yes"),WD()({url:srfm_blocks_info.ajax_url,method:"POST",body:t}).then((function(t){t.success&&(d.setItem("srfmSvgConfirmation",JSON.stringify("yes")),e())}))},Q=function(e){var t=f("srfmSvgConfirmation");"svg"===A&&"yes"!==t?D(!0):e()},W=function(e){var t=Gw[e];return V&&"add"===e&&(t=V),React.createElement("div",{className:"srfm-media-control__button srfm-media-control__button--".concat(e)},t)},G=(0,x.P2)(null==e?void 0:e.label),Z=(0,m.applyFilters)("srfm.".concat(p,".").concat(r,".").concat(G,".before"),"",p),$=(0,m.applyFilters)("srfm.".concat(p,".").concat(r,".").concat(G),"",p);return React.createElement("div",{ref:o,className:"components-base-control"},Z,React.createElement(i.BaseControl,{className:"srfm-media-control",id:"srfm-option-selector-".concat(A),label:j,hideLabelFromVision:T},function(){var e,t;if(P)return!0;var r=null==u||null===(e=u.attributes)||void 0===e?void 0:e.dynamicContent;return!r||!0!==(null==r||null===(t=r.bgImage)||void 0===t?void 0:t.enable)}()?React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-media-control__wrapper",style:{backgroundImage:!h&&w&&!(null!=w&&w.svg)&&'url("'.concat(function(e){var t=e;switch(/(?:\.([^.]+))?$/.exec(String(t))[1]){case"json":case"avi":case"mpg":case"mp4":case"m4v":case"mov":case"ogv":case"vtt":case"wmv":case"3gp":case"3g2":t=""}return t}(w),'")')}},h&&w&&React.createElement("div",{className:"srfm-media-control__icon srfm-media-control__icon--stroke"},h),(null==w?void 0:w.svg)&&React.createElement("div",{className:"srfm-media-control__icon srfm-media-control__icon--stroke",dangerouslySetInnerHTML:{__html:w.svg}}),React.createElement(c.MediaUpload,{title:g,onSelect:E,allowedTypes:L,value:w,render:function(e){return t=e.open,r=w?"replace":"add",React.createElement(React.Fragment,null,"add"===r&&React.createElement("button",{className:"srfm-media-control__clickable srfm-media-control__clickable--".concat(r),onClick:function(){return Q(t)}},W(r)),React.createElement("div",{className:"srfm-media-control__footer"},React.createElement("button",{className:"srfm-control-label",onClick:function(){return Q(t)}},b),U),"svg"===A&&React.createElement(nC,{isOpen:v,setOpen:D,onConfirm:Y,title:(0,a.__)("Upload SVG?","sureforms"),description:(0,a.__)("Upload SVG can be potentially risky. Are you sure?","sureforms"),confirmLabel:(0,a.__)("Upload Anyway","sureforms"),cancelLabel:(0,a.__)("Cancel","sureforms"),executable:t}));var t,r},onClose:_}),!I&&w&&React.createElement("button",{className:"srfm-media-control__clickable srfm-media-control__clickable--close",onClick:C},W("close"))),React.createElement(k,{text:z})):U),H,$)};var sC=o(3942),lC={};sC.A&&sC.A.locals&&(lC.locals=sC.A.locals);var uC,cC=0,dC={attributes:{id:"sureforms-editor-styles"}};dC.setAttributes=P(),dC.insert=L().bind(null,"head"),dC.domAPI=I(),dC.insertStyleElement=z(),lC.use=function(e){return dC.options=e||{},cC++||(uC=T()(sC.A,dC)),lC},lC.unuse=function(){cC>0&&! --cC&&(uC(),uC=null)};const fC=lC;function mC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var pC={disabledTopSpace:WE().bool};function hC(e){var t,r,n,o=e.disabledTopSpace,i=(r=(0,s.useState)(null),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,n)||function(e,t){if(e){if("string"==typeof e)return mC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?mC(e,t):void 0}}(r,n)||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.")}()),a=i[0],u=i[1],c=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){return fC.use(),function(){fC.unuse()}}),[]);var d=null===(t=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name.split("/").pop();(0,s.useEffect)((function(){u((0,x.xT)(c))}),[d]);var f="separator",p=(0,m.applyFilters)("srfm.".concat(d,".").concat(a,".").concat(f,".before"),"",d),h=(0,m.applyFilters)("srfm.".concat(d,".").concat(a,".").concat(f),"",d);return React.createElement("div",{ref:c},p,React.createElement("div",{className:"srfm-separator ".concat(o?"srfm-separator--removed-top-space":"")}),h)}function gC(e){return gC="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},gC(e)}function bC(e,t,r){return(t=function(e){var t=function(e){if("object"!=gC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=gC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==gC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}hC.propTypes=pC,hC.defaultProps={disabledTopSpace:!1};const yC=function(e){var t=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){return null==Dw||Dw.use(),function(){null==Dw||Dw.unuse()}}),[]);var r=(0,s.useRef)(null);(0,s.useEffect)((function(){if(r.current){var e=new ResizeObserver((function(){window.dispatchEvent(new Event("resize"))}));return e.observe(r.current),function(){return e.disconnect()}}}),[]);var n=e.setAttributes,o=e.onSelectImage,l=e.backgroundImageColor,u=e.overlayType,c=e.overlayOpacity,d=e.backgroundSize,f=e.backgroundRepeat,m=e.backgroundAttachment,p=e.backgroundPosition,h=e.backgroundImage,g=e.backgroundColor,b=e.backgroundType,y=e.backgroundCustomSize,v=e.backgroundCustomSizeType,D=e.help,_=void 0!==D&&D,x=e.backgroundOverlaySize,E=e.backgroundOverlayRepeat,w=e.backgroundOverlayAttachment,C=e.backgroundOverlayPosition,M=e.backgroundOverlayImage,A=e.backgroundOverlayCustomSize,N=e.backgroundOverlayCustomSizeType,j=e.overlayBlendMode,O=e.disableOverlay,T=void 0!==O&&O,S=e.bgTextOptions,I=e.label,F=void 0===I?(0,a.__)("Type","sureforms"):I,L=[];switch(b.value){case"color":case"gradient":L.push({value:"image",icon:Gw.bg_image,tooltip:(0,a.__)("Image","sureforms")});break;case"image":L.push({value:"color",icon:Gw.bg_color,tooltip:(0,a.__)("Color","sureforms")},{value:"gradient",icon:Gw.bg_gradient,tooltip:(0,a.__)("Gradient","sureforms")},{value:"image",icon:Gw.bg_image,tooltip:(0,a.__)("Image","sureforms")});break;default:L.push({value:"none",label:(0,a.__)("None","sureforms")},{value:"color",label:(0,a.__)("Classic","sureforms")})}var R=[{value:"color",icon:Gw.bg_color,tooltip:(0,a.__)("Color","sureforms")},{value:"gradient",icon:Gw.bg_gradient,tooltip:(0,a.__)("Gradient","sureforms")},{value:"image",icon:Gw.bg_image,tooltip:(0,a.__)("Image","sureforms")}],P=[{value:"auto",label:(0,a.__)("Auto","sureforms")},{value:"cover",label:(0,a.__)("Cover","sureforms")},{value:"contain",label:(0,a.__)("Contain","sureforms")},{value:"custom",label:(0,a.__)("Custom","sureforms")}];y||(P=[{value:"auto",label:(0,a.__)("Auto","sureforms")},{value:"cover",label:(0,a.__)("Cover","sureforms")},{value:"contain",label:(0,a.__)("Contain","sureforms")}]);var B=function(){return React.createElement("div",{className:"srfm-background-image-overlay-opacity"},React.createElement(zw,{label:(0,a.__)("Overlay Opacity","sureforms"),setAttributes:n,value:c.value,data:{value:c.value,label:c.label},min:0,max:1,step:.05,displayUnit:!1,isFormSpecific:!0}))},z=React.createElement(React.Fragment,null,React.createElement(hC,null),React.createElement("div",{className:"srfm-background-image-overlay-type"},React.createElement(F_,{setAttributes:n,label:(0,a.__)("Overlay Type","sureforms"),data:{value:null==u?void 0:u.value,label:null==u?void 0:u.label},options:L,showIcons:!0,colorVariant:"secondary",layoutVariant:"inline"}))),q=React.createElement(React.Fragment,null,"image"===b.value&&(null==h?void 0:h.value)&&React.createElement(React.Fragment,null,z,"color"===(null==u?void 0:u.value)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-background-image-overlay-color"},React.createElement(E_,{label:(0,a.__)("Image Overlay Color","sureforms"),colorValue:l.value,data:{value:l.value,label:l.label},onColorChange:function(e){return n(bC({},l.label,e))},value:l.value,isFormSpecific:!0})),B()),"gradient"===(null==u?void 0:u.value)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-background-image-overlay-gradient"},React.createElement(Hw,{backgroundGradient:e.overlayBackgroundGradient,setAttributes:n,gradientType:e.overlayGradientType,backgroundGradientColor2:e.overlayBackgroundGradientColor2,backgroundGradientColor1:e.overlayBackgroundGradientColor1,backgroundGradientType:e.overlayBackgroundGradientType,backgroundGradientLocation1:e.overlayBackgroundGradientLocation1,backgroundGradientLocation2:e.overlayBackgroundGradientLocation2,backgroundGradientAngle:e.overlayBackgroundGradientAngle})),B()),"image"===(null==u?void 0:u.value)&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-background-image"},React.createElement(aC,{backgroundOverlayImage:M.value,disableLabel:!0,backgroundImage:M.value,onSelectImage:function(e){return o(M.label,e)},onRemoveImage:function(){return n(bC({},M.label,""))},isFormSpecific:!0}),M.value&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-background-image-position"},React.createElement(i.FocalPointPicker,{label:(0,a.__)("Image Position","sureforms"),url:null==M?void 0:M.value,value:null==C?void 0:C.value,onChange:function(e){n(bC({},null==C?void 0:C.label,e))}})),React.createElement("div",{className:"srfm-background-image-attachment"},React.createElement(i.SelectControl,{label:(0,a.__)("Attachment","sureforms"),value:w.value,onChange:function(e){return n(bC({},w.label,e))},options:[{value:"fixed",label:(0,a.__)("Fixed","sureforms")},{value:"scroll",label:(0,a.__)("Scroll","sureforms")}]})),React.createElement("div",{className:"srfm-background-blend-mode"},React.createElement(i.SelectControl,{label:(0,a.__)("Blend Mode","sureforms"),value:j.value,onChange:function(e){return n(bC({},j.label,e))},options:[{value:"normal",label:(0,a.__)("Normal","sureforms")},{value:"multiply",label:(0,a.__)("Multiply","sureforms")},{value:"screen",label:(0,a.__)("Screen","sureforms")},{value:"overlay",label:(0,a.__)("Overlay","sureforms")},{value:"darken",label:(0,a.__)("Darken","sureforms")},{value:"lighten",label:(0,a.__)("Lighten","sureforms")},{value:"color-dodge",label:(0,a.__)("Color Dodge","sureforms")},{value:"saturation",label:(0,a.__)("Saturation","sureforms")},{value:"color",label:(0,a.__)("Color","sureforms")}]})),React.createElement("div",{className:"srfm-background-image-repeat"},React.createElement(i.SelectControl,{label:(0,a.__)("Repeat","sureforms"),value:E.value,onChange:function(e){return n(bC({},E.label,e))},options:[{value:"no-repeat",label:(0,a.__)("No Repeat","sureforms")},{value:"repeat",label:(0,a.__)("Repeat","sureforms")},{value:"repeat-x",label:(0,a.__)("Repeat-x","sureforms")},{value:"repeat-y",label:(0,a.__)("Repeat-y","sureforms")}]})),React.createElement("div",{className:"srfm-background-image-size"},React.createElement(i.SelectControl,{label:(0,a.__)("Size","sureforms"),value:x.value,onChange:function(e){return n(bC({},x.label,e))},options:P}),"custom"===x.value&&A&&React.createElement(zw,{label:(0,a.__)("Width","sureforms"),value:null==A?void 0:A.value,data:{value:null==A?void 0:A.value,label:null==A?void 0:A.label},min:0,limitMax:{px:1600,"%":100,em:574},unit:{value:N.value,label:N.label},units:[{name:(0,a.__)("PX","sureforms"),unitValue:"px"},{name:(0,a.__)("%","sureforms"),unitValue:"%"},{name:(0,a.__)("EM","sureforms"),unitValue:"em"}],setAttributes:n,responsive:!1,isFormSpecific:!0,displayUnit:!0}))),B()))),React.createElement(hC,null)),V=React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-bg-type-container"},React.createElement(F_,{label:F,data:{value:b.value,label:b.label},options:S||R,showIcons:!S,colorVariant:"secondary",layoutVariant:"inline",setAttributes:n})),"color"===b.value&&React.createElement("div",{className:"srfm-background-color"},React.createElement(E_,{label:(0,a.__)("Background Color","sureforms"),colorValue:g.value,data:{value:g.value,label:g.label},onColorChange:function(e){return n(bC({},g.label,e))},value:g.value,isFormSpecific:!0})),"image"===b.value&&React.createElement("div",{className:"srfm-background-image"},React.createElement(aC,{onSelectImage:function(e){return o(h.label,e)},backgroundImage:h.value,onRemoveImage:function(){return n(bC({},h.label,""))},isFormSpecific:!0,disableLabel:!0}),h.value&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-background-image-position",ref:r},React.createElement(i.FocalPointPicker,{label:(0,a.__)("Image Position","sureforms"),url:null==h?void 0:h.value,value:null==p?void 0:p.value,onChange:function(e){n(bC({},null==p?void 0:p.label,e))}})),React.createElement("div",{className:"srfm-background-image-attachment"},React.createElement(i.SelectControl,{label:(0,a.__)("Attachment","sureforms"),value:m.value,onChange:function(e){return n(bC({},m.label,e))},options:[{value:"fixed",label:(0,a.__)("Fixed","sureforms")},{value:"scroll",label:(0,a.__)("Scroll","sureforms")}]})),React.createElement("div",{className:"srfm-background-image-repeat"},React.createElement(i.SelectControl,{label:(0,a.__)("Repeat","sureforms"),value:f.value,onChange:function(e){return n(bC({},f.label,e))},options:[{value:"no-repeat",label:(0,a.__)("No Repeat","sureforms")},{value:"repeat",label:(0,a.__)("Repeat","sureforms")},{value:"repeat-x",label:(0,a.__)("Repeat-x","sureforms")},{value:"repeat-y",label:(0,a.__)("Repeat-y","sureforms")}]})),React.createElement("div",{className:"srfm-background-image-size"},React.createElement(i.SelectControl,{label:(0,a.__)("Size","sureforms"),value:d.value,onChange:function(e){return n(bC({},d.label,e))},options:P}),"custom"===d.value&&y&&React.createElement(zw,{label:(0,a.__)("Width","sureforms"),value:null==y?void 0:y.value,data:{value:null==y?void 0:y.value,label:null==y?void 0:y.label},min:0,limitMax:{px:1600,"%":100,em:574},unit:{value:null==v?void 0:v.value,label:null==v?void 0:v.label},units:[{name:(0,a.__)("PX","sureforms"),unitValue:"px"},{name:(0,a.__)("%","sureforms"),unitValue:"%"},{name:(0,a.__)("EM","sureforms"),unitValue:"em"}],displayUnit:!0,setAttributes:n,responsive:!1,isFormSpecific:!0})))),"gradient"===b.value&&React.createElement("div",{className:"srfm-background-gradient"},React.createElement(Hw,{backgroundGradient:e.backgroundGradient,gradientType:e.gradientType,setAttributes:e.setAttributes,backgroundGradientColor2:e.backgroundGradientColor2,backgroundGradientColor1:e.backgroundGradientColor1,backgroundGradientType:e.backgroundGradientType,backgroundGradientLocation1:e.backgroundGradientLocation1,backgroundGradientLocation2:e.backgroundGradientLocation2,backgroundGradientAngle:e.backgroundGradientAngle})),!T&&q);return React.createElement("div",{ref:t,className:"components-base-control"},React.createElement("div",{className:"srfm-bg-select-control"},V,React.createElement(k,{text:_})))};var vC=o(10560),DC={};vC.A&&vC.A.locals&&(DC.locals=vC.A.locals);var _C,xC=0,kC={attributes:{id:"sureforms-editor-styles"}};kC.setAttributes=P(),kC.insert=L().bind(null,"head"),kC.domAPI=I(),kC.insertStyleElement=z(),DC.use=function(e){return kC.options=e||{},xC++||(_C=T()(vC.A,kC)),DC},DC.unuse=function(){xC>0&&! --xC&&(_C(),_C=null)};const EC=DC;function wC(e){return wC="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},wC(e)}function CC(e,t,r){return(t=function(e){var t=function(e){if("object"!=wC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=wC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==wC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}const MC=function(e){(0,s.useLayoutEffect)((function(){return EC.use(),function(){EC.unuse()}}),[]);var t=e.label,r=e.unit,n=e.valueBottom,o=e.valueLeft,l=e.valueRight,u=e.valueTop,c=e.link,d=e.setAttributes,f=e.help,m=void 0!==f&&f,p=e.min,h=void 0===p?0:p,g=e.disableUnits,b=void 0!==g&&g,y=[u,l,n,o],v=[{name:(0,a.__)("Pixel","sureforms"),unitValue:"px"},{name:(0,a.__)("Em","sureforms"),unitValue:"em"},{name:(0,a.__)("%","sureforms"),unitValue:"%"}];e.units&&(v=e.units);var D,_=null;return c&&c.value?_=React.createElement("span",{className:"srfm-spacing-control__link srfm-spacing-control-connected dashicons dashicons-admin-links ",onClick:function(){d(CC(CC(CC(CC(CC({},u.label,u.value||0),l.label,l.value||0),n.label,n.value||0),o.label,o.value||0),c.label,!1))}}):c&&(_=React.createElement("span",{className:"srfm-spacing-control__link srfm-spacing-control-disconnected dashicons dashicons-editor-unlink",onClick:function(){d(CC(CC(CC(CC(CC({},u.label,u.value),l.label,u.value),n.label,u.value),o.label,u.value),c.label,!0))}})),React.createElement("div",{className:"components-base-control"},React.createElement("div",{className:"srfm-spacing-control"},React.createElement("div",{className:"srfm-size-type-field-tabs"},React.createElement("div",{className:"srfm-control__header"},React.createElement("span",{className:"srfm-control-label"},t),React.createElement("div",{className:"srfm-control__actions"},React.createElement(xe,{onReset:function(e){var t={};y.forEach((function(r){t[r.label]=e[r.label]})),t[null==r?void 0:r.label]=e[null==r?void 0:r.label],t[null==c?void 0:c.label]=e[null==c?void 0:c.label],d(t)},attributeNames:[null==u?void 0:u.label,null==l?void 0:l.label,null==n?void 0:n.label,null==o?void 0:o.label,null==r?void 0:r.label,null==c?void 0:c.label],isFormSpecific:!0,setAttributes:d,isValueArray:!0,value:[null==u?void 0:u.value,null==l?void 0:l.value,null==n?void 0:n.value,null==o?void 0:o.value,null==r?void 0:r.value,null==c?void 0:c.value]}),React.createElement(i.ButtonGroup,{className:"srfm-control__units","aria-label":(0,a.__)("Select Units","sureforms")},!b&&(D=[],v.map((function(e){return D.push(React.createElement(i.Tooltip,{text:(0,a.sprintf)((0,a.__)("%s units","sureforms"),e.name)},React.createElement(i.Button,{key:e.unitValue,className:"srfm-range-control__units--"+e.name,isSmall:!0,isPrimary:r.value===e.unitValue,isSecondary:r.value!==e.unitValue,"aria-pressed":r.value===e.unitValue,"aria-label":(0,a.sprintf)((0,a.__)("%s units","sureforms"),e.name),onClick:function(){return t=e,void d(CC({},r.label,t.unitValue));var t}},e.unitValue)))})),D)))),React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-spacing-control__inputs"},y.map((function(e,t){return React.createElement("input",{key:t,className:"srfm-spacing-control__number",type:"number",min:h,onChange:function(t){return function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"",r=arguments.length>2?arguments[2]:void 0,i=t;""===t&&""!==e&&(i=""===e.target.value||e.target.value<0?0:Number(e.target.value)),c.value?d(CC(CC(CC(CC({},u.label,i),l.label,i),n.label,i),o.label,i)):d(CC({},r,i))}(t,"",e.label)},value:void 0!==e.value?e.value:""})})),_)),React.createElement("div",{className:"srfm-spacing-control__input-labels"},React.createElement("span",{className:"srfm-spacing-control__number-label"},(0,a.__)("Top","sureforms")),React.createElement("span",{className:"srfm-spacing-control__number-label"},(0,a.__)("Right","sureforms")),React.createElement("span",{className:"srfm-spacing-control__number-label"},(0,a.__)("Bottom","sureforms")),React.createElement("span",{className:"srfm-spacing-control__number-label"},(0,a.__)("Left","sureforms")),React.createElement("span",{className:"srfm-spacing-control__number-label srfm-spacing-control__link-label"}))),React.createElement(k,{text:m})))};function AC(e){return AC="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},AC(e)}function NC(e){return function(e){if(Array.isArray(e))return FC(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||IC(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 jC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function OC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?jC(Object(r),!0).forEach((function(t){TC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):jC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function TC(e,t,r){return(t=function(e){var t=function(e){if("object"!=AC(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=AC(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==AC(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function SC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||IC(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.")}()}function IC(e,t){if(e){if("string"==typeof e)return FC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?FC(e,t):void 0}}function FC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}const LC=function(e){var t,r=(0,l.useDispatch)(u.store).editPost,n=e.defaultKeys,o=e.isInlineButtonBlockPresent,i=(0,l.useSelect)((function(e){return e(u.store).getEditedPostAttribute("meta")||{}}),[u.store]),c=(null===(t=i)||void 0===t?void 0:t._srfm_forms_styling)||{},d=(0,s.useRef)(null),f=(0,s.useRef)(null);(0,s.useLayoutEffect)((function(){var e;d.current=document.documentElement.querySelector("body"),f.current=null===(e=d.current)||void 0===e?void 0:e.querySelector(".editor-styles-wrapper")}),[]);var p=_(),h=SC((0,s.useState)(document.querySelector(".srfm-submit-richtext")),2),g=h[0],b=h[1],y=SC((0,s.useState)(document.querySelector(".srfm-submit-btn-container")),2),v=y[0],k=y[1],E=SC((0,s.useState)((null==c?void 0:c.field_spacing)||"medium"),2),w=E[0],C=E[1];(0,x.B$)(fe,c);var M=c.bg_type,A=c.bg_color,N=c.bg_image,j=c.bg_image_position,O=c.bg_image_attachment,T=c.bg_image_repeat,S=c.bg_image_size,I=c.bg_image_size_custom,F=c.bg_image_size_custom_unit,L=c.gradient_type,R=c.bg_gradient_color_1,P=c.bg_gradient_color_2,B=c.bg_gradient_location_1,z=c.bg_gradient_location_2,q=c.bg_gradient_angle,V=c.bg_gradient_type,U=c.bg_gradient,H=c.bg_gradient_overlay_type,Y=c.bg_overlay_opacity,Q=c.bg_image_overlay_color,W=c.bg_overlay_image,G=c.bg_overlay_position,Z=c.bg_overlay_attachment,$=c.bg_overlay_blend_mode,K=c.bg_overlay_repeat,X=c.bg_overlay_size,J=c.bg_overlay_custom_size,ee=c.bg_overlay_custom_size_unit,te=c.overlay_gradient_type,re=c.bg_overlay_gradient_color_1,ne=c.bg_overlay_gradient_color_2,oe=c.bg_overlay_gradient_location_1,ie=c.bg_overlay_gradient_location_2,ae=c.bg_overlay_gradient_angle,se=c.bg_overlay_gradient_type,le=c.bg_overlay_gradient,ue=c.form_padding_top,ce=c.form_padding_right,de=c.form_padding_bottom,me=c.form_padding_left,pe=c.form_padding_unit,he=c.form_padding_link,ge=c.form_border_radius_top,be=c.form_border_radius_right,ye=c.form_border_radius_bottom,ve=c.form_border_radius_left,De=c.form_border_radius_unit,_e=c.form_border_radius_link;(0,s.useEffect)((function(){var e,t,r,n,o,i;e=w,n=null===(t=srfm_admin)||void 0===t||null===(t=t.field_spacing_vars)||void 0===t?void 0:t.small,o=(null===(r=srfm_admin)||void 0===r?void 0:r.field_spacing_vars[e])||{},i=OC(OC({},n),o),(0,x.oI)(d.current,i)}),[w]),(0,s.useEffect)((function(){setTimeout((function(){k(document.querySelector(".srfm-submit-btn-container")),b(document.querySelector(".srfm-submit-richtext")),function(){var e,t,r=["srfm-btn-alignment","wp-block-button__link"],n=["srfm-button","srfm-submit-button","srfm-btn-alignment","srfm-btn-bg-color"],o=null!==(e=i)&&void 0!==e&&e._srfm_inherit_theme_button&&i._srfm_inherit_theme_button?r:n;if(g)if(null!==(t=i)&&void 0!==t&&t._srfm_inherit_theme_button&&i._srfm_inherit_theme_button){var a,s;(a=g.classList).remove.apply(a,n),v.classList.add("wp-block-button"),(s=g.classList).add.apply(s,NC(o))}else{var l;g.classList.remove(r),v.classList.remove("wp-block-button"),(l=g.classList).add.apply(l,NC(o))}}()}),1e3)}),[p,g,i._srfm_inherit_theme_button]);var xe=function(e){var t=SC(Object.entries(e)[0],2),n=t[0],o=t[1];(0,x.oI)(d.current,Oe(n,o));var i=OC(OC({},c),e);r({meta:{_srfm_forms_styling:i}})},ke=SC((0,s.useState)({type:V||"linear",color_1:R||"#FFC9B2",color_2:P||"#C7CBFF",location_1:B||0,location_2:z||100,angle:q||90}),2),Ee=ke[0],we=ke[1],Ce=SC((0,s.useState)({type:se||"linear",color_1:re||"#FFC9B2",color_2:ne||"#C7CBFF",location_1:oe||0,location_2:ie||100,angle:ae||90}),2),Me=Ce[0],Ae=Ce[1];function Ne(e,t){var n={};switch(e){case"_srfm_button_border_width":n["--srfm-btn-border-width"]=t?t+"px":"0px";break;case"_srfm_button_border_color":n["--srfm-btn-border-color"]=t||"#000000"}(0,x.oI)(d.current,n);var o={};o[e]=t,r({meta:o})}function je(e,t){(0,x.oI)(d.current,Oe(e,t)),r({meta:{_srfm_forms_styling:OC(OC({},c),{},TC({},e,t))}})}function Oe(e,t){var r={};switch(e){case"primary_color":r["--srfm-color-scheme-primary"]=t||"#111C44",r["--srfm-btn-color-hover"]="hsl( from ".concat(t||"#111C44"," h s l / 0.9)");break;case"text_color":var n="#1E1E1E";r["--srfm-color-scheme-text"]=t||n,r["--srfm-color-input-label"]=t||n,r["--srfm-color-input-placeholder"]=t||n,r["--srfm-color-input-text"]=t||n,r["--srfm-color-input-description"]="hsl( from ".concat(t||n," h s l / 0.65)"),r["--srfm-color-input-prefix"]="hsl( from ".concat(t||n," h s l / 0.65)"),r["--srfm-color-input-background"]="hsl( from ".concat(t||n," h s l / 0.02)"),r["--srfm-color-input-background-disabled"]="hsl( from ".concat(t||n," h s l / 0.05)"),r["--srfm-color-input-border"]="hsl( from ".concat(t||n," h s l / 0.25)"),r["--srfm-color-input-border-disabled"]="hsl( from ".concat(t||n," h s l / 0.15)");break;case"text_color_on_primary":r["--srfm-color-scheme-text-on-primary"]=t||"#FFFFFF";break;case"field_spacing":r["--srfm-field-spacing"]=t||"medium";break;case"submit_button_alignment":r["--srfm-submit-alignment"]=t||"left",r["--srfm-submit-width-backend"]="max-content",Ne("_srfm_submit_width_backend","max-content"),"left"===t?(r["--srfm-submit-alignment-backend"]="100%",Ne("_srfm_submit_alignment_backend","100%")):"right"===t?(r["--srfm-submit-alignment-backend"]="0%",Ne("_srfm_submit_alignment_backend","0%")):"center"===t?(r["--srfm-submit-alignment-backend"]="50%",Ne("_srfm_submit_alignment_backend","50%")):"justify"===t&&(r["--srfm-submit-alignment-backend"]="50%",r["--srfm-submit-width-backend"]="auto",Ne("_srfm_submit_alignment_backend","50%"));break;case"bg_color":r["--srfm-bg-color"]=t||"#FFFFFF";break;case"bg_image":r["--srfm-bg-image"]=t?"url(".concat(t,")"):"none";break;case"bg_image_position":r["--srfm-bg-position"]=t||"50% 50%";break;case"bg_image_attachment":r["--srfm-bg-attachment"]=t||"scroll";break;case"bg_image_repeat":r["--srfm-bg-repeat"]=t||"no-repeat";break;case"bg_image_size":r["--srfm-bg-size"]="custom"===t?"".concat(null!=I?I:100).concat(null!=I?I:"%"):t||"cover";break;case"bg_image_size_custom":r["--srfm-bg-size-custom"]=null!=t?t:100,r["--srfm-bg-size"]="".concat(null!=t?t:100).concat(null!=I?I:"%");break;case"bg_image_size_custom_unit":r["--srfm-bg-size-custom-unit"]=null!=t?t:"%",r["--srfm-bg-size"]="".concat(null!=I?I:100).concat(null!=t?t:"%");break;case"gradient_type":case"bg_gradient":case"bg_gradient_type":case"bg_gradient_color_1":case"bg_gradient_color_2":case"bg_gradient_location_1":case"bg_gradient_location_2":case"bg_gradient_angle":if("gradient_type"===e&&"basic"===t||"bg_gradient"===e){r["--srfm-bg-gradient"]=U;break}var o=OC(OC({},Ee),{},TC({},e.replace("bg_gradient_",""),t));we(o);break;case"bg_gradient_overlay_type":r["--srfm-bg-gradient-overlay-type"]=t||"none";break;case"bg_overlay_image":r["--srfm-bg-overlay-image"]=t?"url(".concat(t,")"):"none";break;case"bg_overlay_position":r["--srfm-bg-overlay-position"]=t||"50% 50%";break;case"bg_overlay_attachment":r["--srfm-bg-overlay-attachment"]=t||"scroll";break;case"bg_overlay_repeat":r["--srfm-bg-overlay-repeat"]=t||"no-repeat";break;case"bg_overlay_blend_mode":r["--srfm-bg-overlay-blend-mode"]=t||"normal";break;case"bg_overlay_size":r["--srfm-bg-overlay-size"]="custom"===t?"".concat(null!=J?J:100).concat(null!=ee?ee:"%"):t||"cover";break;case"bg_overlay_custom_size":r["--srfm-bg-overlay-custom-size"]=null!=t?t:100,r["--srfm-bg-overlay-size"]="".concat(null!=t?t:100).concat(null!=ee?ee:"%");break;case"bg_overlay_custom_size_unit":r["--srfm-bg-overlay-custom-size-unit"]=null!=t?t:"%",r["--srfm-bg-overlay-size"]="".concat(null!=J?J:100).concat(null!=t?t:"%");break;case"bg_overlay_opacity":r["--srfm-bg-overlay-opacity"]=null!=t?t:1;break;case"bg_image_overlay_color":r["--srfm-bg-overlay-color"]=t||"#FFFFFF75";break;case"overlay_gradient_type":case"bg_overlay_gradient":case"bg_overlay_gradient_type":case"bg_overlay_gradient_color_1":case"bg_overlay_gradient_color_2":case"bg_overlay_gradient_location_1":case"bg_overlay_gradient_location_2":case"bg_overlay_gradient_angle":if("overlay_gradient_type"===e&&"basic"===t||"bg_overlay_gradient"===e){r["--srfm-bg-overlay-gradient"]=le;break}var i=OC(OC({},Me),{},TC({},e.replace("bg_overlay_gradient_",""),t));Ae(i)}return r}(0,s.useEffect)((function(){Te(M,H)}),[M,H,N]),(0,s.useEffect)((function(){if(i){var e,t="#1E1E1E",o={"--srfm-color-scheme-primary":(null==c?void 0:c.primary_color)||"#111C44","--srfm-btn-color-hover":"hsl( from ".concat((null==c?void 0:c.primary_color)||"#111C44"," h s l / 0.9)"),"--srfm-color-scheme-text-on-primary":(null==c?void 0:c.text_color_on_primary)||"#FFFFFF","--srfm-color-scheme-text":(null==c?void 0:c.text_color)||t,"--srfm-color-input-label":(null==c?void 0:c.text_color)||t,"--srfm-color-input-placeholder":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.5)"),"--srfm-color-input-text":(null==c?void 0:c.text_color)||t,"--srfm-color-input-description":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.65)"),"--srfm-color-input-prefix":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.65)"),"--srfm-color-input-background":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.02)"),"--srfm-color-input-background-disabled":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.05)"),"--srfm-color-input-border":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.25)"),"--srfm-color-input-border-disabled":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.15)"),"--srfm-color-input-border-focus-glow":"hsl( from ".concat((null==c?void 0:c.primary_color)||"#FAE4DC"," h s l / 0.15 )"),"--srfm-checkbox-input-border-radius":"4px","--srfm-color-multi-choice-svg":"hsl( from ".concat((null==c?void 0:c.text_color)||t," h s l / 0.7)"),"--srfm-btn-text-color":(null==c?void 0:c.text_color_on_primary)||"#FFFFFF","--srfm-btn-border-color":(null==c?void 0:c.primary_color)||"#111C44","--srfm-submit-alignment":(null==c?void 0:c.submit_button_alignment)||"left","--srfm-submit-width":(null===(e=i)||void 0===e?void 0:e._srfm_submit_width)||"","--srfm-submit-alignment-backend":i._srfm_submit_alignment_backend||"","--srfm-submit-width-backend":i._srfm_submit_width_backend||"","--srfm-bg-color":A||"#FFFFFF","--srfm-bg-image":N?"url(".concat(N,")"):"none","--srfm-bg-position":"".concat(100*(null==j?void 0:j.x),"% ").concat(100*(null==j?void 0:j.y),"%")||0,"--srfm-bg-attachment":O||"scroll","--srfm-bg-repeat":T||"no-repeat","--srfm-bg-size":"custom"===S?"".concat(null!=I?I:100).concat(null!=F?F:"%"):S||"cover","--srfm-bg-size-custom":I||100,"--srfm-bg-size-custom-unit":F||"%","--srfm-bg-gradient":"basic"===L||void 0===L?U||"linear-gradient(90deg, #FFC9B2 0%, #C7CBFF 100%)":(0,x.Cb)(Ee.type,Ee.color_1,Ee.color_2,Ee.location_1,Ee.location_2,Ee.angle),"--srfm-bg-overlay-image":W?"url(".concat(W,")"):"none","--srfm-bg-overlay-position":"".concat(100*(null==G?void 0:G.x),"% ").concat(100*(null==G?void 0:G.y),"%")||0,"--srfm-bg-overlay-attachment":Z||"scroll","--srfm-bg-overlay-repeat":K||"no-repeat","--srfm-bg-overlay-blend-mode":$||"normal","--srfm-bg-overlay-size":"custom"===X?"".concat(null!=J?J:100).concat(null!=ee?ee:"%"):X||"cover","--srfm-bg-overlay-custom-size":J||100,"--srfm-bg-overlay-custom-size-unit":ee||"%","--srfm-bg-overlay-opacity":null!=Y?Y:1,"--srfm-bg-overlay-color":Q||"#FFFFFF75","--srfm-bg-overlay-gradient":"basic"===te||void 0===te?le||"linear-gradient(90deg, #FFC9B2 0%, #C7CBFF 100%)":(0,x.Cb)(Me.type,Me.color_1,Me.color_2,Me.location_1,Me.location_2,Me.angle)};(0,x.oI)(d.current,o)}else r({meta:i=n})}),[i,Ee,Me,U,le]);var Te=function(e,t){var r,n,o,i,a,s,l={image:"srfm-bg-image",gradient:"srfm-bg-gradient",default:"srfm-bg-color"},u={image:"srfm-overlay-image",gradient:"srfm-overlay-gradient",color:"srfm-overlay-color"};null===(r=f.current)||void 0===r||(n=r.classList).remove.apply(n,NC(Object.values(l))),null===(o=f.current)||void 0===o||(i=o.classList).remove.apply(i,NC(Object.values(u))),null===(a=f.current)||void 0===a||a.classList.add(l[e]||l.default),"image"===e&&N&&t&&u[t]&&(null===(s=f.current)||void 0===s||s.classList.add(u[t]))},Se=[{id:"background",component:React.createElement("div",{className:"srfm-bg-component"},React.createElement(yC,{backgroundType:{value:M||"color",label:"bg_type"},backgroundColor:{value:A,label:"bg_color"},backgroundImage:{value:N,label:"bg_image"},backgroundPosition:{value:j,label:"bg_image_position"},backgroundAttachment:{value:O,label:"bg_image_attachment"},backgroundRepeat:{value:T,label:"bg_image_repeat"},backgroundSize:{value:S,label:"bg_image_size"},backgroundCustomSize:{value:I,label:"bg_image_size_custom"},backgroundCustomSizeType:{value:F||"%",label:"bg_image_size_custom_unit"},gradientType:{value:L||"basic",label:"gradient_type"},backgroundGradientColor1:{value:R,label:"bg_gradient_color_1"},backgroundGradientColor2:{value:P,label:"bg_gradient_color_2"},backgroundGradientLocation1:{value:B,label:"bg_gradient_location_1"},backgroundGradientLocation2:{value:z,label:"bg_gradient_location_2"},backgroundGradientAngle:{value:q,label:"bg_gradient_angle"},backgroundGradientType:{value:V||"linear",label:"bg_gradient_type"},backgroundGradient:{value:U||"linear-gradient(90deg, #FFC9B2 0%, #C7CBFF 100%)",label:"bg_gradient"},overlayType:{value:H,label:"bg_gradient_overlay_type"},overlayOpacity:{value:Y,label:"bg_overlay_opacity"},backgroundOverlayImage:{value:W,label:"bg_overlay_image"},backgroundImageColor:{value:Q,label:"bg_image_overlay_color"},backgroundOverlayPosition:{value:G,label:"bg_overlay_position"},backgroundOverlayAttachment:{value:Z,label:"bg_overlay_attachment"},overlayBlendMode:{value:$,label:"bg_overlay_blend_mode"},backgroundOverlayRepeat:{value:K,label:"bg_overlay_repeat"},backgroundOverlaySize:{value:X,label:"bg_overlay_size"},backgroundOverlayCustomSize:{value:J,label:"bg_overlay_custom_size"},backgroundOverlayCustomSizeType:{value:ee||"%",label:"bg_overlay_custom_size_unit"},overlayGradientType:{value:te||"basic",label:"overlay_gradient_type"},overlayBackgroundGradientColor1:{value:re,label:"bg_overlay_gradient_color_1"},overlayBackgroundGradientColor2:{value:ne,label:"bg_overlay_gradient_color_2"},overlayBackgroundGradientLocation1:{value:oe,label:"bg_overlay_gradient_location_1"},overlayBackgroundGradientLocation2:{value:ie,label:"bg_overlay_gradient_location_2"},overlayBackgroundGradientAngle:{value:ae,label:"bg_overlay_gradient_angle"},overlayBackgroundGradientType:{value:se||"linear",label:"bg_overlay_gradient_type"},overlayBackgroundGradient:{value:le||"linear-gradient(90deg, #FFC9B2 0%, #C7CBFF 100%)",label:"bg_overlay_gradient"},label:(0,a.__)("Background","sureforms"),setAttributes:xe,onSelectImage:function(e,t){var n,o=0,i=t;t&&t.url&&t.type&&"image"===t.type||(i=null),i&&(o=i.id,i=i.sizes.full.url),n=e+"_id",(0,x.oI)(d.current,Oe(e,i)),r({meta:{_srfm_forms_styling:OC(OC({},c),{},TC(TC({},e,i),n,o))}})}}),React.createElement("p",{className:"components-base-control__help"}))},{id:"primary_color",component:React.createElement(React.Fragment,null,React.createElement(E_,{label:(0,a.__)("Primary Color","sureforms"),colorValue:null==c?void 0:c.primary_color,data:{value:null==c?void 0:c.primary_color,label:"primary_color"},onColorChange:function(e){e!==(null==c?void 0:c.primary_color)&&je("primary_color",e)},value:null==c?void 0:c.primary_color,isFormSpecific:!0}),React.createElement("p",{className:"components-base-control__help"}))},{id:"text_color",component:React.createElement(React.Fragment,null,React.createElement(E_,{label:(0,a.__)("Text Color","sureforms"),colorValue:null==c?void 0:c.text_color,data:{value:null==c?void 0:c.text_color,label:"text_color"},onColorChange:function(e){e!==(null==c?void 0:c.text_color)&&je("text_color",e)},value:null==c?void 0:c.text_color,isFormSpecific:!0}),React.createElement("p",{className:"components-base-control__help"}))},{id:"text_color_on_primary",component:React.createElement(React.Fragment,null,React.createElement(E_,{label:(0,a.__)("Text Color on Primary","sureforms"),colorValue:null==c?void 0:c.text_color_on_primary,data:{value:null==c?void 0:c.text_color_on_primary,label:"text_color_on_primary"},onColorChange:function(e){e!==(null==c?void 0:c.text_color_on_primary)&&je("text_color_on_primary",e)},value:null==c?void 0:c.text_color_on_primary,isFormSpecific:!0}),React.createElement("p",{className:"components-base-control__help"}))},{id:"padding",component:React.createElement(MC,{label:(0,a.__)("Padding","sureforms"),valueTop:{value:ue,label:"form_padding_top"},valueRight:{value:ce,label:"form_padding_right"},valueBottom:{value:de,label:"form_padding_bottom"},valueLeft:{value:me,label:"form_padding_left"},unit:{value:pe,label:"form_padding_unit"},link:{value:he,label:"form_padding_link"},setAttributes:xe})},{id:"border_radius",component:React.createElement(MC,{label:(0,a.__)("Border Radius","sureforms"),valueTop:{value:ge,label:"form_border_radius_top"},valueRight:{value:be,label:"form_border_radius_right"},valueBottom:{value:ye,label:"form_border_radius_bottom"},valueLeft:{value:ve,label:"form_border_radius_left"},unit:{value:De,label:"form_border_radius_unit"},link:{value:_e,label:"form_border_radius_link"},setAttributes:xe})}],Ie=[{id:"field_spacing",component:React.createElement(F_,{label:(0,a.__)("Field Spacing","sureforms"),data:{value:(null==c?void 0:c.field_spacing)||"medium",label:"field_spacing"},options:[{value:"small",label:(0,a.__)("Small","sureforms")},{value:"medium",label:(0,a.__)("Medium","sureforms")},{value:"large",label:(0,a.__)("Large","sureforms")}],showIcons:!1,onChange:function(e){je("field_spacing",e),C(e)}})}],Fe=[{id:"submit_button_alignment",component:(0,m.applyFilters)("srfm.show.button.styling",!o,{isInlineButtonBlockPresent:o,context:"form-settings"})&&React.createElement(React.Fragment,null,React.createElement("p",{className:"components-base-control__help"}),React.createElement(F_,{label:(0,a.__)("Submit Button Alignment","sureforms"),data:{value:null==c?void 0:c.submit_button_alignment,label:"submit_button_alignment"},options:[{value:"left",icon:React.createElement(aw,{icon:uw}),tooltip:(0,a.__)("Left","sureforms")},{value:"center",icon:React.createElement(aw,{icon:cw}),tooltip:(0,a.__)("Center","sureforms")},{value:"right",icon:React.createElement(aw,{icon:dw}),tooltip:(0,a.__)("Right","sureforms")},{value:"justify",icon:React.createElement(aw,{icon:lw}),tooltip:(0,a.__)("Full Width","sureforms")}],showIcons:!0,onChange:function(e){je("submit_button_alignment",e||"left"),"justify"===e?(Ne("_srfm_submit_width","100%"),Ne("_srfm_submit_width_backend","auto")):Ne("_srfm_submit_width","")}}))}],Le=function(e,t){return(0,m.applyFilters)("srfm.style.panels",e,t)}([{panelId:"form",title:(0,a.__)("Form","sureforms"),content:Se,initialOpen:!0},{panelId:"fields",title:(0,a.__)("Fields","sureforms"),content:Ie,initialOpen:!1}].concat(NC(Fe.some((function(e){return e.component}))?[{panelId:"button",title:(0,a.__)("Button","sureforms"),content:Fe,initialOpen:!1}]:[])),{props:e,sureformsKeys:i,editPost:r,formStyling:c,updateFormStyling:je}),Re=React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-panel-preview"},React.createElement("div",{className:"components-panel__body",style:{"border-bottom":"unset"}},React.createElement("h2",{className:"components-panel__body-title"},(0,a.__)("Form Theme","sureforms")),React.createElement(pw,{tooltipHeading:(0,a.__)("Unlock Form Theme","sureforms"),tooltipContent:(0,a.__)("With the SureForms Starter Plan, access essential form styling options to personalize the look and feel of your forms, ensuring a seamless and engaging user experience.","sureforms"),tooltipPosition:"bottom",utmMedium:"editor_form_themes"}),mw))),Pe=Le.find((function(e){return"themes"===e.panelId}));return React.createElement(React.Fragment,null,!Pe&&Re,Le.map((function(e){var t=e.panelId,r=e.title,n=e.content,o=e.initialOpen,i=n.map((function(e){return e.component}));return React.createElement(D,{key:t,title:r,initialOpen:o},i)})))};function RC(e){return RC="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},RC(e)}function PC(){PC=function(){return t};var e,t={},r=Object.prototype,n=r.hasOwnProperty,o="function"==typeof Symbol?Symbol:{},i=o.iterator||"@@iterator",a=o.asyncIterator||"@@asyncIterator",s=o.toStringTag||"@@toStringTag";function l(e,t,r,n){return Object.defineProperty(e,t,{value:r,enumerable:!n,configurable:!n,writable:!n})}try{l({},"")}catch(e){l=function(e,t,r){return e[t]=r}}function u(t,r,n,o){var i=r&&r.prototype instanceof f?r:f,a=Object.create(i.prototype);return l(a,"_invoke",function(t,r,n){var o=1;return function(i,a){if(3===o)throw Error("Generator is already running");if(4===o){if("throw"===i)throw a;return{value:e,done:!0}}for(n.method=i,n.arg=a;;){var s=n.delegate;if(s){var l=_(s,n);if(l){if(l===d)continue;return l}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(1===o)throw o=4,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=3;var u=c(t,r,n);if("normal"===u.type){if(o=n.done?4:2,u.arg===d)continue;return{value:u.arg,done:n.done}}"throw"===u.type&&(o=4,n.method="throw",n.arg=u.arg)}}}(t,n,new E(o||[])),!0),a}function c(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}t.wrap=u;var d={};function f(){}function m(){}function p(){}var h={};l(h,i,(function(){return this}));var g=Object.getPrototypeOf,b=g&&g(g(w([])));b&&b!==r&&n.call(b,i)&&(h=b);var y=p.prototype=f.prototype=Object.create(h);function v(e){["next","throw","return"].forEach((function(t){l(e,t,(function(e){return this._invoke(t,e)}))}))}function D(e,t){function r(o,i,a,s){var l=c(e[o],e,i);if("throw"!==l.type){var u=l.arg,d=u.value;return d&&"object"==RC(d)&&n.call(d,"__await")?t.resolve(d.__await).then((function(e){r("next",e,a,s)}),(function(e){r("throw",e,a,s)})):t.resolve(d).then((function(e){u.value=e,a(u)}),(function(e){return r("throw",e,a,s)}))}s(l.arg)}var o;l(this,"_invoke",(function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}),!0)}function _(t,r){var n=r.method,o=t.i[n];if(o===e)return r.delegate=null,"throw"===n&&t.i.return&&(r.method="return",r.arg=e,_(t,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),d;var i=c(o,t.i,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,d;var a=i.arg;return a?a.done?(r[t.r]=a.value,r.next=t.n,"return"!==r.method&&(r.method="next",r.arg=e),r.delegate=null,d):a:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,d)}function x(e){this.tryEntries.push(e)}function k(t){var r=t[4]||{};r.type="normal",r.arg=e,t[4]=r}function E(e){this.tryEntries=[[-1]],e.forEach(x,this),this.reset(!0)}function w(t){if(null!=t){var r=t[i];if(r)return r.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,a=function r(){for(;++o<t.length;)if(n.call(t,o))return r.value=t[o],r.done=!1,r;return r.value=e,r.done=!0,r};return a.next=a}}throw new TypeError(RC(t)+" is not iterable")}return m.prototype=p,l(y,"constructor",p),l(p,"constructor",m),m.displayName=l(p,s,"GeneratorFunction"),t.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===m||"GeneratorFunction"===(t.displayName||t.name))},t.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,p):(e.__proto__=p,l(e,s,"GeneratorFunction")),e.prototype=Object.create(y),e},t.awrap=function(e){return{__await:e}},v(D.prototype),l(D.prototype,a,(function(){return this})),t.AsyncIterator=D,t.async=function(e,r,n,o,i){void 0===i&&(i=Promise);var a=new D(u(e,r,n,o),i);return t.isGeneratorFunction(r)?a:a.next().then((function(e){return e.done?e.value:a.next()}))},v(y),l(y,s,"Generator"),l(y,i,(function(){return this})),l(y,"toString",(function(){return"[object Generator]"})),t.keys=function(e){var t=Object(e),r=[];for(var n in t)r.unshift(n);return function e(){for(;r.length;)if((n=r.pop())in t)return e.value=n,e.done=!1,e;return e.done=!0,e}},t.values=w,E.prototype={constructor:E,reset:function(t){if(this.prev=this.next=0,this.sent=this._sent=e,this.done=!1,this.delegate=null,this.method="next",this.arg=e,this.tryEntries.forEach(k),!t)for(var r in this)"t"===r.charAt(0)&&n.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=e)},stop:function(){this.done=!0;var e=this.tryEntries[0][4];if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(t){if(this.done)throw t;var r=this;function n(e){a.type="throw",a.arg=t,r.next=e}for(var o=r.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i[4],s=this.prev,l=i[1],u=i[2];if(-1===i[0])return n("end"),!1;if(!l&&!u)throw Error("try statement without catch or finally");if(null!=i[0]&&i[0]<=s){if(s<l)return this.method="next",this.arg=e,n(l),!0;if(s<u)return n(u),!1}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n[0]>-1&&n[0]<=this.prev&&this.prev<n[2]){var o=n;break}}o&&("break"===e||"continue"===e)&&o[0]<=t&&t<=o[2]&&(o=null);var i=o?o[4]:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o[2],d):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),d},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[2]===e)return this.complete(r[4],r[3]),k(r),d}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r[0]===e){var n=r[4];if("throw"===n.type){var o=n.arg;k(r)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,r,n){return this.delegate={i:w(t),r,n},"next"===this.method&&(this.arg=e),d}},t}function BC(e,t,r,n,o,i,a){try{var s=e[i](a),l=s.value}catch(e){return void r(e)}s.done?t(l):Promise.resolve(l).then(n,o)}function zC(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return qC(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?qC(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.")}()}function qC(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var VC="";const UC=function(e){var t=zC((0,s.useState)(!1),2),r=t[0],n=t[1],o=(0,l.useDispatch)(u.store).editPost,c=(0,l.useDispatch)("core/notices").createNotice,d=e.defaultKeys,f=zC((0,s.useState)(""),2),m=f[0],p=f[1],h=zC((0,s.useState)(""),2),g=h[0],b=h[1],y=zC((0,s.useState)(""),2),v=y[0],_=y[1],x=zC((0,s.useState)(""),2),k=x[0],E=x[1],w=zC((0,s.useState)(""),2),C=w[0],M=w[1],A=zC((0,s.useState)(""),2),N=A[0],j=A[1],O=zC((0,s.useState)(""),2),T=O[0],S=O[1],I=zC((0,s.useState)(""),2),F=I[0],L=I[1],R=zC((0,s.useState)(!1),2),P=R[0],B=R[1],z=zC((0,s.useState)(""),2),q=z[0],V=z[1],U=zC((0,s.useState)(""),2),H=U[0],Y=U[1],Q=zC((0,s.useState)(!1),2),W=Q[0],G=Q[1],Z=zC((0,s.useState)(!1),2),$=Z[0],K=Z[1],X=zC((0,s.useState)(!1),2),J=X[0],ee=X[1],te=(0,l.useSelect)((function(e){return e(u.store).getEditedPostAttribute("meta")}));function re(e,t){var r={};r[e]=t,o({meta:r})}te&&"_srfm_submit_type"in te&&te._srfm_submit_type||o({meta:te=d});var ne=["srfm_security_settings_options"];return(0,s.useEffect)((function(){var e=function(){var e=function(e){return function(){var t=this,r=arguments;return new Promise((function(n,o){var i=e.apply(t,r);function a(e){BC(i,n,o,a,s,"next",e)}function s(e){BC(i,n,o,a,s,"throw",e)}a(void 0)}))}}(PC().mark((function e(){var t,r,n,o,i,a,s,l,u,c,d,f,m,h,g;return PC().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:return e.prev=0,e.next=3,WD()({path:"sureforms/v1/srfm-global-settings?options_to_fetch=".concat(ne),method:"GET",headers:{"content-type":"application/json","X-WP-Nonce":srfm_admin.global_settings_nonce}});case 3:(t=e.sent).srfm_security_settings_options&&(r=t.srfm_security_settings_options,n=r.srfm_v2_checkbox_site_key,o=r.srfm_v2_checkbox_secret_key,i=r.srfm_v2_invisible_site_key,a=r.srfm_v2_invisible_secret_key,s=r.srfm_v3_site_key,l=r.srfm_v3_secret_key,u=r.srfm_cf_turnstile_site_key,c=r.srfm_cf_turnstile_secret_key,d=r.srfm_hcaptcha_site_key,f=r.srfm_hcaptcha_secret_key,p(n||""),b(o||""),_(i||""),E(a||""),M(s||""),j(l||""),S(u||""),L(c||""),V(d||""),Y(f||""),h=i&&a,g=s&&l,((m=n&&o)&&h||m&&g||h&&g)&&B(!0)),e.next=10;break;case 7:e.prev=7,e.t0=e.catch(0),console.error("Error fetching data:",e.t0);case 10:case"end":return e.stop()}}),e,null,[[0,7]])})));return function(){return e.apply(this,arguments)}}();e()}),[]),React.createElement(React.Fragment,null,React.createElement(D,{title:(0,a.__)("Anti-Spam Settings","sureforms"),initialOpen:!1},React.createElement(i.SelectControl,{label:(0,a.__)("Security Type","sureforms"),value:te._srfm_captcha_security_type,options:[{value:"none",label:(0,a.__)("None","sureforms")},{value:"g-recaptcha",label:(0,a.__)("Google reCAPTCHA","sureforms")},{value:"cf-turnstile",label:(0,a.__)("CloudFlare Turnstile","sureforms")},{value:"hcaptcha",label:(0,a.__)("hCaptcha","sureforms")}],onChange:function(e){"cf-turnstile"===e?""!==T&&""!==F?(G(!1),re("_srfm_captcha_security_type",e)):G(!0):"hcaptcha"===e?""!==q&&""!==H?(G(!1),re("_srfm_captcha_security_type",e)):G(!0):(G(!1),re("_srfm_captcha_security_type",e))},__nextHasNoMarginBottom:!0}),"g-recaptcha"===te._srfm_captcha_security_type&&React.createElement(React.Fragment,null,P&&React.createElement(i.PanelRow,null,React.createElement("p",{className:"srfm-form-notice"},(0,a.__)("P.S. Note that If you are using two forms on the same page with the different reCAPTCHA versions (V2 checkbox and V3), it will create conflicts between the versions. Kindly avoid using different versions on same page.","sureforms"))),React.createElement(i.SelectControl,{label:(0,a.__)("Select the reCAPTCHA Version to Use","sureforms"),value:te._srfm_form_recaptcha,options:[{label:(0,a.__)("None","sureforms"),value:"none"},{label:(0,a.__)("reCAPTCHA v2 Checkbox","sureforms"),value:"v2-checkbox"},{label:(0,a.__)("reCAPTCHA v2 Invisible","sureforms"),value:"v2-invisible"},{label:(0,a.__)("reCAPTCHA v3","sureforms"),value:"v3-reCAPTCHA"}],onChange:function(e){"v2-checkbox"===e?""!==m&&""!==g?(G(!1),re("_srfm_form_recaptcha",e)):G(!0):"v2-invisible"===e?""!==k&&""!==v?(G(!1),re("_srfm_form_recaptcha",e)):G(!0):"v3-reCAPTCHA"===e?""!==N&&""!==C?(G(!1),re("_srfm_form_recaptcha",e)):G(!0):(G(!1),re("_srfm_form_recaptcha",e))},__nextHasNoMarginBottom:!0})),React.createElement("p",{className:"components-base-control__help"},(0,a.__)("Before selecting the security type, please make sure you have configured the API keys ","sureforms"),React.createElement(i.ExternalLink,{href:"".concat(srfm_admin.security_settings_url,"&subpage=recaptcha")},(0,a.__)("here","sureforms"))),W&&React.createElement("p",{style:{color:"red"}},(0,a.__)("Please configure the API keys correctly in the ","sureforms"),React.createElement(i.ExternalLink,{href:srfm_admin.security_settings_url},(0,a.__)("Global Settings","sureforms")))),React.createElement(D,{title:(0,a.__)("Advanced","sureforms"),initialOpen:!1},React.createElement(Oe,{data:{value:te._srfm_additional_classes,label:"_srfm_additional_classes"},label:(0,a.__)("Additional CSS Class(es)","sureforms"),value:te._srfm_additional_classes,onChange:function(e){re("_srfm_additional_classes",e)},isFormSpecific:!0}),React.createElement("p",{className:"components-base-control__help"},(0,a.__)("Class names should be separated by spaces. Each class name must not start with a digit, hyphen, or underscore. They can only include letters (including Unicode characters), numbers, hyphens, and underscores.","sureforms"))),React.createElement(Te,{settingName:(0,a.__)("Custom CSS","sureforms"),popupId:"form_custom_css",openModal:function(e){var t=e.currentTarget.getAttribute("data-popup");ee(t),K(!0),VC=btoa(JSON.stringify(te))}}),React.createElement(Ob,null,React.createElement(JD,{open:$,setOpen:K,close:function(){r&&!confirm((0,a.__)("Are you sure you want to close? Your unsaved changes will be lost as you have some validation errors.","sureforms"))||(K(!1),btoa(JSON.stringify(te))!==VC&&c("warning",(0,a.__)("There are few unsaved changes. Please save your changes to reflect the updates.","sureforms"),{id:"srfm-unsaved-changes-warning",isDismissible:!0}))},sureformsKeys:te,targetTab:J,setHasValidationErrors:n})))};var HC=o(6359),YC={};HC.A&&HC.A.locals&&(YC.locals=HC.A.locals);var QC,WC=0,GC={attributes:{id:"sureforms-editor-styles"}};GC.setAttributes=P(),GC.insert=L().bind(null,"head"),GC.domAPI=I(),GC.insertStyleElement=z(),YC.use=function(e){return GC.options=e||{},WC++||(QC=T()(HC.A,GC)),YC},YC.unuse=function(){WC>0&&! --WC&&(QC(),QC=null)};const ZC=YC;function $C(e){return $C="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},$C(e)}function KC(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function XC(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?KC(Object(r),!0).forEach((function(t){JC(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):KC(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function JC(e,t,r){return(t=function(e){var t=function(e){if("object"!=$C(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=$C(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==$C(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function eM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var tM="general",rM="style",nM="advance";const oM=function(e){(0,s.useLayoutEffect)((function(){return null==ZC||ZC.use(),function(){null==ZC||ZC.unuse()}}),[]);var t,r,n,o=f("srfmSettingState"),i=e.defaultTab,u=void 0===i?"general":i,c=e.children,d=e.tabs,p=void 0===d?["general","style","advance"]:d,h=(r=(0,s.useState)(u||p[0]),n=2,function(e){if(Array.isArray(e))return e}(r)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(r,n)||function(e,t){if(e){if("string"==typeof e)return eM(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?eM(e,t):void 0}}(r,n)||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.")}()),g=h[0],b=h[1],y=(0,s.useRef)();(0,s.useEffect)((function(){t=y.current.closest(".components-panel")}));var v=function(){var e=document.querySelector(".srfm-inspector-tabs-container"),t=document.querySelector(".components-panel__body.srfm-dynamic-content-wrap"),r=document.querySelector(".srfm-tab-content-general"),n=document.querySelector(".srfm-tab-content-style"),o=document.querySelector(".srfm-tab-content-advance");if(e){var i=e.parentElement;i&&(t=t||"",r=r||"",n=n||"",o=o||"",i.prepend(t,e,r,n,o))}};(0,s.useEffect)((function(){var e,r;v();var n,i=null===(e=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===e?void 0:e.name;return o&&o[i]&&g!==(null===(r=o[i])||void 0===r?void 0:r.selectedTab)?(b("general"),t&&t.setAttribute("data-srfm-tab",(null===(n=o[i])||void 0===n?void 0:n.selectedTab)||"general")):t&&t.setAttribute("data-srfm-tab","general"),function(){if(t){var e=t.querySelector(".srfm-inspector-tabs-container");e&&null!==e||t.removeAttribute("data-srfm-tab")}}}),[]);var D=function(e){var r;v(),b(e),(0,m.doAction)("srfm_inspector_change_tab",e),t&&t.setAttribute("data-srfm-tab",e);var n=null===(r=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===r?void 0:r.name,i=XC(XC({},o),{},JC({},n,{selectedTab:e})),a=f();a&&a.setItem("srfmSettingState",JSON.stringify(i))};return React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-inspector-tabs-container"},React.createElement("div",{ref:y,className:G()("srfm-inspector-tabs","srfm-inspector-tabs-count-"+p.length,g)},p.indexOf(tM)>-1&&React.createElement("div",{className:G()({"srfm-active":g===tM}),onClick:function(){return D(tM)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"16",height:"15"},React.createElement("path",{fillRule:"nonzero",d:"M14.346 0H1.654C1.017 0 .5.517.5 1.154v12.692C.5 14.483 1.017 15 1.654 15h12.692c.637 0 1.154-.517 1.154-1.154V1.154C15.5.517 14.983 0 14.346 0zm-5.77 13.846v-5.77h5.77v5.77h-5.77z"})),React.createElement("h5",null,(0,a.__)("General","sureforms"))),p.indexOf(rM)>-1&&React.createElement("div",{className:G()({"srfm-active":g===rM}),onClick:function(){return D(rM)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"18",height:"21"},React.createElement("g",{fillRule:"nonzero"},React.createElement("path",{d:"M15.12 12.091a.814.814 0 00-.68-.378.814.814 0 00-.68.378c-.531.863-2.252 3.807-2.252 5.09 0 1.598 1.317 2.901 2.932 2.901s2.933-1.303 2.933-2.902c0-1.303-1.722-4.226-2.253-5.089zm-1.041 3.828c-.043.063-.744 1.198-.213 1.976a.52.52 0 01.064.358.409.409 0 01-.191.294.608.608 0 01-.255.084.476.476 0 01-.383-.21c-.871-1.283.149-2.902.192-2.986a.517.517 0 01.297-.21.534.534 0 01.361.063c.192.126.255.42.128.63zM13.314 10.388l1.36-.147c.446-.042.807-.337.935-.736.127-.4.042-.862-.276-1.157L7.258.294c-.255-.252-.68-.252-.957 0a.68.68 0 000 .947l.34.336-5.1 5.047C.82 7.339.5 8.348.67 9.379c.128.652.489 1.24.956 1.703l3.082 3.05c.467.462 1.062.82 1.72.946a3.134 3.134 0 002.785-.863l3.612-3.575a.74.74 0 01.489-.252zM7.576 2.502l5.759 5.7H2.073c.085-.232.212-.463.403-.653l5.1-5.047z"}))),React.createElement("h5",null,(0,a.__)("Style","sureforms"))),p.indexOf(nM)>-1&&React.createElement("div",{className:G()({"srfm-active":g===nM}),onClick:function(){return D(nM)}},React.createElement("svg",{xmlns:"https://www.w3.org/2000/svg",width:"17",height:"16"},React.createElement("path",{fillRule:"nonzero",d:"M15.666 6.325c-.277-.05-.572-.082-.85-.115a6.385 6.385 0 00-.571-1.389c.18-.229.343-.457.523-.686a.994.994 0 00-.098-1.291l-.997-.997a.994.994 0 00-1.291-.098c-.23.163-.458.343-.687.523a6.954 6.954 0 00-1.39-.589c-.032-.277-.08-.572-.113-.85A.987.987 0 009.21 0H7.805a1 1 0 00-.98.834c-.05.277-.082.572-.115.85-.474.13-.947.326-1.389.571-.229-.18-.457-.343-.686-.523a.994.994 0 00-1.291.098l-.997.997a.994.994 0 00-.098 1.291c.163.23.343.458.523.687a6.954 6.954 0 00-.589 1.39c-.277.032-.572.08-.85.113A.987.987 0 00.5 7.29v1.406a1 1 0 00.834.98c.277.05.572.082.85.115.13.474.326.947.571 1.389-.18.229-.343.457-.523.686a.994.994 0 00.098 1.291l.997.997a.994.994 0 001.291.098c.23-.163.458-.343.687-.523.441.245.899.442 1.39.589.032.294.08.572.113.85.066.473.49.833.981.833h1.406a1 1 0 00.98-.834c.05-.277.082-.572.115-.85.474-.13.947-.326 1.389-.571.229.18.457.343.686.523a.994.994 0 001.291-.098l.997-.997a.994.994 0 00.098-1.291 19.095 19.095 0 00-.523-.687c.245-.441.442-.899.589-1.39.277-.032.572-.08.85-.113a.987.987 0 00.833-.981V7.305a1 1 0 00-.834-.98zM8.492 11.57a3.571 3.571 0 01-3.563-3.563 3.571 3.571 0 013.563-3.563 3.571 3.571 0 013.563 3.563 3.571 3.571 0 01-3.563 3.563z"})),React.createElement("h5",null,(0,a.__)("Advanced","sureforms"))))),Array.isArray(c)&&s.Children.map(c,(function(e,t){if(!e)return e;if(!e.key)throw new Error("props.key not found in <InspectorTab />, you must use `key` prop");return(0,s.cloneElement)(e,{index:t,isActive:e.key===g})})))},iM=function(e){var t,r,n=e.children,o=e.isActive,i=e.type,a=(0,s.useRef)(null),u=null===(t=(0,(0,l.select)("core/block-editor").getSelectedBlock)())||void 0===t?void 0:t.name;(0,s.useEffect)((function(){var e=f("srfmSettingState");if(e){var t,r,n,o,s=null===(t=e[u])||void 0===t?void 0:t.selectedTab,l=null===(r=e[u])||void 0===r?void 0:r.selectedPanel,c=null===(n=e[u])||void 0===n?void 0:n.selectedSetting,d=null===(o=e[u])||void 0===o?void 0:o.selectedInnerTab;if(s&&i===s){var m=!1;(m=l?a.current.querySelector(".".concat(l)):a.current.querySelector(".is-opened"))&&(m.classList.contains("is-opened")||m.querySelector(".components-button").click(),d&&setTimeout((function(){var e=m.querySelector(d);e&&!e.classList.contains("active-tab")&&e.click()}),100),c&&setTimeout((function(){var e=m.querySelector(c);e&&!e.classList.contains("active")&&e.querySelector(".components-button").click()}),100))}}}),[]);var c=null==u||null===(r=u.split("/"))||void 0===r?void 0:r.pop(),d=(0,m.applyFilters)("srfm.".concat(c,".tab_").concat(i,".before"),"",u),p=(0,m.applyFilters)("srfm.".concat(c,".tab_").concat(i),"",u);return React.createElement("div",{style:{display:o?"block":"none"},className:"srfm-inspector-tab srfm-tab-content-".concat(i),ref:a},d,Array.isArray(n)?n.map((function(e){return e})):n,(0,m.applyFilters)("srfm_".concat(i,"_tab_content"),"",e.parentProps),p)};var aM={key:"general",type:"general"},sM={key:"style",type:"style"},lM={key:"advance",type:"advance"};const uM=window.wp.coreData;var cM=o(5338);function dM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var fM=function(){var e,t,r=(0,l.useSelect)((function(e){return e("core/editor").getCurrentPostId()}),[]),n=(e=(0,uM.useEntityProp)("postType","sureforms_form","title",r),t=2,function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return dM(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?dM(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.")}()),o=n[0],u=n[1],c=(0,s.useRef)(null);return(0,s.useEffect)((function(){c.current&&!o&&c.current.focus()}),[]),React.createElement(i.TextControl,{ref:c,className:"srfm-header-title-input",placeholder:(0,a.__)("Form Title","sureforms"),value:o,onChange:function(e){u(e)},autoComplete:"off"})},mM=o(92253),pM={color:void 0,size:void 0,className:void 0,style:void 0,attr:void 0},hM=Le().createContext&&Le().createContext(pM),gM=function(){return gM=Object.assign||function(e){for(var t,r=1,n=arguments.length;r<n;r++)for(var o in t=arguments[r])Object.prototype.hasOwnProperty.call(t,o)&&(e[o]=t[o]);return e},gM.apply(this,arguments)};function bM(e){return e&&e.map((function(e,t){return Le().createElement(e.tag,gM({key:t},e.attr),bM(e.child))}))}function yM(e){return function(t){return Le().createElement(vM,gM({attr:gM({},e.attr)},t),bM(e.child))}}function vM(e){var t=function(t){var r,n=e.attr,o=e.size,i=e.title,a=function(e,t){var r={};for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&t.indexOf(n)<0&&(r[n]=e[n]);if(null!=e&&"function"==typeof Object.getOwnPropertySymbols){var o=0;for(n=Object.getOwnPropertySymbols(e);o<n.length;o++)t.indexOf(n[o])<0&&Object.prototype.propertyIsEnumerable.call(e,n[o])&&(r[n[o]]=e[n[o]])}return r}(e,["attr","size","title"]),s=o||t.size||"1em";return t.className&&(r=t.className),e.className&&(r=(r?r+" ":"")+e.className),Le().createElement("svg",gM({stroke:"currentColor",fill:"currentColor",strokeWidth:"0"},t.attr,n,a,{className:r,style:gM(gM({color:e.color||t.color},t.style),e.style),height:s,width:s,xmlns:"http://www.w3.org/2000/svg"}),i&&Le().createElement("title",null,i),e.children)};return void 0!==hM?Le().createElement(hM.Consumer,null,(function(e){return t(e)})):t(pM)}function DM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M9.4 16.6L4.8 12l4.6-4.6L8 6l-6 6 6 6 1.4-1.4zm5.2 0l4.6-4.6-4.6-4.6L16 6l6 6-6 6-1.4-1.4z"}}]})(e)}function _M(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M11.99 2C6.47 2 2 6.48 2 12s4.47 10 9.99 10C17.52 22 22 17.52 22 12S17.52 2 11.99 2zM12 20c-4.42 0-8-3.58-8-8s3.58-8 8-8 8 3.58 8 8-3.58 8-8 8z"}},{tag:"path",attr:{d:"M12.5 7H11v6l5.25 3.15.75-1.23-4.5-2.67z"}}]})(e)}function xM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 13c-2.76 0-5 2.24-5 5s2.24 5 5 5 5-2.24 5-5-2.24-5-5-5zm3 5.5h-2.5V21h-1v-2.5H15v-1h2.5V15h1v2.5H21v1zM7 5h13v2H7z"}},{tag:"circle",attr:{cx:"3.5",cy:"18",r:"1.5"}},{tag:"path",attr:{d:"M18 11H7v2h6.11c1.26-1.24 2.99-2 4.89-2zM7 17v2h4.08c-.05-.33-.08-.66-.08-1s.03-.67.08-1H7z"}},{tag:"circle",attr:{cx:"3.5",cy:"6",r:"1.5"}},{tag:"circle",attr:{cx:"3.5",cy:"12",r:"1.5"}}]})(e)}function kM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M19 4h-1V2h-2v2H8V2H6v2H5c-1.11 0-1.99.9-1.99 2L3 20a2 2 0 002 2h14c1.1 0 2-.9 2-2V6c0-1.1-.9-2-2-2zm0 16H5V10h14v10zm0-12H5V6h14v2zM9 14H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2zm-8 4H7v-2h2v2zm4 0h-2v-2h2v2zm4 0h-2v-2h2v2z"}}]})(e)}function EM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0z"}},{tag:"path",attr:{d:"M18 20H6v-3H4v3c0 1.1.9 2 2 2h12c1.1 0 2-.9 2-2v-3h-2v3zM6 4h7v5h5v2h2V8l-6-6H6c-1.1 0-2 .9-2 2v7h2V4zM9 13h6v2H9zM17 13h6v2h-6zM1 13h6v2H1z"}}]})(e)}function wM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M19.35 10.04A7.49 7.49 0 0012 4C9.11 4 6.6 5.64 5.35 8.04A5.994 5.994 0 000 14c0 3.31 2.69 6 6 6h13c2.76 0 5-2.24 5-5 0-2.64-2.05-4.78-4.65-4.96zM19 18H6c-2.21 0-4-1.79-4-4 0-2.05 1.53-3.76 3.56-3.97l1.07-.11.5-.95A5.469 5.469 0 0112 6c2.62 0 4.88 1.86 5.39 4.43l.3 1.5 1.53.11A2.98 2.98 0 0122 15c0 1.65-1.35 3-3 3zM8 13h2.55v3h2.9v-3H16l-4-4z"}}]})(e)}function CM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24"},child:[{tag:"path",attr:{fill:"none",d:"M0 0h24v24H0V0z"}},{tag:"path",attr:{d:"M22 9.24l-7.19-.62L12 2 9.19 8.63 2 9.24l5.46 4.73L5.82 21 12 17.27 18.18 21l-1.63-7.03L22 9.24zM12 15.4l-3.76 2.27 1-4.28-3.32-2.88 4.38-.38L12 6.1l1.71 4.04 4.38.38-3.32 2.88 1 4.28L12 15.4z"}}]})(e)}function MM(e){return yM({tag:"svg",attr:{viewBox:"0 0 640 512"},child:[{tag:"path",attr:{d:"M634 471L36 3.51A16 16 0 0 0 13.51 6l-10 12.49A16 16 0 0 0 6 41l598 467.49a16 16 0 0 0 22.49-2.49l10-12.49A16 16 0 0 0 634 471zM296.79 146.47l134.79 105.38C429.36 191.91 380.48 144 320 144a112.26 112.26 0 0 0-23.21 2.47zm46.42 219.07L208.42 260.16C210.65 320.09 259.53 368 320 368a113 113 0 0 0 23.21-2.46zM320 112c98.65 0 189.09 55 237.93 144a285.53 285.53 0 0 1-44 60.2l37.74 29.5a333.7 333.7 0 0 0 52.9-75.11 32.35 32.35 0 0 0 0-29.19C550.29 135.59 442.93 64 320 64c-36.7 0-71.71 7-104.63 18.81l46.41 36.29c18.94-4.3 38.34-7.1 58.22-7.1zm0 288c-98.65 0-189.08-55-237.93-144a285.47 285.47 0 0 1 44.05-60.19l-37.74-29.5a333.6 333.6 0 0 0-52.89 75.1 32.35 32.35 0 0 0 0 29.19C89.72 376.41 197.08 448 320 448c36.7 0 71.71-7.05 104.63-18.81l-46.41-36.28C359.28 397.2 339.89 400 320 400z"}}]})(e)}function AM(e){return yM({tag:"svg",attr:{viewBox:"0 0 15 15",fill:"none"},child:[{tag:"path",attr:{fillRule:"evenodd",clipRule:"evenodd",d:"M10.3004 7.49991C10.3004 8.4943 9.49426 9.30041 8.49988 9.30041C7.50549 9.30041 6.69938 8.4943 6.69938 7.49991C6.69938 6.50553 7.50549 5.69942 8.49988 5.69942C9.49426 5.69942 10.3004 6.50553 10.3004 7.49991ZM11.205 8C10.9699 9.28029 9.84816 10.2504 8.49988 10.2504C7.1516 10.2504 6.0299 9.28029 5.79473 8H0.5C0.223858 8 0 7.77614 0 7.5C0 7.22386 0.223858 7 0.5 7H5.7947C6.0298 5.71962 7.15154 4.74942 8.49988 4.74942C9.84822 4.74942 10.97 5.71962 11.2051 7H14.5C14.7761 7 15 7.22386 15 7.5C15 7.77614 14.7761 8 14.5 8H11.205Z",fill:"currentColor"}}]})(e)}function NM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M15 3h4a2 2 0 0 1 2 2v14a2 2 0 0 1-2 2h-4"}},{tag:"polyline",attr:{points:"10 17 15 12 10 7"}},{tag:"line",attr:{x1:"15",x2:"3",y1:"12",y2:"12"}}]})(e)}function jM(e){return yM({tag:"svg",attr:{viewBox:"0 0 24 24",fill:"none",stroke:"currentColor",strokeWidth:"2",strokeLinecap:"round",strokeLinejoin:"round"},child:[{tag:"path",attr:{d:"M16 21v-2a4 4 0 0 0-4-4H6a4 4 0 0 0-4 4v2"}},{tag:"circle",attr:{cx:"9",cy:"7",r:"4"}},{tag:"line",attr:{x1:"19",x2:"19",y1:"8",y2:"14"}},{tag:"line",attr:{x1:"22",x2:"16",y1:"11",y2:"11"}}]})(e)}var OM=function(e){var t=e.icon,r=e.label;return React.createElement("div",{className:"block-editor-block-types-list__list-item"},React.createElement("button",{type:"button",tabIndex:"-1",role:"option",className:"components-button block-editor-block-types-list__item",disabled:!0},React.createElement("span",{className:"block-editor-block-types-list__item-icon"},React.createElement("span",{className:"block-editor-block-icon"},t)),React.createElement("span",{className:"block-editor-block-types-list__item-title"},React.createElement("span",{className:"components-truncate"},r))))},TM=[{icon:React.createElement(kM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Date Picker","sureforms")},{icon:React.createElement(_M,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Time Picker","sureforms")},{icon:React.createElement(MM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Hidden","sureforms")},{icon:React.createElement(AM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Slider","sureforms")},{icon:React.createElement(EM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Page Break","sureforms")},{icon:React.createElement(CM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Rating","sureforms")},{icon:React.createElement(wM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Upload","sureforms")},{icon:React.createElement(DM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("HTML","sureforms")},{icon:React.createElement(xM,{size:24,color:"#B4B4B4"}),label:(0,a.__)("Repeater","sureforms"),showIn:["free","starter","pro"]},{icon:(0,Ee.Ay)(Xp.signature),label:(0,a.__)("Signature","sureforms"),showIn:["free","starter"]},{icon:React.createElement(NM,{size:24,color:"#B4B4B4",style:{fill:"none"}}),label:(0,a.__)("Login","sureforms"),showIn:["free","starter","pro"]},{icon:React.createElement(jM,{size:24,color:"#B4B4B4",style:{fill:"none"}}),label:(0,a.__)("Register","sureforms"),showIn:["free","starter","pro"]}].filter((function(e){var t,r=null===(t=srfm_block_data)||void 0===t||null===(t=t.pro_plugin_name.split(" ")[1])||void 0===t?void 0:t.toLowerCase();switch(e.showIn||(e.showIn=["free"]),r){case"free":return e.showIn.includes("free");case"starter":return e.showIn.includes("starter");case"pro":return e.showIn.includes("pro");case"business":return e.showIn.includes("business");default:return!0}})),SM=function(){return React.createElement("div",{className:"block-editor-inserter__panel-content"},React.createElement("div",{className:"block-editor-block-types-list"},TM.reduce((function(e,t,r){return r%3==0&&e.push(React.createElement("div",{role:"presentation",key:"group-".concat(r)},[])),e[e.length-1].props.children.push(React.createElement(OM,{key:r,icon:t.icon,label:t.label})),e}),[])))};const IM=function(){return 0===TM.length?null:React.createElement(React.Fragment,null,React.createElement("div",{className:"block-editor-inserter__panel-header"},React.createElement("h2",{className:"block-editor-inserter__panel-title"},(0,a.__)("SUREFORMS PREMIUM FIELDS","sureforms"))),React.createElement("div",{className:"srfm-upgrade-pro-btn-container"},React.createElement("button",{style:{},className:"srfm-upgrade-pro-btn",onClick:function(){var e;window.open((0,x.XB)(null===(e=srfm_admin)||void 0===e?void 0:e.sureforms_pricing_page,"sureforms_editor"),"_blank")}},(0,a.__)("Upgrade to Unlock These Fields","sureforms"))),React.createElement(SM,null))};function FM(e){var t=e.rootClientId,r=void 0===t?null:t;return React.createElement(c.Inserter,{position:"bottom center",rootClientId:r,__experimentalIsQuick:!0,className:"srfm-section__empty-block-inserter",renderToggle:function(e){var t=e.onToggle,r=e.disabled,n=e.isOpen;return React.createElement(i.Tooltip,{text:(0,a.__)("Add Block","sureforms")},React.createElement(i.Button,{className:"block-editor-button-block-appender srfm-custom-block-inserter-button",onClick:t,"aria-haspopup":"true","aria-expanded":n,disabled:r},React.createElement("svg",{xmlns:"http://www.w3.org/2000/svg",viewBox:"0 0 24 24",width:"24",height:"24",focusable:"false"},React.createElement("path",{d:"M11 12.5V17.5H12.5V12.5H17.5V11H12.5V6H11V11H6V12.5H11Z"}))))},isAppender:!0})}var LM=function(){return(0,l.useSelect)((function(e){return e("core/block-editor").getSelectedBlock()}))?null:React.createElement(FM,null)},RM=function(e){var t=(0,l.useSelect)((function(e){return e(u.store).getEditedPostAttribute("meta")})),r=(0,s.useRef)(null),n=(null==t?void 0:t._srfm_submit_button_text)||(0,a.__)("Submit","sureforms");return(0,s.useEffect)((function(){var e=function(){setTimeout((function(){var e=document.getElementById("tabs-0-edit-post/document");null==e||e.click()}),100),setTimeout((function(){var e=document.querySelectorAll(".srfm-inspector-tabs div")[1];null==e||e.click()}),150)};return r.current&&r.current.addEventListener("click",e),function(){r.current&&r.current.removeEventListener("click",e)}}),[]),function(e,t){return(0,m.applyFilters)("srfm.submit.button",e,t)}(React.createElement("button",{className:"srfm-submit-richtext srfm-button srfm-submit-button srfm-btn-alignment srfm-btn-bg-color",ref:r},React.createElement(c.RichText,{tagName:"label",value:n,onChange:function(t){return e.updateMeta("_srfm_submit_button_text",t)},placeholder:(0,a.__)("Submit","sureforms")})),t)};const PM=function(){return React.createElement("div",{className:"block-editor-block-card"},React.createElement("span",{className:"block-editor-block-icon has-colors"},React.createElement("svg",{width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",xmlns:"http://www.w3.org/2000/svg"},React.createElement("g",{clipPath:"url(#clip0_15961_16933)"},React.createElement("rect",{width:"24",height:"24",fill:"#D54407"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 5.14258H17.1431V8.57115H8.57171L6.85742 10.2854V8.57115V5.14258Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 10.2852H15.4288V13.7137H8.57171L6.85742 15.428V13.7137V10.2852Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"}),React.createElement("path",{d:"M6.85742 15.4287H12.0003V18.8573H6.85742V15.4287Z",fill:"white"})),React.createElement("defs",null,React.createElement("clipPath",{id:"clip0_15961_16933"},React.createElement("rect",{width:"24",height:"24",fill:"white"}))))),React.createElement("div",{className:"block-editor-block-card__content"},React.createElement("h2",{className:"block-editor-block-card__title"},(0,a.__)("SureForms","sureforms")),React.createElement("span",{className:"block-editor-block-card__description"},(0,a.__)("Customize with SureForms","sureforms"))))};var BM=wp.data,zM=BM.select,qM=BM.dispatch,VM={_srfm_use_label_as_placeholder:!1,_srfm_single_page_form_title:!0,_srfm_instant_form:!1,_srfm_is_inline_button:!1,_srfm_submit_button_text:(0,a.__)("Submit","sureforms"),_srfm_is_page_break:!1,_srfm_first_page_label:(0,a.__)("Page break","sureforms"),_srfm_page_break_progress_indicator:"connector",_srfm_page_break_toggle_label:!1,_srfm_previous_button_text:(0,a.__)("Previous","sureforms"),_srfm_next_button_text:(0,a.__)("Next","sureforms"),_srfm_form_container_width:650,_srfm_bg_type:"image",_srfm_bg_image:"",_srfm_cover_image:"",_srfm_bg_color:"#ffffff",_srfm_inherit_theme_button:!1,_srfm_submit_alignment:"left",_srfm_submit_width:"",_srfm_submit_alignment_backend:"100%",_srfm_submit_width_backend:"max-content",_srfm_additional_classes:"",_srfm_page_break_inherit_theme_button:!1,_srfm_page_break_button_bg_color:"#D54407",_srfm_page_break_button_text_color:"#ffffff",_srfm_page_break_button_border_color:"#ffffff",_srfm_page_break_button_border_width:0,_srfm_page_break_button_border_radius:4,_srfm_page_break_button_bg_type:"filled",_srfm_submit_type:"message",_srfm_thankyou_message_title:(0,a.__)("Thank you","sureforms"),_srfm_thankyou_message:(0,a.__)("Form submitted successfully!","sureforms"),_srfm_submit_url:"",_srfm_form_recaptcha:"none"};const UM=window.wp.compose;var HM=o(93832);const YM=function(e){var t=e.setHidePopover,r=(0,m.applyFilters)("srfm.instant_form_settings.conversational_forms",!1,t);return React.createElement(React.Fragment,null,!1===r?React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-instant-form-settings srfm-instant-form-settings-inline"},React.createElement("div",{className:"srfm-conversational-placeholder-label-ctn"},React.createElement("label",{htmlFor:"srfm-conversational-placeholder-toggle",style:{cursor:"pointer"}},(0,a.__)("Conversational Layout","sureforms")),React.createElement(pw,{tooltipHeading:(0,a.__)("Unlock Conversational Forms","sureforms"),tooltipContent:(0,a.__)("With the SureForms Pro Plan, you can transform your forms into engaging conversational layouts for a seamless user experience.","sureforms"),utmMedium:"sureforms_editor"})),React.createElement(i.FormToggle,{disabled:!0,label:"",id:"srfm-conversational-placeholder-toggle"}))):r)};function QM(e){return QM="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},QM(e)}function WM(){return WM=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},WM.apply(null,arguments)}function GM(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function ZM(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?GM(Object(r),!0).forEach((function(t){$M(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):GM(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function $M(e,t,r){return(t=function(e){var t=function(e){if("object"!=QM(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=QM(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==QM(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function KM(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return XM(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?XM(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.")}()}function XM(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}var JM={},eA=function(){var e,t,r=(0,l.useSelect)((function(e){var t=e(u.store),r=t.getEditedPostAttribute("meta"),n=t.getPermalinkParts();return{_srfm_submit_button_text:null==r?void 0:r._srfm_submit_button_text,_srfm_instant_form_settings:null==r?void 0:r._srfm_instant_form_settings,_srfm_forms_styling:null==r?void 0:r._srfm_forms_styling,getPermalinkParts:n}}),[]),n=r._srfm_submit_button_text||"",o=r._srfm_instant_form_settings||{},c=r._srfm_forms_styling||{},d=null==r||null===(e=r.getPermalinkParts)||void 0===e?void 0:e.prefix,f=null==r||null===(t=r.getPermalinkParts)||void 0===t?void 0:t.postName,p=o.cover_type,h=o.cover_color,g=o.cover_image,b=o.site_logo,y=o.enable_instant_form,v=o.form_container_width,D=o.single_page_form_title,_=o.use_banner_as_page_background;(0,x.B$)(me,c);var k=c.instant_form_padding_top,E=c.instant_form_padding_right,w=c.instant_form_padding_bottom,C=c.instant_form_padding_left,M=c.instant_form_padding_unit,A=c.instant_form_padding_link,N=c.instant_form_border_radius_top,j=c.instant_form_border_radius_right,O=c.instant_form_border_radius_bottom,T=c.instant_form_border_radius_left,S=c.instant_form_border_radius_unit,I=c.instant_form_border_radius_link,F=(0,l.useDispatch)(u.store).editPost,L=KM((0,s.useState)(!1),2),R=L[0],P=L[1],B=KM((0,s.useState)(),2),z=B[0],q=B[1],V=KM((0,s.useState)(!1),2),U=V[0],H=V[1],Y=KM((0,s.useState)(!1),2),Q=Y[0],W=Y[1],G=KM((0,s.useState)(!1),2),Z=G[0],$=G[1],K=KM((0,s.useState)({edit:!1,forceEmptyField:!1}),2),X=K[0],J=K[1],ee=d+f,te=(0,UM.useCopyToClipboard)(ee,(function(){$(!0),setTimeout((function(){return $(!1)}),2e3)})),re=function(){var e=arguments.length>0&&void 0!==arguments[0]&&arguments[0],t="srfm-instant-form-toggle-elements-style",r=document.getElementById(t);if(e)return null==r?void 0:r.remove();if(!r){var n=document.createElement("style");n.id=t,n.innerText=[".interface-interface-skeleton__body",".editor-header .editor-header__toolbar",".interface-navigable-region.interface-interface-skeleton__footer"].join(", ")+"{ display:none !important; }",n.innerText+=".editor-header__settings > :not(.srfm-instant-form-root) { visibility:hidden !important; }",document.head.append(n)}},ne=(0,m.applyFilters)("srfm.instantFormLivePreviewAdditionalMetas",{isLiveMode:R,_srfm_submit_button_text:n,_srfm_instant_form_settings:o}),oe=Object.values(ne);(0,s.useEffect)((function(){var e=document.querySelector("#editor .interface-interface-skeleton__editor");if(e){var t,r=e.querySelector(".srfm-instant-form-live-mode-iframe");if(!R)return null===(t=r)||void 0===t||t.remove(),re(!0),void(JM={});re();var i=(0,l.select)(u.store).getCurrentPost();r||((r=document.createElement("iframe")).className="srfm-instant-form-live-mode-iframe",r.setAttribute("style","height:100vh;background-color:#ffffff;"),e.append(r));var a,s,c,d=r.contentDocument,f=function(){var e=[];switch(function(e,t){var r="";for(var n in t)if(t.hasOwnProperty(n)&&e.hasOwnProperty(n)&&e[n]!==t[n]){r=n;break}return r}(JM,o)){case"cover_color":e.push("\n\t\t\t\t\t".concat(_?"html body.single-sureforms_form":".single-sureforms_form .srfm-single-page-container .srfm-page-banner"," {\n\t\t\t\t\t\tbackground-color: ").concat(h,";\n\t\t\t\t\t}\n\t\t\t\t"));break;case"form_container_width":e.push("\n\t\t\t\t\t#srfm-single-page-container {\n\t\t\t\t\t\t--srfm-form-container-width: ".concat(v,"px;\n\t\t\t\t\t}\n\t\t\t\t"))}return e}();if(f.length>0){var m=d.head.querySelector("#srfm-instant-form-live-mode-styles");m||((m=document.createElement("style")).id="srfm-instant-form-live-mode-styles"),m.innerHTML+=f.join(" "),d.head.append(m)}else{var p=d.querySelector("html");p.style.opacity=0,p.style.transition="all 0.5s ease-in-out",r.src=(a=i.link,s=new URL(a),(c=new URLSearchParams(s.search)).set("preview",!0),c.set("live_mode",!0),c.set("_srfm_submit_button_text",n),Object.keys(o).forEach((function(e){c.set(e,o[e])})),oe.forEach((function(e){Object.keys(e).forEach((function(t){c.set(t,e[t])}))})),s.search=c.toString(),s.toString())}JM=o}else JM={}}),[].concat(oe));var ie=function(e,t){if((null==o?void 0:o[e])!==t){var r=ZM(ZM({},o),$M({},e,t));F({meta:{_srfm_instant_form_settings:r}})}},ae=function(e){F({meta:{_srfm_forms_styling:ZM(ZM({},c),e)}})},se=function(e,t){var r,n=0,i=t;t&&t.url&&t.type&&"image"===t.type||(i=null),i&&(n=i.id,i=i.sizes.full.url),r=e+"_id";var a=ZM(ZM({},o),$M($M({},e,i),r,n));F({meta:{_srfm_instant_form_settings:a}})},le=(0,m.applyFilters)("srfm.instantFormComponent",{showInstantFormSiteLogoGroup:!0,showInstantFormStylingGroup:!0,showInstantFormTitleSetting:!0}),ue=le.showInstantFormSiteLogoGroup,ce=le.showInstantFormStylingGroup,de=le.showInstantFormTitleSetting,fe=function(e,t){return(0,m.applyFilters)("srfm.instant_form_settings.additional.settings",[],t)}(0,{setHidePopover:W});return React.createElement(React.Fragment,null,React.createElement("button",{ref:q,onClick:function(){return H(!U)},className:"srfm-instant-form-button"},React.createElement("div",{className:"srfm-instant-form-status",style:y?{backgroundColor:"#22C55E"}:{}}),React.createElement("span",null,(0,a.__)("Instant Form","sureforms"))),U&&React.createElement(i.Popover,{resize:!0,hidden:Q,placement:"bottom-end",anchor:z,onFocusOutside:function(e){var t,r;(null===(t=e.relatedTarget)||void 0===t?void 0:t.className)!==z.className&&(null!==(r=e.relatedTarget)&&void 0!==r&&null!==(r=r.className)&&void 0!==r&&r.includes("media-modal")?W(!0):H(!1))},className:"srfm-instant-form-popover"},React.createElement("div",{className:"srfm-instant-form-settings-container"},React.createElement("div",{className:"srfm-instant-form-settings-group"},React.createElement(tA,{label:(0,a.__)("Enable Instant Form","sureforms"),checked:!0===y,onChange:function(){return ie("enable_instant_form",!y)}}),React.createElement(tA,{label:(0,a.__)("Enable Preview","sureforms"),checked:!0===R,onChange:function(){return P(!R)}}),React.createElement(YM,{setHidePopover:W}),de&&React.createElement(tA,{label:(0,a.__)("Show Title","sureforms"),checked:!0===D,onChange:function(){return ie("single_page_form_title",!D)}})),React.createElement("div",{className:"srfm-instant-form-settings-separator"}),fe.length>0&&fe.map((function(e,t){return React.createElement("div",{key:t},e)})),ue&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-instant-form-settings-group"},React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement("label",null,(0,a.__)("Site Logo","sureforms")),React.createElement(aC,{label:"",onModalClose:function(){return W(!1)},onSelectImage:function(e){return se("site_logo",e)},backgroundImage:b,onRemoveImage:function(){return ie("site_logo","")},isFormSpecific:!0})),React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement("label",null,(0,a.__)("Banner Background","sureforms")),React.createElement(F_,{data:{value:p,label:"cover_type"},options:[{value:"color",label:(0,a.__)("Color","sureforms")},{value:"image",label:(0,a.__)("Image","sureforms")}],showIcons:!1,onChange:function(e){return ie("cover_type",e)}})),"image"===p?React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement("label",null,(0,a.__)("Upload Image","sureforms")),React.createElement(aC,{label:"",onModalClose:function(){return W(!1)},onSelectImage:function(e){return se("cover_image",e)},backgroundImage:g,onRemoveImage:function(){return ie("cover_image","")},isFormSpecific:!0})):React.createElement("div",{className:"srfm-instant-form-settings srfm-instant-form-settings-inline"},React.createElement("label",null,(0,a.__)("Background Color","sureforms")),React.createElement(E_,{colorValue:h,data:{value:h,label:"cover_color"},onColorChange:function(e){return ie("cover_color",e)},value:h,isFormSpecific:!0}))),React.createElement("div",{className:"srfm-instant-form-settings-separator"})),ce&&React.createElement(React.Fragment,null,React.createElement("div",{className:"srfm-instant-form-settings-group"},React.createElement(tA,{label:(0,a.__)("Use banner as page background","sureforms"),checked:!0===_,onChange:function(){return ie("use_banner_as_page_background",!_)}}),React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement(zw,{label:(0,a.__)("Form Width","sureforms"),data:{value:v,label:"form_container_width"},value:v,min:560,max:1e3,displayUnit:!1,responsive:!1,isFormSpecific:!0,onChange:function(e){return ie("form_container_width",e)}})),React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement(MC,{label:(0,a.__)("Instant Form Padding","sureforms"),valueTop:{value:k,label:"instant_form_padding_top"},valueRight:{value:E,label:"instant_form_padding_right"},valueBottom:{value:w,label:"instant_form_padding_bottom"},valueLeft:{value:C,label:"instant_form_padding_left"},unit:{value:M,label:"instant_form_padding_unit"},link:{value:A,label:"instant_form_padding_link"},setAttributes:ae})),React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement(MC,{label:(0,a.__)("Instant Form Border Radius","sureforms"),valueTop:{value:N,label:"instant_form_border_radius_top"},valueRight:{value:j,label:"instant_form_border_radius_right"},valueBottom:{value:O,label:"instant_form_border_radius_bottom"},valueLeft:{value:T,label:"instant_form_border_radius_left"},unit:{value:S,label:"instant_form_border_radius_unit"},link:{value:I,label:"instant_form_border_radius_link"},setAttributes:ae}))),React.createElement("div",{className:"srfm-instant-form-settings-separator"})),React.createElement("div",{className:"srfm-instant-form-settings-group"},React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement("label",null,(0,a.__)("URL","sureforms")),React.createElement("div",{className:"srfm-instant-form-url"},React.createElement("input",{readOnly:!0,disabled:X.edit,type:"url",value:ee,onClick:function(){return J(ZM(ZM({},X),{edit:!X.edit}))}}),React.createElement("button",{type:"button",ref:te},Z?(0,Ee.Ay)(Xp["square-checked"]):(0,Ee.Ay)(Xp.copy))),!!X.edit&&React.createElement(i.Popover,{variant:"toolbar",noArrow:!1,focusOnMount:!0,onFocusOutside:function(){return J(ZM(ZM({},X),{edit:!1}))}},React.createElement("div",{className:"srfm-instant-form-settings-container"},React.createElement("div",{className:"srfm-instant-form-settings-group"},React.createElement("div",{className:"srfm-instant-form-settings"},React.createElement("label",null,(0,a.__)("URL Slug","sureforms")),React.createElement("input",{type:"text",value:X.forceEmptyField?"":f,spellCheck:!1,autoComplete:"off",onChange:function(e){if(F({slug:e.target.value}),e.target.value)return J(ZM(ZM({},X),{forceEmptyField:!1}));J(ZM(ZM({},X),{forceEmptyField:!0}))},onBlur:function(e){F({slug:(0,HM.cleanForSlug)(e.target.value.replace(d,""))}),J(ZM(ZM({},X),{forceEmptyField:!1}))}}),React.createElement("small",null,(0,a.__)("The last part of the URL.","sureforms")," ",React.createElement(i.ExternalLink,{href:"https://wordpress.org/documentation/article/page-post-settings-sidebar/#permalink"},(0,a.__)("Learn more.","sureforms"))))))))))))},tA=function(e){var t=(0,s.useId)();return React.createElement("div",{className:"srfm-instant-form-settings srfm-instant-form-settings-inline"},React.createElement("label",{htmlFor:t,style:{cursor:"pointer"}},e.label),React.createElement(i.FormToggle,WM({},e,{label:"",id:t})))};function rA(e){return function(e){if(Array.isArray(e))return nA(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 nA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?nA(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 nA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}function oA(e){return oA="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},oA(e)}function iA(){return iA=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},iA.apply(null,arguments)}function aA(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function sA(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?aA(Object(r),!0).forEach((function(t){lA(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):aA(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function lA(e,t,r){return(t=function(e){var t=function(e){if("object"!=oA(e)||!e)return e;var t=e[Symbol.toPrimitive];if(void 0!==t){var r=t.call(e,"string");if("object"!=oA(r))return r;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"==oA(t)?t:t+""}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function uA(e,t){return function(e){if(Array.isArray(e))return e}(e)||function(e,t){var r=null==e?null:"undefined"!=typeof Symbol&&e[Symbol.iterator]||e["@@iterator"];if(null!=r){var n,o,i,a,s=[],l=!0,u=!1;try{if(i=(r=r.call(e)).next,0===t){if(Object(r)!==r)return;l=!1}else for(;!(l=(n=i.call(r)).done)&&(s.push(n.value),s.length!==t);l=!0);}catch(e){u=!0,o=e}finally{try{if(!l&&null!=r.return&&(a=r.return(),Object(a)!==a))return}finally{if(u)throw o}}return s}}(e,t)||function(e,t){if(e){if("string"==typeof e)return cA(e,t);var r={}.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?cA(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.")}()}function cA(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=Array(t);r<t;r++)n[r]=e[r];return n}(0,n.registerPlugin)("srfm-form-specific-settings",{render:function(e){var t=uA((0,s.useState)(!1),2),r=t[0],n=t[1],o=uA((0,s.useState)("enabled"),2),f=o[0],m=o[1],p=(0,l.useSelect)((function(e){var t;return{editorMode:null!==(t=(0,e(d.store).get)("core","editorMode"))&&void 0!==t?t:"visual",postId:e("core/editor").getCurrentPostId(),sureformsKeys:e(u.store).getEditedPostAttribute("meta"),blockCount:e(c.store).getBlockCount(),blocks:e("core/block-editor").getBlocks()}})),h=p.postId,g=p.sureformsKeys,b=p.blockCount,y=p.blocks,v=p.editorMode,D=(0,l.useDispatch)(u.store).editPost,x=uA((0,s.useState)(null),2),k=x[0],E=x[1],w=uA((0,s.useState)(null),2),C=w[0],M=w[1];(0,s.useEffect)((function(){E(document.querySelector(".is-root-container")),M(document.querySelector(".edit-post-visual-editor__content-area"))}),[]);var A=y.some((function(e){return"srfm/page-break"===e.name})),N=y.some((function(e){return"srfm/inline-button"===e.name})),j=_();function O(e,t){var r={};r[e]=t,D({meta:r})}(0,s.useEffect)((function(){var e;if(k&&"Desktop"===j)null==k||null===(e=k.classList)||void 0===e||e.add("srfm-form-container"),k.setAttribute("id","srfm-form-container");else if(C){var t;null==C||null===(t=C.classList)||void 0===t||t.add("srfm-form-container"),C.setAttribute("id","srfm-form-container")}}),[k,C,j]),function(e){(0,s.useEffect)((function(){!function(){var t=document.querySelector(".editor-styles-wrapper");if(t&&null!=e&&e._srfm_additional_classes){if(!t.hasAttribute("data-existing-classes")){var r=t.getAttribute("class");r&&t.setAttribute("data-existing-classes",r)}var n=e._srfm_additional_classes.split(" "),o=t.getAttribute("data-existing-classes");o&&(n=[].concat(rA(o.split(" ")),rA(n)));var i="";n.forEach((function(e){/^(?:[\0-,\.\/:-\^`-\uD7FF\uE000-\uFFFF]|[\uD800-\uDBFF][\uDC00-\uDFFF]|[\uD800-\uDBFF](?![\uDC00-\uDFFF])|(?:[^\uD800-\uDBFF]|^)[\uDC00-\uDFFF])(?:[\x2D0-9A-Z_a-z\xAA\xB2\xB3\xB5\xB9\xBA\xBC-\xBE\xC0-\xD6\xD8-\xF6\xF8-\u02C1\u02C6-\u02D1\u02E0-\u02E4\u02EC\u02EE\u0370-\u0374\u0376\u0377\u037A-\u037D\u037F\u0386\u0388-\u038A\u038C\u038E-\u03A1\u03A3-\u03F5\u03F7-\u0481\u048A-\u052F\u0531-\u0556\u0559\u0560-\u0588\u05D0-\u05EA\u05EF-\u05F2\u0620-\u064A\u0660-\u0669\u066E\u066F\u0671-\u06D3\u06D5\u06E5\u06E6\u06EE-\u06FC\u06FF\u0710\u0712-\u072F\u074D-\u07A5\u07B1\u07C0-\u07EA\u07F4\u07F5\u07FA\u0800-\u0815\u081A\u0824\u0828\u0840-\u0858\u0860-\u086A\u0870-\u0887\u0889-\u088E\u08A0-\u08C9\u0904-\u0939\u093D\u0950\u0958-\u0961\u0966-\u096F\u0971-\u0980\u0985-\u098C\u098F\u0990\u0993-\u09A8\u09AA-\u09B0\u09B2\u09B6-\u09B9\u09BD\u09CE\u09DC\u09DD\u09DF-\u09E1\u09E6-\u09F1\u09F4-\u09F9\u09FC\u0A05-\u0A0A\u0A0F\u0A10\u0A13-\u0A28\u0A2A-\u0A30\u0A32\u0A33\u0A35\u0A36\u0A38\u0A39\u0A59-\u0A5C\u0A5E\u0A66-\u0A6F\u0A72-\u0A74\u0A85-\u0A8D\u0A8F-\u0A91\u0A93-\u0AA8\u0AAA-\u0AB0\u0AB2\u0AB3\u0AB5-\u0AB9\u0ABD\u0AD0\u0AE0\u0AE1\u0AE6-\u0AEF\u0AF9\u0B05-\u0B0C\u0B0F\u0B10\u0B13-\u0B28\u0B2A-\u0B30\u0B32\u0B33\u0B35-\u0B39\u0B3D\u0B5C\u0B5D\u0B5F-\u0B61\u0B66-\u0B6F\u0B71-\u0B77\u0B83\u0B85-\u0B8A\u0B8E-\u0B90\u0B92-\u0B95\u0B99\u0B9A\u0B9C\u0B9E\u0B9F\u0BA3\u0BA4\u0BA8-\u0BAA\u0BAE-\u0BB9\u0BD0\u0BE6-\u0BF2\u0C05-\u0C0C\u0C0E-\u0C10\u0C12-\u0C28\u0C2A-\u0C39\u0C3D\u0C58-\u0C5A\u0C5D\u0C60\u0C61\u0C66-\u0C6F\u0C78-\u0C7E\u0C80\u0C85-\u0C8C\u0C8E-\u0C90\u0C92-\u0CA8\u0CAA-\u0CB3\u0CB5-\u0CB9\u0CBD\u0CDD\u0CDE\u0CE0\u0CE1\u0CE6-\u0CEF\u0CF1\u0CF2\u0D04-\u0D0C\u0D0E-\u0D10\u0D12-\u0D3A\u0D3D\u0D4E\u0D54-\u0D56\u0D58-\u0D61\u0D66-\u0D78\u0D7A-\u0D7F\u0D85-\u0D96\u0D9A-\u0DB1\u0DB3-\u0DBB\u0DBD\u0DC0-\u0DC6\u0DE6-\u0DEF\u0E01-\u0E30\u0E32\u0E33\u0E40-\u0E46\u0E50-\u0E59\u0E81\u0E82\u0E84\u0E86-\u0E8A\u0E8C-\u0EA3\u0EA5\u0EA7-\u0EB0\u0EB2\u0EB3\u0EBD\u0EC0-\u0EC4\u0EC6\u0ED0-\u0ED9\u0EDC-\u0EDF\u0F00\u0F20-\u0F33\u0F40-\u0F47\u0F49-\u0F6C\u0F88-\u0F8C\u1000-\u102A\u103F-\u1049\u1050-\u1055\u105A-\u105D\u1061\u1065\u1066\u106E-\u1070\u1075-\u1081\u108E\u1090-\u1099\u10A0-\u10C5\u10C7\u10CD\u10D0-\u10FA\u10FC-\u1248\u124A-\u124D\u1250-\u1256\u1258\u125A-\u125D\u1260-\u1288\u128A-\u128D\u1290-\u12B0\u12B2-\u12B5\u12B8-\u12BE\u12C0\u12C2-\u12C5\u12C8-\u12D6\u12D8-\u1310\u1312-\u1315\u1318-\u135A\u1369-\u137C\u1380-\u138F\u13A0-\u13F5\u13F8-\u13FD\u1401-\u166C\u166F-\u167F\u1681-\u169A\u16A0-\u16EA\u16EE-\u16F8\u1700-\u1711\u171F-\u1731\u1740-\u1751\u1760-\u176C\u176E-\u1770\u1780-\u17B3\u17D7\u17DC\u17E0-\u17E9\u17F0-\u17F9\u1810-\u1819\u1820-\u1878\u1880-\u1884\u1887-\u18A8\u18AA\u18B0-\u18F5\u1900-\u191E\u1946-\u196D\u1970-\u1974\u1980-\u19AB\u19B0-\u19C9\u19D0-\u19DA\u1A00-\u1A16\u1A20-\u1A54\u1A80-\u1A89\u1A90-\u1A99\u1AA7\u1B05-\u1B33\u1B45-\u1B4C\u1B50-\u1B59\u1B83-\u1BA0\u1BAE-\u1BE5\u1C00-\u1C23\u1C40-\u1C49\u1C4D-\u1C7D\u1C80-\u1C8A\u1C90-\u1CBA\u1CBD-\u1CBF\u1CE9-\u1CEC\u1CEE-\u1CF3\u1CF5\u1CF6\u1CFA\u1D00-\u1DBF\u1E00-\u1F15\u1F18-\u1F1D\u1F20-\u1F45\u1F48-\u1F4D\u1F50-\u1F57\u1F59\u1F5B\u1F5D\u1F5F-\u1F7D\u1F80-\u1FB4\u1FB6-\u1FBC\u1FBE\u1FC2-\u1FC4\u1FC6-\u1FCC\u1FD0-\u1FD3\u1FD6-\u1FDB\u1FE0-\u1FEC\u1FF2-\u1FF4\u1FF6-\u1FFC\u2070\u2071\u2074-\u2079\u207F-\u2089\u2090-\u209C\u2102\u2107\u210A-\u2113\u2115\u2119-\u211D\u2124\u2126\u2128\u212A-\u212D\u212F-\u2139\u213C-\u213F\u2145-\u2149\u214E\u2150-\u2189\u2460-\u249B\u24EA-\u24FF\u2776-\u2793\u2C00-\u2CE4\u2CEB-\u2CEE\u2CF2\u2CF3\u2CFD\u2D00-\u2D25\u2D27\u2D2D\u2D30-\u2D67\u2D6F\u2D80-\u2D96\u2DA0-\u2DA6\u2DA8-\u2DAE\u2DB0-\u2DB6\u2DB8-\u2DBE\u2DC0-\u2DC6\u2DC8-\u2DCE\u2DD0-\u2DD6\u2DD8-\u2DDE\u2E2F\u3005-\u3007\u3021-\u3029\u3031-\u3035\u3038-\u303C\u3041-\u3096\u309D-\u309F\u30A1-\u30FA\u30FC-\u30FF\u3105-\u312F\u3131-\u318E\u3192-\u3195\u31A0-\u31BF\u31F0-\u31FF\u3220-\u3229\u3248-\u324F\u3251-\u325F\u3280-\u3289\u32B1-\u32BF\u3400-\u4DBF\u4E00-\uA48C\uA4D0-\uA4FD\uA500-\uA60C\uA610-\uA62B\uA640-\uA66E\uA67F-\uA69D\uA6A0-\uA6EF\uA717-\uA71F\uA722-\uA788\uA78B-\uA7CD\uA7D0\uA7D1\uA7D3\uA7D5-\uA7DC\uA7F2-\uA801\uA803-\uA805\uA807-\uA80A\uA80C-\uA822\uA830-\uA835\uA840-\uA873\uA882-\uA8B3\uA8D0-\uA8D9\uA8F2-\uA8F7\uA8FB\uA8FD\uA8FE\uA900-\uA925\uA930-\uA946\uA960-\uA97C\uA984-\uA9B2\uA9CF-\uA9D9\uA9E0-\uA9E4\uA9E6-\uA9FE\uAA00-\uAA28\uAA40-\uAA42\uAA44-\uAA4B\uAA50-\uAA59\uAA60-\uAA76\uAA7A\uAA7E-\uAAAF\uAAB1\uAAB5\uAAB6\uAAB9-\uAABD\uAAC0\uAAC2\uAADB-\uAADD\uAAE0-\uAAEA\uAAF2-\uAAF4\uAB01-\uAB06\uAB09-\uAB0E\uAB11-\uAB16\uAB20-\uAB26\uAB28-\uAB2E\uAB30-\uAB5A\uAB5C-\uAB69\uAB70-\uABE2\uABF0-\uABF9\uAC00-\uD7A3\uD7B0-\uD7C6\uD7CB-\uD7FB\uF900-\uFA6D\uFA70-\uFAD9\uFB00-\uFB06\uFB13-\uFB17\uFB1D\uFB1F-\uFB28\uFB2A-\uFB36\uFB38-\uFB3C\uFB3E\uFB40\uFB41\uFB43\uFB44\uFB46-\uFBB1\uFBD3-\uFD3D\uFD50-\uFD8F\uFD92-\uFDC7\uFDF0-\uFDFB\uFE70-\uFE74\uFE76-\uFEFC\uFF10-\uFF19\uFF21-\uFF3A\uFF41-\uFF5A\uFF66-\uFFBE\uFFC2-\uFFC7\uFFCA-\uFFCF\uFFD2-\uFFD7\uFFDA-\uFFDC]|\uD800[\uDC00-\uDC0B\uDC0D-\uDC26\uDC28-\uDC3A\uDC3C\uDC3D\uDC3F-\uDC4D\uDC50-\uDC5D\uDC80-\uDCFA\uDD07-\uDD33\uDD40-\uDD78\uDD8A\uDD8B\uDE80-\uDE9C\uDEA0-\uDED0\uDEE1-\uDEFB\uDF00-\uDF23\uDF2D-\uDF4A\uDF50-\uDF75\uDF80-\uDF9D\uDFA0-\uDFC3\uDFC8-\uDFCF\uDFD1-\uDFD5]|\uD801[\uDC00-\uDC9D\uDCA0-\uDCA9\uDCB0-\uDCD3\uDCD8-\uDCFB\uDD00-\uDD27\uDD30-\uDD63\uDD70-\uDD7A\uDD7C-\uDD8A\uDD8C-\uDD92\uDD94\uDD95\uDD97-\uDDA1\uDDA3-\uDDB1\uDDB3-\uDDB9\uDDBB\uDDBC\uDDC0-\uDDF3\uDE00-\uDF36\uDF40-\uDF55\uDF60-\uDF67\uDF80-\uDF85\uDF87-\uDFB0\uDFB2-\uDFBA]|\uD802[\uDC00-\uDC05\uDC08\uDC0A-\uDC35\uDC37\uDC38\uDC3C\uDC3F-\uDC55\uDC58-\uDC76\uDC79-\uDC9E\uDCA7-\uDCAF\uDCE0-\uDCF2\uDCF4\uDCF5\uDCFB-\uDD1B\uDD20-\uDD39\uDD80-\uDDB7\uDDBC-\uDDCF\uDDD2-\uDE00\uDE10-\uDE13\uDE15-\uDE17\uDE19-\uDE35\uDE40-\uDE48\uDE60-\uDE7E\uDE80-\uDE9F\uDEC0-\uDEC7\uDEC9-\uDEE4\uDEEB-\uDEEF\uDF00-\uDF35\uDF40-\uDF55\uDF58-\uDF72\uDF78-\uDF91\uDFA9-\uDFAF]|\uD803[\uDC00-\uDC48\uDC80-\uDCB2\uDCC0-\uDCF2\uDCFA-\uDD23\uDD30-\uDD39\uDD40-\uDD65\uDD6F-\uDD85\uDE60-\uDE7E\uDE80-\uDEA9\uDEB0\uDEB1\uDEC2-\uDEC4\uDF00-\uDF27\uDF30-\uDF45\uDF51-\uDF54\uDF70-\uDF81\uDFB0-\uDFCB\uDFE0-\uDFF6]|\uD804[\uDC03-\uDC37\uDC52-\uDC6F\uDC71\uDC72\uDC75\uDC83-\uDCAF\uDCD0-\uDCE8\uDCF0-\uDCF9\uDD03-\uDD26\uDD36-\uDD3F\uDD44\uDD47\uDD50-\uDD72\uDD76\uDD83-\uDDB2\uDDC1-\uDDC4\uDDD0-\uDDDA\uDDDC\uDDE1-\uDDF4\uDE00-\uDE11\uDE13-\uDE2B\uDE3F\uDE40\uDE80-\uDE86\uDE88\uDE8A-\uDE8D\uDE8F-\uDE9D\uDE9F-\uDEA8\uDEB0-\uDEDE\uDEF0-\uDEF9\uDF05-\uDF0C\uDF0F\uDF10\uDF13-\uDF28\uDF2A-\uDF30\uDF32\uDF33\uDF35-\uDF39\uDF3D\uDF50\uDF5D-\uDF61\uDF80-\uDF89\uDF8B\uDF8E\uDF90-\uDFB5\uDFB7\uDFD1\uDFD3]|\uD805[\uDC00-\uDC34\uDC47-\uDC4A\uDC50-\uDC59\uDC5F-\uDC61\uDC80-\uDCAF\uDCC4\uDCC5\uDCC7\uDCD0-\uDCD9\uDD80-\uDDAE\uDDD8-\uDDDB\uDE00-\uDE2F\uDE44\uDE50-\uDE59\uDE80-\uDEAA\uDEB8\uDEC0-\uDEC9\uDED0-\uDEE3\uDF00-\uDF1A\uDF30-\uDF3B\uDF40-\uDF46]|\uD806[\uDC00-\uDC2B\uDCA0-\uDCF2\uDCFF-\uDD06\uDD09\uDD0C-\uDD13\uDD15\uDD16\uDD18-\uDD2F\uDD3F\uDD41\uDD50-\uDD59\uDDA0-\uDDA7\uDDAA-\uDDD0\uDDE1\uDDE3\uDE00\uDE0B-\uDE32\uDE3A\uDE50\uDE5C-\uDE89\uDE9D\uDEB0-\uDEF8\uDFC0-\uDFE0\uDFF0-\uDFF9]|\uD807[\uDC00-\uDC08\uDC0A-\uDC2E\uDC40\uDC50-\uDC6C\uDC72-\uDC8F\uDD00-\uDD06\uDD08\uDD09\uDD0B-\uDD30\uDD46\uDD50-\uDD59\uDD60-\uDD65\uDD67\uDD68\uDD6A-\uDD89\uDD98\uDDA0-\uDDA9\uDEE0-\uDEF2\uDF02\uDF04-\uDF10\uDF12-\uDF33\uDF50-\uDF59\uDFB0\uDFC0-\uDFD4]|\uD808[\uDC00-\uDF99]|\uD809[\uDC00-\uDC6E\uDC80-\uDD43]|\uD80B[\uDF90-\uDFF0]|[\uD80C\uD80E\uD80F\uD81C-\uD820\uD822\uD840-\uD868\uD86A-\uD86C\uD86F-\uD872\uD874-\uD879\uD880-\uD883\uD885-\uD887][\uDC00-\uDFFF]|\uD80D[\uDC00-\uDC2F\uDC41-\uDC46\uDC60-\uDFFF]|\uD810[\uDC00-\uDFFA]|\uD811[\uDC00-\uDE46]|\uD818[\uDD00-\uDD1D\uDD30-\uDD39]|\uD81A[\uDC00-\uDE38\uDE40-\uDE5E\uDE60-\uDE69\uDE70-\uDEBE\uDEC0-\uDEC9\uDED0-\uDEED\uDF00-\uDF2F\uDF40-\uDF43\uDF50-\uDF59\uDF5B-\uDF61\uDF63-\uDF77\uDF7D-\uDF8F]|\uD81B[\uDD40-\uDD6C\uDD70-\uDD79\uDE40-\uDE96\uDF00-\uDF4A\uDF50\uDF93-\uDF9F\uDFE0\uDFE1\uDFE3]|\uD821[\uDC00-\uDFF7]|\uD823[\uDC00-\uDCD5\uDCFF-\uDD08]|\uD82B[\uDFF0-\uDFF3\uDFF5-\uDFFB\uDFFD\uDFFE]|\uD82C[\uDC00-\uDD22\uDD32\uDD50-\uDD52\uDD55\uDD64-\uDD67\uDD70-\uDEFB]|\uD82F[\uDC00-\uDC6A\uDC70-\uDC7C\uDC80-\uDC88\uDC90-\uDC99]|\uD833[\uDCF0-\uDCF9]|\uD834[\uDEC0-\uDED3\uDEE0-\uDEF3\uDF60-\uDF78]|\uD835[\uDC00-\uDC54\uDC56-\uDC9C\uDC9E\uDC9F\uDCA2\uDCA5\uDCA6\uDCA9-\uDCAC\uDCAE-\uDCB9\uDCBB\uDCBD-\uDCC3\uDCC5-\uDD05\uDD07-\uDD0A\uDD0D-\uDD14\uDD16-\uDD1C\uDD1E-\uDD39\uDD3B-\uDD3E\uDD40-\uDD44\uDD46\uDD4A-\uDD50\uDD52-\uDEA5\uDEA8-\uDEC0\uDEC2-\uDEDA\uDEDC-\uDEFA\uDEFC-\uDF14\uDF16-\uDF34\uDF36-\uDF4E\uDF50-\uDF6E\uDF70-\uDF88\uDF8A-\uDFA8\uDFAA-\uDFC2\uDFC4-\uDFCB\uDFCE-\uDFFF]|\uD837[\uDF00-\uDF1E\uDF25-\uDF2A]|\uD838[\uDC30-\uDC6D\uDD00-\uDD2C\uDD37-\uDD3D\uDD40-\uDD49\uDD4E\uDE90-\uDEAD\uDEC0-\uDEEB\uDEF0-\uDEF9]|\uD839[\uDCD0-\uDCEB\uDCF0-\uDCF9\uDDD0-\uDDED\uDDF0-\uDDFA\uDFE0-\uDFE6\uDFE8-\uDFEB\uDFED\uDFEE\uDFF0-\uDFFE]|\uD83A[\uDC00-\uDCC4\uDCC7-\uDCCF\uDD00-\uDD43\uDD4B\uDD50-\uDD59]|\uD83B[\uDC71-\uDCAB\uDCAD-\uDCAF\uDCB1-\uDCB4\uDD01-\uDD2D\uDD2F-\uDD3D\uDE00-\uDE03\uDE05-\uDE1F\uDE21\uDE22\uDE24\uDE27\uDE29-\uDE32\uDE34-\uDE37\uDE39\uDE3B\uDE42\uDE47\uDE49\uDE4B\uDE4D-\uDE4F\uDE51\uDE52\uDE54\uDE57\uDE59\uDE5B\uDE5D\uDE5F\uDE61\uDE62\uDE64\uDE67-\uDE6A\uDE6C-\uDE72\uDE74-\uDE77\uDE79-\uDE7C\uDE7E\uDE80-\uDE89\uDE8B-\uDE9B\uDEA1-\uDEA3\uDEA5-\uDEA9\uDEAB-\uDEBB]|\uD83C[\uDD00-\uDD0C]|\uD83E[\uDFF0-\uDFF9]|\uD869[\uDC00-\uDEDF\uDF00-\uDFFF]|\uD86D[\uDC00-\uDF39\uDF40-\uDFFF]|\uD86E[\uDC00-\uDC1D\uDC20-\uDFFF]|\uD873[\uDC00-\uDEA1\uDEB0-\uDFFF]|\uD87A[\uDC00-\uDFE0\uDFF0-\uDFFF]|\uD87B[\uDC00-\uDE5D]|\uD87E[\uDC00-\uDE1D]|\uD884[\uDC00-\uDF4A\uDF50-\uDFFF]|\uD888[\uDC00-\uDFAF])*$/.test(e)&&(i+=" ".concat(e))})),t.setAttribute("class",i)}}()}),[null==e?void 0:e._srfm_additional_classes])}(g);var T=(null==g?void 0:g._srfm_form_custom_css)||"";(0,s.useEffect)((function(){if(T){var e=document.getElementById("srfm-blocks-editor-custom-css");if(e)e.textContent=".edit-post-visual-editor{"+T+"}";else{var t=document.createElement("style");t.setAttribute("id","srfm-blocks-editor-custom-css"),t.textContent=".edit-post-visual-editor{"+T+"}",document.head.appendChild(t)}}}),[T]),(0,s.useEffect)((function(){var e;"boolean"==typeof(null==g||null===(e=g._srfm_page_break_settings)||void 0===e?void 0:e.is_page_break)&&O("_srfm_page_break_settings",sA(sA({},g._srfm_page_break_settings),{},{is_page_break:A})),"boolean"==typeof(null==g?void 0:g._srfm_is_inline_button)&&O("_srfm_is_inline_button",N)}),[b]),function(e){var t=e.isInlineButtonBlockPresent,r=e.updateMeta,n=e.editorMode;(0,s.useEffect)((function(){setTimeout((function(){var e=document.querySelector(".block-editor-block-list__layout");if(t){var o=document.querySelectorAll(".srfm-submit-btn-container");o.length>0&&o[0].remove()}if(!t&&"visual"===n){e&&function(e){if(!e.closest("body").querySelector(".srfm-submit-btn-container")){e.insertAdjacentHTML("afterend",'<div class="srfm-custom-block-inserter"></div><div class="srfm-submit-btn-container srfm-submit-btn-font-size"></div>');var t=e.parentElement.querySelector(".srfm-custom-block-inserter");t&&(0,cM.H)(t).render(React.createElement(LM,null))}var n=e.parentElement.querySelector(".srfm-submit-btn-container");n&&((null==n?void 0:n.querySelector("button"))||(0,cM.H)(n).render(React.createElement(RM,{updateMeta:r})))}(e);var i=document.querySelectorAll(".srfm-submit-btn-container");i.length>1&&i[1].remove();var a=document.querySelectorAll(".srfm-custom-block-inserter");a.length>1&&a[1].remove()}}),200)}),[t,n])}({isInlineButtonBlockPresent:N,updateMeta:O,editorMode:v}),(0,s.useEffect)((function(){if("/wp-admin/site-editor.php"===new URL(window.location.href).pathname)(0,mM.v)(window.location.href),window.navigation.addEventListener("navigate",(function(e){(0,mM.v)(e.destination.url)}));else if(void 0!==f)(0,mM.S)();else{var e=document.querySelector(".srfm-ee-quick-access");e&&(e.innerHTML=null)}}),[f]);var S=uA((0,s.useState)(srfm_block_data.is_pro_active),2);return S[0],S[1],(0,s.useEffect)((function(){var e=new(window.MutationObserver||window.WebKitMutationObserver||window.MozMutationObserver)((function(){var e;(e=document.querySelector(".block-editor-inserter__tabs .block-editor-inserter__tablist-and-close-button"))&&e.remove(),function(){var e=document.querySelector(".block-editor-inserter__block-list");if(e&&!e.querySelector(".upgrade-pro-container")){var t=document.createElement("div");t.className="upgrade-pro-container",e.appendChild(t),(0,s.render)(React.createElement(IM,null),t)}}()})),t=document.body;return e.observe(t,{childList:!0,subtree:!0}),function(){return e.disconnect()}}),[]),React.createElement(React.Fragment,null,React.createElement(u.PluginDocumentSettingPanel,{name:"srfm-description",className:"srfm-single-form-settings-description",title:(0,a.__)("SureForms Description","sureforms")},React.createElement(PM,null)),React.createElement(u.PluginDocumentSettingPanel,{className:"srfm--panel",name:"srfm-sidebar",title:(0,a.__)("Form Options","sureforms")},React.createElement(oM,{tabs:["general","style","advance"],defaultTab:"general"},React.createElement(iM,aM,React.createElement(s_,{defaultKeys:VM,enableQuickActionSidebar:f,setEnableQuickActionSidebar:m,isPageBreak:A})),React.createElement(iM,sM,React.createElement(LC,{defaultKeys:VM,isInlineButtonBlockPresent:N,isPageBreak:A})),React.createElement(iM,iA({},lM,{parentProps:e}),React.createElement(UC,{defaultKeys:VM}))),React.createElement(u.PluginPostPublishPanel,null,React.createElement(i.PanelRow,null,React.createElement(i.BaseControl,{id:"srfm-form-shortcode",label:(0,a.__)("Form Shortcode","sureforms"),help:(0,a.__)("Paste this shortcode on the page or post to render this form.","sureforms")},React.createElement("div",{className:"srfm-shortcode"},React.createElement(i.TextControl,{value:'[sureforms id="'.concat(h,'"]'),disabled:!0}),React.createElement(i.ClipboardButton,{onCopy:function(){return n(!0)},onFinishCopy:function(){return n(!1)},icon:r?"yes":"admin-page",text:'[sureforms id="'.concat(h,'"]'),style:{marginTop:"5px"}})))))))},icon:"palmtree"}),wp.domReady((function(){var e;zM("core/edit-post").isEditorSidebarOpened()||qM("core/edit-post").openGeneralSidebar("edit-post/document"),zM("core/editor").isEditorPanelEnabled("srfm-form-specific-settings/srfm-sidebar")||qM("core/edit-post").toggleEditorPanelEnabled("srfm-form-specific-settings/srfm-sidebar"),zM("core/editor").isEditorPanelOpened("srfm-form-specific-settings/srfm-sidebar")||qM("core/edit-post").toggleEditorPanelOpened("srfm-form-specific-settings/srfm-sidebar"),e=setInterval((function(){var t=document.querySelector(".edit-post-header__center")||document.querySelector(".editor-header__center");if(t){clearInterval(e);var r=document.querySelector(".editor-post-title__block");r&&r.remove(),(0,cM.H)(t).render(React.createElement(fM,null))}}),50),function(){var e=document.getElementById("editor");if(e){var t=document.createElement("div");t.classList.add("srfm-instant-form-root");var r=(0,cM.H)(t),n=wp.data.subscribe((function(){setTimeout((function(){if(r.render(React.createElement(eA,null)),!document.querySelector(".srfm-instant-form-root")){var n=e.querySelector(".edit-post-header__settings")||e.querySelector(".editor-header__settings");n&&n.prepend(t)}}),1)}));document.querySelector(".srfm-instant-form-root")&&n()}}()}))})()})();


📤 Upload File


📁 Create Folder