@windstream/react-shared-components 0.1.41 → 0.1.42

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/core.d.ts CHANGED
@@ -59,15 +59,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
59
59
 
60
60
  declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
61
61
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
62
- state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
63
- size?: "medium" | "large" | "slim" | undefined;
62
+ state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
63
+ size?: "slim" | "medium" | "large" | undefined;
64
64
  label?: string | undefined;
65
65
  errorText?: string | undefined;
66
66
  prefixIconName?: "search" | "location_on" | undefined;
67
67
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
68
68
  prefixIconFill?: boolean | undefined;
69
69
  suffixIconFill?: boolean | undefined;
70
- suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
70
+ suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
71
71
  suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
72
72
  containerClassName?: string | undefined;
73
73
  prefixIconClassName?: string | undefined;
package/dist/index.d.ts CHANGED
@@ -59,15 +59,15 @@ type InputFieldProps = Omit<InputHTMLAttributes<HTMLInputElement>, "size"> & {
59
59
 
60
60
  declare const InputField: ForwardRefRenderFunction<HTMLInputElement, InputFieldProps>;
61
61
  declare const Input: React$1.ForwardRefExoticComponent<Omit<React$1.InputHTMLAttributes<HTMLInputElement>, "size"> & {
62
- state?: "default" | "error" | "filled" | "active" | "focus" | "hover" | undefined;
63
- size?: "medium" | "large" | "slim" | undefined;
62
+ state?: "default" | "focus" | "active" | "hover" | "filled" | "error" | undefined;
63
+ size?: "slim" | "medium" | "large" | undefined;
64
64
  label?: string | undefined;
65
65
  errorText?: string | undefined;
66
66
  prefixIconName?: "search" | "location_on" | undefined;
67
67
  prefixIconSize?: 20 | 24 | 40 | 48 | undefined;
68
68
  prefixIconFill?: boolean | undefined;
69
69
  suffixIconFill?: boolean | undefined;
70
- suffixIconName?: "visibility" | "lock" | "visibility_off" | undefined;
70
+ suffixIconName?: "visibility" | "visibility_off" | "lock" | undefined;
71
71
  suffixIconSize?: 20 | 24 | 40 | 48 | undefined;
72
72
  containerClassName?: string | undefined;
73
73
  prefixIconClassName?: string | undefined;
@@ -52,12 +52,12 @@ declare function getUTMs(): UTMProperties | null;
52
52
  /**
53
53
  * Stores UTM parameters as a Base64-encoded JSON cookie.
54
54
  * @param utms - The UTM properties to store.
55
- * @param domain - Cookie domain (defaults to `.windstream.com`).
55
+ * @param domain - Cookie domain (defaults to `.gokinetic.com`).
56
56
  */
57
57
  declare function setUTMs(utms: UTMProperties, domain?: string): void;
58
58
  /**
59
59
  * Removes the UTM cookie.
60
- * @param domain - Cookie domain (defaults to `.windstream.com`).
60
+ * @param domain - Cookie domain (defaults to `.gokinetic.com`).
61
61
  */
62
62
  declare function removeUTMs(domain?: string): void;
63
63
  declare function getCookie(key: string): string | null;
@@ -1,2 +1,2 @@
1
- import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";import{Base64 as r}from"js-base64";import n from"js-cookie";import{jsxs as o,jsx as i,Fragment as a}from"react/jsx-runtime";import u,{useMemo as c,createElement as l}from"react";import{Checklist as s}from"@windstream/react-shared-components";import{Link as d}from"@windstream/react-shared-components";import{MaterialIcon as f}from"@windstream/react-shared-components";import{Text as E}from"@windstream/react-shared-components";const p=t({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),y=(...t)=>p(e(...t)),m="utm_parameters",h=".windstream.com";function v(){if("undefined"==typeof window)return null;const e=n.get(m);if(!e)return null;try{const t=r.decode(e);return JSON.parse(t)}catch(e){return null}}function b(e,t=h){if("undefined"==typeof window)return;const o=JSON.stringify(e),i=r.encode(o);n.set(m,i,{domain:t,path:"/",sameSite:"Lax"})}function L(e=h){n.remove(m,{domain:e,path:"/"})}function A(e){if("undefined"==typeof window)return"";const t=n.get(e);return t?r.decode(t):null}const _=e=>{try{return JSON.parse(A(e)||"")}catch(e){return null}},O=(e,t,o)=>{if("undefined"==typeof window)return;const i=JSON.stringify(t),a=r.encode(i);n.set(e,a,o)},S=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function T(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),t={};let r=!1;for(const n of S){const o=e.get(n);o&&(t[n]=o,r=!0)}return r?t:null}function g(e,t){if(!t)return e||{};if(!e)return t;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(r=>(e[r]||"")===(t[r]||"")))return{...t,utm_content:e.utm_content||t.utm_content,utm_term:e.utm_term||t.utm_term};const r=!!t.utm_content,n=!!t.utm_term;return{...t,...!r&&e.utm_content&&{utm_content:e.utm_content},...!n&&e.utm_term&&{utm_term:e.utm_term}}}function D(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let t;try{t=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return t.includes("windstream.com")||t.includes("gokinetic.com")?null:t.includes("google.")?{utm_medium:"organic",utm_source:"google"}:t.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:t}}function I(e){if(!e)return null;const t={};return e.utm_campaign&&(t.name=e.utm_campaign),e.utm_source&&(t.source=e.utm_source),e.utm_medium&&(t.medium=e.utm_medium),e.utm_term&&(t.term=e.utm_term),e.utm_content&&(t.content=e.utm_content),e.utm_campaign_id&&(t.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(t.adgroup_id=e.utm_adgroup_id),e.gclid&&(t.gclid=e.gclid),e.fbclid&&(t.fbclid=e.fbclid),e.msclkid&&(t.msclkid=e.msclkid),Object.keys(t).length>0?t:null}function N(e,t){if(!t)return e;const r=new URLSearchParams(t),n=new Set(S),o=new Set([...n,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,r]=e.split("?");i=t,a=new URLSearchParams(r||"")}}catch(t){return e}const u=new URLSearchParams(a);r.forEach((e,t)=>{o.has(t.toLowerCase())||u.has(t)||u.set(t,e)});const c=u.toString();return c?`${i}?${c}`:i}const R=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,C=e=>{if(!e)return null;if(R(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return R(t)?t:null}return null};function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,j={},w={},K={};function H(){return P||(P=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(K)),K}var M,k={};function G(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(k)),k}var U,x={};function Y(){return U||(U=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(x)),x}var W,z={};function Q(){return W||(W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get CONTAINERS(){return f},get HEADINGS(){return E},get LIST_ITEM_BLOCKS(){return l},get TABLE_BLOCKS(){return s},get TEXT_CONTAINERS(){return p},get TOP_LEVEL_BLOCKS(){return c},get V1_MARKS(){return m},get V1_NODE_TYPES(){return y},get VOID_BLOCKS(){return d}});var t=H(),r=G(),n=Y();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,u,c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],s=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,l),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),E=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],p=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(u=E)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return o(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(u)||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.")}()),y=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],m=[n.MARKS.BOLD,n.MARKS.CODE,n.MARKS.ITALIC,n.MARKS.UNDERLINE]}(z)),z}var $,V={};var q,J={};var F,X={};var Z,ee={};function te(){return Z||(Z=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get isBlock(){return u},get isEmptyParagraph(){return l},get isInline(){return a},get isText(){return c},get stripEmptyTrailingParagraphFromDocument(){return f}});var t=H(),r=G();function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function i(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){if(t===e[i.value])return!0}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return!1}function a(e){return i(r.INLINES,e.nodeType)}function u(e){return i(t.BLOCKS,e.nodeType)}function c(e){return"text"===e.nodeType}function l(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var r=e.content[0];return"text"===r.nodeType&&""===r.value}function s(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function f(e){return!s(e)||e.content.length<d?e:l(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(ee)),ee}var re,ne,oe={},ie={};function ae(){return ne?re:(ne=1,re=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var ue,ce,le={};function se(){return ue||(ue=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return c},get typeMismatchError(){return n},get unknownPropertyError(){return u}});var n=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},i=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},a=function(e){var t=e.expected,n=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:r(t).sort(),path:o.toArray(),value:n}},u=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},c=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}}(le)),le}function de(){return ce||(ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return c}});var t=a(ae()),r=se();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}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(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.")}()}var c=function(){function e(n,o){var a=this,c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=n,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=c._errors).push.apply(n,u(t))},this.exists=function(e){return e in a.obj||(a.catch((0,r.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var n=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(n))return!0;var o,i=e?a.path.of(e):a.path,u=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,r.typeMismatchError)({typeName:"Object",property:u,path:i,value:n})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,r.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var n=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(a.catch((0,r.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:n})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,r.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=a.obj[e];return!("string"!=typeof n||!t.includes(n))||(a.catch((0,r.enumError)({expected:t,value:n,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,r.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var n=a.obj[e];return n.length>=t||(a.catch((0,r.minSizeError)({min:t,value:n,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,r.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var r=a.obj[e],n=!1;r.forEach(function(r,o){if(!n){var i=t(r,a.path.of(e).of(o));i.length>0&&(n=!0),a.catch.apply(a,u(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}()}(ie)),ie}var fe,Ee={};function pe(){return fe||(fe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get EntityLinkAssertion(){return y},get HyperLinkAssertion(){return m},get NodeAssertion(){return p},get VOID_CONTENT(){return E},get assert(){return h},get assertLink(){return v}});var t=de();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t=c(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return n(e)}(e,f()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function d(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var E=[],p=function(){function e(t,r){i(this,e),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return a(e,[{key:"assert",value:function(e,r){var n=new t.ObjectAssertion(e,r);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,r),i=o.nodeTypes,a=o.min,u=void 0===a?0:a;if(0===i.length&&u>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(u," with no nodeTypes"));if(n.minLength("content",u),0===i.length?n.empty("content"):n.each("content",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.enum("nodeType",i),n.errors):n.errors}),n.object("data")){var c,l,s,f=null!==(s=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,r.of("data")))&&void 0!==s?s:[];(c=n).catch.apply(c,d(f))}return n.errors}}]),e}(),y=function(e){function r(e,a){var c;return i(this,r),c=o(this,r,[a,function(e,t){return n(c).assertLink(e,t)}]),u(c,"linkType",void 0),u(c,"type",void 0),u(c,"assertLink",void 0),c.linkType=e,c.assertLink=function(e,r){var n=new t.ObjectAssertion(e,r);if(n.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,r.of("target").of("sys"));i.object()&&(i.enum("type",[c.type]),i.enum("linkType",[c.linkType]),"Link"===c.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===c.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,d(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},c.type=c.linkType.startsWith("Contentful:")?"ResourceLink":"Link",c}return l(r,e),r}(p),m=function(e){function r(){var e;return i(this,r),e=o(this,r,[["text"],function(t,r){return n(e).assertLink(t,r)}]),u(e,"assertLink",function(e,r){var n=new t.ObjectAssertion(e,r);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return l(r,e),r}(p),h=function(e,t){return new p(e,t)},v=function(e,t){return new y(e,t)}}(Ee)),Ee}var ye,me={};function he(){return ye||(ye=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"path",void 0),r(this,"of",void 0),r(this,"isRoot",void 0),r(this,"last",void 0),r(this,"toArray",void 0),this.path=o,this.of=function(r){return new e(n(t.path).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(me)),me}var ve,be,Le,Ae,_e={};function Oe(){return be||(be=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=H(),r=G(),n=Q(),o=de(),i=pe(),a=he(),u=(ve||(ve=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=de();function r(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.string("type"),n.errors):n.errors}),n.string("value"),n.errors):n.errors}}(_e)),_e);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(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.")}()}var d,f=(0,i.assert)(s(Object.values(r.INLINES)).concat(["text"]).sort()),E=(0,i.assert)([t.BLOCKS.LIST_ITEM]),p=(0,i.assertLink)("Entry",i.VOID_CONTENT),y=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),m=(l(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),l(d,t.BLOCKS.PARAGRAPH,f),l(d,t.BLOCKS.HEADING_1,f),l(d,t.BLOCKS.HEADING_2,f),l(d,t.BLOCKS.HEADING_3,f),l(d,t.BLOCKS.HEADING_4,f),l(d,t.BLOCKS.HEADING_5,f),l(d,t.BLOCKS.HEADING_6,f),l(d,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),l(d,t.BLOCKS.EMBEDDED_ENTRY,p),l(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),l(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),l(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),l(d,t.BLOCKS.OL_LIST,E),l(d,t.BLOCKS.UL_LIST,E),l(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(s(n.LIST_ITEM_BLOCKS).sort())),l(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),l(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),l(d,t.BLOCKS.TABLE_CELL,y),l(d,t.BLOCKS.TABLE_HEADER_CELL,y),l(d,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),l(d,r.INLINES.EMBEDDED_ENTRY,p),l(d,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),l(d,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),l(d,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),l(d,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function h(e,t){if("text"===e.nodeType)return(0,u.assertText)(e,t);var r=m[e.nodeType].assert(e,t);if(r.length>0)return r;var n=new o.ObjectAssertion(e,t);return n.each("content",function(e,t){return h(e,t)}),n.errors}var v=function(e){var r=new a.Path,n=new o.ObjectAssertion(e,r);return n.object()&&n.enum("nodeType",[t.BLOCKS.DOCUMENT]),n.errors.length>0?n.errors:h(e,r)}}(oe)),oe}function Se(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return n.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=H(),r=G(),n=Y();u(Q(),e),u(($||($=1,Object.defineProperty(V,"__esModule",{value:!0})),V),e),u((q||(q=1,Object.defineProperty(J,"__esModule",{value:!0})),J),e);var o=(F||(F=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=H(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(X)),X),i=l(te()),a=Oe();function u(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}(w)),w}var Te=function(){if(Ae)return j;Ae=1;var e=u,t=Se();function r(t,r){return t.map((t,o)=>{return i=n(t,r),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function n(n,o){const{renderNode:i,renderMark:a,renderText:u,preserveWhitespace:c}=o;if(t.helpers.isText(n)){let t=u?u(n.value):n.value;if(c&&!u){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const r=t.split("\n"),n=[];r.forEach((t,o)=>{n.push(t),o!==r.length-1&&n.push(e.createElement("br",null))}),t=n}return n.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=r(n.content,o);return n.nodeType&&i[n.nodeType]?i[n.nodeType](n,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,r)=>e.createElement("p",null,r),[t.BLOCKS.HEADING_1]:(t,r)=>e.createElement("h1",null,r),[t.BLOCKS.HEADING_2]:(t,r)=>e.createElement("h2",null,r),[t.BLOCKS.HEADING_3]:(t,r)=>e.createElement("h3",null,r),[t.BLOCKS.HEADING_4]:(t,r)=>e.createElement("h4",null,r),[t.BLOCKS.HEADING_5]:(t,r)=>e.createElement("h5",null,r),[t.BLOCKS.HEADING_6]:(t,r)=>e.createElement("h6",null,r),[t.BLOCKS.EMBEDDED_ENTRY]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.UL_LIST]:(t,r)=>e.createElement("ul",null,r),[t.BLOCKS.OL_LIST]:(t,r)=>e.createElement("ol",null,r),[t.BLOCKS.LIST_ITEM]:(t,r)=>e.createElement("li",null,r),[t.BLOCKS.QUOTE]:(t,r)=>e.createElement("blockquote",null,r),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,r)=>e.createElement("table",null,e.createElement("tbody",null,r)),[t.BLOCKS.TABLE_ROW]:(t,r)=>e.createElement("tr",null,r),[t.BLOCKS.TABLE_HEADER_CELL]:(t,r)=>e.createElement("th",null,r),[t.BLOCKS.TABLE_CELL]:(t,r)=>e.createElement("td",null,r),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>c(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,r)=>c(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,r)=>e.createElement("a",{href:t.data.uri},r)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,r){return e.createElement("span",{key:r.data.target.sys.id},"type: ",r.nodeType," id: ",r.data.target.sys.id)}function c(t,r){return e.createElement("span",{key:r.data.target.sys.urn},"type: ",r.nodeType," urn: ",r.data.target.sys.urn)}return j.documentToReactComponents=function(e,r={}){if(!e)return null;let a=e;return r.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),n(a,{renderNode:{...o,...r.renderNode},renderMark:{...i,...r.renderMark},renderText:r.renderText,preserveWhitespace:r.preserveWhitespace})},j}(),ge=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),De=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),Ie=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce,Be=[ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE,ge.TABLE],Pe=[ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE];ge.TABLE,ge.TABLE_ROW,ge.TABLE_CELL,ge.TABLE_HEADER_CELL,ge.HR,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE;var je,we=(Re(Ce={},ge.OL_LIST,[ge.LIST_ITEM]),Re(Ce,ge.UL_LIST,[ge.LIST_ITEM]),Re(Ce,ge.LIST_ITEM,Pe),Re(Ce,ge.QUOTE,[ge.PARAGRAPH]),Re(Ce,ge.TABLE,[ge.TABLE_ROW]),Re(Ce,ge.TABLE_ROW,[ge.TABLE_CELL,ge.TABLE_HEADER_CELL]),Re(Ce,ge.TABLE_CELL,[ge.PARAGRAPH,ge.UL_LIST,ge.OL_LIST]),Re(Ce,ge.TABLE_HEADER_CELL,[ge.PARAGRAPH]),Ce),Ke=[ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6];[ge.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ne(e)}(je=Ke)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(je)||function(e,t){if(e){if("string"==typeof e)return Ne(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(e,t):void 0}}(je)||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.")}()),ge.DOCUMENT,ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.LIST_ITEM,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,De.HYPERLINK,De.ENTRY_HYPERLINK,De.ASSET_HYPERLINK,De.EMBEDDED_ENTRY,ge.DOCUMENT,ge.PARAGRAPH;var He=B(ae());function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ke(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Me(e,t)}(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.")}()}var Ge=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}};function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xe(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(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.")}()}var ze=function(){function e(t,r){var n=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,"obj",void 0),Ye(this,"path",void 0),Ye(this,"_errors",void 0),Ye(this,"catch",void 0),Ye(this,"exists",void 0),Ye(this,"object",void 0),Ye(this,"string",void 0),Ye(this,"number",void 0),Ye(this,"array",void 0),Ye(this,"enum",void 0),Ye(this,"empty",void 0),Ye(this,"minLength",void 0),Ye(this,"noAdditionalProperties",void 0),Ye(this,"each",void 0),this.obj=t,this.path=r,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=o._errors).push.apply(n,We(t))},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(He(t))return!0;var r,o=e?n.path.of(e):n.path,i=null!==(r=null!=e?e:n.path.last())&&void 0!==r?r:"value";return n.catch(Ge({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(Ge({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(Ge({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(Ge({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:ke(t).sort(),path:n.toArray(),value:r}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}}({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],o=!1;r.forEach(function(r,i){if(!o){var a=t(r,n.path.of(e).of(i));a.length>0&&(o=!0),n.catch.apply(n,We(a))}})}}}return xe(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}();function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e,t,r){return t=Xe(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return $e(e)}(e,rt()?Reflect.construct(t,r||[],Xe(e).constructor):t.apply(e,r))}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rt=function(){return!!e})()}var nt=[],ot=function(){function e(t,r){qe(this,e),Fe(this,"contentRule",void 0),Fe(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return Je(e,[{key:"assert",value:function(e,t){var r=new ze(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=n.nodeTypes,i=n.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===o.length?r.empty("content"):r.each("content",function(e,t){var r=new ze(e,t);return r.object()?(r.enum("nodeType",o),r.errors):r.errors}),r.object("data")){var u,c,l,s=null!==(l=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,t.of("data")))&&void 0!==l?l:[];(u=r).catch.apply(u,tt(s))}return r.errors}}]),e}(),it=function(e){function t(e,r){var n;return qe(this,t),n=Ve(this,t,[r,function(e,t){return $e(n).assertLink(e,t)}]),Fe(n,"linkType",void 0),Fe(n,"type",void 0),Fe(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new ze(e,t);if(r.object("target")){var o,i=new ze(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,tt(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return Ze(t,e),t}(ot),at=function(e){function t(){var e;return qe(this,t),e=Ve(this,t,[["text"],function(t,r){return $e(e).assertLink(t,r)}]),Fe(e,"assertLink",function(e,t){var r=new ze(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return Ze(t,e),t}(ot),ut=function(e,t){return new ot(e,t)},ct=function(e,t){return new it(e,t)};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function st(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lt(e,t)}(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.")}()}var ft,Et=ut(dt(Object.values(De)).concat(["text"]).sort()),pt=ut([ge.LIST_ITEM]),yt=ct("Entry",nt),mt=ut(function(){return{nodeTypes:[ge.PARAGRAPH],min:1}},function(e,t){var r=new ze(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});st(ft={},ge.DOCUMENT,ut(Be)),st(ft,ge.PARAGRAPH,Et),st(ft,ge.HEADING_1,Et),st(ft,ge.HEADING_2,Et),st(ft,ge.HEADING_3,Et),st(ft,ge.HEADING_4,Et),st(ft,ge.HEADING_5,Et),st(ft,ge.HEADING_6,Et),st(ft,ge.QUOTE,ut(we[ge.QUOTE])),st(ft,ge.EMBEDDED_ENTRY,yt),st(ft,ge.EMBEDDED_ASSET,ct("Asset",nt)),st(ft,ge.EMBEDDED_RESOURCE,ct("Contentful:Entry",nt)),st(ft,ge.HR,ut(nt)),st(ft,ge.OL_LIST,pt),st(ft,ge.UL_LIST,pt),st(ft,ge.LIST_ITEM,ut(dt(Pe).sort())),st(ft,ge.TABLE,ut(function(){return{nodeTypes:[ge.TABLE_ROW],min:1}})),st(ft,ge.TABLE_ROW,ut(function(){return{nodeTypes:[ge.TABLE_CELL,ge.TABLE_HEADER_CELL],min:1}})),st(ft,ge.TABLE_CELL,mt),st(ft,ge.TABLE_HEADER_CELL,mt),st(ft,De.HYPERLINK,new at),st(ft,De.EMBEDDED_ENTRY,yt),st(ft,De.EMBEDDED_RESOURCE,ct("Contentful:Entry",nt)),st(ft,De.ENTRY_HYPERLINK,ct("Entry",["text"])),st(ft,De.ASSET_HYPERLINK,ct("Asset",["text"])),st(ft,De.RESOURCE_HYPERLINK,ct("Contentful:Entry",["text"]));const ht={renderMark:{[Ie.BOLD]:e=>i("strong",{className:"label3",children:e}),[Ie.ITALIC]:e=>i("em",{children:e}),[Ie.UNDERLINE]:e=>i("u",{children:e}),[Ie.CODE]:e=>i("code",{children:e})},renderNode:{[ge.PARAGRAPH]:(e,t)=>i("div",{className:"body3 mb-4",children:t}),[ge.HEADING_1]:(e,t)=>i(E,{as:"h1",className:"heading2 md:heading1",children:t}),[ge.HEADING_2]:(e,t)=>i(E,{as:"h2",className:"heading6 md:heading5",children:t}),[ge.HEADING_3]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[ge.HEADING_4]:(e,t)=>i(E,{as:"h3",className:"headingClass",children:t}),[ge.HEADING_5]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[ge.HEADING_6]:(e,t)=>i(E,{as:"h3",className:"heading6",children:t}),[ge.QUOTE]:(e,t)=>i("blockquote",{children:t}),[ge.UL_LIST]:(e,t)=>i("ul",{children:t}),[ge.OL_LIST]:(e,t)=>i("ol",{children:t}),[ge.LIST_ITEM]:(e,t)=>i("li",{children:t}),[De.HYPERLINK]:(e,t)=>{var r;const n=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.uri,o=/^https?:\/\//.test(n);return i("a",{href:n,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,children:t})},[ge.EMBEDDED_ASSET]:e=>{var t,r;const n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target,o=null==n?void 0:n.fields,a=(null==n?void 0:n.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),u=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!a)return null;const c=a.startsWith("//")?`https:${a}`:a;return i("img",{src:c,alt:u,style:{maxWidth:"100%"}})},[ge.EMBEDDED_ENTRY]:e=>{var t,r,n,a;const u=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"callout"===(null===(a=null===(n=null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[i("strong",{children:u.fields.title}),i("div",{children:u.fields.body})]}):null},[De.EMBEDDED_ENTRY]:e=>{var t,r,n,a,u,c;const l=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"componentCheckList"===(null===(a=null===(n=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",l.fields.title]}):i("span",{children:null!==(c=null===(u=null==l?void 0:l.fields)||void 0===u?void 0:u.title)&&void 0!==c?c:""})}}};function vt(e,t,r="body1",n="body1 font-bold",o){if(!e||!Array.isArray(e.content))return null;const a={...ht,...o,renderNode:{...ht.renderNode,...null==o?void 0:o.renderNode,[ge.PARAGRAPH]:(e,t)=>i("div",{className:r,children:t}),[De.HYPERLINK]:(e,r)=>{var o;const a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.uri,u=/^https?:\/\//.test(a),c=null!=t?t:u;return i(d,{href:a,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,variant:"default",className:n,children:r})}}};return Te.documentToReactComponents(e,a)}function bt(e,t){return c(()=>{if(!e||!Array.isArray(e.content))return null;const r={...ht,renderMark:{...ht.renderMark,...null==t?void 0:t.renderMark},renderNode:{...ht.renderNode,...null==t?void 0:t.renderNode}};return Te.documentToReactComponents(e,r)},[e,t])}function Lt(e,t){if(!e||!Array.isArray(e.content))return null;const r={...ht,renderMark:{...ht.renderMark,[Ie.BOLD]:e=>i("strong",{className:"label2",children:e})},renderNode:{...ht.renderNode,[ge.PARAGRAPH]:(e,t)=>i("div",{className:"body2",children:t}),[ge.TABLE]:(e,t)=>{var r,n;return i("div",{className:"comparison-table-wrapper my-5 w-full overflow-x-auto border-none md:overflow-hidden",children:i("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(n=null===(r=e.content[0])||void 0===r?void 0:r.content)||void 0===n?void 0:n.length)>2?"min-w-[100.1%]":"min-w-full"),children:i("tbody",{children:t})})})},[ge.TABLE_ROW]:(e,t)=>i("tr",{className:"border-b border-gray-200 last:border-0",children:t}),[ge.TABLE_HEADER_CELL]:(e,t)=>{var r;const n=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2;return i("th",{className:`label4 break-words py-4 text-center ${n?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t})},[ge.TABLE_CELL]:(e,t)=>{var r,n,u,c;const l=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2,s=null===(c=null===(u=null===(n=e.content[0])||void 0===n?void 0:n.content[0])||void 0===u?void 0:u.value)||void 0===c?void 0:c.toLowerCase().trim();return i("td",{className:`rt-table-cell label-4 break-words bg-white py-2 text-center align-top first:text-left ${l?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:o(a,{children:[" ","yes"===s?i(f,{name:"check_circle",color:"#24A76A",fill:1}):"no"===s?i(f,{name:"cancel",color:"#CECECE",fill:1}):t]})})},[De.EMBEDDED_ENTRY]:e=>{var r,n,o,a;const u=e.data.target.sys.id,c=null===(n=null===(r=null==t?void 0:t.entries)||void 0===r?void 0:r.inline)||void 0===n?void 0:n.find(e=>e.sys.id===u);if(!c)return null;if("ComponentCheckList"===c.__typename){const e=(null===(a=null===(o=c.list)||void 0===o?void 0:o.items)||void 0===a?void 0:a.map(e=>{var t;return vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"body2")}))||[];return i(s,{items:e,listIconName:"disc",listItemClassName:"items-baseline body2"})}return i("span",{children:c.title||""})}}};return Te.documentToReactComponents(e,r)}const At={renderMark:{[Ie.BOLD]:e=>l("span",{className:"label1"},e)}};function _t(e,t,r,n){return c(()=>{var o,i;const a=null!==(i=null===(o=null==e?void 0:e.list)||void 0===o?void 0:o.items)&&void 0!==i?i:[];return t?a.map(e=>{var t,o;return null!==(o=vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:""}):a.map(e=>{var t,o,i,a,u;return{title:null!==(o=vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:"",iconUrl:null!==(a=null===(i=null==e?void 0:e.icon)||void 0===i?void 0:i.url)&&void 0!==a?a:void 0,anchorId:null!==(u=null==e?void 0:e.anchorId)&&void 0!==u?u:void 0}})},[e,t,r,n])}export{S as UTM_PARAM_NAMES,N as buildPreservedQueryHref,g as combineExistingAndNewUTMs,y as cx,I as getCampaignProperties,A as getCookie,D as getOrganicTrafficUtmParameters,_ as getParsedCookie,v as getUTMs,T as getUtmParametersFromURL,At as label1BoldOptions,L as removeUTMs,vt as renderContentfulRichText,Lt as renderContentfulRichTextTable,O as setCookie,b as setUTMs,C as toDocument,bt as useContentfulRichText,_t as useProcessedChecklist};
1
+ import{clsx as e}from"clsx";export{clsx}from"clsx";import{extendTailwindMerge as t}from"tailwind-merge";import{Base64 as r}from"js-base64";import n from"js-cookie";import{jsxs as o,jsx as i,Fragment as a}from"react/jsx-runtime";import u,{useMemo as c,createElement as l}from"react";import{Checklist as s}from"@windstream/react-shared-components";import{Link as d}from"@windstream/react-shared-components";import{MaterialIcon as f}from"@windstream/react-shared-components";import{Text as E}from"@windstream/react-shared-components";const p=t({extend:{classGroups:{"font-variants":["heading1","heading2","heading3","heading4","heading5","heading6","subheading1","subheading2","subheading3","subheading4","subheading5","subheading6","body1","body2","body3","footnote","micro","label1","label2","label3","label4"],"button-sizes":["btn-small","btn-medium","btn-large","btn-x-large"]}}}),y=(...t)=>p(e(...t)),m="utm_parameters",h=".gokinetic.com";function v(){if("undefined"==typeof window)return null;const e=n.get(m);if(!e)return null;try{const t=r.decode(e);return JSON.parse(t)}catch(e){return null}}function b(e,t=h){if("undefined"==typeof window)return;const o=JSON.stringify(e),i=r.encode(o);n.set(m,i,{domain:t,path:"/",sameSite:"Lax"})}function L(e=h){n.remove(m,{domain:e,path:"/"})}function A(e){if("undefined"==typeof window)return"";const t=n.get(e);return t?r.decode(t):null}const _=e=>{try{return JSON.parse(A(e)||"")}catch(e){return null}},O=(e,t,o)=>{if("undefined"==typeof window)return;const i=JSON.stringify(t),a=r.encode(i);n.set(e,a,o)},S=["utm_content","utm_medium","utm_campaign","utm_source","utm_term","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"];function T(){if("undefined"==typeof window)return null;const e=new URLSearchParams(window.location.search),t={};let r=!1;for(const n of S){const o=e.get(n);o&&(t[n]=o,r=!0)}return r?t:null}function g(e,t){if(!t)return e||{};if(!e)return t;if(["utm_campaign","utm_medium","utm_source","utm_campaign_id","utm_adgroup_id","fbclid","gclid","msclkid"].every(r=>(e[r]||"")===(t[r]||"")))return{...t,utm_content:e.utm_content||t.utm_content,utm_term:e.utm_term||t.utm_term};const r=!!t.utm_content,n=!!t.utm_term;return{...t,...!r&&e.utm_content&&{utm_content:e.utm_content},...!n&&e.utm_term&&{utm_term:e.utm_term}}}function D(){if("undefined"==typeof document)return null;const e=document.referrer;if(!e)return{utm_medium:"direct",utm_source:"direct"};let t;try{t=new URL(e).hostname.toLowerCase()}catch(e){return{utm_medium:"direct",utm_source:"direct"}}return t.includes("windstream.com")||t.includes("gokinetic.com")?null:t.includes("google.")?{utm_medium:"organic",utm_source:"google"}:t.includes("bing.")?{utm_medium:"organic",utm_source:"bing"}:{utm_medium:"referral",utm_source:t}}function I(e){if(!e)return null;const t={};return e.utm_campaign&&(t.name=e.utm_campaign),e.utm_source&&(t.source=e.utm_source),e.utm_medium&&(t.medium=e.utm_medium),e.utm_term&&(t.term=e.utm_term),e.utm_content&&(t.content=e.utm_content),e.utm_campaign_id&&(t.campaign_id=e.utm_campaign_id),e.utm_adgroup_id&&(t.adgroup_id=e.utm_adgroup_id),e.gclid&&(t.gclid=e.gclid),e.fbclid&&(t.fbclid=e.fbclid),e.msclkid&&(t.msclkid=e.msclkid),Object.keys(t).length>0?t:null}function N(e,t){if(!t)return e;const r=new URLSearchParams(t),n=new Set(S),o=new Set([...n,"searchtext","page"]);let i,a;try{if(e.startsWith("http://")||e.startsWith("https://")){const t=new URL(e);i=t.origin+t.pathname,a=t.searchParams}else{const[t,r]=e.split("?");i=t,a=new URLSearchParams(r||"")}}catch(t){return e}const u=new URLSearchParams(a);r.forEach((e,t)=>{o.has(t.toLowerCase())||u.has(t)||u.set(t,e)});const c=u.toString();return c?`${i}?${c}`:i}const R=e=>!!e&&"object"==typeof e&&"nodeType"in e&&"content"in e,C=e=>{if(!e)return null;if(R(e))return e;if("object"==typeof e&&null!==e&&"json"in e){const t=e.json;return R(t)?t:null}return null};function B(e){return e&&e.__esModule&&Object.prototype.hasOwnProperty.call(e,"default")?e.default:e}var P,j={},w={},K={};function H(){return P||(P=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"BLOCKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({})}(K)),K}var M,k={};function G(){return M||(M=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"INLINES",{enumerable:!0,get:function(){return t}});var t=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({})}(k)),k}var U,x={};function Y(){return U||(U=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"MARKS",{enumerable:!0,get:function(){return t}});var t=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({})}(x)),x}var W,z={};function Q(){return W||(W=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get CONTAINERS(){return f},get HEADINGS(){return E},get LIST_ITEM_BLOCKS(){return l},get TABLE_BLOCKS(){return s},get TEXT_CONTAINERS(){return p},get TOP_LEVEL_BLOCKS(){return c},get V1_MARKS(){return m},get V1_NODE_TYPES(){return y},get VOID_BLOCKS(){return d}});var t=H(),r=G(),n=Y();function o(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var a,u,c=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE,t.BLOCKS.TABLE],l=[t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],s=[t.BLOCKS.TABLE,t.BLOCKS.TABLE_ROW,t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],d=[t.BLOCKS.HR,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,t.BLOCKS.EMBEDDED_RESOURCE],f=(i(a={},t.BLOCKS.OL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.UL_LIST,[t.BLOCKS.LIST_ITEM]),i(a,t.BLOCKS.LIST_ITEM,l),i(a,t.BLOCKS.QUOTE,[t.BLOCKS.PARAGRAPH]),i(a,t.BLOCKS.TABLE,[t.BLOCKS.TABLE_ROW]),i(a,t.BLOCKS.TABLE_ROW,[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL]),i(a,t.BLOCKS.TABLE_CELL,[t.BLOCKS.PARAGRAPH,t.BLOCKS.UL_LIST,t.BLOCKS.OL_LIST]),i(a,t.BLOCKS.TABLE_HEADER_CELL,[t.BLOCKS.PARAGRAPH]),a),E=[t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6],p=[t.BLOCKS.PARAGRAPH].concat(function(e){if(Array.isArray(e))return o(e)}(u=E)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(u)||function(e,t){if(e){if("string"==typeof e)return o(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?o(e,t):void 0}}(u)||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.")}()),y=[t.BLOCKS.DOCUMENT,t.BLOCKS.PARAGRAPH,t.BLOCKS.HEADING_1,t.BLOCKS.HEADING_2,t.BLOCKS.HEADING_3,t.BLOCKS.HEADING_4,t.BLOCKS.HEADING_5,t.BLOCKS.HEADING_6,t.BLOCKS.OL_LIST,t.BLOCKS.UL_LIST,t.BLOCKS.LIST_ITEM,t.BLOCKS.HR,t.BLOCKS.QUOTE,t.BLOCKS.EMBEDDED_ENTRY,t.BLOCKS.EMBEDDED_ASSET,r.INLINES.HYPERLINK,r.INLINES.ENTRY_HYPERLINK,r.INLINES.ASSET_HYPERLINK,r.INLINES.EMBEDDED_ENTRY,"text"],m=[n.MARKS.BOLD,n.MARKS.CODE,n.MARKS.ITALIC,n.MARKS.UNDERLINE]}(z)),z}var $,V={};var q,J={};var F,X={};var Z,ee={};function te(){return Z||(Z=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get isBlock(){return u},get isEmptyParagraph(){return l},get isInline(){return a},get isText(){return c},get stripEmptyTrailingParagraphFromDocument(){return f}});var t=H(),r=G();function n(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function o(e,t){return t=null!=t?t:{},Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(t)):function(e){var t=Object.keys(e);if(Object.getOwnPropertySymbols){var r=Object.getOwnPropertySymbols(e);t.push.apply(t,r)}return t}(Object(t)).forEach(function(r){Object.defineProperty(e,r,Object.getOwnPropertyDescriptor(t,r))}),e}function i(e,t){var r=!0,n=!1,o=void 0;try{for(var i,a=Object.keys(e)[Symbol.iterator]();!(r=(i=a.next()).done);r=!0){if(t===e[i.value])return!0}}catch(e){n=!0,o=e}finally{try{r||null==a.return||a.return()}finally{if(n)throw o}}return!1}function a(e){return i(r.INLINES,e.nodeType)}function u(e){return i(t.BLOCKS,e.nodeType)}function c(e){return"text"===e.nodeType}function l(e){if(e.nodeType!==t.BLOCKS.PARAGRAPH)return!1;if(1!==e.content.length)return!1;var r=e.content[0];return"text"===r.nodeType&&""===r.value}function s(e){return null!=e&&"object"==(void 0===e?"undefined":(t=e)&&"undefined"!=typeof Symbol&&t.constructor===Symbol?"symbol":typeof t)&&"content"in e&&Array.isArray(e.content);var t}var d=2;function f(e){return!s(e)||e.content.length<d?e:l(e.content[e.content.length-1])?o(function(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{},o=Object.keys(r);"function"==typeof Object.getOwnPropertySymbols&&(o=o.concat(Object.getOwnPropertySymbols(r).filter(function(e){return Object.getOwnPropertyDescriptor(r,e).enumerable}))),o.forEach(function(t){n(e,t,r[t])})}return e}({},e),{content:e.content.slice(0,-1)}):e}}(ee)),ee}var re,ne,oe={},ie={};function ae(){return ne?re:(ne=1,re=e=>{if("[object Object]"!==Object.prototype.toString.call(e))return!1;const t=Object.getPrototypeOf(e);return null===t||t===Object.prototype})}var ue,ce,le={};function se(){return ue||(ue=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get enumError(){return a},get maxSizeError(){return i},get minSizeError(){return o},get requiredPropertyError(){return c},get typeMismatchError(){return n},get unknownPropertyError(){return u}});var n=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}},o=function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}},i=function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}},a=function(e){var t=e.expected,n=e.value,o=e.path;return{details:"Value must be one of expected values",name:"in",expected:r(t).sort(),path:o.toArray(),value:n}},u=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}},c=function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}}(le)),le}function de(){return ce||(ce=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"ObjectAssertion",{enumerable:!0,get:function(){return c}});var t=a(ae()),r=se();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}function o(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function i(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function a(e){return e&&e.__esModule?e:{default:e}}function u(e){return function(e){if(Array.isArray(e))return n(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return n(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return n(e,t)}(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.")}()}var c=function(){function e(n,o){var a=this,c=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),i(this,"obj",void 0),i(this,"path",void 0),i(this,"_errors",void 0),i(this,"catch",void 0),i(this,"exists",void 0),i(this,"object",void 0),i(this,"string",void 0),i(this,"number",void 0),i(this,"array",void 0),i(this,"enum",void 0),i(this,"empty",void 0),i(this,"minLength",void 0),i(this,"noAdditionalProperties",void 0),i(this,"each",void 0),this.obj=n,this.path=o,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=c._errors).push.apply(n,u(t))},this.exists=function(e){return e in a.obj||(a.catch((0,r.requiredPropertyError)({property:e,path:a.path.of(e)})),!1)},this.object=function(e){var n=e?a.obj[e]:a.obj;if(e&&!a.exists(e))return!1;if((0,t.default)(n))return!0;var o,i=e?a.path.of(e):a.path,u=null!==(o=null!=e?e:a.path.last())&&void 0!==o?o:"value";return a.catch((0,r.typeMismatchError)({typeName:"Object",property:u,path:i,value:n})),!1},this.string=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&("string"==typeof t||(a.catch((0,r.typeMismatchError)({typeName:"String",property:e,path:a.path.of(e),value:t})),!1))},this.number=function(e,t){var n=a.obj[e];return!(!t||e in a.obj)||!!a.exists(e)&&("number"==typeof n&&!Number.isNaN(n)||(a.catch((0,r.typeMismatchError)({typeName:"Number",property:e,path:a.path.of(e),value:n})),!1))},this.array=function(e){var t=a.obj[e];return!(e&&!a.exists(e))&&(!!Array.isArray(t)||(a.catch((0,r.typeMismatchError)({typeName:"Array",property:e,path:a.path.of(e),value:t})),!1))},this.enum=function(e,t){var n=a.obj[e];return!("string"!=typeof n||!t.includes(n))||(a.catch((0,r.enumError)({expected:t,value:n,path:a.path.of(e)})),!1)},this.empty=function(e){if(!a.array(e))return!1;var t=a.obj[e];return 0===t.length||(a.catch((0,r.maxSizeError)({max:0,value:t,path:a.path.of(e)})),!1)},this.minLength=function(e,t){if(!a.array(e))return!1;var n=a.obj[e];return n.length>=t||(a.catch((0,r.minSizeError)({min:t,value:n,path:a.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(a.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return a.catch((0,r.unknownPropertyError)({property:e,path:a.path.of(e)}))}),0===t.length},this.each=function(e,t){if(a.array(e)){var r=a.obj[e],n=!1;r.forEach(function(r,o){if(!n){var i=t(r,a.path.of(e).of(o));i.length>0&&(n=!0),a.catch.apply(a,u(i))}})}}}return o(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}()}(ie)),ie}var fe,Ee={};function pe(){return fe||(fe=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get EntityLinkAssertion(){return y},get HyperLinkAssertion(){return m},get NodeAssertion(){return p},get VOID_CONTENT(){return E},get assert(){return h},get assertLink(){return v}});var t=de();function r(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function n(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function o(e,t,r){return t=c(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return n(e)}(e,f()?Reflect.construct(t,r||[],c(e).constructor):t.apply(e,r))}function i(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function a(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function u(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function c(e){return c=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},c(e)}function l(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&s(e,t)}function s(e,t){return s=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},s(e,t)}function d(e){return function(e){if(Array.isArray(e))return r(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return r(e,t);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return r(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function f(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(f=function(){return!!e})()}var E=[],p=function(){function e(t,r){i(this,e),u(this,"contentRule",void 0),u(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return a(e,[{key:"assert",value:function(e,r){var n=new t.ObjectAssertion(e,r);if(!n.object())return n.errors;n.noAdditionalProperties(["nodeType","data","content"]);var o=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,r),i=o.nodeTypes,a=o.min,u=void 0===a?0:a;if(0===i.length&&u>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(u," with no nodeTypes"));if(n.minLength("content",u),0===i.length?n.empty("content"):n.each("content",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.enum("nodeType",i),n.errors):n.errors}),n.object("data")){var c,l,s,f=null!==(s=null===(l=this.validateData)||void 0===l?void 0:l.call(this,e.data,r.of("data")))&&void 0!==s?s:[];(c=n).catch.apply(c,d(f))}return n.errors}}]),e}(),y=function(e){function r(e,a){var c;return i(this,r),c=o(this,r,[a,function(e,t){return n(c).assertLink(e,t)}]),u(c,"linkType",void 0),u(c,"type",void 0),u(c,"assertLink",void 0),c.linkType=e,c.assertLink=function(e,r){var n=new t.ObjectAssertion(e,r);if(n.object("target")){var o,i=new t.ObjectAssertion(e.target.sys,r.of("target").of("sys"));i.object()&&(i.enum("type",[c.type]),i.enum("linkType",[c.linkType]),"Link"===c.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===c.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=n).catch.apply(o,d(i.errors))}return n.noAdditionalProperties(["target"]),n.errors},c.type=c.linkType.startsWith("Contentful:")?"ResourceLink":"Link",c}return l(r,e),r}(p),m=function(e){function r(){var e;return i(this,r),e=o(this,r,[["text"],function(t,r){return n(e).assertLink(t,r)}]),u(e,"assertLink",function(e,r){var n=new t.ObjectAssertion(e,r);return n.string("uri"),n.noAdditionalProperties(["uri"]),n.errors}),e}return l(r,e),r}(p),h=function(e,t){return new p(e,t)},v=function(e,t){return new y(e,t)}}(Ee)),Ee}var ye,me={};function he(){return ye||(ye=1,function(e){function t(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function r(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function n(e){return function(e){if(Array.isArray(e))return t(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,r){if(!e)return;if("string"==typeof e)return t(e,r);var n=Object.prototype.toString.call(e).slice(8,-1);"Object"===n&&e.constructor&&(n=e.constructor.name);if("Map"===n||"Set"===n)return Array.from(n);if("Arguments"===n||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n))return t(e,r)}(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.")}()}Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"Path",{enumerable:!0,get:function(){return o}});var o=function e(){var t=this,o=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),r(this,"path",void 0),r(this,"of",void 0),r(this,"isRoot",void 0),r(this,"last",void 0),r(this,"toArray",void 0),this.path=o,this.of=function(r){return new e(n(t.path).concat([r]))},this.isRoot=function(){return 0===t.path.length},this.last=function(){return t.path[t.path.length-1]},this.toArray=function(){return t.path}}}(me)),me}var ve,be,Le,Ae,_e={};function Oe(){return be||(be=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"validateRichTextDocument",{enumerable:!0,get:function(){return v}});var t=H(),r=G(),n=Q(),o=de(),i=pe(),a=he(),u=(ve||(ve=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"assertText",{enumerable:!0,get:function(){return r}});var t=de();function r(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.noAdditionalProperties(["nodeType","data","value","marks"]),n.object("data"),n.each("marks",function(e,r){var n=new t.ObjectAssertion(e,r);return n.object()?(n.string("type"),n.errors):n.errors}),n.string("value"),n.errors):n.errors}}(_e)),_e);function c(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function l(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function s(e){return function(e){if(Array.isArray(e))return c(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return c(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return c(e,t)}(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.")}()}var d,f=(0,i.assert)(s(Object.values(r.INLINES)).concat(["text"]).sort()),E=(0,i.assert)([t.BLOCKS.LIST_ITEM]),p=(0,i.assertLink)("Entry",i.VOID_CONTENT),y=(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.PARAGRAPH],min:1}},function(e,t){var r=new o.ObjectAssertion(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors}),m=(l(d={},t.BLOCKS.DOCUMENT,(0,i.assert)(n.TOP_LEVEL_BLOCKS)),l(d,t.BLOCKS.PARAGRAPH,f),l(d,t.BLOCKS.HEADING_1,f),l(d,t.BLOCKS.HEADING_2,f),l(d,t.BLOCKS.HEADING_3,f),l(d,t.BLOCKS.HEADING_4,f),l(d,t.BLOCKS.HEADING_5,f),l(d,t.BLOCKS.HEADING_6,f),l(d,t.BLOCKS.QUOTE,(0,i.assert)(n.CONTAINERS[t.BLOCKS.QUOTE])),l(d,t.BLOCKS.EMBEDDED_ENTRY,p),l(d,t.BLOCKS.EMBEDDED_ASSET,(0,i.assertLink)("Asset",i.VOID_CONTENT)),l(d,t.BLOCKS.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),l(d,t.BLOCKS.HR,(0,i.assert)(i.VOID_CONTENT)),l(d,t.BLOCKS.OL_LIST,E),l(d,t.BLOCKS.UL_LIST,E),l(d,t.BLOCKS.LIST_ITEM,(0,i.assert)(s(n.LIST_ITEM_BLOCKS).sort())),l(d,t.BLOCKS.TABLE,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_ROW],min:1}})),l(d,t.BLOCKS.TABLE_ROW,(0,i.assert)(function(){return{nodeTypes:[t.BLOCKS.TABLE_CELL,t.BLOCKS.TABLE_HEADER_CELL],min:1}})),l(d,t.BLOCKS.TABLE_CELL,y),l(d,t.BLOCKS.TABLE_HEADER_CELL,y),l(d,r.INLINES.HYPERLINK,new i.HyperLinkAssertion),l(d,r.INLINES.EMBEDDED_ENTRY,p),l(d,r.INLINES.EMBEDDED_RESOURCE,(0,i.assertLink)("Contentful:Entry",i.VOID_CONTENT)),l(d,r.INLINES.ENTRY_HYPERLINK,(0,i.assertLink)("Entry",["text"])),l(d,r.INLINES.ASSET_HYPERLINK,(0,i.assertLink)("Asset",["text"])),l(d,r.INLINES.RESOURCE_HYPERLINK,(0,i.assertLink)("Contentful:Entry",["text"])),d);function h(e,t){if("text"===e.nodeType)return(0,u.assertText)(e,t);var r=m[e.nodeType].assert(e,t);if(r.length>0)return r;var n=new o.ObjectAssertion(e,t);return n.each("content",function(e,t){return h(e,t)}),n.errors}var v=function(e){var r=new a.Path,n=new o.ObjectAssertion(e,r);return n.object()&&n.enum("nodeType",[t.BLOCKS.DOCUMENT]),n.errors.length>0?n.errors:h(e,r)}}(oe)),oe}function Se(){return Le||(Le=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),function(e,t){for(var r in t)Object.defineProperty(e,r,{enumerable:!0,get:Object.getOwnPropertyDescriptor(t,r).get})}(e,{get BLOCKS(){return t.BLOCKS},get EMPTY_DOCUMENT(){return o.EMPTY_DOCUMENT},get INLINES(){return r.INLINES},get MARKS(){return n.MARKS},get helpers(){return i},get validateRichTextDocument(){return a.validateRichTextDocument}});var t=H(),r=G(),n=Y();u(Q(),e),u(($||($=1,Object.defineProperty(V,"__esModule",{value:!0})),V),e),u((q||(q=1,Object.defineProperty(J,"__esModule",{value:!0})),J),e);var o=(F||(F=1,function(e){Object.defineProperty(e,"__esModule",{value:!0}),Object.defineProperty(e,"EMPTY_DOCUMENT",{enumerable:!0,get:function(){return r}});var t=H(),r={nodeType:t.BLOCKS.DOCUMENT,data:{},content:[{nodeType:t.BLOCKS.PARAGRAPH,data:{},content:[{nodeType:"text",value:"",marks:[],data:{}}]}]}}(X)),X),i=l(te()),a=Oe();function u(e,t){return Object.keys(e).forEach(function(r){"default"===r||Object.prototype.hasOwnProperty.call(t,r)||Object.defineProperty(t,r,{enumerable:!0,get:function(){return e[r]}})}),e}function c(e){if("function"!=typeof WeakMap)return null;var t=new WeakMap,r=new WeakMap;return(c=function(e){return e?r:t})(e)}function l(e,t){if(e&&e.__esModule)return e;if(null===e||"object"!=typeof e&&"function"!=typeof e)return{default:e};var r=c(t);if(r&&r.has(e))return r.get(e);var n={__proto__:null},o=Object.defineProperty&&Object.getOwnPropertyDescriptor;for(var i in e)if("default"!==i&&Object.prototype.hasOwnProperty.call(e,i)){var a=o?Object.getOwnPropertyDescriptor(e,i):null;a&&(a.get||a.set)?Object.defineProperty(n,i,a):n[i]=e[i]}return n.default=e,r&&r.set(e,n),n}}(w)),w}var Te=function(){if(Ae)return j;Ae=1;var e=u,t=Se();function r(t,r){return t.map((t,o)=>{return i=n(t,r),a=o,e.isValidElement(i)&&null===i.key?e.cloneElement(i,{key:a}):i;var i,a})}function n(n,o){const{renderNode:i,renderMark:a,renderText:u,preserveWhitespace:c}=o;if(t.helpers.isText(n)){let t=u?u(n.value):n.value;if(c&&!u){t=t.replace(/ {2,}/g,e=>" ".repeat(e.length));const r=t.split("\n"),n=[];r.forEach((t,o)=>{n.push(t),o!==r.length-1&&n.push(e.createElement("br",null))}),t=n}return n.marks.reduce((e,t)=>a[t.type]?a[t.type](e):e,t)}{const t=r(n.content,o);return n.nodeType&&i[n.nodeType]?i[n.nodeType](n,t):e.createElement(e.Fragment,null,t)}}const o={[t.BLOCKS.DOCUMENT]:(e,t)=>t,[t.BLOCKS.PARAGRAPH]:(t,r)=>e.createElement("p",null,r),[t.BLOCKS.HEADING_1]:(t,r)=>e.createElement("h1",null,r),[t.BLOCKS.HEADING_2]:(t,r)=>e.createElement("h2",null,r),[t.BLOCKS.HEADING_3]:(t,r)=>e.createElement("h3",null,r),[t.BLOCKS.HEADING_4]:(t,r)=>e.createElement("h4",null,r),[t.BLOCKS.HEADING_5]:(t,r)=>e.createElement("h5",null,r),[t.BLOCKS.HEADING_6]:(t,r)=>e.createElement("h6",null,r),[t.BLOCKS.EMBEDDED_ENTRY]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.EMBEDDED_RESOURCE]:(t,r)=>e.createElement("div",null,r),[t.BLOCKS.UL_LIST]:(t,r)=>e.createElement("ul",null,r),[t.BLOCKS.OL_LIST]:(t,r)=>e.createElement("ol",null,r),[t.BLOCKS.LIST_ITEM]:(t,r)=>e.createElement("li",null,r),[t.BLOCKS.QUOTE]:(t,r)=>e.createElement("blockquote",null,r),[t.BLOCKS.HR]:()=>e.createElement("hr",null),[t.BLOCKS.TABLE]:(t,r)=>e.createElement("table",null,e.createElement("tbody",null,r)),[t.BLOCKS.TABLE_ROW]:(t,r)=>e.createElement("tr",null,r),[t.BLOCKS.TABLE_HEADER_CELL]:(t,r)=>e.createElement("th",null,r),[t.BLOCKS.TABLE_CELL]:(t,r)=>e.createElement("td",null,r),[t.INLINES.ASSET_HYPERLINK]:e=>a(t.INLINES.ASSET_HYPERLINK,e),[t.INLINES.ENTRY_HYPERLINK]:e=>a(t.INLINES.ENTRY_HYPERLINK,e),[t.INLINES.RESOURCE_HYPERLINK]:e=>c(t.INLINES.RESOURCE_HYPERLINK,e),[t.INLINES.EMBEDDED_ENTRY]:e=>a(t.INLINES.EMBEDDED_ENTRY,e),[t.INLINES.EMBEDDED_RESOURCE]:(e,r)=>c(t.INLINES.EMBEDDED_RESOURCE,e),[t.INLINES.HYPERLINK]:(t,r)=>e.createElement("a",{href:t.data.uri},r)},i={[t.MARKS.BOLD]:t=>e.createElement("b",null,t),[t.MARKS.ITALIC]:t=>e.createElement("i",null,t),[t.MARKS.UNDERLINE]:t=>e.createElement("u",null,t),[t.MARKS.CODE]:t=>e.createElement("code",null,t),[t.MARKS.SUPERSCRIPT]:t=>e.createElement("sup",null,t),[t.MARKS.SUBSCRIPT]:t=>e.createElement("sub",null,t),[t.MARKS.STRIKETHROUGH]:t=>e.createElement("s",null,t)};function a(t,r){return e.createElement("span",{key:r.data.target.sys.id},"type: ",r.nodeType," id: ",r.data.target.sys.id)}function c(t,r){return e.createElement("span",{key:r.data.target.sys.urn},"type: ",r.nodeType," urn: ",r.data.target.sys.urn)}return j.documentToReactComponents=function(e,r={}){if(!e)return null;let a=e;return r.stripEmptyTrailingParagraph&&(a=t.helpers.stripEmptyTrailingParagraphFromDocument(e)),n(a,{renderNode:{...o,...r.renderNode},renderMark:{...i,...r.renderMark},renderText:r.renderText,preserveWhitespace:r.preserveWhitespace})},j}(),ge=function(e){return e.DOCUMENT="document",e.PARAGRAPH="paragraph",e.HEADING_1="heading-1",e.HEADING_2="heading-2",e.HEADING_3="heading-3",e.HEADING_4="heading-4",e.HEADING_5="heading-5",e.HEADING_6="heading-6",e.OL_LIST="ordered-list",e.UL_LIST="unordered-list",e.LIST_ITEM="list-item",e.HR="hr",e.QUOTE="blockquote",e.EMBEDDED_ENTRY="embedded-entry-block",e.EMBEDDED_ASSET="embedded-asset-block",e.EMBEDDED_RESOURCE="embedded-resource-block",e.TABLE="table",e.TABLE_ROW="table-row",e.TABLE_CELL="table-cell",e.TABLE_HEADER_CELL="table-header-cell",e}({}),De=function(e){return e.ASSET_HYPERLINK="asset-hyperlink",e.EMBEDDED_ENTRY="embedded-entry-inline",e.EMBEDDED_RESOURCE="embedded-resource-inline",e.ENTRY_HYPERLINK="entry-hyperlink",e.HYPERLINK="hyperlink",e.RESOURCE_HYPERLINK="resource-hyperlink",e}({}),Ie=function(e){return e.BOLD="bold",e.ITALIC="italic",e.UNDERLINE="underline",e.CODE="code",e.SUPERSCRIPT="superscript",e.SUBSCRIPT="subscript",e.STRIKETHROUGH="strikethrough",e}({});function Ne(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function Re(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}var Ce,Be=[ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE,ge.TABLE],Pe=[ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE];ge.TABLE,ge.TABLE_ROW,ge.TABLE_CELL,ge.TABLE_HEADER_CELL,ge.HR,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,ge.EMBEDDED_RESOURCE;var je,we=(Re(Ce={},ge.OL_LIST,[ge.LIST_ITEM]),Re(Ce,ge.UL_LIST,[ge.LIST_ITEM]),Re(Ce,ge.LIST_ITEM,Pe),Re(Ce,ge.QUOTE,[ge.PARAGRAPH]),Re(Ce,ge.TABLE,[ge.TABLE_ROW]),Re(Ce,ge.TABLE_ROW,[ge.TABLE_CELL,ge.TABLE_HEADER_CELL]),Re(Ce,ge.TABLE_CELL,[ge.PARAGRAPH,ge.UL_LIST,ge.OL_LIST]),Re(Ce,ge.TABLE_HEADER_CELL,[ge.PARAGRAPH]),Ce),Ke=[ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6];[ge.PARAGRAPH].concat(function(e){if(Array.isArray(e))return Ne(e)}(je=Ke)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(je)||function(e,t){if(e){if("string"==typeof e)return Ne(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(r):"Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r)?Ne(e,t):void 0}}(je)||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.")}()),ge.DOCUMENT,ge.PARAGRAPH,ge.HEADING_1,ge.HEADING_2,ge.HEADING_3,ge.HEADING_4,ge.HEADING_5,ge.HEADING_6,ge.OL_LIST,ge.UL_LIST,ge.LIST_ITEM,ge.HR,ge.QUOTE,ge.EMBEDDED_ENTRY,ge.EMBEDDED_ASSET,De.HYPERLINK,De.ENTRY_HYPERLINK,De.ASSET_HYPERLINK,De.EMBEDDED_ENTRY,ge.DOCUMENT,ge.PARAGRAPH;var He=B(ae());function Me(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function ke(e){return function(e){if(Array.isArray(e))return Me(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Me(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Me(e,t)}(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.")}()}var Ge=function(e){var t=e.path,r=e.property,n=e.typeName,o=e.value;return{details:'The type of "'.concat(r,'" is incorrect, expected type: ').concat(n),name:"type",path:t.toArray(),type:n,value:o}};function Ue(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function xe(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Ye(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function We(e){return function(e){if(Array.isArray(e))return Ue(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Ue(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Ue(e,t)}(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.")}()}var ze=function(){function e(t,r){var n=this,o=this;!function(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}(this,e),Ye(this,"obj",void 0),Ye(this,"path",void 0),Ye(this,"_errors",void 0),Ye(this,"catch",void 0),Ye(this,"exists",void 0),Ye(this,"object",void 0),Ye(this,"string",void 0),Ye(this,"number",void 0),Ye(this,"array",void 0),Ye(this,"enum",void 0),Ye(this,"empty",void 0),Ye(this,"minLength",void 0),Ye(this,"noAdditionalProperties",void 0),Ye(this,"each",void 0),this.obj=t,this.path=r,this._errors=[],this.catch=function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];var n;(n=o._errors).push.apply(n,We(t))},this.exists=function(e){return e in n.obj||(n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is required here'),name:"required",path:r.toArray()}}({property:e,path:n.path.of(e)})),!1)},this.object=function(e){var t=e?n.obj[e]:n.obj;if(e&&!n.exists(e))return!1;if(He(t))return!0;var r,o=e?n.path.of(e):n.path,i=null!==(r=null!=e?e:n.path.last())&&void 0!==r?r:"value";return n.catch(Ge({typeName:"Object",property:i,path:o,value:t})),!1},this.string=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&("string"==typeof t||(n.catch(Ge({typeName:"String",property:e,path:n.path.of(e),value:t})),!1))},this.number=function(e,t){var r=n.obj[e];return!(!t||e in n.obj)||!!n.exists(e)&&("number"==typeof r&&!Number.isNaN(r)||(n.catch(Ge({typeName:"Number",property:e,path:n.path.of(e),value:r})),!1))},this.array=function(e){var t=n.obj[e];return!(e&&!n.exists(e))&&(!!Array.isArray(t)||(n.catch(Ge({typeName:"Array",property:e,path:n.path.of(e),value:t})),!1))},this.enum=function(e,t){var r=n.obj[e];return!("string"!=typeof r||!t.includes(r))||(n.catch(function(e){var t=e.expected,r=e.value,n=e.path;return{details:"Value must be one of expected values",name:"in",expected:ke(t).sort(),path:n.toArray(),value:r}}({expected:t,value:r,path:n.path.of(e)})),!1)},this.empty=function(e){if(!n.array(e))return!1;var t=n.obj[e];return 0===t.length||(n.catch(function(e){var t=e.max,r=e.value;return{name:"size",max:t,path:e.path.toArray(),details:"Size must be at most ".concat(t),value:r}}({max:0,value:t,path:n.path.of(e)})),!1)},this.minLength=function(e,t){if(!n.array(e))return!1;var r=n.obj[e];return r.length>=t||(n.catch(function(e){var t=e.min,r=e.value;return{name:"size",min:t,path:e.path.toArray(),details:"Size must be at least ".concat(t),value:r}}({min:t,value:r,path:n.path.of(e)})),!1)},this.noAdditionalProperties=function(e){var t=Object.keys(n.obj).sort().filter(function(t){return!e.includes(t)});return t.forEach(function(e){return n.catch(function(e){var t=e.property,r=e.path;return{details:'The property "'.concat(t,'" is not expected'),name:"unexpected",path:r.toArray()}}({property:e,path:n.path.of(e)}))}),0===t.length},this.each=function(e,t){if(n.array(e)){var r=n.obj[e],o=!1;r.forEach(function(r,i){if(!o){var a=t(r,n.path.of(e).of(i));a.length>0&&(o=!0),n.catch.apply(n,We(a))}})}}}return xe(e,[{key:"errors",get:function(){var e=this,t=function(e){return JSON.stringify({details:e.details,path:e.path})};return this._errors.filter(function(r,n){return e._errors.findIndex(function(e){return t(r)===t(e)})===n})}}]),e}();function Qe(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function $e(e){if(void 0===e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return e}function Ve(e,t,r){return t=Xe(t),function(e,t){if(t&&("object"==(r=t,r&&"undefined"!=typeof Symbol&&r.constructor===Symbol?"symbol":typeof r)||"function"==typeof t))return t;var r;return $e(e)}(e,rt()?Reflect.construct(t,r||[],Xe(e).constructor):t.apply(e,r))}function qe(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function Je(e,t,r){return t&&function(e,t){for(var r=0;r<t.length;r++){var n=t[r];n.enumerable=n.enumerable||!1,n.configurable=!0,"value"in n&&(n.writable=!0),Object.defineProperty(e,n.key,n)}}(e.prototype,t),e}function Fe(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function Xe(e){return Xe=Object.setPrototypeOf?Object.getPrototypeOf:function(e){return e.__proto__||Object.getPrototypeOf(e)},Xe(e)}function Ze(e,t){if("function"!=typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function");e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,writable:!0,configurable:!0}}),t&&et(e,t)}function et(e,t){return et=Object.setPrototypeOf||function(e,t){return e.__proto__=t,e},et(e,t)}function tt(e){return function(e){if(Array.isArray(e))return Qe(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return Qe(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return Qe(e,t)}(e)||function(){throw new TypeError("Invalid attempt to spread non-iterable instance.\\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method.")}()}function rt(){try{var e=!Boolean.prototype.valueOf.call(Reflect.construct(Boolean,[],function(){}))}catch(e){}return(rt=function(){return!!e})()}var nt=[],ot=function(){function e(t,r){qe(this,e),Fe(this,"contentRule",void 0),Fe(this,"validateData",void 0),this.contentRule=t,this.validateData=r}return Je(e,[{key:"assert",value:function(e,t){var r=new ze(e,t);if(!r.object())return r.errors;r.noAdditionalProperties(["nodeType","data","content"]);var n=Array.isArray(this.contentRule)?{nodeTypes:this.contentRule}:this.contentRule(e,t),o=n.nodeTypes,i=n.min,a=void 0===i?0:i;if(0===o.length&&a>0)throw new Error("Invalid content rule. Cannot have enforce a 'min' of ".concat(a," with no nodeTypes"));if(r.minLength("content",a),0===o.length?r.empty("content"):r.each("content",function(e,t){var r=new ze(e,t);return r.object()?(r.enum("nodeType",o),r.errors):r.errors}),r.object("data")){var u,c,l,s=null!==(l=null===(c=this.validateData)||void 0===c?void 0:c.call(this,e.data,t.of("data")))&&void 0!==l?l:[];(u=r).catch.apply(u,tt(s))}return r.errors}}]),e}(),it=function(e){function t(e,r){var n;return qe(this,t),n=Ve(this,t,[r,function(e,t){return $e(n).assertLink(e,t)}]),Fe(n,"linkType",void 0),Fe(n,"type",void 0),Fe(n,"assertLink",void 0),n.linkType=e,n.assertLink=function(e,t){var r=new ze(e,t);if(r.object("target")){var o,i=new ze(e.target.sys,t.of("target").of("sys"));i.object()&&(i.enum("type",[n.type]),i.enum("linkType",[n.linkType]),"Link"===n.type?(i.string("id"),i.noAdditionalProperties(["type","linkType","id"])):"ResourceLink"===n.type&&(i.string("urn"),i.noAdditionalProperties(["type","linkType","urn"]))),(o=r).catch.apply(o,tt(i.errors))}return r.noAdditionalProperties(["target"]),r.errors},n.type=n.linkType.startsWith("Contentful:")?"ResourceLink":"Link",n}return Ze(t,e),t}(ot),at=function(e){function t(){var e;return qe(this,t),e=Ve(this,t,[["text"],function(t,r){return $e(e).assertLink(t,r)}]),Fe(e,"assertLink",function(e,t){var r=new ze(e,t);return r.string("uri"),r.noAdditionalProperties(["uri"]),r.errors}),e}return Ze(t,e),t}(ot),ut=function(e,t){return new ot(e,t)},ct=function(e,t){return new it(e,t)};function lt(e,t){(null==t||t>e.length)&&(t=e.length);for(var r=0,n=new Array(t);r<t;r++)n[r]=e[r];return n}function st(e,t,r){return t in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function dt(e){return function(e){if(Array.isArray(e))return lt(e)}(e)||function(e){if("undefined"!=typeof Symbol&&null!=e[Symbol.iterator]||null!=e["@@iterator"])return Array.from(e)}(e)||function(e,t){if(!e)return;if("string"==typeof e)return lt(e,t);var r=Object.prototype.toString.call(e).slice(8,-1);"Object"===r&&e.constructor&&(r=e.constructor.name);if("Map"===r||"Set"===r)return Array.from(r);if("Arguments"===r||/^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(r))return lt(e,t)}(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.")}()}var ft,Et=ut(dt(Object.values(De)).concat(["text"]).sort()),pt=ut([ge.LIST_ITEM]),yt=ct("Entry",nt),mt=ut(function(){return{nodeTypes:[ge.PARAGRAPH],min:1}},function(e,t){var r=new ze(e,t);return r.noAdditionalProperties(["colspan","rowspan"]),r.number("colspan",!0),r.number("rowspan",!0),r.errors});st(ft={},ge.DOCUMENT,ut(Be)),st(ft,ge.PARAGRAPH,Et),st(ft,ge.HEADING_1,Et),st(ft,ge.HEADING_2,Et),st(ft,ge.HEADING_3,Et),st(ft,ge.HEADING_4,Et),st(ft,ge.HEADING_5,Et),st(ft,ge.HEADING_6,Et),st(ft,ge.QUOTE,ut(we[ge.QUOTE])),st(ft,ge.EMBEDDED_ENTRY,yt),st(ft,ge.EMBEDDED_ASSET,ct("Asset",nt)),st(ft,ge.EMBEDDED_RESOURCE,ct("Contentful:Entry",nt)),st(ft,ge.HR,ut(nt)),st(ft,ge.OL_LIST,pt),st(ft,ge.UL_LIST,pt),st(ft,ge.LIST_ITEM,ut(dt(Pe).sort())),st(ft,ge.TABLE,ut(function(){return{nodeTypes:[ge.TABLE_ROW],min:1}})),st(ft,ge.TABLE_ROW,ut(function(){return{nodeTypes:[ge.TABLE_CELL,ge.TABLE_HEADER_CELL],min:1}})),st(ft,ge.TABLE_CELL,mt),st(ft,ge.TABLE_HEADER_CELL,mt),st(ft,De.HYPERLINK,new at),st(ft,De.EMBEDDED_ENTRY,yt),st(ft,De.EMBEDDED_RESOURCE,ct("Contentful:Entry",nt)),st(ft,De.ENTRY_HYPERLINK,ct("Entry",["text"])),st(ft,De.ASSET_HYPERLINK,ct("Asset",["text"])),st(ft,De.RESOURCE_HYPERLINK,ct("Contentful:Entry",["text"]));const ht={renderMark:{[Ie.BOLD]:e=>i("strong",{className:"label3",children:e}),[Ie.ITALIC]:e=>i("em",{children:e}),[Ie.UNDERLINE]:e=>i("u",{children:e}),[Ie.CODE]:e=>i("code",{children:e})},renderNode:{[ge.PARAGRAPH]:(e,t)=>i("div",{className:"body3 mb-4",children:t}),[ge.HEADING_1]:(e,t)=>i(E,{as:"h1",className:"heading2 md:heading1",children:t}),[ge.HEADING_2]:(e,t)=>i(E,{as:"h2",className:"heading6 md:heading5",children:t}),[ge.HEADING_3]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[ge.HEADING_4]:(e,t)=>i(E,{as:"h3",className:"headingClass",children:t}),[ge.HEADING_5]:(e,t)=>i(E,{as:"h3",className:"heading6 md:heading5",children:t}),[ge.HEADING_6]:(e,t)=>i(E,{as:"h3",className:"heading6",children:t}),[ge.QUOTE]:(e,t)=>i("blockquote",{children:t}),[ge.UL_LIST]:(e,t)=>i("ul",{children:t}),[ge.OL_LIST]:(e,t)=>i("ol",{children:t}),[ge.LIST_ITEM]:(e,t)=>i("li",{children:t}),[De.HYPERLINK]:(e,t)=>{var r;const n=null===(r=null==e?void 0:e.data)||void 0===r?void 0:r.uri,o=/^https?:\/\//.test(n);return i("a",{href:n,target:o?"_blank":void 0,rel:o?"noopener noreferrer":void 0,children:t})},[ge.EMBEDDED_ASSET]:e=>{var t,r;const n=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target,o=null==n?void 0:n.fields,a=(null==n?void 0:n.url)||(null===(r=null==o?void 0:o.file)||void 0===r?void 0:r.url),u=(null==o?void 0:o.title)||(null==o?void 0:o.description)||"Embedded asset";if(!a)return null;const c=a.startsWith("//")?`https:${a}`:a;return i("img",{src:c,alt:u,style:{maxWidth:"100%"}})},[ge.EMBEDDED_ENTRY]:e=>{var t,r,n,a;const u=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"callout"===(null===(a=null===(n=null===(r=null==u?void 0:u.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("aside",{style:{border:"1px solid #ddd",padding:12,borderRadius:8},children:[i("strong",{children:u.fields.title}),i("div",{children:u.fields.body})]}):null},[De.EMBEDDED_ENTRY]:e=>{var t,r,n,a,u,c;const l=null===(t=null==e?void 0:e.data)||void 0===t?void 0:t.target;return"componentCheckList"===(null===(a=null===(n=null===(r=null==l?void 0:l.sys)||void 0===r?void 0:r.contentType)||void 0===n?void 0:n.sys)||void 0===a?void 0:a.id)?o("span",{style:{display:"inline-flex",alignItems:"center",gap:"4px",padding:"2px 6px",backgroundColor:"#f0fdf4",border:"1px solid #bbf7d0",borderRadius:"4px",fontSize:"0.9em"},children:["✅ ",l.fields.title]}):i("span",{children:null!==(c=null===(u=null==l?void 0:l.fields)||void 0===u?void 0:u.title)&&void 0!==c?c:""})}}};function vt(e,t,r="body1",n="body1 font-bold",o){if(!e||!Array.isArray(e.content))return null;const a={...ht,...o,renderNode:{...ht.renderNode,...null==o?void 0:o.renderNode,[ge.PARAGRAPH]:(e,t)=>i("div",{className:r,children:t}),[De.HYPERLINK]:(e,r)=>{var o;const a=null===(o=null==e?void 0:e.data)||void 0===o?void 0:o.uri,u=/^https?:\/\//.test(a),c=null!=t?t:u;return i(d,{href:a,target:c?"_blank":"_self",rel:c?"noopener noreferrer":void 0,variant:"default",className:n,children:r})}}};return Te.documentToReactComponents(e,a)}function bt(e,t){return c(()=>{if(!e||!Array.isArray(e.content))return null;const r={...ht,renderMark:{...ht.renderMark,...null==t?void 0:t.renderMark},renderNode:{...ht.renderNode,...null==t?void 0:t.renderNode}};return Te.documentToReactComponents(e,r)},[e,t])}function Lt(e,t){if(!e||!Array.isArray(e.content))return null;const r={...ht,renderMark:{...ht.renderMark,[Ie.BOLD]:e=>i("strong",{className:"label2",children:e})},renderNode:{...ht.renderNode,[ge.PARAGRAPH]:(e,t)=>i("div",{className:"body2",children:t}),[ge.TABLE]:(e,t)=>{var r,n;return i("div",{className:"comparison-table-wrapper my-5 w-full overflow-x-auto border-none md:overflow-hidden",children:i("table",{className:"responsive-table w-full table-fixed border-collapse "+((null===(n=null===(r=e.content[0])||void 0===r?void 0:r.content)||void 0===n?void 0:n.length)>2?"min-w-[100.1%]":"min-w-full"),children:i("tbody",{children:t})})})},[ge.TABLE_ROW]:(e,t)=>i("tr",{className:"border-b border-gray-200 last:border-0",children:t}),[ge.TABLE_HEADER_CELL]:(e,t)=>{var r;const n=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2;return i("th",{className:`label4 break-words py-4 text-center ${n?"sticky left-0 z-20 w-[50vw] min-w-[50vw] first:z-30 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:t})},[ge.TABLE_CELL]:(e,t)=>{var r,n,u,c;const l=(null===(r=e.parent)||void 0===r?void 0:r.content.length)>2,s=null===(c=null===(u=null===(n=e.content[0])||void 0===n?void 0:n.content[0])||void 0===u?void 0:u.value)||void 0===c?void 0:c.toLowerCase().trim();return i("td",{className:`rt-table-cell label-4 break-words bg-white py-2 text-center align-top first:text-left ${l?"w-[50vw] min-w-[50vw] first:sticky first:left-0 first:z-10 first:w-[50vw] first:min-w-[50vw] first:border-r":"w-1/4 first:w-1/2"} `,children:o(a,{children:[" ","yes"===s?i(f,{name:"check_circle",color:"#24A76A",fill:1}):"no"===s?i(f,{name:"cancel",color:"#CECECE",fill:1}):t]})})},[De.EMBEDDED_ENTRY]:e=>{var r,n,o,a;const u=e.data.target.sys.id,c=null===(n=null===(r=null==t?void 0:t.entries)||void 0===r?void 0:r.inline)||void 0===n?void 0:n.find(e=>e.sys.id===u);if(!c)return null;if("ComponentCheckList"===c.__typename){const e=(null===(a=null===(o=c.list)||void 0===o?void 0:o.items)||void 0===a?void 0:a.map(e=>{var t;return vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),!0,"body2")}))||[];return i(s,{items:e,listIconName:"disc",listItemClassName:"items-baseline body2"})}return i("span",{children:c.title||""})}}};return Te.documentToReactComponents(e,r)}const At={renderMark:{[Ie.BOLD]:e=>l("span",{className:"label1"},e)}};function _t(e,t,r,n){return c(()=>{var o,i;const a=null!==(i=null===(o=null==e?void 0:e.list)||void 0===o?void 0:o.items)&&void 0!==i?i:[];return t?a.map(e=>{var t,o;return null!==(o=vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:""}):a.map(e=>{var t,o,i,a,u;return{title:null!==(o=vt(C(null!==(t=null==e?void 0:e.checkListTitle)&&void 0!==t?t:""),void 0,n,void 0,r))&&void 0!==o?o:"",iconUrl:null!==(a=null===(i=null==e?void 0:e.icon)||void 0===i?void 0:i.url)&&void 0!==a?a:void 0,anchorId:null!==(u=null==e?void 0:e.anchorId)&&void 0!==u?u:void 0}})},[e,t,r,n])}export{S as UTM_PARAM_NAMES,N as buildPreservedQueryHref,g as combineExistingAndNewUTMs,y as cx,I as getCampaignProperties,A as getCookie,D as getOrganicTrafficUtmParameters,_ as getParsedCookie,v as getUTMs,T as getUtmParametersFromURL,At as label1BoldOptions,L as removeUTMs,vt as renderContentfulRichText,Lt as renderContentfulRichTextTable,O as setCookie,b as setUTMs,C as toDocument,bt as useContentfulRichText,_t as useProcessedChecklist};
2
2
  //# sourceMappingURL=index.esm.js.map