import{r as yc,g as iu}from"../index-BVKZFYvx.js";import{r as su}from"../index-BCLb6Y04.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const s of document.querySelectorAll('link[rel="modulepreload"]'))i(s);new MutationObserver(s=>{for(const o of s)if(o.type==="childList")for(const a of o.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&i(a)}).observe(document,{childList:!0,subtree:!0});function n(s){const o={};return s.integrity&&(o.integrity=s.integrity),s.referrerPolicy&&(o.referrerPolicy=s.referrerPolicy),s.crossOrigin==="use-credentials"?o.credentials="include":s.crossOrigin==="anonymous"?o.credentials="omit":o.credentials="same-origin",o}function i(s){if(s.ep)return;s.ep=!0;const o=n(s);fetch(s.href,o)}})();const xo="[0-9A-Za-z-]+",ws=`(?:\\+(${xo}(?:\\.${xo})*))`,Cn="0|[1-9]\\d*",Cr="[0-9]+",wc="\\d*[a-zA-Z-][a-zA-Z0-9-]*",vo=`(?:${Cr}|${wc})`,ou=`(?:-?(${vo}(?:\\.${vo})*))`,bo=`(?:${Cn}|${wc})`,Cc=`(?:-(${bo}(?:\\.${bo})*))`,xi=`${Cn}|x|X|\\*`,Ut=`[v=\\s]*(${xi})(?:\\.(${xi})(?:\\.(${xi})(?:${Cc})?${ws}?)?)?`,au=`^\\s*(${Ut})\\s+-\\s+(${Ut})\\s*$`,cu=`(${Cr})\\.(${Cr})\\.(${Cr})`,lu=`[v=\\s]*${cu}${ou}?${ws}?`,Cs="((?:<|>)?=?)",du=`(\\s*)${Cs}\\s*(${lu}|${Ut})`,jc="(?:~>?)",uu=`(\\s*)${jc}\\s+`,Sc="(?:\\^)",fu=`(\\s*)${Sc}\\s+`,pu="(<|>)?=?\\s*\\*",hu=`^${Sc}${Ut}$`,mu=`(${Cn})\\.(${Cn})\\.(${Cn})`,gu=`v?${mu}${Cc}?${ws}?`,xu=`^${jc}${Ut}$`,vu=`^${Cs}\\s*${Ut}$`,bu=`^${Cs}\\s*(${gu})$|^$`,yu="^\\s*>=\\s*0.0.0\\s*$";function Ge(e){return new RegExp(e)}function Ce(e){return!e||e.toLowerCase()==="x"||e==="*"}function kc(...e){return t=>e.reduce((n,i)=>i(n),t)}function yo(e){return e.match(Ge(bu))}function wo(e,t,n,i){const s=`${e}.${t}.${n}`;return i?`${s}-${i}`:s}function wu(e){return e.replace(Ge(au),(t,n,i,s,o,a,l,c,d,u,p,g)=>(Ce(i)?n="":Ce(s)?n=`>=${i}.0.0`:Ce(o)?n=`>=${i}.${s}.0`:n=`>=${n}`,Ce(d)?c="":Ce(u)?c=`<${+d+1}.0.0-0`:Ce(p)?c=`<${d}.${+u+1}.0-0`:g?c=`<=${d}.${u}.${p}-${g}`:c=`<=${c}`,`${n} ${c}`.trim()))}function Cu(e){return e.replace(Ge(du),"$1$2$3")}function ju(e){return e.replace(Ge(uu),"$1~")}function Su(e){return e.replace(Ge(fu),"$1^")}function ku(e){return e.trim().split(/\s+/).map(t=>t.replace(Ge(hu),(n,i,s,o,a)=>Ce(i)?"":Ce(s)?`>=${i}.0.0 <${+i+1}.0.0-0`:Ce(o)?i==="0"?`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:`>=${i}.${s}.0 <${+i+1}.0.0-0`:a?i==="0"?s==="0"?`>=${i}.${s}.${o}-${a} <${i}.${s}.${+o+1}-0`:`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${o}-${a} <${+i+1}.0.0-0`:i==="0"?s==="0"?`>=${i}.${s}.${o} <${i}.${s}.${+o+1}-0`:`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${o} <${+i+1}.0.0-0`)).join(" ")}function Iu(e){return e.trim().split(/\s+/).map(t=>t.replace(Ge(xu),(n,i,s,o,a)=>Ce(i)?"":Ce(s)?`>=${i}.0.0 <${+i+1}.0.0-0`:Ce(o)?`>=${i}.${s}.0 <${i}.${+s+1}.0-0`:a?`>=${i}.${s}.${o}-${a} <${i}.${+s+1}.0-0`:`>=${i}.${s}.${o} <${i}.${+s+1}.0-0`)).join(" ")}function Eu(e){return e.split(/\s+/).map(t=>t.trim().replace(Ge(vu),(n,i,s,o,a,l)=>{const c=Ce(s),d=c||Ce(o),u=d||Ce(a);return i==="="&&u&&(i=""),l="",c?i===">"||i==="<"?"<0.0.0-0":"*":i&&u?(d&&(o=0),a=0,i===">"?(i=">=",d?(s=+s+1,o=0,a=0):(o=+o+1,a=0)):i==="<="&&(i="<",d?s=+s+1:o=+o+1),i==="<"&&(l="-0"),`${i+s}.${o}.${a}${l}`):d?`>=${s}.0.0${l} <${+s+1}.0.0-0`:u?`>=${s}.${o}.0${l} <${s}.${+o+1}.0-0`:n})).join(" ")}function Pu(e){return e.trim().replace(Ge(pu),"")}function Mu(e){return e.trim().replace(Ge(yu),"")}function jr(e,t){return e=+e||e,t=+t||t,e>t?1:e===t?0:-1}function Ou(e,t){const{preRelease:n}=e,{preRelease:i}=t;if(n===void 0&&i)return 1;if(n&&i===void 0)return-1;if(n===void 0&&i===void 0)return 0;for(let s=0,o=n.length;s<=o;s++){const a=n[s],l=i[s];if(a!==l)return a===void 0&&l===void 0?0:a?l?jr(a,l):-1:1}return 0}function or(e,t){return jr(e.major,t.major)||jr(e.minor,t.minor)||jr(e.patch,t.patch)||Ou(e,t)}function vi(e,t){return e.version===t.version}function Ru(e,t){switch(e.operator){case"":case"=":return vi(e,t);case">":return or(e,t)<0;case">=":return vi(e,t)||or(e,t)<0;case"<":return or(e,t)>0;case"<=":return vi(e,t)||or(e,t)>0;case void 0:return!0;default:return!1}}function Lu(e){return kc(ku,Iu,Eu,Pu)(e)}function _u(e){return kc(wu,Cu,ju,Su)(e.trim()).split(/\s+/).join(" ")}function Tu(e,t){if(!e)return!1;const s=_u(t).split(" ").map(g=>Lu(g)).join(" ").split(/\s+/).map(g=>Mu(g)),o=yo(e);if(!o)return!1;const[,a,,l,c,d,u]=o,p={version:wo(l,c,d,u),major:l,minor:c,patch:d,preRelease:u?.split(".")};for(const g of s){const f=yo(g);if(!f)return!1;const[,h,,x,m,v,S]=f,b={operator:h,version:wo(x,m,v,S),major:x,minor:m,patch:v,preRelease:S?.split(".")};if(!Ru(b,p))return!1}return!0}const Co={},Zi={react:{get:()=>()=>jo(new URL("../__federation_shared_react-BvdwsIxw.js",import.meta.url).href),import:!0},"react-dom":{get:()=>()=>jo(new URL("../__federation_shared_react-dom-DFO6XSYx.js",import.meta.url).href),import:!0}},Mr=Object.create(null);async function Q(e,t="default"){return Mr[e]?new Promise(n=>n(Mr[e])):await Nu(e,t)||Au(e)}async function jo(e){return Co[e]??=import(e),Co[e]}async function Nu(e,t){let n=null;if(globalThis?.__federation_shared__?.[t]?.[e]){const i=globalThis.__federation_shared__[t][e],s=Zi[e]?.requiredVersion;if(!!s){const a=Object.keys(i).find(l=>Tu(l,s));a?n=await(await i[a].get())():console.log(`provider support ${e}(${a}) is not satisfied requiredVersion(\${moduleMap[name].requiredVersion})`)}else{const a=Object.keys(i)[0];n=await(await i[a].get())()}}if(n)return Ic(n,e)}async function Au(e){if(Zi[e]?.import){let t=await(await Zi[e].get())();return Ic(t,e)}else console.error("consumer config import=false,so cant use callback shared module")}function Ic(e,t){return typeof e.default=="function"?(Object.keys(e).forEach(n=>{n!=="default"&&(e.default[n]=e[n])}),Mr[t]=e.default,e.default):(e.default&&(e=Object.assign({},e.default,e)),Mr[t]=e,e)}var bi={exports:{}},dn={};/**
 * @license React
 * react-jsx-runtime.production.min.js
 *
 * Copyright (c) Facebook, Inc. and its affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var So;function Du(){if(So)return dn;So=1;var e=yc(),t=Symbol.for("react.element"),n=Symbol.for("react.fragment"),i=Object.prototype.hasOwnProperty,s=e.__SECRET_INTERNALS_DO_NOT_USE_OR_YOU_WILL_BE_FIRED.ReactCurrentOwner,o={key:!0,ref:!0,__self:!0,__source:!0};function a(l,c,d){var u,p={},g=null,f=null;d!==void 0&&(g=""+d),c.key!==void 0&&(g=""+c.key),c.ref!==void 0&&(f=c.ref);for(u in c)i.call(c,u)&&!o.hasOwnProperty(u)&&(p[u]=c[u]);if(l&&l.defaultProps)for(u in c=l.defaultProps,c)p[u]===void 0&&(p[u]=c[u]);return{$$typeof:t,type:l,key:g,ref:f,props:p,_owner:s.current}}return dn.Fragment=n,dn.jsx=a,dn.jsxs=a,dn}var ko;function Hu(){return ko||(ko=1,bi.exports=Du()),bi.exports}var r=Hu(),ar={},Io;function $u(){if(Io)return ar;Io=1;var e=su();return ar.createRoot=e.createRoot,ar.hydrateRoot=e.hydrateRoot,ar}var Vu=$u();const R=(...e)=>e.filter(Boolean).join(" "),zu={xl:"font-sans text-headline-alt-xl",lg:"font-sans text-headline-alt-lg",md:"font-sans text-headline-alt-md",xs:"font-sans text-headline-alt-xs"},Fu={sm:"font-sans text-title-loose-sm uppercase",xs:"font-sans text-title-loose-xs uppercase"},qu={md:"font-sans text-title-tight-md",sm:"font-sans text-title-tight-sm",xs:"font-sans text-title-tight-xs"},Uu={xl:"font-sans text-subtitle-xl",sm:"font-sans text-subtitle-sm"},Qu={md:{loose:"font-sans text-body-md-loose",tight:"font-sans text-body-md-tight"},sm:"font-sans text-body-sm",xs:"font-sans text-body-xs"},Zu={sm:"font-mono text-body-alt-sm"},Bu="font-sans text-formlabel",Wu="font-sans text-formmsg",Gu={sm:"font-sans text-formvalue-sm",reg:"font-sans text-formvalue-reg"},Ec={md:"font-sans text-links-md",sm:"font-sans text-links-sm"},Pc="font-sans text-buttons uppercase",Ku={sm:"font-sans text-pills-sm uppercase",lg:"font-sans text-pills-lg uppercase"},F={headlineAlt:zu,titleLoose:Fu,titleTight:qu,subtitle:Uu,body:Qu,bodyAlt:Zu,formlabel:Bu,formmsg:Wu,formvalue:Gu,links:Ec,pills:Ku};function st({reverse:e=!1,secondary:t=!1,tertiary:n=!1,disabled:i=!1,block:s=!1,type:o="button",onClick:a,children:l}){const c=!t&&!n,d=t&&!n,u=n;return r.jsx("button",{type:o,onClick:a,disabled:i,className:R("group/button",s?"flex w-full":"inline-flex","justify-center items-center","rounded-xl","focus:outline",u?"p-xs":"px-lg py-[14px]",u?Ec.md:Pc,c&&!e&&"text-white",c&&e&&"text-blue",c&&!e&&!i&&"bg-surface-blue hover:bg-interactions-primary-hover focus:bg-interactions-primary-hover active:bg-interactions-primary-pressed",c&&i&&"bg-interactions-disabled",c&&!e&&"focus:outline-offset-05",c&&e&&!i&&"bg-surface-white hover:bg-interactions-secondary-hover focus:bg-interactions-secondary-hover active:bg-interactions-secondary-pressed",c&&e&&"focus:outline-reverse focus:outline-offset-05",d&&"border-md",d&&!e&&!i&&"text-blue border-blue",d&&e&&!i&&"text-white border-white",d&&i&&"border-disabled text-disabled",(d||u)&&!e&&!i&&"hover:bg-interactions-secondary-hover focus:bg-interactions-secondary-hover active:bg-interactions-secondary-pressed",(d||u)&&!e&&"focus:outline-offset-05",(d||u)&&e&&!i&&"hover:bg-interactions-transparent-hover focus:bg-interactions-transparent-hover active:bg-interactions-transparent-pressed",(d||u)&&e&&"focus:outline-reverse focus:outline-offset-05",u&&"gap-2",u&&!e&&!i&&"text-blue",u&&e&&!i&&"text-white",u&&i&&"text-disabled"),children:l})}function Mc(e){return Number(e).toLocaleString("us-EN",{style:"currency",currency:"USD"})}const{useMemo:Yu}=await Q("react");function Qt(e){return Yu(()=>Mc(e),[e])}function he(){return r.jsx("div",{className:`
                bg-[linear-gradient(-45deg,transparent,var(--color-neutral-400),transparent)]
                bg-neutral-300
                bg-left-top
                bg-[length:200%_100%]
                animate-load
                bg-fixed
                w-full h-full
            `})}function Xu({price:e,unitPrice:t,loading:n}){const i=Qt(e),s=Qt(t);return n?r.jsx(Ju,{}):r.jsxs("div",{className:"inline-flex flex-wrap items-stretch rounded-md border-sm border-light",children:[r.jsxs("div",{className:"flex flex-col flex-grow items-center justify-center p-sm border-r-sm border-light rounded-l-nested-md bg-surface-light",children:[r.jsx("span",{className:"text-medium font-sans leading-5 text-xs uppercase tracking-[0.12px]",children:"From"}),r.jsx("span",{className:"text-dark font-sans font-semibold leading-7 text-lg",children:i})]}),r.jsx("div",{className:"p-sm flex flex-col flex-grow justify-center",children:r.jsxs("div",{children:[r.jsx("div",{className:R(F.titleTight.xs,"font-bold text-medium uppercase"),children:"Unit Price From"}),r.jsx("div",{className:R(F.titleLoose.xs,"text-dark"),children:s})]})})]})}function Ju(){return r.jsx("div",{className:"rounded-md overflow-hidden w-[235px] h-[74px]",children:r.jsx(he,{})})}function Eo({alt:e=!1,children:t,id:n}){return r.jsx("div",{className:R(e?"bg-surface-light":"bg-surface-white"),id:n,children:t})}function e1({multiplier:e=1}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[r.jsx("mask",{id:"mask",children:r.jsx("rect",{width:"16",height:"16",rx:"2",fill:"white"})}),r.jsx("rect",{width:"16",height:"16",rx:"2",fill:"#DEDEDE"}),r.jsx("rect",{width:`${16*e}`,height:"16",fill:"#D6AC7F",mask:"url(#mask)"}),r.jsx("path",{d:"M7.99992 10.7999L4.70872 12.5303L5.33672 8.8655L2.67432 6.2695L6.35432 5.7343L7.99992 2.3999L9.64552 5.7343L13.3255 6.2695L10.6631 8.8655L11.2911 12.5303L7.99992 10.7999Z",fill:"white"})]})}function t1({rating:e=0}){const n=Math.floor(e),i=Math.ceil(e),s=e%1;function o(a){return n>=a?1:i===a?s:0}return r.jsxs("div",{className:"flex gap-[3px]",children:[[...Array(5)].map((a,l)=>r.jsx(e1,{multiplier:o(l+1)},l)),r.jsx("div",{className:"rounded-sm border-sm p-xxs font-mono text-[12px] tracking-[.12px] h-[16px] leading-[8px] text-[#979797]",children:e})]})}const{forwardRef:n1}=await Q("react"),Oc=n1(({as:e,children:t,className:n,...i},s)=>{const o=e||"div";return r.jsx(o,{ref:s,className:n,...i,children:t})}),{forwardRef:r1}=await Q("react"),oe=r1(({children:e,onClick:t,disabled:n=!1,...i},s)=>{function o(a){!t||n||(a.key===" "||a.key==="Enter"||a.key==="Spacebar")&&(a.preventDefault(),t(a))}return r.jsx(Oc,{className:R("inline-block","focus-visible:ring-2 focus-visible:outline-none",t&&!n&&"cursor-pointer"),...n?{}:{onClick:t},onKeyDown:o,tabIndex:t&&!n?0:-1,...t?{role:"button"}:{},...i,ref:s,children:e})});function ve(e){return`Minified Redux error #${e}; visit https://redux.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var i1=typeof Symbol=="function"&&Symbol.observable||"@@observable",Po=i1,yi=()=>Math.random().toString(36).substring(7).split("").join("."),s1={INIT:`@@redux/INIT${yi()}`,REPLACE:`@@redux/REPLACE${yi()}`,PROBE_UNKNOWN_ACTION:()=>`@@redux/PROBE_UNKNOWN_ACTION${yi()}`},Or=s1;function xt(e){if(typeof e!="object"||e===null)return!1;let t=e;for(;Object.getPrototypeOf(t)!==null;)t=Object.getPrototypeOf(t);return Object.getPrototypeOf(e)===t||Object.getPrototypeOf(e)===null}function Rc(e,t,n){if(typeof e!="function")throw new Error(ve(2));if(typeof t=="function"&&typeof n=="function"||typeof n=="function"&&typeof arguments[3]=="function")throw new Error(ve(0));if(typeof t=="function"&&typeof n>"u"&&(n=t,t=void 0),typeof n<"u"){if(typeof n!="function")throw new Error(ve(1));return n(Rc)(e,t)}let i=e,s=t,o=new Map,a=o,l=0,c=!1;function d(){a===o&&(a=new Map,o.forEach((m,v)=>{a.set(v,m)}))}function u(){if(c)throw new Error(ve(3));return s}function p(m){if(typeof m!="function")throw new Error(ve(4));if(c)throw new Error(ve(5));let v=!0;d();const S=l++;return a.set(S,m),function(){if(v){if(c)throw new Error(ve(6));v=!1,d(),a.delete(S),o=null}}}function g(m){if(!xt(m))throw new Error(ve(7));if(typeof m.type>"u")throw new Error(ve(8));if(typeof m.type!="string")throw new Error(ve(17));if(c)throw new Error(ve(9));try{c=!0,s=i(s,m)}finally{c=!1}return(o=a).forEach(S=>{S()}),m}function f(m){if(typeof m!="function")throw new Error(ve(10));i=m,g({type:Or.REPLACE})}function h(){const m=p;return{subscribe(v){if(typeof v!="object"||v===null)throw new Error(ve(11));function S(){const C=v;C.next&&C.next(u())}return S(),{unsubscribe:m(S)}},[Po](){return this}}}return g({type:Or.INIT}),{dispatch:g,subscribe:p,getState:u,replaceReducer:f,[Po]:h}}function o1(e){Object.keys(e).forEach(t=>{const n=e[t];if(typeof n(void 0,{type:Or.INIT})>"u")throw new Error(ve(12));if(typeof n(void 0,{type:Or.PROBE_UNKNOWN_ACTION()})>"u")throw new Error(ve(13))})}function Lc(e){const t=Object.keys(e),n={};for(let o=0;o<t.length;o++){const a=t[o];typeof e[a]=="function"&&(n[a]=e[a])}const i=Object.keys(n);let s;try{o1(n)}catch(o){s=o}return function(a={},l){if(s)throw s;let c=!1;const d={};for(let u=0;u<i.length;u++){const p=i[u],g=n[p],f=a[p],h=g(f,l);if(typeof h>"u")throw l&&l.type,new Error(ve(14));d[p]=h,c=c||h!==f}return c=c||i.length!==Object.keys(a).length,c?d:a}}function Rr(...e){return e.length===0?t=>t:e.length===1?e[0]:e.reduce((t,n)=>(...i)=>t(n(...i)))}function a1(...e){return t=>(n,i)=>{const s=t(n,i);let o=()=>{throw new Error(ve(15))};const a={getState:s.getState,dispatch:(c,...d)=>o(c,...d)},l=e.map(c=>c(a));return o=Rr(...l)(s.dispatch),{...s,dispatch:o}}}function js(e){return xt(e)&&"type"in e&&typeof e.type=="string"}var Ss=Symbol.for("immer-nothing"),jn=Symbol.for("immer-draftable"),ge=Symbol.for("immer-state");function be(e,...t){throw new Error(`[Immer] minified error nr: ${e}. Full error at: https://bit.ly/3cXEKWf`)}var Re=Object,Mt=Re.getPrototypeOf,_n="constructor",Zn="prototype",Bi="configurable",Lr="enumerable",Sr="writable",Tn="value",_e=e=>!!e&&!!e[ge];function Te(e){return e?_c(e)||Bn(e)||!!e[jn]||!!e[_n]?.[jn]||Wn(e)||Gn(e):!1}var c1=Re[Zn][_n].toString(),Mo=new WeakMap;function _c(e){if(!e||!Zt(e))return!1;const t=Mt(e);if(t===null||t===Re[Zn])return!0;const n=Re.hasOwnProperty.call(t,_n)&&t[_n];if(n===Object)return!0;if(!kt(n))return!1;let i=Mo.get(n);return i===void 0&&(i=Function.toString.call(n),Mo.set(n,i)),i===c1}function l1(e){return _e(e)||be(15,e),e[ge].base_}function tn(e,t,n=!0){Ot(e)===0?(n?Reflect.ownKeys(e):Re.keys(e)).forEach(s=>{t(s,e[s],e)}):e.forEach((i,s)=>t(s,i,e))}function Ot(e){const t=e[ge];return t?t.type_:Bn(e)?1:Wn(e)?2:Gn(e)?3:0}var Sn=(e,t,n=Ot(e))=>n===2?e.has(t):Re[Zn].hasOwnProperty.call(e,t),Xe=(e,t,n=Ot(e))=>n===2?e.get(t):e[t],_r=(e,t,n,i=Ot(e))=>{i===2?e.set(t,n):i===3?e.add(n):e[t]=n};function d1(e,t){return e===t?e!==0||1/e===1/t:e!==e&&t!==t}var Bn=Array.isArray,Wn=e=>e instanceof Map,Gn=e=>e instanceof Set,Zt=e=>typeof e=="object",kt=e=>typeof e=="function",wi=e=>typeof e=="boolean",u1=e=>Zt(e)?e?.[ge]:null,Je=e=>e.copy_||e.base_,ks=e=>e.modified_?e.copy_:e.base_;function Wi(e,t){if(Wn(e))return new Map(e);if(Gn(e))return new Set(e);if(Bn(e))return Array[Zn].slice.call(e);const n=_c(e);if(t===!0||t==="class_only"&&!n){const i=Re.getOwnPropertyDescriptors(e);delete i[ge];let s=Reflect.ownKeys(i);for(let o=0;o<s.length;o++){const a=s[o],l=i[a];l[Sr]===!1&&(l[Sr]=!0,l[Bi]=!0),(l.get||l.set)&&(i[a]={[Bi]:!0,[Sr]:!0,[Lr]:l[Lr],[Tn]:e[a]})}return Re.create(Mt(e),i)}else{const i=Mt(e);if(i!==null&&n)return{...e};const s=Re.create(i);return Re.assign(s,e)}}function Is(e,t=!1){return Zr(e)||_e(e)||!Te(e)||(Ot(e)>1&&Re.defineProperties(e,{set:cr,add:cr,clear:cr,delete:cr}),Re.freeze(e),t&&tn(e,(n,i)=>{Is(i,!0)},!1)),e}function f1(){be(2)}var cr={[Tn]:f1};function Zr(e){return e===null||!Zt(e)?!0:Re.isFrozen(e)}var Tr="MapSet",Nr="Patches",Ar={};function Bt(e){const t=Ar[e];return t||be(0,e),t}var p1=e=>!!Ar[e];function h1(e,t){Ar[e]||(Ar[e]=t)}var Nn,Tc=()=>Nn,m1=(e,t)=>({drafts_:[],parent_:e,immer_:t,canAutoFreeze_:!0,unfinalizedDrafts_:0,handledSet_:new Set,processedForPatches_:new Set,mapSetPlugin_:p1(Tr)?Bt(Tr):void 0});function Oo(e,t){t&&(e.patchPlugin_=Bt(Nr),e.patches_=[],e.inversePatches_=[],e.patchListener_=t)}function Gi(e){Ki(e),e.drafts_.forEach(g1),e.drafts_=null}function Ki(e){e===Nn&&(Nn=e.parent_)}var Ro=e=>Nn=m1(Nn,e);function g1(e){const t=e[ge];t.type_===0||t.type_===1?t.revoke_():t.revoked_=!0}function Lo(e,t){t.unfinalizedDrafts_=t.drafts_.length;const n=t.drafts_[0];if(e!==void 0&&e!==n){n[ge].modified_&&(Gi(t),be(4)),Te(e)&&(e=_o(t,e));const{patchPlugin_:s}=t;s&&s.generateReplacementPatches_(n[ge].base_,e,t)}else e=_o(t,n);return x1(t,e,!0),Gi(t),t.patches_&&t.patchListener_(t.patches_,t.inversePatches_),e!==Ss?e:void 0}function _o(e,t){if(Zr(t))return t;const n=t[ge];if(!n)return Es(t,e.handledSet_,e);if(!Br(n,e))return t;if(!n.modified_)return n.base_;if(!n.finalized_){const{callbacks_:i}=n;if(i)for(;i.length>0;)i.pop()(e);Dc(n,e)}return n.copy_}function x1(e,t,n=!1){!e.parent_&&e.immer_.autoFreeze_&&e.canAutoFreeze_&&Is(t,n)}function Nc(e){e.finalized_=!0,e.scope_.unfinalizedDrafts_--}var Br=(e,t)=>e.scope_===t,v1=[];function Ac(e,t,n,i){const s=Je(e),o=e.type_;if(i!==void 0&&Xe(s,i,o)===t){_r(s,i,n,o);return}if(!e.draftLocations_){const l=e.draftLocations_=new Map;tn(s,(c,d)=>{if(_e(d)){const u=l.get(d)||[];u.push(c),l.set(d,u)}})}const a=e.draftLocations_.get(t)??v1;for(const l of a)_r(s,l,n,o)}function b1(e,t,n){e.callbacks_.push(function(s){const o=t;if(!o||!Br(o,s))return;s.mapSetPlugin_?.fixSetContents(o);const a=ks(o);Ac(e,o.draft_??o,a,n),Dc(o,s)})}function Dc(e,t){if(e.modified_&&!e.finalized_&&(e.type_===3||(e.assigned_?.size??0)>0)){const{patchPlugin_:i}=t;if(i){const s=i.getPath(e);s&&i.generatePatches_(e,s,t)}Nc(e)}}function y1(e,t,n){const{scope_:i}=e;if(_e(n)){const s=n[ge];Br(s,i)&&s.callbacks_.push(function(){kr(e);const a=ks(s);Ac(e,n,a,t)})}else Te(n)&&e.callbacks_.push(function(){const o=Je(e);Xe(o,t,e.type_)===n&&i.drafts_.length>1&&(e.assigned_.get(t)??!1)===!0&&e.copy_&&Es(Xe(e.copy_,t,e.type_),i.handledSet_,i)})}function Es(e,t,n){return!n.immer_.autoFreeze_&&n.unfinalizedDrafts_<1||_e(e)||t.has(e)||!Te(e)||Zr(e)||(t.add(e),tn(e,(i,s)=>{if(_e(s)){const o=s[ge];if(Br(o,n)){const a=ks(o);_r(e,i,a,e.type_),Nc(o)}}else Te(s)&&Es(s,t,n)})),e}function w1(e,t){const n=Bn(e),i={type_:n?1:0,scope_:t?t.scope_:Tc(),modified_:!1,finalized_:!1,assigned_:void 0,parent_:t,base_:e,draft_:null,copy_:null,revoke_:null,isManual_:!1,callbacks_:void 0};let s=i,o=Ps;n&&(s=[i],o=An);const{revoke:a,proxy:l}=Proxy.revocable(s,o);return i.draft_=l,i.revoke_=a,[l,i]}var Ps={get(e,t){if(t===ge)return e;const n=Je(e);if(!Sn(n,t,e.type_))return C1(e,n,t);const i=n[t];if(e.finalized_||!Te(i))return i;if(i===Ci(e.base_,t)){kr(e);const s=e.type_===1?+t:t,o=Xi(e.scope_,i,e,s);return e.copy_[s]=o}return i},has(e,t){return t in Je(e)},ownKeys(e){return Reflect.ownKeys(Je(e))},set(e,t,n){const i=Hc(Je(e),t);if(i?.set)return i.set.call(e.draft_,n),!0;if(!e.modified_){const s=Ci(Je(e),t),o=s?.[ge];if(o&&o.base_===n)return e.copy_[t]=n,e.assigned_.set(t,!1),!0;if(d1(n,s)&&(n!==void 0||Sn(e.base_,t,e.type_)))return!0;kr(e),Yi(e)}return e.copy_[t]===n&&(n!==void 0||t in e.copy_)||Number.isNaN(n)&&Number.isNaN(e.copy_[t])||(e.copy_[t]=n,e.assigned_.set(t,!0),y1(e,t,n)),!0},deleteProperty(e,t){return kr(e),Ci(e.base_,t)!==void 0||t in e.base_?(e.assigned_.set(t,!1),Yi(e)):e.assigned_.delete(t),e.copy_&&delete e.copy_[t],!0},getOwnPropertyDescriptor(e,t){const n=Je(e),i=Reflect.getOwnPropertyDescriptor(n,t);return i&&{[Sr]:!0,[Bi]:e.type_!==1||t!=="length",[Lr]:i[Lr],[Tn]:n[t]}},defineProperty(){be(11)},getPrototypeOf(e){return Mt(e.base_)},setPrototypeOf(){be(12)}},An={};tn(Ps,(e,t)=>{An[e]=function(){const n=arguments;return n[0]=n[0][0],t.apply(this,n)}});An.deleteProperty=function(e,t){return An.set.call(this,e,t,void 0)};An.set=function(e,t,n){return Ps.set.call(this,e[0],t,n,e[0])};function Ci(e,t){const n=e[ge];return(n?Je(n):e)[t]}function C1(e,t,n){const i=Hc(t,n);return i?Tn in i?i[Tn]:i.get?.call(e.draft_):void 0}function Hc(e,t){if(!(t in e))return;let n=Mt(e);for(;n;){const i=Object.getOwnPropertyDescriptor(n,t);if(i)return i;n=Mt(n)}}function Yi(e){e.modified_||(e.modified_=!0,e.parent_&&Yi(e.parent_))}function kr(e){e.copy_||(e.assigned_=new Map,e.copy_=Wi(e.base_,e.scope_.immer_.useStrictShallowCopy_))}var j1=class{constructor(e){this.autoFreeze_=!0,this.useStrictShallowCopy_=!1,this.useStrictIteration_=!1,this.produce=(t,n,i)=>{if(kt(t)&&!kt(n)){const o=n;n=t;const a=this;return function(c=o,...d){return a.produce(c,u=>n.call(this,u,...d))}}kt(n)||be(6),i!==void 0&&!kt(i)&&be(7);let s;if(Te(t)){const o=Ro(this),a=Xi(o,t,void 0);let l=!0;try{s=n(a),l=!1}finally{l?Gi(o):Ki(o)}return Oo(o,i),Lo(s,o)}else if(!t||!Zt(t)){if(s=n(t),s===void 0&&(s=t),s===Ss&&(s=void 0),this.autoFreeze_&&Is(s,!0),i){const o=[],a=[];Bt(Nr).generateReplacementPatches_(t,s,{patches_:o,inversePatches_:a}),i(o,a)}return s}else be(1,t)},this.produceWithPatches=(t,n)=>{if(kt(t))return(a,...l)=>this.produceWithPatches(a,c=>t(c,...l));let i,s;return[this.produce(t,n,(a,l)=>{i=a,s=l}),i,s]},wi(e?.autoFreeze)&&this.setAutoFreeze(e.autoFreeze),wi(e?.useStrictShallowCopy)&&this.setUseStrictShallowCopy(e.useStrictShallowCopy),wi(e?.useStrictIteration)&&this.setUseStrictIteration(e.useStrictIteration)}createDraft(e){Te(e)||be(8),_e(e)&&(e=$c(e));const t=Ro(this),n=Xi(t,e,void 0);return n[ge].isManual_=!0,Ki(t),n}finishDraft(e,t){const n=e&&e[ge];(!n||!n.isManual_)&&be(9);const{scope_:i}=n;return Oo(i,t),Lo(void 0,i)}setAutoFreeze(e){this.autoFreeze_=e}setUseStrictShallowCopy(e){this.useStrictShallowCopy_=e}setUseStrictIteration(e){this.useStrictIteration_=e}shouldUseStrictIteration(){return this.useStrictIteration_}applyPatches(e,t){let n;for(n=t.length-1;n>=0;n--){const s=t[n];if(s.path.length===0&&s.op==="replace"){e=s.value;break}}n>-1&&(t=t.slice(n+1));const i=Bt(Nr).applyPatches_;return _e(e)?i(e,t):this.produce(e,s=>i(s,t))}};function Xi(e,t,n,i){const[s,o]=Wn(t)?Bt(Tr).proxyMap_(t,n):Gn(t)?Bt(Tr).proxySet_(t,n):w1(t,n);return(n?.scope_??Tc()).drafts_.push(s),o.callbacks_=n?.callbacks_??[],o.key_=i,n&&i!==void 0?b1(n,o,i):o.callbacks_.push(function(c){c.mapSetPlugin_?.fixSetContents(o);const{patchPlugin_:d}=c;o.modified_&&d&&d.generatePatches_(o,[],c)}),s}function $c(e){return _e(e)||be(10,e),Vc(e)}function Vc(e){if(!Te(e)||Zr(e))return e;const t=e[ge];let n,i=!0;if(t){if(!t.modified_)return t.base_;t.finalized_=!0,n=Wi(e,t.scope_.immer_.useStrictShallowCopy_),i=t.scope_.immer_.shouldUseStrictIteration()}else n=Wi(e,!0);return tn(n,(s,o)=>{_r(n,s,Vc(o))},i),t&&(t.finalized_=!1),n}function S1(){function t(h,x=[]){if("key_"in h&&h.key_!==void 0){const m=h.parent_.copy_??h.parent_.base_,v=u1(Xe(m,h.key_)),S=Xe(m,h.key_);if(S===void 0||S!==h.draft_&&S!==h.base_&&S!==h.copy_||v!=null&&v.base_!==h.base_)return null;const b=h.parent_.type_===3;let C;if(b){const y=h.parent_;C=Array.from(y.drafts_.keys()).indexOf(h.key_)}else C=h.key_;if(!(b&&m.size>C||Sn(m,C)))return null;x.push(C)}if(h.parent_)return t(h.parent_,x);x.reverse();try{n(h.copy_,x)}catch{return null}return x}function n(h,x){let m=h;for(let v=0;v<x.length-1;v++){const S=x[v];if(m=Xe(m,S),!Zt(m)||m===null)throw new Error(`Cannot resolve path at '${x.join("/")}'`)}return m}const i="replace",s="add",o="remove";function a(h,x,m){if(h.scope_.processedForPatches_.has(h))return;h.scope_.processedForPatches_.add(h);const{patches_:v,inversePatches_:S}=m;switch(h.type_){case 0:case 2:return c(h,x,v,S);case 1:return l(h,x,v,S);case 3:return d(h,x,v,S)}}function l(h,x,m,v){let{base_:S,assigned_:b}=h,C=h.copy_;C.length<S.length&&([S,C]=[C,S],[m,v]=[v,m]);for(let y=0;y<S.length;y++){const j=C[y],I=S[y];if(b?.get(y.toString())&&j!==I){const M=j?.[ge];if(M&&M.modified_)continue;const P=x.concat([y]);m.push({op:i,path:P,value:f(j)}),v.push({op:i,path:P,value:f(I)})}}for(let y=S.length;y<C.length;y++){const j=x.concat([y]);m.push({op:s,path:j,value:f(C[y])})}for(let y=C.length-1;S.length<=y;--y){const j=x.concat([y]);v.push({op:o,path:j})}}function c(h,x,m,v){const{base_:S,copy_:b,type_:C}=h;tn(h.assigned_,(y,j)=>{const I=Xe(S,y,C),M=Xe(b,y,C),P=j?Sn(S,y)?i:s:o;if(I===M&&P===i)return;const E=x.concat(y);m.push(P===o?{op:P,path:E}:{op:P,path:E,value:f(M)}),v.push(P===s?{op:o,path:E}:P===o?{op:s,path:E,value:f(I)}:{op:i,path:E,value:f(I)})})}function d(h,x,m,v){let{base_:S,copy_:b}=h,C=0;S.forEach(y=>{if(!b.has(y)){const j=x.concat([C]);m.push({op:o,path:j,value:y}),v.unshift({op:s,path:j,value:y})}C++}),C=0,b.forEach(y=>{if(!S.has(y)){const j=x.concat([C]);m.push({op:s,path:j,value:y}),v.unshift({op:o,path:j,value:y})}C++})}function u(h,x,m){const{patches_:v,inversePatches_:S}=m;v.push({op:i,path:[],value:x===Ss?void 0:x}),S.push({op:i,path:[],value:h})}function p(h,x){return x.forEach(m=>{const{path:v,op:S}=m;let b=h;for(let I=0;I<v.length-1;I++){const M=Ot(b);let P=v[I];typeof P!="string"&&typeof P!="number"&&(P=""+P),(M===0||M===1)&&(P==="__proto__"||P===_n)&&be(19),kt(b)&&P===Zn&&be(19),b=Xe(b,P),Zt(b)||be(18,v.join("/"))}const C=Ot(b),y=g(m.value),j=v[v.length-1];switch(S){case i:switch(C){case 2:return b.set(j,y);case 3:be(16);default:return b[j]=y}case s:switch(C){case 1:return j==="-"?b.push(y):b.splice(j,0,y);case 2:return b.set(j,y);case 3:return b.add(y);default:return b[j]=y}case o:switch(C){case 1:return b.splice(j,1);case 2:return b.delete(j);case 3:return b.delete(m.value);default:return delete b[j]}default:be(17,S)}}),h}function g(h){if(!Te(h))return h;if(Bn(h))return h.map(g);if(Wn(h))return new Map(Array.from(h.entries()).map(([m,v])=>[m,g(v)]));if(Gn(h))return new Set(Array.from(h).map(g));const x=Object.create(Mt(h));for(const m in h)x[m]=g(h[m]);return Sn(h,jn)&&(x[jn]=h[jn]),x}function f(h){return _e(h)?g(h):h}h1(Nr,{applyPatches_:p,generatePatches_:a,generateReplacementPatches_:u,getPath:t})}var Dn=new j1,Kn=Dn.produce,zc=Dn.produceWithPatches.bind(Dn),To=Dn.applyPatches.bind(Dn);function k1(e,t=`expected a function, instead received ${typeof e}`){if(typeof e!="function")throw new TypeError(t)}function I1(e,t=`expected an object, instead received ${typeof e}`){if(typeof e!="object")throw new TypeError(t)}function E1(e,t="expected all items to be functions, instead received the following types: "){if(!e.every(n=>typeof n=="function")){const n=e.map(i=>typeof i=="function"?`function ${i.name||"unnamed"}()`:typeof i).join(", ");throw new TypeError(`${t}[${n}]`)}}var No=e=>Array.isArray(e)?e:[e];function P1(e){const t=Array.isArray(e[0])?e[0]:e;return E1(t,"createSelector expects all input-selectors to be functions, but received the following types: "),t}function M1(e,t){const n=[],{length:i}=e;for(let s=0;s<i;s++)n.push(e[s].apply(null,t));return n}var O1=class{constructor(e){this.value=e}deref(){return this.value}},R1=typeof WeakRef<"u"?WeakRef:O1,L1=0,Ao=1;function lr(){return{s:L1,v:void 0,o:null,p:null}}function Dr(e,t={}){let n=lr();const{resultEqualityCheck:i}=t;let s,o=0;function a(){let l=n;const{length:c}=arguments;for(let p=0,g=c;p<g;p++){const f=arguments[p];if(typeof f=="function"||typeof f=="object"&&f!==null){let h=l.o;h===null&&(l.o=h=new WeakMap);const x=h.get(f);x===void 0?(l=lr(),h.set(f,l)):l=x}else{let h=l.p;h===null&&(l.p=h=new Map);const x=h.get(f);x===void 0?(l=lr(),h.set(f,l)):l=x}}const d=l;let u;if(l.s===Ao)u=l.v;else if(u=e.apply(null,arguments),o++,i){const p=s?.deref?.()??s;p!=null&&i(p,u)&&(u=p,o!==0&&o--),s=typeof u=="object"&&u!==null||typeof u=="function"?new R1(u):u}return d.s=Ao,d.v=u,u}return a.clearCache=()=>{n=lr(),a.resetResultsCount()},a.resultsCount=()=>o,a.resetResultsCount=()=>{o=0},a}function _1(e,...t){const n=typeof e=="function"?{memoize:e,memoizeOptions:t}:e,i=(...s)=>{let o=0,a=0,l,c={},d=s.pop();typeof d=="object"&&(c=d,d=s.pop()),k1(d,`createSelector expects an output function after the inputs, but received: [${typeof d}]`);const u={...n,...c},{memoize:p,memoizeOptions:g=[],argsMemoize:f=Dr,argsMemoizeOptions:h=[]}=u,x=No(g),m=No(h),v=P1(s),S=p(function(){return o++,d.apply(null,arguments)},...x),b=f(function(){a++;const y=M1(v,arguments);return l=S.apply(null,y),l},...m);return Object.assign(b,{resultFunc:d,memoizedResultFunc:S,dependencies:v,dependencyRecomputations:()=>a,resetDependencyRecomputations:()=>{a=0},lastResult:()=>l,recomputations:()=>o,resetRecomputations:()=>{o=0},memoize:p,argsMemoize:f})};return Object.assign(i,{withTypes:()=>i}),i}var $=_1(Dr),T1=Object.assign((e,t=$)=>{I1(e,`createStructuredSelector expects first argument to be an object where each property is a selector, instead received a ${typeof e}`);const n=Object.keys(e),i=n.map(o=>e[o]);return t(i,(...o)=>o.reduce((a,l,c)=>(a[n[c]]=l,a),{}))},{withTypes:()=>T1});function Fc(e){return({dispatch:n,getState:i})=>s=>o=>typeof o=="function"?o(n,i,e):s(o)}var N1=Fc(),A1=Fc,D1=typeof window<"u"&&window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__?window.__REDUX_DEVTOOLS_EXTENSION_COMPOSE__:function(){if(arguments.length!==0)return typeof arguments[0]=="object"?Rr:Rr.apply(null,arguments)},H1=e=>e&&typeof e.match=="function";function je(e,t){function n(...i){if(t){let s=t(...i);if(!s)throw new Error(we(0));return{type:e,payload:s.payload,..."meta"in s&&{meta:s.meta},..."error"in s&&{error:s.error}}}return{type:e,payload:i[0]}}return n.toString=()=>`${e}`,n.type=e,n.match=i=>js(i)&&i.type===e,n}var qc=class vn extends Array{constructor(...t){super(...t),Object.setPrototypeOf(this,vn.prototype)}static get[Symbol.species](){return vn}concat(...t){return super.concat.apply(this,t)}prepend(...t){return t.length===1&&Array.isArray(t[0])?new vn(...t[0].concat(this)):new vn(...t.concat(this))}};function Do(e){return Te(e)?Kn(e,()=>{}):e}function dr(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}function $1(e){return typeof e=="boolean"}var V1=()=>function(t){const{thunk:n=!0,immutableCheck:i=!0,serializableCheck:s=!0,actionCreatorCheck:o=!0}=t??{};let a=new qc;return n&&($1(n)?a.push(N1):a.push(A1(n.extraArgument))),a},Wr="RTK_autoBatch",un=()=>e=>({payload:e,meta:{[Wr]:!0}}),Ho=e=>t=>{setTimeout(t,e)},z1=(e={type:"raf"})=>t=>(...n)=>{const i=t(...n);let s=!0,o=!1,a=!1;const l=new Set,c=e.type==="tick"?queueMicrotask:e.type==="raf"?typeof window<"u"&&window.requestAnimationFrame?window.requestAnimationFrame:Ho(10):e.type==="callback"?e.queueNotification:Ho(e.timeout),d=()=>{a=!1,o&&(o=!1,l.forEach(u=>u()))};return Object.assign({},i,{subscribe(u){const p=()=>s&&u(),g=i.subscribe(p);return l.add(u),()=>{g(),l.delete(u)}},dispatch(u){try{return s=!u?.meta?.[Wr],o=!s,o&&(a||(a=!0,c(d))),i.dispatch(u)}finally{s=!0}}})},F1=e=>function(n){const{autoBatch:i=!0}=n??{};let s=new qc(e);return i&&s.push(z1(typeof i=="object"?i:void 0)),s};function q1(e){const t=V1(),{reducer:n=void 0,middleware:i,devTools:s=!0,preloadedState:o=void 0,enhancers:a=void 0}=e||{};let l;if(typeof n=="function")l=n;else if(xt(n))l=Lc(n);else throw new Error(we(1));let c;typeof i=="function"?c=i(t):c=t();let d=Rr;s&&(d=D1({trace:!1,...typeof s=="object"&&s}));const u=a1(...c),p=F1(u);let g=typeof a=="function"?a(p):p();const f=d(...g);return Rc(l,o,f)}function Uc(e){const t={},n=[];let i;const s={addCase(o,a){const l=typeof o=="string"?o:o.type;if(!l)throw new Error(we(28));if(l in t)throw new Error(we(29));return t[l]=a,s},addAsyncThunk(o,a){return a.pending&&(t[o.pending.type]=a.pending),a.rejected&&(t[o.rejected.type]=a.rejected),a.fulfilled&&(t[o.fulfilled.type]=a.fulfilled),a.settled&&n.push({matcher:o.settled,reducer:a.settled}),s},addMatcher(o,a){return n.push({matcher:o,reducer:a}),s},addDefaultCase(o){return i=o,s}};return e(s),[t,n,i]}function U1(e){return typeof e=="function"}function Q1(e,t){let[n,i,s]=Uc(t),o;if(U1(e))o=()=>Do(e());else{const l=Do(e);o=()=>l}function a(l=o(),c){let d=[n[c.type],...i.filter(({matcher:u})=>u(c)).map(({reducer:u})=>u)];return d.filter(u=>!!u).length===0&&(d=[s]),d.reduce((u,p)=>{if(p)if(_e(u)){const f=p(u,c);return f===void 0?u:f}else{if(Te(u))return Kn(u,g=>p(g,c));{const g=p(u,c);if(g===void 0){if(u===null)return u;throw Error("A case reducer on a non-draftable value must not return undefined")}return g}}return u},l)}return a.getInitialState=o,a}var Qc=(e,t)=>H1(e)?e.match(t):e(t);function He(...e){return t=>e.some(n=>Qc(n,t))}function kn(...e){return t=>e.every(n=>Qc(n,t))}function Gr(e,t){if(!e||!e.meta)return!1;const n=typeof e.meta.requestId=="string",i=t.indexOf(e.meta.requestStatus)>-1;return n&&i}function Yn(e){return typeof e[0]=="function"&&"pending"in e[0]&&"fulfilled"in e[0]&&"rejected"in e[0]}function Ms(...e){return e.length===0?t=>Gr(t,["pending"]):Yn(e)?He(...e.map(t=>t.pending)):Ms()(e[0])}function Wt(...e){return e.length===0?t=>Gr(t,["rejected"]):Yn(e)?He(...e.map(t=>t.rejected)):Wt()(e[0])}function Kr(...e){const t=n=>n&&n.meta&&n.meta.rejectedWithValue;return e.length===0?kn(Wt(...e),t):Yn(e)?kn(Wt(...e),t):Kr()(e[0])}function vt(...e){return e.length===0?t=>Gr(t,["fulfilled"]):Yn(e)?He(...e.map(t=>t.fulfilled)):vt()(e[0])}function Ji(...e){return e.length===0?t=>Gr(t,["pending","fulfilled","rejected"]):Yn(e)?He(...e.flatMap(t=>[t.pending,t.rejected,t.fulfilled])):Ji()(e[0])}var Z1="ModuleSymbhasOwnPr-0123456789ABCDEFGHNRVfgctiUvz_KqYTJkLxpZXIjQW",Yr=(e=21)=>{let t="",n=e;for(;n--;)t+=Z1[Math.random()*64|0];return t},B1=["name","message","stack","code"],ji=class{constructor(e,t){this.payload=e,this.meta=t}_type},$o=class{constructor(e,t){this.payload=e,this.meta=t}_type},W1=e=>{if(typeof e=="object"&&e!==null){const t={};for(const n of B1)typeof e[n]=="string"&&(t[n]=e[n]);return t}return{message:String(e)}},Vo="External signal was aborted",zo=(()=>{function e(t,n,i){const s=je(t+"/fulfilled",(c,d,u,p)=>({payload:c,meta:{...p||{},arg:u,requestId:d,requestStatus:"fulfilled"}})),o=je(t+"/pending",(c,d,u)=>({payload:void 0,meta:{...u||{},arg:d,requestId:c,requestStatus:"pending"}})),a=je(t+"/rejected",(c,d,u,p,g)=>({payload:p,error:(i&&i.serializeError||W1)(c||"Rejected"),meta:{...g||{},arg:u,requestId:d,rejectedWithValue:!!p,requestStatus:"rejected",aborted:c?.name==="AbortError",condition:c?.name==="ConditionError"}}));function l(c,{signal:d}={}){return(u,p,g)=>{const f=i?.idGenerator?i.idGenerator(c):Yr(),h=new AbortController;let x,m;function v(b){m=b,h.abort()}d&&(d.aborted?v(Vo):d.addEventListener("abort",()=>v(Vo),{once:!0}));const S=(async function(){let b;try{let y=i?.condition?.(c,{getState:p,extra:g});if(K1(y)&&(y=await y),y===!1||h.signal.aborted)throw{name:"ConditionError",message:"Aborted due to condition callback returning false."};const j=new Promise((I,M)=>{x=()=>{M({name:"AbortError",message:m||"Aborted"})},h.signal.addEventListener("abort",x,{once:!0})});u(o(f,c,i?.getPendingMeta?.({requestId:f,arg:c},{getState:p,extra:g}))),b=await Promise.race([j,Promise.resolve(n(c,{dispatch:u,getState:p,extra:g,requestId:f,signal:h.signal,abort:v,rejectWithValue:(I,M)=>new ji(I,M),fulfillWithValue:(I,M)=>new $o(I,M)})).then(I=>{if(I instanceof ji)throw I;return I instanceof $o?s(I.payload,f,c,I.meta):s(I,f,c)})])}catch(y){b=y instanceof ji?a(null,f,c,y.payload,y.meta):a(y,f,c)}finally{x&&h.signal.removeEventListener("abort",x)}return i&&!i.dispatchConditionRejection&&a.match(b)&&b.meta.condition||u(b),b})();return Object.assign(S,{abort:v,requestId:f,arg:c,unwrap(){return S.then(G1)}})}}return Object.assign(l,{pending:o,rejected:a,fulfilled:s,settled:He(a,s),typePrefix:t})}return e.withTypes=()=>e,e})();function G1(e){if(e.meta&&e.meta.rejectedWithValue)throw e.payload;if(e.error)throw e.error;return e.payload}function K1(e){return e!==null&&typeof e=="object"&&typeof e.then=="function"}var Y1=Symbol.for("rtk-slice-createasyncthunk");function X1(e,t){return`${e}/${t}`}function J1({creators:e}={}){const t=e?.asyncThunk?.[Y1];return function(i){const{name:s,reducerPath:o=s}=i;if(!s)throw new Error(we(11));const a=(typeof i.reducers=="function"?i.reducers(tf()):i.reducers)||{},l=Object.keys(a),c={sliceCaseReducersByName:{},sliceCaseReducersByType:{},actionCreators:{},sliceMatchers:[]},d={addCase(b,C){const y=typeof b=="string"?b:b.type;if(!y)throw new Error(we(12));if(y in c.sliceCaseReducersByType)throw new Error(we(13));return c.sliceCaseReducersByType[y]=C,d},addMatcher(b,C){return c.sliceMatchers.push({matcher:b,reducer:C}),d},exposeAction(b,C){return c.actionCreators[b]=C,d},exposeCaseReducer(b,C){return c.sliceCaseReducersByName[b]=C,d}};l.forEach(b=>{const C=a[b],y={reducerName:b,type:X1(s,b),createNotation:typeof i.reducers=="function"};rf(C)?of(y,C,d,t):nf(y,C,d)});function u(){const[b={},C=[],y=void 0]=typeof i.extraReducers=="function"?Uc(i.extraReducers):[i.extraReducers],j={...b,...c.sliceCaseReducersByType};return Q1(i.initialState,I=>{for(let M in j)I.addCase(M,j[M]);for(let M of c.sliceMatchers)I.addMatcher(M.matcher,M.reducer);for(let M of C)I.addMatcher(M.matcher,M.reducer);y&&I.addDefaultCase(y)})}const p=b=>b,g=new Map,f=new WeakMap;let h;function x(b,C){return h||(h=u()),h(b,C)}function m(){return h||(h=u()),h.getInitialState()}function v(b,C=!1){function y(I){let M=I[b];return typeof M>"u"&&C&&(M=dr(f,y,m)),M}function j(I=p){const M=dr(g,C,()=>new WeakMap);return dr(M,I,()=>{const P={};for(const[E,w]of Object.entries(i.selectors??{}))P[E]=ef(w,I,()=>dr(f,I,m),C);return P})}return{reducerPath:b,getSelectors:j,get selectors(){return j(y)},selectSlice:y}}const S={name:s,reducer:x,actions:c.actionCreators,caseReducers:c.sliceCaseReducersByName,getInitialState:m,...v(o),injectInto(b,{reducerPath:C,...y}={}){const j=C??o;return b.inject({reducerPath:j,reducer:x},y),{...S,...v(j,!0)}}};return S}}function ef(e,t,n,i){function s(o,...a){let l=t(o);return typeof l>"u"&&i&&(l=n()),e(l,...a)}return s.unwrapped=e,s}var ye=J1();function tf(){function e(t,n){return{_reducerDefinitionType:"asyncThunk",payloadCreator:t,...n}}return e.withTypes=()=>e,{reducer(t){return Object.assign({[t.name](...n){return t(...n)}}[t.name],{_reducerDefinitionType:"reducer"})},preparedReducer(t,n){return{_reducerDefinitionType:"reducerWithPrepare",prepare:t,reducer:n}},asyncThunk:e}}function nf({type:e,reducerName:t,createNotation:n},i,s){let o,a;if("reducer"in i){if(n&&!sf(i))throw new Error(we(17));o=i.reducer,a=i.prepare}else o=i;s.addCase(e,o).exposeCaseReducer(t,o).exposeAction(t,a?je(e,a):je(e))}function rf(e){return e._reducerDefinitionType==="asyncThunk"}function sf(e){return e._reducerDefinitionType==="reducerWithPrepare"}function of({type:e,reducerName:t},n,i,s){if(!s)throw new Error(we(18));const{payloadCreator:o,fulfilled:a,pending:l,rejected:c,settled:d,options:u}=n,p=s(e,o,u);i.exposeAction(t,p),a&&i.addCase(p.fulfilled,a),l&&i.addCase(p.pending,l),c&&i.addCase(p.rejected,c),d&&i.addMatcher(p.settled,d),i.exposeCaseReducer(t,{fulfilled:a||ur,pending:l||ur,rejected:c||ur,settled:d||ur})}function ur(){}var af="task",Zc="listener",Bc="completed",Os="cancelled",cf=`task-${Os}`,lf=`task-${Bc}`,es=`${Zc}-${Os}`,df=`${Zc}-${Bc}`,Xr=class{constructor(e){this.code=e,this.message=`${af} ${Os} (reason: ${e})`}name="TaskAbortError";message},Rs=(e,t)=>{if(typeof e!="function")throw new TypeError(we(32))},Hr=()=>{},Wc=(e,t=Hr)=>(e.catch(t),e),Gc=(e,t)=>(e.addEventListener("abort",t,{once:!0}),()=>e.removeEventListener("abort",t)),Et=e=>{if(e.aborted)throw new Xr(e.reason)};function Kc(e,t){let n=Hr;return new Promise((i,s)=>{const o=()=>s(new Xr(e.reason));if(e.aborted){o();return}n=Gc(e,o),t.finally(()=>n()).then(i,s)}).finally(()=>{n=Hr})}var uf=async(e,t)=>{try{return await Promise.resolve(),{status:"ok",value:await e()}}catch(n){return{status:n instanceof Xr?"cancelled":"rejected",error:n}}finally{t?.()}},$r=e=>t=>Wc(Kc(e,t).then(n=>(Et(e),n))),Yc=e=>{const t=$r(e);return n=>t(new Promise(i=>setTimeout(i,n)))},{assign:zt}=Object,Fo={},Jr="listenerMiddleware",ff=(e,t)=>{const n=i=>Gc(e,()=>i.abort(e.reason));return(i,s)=>{Rs(i);const o=new AbortController;n(o);const a=uf(async()=>{Et(e),Et(o.signal);const l=await i({pause:$r(o.signal),delay:Yc(o.signal),signal:o.signal});return Et(o.signal),l},()=>o.abort(lf));return s?.autoJoin&&t.push(a.catch(Hr)),{result:$r(e)(a),cancel(){o.abort(cf)}}}},pf=(e,t)=>{const n=async(i,s)=>{Et(t);let o=()=>{};const l=[new Promise((c,d)=>{let u=e({predicate:i,effect:(p,g)=>{g.unsubscribe(),c([p,g.getState(),g.getOriginalState()])}});o=()=>{u(),d()}})];s!=null&&l.push(new Promise(c=>setTimeout(c,s,null)));try{const c=await Kc(t,Promise.race(l));return Et(t),c}finally{o()}};return(i,s)=>Wc(n(i,s))},Xc=e=>{let{type:t,actionCreator:n,matcher:i,predicate:s,effect:o}=e;if(t)s=je(t).match;else if(n)t=n.type,s=n.match;else if(i)s=i;else if(!s)throw new Error(we(21));return Rs(o),{predicate:s,type:t,effect:o}},Jc=zt(e=>{const{type:t,predicate:n,effect:i}=Xc(e);return{id:Yr(),effect:i,type:t,predicate:n,pending:new Set,unsubscribe:()=>{throw new Error(we(22))}}},{withTypes:()=>Jc}),qo=(e,t)=>{const{type:n,effect:i,predicate:s}=Xc(t);return Array.from(e.values()).find(o=>(typeof n=="string"?o.type===n:o.predicate===s)&&o.effect===i)},ts=e=>{e.pending.forEach(t=>{t.abort(es)})},hf=(e,t)=>()=>{for(const n of t.keys())ts(n);e.clear()},Uo=(e,t,n)=>{try{e(t,n)}catch(i){setTimeout(()=>{throw i},0)}},el=zt(je(`${Jr}/add`),{withTypes:()=>el}),mf=je(`${Jr}/removeAll`),tl=zt(je(`${Jr}/remove`),{withTypes:()=>tl}),gf=(...e)=>{console.error(`${Jr}/error`,...e)},xf=(e={})=>{const t=new Map,n=new Map,i=f=>{const h=n.get(f)??0;n.set(f,h+1)},s=f=>{const h=n.get(f)??1;h===1?n.delete(f):n.set(f,h-1)},{extra:o,onError:a=gf}=e;Rs(a);const l=f=>(f.unsubscribe=()=>t.delete(f.id),t.set(f.id,f),h=>{f.unsubscribe(),h?.cancelActive&&ts(f)}),c=f=>{const h=qo(t,f)??Jc(f);return l(h)};zt(c,{withTypes:()=>c});const d=f=>{const h=qo(t,f);return h&&(h.unsubscribe(),f.cancelActive&&ts(h)),!!h};zt(d,{withTypes:()=>d});const u=async(f,h,x,m)=>{const v=new AbortController,S=pf(c,v.signal),b=[];try{f.pending.add(v),i(f),await Promise.resolve(f.effect(h,zt({},x,{getOriginalState:m,condition:(C,y)=>S(C,y).then(Boolean),take:S,delay:Yc(v.signal),pause:$r(v.signal),extra:o,signal:v.signal,fork:ff(v.signal,b),unsubscribe:f.unsubscribe,subscribe:()=>{t.set(f.id,f)},cancelActiveListeners:()=>{f.pending.forEach((C,y,j)=>{C!==v&&(C.abort(es),j.delete(C))})},cancel:()=>{v.abort(es),f.pending.delete(v)},throwIfCancelled:()=>{Et(v.signal)}})))}catch(C){C instanceof Xr||Uo(a,C,{raisedBy:"effect"})}finally{await Promise.all(b),v.abort(df),s(f),f.pending.delete(v)}},p=hf(t,n);return{middleware:f=>h=>x=>{if(!js(x))return h(x);if(el.match(x))return c(x.payload);if(mf.match(x)){p();return}if(tl.match(x))return d(x.payload);let m=f.getState();const v=()=>{if(m===Fo)throw new Error(we(23));return m};let S;try{if(S=h(x),t.size>0){const b=f.getState(),C=Array.from(t.values());for(const y of C){let j=!1;try{j=y.predicate(x,b,m)}catch(I){j=!1,Uo(a,I,{raisedBy:"predicate"})}j&&u(y,x,f,v)}}}finally{m=Fo}return S},startListening:c,stopListening:d,clearListeners:p}};function we(e){return`Minified Redux Toolkit error #${e}; visit https://redux-toolkit.js.org/Errors?code=${e} for the full message or use the non-minified dev environment for full errors. `}var vf=class extends Error{issues;constructor(e){super(e[0].message),this.name="SchemaError",this.issues=e}},nl=(e=>(e.uninitialized="uninitialized",e.pending="pending",e.fulfilled="fulfilled",e.rejected="rejected",e))(nl||{}),ot="uninitialized",ns="pending",bn="fulfilled",yn="rejected";function Qo(e){return{status:e,isUninitialized:e===ot,isLoading:e===ns,isSuccess:e===bn,isError:e===yn}}var Zo=xt;function Ls(e,t){if(e===t||!(Zo(e)&&Zo(t)||Array.isArray(e)&&Array.isArray(t)))return t;const n=Object.keys(t),i=Object.keys(e);let s=n.length===i.length;const o=Array.isArray(t)?[]:{};for(const a of n)o[a]=Ls(e[a],t[a]),s&&(s=e[a]===o[a]);return s?e:o}function rs(e,t,n){return e.reduce((i,s,o)=>(t(s,o)&&i.push(n(s,o)),i),[]).flat()}function bf(e){return new RegExp("(^|:)//").test(e)}function yf(){return typeof document>"u"?!0:document.visibilityState!=="hidden"}function _s(e){return e!=null}function Bo(e){return[...e?.values()??[]].filter(_s)}function wf(){return typeof navigator>"u"||navigator.onLine===void 0?!0:navigator.onLine}var Cf=e=>e.replace(/\/$/,""),jf=e=>e.replace(/^\//,"");function Sf(e,t){if(!e)return t;if(!t)return e;if(bf(t))return t;const n=e.endsWith("/")||!t.startsWith("?")?"/":"";return e=Cf(e),t=jf(t),`${e}${n}${t}`}function Vr(e,t,n){return e.has(t)?e.get(t):e.set(t,n(t)).get(t)}var is=()=>new Map,kf=e=>{const t=new AbortController;return setTimeout(()=>{const n="signal timed out",i="TimeoutError";t.abort(typeof DOMException<"u"?new DOMException(n,i):Object.assign(new Error(n),{name:i}))},e),t.signal},If=(...e)=>{for(const n of e)if(n.aborted)return AbortSignal.abort(n.reason);const t=new AbortController;for(const n of e)n.addEventListener("abort",()=>t.abort(n.reason),{signal:t.signal,once:!0});return t.signal},Wo=(...e)=>fetch(...e),Ef=e=>e.status>=200&&e.status<=299,Pf=e=>/ion\/(vnd\.api\+)?json/.test(e.get("content-type")||"");function Go(e){if(!xt(e))return e;const t={...e};for(const[n,i]of Object.entries(t))i===void 0&&delete t[n];return t}var Mf=e=>typeof e=="object"&&(xt(e)||Array.isArray(e)||typeof e.toJSON=="function");function Of({baseUrl:e,prepareHeaders:t=p=>p,fetchFn:n=Wo,paramsSerializer:i,isJsonContentType:s=Pf,jsonContentType:o="application/json",jsonReplacer:a,timeout:l,responseHandler:c,validateStatus:d,...u}={}){return typeof fetch>"u"&&n===Wo&&console.warn("Warning: `fetch` is not available. Please supply a custom `fetchFn` property to use `fetchBaseQuery` on SSR environments."),async(g,f,h)=>{const{getState:x,extra:m,endpoint:v,forced:S,type:b}=f;let C,{url:y,headers:j=new Headers(u.headers),params:I=void 0,responseHandler:M=c??"json",validateStatus:P=d??Ef,timeout:E=l,...w}=typeof g=="string"?{url:g}:g,k={...u,signal:E?If(f.signal,kf(E)):f.signal,...w};j=new Headers(Go(j)),k.headers=await t(j,{getState:x,arg:g,extra:m,endpoint:v,forced:S,type:b,extraOptions:h})||j;const O=Mf(k.body);if(k.body!=null&&!O&&typeof k.body!="string"&&k.headers.delete("content-type"),!k.headers.has("content-type")&&O&&k.headers.set("content-type",o),O&&s(k.headers)&&(k.body=JSON.stringify(k.body,a)),k.headers.has("accept")||(M==="json"?k.headers.set("accept","application/json"):M==="text"&&k.headers.set("accept","text/plain, text/html, */*")),I){const z=~y.indexOf("?")?"&":"?",q=i?i(I):new URLSearchParams(Go(I));y+=z+q}y=Sf(e,y);const L=new Request(y,k);C={request:new Request(y,k)};let _;try{_=await n(L)}catch(z){return{error:{status:(z instanceof Error||typeof DOMException<"u"&&z instanceof DOMException)&&z.name==="TimeoutError"?"TIMEOUT_ERROR":"FETCH_ERROR",error:String(z)},meta:C}}const A=_.clone();C.response=A;let H,N="";try{let z;if(await Promise.all([p(_,M).then(q=>H=q,q=>z=q),A.text().then(q=>N=q,()=>{})]),z)throw z}catch(z){return{error:{status:"PARSING_ERROR",originalStatus:_.status,data:N,error:String(z)},meta:C}}return P(_,H)?{data:H,meta:C}:{error:{status:_.status,data:H},meta:C}};async function p(g,f){if(typeof f=="function")return f(g);if(f==="content-type"&&(f=s(g.headers)?"json":"text"),f==="json"){const h=await g.text();return h.length?JSON.parse(h):null}return g.text()}}var Ko=class{constructor(e,t=void 0){this.value=e,this.meta=t}},ei="__rtkq/",Rf="online",Lf="offline",rl="focused",Ts=je(`${ei}${rl}`),il=je(`${ei}un${rl}`),Ns=je(`${ei}${Rf}`),sl=je(`${ei}${Lf}`),Xn="query",ol="mutation",al="infinitequery";function ti(e){return e.type===Xn}function _f(e){return e.type===ol}function ni(e){return e.type===al}function zr(e){return ti(e)||ni(e)}function As(e,t,n,i,s,o){const a=Tf(e)?e(t,n,i,s):e;return a?rs(a,_s,l=>o(cl(l))):[]}function Tf(e){return typeof e=="function"}function cl(e){return typeof e=="string"?{type:e}:e}function Nf(e,t){return e.catch(t)}var Gt=(e,t)=>e.endpointDefinitions[t],Hn=Symbol("forceQueryFn"),ss=e=>typeof e[Hn]=="function";function Af({serializeQueryArgs:e,queryThunk:t,infiniteQueryThunk:n,mutationThunk:i,api:s,context:o,getInternalState:a}){const l=C=>a(C)?.runningQueries,c=C=>a(C)?.runningMutations,{unsubscribeQueryResult:d,removeMutationResult:u,updateSubscriptionOptions:p}=s.internalActions;return{buildInitiateQuery:v,buildInitiateInfiniteQuery:S,buildInitiateMutation:b,getRunningQueryThunk:g,getRunningMutationThunk:f,getRunningQueriesThunk:h,getRunningMutationsThunk:x};function g(C,y){return j=>{const I=Gt(o,C),M=e({queryArgs:y,endpointDefinition:I,endpointName:C});return l(j)?.get(M)}}function f(C,y){return j=>c(j)?.get(y)}function h(){return C=>Bo(l(C))}function x(){return C=>Bo(c(C))}function m(C,y){const j=(I,{subscribe:M=!0,forceRefetch:P,subscriptionOptions:E,[Hn]:w,...k}={})=>(O,L)=>{const T=e({queryArgs:I,endpointDefinition:y,endpointName:C});let _;const A={...k,type:Xn,subscribe:M,forceRefetch:P,subscriptionOptions:E,endpointName:C,originalArgs:I,queryCacheKey:T,[Hn]:w};if(ti(y))_=t(A);else{const{direction:Z,initialPageParam:G,refetchCachedPages:B}=k;_=n({...A,direction:Z,initialPageParam:G,refetchCachedPages:B})}const H=s.endpoints[C].select(I),N=O(_),z=H(L()),{requestId:q,abort:K}=N,Y=z.requestId!==q,U=l(O)?.get(T),J=()=>H(L()),ee=Object.assign(w?N.then(J):Y&&!U?Promise.resolve(z):Promise.all([U,N]).then(J),{arg:I,requestId:q,subscriptionOptions:E,queryCacheKey:T,abort:K,async unwrap(){const Z=await ee;if(Z.isError)throw Z.error;return Z.data},refetch:Z=>O(j(I,{subscribe:!1,forceRefetch:!0,...Z})),unsubscribe(){M&&O(d({queryCacheKey:T,requestId:q}))},updateSubscriptionOptions(Z){ee.subscriptionOptions=Z,O(p({endpointName:C,requestId:q,queryCacheKey:T,options:Z}))}});if(!U&&!Y&&!w){const Z=l(O);Z.set(T,ee),ee.then(()=>{Z.delete(T)})}return ee};return j}function v(C,y){return m(C,y)}function S(C,y){return m(C,y)}function b(C){return(y,{track:j=!0,fixedCacheKey:I}={})=>(M,P)=>{const E=i({type:"mutation",endpointName:C,originalArgs:y,track:j,fixedCacheKey:I}),w=M(E),{requestId:k,abort:O,unwrap:L}=w,T=Nf(w.unwrap().then(N=>({data:N})),N=>({error:N})),_=()=>{M(u({requestId:k,fixedCacheKey:I}))},A=Object.assign(T,{arg:w.arg,requestId:k,abort:O,unwrap:L,reset:_}),H=c(M);return H.set(k,A),A.then(()=>{H.delete(k)}),I&&(H.set(I,A),A.then(()=>{H.get(I)===A&&H.delete(I)})),A}}}var ll=class extends vf{constructor(e,t,n,i){super(e),this.value=t,this.schemaName=n,this._bqMeta=i}},Ct=(e,t)=>Array.isArray(e)?e.includes(t):!!e;async function jt(e,t,n,i){const s=await e["~standard"].validate(t);if(s.issues)throw new ll(s.issues,t,n,i);return s.value}function Yo(e){return e}var fn=(e={})=>({...e,[Wr]:!0});function Df({reducerPath:e,baseQuery:t,context:{endpointDefinitions:n},serializeQueryArgs:i,api:s,assertTagType:o,selectors:a,onSchemaFailure:l,catchSchemaFailure:c,skipSchemaValidation:d}){const u=(w,k,O,L)=>(T,_)=>{const A=n[w],H=i({queryArgs:k,endpointDefinition:A,endpointName:w});if(T(s.internalActions.queryResultPatched({queryCacheKey:H,patches:O})),!L)return;const N=s.endpoints[w].select(k)(_()),z=As(A.providesTags,N.data,void 0,k,{},o);T(s.internalActions.updateProvidedBy([{queryCacheKey:H,providedTags:z}]))};function p(w,k,O=0){const L=[k,...w];return O&&L.length>O?L.slice(0,-1):L}function g(w,k,O=0){const L=[...w,k];return O&&L.length>O?L.slice(1):L}const f=(w,k,O,L=!0)=>(T,_)=>{const H=s.endpoints[w].select(k)(_()),N={patches:[],inversePatches:[],undo:()=>T(s.util.patchQueryData(w,k,N.inversePatches,L))};if(H.status===ot)return N;let z;if("data"in H)if(Te(H.data)){const[q,K,Y]=zc(H.data,O);N.patches.push(...K),N.inversePatches.push(...Y),z=q}else z=O(H.data),N.patches.push({op:"replace",path:[],value:z}),N.inversePatches.push({op:"replace",path:[],value:H.data});return N.patches.length===0||T(s.util.patchQueryData(w,k,N.patches,L)),N},h=(w,k,O)=>L=>L(s.endpoints[w].initiate(k,{subscribe:!1,forceRefetch:!0,[Hn]:()=>({data:O})})),x=(w,k)=>w.query&&w[k]?w[k]:Yo,m=async(w,{signal:k,abort:O,rejectWithValue:L,fulfillWithValue:T,dispatch:_,getState:A,extra:H})=>{const N=n[w.endpointName],{metaSchema:z,skipSchemaValidation:q=d}=N,K=w.type===Xn;try{let Y=Yo;const U={signal:k,abort:O,dispatch:_,getState:A,extra:H,endpoint:w.endpointName,type:w.type,forced:K?v(w,A()):void 0,queryCacheKey:K?w.queryCacheKey:void 0},J=K?w[Hn]:void 0;let ee;const Z=async(B,W,X,V)=>{if(W==null&&B.pages.length)return Promise.resolve({data:B});const te={queryArg:w.originalArgs,pageParam:W},ne=await G(te),ae=V?p:g;return{data:{pages:ae(B.pages,ne.data,X),pageParams:ae(B.pageParams,W,X)},meta:ne.meta}};async function G(B){let W;const{extraOptions:X,argSchema:V,rawResponseSchema:te,responseSchema:ne}=N;if(V&&!Ct(q,"arg")&&(B=await jt(V,B,"argSchema",{})),J?W=J():N.query?(Y=x(N,"transformResponse"),W=await t(N.query(B),U,X)):W=await N.queryFn(B,U,X,pe=>t(pe,U,X)),typeof process<"u",W.error)throw new Ko(W.error,W.meta);let{data:ae}=W;te&&!Ct(q,"rawResponse")&&(ae=await jt(te,W.data,"rawResponseSchema",W.meta));let le=await Y(ae,W.meta,B);return ne&&!Ct(q,"response")&&(le=await jt(ne,le,"responseSchema",W.meta)),{...W,data:le}}if(K&&"infiniteQueryOptions"in N){const{infiniteQueryOptions:B}=N,{maxPages:W=1/0}=B,X=w.refetchCachedPages??B.refetchCachedPages??!0;let V;const te={pages:[],pageParams:[]},ne=a.selectQueryEntry(A(),w.queryCacheKey)?.data,le=v(w,A())&&!w.direction||!ne?te:ne;if("direction"in w&&w.direction&&le.pages.length){const pe=w.direction==="backward",Se=(pe?dl:os)(B,le,w.originalArgs);V=await Z(le,Se,W,pe)}else{const{initialPageParam:pe=B.initialPageParam}=w,Me=ne?.pageParams??[],Se=Me[0]??pe,xe=Me.length;if(V=await Z(le,Se,W),J&&(V={data:V.data.pages[0]}),X)for(let Oe=1;Oe<xe;Oe++){const lt=os(B,V.data,w.originalArgs);V=await Z(V.data,lt,W)}}ee=V}else ee=await G(w.originalArgs);return z&&!Ct(q,"meta")&&ee.meta&&(ee.meta=await jt(z,ee.meta,"metaSchema",ee.meta)),T(ee.data,fn({fulfilledTimeStamp:Date.now(),baseQueryMeta:ee.meta}))}catch(Y){let U=Y;if(U instanceof Ko){let J=x(N,"transformErrorResponse");const{rawErrorResponseSchema:ee,errorResponseSchema:Z}=N;let{value:G,meta:B}=U;try{ee&&!Ct(q,"rawErrorResponse")&&(G=await jt(ee,G,"rawErrorResponseSchema",B)),z&&!Ct(q,"meta")&&(B=await jt(z,B,"metaSchema",B));let W=await J(G,B,w.originalArgs);return Z&&!Ct(q,"errorResponse")&&(W=await jt(Z,W,"errorResponseSchema",B)),L(W,fn({baseQueryMeta:B}))}catch(W){U=W}}try{if(U instanceof ll){const J={endpoint:w.endpointName,arg:w.originalArgs,type:w.type,queryCacheKey:K?w.queryCacheKey:void 0};N.onSchemaFailure?.(U,J),l?.(U,J);const{catchSchemaFailure:ee=c}=N;if(ee)return L(ee(U,J),fn({baseQueryMeta:U._bqMeta}))}}catch(J){U=J}throw console.error(U),U}};function v(w,k){const O=a.selectQueryEntry(k,w.queryCacheKey),L=a.selectConfig(k).refetchOnMountOrArgChange,T=O?.fulfilledTimeStamp,_=w.forceRefetch??(w.subscribe&&L);return _?_===!0||(Number(new Date)-Number(T))/1e3>=_:!1}const S=()=>zo(`${e}/executeQuery`,m,{getPendingMeta({arg:k}){const O=n[k.endpointName];return fn({startedTimeStamp:Date.now(),...ni(O)?{direction:k.direction}:{}})},condition(k,{getState:O}){const L=O(),T=a.selectQueryEntry(L,k.queryCacheKey),_=T?.fulfilledTimeStamp,A=k.originalArgs,H=T?.originalArgs,N=n[k.endpointName],z=k.direction;return ss(k)?!0:T?.status==="pending"?!1:v(k,L)||ti(N)&&N?.forceRefetch?.({currentArg:A,previousArg:H,endpointState:T,state:L})?!0:!(_&&!z)},dispatchConditionRejection:!0}),b=S(),C=S(),y=zo(`${e}/executeMutation`,m,{getPendingMeta(){return fn({startedTimeStamp:Date.now()})}}),j=w=>"force"in w,I=w=>"ifOlderThan"in w,M=(w,k,O={})=>(L,T)=>{const _=j(O)&&O.force,A=I(O)&&O.ifOlderThan,H=(z=!0)=>{const q={forceRefetch:z,subscribe:!1};return s.endpoints[w].initiate(k,q)},N=s.endpoints[w].select(k)(T());if(_)L(H());else if(A){const z=N?.fulfilledTimeStamp;if(!z){L(H());return}(Number(new Date)-Number(new Date(z)))/1e3>=A&&L(H())}else L(H(!1))};function P(w){return k=>k?.meta?.arg?.endpointName===w}function E(w,k){return{matchPending:kn(Ms(w),P(k)),matchFulfilled:kn(vt(w),P(k)),matchRejected:kn(Wt(w),P(k))}}return{queryThunk:b,mutationThunk:y,infiniteQueryThunk:C,prefetch:M,updateQueryData:f,upsertQueryData:h,patchQueryData:u,buildMatchThunkActions:E}}function os(e,{pages:t,pageParams:n},i){const s=t.length-1;return e.getNextPageParam(t[s],t,n[s],n,i)}function dl(e,{pages:t,pageParams:n},i){return e.getPreviousPageParam?.(t[0],t,n[0],n,i)}function ul(e,t,n,i){return As(n[e.meta.arg.endpointName][t],vt(e)?e.payload:void 0,Kr(e)?e.payload:void 0,e.meta.arg.originalArgs,"baseQueryMeta"in e.meta?e.meta.baseQueryMeta:void 0,i)}function Xo(e){return _e(e)?$c(e):e}function fr(e,t,n){const i=e[t];i&&n(i)}function $n(e){return("arg"in e?e.arg.fixedCacheKey:e.fixedCacheKey)??e.requestId}function Jo(e,t,n){const i=e[$n(t)];i&&n(i)}var pr={};function Hf({reducerPath:e,queryThunk:t,mutationThunk:n,serializeQueryArgs:i,context:{endpointDefinitions:s,apiUid:o,extractRehydrationInfo:a,hasRehydrationInfo:l},assertTagType:c,config:d}){const u=je(`${e}/resetApiState`);function p(P,E,w,k){P[E.queryCacheKey]??={status:ot,endpointName:E.endpointName},fr(P,E.queryCacheKey,O=>{O.status=ns,O.requestId=w&&O.requestId?O.requestId:k.requestId,E.originalArgs!==void 0&&(O.originalArgs=E.originalArgs),O.startedTimeStamp=k.startedTimeStamp;const L=s[k.arg.endpointName];ni(L)&&"direction"in E&&(O.direction=E.direction)})}function g(P,E,w,k){fr(P,E.arg.queryCacheKey,O=>{if(O.requestId!==E.requestId&&!k)return;const{merge:L}=s[E.arg.endpointName];if(O.status=bn,L)if(O.data!==void 0){const{fulfilledTimeStamp:T,arg:_,baseQueryMeta:A,requestId:H}=E;let N=Kn(O.data,z=>L(z,w,{arg:_.originalArgs,baseQueryMeta:A,fulfilledTimeStamp:T,requestId:H}));O.data=N}else O.data=w;else O.data=s[E.arg.endpointName].structuralSharing??!0?Ls(_e(O.data)?l1(O.data):O.data,w):w;delete O.error,O.fulfilledTimeStamp=E.fulfilledTimeStamp})}const f=ye({name:`${e}/queries`,initialState:pr,reducers:{removeQueryResult:{reducer(P,{payload:{queryCacheKey:E}}){delete P[E]},prepare:un()},cacheEntriesUpserted:{reducer(P,E){for(const w of E.payload){const{queryDescription:k,value:O}=w;p(P,k,!0,{arg:k,requestId:E.meta.requestId,startedTimeStamp:E.meta.timestamp}),g(P,{arg:k,requestId:E.meta.requestId,fulfilledTimeStamp:E.meta.timestamp,baseQueryMeta:{}},O,!0)}},prepare:P=>({payload:P.map(k=>{const{endpointName:O,arg:L,value:T}=k,_=s[O];return{queryDescription:{type:Xn,endpointName:O,originalArgs:k.arg,queryCacheKey:i({queryArgs:L,endpointDefinition:_,endpointName:O})},value:T}}),meta:{[Wr]:!0,requestId:Yr(),timestamp:Date.now()}})},queryResultPatched:{reducer(P,{payload:{queryCacheKey:E,patches:w}}){fr(P,E,k=>{k.data=To(k.data,w.concat())})},prepare:un()}},extraReducers(P){P.addCase(t.pending,(E,{meta:w,meta:{arg:k}})=>{const O=ss(k);p(E,k,O,w)}).addCase(t.fulfilled,(E,{meta:w,payload:k})=>{const O=ss(w.arg);g(E,w,k,O)}).addCase(t.rejected,(E,{meta:{condition:w,arg:k,requestId:O},error:L,payload:T})=>{fr(E,k.queryCacheKey,_=>{if(!w){if(_.requestId!==O)return;_.status=yn,_.error=T??L}})}).addMatcher(l,(E,w)=>{const{queries:k}=a(w);for(const[O,L]of Object.entries(k))(L?.status===bn||L?.status===yn)&&(E[O]=L)})}}),h=ye({name:`${e}/mutations`,initialState:pr,reducers:{removeMutationResult:{reducer(P,{payload:E}){const w=$n(E);w in P&&delete P[w]},prepare:un()}},extraReducers(P){P.addCase(n.pending,(E,{meta:w,meta:{requestId:k,arg:O,startedTimeStamp:L}})=>{O.track&&(E[$n(w)]={requestId:k,status:ns,endpointName:O.endpointName,startedTimeStamp:L})}).addCase(n.fulfilled,(E,{payload:w,meta:k})=>{k.arg.track&&Jo(E,k,O=>{O.requestId===k.requestId&&(O.status=bn,O.data=w,O.fulfilledTimeStamp=k.fulfilledTimeStamp)})}).addCase(n.rejected,(E,{payload:w,error:k,meta:O})=>{O.arg.track&&Jo(E,O,L=>{L.requestId===O.requestId&&(L.status=yn,L.error=w??k)})}).addMatcher(l,(E,w)=>{const{mutations:k}=a(w);for(const[O,L]of Object.entries(k))(L?.status===bn||L?.status===yn)&&O!==L?.requestId&&(E[O]=L)})}}),x={tags:{},keys:{}},m=ye({name:`${e}/invalidation`,initialState:x,reducers:{updateProvidedBy:{reducer(P,E){for(const{queryCacheKey:w,providedTags:k}of E.payload){v(P,w);for(const{type:O,id:L}of k){const T=(P.tags[O]??={})[L||"__internal_without_id"]??=[];T.includes(w)||T.push(w)}P.keys[w]=k}},prepare:un()}},extraReducers(P){P.addCase(f.actions.removeQueryResult,(E,{payload:{queryCacheKey:w}})=>{v(E,w)}).addMatcher(l,(E,w)=>{const{provided:k}=a(w);for(const[O,L]of Object.entries(k.tags??{}))for(const[T,_]of Object.entries(L)){const A=(E.tags[O]??={})[T||"__internal_without_id"]??=[];for(const H of _)A.includes(H)||A.push(H),E.keys[H]=k.keys[H]}}).addMatcher(He(vt(t),Kr(t)),(E,w)=>{S(E,[w])}).addMatcher(f.actions.cacheEntriesUpserted.match,(E,w)=>{const k=w.payload.map(({queryDescription:O,value:L})=>({type:"UNKNOWN",payload:L,meta:{requestStatus:"fulfilled",requestId:"UNKNOWN",arg:O}}));S(E,k)})}});function v(P,E){const w=Xo(P.keys[E]??[]);for(const k of w){const O=k.type,L=k.id??"__internal_without_id",T=P.tags[O]?.[L];T&&(P.tags[O][L]=Xo(T).filter(_=>_!==E))}delete P.keys[E]}function S(P,E){const w=E.map(k=>{const O=ul(k,"providesTags",s,c),{queryCacheKey:L}=k.meta.arg;return{queryCacheKey:L,providedTags:O}});m.caseReducers.updateProvidedBy(P,m.actions.updateProvidedBy(w))}const b=ye({name:`${e}/subscriptions`,initialState:pr,reducers:{updateSubscriptionOptions(P,E){},unsubscribeQueryResult(P,E){},internal_getRTKQSubscriptions(){}}}),C=ye({name:`${e}/internalSubscriptions`,initialState:pr,reducers:{subscriptionsUpdated:{reducer(P,E){return To(P,E.payload)},prepare:un()}}}),y=ye({name:`${e}/config`,initialState:{online:wf(),focused:yf(),middlewareRegistered:!1,...d},reducers:{middlewareRegistered(P,{payload:E}){P.middlewareRegistered=P.middlewareRegistered==="conflict"||o!==E?"conflict":!0}},extraReducers:P=>{P.addCase(Ns,E=>{E.online=!0}).addCase(sl,E=>{E.online=!1}).addCase(Ts,E=>{E.focused=!0}).addCase(il,E=>{E.focused=!1}).addMatcher(l,E=>({...E}))}}),j=Lc({queries:f.reducer,mutations:h.reducer,provided:m.reducer,subscriptions:C.reducer,config:y.reducer}),I=(P,E)=>j(u.match(E)?void 0:P,E),M={...y.actions,...f.actions,...b.actions,...C.actions,...h.actions,...m.actions,resetApiState:u};return{reducer:I,actions:M}}var qe=Symbol.for("RTKQ/skipToken"),fl={status:ot},ea=Kn(fl,()=>{}),ta=Kn(fl,()=>{});function $f({serializeQueryArgs:e,reducerPath:t,createSelector:n}){const i=b=>ea,s=b=>ta;return{buildQuerySelector:g,buildInfiniteQuerySelector:f,buildMutationSelector:h,selectInvalidatedBy:x,selectCachedArgsForQuery:m,selectApiState:a,selectQueries:l,selectMutations:d,selectQueryEntry:c,selectConfig:u};function o(b){return{...b,...Qo(b.status)}}function a(b){return b[t]}function l(b){return a(b)?.queries}function c(b,C){return l(b)?.[C]}function d(b){return a(b)?.mutations}function u(b){return a(b)?.config}function p(b,C,y){return j=>{if(j===qe)return n(i,y);const I=e({queryArgs:j,endpointDefinition:C,endpointName:b});return n(P=>c(P,I)??ea,y)}}function g(b,C){return p(b,C,o)}function f(b,C){const{infiniteQueryOptions:y}=C;function j(I){const M={...I,...Qo(I.status)},{isLoading:P,isError:E,direction:w}=M,k=w==="forward",O=w==="backward";return{...M,hasNextPage:v(y,M.data,M.originalArgs),hasPreviousPage:S(y,M.data,M.originalArgs),isFetchingNextPage:P&&k,isFetchingPreviousPage:P&&O,isFetchNextPageError:E&&k,isFetchPreviousPageError:E&&O}}return p(b,C,j)}function h(){return b=>{let C;return typeof b=="object"?C=$n(b)??qe:C=b,n(C===qe?s:I=>a(I)?.mutations?.[C]??ta,o)}}function x(b,C){const y=b[t],j=new Set,I=rs(C,_s,cl);for(const M of I){const P=y.provided.tags[M.type];if(!P)continue;let E=(M.id!==void 0?P[M.id]:Object.values(P).flat())??[];for(const w of E)j.add(w)}return Array.from(j.values()).flatMap(M=>{const P=y.queries[M];return P?{queryCacheKey:M,endpointName:P.endpointName,originalArgs:P.originalArgs}:[]})}function m(b,C){return rs(Object.values(l(b)),y=>y?.endpointName===C&&y.status!==ot,y=>y.originalArgs)}function v(b,C,y){return C?os(b,C,y)!=null:!1}function S(b,C,y){return!C||!b.getPreviousPageParam?!1:dl(b,C,y)!=null}}var na=WeakMap?new WeakMap:void 0,ra=({endpointName:e,queryArgs:t})=>{let n="";const i=na?.get(t);if(typeof i=="string")n=i;else{const s=JSON.stringify(t,(o,a)=>(a=typeof a=="bigint"?{$bigint:a.toString()}:a,a=xt(a)?Object.keys(a).sort().reduce((l,c)=>(l[c]=a[c],l),{}):a,a));xt(t)&&na?.set(t,s),n=s}return`${e}(${n})`};function pl(...e){return function(n){const i=Dr(d=>n.extractRehydrationInfo?.(d,{reducerPath:n.reducerPath??"api"})),s={reducerPath:"api",keepUnusedDataFor:60,refetchOnMountOrArgChange:!1,refetchOnFocus:!1,refetchOnReconnect:!1,invalidationBehavior:"delayed",...n,extractRehydrationInfo:i,serializeQueryArgs(d){let u=ra;if("serializeQueryArgs"in d.endpointDefinition){const p=d.endpointDefinition.serializeQueryArgs;u=g=>{const f=p(g);return typeof f=="string"?f:ra({...g,queryArgs:f})}}else n.serializeQueryArgs&&(u=n.serializeQueryArgs);return u(d)},tagTypes:[...n.tagTypes||[]]},o={endpointDefinitions:{},batch(d){d()},apiUid:Yr(),extractRehydrationInfo:i,hasRehydrationInfo:Dr(d=>i(d)!=null)},a={injectEndpoints:c,enhanceEndpoints({addTagTypes:d,endpoints:u}){if(d)for(const p of d)s.tagTypes.includes(p)||s.tagTypes.push(p);if(u)for(const[p,g]of Object.entries(u))typeof g=="function"?g(Gt(o,p)):Object.assign(Gt(o,p)||{},g);return a}},l=e.map(d=>d.init(a,s,o));function c(d){const u=d.endpoints({query:p=>({...p,type:Xn}),mutation:p=>({...p,type:ol}),infiniteQuery:p=>({...p,type:al})});for(const[p,g]of Object.entries(u)){if(d.overrideExisting!==!0&&p in o.endpointDefinitions){if(d.overrideExisting==="throw")throw new Error(we(39));continue}o.endpointDefinitions[p]=g;for(const f of l)f.injectEndpoint(p,g)}return a}return a.injectEndpoints({endpoints:n.endpoints})}}function Ye(e,...t){return Object.assign(e,...t)}var Vf=({api:e,queryThunk:t,internalState:n,mwApi:i})=>{const s=`${e.reducerPath}/subscriptions`;let o=null,a=null;const{updateSubscriptionOptions:l,unsubscribeQueryResult:c}=e.internalActions,d=(x,m)=>{if(l.match(m)){const{queryCacheKey:S,requestId:b,options:C}=m.payload,y=x.get(S);return y?.has(b)&&y.set(b,C),!0}if(c.match(m)){const{queryCacheKey:S,requestId:b}=m.payload,C=x.get(S);return C&&C.delete(b),!0}if(e.internalActions.removeQueryResult.match(m))return x.delete(m.payload.queryCacheKey),!0;if(t.pending.match(m)){const{meta:{arg:S,requestId:b}}=m,C=Vr(x,S.queryCacheKey,is);return S.subscribe&&C.set(b,S.subscriptionOptions??C.get(b)??{}),!0}let v=!1;if(t.rejected.match(m)){const{meta:{condition:S,arg:b,requestId:C}}=m;if(S&&b.subscribe){const y=Vr(x,b.queryCacheKey,is);y.set(C,b.subscriptionOptions??y.get(C)??{}),v=!0}}return v},u=()=>n.currentSubscriptions,f={getSubscriptions:u,getSubscriptionCount:x=>u().get(x)?.size??0,isRequestSubscribed:(x,m)=>!!u()?.get(x)?.get(m)};function h(x){return JSON.parse(JSON.stringify(Object.fromEntries([...x].map(([m,v])=>[m,Object.fromEntries(v)]))))}return(x,m)=>{if(o||(o=h(n.currentSubscriptions)),e.util.resetApiState.match(x))return o={},n.currentSubscriptions.clear(),a=null,[!0,!1];if(e.internalActions.internal_getRTKQSubscriptions.match(x))return[!1,f];const v=d(n.currentSubscriptions,x);let S=!0;if(v){a||(a=setTimeout(()=>{const y=h(n.currentSubscriptions),[,j]=zc(o,()=>y);m.next(e.internalActions.subscriptionsUpdated(j)),o=y,a=null},500));const b=typeof x.type=="string"&&!!x.type.startsWith(s),C=t.rejected.match(x)&&x.meta.condition&&!!x.meta.arg.subscribe;S=!b&&!C}return[S,!1]}},zf=2147483647/1e3-1,Ff=({reducerPath:e,api:t,queryThunk:n,context:i,internalState:s,selectors:{selectQueryEntry:o,selectConfig:a},getRunningQueryThunk:l,mwApi:c})=>{const{removeQueryResult:d,unsubscribeQueryResult:u,cacheEntriesUpserted:p}=t.internalActions,g=He(u.match,n.fulfilled,n.rejected,p.match);function f(b){const C=s.currentSubscriptions.get(b);return C?C.size>0:!1}const h={};function x(b){for(const C of b.values())C?.abort?.()}const m=(b,C)=>{const y=C.getState(),j=a(y);if(g(b)){let I;if(p.match(b))I=b.payload.map(M=>M.queryDescription.queryCacheKey);else{const{queryCacheKey:M}=u.match(b)?b.payload:b.meta.arg;I=[M]}v(I,C,j)}if(t.util.resetApiState.match(b)){for(const[I,M]of Object.entries(h))M&&clearTimeout(M),delete h[I];x(s.runningQueries),x(s.runningMutations)}if(i.hasRehydrationInfo(b)){const{queries:I}=i.extractRehydrationInfo(b);v(Object.keys(I),C,j)}};function v(b,C,y){const j=C.getState();for(const I of b){const M=o(j,I);M?.endpointName&&S(I,M.endpointName,C,y)}}function S(b,C,y,j){const M=Gt(i,C)?.keepUnusedDataFor??j.keepUnusedDataFor;if(M===1/0)return;const P=Math.max(0,Math.min(M,zf));if(!f(b)){const E=h[b];E&&clearTimeout(E),h[b]=setTimeout(()=>{if(!f(b)){const w=o(y.getState(),b);w?.endpointName&&y.dispatch(l(w.endpointName,w.originalArgs))?.abort(),y.dispatch(d({queryCacheKey:b}))}delete h[b]},P*1e3)}}return m},ia=new Error("Promise never resolved before cacheEntryRemoved."),qf=({api:e,reducerPath:t,context:n,queryThunk:i,mutationThunk:s,internalState:o,selectors:{selectQueryEntry:a,selectApiState:l}})=>{const c=Ji(i),d=Ji(s),u=vt(i,s),p={},{removeQueryResult:g,removeMutationResult:f,cacheEntriesUpserted:h}=e.internalActions;function x(y,j,I){const M=p[y];M?.valueResolved&&(M.valueResolved({data:j,meta:I}),delete M.valueResolved)}function m(y){const j=p[y];j&&(delete p[y],j.cacheEntryRemoved())}function v(y){const{arg:j,requestId:I}=y.meta,{endpointName:M,originalArgs:P}=j;return[M,P,I]}const S=(y,j,I)=>{const M=b(y);function P(E,w,k,O){const L=a(I,w),T=a(j.getState(),w);!L&&T&&C(E,O,w,j,k)}if(i.pending.match(y)){const[E,w,k]=v(y);P(E,M,k,w)}else if(h.match(y))for(const{queryDescription:E,value:w}of y.payload){const{endpointName:k,originalArgs:O,queryCacheKey:L}=E;P(k,L,y.meta.requestId,O),x(L,w,{})}else if(s.pending.match(y)){if(j.getState()[t].mutations[M]){const[w,k,O]=v(y);C(w,k,M,j,O)}}else if(u(y))x(M,y.payload,y.meta.baseQueryMeta);else if(g.match(y)||f.match(y))m(M);else if(e.util.resetApiState.match(y))for(const E of Object.keys(p))m(E)};function b(y){return c(y)?y.meta.arg.queryCacheKey:d(y)?y.meta.arg.fixedCacheKey??y.meta.requestId:g.match(y)?y.payload.queryCacheKey:f.match(y)?$n(y.payload):""}function C(y,j,I,M,P){const E=Gt(n,y),w=E?.onCacheEntryAdded;if(!w)return;const k={},O=new Promise(N=>{k.cacheEntryRemoved=N}),L=Promise.race([new Promise(N=>{k.valueResolved=N}),O.then(()=>{throw ia})]);L.catch(()=>{}),p[I]=k;const T=e.endpoints[y].select(zr(E)?j:I),_=M.dispatch((N,z,q)=>q),A={...M,getCacheEntry:()=>T(M.getState()),requestId:P,extra:_,updateCachedData:zr(E)?N=>M.dispatch(e.util.updateQueryData(y,j,N)):void 0,cacheDataLoaded:L,cacheEntryRemoved:O},H=w(j,A);Promise.resolve(H).catch(N=>{if(N!==ia)throw N})}return S},Uf=({api:e,context:{apiUid:t},reducerPath:n})=>(i,s)=>{e.util.resetApiState.match(i)&&s.dispatch(e.internalActions.middlewareRegistered(t))},Qf=({reducerPath:e,context:t,context:{endpointDefinitions:n},mutationThunk:i,queryThunk:s,api:o,assertTagType:a,refetchQuery:l,internalState:c})=>{const{removeQueryResult:d}=o.internalActions,u=He(vt(i),Kr(i)),p=He(vt(s,i),Wt(s,i));let g=[],f=0;const h=(v,S)=>{(s.pending.match(v)||i.pending.match(v))&&f++,p(v)&&(f=Math.max(0,f-1)),u(v)?m(ul(v,"invalidatesTags",n,a),S):p(v)?m([],S):o.util.invalidateTags.match(v)&&m(As(v.payload,void 0,void 0,void 0,void 0,a),S)};function x(){return f>0}function m(v,S){const b=S.getState(),C=b[e];if(g.push(...v),C.config.invalidationBehavior==="delayed"&&x())return;const y=g;if(g=[],y.length===0)return;const j=o.util.selectInvalidatedBy(b,y);t.batch(()=>{const I=Array.from(j.values());for(const{queryCacheKey:M}of I){const P=C.queries[M],E=Vr(c.currentSubscriptions,M,is);P&&(E.size===0?S.dispatch(d({queryCacheKey:M})):P.status!==ot&&S.dispatch(l(P)))}})}return h},Zf=({reducerPath:e,queryThunk:t,api:n,refetchQuery:i,internalState:s})=>{const{currentPolls:o,currentSubscriptions:a}=s,l=new Set;let c=null;const d=(m,v)=>{(n.internalActions.updateSubscriptionOptions.match(m)||n.internalActions.unsubscribeQueryResult.match(m))&&u(m.payload.queryCacheKey,v),(t.pending.match(m)||t.rejected.match(m)&&m.meta.condition)&&u(m.meta.arg.queryCacheKey,v),(t.fulfilled.match(m)||t.rejected.match(m)&&!m.meta.condition)&&p(m.meta.arg,v),n.util.resetApiState.match(m)&&(h(),c&&(clearTimeout(c),c=null),l.clear())};function u(m,v){l.add(m),c||(c=setTimeout(()=>{for(const S of l)g({queryCacheKey:S},v);l.clear(),c=null},0))}function p({queryCacheKey:m},v){const S=v.getState()[e],b=S.queries[m],C=a.get(m);if(!b||b.status===ot)return;const{lowestPollingInterval:y,skipPollingIfUnfocused:j}=x(C);if(!Number.isFinite(y))return;const I=o.get(m);I?.timeout&&(clearTimeout(I.timeout),I.timeout=void 0);const M=Date.now()+y;o.set(m,{nextPollTimestamp:M,pollingInterval:y,timeout:setTimeout(()=>{(S.config.focused||!j)&&v.dispatch(i(b)),p({queryCacheKey:m},v)},y)})}function g({queryCacheKey:m},v){const b=v.getState()[e].queries[m],C=a.get(m);if(!b||b.status===ot)return;const{lowestPollingInterval:y}=x(C);if(!Number.isFinite(y)){f(m);return}const j=o.get(m),I=Date.now()+y;(!j||I<j.nextPollTimestamp)&&p({queryCacheKey:m},v)}function f(m){const v=o.get(m);v?.timeout&&clearTimeout(v.timeout),o.delete(m)}function h(){for(const m of o.keys())f(m)}function x(m=new Map){let v=!1,S=Number.POSITIVE_INFINITY;for(const b of m.values())b.pollingInterval&&(S=Math.min(b.pollingInterval,S),v=b.skipPollingIfUnfocused||v);return{lowestPollingInterval:S,skipPollingIfUnfocused:v}}return d},Bf=({api:e,context:t,queryThunk:n,mutationThunk:i})=>{const s=Ms(n,i),o=Wt(n,i),a=vt(n,i),l={};return(d,u)=>{if(s(d)){const{requestId:p,arg:{endpointName:g,originalArgs:f}}=d.meta,h=Gt(t,g),x=h?.onQueryStarted;if(x){const m={},v=new Promise((y,j)=>{m.resolve=y,m.reject=j});v.catch(()=>{}),l[p]=m;const S=e.endpoints[g].select(zr(h)?f:p),b=u.dispatch((y,j,I)=>I),C={...u,getCacheEntry:()=>S(u.getState()),requestId:p,extra:b,updateCachedData:zr(h)?y=>u.dispatch(e.util.updateQueryData(g,f,y)):void 0,queryFulfilled:v};x(f,C)}}else if(a(d)){const{requestId:p,baseQueryMeta:g}=d.meta;l[p]?.resolve({data:d.payload,meta:g}),delete l[p]}else if(o(d)){const{requestId:p,rejectedWithValue:g,baseQueryMeta:f}=d.meta;l[p]?.reject({error:d.payload??d.error,isUnhandledError:!g,meta:f}),delete l[p]}}},Wf=({reducerPath:e,context:t,api:n,refetchQuery:i,internalState:s})=>{const{removeQueryResult:o}=n.internalActions,a=(c,d)=>{Ts.match(c)&&l(d,"refetchOnFocus"),Ns.match(c)&&l(d,"refetchOnReconnect")};function l(c,d){const u=c.getState()[e],p=u.queries,g=s.currentSubscriptions;t.batch(()=>{for(const f of g.keys()){const h=p[f],x=g.get(f);if(!x||!h)continue;const m=[...x.values()];(m.some(S=>S[d]===!0)||m.every(S=>S[d]===void 0)&&u.config[d])&&(x.size===0?c.dispatch(o({queryCacheKey:f})):h.status!==ot&&c.dispatch(i(h)))}})}return a};function Gf(e){const{reducerPath:t,queryThunk:n,api:i,context:s,getInternalState:o}=e,{apiUid:a}=s,l={invalidateTags:je(`${t}/invalidateTags`)},c=g=>g.type.startsWith(`${t}/`),d=[Uf,Ff,Qf,Zf,qf,Bf];return{middleware:g=>{let f=!1;const h=o(g.dispatch),x={...e,internalState:h,refetchQuery:p,isThisApiSliceAction:c,mwApi:g},m=d.map(b=>b(x)),v=Vf(x),S=Wf(x);return b=>C=>{if(!js(C))return b(C);f||(f=!0,g.dispatch(i.internalActions.middlewareRegistered(a)));const y={...g,next:b},j=g.getState(),[I,M]=v(C,y,j);let P;if(I?P=b(C):P=M,g.getState()[t]&&(S(C,y,j),c(C)||s.hasRehydrationInfo(C)))for(const E of m)E(C,y,j);return P}},actions:l};function p(g){return e.api.endpoints[g.endpointName].initiate(g.originalArgs,{subscribe:!1,forceRefetch:!0})}}var sa=Symbol(),hl=({createSelector:e=$}={})=>({name:sa,init(t,{baseQuery:n,tagTypes:i,reducerPath:s,serializeQueryArgs:o,keepUnusedDataFor:a,refetchOnMountOrArgChange:l,refetchOnFocus:c,refetchOnReconnect:d,invalidationBehavior:u,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:f},h){S1();const x=Z=>Z;Object.assign(t,{reducerPath:s,endpoints:{},internalActions:{onOnline:Ns,onOffline:sl,onFocus:Ts,onFocusLost:il},util:{}});const m=$f({serializeQueryArgs:o,reducerPath:s,createSelector:e}),{selectInvalidatedBy:v,selectCachedArgsForQuery:S,buildQuerySelector:b,buildInfiniteQuerySelector:C,buildMutationSelector:y}=m;Ye(t.util,{selectInvalidatedBy:v,selectCachedArgsForQuery:S});const{queryThunk:j,infiniteQueryThunk:I,mutationThunk:M,patchQueryData:P,updateQueryData:E,upsertQueryData:w,prefetch:k,buildMatchThunkActions:O}=Df({baseQuery:n,reducerPath:s,context:h,api:t,serializeQueryArgs:o,assertTagType:x,selectors:m,onSchemaFailure:p,catchSchemaFailure:g,skipSchemaValidation:f}),{reducer:L,actions:T}=Hf({context:h,queryThunk:j,mutationThunk:M,serializeQueryArgs:o,reducerPath:s,assertTagType:x,config:{refetchOnFocus:c,refetchOnReconnect:d,refetchOnMountOrArgChange:l,keepUnusedDataFor:a,reducerPath:s,invalidationBehavior:u}});Ye(t.util,{patchQueryData:P,updateQueryData:E,upsertQueryData:w,prefetch:k,resetApiState:T.resetApiState,upsertQueryEntries:T.cacheEntriesUpserted}),Ye(t.internalActions,T);const _=new WeakMap,A=Z=>Vr(_,Z,()=>({currentSubscriptions:new Map,currentPolls:new Map,runningQueries:new Map,runningMutations:new Map})),{buildInitiateQuery:H,buildInitiateInfiniteQuery:N,buildInitiateMutation:z,getRunningMutationThunk:q,getRunningMutationsThunk:K,getRunningQueriesThunk:Y,getRunningQueryThunk:U}=Af({queryThunk:j,mutationThunk:M,infiniteQueryThunk:I,api:t,serializeQueryArgs:o,context:h,getInternalState:A});Ye(t.util,{getRunningMutationThunk:q,getRunningMutationsThunk:K,getRunningQueryThunk:U,getRunningQueriesThunk:Y});const{middleware:J,actions:ee}=Gf({reducerPath:s,context:h,queryThunk:j,mutationThunk:M,infiniteQueryThunk:I,api:t,assertTagType:x,selectors:m,getRunningQueryThunk:U,getInternalState:A});return Ye(t.util,ee),Ye(t,{reducer:L,middleware:J}),{name:sa,injectEndpoint(Z,G){const B=t,W=B.endpoints[Z]??={};ti(G)&&Ye(W,{name:Z,select:b(Z,G),initiate:H(Z,G)},O(j,Z)),_f(G)&&Ye(W,{name:Z,select:y(),initiate:z(Z)},O(M,Z)),ni(G)&&Ye(W,{name:Z,select:C(Z,G),initiate:N(Z,G)},O(j,Z))}}}});hl();var Si={exports:{}},ki={};/**
 * @license React
 * use-sync-external-store-with-selector.production.js
 *
 * Copyright (c) Meta Platforms, Inc. and affiliates.
 *
 * This source code is licensed under the MIT license found in the
 * LICENSE file in the root directory of this source tree.
 */var oa;function Kf(){if(oa)return ki;oa=1;var e=yc();function t(c,d){return c===d&&(c!==0||1/c===1/d)||c!==c&&d!==d}var n=typeof Object.is=="function"?Object.is:t,i=e.useSyncExternalStore,s=e.useRef,o=e.useEffect,a=e.useMemo,l=e.useDebugValue;return ki.useSyncExternalStoreWithSelector=function(c,d,u,p,g){var f=s(null);if(f.current===null){var h={hasValue:!1,value:null};f.current=h}else h=f.current;f=a(function(){function m(y){if(!v){if(v=!0,S=y,y=p(y),g!==void 0&&h.hasValue){var j=h.value;if(g(j,y))return b=j}return b=y}if(j=b,n(S,y))return j;var I=p(y);return g!==void 0&&g(j,I)?(S=y,j):(S=y,b=I)}var v=!1,S,b,C=u===void 0?null:u;return[function(){return m(d())},C===null?void 0:function(){return m(C())}]},[d,u,p,g]);var x=i(c,f[0],f[1]);return o(function(){h.hasValue=!0,h.value=x},[x]),l(x),x},ki}var aa;function Yf(){return aa||(aa=1,Si.exports=Kf()),Si.exports}var Xf=Yf();const Le=await Q("react");function ml(e){e()}function Jf(){let e=null,t=null;return{clear(){e=null,t=null},notify(){ml(()=>{let n=e;for(;n;)n.callback(),n=n.next})},get(){const n=[];let i=e;for(;i;)n.push(i),i=i.next;return n},subscribe(n){let i=!0;const s=t={callback:n,next:null,prev:t};return s.prev?s.prev.next=s:e=s,function(){!i||e===null||(i=!1,s.next?s.next.prev=s.prev:t=s.prev,s.prev?s.prev.next=s.next:e=s.next)}}}}var ca={notify(){},get:()=>[]};function ep(e,t){let n,i=ca,s=0,o=!1;function a(x){u();const m=i.subscribe(x);let v=!1;return()=>{v||(v=!0,m(),p())}}function l(){i.notify()}function c(){h.onStateChange&&h.onStateChange()}function d(){return o}function u(){s++,n||(n=e.subscribe(c),i=Jf())}function p(){s--,n&&s===0&&(n(),n=void 0,i.clear(),i=ca)}function g(){o||(o=!0,u())}function f(){o&&(o=!1,p())}const h={addNestedSub:a,notifyNestedSubs:l,handleChangeWrapper:c,isSubscribed:d,trySubscribe:g,tryUnsubscribe:f,getListeners:()=>i};return h}var tp=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",np=tp(),rp=()=>typeof navigator<"u"&&navigator.product==="ReactNative",ip=rp(),sp=()=>np||ip?Le.useLayoutEffect:Le.useEffect,op=sp();function la(e,t){return e===t?e!==0||t!==0||1/e===1/t:e!==e&&t!==t}function In(e,t){if(la(e,t))return!0;if(typeof e!="object"||e===null||typeof t!="object"||t===null)return!1;const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;for(let s=0;s<n.length;s++)if(!Object.prototype.hasOwnProperty.call(t,n[s])||!la(e[n[s]],t[n[s]]))return!1;return!0}var ap=Symbol.for("react-redux-context"),cp=typeof globalThis<"u"?globalThis:{};function lp(){if(!Le.createContext)return{};const e=cp[ap]??=new Map;let t=e.get(Le.createContext);return t||(t=Le.createContext(null),e.set(Le.createContext,t)),t}var bt=lp();function dp(e){const{children:t,context:n,serverState:i,store:s}=e,o=Le.useMemo(()=>{const c=ep(s);return{store:s,subscription:c,getServerState:i?()=>i:void 0}},[s,i]),a=Le.useMemo(()=>s.getState(),[s]);op(()=>{const{subscription:c}=o;return c.onStateChange=c.notifyNestedSubs,c.trySubscribe(),a!==s.getState()&&c.notifyNestedSubs(),()=>{c.tryUnsubscribe(),c.onStateChange=void 0}},[o,a]);const l=n||bt;return Le.createElement(l.Provider,{value:o},t)}var up=dp;function Ds(e=bt){return function(){return Le.useContext(e)}}var gl=Ds();function xl(e=bt){const t=e===bt?gl:Ds(e),n=()=>{const{store:i}=t();return i};return Object.assign(n,{withTypes:()=>n}),n}var vl=xl();function fp(e=bt){const t=e===bt?vl:xl(e),n=()=>t().dispatch;return Object.assign(n,{withTypes:()=>n}),n}var Pe=fp(),pp=(e,t)=>e===t;function hp(e=bt){const t=e===bt?gl:Ds(e),n=(i,s={})=>{const{equalityFn:o=pp}=typeof s=="function"?{equalityFn:s}:s,a=t(),{store:l,subscription:c,getServerState:d}=a;Le.useRef(!0);const u=Le.useCallback({[i.name](g){return i(g)}}[i.name],[i]),p=Xf.useSyncExternalStoreWithSelector(c.addNestedSub,l.getState,d||l.getState,u,o);return Le.useDebugValue(p),p};return Object.assign(n,{withTypes:()=>n}),n}var D=hp(),mp=ml;function hr(e){return e.replace(e[0],e[0].toUpperCase())}var gp="query",xp="mutation",vp="infinitequery";function bp(e){return e.type===gp}function yp(e){return e.type===xp}function bl(e){return e.type===vp}function pn(e,...t){return Object.assign(e,...t)}const{useEffect:ft,useRef:ut,useMemo:ke,useContext:$9,useCallback:St,useDebugValue:Ii,useLayoutEffect:wp,useState:da}=await Q("react");var Ei=Symbol();function Pi(e){const t=ut(e),n=ke(()=>Ls(t.current,e),[e]);return ft(()=>{t.current!==n&&(t.current=n)},[n]),n}function Dt(e){const t=ut(e);return ft(()=>{In(t.current,e)||(t.current=e)},[e]),In(t.current,e)?t.current:e}var Cp=()=>typeof window<"u"&&typeof window.document<"u"&&typeof window.document.createElement<"u",jp=Cp(),Sp=()=>typeof navigator<"u"&&navigator.product==="ReactNative",kp=Sp(),Ip=()=>jp||kp?wp:ft,Ep=Ip(),ua=e=>e.isUninitialized?{...e,isUninitialized:!1,isFetching:!0,isLoading:e.data===void 0,status:nl.pending}:e;function Mi(e,...t){const n={};return t.forEach(i=>{n[i]=e[i]}),n}var Oi=["data","status","isLoading","isSuccess","isError","error"];function Pp({api:e,moduleOptions:{batch:t,hooks:{useDispatch:n,useSelector:i,useStore:s},unstable__sideEffectsInRender:o,createSelector:a},serializeQueryArgs:l,context:c}){const d=o?j=>j():ft,u=j=>j.current?.unsubscribe?.(),p=c.endpointDefinitions;return{buildQueryHooks:b,buildInfiniteQueryHooks:C,buildMutationHook:y,usePrefetch:h};function g(j,I,M){if(I?.endpointName&&j.isUninitialized){const{endpointName:L}=I,T=p[L];M!==qe&&l({queryArgs:I.originalArgs,endpointDefinition:T,endpointName:L})===l({queryArgs:M,endpointDefinition:T,endpointName:L})&&(I=void 0)}let P=j.isSuccess?j.data:I?.data;P===void 0&&(P=j.data);const E=P!==void 0,w=j.isLoading,k=(!I||I.isLoading||I.isUninitialized)&&!E&&w,O=j.isSuccess||E&&(w&&!I?.isError||j.isUninitialized);return{...j,data:P,currentData:j.data,isFetching:w,isLoading:k,isSuccess:O}}function f(j,I,M){if(I?.endpointName&&j.isUninitialized){const{endpointName:L}=I,T=p[L];M!==qe&&l({queryArgs:I.originalArgs,endpointDefinition:T,endpointName:L})===l({queryArgs:M,endpointDefinition:T,endpointName:L})&&(I=void 0)}let P=j.isSuccess?j.data:I?.data;P===void 0&&(P=j.data);const E=P!==void 0,w=j.isLoading,k=(!I||I.isLoading||I.isUninitialized)&&!E&&w,O=j.isSuccess||w&&E;return{...j,data:P,currentData:j.data,isFetching:w,isLoading:k,isSuccess:O}}function h(j,I){const M=n(),P=Dt(I);return St((E,w)=>M(e.util.prefetch(j,E,{...P,...w})),[j,M,P])}function x(j,I,{refetchOnReconnect:M,refetchOnFocus:P,refetchOnMountOrArgChange:E,skip:w=!1,pollingInterval:k=0,skipPollingIfUnfocused:O=!1,...L}={}){const{initiate:T}=e.endpoints[j],_=n(),A=ut(void 0);if(!A.current){const B=_(e.internalActions.internal_getRTKQSubscriptions());A.current=B}const H=Pi(w?qe:I),N=Dt({refetchOnReconnect:M,refetchOnFocus:P,pollingInterval:k,skipPollingIfUnfocused:O}),z=L.initialPageParam,q=Dt(z),K=L.refetchCachedPages,Y=Dt(K),U=ut(void 0);let{queryCacheKey:J,requestId:ee}=U.current||{},Z=!1;J&&ee&&(Z=A.current.isRequestSubscribed(J,ee));const G=!Z&&U.current!==void 0;return d(()=>{G&&(U.current=void 0)},[G]),d(()=>{const B=U.current;if(H===qe){B?.unsubscribe(),U.current=void 0;return}const W=U.current?.subscriptionOptions;if(!B||B.arg!==H){B?.unsubscribe();const X=_(T(H,{subscriptionOptions:N,forceRefetch:E,...bl(p[j])?{initialPageParam:q,refetchCachedPages:Y}:{}}));U.current=X}else N!==W&&B.updateSubscriptionOptions(N)},[_,T,E,H,N,G,q,Y,j]),[U,_,T,N]}function m(j,I){return(P,{skip:E=!1,selectFromResult:w}={})=>{const{select:k}=e.endpoints[j],O=Pi(E?qe:P),L=ut(void 0),T=ke(()=>a([k(O),(z,q)=>q,z=>O],I,{memoizeOptions:{resultEqualityCheck:In}}),[k,O]),_=ke(()=>w?a([T],w,{devModeChecks:{identityFunctionCheck:"never"}}):T,[T,w]),A=i(z=>_(z,L.current),In),H=s(),N=T(H.getState(),L.current);return Ep(()=>{L.current=N},[N]),A}}function v(j){ft(()=>()=>{u(j),j.current=void 0},[j])}function S(j){if(!j.current)throw new Error(we(38));return j.current.refetch()}function b(j){const I=(E,w={})=>{const[k]=x(j,E,w);return v(k),ke(()=>({refetch:()=>S(k)}),[k])},M=({refetchOnReconnect:E,refetchOnFocus:w,pollingInterval:k=0,skipPollingIfUnfocused:O=!1}={})=>{const{initiate:L}=e.endpoints[j],T=n(),[_,A]=da(Ei),H=ut(void 0),N=Dt({refetchOnReconnect:E,refetchOnFocus:w,pollingInterval:k,skipPollingIfUnfocused:O});d(()=>{const Y=H.current?.subscriptionOptions;N!==Y&&H.current?.updateSubscriptionOptions(N)},[N]);const z=ut(N);d(()=>{z.current=N},[N]);const q=St(function(Y,U=!1){let J;return t(()=>{u(H),H.current=J=T(L(Y,{subscriptionOptions:z.current,forceRefetch:!U})),A(Y)}),J},[T,L]),K=St(()=>{H.current?.queryCacheKey&&T(e.internalActions.removeQueryResult({queryCacheKey:H.current?.queryCacheKey}))},[T]);return ft(()=>()=>{u(H)},[]),ft(()=>{_!==Ei&&!H.current&&q(_,!0)},[_,q]),ke(()=>[q,_,{reset:K}],[q,_,K])},P=m(j,g);return{useQueryState:P,useQuerySubscription:I,useLazyQuerySubscription:M,useLazyQuery(E){const[w,k,{reset:O}]=M(E),L=P(k,{...E,skip:k===Ei}),T=ke(()=>({lastArg:k}),[k]);return ke(()=>[w,{...L,reset:O},T],[w,L,O,T])},useQuery(E,w){const k=I(E,w),O=P(E,{selectFromResult:E===qe||w?.skip?void 0:ua,...w}),L=Mi(O,...Oi);return Ii(L),ke(()=>({...O,...k}),[O,k])}}}function C(j){const I=(P,E={})=>{const[w,k,O,L]=x(j,P,E),T=ut(L);d(()=>{T.current=L},[L]);const _=E.refetchCachedPages,A=Dt(_),H=St(function(q,K){let Y;return t(()=>{u(w),w.current=Y=k(O(q,{subscriptionOptions:T.current,direction:K}))}),Y},[w,k,O]);v(w);const N=Pi(E.skip?qe:P),z=St(q=>{if(!w.current)throw new Error(we(38));const K={refetchCachedPages:q?.refetchCachedPages??A};return w.current.refetch(K)},[w,A]);return ke(()=>({trigger:H,refetch:z,fetchNextPage:()=>H(N,"forward"),fetchPreviousPage:()=>H(N,"backward")}),[z,H,N])},M=m(j,f);return{useInfiniteQueryState:M,useInfiniteQuerySubscription:I,useInfiniteQuery(P,E){const{refetch:w,fetchNextPage:k,fetchPreviousPage:O}=I(P,E),L=M(P,{selectFromResult:P===qe||E?.skip?void 0:ua,...E}),T=Mi(L,...Oi,"hasNextPage","hasPreviousPage");return Ii(T),ke(()=>({...L,fetchNextPage:k,fetchPreviousPage:O,refetch:w}),[L,k,O,w])}}}function y(j){return({selectFromResult:I,fixedCacheKey:M}={})=>{const{select:P,initiate:E}=e.endpoints[j],w=n(),[k,O]=da();ft(()=>()=>{k?.arg.fixedCacheKey||k?.reset()},[k]);const L=St(function(Y){const U=w(E(Y,{fixedCacheKey:M}));return O(U),U},[w,E,M]),{requestId:T}=k||{},_=ke(()=>P({fixedCacheKey:M,requestId:k?.requestId}),[M,k,P]),A=ke(()=>I?a([_],I):_,[I,_]),H=i(A,In),N=M==null?k?.arg.originalArgs:void 0,z=St(()=>{t(()=>{k&&O(void 0),M&&w(e.internalActions.removeMutationResult({requestId:T,fixedCacheKey:M}))})},[w,M,k,T]),q=Mi(H,...Oi,"endpointName");Ii(q);const K=ke(()=>({...H,originalArgs:N,reset:z}),[H,N,z]);return ke(()=>[L,K],[L,K])}}}var Mp=Symbol(),Op=({batch:e=mp,hooks:t={useDispatch:Pe,useSelector:D,useStore:vl},createSelector:n=$,unstable__sideEffectsInRender:i=!1,...s}={})=>({name:Mp,init(o,{serializeQueryArgs:a},l){const c=o,{buildQueryHooks:d,buildInfiniteQueryHooks:u,buildMutationHook:p,usePrefetch:g}=Pp({api:o,moduleOptions:{batch:e,hooks:t,unstable__sideEffectsInRender:i,createSelector:n},serializeQueryArgs:a,context:l});return pn(c,{usePrefetch:g}),pn(l,{batch:e}),{injectEndpoint(f,h){if(bp(h)){const{useQuery:x,useLazyQuery:m,useLazyQuerySubscription:v,useQueryState:S,useQuerySubscription:b}=d(f);pn(c.endpoints[f],{useQuery:x,useLazyQuery:m,useLazyQuerySubscription:v,useQueryState:S,useQuerySubscription:b}),o[`use${hr(f)}Query`]=x,o[`useLazy${hr(f)}Query`]=m}if(yp(h)){const x=p(f);pn(c.endpoints[f],{useMutation:x}),o[`use${hr(f)}Mutation`]=x}else if(bl(h)){const{useInfiniteQuery:x,useInfiniteQuerySubscription:m,useInfiniteQueryState:v}=u(f);pn(c.endpoints[f],{useInfiniteQuery:x,useInfiniteQuerySubscription:m,useInfiniteQueryState:v}),o[`use${hr(f)}InfiniteQuery`]=x}}}}});await Q("react");var Rp=pl(hl(),Op());const Lp=7;let Hs=Lp,yl=`SLS_${Hs}`;function _p(e){const t=Number(e.split("_").pop());if(isNaN(t)){console.warn("Product id not set, using default product id");return}Hs=t,yl=e}function ri(){return Hs}function pt(){return yl}let as=null;function Tp(e){as=e}function Np(){if(!as)throw new Error("[storeRegistry] Store has not been registered yet.");return as}const wl=ye({name:"product",initialState:{name:"",description:"",images:[],information:"",faq:"",isLoaded:!1},reducers:{productUpdated:(e,{payload:t})=>{e.name=t.productName,e.description=t.productDescription,e.images=t.images||[],e.information=t.productInformation,e.faq=t.productFAQ,e.isLoaded=!0}}}),Ap=wl.reducer,{productUpdated:Dp}=wl.actions,nn=e=>e.product,Cl=$(nn,e=>e.name),Hp=$(nn,e=>e.description),$p=$(nn,e=>e.information),Vp=$(nn,e=>e.images),zp=$(nn,e=>e.faq);$(nn,e=>e.isLoaded);const yt=new URLSearchParams(window.location.search),jl=ye({name:"blueprint",initialState:{active:!1,name:"",description:"",images:[],information:"",faq:"",isPossible:!!yt.has("productConfigId")},reducers:{blueprintUpdated:(e,{payload:t})=>{e.active=!0,e.name=t.name||"",e.description=t.description||"",e.images=t.images||[],e.information=t.information||"",e.faq=t.faq||""}}}),Fp=jl.reducer,{blueprintUpdated:qp}=jl.actions,_t=e=>e.blueprint,rn=$(_t,e=>e.active),Sl=$(_t,e=>e.name),Up=$(_t,e=>e.description),Qp=$(_t,e=>e.images),Zp=$(_t,e=>e.information),Bp=$(_t,e=>e.faq),sn=$(_t,e=>e.isPossible);function ii(){const e=Np().getState(),t=sn(e),n=rn(e),i=Sl(e),s=Cl(e);return t&&n&&i||s}function si(e){if(!window.ClickstreamAnalytics){console.warn("ClickstreamAnalytics not loaded."),console.warn(e);return}ClickstreamAnalytics.record(e)}function kl(e,t=!1){si({name:t?"calc_loaded":"calc_updated",attributes:{job_offering_discount_price:e.offeringDiscountPercent,job_price:e.price,job_unit_price:e.unitPrice,job_user_discount_name:e.userDiscountName,job_user_discount_percent:e.userDiscountPercent},items:[{id:ri(),name:ii(),quantity:e.quantity,price:e.price}]})}function Wp(e){return kl(e,!0)}function Gp(e){return kl(e)}function re({label:e,name:t,value:n}){si({name:"user_changed_calc_input",attributes:{product:ii(),product_id:ri(),input_label:e||"",input_name:t||"",value:n||""}})}function Kp(){si({name:"user_added_to_cart",attributes:{product:ii(),product_id:ri()}})}function Yp(){si({name:"user_clicked_product_si_button",attributes:{product:ii(),product_id:ri()}})}let cs=!1;const Il=ye({name:"quote",initialState:{loading:!0,initialQuoteLoaded:!1,success:!1,price:0,unitPrice:0,quantity:0,totalOunces:0,offeringDiscountPrice:0,userDiscountName:"",userDiscountPercent:0,initialQuote:{loaded:!1,quantity:0,unitPrice:0,price:0,offeringDiscountPrice:0,userDiscountName:"",userDiscountPercent:0}},reducers:{quoteUpdated:(e,{payload:t})=>{e.loading=!1,e.success=!0,e.price=t.price,e.unitPrice=t.unitPrice,e.quantity=t.quantity,e.totalOunces=t.totalOunces,e.offeringDiscountPrice=t.offeringDiscountPrice,e.userDiscountName=t.userDiscountName,e.userDiscountPercent=t.userDiscountPercent,e.initialQuoteLoaded=!0,e.initialQuote.loaded=!0,cs||(e.initialQuote.unitPrice=t.unitPrice,e.initialQuote.price=t.price)}},extraReducers:e=>{e.addMatcher(He(rt.endpoints.updateQuote.matchPending),(t,{payload:n})=>{t.loading=!0})}}),Xp=Il.reducer,{quoteUpdated:ls}=Il.actions,El=xf();El.startListening({actionCreator:ls,effect:({payload:e})=>{cs?Gp(e):Wp(e),cs=!0}});const Ke=e=>e.quote;$(Ke,e=>e.initialQuoteLoaded);const Pl=$(Ke,e=>e.initialQuote),Jp=$(Ke,e=>e.loading);$(Ke,e=>e.success);const $s=$(Ke,e=>e.price||0),e0=$(Ke,e=>e.unitPrice||0),t0=$(Ke,e=>e.quantity||0);$(Ke,e=>e.offeringDiscountPrice||0);$(Ke,e=>e.userDiscountName||"");$(Ke,e=>e.userDiscountPercent||0);const Ml=ye({name:"user",initialState:{},reducers:{userUpdated:(e,{payload:t})=>{}}}),n0=Ml.reducer,{userUpdated:r0}=Ml.actions,Ol={CUSTOM_SIZE_SURCHARGE:149},i0={BOOKLET_SURCHARGE:894},Ir={ONE_DAY:4},ds={SOFT_PROOF:1,NO_PROOF:58},s0=25,o0=25,a0=1,c0=8,l0=ds.SOFT_PROOF,d0=1,Rl=ye({name:"configuration",initialState:{id:null,configVersionId:null,version:0,configurationUrl:"",interiorInk:null,coverSide1Ink:null,coverSide2Ink:null,quantity:s0,pages:c0,quantityPerVersion:o0,versionCount:a0,size:null,pressSheet:{},coverPressSheet:{},laminatingCoverOnly:null,coatingCoverOnly:null,drilling:null,drillHoleSize:null,shrinkWrap:null,variableData:null,proofId:l0,turnTimeId:null},reducers:{coverSide1InkChanged:(e,{payload:t})=>{e.coverSide1Ink=t,e.version+=1},coverSide2InkChanged:(e,{payload:t})=>{e.coverSide2Ink=t,e.version+=1},interiorInkChanged:(e,{payload:t})=>{e.interiorInk=t,e.version+=1},quantityChanged:(e,{payload:t})=>{const n=Number(t);e.quantity=n,e.version+=1},quantityPerVersionChanged:(e,{payload:t})=>{const n=Number(t);n*e.versionCount,e.quantityPerVersion=n,e.version+=1},versionCountChanged:(e,{payload:t})=>{const n=Number(t);n*e.quantityPerVersion,e.versionCount=n,e.version+=1},pagesChanged:(e,{payload:t})=>{e.pages=t,e.version+=1},sizeChanged:(e,{payload:t})=>{e.size=t,e.version+=1},pressSheetChanged:(e,{payload:t})=>{e.pressSheet=t,e.version+=1},coverPressSheetChanged:(e,{payload:t})=>{e.coverPressSheet=t,e.version+=1},proofIdChanged:(e,{payload:t})=>{e.proofId=t,e.version+=1},turnTimeIdChanged:(e,{payload:t})=>{e.turnTimeId=t,e.version+=1},drillingChanged:(e,{payload:t})=>{e.drilling=t,e.version+=1,t||(e.drillHoleSize=null)},drillHoleSizeChanged:(e,{payload:t})=>{e.drillHoleSize=t,e.version+=1},shrinkWrapChanged:(e,{payload:t})=>{e.shrinkWrap=t,e.version+=1},variableDataChanged:(e,{payload:t})=>{e.variableData=t,e.version+=1},laminatingCoverOnlyChanged:(e,{payload:t})=>{e.laminatingCoverOnly=t,e.version+=1},coatingCoverOnlyChanged:(e,{payload:t})=>{e.coatingCoverOnly=t,e.version+=1},configurationUpdated:(e,{payload:t})=>{const{productConfigSessionId:n,productConfigId:i,configurationUrl:s,selections:o}=t;e.id=n,e.configVersionId=i,e.configurationUrl=s,e.interiorInk=o.interiorSide1AndSide2Ink,e.coverSide1Ink=o.coverSide1Ink,e.coverSide2Ink=o.coverSide2Ink,e.quantity=o.quantity,e.pages=o.pages,e.quantityPerVersion=o.versionSelection?.qtyPerVersion,e.versionCount=o.versionSelection?.versionCount,e.size=o.sizeSelection,e.pressSheet={typeId:o.paperSelection?.pressSheetTypeId,weightId:o.paperSelection?.pressSheetWeightId},e.coverPressSheet={typeId:o.paperSelection?.coverPressSheetTypeId,weightId:o.paperSelection?.coverPressSheetWeightId},e.laminatingCoverOnly=o.operationSelections?.laminatingCoverOnly||null,e.coatingCoverOnly=o.operationSelections?.coatingCoverOnly||null,e.drilling=o.operationSelections?.drillingOptions||null,e.drillHoleSize=o.operationSelections?.drillHoleSize||null,e.shrinkWrap=o.operationSelections?.shrinkwrappingService||null,e.variableData=o.operationSelections?.variableDataPersonalization||null,e.proofId=o.proofSelection.proofId,e.turnTimeId=o.turnTimeSelection.turnTimeId}}}),u0=Rl.reducer,{coverSide1InkChanged:f0,coverSide2InkChanged:p0,interiorInkChanged:h0,quantityChanged:Ri,quantityPerVersionChanged:m0,versionCountChanged:g0,pagesChanged:Li,sizeChanged:_i,pressSheetChanged:fa,coverPressSheetChanged:pa,proofIdChanged:x0,turnTimeIdChanged:v0,laminatingCoverOnlyChanged:ha,coatingCoverOnlyChanged:ma,drillingChanged:Ll,drillHoleSizeChanged:b0,shrinkWrapChanged:y0,variableDataChanged:w0,configurationUpdated:ga}=Rl.actions,ue=e=>e.configuration,C0=$(ue,e=>e.configurationUrl),j0=$(ue,e=>e.coverSide1Ink),S0=$(ue,e=>e.coverSide2Ink),k0=$(ue,e=>e.interiorInk),_l=$(ue,e=>e.versionCount>1?e.versionCount*e.quantityPerVersion:e.quantity),I0=$(ue,e=>e.quantityPerVersion),E0=$(ue,e=>e.pages);$(ue,e=>e.folding);const P0=$(ue,e=>e.versionCount),Vs=$(ue,e=>e.size);$(ue,e=>e.operationChoiceAnswersText[Ol.FOLDING]);const M0=$(ue,e=>e.pressSheet),O0=$(ue,e=>e.coverPressSheet),R0=$(ue,e=>e.proofId),Tl=$(ue,e=>e.turnTimeId),L0=$(ue,e=>e.laminatingCoverOnly),_0=$(ue,e=>e.coatingCoverOnly),T0=$(ue,e=>e.drilling),N0=$(ue,e=>e.drillHoleSize),A0=$(ue,e=>e.shrinkWrap),D0=$(ue,e=>e.variableData);function Nl(e){const t=e.versionCount>1;return{...t?{}:{quantity:e.quantity},pages:e.pages,sizeSelection:{width:e.size.width,height:e.size.height,presetDimensionsId:e.size.presetDimensionsId||null},paperSelection:{pressSheetTypeId:e.pressSheet.typeId,pressSheetWeightId:e.pressSheet.weightId,coverPressSheetTypeId:e.coverPressSheet.typeId,coverPressSheetWeightId:e.coverPressSheet.weightId},coverSide1Ink:e.coverSide1Ink,coverSide2Ink:e.coverSide2Ink,interiorSide1AndSide2Ink:e.interiorInk,operationSelections:{laminatingCoverOnly:e.laminatingCoverOnly,coatingCoverOnly:e.coatingCoverOnly,drillingOptions:e.drilling,drillHoleSize:e.drillHoleSize,shrinkwrappingService:e.shrinkWrap,variableDataPersonalization:e.variableData},...t?{versionSelection:{qtyPerVersion:e.quantityPerVersion,versionCount:e.versionCount}}:{},turnTimeSelection:{turnTimeId:e.turnTimeId===Ir.ONE_DAY?e.turnTimeId:null},proofSelection:{proofId:e.proofId}}}function xa(e,t,n){const i=e.versionCount>1;return{userId:t?.id,clientKey:t?.id||n,productInfoId:{siteId:d0,idWithPrefix:pt()},quantity:i?e.versionCount*e.quantityPerVersion:e.quantity,proofId:e.proofId,turnTimeId:e.turnTimeId,quoteDataOverrides:{matchSide1AndSide2Ink:!0,side1InkId:e.interiorInk.id,side2InkId:e.interiorInk.id,coverSide1InkId:e.coverSide1Ink.id,coverSide2InkId:e.coverSide2Ink.id||null,pages:e.pages,...i&&{versionCount:e.versionCount,qtyPerVersion:e.quantityPerVersion},width:e.size.width,height:e.size.height,pressSheetTypeId:e.pressSheet.typeId,pressSheetWeightId:e.pressSheet.weightId,coverPressSheetTypeId:e.coverPressSheet.typeId,coverPressSheetWeightId:e.coverPressSheet.weightId,operationChoices:{...e.coatingCoverOnly?.operationId&&{[e.coatingCoverOnly.operationId]:e.coatingCoverOnly.itemId},...e.laminatingCoverOnly?.operationId&&{[e.laminatingCoverOnly.operationId]:e.laminatingCoverOnly.itemId},...e.drilling?.operationId&&{[e.drilling.operationId]:e.drilling.itemId},...e.drilling?.operationId&&e.drillHoleSize?.operationId&&{[e.drillHoleSize.operationId]:e.drillHoleSize.itemId},...e.shrinkWrap?.operationId&&{[e.shrinkWrap.operationId]:e.shrinkWrap.itemId},...e.variableData?.operationId&&{[e.variableData.operationId]:e.variableData.itemId},...e.size?.presetDimensionsId?{}:{[`${Ol.CUSTOM_SIZE_SURCHARGE}`]:i0.BOOKLET_SURCHARGE}},operationChoiceAnswersText:{...e.drilling?.followUpQuestionAnswer&&{[e.drilling.operationId]:e.drilling.followUpQuestionAnswer}},operationChoiceAnswersInteger:{...e.shrinkWrap?.followUpQuestionAnswer&&{[e.shrinkWrap.operationId]:e.shrinkWrap.followUpQuestionAnswer}}}}}function H0(e){return{...e,name:e.name.replace(/^[^_]*_/,"")}}function Al(e){return function(n){const i=e.find(s=>n.id===s.id);return{...n,...i?{...i}:{}}}}function $0({fillClass:e="fill-primary-brand-500",strokeClass:t="stroke-primary-brand-500"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[r.jsx("path",{className:R(e,t),strokeWidth:"0.48",d:"M11.0001 1.90941C5.97988 1.90941 1.91015 5.97915 1.91015 10.9994C1.91015 16.0197 5.97988 20.0894 11.0001 20.0894C16.0204 20.0894 20.0901 16.0197 20.0901 10.9994C20.0901 5.97915 16.0204 1.90941 11.0001 1.90941ZM0.890146 10.9994C0.890146 5.41582 5.41655 0.889414 11.0001 0.889414C16.5837 0.889414 21.1101 5.41582 21.1101 10.9994C21.1101 16.583 16.5837 21.1094 11.0001 21.1094C5.41655 21.1094 0.890146 16.583 0.890146 10.9994Z"}),r.jsx("path",{className:R(e),d:"M7.28955 14.2893L8.5018 13.5058C8.97487 14.2745 9.80275 14.6441 11.0446 14.6441C12.4194 14.6441 13.1882 14.0971 13.1882 13.1214C13.1882 12.6336 12.9664 12.2049 12.6116 11.9683C12.242 11.717 12.242 11.717 10.7045 11.3622C8.54615 10.8448 7.65914 9.97254 7.65914 8.37592C7.65914 7.31151 8.13221 6.43928 8.97487 5.98099C9.32968 5.78881 9.71405 5.68532 10.3793 5.6114V4H11.902V5.64097C13.0108 5.78881 13.8534 6.29144 14.2674 7.01584L13.0847 7.7698C12.6264 7.14889 11.9464 6.83844 10.9854 6.83844C9.86188 6.83844 9.18184 7.37064 9.18184 8.25765C9.18184 9.18902 9.7584 9.63252 11.4733 10.0465C12.8629 10.3865 13.1586 10.49 13.6908 10.83C14.3561 11.2735 14.7109 12.0127 14.7109 12.9884C14.7109 14.6737 13.7795 15.6198 11.902 15.8712V18H10.3793V15.9007C8.88617 15.7825 7.82176 15.2355 7.28955 14.2893Z"})]})}function V0({className:e="fill-icon-blue"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M20.8392 7.11334C21.1522 7.38468 21.1859 7.85836 20.9146 8.17132L13.3375 16.9104L13.3347 16.9135C12.8623 17.4465 12.0312 17.4762 11.5264 16.9591L11.5222 16.9548L3.11259 8.19955C2.82565 7.90082 2.83521 7.42604 3.13394 7.1391C3.43267 6.85217 3.90745 6.86173 4.19439 7.16046L12.3994 15.7026L19.7812 7.18869C20.0526 6.87573 20.5262 6.84199 20.8392 7.11334Z"})})}function z0({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 36 36",fill:"none",children:[r.jsx("path",{className:e,d:"M0 4C0 1.79086 1.79086 0 4 0H32C34.2091 0 36 1.79086 36 4V32C36 34.2091 34.2091 36 32 36H4C1.79086 36 0 34.2091 0 32V4Z"}),r.jsx("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M28.2107 10.8939C28.7964 11.4797 28.7964 12.4294 28.2107 13.0152L15.0591 26.1667L7.78935 18.8969C7.20356 18.3112 7.20356 17.3614 7.78935 16.7756C8.37513 16.1898 9.32488 16.1898 9.91067 16.7756L15.0591 21.9241L26.0893 10.8939C26.6751 10.3081 27.6249 10.3081 28.2107 10.8939Z"})]})}function F0({className:e="fill-icon-blue"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M20.1611 6.05915C20.454 6.35204 20.454 6.82691 20.1611 7.11981L9.22017 18.0607L3.83893 12.6795C3.54604 12.3866 3.54604 11.9117 3.83893 11.6188C4.13182 11.3259 4.6067 11.3259 4.89959 11.6188L9.22017 15.9394L19.1004 6.05915C19.3933 5.76625 19.8682 5.76625 20.1611 6.05915Z"})})}function zs({className:e="fill-icon-blue"}){return r.jsx("div",{className:"p-[1px]",children:r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[r.jsx("path",{className:e,d:"M0.650024 11C0.650024 5.28388 5.28388 0.650024 11 0.650024C16.7162 0.650024 21.35 5.28388 21.35 11C21.35 16.7162 16.7162 21.35 11 21.35C5.28388 21.35 0.650024 16.7162 0.650024 11Z"}),r.jsx("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M16.1053 7.29169C16.3982 7.58458 16.3982 8.05946 16.1053 8.35235L9.52955 14.9281L5.89466 11.2932C5.60176 11.0003 5.60176 10.5254 5.89466 10.2325C6.18755 9.93966 6.66242 9.93966 6.95532 10.2326L9.52955 12.8068L15.0447 7.29169C15.3375 6.9988 15.8124 6.9988 16.1053 7.29169Z"})]})})}function q0({className:e="fill-icon-blue"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"32",height:"32",viewBox:"0 0 32 32",fill:"none",children:r.jsx("circle",{cx:"16",cy:"16",r:"16",fill:"#F1F1F1"})})}function U0({className:e="fill-icon-medium"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M12 20.75C16.8325 20.75 20.75 16.8325 20.75 12C20.75 7.16751 16.8325 3.25 12 3.25C7.16751 3.25 3.25 7.16751 3.25 12C3.25 16.8325 7.16751 20.75 12 20.75ZM12 22.25C17.6609 22.25 22.25 17.6609 22.25 12C22.25 6.33908 17.6609 1.75 12 1.75C6.33908 1.75 1.75 6.33908 1.75 12C1.75 17.6609 6.33908 22.25 12 22.25Z"})})}function Q0({className:e="fill-icon-medium"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"25",viewBox:"0 0 24 25",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M20.6903 4.54758C20.9832 4.84048 20.9832 5.31535 20.6903 5.60824L4.85031 21.4482C4.55742 21.7411 4.08254 21.7411 3.78965 21.4482C3.49676 21.1553 3.49676 20.6805 3.78965 20.3876L19.6297 4.54758C19.9225 4.25469 20.3974 4.25469 20.6903 4.54758Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M20.6903 21.4482C20.3974 21.7411 19.9225 21.7411 19.6296 21.4482L3.78962 5.60824C3.49672 5.31535 3.49672 4.84047 3.78962 4.54758C4.08251 4.25469 4.55738 4.25469 4.85028 4.54758L20.6903 20.3876C20.9832 20.6805 20.9832 21.1553 20.6903 21.4482Z"})]})}function Z0({className:e="fill-icon-medium"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"21",height:"20",viewBox:"0 0 21 20",fill:"none",children:r.jsx("path",{className:e,d:"M16.4875 2.24121H7.24168C6.89585 2.24121 6.61668 2.52038 6.61668 2.86621V4.97038H4.51251C4.16668 4.97038 3.88751 5.24954 3.88751 5.59538V17.1329C3.88751 17.4787 4.16668 17.7579 4.51251 17.7579H13.7583C14.1042 17.7579 14.3833 17.4787 14.3833 17.1329V15.0287H16.4875C16.8333 15.0287 17.1125 14.7495 17.1125 14.4037V2.86621C17.1125 2.52038 16.8333 2.24121 16.4875 2.24121ZM13.1333 16.5079H5.13751V6.22038H13.1333V16.5079ZM15.8625 13.7787H14.3833V5.59538C14.3833 5.24954 14.1042 4.97038 13.7583 4.97038H7.86668V3.49121H15.8625V13.7787Z"})})}function B0({className:e="fill-primary-brand-500"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[r.jsxs("mask",{id:"path-1-outside-1_1820_14345",maskUnits:"userSpaceOnUse",x:"2",y:"0.412109",width:"20",height:"23",fill:"black",children:[r.jsx("rect",{fill:"white",x:"2",y:"0.412109",width:"20",height:"23"}),r.jsx("path",{fillRule:"evenodd",clipRule:"evenodd",d:"M10.0802 19.2095C10.7084 19.3466 11.35 19.4152 11.9935 19.4152C12.7068 19.4152 13.4214 19.3305 14.1203 19.1612C18.9421 17.9916 21.9141 13.1167 20.746 8.2949C20.1791 5.96005 18.7369 3.98397 16.6848 2.7326C14.6326 1.47979 12.216 1.10237 9.8797 1.66921C5.0579 2.83879 2.08589 7.7137 3.25403 12.5369C3.77352 14.6781 5.05503 16.5494 6.86321 17.8051C7.09569 17.9658 7.4157 17.9084 7.57786 17.6759C7.73859 17.4434 7.68119 17.1234 7.44871 16.9612C5.84718 15.8491 4.71205 14.1916 4.2514 12.2944C3.21672 8.02224 5.85005 3.7027 10.1222 2.66658C12.1916 2.16431 14.3298 2.50012 16.148 3.60799C17.9663 4.71585 19.2449 6.46663 19.7457 8.53599C20.7818 12.8082 18.1485 17.1277 13.8763 18.1638C12.5989 18.4735 11.2585 18.4623 9.99668 18.1346C9.99503 17.5826 10.0581 17.0399 10.1851 16.5114C10.5067 16.5933 10.8631 16.6326 11.2388 16.6326C12.4988 16.6326 13.9798 16.1863 15.1407 15.3956C16.7193 14.3221 17.5889 12.7307 17.5889 10.9167C17.5889 6.77946 14.1104 4.4934 12.6064 3.69837C12.4242 3.60079 12.2003 3.61945 12.0396 3.75147C11.8788 3.8835 11.8128 4.09445 11.8731 4.29249C11.8889 4.34989 12.2233 5.72899 9.92142 6.93014C7.522 8.18438 6.87766 9.80744 6.75855 10.9483C6.61648 12.3145 7.18763 13.7438 8.2137 14.5876C8.43183 14.767 8.75615 14.7354 8.93553 14.5173C9.11492 14.2992 9.08478 13.9749 8.86521 13.7955C8.28258 13.3162 7.64828 12.3116 7.77887 11.0559C7.87072 10.1648 8.40026 8.88469 10.3964 7.8414C12.1659 6.91866 12.7255 5.82514 12.8748 5.04159C14.3629 5.99017 16.5629 7.90167 16.5629 10.9182C16.5629 12.7938 15.4765 13.9275 14.5638 14.5489C13.1892 15.4839 11.5122 15.7626 10.5008 15.5313C10.8722 14.6196 11.4477 13.7626 12.2232 12.9875C15.0374 10.1748 14.1247 7.4051 14.0845 7.28886C13.9927 7.02194 13.7028 6.8813 13.4359 6.97171C13.1675 7.06212 13.024 7.352 13.113 7.62036C13.1445 7.7122 13.8391 9.92076 11.4971 12.2614C8.73604 15.0224 8.19932 18.6833 10.0262 22.3054C10.1166 22.4847 10.2974 22.5881 10.4854 22.5881C10.5629 22.5881 10.6418 22.5694 10.7164 22.5321C10.969 22.4044 11.0709 22.0958 10.9432 21.8433C10.4984 20.9617 10.2116 20.078 10.0802 19.2095Z"})]}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M10.0802 19.2095C10.7084 19.3466 11.35 19.4152 11.9935 19.4152C12.7068 19.4152 13.4214 19.3305 14.1203 19.1612C18.9421 17.9916 21.9141 13.1167 20.746 8.2949C20.1791 5.96005 18.7369 3.98397 16.6848 2.7326C14.6326 1.47979 12.216 1.10237 9.8797 1.66921C5.0579 2.83879 2.08589 7.7137 3.25403 12.5369C3.77352 14.6781 5.05503 16.5494 6.86321 17.8051C7.09569 17.9658 7.4157 17.9084 7.57786 17.6759C7.73859 17.4434 7.68119 17.1234 7.44871 16.9612C5.84718 15.8491 4.71205 14.1916 4.2514 12.2944C3.21672 8.02224 5.85005 3.7027 10.1222 2.66658C12.1916 2.16431 14.3298 2.50012 16.148 3.60799C17.9663 4.71585 19.2449 6.46663 19.7457 8.53599C20.7818 12.8082 18.1485 17.1277 13.8763 18.1638C12.5989 18.4735 11.2585 18.4623 9.99668 18.1346C9.99503 17.5826 10.0581 17.0399 10.1851 16.5114C10.5067 16.5933 10.8631 16.6326 11.2388 16.6326C12.4988 16.6326 13.9798 16.1863 15.1407 15.3956C16.7193 14.3221 17.5889 12.7307 17.5889 10.9167C17.5889 6.77946 14.1104 4.4934 12.6064 3.69837C12.4242 3.60079 12.2003 3.61945 12.0396 3.75147C11.8788 3.8835 11.8128 4.09445 11.8731 4.29249C11.8889 4.34989 12.2233 5.72899 9.92142 6.93014C7.522 8.18438 6.87766 9.80744 6.75855 10.9483C6.61648 12.3145 7.18763 13.7438 8.2137 14.5876C8.43183 14.767 8.75615 14.7354 8.93553 14.5173C9.11492 14.2992 9.08478 13.9749 8.86521 13.7955C8.28258 13.3162 7.64828 12.3116 7.77887 11.0559C7.87072 10.1648 8.40026 8.88469 10.3964 7.8414C12.1659 6.91866 12.7255 5.82514 12.8748 5.04159C14.3629 5.99017 16.5629 7.90167 16.5629 10.9182C16.5629 12.7938 15.4765 13.9275 14.5638 14.5489C13.1892 15.4839 11.5122 15.7626 10.5008 15.5313C10.8722 14.6196 11.4477 13.7626 12.2232 12.9875C15.0374 10.1748 14.1247 7.4051 14.0845 7.28886C13.9927 7.02194 13.7028 6.8813 13.4359 6.97171C13.1675 7.06212 13.024 7.352 13.113 7.62036C13.1445 7.7122 13.8391 9.92076 11.4971 12.2614C8.73604 15.0224 8.19932 18.6833 10.0262 22.3054C10.1166 22.4847 10.2974 22.5881 10.4854 22.5881C10.5629 22.5881 10.6418 22.5694 10.7164 22.5321C10.969 22.4044 11.0709 22.0958 10.9432 21.8433C10.4984 20.9617 10.2116 20.078 10.0802 19.2095Z"}),r.jsx("path",{className:e,d:"M10.0802 19.2095L10.1068 19.0873L9.92942 19.0486L9.95659 19.2282L10.0802 19.2095ZM14.1203 19.1612L14.1497 19.2827L14.1498 19.2827L14.1203 19.1612ZM20.746 8.2949L20.8675 8.26547L20.8674 8.26541L20.746 8.2949ZM16.6848 2.7326L16.6196 2.83929L16.6197 2.83932L16.6848 2.7326ZM9.8797 1.66921L9.90917 1.79069L9.90917 1.79069L9.8797 1.66921ZM3.25403 12.5369L3.13254 12.5664L3.13256 12.5664L3.25403 12.5369ZM6.86321 17.8051L6.79191 17.9077L6.79212 17.9079L6.86321 17.8051ZM7.57786 17.6759L7.68039 17.7474L7.68068 17.747L7.57786 17.6759ZM7.44871 16.9612L7.52022 16.8587L7.52001 16.8586L7.44871 16.9612ZM4.2514 12.2944L4.12991 12.3238L4.12993 12.3239L4.2514 12.2944ZM10.1222 2.66658L10.1517 2.78806L10.1517 2.78806L10.1222 2.66658ZM16.148 3.60799L16.083 3.71473L16.148 3.60799ZM19.7457 8.53599L19.6242 8.56539L19.6243 8.56545L19.7457 8.53599ZM13.8763 18.1638L13.9058 18.2853L13.9058 18.2853L13.8763 18.1638ZM9.99668 18.1346L9.87168 18.135L9.87197 18.2314L9.96526 18.2556L9.99668 18.1346ZM10.1851 16.5114L10.2159 16.3902L10.0932 16.359L10.0636 16.4821L10.1851 16.5114ZM15.1407 15.3956L15.0704 15.2922L15.0704 15.2923L15.1407 15.3956ZM12.6064 3.69837L12.5474 3.80857L12.548 3.80888L12.6064 3.69837ZM12.0396 3.75147L11.9602 3.65488V3.65488L12.0396 3.75147ZM11.8731 4.29249L11.9937 4.25933L11.9927 4.2561L11.8731 4.29249ZM9.92142 6.93014L9.86359 6.81932L9.86351 6.81936L9.92142 6.93014ZM6.75855 10.9483L6.63422 10.9353L6.63422 10.9354L6.75855 10.9483ZM8.2137 14.5876L8.1343 14.6842H8.1343L8.2137 14.5876ZM8.93553 14.5173L8.83899 14.4379L8.93553 14.5173ZM8.86521 13.7955L8.7858 13.892L8.78613 13.8923L8.86521 13.7955ZM7.77887 11.0559L7.9032 11.0689L7.90322 11.0688L7.77887 11.0559ZM10.3964 7.8414L10.3386 7.73057L10.3385 7.73062L10.3964 7.8414ZM12.8748 5.04159L12.942 4.93619L12.7865 4.83708L12.752 5.0182L12.8748 5.04159ZM14.5638 14.5489L14.6341 14.6522L14.6342 14.6522L14.5638 14.5489ZM10.5008 15.5313L10.3851 15.4841L10.3296 15.6203L10.473 15.6531L10.5008 15.5313ZM12.2232 12.9875L12.3116 13.0759L12.3116 13.0759L12.2232 12.9875ZM14.0845 7.28886L13.9663 7.32953L13.9664 7.3297L14.0845 7.28886ZM13.4359 6.97171L13.4758 7.09017L13.476 7.0901L13.4359 6.97171ZM13.113 7.62036L12.9943 7.6597L12.9948 7.66099L13.113 7.62036ZM11.4971 12.2614L11.4087 12.1729L11.4087 12.173L11.4971 12.2614ZM10.0262 22.3054L10.1378 22.2491L10.1378 22.2491L10.0262 22.3054ZM10.7164 22.5321L10.7723 22.6439L10.7728 22.6436L10.7164 22.5321ZM10.9432 21.8433L10.8316 21.8996L10.8316 21.8997L10.9432 21.8433ZM11.9935 19.2902C11.3588 19.2902 10.7263 19.2226 10.1068 19.0873L10.0535 19.3316C10.6906 19.4707 11.3411 19.5402 11.9935 19.5402V19.2902ZM14.0909 19.0397C13.4017 19.2067 12.6969 19.2902 11.9935 19.2902V19.5402C12.7166 19.5402 13.4412 19.4544 14.1497 19.2827L14.0909 19.0397ZM20.6245 8.32433C21.7764 13.0791 18.8455 17.8864 14.0908 19.0397L14.1498 19.2827C19.0387 18.0968 22.0518 13.1544 20.8675 8.26547L20.6245 8.32433ZM16.6197 2.83932C18.6435 4.07344 20.0655 6.02173 20.6245 8.32439L20.8674 8.26541C20.2928 5.89837 18.8303 3.89451 16.7498 2.62587L16.6197 2.83932ZM9.90917 1.79069C12.2132 1.23166 14.5958 1.60377 16.6196 2.83929L16.7499 2.62591C14.6694 1.3558 12.2187 0.973067 9.85023 1.54774L9.90917 1.79069ZM3.37552 12.5075C2.22362 7.75133 5.15447 2.94399 9.90917 1.79069L9.85023 1.54774C4.96134 2.73359 1.94817 7.67607 3.13254 12.5664L3.37552 12.5075ZM6.9345 17.7024C5.15149 16.4642 3.8878 14.6189 3.37551 12.5075L3.13256 12.5664C3.65924 14.7372 4.95857 16.6346 6.79191 17.9077L6.9345 17.7024ZM7.47534 17.6044C7.35256 17.7804 7.11016 17.8238 6.93429 17.7022L6.79212 17.9079C7.08121 18.1077 7.47884 18.0364 7.68039 17.7474L7.47534 17.6044ZM7.3772 17.0638C7.55322 17.1865 7.59663 17.429 7.47505 17.6048L7.68068 17.747C7.88055 17.4579 7.80916 17.0603 7.52022 16.8587L7.3772 17.0638ZM4.12993 12.3239C4.59778 14.2507 5.75072 15.9343 7.37741 17.0639L7.52001 16.8586C5.94365 15.7639 4.82633 14.1324 4.37287 12.2649L4.12993 12.3239ZM10.0928 2.54511C5.7535 3.59749 3.07899 7.9846 4.12991 12.3238L4.37289 12.265C3.35445 8.05988 5.94661 3.80791 10.1517 2.78806L10.0928 2.54511ZM16.2131 3.50124C14.3666 2.37618 12.1944 2.03499 10.0927 2.54511L10.1517 2.78806C12.1887 2.29363 14.293 2.62405 16.083 3.71473L16.2131 3.50124ZM19.8672 8.50659C19.3586 6.40495 18.0596 4.62636 16.2131 3.50124L16.083 3.71473C17.8729 4.80535 19.1312 6.52831 19.6242 8.56539L19.8672 8.50659ZM13.9058 18.2853C18.2451 17.2329 20.9196 12.8458 19.8672 8.50653L19.6243 8.56545C20.6441 12.7705 18.052 17.0225 13.8469 18.0423L13.9058 18.2853ZM9.96526 18.2556C11.2471 18.5885 12.6084 18.5998 13.9058 18.2853L13.8469 18.0423C12.5894 18.3472 11.2699 18.3362 10.0281 18.0136L9.96526 18.2556ZM10.1217 18.1343C10.1201 17.592 10.182 17.0593 10.3066 16.5406L10.0636 16.4821C9.93416 17.0205 9.87001 17.5731 9.87168 18.135L10.1217 18.1343ZM10.1542 16.6325C10.4877 16.7174 10.8547 16.7576 11.2388 16.7576V16.5076C10.8715 16.5076 10.5257 16.4691 10.2159 16.3902L10.1542 16.6325ZM11.2388 16.7576C12.5246 16.7576 14.03 16.3033 15.2111 15.4989L15.0704 15.2923C13.9295 16.0693 12.473 16.5076 11.2388 16.5076V16.7576ZM15.211 15.4989C16.8217 14.4037 17.7139 12.7745 17.7139 10.9167H17.4639C17.4639 12.6868 16.6169 14.2406 15.0704 15.2922L15.211 15.4989ZM17.7139 10.9167C17.7139 6.70283 14.1732 4.38522 12.6648 3.58787L12.548 3.80888C14.0475 4.60158 17.4639 6.85608 17.4639 10.9167H17.7139ZM12.6654 3.58818C12.4399 3.46742 12.1612 3.48978 11.9602 3.65488L12.1189 3.84806C12.2394 3.74912 12.4084 3.73416 12.5474 3.80857L12.6654 3.58818ZM11.9602 3.65488C11.7613 3.81824 11.6782 4.08131 11.7535 4.32889L11.9927 4.2561C11.9475 4.10759 11.9963 3.94875 12.1189 3.84806L11.9602 3.65488ZM11.7526 4.32563C11.7526 4.32563 11.7526 4.32566 11.7526 4.32572C11.7526 4.32578 11.7526 4.32587 11.7527 4.32599C11.7527 4.32622 11.7528 4.32654 11.7529 4.32696C11.7531 4.32781 11.7534 4.32899 11.7538 4.33051C11.7545 4.33353 11.7555 4.33781 11.7566 4.34328C11.7588 4.35422 11.7616 4.36984 11.7643 4.38979C11.7697 4.42968 11.7746 4.48669 11.7735 4.55801C11.7713 4.70043 11.7452 4.90036 11.6504 5.13572C11.4617 5.60437 10.9943 6.2293 9.86359 6.81932L9.97925 7.04096C11.1504 6.42982 11.6667 5.76463 11.8823 5.2291C12.0973 4.69521 12.0067 4.30691 11.9936 4.25935L11.7526 4.32563ZM9.86351 6.81936C7.42648 8.09327 6.75763 9.75333 6.63422 10.9353L6.88287 10.9613C6.99769 9.86154 7.61752 8.2755 9.97933 7.04092L9.86351 6.81936ZM6.63422 10.9354C6.48799 12.3415 7.07451 13.8126 8.1343 14.6842L8.2931 14.4911C7.30075 13.675 6.74496 12.2874 6.88288 10.9612L6.63422 10.9354ZM8.1343 14.6842C8.40574 14.9074 8.80884 14.8682 9.03208 14.5967L8.83899 14.4379C8.70347 14.6027 8.45792 14.6266 8.29309 14.4911L8.1343 14.6842ZM9.03208 14.5967C9.25495 14.3257 9.218 13.9223 8.9443 13.6987L8.78613 13.8923C8.95155 14.0274 8.97488 14.2727 8.83899 14.4379L9.03208 14.5967ZM8.94463 13.6989C8.3881 13.2411 7.77773 12.2754 7.9032 11.0689L7.65455 11.043C7.51884 12.3479 8.17706 13.3912 8.7858 13.892L8.94463 13.6989ZM7.90322 11.0688C7.99047 10.2221 8.49281 8.97736 10.4543 7.95218L10.3385 7.73062C8.3077 8.79202 7.75096 10.1074 7.65453 11.0431L7.90322 11.0688ZM10.4542 7.95224C12.2536 7.01387 12.8404 5.89024 12.9976 5.06498L12.752 5.0182C12.6107 5.76003 12.0781 6.82344 10.3386 7.73057L10.4542 7.95224ZM12.8076 5.147C14.2861 6.08943 16.4379 7.9683 16.4379 10.9182H16.6879C16.6879 7.83504 14.4398 5.89091 12.942 4.93619L12.8076 5.147ZM16.4379 10.9182C16.4379 12.7372 15.3869 13.8373 14.4935 14.4456L14.6342 14.6522C15.5662 14.0177 16.6879 12.8504 16.6879 10.9182H16.4379ZM14.4935 14.4455C13.143 15.3642 11.5011 15.6319 10.5287 15.4094L10.473 15.6531C11.5234 15.8934 13.2355 15.6036 14.6341 14.6522L14.4935 14.4455ZM10.6166 15.5784C10.9812 14.6834 11.5468 13.8402 12.3116 13.0759L12.1349 12.8991C11.3485 13.685 10.7633 14.5557 10.3851 15.4841L10.6166 15.5784ZM12.3116 13.0759C15.1741 10.2149 14.2504 7.38624 14.2026 7.24802L13.9664 7.3297C13.9989 7.42396 14.9007 10.1347 12.1349 12.8991L12.3116 13.0759ZM14.2027 7.24819C14.0883 6.91563 13.7273 6.74103 13.3958 6.85332L13.476 7.0901C13.6783 7.02157 13.897 7.12824 13.9663 7.32953L14.2027 7.24819ZM13.3959 6.85325C13.062 6.96575 12.8838 7.3264 12.9943 7.6597L13.2316 7.58102C13.1642 7.3776 13.273 7.15849 13.4758 7.09017L13.3959 6.85325ZM12.9948 7.66099C13.0172 7.72632 13.7049 9.87814 11.4087 12.1729L11.5855 12.3498C13.9733 9.96339 13.2719 7.69808 13.2312 7.57972L12.9948 7.66099ZM11.4087 12.173C8.60752 14.9742 8.06469 18.6939 9.91455 22.3616L10.1378 22.2491C8.33396 18.6726 8.86455 15.0707 11.5855 12.3497L11.4087 12.173ZM9.91453 22.3616C10.027 22.5848 10.252 22.7131 10.4854 22.7131V22.4631C10.3428 22.4631 10.2061 22.3847 10.1378 22.2491L9.91453 22.3616ZM10.4854 22.7131C10.583 22.7131 10.681 22.6896 10.7723 22.6439L10.6605 22.4203C10.6026 22.4493 10.5427 22.4631 10.4854 22.4631V22.7131ZM10.7728 22.6436C11.0868 22.4849 11.2137 22.1013 11.0547 21.7869L10.8316 21.8997C10.9281 22.0904 10.8512 22.3239 10.66 22.4205L10.7728 22.6436ZM11.0548 21.787C10.6154 20.9161 10.333 20.045 10.2038 19.1908L9.95659 19.2282C10.0902 20.111 10.3814 21.0073 10.8316 21.8996L11.0548 21.787Z",mask:"url(#path-1-outside-1_1820_14345)"})]})}function on({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"17",height:"16",viewBox:"0 0 17 16",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M8.42979 2.09961C5.17131 2.09961 2.52979 4.74113 2.52979 7.99961C2.52979 11.2581 5.17131 13.8996 8.42979 13.8996C11.6883 13.8996 14.3298 11.2581 14.3298 7.99961C14.3298 4.74113 11.6883 2.09961 8.42979 2.09961ZM1.52979 7.99961C1.52979 4.18885 4.61902 1.09961 8.42979 1.09961C12.2406 1.09961 15.3298 4.18885 15.3298 7.99961C15.3298 11.8104 12.2406 14.8996 8.42979 14.8996C4.61902 14.8996 1.52979 11.8104 1.52979 7.99961Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M8.25642 5.29961C7.5666 5.29961 6.99642 5.86786 6.99642 6.58246C6.99642 6.85861 6.77256 7.08246 6.49642 7.08246C6.22028 7.08246 5.99642 6.85861 5.99642 6.58246C5.99642 5.32778 7.00219 4.29961 8.25642 4.29961C9.51065 4.29961 10.5164 5.32778 10.5164 6.58246C10.5164 7.11888 10.381 7.52177 10.139 7.83918C9.92714 8.11713 9.65196 8.29856 9.45065 8.43129C9.43762 8.43988 9.42489 8.44827 9.41252 8.45646C9.1881 8.60511 9.0441 8.70974 8.9398 8.85738C8.84568 8.99061 8.75642 9.2015 8.75642 9.59961C8.75642 9.87575 8.53256 10.0996 8.25642 10.0996C7.98028 10.0996 7.75642 9.87575 7.75642 9.59961C7.75642 9.03771 7.88716 8.61432 8.12304 8.2804C8.34784 7.96218 8.64238 7.7671 8.85773 7.62446L8.86032 7.62275C9.09676 7.46614 9.23942 7.3698 9.34379 7.23289C9.43181 7.11744 9.51642 6.93747 9.51642 6.58246C9.51642 5.86786 8.94624 5.29961 8.25642 5.29961Z"}),r.jsx("path",{className:e,d:"M8.73645 11.3596C8.73645 11.6247 8.52155 11.8396 8.25645 11.8396C7.99135 11.8396 7.77645 11.6247 7.77645 11.3596C7.77645 11.0945 7.99135 10.8796 8.25645 10.8796C8.52155 10.8796 8.73645 11.0945 8.73645 11.3596Z"})]})}function W0({className:e="fill-icon-info"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"22",height:"22",viewBox:"0 0 22 22",fill:"none",children:[r.jsx("path",{className:e,d:"M0.650024 11C0.650024 5.28385 5.28388 0.649994 11 0.649994C16.7162 0.649994 21.35 5.28385 21.35 11C21.35 16.7161 16.7162 21.35 11 21.35C5.28388 21.35 0.650024 16.7161 0.650024 11Z"}),r.jsx("path",{fill:"white",fillRule:"evenodd",clipRule:"evenodd",d:"M11.75 17L11.75 9L10.25 9L10.25 17L11.75 17ZM11 5C10.4477 5 10 5.44772 10 6C10 6.55228 10.4477 7 11 7C11.5523 7 12 6.55228 12 6C12 5.44772 11.5523 5 11 5Z"})]})}function G0(){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"23",height:"26",viewBox:"0 0 23 26",fill:"none",children:r.jsx("path",{d:"M22.9385 25.3618C22.9385 25.3618 19.1593 23.9258 16.1017 22.7754H3.2433C1.7209 22.7754 0.487305 21.5114 0.487305 19.953V3.409C0.487305 1.8514 1.7209 0.587402 3.2433 0.587402H20.1809C21.7033 0.587402 22.9377 1.8514 22.9377 3.409V17.6578L22.9385 17.657V25.3618ZM19.6201 16.085C19.3561 15.7698 18.8913 15.7338 18.5841 16.0034C18.5601 16.0242 16.1665 18.0802 11.7113 18.0802C7.3129 18.0802 4.8825 16.0386 4.8385 16.0018C4.5305 15.733 4.0681 15.7706 3.8041 16.085C3.5393 16.401 3.5761 16.8754 3.8841 17.1466C3.9985 17.2458 6.7209 19.585 11.7113 19.585C16.7041 19.585 19.4273 17.2458 19.5401 17.1466C19.8481 16.8754 19.8849 16.401 19.6201 16.085Z",fill:"white"})})}function K0({className:e="stroke-primary-brand-500"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[r.jsx("g",{clipPath:"url(#clip0_1820_14349)",children:r.jsx("path",{className:e,strokeWidth:"1.5",d:"M15.735 14.986L16.4483 14.7543L15.735 14.986L17.5893 20.6931L12.7346 17.1659C12.2965 16.8476 11.7033 16.8476 11.2651 17.1659L6.41042 20.6931L8.26476 14.986C8.4321 14.471 8.24878 13.9068 7.81067 13.5885L7.36983 14.1953L7.81067 13.5885L2.95595 10.0613H8.95672C9.49825 10.0613 9.97819 9.71263 10.1455 9.1976L11.9999 3.49053L13.8542 9.1976C14.0216 9.71263 14.5015 10.0613 15.043 10.0613H21.0438L16.1891 13.5885C15.751 13.9068 15.5677 14.471 15.735 14.986ZM12.2376 2.75876C12.2376 2.75896 12.2375 2.75915 12.2375 2.75934L12.2376 2.75876L11.9999 2.68151L12.2376 2.75876Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_1820_14349",children:r.jsx("rect",{width:"24",height:"24",fill:"white"})})})]})}function Y0({className:e="fill-icon-medium"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"16",height:"16",viewBox:"0 0 16 16",fill:"none",children:[r.jsx("g",{clipPath:"url(#clip0_5147_6024)",children:r.jsx("path",{className:e,d:"M12.575 10.2916C11.7792 10.2916 11.0667 10.6416 10.5792 11.1958L5.74167 8.64997C5.79583 8.44163 5.825 8.22497 5.825 7.99997C5.825 7.77497 5.79583 7.5583 5.74167 7.34997L10.5792 4.80413C11.0667 5.3583 11.7792 5.7083 12.575 5.7083C14.0417 5.7083 15.2375 4.51247 15.2375 3.0458C15.2375 1.57913 14.0417 0.383301 12.575 0.383301C11.1083 0.383301 9.9125 1.57913 9.9125 3.0458C9.9125 3.2708 9.94167 3.48747 9.99583 3.6958L5.15833 6.24163C4.67083 5.68747 3.95833 5.33747 3.1625 5.33747C1.69583 5.33747 0.5 6.5333 0.5 7.99997C0.5 9.46663 1.69583 10.6625 3.1625 10.6625C3.95833 10.6625 4.67083 10.3125 5.15833 9.7583L9.99583 12.3041C9.94167 12.5125 9.9125 12.7291 9.9125 12.9541C9.9125 14.4208 11.1083 15.6166 12.575 15.6166C14.0417 15.6166 15.2375 14.4208 15.2375 12.9541C15.2375 11.4875 14.0417 10.2916 12.575 10.2916ZM12.575 1.6333C13.3542 1.6333 13.9875 2.26663 13.9875 3.0458C13.9875 3.82497 13.3542 4.4583 12.575 4.4583C11.7958 4.4583 11.1625 3.82497 11.1625 3.0458C11.1625 2.26663 11.7958 1.6333 12.575 1.6333ZM3.1625 9.41247C2.38333 9.41247 1.75 8.77913 1.75 7.99997C1.75 7.2208 2.38333 6.58747 3.1625 6.58747C3.94167 6.58747 4.575 7.2208 4.575 7.99997C4.575 8.77913 3.94167 9.41247 3.1625 9.41247ZM12.575 14.3666C11.7958 14.3666 11.1625 13.7333 11.1625 12.9541C11.1625 12.175 11.7958 11.5416 12.575 11.5416C13.3542 11.5416 13.9875 12.175 13.9875 12.9541C13.9875 13.7333 13.3542 14.3666 12.575 14.3666Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_5147_6024",children:r.jsx("rect",{width:"14.7375",height:"15.2333",fill:"white",transform:"translate(0.5 0.383301)"})})})]})}function X0(){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"15",height:"15",viewBox:"0 0 15 15",fill:"none",children:[r.jsx("g",{clipPath:"url(#clip0_5823_9572)",children:r.jsx("path",{fill:"#2AD9D9",d:"M7.45221 14.3917C7.16888 14.3917 6.92305 14.2 6.84805 13.9292L6.27305 11.775C5.86888 10.2708 4.68555 9.08334 3.17721 8.67917L1.02305 8.10417C0.748047 8.02917 0.560547 7.78334 0.560547 7.5C0.560547 7.21667 0.752214 6.97084 1.02305 6.89584L3.17721 6.32084C4.68138 5.91667 5.86888 4.73334 6.27305 3.225L6.84805 1.07084C6.92305 0.795837 7.16888 0.608337 7.45221 0.608337C7.73555 0.608337 7.98138 0.800004 8.05638 1.07084L8.63138 3.225C9.03555 4.72917 10.2189 5.91667 11.7272 6.32084L13.8814 6.89584C14.1564 6.97084 14.3439 7.21667 14.3439 7.5C14.3439 7.78334 14.1522 8.02917 13.8814 8.10417L11.7272 8.67917C10.223 9.08334 9.03555 10.2667 8.63138 11.775L8.05638 13.9292C7.98138 14.2042 7.73555 14.3917 7.45221 14.3917ZM3.59805 7.5C5.45638 8.03334 6.91888 9.49584 7.45221 11.3542C7.98555 9.49584 9.44805 8.03334 11.3064 7.5C9.44805 6.96667 7.98555 5.50417 7.45221 3.64584C6.91888 5.50417 5.45638 6.96667 3.59805 7.5Z"})}),r.jsx("defs",{children:r.jsx("clipPath",{id:"clip0_5823_9572",children:r.jsx("rect",{width:"13.7833",height:"13.7833",fill:"white",transform:"translate(0.560547 0.608337)"})})})]})}function J0({className:e="fill-icon-warning"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"24",height:"24",viewBox:"0 0 24 24",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M3.0571 19.3191L3.05793 19.3178C3.05766 19.3182 3.05738 19.3187 3.0571 19.3191ZM3.29248 18.947L12.0002 5.1792L20.7108 18.947L3.29248 18.947ZM1.84161 18.547C1.3318 19.3497 1.9187 20.387 2.85767 20.387L21.1457 20.387C22.0861 20.387 22.6684 19.3553 22.1637 18.5501L22.1621 18.5476L13.0181 4.09481L13.0147 4.08943C12.5405 3.3544 11.4693 3.35165 10.9916 4.08015L10.9852 4.0901L1.84223 18.546C1.84202 18.5463 1.84181 18.5467 1.84161 18.547Z"}),r.jsx("path",{className:e,d:"M12.4096 4.47979L21.5537 18.9326C21.7553 19.2542 21.5249 19.667 21.1457 19.667L2.85767 19.667C2.47847 19.667 2.24807 19.2494 2.44967 18.9326L11.5937 4.47496C11.7857 4.18216 12.2176 4.18219 12.4096 4.47979Z"}),r.jsx("path",{className:"fill-icon-white",fillRule:"evenodd",clipRule:"evenodd",d:"M11.25 8L11.25 14H12.75L12.75 8H11.25ZM12 18C12.5523 18 13 17.5523 13 17C13 16.4477 12.5523 16 12 16C11.4477 16 11 16.4477 11 17C11 17.5523 11.4477 18 12 18Z"})]})}const eh=$0,Dl=V0,th=F0,oi=zs,nh=q0,rh=U0,Hl=Q0,ih=Z0,sh=B0,oh=W0,ah=G0,ch=K0,lh=Y0,dh=J0,Ft={ECO:r.jsx(Ti,{icon:r.jsx(sh,{}),label:"Eco Friendly"}),DESIGNER:r.jsx(Ti,{icon:r.jsx(ch,{}),label:"Designer's Choice"}),BUDGET:r.jsx(Ti,{icon:r.jsx(eh,{}),label:"Budget Friendly"})};function Ti({icon:e,label:t}){return r.jsxs("div",{className:R("inline-flex gap-2 items-center","rounded-sm border border-light","bg-icon-white","py-xxs px-xs"),children:[r.jsx("div",{className:"",children:e}),r.jsx("div",{className:R(F.body.xs,"text-dark whitespace-nowrap"),children:t})]})}const $l={MOST_POPULAR:{name:"Most popular"}},ie={COATED_GLOSS_WHITE:7,UNCOATED_SMOOTH_WHITE:10,FELT_WEAVE_WHITE:12,LINEN_WHITE:18,COATED_SEMIGLOSS_1_SIDE_C1S:19,COATED_SEMIGLOSS_2_SIDE_C2S:20,FELT_WEAVE_NATURAL:37,COATED_MATTE_WHITE:78,LINEN_NATURAL:130,UNCOATED_SMOOTH_NATURAL:131,UNCOATED_100_RECYCLED_WHITE:280,KRAFT_SPECKLETONE:63},uh=[{id:ie.COATED_GLOSS_WHITE,decoration:$l.MOST_POPULAR,badge:Ft.BUDGET},{id:ie.COATED_SEMIGLOSS_1_SIDE_C1S,badge:Ft.DESIGNER},{id:ie.UNCOATED_100_RECYCLED_WHITE,badge:Ft.ECO}],fh=Al(uh),ph=[{id:ie.COATED_GLOSS_WHITE,decoration:$l.MOST_POPULAR,badge:Ft.BUDGET},{id:ie.UNCOATED_SMOOTH_WHITE,badge:Ft.DESIGNER},{id:ie.UNCOATED_100_RECYCLED_WHITE,badge:Ft.ECO}],hh=Al(ph),Vl=ye({name:"configurationOptions",initialState:{maxVersions:null,proofTypes:[],turnaroundTypes:[],minQuantity:null,maxQuantity:null,customDimensionsSupported:!0,shortSideMax:null,longSideMax:null,minAnyDimension:null,presetDimensions:[],multiplePagesSupported:!0,minPages:null,maxPages:null,pageQuantityIncrements:null,pressSheets:[],coverPressSheets:[],side1Inks:[],side2Inks:[],coverSide1Inks:[],coverSide2Inks:[],binding:null,bindingEdge:null,coatingCoverOnly:null,drillHoleSize:null,drillingOptions:null,laminatingCoverOnly:null,shrinkwrappingService:null,variableDataPersonalization:null},reducers:{configurationOptionsUpdated:(e,{payload:t})=>{e.maxVersions=t.maxVersions,e.proofTypes=t.proofTypes,e.turnaroundTypes=t.turnaroundTypes,e.minQuantity=t.minQuantity,e.maxQuantity=t.maxQuantity,e.customDimensionsSupported=t.customDimensionsSupported,e.longSideMax=t.longSideMax,e.shortSideMax=t.shortSideMax,e.minAnyDimension=t.minAnyDimension,e.presetDimensions=t.presetDimensions.map(n=>({...n,presetDimensionsId:n.id})),e.multiplePagesSupported=t.multiplePagesSupported,e.minPages=t.minPages,e.maxPages=t.maxPages,e.pageQuantityIncrements=t.pageQuantityIncrements,e.pressSheets=t.pressSheets,e.coverPressSheets=t.coverPressSheets,e.interiorInks=t.interiorSide1AndSide2Inks,e.coverSide1Inks=t.coverSide1Inks,e.coverSide2Inks=t.coverSide2Inks,e.binding=t.operations.binding,e.bindingEdge=t.operations.bindingEdge,e.coatingCoverOnly=t.operations.coatingCoverOnly,e.drillHoleSize=t.operations.drillHoleSize,e.drillingOptions=t.operations.drillingOptions,e.laminatingCoverOnly=t.operations.laminatingCoverOnly,e.shrinkwrappingService=t.operations.shrinkwrappingService,e.variableDataPersonalization=t.operations.variableDataPersonalization}}}),mh=Vl.reducer,{configurationOptionsUpdated:va}=Vl.actions,se=e=>e.configurationOptions,gh=$(se,e=>e.maxVersions),zl=$(se,e=>e.proofTypes),Fl=$(se,e=>e.turnaroundTypes),xh=$(se,e=>e.minQuantity),vh=$(se,e=>e.maxQuantity),bh=$(se,e=>e.customDimensionsSupported),ql=$(se,e=>e.shortSideMax),Ul=$(se,e=>e.longSideMax),Ql=$(se,e=>e.minAnyDimension),Zl=$(se,e=>e.presetDimensions);$(se,e=>e.multiplePagesSupported);const yh=$(se,e=>e.minPages),wh=$(se,e=>e.maxPages),Ch=$(se,e=>e.pageQuantityIncrements),jh=$(se,e=>e.pressSheets),Sh=$(se,e=>e.coverPressSheets),kh=$(se,e=>e.interiorInks),Ih=$(se,e=>e.coverSide1Inks),Eh=$(se,e=>e.coverSide2Inks);$(se,e=>e.binding);$(se,e=>e.bindingEdge);const Ph=$(se,e=>({...e.coatingCoverOnly,items:e.coatingCoverOnly.items.map(H0)})),Mh=$(se,e=>e.drillHoleSize),Oh=$(se,e=>e.drillingOptions),Rh=$(se,e=>e.laminatingCoverOnly),Lh=$(se,e=>e.shrinkwrappingService),_h=$(se,e=>e.variableDataPersonalization),Bl=$(jh,e=>e.map(t=>({id:t.typeId,name:t.typeName,disabled:t.disabled,disabledReason:t.disabledReason,weights:t.weights.map(n=>({id:n.weightId,name:n.weightName,disabled:n.disabled,disabledReason:n.disabledReason})).sort((n,i)=>n.sequence-i.sequence)})).sort((t,n)=>t.sequence-n.sequence).map(hh)),Wl=$(Sh,e=>e.map(t=>({id:t.typeId,name:t.typeName,disabled:t.disabled,disabledReason:t.disabledReason,weights:t.weights.map(n=>({id:n.weightId,name:n.weightName,disabled:n.disabled,disabledReason:n.disabledReason})).sort((n,i)=>n.sequence-i.sequence)})).sort((t,n)=>t.sequence-n.sequence).map(fh)),Th=$(Zl,e=>e.map(t=>t).sort((t,n)=>t.sequence-n.sequence)),Gl=ye({name:"configurationValidation",initialState:{availableOptionChangeMessages:[],dependencyMessages:[],fieldMessages:[],globalMessage:[],selectionChangeMessages:[]},reducers:{configurationValidationUpdated:(e,{payload:t})=>{e.availableOptionChangeMessages=t.availableOptionChangeMessages,e.dependencyMessages=t.dependencyMessages,e.fieldMessages=t.fieldMessages,e.globalMessage=t.globalMessage,e.selectionChangeMessages=t.selectionChangeMessages}}}),Nh=Gl.reducer,{configurationValidationUpdated:ba}=Gl.actions,an=e=>e.configurationValidation;$(an,e=>e.availableOptionChangeMessages);$(an,e=>e.dependencyMessages);const Ah=$(an,e=>e.fieldMessages),Kl=$(Ah,e=>e.filter(t=>t.severity==="error")),Yl=(e,t)=>Kl(e).find(n=>n.field===t);$(an,e=>e.globalMessage);$(an,e=>e.selectionChangeMessages);$(an,e=>e.fieldMessages.length===0);const Xl=ye({name:"countries",initialState:{loading:!0,content:null},reducers:{countriesUpdated:(e,{payload:t})=>{e.loading=!1,e.content=t}},extraReducers:e=>{e.addMatcher(He(rt.endpoints.getCountries.matchPending),(t,{payload:n})=>{t.loading=!0})}}),Dh=Xl.reducer,{countriesUpdated:Hh}=Xl.actions,$h=e=>e.countries.loading,Vh=e=>e.countries.content,zh="/order/cart",mt=yt.get("reorder"),ya=yt.get("sharedProductConfig"),wa=yt.get("productConfigId"),Fs=yt.has("reorder")&&!yt.has("p"),us=yt.has("r")&&yt.get("r")==="y",Ca={...mt?{orderItemId:mt}:{},...wa?{productConfigId:wa}:{}},Fh=Of({baseUrl:""}),rt=Rp({reducerPath:"productApi",tagTypes:["Product Configuration","User"],baseQuery:Fh,endpoints:e=>({getProductConfiguration:e.query({queryFn:async(t,n,i,s)=>{const o=await s({url:"/api/product-configuration-service/v2/product-configuration-session",method:"POST",body:{...Object.keys(Ca).length?{}:{productId:pt()},...Ca,...ya?{sharedProductConfigId:ya}:{}}});return o.error||(n.dispatch(ba(o.data.validation)),n.dispatch(va(o.data.availableOptions)),n.dispatch(ga(o.data)),n.dispatch(ls(o.data.quote)),n.dispatch(Dp(o.data)),o.data.blueprint&&n.dispatch(qp(o.data.blueprint)),n.dispatch(rt.endpoints.getUser.initiate()),n.dispatch(rt.endpoints.getCountries.initiate())),o}}),updateQuote:e.mutation({queryFn:async(t,n,i,s)=>{const o=n.getState().configuration.version,a=await s({url:`/api/product-configuration-service/v2/product-configuration-session/${n.getState().configuration.id}`,method:"PATCH",body:{productId:pt(),userId:n.getState().user.id,selections:t}});return n.getState().configuration.version!==o||a.error||(n.dispatch(ba(a.data.validation)),n.dispatch(va(a.data.availableOptions)),n.dispatch(ga(a.data)),n.dispatch(ls(a.data.quote))),a}}),getUser:e.query({queryFn:async(t,n,i,s)=>{const o=await s({url:"/rest/storefront/users/v2/current",method:"GET"});return n.dispatch(r0(o.data?.content)),o},providesTags:["User"]}),addToCart:e.mutation({queryFn:async(t,n,i,s)=>{const o=n.getState().instantProof.fileSessionId,a=await s({url:"/rest/storefront/projects/v2/cart/addItem",method:"PUT",body:{...t,...mt?{orderItemId:mt}:{},...o?{fileSessionId:o}:{},forReorder:Fs,copyFiles:us}});return a.error?(console.error(a.error),a):(window.location.href=zh,{data:null})}}),getCountries:e.query({queryFn:async(t,n,i,s)=>{const o=await s({url:"/api/site-service/sites/1/countries",method:"GET"});if(o.error)return console.error(o.error),o;const a=o.data.sort((l,c)=>l.id-c.id).filter(l=>l.shipTo);return n.dispatch(Hh(a)),{data:null}}}),getShippingQuote:e.mutation({queryFn:async(t,n,i,s)=>{const o=await s({url:"/rest/storefront/shippingQuotes",method:"POST",body:{...t,productIdWithPrefix:pt(),totalOunces:n.getState().quote.totalOunces}});return o.error&&console.error(o.error),o}}),getPowerReviewsSnippet:e.query({queryFn:async(t,n,i,s)=>{const o=await s({url:`https://readservices-b2c.powerreviews.com/m/10063/l/en_US/product/${pt()}/snippet`,method:"GET",params:{apikey:"4b8655ad-9eda-4932-bf50-cf35ddbd60d6"}});return o.error&&console.error(o.error),o}})})}),{useGetProductConfigurationQuery:qh,useUpdateQuoteMutation:Uh,useAddToCartMutation:Qh,useGetUserQuery:Jl,useGetShippingQuoteMutation:Zh,useGetPowerReviewsSnippetQuery:Bh}=rt;function Wh({onReviewsClick:e,onWriteReviewClick:t}){const{data:n,error:i,isLoading:s,isSuccess:o,isError:a}=Bh();if(s)return r.jsx(Gh,{});if(o&&n.results?.length){const{rollup:l}=n.results[0];return r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx(t1,{rating:l.average_rating}),r.jsx("div",{className:R(F.links.sm,"text-blue"),children:r.jsxs(oe,{onClick:e,children:[l.review_count," Reviews"]})}),r.jsx("div",{className:R(F.links.sm,"text-blue"),children:r.jsx(oe,{onClick:t,children:"Write a Review"})})]})}return null}function Gh(){return r.jsxs("div",{className:"flex flex-col gap-2",children:[r.jsx("div",{className:"w-[127px] h-[16px] rounded-md overflow-hidden",children:r.jsx(he,{})}),r.jsx("div",{className:"w-[68px] h-[14px] rounded-md overflow-hidden",children:r.jsx(he,{})}),r.jsx("div",{className:"w-[80px] h-[14px] rounded-md overflow-hidden",children:r.jsx(he,{})})]})}const Kh="https://info.smartpress.com/meetings/sales-team-/smartpress-project-consultation";function qs({children:e,alt:t}){return r.jsx("div",{className:R("rounded-md p-lg",t?"bg-surface-light":"bg-surface-white border-light border-sm"),children:e})}function fs({title:e,titleAs:t,body:n,onClick:i,buttonLabel:s,icon:o,disabled:a}){return r.jsx("div",{className:"@container/cta",children:r.jsxs("div",{className:R("flex flex-col gap-3","@[600px]/cta:flex-row @[600px]/cta:items-center"),children:[r.jsxs("div",{className:R("flex items-center gap-5","px-lg","@[600px]/cta:basis-1/2","@[600px]/cta:px-none"),children:[r.jsx("div",{className:"flex-shrink-0",children:o}),r.jsxs("div",{children:[r.jsx(Oc,{as:t,className:F.titleTight.md,children:e}),r.jsx("p",{className:R(F.body.sm,"pt-xs"),children:n})]})]}),r.jsx("div",{className:R("@[600px]/cta:basis-1/2"),children:r.jsx(st,{onClick:i,secondary:!0,block:!0,disabled:a,children:s})})]})})}const ed="/pages/custom-quote";function ja(){return r.jsx(qs,{alt:!0,children:r.jsxs("div",{className:"flex flex-col items-stretch",children:[r.jsx(fs,{title:"Need project help?",titleAs:"h3",body:"Schedule a consultation with one of our expert sales representatives.",buttonLabel:"Schedule a video call",onClick:()=>window.open(Kh,"_blank").focus(),icon:r.jsx(Yh,{})}),r.jsx("div",{className:"h-[1px] bg-surface-medium my-5"}),r.jsx(fs,{title:"Need custom options?",titleAs:"h3",body:"Work with an expert on a custom project by requesting a custom quote.",buttonLabel:"Request a custom quote",onClick:()=>window.location.href=ed,icon:r.jsx(Xh,{})})]})})}function Yh({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"81",height:"81",viewBox:"0 0 81 81",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M49.2339 44.0293H35.5139V41.6293H49.2339V44.0293Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M76.9539 37.4853H35.5139V35.0853H76.9539V37.4853Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M48.4259 50.7573H35.5139V48.3573H48.4259V50.7573Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M51.7779 57.6533H35.5139V55.2533H51.7779V57.6533Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M44.2579 64.3733H35.5139V61.9733H44.2579V64.3733Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.6099 39.8613C52.5186 39.8613 49.2019 43.178 49.2019 47.2693C49.2019 51.3606 52.5186 54.6773 56.6099 54.6773C60.7012 54.6773 64.0179 51.3606 64.0179 47.2693C64.0179 43.178 60.7012 39.8613 56.6099 39.8613ZM46.8019 47.2693C46.8019 41.8525 51.1931 37.4613 56.6099 37.4613C62.0267 37.4613 66.4179 41.8525 66.4179 47.2693C66.4179 52.6861 62.0267 57.0773 56.6099 57.0773C51.1931 57.0773 46.8019 52.6861 46.8019 47.2693Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.6179 57.0773C49.5371 57.0773 43.8019 62.8196 43.8019 69.8933H41.4019C41.4019 61.495 48.2107 54.6773 56.6179 54.6773C65.0247 54.6773 71.8339 61.4865 71.8339 69.8933H69.4339C69.4339 62.812 63.6992 57.0773 56.6179 57.0773Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M17.8179 48.4053C14.8223 48.4053 12.3939 50.8337 12.3939 53.8293C12.3939 56.8249 14.8223 59.2533 17.8179 59.2533C20.8135 59.2533 23.2419 56.8249 23.2419 53.8293C23.2419 50.8337 20.8135 48.4053 17.8179 48.4053ZM9.99391 53.8293C9.99391 49.5082 13.4968 46.0053 17.8179 46.0053C22.139 46.0053 25.6419 49.5082 25.6419 53.8293C25.6419 58.1504 22.139 61.6533 17.8179 61.6533C13.4968 61.6533 9.99391 58.1504 9.99391 53.8293Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M17.8099 61.6533C12.5206 61.6533 8.23391 65.94 8.23391 71.2293H5.83391C5.83391 64.6145 11.1952 59.2533 17.8099 59.2533C24.4246 59.2533 29.7859 64.6145 29.7859 71.2293H27.3859C27.3859 65.94 23.0992 61.6533 17.8099 61.6533Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M6.15391 17.6693V36.3893H21.7619V41.6682L26.5454 36.8848C26.8742 36.556 27.3028 36.3893 27.7459 36.3893H33.9059V17.6693H6.15391ZM3.75391 16.9573C3.75391 16.0225 4.50716 15.2693 5.44191 15.2693H34.6179C35.5527 15.2693 36.3059 16.0225 36.3059 16.9573V37.1013C36.3059 38.036 35.5527 38.7893 34.6179 38.7893H28.035L22.2424 44.5818C21.1887 45.6356 19.3619 44.8991 19.3619 43.3893V38.7893H5.44191C4.50716 38.7893 3.75391 38.036 3.75391 37.1013V16.9573Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M28.5939 10.0133V28.7333H44.2019V34.0122L48.9727 29.2414C49.3237 28.8741 49.7841 28.7333 50.1859 28.7333H56.3459V10.0133H28.5939ZM26.1939 9.30128C26.1939 8.36654 26.9472 7.61328 27.8819 7.61328H57.0579C57.9926 7.61328 58.7459 8.36654 58.7459 9.30128V29.4453C58.7459 30.38 57.9926 31.1333 57.0579 31.1333H50.475L44.6824 36.9258C43.6287 37.9796 41.8019 37.2431 41.8019 35.7333V31.1333H27.8819C26.9472 31.1333 26.1939 30.38 26.1939 29.4453V9.30128Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M57.0499 28.7253H76.4739C77.4007 28.7253 78.1539 29.4785 78.1539 30.4053V69.6533C78.1539 70.58 77.4007 71.3333 76.4739 71.3333H35.5859C34.6592 71.3333 33.9059 70.58 33.9059 69.6533V36.9733H36.3059V68.9333H75.7539V31.1253H57.0499V28.7253Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M76.9539 64.3733H69.1459V61.9733H76.9539V64.3733Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M76.9539 57.6533H61.3219V55.2533H76.9539V57.6533Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M76.9539 44.0293H63.5059V41.6293H76.9539V44.0293Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M76.9539 50.7573H64.6259V48.3573H76.9539V50.7573Z"})]})}function Xh({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"81",height:"81",viewBox:"0 0 81 81",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M31.3939 41.6371C31.3939 40.7503 32.1072 40.0371 32.9939 40.0371H76.7539C77.6407 40.0371 78.3539 40.7503 78.3539 41.6371V68.1251C78.3539 69.0118 77.6407 69.7251 76.7539 69.7251H32.9939C32.1072 69.7251 31.3939 69.0118 31.3939 68.1251V41.6371ZM33.7939 42.4371V67.3251H75.9539V42.4371H33.7939Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M62.3299 54.8291C62.3299 48.0654 56.8168 42.5651 49.9939 42.5651V40.1651C58.1311 40.1651 64.7299 46.7288 64.7299 54.8291C64.7299 62.9289 58.1236 69.5011 49.9939 69.5011V67.1011C56.8083 67.1011 62.3299 61.5933 62.3299 54.8291Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M77.1539 42.6531C70.3387 42.6531 64.8179 48.1538 64.8179 54.9171C64.8179 61.6808 70.3311 67.1811 77.1539 67.1811V69.5811C69.0168 69.5811 62.4179 63.0174 62.4179 54.9171C62.4179 46.8163 69.0252 40.2531 77.1539 40.2531V42.6531Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M3.25793 33.1171H48.5539V34.3171C48.5539 38.7958 44.9207 42.4291 40.4419 42.4291H27.6579C23.9767 42.4291 20.9939 45.4118 20.9939 49.0931V60.6611C20.9939 64.3423 23.9767 67.3251 27.6579 67.3251H40.3619C43.4647 67.3251 45.9779 69.8383 45.9779 72.9411V76.7952L13.5478 76.6291L13.5463 76.6291C7.85352 76.5929 3.25793 71.9598 3.25793 66.2691V33.1171ZM5.65793 35.5171V66.2691C5.65793 70.642 9.18969 74.2007 13.5604 74.2291L13.5616 74.2291L43.5779 74.3829V72.9411C43.5779 71.1638 42.1392 69.7251 40.3619 69.7251H27.6579C22.6512 69.7251 18.5939 65.6678 18.5939 60.6611V49.0931C18.5939 44.0863 22.6512 40.0291 27.6579 40.0291H40.4419C43.1836 40.0291 45.4758 38.0947 46.0275 35.5171H5.65793Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M3.25793 2.59709H7.11393C10.2167 2.59709 12.7299 5.11034 12.7299 8.21309V22.6291C12.7299 23.2918 12.1927 23.8291 11.5299 23.8291C10.8672 23.8291 10.3299 23.2918 10.3299 22.6291V8.21309C10.3299 6.43583 8.89119 4.99709 7.11393 4.99709H5.65793V33.5171C5.65793 34.1798 5.12067 34.7171 4.45793 34.7171C3.79519 34.7171 3.25793 34.1798 3.25793 33.5171V2.59709Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M24.4413 2.01514L27.6312 4.16106C30.2095 5.89354 30.8767 9.38452 29.15 11.9544L19.1816 26.7709C18.8116 27.3208 18.066 27.4667 17.5161 27.0967C16.9662 26.7268 16.8203 25.9811 17.1903 25.4312L27.1579 10.6158C28.1511 9.13766 27.7623 7.14064 26.2927 6.15312L25.0825 5.33904L5.45004 34.1922C5.07722 34.7401 4.3308 34.882 3.78287 34.5092C3.23494 34.1364 3.09299 33.39 3.46582 32.842L24.4413 2.01514Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M41.7245 9.61202L43.8026 12.851C45.4813 15.4562 44.7286 18.935 42.124 20.6137L42.1172 20.6182L19.0222 35.0625C18.4604 35.4139 17.72 35.2433 17.3685 34.6814C17.0171 34.1195 17.1877 33.3791 17.7496 33.0277L40.8301 18.5924C42.3162 17.6297 42.7447 15.6398 41.7853 14.1512L40.9993 12.9261L5.93699 35.3757C5.37885 35.733 4.63669 35.5703 4.27933 35.0121C3.92197 34.454 4.08473 33.7118 4.64287 33.3545L41.7245 9.61202Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M51.1939 41.2371V68.5251H48.7939V41.2371H51.1939Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M50.6099 48.2211H33.1939V45.8211H50.6099V48.2211Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M50.6099 53.3811H33.1939V50.9811H50.6099V53.3811Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M50.6099 58.6771H33.1939V56.2771H50.6099V58.6771Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M50.6099 63.8371H33.1939V61.4371H50.6099V63.8371Z"})]})}function Sa({onClick:e}){return r.jsx(qs,{alt:!0,children:r.jsx(fs,{title:"Need file setup help?",titleAs:"h3",body:"Our guide makes design specs and sizing simple.",buttonLabel:"Download templates",onClick:e,icon:r.jsx(Jh,{})})})}function Jh({className:e="fill-icon-blue"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"59",height:"60",viewBox:"0 0 59 60",fill:"none",children:r.jsx("path",{className:e,d:"M16.0977 51.8038C16.7604 51.8039 17.2979 52.3413 17.2979 53.004V58.2306C17.2978 58.8933 16.7604 59.4308 16.0977 59.4308C15.4349 59.4308 14.8975 58.8933 14.8975 58.2306V53.004C14.8975 52.3413 15.4349 51.8038 16.0977 51.8038ZM49.1709 51.8038C49.8336 51.8038 50.3711 52.3413 50.3711 53.004V58.2306C50.3711 58.8933 49.8336 59.4308 49.1709 59.4308C48.5082 59.4308 47.9707 58.8933 47.9707 58.2306V53.004C47.9707 52.3413 48.5082 51.8039 49.1709 51.8038ZM49.0312 8.85071C49.1295 8.85073 49.2254 8.86087 49.3184 8.87903H49.3242C49.9869 8.87903 50.5243 9.41656 50.5244 10.0792V30.5704C50.5244 30.605 50.5224 30.6392 50.5195 30.673V49.4034C50.5195 50.2261 49.8539 50.8925 49.0312 50.8927H16.4775C15.6548 50.8927 14.9883 50.2262 14.9883 49.4034V42.09C14.1983 42.2488 13.3807 42.3331 12.5439 42.3331C5.73258 42.333 0.210938 36.8106 0.210938 29.9991C0.211099 23.1879 5.73268 17.6663 12.5439 17.6661C13.3807 17.6661 14.1983 17.7495 14.9883 17.9083V10.339C14.9885 9.51649 15.655 8.85075 16.4775 8.85071H49.0312ZM13 48.4767C13.6626 48.4768 14.2 49.0143 14.2002 49.6769C14.2002 50.3396 13.6627 50.877 13 50.8771H7.77344C7.1107 50.8771 6.57324 50.3396 6.57324 49.6769C6.57339 49.0143 7.11079 48.4767 7.77344 48.4767H13ZM57.4951 48.4767C58.1578 48.4767 58.6952 49.0143 58.6953 49.6769C58.6953 50.3396 58.1579 50.8771 57.4951 50.8771H52.2686C51.6059 50.877 51.0684 50.3396 51.0684 49.6769C51.0685 49.0143 51.606 48.4768 52.2686 48.4767H57.4951ZM17.3887 18.6544C21.7918 20.537 24.8778 24.9075 24.8779 29.9991C24.8779 35.0907 21.7916 39.4601 17.3887 41.3429V48.4933H48.1201V31.7706H43.0107C34.5236 31.7705 27.6328 24.8798 27.6328 16.3927V11.2501H17.3887V18.6544ZM12.5439 20.0665C7.05817 20.0667 2.61149 24.5134 2.61133 29.9991C2.61133 35.4851 7.05807 39.9326 12.5439 39.9327C18.03 39.9327 22.4775 35.4852 22.4775 29.9991C22.4774 24.5133 18.0299 20.0665 12.5439 20.0665ZM16.6289 24.587C16.982 24.0262 17.7224 23.858 18.2832 24.2111C18.844 24.5641 19.013 25.3045 18.6602 25.8654L12.0801 36.3165C11.8732 36.6452 11.5196 36.8532 11.1318 36.8751C10.7442 36.897 10.3695 36.73 10.127 36.4269L6.25586 31.589C5.84207 31.0715 5.92601 30.3165 6.44336 29.9025C6.96083 29.4884 7.71581 29.5725 8.12988 30.09L10.9473 33.6105L16.6289 24.587ZM36.4277 27.5753C38.3584 28.7153 40.6086 29.3702 43.0107 29.3702H48.1201V27.5753H36.4277ZM32.3027 23.7198C32.6545 24.2326 33.0421 24.7187 33.4619 25.1749H48.1201V23.7198H32.3027ZM30.3691 19.3351C30.528 20.0189 30.7416 20.6817 31.0039 21.3195H48.1201V19.3351H30.3691ZM30.0332 16.3927C30.0332 16.5743 30.0375 16.7549 30.0449 16.9347H48.1201V15.297H30.0332V16.3927ZM30.0332 12.8976H48.1201V11.2794H30.0332V12.8976ZM13 9.38196C13.6625 9.38206 14.1999 9.91871 14.2002 10.5812C14.2002 11.2439 13.6627 11.7813 13 11.7814H7.77344C7.1107 11.7814 6.57324 11.2439 6.57324 10.5812C6.57349 9.91865 7.11085 9.38196 7.77344 9.38196H13ZM57.4951 9.38196C58.1577 9.38196 58.6951 9.91865 58.6953 10.5812C58.6953 11.2439 58.1579 11.7814 57.4951 11.7814H52.2686C51.6059 11.7813 51.0684 11.2439 51.0684 10.5812C51.0686 9.91871 51.6061 9.38206 52.2686 9.38196H57.4951ZM16.0977 0.319458C16.7604 0.319484 17.2979 0.856928 17.2979 1.51965V6.74622C17.2978 7.40889 16.7603 7.94638 16.0977 7.94641C15.435 7.94641 14.8975 7.4089 14.8975 6.74622V1.51965C14.8975 0.856912 15.4349 0.319458 16.0977 0.319458ZM49.1709 0.319458C49.8336 0.319458 50.3711 0.856912 50.3711 1.51965V6.74622C50.371 7.4089 49.8336 7.94641 49.1709 7.94641C48.5082 7.94638 47.9708 7.40889 47.9707 6.74622V1.51965C47.9707 0.856928 48.5082 0.319484 49.1709 0.319458Z"})})}function gt({stacked:e=!1,children:t}){return r.jsx("div",{className:R("flex font-sans text-xs leading-4 uppercase text-medium whitespace-nowrap",e||"gap-2",e&&"flex-col"),children:t})}gt.Key=function({children:e}){return r.jsx("div",{className:"font-bold",children:e})};gt.Value=function({children:e}){return r.jsx("div",{className:"",children:e})};const td=ye({name:"shipping",initialState:{loading:!0,success:!1,content:null,messages:[],errors:[]},reducers:{shippingQuoteUpdated:(e,{payload:t})=>{e.loading=!1,e.success=t.content.success,e.content=t.content,e.messages=t.messages,e.errors=t.errors}},extraReducers:e=>{e.addMatcher(He(rt.endpoints.getShippingQuote.matchPending),(t,{payload:n})=>{t.loading=!0})}}),e2=td.reducer,{shippingQuoteUpdated:V9}=td.actions,nd=ye({name:"instantProof",initialState:{fileSessionId:null},reducers:{fileSessionIdChanged:(e,{payload:t})=>{e.fileSessionId=t}}}),t2=nd.reducer,{fileSessionIdChanged:n2}=nd.actions,r2=e=>e.instantProof;$(r2,e=>e.fileSessionId);const Kt=q1({reducer:{[rt.reducerPath]:rt.reducer,configuration:u0,configurationOptions:mh,configurationValidation:Nh,blueprint:Fp,product:Ap,quote:Xp,shipping:e2,countries:Dh,instantProof:t2,user:n0},devTools:{trace:!0},middleware:e=>e().concat(El.middleware).concat(rt.middleware)});Tp(Kt);/*! js-cookie v3.0.5 | MIT */function mr(e){for(var t=1;t<arguments.length;t++){var n=arguments[t];for(var i in n)e[i]=n[i]}return e}var i2={read:function(e){return e[0]==='"'&&(e=e.slice(1,-1)),e.replace(/(%[\dA-F]{2})+/gi,decodeURIComponent)},write:function(e){return encodeURIComponent(e).replace(/%(2[346BF]|3[AC-F]|40|5[BDE]|60|7[BCD])/g,decodeURIComponent)}};function ps(e,t){function n(s,o,a){if(!(typeof document>"u")){a=mr({},t,a),typeof a.expires=="number"&&(a.expires=new Date(Date.now()+a.expires*864e5)),a.expires&&(a.expires=a.expires.toUTCString()),s=encodeURIComponent(s).replace(/%(2[346B]|5E|60|7C)/g,decodeURIComponent).replace(/[()]/g,escape);var l="";for(var c in a)a[c]&&(l+="; "+c,a[c]!==!0&&(l+="="+a[c].split(";")[0]));return document.cookie=s+"="+e.write(o,s)+l}}function i(s){if(!(typeof document>"u"||arguments.length&&!s)){for(var o=document.cookie?document.cookie.split("; "):[],a={},l=0;l<o.length;l++){var c=o[l].split("="),d=c.slice(1).join("=");try{var u=decodeURIComponent(c[0]);if(a[u]=e.read(d,u),s===u)break}catch{}}return s?a[s]:a}}return Object.create({set:n,get:i,remove:function(s,o){n(s,"",mr({},o,{expires:-1}))},withAttributes:function(s){return ps(this.converter,mr({},this.attributes,s))},withConverter:function(s){return ps(mr({},this.converter,s),this.attributes)}},{attributes:{value:Object.freeze(t)},converter:{value:Object.freeze(e)}})}var ka=ps(i2,{path:"/"});const{useCallback:s2}=await Q("react");function o2(){const[e,t]=Qh(),{data:{content:n={}}={}}=Jl();return[s2(()=>{const s=Kt.getState().configuration,o=ka.get("anonymous-user-cart");return e(xa(s,n,o)).unwrap()},[Kt.getState,xa,e,n,ka.get]),t]}const{useCallback:a2}=await Q("react");function c2(){const e=D($s);return a2(()=>{window.uetq=window.uetq||[],window.uetq.push("event","",{revenue_value:e,currency:"USD"})},[e])}function Us(){const e=D(rn),t=D(sn),n=D(Sl),i=D(Cl);return t&&e&&n||i}const{useCallback:Ia,useMemo:l2}=await Q("react");function Ea(e="",t={}){if(!window.gtag){console.warn("gtag not loaded");return}window.gtag("event",e,t)}function d2(e,t,n){return{currency:"USD",value:e,items:[{item_id:pt(),item_name:n,affiliation:"Smartpress",currency:"USD",price:e,quantity:t}]}}function rd(){const e=D($s),t=D(t0),n=Us(),i=l2(()=>d2(e,t,n),[e,t,n]),s=Ia(()=>Ea("add_to_cart",i),[i]),o=Ia(()=>Ea("view_item",i),[i]);return{recordGA4AddToCart:s,recordGA4ViewItem:o}}const Pa=await Q("react");var Ma=function(t){return t.reduce(function(n,i){var s=i[0],o=i[1];return n[s]=o,n},{})},Oa=typeof window<"u"&&window.document&&window.document.createElement?Pa.useLayoutEffect:Pa.useEffect,Ie="top",$e="bottom",Ve="right",Ee="left",Qs="auto",Jn=[Ie,$e,Ve,Ee],Yt="start",Vn="end",u2="clippingParents",id="viewport",hn="popper",f2="reference",Ra=Jn.reduce(function(e,t){return e.concat([t+"-"+Yt,t+"-"+Vn])},[]),sd=[].concat(Jn,[Qs]).reduce(function(e,t){return e.concat([t,t+"-"+Yt,t+"-"+Vn])},[]),p2="beforeRead",h2="read",m2="afterRead",g2="beforeMain",x2="main",v2="afterMain",b2="beforeWrite",y2="write",w2="afterWrite",C2=[p2,h2,m2,g2,x2,v2,b2,y2,w2];function We(e){return e?(e.nodeName||"").toLowerCase():null}function Ne(e){if(e==null)return window;if(e.toString()!=="[object Window]"){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function Rt(e){var t=Ne(e).Element;return e instanceof t||e instanceof Element}function De(e){var t=Ne(e).HTMLElement;return e instanceof t||e instanceof HTMLElement}function Zs(e){if(typeof ShadowRoot>"u")return!1;var t=Ne(e).ShadowRoot;return e instanceof t||e instanceof ShadowRoot}function j2(e){var t=e.state;Object.keys(t.elements).forEach(function(n){var i=t.styles[n]||{},s=t.attributes[n]||{},o=t.elements[n];!De(o)||!We(o)||(Object.assign(o.style,i),Object.keys(s).forEach(function(a){var l=s[a];l===!1?o.removeAttribute(a):o.setAttribute(a,l===!0?"":l)}))})}function S2(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach(function(i){var s=t.elements[i],o=t.attributes[i]||{},a=Object.keys(t.styles.hasOwnProperty(i)?t.styles[i]:n[i]),l=a.reduce(function(c,d){return c[d]="",c},{});!De(s)||!We(s)||(Object.assign(s.style,l),Object.keys(o).forEach(function(c){s.removeAttribute(c)}))})}}const k2={name:"applyStyles",enabled:!0,phase:"write",fn:j2,effect:S2,requires:["computeStyles"]};function Be(e){return e.split("-")[0]}var Pt=Math.max,Fr=Math.min,Xt=Math.round;function hs(){var e=navigator.userAgentData;return e!=null&&e.brands&&Array.isArray(e.brands)?e.brands.map(function(t){return t.brand+"/"+t.version}).join(" "):navigator.userAgent}function od(){return!/^((?!chrome|android).)*safari/i.test(hs())}function Jt(e,t,n){t===void 0&&(t=!1),n===void 0&&(n=!1);var i=e.getBoundingClientRect(),s=1,o=1;t&&De(e)&&(s=e.offsetWidth>0&&Xt(i.width)/e.offsetWidth||1,o=e.offsetHeight>0&&Xt(i.height)/e.offsetHeight||1);var a=Rt(e)?Ne(e):window,l=a.visualViewport,c=!od()&&n,d=(i.left+(c&&l?l.offsetLeft:0))/s,u=(i.top+(c&&l?l.offsetTop:0))/o,p=i.width/s,g=i.height/o;return{width:p,height:g,top:u,right:d+p,bottom:u+g,left:d,x:d,y:u}}function Bs(e){var t=Jt(e),n=e.offsetWidth,i=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-i)<=1&&(i=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:i}}function ad(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&Zs(n)){var i=t;do{if(i&&e.isSameNode(i))return!0;i=i.parentNode||i.host}while(i)}return!1}function at(e){return Ne(e).getComputedStyle(e)}function I2(e){return["table","td","th"].indexOf(We(e))>=0}function wt(e){return((Rt(e)?e.ownerDocument:e.document)||window.document).documentElement}function ai(e){return We(e)==="html"?e:e.assignedSlot||e.parentNode||(Zs(e)?e.host:null)||wt(e)}function La(e){return!De(e)||at(e).position==="fixed"?null:e.offsetParent}function E2(e){var t=/firefox/i.test(hs()),n=/Trident/i.test(hs());if(n&&De(e)){var i=at(e);if(i.position==="fixed")return null}var s=ai(e);for(Zs(s)&&(s=s.host);De(s)&&["html","body"].indexOf(We(s))<0;){var o=at(s);if(o.transform!=="none"||o.perspective!=="none"||o.contain==="paint"||["transform","perspective"].indexOf(o.willChange)!==-1||t&&o.willChange==="filter"||t&&o.filter&&o.filter!=="none")return s;s=s.parentNode}return null}function er(e){for(var t=Ne(e),n=La(e);n&&I2(n)&&at(n).position==="static";)n=La(n);return n&&(We(n)==="html"||We(n)==="body"&&at(n).position==="static")?t:n||E2(e)||t}function Ws(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}function En(e,t,n){return Pt(e,Fr(t,n))}function P2(e,t,n){var i=En(e,t,n);return i>n?n:i}function cd(){return{top:0,right:0,bottom:0,left:0}}function ld(e){return Object.assign({},cd(),e)}function dd(e,t){return t.reduce(function(n,i){return n[i]=e,n},{})}var M2=function(t,n){return t=typeof t=="function"?t(Object.assign({},n.rects,{placement:n.placement})):t,ld(typeof t!="number"?t:dd(t,Jn))};function O2(e){var t,n=e.state,i=e.name,s=e.options,o=n.elements.arrow,a=n.modifiersData.popperOffsets,l=Be(n.placement),c=Ws(l),d=[Ee,Ve].indexOf(l)>=0,u=d?"height":"width";if(!(!o||!a)){var p=M2(s.padding,n),g=Bs(o),f=c==="y"?Ie:Ee,h=c==="y"?$e:Ve,x=n.rects.reference[u]+n.rects.reference[c]-a[c]-n.rects.popper[u],m=a[c]-n.rects.reference[c],v=er(o),S=v?c==="y"?v.clientHeight||0:v.clientWidth||0:0,b=x/2-m/2,C=p[f],y=S-g[u]-p[h],j=S/2-g[u]/2+b,I=En(C,j,y),M=c;n.modifiersData[i]=(t={},t[M]=I,t.centerOffset=I-j,t)}}function R2(e){var t=e.state,n=e.options,i=n.element,s=i===void 0?"[data-popper-arrow]":i;s!=null&&(typeof s=="string"&&(s=t.elements.popper.querySelector(s),!s)||ad(t.elements.popper,s)&&(t.elements.arrow=s))}const L2={name:"arrow",enabled:!0,phase:"main",fn:O2,effect:R2,requires:["popperOffsets"],requiresIfExists:["preventOverflow"]};function en(e){return e.split("-")[1]}var _2={top:"auto",right:"auto",bottom:"auto",left:"auto"};function T2(e,t){var n=e.x,i=e.y,s=t.devicePixelRatio||1;return{x:Xt(n*s)/s||0,y:Xt(i*s)/s||0}}function _a(e){var t,n=e.popper,i=e.popperRect,s=e.placement,o=e.variation,a=e.offsets,l=e.position,c=e.gpuAcceleration,d=e.adaptive,u=e.roundOffsets,p=e.isFixed,g=a.x,f=g===void 0?0:g,h=a.y,x=h===void 0?0:h,m=typeof u=="function"?u({x:f,y:x}):{x:f,y:x};f=m.x,x=m.y;var v=a.hasOwnProperty("x"),S=a.hasOwnProperty("y"),b=Ee,C=Ie,y=window;if(d){var j=er(n),I="clientHeight",M="clientWidth";if(j===Ne(n)&&(j=wt(n),at(j).position!=="static"&&l==="absolute"&&(I="scrollHeight",M="scrollWidth")),j=j,s===Ie||(s===Ee||s===Ve)&&o===Vn){C=$e;var P=p&&j===y&&y.visualViewport?y.visualViewport.height:j[I];x-=P-i.height,x*=c?1:-1}if(s===Ee||(s===Ie||s===$e)&&o===Vn){b=Ve;var E=p&&j===y&&y.visualViewport?y.visualViewport.width:j[M];f-=E-i.width,f*=c?1:-1}}var w=Object.assign({position:l},d&&_2),k=u===!0?T2({x:f,y:x},Ne(n)):{x:f,y:x};if(f=k.x,x=k.y,c){var O;return Object.assign({},w,(O={},O[C]=S?"0":"",O[b]=v?"0":"",O.transform=(y.devicePixelRatio||1)<=1?"translate("+f+"px, "+x+"px)":"translate3d("+f+"px, "+x+"px, 0)",O))}return Object.assign({},w,(t={},t[C]=S?x+"px":"",t[b]=v?f+"px":"",t.transform="",t))}function N2(e){var t=e.state,n=e.options,i=n.gpuAcceleration,s=i===void 0?!0:i,o=n.adaptive,a=o===void 0?!0:o,l=n.roundOffsets,c=l===void 0?!0:l,d={placement:Be(t.placement),variation:en(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:s,isFixed:t.options.strategy==="fixed"};t.modifiersData.popperOffsets!=null&&(t.styles.popper=Object.assign({},t.styles.popper,_a(Object.assign({},d,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),t.modifiersData.arrow!=null&&(t.styles.arrow=Object.assign({},t.styles.arrow,_a(Object.assign({},d,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})}const A2={name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:N2,data:{}};var gr={passive:!0};function D2(e){var t=e.state,n=e.instance,i=e.options,s=i.scroll,o=s===void 0?!0:s,a=i.resize,l=a===void 0?!0:a,c=Ne(t.elements.popper),d=[].concat(t.scrollParents.reference,t.scrollParents.popper);return o&&d.forEach(function(u){u.addEventListener("scroll",n.update,gr)}),l&&c.addEventListener("resize",n.update,gr),function(){o&&d.forEach(function(u){u.removeEventListener("scroll",n.update,gr)}),l&&c.removeEventListener("resize",n.update,gr)}}const H2={name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:D2,data:{}};var $2={left:"right",right:"left",bottom:"top",top:"bottom"};function Er(e){return e.replace(/left|right|bottom|top/g,function(t){return $2[t]})}var V2={start:"end",end:"start"};function Ta(e){return e.replace(/start|end/g,function(t){return V2[t]})}function Gs(e){var t=Ne(e),n=t.pageXOffset,i=t.pageYOffset;return{scrollLeft:n,scrollTop:i}}function Ks(e){return Jt(wt(e)).left+Gs(e).scrollLeft}function z2(e,t){var n=Ne(e),i=wt(e),s=n.visualViewport,o=i.clientWidth,a=i.clientHeight,l=0,c=0;if(s){o=s.width,a=s.height;var d=od();(d||!d&&t==="fixed")&&(l=s.offsetLeft,c=s.offsetTop)}return{width:o,height:a,x:l+Ks(e),y:c}}function F2(e){var t,n=wt(e),i=Gs(e),s=(t=e.ownerDocument)==null?void 0:t.body,o=Pt(n.scrollWidth,n.clientWidth,s?s.scrollWidth:0,s?s.clientWidth:0),a=Pt(n.scrollHeight,n.clientHeight,s?s.scrollHeight:0,s?s.clientHeight:0),l=-i.scrollLeft+Ks(e),c=-i.scrollTop;return at(s||n).direction==="rtl"&&(l+=Pt(n.clientWidth,s?s.clientWidth:0)-o),{width:o,height:a,x:l,y:c}}function Ys(e){var t=at(e),n=t.overflow,i=t.overflowX,s=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+s+i)}function ud(e){return["html","body","#document"].indexOf(We(e))>=0?e.ownerDocument.body:De(e)&&Ys(e)?e:ud(ai(e))}function Pn(e,t){var n;t===void 0&&(t=[]);var i=ud(e),s=i===((n=e.ownerDocument)==null?void 0:n.body),o=Ne(i),a=s?[o].concat(o.visualViewport||[],Ys(i)?i:[]):i,l=t.concat(a);return s?l:l.concat(Pn(ai(a)))}function ms(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function q2(e,t){var n=Jt(e,!1,t==="fixed");return n.top=n.top+e.clientTop,n.left=n.left+e.clientLeft,n.bottom=n.top+e.clientHeight,n.right=n.left+e.clientWidth,n.width=e.clientWidth,n.height=e.clientHeight,n.x=n.left,n.y=n.top,n}function Na(e,t,n){return t===id?ms(z2(e,n)):Rt(t)?q2(t,n):ms(F2(wt(e)))}function U2(e){var t=Pn(ai(e)),n=["absolute","fixed"].indexOf(at(e).position)>=0,i=n&&De(e)?er(e):e;return Rt(i)?t.filter(function(s){return Rt(s)&&ad(s,i)&&We(s)!=="body"}):[]}function Q2(e,t,n,i){var s=t==="clippingParents"?U2(e):[].concat(t),o=[].concat(s,[n]),a=o[0],l=o.reduce(function(c,d){var u=Na(e,d,i);return c.top=Pt(u.top,c.top),c.right=Fr(u.right,c.right),c.bottom=Fr(u.bottom,c.bottom),c.left=Pt(u.left,c.left),c},Na(e,a,i));return l.width=l.right-l.left,l.height=l.bottom-l.top,l.x=l.left,l.y=l.top,l}function fd(e){var t=e.reference,n=e.element,i=e.placement,s=i?Be(i):null,o=i?en(i):null,a=t.x+t.width/2-n.width/2,l=t.y+t.height/2-n.height/2,c;switch(s){case Ie:c={x:a,y:t.y-n.height};break;case $e:c={x:a,y:t.y+t.height};break;case Ve:c={x:t.x+t.width,y:l};break;case Ee:c={x:t.x-n.width,y:l};break;default:c={x:t.x,y:t.y}}var d=s?Ws(s):null;if(d!=null){var u=d==="y"?"height":"width";switch(o){case Yt:c[d]=c[d]-(t[u]/2-n[u]/2);break;case Vn:c[d]=c[d]+(t[u]/2-n[u]/2);break}}return c}function zn(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=i===void 0?e.placement:i,o=n.strategy,a=o===void 0?e.strategy:o,l=n.boundary,c=l===void 0?u2:l,d=n.rootBoundary,u=d===void 0?id:d,p=n.elementContext,g=p===void 0?hn:p,f=n.altBoundary,h=f===void 0?!1:f,x=n.padding,m=x===void 0?0:x,v=ld(typeof m!="number"?m:dd(m,Jn)),S=g===hn?f2:hn,b=e.rects.popper,C=e.elements[h?S:g],y=Q2(Rt(C)?C:C.contextElement||wt(e.elements.popper),c,u,a),j=Jt(e.elements.reference),I=fd({reference:j,element:b,placement:s}),M=ms(Object.assign({},b,I)),P=g===hn?M:j,E={top:y.top-P.top+v.top,bottom:P.bottom-y.bottom+v.bottom,left:y.left-P.left+v.left,right:P.right-y.right+v.right},w=e.modifiersData.offset;if(g===hn&&w){var k=w[s];Object.keys(E).forEach(function(O){var L=[Ve,$e].indexOf(O)>=0?1:-1,T=[Ie,$e].indexOf(O)>=0?"y":"x";E[O]+=k[T]*L})}return E}function Z2(e,t){t===void 0&&(t={});var n=t,i=n.placement,s=n.boundary,o=n.rootBoundary,a=n.padding,l=n.flipVariations,c=n.allowedAutoPlacements,d=c===void 0?sd:c,u=en(i),p=u?l?Ra:Ra.filter(function(h){return en(h)===u}):Jn,g=p.filter(function(h){return d.indexOf(h)>=0});g.length===0&&(g=p);var f=g.reduce(function(h,x){return h[x]=zn(e,{placement:x,boundary:s,rootBoundary:o,padding:a})[Be(x)],h},{});return Object.keys(f).sort(function(h,x){return f[h]-f[x]})}function B2(e){if(Be(e)===Qs)return[];var t=Er(e);return[Ta(e),t,Ta(t)]}function W2(e){var t=e.state,n=e.options,i=e.name;if(!t.modifiersData[i]._skip){for(var s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!0:a,c=n.fallbackPlacements,d=n.padding,u=n.boundary,p=n.rootBoundary,g=n.altBoundary,f=n.flipVariations,h=f===void 0?!0:f,x=n.allowedAutoPlacements,m=t.options.placement,v=Be(m),S=v===m,b=c||(S||!h?[Er(m)]:B2(m)),C=[m].concat(b).reduce(function(U,J){return U.concat(Be(J)===Qs?Z2(t,{placement:J,boundary:u,rootBoundary:p,padding:d,flipVariations:h,allowedAutoPlacements:x}):J)},[]),y=t.rects.reference,j=t.rects.popper,I=new Map,M=!0,P=C[0],E=0;E<C.length;E++){var w=C[E],k=Be(w),O=en(w)===Yt,L=[Ie,$e].indexOf(k)>=0,T=L?"width":"height",_=zn(t,{placement:w,boundary:u,rootBoundary:p,altBoundary:g,padding:d}),A=L?O?Ve:Ee:O?$e:Ie;y[T]>j[T]&&(A=Er(A));var H=Er(A),N=[];if(o&&N.push(_[k]<=0),l&&N.push(_[A]<=0,_[H]<=0),N.every(function(U){return U})){P=w,M=!1;break}I.set(w,N)}if(M)for(var z=h?3:1,q=function(J){var ee=C.find(function(Z){var G=I.get(Z);if(G)return G.slice(0,J).every(function(B){return B})});if(ee)return P=ee,"break"},K=z;K>0;K--){var Y=q(K);if(Y==="break")break}t.placement!==P&&(t.modifiersData[i]._skip=!0,t.placement=P,t.reset=!0)}}const G2={name:"flip",enabled:!0,phase:"main",fn:W2,requiresIfExists:["offset"],data:{_skip:!1}};function Aa(e,t,n){return n===void 0&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function Da(e){return[Ie,Ve,$e,Ee].some(function(t){return e[t]>=0})}function K2(e){var t=e.state,n=e.name,i=t.rects.reference,s=t.rects.popper,o=t.modifiersData.preventOverflow,a=zn(t,{elementContext:"reference"}),l=zn(t,{altBoundary:!0}),c=Aa(a,i),d=Aa(l,s,o),u=Da(c),p=Da(d);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:d,isReferenceHidden:u,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":u,"data-popper-escaped":p})}const Y2={name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:K2};function X2(e,t,n){var i=Be(e),s=[Ee,Ie].indexOf(i)>=0?-1:1,o=typeof n=="function"?n(Object.assign({},t,{placement:e})):n,a=o[0],l=o[1];return a=a||0,l=(l||0)*s,[Ee,Ve].indexOf(i)>=0?{x:l,y:a}:{x:a,y:l}}function J2(e){var t=e.state,n=e.options,i=e.name,s=n.offset,o=s===void 0?[0,0]:s,a=sd.reduce(function(u,p){return u[p]=X2(p,t.rects,o),u},{}),l=a[t.placement],c=l.x,d=l.y;t.modifiersData.popperOffsets!=null&&(t.modifiersData.popperOffsets.x+=c,t.modifiersData.popperOffsets.y+=d),t.modifiersData[i]=a}const e5={name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:J2};function t5(e){var t=e.state,n=e.name;t.modifiersData[n]=fd({reference:t.rects.reference,element:t.rects.popper,placement:t.placement})}const n5={name:"popperOffsets",enabled:!0,phase:"read",fn:t5,data:{}};function r5(e){return e==="x"?"y":"x"}function i5(e){var t=e.state,n=e.options,i=e.name,s=n.mainAxis,o=s===void 0?!0:s,a=n.altAxis,l=a===void 0?!1:a,c=n.boundary,d=n.rootBoundary,u=n.altBoundary,p=n.padding,g=n.tether,f=g===void 0?!0:g,h=n.tetherOffset,x=h===void 0?0:h,m=zn(t,{boundary:c,rootBoundary:d,padding:p,altBoundary:u}),v=Be(t.placement),S=en(t.placement),b=!S,C=Ws(v),y=r5(C),j=t.modifiersData.popperOffsets,I=t.rects.reference,M=t.rects.popper,P=typeof x=="function"?x(Object.assign({},t.rects,{placement:t.placement})):x,E=typeof P=="number"?{mainAxis:P,altAxis:P}:Object.assign({mainAxis:0,altAxis:0},P),w=t.modifiersData.offset?t.modifiersData.offset[t.placement]:null,k={x:0,y:0};if(j){if(o){var O,L=C==="y"?Ie:Ee,T=C==="y"?$e:Ve,_=C==="y"?"height":"width",A=j[C],H=A+m[L],N=A-m[T],z=f?-M[_]/2:0,q=S===Yt?I[_]:M[_],K=S===Yt?-M[_]:-I[_],Y=t.elements.arrow,U=f&&Y?Bs(Y):{width:0,height:0},J=t.modifiersData["arrow#persistent"]?t.modifiersData["arrow#persistent"].padding:cd(),ee=J[L],Z=J[T],G=En(0,I[_],U[_]),B=b?I[_]/2-z-G-ee-E.mainAxis:q-G-ee-E.mainAxis,W=b?-I[_]/2+z+G+Z+E.mainAxis:K+G+Z+E.mainAxis,X=t.elements.arrow&&er(t.elements.arrow),V=X?C==="y"?X.clientTop||0:X.clientLeft||0:0,te=(O=w?.[C])!=null?O:0,ne=A+B-te-V,ae=A+W-te,le=En(f?Fr(H,ne):H,A,f?Pt(N,ae):N);j[C]=le,k[C]=le-A}if(l){var pe,Me=C==="x"?Ie:Ee,Se=C==="x"?$e:Ve,xe=j[y],Oe=y==="y"?"height":"width",lt=xe+m[Me],Tt=xe-m[Se],Nt=[Ie,Ee].indexOf(v)!==-1,cn=(pe=w?.[y])!=null?pe:0,rr=Nt?lt:xe-I[Oe]-M[Oe]-cn+E.altAxis,ln=Nt?xe+I[Oe]+M[Oe]-cn-E.altAxis:Tt,ir=f&&Nt?P2(rr,xe,ln):En(f?rr:lt,xe,f?ln:Tt);j[y]=ir,k[y]=ir-xe}t.modifiersData[i]=k}}const s5={name:"preventOverflow",enabled:!0,phase:"main",fn:i5,requiresIfExists:["offset"]};function o5(e){return{scrollLeft:e.scrollLeft,scrollTop:e.scrollTop}}function a5(e){return e===Ne(e)||!De(e)?Gs(e):o5(e)}function c5(e){var t=e.getBoundingClientRect(),n=Xt(t.width)/e.offsetWidth||1,i=Xt(t.height)/e.offsetHeight||1;return n!==1||i!==1}function l5(e,t,n){n===void 0&&(n=!1);var i=De(t),s=De(t)&&c5(t),o=wt(t),a=Jt(e,s,n),l={scrollLeft:0,scrollTop:0},c={x:0,y:0};return(i||!i&&!n)&&((We(t)!=="body"||Ys(o))&&(l=a5(t)),De(t)?(c=Jt(t,!0),c.x+=t.clientLeft,c.y+=t.clientTop):o&&(c.x=Ks(o))),{x:a.left+l.scrollLeft-c.x,y:a.top+l.scrollTop-c.y,width:a.width,height:a.height}}function d5(e){var t=new Map,n=new Set,i=[];e.forEach(function(o){t.set(o.name,o)});function s(o){n.add(o.name);var a=[].concat(o.requires||[],o.requiresIfExists||[]);a.forEach(function(l){if(!n.has(l)){var c=t.get(l);c&&s(c)}}),i.push(o)}return e.forEach(function(o){n.has(o.name)||s(o)}),i}function u5(e){var t=d5(e);return C2.reduce(function(n,i){return n.concat(t.filter(function(s){return s.phase===i}))},[])}function f5(e){var t;return function(){return t||(t=new Promise(function(n){Promise.resolve().then(function(){t=void 0,n(e())})})),t}}function p5(e){var t=e.reduce(function(n,i){var s=n[i.name];return n[i.name]=s?Object.assign({},s,i,{options:Object.assign({},s.options,i.options),data:Object.assign({},s.data,i.data)}):i,n},{});return Object.keys(t).map(function(n){return t[n]})}var Ha={placement:"bottom",modifiers:[],strategy:"absolute"};function $a(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some(function(i){return!(i&&typeof i.getBoundingClientRect=="function")})}function h5(e){e===void 0&&(e={});var t=e,n=t.defaultModifiers,i=n===void 0?[]:n,s=t.defaultOptions,o=s===void 0?Ha:s;return function(l,c,d){d===void 0&&(d=o);var u={placement:"bottom",orderedModifiers:[],options:Object.assign({},Ha,o),modifiersData:{},elements:{reference:l,popper:c},attributes:{},styles:{}},p=[],g=!1,f={state:u,setOptions:function(v){var S=typeof v=="function"?v(u.options):v;x(),u.options=Object.assign({},o,u.options,S),u.scrollParents={reference:Rt(l)?Pn(l):l.contextElement?Pn(l.contextElement):[],popper:Pn(c)};var b=u5(p5([].concat(i,u.options.modifiers)));return u.orderedModifiers=b.filter(function(C){return C.enabled}),h(),f.update()},forceUpdate:function(){if(!g){var v=u.elements,S=v.reference,b=v.popper;if($a(S,b)){u.rects={reference:l5(S,er(b),u.options.strategy==="fixed"),popper:Bs(b)},u.reset=!1,u.placement=u.options.placement,u.orderedModifiers.forEach(function(E){return u.modifiersData[E.name]=Object.assign({},E.data)});for(var C=0;C<u.orderedModifiers.length;C++){if(u.reset===!0){u.reset=!1,C=-1;continue}var y=u.orderedModifiers[C],j=y.fn,I=y.options,M=I===void 0?{}:I,P=y.name;typeof j=="function"&&(u=j({state:u,options:M,name:P,instance:f})||u)}}}},update:f5(function(){return new Promise(function(m){f.forceUpdate(),m(u)})}),destroy:function(){x(),g=!0}};if(!$a(l,c))return f;f.setOptions(d).then(function(m){!g&&d.onFirstUpdate&&d.onFirstUpdate(m)});function h(){u.orderedModifiers.forEach(function(m){var v=m.name,S=m.options,b=S===void 0?{}:S,C=m.effect;if(typeof C=="function"){var y=C({state:u,name:v,instance:f,options:b}),j=function(){};p.push(y||j)}})}function x(){p.forEach(function(m){return m()}),p=[]}return f}}var m5=[H2,n5,A2,k2,e5,G2,s5,L2,Y2],g5=h5({defaultModifiers:m5}),Ni,Va;function x5(){if(Va)return Ni;Va=1;var e=typeof Element<"u",t=typeof Map=="function",n=typeof Set=="function",i=typeof ArrayBuffer=="function"&&!!ArrayBuffer.isView;function s(o,a){if(o===a)return!0;if(o&&a&&typeof o=="object"&&typeof a=="object"){if(o.constructor!==a.constructor)return!1;var l,c,d;if(Array.isArray(o)){if(l=o.length,l!=a.length)return!1;for(c=l;c--!==0;)if(!s(o[c],a[c]))return!1;return!0}var u;if(t&&o instanceof Map&&a instanceof Map){if(o.size!==a.size)return!1;for(u=o.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;for(u=o.entries();!(c=u.next()).done;)if(!s(c.value[1],a.get(c.value[0])))return!1;return!0}if(n&&o instanceof Set&&a instanceof Set){if(o.size!==a.size)return!1;for(u=o.entries();!(c=u.next()).done;)if(!a.has(c.value[0]))return!1;return!0}if(i&&ArrayBuffer.isView(o)&&ArrayBuffer.isView(a)){if(l=o.length,l!=a.length)return!1;for(c=l;c--!==0;)if(o[c]!==a[c])return!1;return!0}if(o.constructor===RegExp)return o.source===a.source&&o.flags===a.flags;if(o.valueOf!==Object.prototype.valueOf&&typeof o.valueOf=="function"&&typeof a.valueOf=="function")return o.valueOf()===a.valueOf();if(o.toString!==Object.prototype.toString&&typeof o.toString=="function"&&typeof a.toString=="function")return o.toString()===a.toString();if(d=Object.keys(o),l=d.length,l!==Object.keys(a).length)return!1;for(c=l;c--!==0;)if(!Object.prototype.hasOwnProperty.call(a,d[c]))return!1;if(e&&o instanceof Element)return!1;for(c=l;c--!==0;)if(!((d[c]==="_owner"||d[c]==="__v"||d[c]==="__o")&&o.$$typeof)&&!s(o[d[c]],a[d[c]]))return!1;return!0}return o!==o&&a!==a}return Ni=function(a,l){try{return s(a,l)}catch(c){if((c.message||"").match(/stack|recursion/i))return console.warn("react-fast-compare cannot handle circular refs"),!1;throw c}},Ni}var v5=x5();const b5=iu(v5),mn=await Q("react"),y5=await Q("react-dom");var w5=[],pd=function(t,n,i){i===void 0&&(i={});var s=mn.useRef(null),o={onFirstUpdate:i.onFirstUpdate,placement:i.placement||"bottom",strategy:i.strategy||"absolute",modifiers:i.modifiers||w5},a=mn.useState({styles:{popper:{position:o.strategy,left:"0",top:"0"},arrow:{position:"absolute"}},attributes:{}}),l=a[0],c=a[1],d=mn.useMemo(function(){return{name:"updateState",enabled:!0,phase:"write",fn:function(f){var h=f.state,x=Object.keys(h.elements);y5.flushSync(function(){c({styles:Ma(x.map(function(m){return[m,h.styles[m]||{}]})),attributes:Ma(x.map(function(m){return[m,h.attributes[m]]}))})})},requires:["computeStyles"]}},[]),u=mn.useMemo(function(){var g={onFirstUpdate:o.onFirstUpdate,placement:o.placement,strategy:o.strategy,modifiers:[].concat(o.modifiers,[d,{name:"applyStyles",enabled:!1}])};return b5(s.current,g)?s.current||g:(s.current=g,g)},[o.onFirstUpdate,o.placement,o.strategy,o.modifiers,d]),p=mn.useRef();return Oa(function(){p.current&&p.current.setOptions(u)},[u]),Oa(function(){if(!(t==null||n==null)){var g=i.createPopper||g5,f=g(t,n,u);return p.current=f,function(){f.destroy(),p.current=null}}},[t,n,i.createPopper]),{state:p.current?p.current.state:null,styles:l.styles,attributes:l.attributes,update:p.current?p.current.update:null,forceUpdate:p.current?p.current.forceUpdate:null}},C5=Object.defineProperty,j5=(e,t,n)=>t in e?C5(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,Ai=(e,t,n)=>(j5(e,typeof t!="symbol"?t+"":t,n),n);let S5=class{constructor(){Ai(this,"current",this.detect()),Ai(this,"handoffState","pending"),Ai(this,"currentId",0)}set(t){this.current!==t&&(this.handoffState="pending",this.currentId=0,this.current=t)}reset(){this.set(this.detect())}nextId(){return++this.currentId}get isServer(){return this.current==="server"}get isClient(){return this.current==="client"}detect(){return typeof window>"u"||typeof document>"u"?"server":"client"}handoff(){this.handoffState==="pending"&&(this.handoffState="complete")}get isHandoffComplete(){return this.handoffState==="complete"}},Pr=new S5;const{useEffect:k5,useLayoutEffect:I5}=await Q("react");let Fn=(e,t)=>{Pr.isServer?k5(e,t):I5(e,t)};const{useRef:E5}=await Q("react");function qt(e){let t=E5(e);return Fn(()=>{t.current=e},[e]),t}const P5=await Q("react");let tt=function(e){let t=qt(e);return P5.useCallback((...n)=>t.current(...n),[t])};function M5(e){typeof queueMicrotask=="function"?queueMicrotask(e):Promise.resolve().then(e).catch(t=>setTimeout(()=>{throw t}))}function tr(){let e=[],t={addEventListener(n,i,s,o){return n.addEventListener(i,s,o),t.add(()=>n.removeEventListener(i,s,o))},requestAnimationFrame(...n){let i=requestAnimationFrame(...n);return t.add(()=>cancelAnimationFrame(i))},nextFrame(...n){return t.requestAnimationFrame(()=>t.requestAnimationFrame(...n))},setTimeout(...n){let i=setTimeout(...n);return t.add(()=>clearTimeout(i))},microTask(...n){let i={current:!0};return M5(()=>{i.current&&n[0]()}),t.add(()=>{i.current=!1})},style(n,i,s){let o=n.style.getPropertyValue(i);return Object.assign(n.style,{[i]:s}),this.add(()=>{Object.assign(n.style,{[i]:o})})},group(n){let i=tr();return n(i),this.add(()=>i.dispose())},add(n){return e.push(n),()=>{let i=e.indexOf(n);if(i>=0)for(let s of e.splice(i,1))s()}},dispose(){for(let n of e.splice(0))n()}};return t}const{useEffect:O5,useState:R5}=await Q("react");function hd(){let[e]=R5(tr);return O5(()=>()=>e.dispose(),[e]),e}const Mn=await Q("react");function L5(){let e=typeof document>"u";return"useSyncExternalStore"in Mn?(t=>t.useSyncExternalStore)(Mn)(()=>()=>{},()=>!1,()=>!e):!1}function md(){let e=L5(),[t,n]=Mn.useState(Pr.isHandoffComplete);return t&&Pr.isHandoffComplete===!1&&n(!1),Mn.useEffect(()=>{t!==!0&&n(!0)},[t]),Mn.useEffect(()=>Pr.handoff(),[]),e?!1:t}function Qe(e,t,...n){if(e in t){let s=t[e];return typeof s=="function"?s(...n):s}let i=new Error(`Tried to handle "${e}" but there is no handler defined. Only defined handlers are: ${Object.keys(t).map(s=>`"${s}"`).join(", ")}.`);throw Error.captureStackTrace&&Error.captureStackTrace(i,Qe),i}const{useEffect:_5,useRef:T5}=await Q("react");let N5=Symbol();function gd(...e){let t=T5(e);_5(()=>{t.current=e},[e]);let n=tt(i=>{for(let s of t.current)s!=null&&(typeof s=="function"?s(i):s.current=i)});return e.every(i=>i==null||i?.[N5])?void 0:n}function qr(...e){return Array.from(new Set(e.flatMap(t=>typeof t=="string"?t.split(" "):[]))).filter(Boolean).join(" ")}const{cloneElement:A5,createElement:D5,forwardRef:H5,Fragment:Di,isValidElement:$5,useCallback:F9,useRef:q9}=await Q("react");var xd=(e=>(e[e.None=0]="None",e[e.RenderStrategy=1]="RenderStrategy",e[e.Static=2]="Static",e))(xd||{}),ht=(e=>(e[e.Unmount=0]="Unmount",e[e.Hidden=1]="Hidden",e))(ht||{});function vd({ourProps:e,theirProps:t,slot:n,defaultTag:i,features:s,visible:o=!0,name:a,mergeRefs:l}){l=l??V5;let c=bd(t,e);if(o)return xr(c,n,i,a,l);let d=s??0;if(d&2){let{static:u=!1,...p}=c;if(u)return xr(p,n,i,a,l)}if(d&1){let{unmount:u=!0,...p}=c;return Qe(u?0:1,{0(){return null},1(){return xr({...p,hidden:!0,style:{display:"none"}},n,i,a,l)}})}return xr(c,n,i,a,l)}function xr(e,t={},n,i,s){let{as:o=n,children:a,refName:l="ref",...c}=Hi(e,["unmount","static"]),d=e.ref!==void 0?{[l]:e.ref}:{},u=typeof a=="function"?a(t):a;"className"in c&&c.className&&typeof c.className=="function"&&(c.className=c.className(t));let p={};if(t){let g=!1,f=[];for(let[h,x]of Object.entries(t))typeof x=="boolean"&&(g=!0),x===!0&&f.push(h);g&&(p["data-headlessui-state"]=f.join(" "))}if(o===Di&&Object.keys(za(c)).length>0){if(!$5(u)||Array.isArray(u)&&u.length>1)throw new Error(['Passing props on "Fragment"!',"",`The current component <${i} /> is rendering a "Fragment".`,"However we need to passthrough the following props:",Object.keys(c).map(x=>`  - ${x}`).join(`
`),"","You can apply a few solutions:",['Add an `as="..."` prop, to ensure that we render an actual element instead of a "Fragment".',"Render a single element as the child so that we can forward the props onto that element."].map(x=>`  - ${x}`).join(`
`)].join(`
`));let g=u.props,f=typeof g?.className=="function"?(...x)=>qr(g?.className(...x),c.className):qr(g?.className,c.className),h=f?{className:f}:{};return A5(u,Object.assign({},bd(u.props,za(Hi(c,["ref"]))),p,d,{ref:s(u.ref,d.ref)},h))}return D5(o,Object.assign({},Hi(c,["ref"]),o!==Di&&d,o!==Di&&p),u)}function V5(...e){return e.every(t=>t==null)?void 0:t=>{for(let n of e)n!=null&&(typeof n=="function"?n(t):n.current=t)}}function bd(...e){if(e.length===0)return{};if(e.length===1)return e[0];let t={},n={};for(let i of e)for(let s in i)s.startsWith("on")&&typeof i[s]=="function"?(n[s]!=null||(n[s]=[]),n[s].push(i[s])):t[s]=i[s];if(t.disabled||t["aria-disabled"])return Object.assign(t,Object.fromEntries(Object.keys(n).map(i=>[i,void 0])));for(let i in n)Object.assign(t,{[i](s,...o){let a=n[i];for(let l of a){if((s instanceof Event||s?.nativeEvent instanceof Event)&&s.defaultPrevented)return;l(s,...o)}}});return t}function Xs(e){var t;return Object.assign(H5(e),{displayName:(t=e.displayName)!=null?t:e.name})}function za(e){let t=Object.assign({},e);for(let n in t)t[n]===void 0&&delete t[n];return t}function Hi(e,t=[]){let n=Object.assign({},e);for(let i of t)i in n&&delete n[i];return n}const yd=await Q("react"),{createContext:z5,useContext:F5}=yd;let Js=z5(null);Js.displayName="OpenClosedContext";var et=(e=>(e[e.Open=1]="Open",e[e.Closed=2]="Closed",e[e.Closing=4]="Closing",e[e.Opening=8]="Opening",e))(et||{});function wd(){return F5(Js)}function q5({value:e,children:t}){return yd.createElement(Js.Provider,{value:e},t)}const{useRef:U5}=await Q("react");function eo(){let e=U5(!1);return Fn(()=>(e.current=!0,()=>{e.current=!1}),[]),e}const{useCallback:vr,useState:Q5}=await Q("react");function Z5(e=0){let[t,n]=Q5(e),i=eo(),s=vr(c=>{i.current&&n(d=>d|c)},[t,i]),o=vr(c=>!!(t&c),[t]),a=vr(c=>{i.current&&n(d=>d&~c)},[n,i]),l=vr(c=>{i.current&&n(d=>d^c)},[n]);return{flags:t,addFlag:s,hasFlag:o,removeFlag:a,toggleFlag:l}}function B5(e){let t={called:!1};return(...n)=>{if(!t.called)return t.called=!0,e(...n)}}function $i(e,...t){e&&t.length>0&&e.classList.add(...t)}function Vi(e,...t){e&&t.length>0&&e.classList.remove(...t)}function W5(e,t){let n=tr();if(!e)return n.dispose;let{transitionDuration:i,transitionDelay:s}=getComputedStyle(e),[o,a]=[i,s].map(c=>{let[d=0]=c.split(",").filter(Boolean).map(u=>u.includes("ms")?parseFloat(u):parseFloat(u)*1e3).sort((u,p)=>p-u);return d}),l=o+a;if(l!==0){n.group(d=>{d.setTimeout(()=>{t(),d.dispose()},l),d.addEventListener(e,"transitionrun",u=>{u.target===u.currentTarget&&d.dispose()})});let c=n.addEventListener(e,"transitionend",d=>{d.target===d.currentTarget&&(t(),c())})}else t();return n.add(()=>t()),n.dispose}function G5(e,t,n,i){let s=n?"enter":"leave",o=tr(),a=i!==void 0?B5(i):()=>{};s==="enter"&&(e.removeAttribute("hidden"),e.style.display="");let l=Qe(s,{enter:()=>t.enter,leave:()=>t.leave}),c=Qe(s,{enter:()=>t.enterTo,leave:()=>t.leaveTo}),d=Qe(s,{enter:()=>t.enterFrom,leave:()=>t.leaveFrom});return Vi(e,...t.base,...t.enter,...t.enterTo,...t.enterFrom,...t.leave,...t.leaveFrom,...t.leaveTo,...t.entered),$i(e,...t.base,...l,...d),o.nextFrame(()=>{Vi(e,...t.base,...l,...d),$i(e,...t.base,...l,...c),W5(e,()=>(Vi(e,...t.base,...l),$i(e,...t.base,...t.entered),a()))}),o.dispose}function K5({immediate:e,container:t,direction:n,classes:i,onStart:s,onStop:o}){let a=eo(),l=hd(),c=qt(n);Fn(()=>{e&&(c.current="enter")},[e]),Fn(()=>{let d=tr();l.add(d.dispose);let u=t.current;if(u&&c.current!=="idle"&&a.current)return d.dispose(),s.current(c.current),d.add(G5(u,i.current,c.current==="enter",()=>{d.dispose(),o.current(c.current)})),d.dispose},[n])}const Ze=await Q("react"),{createContext:Cd,Fragment:Fa,useContext:to,useEffect:On,useMemo:jd,useRef:nt,useState:gs}=Ze;function dt(e=""){return e.split(/\s+/).filter(t=>t.length>1)}let ci=Cd(null);ci.displayName="TransitionContext";var Y5=(e=>(e.Visible="visible",e.Hidden="hidden",e))(Y5||{});function X5(){let e=to(ci);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}function J5(){let e=to(li);if(e===null)throw new Error("A <Transition.Child /> is used but it is missing a parent <Transition /> or <Transition.Root />.");return e}let li=Cd(null);li.displayName="NestingContext";function di(e){return"children"in e?di(e.children):e.current.filter(({el:t})=>t.current!==null).filter(({state:t})=>t==="visible").length>0}function Sd(e,t){let n=qt(e),i=nt([]),s=eo(),o=hd(),a=tt((f,h=ht.Hidden)=>{let x=i.current.findIndex(({el:m})=>m===f);x!==-1&&(Qe(h,{[ht.Unmount](){i.current.splice(x,1)},[ht.Hidden](){i.current[x].state="hidden"}}),o.microTask(()=>{var m;!di(i)&&s.current&&((m=n.current)==null||m.call(n))}))}),l=tt(f=>{let h=i.current.find(({el:x})=>x===f);return h?h.state!=="visible"&&(h.state="visible"):i.current.push({el:f,state:"visible"}),()=>a(f,ht.Unmount)}),c=nt([]),d=nt(Promise.resolve()),u=nt({enter:[],leave:[],idle:[]}),p=tt((f,h,x)=>{c.current.splice(0),t&&(t.chains.current[h]=t.chains.current[h].filter(([m])=>m!==f)),t?.chains.current[h].push([f,new Promise(m=>{c.current.push(m)})]),t?.chains.current[h].push([f,new Promise(m=>{Promise.all(u.current[h].map(([v,S])=>S)).then(()=>m())})]),h==="enter"?d.current=d.current.then(()=>t?.wait.current).then(()=>x(h)):x(h)}),g=tt((f,h,x)=>{Promise.all(u.current[h].splice(0).map(([m,v])=>v)).then(()=>{var m;(m=c.current.shift())==null||m()}).then(()=>x(h))});return jd(()=>({children:i,register:l,unregister:a,onStart:p,onStop:g,wait:d,chains:u}),[l,a,i,p,g,u,d])}function e3(){}let t3=["beforeEnter","afterEnter","beforeLeave","afterLeave"];function qa(e){var t;let n={};for(let i of t3)n[i]=(t=e[i])!=null?t:e3;return n}function n3(e){let t=nt(qa(e));return On(()=>{t.current=qa(e)},[e]),t}let r3="div",kd=xd.RenderStrategy;function i3(e,t){var n,i;let{beforeEnter:s,afterEnter:o,beforeLeave:a,afterLeave:l,enter:c,enterFrom:d,enterTo:u,entered:p,leave:g,leaveFrom:f,leaveTo:h,...x}=e,m=nt(null),v=gd(m,t),S=(n=x.unmount)==null||n?ht.Unmount:ht.Hidden,{show:b,appear:C,initial:y}=X5(),[j,I]=gs(b?"visible":"hidden"),M=J5(),{register:P,unregister:E}=M;On(()=>P(m),[P,m]),On(()=>{if(S===ht.Hidden&&m.current){if(b&&j!=="visible"){I("visible");return}return Qe(j,{hidden:()=>E(m),visible:()=>P(m)})}},[j,m,P,E,b,S]);let w=qt({base:dt(x.className),enter:dt(c),enterFrom:dt(d),enterTo:dt(u),entered:dt(p),leave:dt(g),leaveFrom:dt(f),leaveTo:dt(h)}),k=n3({beforeEnter:s,afterEnter:o,beforeLeave:a,afterLeave:l}),O=md();On(()=>{if(O&&j==="visible"&&m.current===null)throw new Error("Did you forget to passthrough the `ref` to the actual DOM node?")},[m,j,O]);let L=y&&!C,T=C&&b&&y,_=!O||L?"idle":b?"enter":"leave",A=Z5(0),H=tt(U=>Qe(U,{enter:()=>{A.addFlag(et.Opening),k.current.beforeEnter()},leave:()=>{A.addFlag(et.Closing),k.current.beforeLeave()},idle:()=>{}})),N=tt(U=>Qe(U,{enter:()=>{A.removeFlag(et.Opening),k.current.afterEnter()},leave:()=>{A.removeFlag(et.Closing),k.current.afterLeave()},idle:()=>{}})),z=Sd(()=>{I("hidden"),E(m)},M),q=nt(!1);K5({immediate:T,container:m,classes:w,direction:_,onStart:qt(U=>{q.current=!0,z.onStart(m,U,H)}),onStop:qt(U=>{q.current=!1,z.onStop(m,U,N),U==="leave"&&!di(z)&&(I("hidden"),E(m))})});let K=x,Y={ref:v};return T?K={...K,className:qr(x.className,...w.current.enter,...w.current.enterFrom)}:q.current&&(K.className=qr(x.className,(i=m.current)==null?void 0:i.className),K.className===""&&delete K.className),Ze.createElement(li.Provider,{value:z},Ze.createElement(q5,{value:Qe(j,{visible:et.Open,hidden:et.Closed})|A.flags},vd({ourProps:Y,theirProps:K,defaultTag:r3,features:kd,visible:j==="visible",name:"Transition.Child"})))}function s3(e,t){let{show:n,appear:i=!1,unmount:s=!0,...o}=e,a=nt(null),l=gd(a,t);md();let c=wd();if(n===void 0&&c!==null&&(n=(c&et.Open)===et.Open),![!0,!1].includes(n))throw new Error("A <Transition /> is used but it is missing a `show={true | false}` prop.");let[d,u]=gs(n?"visible":"hidden"),p=Sd(()=>{u("hidden")}),[g,f]=gs(!0),h=nt([n]);Fn(()=>{g!==!1&&h.current[h.current.length-1]!==n&&(h.current.push(n),f(!1))},[h,n]);let x=jd(()=>({show:n,appear:i,initial:g}),[n,i,g]);On(()=>{if(n)u("visible");else if(!di(p))u("hidden");else{let b=a.current;if(!b)return;let C=b.getBoundingClientRect();C.x===0&&C.y===0&&C.width===0&&C.height===0&&u("hidden")}},[n,p]);let m={unmount:s},v=tt(()=>{var b;g&&f(!1),(b=e.beforeEnter)==null||b.call(e)}),S=tt(()=>{var b;g&&f(!1),(b=e.beforeLeave)==null||b.call(e)});return Ze.createElement(li.Provider,{value:p},Ze.createElement(ci.Provider,{value:x},vd({ourProps:{...m,as:Fa,children:Ze.createElement(Id,{ref:l,...m,...o,beforeEnter:v,beforeLeave:S})},theirProps:{},defaultTag:Fa,features:kd,visible:d==="visible",name:"Transition"})))}function o3(e,t){let n=to(ci)!==null,i=wd()!==null;return Ze.createElement(Ze.Fragment,null,!n&&i?Ze.createElement(xs,{ref:t,...e}):Ze.createElement(Id,{ref:t,...e}))}let xs=Xs(s3),Id=Xs(i3),a3=Xs(o3),c3=Object.assign(xs,{Child:a3,Root:xs});const Ed=await Q("react"),{useState:br}=Ed,l3=e=>({placement:"top",modifiers:[{name:"arrow",options:{element:e,padding:7}},{name:"offset",options:{offset:[0,6]}},{name:"flip",enabled:!0},{name:"preventOverflow",enabled:!0,options:{padding:5}}]});function ui({children:e,tip:t="",popperConfig:n=o=>{},className:i="",disabled:s}){const[o,a]=br(!1),[l,c]=br(null),[d,u]=br(null),[p,g]=br(null),{styles:f,attributes:h}=pd(l,d,{...l3(p),...n(p)});return r.jsxs("div",{ref:c,onMouseEnter:()=>t&&!s&&a(!0),onMouseLeave:()=>t&&a(!1),className:i||"inline-block",children:[e,r.jsx(c3,{as:Ed.Fragment,show:o,enter:"transition-opacity duration-300",enterFrom:"opacity-0",enterTo:"opacity-100",leave:"transition-opacity duration-300",leaveFrom:"opacity-100",leaveTo:"opacity-0",children:r.jsxs("div",{ref:u,style:f.popper,...h.popper,className:R("text-white text-xs","bg-neutral-800","rounded-md","px-sm py-xs",'[&[data-popper-placement^="top"]>*]:bottom-[-4px]','[&[data-popper-placement^="bottom"]>*]:top-[-4px]','[&[data-popper-placement^="left"]>*]:right-[-4px]','[&[data-popper-placement^="right"]>*]:left-[-4px]',"z-10"),children:[t,r.jsx("div",{ref:g,style:f.arrow,className:R("absolute before:absolute","invisible before:visible","w-2 h-2 before:w-2 before:h-2","[background:inherit] before:[background:inherit]",'before:content-[""]',"before:rotate-45")})]})})]})}const{useCallback:d3}=await Q("react"),u3=!!(mt&&!Fs);function Pd(e){const t=D(Jp),[n,i]=o2(),s=c2(),{recordGA4AddToCart:o}=rd(),a=D(Kl),l=!!a.length,c=l?a.map(u=>u.message).join(" "):"",d=d3(()=>{s(),Kp(),o(),n()},[s,n,o]);return r.jsx(ui,{tip:c,disabled:!l,className:"flex",children:r.jsx(st,{...e,onClick:d,disabled:t||i.isLoading||l,children:u3?"Update Cart":"Add To Cart"})})}function f3({price:e,unitPrice:t,onEstimateShipping:n}){const i=Qt(e),s=Qt(t);return r.jsx(qs,{children:r.jsx("div",{className:"@container/instantQuote",children:r.jsxs("div",{className:R("flex flex-col items-center","@[600px]/instantQuote:flex-row @[600px]/instantQuote:gap-5"),children:[r.jsxs("div",{className:R("flex flex-col items-center","@[600px]/instantQuote:basis-1/2 @[600px]/instantQuote:items-start"),children:[r.jsx("p",{className:F.titleLoose.sm,children:"Instant Quote"}),r.jsx("p",{className:R(F.headlineAlt.xl,"text-blue py-sm"),children:i}),r.jsxs(gt,{children:[r.jsx(gt.Key,{children:"Unit Price:"}),r.jsx(gt.Value,{children:s})]})]}),r.jsxs("div",{className:R("flex flex-col items-center w-full","@[600px]/instantQuote:basis-1/2"),children:[r.jsx("div",{className:R("pt-lg pb-md w-full","@[600px]/instantQuote:pt-none"),children:r.jsx(Pd,{block:!0})}),r.jsx("span",{className:R(F.links.md,"text-blue"),children:r.jsx(oe,{onClick:n,children:"Estimate Shipping"})})]})]})})})}function p3({id:e,onClick:t}){return r.jsx(oe,{onClick:t,id:e,children:r.jsx("div",{className:"w-12 h-12 rounded-[50%] bg-surface-blue flex items-center justify-center shadow-intercom",children:r.jsx(ah,{})})})}function h3({price:e,unitPrice:t,onAddToCart:n,onEstimateShipping:i,onDownloadTemplates:s}){const o=Qt(e),a=Qt(t);return r.jsx(r.Fragment,{children:r.jsxs("div",{className:R("w-screen","bg-gradient-to-r from-surface-blue from-50% to-surface-white to-50%","relative"),children:[r.jsx("div",{className:"absolute right-0 top-0 h-full w-1/2 border-t border-b border-r border-light pointer-events-none"}),r.jsxs("div",{className:R("flex","max-w-[1440px] mx-auto"),children:[r.jsxs("div",{className:R("flex basis-1/2 items-center justify-between gap-[10px]","bg-surface-blue text-white px-lg"),children:[r.jsxs("div",{className:"text-white",children:[r.jsx("div",{className:R(F.titleTight.sm,"pb-xxs"),children:"Need file setup help?"}),r.jsx("div",{className:R(F.body.sm),children:"Let's get started!"})]}),r.jsx(st,{secondary:!0,reverse:!0,onClick:s,children:"Download Templates"})]}),r.jsxs("div",{className:R("@container/addToCart","flex basis-1/2 items-center justify-between","bg-surface-white","px-lg py-sm"),children:[r.jsxs("div",{children:[r.jsx("p",{className:F.titleLoose.sm,children:"Instant Quote"}),r.jsxs("div",{className:R("flex items-center"),children:[r.jsx("p",{className:R(F.headlineAlt.xl,"text-blue py-sm pr-lg"),children:o}),r.jsxs(gt,{stacked:!0,children:[r.jsxs(gt.Key,{children:["Unit ",r.jsx("br",{className:"@[515px]/addToCart:hidden"}),"Price:"]}),r.jsx(gt.Value,{children:a})]})]})]}),r.jsxs("div",{className:"flex items-center gap-2",children:[r.jsxs("div",{className:R("flex flex-col items-center gap-2","@[660px]/addToCart:flex-row-reverse"),children:[r.jsx(Pd,{}),r.jsx("span",{className:R(F.links.md,"text-blue"),children:r.jsx(oe,{onClick:i,children:"Estimate Shipping"})})]}),r.jsx("div",{className:"pl-[12px] invisible",children:r.jsx(p3,{id:"intercom-trigger",onClick:console.log})})]})]})]})]})})}const{useRef:m3}=await Q("react"),g3={behavior:"smooth"};function x3(e=g3){const t=m3();function n(i=e){t.current?.scrollIntoView(i)}return[t,n]}const{useCallback:v3}=await Q("react");function Md(){const[e,t]=Uh();return[v3(async()=>{try{await e(Nl(Kt.getState().configuration))}catch(i){console.log(i)}},[e,Kt.getState]),t]}function no({title:e,body:t,icon:n,className:i,titleClassName:s,bodyClassName:o,onClose:a}){return r.jsxs("div",{className:R("flex items-center justify-stretch","p-md","rounded-md border-sm",i),children:[n&&r.jsx("div",{className:"flex-grow-0 pr-sm",children:n}),r.jsxs("div",{className:"flex flex-col gap-2",children:[e&&r.jsx("div",{className:R(F.titleTight.sm,s),children:e}),r.jsx("div",{className:R(F.body.md.tight,o),children:t})]}),a&&r.jsx("div",{className:"pl-md",children:r.jsx(oe,{onClick:a,children:r.jsx(Hl,{})})})]})}function fi({title:e,body:t,onClose:n}){return r.jsx(no,{title:e,body:t,icon:r.jsx(dh,{}),className:"bg-surface-warning border-warning",titleClassName:"text-warning",bodyClassName:"text-dark",onClose:n})}function It({children:e,last:t=!1}){return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:R("py-lg","lg:p-lg","lg:rounded-md","lg:border-light lg:border-sm"),children:e}),r.jsx("div",{className:R("lg:hidden","h-[1px]","my-2","bg-surface-medium")})]})}function ze({children:e,onHelpClick:t}){return r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("h3",{className:R(F.titleTight.md,"text-dark uppercase"),children:e}),t&&r.jsx(oe,{onClick:t,children:r.jsx(on,{})})]})}const b3="https://saddle-stitch-booklet.smartpress.com/shrink-wrapping-CQOVCxft.jpg";function Od({img:e,children:t}){return r.jsx(r.Fragment,{children:r.jsxs("div",{className:R("rounded-md","border-sm border-light","overflow-hidden"),children:[r.jsx("div",{children:r.jsx("img",{src:e,alt:""})}),r.jsx("div",{className:R("flex flex-col gap-2","p-xs"),children:t})]})})}const{useEffect:Ua,useRef:y3}=await Q("react");function w3(e=()=>{}){const t=y3();Ua(()=>{t.current=e},[e]),Ua(()=>{return document.addEventListener("click",n),()=>{document.removeEventListener("click",n)};function n(i){t.current(i)}},[])}const{useCallback:Ur,useEffect:vs,useRef:Rd,useState:C3}=await Q("react"),Ae={KEYBOARD:"keyboard",MOUSE:"mouse"},j3=new Set(["Tab","ArrowUp","ArrowDown","ArrowLeft","ArrowRight"]);function S3(){const[e,t]=C3(Ae.MOUSE),n=Rd(Ae.MOUSE),i=k3(()=>{t(Ae.MOUSE),n.current=Ae.MOUSE}),s=Ur(a=>{j3.has(a.key)&&n.current!==Ae.KEYBOARD&&(t(Ae.KEYBOARD),n.current=Ae.KEYBOARD,i())},[i]),o=Ur(()=>{n.current!==Ae.MOUSE&&(t(Ae.MOUSE),n.current=Ae.MOUSE)},[]);return vs(()=>(document.addEventListener("keydown",s),document.addEventListener("pointerdown",o),()=>{document.removeEventListener("keydown",s),document.removeEventListener("pointerdown",o)}),[s,o]),{keyboard:e===Ae.KEYBOARD,mouse:e===Ae.MOUSE}}function k3(e){const t=Rd(e);vs(()=>{t.current=e},[e]);const n=Ur(()=>{t.current&&t.current(),document.removeEventListener("mousemove",n)},[]);return vs(()=>(document.addEventListener("mousemove",n),()=>document.removeEventListener("mousemove",n)),[n]),Ur(()=>{document.removeEventListener("mousemove",n),document.addEventListener("mousemove",n)},[n])}const{useEffect:I3,useId:Qa,useRef:E3,useState:zi}=await Q("react"),P3=[{name:"offset",options:{offset:[0,2]}},{name:"preventOverflow",options:{boundary:"viewport"}},{name:"sameWidth",enabled:!0,fn:({state:e})=>{e.styles.popper.width=`${e.rects.reference.width}px`},phase:"beforeWrite",requires:["computeStyles"]},{name:"constrainHeight",enabled:!0,fn:({state:e})=>{e.placement==="bottom-start"?e.elements.popper.style.maxHeight=`${window.innerHeight-e.elements.popper.getBoundingClientRect().top}px`:e.elements.popper.style.maxHeight="none"},phase:"afterWrite"}],M3={placement:"bottom-start",strategy:"fixed",modifiers:P3};function de({label:e,value:t,onChange:n,onHelpClick:i,disabled:s,required:o,error:a,errorMessage:l,children:c,...d}){const u=Qa(),p=Qa(),g=E3(),[f,h]=zi(!1),[x,m]=zi(null),[v,S]=zi(null),{styles:b,attributes:C,forceUpdate:y}=pd(x,v,M3),j=S3();w3(I);function I(w){const k=w.composedPath()[0];f&&!g.current.contains(k)&&h(!1)}I3(()=>{if(f&&j.keyboard){v.firstElementChild?.focus();return}f&&j.mouse&&v.contains(document.activeElement)&&x.focus()},[f,j.keyboard]);function M(w){h(!f),!f&&y()}function P(w){w.stopPropagation(),i&&i()}function E(w){if(f){if((w.key===" "||w.key==="Enter"||w.key==="Spacebar"||w.key==="Escape")&&(w.preventDefault(),w.stopPropagation(),h(!1),x.focus()),w.key==="Tab"&&!w.shiftKey||w.key==="ArrowDown"){const k=v,L=w.target.getRootNode().activeElement.nextElementSibling;if(w.preventDefault(),w.stopPropagation(),L){L.focus();return}k.firstElementChild?.focus();return}if(w.key==="Tab"&&w.shiftKey||w.key==="ArrowUp"){const k=v,L=w.target.getRootNode().activeElement.previousElementSibling;if(w.preventDefault(),w.stopPropagation(),L){L.focus();return}k.lastElementChild?.focus();return}}}return r.jsxs("div",{className:R(j.keyboard&&"pointer-events-none"),children:[r.jsx("div",{ref:g,children:r.jsxs(oe,{onClick:M,ref:m,"aria-haspopup":"true","aria-controls":u,"aria-expanded":f,disabled:s,className:R("flex flex-col","px-md py-sm","bg-surface-white","rounded-md border-sm",!s&&"cursor-pointer"||"cursor-default",!s&&"hover:bg-interactions-form-hover",!s&&!a&&"border-medium hover:border-blue",!s&&a&&"border-error",!s&&f&&"border-blue outline outline-025 outline-offset-0",s&&"border-disabled "),...d,children:[r.jsxs("div",{className:R("flex self-start items-center gap-1",(e||i)&&"mb-2"),children:[e&&r.jsxs("label",{id:p,className:R(F.formlabel,!a&&"text-medium",!s&&a&&"text-error"),children:[e,!o&&" (optional)"]}),i&&r.jsx(oe,{onClick:P,children:r.jsx(on,{})})]}),r.jsxs("div",{className:"flex gap-3 justify-between items-end",children:[r.jsx("div",{className:R(F.formvalue.reg,!s&&!a&&"text-dark",s&&"text-disabled"),children:t}),r.jsx("div",{children:r.jsx(Dl,{...s?{className:"fill-interactions-disabled"}:{}})})]})]})}),a&&r.jsx("p",{className:R(F.formmsg,"py-xs px-md text-error"),children:l}),r.jsx("div",{id:u,role:"menu","aria-labelledby":p,ref:S,style:b.popper,...C.popper,onKeyDown:E,className:R("flex flex-col items-stretch","overflow-y-auto","z-50","p-xs","rounded-md border-sm border-light","bg-surface-white","shadow-[0px_4px_6px_0px_rgba(102,102,102,0.24)]",f||"hidden"),children:c})]})}de.Item=function({label:t,onClick:n,selected:i,disabled:s}){const o=n&&!s;return r.jsxs(oe,{role:"menuitem","aria-selected":i,...o&&!i?{onClick:n}:{},...!n||s?{"aria-disabled":!0}:{},className:R("flex items-center justify-start gap-1","rounded-md","bg-surface-white focus-visible:outline-none",o&&"hover:bg-interactions-secondary-hover focus:bg-interactions-secondary-hover",o&&!i?"cursor-pointer":"cursor-default",s?"text-disabled":"text-dark","break-words","py-xxs"),children:[r.jsx("div",{className:"aspect-square w-[24px] flex-shrink-0",children:i&&r.jsx(th,{})}),r.jsx("div",{className:F.formvalue.sm,children:t})]})};const{useState:O3}=await Q("react");function fe(){const[e,t]=O3(!1);return[e,t]}const{createContext:R3}=await Q("react"),Ld=R3(),{useState:L3,useCallback:_3,useRef:Za}=await Q("react");function T3(){const[e,t]=L3(!1),n=Za(null),i=Za(null);return[_3(o=>{if(o){const a=()=>{t(o.scrollHeight>o.clientHeight)};n.current=new ResizeObserver(a),i.current=new MutationObserver(a),n.current.observe(o),i.current.observe(o,{childList:!0}),a()}else n.current?.disconnect(),i.current?.disconnect()},[]),e]}const{useContext:N3,useEffect:A3,useCallback:D3}=await Q("react"),{createPortal:H3}=await Q("react-dom");function me({title:e,show:t,onClose:n,children:i,large:s=!1,footer:o=null}){const a=N3(Ld),[l,c]=T3(),d=D3(u=>{n&&u.key==="Escape"&&(u.preventDefault(),n(u))},[n]);return A3(()=>(t?window.addEventListener("keydown",d):window.removeEventListener("keydown",d),()=>window.removeEventListener("keydown",d)),[t]),t?H3(r.jsxs("div",{className:R("flex flex-col","overflow-hidden isolate","rounded-md bg-surface-white","w-screen max-h-dvh min-w-[320px]",!s&&"max-w-[530px]",s&&"max-w-[800px]","@[501px]/modal:w-[calc(100vw_-_40px)] @[501px]/modal:max-h-[calc(100vh_-_40px)]",!s&&"@[570px]/modal:max-w-[530px]",s&&"@[840px]/modal:max-w-[800px]"),role:"dialog","aria-modal":"true","aria-labelledby":"aria-modal-title",children:[r.jsx($3,{title:e,onClose:n}),r.jsx("div",{ref:l,className:"p-lg overflow-y-auto flex-grow",children:i}),o&&r.jsx(V3,{hasScroll:c,children:o})]}),a.current):null}function $3({title:e,onClose:t}){return r.jsxs("div",{className:"p-lg flex items-center justify-between gap-2 flex-grow-0",children:[r.jsx("h2",{className:F.headlineAlt.md,id:"aria-modal-title",children:e}),t&&r.jsx(oe,{onClick:t,children:r.jsx(Hl,{className:"fill-icon-blue"})})]})}function V3({hasScroll:e,children:t}){return r.jsx("div",{className:R("p-lg flex-grow-0 grid grid-cols-2 gap-4",e&&"shadow-[0px_-2px_8px_0px_rgba(51,51,51,0.25)] z-10"),children:t})}const{forwardRef:z3,useCallback:F3,useId:q3,useImperativeHandle:U3,useRef:Q3}=await Q("react"),it=z3(({label:e,value:t,onChange:n,disabled:i,required:s,error:o,errorMessage:a,onHelpClick:l,...c},d)=>{const u=q3(),p=Q3(),g=F3(h=>{p.current.focus()},[p.current]);U3(d,()=>p,[]);function f(h){h.stopPropagation(),l&&l(h)}return r.jsxs("div",{children:[r.jsxs("div",{onClick:g,className:R("flex flex-col","px-md py-sm","bg-surface-white","rounded-md border-sm",!i&&"cursor-text",!i&&"hover:bg-interactions-form-hover",!i&&!o&&"border-medium hover:border-blue",!i&&o&&"border-error",!i&&"has-[:focus]:border-blue has-[:focus]:outline has-[:focus]:outline-025 has-[:focus]:outline-offset-0",i&&"border-disabled "),children:[r.jsxs("div",{className:R("self-start flex gap-1 items-center",(e||l)&&"mb-2"),children:[e&&r.jsxs("label",{htmlFor:u,className:R(F.formlabel,!o&&"text-medium",!i&&o&&"text-error"),children:[e,!s&&" (optional)"]}),l&&r.jsx(oe,{onClick:f,children:r.jsx(on,{})})]}),r.jsx("input",{id:u,ref:p,value:t,onChange:n,disabled:i,className:R(F.formvalue.reg,"appearance-none bg-[transparent] outline-none",!i&&!o&&"text-dark",i&&"text-disabled"),...c})]}),o&&r.jsx("p",{className:R(F.formmsg,"py-xs px-md text-error"),children:a})]})});function _d({value:e,operation:t,onChange:n,label:i,img:s,tip:o}){const[a,l]=fe(),c=t.disabled,d=i||t.name,u=t.followUpQuestionDataType==="integer";function p(x){if(!x){n(null);return}n({operationId:t.id,itemId:x.id,followUpQuestionAnswer:e?.followUpQuestionAnswer||""})}function g(x){let m=u?parseInt(Number(x.target.value),10):x.target.value;u&&(isNaN(m)&&(m=1),m<1&&(m=1)),n({...e,followUpQuestionAnswer:m})}const f=e?.followUpQuestionAnswer,h=t.items.find(x=>x.id===e?.itemId);return r.jsxs(r.Fragment,{children:[r.jsxs(Od,{img:s,children:[r.jsxs(de,{label:d,value:h?.name||"None",...o?{onHelpClick:()=>l(!0)}:{},disabled:c,required:!0,children:[t.items.map(x=>r.jsx(de.Item,{label:x.name,selected:x.id===h?.id,onClick:()=>p(x),disabled:x.disabled},x.id)),r.jsx(de.Item,{label:"None",selected:!e,onClick:()=>p(null),disabled:c})]}),h?.id&&t.followUpQuestion&&r.jsx("div",{children:r.jsx(it,{label:t.followUpQuestion,value:f,onChange:g,type:u?"number":"text",...u?{step:1,min:1}:{},required:!0})})]}),r.jsx(me,{large:!0,title:d,show:a,onClose:()=>l(!1),children:o})]})}function Z3(){return r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"Select Bundles and enter the number of pieces you'd like per bundle in the field below. The minimum and maximum quantity per bundle varies by size and thickness of the online printing product ordered."}),r.jsx("p",{children:"We do our best to accommodate quantity requests but limitations may require us to adjust those quantities to ensure proper packaging."})]})}function B3({onChange:e}){const t=D(A0),n=D(Lh);return n?r.jsx(_d,{value:t,operation:n,onChange:e,img:b3,label:"Shrink Wrapping",tip:r.jsx(Z3,{})}):null}const W3="https://saddle-stitch-booklet.smartpress.com/vdp-eBKQPa4i.jpg";function G3(){return r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"Variable data printing (VDP) lets you design and print multiple versions personalized for a specific customer or topic."}),r.jsx("p",{children:"Please provide data files in the recommended format for online printing or let us do your file prep for you (with additional fees)."}),r.jsxs("p",{children:[r.jsx("b",{children:"Note"}),": Part of our online printing services, VDP requires an additional day of turnaround for processing."]}),r.jsx("p",{children:r.jsx("b",{children:"VDP Tips:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"Check character length and reduce font size to accommodate text"}),r.jsx("li",{children:"Send us the font used in the VDP area to ensure your order gets to press quickly"}),r.jsxs("li",{children:["Send separate files:",r.jsx("ul",{className:"list-[circle] list-outside ml-3",children:"An image file showing where you'd like the VDP An image file without the text"})]}),r.jsx("li",{children:"Use a spreadsheet template for your personalization data"})]}),r.jsx("p",{children:r.jsx("b",{children:"VDP Ideas:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"Feature recipient's name for personalized messaging"}),r.jsx("li",{children:"Feature personalized URL for recipient relevancy and tracking"}),r.jsx("li",{children:"Vary your offer by recipient"}),r.jsx("li",{children:"Feature contact information relevant to the area"}),r.jsx("li",{children:"Preprint response cards so customers have less to fill out"}),r.jsx("li",{children:"Target customers based on past purchases"})]}),r.jsx("p",{children:r.jsx("b",{children:"Sequence Numbers:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"We'll add an identifying sequence number for your VDP job in a 5pt font"}),r.jsx("li",{children:"It'll be placed in an unobtrusive area in black ink, unless directed otherwise"}),r.jsx("li",{children:"For single-sided printing, we'll add the number to the unprinted side at our cost"}),r.jsx("li",{children:"For double-sided printing, we'll hide the number within the provided art"})]})]})}function K3({onChange:e}){const t=D(D0),n=D(_h);return n?r.jsx(_d,{value:t,operation:n,onChange:e,img:W3,label:"Variable Data Printing",tip:r.jsx(G3,{})}):null}const Y3="https://saddle-stitch-booklet.smartpress.com/drilling-D8vOTwo2.jpg";function X3(){return r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"Choose which drilling option you'd like for your online printing project."}),r.jsx("p",{children:r.jsx("b",{children:"Single Hole:"})}),r.jsx("ul",{className:"list-disc list-outside ml-3",children:r.jsx("li",{children:'Drilling size options: 1/8", 1/4", 3/8" and 5/16"'})}),r.jsx("p",{children:r.jsx("b",{children:"Double Hole:"})}),r.jsx("ul",{className:"list-disc list-outside ml-3",children:r.jsx("li",{children:'Drilling size options: 1/8", 1/4", 3/8" and 5/16"'})}),r.jsx("p",{children:r.jsx("b",{children:"3 Hole:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:'Drilling size options: 1/4" and 5/16" (5/16” is standard)'}),r.jsx("li",{children:`If you don't select a size, we'll select the standard 5/16" size`})]}),r.jsx("p",{children:"After making your drilling selection, please note the desired location and hole size in the open field below the dropdown so we know exactly where you'd like the holes drilled."}),r.jsx("p",{children:"When you receive your proof, you'll see the circles to verify the drilling location. After proof approval, we'll remove these circles from the file before printing."}),r.jsxs("p",{children:[r.jsx("b",{children:"Note"}),": Be sure to provide an editable file so we can remove the drill hole circles on your design before printing."]})]})}function J3({onDrillingChange:e,onHoleChange:t}){const n=D(T0),i=D(N0),s=D(Oh),o=D(Mh),a=D(v=>Yl(v,"Drill Hole Size")),l=n?.followUpQuestionAnswer,[c,d]=fe(),u=Pe();function p(v){u(Ll({...n,followUpQuestionAnswer:v.target.value}))}function g(v){e(v?{operationId:s.id,itemId:v.id,followUpQuestionAnswer:n?.followUpQuestionAnswer||""}:null)}function f(v){t(v?{operationId:o.id,itemId:v.id}:null)}if(!s)return null;const h=s.disabled,x=s.items.find(v=>v.id===n?.itemId),m=o.items.find(v=>v.id===i?.itemId);return r.jsxs(r.Fragment,{children:[r.jsxs(Od,{img:Y3,children:[r.jsxs(de,{label:"Drilling Options",value:x?.name||"None",onHelpClick:()=>d(!0),disabled:h,required:!0,children:[s.items.map(v=>r.jsx(de.Item,{label:v.name,selected:v.id===x?.id,onClick:()=>g(v),disabled:v.disabled},v.id)),r.jsx(de.Item,{label:"None",selected:!n,onClick:()=>{g(null),t(null)},disabled:h})]}),x?.id&&r.jsx(de,{label:"Hole Size",value:m?.name||"None",onHelpClick:()=>d(!0),disabled:h,required:!0,error:a,errorMessage:a?.message,children:o.items.map(v=>r.jsx(de.Item,{label:v.name,selected:m?.id===v.id,onClick:()=>f(v),disabled:v.disabled||h},v.id))}),x?.id&&m?.id&&r.jsx("div",{children:r.jsx(it,{label:s.followUpQuestion,value:l,onChange:p})})]}),r.jsx(me,{large:!0,title:"Drilling Options",show:c,onClose:()=>d(!1),children:r.jsx(X3,{})})]})}function e4({onChange:e}){const t=Pe();function n(a){e(t(Ll(a))),re({label:"Drilling",name:"Drilling",value:a?.id||null})}function i(a){e(t(b0(a))),re({label:"Drill Hole Size",name:"Drill Hole Size",value:a?.id||null})}function s(a){e(t(y0(a))),re({label:"Shrink Wrap",name:"Shrink Wrap",value:a?.id||null})}function o(a){e(t(w0(a))),re({label:"Variable Data",name:"Variable Data",value:a?.id||null})}return r.jsxs(r.Fragment,{children:[r.jsx(ze,{children:"Upgrades"}),r.jsx("div",{className:"@container/upgradeOptions",children:r.jsxs("div",{className:R("grid grid-cols-1 gap-5","@[420px]/upgradeOptions:grid-cols-2","@[621px]/upgradeOptions:grid-cols-3","@[840px]/upgradeOptions:grid-cols-4","@[1050px]/upgradeOptions:grid-cols-5"),children:[r.jsx(J3,{onDrillingChange:n,onHoleChange:i}),r.jsx(B3,{onChange:s}),r.jsx(K3,{onChange:o})]})})]})}const t4="https://saddle-stitch-booklet.smartpress.com/c1s-BXKYxNyS.jpg",n4="https://saddle-stitch-booklet.smartpress.com/c2s-_fLbYvbd.jpg",r4="https://saddle-stitch-booklet.smartpress.com/gloss-Dp7bZcuO.jpg",i4="https://saddle-stitch-booklet.smartpress.com/matte-5bdqGjnA.jpg",s4="https://saddle-stitch-booklet.smartpress.com/felt-natural-ge96lDI6.jpg",o4="https://saddle-stitch-booklet.smartpress.com/felt-BuYWIZmj.jpg",a4="https://saddle-stitch-booklet.smartpress.com/linen-natural-BGU56i2d.jpg",c4="https://saddle-stitch-booklet.smartpress.com/linen-DvU4DbHr.jpg",l4="https://saddle-stitch-booklet.smartpress.com/recycled-sagx-s_J.jpg",d4="https://saddle-stitch-booklet.smartpress.com/uncoated-natural-Cnjrk4tT.jpg",u4="https://saddle-stitch-booklet.smartpress.com/uncoated-DSp8pCVo.jpg",f4="https://saddle-stitch-booklet.smartpress.com/kraft-speckletone-uGe2GJ3j.jpg",$t={[ie.COATED_MATTE_WHITE]:{src:i4,alt:""},[ie.COATED_GLOSS_WHITE]:{src:r4,alt:""},[ie.UNCOATED_SMOOTH_NATURAL]:{src:d4,alt:""},[ie.UNCOATED_SMOOTH_WHITE]:{src:u4,alt:""},[ie.UNCOATED_100_RECYCLED_WHITE]:{src:l4,alt:""},[ie.COATED_SEMIGLOSS_1_SIDE_C1S]:{src:t4,alt:""},[ie.COATED_SEMIGLOSS_2_SIDE_C2S]:{src:n4,alt:""},[ie.LINEN_NATURAL]:{src:a4,alt:""},[ie.LINEN_WHITE]:{src:c4,alt:""},[ie.FELT_WEAVE_NATURAL]:{src:s4,alt:""},[ie.FELT_WEAVE_WHITE]:{src:o4,alt:""},[ie.KRAFT_SPECKLETONE]:{src:f4,alt:""}},{useEffect:p4}=await Q("react");function h4(){p4(()=>{Object.keys($t).forEach(e=>{const t=new Image;t.src=$t[e].src,window[$t[e].src]=t})},[$t])}function Fe({title:e,items:t}){return r.jsxs("div",{className:"",children:[e&&r.jsx("h4",{className:R(F.titleTight.md,"pb-lg"),children:e}),r.jsx("ul",{className:R(F.body.md.loose,"list-disc list-outside","pl-md","space-y-2"),children:t.map(n=>r.jsx("li",{children:n},n))})]})}const m4=["Cardstock with one uncoated side and one exceptionally smooth side with a semigloss finish","Brightness: 92"];function g4(){return r.jsx(Fe,{title:"Coated Semigloss 1 Side (C1S)",items:m4})}const x4=["Cardstock with both sides coated and an exceptionally smooth semigloss finish"];function v4(){return r.jsx(Fe,{title:"Coated Semigloss 2 Sides (C2S)",items:x4})}const b4=["Triple blade coated paper (three layers of coating material, with each applied separately)","Excellent ink transfer and adhesion","Made with at least 40% recycled fibers and FSC certified cellulose","Gloss or matte finish"];function Td(){return r.jsx(Fe,{title:"Coated Gloss - White",items:b4})}const y4=["Coated cover stock in white color with a matte finish","Brightness: 90","150# weight","50% recycled content: 10% post-consumer waste, 40% pre-consumer waste","pH neutral and long-life archival"];function Nd(){return r.jsx(Fe,{title:"Coated Matte - White",items:y4})}const w4=["Uncoated stock with a sophisticated felt text and cover finish","Great option for even the most challenging finishing techniques","Non-directional pattern is the perfect canvas for four-color imagery","Raised bump texture","Chlorine-free","30% FSC certified post-consumer fiber"];function Ad(){return r.jsx(Fe,{title:"Felt Weave - White and Natural",items:w4})}const C4=["Uncoated stock with timeless linen color and texture","Rich surface pattern allows for excellent printability","Raised grid texture","Chlorine-free","30% FSC certified post-consumer fiber"];function Dd(){return r.jsx(Fe,{title:"Linen - White and Natural",items:C4})}const j4=["White paper stock with a few flecks and fibers (compared to many other recycled papers)","Perfect option for conscientious designers with sustainability in mind","Brightness: 96","Chlorine-free","Acid-free for added archival quality","100% post-consumer waste recycled fiber","FSC certified"];function Hd(){return r.jsx(Fe,{title:"Uncoated 100% Recycled - White",items:j4})}const S4=["Uncoated stock with a warm white color and light, creamy matte look","Cannot be finished with UV coating","Chlorine-free","10% FSC certified post-consumer recycled","Manufactured using non-polluting renewable energy"];function $d(){return r.jsx(Fe,{title:"Uncoated Smooth - Natural",items:S4})}const k4=["Uncoated stock with a pleasant blue-white color and a smooth, uniform surface for better resolution","Brightness: 98","Excellent opacity for minimal show-through","Smooth, uniform finish for better resolution","Acid-free for archival quality"];function Vd(){return r.jsx(Fe,{title:"Uncoated Smooth - White",items:k4})}const I4=["Uncoated stock with visible flecks that offers a timeless look with character","Chlorine-free","100% recycled content with 30% from post-consumer waste","Made with 100% green hydropower","Note: Due to the nature of the paper, ink-free design areas will appear as the brown paper stock color"];function E4(){return r.jsx(Fe,{title:"Kraft - Speckletone",items:I4})}function P4({show:e,setShow:t,title:n="Paper Stock Options"}){return r.jsx(me,{large:!0,title:n,show:e,onClose:()=>t(!1),children:r.jsxs("div",{className:"space-y-5",children:[r.jsx(g4,{}),r.jsx(v4,{}),r.jsx(Td,{}),r.jsx(Nd,{}),r.jsx(Ad,{}),r.jsx(E4,{}),r.jsx(Dd,{}),r.jsx(Hd,{}),r.jsx($d,{}),r.jsx(Vd,{})]})})}function M4({onChange:e,value:t,options:n}){const[i,s]=fe(),[o,a]=fe();return h4(),r.jsxs(r.Fragment,{children:[r.jsx(ze,{onHelpClick:()=>s(!0),children:"Cover Stock"}),r.jsx(zd,{option:n.find(l=>l.id===t.id),selected:!1,onClick:()=>a(!0),showEdit:!0,constrain:!0}),r.jsx(P4,{show:i,setShow:s,title:"Cover Stock"}),r.jsx(O4,{title:"Cover Stock Options",currentOption:t,options:n,show:o,onClose:()=>a(!1),onChange:e})]})}function zd({option:e,selected:t,disabled:n,onClick:i,showEdit:s=!1,as:o="div",constrain:a=!1}){return r.jsxs(oe,{as:o,...n?{}:{onClick:i},className:R("overflow-hidden relative","flex flex-col","rounded-md",!n&&"cursor-pointer hover:border-blue","border-sm",n?"border-disabled":t?"border-blue outline outline-025 outline-offset-0":"border-medium"),children:[r.jsx("div",{className:R(a&&"relative overflow-hidden h-[164px]"),children:r.jsx("img",{src:$t[e.id].src,alt:$t[e.id].alt,className:R("w-full",n&&"opacity-30",a&&"absolute top-1/2 -translate-y-1/2")})}),r.jsx("div",{className:"py-xs px-md bg-surface-light @container/paperOption flex-grow",children:r.jsxs("div",{className:R("flex flex-col gap-1","@[197px]/paperOption:flex-row","@[197px]/paperOption:gap-4","@[197px]/paperOption:justify-between","@[197px]/paperOption:items-center"),children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("div",{className:R(F.formvalue.sm,n?"text-disabled":"text-dark"),children:e.name}),e.decoration&&r.jsx("div",{className:R(F.pills.sm,"text-pill"),children:e.decoration.name}),e.badge&&r.jsx("div",{children:e.badge})]}),r.jsx("span",{className:R(s?"":"hidden",F.links.md,"text-blue"),children:"Edit"})]})}),t&&r.jsx("div",{className:"absolute top-1 right-1",children:r.jsx(zs,{})})]})}function O4({title:e,show:t,onClose:n,onChange:i,options:s,currentOption:o}){function a(l){i(l),n()}return r.jsx(me,{large:!0,title:e,show:t,onClose:n,children:r.jsx("ul",{className:R("grid gap-2","@[415px]/modal:grid-cols-2","@[650px]/modal:grid-cols-3","@[840px]/modal:grid-cols-4"),children:s.map(l=>r.jsx(ui,{tip:l.disabledReason,disabled:!l.disabled,className:"flex",children:r.jsx(zd,{as:"li",option:l,selected:o.id===l.id,onClick:()=>a(l),disabled:l.disabled})},l.id))})})}function ro({tip:e,children:t,disabled:n}){return r.jsx(ui,{disabled:n,tip:e,className:"cursor-default inline-block",children:t})}function io({checked:e,disabled:t}){return r.jsxs("div",{className:R("inline-flex items-center justify-center group relative isolate"),children:[r.jsx("div",{className:R("invisible",!t&&"group-hover:visible group-hover/radio:visible","absolute -left-1 -top-1 z-0"),children:r.jsx(nh,{})}),r.jsx("div",{className:"z-10",children:e?r.jsx(oi,{}):r.jsx(rh,{...t?{className:"fill-interactions-disabled"}:{}})})]})}const R4=["Lightweight stock","The larger the number, the heavier the stock","80# text is approximately equal to 32# bond","Commonly used for interior pages of custom booklets, flyers, etc."];function L4(){return r.jsx(Fe,{title:"Text Weights",items:R4})}const _4=["Heavier stock than text with a stiffness similar to cardstock","Commonly used for custom booklet covers, business cards, table tents and similar applications"];function T4(){return r.jsx(Fe,{title:"Cover Weights",items:_4})}function Fd({show:e,setShow:t,title:n="Paper Weight"}){return r.jsx(me,{large:!0,title:n,show:e,onClose:()=>t(!1),children:r.jsxs("div",{className:"space-y-5",children:[r.jsx(L4,{}),r.jsx(T4,{})]})})}function N4({value:e,options:t,onChange:n}){const[i,s]=fe();return r.jsxs(r.Fragment,{children:[r.jsx(ze,{onHelpClick:()=>s(!0),children:"Cover Weight"}),r.jsx(A4,{value:e,options:t,onChange:n}),r.jsx(Fd,{show:i,setShow:()=>s(!1),title:"Cover Weight"})]})}function A4({value:e,options:t,onChange:n}){return r.jsx("div",{className:"@container/paperWeight",children:r.jsx("ul",{className:R("grid gap-4","@[278px]/paperWeight:grid-cols-2","@[478px]/paperWeight:grid-cols-3","@[678px]/paperWeight:grid-cols-4","@[878px]/paperWeight:grid-cols-5"),children:t.map(i=>r.jsx(oe,{as:"li",...i.disabled?{}:{onClick:()=>n(i)},children:r.jsx(ro,{disabled:!i.disabled,tip:i.disabledReason,children:r.jsxs("div",{className:R("flex items-center gap-2",!i.disabled&&"cursor-pointer",!i.disabled&&"group/radio"),children:[r.jsx(io,{checked:e.id===i.id,disabled:i.disabled}),r.jsx("div",{children:r.jsx("div",{className:R(F.formvalue.sm,i.disabled?"text-disabled":"text-dark"),children:i.name})})]})})},i.id))})})}const{useMemo:Ba}=await Q("react");function D4(){const e=D(O0),t=D(Wl),n=Ba(()=>({id:e.typeId}),[e.typeId]),i=Ba(()=>({id:e.weightId}),[e.weightId]),s=Pe();function o(l){const c=t.find(u=>u.id===l),d=c.weights.find(u=>u.id===i.id)||c.weights.filter(u=>!u.disabled)[0];s(pa({typeId:l,weightId:d.id}))}function a(l){s(pa({typeId:n.id,weightId:l}))}return[n,o,i,a]}function H4({label:e,option:t,selected:n,onClick:i,disabled:s,...o}){return r.jsxs(oe,{...o,...i&&!s?{onClick:()=>i(t)}:{},className:R("min-h-[50px] p-sm","flex gap-5 items-center","rounded-md border-sm",!s&&"hover:border-blue hover:bg-interactions-form-hover",n&&"border-blue outline outline-025 outline-offset-0",!s&&"cursor-pointer",!n&&!s&&"border-medium",s&&"border-disabled"),children:[r.jsxs("div",{className:"flex-grow",children:[r.jsx("div",{className:R(F.formvalue.reg,s?"text-disabled":"text-dark"),children:e}),t.decoration&&r.jsx("div",{className:R(F.pills.sm,"text-pill pt-xxs"),children:t.decoration.name})]}),!1,n&&r.jsx("div",{className:"flex-grow-0",children:r.jsx(oi,{})})]})}function $4({value:e,onChange:t,operation:n}){return r.jsx("ul",{className:"space-y-2",children:n.items.map(i=>r.jsx(H4,{as:"li",label:i.name,option:i,onClick:t,selected:e&&e.id===i.id,disabled:i.disabled},i.id))})}function V4({title:e,show:t,onClose:n}){return r.jsx(me,{title:e,show:t,onClose:n,large:!0,children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:r.jsx("b",{children:"Flat Matte UV:"})}),r.jsx("ul",{className:"list-disc list-outside ml-3",children:r.jsx("li",{children:"Lends a rich, subtle matte finished appearance to the paper without adding a glossy shine"})}),r.jsx("p",{children:r.jsx("b",{children:"Ultra Gloss UV:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"Adds exceptional depth to the paper with a high sheen"}),r.jsx("li",{children:"Allows for maximum color saturation for photographic images"})]}),r.jsx("p",{children:"For mailings, a protective coating is needed to protect the address and artwork from being damaged by mail handling equipment. Consider these tips when choosing a one- or two-sided coating:"}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"If you're adding stamps and messaging after printing, a one-sided coating keeps the art or graphic side intact and allows for stamps and a handwritten note on the non-coated side"}),r.jsx("li",{children:"If you're using a prepaid, printed indicia and variable data printing for addressing, a two-sided coating fully protects your printed piece"})]}),r.jsxs("p",{children:[r.jsx("b",{children:"Note:"})," Coating may add an additional day to your standard turnaround time and UV coatings will often make your print appear darker than uncoated print."]})]})})}function z4({title:e,show:t,onClose:n}){return r.jsx(me,{title:e,show:t,onClose:n,large:!0,children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:r.jsx("b",{children:"Soft Touch:"})}),r.jsxs("ul",{className:"list-disc list-outside ml-3",children:[r.jsx("li",{children:"Matte appearance with a soft, suede-like feel to the touch"}),r.jsx("li",{children:"Not recommended for mailed items like postcards (Soft Touch cannot be sent through mail processing machines)"})]})]})})}function F4({coating:e,laminating:t,onCoatingChange:n,onLaminatingChange:i,coatingOptions:s,laminatingOptions:o}){const[a,l]=fe(),[c,d]=fe();return!e&&!t?null:r.jsxs(r.Fragment,{children:[e&&r.jsx(Wa,{label:"Coating Option",onHelpClick:()=>l(!0),value:e,onChange:n,operation:s}),t&&r.jsx(Wa,{label:"Laminating Option",onHelpClick:()=>d(!0),value:t,onChange:i,operation:o}),r.jsx(V4,{title:"Coating Option",show:a,onClose:()=>l(!1)}),r.jsx(z4,{title:"Laminating Option",show:c,onClose:()=>d(!1)})]})}function Wa({label:e,value:t,onChange:n,operation:i,onHelpClick:s}){return r.jsxs(r.Fragment,{children:[r.jsx(ze,{onHelpClick:s,children:e}),r.jsx($4,{value:t,onChange:n,operation:i})]})}function q4({onNoneClick:e,onCoatingClick:t,onLaminatingClick:n,coating:i,coatingOptions:s,laminating:o,laminatingOptions:a,coatingDisabled:l,laminatingDisabled:c}){const d=!!i,u=!!o,g=[{label:"None",onClick:e,checked:!d&&!u,disabled:!1,tip:""},{label:"Coating",onClick:t,checked:d,disabled:l,tip:s.disabledReason||""},{label:"Laminating",onClick:n,checked:u,disabled:c,tip:a.disabledReason||""}];return r.jsx("ul",{className:R("grid gap-4 grid-cols-3"),children:g.map(f=>r.jsx(oe,{as:"li",...f.disabled?{}:{onClick:f.onClick},children:r.jsx(ro,{disabled:!f.disabled,tip:f.tip,children:r.jsxs("div",{className:R("flex items-center gap-2",!f.disabled&&"cursor-pointer",!f.disabled&&"group/radio"),children:[r.jsx(io,{checked:f.checked,disabled:f.disabled}),r.jsx("div",{children:r.jsx("div",{className:R(F.formvalue.sm,f.disabled?"text-disabled":"text-dark"),children:f.label})})]})})},f.label))})}function U4({title:e,show:t,onClose:n}){return r.jsx(me,{title:e,show:t,onClose:n,large:!0,children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:r.jsx("b",{children:"Coating:"})}),r.jsx("p",{children:"Coatings on one or both sides of your finished online printing project guard against moisture, smudging and smearing due to repeated handling. Our protective coatings can be applied only to our coated stocks."}),r.jsx("p",{children:r.jsx("b",{children:"Laminating:"})}),r.jsx("p",{children:"Laminating will protect your online printing project from moisture, smudging and smearing due to repeated handling. Our laminates can be applied only to our coated cover stocks and will often make your print appear darker than the print alone."})]})})}function Q4({onChange:e,coating:t,laminating:n,coatingOptions:i,laminatingOptions:s}){const[o,a]=fe(),l=Pe();function c(){e(t&&l(p(null)),n&&l(g(null)))}function d(){e(n&&l(ha(null)),l(p(i.items[0])))}function u(){e(t&&l(ma(null)),l(g(s.items[0])))}function p(x){return re({label:"Coating",name:"Coating",value:x?.id||null}),ma(x?{operationId:i.id,itemId:x.id}:null)}function g(x){return re({label:"Laminating",name:"Laminating",value:x?.id||null}),ha(x?{operationId:s.id,itemId:x.id}:null)}const f=x=>e(l(p(x))),h=x=>e(l(g(x)));return r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(ze,{onHelpClick:()=>a(!0),children:"Finish Option"}),r.jsx(q4,{onNoneClick:c,onCoatingClick:d,onLaminatingClick:u,coating:t,coatingOptions:i,laminating:n,laminatingOptions:s,coatingDisabled:i.disabled,laminatingDisabled:s.disabled})]}),r.jsx("div",{children:r.jsx(F4,{coating:t,laminating:n,onCoatingChange:f,onLaminatingChange:h,coatingOptions:i,laminatingOptions:s})}),r.jsx(U4,{show:o,onClose:()=>a(!1),title:"Finish Option"})]})}function Z4({onChange:e}){const t=D(Wl),[n,i,s,o]=D4(),a=D(L0),l=D(_0),c=D(Rh),d=D(Ph);function u(h){e(i(h.id)),re({label:"Paper",name:"Paper Type",value:h.id})}function p(h){e(o(h.id)),re({label:"Paper",name:"Paper Weight",value:h.id})}const g=l?d.items.find(h=>h.id===l.itemId):null,f=a?c.items.find(h=>h.id===a.itemId):null;return r.jsx("div",{className:"@container/paperCoatingAndLaminating",children:r.jsxs("div",{className:R("grid gap-5","@[561px]/paperCoatingAndLaminating:grid-cols-[198px_1fr]"),children:[r.jsx("div",{children:r.jsx(M4,{onChange:u,value:n,options:t})}),r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsx("div",{children:r.jsx(N4,{onChange:p,value:s,options:t.find(h=>h.id===n.id).weights})}),r.jsx("div",{children:r.jsx(Q4,{onChange:e,coating:g,laminating:f,coatingOptions:d,laminatingOptions:c})})]})]})})}const B4="https://saddle-stitch-booklet.smartpress.com/c1s-BXKYxNyS.jpg",W4="https://saddle-stitch-booklet.smartpress.com/c2s-_fLbYvbd.jpg",G4="https://saddle-stitch-booklet.smartpress.com/gloss-Dp7bZcuO.jpg",K4="https://saddle-stitch-booklet.smartpress.com/matte-5bdqGjnA.jpg",Y4="https://saddle-stitch-booklet.smartpress.com/felt-natural-ge96lDI6.jpg",X4="https://saddle-stitch-booklet.smartpress.com/felt-BuYWIZmj.jpg",J4="https://saddle-stitch-booklet.smartpress.com/linen-natural-BGU56i2d.jpg",em="https://saddle-stitch-booklet.smartpress.com/linen-DvU4DbHr.jpg",tm="https://saddle-stitch-booklet.smartpress.com/recycled-sagx-s_J.jpg",nm="https://saddle-stitch-booklet.smartpress.com/uncoated-natural-Cnjrk4tT.jpg",rm="https://saddle-stitch-booklet.smartpress.com/uncoated-DSp8pCVo.jpg",Vt={[ie.COATED_MATTE_WHITE]:{src:K4,alt:""},[ie.COATED_GLOSS_WHITE]:{src:G4,alt:""},[ie.UNCOATED_SMOOTH_NATURAL]:{src:nm,alt:""},[ie.UNCOATED_SMOOTH_WHITE]:{src:rm,alt:""},[ie.UNCOATED_100_RECYCLED_WHITE]:{src:tm,alt:""},[ie.COATED_SEMIGLOSS_1_SIDE_C1S]:{src:B4,alt:""},[ie.COATED_SEMIGLOSS_2_SIDE_C2S]:{src:W4,alt:""},[ie.LINEN_NATURAL]:{src:J4,alt:""},[ie.LINEN_WHITE]:{src:em,alt:""},[ie.FELT_WEAVE_NATURAL]:{src:Y4,alt:""},[ie.FELT_WEAVE_WHITE]:{src:X4,alt:""}},{useEffect:im}=await Q("react");function sm(){im(()=>{Object.keys(Vt).forEach(e=>{const t=new Image;t.src=Vt[e].src,window[Vt[e].src]=t})},[Vt])}function om({show:e,setShow:t,title:n="Paper Stock Options"}){return r.jsx(me,{large:!0,title:n,show:e,onClose:()=>t(!1),children:r.jsxs("div",{className:"space-y-5",children:[r.jsx(Td,{}),r.jsx(Nd,{}),r.jsx(Ad,{}),r.jsx(Dd,{}),r.jsx(Vd,{}),r.jsx($d,{}),r.jsx(Hd,{})]})})}function am({onChange:e,value:t,options:n}){const[i,s]=fe(),[o,a]=fe();return sm(),r.jsxs(r.Fragment,{children:[r.jsx(ze,{onHelpClick:()=>s(!0),children:"Pages Stock"}),r.jsx(qd,{option:n.find(l=>l.id===t.id),selected:!1,onClick:()=>a(!0),showEdit:!0,constrain:!0}),r.jsx(om,{show:i,setShow:s,title:"Interior Page Stock"}),r.jsx(cm,{title:"Page Stock Options",currentOption:t,options:n,show:o,onClose:()=>a(!1),onChange:e})]})}function qd({option:e,selected:t,disabled:n,onClick:i,showEdit:s=!1,as:o="div",constrain:a=!1}){return r.jsxs(oe,{as:o,...n?{}:{onClick:i},className:R("overflow-hidden relative","flex flex-col","rounded-md",!n&&"cursor-pointer hover:border-blue","border-sm",n?"border-disabled":t?"border-blue outline outline-025 outline-offset-0":"border-medium"),children:[r.jsx("div",{children:r.jsx("img",{src:Vt[e.id].src,alt:Vt[e.id].alt,className:R("w-full",n&&"opacity-30",a&&"max-h-[164px]")})}),r.jsx("div",{className:"py-xs px-md bg-surface-light @container/paperOption flex-grow",children:r.jsxs("div",{className:R("flex flex-col gap-1","@[197px]/paperOption:flex-row","@[197px]/paperOption:gap-4","@[197px]/paperOption:justify-between","@[197px]/paperOption:items-center"),children:[r.jsxs("div",{className:"space-y-1",children:[r.jsx("div",{className:R(F.formvalue.sm,n?"text-disabled":"text-dark"),children:e.name}),e.decoration&&r.jsx("div",{className:R(F.pills.sm,"text-pill"),children:e.decoration.name}),e.badge&&r.jsx("div",{children:e.badge})]}),r.jsx("span",{className:R(s?"":"hidden",F.links.md,"text-blue"),children:"Edit"})]})}),t&&r.jsx("div",{className:"absolute top-1 right-1",children:r.jsx(zs,{})})]})}function cm({title:e,show:t,onClose:n,onChange:i,options:s,currentOption:o}){function a(l){i(l),n()}return r.jsx(me,{large:!0,title:e,show:t,onClose:n,children:r.jsx("ul",{className:R("grid gap-2","@[415px]/modal:grid-cols-2","@[650px]/modal:grid-cols-3","@[840px]/modal:grid-cols-4"),children:s.map(l=>r.jsx(ui,{tip:l.disabledReason,disabled:!l.disabled,className:"flex",children:r.jsx(qd,{as:"li",option:l,selected:o.id===l.id,onClick:()=>a(l),disabled:l.disabled})},l.id))})})}function lm({value:e,options:t,onChange:n}){const[i,s]=fe();return r.jsxs(r.Fragment,{children:[r.jsx(ze,{onHelpClick:()=>s(!0),children:"Pages Weight"}),r.jsx(dm,{value:e,options:t,onChange:n}),r.jsx(Fd,{show:i,setShow:()=>s(!1),title:"Interior Page Weight"})]})}function dm({value:e,options:t,onChange:n}){return r.jsx("div",{className:"@container/paperWeight",children:r.jsx("ul",{className:R("grid gap-4","@[278px]/paperWeight:grid-cols-2","@[478px]/paperWeight:grid-cols-3","@[678px]/paperWeight:grid-cols-4","@[878px]/paperWeight:grid-cols-5"),children:t.map(i=>r.jsx(oe,{as:"li",...i.disabled?{}:{onClick:()=>n(i)},children:r.jsx(ro,{disabled:!i.disabled,tip:i.disabledReason,children:r.jsxs("div",{className:R("flex items-center gap-2",!i.disabled&&"cursor-pointer",!i.disabled&&"group/radio"),children:[r.jsx(io,{checked:e.id===i.id,disabled:i.disabled}),r.jsx("div",{children:r.jsx("div",{className:R(F.formvalue.sm,i.disabled?"text-disabled":"text-dark"),children:i.name})})]})})},i.id))})})}const{useMemo:Ga}=await Q("react");function um(){const e=D(M0),t=D(Bl),n=Ga(()=>({id:e.typeId}),[e.typeId]),i=Ga(()=>({id:e.weightId}),[e.weightId]),s=Pe();function o(l){const c=t.find(u=>u.id===l),d=c.weights.find(u=>u.id===i.id)||c.weights.filter(u=>!u.disabled)[0];s(fa({typeId:l,weightId:d.id}))}function a(l){s(fa({typeId:n.id,weightId:l}))}return[n,o,i,a]}function fm({onChange:e}){const t=D(Bl),[n,i,s,o]=um();Pe();function a(c){e(i(c.id)),re({label:"Paper",name:"Paper Type",value:c.id})}function l(c){e(o(c.id)),re({label:"Paper",name:"Paper Weight",value:c.id})}return r.jsx("div",{className:"@container/paperCoatingAndLaminating",children:r.jsxs("div",{className:R("grid gap-5","@[561px]/paperCoatingAndLaminating:grid-cols-[198px_1fr]"),children:[r.jsx("div",{children:r.jsx(am,{onChange:a,value:n,options:t})}),r.jsx("div",{className:"flex flex-col gap-5",children:r.jsx("div",{children:r.jsx(lm,{onChange:l,value:s,options:t.find(c=>c.id===n.id).weights})})})]})})}function pm({onChange:e}){fe();const t=D(kh),n=D(Ih),i=D(Eh),s=D(k0),o=D(j0),a=D(S0),l=Pe();function c(p){e(l(f0(p))),re({label:"Cover Side 1 Ink",name:"Cover Printing, Outside",value:p.id})}function d(p){e(l(p0(p||null))),re({label:"Cover Side 2 Ink",name:"Cover Printing, Inside",value:p?.id||null})}function u(p){e(l(h0(p))),re({label:"Interior Ink",name:"Pages Printing",value:p.id})}return r.jsx(r.Fragment,{children:r.jsxs("div",{className:"@container/inks",children:[r.jsx(ze,{children:"Printing Options"}),r.jsxs("div",{className:R("grid gap-5","@[460px]/inks:grid-cols-2"),children:[r.jsx("div",{children:r.jsx(de,{label:"Cover Printing, Outside",value:o.name,required:!0,children:n.map(p=>r.jsx(de.Item,{label:p.name,onClick:()=>c(p),selected:p.id===o.id},p.id))})}),r.jsx("div",{children:r.jsx(de,{label:"Cover Printing, Inside",value:a?.name||"None",required:!0,children:i.map(p=>r.jsx(de.Item,{label:p.name,onClick:()=>d(p),selected:p.id===a?.id},p?.id))})}),r.jsx("div",{children:r.jsx(de,{label:"Pages Printing",value:s.name,required:!0,children:t.map(p=>r.jsx(de.Item,{label:p.name,onClick:()=>u(p),selected:p.id===s.id},p.id))})})]})]})})}const{useEffect:hm,useState:mm}=await Q("react");function Rn(e){const[t,n]=mm(e);return hm(()=>{(e?.id!==t?.id||e!==t)&&n(e)},[e,e?.id]),[t,n]}function ct({title:e,body:t,onClose:n}){return r.jsx(no,{title:e,body:t,icon:r.jsx(oh,{}),className:"bg-surface-info border-info",titleClassName:"text-info",bodyClassName:"text-dark",onClose:n})}function gm({className:e="stroke-icon-medium"}){return r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"18",height:"18",viewBox:"0 0 48 48",fill:"none",children:r.jsx("path",{className:e,d:"M10 7.5H38C39.3807 7.5 40.5 8.61929 40.5 10V38C40.5 39.3807 39.3807 40.5 38 40.5H10C8.61929 40.5 7.5 39.3807 7.5 38V10C7.5 8.61929 8.61929 7.5 10 7.5Z",strokeWidth:"3"})})}const{useId:xm}=await Q("react");function vm({checked:e=!1,disabled:t=!1,onChange:n,label:i,onHelpClick:s}){const o=xm();return r.jsxs("div",{className:"flex items-center",children:[r.jsx(oe,{onClick:()=>n(!e),disabled:t,"aria-labelledby":o,role:"checkbox","aria-checked":e,children:r.jsxs("div",{className:"flex items-center gap-1",children:[r.jsx("div",{className:R("p-[3px]",t&&"opacity-50"),children:e?r.jsx(z0,{}):r.jsx(gm,{})}),i&&r.jsx("label",{className:R("pr-[3px] text-dark",F.formvalue.sm,!t&&"cursor-pointer"),id:o,children:i})]})}),s&&r.jsx(oe,{onClick:s,children:r.jsx(on,{})})]})}const{useState:gn}=await Q("react");function bm({onChange:e}){const t=D(_l),[n,i]=Rn(t),s=D(P0),[o,a]=Rn(s),l=D(I0),[c,d]=Rn(l),u=D(xh),p=D(vh),g=D(gh),[f,h]=gn(!1),[x,m]=gn(!1),[v,S]=gn(!1),[b,C]=gn(!1),[y,j]=gn(!1),[I,M]=fe(),P=Pe();function E(_){const A=parseInt(_,10);if(isNaN(A)){i(t);return}if(A>p){!f&&h(!0),x&&m(!1),e(P(Ri(p))),i(p),re({label:"Quantity",name:"Quantity - user exceeded max qty",value:A});return}if(A<u){!x&&m(!0),f&&h(!1),e(P(Ri(u))),i(u),re({label:"Quantity",name:"Quantity - user lower than min qty",value:A});return}f&&h(!1),x&&m(!1),e(P(Ri(A))),re({label:"Quantity",name:"Quantity - user within bounds",value:A})}function w(_){const A=l*_;if(_>g){!y&&j(!0),b&&C(!1),v&&S(!1),a(s),re({label:"Quantity",name:"Version Count - user exceeded max version count",value:_});return}if(A>p){!v&&S(!0),b&&C(!1),y&&j(!1),a(s),re({label:"Quantity",name:"Version Count - user exceeded max qty",value:_});return}if(A<u){!b&&C(!0),v&&S(!1),y&&j(!1),a(s),re({label:"Quantity",name:"Version Count - user less than min qty",value:_});return}v&&S(!1),b&&C(!1),y&&j(!1),e(P(g0(_))),re({label:"Quantity",name:"Version Count - user within bounds",value:_})}function k(_){const A=_*s;if(A>p){!v&&S(!0),b&&C(!1),y&&j(!1),d(l),re({label:"Quantity",name:"Quantity Per Version - user exceeded max qty",value:_});return}if(A<u){!b&&C(!0),v&&S(!1),y&&j(!1),d(l),re({label:"Quantity",name:"Quantity Per Version - user less than min qty",value:_});return}e(P(m0(_))),re({label:"Quantity",name:"Quantity Per Version - user within bounds",value:_})}const O=s>1,L=f?r.jsx(Ka,{maxQty:p}):x?r.jsx(Ya,{minQty:u}):null,T=y?r.jsx(ym,{maxVersions:g}):v?r.jsx(Ka,{maxQty:p}):b?r.jsx(Ya,{minQty:u}):null;return r.jsxs(r.Fragment,{children:[L&&r.jsx("div",{className:"mb-5",children:L}),r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(ze,{onHelpClick:()=>M(!0),children:"Quantity"}),r.jsx(it,{label:"Quantity",value:n,onChange:_=>i(_.target.value),onBlur:_=>E(_.target.value),disabled:O,required:!0,type:"number",step:1,min:u})]}),r.jsx("div",{children:r.jsx(vm,{label:"Add Versions",checked:O,onChange:_=>w(_?2:1),onHelpClick:()=>M(!0)})}),O&&r.jsxs(r.Fragment,{children:[T&&r.jsx("div",{className:"mb-5",children:T}),r.jsxs("div",{className:R("grid gap-2","@[400px]/foldSizeAndQty:grid-cols-2"),children:[r.jsx(it,{label:"Quantity Per Version",value:c,onChange:_=>d(_.target.value),onBlur:_=>k(_.target.value),required:!0,type:"number",step:1,min:Math.ceil(50/s)}),r.jsx(it,{label:"Number of Versions",value:o,onChange:_=>a(_.target.value),onBlur:_=>w(_.target.value),required:!0,type:"number",step:1,min:2,max:g})]})]})]}),r.jsx(wm,{show:I,onClose:()=>M(!1)})]})}function Ka({maxQty:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["The maximum quantity for this product is ",e,"."]})})}function Ya({minQty:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["The minimum quantity for this product is ",e,"."]})})}function ym({maxVersions:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["The maximum number of versions for this product is ",e,"."]})})}function wm({show:e,onClose:t}){return r.jsx(me,{title:"Quantity and Versions",show:e,onClose:t,children:r.jsxs("div",{className:"space-y-3",children:[r.jsxs("p",{children:["Please enter the quantity you would like to order for online printing. For larger quantities, submit a ",r.jsx("a",{target:"_blank",href:ed,className:"text-link-active hover:text-link-hover",children:"Custom Quote"}),"."]}),r.jsxs("p",{children:[r.jsx("b",{children:"Versions"})," - Save money and time by ordering versions of your design. If each design has the same size, stock and finish, and the same quantity of each design, add ",r.jsx("b",{children:"Versions"})," and the calculator will total all the parts into a single online printing order."]}),r.jsx("p",{children:r.jsx("b",{children:"When submitting your artwork, please include the version name within the job notes for each file uploaded."})}),r.jsx("p",{children:"When ordering multiple versions with digital laser cutting, additional charges may apply when the laser cut files differ by version."})]})})}const{useCallback:Cm,useEffect:jm,useMemo:Xa,useState:Ja}=await Q("react");function Sm(e,t){const[n,i]=Ja(e.width),[s,o]=Ja(e.height),a=D(Ql),l=D(ql),c=D(Ul);jm(()=>{i(e.width),o(e.height)},[e.width,e.height]);const d=Cm(g=>{const f={id:null,width:n,height:s,...g};if(f.width=Math.max(f.width,a),f.height=Math.max(f.height,a),f.width>f.height)f.width=Math.min(f.width,c),f.height=Math.min(f.height,l);else if(f.height>f.width)f.height=Math.min(f.height,c),f.width=Math.min(f.width,l);else{const h=Object.keys(g)[0];h==="width"?(f.width=Math.min(f.width,c),f.height=Math.min(f.height,l)):h==="height"&&(f.height=Math.min(f.height,c),f.width=Math.min(f.width,l))}n!==f.width&&i(f.width),s!==f.height&&o(f.height),t(f)},[n,s,i,o,t]),u=Xa(()=>({value:n,onChange:g=>{i(Number(g.target.value)),re({label:"Size",name:"Custom Width",value:Number(g.target.value)})},onBlur:g=>d({width:Number(g.target.value)}),type:"number",min:a,max:c,step:"0,5"}),[n,i,d]),p=Xa(()=>({value:s,onChange:g=>{o(Number(g.target.value)),re({label:"Size",name:"Custom Height",value:Number(g.target.value)})},onBlur:g=>d({height:Number(g.target.value)}),type:"number",min:a,max:c,step:"0,5"}),[s,o,d]);return{widthProps:u,heightProps:p}}function km({value:e,onChange:t}){const{widthProps:n,heightProps:i}=Sm(e,t),s=D(Ql),o=D(ql),a=D(Ul);return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"mb-5",children:r.jsx(ct,{body:r.jsxs("ul",{children:[r.jsxs("li",{children:["Minimum any dimension: ",s,'"']}),r.jsxs("li",{children:["Maximum long dimension: ",a,'"']}),r.jsxs("li",{children:["Maximum short dimension: ",o,'"']})]})})}),r.jsx(ze,{children:"Select Custom Size"}),r.jsxs("div",{className:R("grid gap-2","@[580px]/foldSizeAndQty:grid-cols-2"),children:[r.jsx("div",{children:r.jsx(it,{label:"Width (Inches)",required:!0,...n})}),r.jsx("div",{children:r.jsx(it,{label:"Height (Inches)",required:!0,...i})})]})]})}function Im({onChange:e}){const t=D(Vs),n=D(Th),i=D(bh),s=Pe(),[o,a]=fe();function l(d){e(s(_i(d))),re({label:"Size",name:"Preset Dimension",value:d.id})}function c(d){e(s(_i(d)))}return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{children:[r.jsx(ze,{onHelpClick:()=>a(!0),children:"Finished Size in Inches (W x H)"}),r.jsxs(de,{label:"Finished Size in Inches (W x H)",value:t.presetDimensionsId?`${t.width} x ${t.height}`:"Custom Size",required:!0,children:[n.map(d=>r.jsx(de.Item,{label:`${d.name}`,selected:d.id===t.presetDimensionsId,disabled:d.disabled,onClick:()=>l(d)},d.id)),i&&r.jsx(de.Item,{label:"Custom Size",selected:!t.presetDimensionsId,onClick:()=>s(_i({id:null,width:t.width,height:t.height}))})]})]}),i&&!t.presetDimensionsId&&r.jsx("div",{children:r.jsx(km,{value:t,onChange:c})})]}),r.jsx(Em,{title:"Unfolded Size in Inches (W x H)",show:o,onClose:()=>a(!1)})]})}function Em({title:e,show:t,onClose:n}){return r.jsxs(me,{large:!0,title:e,show:t,onClose:n,children:[r.jsx("p",{children:"The full size sheet dimensions of your printed item before any folding is done."}),r.jsx("p",{children:"If there is any trimming or cutting involved in your project, it will be cut to the size you specify.  Please make sure your artwork matches your specifications."})]})}const{useState:Fi}=await Q("react");function Pm({onChange:e}){const t=D(E0),[n,i]=Rn(t),[s,o]=Fi(!1),[a,l]=Fi(!1),[c,d]=Fi(!1),u=Pe(),p=D(yh),g=D(wh),f=D(Ch),[h,x]=fe(),m=D(b=>Yl(b,"pages"));function v(b){if(s&&o(!1),a&&l(!1),c&&d(!1),b<p){l(!0),i(p),e(u(Li(p))),re({label:"Pages",name:`Pages - User below bounds (${p})`,value:b});return}if(b>g){d(!0),i(g),e(u(Li(g))),re({label:"Pages",name:`Pages - User above bounds (${g})`,value:b});return}if(b%f>0){i(t),o(!0);return}e(u(Li(b))),re({label:"Pages",name:"Pages - User within bounds",value:b})}const S=s?r.jsx(Mm,{increment:f}):a?r.jsx(Om,{minPages:p}):c?r.jsx(Rm,{maxPages:g}):null;return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"space-y-5",children:r.jsxs("div",{children:[r.jsx(ze,{onHelpClick:()=>x(!0),children:"Pages"}),S&&r.jsx("div",{className:"mb-5",children:S}),r.jsx(it,{label:"Number of pages including cover",value:n,onChange:b=>i(b.target.value),onBlur:b=>v(b.target.value),required:!0,type:"number",step:f,min:p,error:m,errorMessage:m?.message})]})}),r.jsx(Lm,{show:h,onClose:()=>x(!1)})]})}function Mm({increment:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["Pages must be a multiple of ",e,"."]})})}function Om({minPages:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["Pages must be at least ",e,"."]})})}function Rm({maxPages:e}){return r.jsx(ct,{body:r.jsxs("div",{children:["Pages must be no more than ",e,"."]})})}function Lm({show:e,onClose:t}){return r.jsx(me,{title:"Pages Including Cover",show:e,onClose:t,children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"Please enter the total number of sides (not sheets of paper), including any cover pages."}),r.jsx("ul",{className:"list-disc list-inside ml-3",children:r.jsx("li",{children:"Maximum page count is 48 pages"})}),r.jsxs("p",{children:[r.jsx("b",{children:"Page Order"})," - When preparing your print-ready file, please order all the pages exactly how you wish them to appear in the completed document, beginning with the front cover and ending with the back cover, including any blank pages."]}),r.jsx("p",{children:"For example, if you don't want printing on your inside covers, your second and second-to-last pages should be blank."}),r.jsxs("p",{children:[r.jsx("b",{children:"Page Size"})," - No matter the booklet type, the page size in your file should be the same width and height as your finished booklet when it is closed."]}),r.jsx("p",{children:"For example, if your custom booklet has eight pages after it is completely bound (including the cover), your PDF should have eight pages, too."}),r.jsxs("p",{children:[r.jsx("b",{children:"Imposing"})," - We will take care of the imposition step for you. If you upload an imposed file, we will return it and ask you to place the pages in front-to-back order."]}),r.jsx("p",{children:"Please see the templates under Artwork Guidelines for examples of how your PDF should be formatted."})]})})}function _m({onChange:e}){return r.jsx("div",{className:"@container/pageSizeAndQty",children:r.jsx("div",{className:R("grid gap-5"),children:r.jsxs("div",{className:"flex flex-col gap-5",children:[r.jsx("div",{children:r.jsx(Pm,{onChange:e})}),r.jsx("div",{children:r.jsx(Im,{onChange:e})}),r.jsx("div",{children:r.jsx(bm,{onChange:e})})]})})})}function Tm(){const[e,{isLoading:t}]=Md(),{data:n,isLoading:i,isSuccess:s,isError:o,error:a}=qh();return i?r.jsx(Nm,{}):o?r.jsx(fi,{body:"Yikes! Something went wrong when loading your product selections - our bad. Reload the page to try again."}):r.jsxs("div",{className:"space-y-5",children:[r.jsx(It,{children:r.jsx(_m,{onChange:e})}),r.jsx(It,{children:r.jsx(Z4,{onChange:e})}),r.jsx(It,{children:r.jsx(fm,{onChange:e})}),r.jsx(It,{children:r.jsx(pm,{onChange:e})}),r.jsx(It,{children:r.jsx(e4,{onChange:e})})]})}function Nm(){return r.jsxs("div",{className:"space-y-2",children:[r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[424px]",children:r.jsx(he,{})}),r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[424px]",children:r.jsx(he,{})}),r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[144px]",children:r.jsx(he,{})}),r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[424px]",children:r.jsx(he,{})})]})}function Am(){const e=D(Tl);return D(Fl).find(i=>i.id===e)?.name}function Dm({show:e,setShow:t}){return r.jsx(me,{large:!0,title:"Proof Help",show:e,onClose:()=>t(!1),children:r.jsxs("div",{className:R(F.body.md.loose,"text-dark space-y-3"),children:[r.jsx("p",{children:"A proof is an early version of your project that closely represents how it will look when printed. Please review your proof carefully so we can make adjustments before sending your project to press for online printing. Note: Proofing options vary by product."}),r.jsx("h3",{className:"font-sans text-title-tight-md pb-xs",children:"No Proof Needed"}),r.jsx("p",{children:"Select this option if you do not need a proof. If you opt out of receiving a soft proof, it typically does not speed up the production time on your order. If you notice an error in your order that wasn't Smartpress' fault, a refund/reprint may not be possible."}),r.jsx("h3",{className:"font-sans text-title-tight-md pb-xs",children:"Soft Proof (Digital PDF)"}),r.jsx("p",{children:"A soft proof is a digital PDF proof that demonstrates size, placement and text of a file. It allows you to proofread content, visualize bleed, trim size, folding and any other finishing options."}),r.jsxs("ul",{className:"list-disc list-outside ml-4",children:[r.jsx("li",{children:"We recommend reviewing your proof in Adobe Reader."}),r.jsx("li",{children:"Digital proofs do not show transparency or overprint areas, nor do they show color shifts resulting from the conversion of RGB or Pantone spot colors to CMYK."}),r.jsx("li",{children:"If you have color-critical work where a high level of color accuracy is required, we recommend you order a hard proof."}),r.jsx("li",{children:"For folded pieces, we recommend printing and folding your proof to confirm your artwork is in place."})]}),r.jsx("h3",{className:"font-sans text-title-tight-md pb-xs",children:"Hard Proof (Physical copy)"}),r.jsx("p",{children:"A hard proof is a physical copy of the PDF. We normally supply a hard proof solely for you to see the color of your artwork."}),r.jsxs("ul",{className:"list-disc list-outside ml-4",children:[r.jsx("li",{children:"We offer hard proofs on a limited number of items."}),r.jsx("li",{children:"If you're requesting a hard proof for a booklet, be sure to note if you'd like the hard proof bound."}),r.jsxs("li",{children:["If your project is highly color-critical or you have concerns about what your color will look like, we highly recommend ordering our ",r.jsx("a",{href:"/offering/print-coating-sample-sheet",className:"underline text-link-active",children:"Print Coating & Sample Sheet"})," to review your design."]}),r.jsx("li",{children:"Hard proofs are available only in the U.S."}),r.jsx("li",{children:"Many products offer a minimum quantity that is more cost effective than a hard proof for sample purposes."})]})]})})}function Hm(){const[e,{isLoading:t}]=Md(),n=D(R0);D(_l);const i=D(Tl),s=D(Fl),a=D(zl).find(g=>g.id===n),c=!s.find(g=>g.id===Ir.ONE_DAY)?.disabled,d=Pe(),u=Am();function p(g){e(d(v0(g?Ir.ONE_DAY:null))),re({label:"Turn Time",name:"Get it sooner?",value:g?"Yes":"No"})}return r.jsx(It,{children:r.jsxs("div",{className:"space-y-3",children:[t&&r.jsx($m,{}),!t&&r.jsx(Vm,{value:u,showCheckbox:c,checked:i===Ir.ONE_DAY,onChange:p}),r.jsx(zm,{proofId:n,onChange:e}),r.jsx(Fm,{proof:n!==ds.NO_PROOF,message:n!==ds.NO_PROOF&&a?.description})]})})}function $m(){return r.jsx("div",{className:"w-full h-[44px] rounded-sm overflow-hidden",children:r.jsx(he,{})})}function Vm({value:e,showCheckbox:t,checked:n,onChange:i}){return r.jsx("div",{className:"@container/estimatedArrival",children:r.jsxs("div",{className:R("flex flex-col items-center gap-1","py-xs px-sm","rounded-sm","bg-accent-sandstone-200","@[375px]/estimatedArrival:flex-row @[375px]/estimatedArrival:justify-center @[375px]/estimatedArrival:gap-4"),children:[e&&r.jsxs("div",{className:F.body.sm,children:["Production Time: ",r.jsx("b",{children:e})]}),r.jsx("div",{className:R("hidden",e&&t&&"@[375px]/estimatedArrival:block","border-l-sm border-l-medium","h-[28px]")}),t&&r.jsxs("label",{className:"flex items-center gap-2 cursor-pointer",children:[r.jsx("input",{type:"checkbox",checked:n,onChange:()=>i(!n)}),r.jsx("span",{className:F.formvalue.sm,children:"Get It Sooner"})]})]})})}function zm({proofId:e,onChange:t}){const n=D(zl),i=Pe(),[s,o]=fe(),a=n.find(c=>c.id===e);function l(c){t(i(x0(c))),re({label:"Proof",name:"Proof",value:c})}return r.jsxs(r.Fragment,{children:[r.jsxs("div",{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-3",children:[r.jsx("h3",{className:R(F.titleTight.md,"text-dark uppercase"),children:"Need to approve a proof?"}),r.jsx(oe,{onClick:()=>o(!0),children:r.jsx(on,{})})]}),r.jsx(de,{label:"Proof",value:a?.name,required:!0,children:n.map(c=>r.jsx(de.Item,{label:c.name,selected:c.id===e,onClick:()=>l(c.id)},c.id))})]}),r.jsx(Dm,{show:s,setShow:o})]})}function Fm({proof:e,message:t}){return r.jsxs("div",{className:"@container/turnaroundProcess",children:[e&&t&&r.jsx("div",{className:"mb-3",children:r.jsx(ct,{body:t})}),r.jsxs("ol",{className:R("grid gap-2","@[575px]/turnaroundProcess:grid-cols-3","@[575px]/turnaroundProcess:gap-5"),children:[r.jsx(yr,{number:"1",title:"Submit Order & Artwork",body:"Upload your artwork on the shopping cart page and submit your order.",icon:r.jsx(qm,{})}),e?r.jsx(yr,{number:"2",title:"Approve Your Proof",body:"Promptly approve your proof, and we'll begin the production process.",icon:r.jsx(Um,{})}):r.jsx(yr,{number:"2",title:"Your Order Gets Produced",body:"Your order goes through our production process.",icon:r.jsx(Qm,{})}),r.jsx(yr,{number:"3",title:"Your Order Gets Shipped",body:"After production has been complete, your order gets shipped!",icon:r.jsx(Zm,{})})]})]})}function yr({number:e,title:t,body:n,icon:i}){return r.jsxs("li",{className:R("relative","flex flex-col items-center gap-2","p-lg","rounded-md","bg-surface-light"),children:[r.jsx("div",{className:R("absolute top-[10px] left-[10px]","flex items-center justify-center","w-6 h-6","rounded-full bg-surface-medium",F.pills.lg),children:e}),r.jsx("div",{children:i}),r.jsxs("div",{className:"flex flex-col items-center justify-center gap-2 text-center",children:[r.jsx("div",{className:F.titleTight.sm,children:t}),r.jsx("div",{className:F.body.sm,children:n})]})]})}function qm({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"81",viewBox:"0 0 80 81",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M37.3823 14.2986C37.3823 13.6358 37.9195 13.0986 38.5823 13.0986H57.7967C58.4594 13.0986 58.9967 13.6358 58.9967 14.2986V33.513C58.9967 34.1757 58.4594 34.713 57.7967 34.713H51.8767C43.8715 34.713 37.3823 28.2237 37.3823 20.2186V14.2986ZM39.7823 15.4986V20.2186C39.7823 26.8982 45.197 32.313 51.8767 32.313H56.5967V15.4986H39.7823Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M25.8831 39.3306H54.1871V41.7306H25.8831V39.3306Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M25.8831 52.6058H54.1871V55.0058H25.8831V52.6058Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M25.8831 45.969H54.1871V48.369H25.8831V45.969Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M20.6143 14.1258C20.6143 13.463 21.1515 12.9258 21.8143 12.9258H58.1583C58.821 12.9258 59.3583 13.463 59.3583 14.1258V68.2109C59.3993 68.4004 59.3946 68.6002 59.3397 68.7933C59.2206 69.212 58.8841 69.5334 58.4603 69.6331L58.4331 69.6395C58.0763 69.7234 57.7006 69.6397 57.4132 69.4121C57.3131 69.3328 57.2275 69.239 57.1585 69.1351L52.1215 64.098L46.9832 69.2363C46.7591 69.5034 46.4247 69.665 46.0639 69.665H46.0575C45.6966 69.665 45.3621 69.5033 45.1379 69.2361L40.0013 64.0981L34.8632 69.2363C34.6391 69.5034 34.3047 69.665 33.9439 69.665H33.9375C33.5767 69.665 33.2423 69.5034 33.0181 69.2363L27.8799 64.098L22.7254 69.2525C22.471 69.5489 22.0784 69.713 21.6675 69.6624C21.0661 69.5883 20.6143 69.0774 20.6143 68.4714V14.1258ZM23.0143 65.5695L27.0313 61.5525C27.5 61.0838 28.2598 61.0838 28.7284 61.5525L33.9407 66.7647L39.1529 61.5525C39.378 61.3274 39.6833 61.201 40.0015 61.201C40.3198 61.201 40.6251 61.3275 40.8501 61.5526L46.0608 66.7646L51.2729 61.5525C51.7416 61.0838 52.5014 61.0838 52.97 61.5525L56.9583 65.5407V15.3258H23.0143V65.5695Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M38.5823 16.865H57.7967V19.265H38.5823V16.865Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M39.2191 20.7018H57.7967V23.1018H39.2191V20.7018Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M40.3487 24.5402H57.7967V26.9402H40.3487V24.5402Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M42.8735 28.377H57.7967V30.777H42.8735V28.377Z"})]})}function Um({className:e="fill-icon-blue"}){return r.jsx("div",{className:"px-[10.444px] py-[10.758px]",children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"59",height:"60",viewBox:"0 0 59 60",fill:"none",children:r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M16.0732 0.885742C16.7359 0.885742 17.2732 1.423 17.2732 2.08574V7.31241C17.2732 7.97515 16.7359 8.51241 16.0732 8.51241C15.4105 8.51241 14.8732 7.97515 14.8732 7.31241V2.08574C14.8732 1.423 15.4105 0.885742 16.0732 0.885742ZM16.4532 9.41685C15.6305 9.41685 14.9643 10.083 14.9643 10.9057V18.4746C14.1742 18.3158 13.3568 18.2324 12.5199 18.2324C5.70834 18.2324 0.186523 23.7542 0.186523 30.5658C0.186523 37.3773 5.70834 42.8991 12.5199 42.8991C13.3568 42.8991 14.1742 42.8157 14.9643 42.6569V49.9702C14.9643 50.7929 15.6305 51.4591 16.4532 51.4591H49.0065C49.8293 51.4591 50.4954 50.7929 50.4954 49.9702V31.2408C50.4984 31.2066 50.4999 31.1719 50.4999 31.1369V10.6458C50.4999 9.98312 49.9628 9.44593 49.3002 9.44575C49.2053 9.42679 49.1071 9.41685 49.0065 9.41685H16.4532ZM24.8532 30.5658C24.8532 25.474 21.7676 21.1029 17.3643 19.2202V11.8168H27.6087V16.9591C27.6087 25.4463 34.4993 32.3369 42.9865 32.3369H48.0954V49.0591H17.3643V41.9113C21.7676 40.0286 24.8532 35.6575 24.8532 30.5658ZM48.0954 11.8458V13.4635H30.0087V11.8458H48.0954ZM30.0087 15.8635H48.0954V17.5013H30.0199C30.0125 17.3215 30.0087 17.1407 30.0087 16.9591V15.8635ZM30.3444 19.9013C30.5032 20.585 30.7161 21.2481 30.9783 21.8857H48.0954V19.9013H30.3444ZM33.4357 25.7413C33.0158 25.285 32.6282 24.7986 32.2765 24.2857H48.0954V25.7413H33.4357ZM36.4008 28.1413C38.332 29.2821 40.5835 29.9369 42.9865 29.9369H48.0954V28.1413H36.4008ZM17.2732 53.5702C17.2732 52.9074 16.7359 52.3702 16.0732 52.3702C15.4105 52.3702 14.8732 52.9074 14.8732 53.5702V58.7969C14.8732 59.4596 15.4105 59.9969 16.0732 59.9969C16.7359 59.9969 17.2732 59.4596 17.2732 58.7969V53.5702ZM49.1465 0.885742C49.8093 0.885742 50.3465 1.423 50.3465 2.08574V7.31241C50.3465 7.97515 49.8093 8.51241 49.1465 8.51241C48.4838 8.51241 47.9465 7.97515 47.9465 7.31241V2.08574C47.9465 1.423 48.4838 0.885742 49.1465 0.885742ZM50.3465 53.5702C50.3465 52.9074 49.8093 52.3702 49.1465 52.3702C48.4838 52.3702 47.9465 52.9074 47.9465 53.5702V58.7969C47.9465 59.4596 48.4838 59.9969 49.1465 59.9969C49.8093 59.9969 50.3465 59.4596 50.3465 58.7969V53.5702ZM6.54876 11.148C6.54876 10.4852 7.08601 9.94797 7.74876 9.94797H12.9754C13.6382 9.94797 14.1754 10.4852 14.1754 11.148C14.1754 11.8107 13.6382 12.348 12.9754 12.348H7.74876C7.08601 12.348 6.54876 11.8107 6.54876 11.148ZM52.2443 9.94797C51.5816 9.94797 51.0443 10.4852 51.0443 11.148C51.0443 11.8107 51.5816 12.348 52.2443 12.348H57.471C58.1337 12.348 58.671 11.8107 58.671 11.148C58.671 10.4852 58.1337 9.94797 57.471 9.94797H52.2443ZM6.54876 50.2435C6.54876 49.5808 7.08601 49.0435 7.74876 49.0435H12.9754C13.6382 49.0435 14.1754 49.5808 14.1754 50.2435C14.1754 50.9062 13.6382 51.4435 12.9754 51.4435H7.74876C7.08601 51.4435 6.54876 50.9062 6.54876 50.2435ZM52.2443 49.0435C51.5816 49.0435 51.0443 49.5808 51.0443 50.2435C51.0443 50.9062 51.5816 51.4435 52.2443 51.4435H57.471C58.1337 51.4435 58.671 50.9062 58.671 50.2435C58.671 49.5808 58.1337 49.0435 57.471 49.0435H52.2443ZM12.5199 20.6324C7.03383 20.6324 2.58652 25.0797 2.58652 30.5658C2.58652 36.0518 7.03383 40.4991 12.5199 40.4991C18.0059 40.4991 22.4532 36.0518 22.4532 30.5658C22.4532 25.0797 18.0059 20.6324 12.5199 20.6324ZM18.6354 26.4318C18.9885 25.8709 18.8201 25.13 18.2592 24.7769C17.6984 24.4238 16.9575 24.5922 16.6044 25.1531L10.923 34.1768L8.1057 30.656C7.69163 30.1385 6.93647 30.0547 6.41901 30.4688C5.90154 30.8829 5.81772 31.638 6.23179 32.1555L10.1029 36.9933C10.3455 37.2965 10.7199 37.4635 11.1076 37.4416C11.4953 37.4197 11.8484 37.2115 12.0553 36.8829L18.6354 26.4318Z"})})})}function Qm({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"81",viewBox:"0 0 80 81",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M15.4024 13.8746V21.9447C15.4055 21.9731 15.4071 21.9958 15.408 22.0083C15.4127 22.072 15.4159 22.1498 15.4183 22.2284C15.4235 22.3918 15.4276 22.6261 15.4311 22.9154C15.438 23.4967 15.4423 24.3287 15.4446 25.3252C15.4493 27.3195 15.4462 29.9863 15.4399 32.6544C15.4337 35.3229 15.4243 37.9943 15.4165 39.9985C15.4126 41.0006 15.4091 41.836 15.4065 42.4209L15.4024 43.3374V51.1168H46.1336V13.8746H15.4024ZM14.2024 43.3346L13.0024 43.329V52.0279C13.0024 52.8507 13.6686 53.5168 14.4913 53.5168H47.0447C47.8674 53.5168 48.5336 52.8507 48.5336 52.0279V12.9635C48.5336 12.1408 47.8674 11.4746 47.0447 11.4746H14.4913C13.6686 11.4746 13.0024 12.1408 13.0024 12.9635V24.9406L13.0435 24.8995C13.0439 25.0393 13.0443 25.1832 13.0446 25.3309C13.0493 27.3193 13.0462 29.9815 13.0399 32.6487C13.0337 35.3155 13.0243 37.9856 13.0165 39.9891C13.0126 40.9909 13.0091 41.8259 13.0066 42.4104L13.0025 43.328C13.0025 43.328 13.0025 43.329 14.2024 43.3346ZM13.0144 22.1832L13.0146 22.1849L13.0144 22.1832Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M25.6469 18.9213V12.6079H28.0469V18.9213C28.0469 26.0896 33.8563 31.8991 41.0247 31.8991H47.338V34.2991H41.0247C32.5308 34.2991 25.6469 27.4151 25.6469 18.9213Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M45.9536 20.8146C45.9536 20.1519 46.4908 19.6146 47.1536 19.6146H56.2713C57.0941 19.6146 57.7602 20.2808 57.7602 21.1035V60.2102C57.7602 61.0329 57.0941 61.6991 56.2713 61.6991H23.718C22.8953 61.6991 22.2291 61.0329 22.2291 60.2102V52.3168C22.2291 51.6541 22.7664 51.1168 23.4291 51.1168C24.0919 51.1168 24.6291 51.6541 24.6291 52.3168V59.2991H55.3602V22.0146H47.1536C46.4908 22.0146 45.9536 21.4773 45.9536 20.8146Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.5647 42.5791H47.2913V40.1791H56.5647V42.5791Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M26.8469 15.5213H47.338V17.9213H26.8469V15.5213Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M27.5269 19.6124H47.338V22.0124H27.5269V19.6124Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M28.7313 23.7057H47.338V26.1057H28.7313V23.7057Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M31.4224 27.7968H47.338V30.1968H31.4224V27.7968Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M47.1535 23.7035H56.5647V26.1035H47.1535V23.7035Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M46.9602 27.7946H56.5647V30.1946H46.9602V27.7946Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M47.1535 31.8879H56.5647V34.2879H47.1535V31.8879Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M47.3224 35.9813H56.5647V38.3813H47.3224V35.9813Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M55.2358 28.9968C55.2358 28.3341 55.773 27.7968 56.4358 27.7968H65.5535C66.3763 27.7968 67.0424 28.463 67.0424 29.2857V68.3924C67.0424 69.2151 66.3763 69.8813 65.5535 69.8813H33.0002C32.1775 69.8813 31.5113 69.2151 31.5113 68.3924V60.4946C31.5113 59.8319 32.0486 59.2946 32.7113 59.2946C33.3741 59.2946 33.9113 59.8319 33.9113 60.4946V67.4813H64.6424V30.1968H56.4358C55.773 30.1968 55.2358 29.6596 55.2358 28.9968Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M65.8469 50.7502H56.5736V48.3502H65.8469V50.7502Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.4358 31.8857H65.8469V34.2857H56.4358V31.8857Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.2536 35.9791H65.858V38.3791H56.2536V35.9791Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.4358 40.1702H65.8469V42.5702H56.4358V40.1702Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M56.6069 44.1524H65.8469V46.5524H56.6069V44.1524Z"})]})}function Zm({className:e="fill-icon-blue"}){return r.jsxs("svg",{xmlns:"http://www.w3.org/2000/svg",width:"80",height:"81",viewBox:"0 0 80 81",fill:"none",children:[r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M8.65299 28.0445C8.65299 27.3818 9.19025 26.8445 9.85299 26.8445H17.3426C18.0053 26.8445 18.5426 27.3818 18.5426 28.0445C18.5426 28.7072 18.0053 29.2445 17.3426 29.2445H9.85299C9.19025 29.2445 8.65299 28.7072 8.65299 28.0445Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M0.45459 33.1549C0.45459 32.4922 0.991848 31.9549 1.65459 31.9549H17.3426C18.0053 31.9549 18.5426 32.4922 18.5426 33.1549C18.5426 33.8176 18.0053 34.3549 17.3426 34.3549H1.65459C0.991848 34.3549 0.45459 33.8176 0.45459 33.1549Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M5.21779 38.1805C5.21779 37.5178 5.75505 36.9805 6.41779 36.9805H17.3426C18.0053 36.9805 18.5426 37.5178 18.5426 38.1805C18.5426 38.8432 18.0053 39.3805 17.3426 39.3805H6.41779C5.75505 39.3805 5.21779 38.8432 5.21779 38.1805Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M28.2066 23.8333C28.2066 23.1706 28.7438 22.6333 29.4066 22.6333H49.5634C52.8917 22.6333 55.589 25.3306 55.589 28.6589V55.2829C55.589 55.9456 55.0517 56.4829 54.389 56.4829H49.565C36.767 56.4829 28.205 46.0792 28.2066 33.5229C28.2066 33.5228 28.2066 33.523 28.2066 33.5229V23.8333ZM30.6066 25.0333V33.5229C30.6051 45.0017 38.3278 54.0829 49.565 54.0829H53.189V28.6589C53.189 26.656 51.5662 25.0333 49.5634 25.0333H30.6066Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M29.405 27.6445H54.389V30.0445H29.405V27.6445Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M30.4482 32.8861H54.389V35.2861H30.4482V32.8861Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M30.613 38.1293H54.389V40.5293H30.613V38.1293Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M36.4274 48.6157H54.389V51.0157H36.4274V48.6157Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M31.7154 43.3725H54.389V45.7725H31.7154V43.3725Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M66.3122 54.8621C64.3469 54.8621 62.7538 56.4553 62.7538 58.4205C62.7538 60.3858 64.3469 61.9789 66.3122 61.9789C68.2774 61.9789 69.8706 60.3858 69.8706 58.4205C69.8706 56.4553 68.2774 54.8621 66.3122 54.8621ZM60.3538 58.4205C60.3538 55.1298 63.0215 52.4621 66.3122 52.4621C69.6029 52.4621 72.2706 55.1298 72.2706 58.4205C72.2706 61.7112 69.6029 64.3789 66.3122 64.3789C63.0215 64.3789 60.3538 61.7112 60.3538 58.4205Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M30.9922 54.8621C29.0269 54.8621 27.4338 56.4553 27.4338 58.4205C27.4338 60.3858 29.0269 61.9789 30.9922 61.9789C32.9574 61.9789 34.5506 60.3858 34.5506 58.4205C34.5506 56.4553 32.9574 54.8621 30.9922 54.8621ZM25.0338 58.4205C25.0338 55.1298 27.7015 52.4621 30.9922 52.4621C34.2829 52.4621 36.9506 55.1298 36.9506 58.4205C36.9506 61.7112 34.2829 64.3789 30.9922 64.3789C27.7015 64.3789 25.0338 61.7112 25.0338 58.4205Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M16.4722 22.6333H49.8466C52.9541 22.6333 55.4738 25.153 55.4738 28.2605V55.2829C55.4738 55.9456 54.9365 56.4829 54.2738 56.4829C53.611 56.4829 53.0738 55.9456 53.0738 55.2829V28.2605C53.0738 26.4784 51.6286 25.0333 49.8466 25.0333H18.8722V54.3485H26.9458C27.6085 54.3485 28.1458 54.8858 28.1458 55.5485C28.1458 56.2113 27.6085 56.7485 26.9458 56.7485H16.4722V22.6333Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M57.7842 35.2285C57.7842 34.5658 58.3214 34.0285 58.9842 34.0285H63.6946C64.0128 34.0285 64.318 34.1549 64.543 34.3799L72.711 42.5463C73.0543 42.8895 73.157 43.4056 72.9713 43.8541C72.7855 44.3025 72.348 44.5949 71.8626 44.5949H58.9842C58.3214 44.5949 57.7842 44.0576 57.7842 43.3949V35.2285ZM60.1842 36.4285V42.1949H68.9651L63.1976 36.4285H60.1842Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M53.0738 55.2829C53.0738 54.6202 53.611 54.0829 54.2738 54.0829H62.3202C62.9829 54.0829 63.5202 54.6202 63.5202 55.2829C63.5202 55.9456 62.9829 56.4829 62.3202 56.4829H54.2738C53.611 56.4829 53.0738 55.9456 53.0738 55.2829Z"}),r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M53.0738 29.3181H64.6386C66.0413 29.3181 67.3791 29.9079 68.325 30.9444L78.2449 41.8179C79.0833 42.7364 79.549 43.9352 79.549 45.1805V53.3741C79.549 55.0912 78.1573 56.4829 76.4402 56.4829H70.237C69.5742 56.4829 69.037 55.9456 69.037 55.2829C69.037 54.6202 69.5742 54.0829 70.237 54.0829H76.4402C76.8318 54.0829 77.149 53.7658 77.149 53.3741V45.1805C77.149 44.5346 76.9075 43.9127 76.4723 43.4359L66.5522 32.5622C66.0613 32.0243 65.3671 31.7181 64.6386 31.7181H55.4738V56.4845H34.5682C33.9054 56.4845 33.3682 55.9472 33.3682 55.2845C33.3682 54.6218 33.9054 54.0845 34.5682 54.0845H53.0738V29.3181Z"})]})}const Bm="modulepreload",Wm=function(e,t){return new URL(e,t).href},ec={},Ht=function(t,n,i){let s=Promise.resolve();if(n&&n.length>0){let a=function(u){return Promise.all(u.map(p=>Promise.resolve(p).then(g=>({status:"fulfilled",value:g}),g=>({status:"rejected",reason:g}))))};const l=document.getElementsByTagName("link"),c=document.querySelector("meta[property=csp-nonce]"),d=c?.nonce||c?.getAttribute("nonce");s=a(n.map(u=>{if(u=Wm(u,i),u in ec)return;ec[u]=!0;const p=u.endsWith(".css"),g=p?'[rel="stylesheet"]':"";if(!!i)for(let x=l.length-1;x>=0;x--){const m=l[x];if(m.href===u&&(!p||m.rel==="stylesheet"))return}else if(document.querySelector(`link[href="${u}"]${g}`))return;const h=document.createElement("link");if(h.rel=p?"stylesheet":Bm,p||(h.as="script"),h.crossOrigin="",h.href=u,d&&h.setAttribute("nonce",d),document.head.appendChild(h),p)return new Promise((x,m)=>{h.addEventListener("load",x),h.addEventListener("error",()=>m(new Error(`Unable to preload CSS for ${u}`)))})}))}function o(a){const l=new Event("vite:preloadError",{cancelable:!0});if(l.payload=a,window.dispatchEvent(l),!l.defaultPrevented)throw a}return s.then(a=>{for(const l of a||[])l.status==="rejected"&&o(l.reason);return t().catch(o)})},Gm=(e,t,n)=>{const i=e[t];return i?typeof i=="function"?i():Promise.resolve(i):new Promise((s,o)=>{(typeof queueMicrotask=="function"?queueMicrotask:setTimeout)(o.bind(null,new Error("Unknown variable dynamic import: "+t+(t.split("/").length!==n?". Note that variables only represent file names one level deep.":""))))})},Ud=[{fileName:"SaddleStitchBooklet_5.5x8.5",width:5.5,height:8.5},{fileName:"SaddleStitchBooklet_5x7",width:5,height:7},{fileName:"SaddleStitchBooklet_6x9",width:6,height:9},{fileName:"SaddleStitchBooklet_8.5x11",width:8.5,height:11},{fileName:"SaddleStitchBooklet_8x8",width:8,height:8}],{useCallback:Km}=await Q("react");function tc(e){return Km(()=>{const n=e.slice(e.lastIndexOf("/")+1),i=document.createElement("a");i.href=e,i.download=n,i.rel="noopener noreferrer",i.target="_SPTemplateDownload",document.body.append(i),i.click(),document.body.removeChild(i)},[e])}function nc({value:e,label:t,sublabel:n,checked:i,onChange:s,disabled:o,...a}){function l(){s(e)}return r.jsx(oe,{onClick:l,...a,children:r.jsxs("div",{className:R(!o&&"cursor-pointer","flex items-center justify-between gap-5","py-sm px-lg","rounded-md border-sm","bg-surface-white",!o&&!i&&"hover:border-blue hover:bg-interactions-form-hover",i&&!o?"border-blue outline outline-025 outline-offset-0":"border-medium",o&&"border-disabled","min-h-[50px]"),children:[r.jsx("div",{className:R(F.formvalue.reg,o?"text-disabled":"text-dark"),children:t}),n&&r.jsx("div",{className:R(F.formmsg,"text-light",o?"text-disabled":"text-dark"),children:n}),i&&r.jsx(oi,{})]})})}function rc(e){return`https://saddle-stitch-booklet.smartpress.com${e}`}const{useEffect:Ym,useState:Xm}=await Q("react");function Jm(e){const t=D(Vs),[n,i]=Xm(null),s=e||t;return Ym(()=>{if(s?.width&&s?.height){const o=Ud.find(a=>a.width===s.width&&a.height===s.height);!o&&n!==null&&i(null),i(o)}},[s?.width,s?.height]),n}function eg({className:e="fill-icon-blue"}){return r.jsxs("div",{className:"w-full aspect-square flex flex-col items-center justify-center *:flex-grow-0",children:[r.jsx("div",{children:r.jsx("svg",{xmlns:"http://www.w3.org/2000/svg",width:"200",height:"201",viewBox:"0 0 200 201",fill:"none",children:r.jsx("path",{className:e,fillRule:"evenodd",clipRule:"evenodd",d:"M52.9401 22.9004H21.5801V18.4004H52.9401V22.9004ZM58.9401 18.4004V24.9204C58.9401 38.3572 48.0169 49.2804 34.5801 49.2804H21.5801V100.78H100.14V18.4004H58.9401ZM106.14 18.4004V103.78C106.14 105.437 104.797 106.78 103.14 106.78H21.5801V140.39H138.03V18.4004H106.14ZM21.5801 182.62V146.45H141.06C142.733 146.45 144.09 145.094 144.09 143.42V18.4004H178.42V182.62H21.5801ZM21.5801 43.2804H34.5801C39.1985 43.2804 43.4242 41.566 46.6544 38.7402H21.5801V43.2804ZM21.5801 32.7402H51.1901C51.7637 31.5268 52.2081 30.2409 52.5056 28.9004H21.5801V32.7402ZM18.5801 12.4004C16.9232 12.4004 15.5801 13.7435 15.5801 15.4004V16.4804V49.2804V185.62C15.5801 187.277 16.9232 188.62 18.5801 188.62H181.42C183.077 188.62 184.42 187.277 184.42 185.62V15.4004C184.42 13.7435 183.077 12.4004 181.42 12.4004H58.9401H19.6601H18.5801ZM127.961 109.84C129.618 109.84 130.961 111.183 130.961 112.84V131C130.961 132.657 129.618 134 127.961 134H109.961C108.304 134 106.961 132.657 106.961 131C106.961 129.343 108.304 128 109.961 128H120.318L107.279 114.961C106.107 113.79 106.107 111.89 107.279 110.719C108.451 109.547 110.35 109.547 111.522 110.719L124.961 124.158V112.84C124.961 111.183 126.304 109.84 127.961 109.84ZM167.641 150.061C169.298 150.061 170.641 151.404 170.641 153.061V171.221C170.641 172.877 169.298 174.221 167.641 174.221H149.621C147.964 174.221 146.621 172.877 146.621 171.221C146.621 169.564 147.964 168.221 149.621 168.221H159.997L146.959 155.182C145.787 154.01 145.787 152.111 146.959 150.939C148.13 149.768 150.03 149.768 151.201 150.939L164.641 164.379V153.061C164.641 151.404 165.984 150.061 167.641 150.061Z"})})}),r.jsx("div",{className:R("pt-l",F.subtitle.xl,"text-blue"),children:"Custom Size"})]})}const{useCallback:tg,useEffect:ic,useMemo:U9,useState:wr}=await Q("react");function ng({show:e,setShow:t}){const n=D(Vs),[i,s]=Rn(n),o=D(Zl),[a,l]=wr(null),[c,d]=wr(null),[u,p]=wr("PDF"),g=tc(a),f=tc(c),h=Jm(i),[x,m]=wr(null);ic(()=>{if(!h){m(null),s(o[0]);return}(async()=>{const{default:S}=await Gm(Object.assign({"./svgs/SaddleStitchBooklet_5.5x8.5.svg":()=>Ht(()=>import("../SaddleStitchBooklet_5.5x8.5-VCAHNolb.js"),[],import.meta.url),"./svgs/SaddleStitchBooklet_5x7.svg":()=>Ht(()=>import("../SaddleStitchBooklet_5x7-BFdWPpBY.js"),[],import.meta.url),"./svgs/SaddleStitchBooklet_6x9.svg":()=>Ht(()=>import("../SaddleStitchBooklet_6x9-C39cGKEt.js"),[],import.meta.url),"./svgs/SaddleStitchBooklet_8.5x11.svg":()=>Ht(()=>import("../SaddleStitchBooklet_8.5x11-BOGs6eVy.js"),[],import.meta.url),"./svgs/SaddleStitchBooklet_8x8.svg":()=>Ht(()=>import("../SaddleStitchBooklet_8x8-CDX8thLr.js"),[],import.meta.url)}),`./svgs/${h.fileName}.svg`,3);m(S)})()},[h]),ic(()=>{(async()=>{const S=Ud.find(b=>b.width===i.width&&b.height===i.height);S&&(l(rc(`/templates/${S.fileName}.pdf`)),d(rc(`/templates/${S.fileName}.idml`)))})()},[i?.width,i?.height]);const v=tg(()=>{if(u==="PDF"){g(),t(!1);return}if(u==="IDML"){f(),t(!1);return}},[g,f,u]);return r.jsx(me,{large:!0,title:"Templates",show:e,onClose:()=>t(!1),footer:r.jsxs(r.Fragment,{children:[r.jsx(st,{secondary:!0,onClick:()=>t(!1),children:"Cancel"}),r.jsx(st,{onClick:v,disabled:!h,children:"Download"})]}),children:r.jsxs("div",{className:R("grid gap-5","@[651px]/modal:grid-cols-8"),children:[r.jsxs("div",{className:R("max-w-full w-full","@[651px]/modal:col-span-5"),children:[h&&r.jsx("img",{src:x,alt:"",className:"w-full max-h-full"}),!h&&r.jsx(eg,{})]}),r.jsxs("div",{className:R("flex flex-col gap-5","@[651px]/modal:col-span-3"),children:[r.jsxs("div",{children:[r.jsx("h3",{className:R(F.titleTight.md,"text-dark pb-xs uppercase"),children:"Select Size"}),r.jsx(de,{label:"Finished Size In Inches (W X H)",value:`${i.width} x ${i.height}`,required:!0,children:o.map(S=>r.jsx(de.Item,{label:`${S.width} x ${S.height}`,selected:S.presetDimensionsId===i.presetDimensionsId,onClick:()=>s(S)},S.presetDimensionsId))})]}),r.jsxs("div",{className:"grid gap-2",children:[r.jsx("h3",{className:R(F.titleTight.md,"text-dark uppercase"),children:"Select File Type"}),r.jsx(nc,{label:"PDF",checked:u==="PDF",value:"PDF",onChange:p}),r.jsx(nc,{label:"InDesign",checked:u==="IDML",value:"IDML",onChange:p})]})]})]})})}const{forwardRef:rg,useId:ig,useImperativeHandle:sg,useRef:og}=await Q("react"),sc=rg(({label:e,value:t,onChange:n,disabled:i=!1,required:s=!1,error:o=!1,errorMessage:a="",children:l,...c},d)=>{const u=ig(),p=og();return sg(d,()=>p,[]),r.jsxs("div",{className:"relative",children:[r.jsx("select",{id:u,ref:p,value:t,onChange:n,disabled:i,...c,className:R("appearance-none","pl-md pr-xxxl pb-sm w-full",e?"pt-[32px]":"pt-sm",F.formvalue.reg,"!leading-[inherit]","bg-surface-white","rounded-md border-sm",i?"cursor-default":"cursor-pointer",!i&&"hover:bg-interactions-form-hover",!i&&!o&&"border-medium hover:border-blue",!i&&o&&"border-error",!i&&"has-[:focus]:border-blue has-[:focus]:outline has-[:focus]:outline-025 has-[:focus]:outline-offset-0",i&&"border-disabled "),children:l}),r.jsx("div",{className:R("absolute","right-4",e?"top-[32px]":"top-3","pointer-events-none"),children:r.jsx(Dl,{...i?{className:"fill-interactions-disabled"}:{}})}),e&&r.jsxs("label",{htmlFor:u,className:R(F.formlabel,"absolute top-0 left-0","pt-sm pl-md","pointer-events-none","cursor-pointer",!o&&"text-medium",!i&&o&&"text-error"),children:[e,!s&&" (optional)"]}),o&&r.jsx("p",{className:R(F.formmsg,"py-xs px-md text-error"),children:a})]})}),oc="888-934-6909",{useCallback:ag}=await Q("react");function cg(e){return ag(n=>{for(const i of e)if(i.keys.includes(n.key)){i?.callback?.(n);break}},[e])}const{useState:xn}=await Q("react");function lg({show:e,setShow:t}){const n=D(Vh),i=D($h),[s,o]=xn(1),[a,l]=xn(""),[c,d]=xn(""),[u,{data:p,error:g,isLoading:f,isSuccess:h,isError:x}]=Zh(),[m,v]=xn(!1),[S,b]=xn(!1),C=cg([{keys:["Enter"],callback:E}]),y=n?.find(w=>w.id===s),j=p?.content?.shippingServiceQuotes||[],I=p?.content?.globalErrorMessages||[],M=p?.content?.globalInfoMessages||[];function P(w){const k=Number(w.target.value);o(Number(k)),l(""),n.find(O=>O.id===k)?.hasPostalCodes||d("")}async function E(){let w=!0;y&&(y.hasRegions&&!a?(v(!0),w=!1):m&&v(!1),y.hasPostalCodes&&!c||y.postalCodeRegex&&!new RegExp(y.postalCodeRegex).test(c)?(b(!0),w=!1):S&&b(!1),w&&u({countryId:s,...a?{stateId:a}:{},...c?{zip:c}:{}}))}return r.jsx(me,{large:!0,title:"Estimate Shipping",show:e,onClose:()=>t(!1),footer:r.jsxs(r.Fragment,{children:[r.jsx(st,{secondary:!0,onClick:()=>t(!1),children:"Cancel"}),r.jsx(st,{onClick:E,disabled:i||f,children:"Get Shipping Quotes"})]}),children:r.jsxs("div",{className:"space-y-5",onKeyDown:C,children:[r.jsxs(dg,{children:[i&&r.jsx(fg,{}),i||r.jsx(sc,{value:s,onChange:P,label:"Ship To Country",required:!0,children:n.map(w=>r.jsx("option",{value:w.id,children:w.name},w.id))}),y?.hasRegions&&r.jsxs(sc,{value:a,onChange:w=>l(Number(w.target.value)),label:"Ship To Region / State",required:!0,error:m,errorMessage:"Required field.",children:[r.jsx("option",{value:"",children:"Select Region / State"}),y.regions.map(w=>r.jsx("option",{value:w.id,children:w.name},w.id))]}),y?.hasPostalCodes&&r.jsx(it,{value:c,onChange:w=>d(w.target.value),label:"Ship to Zip",required:!0,error:S,errorMessage:"Please enter a valid zip / postal code."})]}),f&&r.jsx(pg,{}),!f&&j&&r.jsx(ug,{quotes:j,errorMessages:I,infoMessages:M}),r.jsx(ct,{body:r.jsx(hg,{})})]})})}function dg({children:e}){return r.jsx("div",{className:R("grid gap-5","@[650px]/modal:grid-cols-2","@[650px]/modal:[&>*:nth-child(odd):last-child]:col-span-2"),children:e})}function ug({quotes:e,errorMessages:t,infoMessages:n}){return r.jsx(r.Fragment,{children:!!e.length&&r.jsx("div",{className:R("p-lg","rounded-md","bg-surface-light"),children:r.jsxs("table",{className:"w-full text-medium",children:[r.jsx("thead",{children:r.jsxs("tr",{children:[r.jsx("th",{scope:"col",className:R("text-left font-bold",F.subtitle.sm),children:"Service"}),r.jsx("th",{scope:"col",className:R("text-right font-bold",F.subtitle.sm),children:"Estimate"})]})}),r.jsx("tbody",{children:e.map(i=>r.jsxs("tr",{children:[r.jsx("td",{className:"text-left pt-sm",children:i.serviceName}),r.jsx("td",{className:"text-right pt-sm",children:Mc(i.price)})]},i.serviceId))})]})})})}function fg(){return r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"w-full h-[62px] rounded-md overflow-hidden",children:r.jsx(he,{})}),r.jsx("div",{className:"w-full h-[62px] rounded-md overflow-hidden",children:r.jsx(he,{})}),r.jsx("div",{className:"w-full h-[62px] rounded-md overflow-hidden",children:r.jsx(he,{})})]})}function pg(){return r.jsx("div",{className:"w-full h-[200px] rounded-md overflow-hidden",children:r.jsx(he,{})})}function hg(){return r.jsxs("div",{className:"space-y-2",children:[r.jsx("p",{children:"Shipping estimates are calculated based on the current product configuration, including the cost of shipping this item and any other items in your shopping cart."}),r.jsxs("p",{children:["Freight shipping charges may apply to some orders, depending on their size and weight. For questions, please initiate an online chat or call our customer service at ",r.jsx("a",{href:`tel:+1-${oc}`,className:"text-link-active hover:text-link-hover",children:oc}),"."]})]})}const mg=`/review?pr_page_id=${pt()}&pr_merchant_id=10063&pr_merchant_group_id=47515`,gg=await Q("react"),{useState:xg}=gg;function vg({tabs:e}){const[t,n]=xg(e[0]?.key||null);return r.jsxs("div",{className:"tabs-container",children:[r.jsx("div",{className:"border-b border-light",role:"tablist",children:e.map((i,s)=>r.jsx("button",{role:"tab","aria-selected":t===i.key,"aria-controls":`tabpanel-${i.key}`,id:`tab-${i.key}`,onClick:()=>n(i.key),className:R(F.body.sm,"px-md"),children:r.jsx("div",{className:R("py-md","border-b-md",t===i.key?"text-dark border-blue":"text-blue border-transparent"),children:i.label})},i.key))}),r.jsx("div",{className:R("pt-xxxl px-lg pb-lg"),children:e.map(i=>t===i.key&&r.jsx("div",{id:`tabpanel-${i.key}`,role:"tabpanel","aria-labelledby":`tab-${i.key}`,children:i.content},i.key))})]})}function ac({productInformation:e,faqContent:t,loading:n}){const i=[...e?.__html?[{key:"productInformation",label:"Product Information",content:r.jsx(yg,{productInformation:e})}]:[],...t?.__html?[{key:"faqs",label:"FAQs",content:r.jsx(wg,{faqContent:t})}]:[]];return n?r.jsx(bg,{}):i.length?r.jsxs("div",{className:"p-lg rounded-md bg-surface-light",children:[r.jsx(vg,{tabs:i}),r.jsx(Cg,{})]}):null}function bg(){return r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[627px]",children:r.jsx(he,{})})}function Qd({children:e}){return r.jsx("div",{className:R(F.body.md.loose,"text-medium"),children:e})}function yg({productInformation:e}){return r.jsx(Qd,{children:r.jsx("div",{className:`
                [&_ul]:list-disc
                [&_ul]:list-outside
                [&_ul]:ml-4
                [&_ul_ul]:list-[circle]
                [&_ul_ul]:list-outside
                [&_ul_ul]:ml-4
                [&_a]:underline
            `,children:r.jsx("div",{dangerouslySetInnerHTML:e})})})}function wg({faqContent:e}){return r.jsx(Qd,{children:r.jsx("div",{className:`
                [&_dl>dt]:font-sans
                [&_dl>dt]:text-title-tight-md
                [&_dl>dt]:pb-xs
                [&_dl>dd>p~p]:mt-2
                [&_dl>dd~dt]:mt-5
            `,children:r.jsx("div",{dangerouslySetInnerHTML:e})})})}function Cg(){const[e,t]=fe();return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:R("pt-md text-dark",F.links.md),children:[r.jsx("div",{children:r.jsx("a",{href:"/support/product-faq/online-printing-faq",target:"_blank",className:"text-blue",children:"Online Printing FAQ"})}),r.jsxs("div",{className:"mt-2",children:["California Residents Only: ",r.jsx(oe,{onClick:()=>t(!0),children:r.jsx("span",{className:"text-blue",children:"Proposition 65 Warning"})})]})]}),r.jsx(jg,{show:e,setShow:t})]})}function jg({show:e,setShow:t}){return r.jsx(me,{show:e,onClose:()=>t(!1),title:"Proposition 65",children:r.jsx(fi,{title:"Warning",body:r.jsxs("p",{children:["This product may expose you to chemicals such as Carbon Black, which is known to the State of California to cause cancer, or Toluene, which is known to the State of California to cause birth defects or other reproductive harm. For more information, go to ",r.jsx("a",{href:"https://www.P65Warnings.ca.gov",target:"_blank",className:"underline",children:"www.P65Warnings.ca.gov"}),"."]})})})}function Sg({title:e,body:t,onClose:n}){return r.jsx(no,{title:e,body:t,icon:r.jsx(oi,{className:"fill-icon-success"}),className:"bg-surface-success border-success",titleClassName:"text-success",bodyClassName:"text-dark",onClose:n})}const{useState:cc}=await Q("react");function kg({show:e,setShow:t}){const n=D(C0),[i,s]=cc(!1),[o,a]=cc(!1);function l(c){navigator.clipboard.writeText(c).then(()=>{s(!0),o&&a(!1)}).catch(d=>{i&&s(!1),a(!0)})}return r.jsx(me,{show:e,title:"Share Configuration",onClose:()=>t(!1),children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"To share your configuration simply copy link to your clipboard and send to your favorite form of media"}),r.jsxs("div",{className:"flex items-center justify-between flex-nowrap gap-3",children:[r.jsx("div",{className:R("break-all",F.bodyAlt.sm,"rounded-md","p-sm","bg-surface-light"),children:n}),r.jsx(st,{tertiary:!0,onClick:()=>l(n),children:r.jsx(ih,{})})]}),i&&r.jsx(Sg,{body:"Copied to clipboard"}),o&&r.jsx(fi,{body:"There was an error copying to clipboard. Please try again, or manually copy the link above."})]})})}function Ig(){const[e,t]=fe();return r.jsxs(r.Fragment,{children:[r.jsx(oe,{onClick:()=>t(!0),children:r.jsxs("div",{className:R("flex items-center gap-2 flex-nowrap","p-xs"),children:[r.jsx(lh,{}),r.jsx("div",{className:R("text-blue",F.links.md),children:"Share Configuration"})]})}),e&&r.jsx(kg,{show:e,setShow:t})]})}function Eg({children:e,block:t=!1,onClick:n}){return r.jsx("button",{type:"button",onClick:n,className:R("group relative inline-flex items-center justify-center",t?"flex w-full":"inline-flex","rounded-full p-[2px] bg-gradient-to-r from-print-points-cyan to-print-points-magenta","after:content-[''] after:absolute after:inset-0 after:rounded-full after:pointer-events-none","after:bg-[linear-gradient(45deg,transparent,rgba(255,255,255,0.5),transparent)] after:opacity-0 after:translate-x-[-200%]","hover:after:opacity-100 hover:after:animate-shimmer"),children:r.jsxs("span",{className:R("relative flex gap-2 w-full justify-center items-center","rounded-full bg-neutral-white px-lg py-[14px]"),children:[r.jsx("span",{className:"flex items-center justify-center text-lg text-print-points-cyan",children:r.jsx(X0,{})}),r.jsx("span",{className:R(Pc,"bg-gradient-to-r from-print-points-cyan to-print-points-magenta bg-clip-text","[-webkit-background-clip:text] [-webkit-text-fill-color:transparent]","text-transparent"),children:e})]})})}const{useEffect:lc,useRef:Pg,useState:dc}=await Q("react");function Mg(){const e=Pg(),[t,n]=dc(null),[i,s]=dc(null),o=Pe(),{data:a,isLoading:l,isSuccess:c,isError:d,error:u}=Jl(),p=D(ue),{loaded:g}=D(Pl),f=Us(),h=m=>o(n2(m.detail?.sessionId));lc(()=>{Ht(()=>import("https://instant-proof.smartpress.com"),[],import.meta.url).then(m=>n(m)).catch(m=>s(m))},[]);const x=m=>{m&&m.addEventListener("FileUploadSessionIdSet",h),e.current=m};return lc(()=>{const m=e.current;g&&m&&m.dispatchEvent(new CustomEvent("ConfigUpdated",{detail:{config:Nl(p)}}))},[p?.configVersionId,g]),i?r.jsx(qi,{children:r.jsx(fi,{body:"File upload temporarily unavailable"})}):!t||l?r.jsx(qi,{children:r.jsx(Og,{})}):r.jsx(qi,{children:r.jsx(It,{children:r.jsx("instant-proof",{ref:x,"product-id":pt(),"product-name":f,"user-id":a?.id,...mt&&us?{"order-item-id":mt}:{},...Fs&&mt&&us?{reorder:!0}:{}})})})}function qi({children:e}){const[t,n]=fe();return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:"flex items-center gap-2 mb-2",children:[r.jsx("h2",{className:R(F.headlineAlt.xs,"pt-xl pb-sm"),children:"Upload Artwork (Optional)"}),r.jsx(oe,{onClick:()=>n(!0),children:r.jsx(on,{})})]}),e,r.jsx(Rg,{show:t,onClose:()=>n(!1)})]})}function Og(){return r.jsx("div",{className:"w-full h-[68px] rounded-md overflow-hidden",children:r.jsx(he,{})})}function Rg({show:e,onClose:t}){return r.jsx(me,{title:"Upload Artwork",show:e,onClose:t,large:!0,children:r.jsxs("div",{className:"space-y-3",children:[r.jsx("p",{children:"If your book is top bound, please rotate the pages in your art file 90 degrees so the bound edge is along the height dimension, and order accordingly."}),r.jsx("p",{children:'(e.g. 5.5" x 8" is bound on the 8" H dimension and opens 11" x 8" flat)'})]})})}function Lg(e){return Object.prototype.toString.call(e)==="[object Object]"}function uc(e){return Lg(e)||Array.isArray(e)}function _g(){return!!(typeof window<"u"&&window.document&&window.document.createElement)}function so(e,t){const n=Object.keys(e),i=Object.keys(t);if(n.length!==i.length)return!1;const s=JSON.stringify(Object.keys(e.breakpoints||{})),o=JSON.stringify(Object.keys(t.breakpoints||{}));return s!==o?!1:n.every(a=>{const l=e[a],c=t[a];return typeof l=="function"?`${l}`==`${c}`:!uc(l)||!uc(c)?l===c:so(l,c)})}function fc(e){return e.concat().sort((t,n)=>t.name>n.name?1:-1).map(t=>t.options)}function Tg(e,t){if(e.length!==t.length)return!1;const n=fc(e),i=fc(t);return n.every((s,o)=>{const a=i[o];return so(s,a)})}function oo(e){return typeof e=="number"}function bs(e){return typeof e=="string"}function pi(e){return typeof e=="boolean"}function pc(e){return Object.prototype.toString.call(e)==="[object Object]"}function ce(e){return Math.abs(e)}function ao(e){return Math.sign(e)}function Ln(e,t){return ce(e-t)}function Ng(e,t){if(e===0||t===0||ce(e)<=ce(t))return 0;const n=Ln(ce(e),ce(t));return ce(n/e)}function Ag(e){return Math.round(e*100)/100}function qn(e){return Un(e).map(Number)}function Ue(e){return e[nr(e)]}function nr(e){return Math.max(0,e.length-1)}function co(e,t){return t===nr(e)}function hc(e,t=0){return Array.from(Array(e),(n,i)=>t+i)}function Un(e){return Object.keys(e)}function Zd(e,t){return[e,t].reduce((n,i)=>(Un(i).forEach(s=>{const o=n[s],a=i[s],l=pc(o)&&pc(a);n[s]=l?Zd(o,a):a}),n),{})}function ys(e,t){return typeof t.MouseEvent<"u"&&e instanceof t.MouseEvent}function Dg(e,t){const n={start:i,center:s,end:o};function i(){return 0}function s(c){return o(c)/2}function o(c){return t-c}function a(c,d){return bs(e)?n[e](c):e(t,c,d)}return{measure:a}}function Qn(){let e=[];function t(s,o,a,l={passive:!0}){let c;if("addEventListener"in s)s.addEventListener(o,a,l),c=()=>s.removeEventListener(o,a,l);else{const d=s;d.addListener(a),c=()=>d.removeListener(a)}return e.push(c),i}function n(){e=e.filter(s=>s())}const i={add:t,clear:n};return i}function Hg(e,t,n,i){const s=Qn(),o=1e3/60;let a=null,l=0,c=0;function d(){s.add(e,"visibilitychange",()=>{e.hidden&&h()})}function u(){f(),s.clear()}function p(m){if(!c)return;a||(a=m,n(),n());const v=m-a;for(a=m,l+=v;l>=o;)n(),l-=o;const S=l/o;i(S),c&&(c=t.requestAnimationFrame(p))}function g(){c||(c=t.requestAnimationFrame(p))}function f(){t.cancelAnimationFrame(c),a=null,l=0,c=0}function h(){a=null,l=0}return{init:d,destroy:u,start:g,stop:f,update:n,render:i}}function $g(e,t){const n=t==="rtl",i=e==="y",s=i?"y":"x",o=i?"x":"y",a=!i&&n?-1:1,l=u(),c=p();function d(h){const{height:x,width:m}=h;return i?x:m}function u(){return i?"top":n?"right":"left"}function p(){return i?"bottom":n?"left":"right"}function g(h){return h*a}return{scroll:s,cross:o,startEdge:l,endEdge:c,measureSize:d,direction:g}}function Lt(e=0,t=0){const n=ce(e-t);function i(d){return d<e}function s(d){return d>t}function o(d){return i(d)||s(d)}function a(d){return o(d)?i(d)?e:t:d}function l(d){return n?d-n*Math.ceil((d-t)/n):d}return{length:n,max:t,min:e,constrain:a,reachedAny:o,reachedMax:s,reachedMin:i,removeOffset:l}}function Bd(e,t,n){const{constrain:i}=Lt(0,e),s=e+1;let o=a(t);function a(g){return n?ce((s+g)%s):i(g)}function l(){return o}function c(g){return o=a(g),p}function d(g){return u().set(l()+g)}function u(){return Bd(e,l(),n)}const p={get:l,set:c,add:d,clone:u};return p}function Vg(e,t,n,i,s,o,a,l,c,d,u,p,g,f,h,x,m,v,S){const{cross:b,direction:C}=e,y=["INPUT","SELECT","TEXTAREA"],j={passive:!1},I=Qn(),M=Qn(),P=Lt(50,225).constrain(f.measure(20)),E={mouse:300,touch:400},w={mouse:500,touch:600},k=h?43:25;let O=!1,L=0,T=0,_=!1,A=!1,H=!1,N=!1;function z(V){if(!S)return;function te(ae){(pi(S)||S(V,ae))&&ee(ae)}const ne=t;I.add(ne,"dragstart",ae=>ae.preventDefault(),j).add(ne,"touchmove",()=>{},j).add(ne,"touchend",()=>{}).add(ne,"touchstart",te).add(ne,"mousedown",te).add(ne,"touchcancel",G).add(ne,"contextmenu",G).add(ne,"click",B,!0)}function q(){I.clear(),M.clear()}function K(){const V=N?n:t;M.add(V,"touchmove",Z,j).add(V,"touchend",G).add(V,"mousemove",Z,j).add(V,"mouseup",G)}function Y(V){const te=V.nodeName||"";return y.includes(te)}function U(){return(h?w:E)[N?"mouse":"touch"]}function J(V,te){const ne=p.add(ao(V)*-1),ae=u.byDistance(V,!h).distance;return h||ce(V)<P?ae:m&&te?ae*.5:u.byIndex(ne.get(),0).distance}function ee(V){const te=ys(V,i);N=te,H=h&&te&&!V.buttons&&O,O=Ln(s.get(),a.get())>=2,!(te&&V.button!==0)&&(Y(V.target)||(_=!0,o.pointerDown(V),d.useFriction(0).useDuration(0),s.set(a),K(),L=o.readPoint(V),T=o.readPoint(V,b),g.emit("pointerDown")))}function Z(V){if(!ys(V,i)&&V.touches.length>=2)return G(V);const ne=o.readPoint(V),ae=o.readPoint(V,b),le=Ln(ne,L),pe=Ln(ae,T);if(!A&&!N&&(!V.cancelable||(A=le>pe,!A)))return G(V);const Me=o.pointerMove(V);le>x&&(H=!0),d.useFriction(.3).useDuration(.75),l.start(),s.add(C(Me)),V.preventDefault()}function G(V){const ne=u.byDistance(0,!1).index!==p.get(),ae=o.pointerUp(V)*U(),le=J(C(ae),ne),pe=Ng(ae,le),Me=k-10*pe,Se=v+pe/50;A=!1,_=!1,M.clear(),d.useDuration(Me).useFriction(Se),c.distance(le,!h),N=!1,g.emit("pointerUp")}function B(V){H&&(V.stopPropagation(),V.preventDefault(),H=!1)}function W(){return _}return{init:z,destroy:q,pointerDown:W}}function zg(e,t){let i,s;function o(p){return p.timeStamp}function a(p,g){const h=`client${(g||e.scroll)==="x"?"X":"Y"}`;return(ys(p,t)?p:p.touches[0])[h]}function l(p){return i=p,s=p,a(p)}function c(p){const g=a(p)-a(s),f=o(p)-o(i)>170;return s=p,f&&(i=p),g}function d(p){if(!i||!s)return 0;const g=a(s)-a(i),f=o(p)-o(i),h=o(p)-o(s)>170,x=g/f;return f&&!h&&ce(x)>.1?x:0}return{pointerDown:l,pointerMove:c,pointerUp:d,readPoint:a}}function Fg(){function e(n){const{offsetTop:i,offsetLeft:s,offsetWidth:o,offsetHeight:a}=n;return{top:i,right:s+o,bottom:i+a,left:s,width:o,height:a}}return{measure:e}}function qg(e){function t(i){return e*(i/100)}return{measure:t}}function Ug(e,t,n,i,s,o,a){const l=[e].concat(i);let c,d,u=[],p=!1;function g(m){return s.measureSize(a.measure(m))}function f(m){if(!o)return;d=g(e),u=i.map(g);function v(S){for(const b of S){if(p)return;const C=b.target===e,y=i.indexOf(b.target),j=C?d:u[y],I=g(C?e:i[y]);if(ce(I-j)>=.5){m.reInit(),t.emit("resize");break}}}c=new ResizeObserver(S=>{(pi(o)||o(m,S))&&v(S)}),n.requestAnimationFrame(()=>{l.forEach(S=>c.observe(S))})}function h(){p=!0,c&&c.disconnect()}return{init:f,destroy:h}}function Qg(e,t,n,i,s,o){let a=0,l=0,c=s,d=o,u=e.get(),p=0;function g(){const j=i.get()-e.get(),I=!c;let M=0;return I?(a=0,n.set(i),e.set(i),M=j):(n.set(e),a+=j/c,a*=d,u+=a,e.add(a),M=u-p),l=ao(M),p=u,y}function f(){const j=i.get()-t.get();return ce(j)<.001}function h(){return c}function x(){return l}function m(){return a}function v(){return b(s)}function S(){return C(o)}function b(j){return c=j,y}function C(j){return d=j,y}const y={direction:x,duration:h,velocity:m,seek:g,settled:f,useBaseFriction:S,useBaseDuration:v,useFriction:C,useDuration:b};return y}function Zg(e,t,n,i,s){const o=s.measure(10),a=s.measure(50),l=Lt(.1,.99);let c=!1;function d(){return!(c||!e.reachedAny(n.get())||!e.reachedAny(t.get()))}function u(f){if(!d())return;const h=e.reachedMin(t.get())?"min":"max",x=ce(e[h]-t.get()),m=n.get()-t.get(),v=l.constrain(x/a);n.subtract(m*v),!f&&ce(m)<o&&(n.set(e.constrain(n.get())),i.useDuration(25).useBaseFriction())}function p(f){c=!f}return{shouldConstrain:d,constrain:u,toggleActive:p}}function Bg(e,t,n,i,s){const o=Lt(-t+e,0),a=p(),l=u(),c=g();function d(h,x){return Ln(h,x)<=1}function u(){const h=a[0],x=Ue(a),m=a.lastIndexOf(h),v=a.indexOf(x)+1;return Lt(m,v)}function p(){return n.map((h,x)=>{const{min:m,max:v}=o,S=o.constrain(h),b=!x,C=co(n,x);return b?v:C||d(m,S)?m:d(v,S)?v:S}).map(h=>parseFloat(h.toFixed(3)))}function g(){if(t<=e+s)return[o.max];if(i==="keepSnaps")return a;const{min:h,max:x}=l;return a.slice(h,x)}return{snapsContained:c,scrollContainLimit:l}}function Wg(e,t,n){const i=t[0],s=n?i-e:Ue(t);return{limit:Lt(s,i)}}function Gg(e,t,n,i){const o=t.min+.1,a=t.max+.1,{reachedMin:l,reachedMax:c}=Lt(o,a);function d(g){return g===1?c(n.get()):g===-1?l(n.get()):!1}function u(g){if(!d(g))return;const f=e*(g*-1);i.forEach(h=>h.add(f))}return{loop:u}}function Kg(e){const{max:t,length:n}=e;function i(o){const a=o-t;return n?a/-n:0}return{get:i}}function Yg(e,t,n,i,s){const{startEdge:o,endEdge:a}=e,{groupSlides:l}=s,c=p().map(t.measure),d=g(),u=f();function p(){return l(i).map(x=>Ue(x)[a]-x[0][o]).map(ce)}function g(){return i.map(x=>n[o]-x[o]).map(x=>-ce(x))}function f(){return l(d).map(x=>x[0]).map((x,m)=>x+c[m])}return{snaps:d,snapsAligned:u}}function Xg(e,t,n,i,s,o){const{groupSlides:a}=s,{min:l,max:c}=i,d=u();function u(){const g=a(o),f=!e||t==="keepSnaps";return n.length===1?[o]:f?g:g.slice(l,c).map((h,x,m)=>{const v=!x,S=co(m,x);if(v){const b=Ue(m[0])+1;return hc(b)}if(S){const b=nr(o)-Ue(m)[0]+1;return hc(b,Ue(m)[0])}return h})}return{slideRegistry:d}}function Jg(e,t,n,i,s){const{reachedAny:o,removeOffset:a,constrain:l}=i;function c(h){return h.concat().sort((x,m)=>ce(x)-ce(m))[0]}function d(h){const x=e?a(h):l(h),m=t.map((S,b)=>({diff:u(S-x,0),index:b})).sort((S,b)=>ce(S.diff)-ce(b.diff)),{index:v}=m[0];return{index:v,distance:x}}function u(h,x){const m=[h,h+n,h-n];if(!e)return h;if(!x)return c(m);const v=m.filter(S=>ao(S)===x);return v.length?c(v):Ue(m)-n}function p(h,x){const m=t[h]-s.get(),v=u(m,x);return{index:h,distance:v}}function g(h,x){const m=s.get()+h,{index:v,distance:S}=d(m),b=!e&&o(m);if(!x||b)return{index:v,distance:h};const C=t[v]-S,y=h+u(C,0);return{index:v,distance:y}}return{byDistance:g,byIndex:p,shortcut:u}}function e9(e,t,n,i,s,o,a){function l(p){const g=p.distance,f=p.index!==t.get();o.add(g),g&&(i.duration()?e.start():(e.update(),e.render(1),e.update())),f&&(n.set(t.get()),t.set(p.index),a.emit("select"))}function c(p,g){const f=s.byDistance(p,g);l(f)}function d(p,g){const f=t.clone().set(p),h=s.byIndex(f.get(),g);l(h)}return{distance:c,index:d}}function t9(e,t,n,i,s,o,a,l){const c={passive:!0,capture:!0};let d=0;function u(f){if(!l)return;function h(x){if(new Date().getTime()-d>10)return;a.emit("slideFocusStart"),e.scrollLeft=0;const S=n.findIndex(b=>b.includes(x));oo(S)&&(s.useDuration(0),i.index(S,0),a.emit("slideFocus"))}o.add(document,"keydown",p,!1),t.forEach((x,m)=>{o.add(x,"focus",v=>{(pi(l)||l(f,v))&&h(m)},c)})}function p(f){f.code==="Tab"&&(d=new Date().getTime())}return{init:u}}function wn(e){let t=e;function n(){return t}function i(c){t=a(c)}function s(c){t+=a(c)}function o(c){t-=a(c)}function a(c){return oo(c)?c:c.get()}return{get:n,set:i,add:s,subtract:o}}function Wd(e,t){const n=e.scroll==="x"?a:l,i=t.style;let s=null,o=!1;function a(g){return`translate3d(${g}px,0px,0px)`}function l(g){return`translate3d(0px,${g}px,0px)`}function c(g){if(o)return;const f=Ag(e.direction(g));f!==s&&(i.transform=n(f),s=f)}function d(g){o=!g}function u(){o||(i.transform="",t.getAttribute("style")||t.removeAttribute("style"))}return{clear:u,to:c,toggleActive:d}}function n9(e,t,n,i,s,o,a,l,c){const u=qn(s),p=qn(s).reverse(),g=v().concat(S());function f(I,M){return I.reduce((P,E)=>P-s[E],M)}function h(I,M){return I.reduce((P,E)=>f(P,M)>0?P.concat([E]):P,[])}function x(I){return o.map((M,P)=>({start:M-i[P]+.5+I,end:M+t-.5+I}))}function m(I,M,P){const E=x(M);return I.map(w=>{const k=P?0:-n,O=P?n:0,L=P?"end":"start",T=E[w][L];return{index:w,loopPoint:T,slideLocation:wn(-1),translate:Wd(e,c[w]),target:()=>l.get()>T?k:O}})}function v(){const I=a[0],M=h(p,I);return m(M,n,!1)}function S(){const I=t-a[0]-1,M=h(u,I);return m(M,-n,!0)}function b(){return g.every(({index:I})=>{const M=u.filter(P=>P!==I);return f(M,t)<=.1})}function C(){g.forEach(I=>{const{target:M,translate:P,slideLocation:E}=I,w=M();w!==E.get()&&(P.to(w),E.set(w))})}function y(){g.forEach(I=>I.translate.clear())}return{canLoop:b,clear:y,loop:C,loopPoints:g}}function r9(e,t,n){let i,s=!1;function o(c){if(!n)return;function d(u){for(const p of u)if(p.type==="childList"){c.reInit(),t.emit("slidesChanged");break}}i=new MutationObserver(u=>{s||(pi(n)||n(c,u))&&d(u)}),i.observe(e,{childList:!0})}function a(){i&&i.disconnect(),s=!0}return{init:o,destroy:a}}function i9(e,t,n,i){const s={};let o=null,a=null,l,c=!1;function d(){l=new IntersectionObserver(h=>{c||(h.forEach(x=>{const m=t.indexOf(x.target);s[m]=x}),o=null,a=null,n.emit("slidesInView"))},{root:e.parentElement,threshold:i}),t.forEach(h=>l.observe(h))}function u(){l&&l.disconnect(),c=!0}function p(h){return Un(s).reduce((x,m)=>{const v=parseInt(m),{isIntersecting:S}=s[v];return(h&&S||!h&&!S)&&x.push(v),x},[])}function g(h=!0){if(h&&o)return o;if(!h&&a)return a;const x=p(h);return h&&(o=x),h||(a=x),x}return{init:d,destroy:u,get:g}}function s9(e,t,n,i,s,o){const{measureSize:a,startEdge:l,endEdge:c}=e,d=n[0]&&s,u=h(),p=x(),g=n.map(a),f=m();function h(){if(!d)return 0;const S=n[0];return ce(t[l]-S[l])}function x(){if(!d)return 0;const S=o.getComputedStyle(Ue(i));return parseFloat(S.getPropertyValue(`margin-${c}`))}function m(){return n.map((S,b,C)=>{const y=!b,j=co(C,b);return y?g[b]+u:j?g[b]+p:C[b+1][l]-S[l]}).map(ce)}return{slideSizes:g,slideSizesWithGaps:f,startGap:u,endGap:p}}function o9(e,t,n,i,s,o,a,l,c){const{startEdge:d,endEdge:u,direction:p}=e,g=oo(n);function f(v,S){return qn(v).filter(b=>b%S===0).map(b=>v.slice(b,b+S))}function h(v){return v.length?qn(v).reduce((S,b,C)=>{const y=Ue(S)||0,j=y===0,I=b===nr(v),M=s[d]-o[y][d],P=s[d]-o[b][u],E=!i&&j?p(a):0,w=!i&&I?p(l):0,k=ce(P-w-(M+E));return C&&k>t+c&&S.push(b),I&&S.push(v.length),S},[]).map((S,b,C)=>{const y=Math.max(C[b-1]||0);return v.slice(y,S)}):[]}function x(v){return g?f(v,n):h(v)}return{groupSlides:x}}function a9(e,t,n,i,s,o,a){const{align:l,axis:c,direction:d,startIndex:u,loop:p,duration:g,dragFree:f,dragThreshold:h,inViewThreshold:x,slidesToScroll:m,skipSnaps:v,containScroll:S,watchResize:b,watchSlides:C,watchDrag:y,watchFocus:j}=o,I=2,M=Fg(),P=M.measure(t),E=n.map(M.measure),w=$g(c,d),k=w.measureSize(P),O=qg(k),L=Dg(l,k),T=!p&&!!S,_=p||!!S,{slideSizes:A,slideSizesWithGaps:H,startGap:N,endGap:z}=s9(w,P,E,n,_,s),q=o9(w,k,m,p,P,E,N,z,I),{snaps:K,snapsAligned:Y}=Yg(w,L,P,E,q),U=-Ue(K)+Ue(H),{snapsContained:J,scrollContainLimit:ee}=Bg(k,U,Y,S,I),Z=T?J:Y,{limit:G}=Wg(U,Z,p),B=Bd(nr(Z),u,p),W=B.clone(),X=qn(n),V=({dragHandler:At,scrollBody:mi,scrollBounds:gi,options:{loop:sr}})=>{sr||gi.constrain(At.pointerDown()),mi.seek()},te=({scrollBody:At,translate:mi,location:gi,offsetLocation:sr,previousLocation:Kd,scrollLooper:Yd,slideLooper:Xd,dragHandler:Jd,animation:eu,eventHandler:uo,scrollBounds:tu,options:{loop:fo}},po)=>{const ho=At.settled(),nu=!tu.shouldConstrain(),mo=fo?ho:ho&&nu,go=mo&&!Jd.pointerDown();go&&eu.stop();const ru=gi.get()*po+Kd.get()*(1-po);sr.set(ru),fo&&(Yd.loop(At.direction()),Xd.loop()),mi.to(sr.get()),go&&uo.emit("settle"),mo||uo.emit("scroll")},ne=Hg(i,s,()=>V(hi),At=>te(hi,At)),ae=.68,le=Z[B.get()],pe=wn(le),Me=wn(le),Se=wn(le),xe=wn(le),Oe=Qg(pe,Se,Me,xe,g,ae),lt=Jg(p,Z,U,G,xe),Tt=e9(ne,B,W,Oe,lt,xe,a),Nt=Kg(G),cn=Qn(),rr=i9(t,n,a,x),{slideRegistry:ln}=Xg(T,S,Z,ee,q,X),ir=t9(e,n,ln,Tt,Oe,cn,a,j),hi={ownerDocument:i,ownerWindow:s,eventHandler:a,containerRect:P,slideRects:E,animation:ne,axis:w,dragHandler:Vg(w,e,i,s,xe,zg(w,s),pe,ne,Tt,Oe,lt,B,a,O,f,h,v,ae,y),eventStore:cn,percentOfView:O,index:B,indexPrevious:W,limit:G,location:pe,offsetLocation:Se,previousLocation:Me,options:o,resizeHandler:Ug(t,a,s,n,w,b,M),scrollBody:Oe,scrollBounds:Zg(G,Se,xe,Oe,O),scrollLooper:Gg(U,G,Se,[pe,Se,Me,xe]),scrollProgress:Nt,scrollSnapList:Z.map(Nt.get),scrollSnaps:Z,scrollTarget:lt,scrollTo:Tt,slideLooper:n9(w,k,U,A,H,K,Z,Se,n),slideFocus:ir,slidesHandler:r9(t,a,C),slidesInView:rr,slideIndexes:X,slideRegistry:ln,slidesToScroll:q,target:xe,translate:Wd(w,t)};return hi}function c9(){let e={},t;function n(d){t=d}function i(d){return e[d]||[]}function s(d){return i(d).forEach(u=>u(t,d)),c}function o(d,u){return e[d]=i(d).concat([u]),c}function a(d,u){return e[d]=i(d).filter(p=>p!==u),c}function l(){e={}}const c={init:n,emit:s,off:a,on:o,clear:l};return c}const l9={align:"center",axis:"x",container:null,slides:null,containScroll:"trimSnaps",direction:"ltr",slidesToScroll:1,inViewThreshold:0,breakpoints:{},dragFree:!1,dragThreshold:10,loop:!1,skipSnaps:!1,duration:25,startIndex:0,active:!0,watchDrag:!0,watchResize:!0,watchSlides:!0,watchFocus:!0};function d9(e){function t(o,a){return Zd(o,a||{})}function n(o){const a=o.breakpoints||{},l=Un(a).filter(c=>e.matchMedia(c).matches).map(c=>a[c]).reduce((c,d)=>t(c,d),{});return t(o,l)}function i(o){return o.map(a=>Un(a.breakpoints||{})).reduce((a,l)=>a.concat(l),[]).map(e.matchMedia)}return{mergeOptions:t,optionsAtMedia:n,optionsMediaQueries:i}}function u9(e){let t=[];function n(o,a){return t=a.filter(({options:l})=>e.optionsAtMedia(l).active!==!1),t.forEach(l=>l.init(o,e)),a.reduce((l,c)=>Object.assign(l,{[c.name]:c}),{})}function i(){t=t.filter(o=>o.destroy())}return{init:n,destroy:i}}function Qr(e,t,n){const i=e.ownerDocument,s=i.defaultView,o=d9(s),a=u9(o),l=Qn(),c=c9(),{mergeOptions:d,optionsAtMedia:u,optionsMediaQueries:p}=o,{on:g,off:f,emit:h}=c,x=w;let m=!1,v,S=d(l9,Qr.globalOptions),b=d(S),C=[],y,j,I;function M(){const{container:X,slides:V}=b;j=(bs(X)?e.querySelector(X):X)||e.children[0];const ne=bs(V)?j.querySelectorAll(V):V;I=[].slice.call(ne||j.children)}function P(X){const V=a9(e,j,I,i,s,X,c);if(X.loop&&!V.slideLooper.canLoop()){const te=Object.assign({},X,{loop:!1});return P(te)}return V}function E(X,V){m||(S=d(S,X),b=u(S),C=V||C,M(),v=P(b),p([S,...C.map(({options:te})=>te)]).forEach(te=>l.add(te,"change",w)),b.active&&(v.translate.to(v.location.get()),v.animation.init(),v.slidesInView.init(),v.slideFocus.init(W),v.eventHandler.init(W),v.resizeHandler.init(W),v.slidesHandler.init(W),v.options.loop&&v.slideLooper.loop(),j.offsetParent&&I.length&&v.dragHandler.init(W),y=a.init(W,C)))}function w(X,V){const te=q();k(),E(d({startIndex:te},X),V),c.emit("reInit")}function k(){v.dragHandler.destroy(),v.eventStore.clear(),v.translate.clear(),v.slideLooper.clear(),v.resizeHandler.destroy(),v.slidesHandler.destroy(),v.slidesInView.destroy(),v.animation.destroy(),a.destroy(),l.clear()}function O(){m||(m=!0,l.clear(),k(),c.emit("destroy"),c.clear())}function L(X,V,te){!b.active||m||(v.scrollBody.useBaseFriction().useDuration(V===!0?0:b.duration),v.scrollTo.index(X,te||0))}function T(X){const V=v.index.add(1).get();L(V,X,-1)}function _(X){const V=v.index.add(-1).get();L(V,X,1)}function A(){return v.index.add(1).get()!==q()}function H(){return v.index.add(-1).get()!==q()}function N(){return v.scrollSnapList}function z(){return v.scrollProgress.get(v.offsetLocation.get())}function q(){return v.index.get()}function K(){return v.indexPrevious.get()}function Y(){return v.slidesInView.get()}function U(){return v.slidesInView.get(!1)}function J(){return y}function ee(){return v}function Z(){return e}function G(){return j}function B(){return I}const W={canScrollNext:A,canScrollPrev:H,containerNode:G,internalEngine:ee,destroy:O,off:f,on:g,emit:h,plugins:J,previousScrollSnap:K,reInit:x,rootNode:Z,scrollNext:T,scrollPrev:_,scrollProgress:z,scrollSnapList:N,scrollTo:L,selectedScrollSnap:q,slideNodes:B,slidesInView:Y,slidesNotInView:U};return E(t,n),setTimeout(()=>c.emit("init"),0),W}Qr.globalOptions=void 0;const{useRef:mc,useState:gc,useCallback:f9,useEffect:Ui}=await Q("react");function lo(e={},t=[]){const n=mc(e),i=mc(t),[s,o]=gc(),[a,l]=gc(),c=f9(()=>{s&&s.reInit(n.current,i.current)},[s]);return Ui(()=>{so(n.current,e)||(n.current=e,c())},[e,c]),Ui(()=>{Tg(i.current,t)||(i.current=t,c())},[t,c]),Ui(()=>{if(_g()&&a){Qr.globalOptions=lo.globalOptions;const d=Qr(a,n.current,i.current);return o(d),()=>d.destroy()}else o(void 0)},[a,o]),[l,s]}lo.globalOptions=void 0;const{useEffect:p9,useState:xc}=await Q("react"),h9={loop:!1};function m9({images:e,config:t=h9,loading:n}){const[i,s]=lo(t),[o,a]=xc([]),[l,c]=xc(0),d=g=>s?.scrollTo(g),u=g=>a(g.scrollSnapList()),p=g=>c(g.selectedScrollSnap());return p9(()=>{s&&(u(s),p(s),s.on("reInit",u),s.on("reInit",p),s.on("select",p))},[s]),r.jsxs("div",{className:"relative",children:[r.jsxs("div",{className:"overflow-hidden rounded-md",ref:i,children:[n&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:"rounded-md overflow-hidden w-full aspect-square",children:r.jsx(he,{})}),r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[52px]",children:r.jsx(he,{})})]}),!n&&r.jsx(r.Fragment,{children:r.jsx("div",{className:"flex touch-pan-y touch-pinch-zoom w-full aspect-square",children:e.map((g,f)=>r.jsx("div",{className:"min-w-0 grow-0 shrink-0 basis-full",children:r.jsxs("div",{className:R("relative",F.titleLoose.xs),children:[r.jsx("img",{src:g.url,alt:g.alt}),g.attribution&&r.jsx("div",{className:R("absolute bottom-0 left-0 right-0","flex items-center justify-center gap-1","p-md","bg-[rgba(247,247,247,0.75)]"),children:r.jsxs("p",{children:[r.jsx("span",{children:"Designed for print"})," ",r.jsx("span",{style:{textTransform:"lowercase"},children:"by"})," ",r.jsx("span",{className:"font-bold",children:g.attribution})]})})]})},f))})})]}),e.length>1&&!n&&r.jsxs(r.Fragment,{children:[r.jsx("div",{className:R("lg:hidden","flex items-center justify-center gap-2","p-lg"),children:o.map((g,f)=>r.jsx("button",{onClick:()=>d(f),className:R("w-3 h-3","rounded-full",f===l?"bg-icon-blue outline outline-[2px] outline-offset-05 outline-icon-blue":"bg-[#dddddd]"),children:r.jsxs("span",{className:"sr-only",children:["Go to slide ",f+1]})},f))}),r.jsx("div",{className:R("hidden lg:flex justify-center flex-col","absolute top-0 bottom-0 left-0"),children:o.map((g,f)=>r.jsxs("button",{onClick:()=>d(f),className:R("overflow-hidden","w-[56px] h-[56px]","border","relative",f===l?"border-blue":"border-light"),children:[r.jsx("img",{src:e[f].url,alt:"","aria-hidden":"true",className:"w-full h-full object-cover"}),r.jsxs("span",{className:"sr-only",children:["Go to slide ",f+1]})]},f))})]})]})}function g9(){const e=D(rn),t=D(sn),n=D(Up),i=D(Hp);return t&&e&&n||i}function x9(){const e=D(rn),t=D(sn),n=D(Qp),i=D(Vp);return t&&e&&n||i.map(s=>({url:`//smartpress.imgix.net/resources/offering_images/${s.url.split("offering_images/").pop()}`,alt:s.alt,attribution:s.attribution}))}function v9(){const e=D(rn),t=D(sn),n=D(Zp),i=D($p);return t&&e&&n||i}function b9(){const e=D(rn),t=D(sn),n=D(Bp),i=D(zp);return t&&e&&n||i}const{useEffect:y9}=await Q("react");function w9({fileUpload:e}){const[t,n]=x3(),i=D($s),s=D(e0),{loaded:o,unitPrice:a,price:l}=D(Pl),[c,d]=fe(),[u,p]=fe(),{recordGA4ViewItem:g}=rd(),f=Us(),x={__html:g9()},v={__html:v9()},b={__html:b9()},C=x9();y9(()=>{o&&g()},[o]);function y(P){P.target.blur(),n()}function j(P){P.target.blur(),Yp(),window.dispatchEvent(new CustomEvent("OpenGutenberg",{bubbles:!0,composed:!0,cancelable:!0}))}function I(){window.location.href=mg}function M(){const P=document.getElementById("powerReviewsSaddleStitchBooklet");P&&P.scrollIntoView({behavior:"smooth"})}return r.jsxs(r.Fragment,{children:[r.jsxs("div",{className:R("grid gap-5","lg:grid-cols-2","p-lg lg:p-xxxl","max-w-[1440px] mx-auto"),children:[r.jsxs(Eo,{children:[o&&r.jsx("h1",{className:R(F.headlineAlt.lg,"mb-4"),children:f}),!o&&r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[40px] mb-4",children:r.jsx(he,{})}),r.jsxs("div",{className:"space-y-5",children:[r.jsxs("div",{className:"flex flex-wrap justify-between gap-5",children:[r.jsx(Wh,{onReviewsClick:M,onWriteReviewClick:I}),r.jsx(Xu,{price:l,unitPrice:a,loading:!o})]}),r.jsx(m9,{images:C,loading:!o}),r.jsx("div",{className:"lg:hidden",children:r.jsx(st,{block:!0,onClick:y,children:"Start Customizing"})}),r.jsx(Eg,{block:!0,onClick:j,children:"Configure with Smartpress Intelligence"}),o&&r.jsx("p",{className:R("text-black px-lg py-xs",F.body.md.loose),dangerouslySetInnerHTML:x}),!o&&r.jsx("div",{className:"rounded-md overflow-hidden w-full h-[156px]",children:r.jsx(he,{})}),r.jsxs("div",{className:"hidden lg:block space-y-5",children:[r.jsx(Sa,{onClick:()=>d(!0)}),r.jsx(ac,{productInformation:v,faqContent:b,loading:!o}),r.jsx(ja,{})]})]})]}),r.jsx(Eo,{children:r.jsxs("div",{ref:t,children:[r.jsx("div",{className:"@container/configuration",children:r.jsxs("div",{className:R("flex flex-col gap-2","pb-sm","@[464px]/configuration:flex-row","@[464px]/configuration:justify-between","@[464px]/configuration:items-center"),children:[r.jsx("h2",{className:R(F.headlineAlt.xs),children:"Customize"}),r.jsx(Ig,{})]})}),r.jsx(Tm,{}),e&&r.jsx(Mg,{}),r.jsx("h2",{className:R(F.headlineAlt.xs,"pt-xl pb-sm"),children:"Turnaround"}),r.jsx(Hm,{}),r.jsxs("div",{className:"space-y-5 pt-lg lg:hidden",children:[r.jsx(f3,{price:i,unitPrice:s,onEstimateShipping:()=>p(!0)}),r.jsx(Sa,{onClick:()=>d(!0)}),r.jsx(ac,{productInformation:v,faqContent:b,loading:!o}),r.jsx(ja,{})]})]})})]}),r.jsx("div",{className:"hidden lg:block sticky bottom-0 z-10",children:r.jsx(h3,{price:i,unitPrice:s,onEstimateShipping:()=>p(!0),onDownloadTemplates:()=>d(!0)})}),c&&r.jsx(ng,{show:c,setShow:d}),u&&r.jsx(lg,{show:u,setShow:p})]})}const{forwardRef:C9}=await Q("react"),j9=C9(({fileUpload:e},t)=>r.jsx("div",{ref:t,className:R("min-w-[320px]","text-dark"),children:r.jsx("main",{children:r.jsx(w9,{fileUpload:e})})})),vc=/iPad|iPhone|iPod/.test(navigator.userAgent)&&!window.MSStream;let Qi=0;function S9(){function e(){if(vc){Qi=window.pageYOffset,document.body.style.overflow="hidden",document.body.style.position="fixed",document.body.style.top=`-${Qi}px`,document.body.style.width="100%";return}document.body.style.overflow="hidden"}function t(){if(vc){document.body.style.removeProperty("overflow"),document.body.style.removeProperty("position"),document.body.style.removeProperty("top"),document.body.style.removeProperty("width"),window.scrollTo(0,Qi);return}document.body.style.overflow=""}return[e,t]}const{useEffect:k9,useRef:bc,useState:I9}=await Q("react");function E9({children:e}){const t=bc(),n=bc(new MutationObserver(l)),[i,s]=I9(!1),[o,a]=S9();function l(c,d){c.forEach(u=>{const p=!!u.target.children.length;s(p),p?o():a()})}return k9(()=>{if(t.current)return n.current.observe(t.current,{childList:!0}),()=>n.current.disconnect()},[t.current,n.current]),r.jsxs(r.Fragment,{children:[r.jsx(Ld.Provider,{value:t,children:r.jsx("div",{inert:i?"true":void 0,children:e})}),r.jsx("div",{ref:t,id:"app-modals",className:R("@container/modal","fixed top-0","z-[10000]","transition-opacity duration-100",!i&&"opacity-0",i&&"h-dvh w-screen min-w-[320px] flex justify-center items-center bg-surface-overlay backdrop-blur-sm opacity-100")})]})}const P9=`*,:before,:after{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }::backdrop{--tw-border-spacing-x: 0;--tw-border-spacing-y: 0;--tw-translate-x: 0;--tw-translate-y: 0;--tw-rotate: 0;--tw-skew-x: 0;--tw-skew-y: 0;--tw-scale-x: 1;--tw-scale-y: 1;--tw-pan-x: ;--tw-pan-y: ;--tw-pinch-zoom: ;--tw-scroll-snap-strictness: proximity;--tw-gradient-from-position: ;--tw-gradient-via-position: ;--tw-gradient-to-position: ;--tw-ordinal: ;--tw-slashed-zero: ;--tw-numeric-figure: ;--tw-numeric-spacing: ;--tw-numeric-fraction: ;--tw-ring-inset: ;--tw-ring-offset-width: 0px;--tw-ring-offset-color: #fff;--tw-ring-color: rgb(59 130 246 / .5);--tw-ring-offset-shadow: 0 0 #0000;--tw-ring-shadow: 0 0 #0000;--tw-shadow: 0 0 #0000;--tw-shadow-colored: 0 0 #0000;--tw-blur: ;--tw-brightness: ;--tw-contrast: ;--tw-grayscale: ;--tw-hue-rotate: ;--tw-invert: ;--tw-saturate: ;--tw-sepia: ;--tw-drop-shadow: ;--tw-backdrop-blur: ;--tw-backdrop-brightness: ;--tw-backdrop-contrast: ;--tw-backdrop-grayscale: ;--tw-backdrop-hue-rotate: ;--tw-backdrop-invert: ;--tw-backdrop-opacity: ;--tw-backdrop-saturate: ;--tw-backdrop-sepia: ;--tw-contain-size: ;--tw-contain-layout: ;--tw-contain-paint: ;--tw-contain-style: }*,:before,:after{box-sizing:border-box;border-width:0;border-style:solid;border-color:currentColor}:before,:after{--tw-content: ""}html,:host{line-height:1.5;-webkit-text-size-adjust:100%;-moz-tab-size:4;-o-tab-size:4;tab-size:4;font-family:urw-din,Helvetica Neue,Helvetica,Arial,sans-serif;font-feature-settings:normal;font-variation-settings:normal;-webkit-tap-highlight-color:transparent}body{margin:0;line-height:inherit}hr{height:0;color:inherit;border-top-width:1px}abbr:where([title]){-webkit-text-decoration:underline dotted;text-decoration:underline dotted}h1,h2,h3,h4,h5,h6{font-size:inherit;font-weight:inherit}a{color:inherit;text-decoration:inherit}b,strong{font-weight:bolder}code,kbd,samp,pre{font-family:courier-prime,monospace;font-feature-settings:normal;font-variation-settings:normal;font-size:1em}small{font-size:80%}sub,sup{font-size:75%;line-height:0;position:relative;vertical-align:baseline}sub{bottom:-.25em}sup{top:-.5em}table{text-indent:0;border-color:inherit;border-collapse:collapse}button,input,optgroup,select,textarea{font-family:inherit;font-feature-settings:inherit;font-variation-settings:inherit;font-size:100%;font-weight:inherit;line-height:inherit;letter-spacing:inherit;color:inherit;margin:0;padding:0}button,select{text-transform:none}button,input:where([type=button]),input:where([type=reset]),input:where([type=submit]){-webkit-appearance:button;background-color:transparent;background-image:none}:-moz-focusring{outline:auto}:-moz-ui-invalid{box-shadow:none}progress{vertical-align:baseline}::-webkit-inner-spin-button,::-webkit-outer-spin-button{height:auto}[type=search]{-webkit-appearance:textfield;outline-offset:-2px}::-webkit-search-decoration{-webkit-appearance:none}::-webkit-file-upload-button{-webkit-appearance:button;font:inherit}summary{display:list-item}blockquote,dl,dd,h1,h2,h3,h4,h5,h6,hr,figure,p,pre{margin:0}fieldset{margin:0;padding:0}legend{padding:0}ol,ul,menu{list-style:none;margin:0;padding:0}dialog{padding:0}textarea{resize:vertical}input::-moz-placeholder,textarea::-moz-placeholder{opacity:1;color:#9ca3af}input::placeholder,textarea::placeholder{opacity:1;color:#9ca3af}button,[role=button]{cursor:pointer}:disabled{cursor:default}img,svg,video,canvas,audio,iframe,embed,object{display:block;vertical-align:middle}img,video{max-width:100%;height:auto}[hidden]:where(:not([hidden=until-found])){display:none}:root,:host{--color-primary-brand-50: rgba(248,251,255,1);--color-primary-brand-100: rgba(240,246,252,1);--color-primary-brand-200: rgba(154,206,240,1);--color-primary-brand-300: rgba(69,158,216,1);--color-primary-brand-400: rgba(53,136,203,1);--color-primary-brand-500: rgba(0,122,201,1);--color-primary-brand-600: rgba(0,108,187,1);--color-primary-brand-700: rgba(0,92,170,1);--color-primary-brand-800: rgba(0,77,153,1);--color-primary-brand-900: rgba(0,48,107,1);--color-neutral-black: rgba(0,0,0,1);--color-neutral-white: rgba(255,255,255,1);--color-neutral-100: rgba(249,249,249,1);--color-neutral-200: rgba(247,247,247,1);--color-neutral-300: rgba(241,241,241,1);--color-neutral-400: rgba(221,221,221,1);--color-neutral-500: rgba(204,204,204,1);--color-neutral-600: rgba(153,153,153,1);--color-neutral-700: rgba(102,102,102,1);--color-neutral-800: rgba(51,51,51,1);--color-neutral-900: rgba(34,34,34,1);--color-accent-sandstone-200: rgba(253,220,189,1);--color-accent-sandstone-500: rgba(214,172,127,1);--color-accent-sandstone-900: rgba(176,91,0,1);--color-alert-warning-light: rgba(255,251,205,1);--color-alert-warning-dark: rgba(174,146,28,1);--color-alert-error-light: rgba(255,229,229,1);--color-alert-error-dark: rgba(204,0,0,1);--color-alert-success-light: rgba(222,242,235,1);--color-alert-success-dark: rgba(11,134,92,1);--color-alert-info-light: rgba(210,227,255,1);--color-alert-info-dark: var(--color-primary-brand-800);--color-accent-golden-500: rgba(236,205,71,1);--color-accent-reddish-500: rgba(230,101,73,1);--color-print-points-cyan: rgba(42,217,217,1);--color-print-points-magenta: rgba(255,0,255,1);--color-print-points-yellow: rgba(255,255,0,1);--space-0: 0px;--space-025: 1px;--space-05: 2px;--space-1: 4px;--space-2: 8px;--space-3: 12px;--space-4: 16px;--space-5: 20px;--space-6: 24px;--space-7: 28px;--space-10: 40px;--space-12: 48px;--space-16: 64px;--space-20: 80px;--border-width-1: 1px;--border-width-2: 2px}input[type=number]::-webkit-inner-spin-button,input[type=number]::-webkit-outer-spin-button{-webkit-appearance:none;margin:0}input[type=number]{-moz-appearance:textfield;-webkit-appearance:textfield;appearance:textfield}.container{width:100%}@media(min-width:480px){.container{max-width:480px}}@media(min-width:768px){.container{max-width:768px}}@media(min-width:1024px){.container{max-width:1024px}}@media(min-width:1440px){.container{max-width:1440px}}.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border-width:0}.pointer-events-none{pointer-events:none}.visible{visibility:visible}.invisible{visibility:hidden}.fixed{position:fixed}.absolute{position:absolute}.relative{position:relative}.sticky{position:sticky}.-left-1{left:calc(var(--space-1) * -1)}.-top-1{top:calc(var(--space-1) * -1)}.bottom-0{bottom:var(--space-0)}.left-0{left:var(--space-0)}.left-\\[10px\\]{left:10px}.right-0{right:var(--space-0)}.right-1{right:var(--space-1)}.right-4{right:var(--space-4)}.top-0{top:var(--space-0)}.top-1{top:var(--space-1)}.top-1\\/2{top:50%}.top-3{top:var(--space-3)}.top-\\[10px\\]{top:10px}.top-\\[32px\\]{top:32px}.isolate{isolation:isolate}.z-0{z-index:0}.z-10{z-index:10}.z-50{z-index:50}.z-\\[10000\\]{z-index:10000}.mx-auto{margin-left:auto;margin-right:auto}.my-2{margin-top:var(--space-2);margin-bottom:var(--space-2)}.my-5{margin-top:var(--space-5);margin-bottom:var(--space-5)}.mb-2{margin-bottom:var(--space-2)}.mb-3{margin-bottom:var(--space-3)}.mb-4{margin-bottom:var(--space-4)}.mb-5{margin-bottom:var(--space-5)}.ml-3{margin-left:var(--space-3)}.ml-4{margin-left:var(--space-4)}.mt-2{margin-top:var(--space-2)}.block{display:block}.inline-block{display:inline-block}.inline{display:inline}.flex{display:flex}.inline-flex{display:inline-flex}.table{display:table}.grid{display:grid}.hidden{display:none}.aspect-\\[2\\/1\\]{aspect-ratio:2/1}.aspect-square{aspect-ratio:1 / 1}.h-12{height:var(--space-12)}.h-2{height:var(--space-2)}.h-3{height:var(--space-3)}.h-6{height:var(--space-6)}.h-\\[144px\\]{height:144px}.h-\\[14px\\]{height:14px}.h-\\[156px\\]{height:156px}.h-\\[164px\\]{height:164px}.h-\\[16px\\]{height:16px}.h-\\[1px\\]{height:1px}.h-\\[200px\\]{height:200px}.h-\\[28px\\]{height:28px}.h-\\[40px\\]{height:40px}.h-\\[424px\\]{height:424px}.h-\\[44px\\]{height:44px}.h-\\[52px\\]{height:52px}.h-\\[56px\\]{height:56px}.h-\\[627px\\]{height:627px}.h-\\[62px\\]{height:62px}.h-\\[68px\\]{height:68px}.h-\\[74px\\]{height:74px}.h-dvh{height:100dvh}.h-full{height:100%}.max-h-\\[164px\\]{max-height:164px}.max-h-dvh{max-height:100dvh}.max-h-full{max-height:100%}.min-h-\\[50px\\]{min-height:50px}.w-1\\/2{width:50%}.w-12{width:var(--space-12)}.w-2{width:var(--space-2)}.w-3{width:var(--space-3)}.w-6{width:var(--space-6)}.w-\\[127px\\]{width:127px}.w-\\[235px\\]{width:235px}.w-\\[24px\\]{width:24px}.w-\\[56px\\]{width:56px}.w-\\[68px\\]{width:68px}.w-\\[80px\\]{width:80px}.w-full{width:100%}.w-screen{width:100vw}.min-w-0{min-width:var(--space-0)}.min-w-\\[320px\\]{min-width:320px}.max-w-\\[1440px\\]{max-width:1440px}.max-w-\\[530px\\]{max-width:530px}.max-w-\\[800px\\]{max-width:800px}.max-w-full{max-width:100%}.flex-shrink-0,.shrink-0{flex-shrink:0}.flex-grow{flex-grow:1}.flex-grow-0,.grow-0{flex-grow:0}.basis-1\\/2{flex-basis:50%}.basis-full{flex-basis:100%}.-translate-y-1\\/2{--tw-translate-y: -50%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.transform{transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}@keyframes load{to{background-position:200% 0}}.animate-load{animation:load 1.4s infinite linear}.cursor-default{cursor:default}.cursor-pointer{cursor:pointer}.cursor-text{cursor:text}.touch-pan-y{--tw-pan-y: pan-y;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.touch-pinch-zoom{--tw-pinch-zoom: pinch-zoom;touch-action:var(--tw-pan-x) var(--tw-pan-y) var(--tw-pinch-zoom)}.list-inside{list-style-position:inside}.list-outside{list-style-position:outside}.list-\\[circle\\]{list-style-type:circle}.list-disc{list-style-type:disc}.appearance-none{-webkit-appearance:none;-moz-appearance:none;appearance:none}.grid-cols-1{grid-template-columns:repeat(1,minmax(0,1fr))}.grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.flex-col{flex-direction:column}.flex-wrap{flex-wrap:wrap}.flex-nowrap{flex-wrap:nowrap}.items-end{align-items:flex-end}.items-center{align-items:center}.items-stretch{align-items:stretch}.justify-start{justify-content:flex-start}.justify-center{justify-content:center}.justify-between{justify-content:space-between}.justify-stretch{justify-content:stretch}.gap-1{gap:var(--space-1)}.gap-2{gap:var(--space-2)}.gap-3{gap:var(--space-3)}.gap-4{gap:var(--space-4)}.gap-5{gap:var(--space-5)}.gap-\\[10px\\]{gap:10px}.gap-\\[3px\\]{gap:3px}.space-y-1>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-1) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-1) * var(--tw-space-y-reverse))}.space-y-12>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-12) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-12) * var(--tw-space-y-reverse))}.space-y-2>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-2) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-2) * var(--tw-space-y-reverse))}.space-y-3>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-3) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-3) * var(--tw-space-y-reverse))}.space-y-4>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-4) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-4) * var(--tw-space-y-reverse))}.space-y-5>:not([hidden])~:not([hidden]){--tw-space-y-reverse: 0;margin-top:calc(var(--space-5) * calc(1 - var(--tw-space-y-reverse)));margin-bottom:calc(var(--space-5) * var(--tw-space-y-reverse))}.self-start{align-self:flex-start}.overflow-hidden{overflow:hidden}.overflow-y-auto{overflow-y:auto}.whitespace-nowrap{white-space:nowrap}.break-words{overflow-wrap:break-word}.break-all{word-break:break-all}.rounded{border-radius:var(--space-1)}.rounded-\\[50\\%\\]{border-radius:50%}.rounded-full{border-radius:9999px}.rounded-md{border-radius:var(--space-2)}.rounded-sm{border-radius:var(--space-1)}.rounded-xl{border-radius:var(--space-6)}.rounded-l-nested-md{border-top-left-radius:calc(var(--space-2) - var(--border-width-1));border-bottom-left-radius:calc(var(--space-2) - var(--border-width-1))}.border{border-width:var(--border-width-1)}.border-md{border-width:var(--border-width-2)}.border-sm{border-width:var(--border-width-1)}.border-b{border-bottom-width:var(--border-width-1)}.border-b-md{border-bottom-width:var(--border-width-2)}.border-l-sm{border-left-width:var(--border-width-1)}.border-r,.border-r-sm{border-right-width:var(--border-width-1)}.border-t{border-top-width:var(--border-width-1)}.border-blue{border-color:var(--color-primary-brand-500)}.border-disabled{border-color:var(--color-neutral-400)}.border-error{border-color:var(--color-alert-error-dark)}.border-info{border-color:var(--color-alert-info-dark)}.border-light{border-color:var(--color-neutral-400)}.border-medium{border-color:var(--color-neutral-600)}.border-success{border-color:var(--color-alert-success-dark)}.border-transparent{border-color:transparent}.border-warning{border-color:var(--color-alert-warning-dark)}.border-white{border-color:var(--color-neutral-white)}.border-b-\\[transparent\\]{border-bottom-color:transparent}.border-l-medium{border-left-color:var(--color-neutral-600)}.bg-\\[\\#dddddd\\]{--tw-bg-opacity: 1;background-color:rgb(221 221 221 / var(--tw-bg-opacity, 1))}.bg-\\[rgba\\(247\\,247\\,247\\,0\\.75\\)\\]{background-color:#f7f7f7bf}.bg-\\[transparent\\]{background-color:transparent}.bg-accent-sandstone-200{background-color:var(--color-accent-sandstone-200)}.bg-icon-blue{background-color:var(--color-primary-brand-500)}.bg-icon-white{background-color:var(--color-neutral-white)}.bg-interactions-disabled{background-color:var(--color-neutral-400)}.bg-neutral-300{background-color:var(--color-neutral-300)}.bg-neutral-800{background-color:var(--color-neutral-800)}.bg-neutral-white{background-color:var(--color-neutral-white)}.bg-surface-blue{background-color:var(--color-primary-brand-500)}.bg-surface-info{background-color:var(--color-alert-info-light)}.bg-surface-light{background-color:var(--color-neutral-200)}.bg-surface-medium{background-color:var(--color-neutral-400)}.bg-surface-overlay{background-color:#33333340}.bg-surface-success{background-color:var(--color-alert-success-light)}.bg-surface-warning{background-color:var(--color-alert-warning-light)}.bg-surface-white{background-color:var(--color-neutral-white)}.bg-\\[linear-gradient\\(-45deg\\,transparent\\,var\\(--color-neutral-400\\)\\,transparent\\)\\]{background-image:linear-gradient(-45deg,transparent,var(--color-neutral-400),transparent)}.bg-gradient-to-r{background-image:linear-gradient(to right,var(--tw-gradient-stops))}.from-print-points-cyan{--tw-gradient-from: var(--color-print-points-cyan) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-surface-blue{--tw-gradient-from: var(--color-primary-brand-500) var(--tw-gradient-from-position);--tw-gradient-to: rgb(255 255 255 / 0) var(--tw-gradient-to-position);--tw-gradient-stops: var(--tw-gradient-from), var(--tw-gradient-to)}.from-50\\%{--tw-gradient-from-position: 50%}.to-print-points-magenta{--tw-gradient-to: var(--color-print-points-magenta) var(--tw-gradient-to-position)}.to-surface-white{--tw-gradient-to: var(--color-neutral-white) var(--tw-gradient-to-position)}.to-50\\%{--tw-gradient-to-position: 50%}.bg-\\[length\\:200\\%_100\\%\\]{background-size:200% 100%}.bg-fixed{background-attachment:fixed}.bg-clip-text{-webkit-background-clip:text;background-clip:text}.bg-left-top{background-position:left top}.fill-icon-blue{fill:var(--color-primary-brand-500)}.fill-icon-info{fill:var(--color-alert-info-dark)}.fill-icon-medium{fill:var(--color-neutral-600)}.fill-icon-success{fill:var(--color-alert-success-dark)}.fill-icon-warning{fill:var(--color-alert-warning-dark)}.fill-icon-white{fill:var(--color-neutral-white)}.fill-interactions-disabled{fill:var(--color-neutral-400)}.fill-primary-brand-500{fill:var(--color-primary-brand-500)}.stroke-icon-medium{stroke:var(--color-neutral-600)}.stroke-primary-brand-500{stroke:var(--color-primary-brand-500)}.object-cover{-o-object-fit:cover;object-fit:cover}.p-\\[1px\\]{padding:1px}.p-\\[2px\\]{padding:2px}.p-\\[3px\\]{padding:3px}.p-lg{padding:var(--space-5)}.p-md{padding:var(--space-4)}.p-sm{padding:var(--space-3)}.p-xs{padding:var(--space-2)}.p-xxs{padding:var(--space-1)}.px-\\[10\\.444px\\]{padding-left:10.444px;padding-right:10.444px}.px-lg{padding-left:var(--space-5);padding-right:var(--space-5)}.px-md{padding-left:var(--space-4);padding-right:var(--space-4)}.px-sm{padding-left:var(--space-3);padding-right:var(--space-3)}.px-xs{padding-left:var(--space-2);padding-right:var(--space-2)}.py-\\[10\\.758px\\]{padding-top:10.758px;padding-bottom:10.758px}.py-\\[14px\\]{padding-top:14px;padding-bottom:14px}.py-lg{padding-top:var(--space-5);padding-bottom:var(--space-5)}.py-md{padding-top:var(--space-4);padding-bottom:var(--space-4)}.py-sm{padding-top:var(--space-3);padding-bottom:var(--space-3)}.py-xs{padding-top:var(--space-2);padding-bottom:var(--space-2)}.py-xxs{padding-top:var(--space-1);padding-bottom:var(--space-1)}.pb-lg{padding-bottom:var(--space-5)}.pb-md{padding-bottom:var(--space-4)}.pb-sm{padding-bottom:var(--space-3)}.pb-xs{padding-bottom:var(--space-2)}.pb-xxs{padding-bottom:var(--space-1)}.pl-\\[12px\\]{padding-left:12px}.pl-md{padding-left:var(--space-4)}.pr-\\[3px\\]{padding-right:3px}.pr-lg{padding-right:var(--space-5)}.pr-sm{padding-right:var(--space-3)}.pr-xxxl{padding-right:var(--space-10)}.pt-\\[32px\\]{padding-top:32px}.pt-lg{padding-top:var(--space-5)}.pt-md{padding-top:var(--space-4)}.pt-sm{padding-top:var(--space-3)}.pt-xl{padding-top:var(--space-6)}.pt-xs{padding-top:var(--space-2)}.pt-xxs{padding-top:var(--space-1)}.pt-xxxl{padding-top:var(--space-10)}.text-left{text-align:left}.text-center{text-align:center}.text-right{text-align:right}.font-condensed{font-family:urw-din-condensed,Helvetica Neue,Helvetica,Arial,sans-serif}.font-mono{font-family:courier-prime,monospace}.font-sans{font-family:urw-din,Helvetica Neue,Helvetica,Arial,sans-serif}.font-serif{font-family:ivyjournal,Georgia,serif}.text-\\[12px\\]{font-size:12px}.text-body-alt-lg{font-size:18px;line-height:24px;letter-spacing:.01em;font-weight:400}.text-body-alt-md{font-size:16px;line-height:22px;letter-spacing:.01em;font-weight:400}.text-body-alt-sm{font-size:14px;line-height:20px;letter-spacing:.01em;font-weight:400}.text-body-alt-xl{font-size:20px;line-height:26px;letter-spacing:.01em;font-weight:400}.text-body-alt-xs{font-size:12px;line-height:18px;letter-spacing:.01em;font-weight:400}.text-body-lg{font-size:18px;line-height:30px;letter-spacing:.01em;font-weight:400}.text-body-md-loose{font-size:16px;line-height:28px;letter-spacing:.01em;font-weight:400}.text-body-md-tight{font-size:16px;line-height:20px;letter-spacing:.01em;font-weight:400}.text-body-sm{font-size:14px;line-height:20px;letter-spacing:.01em;font-weight:400}.text-body-xl{font-size:20px;line-height:32px;letter-spacing:.01em;font-weight:400}.text-body-xs{font-size:12px;line-height:14px;letter-spacing:.01em;font-weight:400}.text-buttons{font-size:14px;line-height:18px;letter-spacing:.12em;font-weight:600}.text-display-alt-lg{font-size:96px;line-height:100px;letter-spacing:0;font-weight:300}.text-display-alt-md{font-size:56px;line-height:64px;letter-spacing:0;font-weight:300}.text-display-alt-sm{font-size:44px;line-height:52px;letter-spacing:0;font-weight:300}.text-display-alt-xl{font-size:140px;line-height:140px;letter-spacing:0;font-weight:300}.text-display-alt-xs{font-size:36px;line-height:44px;letter-spacing:0;font-weight:300}.text-display-lg{font-size:96px;line-height:100px;letter-spacing:0;font-weight:600}.text-display-md{font-size:56px;line-height:64px;letter-spacing:0;font-weight:600}.text-display-sm{font-size:44px;line-height:52px;letter-spacing:0;font-weight:600}.text-display-xl{font-size:140px;line-height:140px;letter-spacing:0;font-weight:600}.text-display-xs{font-size:36px;line-height:44px;letter-spacing:0;font-weight:600}.text-formlabel{font-size:12px;line-height:16px;letter-spacing:0;font-weight:400}.text-formmsg{font-size:14px;line-height:16px;letter-spacing:0;font-weight:400}.text-formvalue-lg{font-size:18px;line-height:22px;letter-spacing:0;font-weight:500}.text-formvalue-reg{font-size:16px;line-height:16px;letter-spacing:0;font-weight:500}.text-formvalue-sm{font-size:14px;line-height:16px;letter-spacing:0;font-weight:400}.text-headline-alt-lg{font-size:36px;line-height:40px;letter-spacing:-.02em;font-weight:600}.text-headline-alt-md{font-size:32px;line-height:36px;letter-spacing:-.02em;font-weight:600}.text-headline-alt-sm{font-size:28px;line-height:32px;letter-spacing:-.02em;font-weight:600}.text-headline-alt-xl{font-size:40px;line-height:44px;letter-spacing:-.02em;font-weight:600}.text-headline-alt-xs{font-size:24px;line-height:28px;letter-spacing:-.02em;font-weight:600}.text-headline-lg{font-size:32px;line-height:40px;letter-spacing:0;font-weight:400}.text-headline-md{font-size:28px;line-height:36px;letter-spacing:0;font-weight:400}.text-headline-sm{font-size:24px;line-height:32px;letter-spacing:0;font-weight:400}.text-headline-xl{font-size:40px;line-height:48px;letter-spacing:0;font-weight:400}.text-headline-xs{font-size:20px;line-height:28px;letter-spacing:0;font-weight:400}.text-lg{font-size:var(--space-6)}.text-links-lg{font-size:16px;line-height:18px;letter-spacing:.04em;font-weight:400}.text-links-md{font-size:14px;line-height:14px;letter-spacing:.04em;font-weight:500}.text-links-sm{font-size:12px;line-height:14px;letter-spacing:.01em;font-weight:400}.text-pills-lg{font-size:16px;line-height:16px;letter-spacing:.08em;font-weight:700}.text-pills-sm{font-size:12px;line-height:16px;letter-spacing:.08em;font-weight:700}.text-sm{font-size:var(--space-4)}.text-subtitle-lg{font-size:20px;line-height:24px;letter-spacing:.02em;font-weight:500}.text-subtitle-md{font-size:16px;line-height:20px;letter-spacing:.02em;font-weight:500}.text-subtitle-sm{font-size:14px;line-height:16px;letter-spacing:.02em;font-weight:500}.text-subtitle-xl{font-size:24px;line-height:28px;letter-spacing:.02em;font-weight:500}.text-subtitle-xs{font-size:12px;line-height:16px;letter-spacing:.02em;font-weight:500}.text-title-loose-lg{font-size:20px;line-height:24px;letter-spacing:.1em;font-weight:400}.text-title-loose-md{font-size:16px;line-height:20px;letter-spacing:.1em;font-weight:400}.text-title-loose-sm{font-size:14px;line-height:16px;letter-spacing:.1em;font-weight:400}.text-title-loose-xl{font-size:24px;line-height:28px;letter-spacing:.1em;font-weight:400}.text-title-loose-xs{font-size:12px;line-height:16px;letter-spacing:.1em;font-weight:400}.text-title-tight-lg{font-size:20px;line-height:24px;letter-spacing:.08em;font-weight:700}.text-title-tight-md{font-size:16px;line-height:20px;letter-spacing:.04em;font-weight:700}.text-title-tight-sm{font-size:14px;line-height:16px;letter-spacing:.08em;font-weight:700}.text-title-tight-xl{font-size:24px;line-height:28px;letter-spacing:.08em;font-weight:700}.text-title-tight-xs{font-size:12px;line-height:16px;letter-spacing:.08em;font-weight:700}.text-xs{font-size:var(--space-3)}.font-bold{font-weight:700}.font-semibold{font-weight:600}.uppercase{text-transform:uppercase}.lowercase{text-transform:lowercase}.\\!leading-\\[inherit\\]{line-height:inherit!important}.leading-4{line-height:1rem}.leading-5{line-height:1.25rem}.leading-7{line-height:1.75rem}.leading-\\[8px\\]{line-height:8px}.tracking-\\[\\.12px\\],.tracking-\\[0\\.12px\\]{letter-spacing:.12px}.text-\\[\\#979797\\]{--tw-text-opacity: 1;color:rgb(151 151 151 / var(--tw-text-opacity, 1))}.text-black{color:var(--color-neutral-black)}.text-blue{color:var(--color-primary-brand-500)}.text-dark{color:var(--color-neutral-800)}.text-disabled{color:var(--color-neutral-400)}.text-error{color:var(--color-alert-error-dark)}.text-info{color:var(--color-alert-info-dark)}.text-light{color:var(--color-neutral-600)}.text-link-active{color:#006cbb}.text-link-disabled{color:#ddd}.text-medium{color:var(--color-neutral-700)}.text-pill{color:var(--color-accent-sandstone-900)}.text-success{color:var(--color-alert-success-dark)}.text-warning{color:var(--color-alert-warning-dark)}.text-white{color:var(--color-neutral-white)}.underline{text-decoration-line:underline}.opacity-0{opacity:0}.opacity-100{opacity:1}.opacity-30{opacity:.3}.opacity-50{opacity:.5}.shadow-\\[0px_-2px_8px_0px_rgba\\(51\\,51\\,51\\,0\\.25\\)\\]{--tw-shadow: 0px -2px 8px 0px rgba(51,51,51,.25);--tw-shadow-colored: 0px -2px 8px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-\\[0px_4px_6px_0px_rgba\\(102\\,102\\,102\\,0\\.24\\)\\]{--tw-shadow: 0px 4px 6px 0px rgba(102,102,102,.24);--tw-shadow-colored: 0px 4px 6px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.shadow-intercom{--tw-shadow: 0px 1.6px 25.6px 0px rgba(0, 0, 0, .16), 0px .8px 4.8px 0px rgba(0, 0, 0, .06);--tw-shadow-colored: 0px 1.6px 25.6px 0px var(--tw-shadow-color), 0px .8px 4.8px 0px var(--tw-shadow-color);box-shadow:var(--tw-ring-offset-shadow, 0 0 #0000),var(--tw-ring-shadow, 0 0 #0000),var(--tw-shadow)}.outline-none{outline:2px solid transparent;outline-offset:2px}.outline{outline-style:solid;outline-width:var(--space-05)}.outline-025{outline-width:var(--space-025)}.outline-\\[2px\\]{outline-width:2px}.outline-offset-0{outline-offset:0}.outline-offset-05{outline-offset:var(--space-05)}.outline{outline-color:var(--color-primary-brand-500)}.ring{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(3px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.blur{--tw-blur: blur(8px);filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.filter{filter:var(--tw-blur) var(--tw-brightness) var(--tw-contrast) var(--tw-grayscale) var(--tw-hue-rotate) var(--tw-invert) var(--tw-saturate) var(--tw-sepia) var(--tw-drop-shadow)}.backdrop-blur-sm{--tw-backdrop-blur: blur(4px);backdrop-filter:var(--tw-backdrop-blur) var(--tw-backdrop-brightness) var(--tw-backdrop-contrast) var(--tw-backdrop-grayscale) var(--tw-backdrop-hue-rotate) var(--tw-backdrop-invert) var(--tw-backdrop-opacity) var(--tw-backdrop-saturate) var(--tw-backdrop-sepia)}.transition-opacity{transition-property:opacity;transition-timing-function:cubic-bezier(.4,0,.2,1);transition-duration:.15s}.duration-100{transition-duration:.1s}.duration-300{transition-duration:.3s}.\\@container\\/addToCart{container-type:inline-size;container-name:addToCart}.\\@container\\/configuration{container-type:inline-size;container-name:configuration}.\\@container\\/cta{container-type:inline-size;container-name:cta}.\\@container\\/estimatedArrival{container-type:inline-size;container-name:estimatedArrival}.\\@container\\/inks{container-type:inline-size;container-name:inks}.\\@container\\/instantQuote{container-type:inline-size;container-name:instantQuote}.\\@container\\/modal{container-type:inline-size;container-name:modal}.\\@container\\/pageSizeAndQty{container-type:inline-size;container-name:pageSizeAndQty}.\\@container\\/paperCoatingAndLaminating{container-type:inline-size;container-name:paperCoatingAndLaminating}.\\@container\\/paperOption{container-type:inline-size;container-name:paperOption}.\\@container\\/paperWeight{container-type:inline-size;container-name:paperWeight}.\\@container\\/turnaroundProcess{container-type:inline-size;container-name:turnaroundProcess}.\\@container\\/upgradeOptions{container-type:inline-size;container-name:upgradeOptions}@keyframes shimmer{0%{transform:translate(-200%);opacity:0}30%{opacity:1}to{transform:translate(200%);opacity:0}}.\\[-webkit-background-clip\\:text\\]{-webkit-background-clip:text}.\\[-webkit-text-fill-color\\:transparent\\]{-webkit-text-fill-color:transparent}.\\[background\\:inherit\\]{background:inherit}.\\*\\:flex-grow-0>*{flex-grow:0}.before\\:visible:before{content:var(--tw-content);visibility:visible}.before\\:absolute:before{content:var(--tw-content);position:absolute}.before\\:h-2:before{content:var(--tw-content);height:var(--space-2)}.before\\:w-2:before{content:var(--tw-content);width:var(--space-2)}.before\\:rotate-45:before{content:var(--tw-content);--tw-rotate: 45deg;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.before\\:content-\\[\\"\\"\\]:before{--tw-content: "";content:var(--tw-content)}.before\\:\\[background\\:inherit\\]:before{content:var(--tw-content);background:inherit}.after\\:pointer-events-none:after{content:var(--tw-content);pointer-events:none}.after\\:absolute:after{content:var(--tw-content);position:absolute}.after\\:inset-0:after{content:var(--tw-content);inset:var(--space-0)}.after\\:translate-x-\\[-200\\%\\]:after{content:var(--tw-content);--tw-translate-x: -200%;transform:translate(var(--tw-translate-x),var(--tw-translate-y)) rotate(var(--tw-rotate)) skew(var(--tw-skew-x)) skewY(var(--tw-skew-y)) scaleX(var(--tw-scale-x)) scaleY(var(--tw-scale-y))}.after\\:rounded-full:after{content:var(--tw-content);border-radius:9999px}.after\\:bg-\\[linear-gradient\\(45deg\\,transparent\\,rgba\\(255\\,255\\,255\\,0\\.5\\)\\,transparent\\)\\]:after{content:var(--tw-content);background-image:linear-gradient(45deg,transparent,rgba(255,255,255,.5),transparent)}.after\\:opacity-0:after{content:var(--tw-content);opacity:0}.after\\:content-\\[\\'\\'\\]:after{--tw-content: "";content:var(--tw-content)}.hover\\:border-blue:hover{border-color:var(--color-primary-brand-500)}.hover\\:border-b-blue:hover{border-bottom-color:var(--color-primary-brand-500)}.hover\\:bg-interactions-form-hover:hover{background-color:var(--color-primary-brand-50)}.hover\\:bg-interactions-primary-hover:hover{background-color:var(--color-primary-brand-400)}.hover\\:bg-interactions-secondary-hover:hover{background-color:var(--color-neutral-300)}.hover\\:bg-interactions-transparent-hover:hover{background-color:#f0f6fc3d}.hover\\:text-link-hover:hover{color:#3588cb}.hover\\:after\\:opacity-100:hover:after{content:var(--tw-content);opacity:1}.hover\\:after\\:animate-shimmer:hover:after{content:var(--tw-content);animation:shimmer 2.5s ease-in-out forwards}.focus\\:bg-interactions-primary-hover:focus{background-color:var(--color-primary-brand-400)}.focus\\:bg-interactions-secondary-hover:focus{background-color:var(--color-neutral-300)}.focus\\:bg-interactions-transparent-hover:focus{background-color:#f0f6fc3d}.focus\\:outline:focus{outline-style:solid;outline-width:var(--space-05)}.focus\\:outline-offset-05:focus{outline-offset:var(--space-05)}.focus\\:outline:focus{outline-color:var(--color-primary-brand-500)}.focus\\:outline-reverse:focus{outline-color:var(--color-neutral-white)}.focus-visible\\:outline-none:focus-visible{outline:2px solid transparent;outline-offset:2px}.focus-visible\\:ring-2:focus-visible{--tw-ring-offset-shadow: var(--tw-ring-inset) 0 0 0 var(--tw-ring-offset-width) var(--tw-ring-offset-color);--tw-ring-shadow: var(--tw-ring-inset) 0 0 0 calc(2px + var(--tw-ring-offset-width)) var(--tw-ring-color);box-shadow:var(--tw-ring-offset-shadow),var(--tw-ring-shadow),var(--tw-shadow, 0 0 #0000)}.active\\:border-b-blue:active{border-bottom-color:var(--color-primary-brand-500)}.active\\:bg-interactions-primary-pressed:active{background-color:var(--color-primary-brand-600)}.active\\:bg-interactions-secondary-pressed:active{background-color:var(--color-neutral-100)}.active\\:bg-interactions-transparent-pressed:active{background-color:#f0f6fc29}.active\\:text-link-active:active{color:#006cbb}.group\\/radio:hover .group-hover\\/radio\\:visible,.group:hover .group-hover\\:visible{visibility:visible}.has-\\[\\:focus\\]\\:border-blue:has(:focus){border-color:var(--color-primary-brand-500)}.has-\\[\\:focus\\]\\:outline:has(:focus){outline-style:solid;outline-width:var(--space-05)}.has-\\[\\:focus\\]\\:outline-025:has(:focus){outline-width:var(--space-025)}.has-\\[\\:focus\\]\\:outline-offset-0:has(:focus){outline-offset:0}.has-\\[\\:focus\\]\\:outline:has(:focus){outline-color:var(--color-primary-brand-500)}@container paperOption (min-width: 197px){.\\@\\[197px\\]\\/paperOption\\:flex-row{flex-direction:row}.\\@\\[197px\\]\\/paperOption\\:items-center{align-items:center}.\\@\\[197px\\]\\/paperOption\\:justify-between{justify-content:space-between}.\\@\\[197px\\]\\/paperOption\\:gap-4{gap:var(--space-4)}}@container paperWeight (min-width: 278px){.\\@\\[278px\\]\\/paperWeight\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container estimatedArrival (min-width: 375px){.\\@\\[375px\\]\\/estimatedArrival\\:block{display:block}.\\@\\[375px\\]\\/estimatedArrival\\:flex-row{flex-direction:row}.\\@\\[375px\\]\\/estimatedArrival\\:justify-center{justify-content:center}.\\@\\[375px\\]\\/estimatedArrival\\:gap-4{gap:var(--space-4)}}@container foldSizeAndQty (min-width: 400px){.\\@\\[400px\\]\\/foldSizeAndQty\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container modal (min-width: 415px){.\\@\\[415px\\]\\/modal\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container upgradeOptions (min-width: 420px){.\\@\\[420px\\]\\/upgradeOptions\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container inks (min-width: 460px){.\\@\\[460px\\]\\/inks\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container configuration (min-width: 464px){.\\@\\[464px\\]\\/configuration\\:flex-row{flex-direction:row}.\\@\\[464px\\]\\/configuration\\:items-center{align-items:center}.\\@\\[464px\\]\\/configuration\\:justify-between{justify-content:space-between}}@container paperWeight (min-width: 478px){.\\@\\[478px\\]\\/paperWeight\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container modal (min-width: 501px){.\\@\\[501px\\]\\/modal\\:max-h-\\[calc\\(100vh_-_40px\\)\\]{max-height:calc(100vh - 40px)}.\\@\\[501px\\]\\/modal\\:w-\\[calc\\(100vw_-_40px\\)\\]{width:calc(100vw - 40px)}}@container addToCart (min-width: 515px){.\\@\\[515px\\]\\/addToCart\\:hidden{display:none}}@container pageSizeAndQty (min-width: 561px){.\\@\\[561px\\]\\/pageSizeAndQty\\:grid-cols-\\[198px_1fr\\]{grid-template-columns:198px 1fr}}@container paperCoatingAndLaminating (min-width: 561px){.\\@\\[561px\\]\\/paperCoatingAndLaminating\\:grid-cols-\\[198px_1fr\\]{grid-template-columns:198px 1fr}}@container modal (min-width: 570px){.\\@\\[570px\\]\\/modal\\:max-w-\\[530px\\]{max-width:530px}}@container turnaroundProcess (min-width: 575px){.\\@\\[575px\\]\\/turnaroundProcess\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}.\\@\\[575px\\]\\/turnaroundProcess\\:gap-5{gap:var(--space-5)}}@container foldSizeAndQty (min-width: 580px){.\\@\\[580px\\]\\/foldSizeAndQty\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}}@container cta (min-width: 600px){.\\@\\[600px\\]\\/cta\\:basis-1\\/2{flex-basis:50%}.\\@\\[600px\\]\\/cta\\:flex-row{flex-direction:row}.\\@\\[600px\\]\\/cta\\:items-center{align-items:center}.\\@\\[600px\\]\\/cta\\:px-none{padding-left:0;padding-right:0}}@container instantQuote (min-width: 600px){.\\@\\[600px\\]\\/instantQuote\\:basis-1\\/2{flex-basis:50%}.\\@\\[600px\\]\\/instantQuote\\:flex-row{flex-direction:row}.\\@\\[600px\\]\\/instantQuote\\:items-start{align-items:flex-start}.\\@\\[600px\\]\\/instantQuote\\:gap-5{gap:var(--space-5)}.\\@\\[600px\\]\\/instantQuote\\:pt-none{padding-top:0}}@container upgradeOptions (min-width: 621px){.\\@\\[621px\\]\\/upgradeOptions\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container modal (min-width: 650px){.\\@\\[650px\\]\\/modal\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.\\@\\[650px\\]\\/modal\\:grid-cols-3{grid-template-columns:repeat(3,minmax(0,1fr))}}@container modal (min-width: 651px){.\\@\\[651px\\]\\/modal\\:col-span-3{grid-column:span 3 / span 3}.\\@\\[651px\\]\\/modal\\:col-span-5{grid-column:span 5 / span 5}.\\@\\[651px\\]\\/modal\\:grid-cols-8{grid-template-columns:repeat(8,minmax(0,1fr))}}@container addToCart (min-width: 660px){.\\@\\[660px\\]\\/addToCart\\:flex-row-reverse{flex-direction:row-reverse}}@container paperWeight (min-width: 678px){.\\@\\[678px\\]\\/paperWeight\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container modal (min-width: 840px){.\\@\\[840px\\]\\/modal\\:max-w-\\[800px\\]{max-width:800px}.\\@\\[840px\\]\\/modal\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container upgradeOptions (min-width: 840px){.\\@\\[840px\\]\\/upgradeOptions\\:grid-cols-4{grid-template-columns:repeat(4,minmax(0,1fr))}}@container paperWeight (min-width: 878px){.\\@\\[878px\\]\\/paperWeight\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@container upgradeOptions (min-width: 1050px){.\\@\\[1050px\\]\\/upgradeOptions\\:grid-cols-5{grid-template-columns:repeat(5,minmax(0,1fr))}}@media(min-width:768px){.md\\:p-xxxl{padding:var(--space-10)}}@media(min-width:1024px){.lg\\:block{display:block}.lg\\:flex{display:flex}.lg\\:hidden{display:none}.lg\\:grid-cols-2{grid-template-columns:repeat(2,minmax(0,1fr))}.lg\\:rounded-md{border-radius:var(--space-2)}.lg\\:border-sm{border-width:var(--border-width-1)}.lg\\:border-light{border-color:var(--color-neutral-400)}.lg\\:p-lg{padding:var(--space-5)}.lg\\:p-xxxl{padding:var(--space-10)}}@container modal (min-width: 650px){.\\@\\[650px\\]\\/modal\\:\\[\\&\\>\\*\\:nth-child\\(odd\\)\\:last-child\\]\\:col-span-2>*:nth-child(odd):last-child{grid-column:span 2 / span 2}}.\\[\\&\\>div\\>p\\~p\\]\\:mt-2>div>p~p{margin-top:var(--space-2)}.\\[\\&\\[data-popper-placement\\^\\=\\"bottom\\"\\]\\>\\*\\]\\:top-\\[-4px\\][data-popper-placement^=bottom]>*{top:-4px}.\\[\\&\\[data-popper-placement\\^\\=\\"left\\"\\]\\>\\*\\]\\:right-\\[-4px\\][data-popper-placement^=left]>*{right:-4px}.\\[\\&\\[data-popper-placement\\^\\=\\"right\\"\\]\\>\\*\\]\\:left-\\[-4px\\][data-popper-placement^=right]>*{left:-4px}.\\[\\&\\[data-popper-placement\\^\\=\\"top\\"\\]\\>\\*\\]\\:bottom-\\[-4px\\][data-popper-placement^=top]>*{bottom:-4px}.\\[\\&_a\\]\\:underline a{text-decoration-line:underline}.\\[\\&_dl\\>dd\\>p\\~p\\]\\:mt-2 dl>dd>p~p{margin-top:var(--space-2)}.\\[\\&_dl\\>dd\\~dt\\]\\:mt-5 dl>dd~dt{margin-top:var(--space-5)}.\\[\\&_dl\\>dt\\]\\:pb-xs dl>dt{padding-bottom:var(--space-2)}.\\[\\&_dl\\>dt\\]\\:font-sans dl>dt{font-family:urw-din,Helvetica Neue,Helvetica,Arial,sans-serif}.\\[\\&_dl\\>dt\\]\\:text-title-tight-md dl>dt{font-size:16px;line-height:20px;letter-spacing:.04em;font-weight:700}.\\[\\&_ul\\]\\:ml-4 ul{margin-left:var(--space-4)}.\\[\\&_ul\\]\\:list-outside ul{list-style-position:outside}.\\[\\&_ul\\]\\:list-disc ul{list-style-type:disc}.\\[\\&_ul_ul\\]\\:ml-4 ul ul{margin-left:var(--space-4)}.\\[\\&_ul_ul\\]\\:list-outside ul ul{list-style-position:outside}.\\[\\&_ul_ul\\]\\:list-\\[circle\\] ul ul{list-style-type:circle}`;function M9(){return r.jsx("style",{children:P9})}const{StrictMode:O9,useEffect:R9,useRef:L9}=await Q("react");function _9({fileUpload:e=!1,productId:t}){const n=L9();return t&&_p(t),R9(()=>{n.current?.dispatchEvent?.(new CustomEvent("SaddleStitchBookletPageMounted",{bubbles:!0,composed:!0}))},[]),r.jsx(O9,{children:r.jsxs(up,{store:Kt,children:[r.jsx(M9,{}),r.jsx(E9,{children:r.jsx(j9,{ref:n,fileUpload:e})})]})})}Gd();function Gd(){if(!window.Intercom){setTimeout(()=>{Gd()},100);return}window.Intercom?.("update",{alignment:"right",vertical_padding:31})}const T9=await Q("react");function N9(e){const t=e.attachShadow({mode:"open"});Vu.createRoot(t).render(r.jsxs(T9.StrictMode,{children:[r.jsx("style",{children:`
        :host {
            all: initial;
            font-size: 16px;
            line-height: 1.5;
        }
    `}),r.jsx(_9,{...e.hasAttribute("product-id")?{productId:e.getAttribute("product-id")}:{},...e.hasAttribute("file-upload")?{fileUpload:!0}:{}})]})),e.dispatchEvent(new CustomEvent("SaddleStitchBookletHostMounted",{bubbles:!0,composed:!0}))}class A9 extends HTMLElement{constructor(){super()}connectedCallback(){N9(this)}}window.customElements.define("saddle-stitch-booklet-page",A9);
