@vonaffenfels/slate-editor 1.0.78 → 1.0.81

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/Renderer.js CHANGED
@@ -1,2 +1,2 @@
1
1
  /*! For license information please see Renderer.js.LICENSE.txt */
2
- !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(e=>(()=>{var t={6664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(5850);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var l=r(6522);function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var u=r(8156),c=r.n(u);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===(0,l.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}c().createElement;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(a,e);var t,r,n,l=s(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=l.call(this,e)).state={hasError:!1},t}return t=a,n=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(e,t){var r="Error in ".concat(this.props.name);console.groupCollapsed(r),console.error("Error",e),console.error("Info",t),console.groupEnd(r)}},{key:"render",value:function(){return this.state.hasError?this.props.fallback?this.props.fallback:this.props.isEditor?c().createElement("div",{className:"storybook-element-error"},c().createElement("p",null,"Error in Element ",this.props.name)):null:this.props.children}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(c().Component)},8703:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var n=(0,r(8156).createContext)({storybookUrl:null,storybookTarget:null,activeStorybook:null})},1053:(e,t,r)=>{"use strict";r.d(t,{g:()=>m});var n=r(7896),o=r(6666),i=r(2159),l=r(2779),a=r.n(l),u=r(8156),c=r.n(u),s=["attributes","elementPropsMap","specialClassMap","transformAttributes","children","element","isRenderer","isInSlot","defaultComponentReplacement","onElementClick"],f=["noFollow","nofollow"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}c().createElement;var m=function(e){var t,r,o,l,u,p,m=e.attributes,v=e.elementPropsMap,h=e.specialClassMap,y=e.transformAttributes,b=e.children,g=e.element,E=e.isRenderer,w=e.isInSlot,O=void 0!==w&&w,k=e.defaultComponentReplacement,x=e.onElementClick,j=void 0===x?function(){}:x,P=((0,i.Z)(e,s),g.type),C=g.align,S=d(d({},g.attributes||{}),function(e){return v?O&&v[e+"-in-slot"]?v[e+"-in-slot"]:v[e]||{}:{}}(P));"function"==typeof y&&(S=y(P,S));var Z=m.className||S.className||"",L=S.wrapper||function(e){var t=e.children;return c().createElement(c().Fragment,null,t)};switch(C&&(h&&h[C]?Z+=h[C]:Z+="align-"+C),m.onClick=function(){return j(g)},P){case"blockquote":return c().createElement(L,null,c().createElement("blockquote",(0,n.Z)({},m,{className:Z.trim()}),b));case"list-item":return c().createElement(L,null,c().createElement("li",(0,n.Z)({},m,{className:Z.trim()}),b));case"unordered-list":return c().createElement(L,null,c().createElement("ul",(0,n.Z)({},m,{className:Z.trim()}),b));case"ordered-list":return c().createElement(L,null,c().createElement("ol",(0,n.Z)({},m,{className:Z.trim()}),b));case"arrow-list":return c().createElement(L,null,c().createElement("ul",(0,n.Z)({},m,{className:a()(d(d({},Z.trim()),{},{"arrow-list":!0}))}),b));case"code":var _,N;return E?c().createElement(L,{code:null==g||null===(_=g.attributes)||void 0===_?void 0:_.code}):c().createElement(L,null,c().createElement("div",(0,n.Z)({},m,{className:Z.trim()}),c().createElement("div",{dangerouslySetInnerHTML:{__html:null==g||null===(N=g.attributes)||void 0===N?void 0:N.code}})));case"heading":switch(g.attributes.level){case 1:return c().createElement(L,{level:g.attributes.level},c().createElement("h1",(0,n.Z)({},m,{id:(null==g||null===(t=g.attributes)||void 0===t?void 0:t.id)||void 0,className:Z.trim()||void 0}),b));case 2:return c().createElement(L,{level:g.attributes.level},c().createElement("h2",(0,n.Z)({},m,{id:(null==g||null===(r=g.attributes)||void 0===r?void 0:r.id)||void 0,className:Z.trim()||void 0}),b));case 3:return c().createElement(L,{level:g.attributes.level},c().createElement("h3",(0,n.Z)({},m,{id:(null==g||null===(o=g.attributes)||void 0===o?void 0:o.id)||void 0,className:Z.trim()||void 0}),b));case 4:return c().createElement(L,{level:g.attributes.level},c().createElement("h4",(0,n.Z)({},m,{id:(null==g||null===(l=g.attributes)||void 0===l?void 0:l.id)||void 0,className:Z.trim()||void 0}),b));case 5:return c().createElement(L,{level:g.attributes.level},c().createElement("h5",(0,n.Z)({},m,{id:(null==g||null===(u=g.attributes)||void 0===u?void 0:u.id)||void 0,className:Z.trim()||void 0}),b));case 6:return c().createElement(L,{level:g.attributes.level},c().createElement("h6",(0,n.Z)({},m,{id:(null==g||null===(p=g.attributes)||void 0===p?void 0:p.id)||void 0,className:Z.trim()||void 0}),b));default:return null}case"link":var D="noopener noreferrer",T=S,R=T.noFollow,M=T.nofollow,A=(0,i.Z)(T,f);(R||M)&&(D+=" nofollow");var F="function"==typeof k?k(P):null;return F?c().createElement(L,null,c().createElement(F,(0,n.Z)({},A,m,{rel:D,className:Z.trim()}),b)):c().createElement(L,null,c().createElement("a",(0,n.Z)({},A,m,{rel:D,className:Z.trim()}),b));case"paragraph":return c().createElement(L,null,c().createElement("p",(0,n.Z)({},g.attributes,m,{className:Z.trim()}),b));case"divider":return c().createElement(L,null,c().createElement("hr",m),b);case"div":return c().createElement(L,null,c().createElement("div",(0,n.Z)({},g.attributes,m),b));case"span":return c().createElement(L,null,c().createElement("span",(0,n.Z)({},g.attributes,m),b));default:return E?c().createElement(L,null,b):c().createElement("span",(0,n.Z)({},m,{className:Z.trim()}),b)}}},8799:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(2159),o=r(8156),i=r.n(o),l=(i().createElement,function(e){var t=e.isRenderer,r=e.attributes,n=e.children,l=e.typeProps;if(t){if(!n)return null;if("string"==typeof n){var u=n.split("\n");return i().createElement(o.Fragment,null,u.length>1?u.map((function(e,t){return i().createElement(o.Fragment,{key:t},a(e,l),t!==u.length-1?i().createElement("br",null):null)})):a(n,l))}return i().createElement(o.Fragment,null,n)}return i().createElement("span",r,n)});function a(e,t){if(!t||!e||"string"!=typeof e)return e;if(t.line_transform)for(var r in t.line_transform)if(e.startsWith(r)){var n=t.line_transform[r];return i().createElement(n,null,e.substr(r.length).trim())}return e}var u=function(e){var t=e.attributes,r=e.children;return i().createElement("strong",t,r)},c=function(e){var t=e.attributes,r=e.children;return i().createElement("i",t,r)},s=function(e){var t=e.attributes,r=e.children;return i().createElement("u",t,r)},f=function(e){var t=e.attributes,r=e.children;return i().createElement("del",t,r)},p=function(e){var t=e.attributes,r=e.children;return i().createElement("small",t,r)},d=["attributes","children","leaf","isRenderer","typeProps"],m=(i().createElement,function(e){var t=e.attributes,r=e.children,o=e.leaf,a=e.isRenderer,m=e.typeProps;return(0,n.Z)(e,d),o.bold&&(r=i().createElement(u,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.italic&&(r=i().createElement(c,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.underlined&&(r=i().createElement(s,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.strikethrough&&(r=i().createElement(f,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.small&&(r=i().createElement(p,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r)})},4715:(e,t,r)=>{"use strict";r.d(t,{O:()=>v});var n=r(5987),o=r(6666),i=r(2841),l=r.n(i),a=r(8156),u=r.n(a),c=(u().createElement,function(){return"production"==="MISSING_ENV_VAR".NEXT_PUBLIC_VERCEL_ENV?null:u().createElement("span",{className:"editor-empty-element",style:{minHeight:200,display:"inline-block"}},"Unbekanntes Element")}),s=r(6664),f=r(2779),p=r.n(f);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}u().createElement;var v=function(e){var t=e.storybookComponentLoader,r=e.storybookComponentDataLoader,n=e.element,o=e.isEditor,i=(0,a.useRef)();return(0,a.useEffect)((function(){if(o&&i.current){var e=setInterval((function(){!i.current||i.current.innerText||i.current.querySelector("img, svg, iframe, video, audio, picture, frame, input")?i.current&&(i.current.classList.remove("storybook-element-display-empty"),delete i.current.dataset.content):(i.current.classList.add("storybook-element-display-empty"),i.current.dataset.content="Leeres Element :: ".concat(n.block))}),100);return function(){clearInterval(e)}}}),[i.current]),n.isEmpty||!n.block?u().createElement(c,n.attributes):o?u().createElement(s.Z,{name:n.block,isEditor:o},u().createElement("span",{ref:i,className:"storybook-element-display"},u().createElement(h,{block:n.block,storybookComponentLoader:t,storybookComponentDataLoader:r,attributes:m({},n.attributes),isEditor:!0}))):u().createElement(s.Z,{name:n.block,isEditor:o},u().createElement(h,{block:n.block,storybookComponentLoader:t,storybookComponentDataLoader:r,attributes:m({},n.attributes)}))},h=function(e){var t,r,o,i,s=e.block,f=e.storybookComponentLoader,d=e.storybookComponentDataLoader,v=e.attributes,h=e.isEditor,y=(0,a.useState)(v),b=y[0],g=y[1],E=(0,a.useState)(f(s)),w=E[0],O=E[1];if((0,a.useEffect)((function(){if(d){var e=function(){var e=(0,n.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,d(s,v);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=!0;e().then((function(e){e&&t&&g(m(m({},v),e||{}))}));var r=f(s);return g(m({},v)),O(r),function(){t=!1}}}),[v,s,d,f]),w)try{w.render&&(w.render.displayName=s)}catch(e){return null}else w=c;return b.blockWidth||b.margin?u().createElement("span",{className:p()({"block-article-width":"article"===b.blockWidth,"block-site-width":"site"===b.blockWidth,"block-small-width":"small"===b.blockWidth,"editor-mt-large":null==b||null===(t=b.margin)||void 0===t?void 0:t.top,"editor-mr-large":null==b||null===(r=b.margin)||void 0===r?void 0:r.right,"editor-mb-large":null==b||null===(o=b.margin)||void 0===o?void 0:o.bottom,"editor-ml-large":null==b||null===(i=b.margin)||void 0===i?void 0:i.left,"lg:hidden":(null==b?void 0:b.hideOnDesktop)&&!h,"sm:max-lg:hidden":(null==b?void 0:b.hideOnTablet)&&!h,"max-sm:hidden":(null==b?void 0:b.hideOnSmartphone)&&!h})},u().createElement(w,b)):u().createElement(w,b)}},2530:(e,t,r)=>{"use strict";r.d(t,{e:()=>g});var n=r(7896),o=r(6666),i=r(8156),l=r.n(i),a=r(1053),u=r(8799),c=r(4715),s=r(2779),f=r.n(s),p=r(8777),d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[],o={fullTextCounter:0,currTextCounterDesktop:0,currTextCounterMobile:0,currTextLength:0,currElementsChain:[]},i=(0,p.Z)(t),l=(0,p.Z)(r),a=0;a<e.length;a++){var u=e[a],c=h(u),s=m(u,o),f="after",d="after",y=null,b=null;if(o.fullTextCounter+=c,o.currTextCounterDesktop+=c,o.currTextCounterMobile+=c,o.currTextLength=c,s){var g,E,w,O,k,x,j=i.shift(),P=l.shift();o.currElementsChain.push(u),v(j,o,o.currTextCounterDesktop,u)&&(y=j,!1!==j.reset&&(o.currTextCounterDesktop=0)),v(P,o,o.currTextCounterMobile,u)&&(b=P,!1!==P.reset&&(o.currTextCounterMobile=0)),null!==(g=y)&&void 0!==g&&g.placement?f=null===(k=y)||void 0===k?void 0:k.placement:null!==(E=y)&&void 0!==E&&E.inline&&(f="before"),null!==(w=b)&&void 0!==w&&w.placement?d=null===(x=b)||void 0===x?void 0:x.placement:null!==(O=b)&&void 0!==O&&O.inline&&(d="before"),y&&"before"===f&&n.push(y.component),b&&"before"===d&&n.push(b.component),n=n.concat(o.currElementsChain),y&&"after"===f&&n.push(y.component),b&&"after"===d&&n.push(b.component),o.currElementsChain=[],!y&&j&&i.unshift(j),!b&&P&&l.unshift(P)}else o.currElementsChain.push(u)}return o.currElementsChain.length&&(n=n.concat(o.currElementsChain)),n},m=function(e,t){var r=null==e?void 0:e.type;return null==t||t.currElementsChain,"paragraph"===r||"storybook"===r},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=!1;return e?(e.space?r>e.space&&(o=!0):o=!0,null!=e&&e.inline&&"paragraph"!==(null==n?void 0:n.type)&&(o=!1),o):o},h=function e(t){var r,n=0;if(t.children)for(var o=0;o<t.children.length;o++)n+=e(t.children[o]);if(t.text&&(n+=parseInt((null==t||null===(r=t.text)||void 0===r?void 0:r.length)||0)),"storybook"===t.type)switch(null==t?void 0:t.block){case"Media/Image":case"Media/Gallery":n+=100}return n};function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e){var t=e.value,r=void 0===t?[]:t,s=e.elementPropsMap,p=e.specialClassMap,m=e.transformAttributes,v=e.storybookComponentLoader,h=e.storybookComponentDataLoader,y=e.defaultComponentReplacement,g=e.modifyElementFunc,k=e.isRenderer,x=void 0!==k&&k,j=e.fixedPositions,P=void 0===j?{}:j,C=e.fixedPositionTypes,S=void 0===C?{}:C,Z=e.adDefinitionDesktop,L=void 0===Z?[]:Z,_=e.adDefinitionMobile,N=void 0===_?[]:_;r&&(r=r.filter((function(e){if(!e)return!1;if("paragraph"===e.type){if(!e.children||0===e.children.length)return!1;if(0===e.children.filter((function(e){return!function(e){return!e.type&&!String(e.text).trim()}(e)})).length)return!1}return!0})));var D=function(e){return s?arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s[e+"-in-slot"]?s[e+"-in-slot"]:s[e]||{}:{}};function T(e,t){var r,d=arguments.length>2&&void 0!==arguments[2]&&arguments[2];return(0,i.isValidElement)(e)?e:("function"==typeof g&&(e=g(e)),e.children&&e.children.length?function(e){var t,r,u,d,g,E=arguments.length>1&&void 0!==arguments[1]&&arguments[1],w=D(e.type,E),O=w.wrapper||function(e){var t=e.children;return l().createElement(l().Fragment,null,t)};switch(e.type){case"storybook":var k={element:b(b({},e),{},{attributes:b(b({},e.attributes||{}),{},{isInSlot:E})}),attributes:e.attributes,storybookComponentLoader:v,storybookComponentDataLoader:h};return l().createElement(O,null,l().createElement(c.O,k));case"layout":var j,P,C,S,Z,L,_,N,R,M,A,F,I,G,q=!0;return Array.isArray(e.children)&&e.children.forEach((function(e){"layout-slot"===e.type&&["grid-auto","grid-fill"].includes(e.attributes.name)&&(q=!1)})),l().createElement(O,null,l().createElement("div",{"data-cols":e.children.length,className:f()("block-editor-layout",(G={"block-editor-layout-grid":q,"block-editor-layout-flex":!q,"block-editor-table-border-wrapper":null==e||null===(j=e.attributes)||void 0===j?void 0:j.tableBorder,"md:grid-cols-1":1===e.children.length,"md:grid-cols-2":2===e.children.length,"md:grid-cols-3":3===e.children.length,"md:grid-cols-4":4===e.children.length,"md:grid-cols-5":5===e.children.length,"grid-cols-1":1===(null==e||null===(P=e.attributes)||void 0===P?void 0:P.mobileColumnSpan),"grid-cols-2":2===(null==e||null===(C=e.attributes)||void 0===C?void 0:C.mobileColumnSpan),"md:space-x-4":null===(S=e.attributes)||void 0===S?void 0:S.spacing,"mt-16":null==e||null===(Z=e.attributes)||void 0===Z||null===(Z=Z.margin)||void 0===Z?void 0:Z.top,"mr-16":null==e||null===(L=e.attributes)||void 0===L||null===(L=L.margin)||void 0===L?void 0:L.right,"mb-16":null==e||null===(_=e.attributes)||void 0===_||null===(_=_.margin)||void 0===_?void 0:_.bottom,"ml-16":null==e||null===(N=e.attributes)||void 0===N||null===(N=N.margin)||void 0===N?void 0:N.left,"justify-center":null==e||null===(R=e.attributes)||void 0===R?void 0:R.justifyCenter},(0,o.Z)(G,w.classNameSite+" site-width",!E&&("site"===(null===(M=e.attributes)||void 0===M?void 0:M.width)||"full"===(null===(A=e.attributes)||void 0===A?void 0:A.width))),(0,o.Z)(G,w.classNameArticle+" article-width",!(E||"article"!==(null===(F=e.attributes)||void 0===F?void 0:F.width)&&null!==(I=e.attributes)&&void 0!==I&&I.width)),G))},e.children.map((function(e,t){return l().createElement(i.Fragment,{key:"layout-pos-"+t},T(e,t,E))}))));case"layout-slot":return l().createElement(O,null,l().createElement("div",{className:f()((g={},(0,o.Z)(g,"block-editor-layout-"+e.attributes.name,!0),(0,o.Z)(g,"mt-4",null===(t=e.attributes)||void 0===t||null===(t=t.margin)||void 0===t?void 0:t.top),(0,o.Z)(g,"md:mr-4",null===(r=e.attributes)||void 0===r||null===(r=r.margin)||void 0===r?void 0:r.right),(0,o.Z)(g,"mb-4",null===(u=e.attributes)||void 0===u||null===(u=u.margin)||void 0===u?void 0:u.bottom),(0,o.Z)(g,"md:ml-4",null===(d=e.attributes)||void 0===d||null===(d=d.margin)||void 0===d?void 0:d.left),g))},e.children.map((function(t,r){return l().createElement(i.Fragment,{key:"layout-slot-"+r},T(t,r,e.attributes.name))}))));default:var B={specialClassMap:p,elementPropsMap:s,element:{attributes:e.attributes||{},align:e.align,type:e.type},attributes:e.htmlAttributes||{},children:e.children.map((function(t,r){return l().createElement(i.Fragment,{key:e.type+"-pos-item-"+r},T(t,r,E))}))};return l().createElement(a.g,(0,n.Z)({},B,{isInSlot:E,isRenderer:x,transformAttributes:m,defaultComponentReplacement:y}))}}(e,d):(r=e,l().createElement(u.B,{leaf:r,isRenderer:!0,typeProps:D("leaf")},r.text||"")))}return function(e){var t=d(e,L,N);return t=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Array.isArray(e))return e;for(var o=[],i=0;i<e.length;i++){var l=e[i],a=null==e?void 0:e[i-1];if(l.type){n[l.type]||(n[l.type]=0);var u="".concat(l.type,"_").concat(n[l.type]);if(O(l,n)){n[l.type]++;var c=null==r?void 0:r[u],s=E(t,u),f=w(l,a,c);s&&"before"===f&&o.push(s),o.push(l),s&&"after"===f&&o.push(s)}else o.push(l)}else o.push(l)}return o}(t,P,S),l().createElement(l().Fragment,null,!!t&&t.map((function(e,t){return l().createElement(i.Fragment,{key:e.block+"-pos-"+t},T(e,t))})))}(r)}function E(e,t){return(null==e?void 0:e[t])||null}function w(e,t,r){if("inline"===r)return"before";var n="before";return("paragraph"===(null==e?void 0:e.type)&&"heading"===(null==t?void 0:t.type)||function(e){return"paragraph"===(null==e?void 0:e.type)&&(e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0)<=60}(t))&&(n="after"),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0;if("paragraph"===e.type){var n="paragraph_textlength";t[n]||(t[n]=0);var o=e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0,i=o<=60;t[n]+=o,(r=!i&&t[n]>=200)&&(t[n]=0)}return r}l().createElement,r(8439)},2779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8439:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var r,n=""+e,o=t.exec(n);if(!o)return n;var i="",l=0,a=0;for(l=o.index;l<n.length;l++){switch(n.charCodeAt(l)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==l&&(i+=n.substring(a,l)),a=l+1,i+=r}return a!==l?i+n.substring(a,l):i}},8156:t=>{"use strict";t.exports=e},7609:(e,t,r)=>{var n=r(7425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),l=new D(n||[]);return a(i,"_invoke",{value:Z(e,r,l)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",h="suspendedYield",y="executing",b="completed",g={};function E(){}function w(){}function O(){}var k={};p(k,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(T([])));j&&j!==i&&l.call(j,c)&&(k=j);var P=O.prototype=E.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,u){var c=m(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,r,n){var o=v;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?b:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=m(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=O,a(P,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:w,configurable:!0}),w.displayName=p(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,p(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},C(S.prototype),p(S.prototype,s,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new S(d(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},C(P),p(P,f,"Generator"),p(P,c,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=l.call(i,"catchLoc"),c=l.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var n=r(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},926:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},5987:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,l){try{var a=e[i](l),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var l=e.apply(t,r);function a(e){n(l,o,i,a,u,"next",e)}function u(e){n(l,o,i,a,u,"throw",e)}a(void 0)}))}}r.d(t,{Z:()=>o})},6666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(5850);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},7896:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},2159:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:()=>n})},8777:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(926),o=r(9147);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5850:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6522);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}},6522:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},9147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(926);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{StorybookContext:()=>r.G,default:()=>a});var e=n(8156),t=n.n(e),r=n(8703),i=n(2530);function l(e){var r=e.value,n=e.modifyElementFunc,o=e.specialClassMap,l=e.elementPropsMap,a=e.transformAttributes,u=e.storybookComponentLoader,c=e.storybookComponentDataLoader,s=e.fixedPositions,f=e.fixedPositionTypes,p=e.adDefinitionDesktop,d=e.adDefinitionMobile,m=e.defaultComponentReplacement,v=e.onStorybookElementClick;return t().createElement(i.e,{elementPropsMap:l,specialClassMap:o,defaultComponentReplacement:m,transformAttributes:a,value:r,modifyElementFunc:n,storybookComponentLoader:u,storybookComponentDataLoader:c,fixedPositions:s,fixedPositionTypes:f,adDefinitionDesktop:p,adDefinitionMobile:d,isRenderer:!0,onStorybookElementClick:v})}t().createElement;const a=(0,e.memo)(l)})(),o})()));
2
+ !function(e,t){if("object"==typeof exports&&"object"==typeof module)module.exports=t(require("react"));else if("function"==typeof define&&define.amd)define(["react"],t);else{var r="object"==typeof exports?t(require("react")):t(e.react);for(var n in r)("object"==typeof exports?exports:e)[n]=r[n]}}(this,(e=>(()=>{var t={6664:(e,t,r)=>{"use strict";r.d(t,{Z:()=>f});var n=r(5850);function o(e,t){for(var r=0;r<t.length;r++){var o=t[r];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,(0,n.Z)(o.key),o)}}function i(e,t){return i=Object.setPrototypeOf?Object.setPrototypeOf.bind():function(e,t){return e.__proto__=t,e},i(e,t)}var l=r(6522);function a(e){return a=Object.setPrototypeOf?Object.getPrototypeOf.bind():function(e){return e.__proto__||Object.getPrototypeOf(e)},a(e)}var u=r(8156),c=r.n(u);function s(e){var t=function(){if("undefined"==typeof Reflect||!Reflect.construct)return!1;if(Reflect.construct.sham)return!1;if("function"==typeof Proxy)return!0;try{return Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],(function(){}))),!0}catch(e){return!1}}();return function(){var r,n=a(e);if(t){var o=a(this).constructor;r=Reflect.construct(n,arguments,o)}else r=n.apply(this,arguments);return function(e,t){if(t&&("object"===(0,l.Z)(t)||"function"==typeof t))return t;if(void 0!==t)throw new TypeError("Derived constructors may only return object or undefined");return function(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}(e)}(this,r)}}c().createElement;var f=function(e){!function(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),Object.defineProperty(e,"prototype",{writable:!1}),t&&i(e,t)}(a,e);var t,r,n,l=s(a);function a(e){var t;return function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,a),(t=l.call(this,e)).state={hasError:!1},t}return t=a,n=[{key:"getDerivedStateFromError",value:function(e){return{hasError:!0}}}],(r=[{key:"componentDidCatch",value:function(e,t){var r="Error in ".concat(this.props.name);console.groupCollapsed(r),console.error("Error",e),console.error("Info",t),console.groupEnd(r)}},{key:"render",value:function(){return this.state.hasError?this.props.fallback?this.props.fallback:this.props.isEditor?c().createElement("div",{className:"storybook-element-error"},c().createElement("p",null,"Error in Element ",this.props.name)):null:this.props.children}}])&&o(t.prototype,r),n&&o(t,n),Object.defineProperty(t,"prototype",{writable:!1}),a}(c().Component)},8703:(e,t,r)=>{"use strict";r.d(t,{G:()=>n});var n=(0,r(8156).createContext)({storybookUrl:null,storybookTarget:null,activeStorybook:null})},1053:(e,t,r)=>{"use strict";r.d(t,{g:()=>m});var n=r(7896),o=r(6666),i=r(2159),l=r(2779),a=r.n(l),u=r(8156),c=r.n(u),s=["attributes","elementPropsMap","specialClassMap","transformAttributes","children","element","isRenderer","isInSlot","defaultComponentReplacement","onElementClick"],f=["noFollow","nofollow"];function p(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?p(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):p(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}c().createElement;var m=function(e){var t,r,o,l,u,p,m=e.attributes,v=e.elementPropsMap,h=e.specialClassMap,y=e.transformAttributes,b=e.children,g=e.element,E=e.isRenderer,w=e.isInSlot,O=void 0!==w&&w,k=e.defaultComponentReplacement,x=e.onElementClick,j=void 0===x?function(){}:x,P=((0,i.Z)(e,s),g.type),C=g.align,S=d(d({},g.attributes||{}),function(e){return v?O&&v[e+"-in-slot"]?v[e+"-in-slot"]:v[e]||{}:{}}(P));"function"==typeof y&&(S=y(P,S));var Z=m.className||S.className||"",L=S.wrapper||function(e){var t=e.children;return c().createElement(c().Fragment,null,t)};switch(C&&(h&&h[C]?Z+=h[C]:Z+="align-"+C),m.onClick=function(){return j(g)},P){case"blockquote":return c().createElement(L,null,c().createElement("blockquote",(0,n.Z)({},m,{className:Z.trim()}),b));case"list-item":return c().createElement(L,null,c().createElement("li",(0,n.Z)({},m,{className:Z.trim()}),b));case"unordered-list":return c().createElement(L,null,c().createElement("ul",(0,n.Z)({},m,{className:Z.trim()}),b));case"ordered-list":return c().createElement(L,null,c().createElement("ol",(0,n.Z)({},m,{className:Z.trim()}),b));case"arrow-list":return c().createElement(L,null,c().createElement("ul",(0,n.Z)({},m,{className:a()(d(d({},Z.trim()),{},{"arrow-list":!0}))}),b));case"code":var _,N;return E?c().createElement(L,{code:null==g||null===(_=g.attributes)||void 0===_?void 0:_.code}):c().createElement(L,null,c().createElement("div",(0,n.Z)({},m,{className:Z.trim()}),c().createElement("div",{dangerouslySetInnerHTML:{__html:null==g||null===(N=g.attributes)||void 0===N?void 0:N.code}})));case"heading":switch(g.attributes.level){case 1:return c().createElement(L,{level:g.attributes.level},c().createElement("h1",(0,n.Z)({},m,{id:(null==g||null===(t=g.attributes)||void 0===t?void 0:t.id)||void 0,className:Z.trim()||void 0}),b));case 2:return c().createElement(L,{level:g.attributes.level},c().createElement("h2",(0,n.Z)({},m,{id:(null==g||null===(r=g.attributes)||void 0===r?void 0:r.id)||void 0,className:Z.trim()||void 0}),b));case 3:return c().createElement(L,{level:g.attributes.level},c().createElement("h3",(0,n.Z)({},m,{id:(null==g||null===(o=g.attributes)||void 0===o?void 0:o.id)||void 0,className:Z.trim()||void 0}),b));case 4:return c().createElement(L,{level:g.attributes.level},c().createElement("h4",(0,n.Z)({},m,{id:(null==g||null===(l=g.attributes)||void 0===l?void 0:l.id)||void 0,className:Z.trim()||void 0}),b));case 5:return c().createElement(L,{level:g.attributes.level},c().createElement("h5",(0,n.Z)({},m,{id:(null==g||null===(u=g.attributes)||void 0===u?void 0:u.id)||void 0,className:Z.trim()||void 0}),b));case 6:return c().createElement(L,{level:g.attributes.level},c().createElement("h6",(0,n.Z)({},m,{id:(null==g||null===(p=g.attributes)||void 0===p?void 0:p.id)||void 0,className:Z.trim()||void 0}),b));default:return null}case"link":var D="noopener noreferrer",T=S,R=T.noFollow,M=T.nofollow,A=(0,i.Z)(T,f);(R||M)&&(D+=" nofollow");var F="function"==typeof k?k(P):null;return F?c().createElement(L,null,c().createElement(F,(0,n.Z)({},A,m,{rel:D,className:Z.trim()}),b)):c().createElement(L,null,c().createElement("a",(0,n.Z)({},A,m,{rel:D,className:Z.trim()}),b));case"paragraph":return c().createElement(L,null,c().createElement("p",(0,n.Z)({},g.attributes,m,{className:Z.trim()}),b));case"divider":return c().createElement(L,null,c().createElement("hr",m),b);case"div":return c().createElement(L,null,c().createElement("div",(0,n.Z)({},g.attributes,m),b));case"span":return c().createElement(L,null,c().createElement("span",(0,n.Z)({},g.attributes,m),b));default:return E?c().createElement(L,null,b):c().createElement("span",(0,n.Z)({},m,{className:Z.trim()}),b)}}},8799:(e,t,r)=>{"use strict";r.d(t,{B:()=>m});var n=r(2159),o=r(8156),i=r.n(o),l=(i().createElement,function(e){var t=e.isRenderer,r=e.attributes,n=e.children,l=e.typeProps;if(t){if(!n)return null;if("string"==typeof n){var u=n.split("\n");return i().createElement(o.Fragment,null,u.length>1?u.map((function(e,t){return i().createElement(o.Fragment,{key:t},a(e,l),t!==u.length-1?i().createElement("br",null):null)})):a(n,l))}return i().createElement(o.Fragment,null,n)}return i().createElement("span",r,n)});function a(e,t){if(!t||!e||"string"!=typeof e)return e;if(t.line_transform)for(var r in t.line_transform)if(e.startsWith(r)){var n=t.line_transform[r];return i().createElement(n,null,e.substr(r.length).trim())}return e}var u=function(e){var t=e.attributes,r=e.children;return i().createElement("strong",t,r)},c=function(e){var t=e.attributes,r=e.children;return i().createElement("i",t,r)},s=function(e){var t=e.attributes,r=e.children;return i().createElement("u",t,r)},f=function(e){var t=e.attributes,r=e.children;return i().createElement("del",t,r)},p=function(e){var t=e.attributes,r=e.children;return i().createElement("small",t,r)},d=["attributes","children","leaf","isRenderer","typeProps"],m=(i().createElement,function(e){var t=e.attributes,r=e.children,o=e.leaf,a=e.isRenderer,m=e.typeProps;return(0,n.Z)(e,d),o.bold&&(r=i().createElement(u,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.italic&&(r=i().createElement(c,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.underlined&&(r=i().createElement(s,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.strikethrough&&(r=i().createElement(f,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),o.small&&(r=i().createElement(p,{typeProps:m,attributes:t},i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r))),i().createElement(l,{attributes:t,typeProps:m,isRenderer:a},r)})},4715:(e,t,r)=>{"use strict";r.d(t,{O:()=>v});var n=r(5987),o=r(6666),i=r(2841),l=r.n(i),a=r(8156),u=r.n(a),c=(u().createElement,function(){return"production"==="MISSING_ENV_VAR".NEXT_PUBLIC_VERCEL_ENV?null:u().createElement("span",{className:"editor-empty-element",style:{minHeight:200,display:"inline-block"}},"Unbekanntes Element")}),s=r(6664),f=r(2779),p=r.n(f);function d(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function m(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?d(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):d(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}u().createElement;var v=function(e){var t=e.storybookComponentLoader,r=e.storybookComponentDataLoader,n=e.element,o=e.isEditor,i=(0,a.useRef)();return(0,a.useEffect)((function(){if(o&&i.current){var e=setInterval((function(){!i.current||i.current.innerText||i.current.querySelector("img, svg, iframe, video, audio, picture, frame, input")?i.current&&(i.current.classList.remove("storybook-element-display-empty"),delete i.current.dataset.content):(i.current.classList.add("storybook-element-display-empty"),i.current.dataset.content="Leeres Element :: ".concat(n.block))}),100);return function(){clearInterval(e)}}}),[i.current]),n.isEmpty||!n.block?u().createElement(c,n.attributes):o?u().createElement(s.Z,{name:n.block,isEditor:o},u().createElement("span",{ref:i,className:"storybook-element-display"},u().createElement(h,{block:n.block,storybookComponentLoader:t,storybookComponentDataLoader:r,attributes:m({},n.attributes),isEditor:!0}))):u().createElement(s.Z,{name:n.block,isEditor:o},u().createElement(h,{block:n.block,storybookComponentLoader:t,storybookComponentDataLoader:r,attributes:m({},n.attributes)}))},h=function(e){var t,r,o,i,s=e.block,f=e.storybookComponentLoader,d=e.storybookComponentDataLoader,v=e.attributes,h=e.isEditor,y=(0,a.useState)(v),b=y[0],g=y[1],E=(0,a.useState)(f(s)),w=E[0],O=E[1];if((0,a.useEffect)((function(){if(d){var e=function(){var e=(0,n.Z)(l().mark((function e(){return l().wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(d){e.next=2;break}return e.abrupt("return");case 2:return e.next=4,d(s,v);case 4:return e.abrupt("return",e.sent);case 5:case"end":return e.stop()}}),e)})));return function(){return e.apply(this,arguments)}}(),t=!0;e().then((function(e){e&&t&&g(m(m({},v),e||{}))}));var r=f(s);return g(m({},v)),O(r),function(){t=!1}}}),[v,s,d,f]),w)try{w.render&&(w.render.displayName=s)}catch(e){return null}else w=c;return b.blockWidth||b.margin?u().createElement("span",{className:p()({"block-article-width":"article"===b.blockWidth,"block-site-width":"site"===b.blockWidth,"block-small-width":"small"===b.blockWidth,"editor-mt-large":null==b||null===(t=b.margin)||void 0===t?void 0:t.top,"editor-mr-large":null==b||null===(r=b.margin)||void 0===r?void 0:r.right,"editor-mb-large":null==b||null===(o=b.margin)||void 0===o?void 0:o.bottom,"editor-ml-large":null==b||null===(i=b.margin)||void 0===i?void 0:i.left,"lg:hidden":(null==b?void 0:b.hideOnDesktop)&&!h,"sm:max-lg:hidden":(null==b?void 0:b.hideOnTablet)&&!h,"max-sm:hidden":(null==b?void 0:b.hideOnSmartphone)&&!h})},u().createElement(w,b)):u().createElement(w,b)}},2530:(e,t,r)=>{"use strict";r.d(t,{e:()=>g});var n=r(7896),o=r(6666),i=r(8156),l=r.n(i),a=r(1053),u=r(8799),c=r(4715),s=r(2779),f=r.n(s),p=r(8777),d=function(e){for(var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:[],r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:[],n=[],o={fullTextCounter:0,currTextCounterDesktop:0,currTextCounterMobile:0,currTextLength:0,currElementsChain:[]},i=(0,p.Z)(t),l=(0,p.Z)(r),a=0;a<e.length;a++){var u=e[a],c=h(u),s=m(u,o),f="after",d="after",y=null,b=null;if(o.fullTextCounter+=c,o.currTextCounterDesktop+=c,o.currTextCounterMobile+=c,o.currTextLength=c,s){var g,E,w,O,k,x,j=i.shift(),P=l.shift();o.currElementsChain.push(u),v(j,o,o.currTextCounterDesktop,u)&&(y=j,!1!==j.reset&&(o.currTextCounterDesktop=0)),v(P,o,o.currTextCounterMobile,u)&&(b=P,!1!==P.reset&&(o.currTextCounterMobile=0)),null!==(g=y)&&void 0!==g&&g.placement?f=null===(k=y)||void 0===k?void 0:k.placement:null!==(E=y)&&void 0!==E&&E.inline&&(f="before"),null!==(w=b)&&void 0!==w&&w.placement?d=null===(x=b)||void 0===x?void 0:x.placement:null!==(O=b)&&void 0!==O&&O.inline&&(d="before"),y&&"before"===f&&n.push(y.component),b&&"before"===d&&n.push(b.component),n=n.concat(o.currElementsChain),y&&"after"===f&&n.push(y.component),b&&"after"===d&&n.push(b.component),o.currElementsChain=[],!y&&j&&i.unshift(j),!b&&P&&l.unshift(P)}else o.currElementsChain.push(u)}return o.currElementsChain.length&&(n=n.concat(o.currElementsChain)),n},m=function(e,t){var r=null==e?void 0:e.type;return null==t||t.currElementsChain,"paragraph"===r||"storybook"===r},v=function(e,t){var r=arguments.length>2&&void 0!==arguments[2]?arguments[2]:0,n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:null,o=!1;return e?(e.space?r>e.space&&(o=!0):o=!0,null!=e&&e.inline&&"paragraph"!==(null==n?void 0:n.type)&&(o=!1),o):o},h=function e(t){var r,n=0;if(t.children)for(var o=0;o<t.children.length;o++)n+=e(t.children[o]);if(t.text&&(n+=parseInt((null==t||null===(r=t.text)||void 0===r?void 0:r.length)||0)),"storybook"===t.type)switch(null==t?void 0:t.block){case"Media/Image":case"Media/Gallery":n+=100}return n};function y(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function b(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?y(Object(r),!0).forEach((function(t){(0,o.Z)(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):y(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}function g(e){var t=e.value,r=void 0===t?[]:t,s=e.elementPropsMap,p=e.specialClassMap,m=e.transformAttributes,v=e.storybookComponentLoader,h=e.storybookComponentDataLoader,y=e.defaultComponentReplacement,g=e.modifyElementFunc,k=e.isRenderer,x=void 0!==k&&k,j=e.fixedPositions,P=void 0===j?{}:j,C=e.fixedPositionTypes,S=void 0===C?{}:C,Z=e.adDefinitionDesktop,L=void 0===Z?[]:Z,_=e.adDefinitionMobile,N=void 0===_?[]:_;r&&(r=r.filter((function(e){if(!e)return!1;if("paragraph"===e.type){if(!e.children||0===e.children.length)return!1;if(0===e.children.filter((function(e){return!function(e){return!e.type&&!String(e.text).trim()}(e)})).length)return!1}return!0})));var D=function(e){return s?arguments.length>1&&void 0!==arguments[1]&&arguments[1]&&s[e+"-in-slot"]?s[e+"-in-slot"]:s[e]||{}:{}},T=function(e){var t,r,u,d,g,E=arguments.length>1&&void 0!==arguments[1]&&arguments[1],w=D(e.type,E),O=w.wrapper||function(e){var t=e.children;return l().createElement(l().Fragment,null,t)};switch(e.type){case"storybook":var k={element:b(b({},e),{},{attributes:b(b({},e.attributes||{}),{},{isInSlot:E})}),attributes:e.attributes,storybookComponentLoader:v,storybookComponentDataLoader:h};return l().createElement(O,null,l().createElement(c.O,k));case"layout":var j,P,C,S,Z,L,_,N,T,M,A,F,I,G,q=!0;return Array.isArray(e.children)&&e.children.forEach((function(e){"layout-slot"===e.type&&["grid-auto","grid-fill"].includes(e.attributes.name)&&(q=!1)})),l().createElement(O,null,l().createElement("div",{"data-cols":e.children.length,className:f()("block-editor-layout",(G={"block-editor-layout-grid":q,"block-editor-layout-flex":!q,"block-editor-table-border-wrapper":null==e||null===(j=e.attributes)||void 0===j?void 0:j.tableBorder,"md:grid-cols-1":1===e.children.length,"md:grid-cols-2":2===e.children.length,"md:grid-cols-3":3===e.children.length,"md:grid-cols-4":4===e.children.length,"md:grid-cols-5":5===e.children.length,"grid-cols-1":1===(null==e||null===(P=e.attributes)||void 0===P?void 0:P.mobileColumnSpan),"grid-cols-2":2===(null==e||null===(C=e.attributes)||void 0===C?void 0:C.mobileColumnSpan),"md:space-x-4":null===(S=e.attributes)||void 0===S?void 0:S.spacing,"mt-16":null==e||null===(Z=e.attributes)||void 0===Z||null===(Z=Z.margin)||void 0===Z?void 0:Z.top,"mr-16":null==e||null===(L=e.attributes)||void 0===L||null===(L=L.margin)||void 0===L?void 0:L.right,"mb-16":null==e||null===(_=e.attributes)||void 0===_||null===(_=_.margin)||void 0===_?void 0:_.bottom,"ml-16":null==e||null===(N=e.attributes)||void 0===N||null===(N=N.margin)||void 0===N?void 0:N.left,"justify-center":null==e||null===(T=e.attributes)||void 0===T?void 0:T.justifyCenter},(0,o.Z)(G,w.classNameSite+" site-width",!E&&("site"===(null===(M=e.attributes)||void 0===M?void 0:M.width)||"full"===(null===(A=e.attributes)||void 0===A?void 0:A.width))),(0,o.Z)(G,w.classNameArticle+" article-width",!(E||"article"!==(null===(F=e.attributes)||void 0===F?void 0:F.width)&&null!==(I=e.attributes)&&void 0!==I&&I.width)),G))},e.children.map((function(e,t){return l().createElement(i.Fragment,{key:"layout-pos-"+t},R(e,t,E))}))));case"layout-slot":return l().createElement(O,null,l().createElement("div",{className:f()((g={},(0,o.Z)(g,"block-editor-layout-"+e.attributes.name,!0),(0,o.Z)(g,"mt-4",null===(t=e.attributes)||void 0===t||null===(t=t.margin)||void 0===t?void 0:t.top),(0,o.Z)(g,"md:mr-4",null===(r=e.attributes)||void 0===r||null===(r=r.margin)||void 0===r?void 0:r.right),(0,o.Z)(g,"mb-4",null===(u=e.attributes)||void 0===u||null===(u=u.margin)||void 0===u?void 0:u.bottom),(0,o.Z)(g,"md:ml-4",null===(d=e.attributes)||void 0===d||null===(d=d.margin)||void 0===d?void 0:d.left),g))},e.children.map((function(t,r){return l().createElement(i.Fragment,{key:"layout-slot-"+r},R(t,r,e.attributes.name))}))));default:var B={specialClassMap:p,elementPropsMap:s,element:{attributes:e.attributes||{},align:e.align,type:e.type},attributes:e.htmlAttributes||{},children:e.children.map((function(t,r){return l().createElement(i.Fragment,{key:e.type+"-pos-item-"+r},R(t,r,E))}))};return l().createElement(a.g,(0,n.Z)({},B,{isInSlot:E,isRenderer:x,transformAttributes:m,defaultComponentReplacement:y}))}};function R(e,t){var r,n,o=arguments.length>2&&void 0!==arguments[2]&&arguments[2];if((0,i.isValidElement)(e))return e;if("function"==typeof g&&(e=g(e)),!e.children||!e.children.length)return n=e,l().createElement(u.B,{leaf:n,isRenderer:!0,typeProps:D("leaf")},n.text||"");if("paragraph"===(null===(r=e)||void 0===r?void 0:r.type)&&!e.children.find((function(e){return!(null!=e&&e.type)&&(null==e?void 0:e.text)}))){var a=e.children.filter((function(e){return"storybook"===(null==e?void 0:e.type)}));if(1===a.length)return T(a.at(0),o)}return T(e,o)}return function(e){var t=d(e,L,N);return t=function(e,t,r){var n=arguments.length>3&&void 0!==arguments[3]?arguments[3]:{};if(!Array.isArray(e))return e;for(var o=[],i=0;i<e.length;i++){var l=e[i],a=null==e?void 0:e[i-1];if(l.type){n[l.type]||(n[l.type]=0);var u="".concat(l.type,"_").concat(n[l.type]);if(O(l,n)){n[l.type]++;var c=null==r?void 0:r[u],s=E(t,u),f=w(l,a,c);s&&"before"===f&&o.push(s),o.push(l),s&&"after"===f&&o.push(s)}else o.push(l)}else o.push(l)}return o}(t,P,S),l().createElement(l().Fragment,null,!!t&&t.map((function(e,t){return l().createElement(i.Fragment,{key:e.block+"-pos-"+t},R(e,t))})))}(r)}function E(e,t){return(null==e?void 0:e[t])||null}function w(e,t,r){if("inline"===r)return"before";var n="before";return("paragraph"===(null==e?void 0:e.type)&&"heading"===(null==t?void 0:t.type)||function(e){return"paragraph"===(null==e?void 0:e.type)&&(e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0)<=60}(t))&&(n="after"),n}function O(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},r=!0;if("paragraph"===e.type){var n="paragraph_textlength";t[n]||(t[n]=0);var o=e.children.map((function(e){var t;return(null==e||null===(t=e.text)||void 0===t?void 0:t.length)||0})).reduce((function(e,t){return e+t}),0)||0,i=o<=60;t[n]+=o,(r=!i&&t[n]>=200)&&(t[n]=0)}return r}l().createElement,r(8439)},2779:(e,t)=>{var r;!function(){"use strict";var n={}.hasOwnProperty;function o(){for(var e=[],t=0;t<arguments.length;t++){var r=arguments[t];if(r){var i=typeof r;if("string"===i||"number"===i)e.push(r);else if(Array.isArray(r)){if(r.length){var l=o.apply(null,r);l&&e.push(l)}}else if("object"===i){if(r.toString!==Object.prototype.toString&&!r.toString.toString().includes("[native code]")){e.push(r.toString());continue}for(var a in r)n.call(r,a)&&r[a]&&e.push(a)}}}return e.join(" ")}e.exports?(o.default=o,e.exports=o):void 0===(r=function(){return o}.apply(t,[]))||(e.exports=r)}()},8439:e=>{"use strict";var t=/["'&<>]/;e.exports=function(e){var r,n=""+e,o=t.exec(n);if(!o)return n;var i="",l=0,a=0;for(l=o.index;l<n.length;l++){switch(n.charCodeAt(l)){case 34:r="&quot;";break;case 38:r="&amp;";break;case 39:r="&#39;";break;case 60:r="&lt;";break;case 62:r="&gt;";break;default:continue}a!==l&&(i+=n.substring(a,l)),a=l+1,i+=r}return a!==l?i+n.substring(a,l):i}},8156:t=>{"use strict";t.exports=e},7609:(e,t,r)=>{var n=r(7425).default;function o(){"use strict";e.exports=o=function(){return r},e.exports.__esModule=!0,e.exports.default=e.exports;var t,r={},i=Object.prototype,l=i.hasOwnProperty,a=Object.defineProperty||function(e,t,r){e[t]=r.value},u="function"==typeof Symbol?Symbol:{},c=u.iterator||"@@iterator",s=u.asyncIterator||"@@asyncIterator",f=u.toStringTag||"@@toStringTag";function p(e,t,r){return Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}),e[t]}try{p({},"")}catch(t){p=function(e,t,r){return e[t]=r}}function d(e,t,r,n){var o=t&&t.prototype instanceof E?t:E,i=Object.create(o.prototype),l=new D(n||[]);return a(i,"_invoke",{value:Z(e,r,l)}),i}function m(e,t,r){try{return{type:"normal",arg:e.call(t,r)}}catch(e){return{type:"throw",arg:e}}}r.wrap=d;var v="suspendedStart",h="suspendedYield",y="executing",b="completed",g={};function E(){}function w(){}function O(){}var k={};p(k,c,(function(){return this}));var x=Object.getPrototypeOf,j=x&&x(x(T([])));j&&j!==i&&l.call(j,c)&&(k=j);var P=O.prototype=E.prototype=Object.create(k);function C(e){["next","throw","return"].forEach((function(t){p(e,t,(function(e){return this._invoke(t,e)}))}))}function S(e,t){function r(o,i,a,u){var c=m(e[o],e,i);if("throw"!==c.type){var s=c.arg,f=s.value;return f&&"object"==n(f)&&l.call(f,"__await")?t.resolve(f.__await).then((function(e){r("next",e,a,u)}),(function(e){r("throw",e,a,u)})):t.resolve(f).then((function(e){s.value=e,a(s)}),(function(e){return r("throw",e,a,u)}))}u(c.arg)}var o;a(this,"_invoke",{value:function(e,n){function i(){return new t((function(t,o){r(e,n,t,o)}))}return o=o?o.then(i,i):i()}})}function Z(e,r,n){var o=v;return function(i,l){if(o===y)throw new Error("Generator is already running");if(o===b){if("throw"===i)throw l;return{value:t,done:!0}}for(n.method=i,n.arg=l;;){var a=n.delegate;if(a){var u=L(a,n);if(u){if(u===g)continue;return u}}if("next"===n.method)n.sent=n._sent=n.arg;else if("throw"===n.method){if(o===v)throw o=b,n.arg;n.dispatchException(n.arg)}else"return"===n.method&&n.abrupt("return",n.arg);o=y;var c=m(e,r,n);if("normal"===c.type){if(o=n.done?b:h,c.arg===g)continue;return{value:c.arg,done:n.done}}"throw"===c.type&&(o=b,n.method="throw",n.arg=c.arg)}}}function L(e,r){var n=r.method,o=e.iterator[n];if(o===t)return r.delegate=null,"throw"===n&&e.iterator.return&&(r.method="return",r.arg=t,L(e,r),"throw"===r.method)||"return"!==n&&(r.method="throw",r.arg=new TypeError("The iterator does not provide a '"+n+"' method")),g;var i=m(o,e.iterator,r.arg);if("throw"===i.type)return r.method="throw",r.arg=i.arg,r.delegate=null,g;var l=i.arg;return l?l.done?(r[e.resultName]=l.value,r.next=e.nextLoc,"return"!==r.method&&(r.method="next",r.arg=t),r.delegate=null,g):l:(r.method="throw",r.arg=new TypeError("iterator result is not an object"),r.delegate=null,g)}function _(e){var t={tryLoc:e[0]};1 in e&&(t.catchLoc=e[1]),2 in e&&(t.finallyLoc=e[2],t.afterLoc=e[3]),this.tryEntries.push(t)}function N(e){var t=e.completion||{};t.type="normal",delete t.arg,e.completion=t}function D(e){this.tryEntries=[{tryLoc:"root"}],e.forEach(_,this),this.reset(!0)}function T(e){if(e||""===e){var r=e[c];if(r)return r.call(e);if("function"==typeof e.next)return e;if(!isNaN(e.length)){var o=-1,i=function r(){for(;++o<e.length;)if(l.call(e,o))return r.value=e[o],r.done=!1,r;return r.value=t,r.done=!0,r};return i.next=i}}throw new TypeError(n(e)+" is not iterable")}return w.prototype=O,a(P,"constructor",{value:O,configurable:!0}),a(O,"constructor",{value:w,configurable:!0}),w.displayName=p(O,f,"GeneratorFunction"),r.isGeneratorFunction=function(e){var t="function"==typeof e&&e.constructor;return!!t&&(t===w||"GeneratorFunction"===(t.displayName||t.name))},r.mark=function(e){return Object.setPrototypeOf?Object.setPrototypeOf(e,O):(e.__proto__=O,p(e,f,"GeneratorFunction")),e.prototype=Object.create(P),e},r.awrap=function(e){return{__await:e}},C(S.prototype),p(S.prototype,s,(function(){return this})),r.AsyncIterator=S,r.async=function(e,t,n,o,i){void 0===i&&(i=Promise);var l=new S(d(e,t,n,o),i);return r.isGeneratorFunction(t)?l:l.next().then((function(e){return e.done?e.value:l.next()}))},C(P),p(P,f,"Generator"),p(P,c,(function(){return this})),p(P,"toString",(function(){return"[object Generator]"})),r.keys=function(e){var t=Object(e),r=[];for(var n in t)r.push(n);return r.reverse(),function e(){for(;r.length;){var n=r.pop();if(n in t)return e.value=n,e.done=!1,e}return e.done=!0,e}},r.values=T,D.prototype={constructor:D,reset:function(e){if(this.prev=0,this.next=0,this.sent=this._sent=t,this.done=!1,this.delegate=null,this.method="next",this.arg=t,this.tryEntries.forEach(N),!e)for(var r in this)"t"===r.charAt(0)&&l.call(this,r)&&!isNaN(+r.slice(1))&&(this[r]=t)},stop:function(){this.done=!0;var e=this.tryEntries[0].completion;if("throw"===e.type)throw e.arg;return this.rval},dispatchException:function(e){if(this.done)throw e;var r=this;function n(n,o){return a.type="throw",a.arg=e,r.next=n,o&&(r.method="next",r.arg=t),!!o}for(var o=this.tryEntries.length-1;o>=0;--o){var i=this.tryEntries[o],a=i.completion;if("root"===i.tryLoc)return n("end");if(i.tryLoc<=this.prev){var u=l.call(i,"catchLoc"),c=l.call(i,"finallyLoc");if(u&&c){if(this.prev<i.catchLoc)return n(i.catchLoc,!0);if(this.prev<i.finallyLoc)return n(i.finallyLoc)}else if(u){if(this.prev<i.catchLoc)return n(i.catchLoc,!0)}else{if(!c)throw new Error("try statement without catch or finally");if(this.prev<i.finallyLoc)return n(i.finallyLoc)}}}},abrupt:function(e,t){for(var r=this.tryEntries.length-1;r>=0;--r){var n=this.tryEntries[r];if(n.tryLoc<=this.prev&&l.call(n,"finallyLoc")&&this.prev<n.finallyLoc){var o=n;break}}o&&("break"===e||"continue"===e)&&o.tryLoc<=t&&t<=o.finallyLoc&&(o=null);var i=o?o.completion:{};return i.type=e,i.arg=t,o?(this.method="next",this.next=o.finallyLoc,g):this.complete(i)},complete:function(e,t){if("throw"===e.type)throw e.arg;return"break"===e.type||"continue"===e.type?this.next=e.arg:"return"===e.type?(this.rval=this.arg=e.arg,this.method="return",this.next="end"):"normal"===e.type&&t&&(this.next=t),g},finish:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.finallyLoc===e)return this.complete(r.completion,r.afterLoc),N(r),g}},catch:function(e){for(var t=this.tryEntries.length-1;t>=0;--t){var r=this.tryEntries[t];if(r.tryLoc===e){var n=r.completion;if("throw"===n.type){var o=n.arg;N(r)}return o}}throw new Error("illegal catch attempt")},delegateYield:function(e,r,n){return this.delegate={iterator:T(e),resultName:r,nextLoc:n},"next"===this.method&&(this.arg=t),g}},r}e.exports=o,e.exports.__esModule=!0,e.exports.default=e.exports},7425:e=>{function t(r){return e.exports=t="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},e.exports.__esModule=!0,e.exports.default=e.exports,t(r)}e.exports=t,e.exports.__esModule=!0,e.exports.default=e.exports},2841:(e,t,r)=>{var n=r(7609)();e.exports=n;try{regeneratorRuntime=n}catch(e){"object"==typeof globalThis?globalThis.regeneratorRuntime=n:Function("r","regeneratorRuntime = r")(n)}},926:(e,t,r)=>{"use strict";function n(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}r.d(t,{Z:()=>n})},5987:(e,t,r)=>{"use strict";function n(e,t,r,n,o,i,l){try{var a=e[i](l),u=a.value}catch(e){return void r(e)}a.done?t(u):Promise.resolve(u).then(n,o)}function o(e){return function(){var t=this,r=arguments;return new Promise((function(o,i){var l=e.apply(t,r);function a(e){n(l,o,i,a,u,"next",e)}function u(e){n(l,o,i,a,u,"throw",e)}a(void 0)}))}}r.d(t,{Z:()=>o})},6666:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(5850);function o(e,t,r){return(t=(0,n.Z)(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}},7896:(e,t,r)=>{"use strict";function n(){return n=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)Object.prototype.hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},n.apply(this,arguments)}r.d(t,{Z:()=>n})},2159:(e,t,r)=>{"use strict";function n(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r,n,o={},i=Object.keys(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||(o[r]=e[r]);return o}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.indexOf(r)>=0||Object.prototype.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}r.d(t,{Z:()=>n})},8777:(e,t,r)=>{"use strict";r.d(t,{Z:()=>i});var n=r(926),o=r(9147);function i(e){return function(e){if(Array.isArray(e))return(0,n.Z)(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||(0,o.Z)(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}},5850:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(6522);function o(e){var t=function(e,t){if("object"!==(0,n.Z)(e)||null===e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var o=r.call(e,"string");if("object"!==(0,n.Z)(o))return o;throw new TypeError("@@toPrimitive must return a primitive value.")}return String(e)}(e);return"symbol"===(0,n.Z)(t)?t:String(t)}},6522:(e,t,r)=>{"use strict";function n(e){return n="function"==typeof Symbol&&"symbol"==typeof Symbol.iterator?function(e){return typeof e}:function(e){return e&&"function"==typeof Symbol&&e.constructor===Symbol&&e!==Symbol.prototype?"symbol":typeof e},n(e)}r.d(t,{Z:()=>n})},9147:(e,t,r)=>{"use strict";r.d(t,{Z:()=>o});var n=r(926);function o(e,t){if(e){if("string"==typeof e)return(0,n.Z)(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);return"Object"===r&&e.constructor&&(r=e.constructor.name),"Map"===r||"Set"===r?Array.from(e):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?(0,n.Z)(e,t):void 0}}}},r={};function n(e){var o=r[e];if(void 0!==o)return o.exports;var i=r[e]={exports:{}};return t[e](i,i.exports,n),i.exports}n.n=e=>{var t=e&&e.__esModule?()=>e.default:()=>e;return n.d(t,{a:t}),t},n.d=(e,t)=>{for(var r in t)n.o(t,r)&&!n.o(e,r)&&Object.defineProperty(e,r,{enumerable:!0,get:t[r]})},n.o=(e,t)=>Object.prototype.hasOwnProperty.call(e,t),n.r=e=>{"undefined"!=typeof Symbol&&Symbol.toStringTag&&Object.defineProperty(e,Symbol.toStringTag,{value:"Module"}),Object.defineProperty(e,"__esModule",{value:!0})};var o={};return(()=>{"use strict";n.r(o),n.d(o,{StorybookContext:()=>r.G,default:()=>a});var e=n(8156),t=n.n(e),r=n(8703),i=n(2530);function l(e){var r=e.value,n=e.modifyElementFunc,o=e.specialClassMap,l=e.elementPropsMap,a=e.transformAttributes,u=e.storybookComponentLoader,c=e.storybookComponentDataLoader,s=e.fixedPositions,f=e.fixedPositionTypes,p=e.adDefinitionDesktop,d=e.adDefinitionMobile,m=e.defaultComponentReplacement,v=e.onStorybookElementClick;return t().createElement(i.e,{elementPropsMap:l,specialClassMap:o,defaultComponentReplacement:m,transformAttributes:a,value:r,modifyElementFunc:n,storybookComponentLoader:u,storybookComponentDataLoader:c,fixedPositions:s,fixedPositionTypes:f,adDefinitionDesktop:p,adDefinitionMobile:d,isRenderer:!0,onStorybookElementClick:v})}t().createElement;const a=(0,e.memo)(l)})(),o})()));