/*! For license information please see 8a88c433219c5537669ed1c7af67b2c75f16113f-348f9c59eb68154a55a6.js.LICENSE.txt */ (self.webpackChunkquarkly_export=self.webpackChunkquarkly_export||[]).push([[228],{2590:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o,i=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=m(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=t[s]}o.default=t,n&&n.set(t,o);return o}(n(3696)),s=n(8231),a=n(7228),l=n(8844),u=f(n(185)),c=n(8686),d=f(n(5036)),h=n(2948),p=n(5363);function f(t){return t&&t.__esModule?t:{default:t}}function m(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(m=function(t){return t?n:e})(t)}function y(){return y=Object.assign||function(t){for(var e=1;e=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}var g,b,w=(0,u.default)(l.Box)(o||(g=["\n aspect-ratio: ",";\n"],b||(b=g.slice(0)),o=Object.freeze(Object.defineProperties(g,{raw:{value:Object.freeze(b)}}))),(function(t){return t.aspectRatio})),x=function(t){var e=t.aspectRatio,n=t.slidesWrapper,r=t.showArrows,o=t.showDots,u=t.showHead,f=t.showText,m=t.showLink,g=v(t,["aspectRatio","slidesWrapper","showArrows","showDots","showHead","showText","showLink"]),b=(0,a.useOverrides)(g,h.overrides),x=b.override,P=b.rest,S=(0,i.useRef)(null),O=(0,i.useRef)(null),A=(0,s.useSelector)((function(t){return t})),T=A.slidesNumb,E=A.slidesList,j=A.animDuration,k=A.animFunction,M=A.active,D=A.position,C=A.animate,I=(0,s.useDispatch)(),R=(0,i.useCallback)((function(t){return I({type:"CLICK_NUMB",active:t})}),[I]),L=(0,i.useCallback)((function(){I((0,p.clickPrev)())}),[I]),V=(0,i.useCallback)((function(){I((0,p.clickNext)())}),[I]);(0,d.default)(S,V,L);var F=(0,i.useMemo)((function(){return"auto"!==e?e.replace(":","/"):e}),[e]);return i.default.createElement(l.Box,y({ref:S,position:"relative","align-self":"normal",overflow:"hidden"},P),i.default.createElement(w,y({ref:O},x("Slides"),{transform:"translateX(-".concat(D,"%)"),transition:C?"transform ".concat(j,"ms ").concat(k):"none",aspectRatio:F}),E.map((function(t,e){return i.default.createElement(c.Slide,{key:"".concat(P["data-qid"],"-slide-").concat(t,"-").concat(e),index:e,slides:T,slidesWrapper:n,numb:t,showHead:u,showText:f,showLink:m,override:x})}))),r&&i.default.createElement(l.Box,x("Arrows"),i.default.createElement(c.Arrow,{type:"Prev",clickFunc:L,override:x}),i.default.createElement(c.Arrow,{type:"Next",clickFunc:V,override:x})),o&&i.default.createElement(l.Box,x("Points"),E.slice(1,-1).map((function(t,e){return i.default.createElement(c.Point,{key:"point-".concat(t,"-").concat(e),numb:t,active:M,clickFunc:R,override:x})}))))};e.default=x},4222:function(t,e,n){"use strict";function r(t){return r="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},r(t)}Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var o=function(t,e){if(!e&&t&&t.__esModule)return t;if(null===t||"object"!==r(t)&&"function"!=typeof t)return{default:t};var n=h(e);if(n&&n.has(t))return n.get(t);var o={},i=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var s in t)if("default"!==s&&Object.prototype.hasOwnProperty.call(t,s)){var a=i?Object.getOwnPropertyDescriptor(t,s):null;a&&(a.get||a.set)?Object.defineProperty(o,s,a):o[s]=t[s]}o.default=t,n&&n.set(t,o);return o}(n(3696)),i=n(8231),s=n(7868),a=d(n(6995)),l=n(2948),u=n(5363),c=d(n(2590));function d(t){return t&&t.__esModule?t:{default:t}}function h(t){if("function"!=typeof WeakMap)return null;var e=new WeakMap,n=new WeakMap;return(h=function(t){return t?n:e})(t)}var p=function(t){var e=(0,o.useMemo)((function(){return(0,s.createStore)(u.rootReducer,u.initialState,(0,s.applyMiddleware)(a.default))}),[]),n=t.slidesProp,r=t.durationProp,l=t.functionProp,d=t.autoPlay,h=t.autoPlayBehavior,p=t.autoPlayIntervalProp,f=t.autoPlayDelayProp,m=t.autoPlayPauseProp;return(0,o.useEffect)((function(){return e.dispatch((0,u.init)({slidesProp:n,durationProp:r,functionProp:l,autoPlay:d,autoPlayBehavior:h,autoPlayIntervalProp:p,autoPlayDelayProp:f,autoPlayPauseProp:m})),function(){return e.dispatch((0,u.deinit)())}}),[e,n,r,l,d,h,p,f,m]),o.default.createElement(i.Provider,{store:e},o.default.createElement(c.default,t))};Object.assign(p,{title:"Carousel",description:{en:"Slider with images that can be scrolled by pressing the arrows or dot buttons",ru:"Лента с изображениями, которую можно листать нажатием на стрелки или точки"},propInfo:l.propInfo,defaultProps:l.defaultProps,overrides:l.overrides});var f=p;e.default=f},6787:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r,o=(r=n(3696))&&r.__esModule?r:{default:r},i=n(8844);function s(){return s=Object.assign||function(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=0||(o[n]=t[n]);return o}(t,e);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(t);for(r=0;r=0||Object.prototype.propertyIsEnumerable.call(t,n)&&(o[n]=t[n])}return o}(e,["type"]);return r(r({},t),n)}},51:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){switch(e.type){case"CLICK_NUMB":return(0,r.clickNumb)(t,e);case"SET_SLIDE":return(0,r.setSlide)(t,e);case"SET_DATA":return(0,r.setData)(t,e);default:return t}};var r=n(3712)},5350:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.init=function(t){var e=t.slidesProp,n=t.durationProp,r=t.functionProp,a=t.autoPlay,u=t.autoPlayBehavior,d=t.autoPlayIntervalProp,p=t.autoPlayDelayProp,f=t.autoPlayPauseProp;return function(t){var m,y=parseInt(e,10)>0?parseInt(e,10):1,v=[y].concat(function(t){if(Array.isArray(t))return c(t)}(m=Array.from({length:y},(function(t,e){return e+1})))||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(m)||function(t,e){if(t){if("string"==typeof t)return c(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);return"Object"===n&&t.constructor&&(n=t.constructor.name),"Map"===n||"Set"===n?Array.from(t):"Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)?c(t,e):void 0}}(m)||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.")}(),[1]),g=parseFloat(n)>0?1e3*parseFloat(n):0,b=r,w=(0,o.parseTime)(d,i.defaultProps.autoPlayIntervalProp),x=(0,o.parseTime)(p,i.defaultProps.autoPlayDelayProp),P=(0,o.parseTime)(f,i.defaultProps.autoPlayPauseProp);t(l(l({type:"SET_DATA"},s.default),{},{slidesNumb:y,slidesList:v,animDuration:g,animFunction:b,autoPlay:a,autoPlayBehavior:u,autoPlayInterval:w,autoPlayDelay:x,autoPlayPause:P})),a&&t(h())}},e.deinit=function(){return function(t,e){var n=e(),r=n.animTimeoutId,o=n.autoPlayIntervalId,i=n.autoPlayDelayId,a=n.autoPlayPauseId;clearTimeout(r),clearInterval(o),clearTimeout(i),clearTimeout(a),t(l({type:"SET_DATA"},s.default))}},e.clickNext=e.clickPrev=void 0;var r,o=n(6496),i=n(2948),s=(r=n(7971))&&r.__esModule?r:{default:r};function a(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function l(t){for(var e=1;et.length)&&(e=t.length);for(var n=0,r=new Array(e);n=o?p():m())}),o);t({type:"SET_DATA",autoPlayIntervalId:n})}),i);t({type:"SET_DATA",autoPlayDelayId:s})}},p=function(){return function(t,e){var n=e(),r=n.autoPlayDelayId,o=n.autoPlayIntervalId,i=n.autoPlayPauseId;clearTimeout(i),clearTimeout(r),clearInterval(o),t({type:"SET_DATA",autoPlayIntervalId:null,autoPlayDelayId:null,autoPlayPauseId:null})}},f=function(){return function(t,e){var n=e(),r=n.slidesNumb,o=n.animDuration,i=n.animTimeoutId,s=n.active;if(!n.lock){var a=s>1?s-1:r;if(a===r){t({type:"SET_SLIDE",active:a,position:0,animate:!0,lock:!0}),clearTimeout(i);var l=setTimeout((function(){t({type:"SET_SLIDE",active:a,position:100*r,animate:!1,lock:!1})}),o);t({type:"SET_DATA",animTimeoutId:l})}else t({type:"SET_SLIDE",active:a,position:100*a,animate:!0,lock:!1})}}},m=function(){return function(t,e){var n=e(),r=n.slidesNumb,o=n.animDuration,i=n.animTimeoutId,s=n.active;if(!n.lock){var a=s2&&void 0!==arguments[2]?arguments[2]:function(){return!0},r=parseFloat(t);return!Number.isNaN(r)&&n(r)?r:parseFloat(e)};e.default=n},6496:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"isEmptyChildren",{enumerable:!0,get:function(){return r.default}}),Object.defineProperty(e,"parseTime",{enumerable:!0,get:function(){return o.default}}),Object.defineProperty(e,"toggleScroll",{enumerable:!0,get:function(){return i.default}}),Object.defineProperty(e,"waitDOMLoaded",{enumerable:!0,get:function(){return s.default}}),Object.defineProperty(e,"pick",{enumerable:!0,get:function(){return a.default}}),Object.defineProperty(e,"getAPI",{enumerable:!0,get:function(){return l.default}}),Object.defineProperty(e,"useColor",{enumerable:!0,get:function(){return u.default}}),Object.defineProperty(e,"useDebounce",{enumerable:!0,get:function(){return c.default}}),Object.defineProperty(e,"useDebouncedCallback",{enumerable:!0,get:function(){return d.default}}),Object.defineProperty(e,"useUpdateEffect",{enumerable:!0,get:function(){return h.default}}),Object.defineProperty(e,"useUniqueId",{enumerable:!0,get:function(){return p.default}}),Object.defineProperty(e,"isString",{enumerable:!0,get:function(){return f.default}}),Object.defineProperty(e,"getNumber",{enumerable:!0,get:function(){return m.default}});var r=y(n(7186)),o=y(n(3862)),i=y(n(6779)),s=y(n(4722)),a=y(n(2391)),l=y(n(7798)),u=y(n(2904)),c=y(n(2524)),d=y(n(965)),h=y(n(4315)),p=y(n(9937)),f=y(n(703)),m=y(n(17));function y(t){return t&&t.__esModule?t:{default:t}}},7186:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t){return!o.default.Children.toArray(t).some((function(t){return t&&!i(t)&&!s(t)}))};var r,o=(r=n(3696))&&r.__esModule?r:{default:r};var i=function(t){return t&&t.props&&"child placeholder"===t.props.text},s=function(t){return t&&t.props&&"string"==typeof t.props.slot&&t.props.slot.length>0}},703:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t){return"string"==typeof t||t instanceof String};e.default=n},3862:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=function(t,e){if(n.test(t))return parseInt(t,10);if(r.test(t))return 1e3*parseFloat(t,10);return 1e3*parseFloat(e,10)};var n=/^[0-9]{1,}(ms)?$/i,r=/^(.?|[0-9]{1,}.?)[0-9]{1,}s$/i},2391:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r1&&void 0!==arguments[1]?arguments[1]:"transparent";if(t){var n=(0,o.useTheme)();return(0,r.useMemo)((function(){return"--"===t.substring(0,2)?n.color[t.substring(2)]||e:i.test(t)?t:e}),[n,t,e])}};e.default=s},2524:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3696);function o(t,e){return function(t){if(Array.isArray(t))return t}(t)||function(t,e){var n=t&&("undefined"!=typeof Symbol&&t[Symbol.iterator]||t["@@iterator"]);if(null==n)return;var r,o,i=[],s=!0,a=!1;try{for(n=n.call(t);!(s=(r=n.next()).done)&&(i.push(r.value),!e||i.length!==e);s=!0);}catch(l){a=!0,o=l}finally{try{s||null==n.return||n.return()}finally{if(a)throw o}}return i}(t,e)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(t,e)||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(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n2?arguments[2]:void 0,n=function(t,e){var n,r=this;return function(){for(var o=arguments.length,i=new Array(o),s=0;s1&&void 0!==arguments[1]?arguments[1]:100);return(0,r.useCallback)(n,[n,e])};e.default=o},9937:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3696),o=0,i=function(){return(0,r.useRef)(o+=1).current};e.default=i},4315:function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var r=n(3696);function o(t){return function(t){if(Array.isArray(t))return i(t)}(t)||function(t){if("undefined"!=typeof Symbol&&null!=t[Symbol.iterator]||null!=t["@@iterator"])return Array.from(t)}(t)||function(t,e){if(!t)return;if("string"==typeof t)return i(t,e);var n=Object.prototype.toString.call(t).slice(8,-1);"Object"===n&&t.constructor&&(n=t.constructor.name);if("Map"===n||"Set"===n)return Array.from(t);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return i(t,e)}(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.")}()}function i(t,e){(null==e||e>t.length)&&(e=t.length);for(var n=0,r=new Array(e);n1&&void 0!==arguments[1]?arguments[1]:[],n=(0,r.useRef)(!0);(0,r.useEffect)((function(){if(!n.current)return t();n.current=!1}),[t].concat(o(e)))};e.default=s},4722:function(t,e){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.default=void 0;var n=function(t){return new Promise((function(e){t.addEventListener("DOMLoaded",(function(){e()}),{once:!0})}))};e.default=n},7228:function(t,e,n){"use strict";n.r(e),n.d(e,{Formspree:function(){return W},GoogleMap:function(){return z},Menu:function(){return st},ON:function(){return d.ON},Override:function(){return lt.A},RawHtml:function(){return ut.A},SSR_ONLY:function(){return d.GN},STRATEGY_WHITE_LIST:function(){return d.PM},Section:function(){return x},SectionContent:function(){return l},SocialMedia:function(){return at.A},Stack:function(){return S},StackItem:function(){return E},StackItemContent:function(){return O},WHEN_IDLE:function(){return d.gb},WHEN_VISIBLE:function(){return d.uK},reIsDeepProp:function(){return u.Du},reIsNumProp:function(){return u.J8},useLazyHydrate:function(){return c.z},useOverrides:function(){return u.Pv},useSeparatedProps:function(){return ct}});var r=n(8102),o=n(1515),i=n(1705),s=n(3696),a=n(605);function l(t){var e=t.iw,n=t.imaxw,i=t.iminw,l=t.children,u=(0,o.A)(t,["iw","imaxw","iminw","children"]);return s.createElement(a.A,(0,r.A)({display:"flex","flex-direction":"column",width:e,"max-width":n,"min-width":i,"min-height":"16px",margin:"0 auto"},u,{"data-qkind":"SectionContent"}),l)}Object.assign(l,{effects:{hover:":hover"}});var u=n(2669),c=n(4267),d=n(5710);function h(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function p(t){for(var e=1;e0?[n]:[]}))),this;default:return console.warn("Unexpected mode"),this}}},{key:"truncate",value:function(t){return this._trunc(t,0)}},{key:"_trunc",value:function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return this.children&&(this.children=this.children.flatMap((function(n){return e>=t?[]:[n._trunc(t,e+1)]}))),this}}],r=[{key:"fromPages",value:function(t){return this._fromPages(t)}},{key:"_fromPages",value:function(e){var n=this,r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"root",o=arguments.length>2&&void 0!==arguments[2]?arguments[2]:"",i=e[r],s=i.children,a=new t;return a.id=i.id,a.name=i.name,a.pageUrl=i.pageUrl,a.absoluteUrl="root"!==r?"".concat(o,"/").concat(i.pageUrl):"",s&&(a.children=s.map((function(t){return n._fromPages(e,t,a.absoluteUrl)}))),a}}],n&&G(e.prototype,n),r&&G(e,r),Object.defineProperty(e,"prototype",{writable:!1}),t}(),J={depth:1,rootId:"","exact-active-match":!0,filterMode:X.exclude},Q={depth:{title:{en:"Maximum nesting",ru:"Максимальная вложенность"},control:"input",type:"number",category:"Main",weight:1},rootId:{title:{en:"Root page",ru:"Корневая страница"},control:"page",category:"Main",weight:1},"exact-active-match":{title:{en:"Don't mark parent active items",ru:"Не выделять родительские активные пункты"},control:"checkbox",category:"Main",weight:1},filterMode:{title:{en:"Filter mode",ru:"Режим фильтрации"},control:"radio-group",variants:[{title:{en:"Hide selected pages",ru:"Скрыть страницы"},value:X.exclude},{title:{en:"Show only pages",ru:"Показать страницы"},value:X.include}],category:"Pages",weight:1},filterPages:{title:{en:"Filter pages",ru:"Список страниц"},control:"page",multiply:!0,category:"Pages",weight:1}},tt=n(9890),et=I.Ay.ul(),nt=I.Ay.li(),rt=function(t){var e,n=t.exact,o=void 0!==n&&n,i=t.override,a=t.item,l=!!(null==a||null===(e=a.children)||void 0===e?void 0:e.length),u={exact:o,override:i,item:a},c=((0,tt.A)()||{}).projectType,d=a.absoluteUrl,h=null;h="gatsby"===c?(0,$.useMatch)(d)||null:(0,q.W5)({path:d,exact:o})||null;var p=a.name,f=a.pageUrl,m=i("link",h&&"link-active","link-".concat(f),{defaultKey:"link-".concat(f)});return s.createElement(nt,i("item",h&&"item-active","item-".concat(f),{defaultKey:"item-".concat(f)}),s.createElement(R.A,(0,r.A)({href:d},m),m.children||p),l&&s.createElement(ot,(0,r.A)({tree:a},u,i("sub","sub-".concat(f)))))},ot=function(t){var e,n=t.override,i=t.exact,a=t.tree,l=(0,o.A)(t,["override","exact","tree"]),u={override:n,exact:i,tree:a},c=null!==(e=null==a?void 0:a.children)&&void 0!==e?e:[];return s.createElement(et,l,c.map((function(t){return s.createElement(rt,(0,r.A)({key:t.id,item:t},u))})))},it=function(t){var e=t.rootId,n=void 0===e?"":e,i=t.depth,a=t.filterMode,l=t.filterPages,c=t["exact-active-match"],d=(0,o.A)(t,["rootId","depth","filterMode","filterPages","exact-active-match"]),h=(0,u.Pv)(d,H,J),p=h.override,f=h.rest,m=(0,tt.A)().pages||{},y=(null==l?void 0:l.length)>0?l.split(","):[],v=Z.fromPages(m).findSubtreeByUrl(n).filterByPages(a,y).truncate(i);return s.createElement(ot,(0,r.A)({tree:v,depth:i,exact:c,override:p,padding:"6px",margin:"0px","list-style":"none"},f))};Object.assign(it,{title:"Menu",description:{en:"Use this component to add a simple menu to your website",ru:"Простое меню для вашего сайта"},defaultProps:J,overrides:H,propInfo:Q});var st=it,at=n(2898),lt=n(267),ut=n(4129),ct=function(t){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r0?parseInt(u):1}),[u]),v=(0,l.useMemo)((function(){return parseInt(c)>0?parseInt(c):1}),[c]),g=(0,l.useRef)(null);return(0,l.useImperativeHandle)(e,(function(){return g.current})),!(0,W.z)({strategy:z.uK},g)&&i?l.createElement(x.A,(0,s.A)({display:"flex"},m,{ref:g,dangerouslySetInnerHTML:{__html:""}})):l.createElement(x.A,(0,s.A)({margin:"0",padding:"24px 0",width:"100%",display:"flex"},m,{ref:g}),l.createElement(U,(0,s.A)({iw:n,imaxw:r,iminw:o,cellsTotal:y,cellsGroup:v},p("Content"))),f)})),Y=$({"cells-number-total":{title:"Total number of cells",control:"input",type:"number",category:"Cells",weight:1},"cells-number-group":{title:"Number of cells in the pattern",control:"input",type:"number",category:"Cells",weight:1},"inner-width":{title:"Content width",control:"input",library:"components.section.width",transformer:"width",category:"Main",weight:1},"inner-min-width":{title:"Content min width",control:"input",library:"components.section.minWidth",transformer:"width",category:"Main",weight:1},"inner-max-width":{title:"Content max width",control:"input",library:"components.section.maxWidth",transformer:"width",category:"Main",weight:1},"lazy-load":{type:"boolean",control:"checkbox",category:"Main"}},d.Wf,{},d.Q4),G=$({"cells-number-total":"3","inner-width":"--cmp-section-width-default","inner-min-width":"--cmp-section-minWidth-default","inner-max-width":"--cmp-section-maxWidth-default","lazy-load":!0},d.wh),X=Object.assign(K,{overrides:H,defaultProps:G,effects:{hover:":hover"},propInfo:Y}),Z={name:"I",normalize:!0,mixins:!0,description:{en:"Italic text",ru:"Italic text"},propInfo:v.vq},J=u.Ay.em(Z,v.Fs),Q=u.Ay.i(Z,v.Fs),tt=n(6965),et={name:"Strike",normalize:!0,mixins:!0,description:{en:"Strike text",ru:"Strike text"},propInfo:v.vq},nt=(0,u.Ay)("strike")(et,v.Fs),rt=u.Ay.s(et,v.Fs),ot=n(1458),it=function(t){return!l.Children.toArray(t).some((function(t){return t&&!function(t){return t&&t.props&&"child placeholder"===t.props.text}(t)&&!function(t){return t&&t.props&&"string"==typeof t.props.slot&&t.props.slot.length>0}(t)}))};function st(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function at(t){for(var e=1;e=0;r--){var o=e[r](t);if(o)return o}return function(e,r){throw new Error("Invalid value of type "+typeof t+" for "+n+" argument when connecting component "+r.wrappedComponentName+".")}}function U(t,e){return t===e}function W(t){var e=void 0===t?{}:t,n=e.connectHOC,r=void 0===n?A:n,o=e.mapStateToPropsFactories,i=void 0===o?C:o,s=e.mapDispatchToPropsFactories,a=void 0===s?D:s,l=e.mergePropsFactories,u=void 0===l?R:l,c=e.selectorFactory,p=void 0===c?B:c;return function(t,e,n,o){void 0===o&&(o={});var s=o,l=s.pure,c=void 0===l||l,f=s.areStatesEqual,m=void 0===f?U:f,y=s.areOwnPropsEqual,v=void 0===y?E:y,g=s.areStatePropsEqual,b=void 0===g?E:g,w=s.areMergedPropsEqual,x=void 0===w?E:w,P=(0,h.A)(s,_),S=N(t,i,"mapStateToProps"),O=N(e,a,"mapDispatchToProps"),A=N(n,u,"mergeProps");return r(p,(0,d.A)({methodName:"connect",getDisplayName:function(t){return"Connect("+t+")"},shouldHandleStateChanges:Boolean(t),initMapStateToProps:S,initMapDispatchToProps:O,initMergeProps:A,pure:c,areStatesEqual:m,areOwnPropsEqual:v,areStatePropsEqual:b,areMergedPropsEqual:x},P))}}var z=W();function q(){return(0,r.useContext)(o)}function $(t){void 0===t&&(t=o);var e=t===o?q:function(){return(0,r.useContext)(t)};return function(){return e().store}}var H=$();function K(t){void 0===t&&(t=o);var e=t===o?H:$(t);return function(){return e().dispatch}}var Y=K(),G=function(t,e){return t===e};function X(t){void 0===t&&(t=o);var e=t===o?q:function(){return(0,r.useContext)(t)};return function(t,n){void 0===n&&(n=G);var o=e(),i=function(t,e,n,o){var i,s=(0,r.useReducer)((function(t){return t+1}),0)[1],a=(0,r.useMemo)((function(){return l(n,o)}),[n,o]),c=(0,r.useRef)(),d=(0,r.useRef)(),h=(0,r.useRef)(),p=(0,r.useRef)(),f=n.getState();try{if(t!==d.current||f!==h.current||c.current){var m=t(f);i=void 0!==p.current&&e(m,p.current)?p.current:m}else i=p.current}catch(y){throw c.current&&(y.message+="\nThe error may be correlated with this previous error:\n"+c.current.stack+"\n\n"),y}return u((function(){d.current=t,h.current=f,p.current=i,c.current=void 0})),u((function(){function t(){try{var t=n.getState();if(t===h.current)return;var r=d.current(t);if(e(r,p.current))return;p.current=r,h.current=t}catch(y){c.current=y}s()}return a.onStateChange=t,a.trySubscribe(),t(),function(){return a.tryUnsubscribe()}}),[n,a]),i}(t,n,o.store,o.subscription);return(0,r.useDebugValue)(i),i}}var Z,J=X(),Q=n(8325);Z=Q.unstable_batchedUpdates,i=Z},9338:function(t,e){"use strict";var n=60103,r=60106,o=60107,i=60108,s=60114,a=60109,l=60110,u=60112,c=60113,d=60120,h=60115,p=60116,f=60121,m=60122,y=60117,v=60129,g=60131;if("function"==typeof Symbol&&Symbol.for){var b=Symbol.for;n=b("react.element"),r=b("react.portal"),o=b("react.fragment"),i=b("react.strict_mode"),s=b("react.profiler"),a=b("react.provider"),l=b("react.context"),u=b("react.forward_ref"),c=b("react.suspense"),d=b("react.suspense_list"),h=b("react.memo"),p=b("react.lazy"),f=b("react.block"),m=b("react.server.block"),y=b("react.fundamental"),v=b("react.debug_trace_mode"),g=b("react.legacy_hidden")}function w(t){if("object"==typeof t&&null!==t){var e=t.$$typeof;switch(e){case n:switch(t=t.type){case o:case s:case i:case c:case d:return t;default:switch(t=t&&t.$$typeof){case l:case u:case p:case h:case a:return t;default:return e}}case r:return e}}}e.isContextConsumer=function(t){return w(t)===l}},6246:function(t,e,n){"use strict";t.exports=n(9338)},6995:function(t,e,n){"use strict";function r(t){return function(e){var n=e.dispatch,r=e.getState;return function(e){return function(o){return"function"==typeof o?o(n,r,t):e(o)}}}}n.r(e);var o=r();o.withExtraArgument=r,e.default=o},7868:function(t,e,n){"use strict";n.r(e),n.d(e,{__DO_NOT_USE__ActionTypes:function(){return u},applyMiddleware:function(){return v},bindActionCreators:function(){return m},combineReducers:function(){return p},compose:function(){return y},createStore:function(){return d},legacy_createStore:function(){return h}});var r=n(1705);function o(t,e){var n=Object.keys(t);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(t);e&&(r=r.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),n.push.apply(n,r)}return n}function i(t){for(var e=1;e"create"===r?t:(e.has(r)||e.set(r,t(r)),e.get(r))})}function i(t){return null!==t&&"object"==typeof t&&"function"==typeof t.start}const s=t=>Array.isArray(t);function a(t,e){if(!Array.isArray(e))return!1;const n=e.length;if(n!==t.length)return!1;for(let r=0;r{e[0][n]=t.get(),e[1][n]=t.getVelocity()})),e}function c(t,e,n,r){if("function"==typeof e){const[o,i]=u(r);e=e(void 0!==n?n:t.custom,o,i)}if("string"==typeof e&&(e=t.variants&&t.variants[e]),"function"==typeof e){const[o,i]=u(r);e=e(void 0!==n?n:t.custom,o,i)}return e}function d(t,e,n){const r=t.getProps();return c(r,e,void 0!==n?n:r.custom,t)}const h=["animate","whileInView","whileFocus","whileHover","whileTap","whileDrag","exit"],p=["initial",...h];function f(t){let e;return()=>(void 0===e&&(e=t()),e)}const m=f((()=>void 0!==window.ScrollTimeline));class y{constructor(t){this.stop=()=>this.runAll("stop"),this.animations=t.filter(Boolean)}get finished(){return Promise.all(this.animations.map((t=>"finished"in t?t.finished:t)))}getAll(t){return this.animations[0][t]}setAll(t,e){for(let n=0;nm()&&n.attachTimeline?n.attachTimeline(t):"function"==typeof e?e(n):void 0));return()=>{n.forEach(((t,e)=>{t&&t(),this.animations[e].stop()}))}}get time(){return this.getAll("time")}set time(t){this.setAll("time",t)}get speed(){return this.getAll("speed")}set speed(t){this.setAll("speed",t)}get startTime(){return this.getAll("startTime")}get duration(){let t=0;for(let e=0;ee[t]()))}flatten(){this.runAll("flatten")}play(){this.runAll("play")}pause(){this.runAll("pause")}cancel(){this.runAll("cancel")}complete(){this.runAll("complete")}}class v extends y{then(t,e){return Promise.all(this.animations).then(t).catch(e)}}function g(t,e){return t?t[e]||t.default||t:void 0}const b=2e4;function w(t){let e=0;let n=t.next(e);for(;!n.done&&e=b?1/0:e}function x(t){return"function"==typeof t}function P(t,e){t.timeline=e,t.onfinish=null}const S=t=>Array.isArray(t)&&"number"==typeof t[0],O={linearEasing:void 0};function A(t,e){const n=f(t);return()=>{var t;return null!==(t=O[e])&&void 0!==t?t:n()}}const T=A((()=>{try{document.createElement("div").animate({opacity:0},{easing:"linear(0, 1)"})}catch(t){return!1}return!0}),"linearEasing"),E=(t,e,n)=>{const r=e-t;return 0===r?1:(n-t)/r},j=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:10,r="";const o=Math.max(Math.round(e/n),2);for(let i=0;i{let[e,n,r,o]=t;return`cubic-bezier(${e}, ${n}, ${r}, ${o})`},D={linear:"linear",ease:"ease",easeIn:"ease-in",easeOut:"ease-out",easeInOut:"ease-in-out",circIn:M([0,.65,.55,1]),circOut:M([.55,0,1,.45]),backIn:M([.31,.01,.66,-.59]),backOut:M([.33,1.53,.69,.99])};function C(t,e){return t?"function"==typeof t&&T()?j(t,e):S(t)?M(t):Array.isArray(t)?t.map((t=>C(t,e)||D.easeOut)):D[t]:void 0}const I={x:!1,y:!1};function R(){return I.x||I.y}function L(t,e){const n=function(t,e,n){var r;if(t instanceof Element)return[t];if("string"==typeof t){let o=document;e&&(o=e.current);const i=null!==(r=null==n?void 0:n[t])&&void 0!==r?r:o.querySelectorAll(t);return i?Array.from(i):[]}return Array.from(t)}(t),r=new AbortController;return[n,{passive:!0,...e,signal:r.signal},()=>r.abort()]}function V(t){return!("touch"===t.pointerType||R())}const F=(t,e)=>!!e&&(t===e||F(t,e.parentElement)),B=t=>"mouse"===t.pointerType?"number"!=typeof t.button||t.button<=0:!1!==t.isPrimary,_=new Set(["BUTTON","INPUT","SELECT","TEXTAREA","A"]);const N=new WeakSet;function U(t){return e=>{"Enter"===e.key&&t(e)}}function W(t,e){t.dispatchEvent(new PointerEvent("pointer"+e,{isPrimary:!0,bubbles:!0}))}function z(t){return B(t)&&!R()}function q(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=L(t,n),s=t=>{const r=t.currentTarget;if(!z(t)||N.has(r))return;N.add(r);const i=e(r,t),s=(t,e)=>{window.removeEventListener("pointerup",a),window.removeEventListener("pointercancel",l),z(t)&&N.has(r)&&(N.delete(r),"function"==typeof i&&i(t,{success:e}))},a=t=>{s(t,n.useGlobalTarget||F(r,t.target))},l=t=>{s(t,!1)};window.addEventListener("pointerup",a,o),window.addEventListener("pointercancel",l,o)};return r.forEach((t=>{(function(t){return _.has(t.tagName)||-1!==t.tabIndex})(t)||null!==t.getAttribute("tabindex")||(t.tabIndex=0);(n.useGlobalTarget?window:t).addEventListener("pointerdown",s,o),t.addEventListener("focus",(t=>((t,e)=>{const n=t.currentTarget;if(!n)return;const r=U((()=>{if(N.has(n))return;W(n,"down");const t=U((()=>{W(n,"up")}));n.addEventListener("keyup",t,e),n.addEventListener("blur",(()=>W(n,"cancel")),e)}));n.addEventListener("keydown",r,e),n.addEventListener("blur",(()=>n.removeEventListener("keydown",r)),e)})(t,o)),o)})),i}const $=t=>1e3*t,H=t=>t/1e3,K=t=>t;const Y=["transformPerspective","x","y","z","translateX","translateY","translateZ","scale","scaleX","scaleY","rotate","rotateX","rotateY","rotateZ","skew","skewX","skewY"],G=new Set(Y),X=new Set(["width","height","top","left","right","bottom",...Y]),Z=!1,J=!1;const Q=["read","resolveKeyframes","update","preRender","render","postRender"];function tt(t,e){let n=!1,r=!0;const o={delta:0,timestamp:0,isProcessing:!1},i=()=>n=!0,s=Q.reduce(((t,e)=>(t[e]=function(t){let e=new Set,n=new Set,r=!1,o=!1;const i=new WeakSet;let s={delta:0,timestamp:0,isProcessing:!1};function a(e){i.has(e)&&(l.schedule(e),t()),e(s)}const l={schedule:function(t){const o=arguments.length>2&&void 0!==arguments[2]&&arguments[2]&&r?e:n;return arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&i.add(t),o.has(t)||o.add(t),t},cancel:t=>{n.delete(t),i.delete(t)},process:t=>{s=t,r?o=!0:(r=!0,[e,n]=[n,e],e.forEach(a),e.clear(),r=!1,o&&(o=!1,l.process(t)))}};return l}(i),t)),{}),{read:a,resolveKeyframes:l,update:u,preRender:c,render:d,postRender:h}=s,p=()=>{const i=J?o.timestamp:performance.now();n=!1,o.delta=r?1e3/60:Math.max(Math.min(i-o.timestamp,40),1),o.timestamp=i,o.isProcessing=!0,a.process(o),l.process(o),u.process(o),c.process(o),d.process(o),h.process(o),o.isProcessing=!1,n&&e&&(r=!1,t(p))},f=Q.reduce(((e,i)=>{const a=s[i];return e[i]=function(e){let i=arguments.length>1&&void 0!==arguments[1]&&arguments[1],s=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return n||(n=!0,r=!0,o.isProcessing||t(p)),a.schedule(e,i,s)},e}),{});return{schedule:f,cancel:t=>{for(let e=0;e(void 0===it&&at.set(rt.isProcessing||J?rt.timestamp:performance.now()),it),set:t=>{it=t,queueMicrotask(st)}};function lt(t,e){-1===t.indexOf(e)&&t.push(e)}function ut(t,e){const n=t.indexOf(e);n>-1&&t.splice(n,1)}class ct{constructor(){this.subscriptions=[]}add(t){return lt(this.subscriptions,t),()=>ut(this.subscriptions,t)}notify(t,e,n){const r=this.subscriptions.length;if(r)if(1===r)this.subscriptions[0](t,e,n);else for(let o=0;o1&&void 0!==arguments[1]?arguments[1]:{};this.version="12.0.11",this.canTrackVelocity=null,this.events={},this.updateAndNotify=function(t){let n=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];const r=at.now();e.updatedAt!==r&&e.setPrevFrameValue(),e.prev=e.current,e.setCurrent(t),e.current!==e.prev&&e.events.change&&e.events.change.notify(e.current),n&&e.events.renderRequest&&e.events.renderRequest.notify(e.current)},this.hasAnimated=!1,this.setCurrent(t),this.owner=n.owner}setCurrent(t){var e;this.current=t,this.updatedAt=at.now(),null===this.canTrackVelocity&&void 0!==t&&(this.canTrackVelocity=(e=this.current,!isNaN(parseFloat(e))))}setPrevFrameValue(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:this.current;this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt}onChange(t){return this.on("change",t)}on(t,e){this.events[t]||(this.events[t]=new ct);const n=this.events[t].add(e);return"change"===t?()=>{n(),et.read((()=>{this.events.change.getSize()||this.stop()}))}:n}clearListeners(){for(const t in this.events)this.events[t].clear()}attach(t,e){this.passiveEffect=t,this.stopPassiveEffect=e}set(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];e&&this.passiveEffect?this.passiveEffect(t,this.updateAndNotify):this.updateAndNotify(t,e)}setWithVelocity(t,e,n){this.set(e),this.prev=void 0,this.prevFrameValue=t,this.prevUpdatedAt=this.updatedAt-n}jump(t){let e=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];this.updateAndNotify(t),this.prev=t,this.prevUpdatedAt=this.prevFrameValue=void 0,e&&this.stop(),this.stopPassiveEffect&&this.stopPassiveEffect()}get(){return ht.current&&ht.current.push(this),this.current}getPrevious(){return this.prev}getVelocity(){const t=at.now();if(!this.canTrackVelocity||void 0===this.prevFrameValue||t-this.updatedAt>30)return 0;const e=Math.min(this.updatedAt-this.prevUpdatedAt,30);return dt(parseFloat(this.current)-parseFloat(this.prevFrameValue),e)}start(t){return this.stop(),new Promise((e=>{this.hasAnimated=!0,this.animation=t(e),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 ft(t,e){return new pt(t,e)}function mt(t,e,n){t.hasValue(e)?t.getValue(e).set(n):t.addValue(e,ft(n))}const yt=t=>Boolean(t&&t.getVelocity);function vt(t,e){const n=t.getValue("willChange");if(r=n,Boolean(yt(r)&&r.add))return n.add(e);var r}const gt=t=>t.replace(/([a-z])([A-Z])/gu,"$1-$2").toLowerCase(),bt="data-"+gt("framerAppearId");function wt(t){return t.props[bt]}const xt=!1,Pt=(t,e,n)=>(((1-3*n+3*e)*t+(3*n-6*e))*t+3*e)*t;function St(t,e,n,r){if(t===e&&n===r)return K;const o=e=>function(t,e,n,r,o){let i,s,a=0;do{s=e+(n-e)/2,i=Pt(s,r,o)-t,i>0?n=s:e=s}while(Math.abs(i)>1e-7&&++a<12);return s}(e,0,1,t,n);return t=>0===t||1===t?t:Pt(o(t),e,r)}const Ot=t=>e=>e<=.5?t(2*e)/2:(2-t(2*(1-e)))/2,At=t=>e=>1-t(1-e),Tt=St(.33,1.53,.69,.99),Et=At(Tt),jt=Ot(Et),kt=t=>(t*=2)<1?.5*Et(t):.5*(2-Math.pow(2,-10*(t-1))),Mt=t=>1-Math.sin(Math.acos(t)),Dt=At(Mt),Ct=Ot(Mt),It=t=>/^0[^.\s]+$/u.test(t);const Rt=(t,e,n)=>n>e?e:n"number"==typeof t,parse:parseFloat,transform:t=>t},Vt={...Lt,transform:t=>Rt(0,1,t)},Ft={...Lt,default:1},Bt=t=>Math.round(1e5*t)/1e5,_t=/-?(?:\d+(?:\.\d+)?|\.\d+)/gu;const Nt=/^(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))$/iu,Ut=(t,e)=>n=>Boolean("string"==typeof n&&Nt.test(n)&&n.startsWith(t)||e&&!function(t){return null==t}(n)&&Object.prototype.hasOwnProperty.call(n,e)),Wt=(t,e,n)=>r=>{if("string"!=typeof r)return r;const[o,i,s,a]=r.match(_t);return{[t]:parseFloat(o),[e]:parseFloat(i),[n]:parseFloat(s),alpha:void 0!==a?parseFloat(a):1}},zt={...Lt,transform:t=>Math.round((t=>Rt(0,255,t))(t))},qt={test:Ut("rgb","red"),parse:Wt("red","green","blue"),transform:t=>{let{red:e,green:n,blue:r,alpha:o=1}=t;return"rgba("+zt.transform(e)+", "+zt.transform(n)+", "+zt.transform(r)+", "+Bt(Vt.transform(o))+")"}};const $t={test:Ut("#"),parse:function(t){let e="",n="",r="",o="";return t.length>5?(e=t.substring(1,3),n=t.substring(3,5),r=t.substring(5,7),o=t.substring(7,9)):(e=t.substring(1,2),n=t.substring(2,3),r=t.substring(3,4),o=t.substring(4,5),e+=e,n+=n,r+=r,o+=o),{red:parseInt(e,16),green:parseInt(n,16),blue:parseInt(r,16),alpha:o?parseInt(o,16)/255:1}},transform:qt.transform},Ht=t=>({test:e=>"string"==typeof e&&e.endsWith(t)&&1===e.split(" ").length,parse:parseFloat,transform:e=>`${e}${t}`}),Kt=Ht("deg"),Yt=Ht("%"),Gt=Ht("px"),Xt=Ht("vh"),Zt=Ht("vw"),Jt={...Yt,parse:t=>Yt.parse(t)/100,transform:t=>Yt.transform(100*t)},Qt={test:Ut("hsl","hue"),parse:Wt("hue","saturation","lightness"),transform:t=>{let{hue:e,saturation:n,lightness:r,alpha:o=1}=t;return"hsla("+Math.round(e)+", "+Yt.transform(Bt(n))+", "+Yt.transform(Bt(r))+", "+Bt(Vt.transform(o))+")"}},te={test:t=>qt.test(t)||$t.test(t)||Qt.test(t),parse:t=>qt.test(t)?qt.parse(t):Qt.test(t)?Qt.parse(t):$t.parse(t),transform:t=>"string"==typeof t?t:t.hasOwnProperty("red")?qt.transform(t):Qt.transform(t)},ee=/(?:#[\da-f]{3,8}|(?:rgb|hsl)a?\((?:-?[\d.]+%?[,\s]+){2}-?[\d.]+%?\s*(?:[,/]\s*)?(?:\b\d+(?:\.\d+)?|\.\d+)?%?\))/giu;const ne="number",re="color",oe=/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 ie(t){const e=t.toString(),n=[],r={color:[],number:[],var:[]},o=[];let i=0;const s=e.replace(oe,(t=>(te.test(t)?(r.color.push(i),o.push(re),n.push(te.parse(t))):t.startsWith("var(")?(r.var.push(i),o.push("var"),n.push(t)):(r.number.push(i),o.push(ne),n.push(parseFloat(t))),++i,"${}"))).split("${}");return{values:n,split:s,indexes:r,types:o}}function se(t){return ie(t).values}function ae(t){const{split:e,types:n}=ie(t),r=e.length;return t=>{let o="";for(let i=0;i"number"==typeof t?0:t;const ue={test:function(t){var e,n;return isNaN(t)&&"string"==typeof t&&((null===(e=t.match(_t))||void 0===e?void 0:e.length)||0)+((null===(n=t.match(ee))||void 0===n?void 0:n.length)||0)>0},parse:se,createTransformer:ae,getAnimatableNone:function(t){const e=se(t);return ae(t)(e.map(le))}},ce=new Set(["brightness","contrast","saturate","opacity"]);function de(t){const[e,n]=t.slice(0,-1).split("(");if("drop-shadow"===e)return t;const[r]=n.match(_t)||[];if(!r)return t;const o=n.replace(r,"");let i=ce.has(e)?1:0;return r!==n&&(i*=100),e+"("+i+o+")"}const he=/\b([a-z-]*)\(.*?\)/gu,pe={...ue,getAnimatableNone:t=>{const e=t.match(he);return e?e.map(de).join(" "):t}},fe={borderWidth:Gt,borderTopWidth:Gt,borderRightWidth:Gt,borderBottomWidth:Gt,borderLeftWidth:Gt,borderRadius:Gt,radius:Gt,borderTopLeftRadius:Gt,borderTopRightRadius:Gt,borderBottomRightRadius:Gt,borderBottomLeftRadius:Gt,width:Gt,maxWidth:Gt,height:Gt,maxHeight:Gt,top:Gt,right:Gt,bottom:Gt,left:Gt,padding:Gt,paddingTop:Gt,paddingRight:Gt,paddingBottom:Gt,paddingLeft:Gt,margin:Gt,marginTop:Gt,marginRight:Gt,marginBottom:Gt,marginLeft:Gt,backgroundPositionX:Gt,backgroundPositionY:Gt},me={rotate:Kt,rotateX:Kt,rotateY:Kt,rotateZ:Kt,scale:Ft,scaleX:Ft,scaleY:Ft,scaleZ:Ft,skew:Kt,skewX:Kt,skewY:Kt,distance:Gt,translateX:Gt,translateY:Gt,translateZ:Gt,x:Gt,y:Gt,z:Gt,perspective:Gt,transformPerspective:Gt,opacity:Vt,originX:Jt,originY:Jt,originZ:Gt},ye={...Lt,transform:Math.round},ve={...fe,...me,zIndex:ye,size:Gt,fillOpacity:Vt,strokeOpacity:Vt,numOctaves:ye},ge={...ve,color:te,backgroundColor:te,outlineColor:te,fill:te,stroke:te,borderColor:te,borderTopColor:te,borderRightColor:te,borderBottomColor:te,borderLeftColor:te,filter:pe,WebkitFilter:pe},be=t=>ge[t];function we(t,e){let n=be(t);return n!==pe&&(n=ue),n.getAnimatableNone?n.getAnimatableNone(e):void 0}const xe=new Set(["auto","none","0"]);const Pe=t=>t===Lt||t===Gt,Se=(t,e)=>parseFloat(t.split(", ")[e]),Oe=(t,e)=>(n,r)=>{let{transform:o}=r;if("none"===o||!o)return 0;const i=o.match(/^matrix3d\((.+)\)$/u);if(i)return Se(i[1],e);{const e=o.match(/^matrix\((.+)\)$/u);return e?Se(e[1],t):0}},Ae=new Set(["x","y","z"]),Te=Y.filter((t=>!Ae.has(t)));const Ee={width:(t,e)=>{let{x:n}=t,{paddingLeft:r="0",paddingRight:o="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(o)},height:(t,e)=>{let{y:n}=t,{paddingTop:r="0",paddingBottom:o="0"}=e;return n.max-n.min-parseFloat(r)-parseFloat(o)},top:(t,e)=>{let{top:n}=e;return parseFloat(n)},left:(t,e)=>{let{left:n}=e;return parseFloat(n)},bottom:(t,e)=>{let{y:n}=t,{top:r}=e;return parseFloat(r)+(n.max-n.min)},right:(t,e)=>{let{x:n}=t,{left:r}=e;return parseFloat(r)+(n.max-n.min)},x:Oe(4,13),y:Oe(5,14)};Ee.translateX=Ee.x,Ee.translateY=Ee.y;const je=new Set;let ke=!1,Me=!1;function De(){if(Me){const t=Array.from(je).filter((t=>t.needsMeasurement)),e=new Set(t.map((t=>t.element))),n=new Map;e.forEach((t=>{const e=function(t){const e=[];return Te.forEach((n=>{const r=t.getValue(n);void 0!==r&&(e.push([n,r.get()]),r.set(n.startsWith("scale")?1:0))})),e}(t);e.length&&(n.set(t,e),t.render())})),t.forEach((t=>t.measureInitialState())),e.forEach((t=>{t.render();const e=n.get(t);e&&e.forEach((e=>{let[n,r]=e;var o;null===(o=t.getValue(n))||void 0===o||o.set(r)}))})),t.forEach((t=>t.measureEndState())),t.forEach((t=>{void 0!==t.suspendedScrollY&&window.scrollTo(0,t.suspendedScrollY)}))}Me=!1,ke=!1,je.forEach((t=>t.complete())),je.clear()}function Ce(){je.forEach((t=>{t.readKeyframes(),t.needsMeasurement&&(Me=!0)}))}class Ie{constructor(t,e,n,r,o){let i=arguments.length>5&&void 0!==arguments[5]&&arguments[5];this.isComplete=!1,this.isAsync=!1,this.needsMeasurement=!1,this.isScheduled=!1,this.unresolvedKeyframes=[...t],this.onComplete=e,this.name=n,this.motionValue=r,this.element=o,this.isAsync=i}scheduleResolve(){this.isScheduled=!0,this.isAsync?(je.add(this),ke||(ke=!0,et.read(Ce),et.resolveKeyframes(De))):(this.readKeyframes(),this.complete())}readKeyframes(){const{unresolvedKeyframes:t,name:e,element:n,motionValue:r}=this;for(let o=0;o/^-?(?:\d+(?:\.\d+)?|\.\d+)$/u.test(t),Fe=t=>e=>"string"==typeof e&&e.startsWith(t),Be=Fe("--"),_e=Fe("var(--"),Ne=t=>!!_e(t)&&Ue.test(t.split("/*")[0].trim()),Ue=/var\(--(?:[\w-]+\s*|[\w-]+\s*,(?:\s*[^)(\s]|\s*\((?:[^)(]|\([^)(]*\))*\))+\s*)\)$/iu,We=/^var\(--(?:([\w-]+)|([\w-]+), ?([a-zA-Z\d ()%#.,-]+))\)/u;function ze(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1;Le(n<=4,`Max CSS variable fallback depth detected in property "${t}". This may indicate a circular fallback dependency.`);const[r,o]=function(t){const e=We.exec(t);if(!e)return[,];const[,n,r,o]=e;return[`--${null!=n?n:r}`,o]}(t);if(!r)return;const i=window.getComputedStyle(e).getPropertyValue(r);if(i){const t=i.trim();return Ve(t)?parseFloat(t):t}return Ne(o)?ze(o,e,n+1):o}const qe=t=>e=>e.test(t),$e=[Lt,Gt,Yt,Kt,Zt,Xt,{test:t=>"auto"===t,parse:t=>t}],He=t=>$e.find(qe(t));class Ke extends Ie{constructor(t,e,n,r,o){super(t,e,n,r,o,!0)}readKeyframes(){const{unresolvedKeyframes:t,element:e,name:n}=this;if(!e||!e.current)return;super.readKeyframes();for(let a=0;a{let[n,r]=t;e.getValue(n).set(r)})),this.resolveNoneKeyframes()}}const Ye=(t,e)=>"zIndex"!==e&&(!("number"!=typeof t&&!Array.isArray(t))||!("string"!=typeof t||!ue.test(t)&&"0"!==t||t.startsWith("url(")));function Ge(t,e,n,r){const o=t[0];if(null===o)return!1;if("display"===e||"visibility"===e)return!0;const i=t[t.length-1],s=Ye(o,e),a=Ye(i,e);return Re(s===a,`You are trying to animate ${e} 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.`),!(!s||!a)&&(function(t){const e=t[0];if(1===t.length)return!0;for(let n=0;nnull!==t;function Ze(t,e,n){let{repeat:r,repeatType:o="loop"}=e;const i=t.filter(Xe),s=r&&"loop"!==o&&r%2==1?0:i.length-1;return s&&void 0!==n?n:i[s]}class Je{constructor(t){let{autoplay:e=!0,delay:n=0,type:r="keyframes",repeat:o=0,repeatDelay:i=0,repeatType:s="loop",...a}=t;this.isStopped=!1,this.hasAttemptedResolve=!1,this.createdAt=at.now(),this.options={autoplay:e,delay:n,type:r,repeat:o,repeatDelay:i,repeatType:s,...a},this.updateFinishedPromise()}calcStartTime(){return this.resolvedAt&&this.resolvedAt-this.createdAt>40?this.resolvedAt:this.createdAt}get resolved(){return this._resolved||this.hasAttemptedResolve||(Ce(),De()),this._resolved}onKeyframesResolved(t,e){this.resolvedAt=at.now(),this.hasAttemptedResolve=!0;const{name:n,type:r,velocity:o,delay:i,onComplete:s,onUpdate:a,isGenerator:l}=this.options;if(!l&&!Ge(t,n,r,o)){if(xt||!i)return a&&a(Ze(t,this.options,e)),s&&s(),void this.resolveFinishedPromise();this.options.duration=0}const u=this.initPlayback(t,e);!1!==u&&(this._resolved={keyframes:t,finalKeyframe:e,...u},this.onPostResolved())}onPostResolved(){}then(t,e){return this.currentFinishedPromise.then(t,e)}flatten(){this.options.type="keyframes",this.options.ease="linear"}updateFinishedPromise(){this.currentFinishedPromise=new Promise((t=>{this.resolveFinishedPromise=t}))}}const Qe=(t,e,n)=>t+(e-t)*n;function tn(t,e,n){return n<0&&(n+=1),n>1&&(n-=1),n<1/6?t+6*(e-t)*n:n<.5?e:n<2/3?t+(e-t)*(2/3-n)*6:t}function en(t,e){return n=>n>0?e:t}const nn=(t,e,n)=>{const r=t*t,o=n*(e*e-r)+r;return o<0?0:Math.sqrt(o)},rn=[$t,qt,Qt];function on(t){const e=(n=t,rn.find((t=>t.test(n))));var n;if(Re(Boolean(e),`'${t}' is not an animatable color. Use the equivalent color code instead.`),!Boolean(e))return!1;let r=e.parse(t);return e===Qt&&(r=function(t){let{hue:e,saturation:n,lightness:r,alpha:o}=t;e/=360,n/=100,r/=100;let i=0,s=0,a=0;if(n){const t=r<.5?r*(1+n):r+n-r*n,o=2*r-t;i=tn(o,t,e+1/3),s=tn(o,t,e),a=tn(o,t,e-1/3)}else i=s=a=r;return{red:Math.round(255*i),green:Math.round(255*s),blue:Math.round(255*a),alpha:o}}(r)),r}const sn=(t,e)=>{const n=on(t),r=on(e);if(!n||!r)return en(t,e);const o={...n};return t=>(o.red=nn(n.red,r.red,t),o.green=nn(n.green,r.green,t),o.blue=nn(n.blue,r.blue,t),o.alpha=Qe(n.alpha,r.alpha,t),qt.transform(o))},an=(t,e)=>n=>e(t(n)),ln=function(){for(var t=arguments.length,e=new Array(t),n=0;nQe(t,e,n)}function dn(t){return"number"==typeof t?cn:"string"==typeof t?Ne(t)?en:te.test(t)?sn:fn:Array.isArray(t)?hn:"object"==typeof t?te.test(t)?sn:pn:en}function hn(t,e){const n=[...t],r=n.length,o=t.map(((t,n)=>dn(t)(t,e[n])));return t=>{for(let e=0;e{for(const e in r)n[e]=r[e](t);return n}}const fn=(t,e)=>{const n=ue.createTransformer(e),r=ie(t),o=ie(e);return r.indexes.var.length===o.indexes.var.length&&r.indexes.color.length===o.indexes.color.length&&r.indexes.number.length>=o.indexes.number.length?un.has(t)&&!o.values.length||un.has(e)&&!r.values.length?function(t,e){return un.has(t)?n=>n<=0?t:e:n=>n>=1?e:t}(t,e):ln(hn(function(t,e){var n;const r=[],o={color:0,var:0,number:0};for(let i=0;i{const e=t*a,n=e*r,o=e-i,s=xn(t,a),l=Math.exp(-n);return gn-o/s*l},n=t=>{const n=t*a*r,o=n*i+i,s=Math.pow(a,2)*Math.pow(t,2)*r,l=Math.exp(-n),u=xn(Math.pow(t,2),a);return(-e(t)+gn>0?-1:1)*((o-s)*l)/u}):(e=t=>Math.exp(-t*r)*((t-i)*r+1)-.001,n=t=>Math.exp(-t*r)*(r*r*(i-t)));const l=function(t,e,n){let r=n;for(let o=1;ovoid 0!==t[e]))}function An(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:vn.visualDuration,e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:vn.bounce;const n="object"!=typeof t?{visualDuration:t,keyframes:[0,1],bounce:e}:t;let{restSpeed:r,restDelta:o}=n;const i=n.keyframes[0],s=n.keyframes[n.keyframes.length-1],a={done:!1,value:i},{stiffness:l,damping:u,mass:c,duration:d,velocity:h,isResolvedFromDuration:p}=function(t){let e={velocity:vn.velocity,stiffness:vn.stiffness,damping:vn.damping,mass:vn.mass,isResolvedFromDuration:!1,...t};if(!On(t,Sn)&&On(t,Pn))if(t.visualDuration){const n=t.visualDuration,r=2*Math.PI/(1.2*n),o=r*r,i=2*Rt(.05,1,1-(t.bounce||0))*Math.sqrt(o);e={...e,mass:vn.mass,stiffness:o,damping:i}}else{const n=bn(t);e={...e,...n,mass:vn.mass},e.isResolvedFromDuration=!0}return e}({...n,velocity:-H(n.velocity||0)}),f=h||0,m=u/(2*Math.sqrt(l*c)),y=s-i,v=H(Math.sqrt(l/c)),g=Math.abs(y)<5;let x;if(r||(r=g?vn.restSpeed.granular:vn.restSpeed.default),o||(o=g?vn.restDelta.granular:vn.restDelta.default),m<1){const t=xn(v,m);x=e=>{const n=Math.exp(-m*v*e);return s-n*((f+m*v*y)/t*Math.sin(t*e)+y*Math.cos(t*e))}}else if(1===m)x=t=>s-Math.exp(-v*t)*(y+(f+v*y)*t);else{const t=v*Math.sqrt(m*m-1);x=e=>{const n=Math.exp(-m*v*e),r=Math.min(t*e,300);return s-n*((f+m*v*y)*Math.sinh(r)+t*y*Math.cosh(r))/t}}const P={calculatedDuration:p&&d||null,next:t=>{const e=x(t);if(p)a.done=t>=d;else{let n=0;m<1&&(n=0===t?$(f):yn(x,t,e));const i=Math.abs(n)<=r,l=Math.abs(s-e)<=o;a.done=i&&l}return a.value=a.done?s:e,a},toString:()=>{const t=Math.min(w(P),b),e=j((e=>P.next(t*e).value),t,30);return t+"ms "+e}};return P}function Tn(t){let{keyframes:e,velocity:n=0,power:r=.8,timeConstant:o=325,bounceDamping:i=10,bounceStiffness:s=500,modifyTarget:a,min:l,max:u,restDelta:c=.5,restSpeed:d}=t;const h=e[0],p={done:!1,value:h},f=t=>void 0===l?u:void 0===u||Math.abs(l-t)-m*Math.exp(-t/o),b=t=>v+g(t),w=t=>{const e=g(t),n=b(t);p.done=Math.abs(e)<=c,p.value=p.done?v:n};let x,P;const S=t=>{var e;(e=p.value,void 0!==l&&eu)&&(x=t,P=An({keyframes:[p.value,f(p.value)],velocity:yn(b,t,p.value),damping:i,stiffness:s,restDelta:c,restSpeed:d}))};return S(0),{calculatedDuration:null,next:t=>{let e=!1;return P||void 0!==x||(e=!0,w(t),S(t)),void 0!==x&&t>=x?P.next(t-x):(!e&&w(t),p)}}}const En=St(.42,0,1,1),jn=St(0,0,.58,1),kn=St(.42,0,.58,1),Mn={linear:K,easeIn:En,easeInOut:kn,easeOut:jn,circIn:Mt,circInOut:Ct,circOut:Dt,backIn:Et,backInOut:jt,backOut:Tt,anticipate:kt},Dn=t=>{if(S(t)){Le(4===t.length,"Cubic bezier arrays must contain four numerical values.");const[e,n,r,o]=t;return St(e,n,r,o)}return"string"==typeof t?(Le(void 0!==Mn[t],`Invalid easing type '${t}'`),Mn[t]):t};function Cn(t,e){let{clamp:n=!0,ease:r,mixer:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const i=t.length;if(Le(i===e.length,"Both input and output ranges must be the same length"),1===i)return()=>e[0];if(2===i&&e[0]===e[1])return()=>e[1];const s=t[0]===t[1];t[0]>t[i-1]&&(t=[...t].reverse(),e=[...e].reverse());const a=function(t,e,n){const r=[],o=n||mn,i=t.length-1;for(let s=0;s{if(s&&n1)for(;ru(Rt(t[0],t[i-1],e)):u}function In(t){const e=[0];return function(t,e){const n=t[t.length-1];for(let r=1;r<=e;r++){const o=E(0,e,r);t.push(Qe(n,1,o))}}(e,t.length-1),e}function Rn(t){let{duration:e=300,keyframes:n,times:r,ease:o="easeInOut"}=t;const i=(t=>Array.isArray(t)&&"number"!=typeof t[0])(o)?o.map(Dn):Dn(o),s={done:!1,value:n[0]},a=function(t,e){return t.map((t=>t*e))}(r&&r.length===n.length?r:In(n),e),l=Cn(a,n,{ease:Array.isArray(i)?i:(u=n,c=i,u.map((()=>c||kn)).splice(0,u.length-1))});var u,c;return{calculatedDuration:e,next:t=>(s.value=l(t),s.done=t>=e,s)}}const Ln=t=>{const e=e=>{let{timestamp:n}=e;return t(n)};return{start:()=>et.update(e,!0),stop:()=>nt(e),now:()=>rt.isProcessing?rt.timestamp:at.now()}},Vn={decay:Tn,inertia:Tn,tween:Rn,keyframes:Rn,spring:An},Fn=t=>t/100;class Bn extends Je{constructor(t){super(t),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:t}=this.options;t&&t()};const{name:e,motionValue:n,element:r,keyframes:o}=this.options,i=(null==r?void 0:r.KeyframeResolver)||Ie;this.resolver=new i(o,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}flatten(){super.flatten(),this._resolved&&Object.assign(this._resolved,this.initPlayback(this._resolved.keyframes))}initPlayback(t){const{type:e="keyframes",repeat:n=0,repeatDelay:r=0,repeatType:o,velocity:i=0}=this.options,s=x(e)?e:Vn[e]||Rn;let a,l;s!==Rn&&"number"!=typeof t[0]&&(a=ln(Fn,mn(t[0],t[1])),t=[0,100]);const u=s({...this.options,keyframes:t});"mirror"===o&&(l=s({...this.options,keyframes:[...t].reverse(),velocity:-i})),null===u.calculatedDuration&&(u.calculatedDuration=w(u));const{calculatedDuration:c}=u,d=c+r;return{generator:u,mirroredGenerator:l,mapPercentToKeyframes:a,calculatedDuration:c,resolvedDuration:d,totalDuration:d*(n+1)-r}}onPostResolved(){const{autoplay:t=!0}=this.options;this.play(),"paused"!==this.pendingPlayState&&t?this.state=this.pendingPlayState:this.pause()}tick(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const{resolved:n}=this;if(!n){const{keyframes:t}=this.options;return{done:!0,value:t[t.length-1]}}const{finalKeyframe:r,generator:o,mirroredGenerator:i,mapPercentToKeyframes:s,keyframes:a,calculatedDuration:l,totalDuration:u,resolvedDuration:c}=n;if(null===this.startTime)return o.next(0);const{delay:d,repeat:h,repeatType:p,repeatDelay:f,onUpdate:m}=this.options;this.speed>0?this.startTime=Math.min(this.startTime,t):this.speed<0&&(this.startTime=Math.min(t-u/this.speed,this.startTime)),e?this.currentTime=t:null!==this.holdTime?this.currentTime=this.holdTime:this.currentTime=Math.round(t-this.startTime)*this.speed;const y=this.currentTime-d*(this.speed>=0?1:-1),v=this.speed>=0?y<0:y>u;this.currentTime=Math.max(y,0),"finished"===this.state&&null===this.holdTime&&(this.currentTime=u);let g=this.currentTime,b=o;if(h){const t=Math.min(this.currentTime,u)/c;let e=Math.floor(t),n=t%1;!n&&t>=1&&(n=1),1===n&&e--,e=Math.min(e,h+1);Boolean(e%2)&&("reverse"===p?(n=1-n,f&&(n-=f/c)):"mirror"===p&&(b=i)),g=Rt(0,1,n)*c}const w=v?{done:!1,value:a[0]}:b.next(g);s&&(w.value=s(w.value));let{done:x}=w;v||null===l||(x=this.speed>=0?this.currentTime>=u:this.currentTime<=0);const P=null===this.holdTime&&("finished"===this.state||"running"===this.state&&x);return P&&void 0!==r&&(w.value=Ze(a,this.options,r)),m&&m(w.value),P&&this.finish(),w}get duration(){const{resolved:t}=this;return t?H(t.calculatedDuration):0}get time(){return H(this.currentTime)}set time(t){t=$(t),this.currentTime=t,null!==this.holdTime||0===this.speed?this.holdTime=t:this.driver&&(this.startTime=this.driver.now()-t/this.speed)}get speed(){return this.playbackSpeed}set speed(t){const e=this.playbackSpeed!==t;this.playbackSpeed=t,e&&(this.time=H(this.currentTime))}play(){if(this.resolver.isScheduled||this.resolver.resume(),!this._resolved)return void(this.pendingPlayState="running");if(this.isStopped)return;const{driver:t=Ln,onPlay:e,startTime:n}=this.options;this.driver||(this.driver=t((t=>this.tick(t)))),e&&e();const r=this.driver.now();null!==this.holdTime?this.startTime=r-this.holdTime:this.startTime?"finished"===this.state&&(this.startTime=r):this.startTime=null!=n?n:this.calcStartTime(),"finished"===this.state&&this.updateFinishedPromise(),this.cancelTime=this.startTime,this.holdTime=null,this.state="running",this.driver.start()}pause(){var t;this._resolved?(this.state="paused",this.holdTime=null!==(t=this.currentTime)&&void 0!==t?t: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:t}=this.options;t&&t()}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(t){return this.startTime=0,this.tick(t,!0)}}const _n=new Set(["opacity","clipPath","filter","transform"]);const Nn=f((()=>Object.hasOwnProperty.call(Element.prototype,"animate")));const Un={anticipate:kt,backInOut:jt,circInOut:Ct};class Wn extends Je{constructor(t){super(t);const{name:e,motionValue:n,element:r,keyframes:o}=this.options;this.resolver=new Ke(o,((t,e)=>this.onKeyframesResolved(t,e)),e,n,r),this.resolver.scheduleResolve()}initPlayback(t,e){let{duration:n=300,times:r,ease:o,type:i,motionValue:s,name:a,startTime:l}=this.options;if(!s.owner||!s.owner.current)return!1;var u;if("string"==typeof o&&T()&&o in Un&&(o=Un[o]),x((u=this.options).type)||"spring"===u.type||!k(u.ease)){const{onComplete:e,onUpdate:s,motionValue:a,element:l,...u}=this.options,c=function(t,e){const n=new Bn({...e,keyframes:t,repeat:0,delay:0,isGenerator:!0});let r={done:!1,value:t[0]};const o=[];let i=0;for(;!r.done&&i<2e4;)r=n.sample(i),o.push(r.value),i+=10;return{times:void 0,keyframes:o,duration:i-10,ease:"linear"}}(t,u);1===(t=c.keyframes).length&&(t[1]=t[0]),n=c.duration,r=c.times,o=c.ease,i="keyframes"}const c=function(t,e,n){let{delay:r=0,duration:o=300,repeat:i=0,repeatType:s="loop",ease:a="easeInOut",times:l}=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};const u={[e]:n};l&&(u.offset=l);const c=C(a,o);return Array.isArray(c)&&(u.easing=c),t.animate(u,{delay:r,duration:o,easing:Array.isArray(c)?"linear":c,fill:"both",iterations:i+1,direction:"reverse"===s?"alternate":"normal"})}(s.owner.current,a,t,{...this.options,duration:n,times:r,ease:o});return c.startTime=null!=l?l:this.calcStartTime(),this.pendingTimeline?(P(c,this.pendingTimeline),this.pendingTimeline=void 0):c.onfinish=()=>{const{onComplete:n}=this.options;s.set(Ze(t,this.options,e)),n&&n(),this.cancel(),this.resolveFinishedPromise()},{animation:c,duration:n,times:r,type:i,ease:o,keyframes:t}}get duration(){const{resolved:t}=this;if(!t)return 0;const{duration:e}=t;return H(e)}get time(){const{resolved:t}=this;if(!t)return 0;const{animation:e}=t;return H(e.currentTime||0)}set time(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.currentTime=$(t)}get speed(){const{resolved:t}=this;if(!t)return 1;const{animation:e}=t;return e.playbackRate}set speed(t){const{resolved:e}=this;if(!e)return;const{animation:n}=e;n.playbackRate=t}get state(){const{resolved:t}=this;if(!t)return"idle";const{animation:e}=t;return e.playState}get startTime(){const{resolved:t}=this;if(!t)return null;const{animation:e}=t;return e.startTime}attachTimeline(t){if(this._resolved){const{resolved:e}=this;if(!e)return K;const{animation:n}=e;P(n,t)}else this.pendingTimeline=t;return K}play(){if(this.isStopped)return;const{resolved:t}=this;if(!t)return;const{animation:e}=t;"finished"===e.playState&&this.updateFinishedPromise(),e.play()}pause(){const{resolved:t}=this;if(!t)return;const{animation:e}=t;e.pause()}stop(){if(this.resolver.cancel(),this.isStopped=!0,"idle"===this.state)return;this.resolveFinishedPromise(),this.updateFinishedPromise();const{resolved:t}=this;if(!t)return;const{animation:e,keyframes:n,duration:r,type:o,ease:i,times:s}=t;if("idle"===e.playState||"finished"===e.playState)return;if(this.time){const{motionValue:t,onUpdate:e,onComplete:a,element:l,...u}=this.options,c=new Bn({...u,keyframes:n,duration:r,type:o,ease:i,times:s,isGenerator:!0}),d=$(this.time);t.setWithVelocity(c.sample(d-10).value,c.sample(d).value,10)}const{onStop:a}=this.options;a&&a(),this.cancel()}complete(){const{resolved:t}=this;t&&t.animation.finish()}cancel(){const{resolved:t}=this;t&&t.animation.cancel()}static supports(t){const{motionValue:e,name:n,repeatDelay:r,repeatType:o,damping:i,type:s}=t;if(!(e&&e.owner&&e.owner.current instanceof HTMLElement))return!1;const{onUpdate:a,transformTemplate:l}=e.owner.getProps();return Nn()&&n&&_n.has(n)&&!a&&!l&&!r&&"mirror"!==o&&0!==i&&"inertia"!==s}}const zn={type:"spring",stiffness:500,damping:25,restSpeed:10},qn={type:"keyframes",duration:.8},$n={type:"keyframes",ease:[.25,.1,.35,1],duration:.3},Hn=(t,e)=>{let{keyframes:n}=e;return n.length>2?qn:G.has(t)?t.startsWith("scale")?{type:"spring",stiffness:550,damping:0===n[1]?2*Math.sqrt(550):30,restSpeed:10}:zn:$n};const Kn=function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{},o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5?arguments[5]:void 0;return s=>{const a=g(r,t)||{},l=a.delay||r.delay||0;let{elapsed:u=0}=r;u-=$(l);let c={keyframes:Array.isArray(n)?n:[null,n],ease:"easeOut",velocity:e.getVelocity(),...a,delay:-u,onUpdate:t=>{e.set(t),a.onUpdate&&a.onUpdate(t)},onComplete:()=>{s(),a.onComplete&&a.onComplete()},name:t,motionValue:e,element:i?void 0:o};(function(t){let{when:e,delay:n,delayChildren:r,staggerChildren:o,staggerDirection:i,repeat:s,repeatType:a,repeatDelay:l,from:u,elapsed:c,...d}=t;return!!Object.keys(d).length})(a)||(c={...c,...Hn(t,c)}),c.duration&&(c.duration=$(c.duration)),c.repeatDelay&&(c.repeatDelay=$(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)),(xt||Z)&&(d=!0,c.duration=0,c.delay=0),d&&!i&&void 0!==e.get()){const t=Ze(c.keyframes,a);if(void 0!==t)return et.update((()=>{c.onUpdate(t),c.onComplete()})),new v([])}return!i&&Wn.supports(c)?new Wn(c):new Bn(c)}};function Yn(t,e){let{protectedKeys:n,needsAnimating:r}=t;const o=n.hasOwnProperty(e)&&!0!==r[e];return r[e]=!1,o}function Gn(t,e){let{delay:n=0,transitionOverride:r,type:o}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var i;let{transition:a=t.getDefaultTransition(),transitionEnd:l,...u}=e;r&&(a=r);const c=[],h=o&&t.animationState&&t.animationState.getState()[o];for(const s in u){const e=t.getValue(s,null!==(i=t.latestValues[s])&&void 0!==i?i:null),r=u[s];if(void 0===r||h&&Yn(h,s))continue;const o={delay:n,...g(a||{},s)};let l=!1;if(window.MotionHandoffAnimation){const e=wt(t);if(e){const t=window.MotionHandoffAnimation(e,s,et);null!==t&&(o.startTime=t,l=!0)}}vt(t,s),e.start(Kn(s,e,r,t.shouldReduceMotion&&X.has(s)?{type:!1}:o,t,l));const d=e.animation;d&&c.push(d)}return l&&Promise.all(c).then((()=>{et.update((()=>{l&&function(t,e){const n=d(t,e);let{transitionEnd:r={},transition:o={},...i}=n||{};i={...i,...r};for(const l in i)mt(t,l,(a=i[l],s(a)?a[a.length-1]||0:a));var a}(t,l)}))})),c}function Xn(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};var r;const o=d(t,e,"exit"===n.type?null===(r=t.presenceContext)||void 0===r?void 0:r.custom:void 0);let{transition:i=t.getDefaultTransition()||{}}=o||{};n.transitionOverride&&(i=n.transitionOverride);const s=o?()=>Promise.all(Gn(t,o,n)):()=>Promise.resolve(),a=t.variantChildren&&t.variantChildren.size?function(){let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:0;const{delayChildren:o=0,staggerChildren:s,staggerDirection:a}=i;return function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:1,i=arguments.length>5?arguments[5]:void 0;const s=[],a=(t.variantChildren.size-1)*r,l=1===o?function(){return(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r}:function(){return a-(arguments.length>0&&void 0!==arguments[0]?arguments[0]:0)*r};return Array.from(t.variantChildren).sort(Zn).forEach(((t,r)=>{t.notify("AnimationStart",e),s.push(Xn(t,e,{...i,delay:n+l(r)}).then((()=>t.notify("AnimationComplete",e))))})),Promise.all(s)}(t,e,o+r,s,a,n)}:()=>Promise.resolve(),{when:l}=i;if(l){const[t,e]="beforeChildren"===l?[s,a]:[a,s];return t().then((()=>e()))}return Promise.all([s(),a(n.delay)])}function Zn(t,e){return t.sortNodePosition(e)}const Jn=p.length;function Qn(t){if(!t)return;if(!t.isControllingVariants){const e=t.parent&&Qn(t.parent)||{};return void 0!==t.props.initial&&(e.initial=t.props.initial),e}const e={};for(let n=0;nPromise.all(e.map((e=>{let{animation:n,options:r}=e;return function(t,e){let n,r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(t.notify("AnimationStart",e),Array.isArray(e)){const o=e.map((e=>Xn(t,e,r)));n=Promise.all(o)}else if("string"==typeof e)n=Xn(t,e,r);else{const o="function"==typeof e?d(t,e,r.custom):e;n=Promise.all(Gn(t,o,r))}return n.then((()=>{t.notify("AnimationComplete",e)}))}(t,n,r)})))}function rr(t){let e=nr(t),n=sr(),r=!0;const o=e=>(n,r)=>{var o;const i=d(t,r,"exit"===e?null===(o=t.presenceContext)||void 0===o?void 0:o.custom:void 0);if(i){const{transition:t,transitionEnd:e,...r}=i;n={...n,...r,...e}}return n};function u(u){const{props:c}=t,d=Qn(t.parent)||{},h=[],p=new Set;let f={},m=1/0;for(let e=0;em&&b,O=!1;const A=Array.isArray(g)?g:[g];let T=A.reduce(o(y),{});!1===w&&(T={});const{prevResolvedValues:E={}}=v,j={...E,...T},k=e=>{S=!0,p.has(e)&&(O=!0,p.delete(e)),v.needsAnimating[e]=!0;const n=t.getValue(e);n&&(n.liveStyle=!1)};for(const t in j){const e=T[t],n=E[t];if(f.hasOwnProperty(t))continue;let r=!1;r=s(e)&&s(n)?!a(e,n):e!==n,r?null!=e?k(t):p.add(t):void 0!==e&&p.has(t)?k(t):v.protectedKeys[t]=!0}v.prevProp=g,v.prevResolvedValues=T,v.isActive&&(f={...f,...T}),r&&t.blockInitialAnimation&&(S=!1);S&&(!(x&&P)||O)&&h.push(...A.map((t=>({animation:t,options:{type:y}}))))}if(p.size){const e={};p.forEach((n=>{const r=t.getBaseTarget(n),o=t.getValue(n);o&&(o.liveStyle=!0),e[n]=null!=r?r:null})),h.push({animation:e})}let y=Boolean(h.length);return!r||!1!==c.initial&&c.initial!==c.animate||t.manuallyAnimateOnMount||(y=!1),r=!1,y?e(h):Promise.resolve()}return{animateChanges:u,setActive:function(e,r){var o;if(n[e].isActive===r)return Promise.resolve();null===(o=t.variantChildren)||void 0===o||o.forEach((t=>{var n;return null===(n=t.animationState)||void 0===n?void 0:n.setActive(e,r)})),n[e].isActive=r;const i=u(e);for(const t in n)n[t].protectedKeys={};return i},setAnimateFunction:function(n){e=n(t)},getState:()=>n,reset:()=>{n=sr(),r=!0}}}function or(t,e){return"string"==typeof e?e!==t:!!Array.isArray(e)&&!a(e,t)}function ir(){return{isActive:arguments.length>0&&void 0!==arguments[0]&&arguments[0],protectedKeys:{},needsAnimating:{},prevResolvedValues:{}}}function sr(){return{animate:ir(!0),whileInView:ir(),whileHover:ir(),whileTap:ir(),whileDrag:ir(),whileFocus:ir(),exit:ir()}}class ar{constructor(t){this.isMounted=!1,this.node=t}update(){}}let lr=0;const ur={animation:{Feature:class extends ar{constructor(t){super(t),t.animationState||(t.animationState=rr(t))}updateAnimationControlsSubscription(){const{animate:t}=this.node.getProps();i(t)&&(this.unmountControls=t.subscribe(this.node))}mount(){this.updateAnimationControlsSubscription()}update(){const{animate:t}=this.node.getProps(),{animate:e}=this.node.prevProps||{};t!==e&&this.updateAnimationControlsSubscription()}unmount(){var t;this.node.animationState.reset(),null===(t=this.unmountControls)||void 0===t||t.call(this)}}},exit:{Feature:class extends ar{constructor(){super(...arguments),this.id=lr++}update(){if(!this.node.presenceContext)return;const{isPresent:t,onExitComplete:e}=this.node.presenceContext,{isPresent:n}=this.node.prevPresenceContext||{};if(!this.node.animationState||t===n)return;const r=this.node.animationState.setActive("exit",!t);e&&!t&&r.then((()=>e(this.id)))}mount(){const{register:t}=this.node.presenceContext||{};t&&(this.unmount=t(this.id))}unmount(){}}}};function cr(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{passive:!0};return t.addEventListener(e,n,r),()=>t.removeEventListener(e,n)}function dr(t){return{point:{x:t.pageX,y:t.pageY}}}function hr(t,e,n,r){return cr(t,e,(t=>e=>B(e)&&t(e,dr(e)))(n),r)}const pr=(t,e)=>Math.abs(t-e);class fr{constructor(t,e){let{transformPagePoint:n,contextWindow:r,dragSnapToOrigin:o=!1}=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};if(this.startEvent=null,this.lastMoveEvent=null,this.lastMoveEventInfo=null,this.handlers={},this.contextWindow=window,this.updatePoint=()=>{if(!this.lastMoveEvent||!this.lastMoveEventInfo)return;const t=vr(this.lastMoveEventInfo,this.history),e=null!==this.startEvent,n=function(t,e){const n=pr(t.x,e.x),r=pr(t.y,e.y);return Math.sqrt(n**2+r**2)}(t.offset,{x:0,y:0})>=3;if(!e&&!n)return;const{point:r}=t,{timestamp:o}=rt;this.history.push({...r,timestamp:o});const{onStart:i,onMove:s}=this.handlers;e||(i&&i(this.lastMoveEvent,t),this.startEvent=this.lastMoveEvent),s&&s(this.lastMoveEvent,t)},this.handlePointerMove=(t,e)=>{this.lastMoveEvent=t,this.lastMoveEventInfo=mr(e,this.transformPagePoint),et.update(this.updatePoint,!0)},this.handlePointerUp=(t,e)=>{this.end();const{onEnd:n,onSessionEnd:r,resumeAnimation:o}=this.handlers;if(this.dragSnapToOrigin&&o&&o(),!this.lastMoveEvent||!this.lastMoveEventInfo)return;const i=vr("pointercancel"===t.type?this.lastMoveEventInfo:mr(e,this.transformPagePoint),this.history);this.startEvent&&n&&n(t,i),r&&r(t,i)},!B(t))return;this.dragSnapToOrigin=o,this.handlers=e,this.transformPagePoint=n,this.contextWindow=r||window;const i=mr(dr(t),this.transformPagePoint),{point:s}=i,{timestamp:a}=rt;this.history=[{...s,timestamp:a}];const{onSessionStart:l}=e;l&&l(t,vr(i,this.history)),this.removeListeners=ln(hr(this.contextWindow,"pointermove",this.handlePointerMove),hr(this.contextWindow,"pointerup",this.handlePointerUp),hr(this.contextWindow,"pointercancel",this.handlePointerUp))}updateHandlers(t){this.handlers=t}end(){this.removeListeners&&this.removeListeners(),nt(this.updatePoint)}}function mr(t,e){return e?{point:e(t.point)}:t}function yr(t,e){return{x:t.x-e.x,y:t.y-e.y}}function vr(t,e){let{point:n}=t;return{point:n,delta:yr(n,br(e)),offset:yr(n,gr(e)),velocity:wr(e,.1)}}function gr(t){return t[0]}function br(t){return t[t.length-1]}function wr(t,e){if(t.length<2)return{x:0,y:0};let n=t.length-1,r=null;const o=br(t);for(;n>=0&&(r=t[n],!(o.timestamp-r.timestamp>$(e)));)n--;if(!r)return{x:0,y:0};const i=H(o.timestamp-r.timestamp);if(0===i)return{x:0,y:0};const s={x:(o.x-r.x)/i,y:(o.y-r.y)/i};return s.x===1/0&&(s.x=0),s.y===1/0&&(s.y=0),s}function xr(t){return t&&"object"==typeof t&&Object.prototype.hasOwnProperty.call(t,"current")}function Pr(t){return t.max-t.min}function Sr(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5;t.origin=r,t.originPoint=Qe(e.min,e.max,t.origin),t.scale=Pr(n)/Pr(e),t.translate=Qe(n.min,n.max,t.origin)-t.originPoint,(t.scale>=.9999&&t.scale<=1.0001||isNaN(t.scale))&&(t.scale=1),(t.translate>=-.01&&t.translate<=.01||isNaN(t.translate))&&(t.translate=0)}function Or(t,e,n,r){Sr(t.x,e.x,n.x,r?r.originX:void 0),Sr(t.y,e.y,n.y,r?r.originY:void 0)}function Ar(t,e,n){t.min=n.min+e.min,t.max=t.min+Pr(e)}function Tr(t,e,n){t.min=e.min-n.min,t.max=t.min+Pr(e)}function Er(t,e,n){Tr(t.x,e.x,n.x),Tr(t.y,e.y,n.y)}function jr(t,e,n){return{min:void 0!==e?t.min+e:void 0,max:void 0!==n?t.max+n-(t.max-t.min):void 0}}function kr(t,e){let n=e.min-t.min,r=e.max-t.max;return e.max-e.min({x:{min:0,max:0},y:{min:0,max:0}});function Rr(t){return[t("x"),t("y")]}function Lr(t){let{top:e,left:n,right:r,bottom:o}=t;return{x:{min:n,max:r},y:{min:e,max:o}}}function Vr(t){return void 0===t||1===t}function Fr(t){let{scale:e,scaleX:n,scaleY:r}=t;return!Vr(e)||!Vr(n)||!Vr(r)}function Br(t){return Fr(t)||_r(t)||t.z||t.rotate||t.rotateX||t.rotateY||t.skewX||t.skewY}function _r(t){return Nr(t.x)||Nr(t.y)}function Nr(t){return t&&"0%"!==t}function Ur(t,e,n){return n+e*(t-n)}function Wr(t,e,n,r,o){return void 0!==o&&(t=Ur(t,o,r)),Ur(t,n,r)+e}function zr(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3?arguments[3]:void 0,o=arguments.length>4?arguments[4]:void 0;t.min=Wr(t.min,e,n,r,o),t.max=Wr(t.max,e,n,r,o)}function qr(t,e){let{x:n,y:r}=e;zr(t.x,n.translate,n.scale,n.originPoint),zr(t.y,r.translate,r.scale,r.originPoint)}const $r=.999999999999,Hr=1.0000000000001;function Kr(t,e){t.min=t.min+e,t.max=t.max+e}function Yr(t,e,n,r){let o=arguments.length>4&&void 0!==arguments[4]?arguments[4]:.5;zr(t,e,n,Qe(t.min,t.max,o),r)}function Gr(t,e){Yr(t.x,e.x,e.scaleX,e.scale,e.originX),Yr(t.y,e.y,e.scaleY,e.scale,e.originY)}function Xr(t,e){return Lr(function(t,e){if(!e)return t;const n=e({x:t.left,y:t.top}),r=e({x:t.right,y:t.bottom});return{top:n.y,left:n.x,bottom:r.y,right:r.x}}(t.getBoundingClientRect(),e))}const Zr=t=>{let{current:e}=t;return e?e.ownerDocument.defaultView:null},Jr=new WeakMap;class Qr{constructor(t){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=t}start(t){let{snapToCursor:e=!1}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{presenceContext:n}=this.visualElement;if(n&&!1===n.isPresent)return;const{dragSnapToOrigin:r}=this.getProps();this.panSession=new fr(t,{onSessionStart:t=>{const{dragSnapToOrigin:n}=this.getProps();n?this.pauseAnimation():this.stopAnimation(),e&&this.snapToCursor(dr(t).point)},onStart:(t,e)=>{const{drag:n,dragPropagation:r,onDragStart:o}=this.getProps();if(n&&!r&&(this.openDragLock&&this.openDragLock(),this.openDragLock="x"===(i=n)||"y"===i?I[i]?null:(I[i]=!0,()=>{I[i]=!1}):I.x||I.y?null:(I.x=I.y=!0,()=>{I.x=I.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),Rr((t=>{let e=this.getAxisMotionValue(t).get()||0;if(Yt.test(e)){const{projection:n}=this.visualElement;if(n&&n.layout){const r=n.layout.layoutBox[t];if(r){e=Pr(r)*(parseFloat(e)/100)}}}this.originPoint[t]=e})),o&&et.postRender((()=>o(t,e))),vt(this.visualElement,"transform");const{animationState:s}=this.visualElement;s&&s.setActive("whileDrag",!0)},onMove:(t,e)=>{const{dragPropagation:n,dragDirectionLock:r,onDirectionLock:o,onDrag:i}=this.getProps();if(!n&&!this.openDragLock)return;const{offset:s}=e;if(r&&null===this.currentDirection)return this.currentDirection=function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:10,n=null;Math.abs(t.y)>e?n="y":Math.abs(t.x)>e&&(n="x");return n}(s),void(null!==this.currentDirection&&o&&o(this.currentDirection));this.updateAxis("x",e.point,s),this.updateAxis("y",e.point,s),this.visualElement.render(),i&&i(t,e)},onSessionEnd:(t,e)=>this.stop(t,e),resumeAnimation:()=>Rr((t=>{var e;return"paused"===this.getAnimationState(t)&&(null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.play())}))},{transformPagePoint:this.visualElement.getTransformPagePoint(),dragSnapToOrigin:r,contextWindow:Zr(this.visualElement)})}stop(t,e){const n=this.isDragging;if(this.cancel(),!n)return;const{velocity:r}=e;this.startAnimation(r);const{onDragEnd:o}=this.getProps();o&&et.postRender((()=>o(t,e)))}cancel(){this.isDragging=!1;const{projection:t,animationState:e}=this.visualElement;t&&(t.isAnimationBlocked=!1),this.panSession&&this.panSession.end(),this.panSession=void 0;const{dragPropagation:n}=this.getProps();!n&&this.openDragLock&&(this.openDragLock(),this.openDragLock=null),e&&e.setActive("whileDrag",!1)}updateAxis(t,e,n){const{drag:r}=this.getProps();if(!n||!to(t,r,this.currentDirection))return;const o=this.getAxisMotionValue(t);let i=this.originPoint[t]+n[t];this.constraints&&this.constraints[t]&&(i=function(t,e,n){let{min:r,max:o}=e;return void 0!==r&&to&&(t=n?Qe(o,t,n.max):Math.min(t,o)),t}(i,this.constraints[t],this.elastic[t])),o.set(i)}resolveConstraints(){var t;const{dragConstraints:e,dragElastic:n}=this.getProps(),r=this.visualElement.projection&&!this.visualElement.projection.layout?this.visualElement.projection.measure(!1):null===(t=this.visualElement.projection)||void 0===t?void 0:t.layout,o=this.constraints;e&&xr(e)?this.constraints||(this.constraints=this.resolveRefConstraints()):this.constraints=!(!e||!r)&&function(t,e){let{top:n,left:r,bottom:o,right:i}=e;return{x:jr(t.x,r,i),y:jr(t.y,n,o)}}(r.layoutBox,e),this.elastic=function(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:Mr;return!1===t?t=0:!0===t&&(t=Mr),{x:Dr(t,"left","right"),y:Dr(t,"top","bottom")}}(n),o!==this.constraints&&r&&this.constraints&&!this.hasMutatedConstraints&&Rr((t=>{!1!==this.constraints&&this.getAxisMotionValue(t)&&(this.constraints[t]=function(t,e){const n={};return void 0!==e.min&&(n.min=e.min-t.min),void 0!==e.max&&(n.max=e.max-t.min),n}(r.layoutBox[t],this.constraints[t]))}))}resolveRefConstraints(){const{dragConstraints:t,onMeasureDragConstraints:e}=this.getProps();if(!t||!xr(t))return!1;const n=t.current;Le(null!==n,"If `dragConstraints` is set as a React ref, that ref must be passed to another component's `ref` prop.");const{projection:r}=this.visualElement;if(!r||!r.layout)return!1;const o=function(t,e,n){const r=Xr(t,n),{scroll:o}=e;return o&&(Kr(r.x,o.offset.x),Kr(r.y,o.offset.y)),r}(n,r.root,this.visualElement.getTransformPagePoint());let i=function(t,e){return{x:kr(t.x,e.x),y:kr(t.y,e.y)}}(r.layout.layoutBox,o);if(e){const t=e(function(t){let{x:e,y:n}=t;return{top:n.min,right:e.max,bottom:n.max,left:e.min}}(i));this.hasMutatedConstraints=!!t,t&&(i=Lr(t))}return i}startAnimation(t){const{drag:e,dragMomentum:n,dragElastic:r,dragTransition:o,dragSnapToOrigin:i,onDragTransitionEnd:s}=this.getProps(),a=this.constraints||{},l=Rr((s=>{if(!to(s,e,this.currentDirection))return;let l=a&&a[s]||{};i&&(l={min:0,max:0});const u=r?200:1e6,c=r?40:1e7,d={type:"inertia",velocity:n?t[s]:0,bounceStiffness:u,bounceDamping:c,timeConstant:750,restDelta:1,restSpeed:10,...o,...l};return this.startAxisValueAnimation(s,d)}));return Promise.all(l).then(s)}startAxisValueAnimation(t,e){const n=this.getAxisMotionValue(t);return vt(this.visualElement,t),n.start(Kn(t,n,0,e,this.visualElement,!1))}stopAnimation(){Rr((t=>this.getAxisMotionValue(t).stop()))}pauseAnimation(){Rr((t=>{var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.pause()}))}getAnimationState(t){var e;return null===(e=this.getAxisMotionValue(t).animation)||void 0===e?void 0:e.state}getAxisMotionValue(t){const e=`_drag${t.toUpperCase()}`,n=this.visualElement.getProps(),r=n[e];return r||this.visualElement.getValue(t,(n.initial?n.initial[t]:void 0)||0)}snapToCursor(t){Rr((e=>{const{drag:n}=this.getProps();if(!to(e,n,this.currentDirection))return;const{projection:r}=this.visualElement,o=this.getAxisMotionValue(e);if(r&&r.layout){const{min:n,max:i}=r.layout.layoutBox[e];o.set(t[e]-Qe(n,i,.5))}}))}scalePositionWithinConstraints(){if(!this.visualElement.current)return;const{drag:t,dragConstraints:e}=this.getProps(),{projection:n}=this.visualElement;if(!xr(e)||!n||!this.constraints)return;this.stopAnimation();const r={x:0,y:0};Rr((t=>{const e=this.getAxisMotionValue(t);if(e&&!1!==this.constraints){const n=e.get();r[t]=function(t,e){let n=.5;const r=Pr(t),o=Pr(e);return o>r?n=E(e.min,e.max-r,t.min):r>o&&(n=E(t.min,t.max-o,e.min)),Rt(0,1,n)}({min:n,max:n},this.constraints[t])}}));const{transformTemplate:o}=this.visualElement.getProps();this.visualElement.current.style.transform=o?o({},""):"none",n.root&&n.root.updateScroll(),n.updateLayout(),this.resolveConstraints(),Rr((e=>{if(!to(e,t,null))return;const n=this.getAxisMotionValue(e),{min:o,max:i}=this.constraints[e];n.set(Qe(o,i,r[e]))}))}addListeners(){if(!this.visualElement.current)return;Jr.set(this.visualElement,this);const t=hr(this.visualElement.current,"pointerdown",(t=>{const{drag:e,dragListener:n=!0}=this.getProps();e&&n&&this.start(t)})),e=()=>{const{dragConstraints:t}=this.getProps();xr(t)&&t.current&&(this.constraints=this.resolveRefConstraints())},{projection:n}=this.visualElement,r=n.addEventListener("measure",e);n&&!n.layout&&(n.root&&n.root.updateScroll(),n.updateLayout()),et.read(e);const o=cr(window,"resize",(()=>this.scalePositionWithinConstraints())),i=n.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n}=t;this.isDragging&&n&&(Rr((t=>{const n=this.getAxisMotionValue(t);n&&(this.originPoint[t]+=e[t].translate,n.set(n.get()+e[t].translate))})),this.visualElement.render())}));return()=>{o(),t(),r(),i&&i()}}getProps(){const t=this.visualElement.getProps(),{drag:e=!1,dragDirectionLock:n=!1,dragPropagation:r=!1,dragConstraints:o=!1,dragElastic:i=Mr,dragMomentum:s=!0}=t;return{...t,drag:e,dragDirectionLock:n,dragPropagation:r,dragConstraints:o,dragElastic:i,dragMomentum:s}}}function to(t,e,n){return!(!0!==e&&e!==t||null!==n&&n!==t)}const eo=t=>(e,n)=>{t&&et.postRender((()=>t(e,n)))};var no=n(2540);const ro=(0,r.createContext)(null);const oo=(0,r.createContext)({}),io=(0,r.createContext)({}),so={hasAnimatedSinceResize:!0,hasEverUpdated:!1};function ao(t,e){return e.max===e.min?0:t/(e.max-e.min)*100}const lo={correct:(t,e)=>{if(!e.target)return t;if("string"==typeof t){if(!Gt.test(t))return t;t=parseFloat(t)}return`${ao(t,e.target.x)}% ${ao(t,e.target.y)}%`}},uo={correct:(t,e)=>{let{treeScale:n,projectionDelta:r}=e;const o=t,i=ue.parse(t);if(i.length>5)return o;const s=ue.createTransformer(t),a="number"!=typeof i[0]?1:0,l=r.x.scale*n.x,u=r.y.scale*n.y;i[0+a]/=l,i[1+a]/=u;const c=Qe(l,u,.5);return"number"==typeof i[2+a]&&(i[2+a]/=c),"number"==typeof i[3+a]&&(i[3+a]/=c),s(i)}},co={};const{schedule:ho,cancel:po}=tt(queueMicrotask,!1);class fo extends r.Component{componentDidMount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n,layoutId:r}=this.props,{projection:o}=t;!function(t){for(const e in t)co[e]=t[e],Be(e)&&(co[e].isCSSVariable=!0)}(yo),o&&(e.group&&e.group.add(o),n&&n.register&&r&&n.register(o),o.root.didUpdate(),o.addEventListener("animationComplete",(()=>{this.safeToRemove()})),o.setOptions({...o.options,onExitComplete:()=>this.safeToRemove()})),so.hasEverUpdated=!0}getSnapshotBeforeUpdate(t){const{layoutDependency:e,visualElement:n,drag:r,isPresent:o}=this.props,i=n.projection;return i?(i.isPresent=o,r||t.layoutDependency!==e||void 0===e?i.willUpdate():this.safeToRemove(),t.isPresent!==o&&(o?i.promote():i.relegate()||et.postRender((()=>{const t=i.getStack();t&&t.members.length||this.safeToRemove()}))),null):null}componentDidUpdate(){const{projection:t}=this.props.visualElement;t&&(t.root.didUpdate(),ho.postRender((()=>{!t.currentAnimation&&t.isLead()&&this.safeToRemove()})))}componentWillUnmount(){const{visualElement:t,layoutGroup:e,switchLayoutGroup:n}=this.props,{projection:r}=t;r&&(r.scheduleCheckAfterUnmount(),e&&e.group&&e.group.remove(r),n&&n.deregister&&n.deregister(r))}safeToRemove(){const{safeToRemove:t}=this.props;t&&t()}render(){return null}}function mo(t){const[e,n]=function(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=(0,r.useContext)(ro);if(null===e)return[!0,null];const{isPresent:n,onExitComplete:o,register:i}=e,s=(0,r.useId)();(0,r.useEffect)((()=>{t&&i(s)}),[t]);const a=(0,r.useCallback)((()=>t&&o&&o(s)),[s,o,t]);return!n&&o?[!1,a]:[!0]}(),o=(0,r.useContext)(oo);return(0,no.jsx)(fo,{...t,layoutGroup:o,switchLayoutGroup:(0,r.useContext)(io),isPresent:e,safeToRemove:n})}const yo={borderRadius:{...lo,applyTo:["borderTopLeftRadius","borderTopRightRadius","borderBottomLeftRadius","borderBottomRightRadius"]},borderTopLeftRadius:lo,borderTopRightRadius:lo,borderBottomLeftRadius:lo,borderBottomRightRadius:lo,boxShadow:uo};const vo=(t,e)=>t.depth-e.depth;class go{constructor(){this.children=[],this.isDirty=!1}add(t){lt(this.children,t),this.isDirty=!0}remove(t){ut(this.children,t),this.isDirty=!0}forEach(t){this.isDirty&&this.children.sort(vo),this.isDirty=!1,this.children.forEach(t)}}function bo(t,e){const n=at.now(),r=o=>{let{timestamp:i}=o;const s=i-n;s>=e&&(nt(r),t(s-e))};return et.read(r,!0),()=>nt(r)}function wo(t){const e=yt(t)?t.get():t;return n=e,Boolean(n&&"object"==typeof n&&n.mix&&n.toValue)?e.toValue():e;var n}const xo=["TopLeft","TopRight","BottomLeft","BottomRight"],Po=xo.length,So=t=>"string"==typeof t?parseFloat(t):t,Oo=t=>"number"==typeof t||Gt.test(t);function Ao(t,e){return void 0!==t[e]?t[e]:t.borderRadius}const To=jo(0,.5,Dt),Eo=jo(.5,.95,K);function jo(t,e,n){return r=>re?1:n(E(t,e,r))}function ko(t,e){t.min=e.min,t.max=e.max}function Mo(t,e){ko(t.x,e.x),ko(t.y,e.y)}function Do(t,e){t.translate=e.translate,t.scale=e.scale,t.originPoint=e.originPoint,t.origin=e.origin}function Co(t,e,n,r,o){return t=Ur(t-=e,1/n,r),void 0!==o&&(t=Ur(t,1/o,r)),t}function Io(t,e,n,r,o){let[i,s,a]=n;!function(t){let e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0,n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:.5,o=arguments.length>4?arguments[4]:void 0,i=arguments.length>5&&void 0!==arguments[5]?arguments[5]:t,s=arguments.length>6&&void 0!==arguments[6]?arguments[6]:t;Yt.test(e)&&(e=parseFloat(e),e=Qe(s.min,s.max,e/100)-s.min);if("number"!=typeof e)return;let a=Qe(i.min,i.max,r);t===i&&(a-=e),t.min=Co(t.min,e,n,a,o),t.max=Co(t.max,e,n,a,o)}(t,e[i],e[s],e[a],e.scale,r,o)}const Ro=["x","scaleX","originX"],Lo=["y","scaleY","originY"];function Vo(t,e,n,r){Io(t.x,e,Ro,n?n.x:void 0,r?r.x:void 0),Io(t.y,e,Lo,n?n.y:void 0,r?r.y:void 0)}function Fo(t){return 0===t.translate&&1===t.scale}function Bo(t){return Fo(t.x)&&Fo(t.y)}function _o(t,e){return t.min===e.min&&t.max===e.max}function No(t,e){return Math.round(t.min)===Math.round(e.min)&&Math.round(t.max)===Math.round(e.max)}function Uo(t,e){return No(t.x,e.x)&&No(t.y,e.y)}function Wo(t){return Pr(t.x)/Pr(t.y)}function zo(t,e){return t.translate===e.translate&&t.scale===e.scale&&t.originPoint===e.originPoint}class qo{constructor(){this.members=[]}add(t){lt(this.members,t),t.scheduleRender()}remove(t){if(ut(this.members,t),t===this.prevLead&&(this.prevLead=void 0),t===this.lead){const t=this.members[this.members.length-1];t&&this.promote(t)}}relegate(t){const e=this.members.findIndex((e=>t===e));if(0===e)return!1;let n;for(let r=e;r>=0;r--){const t=this.members[r];if(!1!==t.isPresent){n=t;break}}return!!n&&(this.promote(n),!0)}promote(t,e){const n=this.lead;if(t!==n&&(this.prevLead=n,this.lead=t,t.show(),n)){n.instance&&n.scheduleRender(),t.scheduleRender(),t.resumeFrom=n,e&&(t.resumeFrom.preserveOpacity=!0),n.snapshot&&(t.snapshot=n.snapshot,t.snapshot.latestValues=n.animationValues||n.latestValues),t.root&&t.root.isUpdating&&(t.isLayoutDirty=!0);const{crossfade:r}=t.options;!1===r&&n.hide()}}exitAnimationComplete(){this.members.forEach((t=>{const{options:e,resumingFrom:n}=t;e.onExitComplete&&e.onExitComplete(),n&&n.options.onExitComplete&&n.options.onExitComplete()}))}scheduleRender(){this.members.forEach((t=>{t.instance&&t.scheduleRender(!1)}))}removeLeadSnapshot(){this.lead&&this.lead.snapshot&&(this.lead.snapshot=void 0)}}const $o={type:"projectionFrame",totalNodes:0,resolvedTargetDeltas:0,recalculatedProjection:0},Ho="undefined"!=typeof window&&void 0!==window.MotionDebug,Ko=["","X","Y","Z"],Yo={visibility:"hidden"};let Go=0;function Xo(t,e,n,r){const{latestValues:o}=e;o[t]&&(n[t]=o[t],e.setStaticValue(t,0),r&&(r[t]=0))}function Zo(t){if(t.hasCheckedOptimisedAppear=!0,t.root===t)return;const{visualElement:e}=t.options;if(!e)return;const n=wt(e);if(window.MotionHasOptimisedAnimation(n,"transform")){const{layout:e,layoutId:r}=t.options;window.MotionCancelOptimisedAnimation(n,"transform",et,!(e||r))}const{parent:r}=t;r&&!r.hasCheckedOptimisedAppear&&Zo(r)}function Jo(t){let{attachResizeListener:e,defaultParent:n,measureScroll:r,checkIsScrollRoot:o,resetTransform:i}=t;return class{constructor(){let t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{},e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:null==n?void 0:n();this.id=Go++,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,Ho&&($o.totalNodes=$o.resolvedTargetDeltas=$o.recalculatedProjection=0),this.nodes.forEach(ei),this.nodes.forEach(li),this.nodes.forEach(ui),this.nodes.forEach(ni),Ho&&window.MotionDebug.record($o)},this.resolvedRelativeTargetAt=0,this.hasProjected=!1,this.isVisible=!0,this.animationProgress=0,this.sharedNodes=new Map,this.latestValues=t,this.root=e?e.root||e:this,this.path=e?[...e.path,e]:[],this.parent=e,this.depth=e?e.depth+1:0;for(let n=0;n1?n-1:0),o=1;o1&&void 0!==arguments[1]?arguments[1]:this.root.hasTreeAnimated;if(this.instance)return;var r;this.isSVG=(r=t)instanceof SVGElement&&"svg"!==r.tagName,this.instance=t;const{layoutId:o,layout:i,visualElement:s}=this.options;if(s&&!s.current&&s.mount(t),this.root.nodes.add(this),this.parent&&this.parent.children.add(this),n&&(i||o)&&(this.isLayoutDirty=!0),e){let n;const r=()=>this.root.updateBlockedByResize=!1;e(t,(()=>{this.root.updateBlockedByResize=!0,n&&n(),n=bo(r,250),so.hasAnimatedSinceResize&&(so.hasAnimatedSinceResize=!1,this.nodes.forEach(ai))}))}o&&this.root.registerSharedNode(o,this),!1!==this.options.animate&&s&&(o||i)&&this.addEventListener("didUpdate",(t=>{let{delta:e,hasLayoutChanged:n,hasRelativeLayoutChanged:r,layout:o}=t;if(this.isTreeAnimationBlocked())return this.target=void 0,void(this.relativeTarget=void 0);const i=this.options.transition||s.getDefaultTransition()||mi,{onLayoutAnimationStart:a,onLayoutAnimationComplete:l}=s.getProps(),u=!this.targetLayout||!Uo(this.targetLayout,o),c=!n&&r;if(this.options.layoutRoot||this.resumeFrom||c||n&&(u||!this.currentAnimation)){this.resumeFrom&&(this.resumingFrom=this.resumeFrom,this.resumingFrom.resumingFrom=void 0),this.setAnimationOrigin(e,c);const t={...g(i,"layout"),onPlay:a,onComplete:l};(s.shouldReduceMotion||this.options.layoutRoot)&&(t.delay=0,t.type=!1),this.startAnimation(t)}else n||ai(this),this.isLead()&&this.options.onExitComplete&&this.options.onExitComplete();this.targetLayout=o}))}unmount(){this.options.layoutId&&this.willUpdate(),this.root.nodes.remove(this);const t=this.getStack();t&&t.remove(this),this.parent&&this.parent.children.delete(this),this.instance=void 0,nt(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(ci),this.animationId++)}getTransformTemplate(){const{visualElement:t}=this.options;return t&&t.getProps().transformTemplate}willUpdate(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];if(this.root.hasTreeAnimated=!0,this.root.isUpdateBlocked())return void(this.options.onExitComplete&&this.options.onExitComplete());if(window.MotionCancelOptimisedAnimation&&!this.hasCheckedOptimisedAppear&&Zo(this),!this.root.isUpdating&&this.root.startUpdate(),this.isLayoutDirty)return;this.isLayoutDirty=!0;for(let o=0;o{this.isLayoutDirty?this.root.didUpdate():this.root.checkUpdateFailed()}))}updateSnapshot(){!this.snapshot&&this.instance&&(this.snapshot=this.measure(),!this.snapshot||Pr(this.snapshot.measuredBox.x)||Pr(this.snapshot.measuredBox.y)||(this.snapshot=void 0))}updateLayout(){if(!this.instance)return;if(this.updateScroll(),!(this.options.alwaysMeasureLayout&&this.isLead()||this.isLayoutDirty))return;if(this.resumeFrom&&!this.resumeFrom.instance)for(let n=0;n0&&void 0!==arguments[0]?arguments[0]:"measure",e=Boolean(this.options.layoutScroll&&this.instance);if(this.scroll&&this.scroll.animationId===this.root.animationId&&this.scroll.phase===t&&(e=!1),e){const e=o(this.instance);this.scroll={animationId:this.root.animationId,phase:t,isRoot:e,offset:r(this.instance),wasRoot:this.scroll?this.scroll.isRoot:e}}}resetTransform(){if(!i)return;const t=this.isLayoutDirty||this.shouldResetTransform||this.options.alwaysMeasureLayout,e=this.projectionDelta&&!Bo(this.projectionDelta),n=this.getTransformTemplate(),r=n?n(this.latestValues,""):void 0,o=r!==this.prevTransformTemplateValue;t&&(e||Br(this.latestValues)||o)&&(i(this.instance,r),this.shouldResetTransform=!1,this.scheduleRender())}measure(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];const e=this.measurePageBox();let n=this.removeElementScroll(e);var r;return t&&(n=this.removeTransform(n)),gi((r=n).x),gi(r.y),{animationId:this.root.animationId,measuredBox:e,layoutBox:n,latestValues:{},source:this.id}}measurePageBox(){var t;const{visualElement:e}=this.options;if(!e)return{x:{min:0,max:0},y:{min:0,max:0}};const n=e.measureViewportBox();if(!((null===(t=this.scroll)||void 0===t?void 0:t.wasRoot)||this.path.some(wi))){const{scroll:t}=this.root;t&&(Kr(n.x,t.offset.x),Kr(n.y,t.offset.y))}return n}removeElementScroll(t){var e;const n={x:{min:0,max:0},y:{min:0,max:0}};if(Mo(n,t),null===(e=this.scroll)||void 0===e?void 0:e.wasRoot)return n;for(let r=0;r1&&void 0!==arguments[1]&&arguments[1];const n={x:{min:0,max:0},y:{min:0,max:0}};Mo(n,t);for(let r=0;r0&&void 0!==arguments[0]&&arguments[0];var e;const n=this.getLead();this.isProjectionDirty||(this.isProjectionDirty=n.isProjectionDirty),this.isTransformDirty||(this.isTransformDirty=n.isTransformDirty),this.isSharedProjectionDirty||(this.isSharedProjectionDirty=n.isSharedProjectionDirty);const r=Boolean(this.resumingFrom)||this!==n;if(!(t||r&&this.isSharedProjectionDirty||this.isProjectionDirty||(null===(e=this.parent)||void 0===e?void 0:e.isProjectionDirty)||this.attemptToResolveRelativeTarget||this.root.updateBlockedByResize))return;const{layout:o,layoutId:i}=this.options;if(this.layout&&(o||i)){if(this.resolvedRelativeTargetAt=rt.timestamp,!this.targetDelta&&!this.relativeTarget){const t=this.getClosestProjectingParent();t&&t.layout&&1!==this.animationProgress?(this.relativeParent=t,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}},Er(this.relativeTargetOrigin,this.layout.layoutBox,t.layout.layoutBox),Mo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}if(this.relativeTarget||this.targetDelta){var s,a,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(),s=this.target,a=this.relativeTarget,l=this.relativeParent.target,Ar(s.x,a.x,l.x),Ar(s.y,a.y,l.y)):this.targetDelta?(Boolean(this.resumingFrom)?this.target=this.applyTransform(this.layout.layoutBox):Mo(this.target,this.layout.layoutBox),qr(this.target,this.targetDelta)):Mo(this.target,this.layout.layoutBox),this.attemptToResolveRelativeTarget){this.attemptToResolveRelativeTarget=!1;const t=this.getClosestProjectingParent();t&&Boolean(t.resumingFrom)===Boolean(this.resumingFrom)&&!t.options.layoutScroll&&t.target&&1!==this.animationProgress?(this.relativeParent=t,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}},Er(this.relativeTargetOrigin,this.target,t.target),Mo(this.relativeTarget,this.relativeTargetOrigin)):this.relativeParent=this.relativeTarget=void 0}Ho&&$o.resolvedTargetDeltas++}}}getClosestProjectingParent(){if(this.parent&&!Fr(this.parent.latestValues)&&!_r(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 t;const e=this.getLead(),n=Boolean(this.resumingFrom)||this!==e;let r=!0;if((this.isProjectionDirty||(null===(t=this.parent)||void 0===t?void 0:t.isProjectionDirty))&&(r=!1),n&&(this.isSharedProjectionDirty||this.isTransformDirty)&&(r=!1),this.resolvedRelativeTargetAt===rt.timestamp&&(r=!1),r)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;Mo(this.layoutCorrected,this.layout.layoutBox);const s=this.treeScale.x,a=this.treeScale.y;!function(t,e,n){let r=arguments.length>3&&void 0!==arguments[3]&&arguments[3];const o=n.length;if(!o)return;let i,s;e.x=e.y=1;for(let a=0;a$r&&(e.x=1),e.y$r&&(e.y=1)}(this.layoutCorrected,this.treeScale,this.path,n),!e.layout||e.target||1===this.treeScale.x&&1===this.treeScale.y||(e.target=e.layout.layoutBox,e.targetWithTransforms={x:{min:0,max:0},y:{min:0,max:0}});const{target:l}=e;l?(this.projectionDelta&&this.prevProjectionDelta?(Do(this.prevProjectionDelta.x,this.projectionDelta.x),Do(this.prevProjectionDelta.y,this.projectionDelta.y)):this.createProjectionDeltas(),Or(this.projectionDelta,this.layoutCorrected,l,this.latestValues),this.treeScale.x===s&&this.treeScale.y===a&&zo(this.projectionDelta.x,this.prevProjectionDelta.x)&&zo(this.projectionDelta.y,this.prevProjectionDelta.y)||(this.hasProjected=!0,this.scheduleRender(),this.notifyListeners("projectionUpdate",l)),Ho&&$o.recalculatedProjection++):this.prevProjectionDelta&&(this.createProjectionDeltas(),this.scheduleRender())}hide(){this.isVisible=!1}show(){this.isVisible=!0}scheduleRender(){let t=!(arguments.length>0&&void 0!==arguments[0])||arguments[0];var e;if(null===(e=this.options.visualElement)||void 0===e||e.scheduleRender(),t){const t=this.getStack();t&&t.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(t){let e=arguments.length>1&&void 0!==arguments[1]&&arguments[1];const n=this.snapshot,r=n?n.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=!e;const s={x:{min:0,max:0},y:{min:0,max:0}},a=(n?n.source:void 0)!==(this.layout?this.layout.source:void 0),l=this.getStack(),u=!l||l.members.length<=1,c=Boolean(a&&!u&&!0===this.options.crossfade&&!this.path.some(fi));let d;this.animationProgress=0,this.mixTargetDelta=e=>{const n=e/1e3;var l,h,p,f,m,y;hi(i.x,t.x,n),hi(i.y,t.y,n),this.setTargetDelta(i),this.relativeTarget&&this.relativeTargetOrigin&&this.layout&&this.relativeParent&&this.relativeParent.layout&&(Er(s,this.layout.layoutBox,this.relativeParent.layout.layoutBox),p=this.relativeTarget,f=this.relativeTargetOrigin,m=s,y=n,pi(p.x,f.x,m.x,y),pi(p.y,f.y,m.y,y),d&&(l=this.relativeTarget,h=d,_o(l.x,h.x)&&_o(l.y,h.y))&&(this.isProjectionDirty=!1),d||(d={x:{min:0,max:0},y:{min:0,max:0}}),Mo(d,this.relativeTarget)),a&&(this.animationValues=o,function(t,e,n,r,o,i){o?(t.opacity=Qe(0,void 0!==n.opacity?n.opacity:1,To(r)),t.opacityExit=Qe(void 0!==e.opacity?e.opacity:1,0,Eo(r))):i&&(t.opacity=Qe(void 0!==e.opacity?e.opacity:1,void 0!==n.opacity?n.opacity:1,r));for(let s=0;s{so.hasAnimatedSinceResize=!0,this.currentAnimation=function(t,e,n){const r=yt(t)?t:ft(t);return r.start(Kn("",r,e,n)),r.animation}(0,1e3,{...t,onUpdate:e=>{this.mixTargetDelta(e),t.onUpdate&&t.onUpdate(e)},onComplete:()=>{t.onComplete&&t.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 t=this.getStack();t&&t.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 t=this.getLead();let{targetWithTransforms:e,target:n,layout:r,latestValues:o}=t;if(e&&n&&r){if(this!==t&&this.layout&&r&&bi(this.options.animationType,this.layout.layoutBox,r.layoutBox)){n=this.target||{x:{min:0,max:0},y:{min:0,max:0}};const e=Pr(this.layout.layoutBox.x);n.x.min=t.target.x.min,n.x.max=n.x.min+e;const r=Pr(this.layout.layoutBox.y);n.y.min=t.target.y.min,n.y.max=n.y.min+r}Mo(e,n),Gr(e,o),Or(this.projectionDeltaWithTransform,this.layoutCorrected,e,o)}}registerSharedNode(t,e){this.sharedNodes.has(t)||this.sharedNodes.set(t,new qo);this.sharedNodes.get(t).add(e);const n=e.options.initialPromotionConfig;e.promote({transition:n?n.transition:void 0,preserveFollowOpacity:n&&n.shouldPreserveFollowOpacity?n.shouldPreserveFollowOpacity(e):void 0})}isLead(){const t=this.getStack();return!t||t.lead===this}getLead(){var t;const{layoutId:e}=this.options;return e&&(null===(t=this.getStack())||void 0===t?void 0:t.lead)||this}getPrevLead(){var t;const{layoutId:e}=this.options;return e?null===(t=this.getStack())||void 0===t?void 0:t.prevLead:void 0}getStack(){const{layoutId:t}=this.options;if(t)return this.root.sharedNodes.get(t)}promote(){let{needsReset:t,transition:e,preserveFollowOpacity:n}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const r=this.getStack();r&&r.promote(this,n),t&&(this.projectionDelta=void 0,this.needsReset=!0),e&&this.setOptions({transition:e})}relegate(){const t=this.getStack();return!!t&&t.relegate(this)}resetSkewAndRotation(){const{visualElement:t}=this.options;if(!t)return;let e=!1;const{latestValues:n}=t;if((n.z||n.rotate||n.rotateX||n.rotateY||n.rotateZ||n.skewX||n.skewY)&&(e=!0),!e)return;const r={};n.z&&Xo("z",t,r,this.animationValues);for(let o=0;o{var e;return null===(e=t.currentAnimation)||void 0===e?void 0:e.stop()})),this.root.nodes.forEach(oi),this.root.sharedNodes.clear()}}}function Qo(t){t.updateLayout()}function ti(t){var e;const n=(null===(e=t.resumeFrom)||void 0===e?void 0:e.snapshot)||t.snapshot;if(t.isLead()&&t.layout&&n&&t.hasListeners("didUpdate")){const{layoutBox:e,measuredBox:r}=t.layout,{animationType:o}=t.options,i=n.source!==t.layout.source;"size"===o?Rr((t=>{const r=i?n.measuredBox[t]:n.layoutBox[t],o=Pr(r);r.min=e[t].min,r.max=r.min+o})):bi(o,n.layoutBox,e)&&Rr((r=>{const o=i?n.measuredBox[r]:n.layoutBox[r],s=Pr(e[r]);o.max=o.min+s,t.relativeTarget&&!t.currentAnimation&&(t.isProjectionDirty=!0,t.relativeTarget[r].max=t.relativeTarget[r].min+s)}));const s={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};Or(s,e,n.layoutBox);const a={x:{translate:0,scale:1,origin:0,originPoint:0},y:{translate:0,scale:1,origin:0,originPoint:0}};i?Or(a,t.applyTransform(r,!0),n.measuredBox):Or(a,e,n.layoutBox);const l=!Bo(s);let u=!1;if(!t.resumeFrom){const r=t.getClosestProjectingParent();if(r&&!r.resumeFrom){const{snapshot:o,layout:i}=r;if(o&&i){const s={x:{min:0,max:0},y:{min:0,max:0}};Er(s,n.layoutBox,o.layoutBox);const a={x:{min:0,max:0},y:{min:0,max:0}};Er(a,e,i.layoutBox),Uo(s,a)||(u=!0),r.options.layoutRoot&&(t.relativeTarget=a,t.relativeTargetOrigin=s,t.relativeParent=r)}}}t.notifyListeners("didUpdate",{layout:e,snapshot:n,delta:a,layoutDelta:s,hasLayoutChanged:l,hasRelativeLayoutChanged:u})}else if(t.isLead()){const{onExitComplete:e}=t.options;e&&e()}t.options.transition=void 0}function ei(t){Ho&&$o.totalNodes++,t.parent&&(t.isProjecting()||(t.isProjectionDirty=t.parent.isProjectionDirty),t.isSharedProjectionDirty||(t.isSharedProjectionDirty=Boolean(t.isProjectionDirty||t.parent.isProjectionDirty||t.parent.isSharedProjectionDirty)),t.isTransformDirty||(t.isTransformDirty=t.parent.isTransformDirty))}function ni(t){t.isProjectionDirty=t.isSharedProjectionDirty=t.isTransformDirty=!1}function ri(t){t.clearSnapshot()}function oi(t){t.clearMeasurements()}function ii(t){t.isLayoutDirty=!1}function si(t){const{visualElement:e}=t.options;e&&e.getProps().onBeforeLayoutMeasure&&e.notify("BeforeLayoutMeasure"),t.resetTransform()}function ai(t){t.finishAnimation(),t.targetDelta=t.relativeTarget=t.target=void 0,t.isProjectionDirty=!0}function li(t){t.resolveTargetDelta()}function ui(t){t.calcProjection()}function ci(t){t.resetSkewAndRotation()}function di(t){t.removeLeadSnapshot()}function hi(t,e,n){t.translate=Qe(e.translate,0,n),t.scale=Qe(e.scale,1,n),t.origin=e.origin,t.originPoint=e.originPoint}function pi(t,e,n,r){t.min=Qe(e.min,n.min,r),t.max=Qe(e.max,n.max,r)}function fi(t){return t.animationValues&&void 0!==t.animationValues.opacityExit}const mi={duration:.45,ease:[.4,0,.1,1]},yi=t=>"undefined"!=typeof navigator&&navigator.userAgent&&navigator.userAgent.toLowerCase().includes(t),vi=yi("applewebkit/")&&!yi("chrome/")?Math.round:K;function gi(t){t.min=vi(t.min),t.max=vi(t.max)}function bi(t,e,n){return"position"===t||"preserve-aspect"===t&&(r=Wo(e),o=Wo(n),i=.2,!(Math.abs(r-o)<=i));var r,o,i}function wi(t){var e;return t!==t.root&&(null===(e=t.scroll)||void 0===e?void 0:e.wasRoot)}const xi=Jo({attachResizeListener:(t,e)=>cr(t,"resize",e),measureScroll:()=>({x:document.documentElement.scrollLeft||document.body.scrollLeft,y:document.documentElement.scrollTop||document.body.scrollTop}),checkIsScrollRoot:()=>!0}),Pi={current:void 0},Si=Jo({measureScroll:t=>({x:t.scrollLeft,y:t.scrollTop}),defaultParent:()=>{if(!Pi.current){const t=new xi({});t.mount(window),t.setOptions({layoutScroll:!0}),Pi.current=t}return Pi.current},resetTransform:(t,e)=>{t.style.transform=void 0!==e?e:"none"},checkIsScrollRoot:t=>Boolean("fixed"===window.getComputedStyle(t).position)}),Oi={pan:{Feature:class extends ar{constructor(){super(...arguments),this.removePointerDownListener=K}onPointerDown(t){this.session=new fr(t,this.createPanHandlers(),{transformPagePoint:this.node.getTransformPagePoint(),contextWindow:Zr(this.node)})}createPanHandlers(){const{onPanSessionStart:t,onPanStart:e,onPan:n,onPanEnd:r}=this.node.getProps();return{onSessionStart:eo(t),onStart:eo(e),onMove:n,onEnd:(t,e)=>{delete this.session,r&&et.postRender((()=>r(t,e)))}}}mount(){this.removePointerDownListener=hr(this.node.current,"pointerdown",(t=>this.onPointerDown(t)))}update(){this.session&&this.session.updateHandlers(this.createPanHandlers())}unmount(){this.removePointerDownListener(),this.session&&this.session.end()}}},drag:{Feature:class extends ar{constructor(t){super(t),this.removeGroupControls=K,this.removeListeners=K,this.controls=new Qr(t)}mount(){const{dragControls:t}=this.node.getProps();t&&(this.removeGroupControls=t.subscribe(this.controls)),this.removeListeners=this.controls.addListeners()||K}unmount(){this.removeGroupControls(),this.removeListeners()}},ProjectionNode:Si,MeasureLayout:mo}};function Ai(t,e,n){const{props:r}=t;t.animationState&&r.whileHover&&t.animationState.setActive("whileHover","Start"===n);const o=r["onHover"+n];o&&et.postRender((()=>o(e,dr(e))))}function Ti(t,e,n){const{props:r}=t;t.animationState&&r.whileTap&&t.animationState.setActive("whileTap","Start"===n);const o=r["onTap"+("End"===n?"":n)];o&&et.postRender((()=>o(e,dr(e))))}const Ei=new WeakMap,ji=new WeakMap,ki=t=>{const e=Ei.get(t.target);e&&e(t)},Mi=t=>{t.forEach(ki)};function Di(t,e,n){const r=function(t){let{root:e,...n}=t;const r=e||document;ji.has(r)||ji.set(r,{});const o=ji.get(r),i=JSON.stringify(n);return o[i]||(o[i]=new IntersectionObserver(Mi,{root:e,...n})),o[i]}(e);return Ei.set(t,n),r.observe(t),()=>{Ei.delete(t),r.unobserve(t)}}const Ci={some:0,all:1};const Ii={inView:{Feature:class extends ar{constructor(){super(...arguments),this.hasEnteredView=!1,this.isInView=!1}startObserver(){this.unmount();const{viewport:t={}}=this.node.getProps(),{root:e,margin:n,amount:r="some",once:o}=t,i={root:e?e.current:void 0,rootMargin:n,threshold:"number"==typeof r?r:Ci[r]};return Di(this.node.current,i,(t=>{const{isIntersecting:e}=t;if(this.isInView===e)return;if(this.isInView=e,o&&!e&&this.hasEnteredView)return;e&&(this.hasEnteredView=!0),this.node.animationState&&this.node.animationState.setActive("whileInView",e);const{onViewportEnter:n,onViewportLeave:r}=this.node.getProps(),i=e?n:r;i&&i(t)}))}mount(){this.startObserver()}update(){if("undefined"==typeof IntersectionObserver)return;const{props:t,prevProps:e}=this.node,n=["amount","margin","root"].some(function(t){let{viewport:e={}}=t,{viewport:n={}}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};return t=>e[t]!==n[t]}(t,e));n&&this.startObserver()}unmount(){}}},tap:{Feature:class extends ar{mount(){const{current:t}=this.node;t&&(this.unmount=q(t,((t,e)=>(Ti(this.node,e,"Start"),(t,e)=>{let{success:n}=e;return Ti(this.node,t,n?"End":"Cancel")})),{useGlobalTarget:this.node.props.globalTapTarget}))}unmount(){}}},focus:{Feature:class extends ar{constructor(){super(...arguments),this.isActive=!1}onFocus(){let t=!1;try{t=this.node.current.matches(":focus-visible")}catch(e){t=!0}t&&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=ln(cr(this.node.current,"focus",(()=>this.onFocus())),cr(this.node.current,"blur",(()=>this.onBlur())))}unmount(){}}},hover:{Feature:class extends ar{mount(){const{current:t}=this.node;t&&(this.unmount=function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:{};const[r,o,i]=L(t,n),s=t=>{if(!V(t))return;const{target:n}=t,r=e(n,t);if("function"!=typeof r||!n)return;const i=t=>{V(t)&&(r(t),n.removeEventListener("pointerleave",i))};n.addEventListener("pointerleave",i,o)};return r.forEach((t=>{t.addEventListener("pointerenter",s,o)})),i}(t,((t,e)=>(Ai(this.node,e,"Start"),t=>Ai(this.node,t,"End")))))}unmount(){}}}},Ri={layout:{ProjectionNode:Si,MeasureLayout:mo}},Li=(0,r.createContext)({strict:!1}),Vi=(0,r.createContext)({transformPagePoint:t=>t,isStatic:!1,reducedMotion:"never"}),Fi=(0,r.createContext)({});function Bi(t){return i(t.animate)||p.some((e=>l(t[e])))}function _i(t){return Boolean(Bi(t)||t.variants)}function Ni(t){const{initial:e,animate:n}=function(t,e){if(Bi(t)){const{initial:e,animate:n}=t;return{initial:!1===e||l(e)?e:void 0,animate:l(n)?n:void 0}}return!1!==t.inherit?e:{}}(t,(0,r.useContext)(Fi));return(0,r.useMemo)((()=>({initial:e,animate:n})),[Ui(e),Ui(n)])}function Ui(t){return Array.isArray(t)?t.join(" "):t}const Wi="undefined"!=typeof window,zi={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"]},qi={};for(const Ks in zi)qi[Ks]={isEnabled:t=>zi[Ks].some((e=>!!t[e]))};const $i=Symbol.for("motionComponentSymbol");function Hi(t,e,n){return(0,r.useCallback)((r=>{r&&t.onMount&&t.onMount(r),e&&(r?e.mount(r):e.unmount()),n&&("function"==typeof n?n(r):xr(n)&&(n.current=r))}),[e])}const Ki=Wi?r.useLayoutEffect:r.useEffect;function Yi(t,e,n,o,i){var s,a;const{visualElement:l}=(0,r.useContext)(Fi),u=(0,r.useContext)(Li),c=(0,r.useContext)(ro),d=(0,r.useContext)(Vi).reducedMotion,h=(0,r.useRef)(null);o=o||u.renderer,!h.current&&o&&(h.current=o(t,{visualState:e,parent:l,props:n,presenceContext:c,blockInitialAnimation:!!c&&!1===c.initial,reducedMotionConfig:d}));const p=h.current,f=(0,r.useContext)(io);!p||p.projection||!i||"html"!==p.type&&"svg"!==p.type||function(t,e,n,r){const{layoutId:o,layout:i,drag:s,dragConstraints:a,layoutScroll:l,layoutRoot:u}=e;t.projection=new n(t.latestValues,e["data-framer-portal-id"]?void 0:Gi(t.parent)),t.projection.setOptions({layoutId:o,layout:i,alwaysMeasureLayout:Boolean(s)||a&&xr(a),visualElement:t,animationType:"string"==typeof i?i:"both",initialPromotionConfig:r,layoutScroll:l,layoutRoot:u})}(h.current,n,i,f);const m=(0,r.useRef)(!1);(0,r.useInsertionEffect)((()=>{p&&m.current&&p.update(n,c)}));const y=n[bt],v=(0,r.useRef)(Boolean(y)&&!(null===(s=window.MotionHandoffIsComplete)||void 0===s?void 0:s.call(window,y))&&(null===(a=window.MotionHasOptimisedAnimation)||void 0===a?void 0:a.call(window,y)));return Ki((()=>{p&&(m.current=!0,window.MotionIsMounted=!0,p.updateFeatures(),ho.render(p.render),v.current&&p.animationState&&p.animationState.animateChanges())})),(0,r.useEffect)((()=>{p&&(!v.current&&p.animationState&&p.animationState.animateChanges(),v.current&&(queueMicrotask((()=>{var t;null===(t=window.MotionHandoffMarkAsComplete)||void 0===t||t.call(window,y)})),v.current=!1))})),p}function Gi(t){if(t)return!1!==t.options.allowProjection?t.projection:Gi(t.parent)}function Xi(t){let{preloadedFeatures:e,createVisualElement:n,useRender:o,useVisualState:i,Component:s}=t;var a,l;function u(t,e){let a;const l={...(0,r.useContext)(Vi),...t,layoutId:Zi(t)},{isStatic:u}=l,c=Ni(t),d=i(t,u);if(!u&&Wi){!function(){(0,r.useContext)(Li).strict;0}();const t=function(t){const{drag:e,layout:n}=qi;if(!e&&!n)return{};const r={...e,...n};return{MeasureLayout:(null==e?void 0:e.isEnabled(t))||(null==n?void 0:n.isEnabled(t))?r.MeasureLayout:void 0,ProjectionNode:r.ProjectionNode}}(l);a=t.MeasureLayout,c.visualElement=Yi(s,d,l,n,t.ProjectionNode)}return(0,no.jsxs)(Fi.Provider,{value:c,children:[a&&c.visualElement?(0,no.jsx)(a,{visualElement:c.visualElement,...l}):null,o(s,t,Hi(d,c.visualElement,e),d,u,c.visualElement)]})}e&&function(t){for(const e in t)qi[e]={...qi[e],...t[e]}}(e),u.displayName=`motion.${"string"==typeof s?s:`create(${null!==(l=null!==(a=s.displayName)&&void 0!==a?a:s.name)&&void 0!==l?l:""})`}`;const c=(0,r.forwardRef)(u);return c[$i]=s,c}function Zi(t){let{layoutId:e}=t;const n=(0,r.useContext)(oo).id;return n&&void 0!==e?n+"-"+e:e}function Ji(t,e){let{layout:n,layoutId:r}=e;return G.has(t)||t.startsWith("origin")||(n||void 0!==r)&&(!!co[t]||"opacity"===t)}const Qi=(t,e)=>e&&"number"==typeof t?e.transform(t):t,ts={x:"translateX",y:"translateY",z:"translateZ",transformPerspective:"perspective"},es=Y.length;function ns(t,e,n){const{style:r,vars:o,transformOrigin:i}=t;let s=!1,a=!1;for(const l in e){const t=e[l];if(G.has(l))s=!0;else if(Be(l))o[l]=t;else{const e=Qi(t,ve[l]);l.startsWith("origin")?(a=!0,i[l]=e):r[l]=e}}if(e.transform||(s||n?r.transform=function(t,e,n){let r="",o=!0;for(let i=0;i({style:{},transform:{},transformOrigin:{},vars:{}});function os(t,e,n){for(const r in e)yt(e[r])||Ji(r,n)||(t[r]=e[r])}function is(t,e){const n={};return os(n,t.style||{},t),Object.assign(n,function(t,e){let{transformTemplate:n}=t;return(0,r.useMemo)((()=>{const t={style:{},transform:{},transformOrigin:{},vars:{}};return ns(t,e,n),Object.assign({},t.vars,t.style)}),[e])}(t,e)),n}function ss(t,e){const n={},r=is(t,e);return t.drag&&!1!==t.dragListener&&(n.draggable=!1,r.userSelect=r.WebkitUserSelect=r.WebkitTouchCallout="none",r.touchAction=!0===t.drag?"none":"pan-"+("x"===t.drag?"y":"x")),void 0===t.tabIndex&&(t.onTap||t.onTapStart||t.whileTap)&&(n.tabIndex=0),n.style=r,n}const as=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 ls(t){return t.startsWith("while")||t.startsWith("drag")&&"draggable"!==t||t.startsWith("layout")||t.startsWith("onTap")||t.startsWith("onPan")||t.startsWith("onLayout")||as.has(t)}let us=t=>!ls(t);try{(cs=n(4479).A)&&(us=t=>t.startsWith("on")?!ls(t):cs(t))}catch(Hs){}var cs;const ds=["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 hs(t){return"string"==typeof t&&!t.includes("-")&&!!(ds.indexOf(t)>-1||/[A-Z]/u.test(t))}const ps={offset:"stroke-dashoffset",array:"stroke-dasharray"},fs={offset:"strokeDashoffset",array:"strokeDasharray"};function ms(t,e,n){return"string"==typeof t?t:Gt.transform(e+n*t)}function ys(t,e,n,r){let{attrX:o,attrY:i,attrScale:s,originX:a,originY:l,pathLength:u,pathSpacing:c=1,pathOffset:d=0,...h}=e;if(ns(t,h,r),n)return void(t.style.viewBox&&(t.attrs.viewBox=t.style.viewBox));t.attrs=t.style,t.style={};const{attrs:p,style:f,dimensions:m}=t;p.transform&&(m&&(f.transform=p.transform),delete p.transform),m&&(void 0!==a||void 0!==l||f.transform)&&(f.transformOrigin=function(t,e,n){return`${ms(e,t.x,t.width)} ${ms(n,t.y,t.height)}`}(m,void 0!==a?a:.5,void 0!==l?l:.5)),void 0!==o&&(p.x=o),void 0!==i&&(p.y=i),void 0!==s&&(p.scale=s),void 0!==u&&function(t,e){let n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:1,r=arguments.length>3&&void 0!==arguments[3]?arguments[3]:0,o=!(arguments.length>4&&void 0!==arguments[4])||arguments[4];t.pathLength=1;const i=o?ps:fs;t[i.offset]=Gt.transform(-r);const s=Gt.transform(e),a=Gt.transform(n);t[i.array]=`${s} ${a}`}(p,u,c,d,!1)}const vs=()=>({style:{},transform:{},transformOrigin:{},vars:{},attrs:{}}),gs=t=>"string"==typeof t&&"svg"===t.toLowerCase();function bs(t,e,n,o){const i=(0,r.useMemo)((()=>{const n={style:{},transform:{},transformOrigin:{},vars:{},attrs:{}};return ys(n,e,gs(o),t.transformTemplate),{...n.attrs,style:{...n.style}}}),[e]);if(t.style){const e={};os(e,t.style,t),i.style={...e,...i.style}}return i}function ws(){let t=arguments.length>0&&void 0!==arguments[0]&&arguments[0];return(e,n,o,i,s)=>{let{latestValues:a}=i;const l=(hs(e)?bs:ss)(n,a,s,e),u=function(t,e,n){const r={};for(const o in t)"values"===o&&"object"==typeof t.values||(us(o)||!0===n&&ls(o)||!e&&!ls(o)||t.draggable&&o.startsWith("onDrag"))&&(r[o]=t[o]);return r}(n,"string"==typeof e,t),c=e!==r.Fragment?{...u,...l,ref:o}:{},{children:d}=n,h=(0,r.useMemo)((()=>yt(d)?d.get():d),[d]);return(0,r.createElement)(e,{...c,children:h})}}const xs=t=>(e,n)=>{const o=(0,r.useContext)(Fi),i=(0,r.useContext)(ro),s=()=>function(t,e,n,r){let{scrapeMotionValuesFromProps:o,createRenderState:i,onUpdate:s}=t;const a={latestValues:Ps(e,n,r,o),renderState:i()};return s&&(a.onMount=t=>s({props:e,current:t,...a}),a.onUpdate=t=>s(t)),a}(t,e,o,i);return n?s():function(t){const e=(0,r.useRef)(null);return null===e.current&&(e.current=t()),e.current}(s)};function Ps(t,e,n,r){const o={},s=r(t,{});for(const i in s)o[i]=wo(s[i]);let{initial:a,animate:l}=t;const u=Bi(t),d=_i(t);e&&d&&!u&&!1!==t.inherit&&(void 0===a&&(a=e.initial),void 0===l&&(l=e.animate));let h=!!n&&!1===n.initial;h=h||!1===a;const p=h?l:a;if(p&&"boolean"!=typeof p&&!i(p)){const e=Array.isArray(p)?p:[p];for(let n=0;n{let{props:e,prevProps:n,current:r,renderState:o,latestValues:i}=t;if(!r)return;let s=!!e.drag;if(!s)for(const l in i)if(G.has(l)){s=!0;break}if(!s)return;let a=!n;if(n)for(let l=0;l{As(r,o),et.render((()=>{ys(o,i,gs(r.tagName),e.transformTemplate),js(r,o)}))}))}})};function Cs(t,e){return function(n){let{forwardMotionProps:r}=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{forwardMotionProps:!1};return Xi({...hs(n)?Ds:Os,preloadedFeatures:t,useRender:ws(r),createVisualElement:e,Component:n})}}const Is={current:null},Rs={current:!1};const Ls=[...$e,te,ue],Vs=new WeakMap;const Fs=["AnimationStart","AnimationComplete","Update","BeforeLayoutMeasure","LayoutMeasure","LayoutAnimationStart","LayoutAnimationComplete"];class Bs{scrapeMotionValuesFromProps(t,e,n){return{}}constructor(t){let{parent:e,props:n,presenceContext:r,reducedMotionConfig:o,blockInitialAnimation:i,visualState:s}=t,a=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.current=null,this.children=new Set,this.isVariantNode=!1,this.isControllingVariants=!1,this.shouldReduceMotion=null,this.values=new Map,this.KeyframeResolver=Ie,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 t=at.now();this.renderScheduledAtthis.bindToMotionValue(e,t))),Rs.current||function(){if(Rs.current=!0,Wi)if(window.matchMedia){const t=window.matchMedia("(prefers-reduced-motion)"),e=()=>Is.current=t.matches;t.addListener(e),e()}else Is.current=!1}(),this.shouldReduceMotion="never"!==this.reducedMotionConfig&&("always"===this.reducedMotionConfig||Is.current),this.parent&&this.parent.children.add(this),this.update(this.props,this.presenceContext)}unmount(){Vs.delete(this.current),this.projection&&this.projection.unmount(),nt(this.notifyUpdate),nt(this.render),this.valueSubscriptions.forEach((t=>t())),this.valueSubscriptions.clear(),this.removeFromVariantTree&&this.removeFromVariantTree(),this.parent&&this.parent.children.delete(this);for(const t in this.events)this.events[t].clear();for(const t in this.features){const e=this.features[t];e&&(e.unmount(),e.isMounted=!1)}this.current=null}bindToMotionValue(t,e){this.valueSubscriptions.has(t)&&this.valueSubscriptions.get(t)();const n=G.has(t);n&&this.onBindTransform&&this.onBindTransform();const r=e.on("change",(e=>{this.latestValues[t]=e,this.props.onUpdate&&et.preRender(this.notifyUpdate),n&&this.projection&&(this.projection.isTransformDirty=!0)})),o=e.on("renderRequest",this.scheduleRender);let i;window.MotionCheckAppearSync&&(i=window.MotionCheckAppearSync(this,t,e)),this.valueSubscriptions.set(t,(()=>{r(),o(),i&&i(),e.owner&&e.stop()}))}sortNodePosition(t){return this.current&&this.sortInstanceNodePosition&&this.type===t.type?this.sortInstanceNodePosition(this.current,t.current):0}updateFeatures(){let t="animation";for(t in qi){const e=qi[t];if(!e)continue;const{isEnabled:n,Feature:r}=e;if(!this.features[t]&&r&&n(this.props)&&(this.features[t]=new r(this)),this.features[t]){const e=this.features[t];e.isMounted?e.update():(e.mount(),e.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(t){return this.latestValues[t]}setStaticValue(t,e){this.latestValues[t]=e}update(t,e){(t.transformTemplate||this.props.transformTemplate)&&this.scheduleRender(),this.prevProps=this.props,this.props=t,this.prevPresenceContext=this.presenceContext,this.presenceContext=e;for(let n=0;ne.variantChildren.delete(t)}addValue(t,e){const n=this.values.get(t);e!==n&&(n&&this.removeValue(t),this.bindToMotionValue(t,e),this.values.set(t,e),this.latestValues[t]=e.get())}removeValue(t){this.values.delete(t);const e=this.valueSubscriptions.get(t);e&&(e(),this.valueSubscriptions.delete(t)),delete this.latestValues[t],this.removeValueFromRenderState(t,this.renderState)}hasValue(t){return this.values.has(t)}getValue(t,e){if(this.props.values&&this.props.values[t])return this.props.values[t];let n=this.values.get(t);return void 0===n&&void 0!==e&&(n=ft(null===e?void 0:e,{owner:this}),this.addValue(t,n)),n}readValue(t,e){var n;let r=void 0===this.latestValues[t]&&this.current?null!==(n=this.getBaseTargetFromProps(this.props,t))&&void 0!==n?n:this.readValueFromInstance(this.current,t,this.options):this.latestValues[t];var o;return null!=r&&("string"==typeof r&&(Ve(r)||It(r))?r=parseFloat(r):(o=r,!Ls.find(qe(o))&&ue.test(e)&&(r=we(t,e))),this.setBaseTarget(t,yt(r)?r.get():r)),yt(r)?r.get():r}setBaseTarget(t,e){this.baseTarget[t]=e}getBaseTarget(t){var e;const{initial:n}=this.props;let r;if("string"==typeof n||"object"==typeof n){const o=c(this.props,n,null===(e=this.presenceContext)||void 0===e?void 0:e.custom);o&&(r=o[t])}if(n&&void 0!==r)return r;const o=this.getBaseTargetFromProps(this.props,t);return void 0===o||yt(o)?void 0!==this.initialValues[t]&&void 0===r?void 0:this.baseTarget[t]:o}on(t,e){return this.events[t]||(this.events[t]=new ct),this.events[t].add(e)}notify(t){if(this.events[t]){for(var e=arguments.length,n=new Array(e>1?e-1:0),r=1;r{this.current&&(this.current.textContent=`${t}`)})))}}class Ns extends _s{constructor(){super(...arguments),this.type="html",this.renderInstance=Ts}readValueFromInstance(t,e){if(G.has(e)){const t=be(e);return t&&t.default||0}{const r=(n=t,window.getComputedStyle(n)),o=(Be(e)?r.getPropertyValue(e):r[e])||0;return"string"==typeof o?o.trim():o}var n}measureInstanceViewportBox(t,e){let{transformPagePoint:n}=e;return Xr(t,n)}build(t,e,n){ns(t,e,n.transformTemplate)}scrapeMotionValuesFromProps(t,e,n){return Ss(t,e,n)}}class Us extends _s{constructor(){super(...arguments),this.type="svg",this.isSVGTag=!1,this.measureInstanceViewportBox=Ir,this.updateDimensions=()=>{this.current&&!this.renderState.dimensions&&As(this.current,this.renderState)}}getBaseTargetFromProps(t,e){return t[e]}readValueFromInstance(t,e){if(G.has(e)){const t=be(e);return t&&t.default||0}return e=Es.has(e)?e:gt(e),t.getAttribute(e)}scrapeMotionValuesFromProps(t,e,n){return ks(t,e,n)}onBindTransform(){this.current&&!this.renderState.dimensions&&et.postRender(this.updateDimensions)}build(t,e,n){ys(t,e,this.isSVGTag,n.transformTemplate)}renderInstance(t,e,n,r){js(t,e,0,r)}mount(t){this.isSVGTag=gs(t.tagName),super.mount(t)}}const Ws=o(Cs({...ur,...Ii,...Oi,...Ri},((t,e)=>hs(t)?new Us(e):new Ns(e,{allowProjection:t!==r.Fragment})))),zs=[{id:1,name:"Wehebe Darge",image:"https://uploads.quarkly.io/66ed6b9c9335410018c672e7/images/Wehebe_Darge.jpg?v=2024-10-30T09:31:23.400Z"},{id:2,name:"Joueur 2",image:"https://uploads.quarkly.io/66ed6b9c9335410018c672e7/images/Wehebe_Darge.jpg?v=2024-10-30T09:31:23.400Z"},{id:3,name:"Joueur 3",image:"https://uploads.quarkly.io/66ed6b9c9335410018c672e7/images/Wehebe_Darge.jpg?v=2024-10-30T09:31:23.400Z"},{id:4,name:"Joueur 4",image:"https://uploads.quarkly.io/66ed6b9c9335410018c672e7/images/Wehebe_Darge.jpg?v=2024-10-30T09:31:23.400Z"},{id:5,name:"Joueur 5",image:"https://uploads.quarkly.io/your-image-url/player5.jpg"},{id:6,name:"Joueur 6",image:"https://uploads.quarkly.io/your-image-url/player6.jpg"},{id:7,name:"Joueur 7",image:"https://uploads.quarkly.io/your-image-url/player7.jpg"},{id:8,name:"Joueur 8",image:"https://uploads.quarkly.io/your-image-url/player8.jpg"}];function qs(){const{0:t,1:e}=(0,r.useState)(null);return r.createElement("div",{className:"flex flex-col items-center p-6 bg-gray-900 min-h-screen"},r.createElement("h1",{className:"text-white text-2xl mb-4"},"Selectionne un Joueur"),r.createElement("div",{className:"grid grid-cols-4 gap-4"},zs.map((n=>r.createElement(Ws.div,{key:n.id,className:"relative w-24 h-32 bg-gray-800 rounded-xl overflow-hidden cursor-pointer border-4 transition-all "+(t===n.id?"border-yellow-400 shadow-yellow-500 shadow-lg":"border-gray-600"),whileHover:{scale:1.1},onClick:()=>e(n.id)},r.createElement("img",{src:n.image,alt:n.name,className:"w-full h-full object-cover"}),r.createElement("div",{className:"absolute bottom-0 w-full text-center text-white bg-black bg-opacity-60 py-1 text-xs"},n.name))))))}var $s=n(5285).A},3051:function(t,e,n){var r=n(564).default;function o(){"use strict";t.exports=o=function(){return n},t.exports.__esModule=!0,t.exports.default=t.exports;var e,n={},i=Object.prototype,s=i.hasOwnProperty,a=Object.defineProperty||function(t,e,n){t[e]=n.value},l="function"==typeof Symbol?Symbol:{},u=l.iterator||"@@iterator",c=l.asyncIterator||"@@asyncIterator",d=l.toStringTag||"@@toStringTag";function h(t,e,n){return Object.defineProperty(t,e,{value:n,enumerable:!0,configurable:!0,writable:!0}),t[e]}try{h({},"")}catch(e){h=function(t,e,n){return t[e]=n}}function p(t,e,n,r){var o=e&&e.prototype instanceof w?e:w,i=Object.create(o.prototype),s=new I(r||[]);return a(i,"_invoke",{value:k(t,n,s)}),i}function f(t,e,n){try{return{type:"normal",arg:t.call(e,n)}}catch(t){return{type:"throw",arg:t}}}n.wrap=p;var m="suspendedStart",y="suspendedYield",v="executing",g="completed",b={};function w(){}function x(){}function P(){}var S={};h(S,u,(function(){return this}));var O=Object.getPrototypeOf,A=O&&O(O(R([])));A&&A!==i&&s.call(A,u)&&(S=A);var T=P.prototype=w.prototype=Object.create(S);function E(t){["next","throw","return"].forEach((function(e){h(t,e,(function(t){return this._invoke(e,t)}))}))}function j(t,e){function n(o,i,a,l){var u=f(t[o],t,i);if("throw"!==u.type){var c=u.arg,d=c.value;return d&&"object"==r(d)&&s.call(d,"__await")?e.resolve(d.__await).then((function(t){n("next",t,a,l)}),(function(t){n("throw",t,a,l)})):e.resolve(d).then((function(t){c.value=t,a(c)}),(function(t){return n("throw",t,a,l)}))}l(u.arg)}var o;a(this,"_invoke",{value:function(t,r){function i(){return new e((function(e,o){n(t,r,e,o)}))}return o=o?o.then(i,i):i()}})}function k(t,n,r){var o=m;return function(i,s){if(o===v)throw Error("Generator is already running");if(o===g){if("throw"===i)throw s;return{value:e,done:!0}}for(r.method=i,r.arg=s;;){var a=r.delegate;if(a){var l=M(a,r);if(l){if(l===b)continue;return l}}if("next"===r.method)r.sent=r._sent=r.arg;else if("throw"===r.method){if(o===m)throw o=g,r.arg;r.dispatchException(r.arg)}else"return"===r.method&&r.abrupt("return",r.arg);o=v;var u=f(t,n,r);if("normal"===u.type){if(o=r.done?g:y,u.arg===b)continue;return{value:u.arg,done:r.done}}"throw"===u.type&&(o=g,r.method="throw",r.arg=u.arg)}}}function M(t,n){var r=n.method,o=t.iterator[r];if(o===e)return n.delegate=null,"throw"===r&&t.iterator.return&&(n.method="return",n.arg=e,M(t,n),"throw"===n.method)||"return"!==r&&(n.method="throw",n.arg=new TypeError("The iterator does not provide a '"+r+"' method")),b;var i=f(o,t.iterator,n.arg);if("throw"===i.type)return n.method="throw",n.arg=i.arg,n.delegate=null,b;var s=i.arg;return s?s.done?(n[t.resultName]=s.value,n.next=t.nextLoc,"return"!==n.method&&(n.method="next",n.arg=e),n.delegate=null,b):s:(n.method="throw",n.arg=new TypeError("iterator result is not an object"),n.delegate=null,b)}function D(t){var e={tryLoc:t[0]};1 in t&&(e.catchLoc=t[1]),2 in t&&(e.finallyLoc=t[2],e.afterLoc=t[3]),this.tryEntries.push(e)}function C(t){var e=t.completion||{};e.type="normal",delete e.arg,t.completion=e}function I(t){this.tryEntries=[{tryLoc:"root"}],t.forEach(D,this),this.reset(!0)}function R(t){if(t||""===t){var n=t[u];if(n)return n.call(t);if("function"==typeof t.next)return t;if(!isNaN(t.length)){var o=-1,i=function n(){for(;++o=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return r("end");if(i.tryLoc<=this.prev){var l=s.call(i,"catchLoc"),u=s.call(i,"finallyLoc");if(l&&u){if(this.prev=0;--n){var r=this.tryEntries[n];if(r.tryLoc<=this.prev&&s.call(r,"finallyLoc")&&this.prev=0;--e){var n=this.tryEntries[e];if(n.finallyLoc===t)return this.complete(n.completion,n.afterLoc),C(n),b}},catch:function(t){for(var e=this.tryEntries.length-1;e>=0;--e){var n=this.tryEntries[e];if(n.tryLoc===t){var r=n.completion;if("throw"===r.type){var o=r.arg;C(n)}return o}}throw Error("illegal catch attempt")},delegateYield:function(t,n,r){return this.delegate={iterator:R(t),resultName:n,nextLoc:r},"next"===this.method&&(this.arg=e),b}},n}t.exports=o,t.exports.__esModule=!0,t.exports.default=t.exports},564:function(t){function e(n){return t.exports=e="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(t){return typeof t}:function(t){return t&&"function"==typeof Symbol&&t.constructor===Symbol&&t!==Symbol.prototype?"symbol":typeof t},t.exports.__esModule=!0,t.exports.default=t.exports,e(n)}t.exports=e,t.exports.__esModule=!0,t.exports.default=t.exports},1790:function(t,e,n){var r=n(3051)();t.exports=r;try{regeneratorRuntime=r}catch(o){"object"==typeof globalThis?globalThis.regeneratorRuntime=r:Function("r","regeneratorRuntime = r")(r)}}}]); //# sourceMappingURL=8a88c433219c5537669ed1c7af67b2c75f16113f-348f9c59eb68154a55a6.js.map