1const __vite__mapDeps=(i,m=__vite__mapDeps,d=(m.f||(m.f=["assets/vendor-Cd7MAbpv.js","assets/vendor-BaBV-Hd0.css","assets/index-DkY66cCy.js","assets/index-DjLL9wB6.js","assets/newrelic-C9OPJfMc.js","assets/index-B2GJ6C8m.css","assets/index-DzlYFG54.js","assets/index-O6BXZARk.css","assets/index-Fb4WjGIe.js","assets/scrolling-mrdPwS0E.js","assets/index-Cj-K7cud.js","assets/index-Bp7OCuqf.js","assets/index-CsPOz2rE.js","assets/index-BHZx0XZ9.css","assets/index-d5kOKi1M.css","assets/index-DTTxlqvP.css","assets/index-CiAotfca.js","assets/index-Dr1PnC_5.js","assets/index-DDzOBhTs.css","assets/index-BRKRQg4Q.js","assets/index-B3zv26-1.css","assets/index-DxuxgVvp.css","assets/index-CX3UEAMf.js","assets/useOpenFavourites-Cd3qkiRP.js","assets/useOpenFavourites-CqE01Qda.css","assets/AdditionalPrintAreasConstants-DOc96pY4.js","assets/client-DXtAUP3i.js","assets/useFavouriteProductsFlag-njNzS3Kq.js","assets/index-CNs8rq51.css","assets/index-CVYGtvMV.js","assets/StringConstants-D4jkjUMi.js","assets/screenSize-_OcYjNvw.js","assets/NamesAndNumbersActions-C9Uc5PBc.js","assets/useDecorationMethodSwap-CUp6lRML.js","assets/index-sM4XAsNK.css","assets/index-tVv3NkOR.js","assets/ColorSwatch-BNVakeu1.js","assets/ColorSwatch-DeKmwXpa.css","assets/index-BZKNdXBk.css","assets/index-D3rS1uzn.js","assets/index-4-pIyeAK.css","assets/index-eQTwTAEj.css","assets/newrelic-DSP3T3RK.js"])))=>i.map(i=>d[i]); 2var Gd=Object.defineProperty,Bd=Object.defineProperties;var zd=Object.getOwnPropertyDescriptors;var po=Object.getOwnPropertySymbols;var i2=Object.prototype.hasOwnProperty,c2=Object.prototype.propertyIsEnumerable;var Mr=(e,t,n)=>t in e?Gd(e,t,{enumerable:!0,configurable:!0,writable:!0,value:n}):e[t]=n,f=(e,t)=>{for(var n in t||(t={}))i2.call(t,n)&&Mr(e,n,t[n]);if(po)for(var n of po(t))c2.call(t,n)&&Mr(e,n,t[n]);return e},R=(e,t)=>Bd(e,zd(t));var go=e=>typeof e=="symbol"?e:e+"",ct=(e,t)=>{var n={};for(var s in e)i2.call(e,s)&&t.indexOf(s)<0&&(n[s]=e[s]);if(e!=null&&po)for(var s of po(e))t.indexOf(s)<0&&c2.call(e,s)&&(n[s]=e[s]);return n};var Vt=(e,t,n)=>Mr(e,typeof t!="symbol"?t+"":t,n);var P=(e,t,n)=>new Promise((s,o)=>{var r=c=>{try{i(n.next(c))}catch(l){o(l)}},a=c=>{try{i(n.throw(c))}catch(l){o(l)}},i=c=>c.done?s(c.value):Promise.resolve(c.value).then(r,a);i((n=n.apply(e,t)).next())});import{_ as Gs}from"./newrelic-C9OPJfMc.js";import{R as Ct,t as cn,i as Jc,l as Nn,c as Wd,m as e1,d as gt,a as dt,S as Nt,b as m,M as b,L as G,e as oa,g as Yd,h as ba,j as jd,k as Fn,n as Qd,p as h,v as ye,q as qd,s as Xd,u as Ma,x as Ua,y as xa,z as Pe,A as $d,B as ra,C as Fa,E as sr,F as or,G as l2,H as _s,P as N,O as Mn,I as S,J as un,K as C,N as aa,Q as Va,T as Zd,U as d2,V as Kd,W as it,X as nt,Y as Jd,Z as Bt,_ as t1,$ as n1,a0 as Go,a1 as s1,a2 as rn,a3 as _n,a4 as rr,a5 as o1,a6 as eu,a7 as tu,a8 as ka,a9 as nu,aa as su,ab as r1,ac as ou,ad as ru,ae as ps,af as au,ag as Bs,ah as iu,ai as a1,aj as u2,ak as Qn,al as _2,am as As,an as cu,ao as lu,ap as du,aq as Ur,ar as uu,as as _u,at as pu,au as gu,av as Eu,aw as hu,ax as fu,ay as mu,az as Tu,aA as Su,aB as i1,aC as Cu,aD as Iu,aE as Au,aF as yu,aG as Ou,aH as Ru,aI as Du,aJ as vu,aK as Pu,aL as Lu,aM as Nu,aN as wu,aO as bu,aP as c1,aQ as Mu,aR as wn,aS as Uu,aT as xu,aU as vn,aV as Fu,aW as p2,aX as Vu,aY as Ha,aZ as g2,a_ as ku,a$ as Hu,b0 as Gu,b1 as Bu,b2 as zu,b3 as Wu,b4 as Yu}from"./vendor-Cd7MAbpv.js";(function(){const t=document.createElement("link").relList;if(t&&t.supports&&t.supports("modulepreload"))return;for(const o of document.querySelectorAll('link[rel="modulepreload"]'))s(o);new MutationObserver(o=>{for(const r of o)if(r.type==="childList")for(const a of r.addedNodes)a.tagName==="LINK"&&a.rel==="modulepreload"&&s(a)}).observe(document,{childList:!0,subtree:!0});function n(o){const r={};return o.integrity&&(r.integrity=o.integrity),o.referrerPolicy&&(r.referrerPolicy=o.referrerPolicy),o.crossOrigin==="use-credentials"?r.credentials="include":o.crossOrigin==="anonymous"?r.credentials="omit":r.credentials="same-origin",r}function s(o){if(o.ep)return;o.ep=!0;const r=n(o);fetch(o.href,r)}})();window.__ENV__="production";const l1=!1,Ga=!1,d1=e=>e.welcome.stage,Ey=e=>d1(e)!==null,ju=1e-4,qn=.5,hy=100,xr=9,fy=55,my=513;function ln({red:e,green:t,blue:n}){return e>253&&t>253&&n>253}function u1({red:e,green:t,blue:n}){return e===0&&t===0&&n===0}function We({red:e,green:t,blue:n}){return[e,t,n].some(s=>typeof s!="number"||isNaN(s))}function _1({red:e,green:t,blue:n}){return e===255&&t===0&&n===255}function Qu(e){return e&&e.name.replace(" ","_").toLowerCase()}function Xn(e){return typeof e=="number"}function Ba({r:e,g:t,b:n,red:s,green:o,blue:r}){const a={red:Xn(s)?s:Xn(e)?e:null,green:Xn(o)?o:Xn(t)?t:null,blue:Xn(r)?r:Xn(n)?n:null};return R(f({},a),{r:a.red,g:a.green,b:a.blue,R:a.red,G:a.green,B:a.blue})}function Ns(e){return Ba(cn(e).toRgb())}function p1({red:e,green:t,blue:n}){return We({red:e,green:t,blue:n})?"transparent":`rgb(${e}, ${t}, ${n})`}function g1(e){const t=cn(e).toHex();return We(e)?`${t}00`:t}class Ke extends Ct({name:"None",id:"",alternative_id:"",red:null,green:null,blue:null,secondary:null,status:"",simple_names:[],subtle_inks:[],cssString:"transparent",hexString:"00000000",r:null,g
2:null,b:null,R:null,G:null,B:null}){constructor(t){const a=t.toJS?t.toJS():t,{hex:n,secondary:s}=a,o=ct(a,["hex","secondary"]),r=n?Ns(n):Ba(o);super(R(f(f({},o),r),{secondary:s&&typeof s=="object"?new qu(s):null,cssString:p1(r),hexString:g1(r)}),"Color")}}class qu extends Ct({red:null,green:null,blue:null,cssString:"",hexString:"",r:null,g:null,b:null,R:null,G:null,B:null}){constructor(t){const r=t.toJS?t.toJS():t,{hex:n}=r,s=ct(r,["hex"]),o=n?Ns(n):Ba(s);super(R(f(f({},s),o),{cssString:p1(o),hexString:g1(o)}),"SecondaryColor")}}const E2={};function ar(e){return E2[e.id]||function(){const t=e.rgbs[0];let n=e.trim_rgb;!Number.isInteger(n==null?void 0:n.red)&&!Number.isInteger(n==null?void 0:n.green)&&!Number.isInteger(n==null?void 0:n.blue)&&(n=null);const s=new Ke(R(f({},t),{name:e.name,id:e.id,status:e.status,alternative_id:e.alternative_id,secondary:n,simple_names:e.simple_names,subtle_inks:e.subtle_inks}));return E2[e.id]=s,s}()}const{map:B,list:zs}=E1(Jc.Palette.swatches(),e=>!We(e)),{list:Xu}=E1(Jc.Palette.swatches("personalization"),e=>!We(e)),Ty=B.Gray,ys=B["Deep Brown"],Eo=B.Brown,$u=.3;function ss(e){const t=new Ke(e),n=["red","green","blue"];return zs.find(o=>n.every(r=>o[r]===t[r]))||B.None}function Zu(e){return ss(Ns(e))}function E1(e,t){return e.reduce((n,s)=>{const{rgb:o}=s,r=new Ke(f(f({},s),o));return t(r)&&n.list.push(r),n.map[r.name]=r,n},{list:[],map:{}})}const Ku=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 3<svg width="84px" height="27px" viewBox="0 0 84 27" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 4 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 5 <title>CurveIcon</title> 6 <defs></defs> 7 <g id="Page-1" fill="#4A4A4A"> 8 <path d="M5.691,9.73047281 C10.2788,7.07256053 13.6402,8.17555175 13.6066,8.15436754 C13.2958,9.36469211 13.0144,10.5750167 12.761,11.7839289 C12.7764,11.7796921 10.0716,11.2712711 7.6272,12.6962623 C4.2532,14.6833412 4.0026,17.6731395 5.264,19.5345254 C6.58,21.4834728 9.3072,22.4381746 12.0904,20.8140518 C14.3724,19.4907447 15.4042,16.8624904 15.4168,16.8511921 C16.4906,17.3850342 17.5392,17.9457096 18.5598,18.5346307 C18.5458,18.5671132 17.3362,21.87185 13.608,24.0227535 C9.1868,26.5973412 4.3386,26.1891921 1.4084,22.5412711 C-1.456,19.0119816 0.0868,13.0394465 5.691,9.73047281" id="Fill-1"></path> 9 <path d="M15.2495,5.30170175 C16.8231,4.6619386 18.4149,4.07866667 20.0221,3.55329825 C21.0539,6.74505263 22.0661,9.94245614 23.0573,13.1469211 C23.5627,14.741386 24.9459,15.2116754 26.6903,14.7399737 C28.4347,14.2725088 29.4161,13.1652807 29.0801,11.5227982 C28.3871,8.23359649 27.6731,4.94863158 26.9381,1.66931579 C28.5831,1.30777193 30.2379,1.00554386 31.9011,0.761219298 C32.4233,4.08572807 32.9245,7.4130614 33.4033,10.7432193 C33.8597,
914.329 31.5077,17.1436754 27.5891,18.1901754 C23.6271,19.2578596 20.2433,17.9924561 18.9035,14.6566491 C17.7051,11.5298596 16.4871,8.41154386 15.2495,5.30170175" id="Fill-3"></path> 10 <path d="M42.5992,7.24528246 C44.0636,7.26222982 45.0002,6.62387895 45.0394,5.34717719 C45.073,4.15097544 44.5382,3.37280877 42.098,3.35444912 C41.5534,3.35303684 41.0102,3.35727368 40.4684,3.36998421 C40.5174,4.66504561 40.5636,5.9615193 40.607,7.2565807 C41.2706,7.24245789 41.9342,7.23822105 42.5992,7.24528246 M35.2968,0.306747368 C37.6782,0.0864315789 40.0722,-0.0152526316 42.469,0.00169473684 C44.5788,0.0242912281 45.5896,0.205063158 46.4716,0.525650877 C48.7886,1.37019474 50.0794,3.19203684 49.8582,5.49687895 C49.6986,7.19161579 48.5744,8.90612456 46.7306,9.56989649 C46.7292,9.58543158 46.7278,9.59955439 46.7278,9.61508947 C46.7264,9.61508947 46.9686,9.92155439 47.3508,10.629107 C48.3854,12.5879404 49.3178,14.5721947 50.148,16.5719842 C48.6556,16.3559053 47.1604,16.1991421 45.6638,16.1016947 C44.786,14.2459579 43.8186,12.4085807 42.7616,10.5994491 C42.0784,10.5895632 41.3952,10.5923877 40.7134,10.6065105 C40.7652,12.400107 40.8128,14.1965281 40.8534,15.9901246 C39.5122,16.0155456 38.1738,16.0875719 36.841,16.2062035 C36.379,10.9016772 35.8638,5.6028 35.2968,0.306747368" id="Fill-5"></path> 11 <path d="M51.18316,0.546411404 C53.00876,0.772376316 54.83156,1.06895526 56.64596,1.43756053 C57.36416,4.67168333 57.92416,7.9086307 58.32456,11.1371044 C58.46316,12.2090254 58.41976,13.8147886 58.41976,13.8133763 C58.43516,13.8176132 58.45056,13.8232623 58.46596,13.8274991 C58.46596,13.8274991 59.14216,12.3926219 59.73156,11.5184202 C61.51936,8.88310439 63.42476,6.30992895 65.44496,3.80454298 C67.19496,4.3962886 68.93236,5.05582368 70.65016,5.78597281 C66.53836,9.7897886 62.81436,14.0831219 59.49776,18.606657 C58.13136,18.178736 56.75516,17.8044816 55.37336,17.4810693 C54.52916,11.8277096 53.13336,6.15175351 51.18316,0.546411404" id="Fill-8"></path> 12 <path d="M72.0986,6.41952193 C76.1908,8.26254825 80.1766,10.5066623 84,13.1575132 C83.4344,14.1079781 82.866,15.0556184 82.2962,16.0018465 C80.0646,14.4511623 77.7756,13.0445307 75.4418,11.7819518 C75.0358,12.6533289 74.6284,13.5218816 74.2196,14.3918465 C76.0116,15.3620833 77.7756,16.4227061 79.5074,17.5708904 C78.9544,18.5270044 78.3986,19.4817061 77.8414,20.4364079 C76.1894,19.3376535 74.5066,18.323636 72.7958,17.3957675 C72.3674,18.2968026 71.9362,19.1964254 71.505,20.094636 C73.6596,21.2668289 75.7708,22.5788377 77.826,24.0320746 C77.2408,24.9670044 76.6528,25.9005219 76.0634,26.8326272 C72.9204,24.6068728 69.6402,22.7299518 66.269,21.1962149 C68.2612,16.2941886 70.2044,11.3681535 72.0986,6.41952193" id="Fill-10"></path> 13 </g> 14</svg> 15`,Ju=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 16<svg width="86px" height="33px" viewBox="0 0 86 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 17 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 18 <title>ArchIcon</title> 19 <g id="Group" fill="#4A4A4A"> 20 <path d="M9.63114698,11.8440667 C9.63114698,11.8424363 9.15321085,14.1822264 8.76825206,15.5926226 C8.36208791,17.0519343 7.95755495,18.514507 7.55628435,19.9819712 C8.9395261,19.2091066 10.342342,18.4867881 11.7631009,17.8133851 C11.3601992,16.7617024 10.9589286,15.7132808 10.5592891,14.6713812 C10.1694368,13.6588309 9.69150068,11.813087 9.69150068,11.813087 C9.67192651,11.8228701 9.65072115,11.8326531 9.63114698,11.8440667 M13.0060611,20.9896299 C10.7452438,22.0103328 8.52357486,23.1533244 6.35247253,24.4202351 C5.93489011,26.003466 5.51730769,27.593219 5.10298764,29.1878634 C3.36741072,30.2476986 1.66445742,31.3890597 0.000652472527,32.610316 C2.24678915,24.5735036 4.56306662,16.6818072 6.9396978,8.93685712 C8.73725961,7.91126267 10.5690762,6.96719402 12.4286229,6.10954271 C14.8851821,11.3630646 17.3906765,16.7649635 19.9304259,22.3119783 C18.0480426,22.9348352 16.1868647,23.6375876 14.3485233,24.4218657 C13.8999485,23.2723521 13.4530048,22.1293605 13.0060611,20.9896299" id="Fill-1"></path> 21 <path d="M30.487105,9.20719663 C32.2960852,8.90392069 33.4330186,7.94354688 33.4330186,6.41412306 C33.4346497,4.97926915 32.7789149,4.15585867 29.937397,4.63849135 C29.3028675,4.75099694 28.6699691,4.87165512 28.0387019,5.00046586 L28.0387019,9.66537157 C28.8526614,9.49742844 29.6682521,9.34579048 30.487105,9.20719663 L30.487105,9.20719663 L30.487105,9.20719663 Z M22.4551683,2.36229129 C25.0813702,1.5992099 27.7418269,0.989396988 30.4218578,0.53448308 C32.780546,0.143159287 33.9207418,0.162725477 34.9255494,0.369800984 C37.5615385,0.929067903 39.2269746,2.84329345 39.2269746,5.62495342 C39.2269746,7.66798971 38.0508929,9.916471 35.7395089,11.0920729 L35.7395089,11.1475104 C35.7395089,11.1475104 36.064114,11.4638305 36.6187157,12.2220203 C38.1275584,14.3319078 39.6396634,16.4923413 41.1517685,18.7000597 C39.0296016,18.7359309 36.909066,18.8680028 34.7966861,19.0946444 C33.4216003,17.08911 32.0481457,15.1227079 30.6812156,13.1954383 C29.7971154,13.3421847 28.9162775,13.5052363 28.0387019,13.6862235 L28.0387019,20.1463271 C26.1644746,20.5311288 24.3016655,20.9909343 22.4551683,21.5273741 L22.4551683,2.36229129 L22.4551683,2.36229129 Z" id="Fill-3"></path> 22 <path d="M54.2374314,0.184737441 C59.9530907,1.17935208 62.8027644,4.9164943 62.8
2207658,4.87573141 C61.9545502,5.80186438 61.09818,6.74430251 60.2385474,7.7030458 C60.2385474,7.70630684 57.6939045,5.06161021 54.4967892,4.51864844 C50.0681318,3.78654685 47.9378091,6.43613502 47.9410714,9.17214055 C47.9394403,12.0369569 50.2296189,15.0371059 54.4967892,15.7480108 C57.9842548,16.3447795 60.5876202,14.7175248 60.5892514,14.7093722 C61.5434925,16.1034633 62.49284,17.5187509 63.4389251,18.9536049 C63.4340316,18.9943678 60.2776958,21.0455566 54.2374314,19.993874 C46.9900927,18.8003364 42.0280392,14.7925285 42.0378262,9.06615701 C42.0296703,3.52240329 47.2837053,-0.979450842 54.2374314,0.184737441" id="Fill-5"></path> 23 <path d="M66.7653932,3.79584079 C68.5825292,4.45456917 70.3784599,5.18667077 72.1499227,5.99703712 L72.1499227,13.6620919 C74.7810182,14.8654126 77.3566535,16.2366764 79.862148,17.7758833 L79.862148,10.1108285 C81.5487895,11.146206 83.2028074,12.2565873 84.8209392,13.4452333 L84.8209392,32.610316 C83.2028074,31.42167 81.5487895,30.3112887 79.862148,29.2759113 L79.862148,21.770647 C77.3566535,20.2314401 74.7810182,18.8601763 72.1499227,17.6584862 L72.1499227,25.1621199 C70.3784599,24.3533841 68.5825292,23.6196519 66.7653932,22.9609235 L66.7653932,3.79584079 L66.7653932,3.79584079 Z" id="Fill-8"></path> 24 </g> 25</svg> 26`,e4='<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 11.4 20.1"><path d="M10 20.1c-.4 0-.7-.1-1-.4L.4 11c-.3-.2-.4-.6-.4-1s.1-.7.4-1L9 .4c.5-.5 1.4-.5 2 0s.5 1.4 0 2L3.4 10l7.7 7.7c.5.5.5 1.4 0 2-.3.3-.7.4-1.1.4z"/></svg>',t4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 27<svg width="87px" height="27px" viewBox="0 0 87 27" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 28 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 29 <title>BridgeIcon</title> 30 <g id="Page-1" fill="#4A4A4A"> 31 <path d="M7.68405,18.8922451 C8.91275833,18.4865882 9.538675,17.1954314 9.557175,15.9311078 C9.57875833,14.6683627 9.00834167,13.7528725 7.77038333,14.0401471 C6.91321667,14.2469216 6.05759167,14.4600098 5.20350833,14.6809902 C5.18963333,16.3699118 5.17575833,18.0572549 5.16188333,19.7461765 C5.99900833,19.4510098 6.84075833,19.1668922 7.68405,18.8922451 L7.68405,18.8922451 L7.68405,18.8922451 Z M7.438925,9.52109804 C8.511925,9.34273529 8.992925,8.24730392 9.00834167,7.15818627 C9.02375833,6.10221569 8.57050833,5.24670588 7.4158,5.34456863 C6.70355,5.40928431 5.99284167,5.47557843 5.28213333,5.54502941 C5.2698,6.99245098 5.25746667,8.44145098 5.24513333,9.89045098 C5.97434167,9.76417647 6.70663333,9.64105882 7.438925,9.52109804 L7.438925,9.52109804 L7.438925,9.52109804 Z M0.999383333,0.445117647 C3.16696667,0.427754902 5.33300833,0.411970588 7.50059167,0.397764706 C11.0387167,0.418284314 13.4714667,2.32029412 13.395925,5.95068627 C13.3604667,7.74220588 12.609675,9.64421569 11.2699667,10.8422451 L11.2699667,10.9038039 C13.2648833,11.3315588 13.9586333,13.3424804 13.91855,15.1987157 C13.821425,19.744598 10.6055083,22.4973824 7.21384167,23.9716373 C5.11871667,24.8492451 3.045175,25.8026176 0.999383333,26.8333333 L0.999383333,0.445117647 L0.999383333,0.445117647 Z" id="Fill-1"></path> 32 <path d="M22.3126167,8.79770294 C23.7032,8.6398598 24.5927417,7.76856569 24.6266583,6.32114412 C24.6590333,4.94948725 24.1826583,4.15553627 22.0027417,4.26444804 C21.515575,4.29128137 21.0284083,4.31811471 20.5412417,4.34652647 C20.5042417,5.90128137 20.4657,7.45761471 20.4287,9.01236961 C21.0561583,8.93818333 21.6836167,8.86715392 22.3126167,8.79770294 M16.3109083,0.34362451 C18.3644083,0.33257549 20.4179083,0.323104902 22.4714083,0.315212745 C24.2767,0.30889902 25.1400333,0.436751961 25.8985333,0.730340196 C27.8842,1.50219314 29.1113667,3.24320294 29.0574083,5.76869314 C29.0188667,7.61861471 28.0769083,9.6910951 26.28395,10.7975755 C26.28395,10.8149382 26.28395,10.8307225 26.2824083,10.8480853 C26.2824083,10.8480853 26.52445,11.1448304 26.9329917,11.8393402 C28.0429917,13.7666049 29.1607,15.6354676 30.2892,17.466448 C28.6488667,17.7063696 27.0147,17.9873304 25.3851583,18.3124873 C24.3722833,16.500448 23.3671167,14.6363206 22.366575,12.7011637 C21.6867,12.8084971 21.0083667,12.9189873 20.3300333,13.0357912 C20.2776167,15.19035 20.2252,17.3449088 20.1727833,19.4994676 C18.7251583,19.8719775 17.2837,20.2776343 15.8514917,20.7180167 C16.0041167,13.9260265 16.1582833,7.13561471 16.3109083,0.34362451" id="Fill-4"></path> 33 <path d="M32.3585792,0.285064706 C33.8015792,0.281907843 35.2445792,0.27875098 36.6891208,0.277172549 C36.6212875,5.76695686 36.5534542,11.2551627 36.4856208,16.7449471 C35.0056208,16.861751 33.5287042,17.0132804 32.0533292,17.1979569 C32.1550792,11.5598 32.2568292,5.92322157 32.3585792,0.285064706" id="Fill-6"></path> 34 <path d="M45.1673625,13.0686225 C48.2306542,13.1364951 50.0791125,11.6196225 50.0405708,8.45644608 C50.0004875,5.3232598 48.0672375,3.68011275 45.1319042,3.67064216 C44.5352792,3.66748529 43.9371125,3.66432843 43.3404875,3.66432843 C43.3420292,6.79277941 43.3451125,9.92123039 43.3466542,13.0496814 C43.9540708,13.0512598 44.5599458,13.0575735 45.1673625,13.0686225 M39.0084042,0.273857843 C41.1019875,0.272279412 43.1971125,0.272279412 45.2922375,0.272279412 C50.8514875,0.240710784 54.4697792,3.32654412 54.5715292,8.6837402 C54.6748208,14.0661912 51.0919875,16.6595539 45.3585292,16.4701422 C43.2048208,16.4164755 41.0511125,16.4354167 38.8989458,16.5253873 C38.9344042,11.1082108 38.9714042,5.69103431 39.0084042,0.273857843" id="Fill-8"></path> 35 <path d="M65.3604208,0.000789215686 C69.8867542,-0.052877451 72.2239208,2.70937745 72.2239208,2.73621078 C71.5594625,3.96580882 70.8950042,5.15752451 70.2320875,6.31609314 C70.2320875,6.30346569 68.3867125,4.33042647 65.8845875,4.21835784 C62.1707125,4.05420098 60.7076708,6.37607353 60.7677958,8.98522059 C60.8417958,12.3330735 63.2437125,14.6754657 66.0048375,15.2358088 C68.0937958,15.6509363 69.5645458,14.5586618 69.5645458,14.5460343 C69.5522125,14.0409363 69.5414208,13.5342598 69.5290875,13.0291618 C68.6965875,12.8760539 67.8625458,12.7324167 67.0285042,12.5950931 C66.9961292,11.2707892 66.9637542,9.94490686 66.9313792,8.61902451 C69.0450042,8.85736765 71.1540042,9.12727941 73.2537542,9.4287598 C73.3385458,13.3606324 73.4233375,17.2909265 73.5065875,21.2212206 C72.3164208,20.8329265 71.1200875,20.4683088 69.9191292,20.1289461 C69.9145042,19.9442696 69.8775042,18.7430833 69.8605458,18.738348 C69.7665042,18.8330539 68.2017125,19.9600539 65.2355458,19.2371324 C60.6660458,18.0848775 56.3462958,14.277701 56.2522542,8.76581863 C56.1674625,3.87268137 59.9769208,0.0812892157 65.3604208,0.000789215686" id="Fill-10"></path> 36 <path d="M75.7059292,0.366353922 C79.3982208,0.388451961 83.0905125,0.412128431 86.7812625,0.442118627 C86.7812625,2.27625588 86.7828042,4.10881471 86.7843458,5.94453039 C84.5612625,5.70776569 82.3320125,5.48994216 80.0965958,5.28948137 C80.1150958,6.70375588 80.1335958,8.11803039 80.1520958,9.53388333 C81.9265542,9.82115784 83.6948458,10.
36128952 85.4569708,10.4588441 C85.4631375,12.2503637 85.4693042,14.0403049 85.4754708,15.8302461 C83.7333875,15.3314618 81.9789708,14.8642461 80.2153042,14.4301775 C80.2353458,15.8996971 80.2538458,17.3676382 80.2738875,18.8371578 C82.5802208,19.5853343 84.8665125,20.4045402 87.1265958,21.2979324 L87.1265958,26.8334912 C83.5329708,25.0230304 79.8560958,23.4493343 76.1144708,22.1124029 C75.9788042,14.8626676 75.8431375,7.61451078 75.7059292,0.366353922" id="Fill-12"></path> 37 </g> 38</svg> 39`,n4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 40<svg width="73px" height="27px" viewBox="0 0 73 27" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 41 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 42 <title>Bulge Effect</title> 43 <g id="bulgeEffectIcon" fill="#4A4A4A"> 44 <path d="M6.2193902,18.951536 C7.35828562,19.1351325 7.91993268,18.2340974 7.91993268,17.1113342 C7.91993268,15.9913956 7.38097843,15.0451675 6.24208301,15.0042114 C5.45208954,14.9703167 4.66493268,14.9335974 3.87919412,14.8968781 L3.87919412,18.5786939 C4.65642288,18.7072114 5.43790654,18.8314921 6.2193902,18.951536 L6.2193902,18.951536 L6.2193902,18.951536 Z M5.88467124,11.2899132 C6.86755359,11.2376588 7.29304379,10.3337991 7.29304379,9.39463246 C7.29304379,8.48653596 6.86613529,7.77474649 5.81659281,7.94280789 C5.16984771,8.04449211 4.52310261,8.1475886 3.87919412,8.25492193 L3.87919412,11.4141939 C4.54579542,11.3718254 5.21381503,11.329457 5.88467124,11.2899132 L5.88467124,11.2899132 L5.88467124,11.2899132 Z M0.000141830065,5.70434298 C1.93470392,5.07870263 3.88203072,4.50390439 5.83928562,3.98136053 C9.03471699,3.07467632 11.2912333,4.53638684 11.289815,8.28740439 C11.289815,10.0979482 10.6373967,11.9776939 9.42333137,12.8815535 L9.42333137,12.9408693 C11.2657039,13.6300623 11.9464882,15.8939482 11.9450699,17.8188868 C11.9450699,22.6531237 9.00918758,23.7603518 5.83928562,22.8522553 C3.88203072,22.3297114 1.93470392,21.7535009 0.000141830065,21.1278605 L0.000141830065,5.70434298 L0.000141830065,5.70434298 Z" id="Fill-1"></path> 45 <path d="M14.5187183,2.01024035 C15.8391562,1.76309123 17.1610124,1.5385386 18.4871235,1.33658246 L18.4871235,16.6075737 C18.4871235,19.1284947 19.6004895,20.5873807 21.3081235,20.7271965 C23.0171758,20.8613632 24.136215,19.4914509 24.136215,16.7982316 L24.136215,0.616319298 C25.4679993,0.47932807 26.8026203,0.364933333 28.1372412,0.273135088 L28.1372412,16.8886175 C28.1386595,22.8300825 25.4339601,26.8903895 21.3308163,26.3113544 C17.1851235,25.6772404 14.5187183,21.4686439 14.5187183,16.4296263 L14.5187183,2.01024035 L14.5187183,2.01024035 Z" id="Fill-3"></path> 46 <path d="M31.3040229,0.0819122807 C32.6400621,0.0324824561 33.9775196,0.00423684211 35.3149771,0 L35.3149771,21.2025702 C37.5459641,21.206807 39.776951,21.1743246 42.0065196,21.1065351 L42.0065196,26.6652719 C38.4423301,26.8559298 34.871049,26.8841754 31.3040229,26.7500088 L31.3040229,0.0819122807 L31.3040229,0.0819122807 Z" id="Fill-5"></path> 47 <path d="M51.5550869,0.657840351 C55.7206359,1.31878772 57.7941915,4.76475263 57.7956098,4.72097193 C57.1616294,6.01179649 56.527649,7.3506386 55.8936686,8.73184912 C55.8922503,8.74879649 54.2399301,6.42700702 51.942283,6.21234035 C48.527015,5.91152456 47.1299889,9.32359474 47.1314072,13.1466386 C47.1314072,18.0670246 49.2801327,20.8647526 51.8061261,20.630314 C53.7165771,20.4580158 55.1008386,18.6079281 55.1008386,18.617814 L55.1008386,16.8002088 C54.3363745,16.8369281 53.5719105,16.8722351 52.8074464,16.9047175 L52.8074464,11.8346298 C54.7476817,11.8713491 56.6822438,11.9151298 58.6097144,11.9645596 L58.6097144,24.5818754 C57.5105314,24.8007789 56.4085118,25.0027351 55.3050739,25.1891561 L55.3050739,24.5310333 C55.3050739,24.0353228 55.3277667,23.5396123 55.3277667,23.5396123 C55.3121654,23.5424368 55.2965641,23.5438491 55.2809627,23.5466737 C55.2809627,23.5269018 53.7179954,25.8543404 51.0090412,26.2497789 C46.8406556,26.8909544 42.9913876,22.0482439 42.9913876,13.3613053 C42.9899693,5.64742807 46.5924529,-0.116089474 51.5550869,0.657840351" id="Fill-7"></path> 48 <path d="M61.5833235,2.88161754 C64.9418595,3.64001228 68.2762843,4.54810877 71.5738333,5.60449474 L71.5738333,8.88239825 C69.5641013,8.50814386 67.5416046,8.16637193 65.5077614,7.85708246 L65.5077614,11.3411789 C67.1317157,11.4329772 68.7485784,11.5332491 70.3583497,11.6405825 L70.3583497,15.0780737 C68.7485784,15.1797579 67.1317157,15.2729684 65.5077614,15.3591175 L65.5077614,18.9745561 C67.6451405,18.6497316 69.7711732,18.2896 71.8830229,17.8927491 L71.8830229,21.1282842 C68.4847745,22.2284509 65.0468137,23.1690298 61.5833235,23.9514333 L61.5833235,2.88161754 L61.5833235,2.88161754 Z" id="Fill-9"></path> 49 </g> 50</svg> 51`,s4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 52<svg width="16px" height="16px" viewBox="0 0 16 16" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 53 <!-- Generator: Sketch 40.3 (33839) - http://www.bohemiancoding.com/sketch --> 54 <title>Shape Copy</title> 55 <desc>Created with Sketch.</desc> 56 <defs></defs> 57 <g id="Product-Summary---Deskop" stroke="none" stroke-width="1" fill-rule="evenodd"> 58 <g id="LBP---Product-Summary---Default" transform="translate(-581.000000, -1193.000000)"> 59 <path d="M597.877727,1199.96932 L589.8475,1199.96932 L589.8475,1191.93909 C589.8475,1191.42045 589.427045,1191 588.908409,1191 C588.389773,1191 587.969318,1191.42045 587.969318,1191.93909 L587.969318,1199.96932 L579.939091,1199.96932 C579.420455,1199.96932 579,1200.38977 579,1200.90841 C579,1201.42705 579.420455,1201.8475 579.939091,1201.8475 L587.969318,1201.8475 L587.969318,1209.87773 C587.969318,1210.39636 588.389773,1210.81682 588.908409,1210.81682 C589.427045,1210.81682 589.8475,1210.39636 589.8475,1209.87773 L589.8475,1201.8475 L597.877727,1201.8475 C598.396364,1201.8475 598.816818,1201.42705 598.816818,1200.90841 C598.816818,1200.38977 598.396591,1199.96932 597.877727,1199.96932 L597.877727,1199.96932 Z" id="Shape-Copy" transform="translate(588.908409, 1200.908409) rotate(-315.000000) translate(-588.908409, -1200.908409) "></path> 60 </g> 61 </g> 62</svg>`,o4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 63<svg width="89px" height="33px" viewBox="0 0 89 33" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 64 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 65 <title>Group 25@2x</title> 66 <desc>Created with Sketch.</desc> 67 <g id="Text-Effects---Desktop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 68 <g id="2B_NDX---TEXT-EFFECTS-MENU---2(NORMAL)" transform="translate(-260.000000, -226.000000)" fill="#4A4A4A"> 69 <g id="Group-25" transform="translate(260.000000, 226.000000)"> 70 <path d="M14.6217579,16.86452 C16.5218277,17.36132 18.4160845,17.90332 20.2931025,18.48112 C19.9132489,19.64032 19.3145034,20.45412 18.4958637,20.96652 C17.6768232,21.47932 16.6593367,21.70492 15.4432038,21.75512 C14.2274718,21.80552 12.6699718,21.64812 10.8029764,21.38212 C8.96484572,21.12032 7.03190203,20.77672 5.24288176,20.23132 C3.81206644,19.79532 2.58049887,19.19272 1.54777815,18.34812 C0.514856982,17.50352 0.000100225225,16.45812 0.000100225225,15.17672 C0.000100225225,13.46792 0.917561937,12.18412 2.73524662,11.30512 C5.14466104,10.13992 7.92450788,9.77792 10.5181363,9.51992 C12.4987872,9.32292 14.7279966,9.10672 16.7272894,9.57692 C18.2228502,9.92892 19.3547939,10.77812 20.0884426,12.35512 C18.1921813,12.73772 16.2871002,13.09152 14.3796137,13.41332 C14.1801655,12.98612 13.9704944,12.69112 13.7518029,12.51132 C13.3901903,12.20992 12.9481971,12.00072 12.4254223,11.87172 C11.9024471,11.74272 11.3177331,11.70332 10.6714809,11.74
70092 C9.20799212,11.82632 8.08727365,12.20992 7.30932545,12.88912 C6.72521284,13.39912 6.42573986,14.18312 6.42393581,15.27932 C6.42173086,16.63752 6.77051464,17.55412 7.47189077,18.08992 C8.17286599,18.62552 9.16028491,18.95712 10.4353502,19.09212 C11.6719291,19.22312 12.6082331,19.13292 13.2420574,18.76292 C13.8756813,18.39332 14.3359155,17.77012 14.6217579,16.86452" id="Fill-1"></path> 71 <path d="M28.7516104,15.92212 C28.7520113,17.87232 29.1392815,19.24392 29.9186329,20.09992 C30.6979842,20.95612 31.7493468,21.43672 33.0911622,21.57932 C34.4708626,21.72572 35.5496869,21.47172 36.328036,20.68812 C37.1057838,19.90472 37.5199144,18.27032 37.5668198,15.79112 C37.6063086,13.70472 37.2382815,12.24492 36.4555225,11.42672 C35.6725631,10.60832 34.5889279,10.30932 33.1935923,10.40192 C31.8565878,10.49052 30.763732,10.93332 29.9426869,11.76392 C29.1214414,12.59492 28.7512095,13.95452 28.7516104,15.92212 M22.3223626,15.73592 C22.2945,13.36092 23.1494212,10.90252 25.160741,9.52372 C27.4699302,7.94112 30.5255968,7.40152 33.2783829,7.12072 C35.9209212,6.85112 39.1834527,6.53572 41.3615473,8.07112 C43.6172162,9.66132 44.1674527,13.30652 44.0159122,15.99812 C43.8950405,18.14712 43.826286,20.54992 42.6779054,22.47312 C41.836214,23.88232 40.5922185,24.64452 39.0216892,24.96992 C37.2152297,25.34412 34.9954414,25.12492 33.231277,24.84612 C31.3847275,24.55412 29.2826036,24.13212 27.5044077,23.40392 C25.9731667,22.77692 24.7235586,21.91872 23.7644032,20.65772 C22.8054482,19.39692 22.3456149,17.72812 22.3223626,15.73592" id="Fill-3"></path> 72 <path d="M47.3579824,5.79644 C49.3149802,5.58804 51.2719779,5.37824 53.2287752,5.16604 C56.9146581,8.45024 59.0103676,13.80544 61.1183045,18.11524 C61.0810207,13.50964 61.0301063,8.90364 61.0268991,4.29764 C63.0867279,4.05224 65.1451536,3.78144 67.1991694,3.49044 C67.2182122,12.23244 67.3332707,20.97424 67.3495072,29.71624 C65.2946896,29.39704 63.2396716,29.07964 61.1840523,28.76684 C57.8164847,24.76844 55.6504171,19.64404 53.2684644,15.04524 C53.2800905,19.22744 53.3135658,23.41084 53.274077,27.59304 C51.2152505,27.29324 49.1562234,26.99584 47.0971964,26.69944 C47.2723901,19.73324 47.1709622,12.76224 47.3579824,5.79644" id="Fill-5"></path> 73 <path d="M71.2175595,2.90568 C76.9203748,2.03668 82.6125662,1.10168 88.3101698,0.20008 C88.3117734,1.67688 88.3127757,2.89408 88.3145797,5.68908 C84.7924649,6.09808 81.2699491,6.50148 77.7458297,6.89168 C77.7642712,8.77028 77.7742937,9.84828 77.7943387,12.06508 C81.0568703,11.88788 84.3186,11.69488 87.5787261,11.48128 C87.5839378,14.17488 87.5887486,16.86868 87.5937599,19.56228 C84.348868,19.52728 81.1041766,19.45988 77.8600865,19.37708 C77.8799311,21.57508 77.8997757,23.77308 77.9212239,25.97108 C81.4832284,26.31048 85.0460347,26.63068 88.6126495,26.91828 L88.6126495,32.84988 C82.8713477,32.09408 77.1468838,31.23008 71.423823,30.34788 C71.362886,21.20048 71.2790977,12.05308 71.2175595,2.90568" id="Fill-7"></path> 74 </g> 75 </g> 76 </g> 77</svg> 78`,r4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 79<svg width="89px" height="34px" viewBox="0 0 89 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 80 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 81 <title>Group 28</title> 82 <desc>Created with Sketch.</desc> 83 <defs></defs> 84 <g id="Text-Effects---Desktop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 85 <g id="2B_NDX---TEXT-EFFECTS-MENU---2(NORMAL)" transform="translate(-261.000000, -396.000000)" fill="#4A4A4A"> 86 <g id="Group-28" transform="translate(261.000000, 396.000000)"> 87 <path d="M3.22079691,3.38536233 C3.2515996,7.43045263 3.26850351,10.97007 3.2993062,15.0195179 C3.60057154,15.0818305 3.75082856,15.1132046 4.05096697,15.175953 C4.69068626,15.3088575 5.14258426,15.2705113 5.40816356,15.0426127 C5.67411849,14.8147142 5.87846805,14.3532523 6.02158786,13.6041938 C6.16508332,12.855571 6.22631306,11.5409058 6.206404,9.64799701 C6.18048467,7.14285599 5.99491724,5.50050488 5.65082865,4.66603888 C5.30636442,3.83244438 4.74740829,3.45333972 3.96982818,3.41891527 C3.67044106,3.40540695 3.52055967,3.39887066 3.22079691,3.38536233 M0.207016617,0.187374864 C1.98192773,0.189989379 2.86694161,0.191732389 4.63584244,0.194346904 C5.50733319,0.196089913 6.21354121,0.294134222 6.75596907,0.572580058 C7.29802129,0.85015439 7.75067058,1.3002867 8.11429259,2.07113285 C8.47753894,2.84154323 8.74800159,3.89083521 8.9245536,5.25256172 C9.10148124,6.61472398 9.20027524,8.20260603 9.22131122,9.88199609 C9.25474341,12.5139411 9.16271098,14.4539111 8.94333572,15.6339289 C8.72396047,16.8139466 8.40842071,17.6009156 7.99634082,18.0950589 C7.58350964,18.5892022 7.13386549,18.7639389 6.64815966,18.7839836 C5.98477489,18.811436 5.37698522,18.733872 4.82929836,18.5974815 C3.00179729,18.1421202 2.07884351,17.9124786 0.207016617,17.4545027 L0.207016617,0.187374864" id="Fill-49"></path> 88 <path d="M13.2623988,10.4563005 C13.2977092,13.0545773 13.5035613,14.859705 13.8792039,15.9326619 C14.2548464,17.0060512 14.7525728,17.5462056 15.3716318,17.6724867 C16.0083459,17.80266 16.4929248,17.4683611 16.8268711,16.5156308 C1
887.1608173,15.5637654 17.3088205,13.5951642 17.2708806,10.5756621 C17.238951,8.03447129 17.0342258,6.2544268 16.6555781,5.20871554 C16.2769304,4.16300427 15.7750719,3.705884 15.1503783,3.68209818 C14.5519797,3.65874483 14.0786701,4.08213247 13.7312007,5.07032529 C13.3833557,6.05808565 13.2267128,7.83467038 13.2623988,10.4563005 M10.2824263,10.0515091 C10.2290851,6.00532437 10.6272662,3.20724666 11.4735889,1.75933875 C12.3199116,0.310998377 13.5234704,0.0614634723 15.0850165,0.0614634723 C16.6856295,0.0614634723 17.9320115,0.286347616 18.8219087,1.84756253 C19.7125573,3.40834498 20.1806079,6.53120729 20.2301927,11.0237005 C20.2662544,14.2853855 20.1073576,16.8321985 19.7542536,18.4223888 C19.4007739,20.0134441 18.87525,20.831244 18.1780574,21.2100873 C17.4808648,21.5884981 16.6029881,21.5175731 15.5410466,21.2606862 C14.4610742,20.9990422 13.5584051,20.6509042 12.8349176,20.0536638 C12.11143,19.455991 11.5137827,18.5352634 11.0442295,16.9122053 C10.5746763,15.2900122 10.3207419,12.9481898 10.2824263,10.0515091" id="Fill-51"></path> 89 <path d="M20.3390915,0.214557528 C21.4705269,0.215828991 22.0369959,0.216252812 23.1710608,0.217524274 C23.7983839,4.47607655 23.9997283,8.85245103 24.3107603,13.1457566 C24.6792657,8.8638942 24.908032,4.44640909 25.6882416,0.219643379 C26.8208039,0.220491021 27.3880242,0.220914841 28.524343,0.221338662 C29.3879452,4.65069076 29.6640425,9.30085353 30.0945289,13.7912358 C30.3556005,9.28220541 30.5122434,4.7083304 31.0505392,0.223457767 C32.1774669,0.224729229 32.7401795,0.22515305 33.8648533,0.226424513 C32.8848018,8.16543737 32.9757073,16.2231201 31.9487006,24.1578947 C30.7214763,23.9214027 30.0738685,23.8035805 28.9213971,23.582346 C27.9744022,18.4638611 27.6629946,13.1800861 27.1573797,7.99167081 C26.7295228,12.9529181 26.5120257,18.0307162 25.598463,22.9194901 C24.4493724,22.6821504 23.8753906,22.56009 22.7263,22.3104595 C21.552417,15.0025159 21.510345,7.52546783 20.3390915,0.214557528" id="Fill-53"></path> 90 <path d="M34.722558,0.226858289 C35.8337087,0.228136721 36.389284,0.228562864 37.4993078,0.23026744 C39.6246934,4.71884174 40.3327796,10.1108412 41.3500197,15.0080876 C41.2846579,10.0839942 41.2392052,5.15734387 41.1201265,0.23452888 C42.2402926,0.235807312 42.8003756,0.2366596 43.9209174,0.237938032 C44.1162515,9.10471534 44.1098656,17.9757541 44.3138395,26.8421053 C43.2071965,26.6021862 42.6516212,26.4824398 41.5333333,26.2446514 C39.5371687,21.5971254 38.7565834,16.2596724 37.6938906,11.2763449 C37.7562473,16.0116566 37.8013244,20.749099 37.9098851,25.4839845 C36.7750689,25.2491792 36.2037166,25.1324157 35.0501183,24.9010195 C34.9088767,16.6768673 34.8720637,8.45058437 34.722558,0.226858289" id="Fill-55"></path> 91 <path d="M44.7708087,0.238352442 C45.9003659,0.239633537 46.4649567,0.2404876 47.5956408,0.241768695 C48.2954629,5.51005774 48.4663803,10.8804073 48.7841739,16.1892644 C49.135024,10.8833966 49.3198402,5.49938194 50.1034306,0.245184948 C51.2314852,0.246466043 51.7960759,0.247320106 52.9260088,0.248601201 C53.8651152,5.71204369 54.0867443,11.3548395 54.5037075,16.8887422 C54.7542611,11.348007 54.8823552,5.76713077 55.4488242,0.252017454 C56.5795084,0.253298548 57.1456017,0.254152612 58.2796666,0.255433707 C57.1595005,9.96570561 57.3833834,19.8224494 56.2305364,29.5263158 C55.0912125,29.2747942 54.523241,29.1488198 53.3869222,28.8968712 C52.3933476,22.5930305 52.1063567,16.1273448 51.5988636,9.75859528 C51.1849055,15.8826557 50.9831854,22.0993819 50.1038062,28.1687823 C48.9659849,27.9168336 48.3968864,27.7908593 47.2541817,27.5397647 C45.9886419,18.5016406 46.1888594,9.24914656 44.7708087,0.238352442" id="Fill-57"></path> 92 <path d="M64.4808492,19.8738868 C64.1281208,15.3958826 63.7945502,10.9149812 63.3896075,6.44235785 C63.0105842,10.8139892 62.6905367,15.1922429 62.3513315,19.5675994 C63.2047914,19.6897004 63.6303944,19.7509579 64.4808492,19.8738868 M65.116812,27.1320696 C63.7581129,26.8667585 63.0766973,26.7343099 61.7078558,26.4702405 C61.5204101,28.1912444 61.4264995,28.8940498 61.2379269,29.6912247 C60.0024385,29.4267414 59.3709834,29.2938789 58.1805721,29.0409849 C60.2214381,19.607334 59.8251352,9.71507977 61.7844868,0.262389338 C63.085337,0.267770062 63.7355743,0.271495179 65.0356732,0.279359314 C67.1516678,10.464656 66.7328263,21.1048309 68.7342499,31.3157895 C67.4893705,31.043856 66.8654282,30.9076823 65.6130359,30.6357487 C65.4143209,29.7346844 65.3151513,28.9697938 65.116812,27.1320696" id="Fill-59"></path> 93 <path d="M72.5262865,12.0719261 C73.0273937,12.113063 73.2779472,12.1336315 73.7786788,12.1743652 C73.9139101,12.1852544 74.1761086,12.0283693 74.5648987,11.70129 C74.7609841,11.5561007 74.9213835,11.1560235 75.0453455,10.5159807 C75.1689319,9.87755104 75.2309129,9.14676488 75.2301616,8.35225674 C75.2290347,7.17702998 75.1298651,6.33896504 74.9319014,5.76909702 C74.7346891,5.20043891 74.3643055,4.92941888 73.821502,4.91207682 C73.2989832,4.89554137 73.037536,4.887072 72.5150172,4.86972994 C72.5195249,7.34319107 72.5217788,8.90316949 72.5262865,12.0719261 M69.5835026,30.7017304 C69.5425576,20.5699367 69.5523243,10.4381431 69.5113793,0.306752737 C71.4977771,0.318448542 72.4906004,0.324498096 74.4766227,0.328934436 C75.3969469,0.330950954 76.1012768,0.429760342 76.5881095,0.69432752 C77.0745666,0.958894697 77.4674888,1.47391343 77.7661246,2.58219178 C78.0643848,3.69168006 78.2138905,5.31618705 78.2146418,7.60695164 C78.2153931,9.60411119 78.101949,11.5290794 77.8754366,13.14915 C77.6485485,14.7712372 77.3367651,16.0985094 76.939711,17.0833769 C76.6865279,17.7101107 76.3398098,18.2081907 75.8991811,18.57923 C76.2526607,19.1192536 76.5103515,19.6483879 76.6718778,20.1617935 C76.7808141,20.5050048 76.9393353,21.2309514 77.1470656,22.303739 C77.3544203,23.3753167 77.4934081,24.1653885 77.5632776,24.7070253 C78.1391377,29.019551 78.4261286,30.9937222 78.9997348,32.6940503 C77.6628229,32.4153675 76.9956817,32.2746145 75.6598967,31.9927053 C75.0243095,30.2222024 74.7057646,28.1068749 74.0667966,23.5733388 C73.8643253,22.1073301 73.6862707,21.0704365 73.5266226,20.5945383 C73.3173897,19.9698209 73.06909,19.629836 72.7986273,19.5935387 C72.6938231,19.579423 72.6416087,19.5725669 72.5368045,19.5584512 C72.5428147,23.4842087 72.5461955,27.4095629 72.559343,31.3349171 C71.3708099,31.082449 70.7757921,30.9554084 69.5835026,30.7017304" id="Fill-61"></path> 94 <path d="M82.8277203,5.9644573 C82.8247152,13.2388448 82.822837,20.5136355 82.8198318,27.788023 C83.1113305,27.8368228 83.2570
94798,27.8614243 83.5485784,27.9098207 C84.1698912,28.0134697 84.6131494,27.8428723 84.8768505,27.3693939 C85.1398003,26.8955121 85.3467794,26.0098573 85.4966607,24.6051508 C85.6465421,23.2020575 85.7216706,20.76933 85.7231732,17.2751074 C85.7250514,12.6500215 85.559393,9.65226564 85.2269494,8.15157285 C84.8941301,6.65249328 84.3419355,5.9975282 83.5703657,5.98099275 C83.2732324,5.97453989 83.1248536,5.97131346 82.8277203,5.9644573 M79.8522556,0.320626381 C81.6222833,0.309737183 82.5076729,0.300864504 84.2780763,0.271423339 C85.1506939,0.256904409 85.8550237,0.390801212 86.391817,0.832821984 C86.9282345,1.27524606 87.3722441,2.0145016 87.7230942,3.34258044 C88.0739444,4.66944936 88.3290057,6.51174032 88.4871512,8.93922483 C88.6452967,11.3687259 88.7241816,14.2265353 88.7241816,17.2617984 C88.7241816,22.019168 88.6062299,25.5327491 88.3703263,27.6871971 C88.1340472,29.8416451 87.8057356,31.2931348 87.3868941,32.2384785 C86.967677,33.1842255 86.5172816,33.566154 86.0383373,33.7016641 C85.383968,33.8867804 84.7908284,33.8823441 84.2607967,33.7754686 C82.4915202,33.4181416 81.6110141,33.2370583 79.8522556,32.8716652 L79.8522556,0.320626381" id="Fill-63"></path> 95 </g> 96 </g> 97 </g> 98</svg>`,a4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 99<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 176.76 31.19"> 100 <title>Normal Effect Icon</title> 101 <g id="normalEffectIcon"> 102 <path class="cls-1" d="M17.92,14.6c0,1.9.34,5.15.34,5.15h-.09a54.72,54.72,0,0,0-2.51-5.15L7.4.51H0V30.68H7.31V16.63c0-1.9-.34-5.15-.34-5.15h.09a53.41,53.41,0,0,0,2.51,5.15l8.32,14.05h7.35V.51H17.92Z"/> 103 <path class="cls-1" d="M44.78,0A15.18,15.18,0,0,0,29.15,15.41,15.37,15.37,0,0,0,44.78,31.19,15.37,15.37,0,0,0,60.41,15.41,15.19,15.19,0,0,0,44.78,0Zm0,24.44c-4.47,0-8.07-3.88-8.07-9,0-4.94,3.59-8.65,8.07-8.65s8.06,3.71,8.06,8.65C52.84,20.55,49.25,24.44,44.78,24.44Z"/> 104 <path class="cls-1" d="M81.57,18.32v-.09c3-1.52,4.47-5,4.47-8.23,0-4.39-2.13-7.47-5.52-8.78C79.23.72,77.77.51,74.72.51H64.32V30.68h7.31V20.51h3.43l5.31,10.17h8.15L82.7,20.13A17.16,17.16,0,0,0,81.57,18.32Zm-6.77-4.14H71.63V6.84h2.46c3.68,0,4.51,1.35,4.51,3.63S77.15,14.18,74.81,14.18Z"/> 105 <path class="cls-1" d="M113.15.51l-4.35,12.75c-.67,1.94-1.51,5-1.59,5s-.84-3-1.51-5L101.37.51H93.43L91,30.68h7.35l.92-13.59c.17-2.28,0-5.06.08-5.06s1,3.17,1.67,5.06l3.13,8.74h6.27l3.13-8.74c.67-1.9,1.67-5.06,1.75-5.06a45.57,45.57,0,0,0,0,5.06l.92,13.59h7.31L121.09.51Z"/> 106 <path class="cls-1" d="M136.07.51,125.92,30.68h7.52l1.8-6.33h9.32l1.84,6.33h7.52L143.76.51ZM137,18.44l1.71-5.87c.54-1.9,1.21-5.19,1.21-5.19H140s.67,3.29,1.21,5.19l1.67,5.87Z"/> 107 <polygon class="cls-1" points="164.56 24.36 164.56 0.51 157.25 0.51 157.25 30.68 176.76 30.68 176.76 24.36 164.56 24.36"/> 108 </g> 109</svg> 110`,i4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 111<svg width="81px" height="40px" viewBox="0 0 81 40" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 112 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 113 <title>Perspective Effect Icon</title> 114 <g id="perspectiveEffectIcon"> 115 <path d="M2.68700382,22.424114 C2.92013939,22.3866525 3.03617,22.3681148 3.26823121,22.3318119 C3.72411689,22.2607509 4.04642413,22.0201476 4.23837599,21.5991883 C4.43032786,21.1782291 4.53346618,20.6576299 4.54671659,20.0632663 C4.55960888,19.4858956 4.49013376,19.0301782 4.33721688,18.6980452 C4.18394188,18.365526 3.88419615,18.2790169 3.43439849,18.4168907 C3.16007922,18.5006964 3.02256147,18.5431785 2.74609348,18.6293014 C2.72389009,20.0346874 2.71171404,20.8310342 2.68700382,22.424114 M0.275071322,16.902596 C1.97183987,16.1452555 2.79085838,15.8003779 4.39272535,15.1480841 C5.26510361,14.7931652 5.89825827,14.8514816 6.30185856,15.5207682 C6.70510072,16.190441 6.88057911,17.4475258 6.82936807,19.3986141 C6.77672456,21.4037705 6.50419588,23.1382 6.02145126,24.3219065 C5.53870664,25.5052269 4.8367931,26.0362535 3.90317647,26.0381845 C3.39572163,26.0393431 3.14145703,26.0412741 2.63113723,26.0474533 C2.59066977,28.6550836 2.57025698,29.9550367 2.54196556,31.6805835 C1.63413351,31.4681729 1.18075466,31.3631261 0.275071322,31.1565085 C0.274713203,26.4054618 0.274713203,21.6540289 0.275071322,16.902596" id="Fill-15"></path> 116 <path d="M8.06957051,13.7026876 C10.5477551,12.758812 11.74065,12.3343769 14.1282304,11.4569279 C14.1185611,12.8858722 14.103162,13.7946035 14.0648433,15.757664 C12.5568035,16.1338239 11.8026046,16.3188143 10.2755845,16.7081051 C10.2422794,18.0204166 10.2232991,18.7337302 10.1842641,20.1850742 C11.6009835,19.9722773 12.302897,19.8722512 13.7074403,19.670268 C13.6594524,21.730265 13.6322353,22.8205109 13.5824568,24.9117902 C12.173616,24.9137212 11.4699119,24.9137212 10.0553412,24.9241486 C10.0055627,26.7516525 9.98085243,27.6627011 9.93895249,29.309849 C11.5071563,29.505653 12.2900047,29.6079963 13.859641,29.8119106 C13.817741,31.9248171 13.8009094,32.9057681 13.7915983,34.4258559 C11.2876292,33.802141 10.0438814,33.4908628 7.56426439,32.8849132 C7.72040434,26.4905805 7.91701175,20.0974065 8.06957051,13.7026876" id="Fill-17"></path> 117 <path d="M17.4832696,20.0335288 C17.8650247,19.9848675 18.0559022,19.9601506 18.4383734,19.9095582 C18.5418699,19.8960412 18.7445653,19.7392435 19.0464597,19.4306688 C19.1986604,19.2897054 19.326867,18.964524 19.4292891,18.4589867 C19.5320693,17.9534493 19.5879359,17.384575 19.5961726,16.7658808 C19.6083487,15.8501978 19.5406642,15.1924972 19.395984,14.7699932 C19.2509458,14.3471029 18.9716128,14.2049809 18.5604921,14.3162068 C18.1640542,14.4235707 17.9663724,14.4764803 17.571367,14.5819132 C17.5455824,16.6063797 17.5251696,17.7425835 17.4832696,20.0335288 M14.9545903,34.7153522 C14.9982808,26.8094282 15.3091283,18.9077524 15.3632043,11.0014422 C16.8451013,10.4530366 17.5828268,10.1780613 19.0740349,9.59682857 C19.765563,9.32726016 20.2991605,9.26778518 20.6716045,9.46397537 C21.0440484,9.66016556 21.349524,10.1923508 21.578004,11.2119218 C21.8064841,12.2318791 21.9153523,13.6596648 21.8967301,15.5362163 C21.8806147,17.1710058 21.7724627,18.6864592 21.5790784,19.9682608 C21.3853359,21.2500625 21.1285645,22.2997572 20.8094803,23.0934006 C20.6060687,23.5981656 20.3313913,24.0144904 19.9861644,24.3404442 C20.2529632,24.7054043 20.4463475,25.0769298 20.5659593,25.4500001 C20.6468942,25.6990999 20.7614924,26.2339885 20.9115443,27.0484867 C21.0615962,27.8625988 21.1622277,28.4836103 21.2116482,28.914997 C21.62
11716946,32.3502563 21.8329849,34.035252 22.329338,36.5343597 C21.2736028,36.2783084 20.7471676,36.1497034 19.6978785,35.8913348 C19.1721596,33.3999511 18.9469026,31.6952591 18.5082067,28.2634756 C18.3699727,27.1531473 18.2464216,26.4081652 18.1296747,26.0713978 C17.977116,25.6295837 17.790894,25.4059732 17.583543,25.4048146 C17.5033243,25.4044284 17.463215,25.4040422 17.3826382,25.403656 C17.2988383,29.9782088 17.2533571,32.3212912 17.2691144,35.2911782 C16.3412277,35.0610023 15.8781796,34.9455281 14.9545903,34.7153522" id="Fill-19"></path> 118 <path d="M22.577443,27.7502529 C23.4619973,27.5552213 23.906065,27.4486298 24.7999304,27.2153643 C24.8314449,28.7883616 24.9206166,29.9400135 25.0645805,30.7267053 C25.2984323,32.0011691 25.6440173,32.6314494 26.0948893,32.6874486 C26.4311632,32.7295445 26.6958132,32.4688587 26.8856164,31.8459162 C27.0754195,31.2237461 27.1739023,30.4544334 27.1814228,29.5379781 C27.1882271,28.6674806 27.1062178,27.8583892 26.9361112,27.1427585 C26.7663627,26.4282863 26.3581069,25.7547515 25.7417838,25.1569121 C24.7215024,24.1670785 24.0113521,22.8431809 23.5973663,21.2304048 C23.1833806,19.6172426 22.9925031,17.5587904 23.0136321,15.1960117 C23.0275988,13.6442554 23.1457781,12.2338487 23.3674538,10.9497299 C23.5887715,9.6652248 23.9143018,8.68774965 24.3544302,7.90260269 C24.7945587,7.11822813 25.4051518,6.56750527 26.2041156,6.18748332 C27.1846459,5.72095232 27.9649875,5.82136462 28.5000175,6.80810859 C29.0346894,7.79485256 29.3559223,9.83708432 29.4368572,13.4689201 C28.5182816,14.0053535 28.0613216,14.2668117 27.157787,14.7808454 C27.1112315,13.2796815 26.9905453,12.2886893 26.8018165,11.7317872 C26.6130877,11.1744989 26.3491539,10.9744467 26.0143125,11.0949415 C25.7389189,11.1945814 25.5322841,11.4877081 25.3922595,11.9870662 C25.2522349,12.4864243 25.1806111,13.065726 25.1763137,13.7442815 C25.1727325,14.2390052 25.2311059,14.6800469 25.3371092,15.0562068 C25.4470518,15.4454976 25.7038232,15.7845822 26.118167,16.0611023 C27.1445365,16.7771192 27.8897825,17.6248308 28.3381477,18.6285676 C28.786871,19.633463 29.1120432,20.9874843 29.3100831,22.6520113 C29.5077648,24.3176969 29.6005177,26.2178067 29.5883416,28.2167839 C29.5740169,30.5656594 29.4232487,32.5754502 29.1374696,34.1777988 C28.8516905,35.7809199 28.4602663,36.7475814 27.9628388,37.3029387 C27.4654113,37.8586821 26.8437165,37.9915353 26.1038423,37.8111794 C24.804586,37.4941082 23.8885172,36.6444657 23.382853,34.9308911 C22.8764725,33.2173166 22.6071669,30.8846615 22.577443,27.7502529" id="Fill-21"></path> 119 <path d="M33.2812664,18.0893149 C33.526578,18.0406536 33.6490547,18.0159367 33.8943664,17.9661167 C34.3767529,17.8680217 34.7158917,17.3524431 34.9096342,16.4213121 C35.1033766,15.4897949 35.1982782,14.3296466 35.1950551,13.001887 C35.191832,11.7119751 35.104451,10.6908592 34.93327,9.92231891 C34.7620891,9.1541648 34.4447955,8.889617 33.9821055,9.06920054 C33.7002658,9.17849547 33.5591668,9.23294984 33.2776852,9.34147236 C33.2866381,12.5121839 33.2848476,14.3713563 33.2812664,18.0893149 M30.7747904,4.39230445 C32.3927727,3.62646755 33.2085682,3.24335599 34.8591394,2.47945009 C35.7580184,2.06351144 36.4459653,2.30025275 36.9075809,3.69598375 C37.3688384,5.09171476 37.5783381,7.67887635 37.6191637,11.8374905 C37.6535431,15.3341558 37.5414518,19.1482785 36.9158176,22.6109581 C36.4402354,25.2421467 35.6806647,26.4976867 34.6600251,26.5254931 C34.1056567,26.540555 33.8281143,26.5451894 33.2730296,26.5494376 C33.2744621,30.7401064 33.2655091,34.9311615 33.3228082,39.1214441 C32.2928575,38.9175299 31.7746591,38.8008971 30.7511545,38.562611 C30.608265,27.1727663 30.9173218,15.781763 30.7747904,4.39230445" id="Fill-23"></path> 120 <path d="M38.7724148,0.691995245 C41.4923297,-0.532648645 42.8932919,0.871578786 45.628606,2.0367477 C45.5938684,4.04460755 45.5766787,5.48436548 45.5433736,8.69253855 C43.852335,8.08774753 42.6024991,7.38447521 41.2108481,7.04539059 C41.213713,9.57732541 41.2147874,11.0089731 41.2172942,13.9448744 C42.5423351,14.1885673 43.6177669,14.6917874 45.1780921,15.0818506 C45.1487263,18.6167498 45.1340434,20.5226526 45.1068264,24.1313163 C43.5604679,24.0135249 42.5913974,23.7346877 41.2244566,23.6026069 C41.2273216,27.3236551 41.2287541,29.1758759 41.2323352,32.3720767 C42.7951672,32.4153312 43.7602983,32.4991369 45.4645874,32.3543114 C45.4370122,35.811198 45.4244781,37.371837 45.4026328,39.51255 C42.7206784,39.9512745 41.490181,39.8898685 38.8748369,39.8195799 C38.8340113,26.7767942 38.8143147,13.7343947 38.7724148,0.691995245" id="Fill-25"></path> 121 <path d="M51.9763038,24.8574903 C52.800336,26.099127 53.2100243,26.6830632 54.0179411,27.7926192 C53.8718285,30.4361661 53.6519433,32.5042733 53.3511232,34.0718639 C53.049945,35.6398406 52.6753524,36.7181142 52.2226898,37.4600067 C51.7700271,38.2015129 51.1891579,38.6186102 50.4786495,38.7931731 C49.6162986,39.0051975 48.9075808,38.8534205 48.3639559,38.1682996 C47.8199729,37.4835649 47.3479718,36.0596413 46.9841228,33.2712689 C46.4476603,29.1636333 46.4548227,24.8864554 46.4909927,20.7965851 C46.5336089,16.006532 46.4240244,10.749948 47.712179,6.1344579 C48.4012003,3.66547386 49.4709022,3.26112124 50.7128594,3.79562366 C51.6847948,4.21349331 52.4189391,5.06120487 52.9353469,6.6307264 C53.4521128,8.20102033 53.8127388,10.6294532 54.0362052,14.2964333 C53.2150379,14.8606732 52.7996197,15.1804478 51.9580397,15.8856511 C51.8964432,14.7409508 51.8287587,13.9179562 51.7542699,13.3907916 C51.6317932,12.5083219 51.47816,11.8255182 51.29158,11.3238429 C51.1057161,10.82294 50.8929933,10.5332892 50.654486,10.4529593 C50.1137261,10.2706724 49.6839831,11.0712674 49.365257,13.1293334 C49.1285403,14.6559866 48.9867251,
12117.2701823 48.9530619,20.9572448 C48.9115201,25.5256183 49.0214626,28.5403046 49.2757272,30.0476477 C49.5299918,31.5538323 49.8995708,32.1864298 50.3783761,32.108031 C50.8428567,32.0319493 51.1948878,31.4178895 51.4362601,30.213328 C51.6776324,29.0099252 51.8563339,27.2457583 51.9763038,24.8574903" id="Fill-27"></path> 122 <path d="M54.7386917,6.00071644 C57.8493147,7.47214287 59.3104408,8.09354054 62.15713,9.26334387 C62.0740463,11.1731086 62.0360857,12.441007 61.9662524,15.1637252 C61.0143717,14.9018809 60.5344921,14.7663242 59.5625567,14.481694 C59.4185928,21.8446192 59.3183194,29.2079306 59.2194785,36.5716281 C58.2976798,36.7651149 57.8346318,36.859348 56.9010151,37.0420212 C56.9522262,29.277833 57.029938,21.5144172 57.1499079,13.7510014 C56.1529042,13.4385646 55.6479562,13.2752016 54.6208705,12.9291653 C54.6591892,9.73180588 54.682467,8.24300039 54.7386917,6.00071644" id="Fill-29"></path> 123 <path d="M63.1987911,9.68789481 C64.1284685,10.0640547 64.5879353,10.2467279 65.5007811,10.6066674 C65.151973,18.8335246 65.0635176,27.0719678 64.8615384,35.3038456 C63.949767,35.5212768 63.4942394,35.6274822 62.5803194,35.8356446 C62.7629601,27.1202429 62.84676,18.3982758 63.1987911,9.68789481" id="Fill-31"></path> 124 <path d="M66.3054032,10.9226958 C67.2526283,11.2938351 67.7221225,11.4757359 68.6586041,11.8387649 C69.1055368,17.3996755 69.4414526,22.9706273 69.8489922,28.5350136 C70.4552879,23.3823177 70.9530735,18.1940913 71.8863321,13.0943049 C72.7895086,13.4484514 73.2407387,13.6264901 74.1460639,13.9902916 C72.6695386,20.4950778 72.1148121,27.2215435 70.9366001,33.7908253 C69.9378057,34.0484215 69.4414526,34.1750954 68.4512531,34.423809 C67.4137819,26.6306557 67.0818055,18.7475176 66.3054032,10.9226958" id="Fill-33"></path> 125 <path d="M74.7691912,14.2417086 C77.163934,15.2122321 78.3639913,15.7127488 80.8471895,16.8508836 C80.8464733,17.7453255 80.8461152,18.3134275 80.8450408,19.5403885 C79.2635866,19.0441201 78.4886168,18.815489 76.9530018,18.3756058 C76.9343796,19.4635345 76.9254267,20.0544223 76.9082369,21.2574389 C78.3475178,21.5003595 79.0741416,21.6270334 80.5546062,21.9054845 C80.5524575,23.2204994 80.551025,23.9160477 80.5488763,25.2511452 C79.0472827,25.2140698 78.3109897,25.2032562 76.8545191,25.1862634 C76.8344644,26.7021029 76.8247952,27.4578986 76.8058149,28.8258231 C78.4388382,28.6114815 79.2664516,28.5041176 80.9599971,28.2967275 L80.9599971,31.1565471 C78.2468863,31.8694745 76.9433326,32.2189865 74.3791995,32.8932938 C74.5109873,26.6766136 74.5718676,20.4568439 74.7691912,14.2417086" id="Fill-35"></path> 126 </g> 127</svg> 128`,c4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 129<svg width="78px" height="26px" viewBox="0 0 78 26" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 130 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 131 <title>pinchEffectIcon</title> 132 <g id="Page-1" fill="#4A4A4A"> 133 <path d="M6.51133137,12.4015294 C8.03925294,12.4030392 8.79113529,11.1483922 8.79113529,9.40154902 C8.79113529,7.65470588 8.03925294,6.38043137 6.58682157,6.20680392 C5.84399804,6.12376471 5.10268431,6.03619608 4.36137059,5.94711765 L4.36137059,12.3849216 C5.07701765,12.3909608 5.79417451,12.397 6.51133137,12.4015294 L6.51133137,12.4015294 L6.51133137,12.4015294 Z M-0.000452941176,0 C2.46203725,0.58127451 4.93358627,1.10668627 7.41419412,1.57472549 C10.8942922,2.29490196 13.2646843,5.55456863 13.2631745,9.63405882 C13.2646843,13.7105294 10.8942922,16.8177059 7.41419412,17.1317451 C6.39507647,17.2057255 5.37746863,17.2827255 4.36137059,17.3627451 L4.36137059,24.6973725 C2.9044098,25.0008431 1.45046863,25.3239412 -0.000452941176,25.6666667 L-0.000452941176,0 L-0.000452941176,0 Z" id="Fill-1"></path> 134 <path d="M15.8855529,2.95589412 C17.356102,3.15669804 18.8281608,3.33938431 20.3032392,3.50093333 L20.3032392,22.1651294 C18.8281608,22.3281882 17.356102,22.5093647 15.8855529,22.7101686 L15.8855529,2.95589412" id="Fill-4"></path> 135 <path d="M23.900649,3.91582745 C25.3953549,4.04265098 26.8900608,4.14833725 28.3862765,4.23590588 C30.060649,7.01092549 31.7350216,9.6696902 33.4109039,12.2831608 C34.1220216,13.3853176 34.9342961,15.1321608 34.9342961,15.1321608 L34.9841196,15.1321608 C34.9841196,15.1321608 34.7818059,13.3354941 34.7818059,12.2846706 L34.7818059,4.48502353 C36.2629235,4.51521961 37.7440412,4.52578824 39.2251588,4.51521961 L39.2251588,21.1502392 C37.7349824,21.1411804 36.2463157,21.151749 34.7561392,21.1819451 C33.0727078,18.6243373 31.3877667,16.0591804 29.7058451,13.4170235 C28.9962373,12.3012784 28.1839627,10.4849843 28.1839627,10.4849843 C28.1673549,10.4849843 28.1507471,10.4849843 28.1326294,10.4834745 C28.1326294,10.4834745 28.3349431,12.3405333 28.3349431,13.4230627 L28.3349431,21.4340824 C26.8568451,21.5201412 25.3772373,21.6258275 23.900649,21.7511412 L23.900649,3.91582745 L23.900649,3.91582745 Z" id="Fill-6"></path>
136 <path d="M51.7622686,3.6744098 C56.2448765,3.24562549 58.5397784,5.63111569 58.5412882,5.66433137 C57.8588569,6.90086078 57.1764255,8.10568431 56.4939941,9.27880196 C56.4939941,9.26521373 54.4723667,7.49119412 51.9660922,7.63160588 C48.4950529,7.81278235 46.8433275,10.2496059 46.8433275,12.7015275 C46.8433275,15.2244098 48.6203667,17.8590176 51.9660922,18.0356647 C54.7003471,18.1926843 56.771798,16.0261157 56.771798,16.007998 C57.5297196,17.1509196 58.2876412,18.3255471 59.0455627,19.5379196 C59.0440529,19.5801941 56.4985235,22.4548608 51.7622686,21.9928608 C46.0869157,21.4825471 42.2489941,17.7503118 42.2505039,12.7981549 C42.2489941,7.94413529 46.3148961,4.17113529 51.7622686,3.6744098" id="Fill-8"></path> 137 <path d="M61.7215392,2.8713451 C63.1920882,2.66450196 64.6596176,2.43803137 66.1241275,2.19344314 L66.1241275,10.7042078 C68.3012647,10.6317373 70.4738725,10.5502078 72.6389314,10.4596196 L72.6389314,0.968992157 C74.0958922,0.665521569 75.5498333,0.342423529 76.9992451,-0.000301960784 L76.9992451,25.6663647 C75.5498333,25.3236392 74.0958922,25.0005412 72.6389314,24.6970706 L72.6389314,15.4057373 C70.4738725,15.3076 68.3027745,15.2200314 66.1241275,15.1400118 L66.1241275,23.4741294 C64.6596176,23.2280314 63.1920882,23.0015608 61.7215392,22.7947176 L61.7215392,2.8713451 L61.7215392,2.8713451 Z" id="Fill-10"></path> 138 </g> 139</svg> 140`,l4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 141<svg width="96px" height="34px" viewBox="0 0 96 34" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 142 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 143 <title>Group 21@2x</title> 144 <desc>Created with Sketch.</desc> 145 <defs></defs> 146 <g id="Text-Effects---Desktop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 147 <g id="2B_NDX---TEXT-EFFECTS-MENU---2(NORMAL)" transform="translate(-259.000000, -145.000000)" fill="#4A4A4A"> 148 <g id="Group-21" transform="translate(259.946333, 145.000000)"> 149 <path d="M4.44976389,25.2965129 C4.87555263,25.1833743 5.08782022,25.1270304 5.51026616,25.0152442 C6.34011545,24.7952776 6.92092639,24.4928236 7.26189166,24.0912044 C7.60285692,23.6895852 7.780443,23.237031 7.79381419,22.747064
1496 C7.80676752,22.2710714 7.6734735,21.913175 7.39226073,21.686898 C7.1106301,21.4606209 6.56951488,21.498484 5.75846882,21.791923 C5.2637349,21.9708712 5.01511439,22.0605707 4.51494843,22.2417726 C4.49154885,23.4633081 4.47775981,24.0745266 4.44976389,25.2965129 M8.35699187e-05,21.500287 C3.1051239,20.1128751 4.56885103,19.4565815 7.4215102,18.1696871 C8.97465714,17.4687691 10.1049403,17.3668993 10.8445341,17.9294367 C11.58371,18.4919741 11.9321966,19.6490522 11.8853974,21.3186343 C11.8373447,23.0346438 11.3856493,24.4928236 10.5382503,25.6012206 C9.69043349,26.7091668 8.42894557,27.3623052 6.72161213,27.6611532 C5.79398603,27.8234236 5.32724804,27.9054603 4.38625075,28.0713367 C4.34070515,30.1042242 4.31814127,31.120668 4.29474169,33.152654 C2.5928403,33.1657257 1.73583078,33.1729378 8.35699187e-05,33.186911 L8.35699187e-05,21.500287" id="Fill-1"></path> 150 <path d="M17.3525833,23.353415 C17.2982628,25.3213943 17.511784,26.6871702 17.9931467,27.4944654 C18.4745094,28.3026622 19.1493365,28.6839976 20.0126138,28.5947489 C20.8997085,28.5027957 21.5929209,27.9776706 22.095594,26.9765524 C22.5982671,25.9754342 22.876137,24.2224631 22.9312932,21.7613621 C22.9780924,19.68971 22.7520357,18.2468557 22.2598089,17.4756205 C21.7679999,16.7043854 21.0873229,16.4979414 20.2248814,16.8098611 C19.397957,17.1087091 18.7306512,17.7997106 18.2120999,18.8386919 C17.6939664,19.8781239 17.4077394,21.3678563 17.3525833,23.353415 M13.241779,24.2756518 C13.3311988,21.3944507 14.0022652,18.98158 15.2290716,16.8179746 C16.455878,14.6543693 18.103459,12.9676587 20.2403418,11.9615822 C22.4307094,10.9302637 24.1643673,11.0731518 25.3869953,12.6304968 C26.6087875,14.1882927 27.1929412,16.9982751 27.1139676,20.8485911 C27.0563044,23.6436987 26.7454243,25.9930135 26.1955342,27.8113435 C25.646062,29.6296734 24.8805615,31.0220436 23.8827367,31.9843972 C22.8849119,32.9476523 21.6388844,33.3862332 20.1450721,33.3862332 C18.625771,33.3862332 17.3684616,33.0193218 16.3802473,32.3562669 C15.392033,31.6936628 14.6010437,30.6785713 14.0173078,29.3362345 C13.4335719,27.9938977 13.1774301,26.3387396 13.241779,24.2756518" id="Fill-3"></path> 151 <path d="M29.4586471,8.00854004 C31.1835302,7.19493428 32.0739677,6.75995946 33.8460678,5.91389963 C33.9772726,14.9266681 33.5794797,23.9376335 33.7319948,32.9499512 C31.8972173,32.9508527 31.025583,32.9472467 29.3065498,32.96122 C29.2509758,24.641256 29.514221,16.328504 29.4586471,8.00854004" id="Fill-5"></path> 152 <path d="M36.864279,4.4808717 C38.5344238,3.69295876 39.3759729,3.2990023 41.0770386,2.51514612 C43.4892843,7.59871713 45.0879768,13.0063782 46.6921014,18.4293648 C46.6895943,12.3081647 46.6858337,6.1865139 46.6875051,0.0653138358 C48.3229684,-0.271847994 49.3007364,0.769387069 51.1008325,1.5527925 C50.9792382,12.0169795 50.8822971,22.4816173 50.7924595,32.9467058 C49.1264931,32.946255 48.321297,32.9467058 46.6950264,32.9440013 C44.7699933,27.3709145 43.0739418,21.7112836 41.1923651,16.1215191 C41.2057362,21.7297644 41.2161825,27.3389112 41.2863812,32.9471565 C39.5435306,32.9476073 38.647661,32.948058 36.8839179,32.9485088 C36.7380884,23.4597472 36.9942302,13.9700841 36.864279,4.4808717" id="Fill-7"></path> 153 <path d="M52.9500258,2.3480076 C57.4979008,4.26820733 61.9755771,6.23348217 66.4490748,8.34795562 C66.3684298,10.7346827 66.3333305,11.9399912 66.2719066,14.3623277 C64.4446503,13.6920608 63.4927889,13.3314599 61.7570417,12.6693065 C61.6546686,19.4269671 61.5970053,26.1832755 61.5773664,32.9422884 C59.8215624,32.9427392 58.9210965,32.9431899 57.1210005,32.9445422 C57.1907814,25.657249 57.2818726,18.3699558 57.4239414,11.0840149 C55.6230097,10.4434975 54.7058298,10.1266195 52.8321923,9.45139434 C52.8781557,6.37952553 52.902391,4.90241414 52.9500258,2.3480076" id="Fill-9"></path> 154 <path d="M68.2643806,9.21344283 C72.0509336,11.0218563 75.8341438,12.8383833 79.6190254,14.6504027 C79.5584372,16.2032403 79.5300235,16.9839412 79.4769566,18.5512028 C76.7028531,17.5054602 75.3101604,16.9776307 72.4437122,15.8872638 C72.394406,17.2611531 72.3710064,17.9508023 72.32755,19.3323545 C74.9867448,20.1455095 76.2870928,20.5403675 78.8781781,21.3219699 C78.831379,22.8450579 78.8096508,23.609081 78.7687015,25.1371273 C76.16132,24.6025365 74.8551222,24.3320858 72.1984345,23.7758589 C72.152471,25.4968267 72.1315786,26.3586628 72.0931364,28.0800813 C75.0352154,28.4203984 76.4872427,28.5849225 79.3921331,28.9112663 C79.3541088,30.5781439 79.3365591,31.4115827 79.3043847,33.0730513 C74.6884002,33.037442 72.3906453,33.0189612 67.7224297,32.9801966 C67.8273099,25.0541891 67.9973747,17.1349428 68.2643806,9.21344283" id="Fill-11"></path> 155 <path d="M85.8780781,21.150414 C85.8066258,24.5197786 85.778212,26.2191102 85.7301593,29.6060541 C86.1434126,29.6515799 86.3502481,29.6745682 86.7639192,29.7200941 C87.6459997,29.8174563 88.2765347,29.781847 88.6521815,29.6236334 C89.0278283,29.4654197 89.3236658,29.1548522 89.5392762,28.6955368 C89.7544687,28.2366722 89.8664524,27.4694938 89.8756451,26.3791269 C89.8877628,24.9358218 89.6629597,23.883318 89.2029073,23.1824 C88.742437,22.4819328 87.9769366,21.9175924 86.9072416,21.5267912 C86.4952419,21.3762403 86.2892421,21.3009649 85.8780781,21.150414 M81.8871966,15.7341887 C84.308635,16.8894638 85.5078633,17.4596639 87.9414194,18.6063747 C89.1402298,19.1711659 90.1146551,19.8022174 90.8596809,20.4616663 C91.6063781,21.1211152 92.2277205,21.8373587 92.7220366,22.6009311 C93.2163526,23.3649542 93.5782104,24.1352879 93.8034313,24.9299621 C94.0282344,25.7246363 94.1423073,26.5066894 94.1423073,27.3036174 C94.1423073,28.5526487 93.9739139,29.4870558 93.6350379,30.1474062 C93.2961619,30.8077565 92.8252454,31.3671387 92.2256312,31.8327646 C91.6247635,32.299292 90.9800216,32.6278895 90.2943304,32.7915122 C89.3562581,33.0155355 88.5067699,33.1439995 87.7492085,33.1381398 C85.2187114,33.1187575 83.961402,33.1092917 81.4467831,33.0899094 C81.5479027,27.3036174 81.6866288,21.5177762 81.8871966,15.7341887" id="Fill-13"></path> 156 </g> 157 </g> 158 </g> 159</svg>`,d4=`<svg id="_11-upload" data-name="11-upload" xmlns="http://www.w3.org/2000/svg" viewBox="0 0 38.98 38.98"><path class="cls-1" d="M19.38,24.81H19.6l-0.11-.1Z"/><path class="cls-1" d="M27.91,15.91l-0.35,0c0-.18,0-0.35,0-0.53a6.39,6.39,0,0,0-12.22-2.61,3.81,3.81,0,0,0-5.3,2.78,4.71,4.71,0,0,0,1.26,9.24h3.75l0.06-.08L18,21.94a2.08,2.08,0,0,1,2.89,0l2.9,2.79,0.06,0.08h4A4.45,4.45,0,0,0,27.91,15.91Z"/><path class="cls-1" d="M22.79,25.81L19.9,23a0.58,0.58,0,0,0-.81,0l-2.9,2.79a0.58,0.58,0,0,0,.41,1h1.47V30h2.86V26.82h1.47A0.58,0.58,0,0,0,22.79,25.81Z"/></svg> 160`,u4=`<?xml version="1.0" encoding="UTF-8" standalone="no"?> 161<svg width="78px" height="35px" viewBox="0 0 78 35" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink"> 162 <!-- Generator: Sketch 42 (36781) - http://www.bohemiancoding.com/sketch --> 163 <title>Group 26</title> 164 <desc>Created with Sketch.</desc> 165 <defs></defs> 166 <g id="Text-Effects---Desktop" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd"> 167 <g id="2B_NDX---TEXT-EFFECTS-MENU---2(NORMAL)" transform="translate(-267.000000, -470.000000)" fill="#4A4A4A"> 168 <g id="Group-26" transform="translate(267.000000, 470.000000)"> 169 <path d="M8.10132837,14.0289865 C9.58566349,13.6059552 10.3276577,13.3915077 11.8067919,12.9642879 C11.75721,17.3437089 11.6871713,21.7231299 11.623027,26.1025508 C11.600143,27.6677666 11.4718543,29.0905758 11.2402412,30.2872099 C11.0086281,31.4842628 10.6608616,32.3810053 10.195555,33.0344002 C9.73024834,33.6882139 9.2465652,34.0241259 8.74277195,34.2084167 C8.04203818,34.4651674 7.20157373,34.5552186 6.21791134,34.5552186 C5.64893355,34.5552186 5.02725337,34.5254808 4.35217734,34.4622355 C3.67710132,34.3985714 3.11159079,34.2729185 2.65633921,34.0438115 C2.20108763,33.8147044 1.78432267,33.4607822 1.40535087,32.8953444 C1.0267258,32.3303253 0.767374555,31.664784 0.62695042,30.9083538 C0.401578353,29.6911965 0.287505413,28.4589608 0.287505413,27.3553098 L0.287505413,16.1810011 C1.76386582,15.7935715 2.50481984,15.5925269 3.98811477,15.1837363 C3.98256715,19.2238945 3.96245703,23.2636339 3.94650762,27.3033733 C3.94130672,28.5892209 4.11675021,29.5148636 4.470411,30.1431279 C4.82476523,30.771811 5.31676979,31.046572 5.94746486,31.0151588 C6.5
1697295903,30.9837455 7.06461686,30.6616554 7.42521217,29.9701458 C7.78650093,29.2786362 7.97373311,28.2600104 7.98690871,26.8736405 C8.02782241,22.5922288 8.07463045,18.3108171 8.10132837,14.0289865" id="Fill-37"></path> 170 <path d="M17.5825926,20.8287587 C17.937987,20.7680931 18.1155108,20.7381702 18.4705585,20.6779145 C19.1685185,20.5598625 19.664337,20.1794728 19.9594011,19.5400246 C20.2548119,18.9009863 20.412919,18.1225811 20.4326824,17.2564567 C20.4517524,16.4153364 20.344614,15.7705595 20.1109205,15.3028605 C19.877227,14.8355714 19.4205885,14.7072719 18.7406583,14.8695933 C18.3263204,14.9687898 18.1189781,15.018388 17.7032533,15.1184043 C17.6633798,17.0748698 17.6366819,18.3226136 17.5825926,20.8287587 M14.0737228,12.798355 C16.5288915,12.10357 17.7507548,11.7563824 20.1622359,11.0927499 C21.4752883,10.7312158 22.447162,10.6783383 23.0785505,11.3866502 C23.7095923,12.094962 24.0011891,13.598895 23.9394718,16.3136805 C23.8763676,19.1034782 23.4634167,21.7043108 22.7186486,23.5128015 C21.9735339,25.3212922 20.8796126,26.2284068 19.4296034,26.3690035 C18.6425348,26.4456553 18.248307,26.4841861 17.4588113,26.5624775 C17.3710896,30.6496173 17.3270553,32.6999506 17.3010509,34.3867001 C15.8635238,34.3895695 15.145107,34.3912091 13.7058463,34.3944883 C13.8161052,27.1953673 13.9693582,19.997476 14.0737228,12.798355" id="Fill-39"></path> 171 <path d="M25.1384708,10.6529018 C26.4691139,10.3111109 27.0992386,10.1573051 28.3711065,9.84055238 C29.0224177,14.3764349 29.1119474,19.0931486 29.3528573,23.6659922 C29.9037039,18.8221005 30.3011199,13.8935559 31.2452819,9.12438132 C32.5591809,8.79650057 33.2286031,8.62957945 34.5780405,8.29136549 C35.6670902,13.0045023 35.8321392,18.0471096 36.2456159,22.8782835 C36.6375644,17.764536 36.915038,12.6058788 37.608722,7.53068214 C38.973195,7.18730156 39.659703,7.01362412 41.026568,6.66666667 C39.5855505,15.7992386 39.5558212,25.1599361 38.1869059,34.3056233 C36.7978293,34.3147642 36.1031202,34.3199308 34.7116516,34.3298666 C33.616451,28.7372145 33.3584552,22.9053088 32.8547655,17.2148886 C32.226691,22.924783 31.7848519,28.7336376 30.6862341,34.3564945 C29.2903232,34.3644431 28.5911718,34.3676226 27.1897934,34.3711995 C25.9972037,26.5422019 26.5104615,18.4433485 25.1384708,10.6529018" id="Fill-41"></path> 172 <path d="M47.914275,24.1702436 C47.5626946,20.1258075 47.2339981,16.0771811 46.8144593,12.0403638 C46.2964503,16.1507024 45.8432791,20.2713265 45.3693043,24.3877602 C46.3911066,24.2990012 46.9004474,24.2551932 47.914275,24.1702436 M48.5671606,30.8926854 C46.9413611,30.9307793 46.1262077,30.9532548 44.4927803,31.0016341 C44.2427907,32.6876729 44.1200496,33.3950778 43.8860093,34.2853338 C42.4203974,34.2864766 41.6874181,34.2891432 40.2214595,34.2960001 C42.6208052,25.3210623 42.5674094,15.755668 44.9750765,6.78415866 C46.5516408,6.40131433 47.3324684,6.21008263 48.8573704,5.83333333 C51.2497816,15.0966425 50.6925925,25.0159296 52.8873697,34.3417128 C51.3718293,34.3264753 50.6166595,34.3127614 49.1108273,34.3013332 C48.885802,33.3665074 48.7779701,32.6278654 48.5671606,30.8926854" id="Fill-43"></path> 173 <path d="M57.5753861,15.3975452 C58.1738357,15.3032631 58.4730604,15.2559342 59.0725501,15.1605253 C59.234818,15.1346071 59.5492987,14.9126121 60.0177259,14.4915355 C60.2538465,14.2980881 60.4480132,13.8676208 60.600226,13.214783 C60.7520921,12.563072 60.8294121,11.8396165 60.8311457,11.0707102 C60.8339195,9.93406614 60.7160326,9.15051046 60.4795653,8.65581112 C60.2434447,8.16186303 59.8003285,8.00748077 59.1529906,8.14834049 C58.5299235,8.28431708 58.2189101,8.35155412 57.5975766,8.4860282 C57.5968832,10.8659941 57.5902954,12.3576046 57.5753861,15.3975452 M53.9205446,34.3505025 C53.8959271,24.5489196 54.0925209,14.7477124 54.0536875,4.94612949 C56.3826478,4.36278243 57.5427939,4.06791608 59.9012259,3.4669146 C60.994107,3.18820016 61.8411593,3.07325863 62.4340612,3.19045392 C63.0262696,3.30727358 63.5151537,3.70431018 63.8871909,4.7072314 C64.2588815,5.71052824 64.4457669,7.2588583 64.4409128,9.49608631 C64.4367521,11.4452092 64.2883532,13.3541402 64.0040377,14.9967524 C63.7197222,16.6397401 63.3338158,18.0201654 62.8480523,19.0843137 C62.5391192,19.7623185 62.1171534,20.338153 61.5842351,20.8106904 C62.0072412,21.2490459 62.3151341,21.7016751 62.5079139,22.1640706 C62.6375895,22.4724595 62.8255151,23.1448299 63.0709973,24.15038
17305 C63.3168262,25.1559311 63.4822147,25.907183 63.5643888,26.4285517 C64.2463993,30.578467 64.5903518,32.5133161 65.3417076,34.3347262 C63.7231894,34.3478731 62.9153172,34.3535075 61.2967991,34.3602688 C60.4781784,32.4911542 60.1012869,30.4469979 59.3533984,26.1464567 C59.1165844,24.754387 58.9078551,23.789404 58.7195828,23.3668248 C58.4720202,22.8105228 58.1762627,22.541199 57.8524204,22.5727516 C57.7265588,22.5847717 57.6638013,22.5907817 57.5379397,22.6028017 C57.5216436,26.5232095 57.4845439,30.4462466 57.5368995,34.3666544 C56.0938248,34.3647763 55.3712473,34.3617713 53.9205446,34.3505025" id="Fill-45"></path> 174 <path d="M70.1625548,6.53344952 C70.1039581,13.7770198 70.0089551,21.0198389 69.9461976,28.2634093 C70.3022855,28.2435011 70.4808495,28.2333592 70.8379776,28.213451 C71.5997352,28.1706297 72.1472159,27.8907883 72.4779928,27.343877 C72.8087696,26.7969656 73.0764423,25.8425002 73.2851715,24.3835691 C73.4939007,22.9250136 73.6312043,20.4518925 73.6946552,16.9578202 C73.7782162,12.333865 73.613868,9.4006022 73.204731,8.00402501 C72.795594,6.60782345 72.0865388,6.11913412 71.1046101,6.33061152 C70.7263317,6.41212235 70.5380594,6.45268995 70.1625548,6.53344952 M66.3978011,1.80657288 C68.5846036,1.24801713 69.6979416,0.963668309 71.9977769,0.382199378 C73.131225,0.0952211719 74.0718934,0.0163397277 74.7906569,0.304820438 C75.5097672,0.593301148 76.1057896,1.21195705 76.5572272,2.44663946 C77.0090115,3.6816975 77.3113568,5.45840812 77.4614893,7.85152089 C77.6116218,10.2457605 77.6532289,13.1125376 77.5519848,16.1539807 C77.4344446,19.6901232 77.3463762,23.327309 76.8214326,26.836782 C76.4816409,29.1066895 76.0367911,30.7181247 75.5101139,31.8296018 C74.98309,32.9418301 74.4369961,33.4819802 73.8579633,33.7505528 C73.0650003,34.1182905 72.3517844,34.264409 71.7099941,34.2715459 C69.5679193,34.2948347 68.5024295,34.3068548 66.3735303,34.3256361 C66.1689618,23.4877013 66.6464038,12.6437564 66.3978011,1.80657288" id="Fill-47"></path> 175 </g> 176 </g> 177 </g> 178</svg>`,_4=`<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 163.79 51.07"> 179 <title>Vallye Effect Icon</title> 180 <g id="Layer_2" data-name="Layer 2"><path class="cls-1" d="M16.51,32.4c-.58,2.61-1.1,6.83-1.1,6.83h-.09s-.65-4.36-1.31-7.28Q11,18.79,8.17,4.17,4,2.2,0,0C3.59,19,7.45,35.86,11.43,51.07h8.23c3.54-14.07,7-26.65,10.48-38.15q-4.2-1.35-8.36-2.93C20,17.07,18.29,24.52,16.51,32.4Z"/><path class="cls-1" d="M36.72,43.59q5,.28,10.1.5,1.08,3.53,2.16,7h8.13c-3.87-10.5-7.82-21.52-11.8-33.45q-4.22-.88-8.4-2c-3.38,10.84-6.72,22.53-10.08,35.42H35Q35.85,47.27,36.72,43.59Zm3.37-13.34c.54-2.1,1.17-5.73,1.17-5.73l.09,0s.82,3.88,1.47,6.1,1.32,4.55,2,6.79q-3.2-.28-6.4-.61Q39.24,33.48,40.09,30.24Z"/><path class="cls-1" d="M82.2,51.07V44.81q-6.64,0-13.28-.09l-.26-23.91q-4.06-.29-8.11-.77l.54,31Z"/><path class="cls-1" d="M86.69,21.13q-.08,15-.16,29.93h21.11q.07-3.36.14-6.72-6.62.23-13.26.35.15-12,.3-24Q90.76,21,86.69,21.13Z"/><path class="cls-1" d="M132.94,21.05q.1-4,.19-8a173.45,173.45,0,0,1-20.39,5.15L112,51.07h20.88l.19-8q-6.48.44-13,.76.08-3.26.16-6.52,4.94-.47,9.87-1.07l.19-7.81q-4.92.91-9.88,1.63.08-3.14.16-6.28Q126.79,22.6,132.94,21.05Z"/><path class="cls-1" d="M151.62,16.81c-1.06,3.44-2,7-2,7l-.09,0s-.84-3.11-1.81-5.76q-1.71-4.66-3.41-9-4.4,1.73-8.87,3.23c3.35,6.44,6.69,13.47,10.07,21.27q-.15,8.73-.3,17.47h7.91q.11-9.42.21-18.83c3.6-9.69,7.11-20.37,10.46-32.23q-4.23,2.3-8.56,4.35Q153.45,10.79,151.62,16.81Z"/> 181 </g> 182</svg> 183`,Sy={None:0,"Very Thin":1,Thin:1.6,Medium:2.56,Thick:4.1,"Very Thick":6.55},ia="normal",ca=[{name:ia,type:ia,values:["0"],defaultValue:"0",icon:a4},{name:"curve",type:"arc",values:["0.5","1.0","2.0","4.0","8.0","32.0","-32.0","-8.0","-4.0","-2.0","-1.0","-0.5"],defaultValue:"2.0",icon:Ku,minLabel:"Down",maxLabel:"Up"},{name:"arch",type:"arch",values:["3.0","4.0","5.0","8.0","10.0","-10.0","-8.0","-5.0","-4.0","-3.0"],defaultValue:"5.0",icon:Ju,minLabel:"Down",maxLabel:"Up"},{name:"bridge",type:"bridge",values:["5.0","4.0","3.0","2.5","2.0"],defaultValue:"3.0",icon:t4,minLabel:"Small",maxLabel:"Large"},{name:"valley",type:"valley",values:["5.0","4.0","3.0","2.5","2.0"],defaultValue:"2.0",icon:_4,minLabel:"Small",maxLabel:"Large"},{name:"pinch",type:"double-bridge",values:["5.0","4.0","3.0","2.5","2.0"],defaultValue:"2.0",icon:c4,minLabel:"Small",maxLabel:"Large"},{name:"bulge",type:"blimp",values:["1.25","1.5","2.0","2.5","3.0"],defaultValue:"2.0",icon:n4,minLabel:"Small",maxLabel:"Large"},{name:"perspective",type:"corner",values:["2.0/25.0/50.0","1.5/25.0/50.0","1.25/25.0
183/50.0","1.25/50.0/50.0","1.5/50.0/50.0","2.0/50.0/50.0","2.0/75.0/50.0","1.5/75.0/50.0","1.25/75.0/50.0"],defaultValue:"2.0/50.0/50.0",icon:i4,minLabel:"Left",maxLabel:"Right"},{name:"pointed",type:"corner",values:["2.0/50.0/100.0","1.5/50.0/100.0","1.25/50.0/100.0","1.25/50.0/0.0","1.5/50.0/0.0","2.0/50.0/0.0"],defaultValue:"2.0/50.0/0.0",icon:l4,minLabel:"Bottom",maxLabel:"Top"},{name:"downward",type:"pennant",values:["0.25/2.0","0.5/2.0","0.75/2.0","1.25/3.0","1.5/3.0","2.0/3.0"],defaultValue:"2.0/3.0",icon:r4,minLabel:"Narrow",maxLabel:"Wide"},{name:"upward",type:"pennant",values:["0.25/3.0","0.5/3.0","0.75/3.0","1.25/2.0","1.5/2.0","2.0/2.0"],defaultValue:"2.0/2.0",icon:u4,minLabel:"Narrow",maxLabel:"Wide"},{name:"cone",type:"pennant",values:["0.25/1.0","0.5/1.0","0.75/1.0","1.25/1.0","1.5/1.0","2.0/1.0"],defaultValue:"2.0/1.0",icon:o4,minLabel:"Narrow",maxLabel:"Wide"}],p4=[".JPG",".JPEG",".JFIF",".PNG",".PDF",".AI",".EPS",".GIF",".BMP",".PSD",".WEBP",".TIF",".TIFF",".AVIF",".HEIC",".HEIF",".SVG"],za={"application/pdf":"pdf","application/postscript":"ai","application/vnd.dvb.ait":"ait","image/bmp":"bmp","image/gif":"gif","image/jpeg":"jpeg","image/png":"png","image/vnd.adobe.photoshop":"psd","image/x-ms-bmp":"bmp","image/webp":"webp","image/tiff":"tiff","image/avif":"avif","image/heic":"heic","image/heif":"heif","image/svg+xml":"svg"},g4=["application/coreldraw","application/x-eva","application/xml","image/apng","image/cgm","image/cineon","image/cpi","image/dpx","image/exr","image/jp2","image/pict","image/vnd.djvu","image/vnd.dxf","image/vnd.ms-photo","image/x-freehand","image/x-icon","text/vnd.ascii-art","video/x-anim"],E4=["application/javascript","application/vnd.apple.mpegurl","application/x-mpegurl","video/3gpp","video/mp4","video/mpeg","video/ogg","video/quicktime","video/webm","video/x-m4v","video/ms-asf","video/x-ms-wmv","video/x-msvideo"],He={MONOCHROME:"monochrome",PHOTO:"photo",SPOT:"spot"},Pn={FULL_COLOR:"fullColor",MONOCHROME:"monochrome",SPOT_COLOR:"spotColor"},h1=1e3,h4=300,f4=20*1024*1024,m4=2,T4=["White","Black"],S4="transparent",C4="temp/ai-edited/",I4=e=>/(?:\.([^.]+))?$/.exec(e)[1],h2=120,Wa=200,Cy=["svg","ai","eps","pdf"],L={CLIPART:"CLIPART",TEXT:"TEXT",UPLOAD:"UPLOAD",NAMES:"NAMES",NUMBERS:"NUMBERS"};class os extends Ct({original:B.Black,palette:B.Black,user:B.Black,selectedUser:B.Black}){constructor({original:t,palette:n,user:s}){const o=t&&(t instanceof Ke?t:new Ke(t)),r=n&&(n.transparent?B.None:ss(n)),a=s&&(s.transparent?B.None:ss(s));super({original:o,palette:r,user:a||r,selectedUser:a||r},"SpotColor")}}function A4(e,t){const n=Ns(e),s=Ns(t);return Nn.diff(Nn.rgb_to_lab(n),Nn.rgb_to_lab(s))}function y4(e){var t=cn(e);return t.toHsl().l<.5?t.lighten(40):t.lighten(-40),new Ke(t.toRgb())}function Iy(e){const t=y4(e);var n=cn(t);return n.desaturate(n.toHsl().s*100-5),new Ke(n.toRgb())}function Ya(e){return cn(e).getLuminance()}function O4(e){return Ya(e)>.75}function R4(e){return Ya(e)<.15}function D4(e,t){return t!=null&&t.toLowerCase().includes("glass")?B.Black:e?O4(e)?B.Black:B.White:B.Black}function ze(e,t){const n=["red","green","blue"];return We(e)&&We(t)||n.every(o=>e[o]===t[o])}function v4(e,t){const n=new Ke(e),s=t.map(o=>new Ke(o));return Nn.furthest(n,s)}function Ay(e,t){return e.some(n=>ze(n,t))}function yy(e,t){let n=e?Xu:zs;return t&&(n=[B.None].concat(n)),n}function ws(e){return new os({original:e,palette:e,user:e})}function P4(e,t){return["original","palette","user"].reduce((s,o)=>(s[o]=t(e[o]),s),{})}function L4(e){return new e1.Color({rgbs:[{red:1,green:2,blue:3}]}).isValidRgb(e)}function ja({currentColor:e,candidateColors:t}){if(!e||!(t!=null&&t.length))return null;let n=null,s=1/0;return t.forEach(o=>{let r=null;!isNaN(e==null?void 0:e.red)&&!isNaN(e==null?void 0:e.green)&&!isNaN(e==null?void 0:e.blue)?r=e:r=e!=null&&e.rgbs?e==null?void 0:e.rgbs[0]:null;const a=o!=null&&o.rgbs?o==null?void 0:o.rgbs[0]:null;if(r&&a){const i=Nn.diff(Nn.rgb_to_lab({r:r==null?void 0:r.red,g:r==null?void 0:r.green,b:r==null?void 0:r.blue}),Nn.rgb_to_lab({r:a==null?void 0:a.red,g:a==null?void 0:a.green,b:a==null?void 0:a.blue}));(o==null?void 0:o.id)!==(e==null?void 0:e.id)&&i<s&&(s=i,n=o)}}),n||t[0]}function N4({anchorColor:e}){var o,r,a,i,c,l,d,_,u,E,T,O,I;const t={id:e==null?void 0:e.id,r:parseInt((r=(o=e==null?void 0:e.rgbs)==null?void 0:o[0])==null?void 0:r.red,10),red:parseInt((i=(a=e==null?void 0:e.rgbs)==null?void 0:a[0])==null?void 0:i.red,10),g:parseInt((l=(c=e==null?void 0:e.rgbs)==null?void 0:c[0])==null?void 0:l.green,10),green:parseInt((_=(d=e==null?void 0:e.rgbs)==null?void 0:d[0])==null?void 0:_.green,10),b:parseInt((E=(u=e==null?void 0:e.rgbs)==null?void 0:u[0])==null?void 0:E.blue,10),blue:parseInt((O=(T=e==null?void 0:e.rgbs)==null?void 0:T[0])==null?void 0:O.blue,10)};if(isNaN(t.red)||isNaN(t.green)||isNaN(t.blue))return null;const n=A=>({id:A==null?void 0:A.id,color:A,rgbs:[{red:A==null?void 0:A.red,green:A==null?void 0:A.green,blue:A==null?void 0:A.blue}]}),s=(I=ja({currentColor:n(t),candidateColors:Object.values(B).map(A=>n(A))}))==null?void 0:I.color;return Ya(t)<$u?s!=null&&s.name&&(s==null?void 0:s.name)===(ys==null?void 0:ys.name)?B.Black:ys:s!=null&&s.name&&(s==null?void 0:s.name)===(Eo==null?void 0:Eo.name)?ys:Eo}function w4(e,t){const s=cn(e).toHsl();return s.l=Math.max(0,Math.min(1,s.l+t)),cn(s).toRgb()}function b4(e){return cn(e).toHsl().l<.4}function f1(e,t){const s=b4(e)?.1:-.1,o=w4(e,s);return Wd.closest(o,t)||null}
183const M4=new Set([L.CLIPART,L.TEXT,L.UPLOAD,L.NAMES,L.NUMBERS]);function Fe(e){return e.type===L.TEXT}function St(e){return e.type===L.CLIPART}function st(e){return e.type===L.UPLOAD}function U4(e){return e.type===L.NAMES}function x4(e){return e.type===L.NUMBERS}function gs(e){return e.type===L.NAMES||e.type===L.NUMBERS}const F4=new Set([L.CLIPART,L.TEXT,L.UPLOAD]);function Oy(e){return!!e&&F4.has(e.type)}function Ry(e){if(e==null||typeof e!="object")return!1;const t=e.type;return typeof t=="string"&&M4.has(t)}const Os=parseInt(gt.semantics.units.viewport.breakpoint.md,10),V4=parseInt(gt.semantics.units.viewport.breakpoint.lg,10),k4=parseInt(gt.semantics.units.viewport.breakpoint.xl,10),rs={onlySmallAndXSmall:`(max-width: ${Os-1}px)`,onlyMedium:`(min-width: ${Os}px) and (max-width: ${V4}px)`,mediumAndBelow:`(max-width: ${Os-1}px)`,mediumAndAbove:`(min-width: ${Os}px)`,largeAndAbove:`(min-width: ${Os}px)`,xxLargeAndAbove:`(min-width: ${k4}px)`};function as(e){return window.matchMedia===void 0?!1:window.matchMedia(e).matches}const H4=new URLSearchParams(window.location.search),K={clipart:"https://www.customink.com/clipart",foundry:"https://foundry-cloudfront.out.customink.com/text",manipulate:"https://clipart-transformer.out.customink.com/clipart",fonts:"https://www.customink.com/font_categories",font_info:"https://www.customink.com/font/info",designs:"https://www.customink.com",pricing:"https://www.customink.com/pricing",products:"https://www.customink.com/mms",productImages:"https://mms-images.out.customink.com/mms",productImagesDynamic:"https://mms-images-prod.imgix.net/mms",projects:"https://project-service.out.customink.com",proofImages:"https://mms-images.out.customink.com/mms",accounts:"https://www.customink.com",price_quote:"https://www.customink.com/price_quote",catalog:"https://www.customink.com/products",fundraising_goals:"https://www.customink.com/fundraising/goals/new",fundraising:"https://www.customink.com/fundraising",fundraising_quote:"https://www.customink.com/fundraising/merchandising/profit/calculate",fundraising_origin:"https://www.customink.com",fundraising_print_minimum:"https://www.customink.com/fundraising/merchandising/print_minimum",checkout:"https://www.customink.com/checkout",international_checkout:"https://international.customink.com",internal_checkout:"https://www.customink.com/admin/internal_checkouts",stores:"https://www.customink.com/s",location:"https://www.customink.com/locations",geolocation:"https://www.customink.com/ink/sb-localinfo",auth0ClientId:"yM1Ca7mJiKTERQviZwesT0xXAa0JiczB",auth0Domain:"auth.customink.com",auth0Audience:"https://api.customink.com",profilesUrl:"https://www.customink.com/profiles",profilesRedirectUri:"https://www.customink.com/ndx",profilesClientId:"xfXLHVnR5RULSkb6jijBCSPcDr_Bnpq-lEDTCQOGQmA",profilesLogoutUri:"https://www.customink.com/profiles/users/sign_out",groups:"https://www.customink.com/g"};Object.keys(K).forEach(e=>{const t=H4.get(`${e}_uri`);t&&(K[e]=t)});const G4="business",B4="groups",z4="myself",W4="fundraising",Bo=e=>e?e.trim().toLowerCase().replace(/®/,"®").replace(/\/\\/g,"-").replace(/[^-+a-z0-9_\s]/g,"").replace(/[\s]+/g,"-").replace(/[-]+/g,"-").replace(/^-/,"").replace(/-$/,""):"";function le(){return Object.fromEntries(new URLSearchParams(location.search))}function m1(e,t,n){const s=[];let o;for(o in e)if(Object.prototype.hasOwnProperty.call(e,o)){const r=encodeURIComponent(o),a=t?`${t}[${r}]`:r,i=e[o];i!=null&&s.push(typeof i=="object"?m1(i,a):`${a}=${encodeURIComponent(i)}`)}return s.join("&")}function Mt(e,t,n,s){const o=m1(t,n);return o.length?`${e}?${o}`:e}function Qa(){return le().cid}function pn(){const e=le(),{SK:t,PK:n}=e,s=parseInt(t,10).toString(),o=parseInt(n,10).toString(),r=T1(o),a=!isNaN(s),i=!isNaN(o),c=!isNaN(r);return{styleId:a?s:c?r:null,colorId:i?o:a?s:null}}function T1(e){const t=parseInt(e,10);if(isNaN(t))return null;const n=t.toString();return`${n.substring(0,n.length-2)}00`}function Y4(){return le().E}function j4(){return le().F}function Q4(){return le().U}function Dy(){return le().booster}function q4(){const e=le();return e.mode&&e.mode.toLowerCase()}function X4(){return le().prefer_singles==="true"}function S1(){return le().cart==="true"}function C1(){return le().cart_token}function I1(){const e=le();return e.load_method&&e.load_method.toLowerCase()}function Ws(){return S1()&&I1()==="editfromcart"}function A1(e){return e||(Ws()?Qa():null)}function $4(){const e=le();return e.campaign_id&&parseInt(e.campaign_id,10)}function Z4(){return le().token}function y1(){const e=le();return e.S&&e.S.toLowerCase()==="internal"}function K4(){const e=le();return e.S&&e.S.toLowerCase()==="external"}function O1(e,t){const n=le();n.cid=e,R1(`?${new URLSearchParams(n).toString()}#`,t)}function J4(e){const t=le();t.cart_token=e,R1(`?${new URLSearchParams(t).toString()}#`)}function R1(e,t=""){const n=new RegExp(`\\??${location.search.replace("?","")}#${t}`);history.pushState({},null,location.href.replace(n,e))}function vy(){history.pushState({},null,location.href.replace(location.search,""))}function e5(e){const{colorId:t,styleId:n}=pn();return t&&n?t:e}function t5(e){const{colorId:t,styleId:n}=pn();return!!t&&!!n?[{colorId:t,styleId:n}]:e}function kt(){const{cid:e,email:t,designName:n}=da();return!!(e||t&&n)}function la(){const{colorId:e,styleId:t}=pn();return!!e||!!t}function n5(){return!!v1()}function s5(){const e=D1();
183return!!e.YXS||!!e.YS||!!e.YM||!!e.YL||!!e.YXL||!!e.S||!!e.M||!!e.L||!!e.XL||!!e.XXL||!!e.XXXL||!!e.XXXXL||!!e["One Size"]}function D1(){return o5()}function Py(){return le().SD==="true"}function da(){return{cid:Qa(),email:Y4(),designName:j4()}}function v1(){const e=le();if(e.U)return{referenceId:"/uploads/"+encodeURIComponent(e.U)}}function o5(){const e=le();return{YXS:e.QYXS?parseInt(e.QYXS,10):0,YS:e.QYS?parseInt(e.QYS,10):0,YM:e.QYM?parseInt(e.QYM,10):0,YL:e.QYL?parseInt(e.QYL,10):0,YXL:e.QYXL?parseInt(e.QYXL,10):0,S:e.QS?parseInt(e.QS,10):0,M:e.QM?parseInt(e.QM,10):0,L:e.QL?parseInt(e.QL,10):0,XL:e.QXL?parseInt(e.QXL,10):0,XXL:e.QXXL?parseInt(e.QXXL,10):0,XXXL:e.QXXXL?parseInt(e.QXXXL,10):0,XXXXL:e.QXXXXL?parseInt(e.QXXXXL,10):0,"One Size":e.OneSize?parseInt(e.OneSize,10):0}}function r5(){const{catalog:e}=le();return e==="true"}function ua(){const{TW:e}=le();return e==="true"}function P1(){const{BN:e}=le();return e==="true"}function a5(){const{OU:e}=le();return e==="true"}function L1(){const{CS:e}=le();return e==="true"}function N1(){const{KW:e}=le();return!!e}function w1(){const{KW:e}=le();return e}function i5(){const{MC:e}=le();return e==="true"}function c5(){const{R:e}=le();return e==="1"}function Ly(){const{EU:e}=le();return e==="true"}function f2(){const{FRO:e}=le();return e}function l5(){const{SM1:e}=le();return e==="true"}function m2(){const{SMT:e}=le();return[G4,B4,z4,W4].includes(e)?e:null}function d5(e,t){if(typeof window!="undefined"&&e&&t){const n=new URL(window.location);n.searchParams.set("SK",t),n.searchParams.set("PK",e),window.history.replaceState(null,"",n.toString())}}const is="internal";function bs(){return y1()||dt.get(is)==="true"}function u5(){const e=dt.get("address");if(!e)return;const t=JSON.parse(e);return String(t.postal_code).replace("+"," ")}function T2(e,t,n){const s=e==="width"?"x":"y",o=t[s]+t[e]/2+n[e]/2;return Math.round(t[s]-t[e]/2+n[e]/2)>=0&&o<=n[e]}const _5={[L.TEXT]:p5,[L.UPLOAD]:h5,[L.NAMES]:S2,[L.NUMBERS]:S2};function b1(e){var n;return((n=_5[e.type])!=null?n:S5)(e)}function Ny(e){return Math.abs(e.x)<ju}function wy(e,t){const n=r=>
183r.id===t,s=e.findIndex(n),o=e.find(n);return{index:s,icon:o,backwardable:s>0,forwardable:s!==-1&&s<e.length-1}}function by(e){return e.type===L.TEXT?!qa(e):!0}function My(e){return e.type!==L.TEXT?[]:qa(e)?ca.filter(t=>t.name!=="curve"):ca}function qa(e){return e.type===L.TEXT&&e.fit==="occupy"}function Uy(e){return e.type===L.TEXT&&!qa(e)}function xy(e){return e.outlineWidth>0}function Fy(e){return e.type===L.TEXT&&/(?:\n|\r)\S/.test(e.value)}function p5(e){let t=Nt();return e.outlineWidth>0&&(t=t.add(e.outlineColor)),We(e.color)||(t=t.add(e.color)),t}function Es(e){return typeof e=="string"&&/ai-generated/.test(e)}function M1(e){return e.type===L.UPLOAD&&e.colorMode===He.PHOTO&&!e.singleColor}function Vy(e){return e.type===L.UPLOAD&&e.colorMode===He.PHOTO}function g5(e){return e.type===L.UPLOAD?e.spotColors.some(t=>{var n;return!((n=t.palette)!=null&&n.equals(t.user))}):!1}function ky(e){if(e.type===L.UPLOAD){const t=["horizontalFlip","singleColor","verticalFlip","rotation"],n=!!(e.crop&&(e.crop.get("xPercent")!==0||e.crop.get("yPercent")!==0||e.crop.get("widthPercent")!==1||e.crop.get("heightPercent")!==1));return t.some(s=>e[s])||g5(e)||n}return!1}function Hy(e,t){if(e.type!==L.TEXT)return!1;const n=!!(e.effectName&&e.effectName!=="normal"),s=!!e.outlineWidth,o=!!(t&&e.color&&!ze(e.color,t));return n||s||o}function Ms(e){const{backgroundColor:t}=e;return t&&e.spotColors.find(n=>ze(n.original,t))}function E5(e){const t=Ms(e);return!!t&&!We(t.user)}function Gy(e){return!!Ms(e)&&e.colorMode===He.SPOT}function h5(e){if(e.singleColor)return Nt([e.color]);switch(e.colorMode){case He.SPOT:case He.MONOCHROME:return e.spotColors.map(t=>t.user).filterNot(t=>We(t)).toSet();default:return Nt()}}function f5(e){return!!(e.type===L.CLIPART&&e.clipartVersions.inverted)}function m5(e){return!!(f5(e)&&e.clipartVersions.inverted.clipartId===e.clipartId)}function _a(e){return e.type===L.CLIPART&&e.colors.size>1&&!e.blackwhite}function U1(e){const{clipartId:t,clipartVersions:n}=e;return n?Object.values(n).some(s=>s.clipartId===t.toString()&&s.licensed):!1}function By(e){const{colors:t}=e;return t!=null&&t.size?!U1(e):!1}function zy(e){if(U1(e))return!1;const{blackwhite:t,colors:n}=e,s=bs()&&n.size>1&&!t,o=!bs()&&!t;return s||o}const T5=e=>{const t=e!=null&&e.get?e.get("original"):e==null?void 0:e.original,n=e!=null&&e.get?e.get("user"):e==null?void 0:e.user;return!!(ln(t)&&(!n||ln(n)||We(n)||u1(n)))};function Wy(e={}){const{colors:t,singleColor:n}=e;return t!=null&&t.size?!n&&t.size>1&&t.some(T5):!1}function S5(e){if(e.singleColor){const t=[e.color],n=e.colors.some(s=>s.original&&ln(s.original));return!e.transparent&&n&&t.push(B.White),Nt(t)}return e.colors.map(t=>t.user?t.user:t).filter(t=>!We(t)).toSet()}function Yy(e){return!!(e.rendered||Fe(e)&&e.width>0&&e.height>0)}function S2(e){return Nt([e.color])}const It=e=>{var t;return(t=e.icon)==null?void 0:t.present},jy=e=>{var t;return((t=e.icon)==null?void 0:t.past.length)>0},Qy=e=>{var t;return((t=e.icon)==null?void 0:t.future.length)>0},W={CHROME_OFFSET:1,TEXT:{MEDIUM_TEXT_LIMIT:19,SHORT_TEXT_LIMIT:11,DEFAULTS:{ALIGNMENT:"center",EMBROIDERY_FONT_CATEGORY:"Embroidery",EMBROIDERY_FONT_NAME:"Neutra2-Medium",EMBROIDERY_FONT_DISPLAY:"Neutra Medium",FONT_HEIGHT:40,FONT_NAME:"AvenirNextLTPro-BoldCn",FONT_DISPLAY:"Avenir Bold Condensed",LONG_TEXT_FONT_HEIGHT:.75,MEDIUM_TEXT_FONT_HEIGHT:1.25,MIN_FONT_HEIGHT:.13,EMBROIDERY_MIN_FONT_HEIGHT:.25,ROTATION:0,LINE_HEIGHT:2}},CLIPART:{DEFAULTS:{WIDTH_PX:100,HEIGHT_PX:100,MIN_ART_HEIGHT:.005}},UPLOAD:{DEFAULTS:{ICON_SIZE_INCHES:5}},DOWNLOAD:{MAX_HEIGHT:850,MAX_WIDTH:850},TYPES:{clipart:"CLIPART",names:"NAMES",numbers:"NUMBERS",text:"TEXT",upload:"UPLOAD"}},Xa="176100",Ht="176100",x1="/t-shirts/short-sleeve-t-shirts/16",C5=["YXS","YS","YM","YL","YXL","S","M","L","XL","XXL","XXXL","XXXXL"],F1=["S","M","L","XL","SM","LG","S/M","M/L","L/XL","Adult","One Size"],V1=["front","back"],$a=[1,3],k1=[4,5],qy="YOUTH",Xy="ADULT",H1=8,$y=40,G1=30,Zy=1e3,Ky=600,Jy=5e3,ie={front:1,back:3,rightSleeve:5,leftSleeve:4},wt={1:"front",3:"back",5:"rightSleeve",4:"leftSleeve"},eO=Object.freeze({1:"front",3:"back",5:"right sleeve",4:"left sleeve"}),tO=["288000","262700","288600","289000","168500","244800","240500","240200","229200","229400","226400","227800","239800","199400","168200"].reduce((e,t)=>
183(e[t]=!0,e),{}),pa={styleId:"176100",colorId:"176100",categoryPath:"/t-shirts/short-sleeve-t-shirts/16",flagName:"gildanSoftstyle"},nO=`If you'd like to order more than ${G1} different items, a member of our team can help you out.`,sO=566,I5=205,oO=[845800,864200,864300];B.Gray;const Pt=Object.freeze({ScreenPrint:"screen",Embroidery:"embroidery",LaserEngraving:"laser engraving"}),rO=Object.freeze({[Pt.ScreenPrint]:"Printing",[Pt.Embroidery]:"Embroidery",[Pt.LaserEngraving]:"Laser Engraving"}),ir=Object.freeze({APPAREL:"apparel",NON_APPAREL:"non-apparel"}),A5=[],C2={CONSTRAINT_RATIO:.8,TOP_OFFSET_INCHES:1.5},y5=.6,O5=7,B1=e=>e.iconButtons.intersectingIcons;function aO(e,t){return!(t.left>e.left+e.width||t.left+t.width<e.left||t.top>e.top+e.height||t.top+t.height<e.top)}function iO(e,t){return{top:Math.min(e.y,t.y),left:Math.min(e.x,t.x),width:Math.abs(e.x-t.x),height:Math.abs(e.y-t.y)}}function ht(e){return{top:e.y-e.height/2,bottom:e.y+e.height/2,left:e.x-e.width/2,right:e.x+e.width/2,width:e.width,height:e.height}}function ho(e,t){return{top:e.y-e.height/2+t.height/2,bottom:e.y+e.height/2-t.height/2,left:e.x-e.width/2+t.width/2,right:e.x+e.width/2-t.width/2}}function Fr(e){return e.reduce((t,n)=>t.x<n.x?t:n)}function I2(e){return e.reduce((t,n)=>t.x>n.x?t:n)}function Vr(e){return e.reduce((t,n)=>t.y<n.y?t:n)}function A2(e){return e.reduce((t,n)=>t.y>n.y?t:n)}function y2(e){const t=e.map(ht),n=Math.min(...t.map(a=>a.left)),s=Math.min(...t.map(a=>a.top)),o=Math.max(...t.map(a=>a.right)),r=Math.max(...t.map(a=>a.bottom));return{x:(n+o)/2,y:(s+r)/2}}function z1(e){const t=e.map(ht),n=Math.min(...t.map(c=>c.left)),s=Math.min(...t.map(c=>c.top)),o=Math.max(...t.map(c=>c.right)),r=Math.max(...t.map(c=>c.bottom)),a=o-n,i=r-s;return{left:n,top:s,width:a,height:i}}function R5(e){const t=z1(e).width,n=e.reduce((s,o)=>s+o.width,0);return t-n}function D5(e){const t=z1(e).height,n=e.reduce((s,o)=>s+o.height,0);return t-n}function v5(e){if(!e)return null;let t={width:0,height:0};return e.forEach(n=>{(n==null?void 0:n.width)>(t==null?void 0:t.width)&&(n==null?void 0:n.height)>(t==null?void 0:t.height)&&(t=n)}),t}function P5(e){return!e||isNaN(e.left)||isNaN(e.right)?null:e.right-e.left}function L5(e){return!e||isNaN(e.top)||isNaN(e.bottom)?null:e.bottom-e.top}function sn({rect:e,printScaleFactor:t}){if(!N5(e)||isNaN(t))return null;const n={left:e.left,right:e.right,top:e.top,bottom:e.bottom};return n.scaleFactor=t,n.deltaX=P5(e),n.deltaY=L5(e),n.deltaXInches=(n==null?void 0:n.deltaX)/t,n.deltaYInches=(n==null?void 0:n.deltaY)/t,n.areaInches=(n==null?void 0:n.deltaXInches)*(n==null?void 0:n.deltaYInches),n.center={pixels:{x:n.left+(n==null?void 0:n.deltaX)/2,y:n.top+(n==null?void 0:n.deltaY)/2},inches:{x:0,y:0}},n.border={pixels:{min:{x:n.left,y:n.top},max:{x:n.right,y:n.bottom}},inches:{min:{x:-((n==null?void 0:n.deltaXInches)/2),y:-((n==null?void 0:n.deltaYInches)/2)},max:{x:(n==null?void 0:n.deltaXInches)/2,y:(n==null?void 0:n.deltaYInches)/2}}},n}function Un(e){return!((e==null?void 0:e.width)===null||(e==null?void 0:e.height)===null||isNaN(e==null?void 0:e.width)||isNaN(e==null?void 0:e.height))}function N5(e){return!((e==null?void 0:e.left)===null||(e==null?void 0:e.right)===null||(e==null?void 0:e.top)===null||(e==null?void 0:e.bottom)===null||isNaN(e==null?void 0:e.left)||isNaN(e==null?void 0:e.right)||isNaN(e==null?void 0:e.top)||isNaN(e==null?void 0:e.bottom))}function w5({newConstraintsInfo:e,oldConstraintsInfo:t}){return!e||!t?!0:Math.abs((e==null?void 0:e.areaInches)-(t==null?void 0:t.areaInches))>(e==null?void 0:e.areaInches)*.5}function fo({designDimensions:e,scaledConstraintsDimensions:t,ratio:n}){return!Un(e)&&!Un(t)?!1:t.width>=e.width*n&&t.height>=e.height*n}function b5(e){const t={width:e==null?void 0:e.deltaXInches,height:e==null?void 0:e.deltaYInches};return Un(t)?t:null}function M5({designInfo:e,ratio:t=1}){var n,s,o,r;return{x:(((s=(n=e==null?void 0:e.center)==null?void 0:n.pixels)==null?void 0:s.x)||0)*t,y:(((r=(o=e==null?void 0:e.center)==null?void 0:o.pixels)==null?void 0:r.y)||0)*t}}function U5({guidelineInfo:e,newConstraintsInfo:t,newScale:n=1}){var r,a,i,c,l,d,_,u;const s=((a=(r=t==null?void 0:t.center)==null?void 0:r.pixels)==null?void 0:a.x)-((c=(i=e==null?void 0:e.center)==null?void 0:i.pixels)==null?void 0:c.x)||0,o=((d=(l=t==null?void 0:t.center)==null?void 0:l.pixels)==null?void 0:d.y)-((u=(_=e==null?void 0:e.center)==null?void 0:_.pixels)==null?void 0:u.y)||0;return{x:s/n,y:o/n}}
183function O2({fullDimensionInches:e,fullDimensionRatio:t,desiredValInches:n}){const s=t*(n/e);return isNaN(s)?1:s}function R2({newConstraint:e,oldConstraint:t,dimension:n}){return!Un(e)||!Un(t)||!e[n]||!t[n]?1:e[n]/t[n]}function D2({constraintsDimensions:e,designDimensions:t,dimension:n,dimensionPercentage:s}){if(!Un(e)||!Un(t)||!e[n]||!t[n])return 1;const o=s||1;return e[n]/t[n]*o}const x5=[ie.leftSleeve,ie.rightSleeve],F5=e=>ge(e).get("productColorRemovalThreshold"),cO=e=>ge(e).get("disabled"),V5=e=>e.design.present,ge=e=>e.canvas.present||e.canvas,k5=e=>ge(e).get("clipboard").toArray(),H5=e=>ge(e).get("clipboardSource"),W1=e=>ge(e).get("currentCanvas"),Xe=e=>ge(e).get("currentDesignId"),lO=e=>ge(e).get("disableArrowKeys"),G5=e=>ge(e).get("lastIconId"),B5=e=>ge(e).get("lastArtIconId"),dO=e=>ge(e).get("lastNamesIconId"),uO=e=>ge(e).get("lastNumbersIconId"),Y1=e=>ge(e).get("lastTextIconId"),z5=e=>ge(e).get("lastUploadIconId"),Za=e=>ge(e).get("lastSavedCanvas"),W5=e=>ge(e).get("recentUploadIconIds"),bt=e=>ge(e).get("selectedIconIds").toArray(),_O=e=>!ge(e).get("clipboard").isEmpty(),pO=e=>!!ge(e).get("selectedIconIds").size,Y5=e=>ge(e).get("selectedIconIds").size>1,v2=e=>ge(e).get("labBlankLoad"),At=e=>ge(e).get("selectedViewId"),hs=e=>ge(e).get("selectedIconIds").first(),j5=e=>ge(e).get("sleevePrintEnabled"),Q5=e=>ge(e).get("resizeAttemptedBelowMinimum");m([ge,Za],(e,t)=>b({canvas:e,lastSavedCanvas:t}));const Vn=m([V5,Xe],(e,t)=>{const n=e.get(t);if(n&&!n.get("fetching"))return n}),Ve=m([Vn,It],(e,t)=>e?e.get("iconIds").map(n=>t.get(n)).filter(n=>!!n):G()),No=m([Ve],e=>t=>e==null?void 0:e.find(n=>(n==null?void 0:n.id)===t)),kn=m([Ve],e=>e.toArray()),q5=m([Ve],e=>e.toArray().map(t=>t.toJS())),ne=m([It],e=>t=>t&&e.get(t)?e.get(t).toJS():null),Ut=m([Ve,bt],(e,t)=>e.filter(n=>t.includes(n.id)).toArray()),X5=m([Ut],e=>e.map(t=>t.type)),$5=m([G5,It],(e,t)=>{const n=t.get(e);return n&&n.toObject()}),Ka=m([$5],e=>e&&e.color&&!We(e.color)?e.color:void 0),cr=m([Y1,It],(e,t)=>{const n=t.get(e);return n&&n.toObject()}),gO=m([cr],e=>e&&e.outlineColor);m([cr],e=>e&&{effectSetting:e.effectSetting,effectType:e.effectType,effectName:e.effectName});const lr=m([At,Ve],(e,t)=>t.filter(n=>n.viewId===e)),Z5=m([bt,lr],(e,t)=>t.size!==0&&e.length===t.size),K5=m([Vn,lr],(e,t)=>{if(t.size){t=t.toJSON();const n=t.filter(s=>Fe(s)).map(s=>s.id);if(n&&n.length)return e.get("iconIds").findIndex(s=>n.includes(s))}return-1});m([cr],e=>e&&e.fontOutlineAllowed&&e.outlineWidth?{outlineColor:e.outlineColor,outlineWidth:e.outlineWidth}:{});const EO=m([It,W5],(e,t)=>t.reverse().map(n=>e.find(s=>s.id===n)).filter(n=>!!n).toArray()),dr=m([q5],e=>e.filter(t=>t.type===W.TYPES.upload)),J5=m([dr],e=>e.filter(t=>t.colorMode===He.SPOT)),Rs=m([dr],e=>e.some(t=>Es((t==null?void 0:t.key)||(t==null?void 0:t.url)))),j1=m([dr],e=>e.filter(t=>!Es((t==null?void 0:t.key)||(t==null?void 0:t.url)))),e7=m([j1],e=>e.length>0),Q1=m([j1],e=>e.some(t=>t.colorMode===He.PHOTO)),q1=(e=[])=>e.reduce((t,n)=>{var s;return[...t,...(s=n.spotColors)==null?void 0:s.reduce((o,r)=>{const{name:a,hexString:i}=(r==null?void 0:r.selectedUser)||(r==null?void 0:r.user)||(r==null?void 0:r.palette)||(r==null?void 0:r.original);return i==="00000000"?o:[...o,{name:a,hexString:i}]},[])]},[]),t7=m([Ve],e=>(t=[])=>q1(e.filter(n=>t.includes(n.id)))),n7=m([J5],q1),zt=m([Ve],e=>e.reduce((t,n)=>{const s=t.get(n.viewId)||G();return t.set(n.viewId,s.push(n))},b())),s7=m([zt],e=>[...e.keys()].find(n=>n===ie.leftSleeve||n===ie.rightSleeve)),ur=m([s7],e=>!!e),Ys=m([zt],e=>e.map(t=>t.filter(n=>!gs(n)).reduce((n,s)=>n.union(b1(s)),Nt()))),X1=m([zt],e=>e.filter(t=>t.some(n=>n.type===W.TYPES.upload))),hO=m([Ys],e=>e.toJS()),fO=m([Ys],e=>e.size),o7=m([lr],e=>e.filter(t=>!gs(t)).reduce((t,n)=>t.union(b1(n)),Nt()).toArray()),r7=m([Ys],e=>e.reduce((t,n)=>t.union(n),Nt()).toArray());function _r(e,t){return Ve(e).some(s=>s.type===t)}const $1=e=>_r(e,W.TYPES.clipart),a7=e=>_r(e,W.TYPES.names),i7=e=>_r(e,W.TYPES.numbers),Z1=e=>_r(e,W.TYPES.upload),K1=m(Ve,e=>e.find(t=>U4(t))),J1=m(Ve,e=>e.find(t=>x4(t)));m([K1,J1],(e,t)=>e||t);const Ja=m([a7,i7],(e,t)=>e||t),ei=m([W1,Za],(e,t)=>e!==t),js=m([Ve],e=>e.size===0),c7=m([Ys],e=>
183e.filter((t,n)=>x5.includes(n)).sort((t,n)=>n.size-t.size).map((t,n)=>n).first()),mO=m([c7,zt],(e,t)=>e&&t.size&&t.get(e).sort((n,s)=>{const o=s.colors?s.colors.size:1,r=n.colors?n.colors.size:1;return o-r}).first()),Hn=m([hs,Ve],(e,t)=>e?t.find(n=>n.id===e):null),l7=m([Hn],e=>e&&e.type);m([Hn],e=>e&&e.id);const TO=m([Hn],e=>e&&e.recolored),SO=m([Ve,hs],(e,t)=>e.findIndex(s=>s.id===t)>0),CO=m([Ve,hs],(e,t)=>{const n=e.findIndex(s=>s.id===t);return n!==-1&&n<e.size-1}),IO=m([B1,Ve,hs],(e,t,n)=>{const s=e0({intersectingIcons:e,icons:t,iconId:n});if(!s)return!1;const o=s.findIndex(r=>(r==null?void 0:r.id)===n);return o>0&&o<=s.size-1}),AO=m([B1,Ve,hs],(e,t,n)=>{const s=e0({intersectingIcons:e,icons:t,iconId:n});if(!s)return!1;const o=s.findIndex(r=>(r==null?void 0:r.id)===n);return o>=0&&o<=s.size-2}),e0=({intersectingIcons:e,icons:t,iconId:n})=>!e||!t||!n||!(e?e[n]:!1)?!1:t.filter(r=>{if(e[r==null?void 0:r.id]===!0)return r});m([Ut],e=>e.every(t=>t.x===e[0].x));m([Ut],e=>e.every(t=>t.y===e[0].y));m([Ut],e=>e.every(t=>ht(t).left===ht(e[0]).left));m([Ut],e=>e.every(t=>ht(t).right===ht(e[0]).right));m([Ut],e=>e.every(t=>ht(t).top===ht(e[0]).top));m([Ut],e=>e.every(t=>ht(t).bottom===ht(e[0]).bottom));const yO=m([Hn],e=>{if(!e||!["photo","spot"].includes(e.colorMode))return!1;const{width:t,height:n,originalImageWidth:s,originalImageHeight:o}=e,r=s/t<h2,a=o/n<h2;return(r||a)&&e.id});function Lt(e,t=2){var n=Math.pow(10,Math.max(t,0));return Math.round(e*n)/n}function OO(e){let t=e%360;return t>180?t-=360:t<=-180&&(t+=360),t}function RO(e,t,n,s,o){const r=o*(Math.PI/180),a=e-n,i=t-s;return{x:n+a*Math.cos(r)-i*Math.sin(r),y:s+a*Math.sin(r)+i*Math.cos(r)}}const d7=e=>e*Math.PI/180,u7=({width:e,height:t},n)=>({height:t*Math.abs(Math.cos(n))+e*Math.abs(Math.sin(n)),width:e*Math.abs(Math.cos(n))+t*Math.abs(Math.sin(n))}),t0=({height:e,width:t,originalWidth:n,originalHeight:s,rotation:o})=>{const r=d7(o),{height:a,width:i}=u7({width:n,height:s},r),c=t/i,l=e/a;return{naturalHeight:s*l,naturalWidth:n*c}},_7={CLIPART:"colors",UPLOAD:"spotColors"},p7={[L.UPLOAD]:"Upload",[L.TEXT]:"Text",[L.CLIPART]:"Art",[L.NAMES]:"Names And Numbers",[L.NUMBERS]:"Names And Numbers"},DO=e=>p7[e],P2=e=>{if(st(e))return e.spotColors;if(gs(e)||Fe(e)){const t=[e.color];return n0(e)&&(e.outlineColor.isOutline=!0,t.push(e.outlineColor)),t}return e.colors},n0=e=>e.outlineWidth&&e.outlineWidth>0&&e.outlineColor&&e.outlineColor!==B.None,g7=(e,t)=>Fe(e)&&n0(e)?P2(e).filter(n=>n.isOutline).filter(n=>t.some(s=>ze(s,n))):e.singleColor?e.colorMode!==He.PHOTO&&t.filter(n=>ze(n,e.color)):P2(e).filter(n=>e.colorMode!==He.PHOTO&&t.some(s=>ze(s,n.user||n))),E7=e=>{var t,n;return st(e)?(t=e.spotColors)==null?void 0:t.length:(n=e.colors)==null?void 0:n.length},vO=e=>E7(e)>1,h7=e=>{const t=n=>We(n)?S4:n;return R(f({},e),{original:t(e.original),palette:t(e.palette),user:t(e.user)})};function f7(e,t,n,s,o){return n.length<=1?L2(e,s,o):L2(e,t,n)}function L2(e,t,n){const{color:s,id:o}=e;if(n.length<=1)return B.Gray;if(n.length===2)return n.find(c=>!ze(s,c));let r=[];const a=t.filter(c=>c.id!==o&&c.outlineColor&&c.outlineWidth),i=a.filter(c=>ze(c.color,s));return a.length&&(r=i.length?i.map(c=>c.outlineColor):a.map(c=>c.outlineColor).filter(c=>!ze(s,c))),r.length||(r=n),r=r.filter(c=>!We(c)),v4(s,r)}function m7(e=W.TEXT.DEFAULTS.FONT_NAME,t=W.TEXT.DEFAULTS.FONT_DISPLAY,n=W.TEXT.DEFAULTS.LINE_HEIGHT,s=W.TEXT.DEFAULTS.MEDIUM_TEXT_FONT_HEIGHT,o=W.TEXT.DEFAULTS.LONG_TEXT_FONT_HEIGHT){W.TEXT.DEFAULTS.FONT_NAME=e,W.TEXT.DEFAULTS.FONT_DISPLAY=t,W.TEXT.DEFAULTS.LINE_HEIGHT=n,W.TEXT.DEFAULTS.MEDIUM_TEXT_FONT_HEIGHT=s,W.TEXT.DEFAULTS.LONG_TEXT_FONT_HEIGHT=o}function T7(e,t){const n=i=>Lt(i*t,0),s=e.width,o=e[_7[e.type]],r=o.some(i=>!ze(i.palette,i.user)),a={iconType:e.type,crop:e.crop,resize:{width:n(s)},rotate:{angle:e.rotation},flip:{horizontal:e.horizontalFlip,vertical:e.verticalFlip}};return r&&(a.editColors={colors:o.map(h7)}),e.singleColor&&(e.contrast?a.colorizeSolid={color:e.color,contrast:e.contrast,invertContrast:e.invertContrast}:a.colorize={color:e.color}),a}const s0=({iconType:e,iconData:t,decorationOverrideColor:n})=>{switch(t.color=n,e){case W.TYPES.clipart:t.singleColor=!0,t.colors.size>1&&!t.blackwhite&&(t.transparent=!0);break;case W.TYPES.upload:t.contrast=Wa,t.singleColor=!0;break}return t},PO=({selectedIcon:e,previouslySelectedIcon:t})=>!e||!t?!1:e&&e.id!==(t==null?void 0:t.id),LO=({colorMode:e,singleColor:t})=>e===He.PHOTO&&!t,S7=(e=void 0,t=!1)=>e?(t||(e=e.toJS()),!!e.heightPercent&&!!e.widthPercent&&(e.widthPercent<.99||e.heightPercent<.99)):!1,C7=(e,{cropXPercent:t,cropYPercent:n,cropWidthPercent:s,cropHeightPercent:o})=>e.crop?e.crop.get("xPercent")!==t||e.crop.get("yPercent")!==n||e.crop.get("widthPercent")!==s||e.crop.get("heightPercent")!==o:!0,I7=zs,A7=e=>{var t,n,s;return{red:(t=e.red)!=null?t:0,green:(n=e.green)!=null?n:0,blue:(s=e.blue)!=null?s:0}},y7=e=>{if(!e)return[];const t=new e1.Color({name:e.name,rgbs:[{red:e.red,green:e.green,blue:e.blue}],subtle_inks:[e.subtle_inks]});if(!L4(t))return[];const n=I7.filter(o=>o.name!=="None"),s=n.filter(o=>t.isSubtleInk(o.id));return s.length>0?s:n.filter(o=>t.isSubtleRgb(A7(o)))},NO=(e,t)=>
183{const n=g7(e,t);return Array.isArray(n)?n:[]},wO=e=>{var t;return((t=e==null?void 0:e.user)==null?void 0:t.id)||(e==null?void 0:e.id)},bO=e=>{var t,n,s;return(s=(n=(t=e.original)==null?void 0:t.hexString)!=null?n:e.hexString)!=null?s:""},mo={};function MO(e,t){if(t in mo&&mo[t])return mo[t];if(!e||!e.colors)return;const n=e.colors.find(s=>s.id===t);return mo[t]=n,n}function zo(e,t){var n;return(n=e==null?void 0:e.view_images)==null?void 0:n.find(s=>oa(s==null?void 0:s.name)===t)}function UO(e,t){const n=zo(e,t);return n!=null&&n.uri?n:null}function xO(e,t){return e==="leftSleeve"?e=t?"L.Sleeve":"Left Sleeve":e==="rightSleeve"&&(e=t?"R.Sleeve":"Right Sleeve"),e}function FO({currentProductColorsArray:e,designDigest:t}){const n="preferred_colors",s=e==null?void 0:e.reduce((o,r)=>(o.push(`${n}[]=${r.simple_names[0]}`),o),[]);return s!=null&&s.length?`/categories?${s.join("&")}&digest=${t}`:`/categories?digest=${t}`}function O7({category:e,categoryId:t}){return!e||!t?null:`/categories/${Bo(e)}/${t}/styles`}function N2({categoryPath:e}){if(!e)return"";const t=((K==null?void 0:K.catalog)||"").replace(/^\w*:?\/\/[^/]+/,"");return e?e.replace(new RegExp(`^${t}`),""):""}function VO({override:e}){if(!e||!e.match(/[?&]pathoverride=/))return null;const t=e.match(/[?&]pathoverride=([^&]*)/);return t?`/${decodeURIComponent(t[1])}`:null}function o0(e){if(!e)return[];const{colors:t=[]}=e;return t.sort((n,s)=>n.priority-s.priority)}function Qs(e){return e.map(ar)}function R7({categoryPath:e,primaryCategoryId:t}){const n=e==null?void 0:e.split("/");return!n||n.length===0||!t?!1:parseInt(n[n.length-1],10)===parseInt(t,10)}function kO(){return!as(rs.largeAndAbove)}function D7(e){return e.status==="active"&&(e.stock_status==="in"||e.stock_status==="low")}const ti=e=>{const t=e.variants.find(n=>n.style_id===parseInt(e.id,10));return e.variants.filter(n=>n.product_type===e.product_type&&n.status===e.status&&n.region===(t==null?void 0:t.region))},v7=e=>{if(Yd(e,"variants.length",0)<2)return null;const t=ti(e);switch(e.decoration_method){case Pt.ScreenPrint:return t.find(n=>n.decoration_method===Pt.Embroidery);case Pt.Embroidery:return t.find(n=>n.decoration_method===Pt.ScreenPrint);default:return null}},HO=new Set([Pt.ScreenPrint,Pt.Embroidery]),GO=()=>!1;function w2({viewId:e,viewName:t}){return e?e===ie.leftSleeve||e===ie.rightSleeve:t?t===wt[ie.leftSleeve]||t===wt[ie.rightSleeve]:!1}function ga({productId:e,viewId:t}){return!e||!t?null:`${e}_${t}`}function BO({productId:e,viewName:t}){return!e||!t?null:`${e}_${t}`}function P7({styleId:e,productColorId:t}){return!e||!t?null:`${e}_${t}`}function zO({products:e,desiredQty:t}){const n=e.find(s=>s.color.minimum_quantity>t);return n?n.color.minimum_quantity:null}function L7({style:e}){var t;return e!=null&&e.colors?(t=e==null?void 0:e.colors)==null?void 0:t.reduce((n,s)=>{var o;return(s==null?void 0:s.status)!=="active"||(o=s==null?void 0:s.stock_issues)!=null&&o.length||n==null||n.push(s),n},[]):null}const N7=50,w7=20,r0=6,b7=15,M7=[50,100,150],WO=7,Ea="[email protected]",YO=`Your fundraiser can only have ${r0} products.`,jO="Our fundraiser system currently doesn't support name and numbers. Please remove names & numbers personalization.",U7={150:"north face|soft shell",125:"columbia|down|marmot",75:"adidas|eddie bauer|fleece",60:"jacket",50:"chair|vest|windshirt",45:"coat|duffel|sweatpants",40:"nike|pant|quarter|under armour|zip",35:"comfort|jersey|pullover",30:"blanket|bra|canvas|hooded|hoodie|jogger|performance|raglan|sweatshirt|usa",25:"alternative|american|apparel|beanie|bella|camo|crewneck|district|gap|ladies|lat|level|long|melange|next|pinnie|pocket|polo|racerback|ringer|scrub|soft|style|tank|tie-dye|top|tri-blend|v-neck"},x7=5,a0=25,QO=100,qO=5,XO=48,$O=6,F7=10,V7=25,ZO=.1,wo=6,KO={DEFAULT:"default",DROP_ONE_VIEW:"drop_one_view",DROP_ONE_COLOR:"drop_one_color",DROP_SLEEVE_VIEW:"drop_sleeve_view",EMBROIDERY_TO_PRINT:"embroidery_to_print"},JO={TEMPORARY:"temporary_price_change_pandemic"},eR={GET_QUOTE:0,BUY_NOW:1,SUMMARY_LINK:2,UPDATE_QUANTITIES:3,THREE_WAYS_TO_BUY:4,REAL_TIME_PRICE:5,REAL_TIME_PRICE_SUMMARY:6,MONEY_SAVING_TIPS:7,SHIPPING_FORM:8},Tt={QUOTE_FORM:0,SHIPPING_FORM:1,WCIBMO:2,MONEY_SAVING_TIPS:3,IMPOSSIBLE_TO_QUOTE:4,MULTI_ITEM_SUMMARY:5,LOADING:7,MMS_ERROR:8},fe={QUOTE_SERVICE_ERROR:"quote_service_error",SIZES_NOT_AVAILABLE:"sizes_n
183ot_available",INVALID_ZIP:"invalid_shipping_postal_code",CANADA_TO_US:"canada_product_to_us",US_TO_CANADA:"us_product_to_canada",RAISE_QTY:"raise_quantity_above_minimum",RAISE_QTY_CHANGE_PRODUCT:"raise_quantity_above_minimum_or_change_to_alternate_product",RAISE_QTY_CHANGE_STYLE:"raise_quantity_above_minimum_or_change_to_alternate_style",RAISE_QTY_CHANGE_TO_ALTERNATE:"raise_quantity_above_minimum_or_change_to_alternate",RAISE_QTY_ABOVE_HI_COLOR_MIN:"raise_quantity_above_high_color_min",RAISE_QTY_ABOVE_HI_CHANGE_PRODUCT:"raise_quantity_above_high_color_min_or_change_to_alternate_product",RAISE_QTY_ABOVE_HI_CHANGE_STYLE:"raise_quantity_above_high_color_min_or_change_to_alternate_style",RAISE_QTY_ABOVE_HI_CHANGE_TO_ALTERNATE:"raise_quantity_above_high_color_min_or_change_to_alternate",RAISE_QTY_ABOVE_HI_REMOVE_SLEEVE:"raise_quantity_above_high_color_min_or_remove_sleeve",RAISE_QTY_REMOVE_SLEEVE:"raise_quantity_above_minimum_or_remove_sleeve",REMOVE_NAMES_AND_NUMBERS:"remove_names_and_numbers",RAISE_QTY_COLOR_MATCH:"ink_match_minimum_not_met",ENTER_QUANTITIES:"enter_quantities"},tR=[fe.RAISE_QTY,fe.RAISE_QTY_CHANGE_PRODUCT,fe.RAISE_QTY_CHANGE_STYLE,fe.RAISE_QTY_CHANGE_TO_ALTERNATE,fe.RAISE_QTY_REMOVE_SLEEVE],nR=[fe.RAISE_QTY_ABOVE_HI_COLOR_MIN,fe.RAISE_QTY_ABOVE_HI_CHANGE_PRODUCT,fe.RAISE_QTY_ABOVE_HI_CHANGE_STYLE,fe.RAISE_QTY_ABOVE_HI_CHANGE_TO_ALTERNATE,fe.RAISE_QTY_ABOVE_HI_REMOVE_SLEEVE],sR={[fe.INVALID_ZIP]:!0,[fe.US_TO_CANADA]:!0,[fe.CANADA_TO_US]:!0},oR={US:4,KOOZIES:42},rR={[Tt.QUOTE_FORM]:"lab_quote_form",[Tt.SHIPPING_FORM]:"lab_quote_zip"},aR={FULL_COLOR_KOOZIE:166800,GILDAN_100_COTTON:4100,GILDAN_SOFTSTYLE:176100},ni={quoting:`${K.pricing}/quote_widget`,CANADA:"canada-products/64",NO_MINIMUM:"no-minimum/96",SIZE_SURCHARGES:`${K.pricing}/size_surcharges`},iR={INK_MATCH_MINIMUM_NOT_MET:26},cR=600,Wo="default",ha="fundraising",si=e=>e.labMode.get("mode")===ha,k7=e=>e.config.get("streamlinedMobileMode"),H7=e=>e.config.get("streamlinedMobileIntent"),oi=e=>e.mode&&si(e)?!1:e.config.get("sleevePrintOverride")!==null?e.config.get("sleevePrintOverride"):!1,lR=e=>e.config.get("exitWarningEligible"),G7=()=>({email:"",postalCode:"",orderItemCount:0}),dR=e=>G7().postalCode,uR=e=>e.config.get("lastSaved"),_R=()=>!0,gn=e=>e.catalog.get("styles"),pR=e=>e.catalog.get("catalogCID"),gR=e=>e.catalog.get("catalogCIDProductColorId"),xt=m([gn],e=>e?e.filter(t=>t&&!t.isFetching&&(!t.errors||!t.errors.length)):b()),ER=m([xt],e=>e.toJS()),i0=e=>e.catalog.get("complements"),B7=e=>e.catalog.get("fetchingComplements"),z7=e=>e.catalog.get("alternatives"),W7=e=>e.catalog.get("compatibleStyles"),Y7=m([gn],e=>Array.from(e.values())),Ne=(e,t)=>{var n;if(t!=null&&t.styleId)return(n=gn(e))==null?void 0:n.get(t.styleId)},j7=e=>(t,n)=>{const o=Array.from(e.catalog.get("styles").values()).filter(r=>r.id===t)[0].colors.filter(r=>r.id===n)[0];return o&&o.sizesWithStatus},hR=e=>Array.from(e.catalog.get("styles").values()).map(n=>n.id).indexOf(Q7())>-1,Q7=()=>pa.styleId,cs=(e,t)=>{if(!(t!=null&&t.styleId)||!(t!=null&&t.colorId))return;const n=Ne(e,t);if(n&&n.colors&&Array.isArray(n.colors))return n.colors.find(s=>s.id===t.colorId)},qs=(e,t)=>{const n=cs(e,t);return n&&n.sizes?n.sizes:[]},c0=m([Ne],o0),fR=m([c0],e=>Qs(e.filter(t=>t.status==="active"&&t.singles_enabled))),mR=m([c0],e=>Qs(e.filter(t=>t.status==="active"&&!t.singles_enabled))),q7=(e,t)=>{const n=B7(e),s=n==null?void 0:n.get(t==null?void 0:t.styleId);return!!(s!=null&&s.isFetching)},b2=e=>e.some(t=>t.stock_status==="low"),M2=e=>e.some(t=>t.stock_status==="out");function X7(e){const t=e.filter(s=>F1.includes(s.name)),n=!!t.length;return b2(n?t:e)}function $7(e){const t=e.filter(s=>F1.includes(s.name)),n=!!t.length;return M2(n?t:e)}function To(e){return e.filter(t=>t.sizeValues.filter(s=>!s.unavailable).length>0)}function Z7(e){return(Math.round(100*parseFloat(e))/100).toFixed(2).replace(/\d(?=(\d{3})+\.)/g,"$&,")}function K7(e){return"$"+Z7(e)}const TR=(e="",t=0)=>{const n=parseFloat(e.replace(/[$,]/g,""));return K7(n/t)};function J7(e){return parseInt(e,10)<1e4?`0${e}`:e}function SR(e){return Math.round(e*100)+"%"}function CR(e){let t=e;const n=e.split("X"),s=n.length-1;return/^XX.*L(T*)$/.test(t)&&(t=s+"X"+n[s]),t}const e6=e=>e>=6,l0=e=>e<wo;function t6(e){return`/items/sizing/${J7(e)}_lineup/standard.htm`}function n6(e){return`/catalog/size_chart?styleno=${e}`}function IR(e,{itemizedPrices:t,nameCount:n,numberCount:s,quantities:o},r){return!e||!t?null:e.map(a=>{const{color:i,selection:c,style:l,visible:d}=a,_=c.colorId,u=t[_]||{},E=o[_]||{},T=Object.keys(E).reduce((I,A)=>I+E[A],0),O=l.colors.filter(I=>I.id===_)[0];
183return{productId:_,productColor:i&&i.name,productName:l&&l.name,styleId:c.styleId,sizes:E,color:i,numberCount:s,nameCount:n,isPendingItem:r,quantity:T,sizingLineupUrl:t6(c.styleId),sizingChartUrl:n6(c.styleId),unitPrice:u.itemPrice,totalPrice:u.subtotal,startingUnitPrice:u.startingUnitPrice,regularStartingUnitPrice:u.regularStartingUnitPrice,salePercentage:u.salePercentage,promotionType:u.promotionType,savingsCap:u.savingsCap,colorLimit:l.color_limit,categoryId:l.primary_category_id,categoryName:l.primary_category_name,hasStockIssues:X7(O.sizesWithStatus)||$7(O.sizesWithStatus),isSpecialty:l.specialty,minQty:i.minimum_quantity,sellBlank:l.allow_blank,sizeLineup:l.has_lineup,sizeChart:l.show_sizing_chart,allowSponsorship:l.sponsorship,sizesWithStatus:O.sizesWithStatus,limitedSizes:i.missing_sizes,styleSizes:l.sizes,visible:d}})}function U2(e){return Object.keys(e).find(t=>e[t]>=3)}function AR(e={}){return Object.keys(e).reduce((t,n)=>e[n]>(t.count||0)?{view:n,count:e[n]}:t,{})}function yR(e={}){return Object.keys(e).reduce((t,n)=>e[n]<(t.count||1/0)?{view:n,count:e[n]}:t,{})}function s6(e){return/^[ABCEGHJKLMNPRSTVXY]{1}\d{1}[A-Z]{1} *\d{1}[A-Z]{1}\d{1}$/.test(e)}function o6(e){return/^[0-9]{5}(?:-[0-9]{4})?$/.test(e)}function OR(e){return o6(e)||s6(e)}const RR=e=>e%7===0?`${e/7}-Week`:`${e}-Day`,DR=e=>{switch(e){case 1:return"one";case 2:return"two";default:return""}};function d0({colorCounts:e}){return!e||!Object.keys(e).length===0?0:Object.keys(e).filter(t=>e[t]>0).length}function u0({colorCounts:e}){if(!e)return{};if(!e.leftSleeve&&!e.rightSleeve)return e;const o=e,{leftSleeve:t,rightSleeve:n}=o,s=ct(o,["leftSleeve","rightSleeve"]);return R(f({},s),{sleeve:[t||0,n||0]})}function _0({views:e,removeViewName:t}){if(!e||!t)return null;const o=e,{[t]:n}=o,s=ct(o,[go(t)]);if((t==="leftSleeve"||t==="rightSleeve")&&Array.isArray(e.sleeve)){const r=[...e.sleeve];return R(f({},s),{sleeve:t==="leftSleeve"?[0,r[1]]:[r[0],0]})}return s}const r6=e=>new Date(e+" 1, 2000").getMonth();function a6(e){const t=new Date().getFullYear();e=e.replace(/(\d+)(st|nd|rd|th)/,"$1");const n=e.split(", ");n.length>1&&(e=n[1]),e=e.split(".");const s=r6(e[0]),o=new Date(t,s,e[1]);if(isNaN(o))throw new Error("Invalid date format");return o}function vR(e,t){const n=a6(e);n.getDay()===6?n.setDate(n.getDate()+2):n.getDay()===0&&n.setDate(n.getDate()+1);for(let s=0;s<t;s++)n.setDate(n.getDate()+1),n.getDay()===6&&n.setDate(n.getDate()+2);return n}function PR(e){const t={weekday:"long",month:"short",day:"numeric"},s=new Intl.DateTimeFormat("en-US",t).formatToParts(e);return`${s[0].value}, ${s[2].value}. ${s[4].value}`}const i6="43062",J=e=>{var t;return((t=e.quote)==null?void 0:t.present)||e.quote},LR=e=>J(e).get("colorfulQuote"),Xt=e=>J(e).get("hasFullQuote"),c6=e=>J(e).get("isFetchingPricesWithoutDroppedView"),l6=e=>J(e).get("isInventoryShippingType"),NR=e=>!!J(e).get("totalPrice"),d6=e=>J(e).get("touchedQuantities"),wR=e=>J(e).get("buyMorePrice"),bR=e=>J(e).get("buyMoreQuantity"),MR=e=>J(e).get("buyMoreUnitPrice"),UR=e=>{var t;return(t=J(e).get("caveats"))==null?void 0:t.toJS()},x2=e=>{var t;return(t=J(e).get("colorCount"))==null?void 0:t.toJS()},xR=e=>J(e).get("decorationMethod"),ri=e=>J(e).get("droppedView"),pr=e=>l6(e)?i6:J(e).get("postalCode"),u6=e=>J(e).get("priceGrid"),_6=e=>{var t,n;return(n=(t=J(e))==null?void 0:t.get("service_charges"))==null?void 0:n.toJS()},Xs=e=>J(e).get("totalPrice"),p6=e=>J(e).get("realTimeTotalPrice"),FR=e=>J(e).get("volumeDiscountPercentage"),VR=e=>J(e).get("volumeDiscountPrice"),kR=e=>J(e).get("volumeDiscountSavings"),gr=e=>J(e).get("itemizedPrices"),g6=e=>J(e).get("itemizedPricesWithoutDroppedView"),E6=e=>J(e).get("realTimeItemizedPrices"),HR=e=>J(e).get("oneColorLessPrice"),GR=e=>J(e).get("oneViewLessPrice"),p0=e=>J(e).get("sleeveViewLessPrice"),h6=e=>J(e).get("sleeveViewLessSaveAmount"),BR=e=>J(e).get("embroideryToPrintPrice"),zR=e=>J(e).get("swappedPrintMethod"),WR=e=>J(e).get("quoteBlank"),En=e=>J(e).get("quantities"),Er=e=>J(e).get("quantities").toJS(),YR=e=>J(e).get("mode"),hn=e=>J(e).get("shipping"),jR=e=>J(e).get("showShippingForm"),f6=e=>J(e).get("unavailableCoreSizes"),F2=(e,t)=>
183e+t,QR=m([gr],e=>e.toJS()),m6=m([En],e=>e.every(t=>t.some(n=>n>0))),qR=m([En],e=>e.findKey(t=>t.some(n=>n>0))),XR=m([u6],e=>e&&e.toJS()),T6=m([En,gr],(e,t)=>e.map((n,s)=>{const o=t.get(s),r=n.reduce((i,c,l)=>i+parseInt(l,10),0),a=b({quantities:n,totalQuantity:r});return o?a.merge({subtotal:o.get("subtotal"),unitPrice:o.get("itemPrice")}):a})),$R=m([hn],e=>{var t;return(t=e==null?void 0:e.rushDelivery)==null?void 0:t.toJS()}),ZR=m([hn],e=>e.get("shippingCaveat")),KR=m([hn],e=>e.get("city")),JR=m([hn],e=>{var t;return(t=e==null?void 0:e.standardDelivery)==null?void 0:t.get("deliveryDate")}),eD=m([hn],e=>e.get("state")),tD=m([hn],e=>((e==null?void 0:e.get("turnAdjustment"))||"").length>0),nD=m([hn],e=>{var t;return(t=e==null?void 0:e.standardDelivery)==null?void 0:t.get("turnTime")}),sD=m([hn],e=>{var t;return(t=e==null?void 0:e.superRushDelivery)==null?void 0:t.toJS()}),S6=m([T6],e=>e.map(s=>s.styleId).reduce((s,o)=>(s.indexOf(o)<0&&s.push(o),s),[]).size),oD=m([S6],e=>e>1),dn=e=>{const t=En(e);if(Ja(e)){const s=t.first(),o=s&&s.toObject()||{};return Object.values(o).reduce(F2,0)}return t!==null&&t.reduce((s,o)=>o!==null?s+o.reduce(F2,0):s,0)},C6=e=>J(e).get("previousTotalQty",0),rD=e=>l0(dn(e))&&Z1(e),aD=e=>l0(dn(e))&&e7(e),I6=m([ri],e=>!!(e!=null&&e.id)&&!!(e!=null&&e.name)),iD=m([ri],e=>(e==null?void 0:e.id)===ie.leftSleeve||(e==null?void 0:e.id)===ie.rightSleeve),cD=m([_6],(e=[])=>e.find(t=>t.type==="ink_match"));function fn(e){var n;return((n=e.namesAndNumbers.present)==null?void 0:n.toArray())||e.namesAndNumbers.toArray()}function A6(e){return fn(e).map(n=>n.toJS?n.toJS():n)}const y6=m(fn,e=>e.filter(t=>!t.name&&!t.number)),O6=m(fn,e=>e.filter(t=>t.name||t.number)),g0=e=>{const t=fn(e),n=K1(e),s=t.reduce((o,r)=>r.name?o+1:o,0);return n?s:0},E0=e=>{const t=fn(e),n=J1(e),s=t.reduce((o,r)=>r.number?o+1:o,0);return n?s:0},R6=e=>fn(e).reduce((n,s)=>s.name||s.number?n+1:n,0),ai=m(fn,e=>e.filter(t=>t.productSize).map(t=>t.productSize).reduce((t,n)=>(n in t?t[n]++:t[n]=1,t),{})),lD=m(y6,e=>e.filter(t=>!!t.productSize).map(t=>t.productSize).reduce((t,n)=>(n in t?t[n]++:t[n]=1,t),{})),dD=m(O6,e=>e.filter(t=>!!t.productSize).map(t=>t.productSize).reduce((t,n)=>(n in t?t[n]++:t[n]=1,t),{})),ke={DEBOSSED:"debossed",DIGITAL_PRINT:"digital print",DYE:"dye",EMBOSSED:"embossed",EMBROIDERY:"embroidery",EPOXY_DOME:"epoxy dome",FOIL_STAMP:"foil stamp",LASER_ENGRAVED:"laser engraved",LASER_ETCHED:"laser etched",PAD_PRINT:"pad print",SCREEN:"screen",TRANSFER:"transfer",UV:"uv"},D6=[{DecorationMethodTypes:[],materials:[],styleIds:[1072200,1071900,1166900,1166500,1523300,1513200],enforceColor:"White",restrictColorPalette:!0,effect:null},{DecorationMethodTypes:[],materials:[],styleIds:[1145100,1141400,1141500],enforceColor:null,restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[],materials:[],styleIds:[1636500,2102e3,2102200,2101900],enforceColor:"Gray",restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[],materials:[],styleIds:[1099e3,1629200,1081800,1081600],enforceColor:"Black",restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[],materials:[],styleIds:[1550400],enforceColor:"Zinc Alloy",restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[],materials:[],styleIds:[1139600],enforceColor:"White",restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[ke.DEBOSSED],materials:["leather","durahyde","ultrahyde","ultrabond","faux suede","faux leather","vinyl","cardboard"],styleIds:[],enforceColor:null,restrictColorPalette:!0,effect:"debossed"},{DecorationMethodTypes:[ke.EMBOSSED],materials:["leather","foil"],styleIds:[],enforceColor:null,restrictColorPalette:!0,effect:"embossed"},{DecorationMethodTypes:[ke.LASER_ENGRAVED],materials:["plastic","cardboard","leather","silicone","fabric","pu"],styleIds:[],enforceColor:null,restrictColorPalette:!0,effect:"laser_engraved"},{DecorationMethodTypes:[ke.LASER_ETCHED],materials:["leather"],styleIds:[],enforceColor:null,restrictColorPalette:!0,effect:"laser_etched"},{DecorationMethodTypes:[ke.LASER_ENGRAVED],materials:["glass","crystal","acrylic"],styleIds:[],enforceColor:"Ice Gray",restrictColorPalette:!0,effect:null},{DecorationMethodTypes:[ke.LASER_ENGRAVED],materials:["terracotta"],styleIds:[],enforceColor:"Brown",restrictColorPalette:!0,effect:null},{DecorationMethodTypes:[ke.LASER_ENGRAVED],materials:["ceramic"],styleIds:[],enforceColor:"Warm Ivory",restrictColorPalette:!0,effect:null},{DecorationMethodTypes:[ke.DEBOSSED,ke.EMBOSSED],materials:[],styleIds:[],enforceColor:null,restrictColorPalette:!0,effect:"color_matching"}],v6=(e,t)=>{if(!e)return!1;const n=e.toLowerCase().split(/\s+/);return t.some(s=>n.includes(s))},P6=(e,t)=>e?t.some(n=>e===n):!1,Yo=(e,t,n)=>D6.find(s=>{if(s.styleIds.length>0&&s.styleIds.includes(Number(e)))return!0;
183const o=v6(n,s.materials),r=P6(t,s.DecorationMethodTypes);return o&&r?!0:s.materials.length===0&&s.styleIds.length===0&&r}),uD=(e,t)=>e||!!(t!=null&&t.restrictColorPalette),L6=["Women's","Unisex","Tall"],Gn=e=>e.product?e.product.present||e.product:e,Re=e=>Gn(e).get("anchorStyleId"),h0=e=>Gn(e).get("categoryPaths"),we=e=>Gn(e).get("currentColorId"),N6=e=>Gn(e).get("hasInvalidProductImage"),ve=e=>Gn(e).get("selections"),hr=e=>ve(e).toArray(),w6=e=>Gn(e).get("lastSavedSelections"),b6=m([we,ve],(e,t)=>{const n=t.find(s=>s.get("colorId")===e);return n?n.get("styleId"):void 0}),fr=m([ve],e=>e.map(t=>t.get("colorId")).toArray()),_D=m([ve],e=>e.filter(t=>t.visible).map(t=>t.get("colorId")).toArray()),mr=m([ve],e=>e.map(t=>t.get("styleId")).toSet().toArray()),ls=(e,{styleId:t})=>{if(!t)return[];const r=mr(e).map(a=>Ne(e,{styleId:a})).map(a=>a.views).reduce((a,i)=>(a.length===0?a=i.map(c=>c.id):a=jd(a,i.map(c=>c.id)),a),[]);return Ne(e,{styleId:t}).views.filter(a=>r.includes(a.id))},f0=m([mr,fr],(e,t)=>e.length===1&&t.length===1),M6=(e,t)=>ve(e).filter(s=>s.get("styleId")===t).map(s=>s.get("colorId")).toArray(),Us=m([we,ve],(e,t)=>t.find(n=>e===n.get("colorId"))),U6=e=>hr(e).reduce((n,s)=>{var r;const o=(r=cs(e,s))==null?void 0:r.sizes[0];return n[s.colorId]=o,n},{}),x6=m([Us,h0],(e,t)=>e?t.get(e.styleId):void 0),m0=(e,t)=>h0(e).get(t),pD=m([we,ve],(e,t)=>t.findIndex(n=>e===n.get("colorId"))),F6=e=>{var n;const t=De(e);return((n=t==null?void 0:t.sizes)==null?void 0:n.length)===1},V6=m([F6,f0],(e,t)=>e&&t);function T0(e,t){if(e&&!e.isFetching){const n=e.colors.find(s=>s.id===t);return n?ar(n):null}else return}const De=m([Re,xt],(e,t)=>t.get(e)),lt=m([De,ve],(e,t)=>{const n=e&&t.find(s=>s.styleId===e.id);return n&&e.colors.find(s=>s.id===n.colorId)}),V2=m([De],e=>e==null?void 0:e.style_type),Et=m([De],e=>e==null?void 0:e.decoration_method),S0=m([De],e=>e==null?void 0:e.material),gD=m([lt],e=>{const t=new Ke(e==null?void 0:e.rgbs[0]);return R4(t)}),k6=m([De],e=>{var t,n,s,o;return((n=(t=e==null?void 0:e.material)==null?void 0:t.toLowerCase())==null?void 0:n.includes("wood"))||((o=(s=e==null?void 0:e.material)==null?void 0:s.toLowerCase())==null?void 0:o.includes("bamboo"))}),H6=m([De],e=>{var t;return/leather.*patch/.test((t=e==null?void 0:e.name)==null?void 0:t.toLowerCase())}),G6=m([Et],e=>e===ke.DEBOSSED),B6=m([Et],e=>e===ke.EMBOSSED),ii=m([Et],e=>e===ke.EMBROIDERY),kr=m([ii,Q1],(e,t)=>e&&t),ED=m([Et],e=>e===ke.SCREEN),ci=e=>t=>{var i,c;const n=fa(e)(t);if(!n)return!1;const s=n.additional_print_areas==="sleeve",o=(i=n.colors)==null?void 0:i.find(l=>(l==null?void 0:l.id)===we(e)),r=!!((c=n.views)!=null&&c.find(l=>{var d;return((d=l==null?void 0:l.name)==null?void 0:d.toLowerCase().indexOf("sleeve"))>0})),a=pi({style:n,styleColor:o});return s&&r&&(a||C0(e)())},C0=e=>()=>!!v8(e),Ye=m([gn,Us],(e,t)=>t&&e.get(t.styleId)),ot=m([xt,ve],(e,t)=>t.map(n=>e.get(n.styleId))),z6=m([ot],e=>e.toJS()),hD=e=>t=>{const n=ot(e);return n==null?void 0:n.find(s=>s.id===t)},W6=m([ve],e=>e.filter(t=>t.visible).toArray());m([xt,W6],(e,t)=>t.map(n=>e.get(n.styleId)));const Y6=e=>t=>{const n=hr(e);return t.filter(o=>n.find(r=>String(r.get("colorId"))===String(o))).length<1},j6=m([xt,ve],(e,t)=>t.map(n=>e.get(n.styleId)).filter(n=>!!n).toArray()),Q6=m([ve,j6],(e,t)=>e.reduce((n,s)=>{const o=t.find(a=>a.id===s.styleId),r=o.colors.find(a=>a.id===s.colorId);return o&&r&&n.push({style:o,color:r}),n},[])),fD=m([Ye],e=>e==null?void 0:e.decoration_method),q6=m([ot],e=>(e==null?void 0:e.map(t=>t==null?void 0:t.id).toArray())||[]),I0=m([Ye],e=>!e||!!e.errors),A0=m([Ye],e=>!!(e&&!e.errors)),qe=m([Ye,I0],(e,t)=>t?null:e),y0=m([qe,we],(e,t)=>e==null?void 0:e.colors.find(n=>n.id===t)),X6=m([Ye],e=>e==null?void 0:e.primary_category_name),mD=m([Ye],e=>e==null?void 0:e.primary_category_id),TD=m([qe],e=>e==null?void 0:e.sizes),Wt=m([Ye,we],(e,t)=>T0(e,t)),SD=m([qe,Wt],(e,t)=>(e==null?void 0:e.colors.find(n=>n.id===t.id).sizes)||[]),CD=m([Ye,Wt],(e,t)=>{var n;return((n=e==null?void 0:e.colors)==null?void 0:n.find(s=>s.id===t.id).sizesWithStatus)||[]}),ID=m([y0],e=>e==null?void 0:e.minimum_quantity),AD=m([qe],e=>e==null?void 0:e.minimum_quantity),yD=m([qe],e=>e==null?void 0:e.color_limit),OD=m([qe],e=>e==null?void 0:e.no_halftones),RD=m([Ye],e=>e==null?void 0:e.product_type),O0=m([Ye],e=>e==null?void 0:e.style_type),Tr=m([ot,ve],(e,t)=>t.map((n,s)=>T0(e.get(s),n.colorId)).toArray()),$6=620,DD=m([qe],e=>{var t;return(t=e==null?void 0:e.category_ids)==null?void 0:t.includes($6
183)}),Z6=m([ot],e=>{let t=!0;const n=(e==null?void 0:e.toArray())||[];if(n.length===0||!n[0])return t;const s=n[0].views.map(o=>o.name);return n.slice(1).some(o=>{var a;const r=(a=o==null?void 0:o.views)==null?void 0:a.map(i=>i.name);if(ba(r,s)||(t=!1),!t)return!0}),t}),K6=m([ve,ot,Tr],(e,t,n)=>e.toArray().map((s,o)=>({selection:s,style:t.get(o),color:n[o]}))),J6=m([hr,ot,Tr],(e,t,n)=>e.map((s,o)=>({selection:s,style:t.get(o),color:n[o],visible:s.visible})).filter(s=>s.style&&s.color)),vD=m([K6],e=>(e==null?void 0:e.filter(t=>t.selection.visible))||[]),e8=m([J6],e=>(e==null?void 0:e.filter(t=>t.selection.visible))||[]),t8=m([Ye],e=>!!(e!=null&&e.sponsorship)),PD=m([Ye],e=>!!(e!=null&&e.allow_blank)),LD=m([ve,gn],(e,t)=>e.some(n=>t.find((s,o)=>o===n.get("styleId")&&!s.errors))),ND=m([qe],e=>e&&Object.keys(e).length>0&&e.category_ids.some(t=>t===I5)&&e.colors.length>1),wD=m([qe,A0],(e,t)=>t&&e.colors.length>1&&(!e.specialty||A5.includes(e.id))),bD=A0,Sr=m([Ye],e=>(e==null?void 0:e.decoration_method)==="embroidery"),Hr=m([Ye],e=>e==null?void 0:e.name),MD=m([Ye],e=>e==null?void 0:e.id),Cr=m([Wt,S0],D4),li=m([qe],o0);m([li],Qs);const n8=m([li],e=>Qs(e.filter(t=>t.status==="active"))),UD=m([li],e=>Qs(e.filter(t=>t.status==="active"&&t.singles_enabled)));m([n8],e=>e.length);const s8=m([we,En],(e,t)=>{const n=t.find((s,o)=>o===e);return n==null?void 0:n.reduce((s,o)=>s+o,0)}),o8=m([d6,s8],(e,t)=>t||(e?0:a0)),xD=m([we,Xs,gr],(e,t,n)=>{const s=n&&n.get(e);return t&&(s==null?void 0:s.get("itemPrice"))}),FD=m([we,p6,E6],(e,t,n)=>{const s=n&&n.get(e);return t&&(s==null?void 0:s.get("itemPrice"))}),$s=e=>t=>{const n=oi(e),s=Z6(e),o=(t==null?void 0:t.views.filter(a=>V1.includes(a.name)))||[],r=(t==null?void 0:t.views.filter(a=>Object.keys(ie).includes(a.name)))||[];if(s&&n)return t&&Object.values(ie).map(a=>t.views.find(i=>i.id===a)).filter(a=>a!==void 0);if(s)return o;{const a=r8(e);return a&&n?r.filter(i=>a.includes(i.name)):o.filter(i=>a.includes(i.name))}},VD=m([Q6,$s,ci],(e,t,n)=>[...e.map(s=>({product:s.style,color:s.color,views:t(s.style),isSleeveDecoEligible:n(s.style.id)}))]),kD=e=>{const t=De(e);return $s(e)(t)},r8=m([ot],e=>{const t=e==null?void 0:e.toArray();if(!t||t&&t.length===0)return[];if(t.length===1)return t[0].views;const n={};return t.forEach(o=>{o!=null&&o.views&&o.views.forEach(r=>{n[r.name]||(n[r.name]=0),n[r.name]+=1})}),Object.keys(n).filter(o=>n[o]===t.length)}),fs=m([De,oi],(e,t)=>{var n;return t?(e==null?void 0:e.views)&&Object.values(ie).map(s=>e.views.find(o=>o.id===s)).filter(s=>s!==void 0):(n=e==null?void 0:e.views)==null?void 0:n.filter(s=>V1.includes(s.name))}),Bn=(e,{viewIdentifier:t})=>{var n;return(n=fs(e))==null?void 0:n.find(s=>s.id===t||s.name===t)},HD=m([fs],e=>e.map(t=>({name:t.name,value:t.id}))),GD=m([fs],e=>!!(e!=null&&e.find(t=>{var n;return(n=t==null?void 0:t.name)==null?void 0:n.includes("Sleeve")}))),di=m([qe,fs,At],(e,t=[],n)=>{var s;return $a.includes(n)?t.find(o=>o.id===n):((s=e==null?void 0:e.views)==null?void 0:s.find(o=>o.id===n))||t[0]}),a8=e=>t=>{const s=ot(e).reduce((a,i)=>{if(i&&i.views){const c=i.views.find(l=>l.name===t.name);c&&c.constraint&&a.push(c.constraint)}return a},[]);if(s.length===0)return;const o=s.reduce((a,i)=>i.height<a?i.height:a,s[0].height),r=s.reduce((a,i)=>i.width<a?i.width:a,s[0].width);return{height:o,width:r}},Zs=e=>t=>{if(t===void 0)return;const n=qe(e),s=a8(e)(t);if($a.includes(t.id)){const c=De(e),d=(c&&c.views||[]).find(_=>_.id===t.id);if(d!=null&&d.constraint)return d.constraint}const o=n.views.find(c=>c.name===t.name).constraint,r=o.left+(o.width-s.width)*t.scale/2,a=o.right+(o.width-s.width)*t.scale/2,i=o.bottom+(o.height-s.height)*t.scale/2;return{height:s.height,width:s.width,left:r,right:a,top:o.top,bottom:i}},BD=m([di,qe],(e,t)=>!e||!t||!t.views?void 0:$a.includes(e.id)?e.guidelines:t.views.find(s=>s.name===e.name).guidelines),i8=m([ve,w6],(e,t)=>e.hashCode()!==t),zD=m([ve],e=>e.size>1),ui=m([Re,i0],(e,t)=>t.get(e)),c8=m([Re,z7],(e,t)=>t.get(e)),l8=e=>t=>e.catalog.get("alternatives").toJS()[t],WD=e=>t=>{const n=e.catalog.get("alternatives").toJS()[t],s=xt(e);return(n==null?void 0:n.map(o=>({alternativeId:o,style:s.get(o)})))||[]},fa=e=>t=>{const n=xt(e);return n==null?void 0:n.get(t)},d8=m([ui],e=>(e==null?void 0:e.toArray())||[]),u8=m([c8],e=>(e==null?void 0:e.toArray())||[]),_8=m([ui],e=>e!==void 0),YD=m([ui],e=>(e==null?void 0:e.size)>0),_i=m([Re,W7],(e,t)=>t.get(e)),R0=m([_i],e=>(e==null?void 0:e.toArray())||[]),p8=m([_i],e=>e!==void 0),jD=m([_i],e=>(e==null?void 0:e.size)>0),QD=m([u8,gn],(e,t)=>e.map(s=>({alternativeId:s,style:t.get(s)}))),g8=m([d8,xt,ur],(e,t,n)=>{let s=e.map(r=>({complementId:r,style:t.get(r)}));const o=s.filter(r=>!r.style);return n&&o.length===0&&(s=s.filter(r=>r.style.views.some(a=>a.name==="leftSleeve"||a.name==="rightSleeve"))),s});m([Wt,g8],(e,t)=>t==null?void 0:t.reduce((n,s)=>(n.push(ja({currentColor:e,candidateColors:L7({style:s==null?void 0:s.style})})),n),[]));const D0=m([ve,gn],(e,t)=>e.every(n=>t.get(n.styleId))),qD=m([zt],e=>(e=e.toJS(),Object.keys(e).reduce((t,n)=>(t[n]=!!e[n].find(M1),t),{}))),XD=e=>t=>{const n={},s=xt(e),o=q6(e),r=s.get(t);if(!r)return n;const a=r.name.includes("Tall")?"Tall":r.product_type,c=i0(e).get(t);
183return!c||c.length===0||c.forEach((l,d)=>{const _=s.get(l);if(!_||_.name.includes("Canada"))return;const u=_.name.includes("Tall")?"Tall":_.product_type;["Unisex","Women's"].includes(u)&&d>0||!o.includes(_.id)&&a!==u&&L6.includes(u)&&!n[u]&&(n[u]=_)}),n},E8=({style:e,productColor:t,viewIcons:n,viewColors:s})=>{const o=e&&e.views||[];return s.reduce((r,a,i)=>{if(!o.find(u=>u.id===i))return r;const l=(e&&e.pricing_groups||[]).find(({_id:u})=>(t==null?void 0:t.pricing_group_id)===u)||{},d=wt[i],_=n.get(i);return _&&_.find(M1)?r[d]=l.pricing_factor_f>0?8:5:r[d]=a.size,r},{})},h8={},_t=m([De,lt,zt,Ys],(e,t,n,s)=>t?E8({style:e,productColor:t,viewIcons:n,viewColors:s}):h8),f8=m([_t],e=>{const t=Object.keys(e).filter(n=>e[n]>=3);return t.reduce((n,s)=>e[s]>e[n]?s:n,t[0])}),$D=m([_t,f8],(e,t)=>e[t]),v0=m([De,_t],(e,t)=>{const n=(e==null?void 0:e.color_limit)||1/0;return Object.values(t).some(s=>s>n)}),m8=m([De],e=>(e==null?void 0:e.color_limit)||1/0),T8=m([_t],e=>["leftSleeve","rightSleeve"].some(t=>e[t]>H1)),S8=e=>{const t=di(e),n=Us(e),s=cs(e,n);return s?(s.view_images.find(r=>r.name===t.name)||{}).note:null},ZD=e=>{if(!C8(e))return!1;const t=Ye(e),n=t.colors.find(o=>(o==null?void 0:o.id)===we(e));return!pi({style:t,styleColor:n})&&C0(e)()},C8=e=>{var t;return S8(e)||!oi(e)||!k1.includes(At(e))?!1:!!((t=fs(e))!=null&&t.find(n=>{var s;return(s=n==null?void 0:n.name)==null?void 0:s.includes("Sleeve")}))},I8=m([Ye,we],(e,t)=>{if(!(e!=null&&e.colors)||!t)return!1;const n=e.colors.find(r=>(r==null?void 0:r.id)===t),s=zo(n,wt[ie.leftSleeve]),o=zo(n,wt[ie.rightSleeve]);return(s==null?void 0:s.uri)||(o==null?void 0:o.uri)}),A8=e=>t=>{const n=fr(e);let s=!0;return n.forEach(o=>{const r=P0(e)(o);t!==o&&!r&&(s=!1)}),s},y8=e=>{const t=Wt(e);return P0(e)(t==null?void 0:t.id)},P0=e=>t=>{const n=N6(e),s=ga({productId:t,viewId:ie.leftSleeve}),o=ga({productId:t,viewId:ie.rightSleeve});return!!(n[s]||n[o])},KD=m([ve,si],(e,t)=>{const n=e.size;return t?n>=r0:n>=G1}),L0=m([En],e=>Object.entries(e.toJS()).reduce((t,[n,s])=>{if(!n||!s)return t;const o=Object.keys(s).reduce((i,c)=>i+s[c],0),r=Object.keys(s)[0],a={[r]:o?s[r]:a0};return t[n]=f(f({},s),a),t},{})),O8=m([we,En,dn],(e,t,n)=>{var r,a;let s;if(((r=t==null?void 0:t.find((i,c)=>c===e))==null?void 0:r.reduce((i,c)=>i+c,0))===0){const i=(a=t==null?void 0:t.get(e))==null?void 0:a.map((c,l)=>s?0:(s=l,n));return{[e]:i.toJS()}}return t==null?void 0:t.toJS()}),JD=m([L0],e=>Object.keys(e).reduce((t,n)=>t+Object.keys(e[n]).reduce((s,o)=>s+e[n][o],0),0)),ev=m([R6,Er],(e,t)=>!e||!(e>0)?null:Object.values(t).reduce((s,o)=>s+Object.values(o).reduce((r,a)=>r+a,0),0)<e?fe.REMOVE_NAMES_AND_NUMBERS:null),tv=m([ot],e=>e==null?void 0:e.every(t=>t==null?void 0:t.individual_ship_eligible)),nv=m([Wt],y7),sv=e=>({droppedViewsIds:t})=>{if(!t||!Array.isArray(t))return 0;let n=0;return t.forEach(s=>{const o=Qo({viewInfo:jo(e)({productViewId:s})});o&&(n=o>n?o:n)}),n},ov=e=>()=>{const t=Xs(e),n=p0(e),s=h6(e);if(t&&n)return Math.round((1-n/t)*100);if(s)return s;const o=Qo({viewInfo:jo(e)({productViewId:ie.leftSleeve})})||0,r=Qo({viewInfo:jo(e)({productViewId:ie.rightSleeve})})||0;return o+r},jo=e=>({productViewId:t})=>{const n=De(e),s=$s(e)(n),o=g6(e);if(!s||!o||!t)return null;const r=s.find(i=>(i==null?void 0:i.id)===t);if(!(r!=null&&r.name))return null;const a=o.find((i,c)=>c===r.name);return{id:r.id,name:r.name,sumSubtotalsBefore:a==null?void 0:a.get("sumSubtotalsBefore"),sumSubtotalsAfter:a==null?void 0:a.get("sumSubtotalsAfter")}},rv=e=>()=>I6(e)?Qo({viewInfo:ri(e)}):null,Qo=({viewInfo:e})=>{if(!e)return null;const t=parseFloat(e.sumSubtotalsBefore),n=parseFloat(e.sumSubtotalsAfter);if(isNaN(t)||isNaN(n))return null;const s=Math.round((1-n/t)*100);return s>0?s:null},R8=e=>({droppedProductViewId:t})=>{const n=De(e),s=$s(e)(n);if(!s||!t)return null;const o=s.filter(r=>r.id!==t);return o.length>0?o[0]:null},D8=({icons:e,productViewId:t})=>e.map(n=>n&&(n==null?void 0:n.viewId)===t?n==null?void 0:n.id:null).filter(n=>n!==null),Gr={},v8=e=>(t,n)=>{var i;if(!t||!n)return null;const s=P7({styleId:t,productColorId:n});if(Gr[s])return Gr[s];const o=ot(e),r=(i=o==null?void 0:o.toJS)==null?void 0:i.call(o).find(c=>c.id===t);if(!r)return null;const a=P8({style:r,currentColorId:n});return Gr[s]=a,a},P8=({style:e,currentColorId:t})=>{if(!(e!=null&&e.colors))return null;const n=[];let s=null;for(let o=0;o<e.colors.length;o++){const r=e.colors[o];pi({style:e,styleColor:r})&&n.push(r),t&&(r==null?void 0:r.id)===t&&(s=r)}return n.length>0?ja({currentColor:s,candidateColors:n}):null},pi=({style:e,styleColor:t})=>{var s;if(!e||!t)return!1;let n=!0;
183return(s=e.views)==null||s.forEach(o=>{const r=zo(t,o==null?void 0:o.name);r!=null&&r.uri||(n=!1)}),n},av=m([ot,xt],(e,t)=>{const n={};return e.forEach(s=>{var r,a;const o=t.get((a=(r=v7(s))==null?void 0:r.style_id)==null?void 0:a.toString());o&&(n[o.id]=o)}),n}),iv=m([De],e=>{var t;return(t=e==null?void 0:e.variants)==null?void 0:t.reduce((n,s)=>{var o;return n[s.decoration_method]=(o=s.style_id)==null?void 0:o.toString(),n},{})}),Yt=m([Et],e=>e===ke.LASER_ENGRAVED),N0=m([Re,Et,S0],(e,t,n)=>Yo(e,t,n)),zn=m([N0,lt],(e,t)=>{if(!e||!t)return null;const n=ar(t);return e.enforceColor&&e.enforceColor in B?B[e.enforceColor]:f1(n,zs)}),L8=e=>t=>{const n=Ne(e,{styleId:t});return n?Yo(t,n.decoration_method,n.material):null},N8=e=>(t,n)=>{const s=t.colors.find(a=>a.id===n),o=ar(s),r=L8(e)(t.id);return r?r.enforceColor&&r.enforceColor in B?B[r.enforceColor]:f1(o,zs):null},ms=m([lt,Yt,k6,H6],(e,t,n,s)=>t?n?N4({anchorColor:e})||B.Brown:s?B.Black:B.Gray:null),w8=m([z6],e=>e.every(t=>t==null?void 0:t.allow_blank)),cv=m([v0,w8,js],(e,t,n)=>!!(e||n&&!t)),b8=e=>e.design.present,ft=m([b8,Xe],(e,t)=>e.get(t)),lv=m([ft],e=>e&&e.get("apiVersion")||""),M8=m([ft],e=>e&&e.get("name")||""),dv=m([ft],e=>e&&e.get("email")||""),uv=m([ft],e=>e&&e.get("isCombined")||!1),U8=m([ft],e=>e&&e.get("accountId")||null),gi=m([ft],e=>e&&e.get("compositeId")),x8=m([ft],e=>e&&e.get("designIdeaId")),F8=m([ft],e=>e&&e.get("canUpdate")),_v=m([ft],e=>e&&e.get("lastUpdatedAt")),w0=m([ft],e=>e&&e.get("fetching")),Ts=m([ei,i8,js],(e,t,n)=>e&&!n||t&&!n),pv=m([ft],e=>
183e&&{name:e.get("name"),compositeId:e.get("compositeId")}),Ks=m([ft],e=>{var t;return(t=e==null?void 0:e.get("inkMatches"))==null?void 0:t.toJS()}),b0=m([Ks],(e={})=>Object.keys(e).length),V8={afterSavePath:"/",orderOptionsPath:"/next",orderType:"order-options",afterUpdateQtyFixNoSinglesIntlPath:""},M0=Fn({name:"path",initialState:V8,reducers:{resetAfterSavePath:e=>R(f({},e),{afterSavePath:"/"}),setAfterSavePath:(e,t)=>R(f({},e),{afterSavePath:t.payload}),setOrderOptionsPath:(e,t)=>R(f({},e),{orderOptionsPath:t.payload}),setOrderType:(e,t)=>R(f({},e),{orderType:t.payload}),setAfterUpdateQtyFixNoSinglesIntlPath:(e,t)=>R(f({},e),{afterUpdateQtyFixNoSinglesIntlPath:t.payload})}}),k8=M0.reducer,{resetAfterSavePath:gv,setAfterSavePath:Ev,setOrderOptionsPath:H8,setOrderType:hv,setAfterUpdateQtyFixNoSinglesIntlPath:fv}=M0.actions,mv=e=>e.path.orderOptionsPath,Tv=e=>e.path.orderType,Sv=e=>e.path.afterSavePath,Cv=e=>e.path.afterUpdateQtyFixNoSinglesIntlPath,G8=["Access is denied","avast_submit",'Blocked a frame with origin "https://www.customink.com"',"ios 8.1.1 does not have a working localStorage.setItem","Can't find variable: hilitor","Design Icon failed to load","event is not defined","Failed to fetch","fidoCallback","frame is null","gCrWeb.autofill","InvalidStateError","Not enough storage is available to complete this operation","Script error","SW registration failed","TypeError: Can't call method on undefined","TypeError: null is not an object","unhandled rejection was null or undefined","TypeError: Cannot get property 'drawImage' of undefined or null","TypeError: Cannot get property 'clearRect' of undefined or null",/Failed to execute '.*' on 'CanvasRenderingContext2D'/,/null is not an object \(evaluating '..scale'\)/,/null is not an object \(evaluating '..clearRect'\)/,/Error: Minified React error/,/reading 'addPageAction'/,/ttd_dom_ready is not defined/,/reading 'publishMetrics'/,/getRestrictions is not a function/,/AutofillCallbackHandler/,/Cannot convert object to primitive value/,/No default value/,/Unable to preload CSS for/,"ResizeObserver loop completed with undelivered notifications."];let U0=null;const B8=e=>{U0=e},z8=()=>U0;function W8(e){e.data={internalUser:dt.get("internal"),logRocketSessionUrl:z8()};const o=e.custom||{},{fingerprint:t,title:n}=o,s=ct(o,["fingerprint","title"]);t&&(e.fingerprint=t),n&&(e.title=n),(t||n)&&(e.custom=s)}function Y8(e,t,n){var a,i;const s=(a=n==null?void 0:n.body)==null?void 0:a.trace,o=((i=s==null?void 0:s.exception)==null?void 0:i.class)||"";return!!(((s==null?void 0:s.frames)||[]).some(c=>/newrelic[\\/]browser-agent/.test(c.filename||""))||o==="AbortError")}const z=new Qd({accessToken:"63a92315a36348eb89888d24c51e1dea",captureUncaught:!0,captureUnhandledRejections:Ga,enabled:!0,hostSafeList:["customink.com"],ignoredMessages:G8,checkIgnore:Y8,transform:W8,payload:{environment:"production",client:{javascript:{source_map_enabled:!0,code_version:"41957b0499355eeaa005418fc77745d2301421bb",guess_uncaught_frames:!0}}}}),ds={SET_PREFER_SINGLES:"account/SET_PREFER_SINGLES",UPDATE_INTERNAL_USER:"account/UPDATE_INTERNAL_USER",UPDATE_SDFU:"account/UPDATE_SDFU"},j8=h(ds.SET_PREFER_SINGLES),Q8=h(ds.UPDATE_INTERNAL_USER);function Iv({id:e,optIn:t}){return n=>window.fetch(`${K.accounts}/account/sdfu`,{method:"post",headers:{"Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},body:JSON.stringify({id:e,sdfu:t?1:0})}).then(s=>n({type:ds.UPDATE_SDFU,payload:{status:s}})).catch(s=>{z.warning("External Service Failure: SDFU",s),n({type:ds.UPDATE_SDFU,payload:{status:s}})})}const Ei={UPDATE_LAB_MODE:"labMode/UPDATE_LAB_MODE"};function q8(){return e=>{e({type:Ei.UPDATE_LAB_MODE,payload:q4()})}}function Av(){return e=>{e({type:Ei.UPDATE_LAB_MODE,payload:Wo})}}const tt={UPDATE_CART_MODE:"config/UPDATE_CART_MODE",UPDATE_CART_COOKIE:"config/UPDATE_CART_COOKIE",UPDATE_LAB_EXIT_WARNING_ELIGIBILITY:"config/UPDATE_LAB_EXIT_WARNING_ELIGIBILITY",UPDATE_LAST_SAVED:"config/UPDATE_LAST_SAVED",UPDATE_STREAMLINED_MOBILE_MODE:"config/UPDATE_STREAMLINED_MOBILE_MODE",UPDATE_STREAMLINED_MOBILE_INTENT:"config/UPDATE_STREAMLINED_MOBILE_INTENT",SET_CLIPART_RECOLORING:"config/SET_CLIPART_RECOLORING",SET_SLEEVE_PRINT_OVERRIDE:"config/SET_SLEEVE_PRINT_OVERRIDE"},bo=e=>e.account.internal,yv=e=>e.account.country,Ov=e=>e.account.preferSingles,Te={ACTIVATE_SLEEVE_PRINT:"canvas/ACTIVATE_SLEEVE_PRINT",CHANGE_THRESHOLD:"canvas/CHANGE_THRESHOLD",CHANGE_VIEW:"canvas/CHANGE_VIEW",CLEAR:"canvas/CLEAR",CLEAR_RECENT_UPLOADS:"canvas/CLEAR_RECENT_UPLOADS",DISABLE:"canvas/DISABLE",ICON_RENDERED:"canvas/ICON_RENDERED",REMAP_ICONS_VIEW:"canvas/REMAP_ICONS_VIEW",REMOVE_RECENT_UPLOAD:"canvas/REMOVE_RECENT_UPLOAD",SET_DISABLE_ARROW_KEYS:"canvas/SET_DISABLE_ARROW_KEYS",SET_LAB_BLANK_LOAD:"canvas/SET_LAB_BLANK_LOAD",SHOW_DESIGN:"canvas/SHOW_DESIGN"},X8=e=>e.font.get("fontSearchHistory"),$8=e=>e.font.get("categories"),Rv=e=>e.font.get("previousFontCategory"),x0=e=>e.font.get("fonts"),Dv=e=>e.font.get("scrollToFont"),Z8=e=>e.font.get("fontAutofillData"),vv=e=>e.font.get("isFontClickedFromDropdown"),Pv=e=>t=>{const n=x0(e).get("Popular");return n?n.some(s=>s.displayName===t):!1},Lv=m([X8],e=>e.toArray()),Le={CATEGORY_LOADED:"font/CATEGORY_LOADED",CATEGORY_FAILED:"font/CATEGORY_FAILED",CATEGORIES_LOADED:"font/CATEGORIES_LOADED",CATEGORIES_FAILED:"font/CATEGORIES_FAILED",FONT_AUTOFILL_DATA_LOADED:"font/FONT_AUTOFILL_DATA_LOADED",FONT_IS_CLICKED_FROM_DROPDOWN:"font/FONT_IS_CLICKED_FROM_DROPDOWN",LOADING_RESULTS:"font/LOADING_RESULTS",LOAD_FONT_SEARCH_HISTORY:"font/LOAD_FONT_SEARCH_HISTORY",SET_SCROLL_TO_FONT:"font/SET_SCROLL_TO_FONT",UPDATE_FONT_SEARCH_HISTORY:"font/UPDATE_FONT_SEARCH_HISTORY",UPDATE_PREVIOUS_CATEGORY:"font/UPDATE_PREVIOUS_CATEGORY"};class Ir extends Ct({category:"",displayName:"",extension:"",format:"",heightOffset:0,latestVersion:"",minSize:0,name:"",strokeType:"",supportsOutline:!0}){constructor(t){const o=t,{strokeType:n}=o,s=ct(o,["strokeType"]);super(R(f({},s),{strokeType:n,supportsOutline:!/\b(no|thin)\b/i.test(n)}),"FontCategory")}}function K8(e){return e.map(t=>new Ir(t))}const Nv=h(Le.FONT_IS_CLICKED_FROM_DROPDOWN),wv=h(Le.UPDATE_FONT_SEARCH_HISTORY),F0=h(Le.LOADING_RESULTS),bv=h(Le.SET_SCROLL_TO_FONT),J8=h(Le.CATEGORY_LOADED,void 0,({category:e})=>({fontCategory:e}));function k2(e){return z.warning("External Service Failure: Font Category",e),{type:Le.CATEGORY_FAILED,payload:e,error:!0}}const e9=h(Le.CATEGORIES_LOADED,void 0,()=>{}),t9=h(Le.UPDATE_PREVIOUS_CATEGORY,void 0,({category:e})=>({fontCategory:e}));function H2(e){return z.warning("External Service Failure: Font Categories",e),{type:Le.CATEGORIES_FAILED,payload:e,error:!0}}function Mv({cat:e}){return t=>t(t9({category:e}))}function Uv({cat:e}){return(t,n)=>{const s=n(),o=x0(s).get(e);if(o&&o.length>0)return Promise.resolve(!0);t(F0());const r=K.fonts+`/1.json?name=${e}`;return window.fetch(r).then(a=>a.ok?a.json().then(i=>{t(J8({category:e,resource:K8(i)}))}):t(k2(a))).catch(a=>t(k2(a)))}}function xv(){return(e,t)=>{const n=t();if($8(n).All>0)return;e(F0());const o=K.fonts;return window.fetch(o).then(r=>r.ok?r.json().then(a=>e(e9({resource:a}))):e(H2(r))).catch(r=>e(H2(r)))}}function n9(){return(e,t)=>{const n=t(),s=K.fonts;let o=Z8(n);if(!o.length){const r=window.fetch(s).then(i=>i.json()),a=window.fetch(s+"/1.json?name=All").then(i=>i.json());Promise.all([r,a]).then(([i,c])=>
183(m7(),Object.keys(i).map(l=>{o.push({fontCategory:l})}),o=[...o,...c],e({type:Le.FONT_AUTOFILL_DATA_LOADED,payload:o})))}}}const G2=648,s9=.9,V0="addProductMissingAreas",o9="buyBlankFromStore",r9="changePrintMethodWarning",Ar="colorChangePantoneWarning",k0="debossDesignTips",H0="embroideryDesignTips",a9="epoxyDomeDesignTips",i9="foilStampDesignTips",c9="padPrintDesignTips",l9="screenDesignTips",G0="needDeleteSleeveDesignWarning",B0="designLoadError",z0="embossDesignTips",W0="failedLoadSleeveProductImage",Y0="fontOutlineUnsupported",j0="fontPixelWidthError",d9="fundraisingLoadError",Q0="inactiveProduct",u9=36,q0="incompatibleNamesAndNumbers",X0="laserEngravingDesignTips",_9="minQtyInternationalShipping",$0="mutliStyleNamesAndNumbers",Z0="namesAndNumbersMultipleColors",K0="pantoneDisabledWarning",p9="quoteWithoutDesign",g9="removePantoneWarning",J0="retiredProductColor",hi="serviceUnavailable",el="sizesUnavailableWarning",tl="styleLoadError",yr="swapProductMismatchedAreas",nl="swapIncompatibleProductsWarning",fi="incompatibleDecoMethodProductsWarning",E9="tooManyProducts",mi="tooManySleeveColors",sl="tooManyColors",h9="unsupportedDesignAreasWarning",ol="invalidUpload",f9="uploadDimensionsTooLarge",an="uploadFileUnsupported",Js="uploadFilesizeTooLarge",eo="uploadFilesizeTooSmall",on="uploadFileTimeout",Ti="photoQualityOnEmbroidery",Fv=Object.freeze(Object.defineProperty({__proto__:null,ADD_PRODUCT_MISSING_AREAS:V0,BUY_BLANK_FROM_STORE:o9,CHANGE_PRINT_METHOD_WARNING:r9,COLOR_CHANGE_PANTONE_WARNING:Ar,DEBOSS_DESIGN_TIPS:k0,DELETE_SLEEVE_DESIGN_WARNING:G0,DESIGN_LOAD_ERROR:B0,EMBOSS_DESIGN_TIPS:z0,EMBROIDERY_DESIGN_TIPS:H0,EPOXY_DOME_DESIGN_TIPS:a9,FAILED_LOAD_SLEEVE_PRODUCT_IMAGE:W0,FOIL_STAMP_DESIGN_TIPS:i9,FONT_OUTLINE_UNSUPPORTED:Y0,FONT_PIXEL_WIDTH_ERROR:j0,FUNDRAISING_LOAD_ERROR:d9,INACTIVE_PRODUCT:Q0,INACTIVE_PRODUCT_MAX_NAME_LENGTH:u9,INCOMPATIBLE_DECO_METHOD_PRODUCTS_WARNING:fi,INCOMPATIBLE_NAMES_AND_NUMBERS:q0,LASER_ENGRAVING_DESIGN_TIPS:X0,MIN_QTY_INTERNATIONAL_SHIPPING:_9,MULTI_STYLE_NAMES_AND_NUMBERS:$0,NAMES_NUMBERS_MULTI_COLOR:Z0,PAD_PRINT_DESIGN_TIPS:c9,PANTONE_DISABLED_WARNING:K0,PHOTO_QUALITY_ON_EMBROIDERY:Ti,QUOTE_WITHOUT_DESIGN:p9,REMOVE_PANTONE_WARNING:g9,RETIRED_PRODUCT_COLOR:J0,SCREEN_DESIGN_TIPS:l9,SERVICE_UNAVAILABLE:hi,SIZES_UNAVAILABLE_WARNING:el,STYLE_LOAD_ERROR:tl,SWAP_INCOMPATIBLE_PRODUCTS_WARNING:nl,SWAP_PRODUCT_MISMATCHED_AREAS:yr,TOO_MANY_COLORS:sl,TOO_MANY_PRODUCTS:E9,TOO_MANY_SLEEVE_COLORS:mi,UNSUPPORTED_DESIGN_AREAS_WARNING:h9,UPLOAD_DIMENSIONS_TOO_LARGE:f9,UPLOAD_FILESIZE_TOO_LARGE:Js,UPLOAD_FILESIZE_TOO_SMALL:eo,UPLOAD_FILE_TIMEOUT:on,UPLOAD_FILE_UNSUPPORTED:an,UPLOAD_INVALID:ol},Symbol.toStringTag,{value:"Module"})),M={ADD_TEXT:"text/ADD_TEXT",UPDATE_TEXT:"text/UPDATE_TEXT",UPDATE_FONT:"text/UPDATE_FONT",UPDATE_FONT_CATEGORY:"text/UPDATE_FONT_CATEGORY",REPOSITION_FOR_TEXT_EFFECTS:"text/REPOSITION_FOR_TEXT_EFFECTS",UPDATE_FONT_HEIGHT:"text/UPDATE_FONT_HEIGHT",UPDATE_OUTLINE:"text/UPDATE_OUTLINE",UPDATE_EFFECT:"text/UPDATE_EFFECT",RESET_TEXT:"text/RESET_TEXT",UPDATE_LAST_TEXT:"text/UPDATE_LAST_TEXT",VERIFY_DIMENSIONS:"text/VERIFY_DIMENSIONS",VERIFY_ERROR:"text/VERIFY_ERROR",VERIFY_SUCCESS:"text/VERIFY_SUCCESS",AUTO_RESIZE:"text/AUTO_RESIZE",RESIZE_BLOCKED:"text/RESIZE_BLOCKED",MINIMUM_TEXT_SIZE_WARNING:"text/MINIMUM_TEXT_SIZE_WARNING",SET_RESIZE_ATTEMPTED_BELOW_MINIMUM:"text/SET_RESIZE_ATTEMPTED_BELOW_MINIMUM",CLEAR_RESIZE_ATTEMPT:"text/CLEAR_RESIZE_ATTEMPT"};function rl(e){return{x:-(e.width/2),y:-(e.height/2)}}function al(e,t,n,s){const o=n===ir.APPAREL,{width:r,height:a}=e,{originalImageWidth:i,originalImageHeight:c}=t;if(!i||!c){const D=Math.min(r,a);return{x:0,y:0,width:D,height:D}}const l={smaller:Math.min(r,a),larger:Math.max(r,a)},d=l.smaller<=O5,_=i/c,u=_>1;let E=o&&!d?C2.CONSTRAINT_RATIO:1;s||(E=y5);const T=u&&!o?l.larger:l.smaller,O=Number((T*E).toFixed(1)),I=m9(O,_),A=o&&s&&!d?T9(a,I.height,C2.TOP_OFFSET_INCHES):0;return f({x:0,y:A},I)}function m9(e,t){return t>1?{width:e,height:e/t}:{height:e,width:e*t}}function T9(e,t,n){const s=e/2,o=t/2;return-(s-o-n)}function Si(e){return e.reduce((t,n,s)=>(t[s]=I9(n),t),{})}function S9(e,t){return Object.keys(e).reduce((n,s)=>(n[s]=A9(e[s],t[s]),n),{})}function C9(e,t){return Object.keys(e).reduce((n,s)=>{const{top:o,left:r,bottom:a,right:i}=e[s],c=t[s],l=-1*(c.height/2),d=c.height/2,_=-1*(c.width/2),u=c.width/2;return n[s]=o>=l&&a<=d&&r>=_&&i<=u,n},{})}function I9(e){const t=e.map(_=>_.x-_.width/2),n=e.map(_=>_.y-_.height/2),s=e.map(_=>_.x+_.width/2),o=e.map(_=>_.y+_.height/2),r=Math.min(...t),a=Math.min(...n),i=Math.max(...s),c=Math.max(...o),l=i-r,d=c-a;return{top:a,bottom:c,left:r,right:i,width:l,height:d}}function A9(e,t){return e.width<=t.width&&e.height<=t.height}function y9(e,t,n,s){let o=Math.max(e*n,1);switch(s==="info"&&(o=Math.ceil(o)),t){case"NAMES":case"NUMBERS":return o*1.25;default:return o>=G2?G2:o}}function il(e,t=1,n="gen",s){const o=f(f(f(f(f(f(f({},O9(e,t,n,s)),R9(e)),v9(e)),P9(e)),L9(e)),b9(e)),D9(e,t)),r=M9(n);return Mt(r,o,"op")}function O9(e,t,n,s){const o=e.value||"",r=e.fontHeight||W.TEXT.DEFAULTS.FONT_HEIGHT;return{fnt:e.font||W.TEXT.DEFAULTS.FONT_NAME,ht:y9(r,e.type,t,n),sf:s||t,txt:o.replace(/\s*$/,"")}}function R9(e){const t=e.color||{};return{r:t.r||0,g:t.g||0,b:t.b||0}}
183function D9(e,t){const{fit:n,naturalWidth:s,naturalHeight:o}=e;return n==="occupy"?{fit:n,height:o*t,width:s*t}:{}}function v9(e){return{a:e.align||W.TEXT.DEFAULTS.ALIGNMENT}}function P9(e){return{ro:e.rotation||W.TEXT.DEFAULTS.ROTATION,lr:!1}}function L9(e){return f(f({},N9(e)),w9(e))}function N9(e){const t={as:1,st:e.outlineWidth};return e.outlineWidth?t:{}}function w9(e){const t=new Ke(e.color||{}),n=e.outlineColor||{},s={s_r:n.r||0,s_g:n.g||0,s_b:n.b||0,cf:We(t)};return e.outlineColor?s:{}}function b9(e){const t={ef:e.effectType,efs:e.effectSetting};return e.effectType?t:{}}function M9(e){return`${K.foundry}/${e}`}const Vv=e=>(t,n)=>{var A,D;const s=n(),o=zn(s),r=Xe(s),a=e.iconId||ye(),i=Ka(s),c=cr(s),l=Sr(s),d=Bn(s,{viewIdentifier:e.viewId}),_=Zs(s)(d),u={};l&&(u.font=W.TEXT.DEFAULTS.EMBROIDERY_FONT_NAME,u.fontCategory=W.TEXT.DEFAULTS.EMBROIDERY_FONT_CATEGORY,u.fontName=W.TEXT.DEFAULTS.EMBROIDERY_FONT_DISPLAY),c&&(c.rendered=!1);const{x:E,y:T}=rl(_),O=R(f(f(f({},u),c),e),{color:o||i||e.defaultColor,id:a,x:E,y:T});O.outlineColor&&(O.outlineColor=f7(O,lr(s).toArray(),o7(s),kn(s),r7(s))),(o||Yt(s))&&s0({iconType:W.TYPES.text,iconData:O,decorationOverrideColor:o||ms(s)}),t({type:M.ADD_TEXT,payload:{designId:r,iconId:a,icon:O}});const I=new Ir({displayName:(A=O.fontName)!=null?A:W.TEXT.DEFAULTS.FONT_DISPLAY,name:(D=O.font)!=null?D:W.TEXT.DEFAULTS.FONT_NAME});t({type:Le.UPDATE_FONT_SEARCH_HISTORY,payload:I})},kv=h(M.UPDATE_EFFECT),Hv=h(M.REPOSITION_FOR_TEXT_EFFECTS),Gv=e=>(t,n)=>{if(!e.fontMinHeight)return!1;const s=n(),o=Ve(s).find(i=>i.id===e.iconId).toJS(),{printScaleFactor:r,constraint:a}=Bn(s,{viewIdentifier:o.viewId});return o.font=e.font,o.fontHeight=e.fontMinHeight,window.fetch(il(o,r,"info"),{credentials:"omit"}).then(i=>i.json()).then(i=>i.width>a.width*r).catch(i=>{i.iconId=o.id,t(h(M.VERIFY_ERROR)(R(f({},i),{iconId:o.id})))})},Bv=h(M.UPDATE_FONT,e=>e,({outlineError:e,fontPixelWidthError:t,fontName:n})=>{const s=e||t;let o=null;return e?o=Y0:t&&(o=j0),{confirmationRequired:s,notification:{key:o,fontName:n}}}),zv=(e,t,n,s=!1,o=W.TEXT.DEFAULTS.MIN_FONT_HEIGHT)=>r=>{const{id:a,height:i,type:c,width:l,fontHeight:d}=e;let _=t,u=s;t<o&&(_=o,u=!0);const{height:E,width:T}=n,O=_/d,I=O*l,A=O*i;if(I>T||A>E){const D=T/l,v=E/i,w=Math.min(D,v);_=Lt(w*d*s9,2)}u&&r(cl()),r(k9(a,_,c,u))},U9=h(M.RESIZE_BLOCKED),x9=h(M.AUTO_RESIZE),F9=h(M.MINIMUM_TEXT_SIZE_WARNING),cl=h(M.SET_RESIZE_ATTEMPTED_BELOW_MINIMUM),V9=h(M.CLEAR_RESIZE_ATTEMPT),k9=h(M.UPDATE_FONT_HEIGHT,(e,t,n,s=!1)=>({iconId:e,fontHeight:t,iconType:n,attemptedBelowMinimum:s})),Wv=e=>(t,n)=>{const s=n(),o=Yt(s)?ms(s):Cr(s);return t({type:M.UPDATE_OUTLINE,payload:R(f({},e),{defaultIconColor:o})})},Yv=h(M.UPDATE_TEXT),jv=e=>(t,n)=>{const s=n(),o=Yt(s)?ms(s):Cr(s);return t({type:M.RESET_TEXT,payload:R(f({},e),{defaultIconColor:o})})},H9=(e,t)=>n=>{const s={type:M.VERIFY_SUCCESS,payload:{iconId:e.id,designIndex:t}};return n(s)},G9=(e,t,n)=>(s,o)=>{const{printScaleFactor:r}=Bn(o(),{viewIdentifier:e.viewId}),a=h(M.VERIFY_DIMENSIONS,i=>({iconId:i,designIndex:n}));return s(a(e.id)),window.fetch(il(e,r,"info"),{credentials:"omit"}).then(i=>i.json()).then(i=>{const{width:c}=i,d=Lt(c/r)/e.width*e.fontHeight,_=h(M.VERIFY_SUCCESS,()=>({fontHeight:d,iconId:e.id,designIndex:n}));s(_(i))}).catch(i=>{i.iconId=e.id,s(h(M.VERIFY_ERROR)(R(f({},i),{iconId:e.id,designIndex:n})))})},B9=e=>t=>P(void 0,null,function*(){if(e.fontCategory&&e.fontCategory.length>0)return;const n=yield window.fetch(`${K.font_info}/${e.font}.json`);if(n.ok){const s=yield n.json(),o=new Ir(s),r=encodeURIComponent(o.category);t({type:M.UPDATE_FONT_CATEGORY,payload:{iconId:e.id,fontCategory:r,fontOutlineAllowed:o.supportsOutline}})}}),Or=(e,t)=>n=>{n({type:Te.CHANGE_VIEW,payload:e,meta:t})},Qv=h(Te.CLEAR),qv=h(Te.SET_DISABLE_ARROW_KEYS),ma=(e,t)=>n=>{n({type:Te.ACTIVATE_SLEEVE_PRINT,payload:e,meta:t})},Xv=h(Te.REMOVE_RECENT_UPLOAD),z9=h(Te.SET_LAB_BLANK_LOAD),$v=e=>(t,n)=>{const{iconId:s,width:o,height:r,viewportScale:a,originalBaseWidth:i,originalBaseHeight:c}=e;if(t({type:Te.ICON_RENDERED,payload:{iconId:s,width:o,height:r,viewportScale:a,originalBaseWidth:i,originalBaseHeight:c}}),o||r){const l=Ve(n()).find(d=>d.id===s);l&&(Fe(l)||gs(l))&&!l.verifying&&(l.converted?t(H9(l,a)):t(G9(l)))}},W9=()=>(e,t)=>{const n=t(),s=Re(n),o=ci(n)(s),r=j5(n);ii(n)&&o&&!r&&e(ma(!0))},g={ADD_ART:"analytics/ADD_ART",ART_BROWSE:"analytics/ART_BROWSE",ADD_COMPLEMENT:"analytics/ADD_COMPLEMENT",ADD_DESIGN:"analytics/ADD_DESIGN",ADD_ITEMS:"analytics/ADD_ITEMS",ADD_ITEMS_CLOSE:"analytics/ADD_ITEMS_CLOSE",ADD_ITEMS_COLOR_CLOSE:"analytics/ADD_ITEMS_COLOR_CLOSE",ADD_ITEMS_COLOR:"analytics/ADD_ITEMS_COLOR",ADD_ITEMS_PICK_STYLE:"analytics/ADD_ITEMS_PICK_STYLE",ADD_ITEMS_QUOTE:"analytics/ADD_ITEMS_QUOTE",ADD_ITEMS_SELECT_COLOR:"analytics/ADD_ITEMS_SELECT_COLOR",ADD_ITEMS_BROWSE_MORE:"analytics/ADD_ITEMS_BROWSE_MORE",ADD_TEXT:"analytics/ADD_TEXT",ART_CLOSE:"analytics/ART_CLOSE",ART_PALETTE:"analytics/ART_PALETTE",ART_SWAP:"analytics/ART_SWAP",ART_CHANGE_COLOR:"analytics/ART_CHANGE_COLOR",ART_RESET_COLOR:"analytics/ART_RESET_COLOR",ART_TOOLS:"analytics/ART_TOOLS",BUY_FORM:"analytics/BUY_FORM",BUY_WITH_GOF:"analytics/BUY_WITH_GOF",BUY_WITH_GOF_QUOTE_START:"analytics/BUY_WITH_GOF_QUOTE_START",BUY_WITH_GOF_QUOTE_COMPLETE:"analytics/BUY_WITH_GOF_QUOTE_COMPLETE",CHANGE_PRODUCT_COLOR_START:"analytics/CHANGE_PRODUCT_COLOR_START",CHANGE_PRODUCT_START:"analytics/CHANGE_PRODUCT_START",CHANGE_TEXT_EFFECT:"analytics/CHANGE_TEXT_EFFECT",CHANGE_TEXT_OUTLINE:"analytics/CHANGE_TEXT_OUTLINE",CHANGE_TEXT_OUTLINE_COMPLETE:"analytics/CHANGE_TEXT_OUTLINE_COMPLETE",CHAT:"analytics/CHAT",COLOR_CTA_CLICK:"analytics/COLOR_CTA_CLICK",COLOR_WHEEL:"analytics/COLOR_WHEEL",CURRENT_PATH_PAGE_VIEW_TAG:"analytics/CURRENT_PATH_PAGE_VIEW_TAG",DESIGN_TOOLS_OPEN:"analytics/DESIGN_TOOLS_OPEN",DESIGN_TOOLS_SELECT:"analytics/DESIGN_TOOLS_SELECT",DESIGN_TOOLS_CLOSE:"analytics/DESIGN_TOOLS_CLOSE",DISCONTINUED_PRODUCT:"analytics/DISCONTINUED_PRODUCT",DISCONTINUED_PRODUCT_COLOR:"analytics/DISCONTINUED_PRODUCT_COLOR",ENTER_POSTAL_CODE:"analytics/ENT
183ER_POSTAL_CODE",FONT_BROWSE_SEE_MORE:"analytics/FONT_BROWSE_SEE_MORE",FUNDRAISING_NAVIGATION:"analytics/FUNDRAISING_NAVIGATION",FUNDRAISING_CAMPAIGN_CLOSED:"analytics/FUNDRAISING_CAMPAIGN_CLOSED",FUNDRAISING_MODE_WELCOME:"analytics/FUNDRAISING_MODE_WELCOME",FUNDRAISING_MODE_GOALS:"analytics/FUNDRAISING_MODE_GOALS",HELP_CALL:"analytics/HELP_CALL",HELP_EMAIL:"analytics/HELP_EMAIL",HELP_FEEDBACK:"analytics/HELP_FEEDBACK",HELP_MENU:"analytics/HELP_MENU",HELP_VISIT_FULL_SITE:"analytics/HELP_VISIT_FULL_SITE",HIDE_CONTEXTUAL_TOOLS:"analytics/HIDE_CONTEXTUAL_TOOLS",LOAD_WITHOUT_DESIGN:"analytics/LOAD_WITHOUT_DESIGN",ORDER_MORE_ADD_STYLES:"analytics/ORDER_MORE_ADD_STYLES",ORDER_MORE_ADD_ITEMS_ADD_STYLES:"analytics/ORDER_MORE_ADD_ITEMS_ADD_STYLES",ORDER_MORE_STYLES_ADDED:"analytics/ORDER_MORE_STYLES_ADDED",ORDER_MORE_QUOTE_ADD_STYLES:"analytics/ORDER_MORE_QUOTE_ADD_STYLES",NAMES_AND_NUMBERS:"analytics/NAMES_AND_NUMBERS",NAMES_AND_NUMBERS_COLORS:"analytics/NAMES_AND_NUMBERS_COLORS",NAMES_AND_NUMBERS_CLOSE:"analytics/NAMES_AND_NUMBERS_CLOSE",NAMES_AND_NUMBERS_GET_STARTED:"analytics/NAMES_AND_NUMBERS_GET_STARTED",NAMES_AND_NUMBERS_POSITION:"analytics/NAMES_AND_NUMBERS_POSITION",NAMES_AND_NUMBERS_REDIRECT:"analytics/NAMES_AND_NUMBERS_REDIRECT",NAMES_AND_NUMBERS_LIST:"analytics/NAMES_AND_NUMBERS_LIST",NAMES_AND_NUMBERS_ALERT:"analytics/NAMES_AND_NUMBERS_ALERT",NAMES_AND_NUMBERS_COMPLETE:"analytics/NAMES_AND_NUMBERS_COMPLETE",NAMES_AND_NUMBERS_EDIT:"analytics/NAMES_AND_NUMBERS_EDIT",NDX_BREAKPOINT:"analytics/NDX_BREAKPOINT",NDX_START:"analytics/NDX_START",NEXT_GOF:"analytics/NEXT_GOF",NEXT_FUNDRAISING:"analytics/NEXT_FUNDRAISING",NEXT:"analytics/NEXT",PRINT_THIS:"analytics/PRINT_THIS",PRODUCT_COLOR_CHANGED:"analytics/PRODUCT_COLOR_CHANGED",PRODUCT_COLOR_NOT_CHANGED:"analytics/PRODUCT_COLOR_NOT_CHANGED",PRODUCT_COLOR_TAB_CHANGED:"analytics/PRODUCT_COLOR_TAB_CHANGED",PRODUCT_COLOR_TOGGLE_CHANGED:"analytics/PRODUCT_COLOR_TOGGLE_CHANGED",PRODUCT_COLOR:"analytics/PRODUCT_COLOR",PRODUCT_CATALOG:"analytics/PRODUCT_CATALOG",PRODUCT_DETAILS:"analytics/PRODUCT_DETAILS",PRODUCT_PRINT_AREA:"analytics/PRODUCT_PRINT_AREA",PRODUCT_SUMMARY:"analytics/PRODUCT_SUMMARY",PRODUCT_SUMMARY_CAROUSEL:"analytics/PRODUCT_SUMMARY_CAROUSEL",PRODUCT_SUMMARY_TAG:"analytics/PRODUCT_SUMMARY_TAG",PRODUCT_WELCOME:"analytics/PRODUCT_WELCOME",QUOTE_FORM_POSTAL_CODE_CHANGE:"analytics/QUOTE_FORM_POSTAL_CODE_CHANGE",QUOTE_FORM_START:"analytics/QUOTE_FORM_START",QUOTE_STATE_CHANGE:"analytics/QUOTE_STATE_CHANGE",QUOTE_WCIBMO:"analytics/QUOTE_WCIBMO",REAL_TIME_PRICE_CHANGE:"analytics/REAL_TIME_PRICE_CHANGE",REAL_TIME_PRICE_QUANTITY_CHANGE:"analytics/REAL_TIME_PRICE_QUANTITY_CHANGE",SAVE_FORM:"analytics/SAVE_FORM",SAVE_ADD_CART_ATTEMPT:"analytics/SAVE_ADD_CART_ATTEMPT",SAVE_ADD_CART:"analytics/SAVE_ADD_CART",SELECT_FONT:"analytics/SELECT_FONT",SHARE_FACEBOOK:"analytics/SHARE_FACEBOOK",SHARE_EMAIL:"analytics/SHARE_EMAIL",SHARE_LINK:"analytics/SHARE_LINK",SHARE_PINTEREST:"analytics/SHARE_PINTEREST",SHARE_TWITTER:"analytics/SHARE_TWITTER",SLEEVE_ERROR_FUNDRAISING:"analytics/SLEEVE_ERROR_FUNDRAISING",SLEEVE_ERROR_GOF:"analytics/SLEEVE_ERROR_GOF",SLEEVE_PRINT_ACTIONS:"analytics/SLEEVE_PRINT_ACTIONS",SLEEVE_PRINT_MODAL:"analytics/SLEEVE_PRINT_MODAL",SLEEVE_PRINT_NO_SLEEVE_IMAGE_SELECTED_PRODUCT:"analytics/SLEEVE_PRINT_NO_SLEEVE_IMAGE_SELECTED_PRODUCT",SLEEVE_PRINT_PRICE_INFO:"analytics/SLEEVE_PRINT_PRICE_INFO",SLEEVE_PRINT_REMOVE_DESIGN:"analytics/SLEEVE_PRINT_REMOVE_DESIGN",SLEEVE_PRINT_UNDO_REMOVE_DESIGN:"analytics/SLEEVE_PRINT_UNDO_REMOVE_DESIGN",START_POSTAL_CODE_UPDATE:"analytics/START_POSTAL_CODE_UPDATE",SUBTLETY_CHECK:"analytics/SUBTLETY_CHECK",SWAP_PRODUCT_WARNING:"analytics/SWAP_PRODUCT_WARNING",TEXT_EDIT:"analytics/TEXT_EDIT",TEXT_EFFECT_DONE:"analytics/TEXT_EFFECT_DONE",TEXT_EFFECT_INT
183ENSITY:"analytics/TEXT_EFFECT_INTENSITY",TEXT_FONT_BROWSE:"analytics/TEXT_FONT_BROWSE",TEXT_FONT_BROWSE_CATEGORIES:"analytics/TEXT_FONT_BROWSE_CATEGORIES",TEXT_OUTLINE_INTENSITY:"analytics/TEXT_OUTLINE_INTENSITY",TEXT_OUTLINE_COLOR:"analytics/TEXT_OUTLINE_COLOR",TEXT_OUTLINE_ON:"analytics/TEXT_OUTLINE_ON",TEXT_OUTLINE_OFF:"analytics/TEXT_OUTLINE_OFF",TEXT_START:"analytics/TEXT_START",TEXT_SEARCH:"analytics/TEXT_SEARCH",TEXT_TOOLS:"analytics/TEXT_TOOLS",UPLOAD_CHANGE_COLOR:"analytics/UPLOAD_CHANGE_COLOR",UPLOAD_CLOSE_TOOLS:"analytics/UPLOAD_CLOSE_TOOLS",UPLOAD_CONTACT_US:"analytics/UPLOAD_CONTACT_US",UPLOAD_COLOR_REMOVAL:"analytics/UPLOAD_COLOR_REMOVAL",UPLOAD_LEARN_MORE:"analytics/UPLOAD_LEARN_MORE",UPLOAD_RECENT:"analytics/UPLOAD_RECENT",UPLOAD_RESET_COLOR:"analytics/UPLOAD_RESET_COLOR",UPLOAD_TOGGLE_BACKGROUND:"analytics/UPLOAD_TOGGLE_BACKGROUND",UPLOAD_TOGGLE_PRODUCT_COLOR:"analytics/UPLOAD_TOGGLE_PRODUCT_COLOR",UPLOAD_OR_BROWSE_ART:"analytics/UPLOAD_OR_BROWSE_ART",VIEW_ALL_FONT_CATEGORIES:"analytics/VIEW_ALL_FONT_CATEGORIES",WTO_OPTION_LOAD:"analytics/WTO_OPTION_LOAD",WTO_OPTION_UPDATE:"analytics/WTO_OPTION_UPDATE",WELCOME:"analytics/WELCOME",WELCOME_BACK_CONTINUE:"analytics/WELCOME_BACK_CONTINUE",WELCOME_BACK_NEW:"analytics/WELCOME_BACK_NEW",WELCOME_BACK:"analytics/WELCOME_BACK",ZOOM_IN:"analytics/ZOOM_IN",ZOOM_OUT:"analytics/ZOOM_OUT"},Br={labLoadProductStyle:1,labLoadProductColor:2,labLoadProductCategory:3,postalCode:6,userId:7,Breakpoint:9,ViewPort:10,WithDesign:11,DefaultBlank:25,quotedProductStyle:26,quantity:27,quotedProductColor:28,quotedPrice:29,caveat:30,multiStyle:31,colorCountFront:32,colorCountBack:33,quotedProductCategory:34,clipArtId:40,uploadColorCount:44,uploadColorType:45,RestingScreenClick:46,assistedDesignID:48,designTemplateID:49,artMultiColor:50,labLoadBuyNow:51,labLoadKeyword:52,labLoadComplementaryStyles:53,labLoadOrderOptions:54,orderAnythingProduct:57,labLoadMethod:61,adDecisionClose:64,adPromoSource:66,adSaveIndex:67,firstTimeSaver:70,saveDesignID:71,saveProductStyle:72,saveProductCategory:73,saveProductColor:74,labLoadDesignTemplateID:75,designWithAPro:78,adSwappableClipart:80,postalCodeChange:83,realTimeItemPrice:85,keepShoppingOrderAnythingProduct:88,discontinuedProductStyle:91,saveWithArt:93,unavailableSizes:95,unavailableCoreSizes:116,uploadGamutColorCount:121,changedProductCategory:126,inkMatchCount:127},Y9=()=>{},j9=le();let Ta;function Q9(e){return`FS - ${e}:`}
183if(j9.track==="no"||Ga)Ta=class{event(e,t={}){console.log(`${Q9("Page Action")} ${e} 184${JSON.stringify(t)}`)}};else{let e=function(t){return window.FS&&window.FS[t]?window.FS[t]:Y9};Ta=class{event(t,n={}){e("event")(t,n)}}}const q9=new Ta,ll=()=>{const e=le();return e.track==="no"?!1:(e.lr==="on",!0)},X9=1e3,$9=/^[\w-]+$/,xs=new Map;let B2=null;const Z9=e=>{const t=xs.get(e);if(t)return t;const n=document.createElement("style");document.head.appendChild(n);const s={styleTag:n,lastRule:"",reportedFailure:!1};return xs.set(e,s),s},K9=e=>{xs.forEach(({styleTag:t},n)=>{e.has(n)||(t.remove(),xs.delete(n))})},J9=(e,t)=>{const n=Z9(t),{sheet:s}=n.styleTag;if(!s)return;const o=`canvas[data-lrid="${t}"] { background-image: url("${e.toDataURL()}"); background-size: 100% 100%; background-repeat: no-repeat; display: block; }`;n.lastRule!==o&&(s.cssRules.length&&s.deleteRule(0),s.insertRule(o),n.lastRule=o)},e_=()=>{const e=new Set;document.querySelectorAll("canvas").forEach(t=>{var o;const n=t,s=(o=n.__lr)==null?void 0:o.id;if(!(!s||!$9.test(s))){e.add(s);try{J9(n,s)}catch(r){const a=xs.get(s);a&&!a.reportedFailure&&(a.reportedFailure=!0,z.warning("LogRocket canvas capture failed â canvas will be blank in replays",r instanceof Error?r:String(r),{lrid:s}))}}}),K9(e)},t_=(e=X9)=>{if(B2!==null)return;const t=()=>{document.hidden||e_(),B2=setTimeout(t,e)};t()},z2=500,n_=3e4,s_=50;let qo=[],en=null;const W2=e=>console.log(e),Y2=e=>{if(en){e();return}qo.length<s_&&qo.push(e)},o_=()=>{const e=qo;qo=[],e.forEach(t=>t())},r_=()=>new Promise(e=>{if(window.LogRocket){e(window.LogRocket);return}const t=Date.now(),n=()=>
184{if(window.LogRocket){e(window.LogRocket);return}if(Date.now()-t>=n_){e(null);return}setTimeout(n,z2)};setTimeout(n,z2)}),a_=()=>P(void 0,null,function*(){if(!ll())return;const e=yield r_();e&&(en=e,e.getSessionURL(B8),t_(),o_())}),i_={identify(e){W2(`LR - identify: ${e}`)},track(e,t){W2(`LR - track: ${e}${t?` 185${JSON.stringify(t)}`:""}`)}},c_={identify(e){Y2(()=>en==null?void 0:en.identify(e))},track(e,t){Y2(()=>en==null?void 0:en.track(e,t))}},l_=()=>ll()?c_:i_,Ci=l_(),d_=Object.freeze(Object.defineProperty({__proto__:null,initLogRocketIntegration:a_,logRocket:Ci},Symbol.toStringTag,{value:"Module"})),u_=e=>e==null||typeof e=="string"||typeof e=="number"||typeof e=="boolean",__=le();let Mo,p;__.track==="no"||l1?Mo=class{fireEvent(e,t,n){const s=n?`"${n}"`:"";console.log(`Event Fired: "${e}" "${t}" ${s}`)}pageViewTag(e){console.log(`Page View Tag ${e}`)}pageTest(e){console.log(`Page Test created: ${e}`)}registerDimension(e,t){console.log(`Registered Dimension ${Br[e]} ${e} with value ${t}`)}setDimension(e,t){console.log(`Set Dimension ${Br[e]} ${e} with value ${t}`)}sessionPageViewTag(e,t={}){console.log(`Session Page View Tag ${e}`)}registerUser(e){console.log(`GA userId ${e}`)}logInteractionCookie(){console.log("Interaction cookie logged")}}:(Mo=qd,Mo.prototype.setDimension=function(e,t){const n=window.ga;if(n!==void 0&&typeof n=="function"){let s=Br[e];s&&(s=`dimension${s}`,n("set",s,t))}});class p_{constructor(t){this.gaMetrics=t,this.fullStoryMetrics=q9,this.logRocketMetrics=Ci}pageViewTag(t,n={},s=!1){this.gaMetrics.pageViewTag(t),s&&(this.fullStoryMetrics.event(t,n),this.logRocketMetrics.track(t,n))}fireEvent(...t){if(!t.length)return;const n=t.slice(0,3);if(n.some(o=>!u_(o))){const[o,r,a]=n;z.error("[metrics] fireEvent received a non-scalar argument â call dropped",{category:o,action:r,label:a});return}this.gaMetrics.fireEvent(...t)}registerDimension(t,n){this.gaMetrics.registerDimension(t,n)}setDimension(t,n){this.gaMetrics.setDimension(t,n)}pageTest(t){this.gaMetrics.pageTest(t)}logInteractionCookie(){this.gaMetrics.logInteractionCookie()}registerUser(t){this.gaMetrics.registerUser(t)}sessionPageViewTag(t,n={},s=!1){this.gaMetrics.sessionPageViewTag(t),s&&(this.fullStoryMetrics.event(t,n),this.logRocketMetrics.track(t,n))}}p=new p_(new Mo);p.pageViewTag("ndx/lab/prestart");p.logInteractionCookie();const Be=e=>{const t=e.replace(/%(?![0-9A-Fa-f]{2})/g,"%25");return String(decodeURIComponent(t)).toLowerCase().trim().replace(/%\w{2}|\W+/g,"_").replace(/(^_|_$)/g,"")},g_=({fontCategory:e,fontName:t})=>Be(e)+"/"+Be(t),Zv=e=>{e in j2&&p.pageViewTag(j2[e])},dl=(e=!1)=>{const t=Q4();return kt()||e?"With Design":t?"With Catalog Upload":"Without Design"},mt={buyClose:"/ndx/buy/close",quoteClose:"/ndx/quote/close",saveClose:"/ndx/save/close"},j2={"/next":mt.buyClose,"/next/buy":mt.quoteClose,"/next/getPrice":mt.quoteClose,"/next/confirmIntl":mt.quoteClose,"/next/intlQuote":mt.quoteClose,"/next/quote":mt.quoteClose,"/next/quantity-quote":mt.quoteClose,"/next/saveForm":mt.saveClose,"/next/saveContinue":mt.saveClose,"/next/verify":mt.buyClose,"/next/shipping":mt.quoteClose},$=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},Zn=e=>{if(e)switch(e.rs){case"wb":case"wb/":return"welcomeback";case"rs":case"rs/":return"restingscreen";case"w":case"w/":return"welcome";case"m":case"m/":return"menu";default:return"toolbar"}},Kv=h(g.ADD_ART),Jv=h(g.ADD_COMPLEMENT),eP=h(g.ADD_ITEMS_CLOSE),tP=h(g.ADD_ITEMS),nP=h(g.ADD_ITEMS_COLOR),sP=h(g.ADD_ITEMS_COLOR_CLOSE),oP=(e,t)=>(n,s)=>{const o=h(g.ADD_ITEMS_PICK_STYLE,({styleId:r,inSkirt:a})=>({styleId:r,inSkirt:a}),({styleId:r})=>{var a;return{isCurrentProduct:r&&r===((a=qe(s()))==null?void 0:a.id)}});n(o({styleId:e,inSkirt:!!t}))},rP=h(g.ADD_ITEMS_QUOTE),aP=h(g.ADD_ITEMS_BROWSE_MORE),iP=h(g.ADD_TEXT),cP=h(g.ART_BROWSE,(e,t)=>{const n=t.keySeq().toArray().reduce((o,r)=>(o[r]=t.get(r).replace("/","_"),o),{});return{categoryNamePath:e.map(o=>n[o.match(/\d+/)]).filter(o=>o!==void 0).join("/").replace(" ","").toLowerCase()}}),lP=h(g.ART_CLOSE),dP=h(g.ART_TOOLS),uP=h(g.ART_PALETTE),_P=h(g.ART_SWAP),pP=h(g.ART_CHANGE_COLOR),gP=h(g.ART_RESET_COLOR),EP=h(g.COLOR_WHEEL),hP=h(g.BUY_FORM),fP=h(g.BUY_WITH_GOF),mP=h(g.BUY_WITH_GOF_QUOTE_START),TP=h(g.BUY_WITH_GOF_QUOTE_COMPLETE),SP=h(g.CHANGE_PRODUCT_START),CP=h(g.CHANGE_PRODUCT_COLOR_START),IP=h(g.CHANGE_TEXT_EFFECT),AP=h(g.CHANGE_TEXT_OUTLINE),yP=h(g.CHANGE_TEXT_OUTLINE_COMPLETE),OP=h(g.CHAT),RP=h(g.COLOR_CTA_CLICK),DP=h(g.CURRENT_PATH_PAGE_VIEW_TAG),E_=h(g.DISCONTINUED_PRODUCT),h_=h(g.DISCONTINUED_PRODUCT_COLOR),vP=h(g.START_POSTAL_CODE_UPDATE),PP=h(g.FONT_BROWSE_SEE_MORE),f_=h(g.FUNDRAISING_NAVIGATION),m_=h(g.FUNDRAISING_CAMPAIGN_CLOSED),LP=h(g.FUNDRAISING_MODE_WELCOME),NP=h(g.FUNDRAISING_MODE_GOALS),wP=h(g.HELP_CALL),bP=h(g.HELP_E
185MAIL),MP=h(g.HELP_FEEDBACK),UP=h(g.HELP_MENU),xP=h(g.HELP_VISIT_FULL_SITE),T_=()=>(e,t)=>{const n=t();si(n)||e({type:g.LOAD_WITHOUT_DESIGN})},FP=h(g.NAMES_AND_NUMBERS),VP=h(g.NAMES_AND_NUMBERS_CLOSE),kP=h(g.NAMES_AND_NUMBERS_COLORS),HP=h(g.NAMES_AND_NUMBERS_GET_STARTED),GP=h(g.NAMES_AND_NUMBERS_POSITION),BP=h(g.NAMES_AND_NUMBERS_LIST);h(g.NAMES_AND_NUMBERS_ALERT);const zP=h(g.NAMES_AND_NUMBERS_COMPLETE),WP=h(g.NAMES_AND_NUMBERS_EDIT),YP=h(g.NDX_BREAKPOINT);function S_(){return function(e,t){const n=t(),s=Ts(n),o=dl(s),r=we(n),a=Re(n),i=Ne(n,{styleId:a}),c=x8(n),l=Wt(n);e({type:g.NDX_START,payload:{anchorStyleId:a,withDesign:o,categoryName:i==null?void 0:i.primary_category_name,colorId:r,designIdeaId:c,productColor:l==null?void 0:l.name}})}}const jP=h(g.NEXT),QP=h(g.ORDER_MORE_ADD_ITEMS_ADD_STYLES),qP=h(g.ORDER_MORE_STYLES_ADDED),XP=h(g.ORDER_MORE_ADD_STYLES),$P=h(g.ORDER_MORE_QUOTE_ADD_STYLES),ZP=h(g.PRINT_THIS),KP=h(g.PRODUCT_CATALOG),JP=h(g.PRODUCT_COLOR),eL=h(g.PRODUCT_COLOR_CHANGED),tL=h(g.PRODUCT_COLOR_TOGGLE_CHANGED),nL=h(g.PRODUCT_DETAILS),sL=h(g.PRODUCT_PRINT_AREA),oL=h(g.PRODUCT_SUMMARY),rL=h(g.PRODUCT_WELCOME),aL=h(g.PRODUCT_SUMMARY_TAG),iL=h(g.PRODUCT_SUMMARY_CAROUSEL),cL=h(g.QUOTE_FORM_POSTAL_CODE_CHANGE),lL=h(g.QUOTE_FORM_START),dL=h(g.QUOTE_STATE_CHANGE),uL=h(g.QUOTE_WCIBMO),_L=h(g.REAL_TIME_PRICE_QUANTITY_CHANGE),pL=h(g.SAVE_ADD_CART_ATTEMPT),C_=h(g.SAVE_ADD_CART),gL=h(g.SAVE_FORM),EL=h(g.SHARE_EMAIL),hL=h(g.SHARE_FACEBOOK),fL=h(g.SHARE_LINK),mL=h(g.SHARE_PINTEREST),TL=h(g.SHARE_TWITTER),SL=h(g.SLEEVE_ERROR_FUNDRAISING),I_=h(g.SLEEVE_PRINT_REMOVE_DESIGN),CL=h(g.SLEEVE_PRINT_UNDO_REMOVE_DESIGN),IL=h(g.SLEEVE_PRINT_MODAL),AL=h(g.SLEEVE_PRINT_ACTIONS),A_=h(g.SLEEVE_PRINT_NO_SLEEVE_IMAGE_SELECTED_PRODUCT),Q2=()=>(e,t)=>{const n=t();I8(n)||e(A_())},yL=h(g.SLEEVE_PRINT_PRICE_INFO),OL=h(g.SUBTLETY_CHECK),RL=h(g.TEXT_EDIT),DL=h(g.TEXT_EFFECT_DONE),vL=h(g.TEXT_EFFECT_INT
185ENSITY),PL=h(g.TEXT_FONT_BROWSE),LL=h(g.TEXT_FONT_BROWSE_CATEGORIES),NL=h(g.TEXT_OUTLINE_INTENSITY),wL=h(g.TEXT_OUTLINE_COLOR),bL=h(g.TEXT_OUTLINE_OFF),ML=h(g.TEXT_START),UL=h(g.TEXT_SEARCH),xL=h(g.UPLOAD_CLOSE_TOOLS),FL=h(g.UPLOAD_CONTACT_US),VL=h(g.UPLOAD_CHANGE_COLOR),kL=h(g.UPLOAD_LEARN_MORE),y_=h(g.UPLOAD_RECENT),O_=h(g.UPLOAD_COLOR_REMOVAL),HL=h(g.UPLOAD_RESET_COLOR),GL=h(g.UPLOAD_TOGGLE_BACKGROUND),BL=h(g.UPLOAD_TOGGLE_PRODUCT_COLOR),zL=h(g.UPLOAD_OR_BROWSE_ART),WL=h(g.VIEW_ALL_FONT_CATEGORIES),YL=h(g.WTO_OPTION_LOAD),jL=h(g.WTO_OPTION_UPDATE),R_=h(g.WELCOME),D_=h(g.WELCOME_BACK),QL=h(g.WELCOME_BACK_NEW),qL=h(g.ZOOM_IN),XL=h(g.ZOOM_OUT);function v_(e){return t=>{t({type:tt.UPDATE_CART_MODE,payload:e})}}const q2=h(tt.SET_CLIPART_RECOLORING),Ln=h(tt.SET_SLEEVE_PRINT_OVERRIDE),P_=h(tt.UPDATE_LAST_SAVED);function X2(e){return t=>{t({type:tt.UPDATE_LAB_EXIT_WARNING_ELIGIBILITY,payload:e})}}function L_({token:e="",postal_code:t="",order_item_count:n=0}={}){return s=>{s({type:tt.UPDATE_CART_COOKIE,payload:{email:Xd.decode(e),postalCode:t,orderItemCount:n}})}}function N_(e){return t=>{t({type:tt.UPDATE_STREAMLINED_MOBILE_MODE,payload:e})}}function w_(e){return t=>{t({type:tt.UPDATE_STREAMLINED_MOBILE_INTENT,payload:e})}}const Ii=()=>(e,t)=>{var i;const n=t(),s=De(n),o=!!((i=s==null?void 0:s.views)!=null&&i.find(c=>{var l;return(l=c==null?void 0:c.name)==null?void 0:l.includes("Sleeve")})),r=ci(n)(s==null?void 0:s.id),a=as(rs.mediumAndBelow);return o?ur(n)||bo(n)&&r?(e(Ln(!0)),e(ma(!0)),e(Q2()),!0):!a&&r?(e(Ln(!0)),e(Q2()),!0):((a||!r)&&(e(Ln(!1)),e(ma(!1))),!1):(e(Ln(!1)),!1)},us=new Ma(`${K.products}/api/out`),xe={FETCH_STYLE:"catalog/FETCH_CATALOG",STYLE_LOADED:"catalog/STYLE_LOADED",STYLE_LOAD_ERROR:"catalog/STYLE_LOAD_ERROR",FETCH_STYLES:"catalog/FETCH_CATALOGS",SET_OVERLAY_STYLES:"catalog/SET_OVERLAY_STYLES",STYLES_SUCCESS:"catalog/STYLES_SUCCESS",STYLES_ERROR:"catalog/STYLES_ERROR",LOAD_CATALOG_DESIGN:"catalog/LOAD_CATALOG_DESIGN"},ul=new Ma(`${K.products}/api/out`),Dt={FETCH:"complements/FETCH_COMPLEMENTS",SET_IS_FETCHING:"complements/SET_IS_FETCHING",FETCH_SUCCESS:"complements/FETCH_COMPLEMENTS_SUCCESS",FETCH_ERROR:"complements/FETCH_COMPLEMENTS_ERROR",ALTERNATIVES_FETCH_SUCCESS:"complements/ALTERNATIVES_FETCH_SUCCESS"},b_=h(Dt.FETCH),zr=h(Dt.SET_IS_FETCHING),M_=h(Dt.FETCH_SUCCESS),U_=h(Dt.FETCH_ERROR),x_=h(Dt.ALTERNATIVES_FETCH_SUCCESS),$L=e=>(t,n)=>{const s=n(),o=l8(s)(e);if(o){const r=o.filter(a=>!Ne(s,{styleId:a}));r.length>0&&t(xn(r))}else return ul.getStyleComplements(e).then(r=>{if(r.alternatives.length>0){t(x_({alternativeIds:r.alternatives,styleId:e}));const a=r.alternatives.filter(i=>!Ne(s,{styleId:i}));a.length>0&&t(xn(a))}})};function ZL(){return(e,t)=>{const n=t();if(!_8(n)){const s=Re(n);Rr(s)(e,t)}}}const Rr=e=>(t,n)=>{if(!q7(n==null?void 0:n(),{styleId:e}))return t(zr({styleId:e,fetching:!0})),t(b_(e)),ul.getStyleComplements(e).then(s=>{t(M_(s)),t(zr({styleId:e,fetching:!1})),t(xn(s.complements))},s=>(s.styleId=e,t(zr({styleId:e,fetching:!1})),t(U_(s))))},F_=new Ma(`${K.products}/api/out`),ts={FETCH:"compatibleStyles/FETCH_COMPATIBLE_STYLES",FETCH_SUCCESS:"compatibleStyles/FETCH_COMPATIBLE_STYLES_SUCCESS",FETCH_ERROR:"compatibleStyles/FETCH_COMPATIBLE_STYLES_ERROR"},V_=h(ts.FETCH),k_=h(ts.FETCH_SUCCESS),H_=h(ts.FETCH_ERROR);function KL(){return(e,t)=>{const n=t();if(!p8(n)){const s=Re(n);Ai(s)(e)}}}const Ai=e=>t=>(t(V_(e)),F_.getCompatibleStyles(e).then(n=>t(k_({styleId:e,compatibleStyles:n})),n=>{n.styleId=e,t(H_(n))}));function yi(e,t){return{type:xe.STYLE_LOAD_ERROR,payload:{error:t,styleId:e},error:!0}}const G_=h(xe.STYLE_LOADED,void 0,({style:e})=>({styleId:e.id})),_l=(e,t)=>n=>{const s=we(t);return e(G_({currentColorId:s,style:n})),n!==null&&!n.specialty&&(e(Rr(n.id)),e(Ai(n.id))),n},pl=(e,t)=>n=>(e(yi(t,n)),null);function B_(e){return(t,n)=>{const s=n(),o=Ne(s,{styleId:e});return o&&(!o.errors||o.errors.length===0)?Promise.resolve(o):(t({type:xe.FETCH_STYLE,payload:e}),us.getStyle(e).then(_l(t,s)).catch(pl(t,e)))}}function z_(e){return(t,n)=>{const s=n();return t({type:xe.FETCH_STYLE,payload:e}),us.getStylesFromColors([e]).then(o=>o[0]).then(_l(t,s)).catch(pl(t,e))}}const xn=(e,t=!1,n=!1,s=!1)=>o=>{const r=Ua(e);return new Promise((a,i)=>(o(W_(r)),us.getStyles(...r).then(c=>{c&&c.length===r.length?(o(Y_(c)),t&&r.forEach(l=>{o(Rr(l))}),n&&r.forEach(l=>{o(Ai(l))})):o($2({styleIds:r,retrievedIds:c.map(l=>l&&l.id),ignoreLoadErrorNotification:s})),a(c)}).catch(c=>{c.styleIds=r,o($2({styleIds:r,error:c,ignoreLoadErrorNotification:s})),i(c)})))},W_=h(xe.FETCH_STYLES),Y_=h(xe.STYLES_SUCCESS,void 0,e=>e.map(t=>
185t.id)),$2=h(xe.STYLES_ERROR),JL=({catalogCID:e,catalogCIDProductColorId:t})=>n=>{n({type:xe.LOAD_CATALOG_DESIGN,payload:{catalogCID:e,catalogCIDProductColorId:t}})};function j_(e){return(t,n)=>{const s=n(),o=e.reduce((a,i)=>{const c=Ne(s,{styleId:i});return c&&c.variants?a.concat(c.variants.map(l=>l.style_id.toString())):a},[]),r=Ua(o).filter(a=>!Ne(n(),{styleId:a}));if(r.length>0)return t(xn(r,!1,!1,!0))}}const X={ADD_PRODUCT:"product/ADD_PRODUCT",CHANGE_COLOR:"product/CHANGE_COLOR",DELETE_PRODUCT:"product/DELETE_PRODUCT",REPLACE_PRODUCTS:"product/REPLACE_PRODUCTS",REPLACE_PRODUCTS_CART_MODE:"product/REPLACE_PRODUCTS_CART_MODE",RESET:"product/RESET",SELECT_PRODUCT:"product/SELECT_PRODUCT",SWAP_PRODUCT:"product/SWAP_PRODUCT",UPDATE_CATEGORY_PATHS:"product/UPDATE_CATEGORY_PATHS",UPDATE_HAS_INVALID_PRODUCT_IMAGES:"product/UPDATE_HAS_INVALID_PRODUCT_IMAGES",SET_ANCHOR_STYLE_AND_COLOR_ID:"product/SET_ANCHOR_STYLE_AND_COLOR_ID"};class Kn{constructor(){this.cache=new Map,this.CACHE_TTL=5*60*1e3,this.initializeCache()}static getInstance(){return Kn.instance||(Kn.instance=new Kn),Kn.instance}initializeCache(){try{for(let t=0;t<sessionStorage.length;t++){const n=sessionStorage.key(t);if(n){const s=sessionStorage.getItem(n);if(s)try{const o=JSON.parse(s);this.cache.set(n,{value:o,timestamp:Date.now()})}catch(o){this.cache.set(n,{value:s,timestamp:Date.now()})}}}}catch(t){z.error("SessionStorageAdapter: init failed",t)}}isCacheValid(t){return Date.now()-t.timestamp<this.CACHE_TTL}get(t){const n=this.cache.get(t);if(n&&this.isCacheValid(n))return n.value;const s=sessionStorage.getItem(t);try{if(s===null)return this.cache.delete(t),null;const o=JSON.parse(s);return this.cache.set(t,{value:o,timestamp:Date.now()}),o}catch(o){return z.error("SessionStorageAdapter: parse failed",o,{key:t}),this.cache.set(t,{value:s,timestamp:Date.now()}),s}}set(t,n){try{const s=JSON.stringify(n);return sessionStorage.setItem(t,s),this.cache.set(t,{value:n,timestamp:Date.now()}),!0}catch(s){return z.error("SessionStorageAdapter: write failed",s,{key:t}),!1}}remove(t){try{return sessionStorage.removeItem(t),this.cache.delete(t),!0}catch(n){return z.error("SessionStorageAdapter: remove failed",n,{key:t}),!1}}clear(){try{return sessionStorage.clear(),this.cache.clear(),!0}catch(t){return z.error("SessionStorageAdapter: clear failed",t),!1}}has(t){const n=this.cache.get(t);return n&&this.isCacheValid(n)?!0:sessionStorage.getItem(t)!==null}getMultiple(t){const n=new Map;for(const s of t)n.set(s,this.get(s));return n}setMultiple(t){let n=!0;for(const[s,o]of Object.entries(t))this.set(s,o)||(n=!1);return n}invalidateCache(){this.cache.clear()}invalidateCacheEntry(t){this.cache.delete(t)}cleanupExpiredCache(){const t=Date.now();for(const[n,s]of this.cache.entries())t-s.timestamp>=this.CACHE_TTL&&this.cache.delete(n)}}const Ae=Kn.getInstance(),gl="ndx-config",El="ndx_session_save_data";function Q_(){var e;return(e=Ae.get(gl))!=null?e:{}}function So(e){Ae.set(gl,e)}function eN(e){Ae.set(El,e)}function tN(){return Ae.get(El)}const hl="ai-generator-chat",fl="ai-generator-prompt-count",ml="ai-generator-config-ids",Tl="ai-refine-prompt-count",Sl="ai-refine-threads";function q_(){return Ae.get(hl)}function Wr(e){Ae.set(hl,e)}function X_(){var e;return(e=Ae.get(fl))!=null?e:0}function $_(e){Ae.set(fl,e)}function nN(){var e;return(e=Ae.get(Tl))!=null?e:0}function sN(e){Ae.set(Tl,e)}function Z_(){return Ae.get(Sl)}function K_(e){Ae.set(Sl,e)}function oN(){var e;return(e=Ae.get(ml))!=null?e:{}}function rN(e){Ae.set(ml,e)}function Cl(e){return Ae.get(e)}function aN(e,t){Ae.set(e,t)}function J_(e){Ae.remove(e)}const y={ALIGN:"icon/ALIGN",ALIGN_CENTER:"icon/ALIGN_CENTER",ALIGN_MIDDLE:"icon/ALIGN_MIDDLE",ALIGN_TOP:"icon/ALIGN_TOP",ALIGN_BOTTOM:"icon/ALIGN_BOTTOM",ALIGN_LEFT:"icon/ALIGN_LEFT",ALIGN_RIGHT:"icon/ALIGN_RIGHT",BACKWARD:"icon/BACKWARD",BACKWARD_STEP:"icon/BACKWARD_STEP",CENTER:"icon/CENTER",CHANGE_COLOR:"icon/CHANGE_COLOR",COPY:"icon/COPY",CROP:"icon/CROP",CUT:"icon/CUT",DISTRIBUTE_HORIZONTAL:"icon/DISTRIBUTE_HORIZONTAL",DISTRIBUTE_VERTICAL:"icon/DISTRIBUTE_VERTICAL",DUPLICATE:"icon/DUPLICATE",FORWARD:"icon/FORWARD",FORWARD_STEP:"icon/FORWARD_STEP",MOVE:"icon/MOVE",PASTE:"icon/PASTE",REMOVE:"icon/REMOVE",RESET_CLIPART_COLORS:"icon/RESET_CLIPART_COLORS",RESIZE:"icon/RESIZE",RESTORE:"icon/RESTORE",ORDER_RECENT_UPLOADS:"icon/ORDER_RECENT_UPLOADS",ROTATE:"icon/ROTATE",SET_
185VIEW:"icon/SET_VIEW",UPDATE_HORIZONTAL_FLIP:"icon/UPDATE_HORIZONTAL_FLIP",UPDATE_VERTICAL_FLIP:"icon/UPDATE_VERTICAL_FLIP",UPDATE_SINGLE_COLOR:"icon/UPDATE_SINGLE_COLOR",UPDATE_SINGLE_COLOR_AND_CONTRAST:"icon/UPDATE_SINGLE_COLOR_AND_CONTRAST",UPDATE_CONTRAST:"icon/UPDATE_CONTRAST",UPDATE_INVERT_CONTRAST:"icon/UPDATE_INVERT_CONTRAST",UPDATE_POSITION:"icon/UPDATE_POSITION",TOGGLE_INVERTED_CLIPART:"icon/TOGGLE_INVERTED_CLIPART"},at={CONFIRM:"notification/CONFIRM",DISMISS:"notification/DISMISS",ERROR:"notification/ERROR",SUCCESS:"notification/SUCCESS",PROMPT:"notification/PROMPT"},iN=h(at.CONFIRM),Il=h(at.DISMISS),ut=h(at.ERROR),ep=h(at.SUCCESS),Al=h(at.PROMPT),cN=h(y.ALIGN),lN=h(y.MOVE),dN=e=>(t,n)=>{const s=n(),o=Xe(s),r=bt(s);t({type:y.FORWARD,payload:R(f({},e),{iconIds:r,designId:o})})},uN=e=>(t,n)=>{const s=n(),o=Xe(s),r=bt(s);t({type:y.BACKWARD,payload:R(f({},e),{iconIds:r,designId:o})})},_N=e=>(t,n)=>{const s=n(),o=bt(s);t({type:y.CENTER,payload:R(f({},e),{iconIds:o})})},tp=h(y.CHANGE_COLOR,void 0,({iconId:e,color:t,type:n})=>({iconId:e,color:t.name,type:n})),pN=e=>(t,n)=>{const s=n(),o=Xe(s),r=At(s),i=Ut(s).map(c=>c.id).map(c=>({sourceIconId:c,sourceIconType:It(s).get(c).type,targetIconId:ye()}));t({type:y.COPY,payload:R(f({},e),{iconsMap:i,designId:o,viewId:r})})},Oi=(e,t,n=!0,s=!0,o="panel")=>r=>{r({type:y.CROP,payload:{iconId:e.id,crop:t,sizeIsDirty:n,action:"apply",source:o},meta:{redoUndoable:s}})},gN=e=>(t,n)=>{const s=n(),o=Xe(s),r=bt(s),a=At(s),i=r.map(c=>({sourceIconId:c,sourceIconType:It(s).get(c).type,targetIconId:ye()}));t({type:y.CUT,payload:R(f({},e),{iconsMap:i,designId:o,viewId:a})})},EN=({viewConstraint:e,viewId:t})=>(n,s)=>{const o=s(),r=Xe(o),a=k5(o),i=H5(o),c=a.map(l=>({sourceIconId:l,targetIconId:ye()}));n({type:y.PASTE,payload:{clipboardSource:i,designId:r,iconsMap:c,viewConstraint:e,viewId:t}})},hN=(e={})=>(t,n)=>{const s=n(),o=Xe(s),r=Ut(s),a=At(s),i=Bn(s,{viewIdentifier:a}),c=Zs(s)(i),l=r.map(d=>({sourceIconId:d.get("id"),targetIconId:ye()}));t({type:y.DUPLICATE,payload:{designId:o,iconsMap:l,viewConstraint:c,viewId:a,source:e.source,iconType:e.iconType}})},np=({dispatch:e,state:t,removedIconIds:n})=>{const s=Ks(t);if(!xa(s)){const r=dr(t).filter(d=>n.includes(d.id)).map(d=>d.id),a=n7(t).map(d=>d.hexString),i=t7(t)(r).map(d=>d.hexString),c=Object.keys(s).reduce((d,_)=>a.filter(u=>u===_).length===i.filter(u=>u===_).length?d:R(f({},d),{[_]:s[_]}),{});Object.keys(c).length!==Object.keys(s).length&&e(Cf(c))}},sp=(e={})=>(t,n)=>{const s=n(),o=Xe(s),r=e.iconIds||bt(s),a=e.iconTypes||X5(s),i=It(s),c=Cl("ai-generator-config-ids")||{},l=r.reduce((d,_)=>{const u=i.get(_),E=(u==null?void 0:u.key)||(u==null?void 0:u.url);return E&&Es(E)&&d.push({key:E,configurationId:c[E]||null}),d},[]);np({dispatch:t,state:s,removedIconIds:r}),t({type:y.REMOVE,payload:R(f({},e),{iconIds:r,iconTypes:a,aiGeneratedKeys:l,designId:o})})},fN=h(y.RESET_CLIPART_COLORS),mN=e=>(t,n)=>{const s=n(),o=Sr(s),{transforms:r}=e,a=r==null?void 0:r.some(({icon:i,scale:c})=>{if(!Fe(i))return!1;const l=i.fontMinHeight||W.TEXT.DEFAULTS.MIN_FONT_HEIGHT,d=W.TEXT.DEFAULTS.EMBROIDERY_MIN_FONT_HEIGHT,_=o?Math.max(l,d):l,u=Math.min(c.x,c.y);return i.fontHeight*u<=_});t({type:y.RESIZE,payload:R(f({},e),{isEmbroidered:o})}),a&&t(cl())},op=({sourceIconId:e,iconOptions:t})=>(n,s)=>{var T,O;const o=ye(),r=s(),a=Xe(r),i=At(r),c=O0(r),l=Bn(r,{viewIdentifier:i}),d=c===ir.APPAREL&&!["front","back"].includes(l.name);let _={};if(!d){const I=ne(r)(e),A=Zs(r)(l),D=X1(r).size===0;_=al(A,I,c,D)}const u=f(f({},t),_),E=zn(r);E||Yt(r)?(u.color=E||ms(r),u.singleColor=!0,u.contrast=Wa):((T=u.color)!=null||(u.color=B.Black),(O=u.singleColor)!=null||(u.singleColor=!1)),n({type:y.RESTORE,payload:{designId:a,iconOptions:u,sourceIconId:e,targetIconId:o,viewId:i}}),n({type:y.ORDER_RECENT_UPLOADS,payload:{sourceIconId:e}})},TN=h(y.ROTATE,null,(e,t)=>({iconType:t})),SN=h(y.SET_VIEW,(e,t)=>({iconId:e.id,iconType:e.type,viewId:t})),CN=h(y.UPDATE_HORIZONTAL_FLIP,null,(e,t)=>({iconType:t})),IN=h(y.UPDATE_VERTICAL_FLIP,null,(e,t)=>({iconType:t})),AN=(e,t)=>(n,s)=>{const o=s(),r=Ka(o),a=Ks(o);if(!xa(a))return n(ut({key:Ar,attemptedMonochrome:[e,t]}
185));n({type:y.UPDATE_SINGLE_COLOR,payload:R(f({},e),{color:r||e.defaultIconColor}),meta:{iconType:t}})},yN=(e,t)=>(n,s)=>{const o=s(),r=Ka(o),a=Ks(o);if(!xa(a))return n(ut({key:Ar,attemptedMonochrome:[e,t]}));n({type:y.UPDATE_SINGLE_COLOR_AND_CONTRAST,payload:R(f({},e),{color:r||e.defaultIconColor}),meta:{iconType:t}})},ON=h(y.UPDATE_CONTRAST),RN=h(y.UPDATE_INVERT_CONTRAST);h(y.UPDATE_POSITION);const DN=h(y.TOGGLE_INVERTED_CLIPART);h(y.ALIGN_CENTER);h(y.ALIGN_MIDDLE);h(y.ALIGN_LEFT);h(y.ALIGN_RIGHT);h(y.ALIGN_TOP);h(y.ALIGN_BOTTOM);h(y.DISTRIBUTE_HORIZONTAL);h(y.DISTRIBUTE_VERTICAL);const Ri={CANVAS:"canvas",CONTEXT_MENU:"contextmenu",DROP_SIDE:"dropSide",KEYBOARD:"keyboard",NAMES_AND_NUMBERS:"namesAndNumbers",TEXT_CARD:"textCard",AI_GENERATOR:"ai-generator",AI_REFINE:"ai-refine"},te={ADD_ART:"art/ADD_ART",ADD_TO_RECENTLY_USED_ART:"art/ADD_TO_RECENTLY_USED_ART",BROWSED_CATEGORIES:"art/BROWSED_CATEGORIES",CATEGORY_LOADED:"art/CATEGORY_LOADED",CATEGORY_FAILED:"art/CATEGORY_FAILED",CHANGE_SPOT_COLOR:"art/CHANGE_SPOT_COLOR",CLEAR:"art/CLEAR",CLIPART_AUTOFILL_DATA_LOADED:"art/CLIPART_AUTOFILL_DATA_LOADED",LOADING_RESULTS:"art/LOADING_RESULTS",ROOT_LOADED:"art/ROOT_LOADED",ROOT_FAILED:"art/ROOT_FAILED",SEARCH_LOADED:"art/SEARCH_LOADED",SEARCH_FAILED:"art/SEARCH_FAILED",SELECT_CLIPART:"art/SELECT_CLIPART",SET_RECENTLY_USED_CLIPART:"art/SET_RECENTLY_USED_CLIPART",SET_RECENTLY_USED_CLIPART_SNAPSHOT:"art/SET_RECENTLY_USED_CLIPART_SNAPSHOT",SET_LAST_SEARCH:"art/SET_LAST_SEARCH",SWAP:"art/SWAP",UPDATE_LOCK_RATIO:"art/UPDATE_LOCK_RATIO",UPDATE_ART_SEARCH_HISTORY:"art/UPDATE_ART_SEARCH_HISTORY",UPDATE_TRANSPARENCY:"art/UPDATE_TRANSPARENCY",UPDATE_LAST_ART:"art/UPDATE_LAST_ART"},ae={CHANGE_SPOT_COLOR:"upload/CHANGE_SPOT_COLOR",REMOVE_SPOT_COLOR:"upload/REMOVE_SPOT_COLOR",ADD_SPOT_COLOR:"upload/ADD_SPOT_COLOR",INVALID_FILE:"upload/INVALID_FILE",RESET_UPLOAD:"upload/RESET_UPLOAD",UPDATE_COLOR_MODE:"upload/UPDATE_COLOR_MODE",UPDATE_LAST_UPLOAD:"upload/UPDATE_LAST_UPLOAD",UPLOAD_FAILED:"upload/UPLOAD_FAILED",UPLOAD_AND_SWAP:"upload/UPLOAD_AND_SWAP",SWAP_UPLOAD_IMAGE:"upload/SWAP_UPLOAD_IMAGE",UPLOAD_COMPLETE:"upload/UPLOAD_COMPLETE",ADD_RECENT_UPLOAD:"upload/ADD_RECENT_UPLOAD",UPDATE_SPOT_COLORS:"upload/UPDATE_SPOT_COLORS"},vt={DESELECT_ALL_ICONS:"selection/DESELECT_ALL_ICONS",DESELECT_ICON:"selection/DESELECT_ICON",SELECT_ICON:"selection/SELECT_ICON",SELECT_ICONS:"selection/SELECT_ICONS",SELECT_ADDITIONAL_ICONS:"selection/SELECT_ADDITIONAL_ICONS"},rp=h(vt.DESELECT_ICON),Di=h(vt.DESELECT_ALL_ICONS),ap=h(vt.SELECT_ADDITIONAL_ICONS),ip=h(vt.SELECT_ICONS),Uo=({iconId:e,toggle:t})=>(n,s)=>{if(t){const o=s();bt(o).includes(e)?n(rp({iconId:e})):(n(ap({iconId:e})),n(Z2({iconId:e})))}else{n({type:vt.SELECT_ICON,payload:{iconId:e}}),n(Z2({iconId:e}));const o=Hn(s());o!=null&&o.categoryPath&&n({type:te.BROWSED_CATEGORIES,payload:o.categoryPath.replace(/^[^/]+\//,"").split(/\/(?=\D)/)})}return{nextSelectedIcons:Ut(s())}},Z2=({iconId:e})=>(t,n)=>{const s=No(n())(e);switch(s==null?void 0:s.type){case"UPLOAD":{t({type:ae.UPDATE_LAST_UPLOAD,payload:{iconId:s==null?void 0:s.id}});break}case"TEXT":{t({type:M.UPDATE_LAST_TEXT,payload:{iconId:s==null?void 0:s.id}});break}case"CLIPART":{t({type:te.UPDATE_LAST_ART,payload:{iconId:s==null?void 0:s.id}});break}}},vN=({iconType:e})=>(t,n)=>{const s=n(),o=B5(s),r=Y1(s),a=z5(s);switch(e){case"UPLOAD":return!a||!No(s)(a)?!1:(t(Uo({iconId:a})),!0);case"TEXT":return!r||!No(s)(r)?!1:(t(Uo({iconId:r})),!0);case"CLIPART":return!o||!No(s)(o)?!1:(t(Uo({iconId:o})),!0)}return!1},to={NDX_ACCOUNTS_SERVICE_URL:"https://accounts-service.out.customink.com",NDX_CATALOG_URI:"https://www.customink.com/products",NDX_RECOMMENDATIONS_URI:"https://recommendations-service.out.customink.com",NDX_PRODUCT_IMAGES_URI:"https://mms-images.out.customink.com/mms",NDX_DESIGNS_URI:"https://www.customink.com",NDX_IMAGE_UPLOADS_URL:"https://image-uploads-api.out.customink.com",NDX_PROMOTIONS_CMS_URI:"https://content-api.customink.com",NDX_PROJECTS_URI:"https://project-service.out.customink.com",NDX_ALGOLIA_APP_ID:"S0RXN4TV6T",NDX_ALGOLIA_SEARCH_API_KEY:"0a151509c46c60d9f0bbbe68999b6e61",NDX_ALGOLIA_PRODUCTS_INDEX:"prod_styles",MODE:"production",VITE_RELEASE:"41957b0499355eeaa005418fc77745d2301421bb"},no={"client-name":"ndx","client-version":to.VITE_RELEASE}
185,cp={"client-name":"ndx","client-version":to.VITE_RELEASE},lp={headers:f({Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},no)},Wn={method:"post",credentials:"same-origin",headers:f({Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},no)},Yn="same-origin";function vi(e,t=!1){return e.ok?e:t?e.json().then(n=>Promise.reject(n)):Promise.reject(e)}const mn=e=>e.fundraising.present||e.fundraising,dp=e=>mn(e).get("goalQuantity"),so=e=>mn(e).get("salePrices").toJS(),up=e=>mn(e).get("printMinimums").toJS(),_p=e=>mn(e).get("profits").toJS(),PN=e=>mn(e).get("minProfit"),LN=e=>mn(e).get("maxProfit"),NN=e=>mn(e).get("fetching"),wN=e=>{const t=lt(e),n=so(e);return parseFloat(n[t.id])},bN=e=>{const t=Object.values(up(e)),n=t.filter(s=>{if(s.errorMessage)return s.errorMessage});return n[0]?n[0]:t.reduce((o,r)=>r.printMinimumQuantity>o.printMinimumQuantity?r:o,t[0])},yl=e=>{const t=lt(e),n=so(e),s=[];return Object.keys(n).forEach(o=>{o!==t.id&&s.push({productId:parseInt(o,10),salesPrice:parseFloat(n[o])})}),s},MN=e=>JSON.stringify(yl(e)),$t=e=>{var t,n;return(n=(t=yl(e))==null?void 0:t.map(s=>s.productId))==null?void 0:n.join(";")},Ol=(e,t)=>{const s=Ne(e,{styleId:t}).name;let o=w7;for(const[r,a]of Object.entries(U7).reverse()){const i=new RegExp(a,"i");if(s.match(i)){o=r;break}}return parseInt(o,10)},UN=()=>$4(),xN=()=>Z4();function pp(e){const t=fr(e),n=_t(e),s=dp(e),o=so(e),r=_p(e),i={items:t.map(c=>({color_counts:n,items:[{product_id:c,quantity:s}]})),prices:o,profits:r};return JSON.stringify(i)}function gp(e,t){const n=_t(t),s=so(t);return{product:{id:e,price:s[e],front_colors_count:n.front,back_colors_count:n.back||0}}}const Ep="https://www.customink.com/ndx/assets/america-CSUcJDbo.svg",hp="https://www.customink.com/ndx/assets/animals-BwBQZHel.svg",fp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m21.45%2037.16%202.36%206.64c.2.55.63.93%201.16%201.02.08.01.16.02.23.02.42%200%20.82-.19%201.11-.55l9.39-11.57%209.39%2011.57c.28.35.69.55%201.11.55.08%200%20.15%200%20.23-.02.53-.09.96-.47%201.16-1.02l2.36-6.64c.33-.93.16-1.99-.43-2.72l-7.59-9.39.93-1.15c1.9-2.33%202.94-5.43%202.94-8.71%200-6.95997-4.44-12.40997-10.11-12.40997s-10.11%205.45-10.11%2012.40997c0%203.28%201.04%206.38%202.94%208.71l.93%201.15-7.59%209.39c-.59.73-.76%201.8-.43%202.72zm26.89-1.75c.25.31.32.82.18%201.24l-2.33%206.55-9.49-11.69%204.26-5.25%207.39%209.13zm-13.07-31.06997h.02c.14-.02.28-.03.42-.03%202.36%200%204.21%202.42%204.21%205.5%200%20.42997-.04.84997-.12%201.25997-1.26-.82-2.65-1.24997-4.09-1.24997s-2.84.42997-4.09%201.24997c-.08-.41-.12-.83-.12-1.25997%200-2.89%201.63-5.2%203.77-5.47zm4.05%208.25997c-.2.42-.43.81-.72%201.17l-2.89%203.58-2.89-3.58c-.28-.35-.52-.74-.72-1.17%201.1-.81%202.34-1.24%203.61-1.24s2.51.43%203.61%201.24zm-12.19%202.59c0-3.61%201.39-6.80997%203.53-8.78997-.45%201.01-.7%202.17-.7%203.42%200%20.96997.17%201.90997.48%202.77997.28.78.67%201.5%201.18%202.13l3.1%203.83-4.26%205.27-.73-.9c-1.67-2.06-2.6-4.81-2.6-7.75zm-4.06%2020.22%207.98-9.86%205.24-6.49%203.49-4.32c.51-.63.9-1.35%201.18-2.13.31-.87.48-1.81.48-2.77997%200-1.25-.25-2.41-.7-3.42%202.14%201.98%203.53%205.17997%203.53%208.78997%200%202.93-.92%205.69-2.6%207.75l-1.32%201.63-5.25%206.46-9.88%2012.17-2.33-6.55c-.15-.42-.08-.93.18-1.24z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",mp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m49.97%2019.4h-5.21c-.44%200-.8.36-.8.8s.36.8.8.8h5.21c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8z'/%3e%3cpath%20d='m26.6399%2019.4h-5.21c-.44%200-.8.36-.8.8s.36.8.8.8h5.21c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8z'/%3e%3cpath%20d='m38.3098%2019.4h-5.21c-.44%200-.8.36-.8.8s.36.8.8.8h5.21c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8z'/%3e%3cpath%20d='m53.33%2012.94-16.57-9.73001c-.65-.38-1.46-.38-2.11%200l-16.57%209.73001c-.53.31-.78.92
185-.62%201.51s.68.99%201.29.99h33.88c.61%200%201.13-.4%201.29-.99s-.09-1.2-.61-1.51zm-33.63.91%2015.76-9.25001c.15-.09.34-.09.49%200l15.76%209.25001z'/%3e%3cpath%20d='m32.9102%2022.59-.45%2013.78c-.01.44.33.81.77.82h.03c.43%200%20.78-.34.8-.77l.45-13.78c.01-.44-.33-.81-.77-.82-.44-.02-.81.33-.82.77z'/%3e%3cpath%20d='m37.68%2021.82c-.44.01-.79.38-.77.82l.45%2013.78c.01.43.37.77.8.77h.03c.44-.01.79-.38.77-.82l-.45-13.78c-.01-.44-.38-.8-.82-.77z'/%3e%3cpath%20d='m21.2398%2022.59-.45%2013.78c-.01.44.33.81.77.82h.03c.43%200%20.78-.34.8-.77l.45-13.78c.01-.44-.33-.81-.77-.82-.44-.02-.81.33-.82.77z'/%3e%3cpath%20d='m26.0101%2021.82c-.44.01-.79.38-.77.82l.45%2013.78c.01.43.37.77.8.77h.03c.44-.01.79-.38.77-.82l-.45-13.78c-.01-.44-.38-.8-.82-.77z'/%3e%3cpath%20d='m49.3402%2021.82c-.44.01-.79.38-.77.82l.45%2013.78c.01.43.37.77.8.77h.03c.44-.01.79-.38.77-.82l-.45-13.78c-.01-.44-.38-.8-.82-.77z'/%3e%3cpath%20d='m44.5698%2022.59-.45%2013.78c-.01.44.33.81.77.82h.03c.43%200%20.78-.34.8-.77l.45-13.78c.01-.44-.33-.81-.77-.82-.44-.02-.81.33-.82.77z'/%3e%3cpath%20d='m18.3799%2039.04c0%20.44.36.8.8.8h33.05c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8h-33.05c-.44%200-.8.36-.8.8z'/%3e%3cpath%20d='m53.13%2041.1h-34.85c-.44%200-.8.36-.8.8s.36.8.8.8h34.86c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8z'/%3e%3cpath%20d='m52.2801%2017.55c0-.44-.36-.8-.8-.8h-31.56c-.44%200-.8.36-.8.8s.36.8.8.8h31.56c.44%200%20.8-.36.8-.8z'/%3e%3c/g%3e%3c/svg%3e",Tp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m24.16%2027.45c-.29.33-.43.77-.38%201.21.58%205.02%205.71%208.81%2011.92%208.81s11.34-3.79%2011.92-8.81c.05-.44-.09-.88-.38-1.21s-.71-.52-1.16-.52h-20.77c-.44%200-.86.19-1.16.52zm21.87%201.08c-.51%204.12-5.04%207.35-10.33%207.35s-9.82-3.22-10.33-7.35z'/%3e%3cpath%20d='m39.6903%2019.33-.72%204.17c-.05.3.07.6.32.78.14.1.3.15.47.15.13%200%20.25-.03.37-.09l3.78-1.97%203.78%201.97c.27.14.6.12.84-.06s.37-.48.32-.78l-.72-4.17%203.05-2.95c.22-.21.3-.53.2-.82-.09-.29-.34-.5-.65-.54l-4.22-.61-1.89-3.8c-.13-.27-.41-.44-.72-.44s-.58.17-.72.44l-1.89%203.8-4.22.61c-.3.04-.55.25-.65.54-.09.29-.01.61.2.82l3.05%202.95zm2.25-3.41c.26-.04.48-.2.6-.43l1.36-2.73%201.36%202.73c.12.23.34.4.6.43l3.02.44-2.18%202.11c-.19.18-.28.45-.23.71l.52%202.99-2.71-1.42c-.23-.12-.51-.12-.74%200l-2.71%201.42.52-2.99c.05-.26-.04-.53-.23-.71l-2.18-2.11%203.02-.44z'/%3e%3cpath%20d='m22.8899%2024.27c.14.1.3.15.47.15.13%200%20.25-.03.37-.09l3.78-1.97%203.78%201.97c.27.14.6.12.84-.06s.37-.48.32-.78l-.72-4.17%203.05-2.95c.22-.21.3-.53.2-.82-.09-.29-.34-.5-.65-.54l-4.22-.61-1.89-3.8c-.13-.27-.41-.44-.72-.44s-.58.17-.72.44l-1.89%203.8-4.22.61c-.3.04-.55.25-.65.54-.09.29-.01.61.2.82l3.05%202.95-.72%204.17c-.05.3.07.6.32.78zm-.37-7.91%203.02-.44c.26-.04.48-.2.6-.43l1.36-2.73%201.36%202.73c.12.23.34.4.6.43l3.02.44-2.18%202.11c-.19.18-.28.45-.23.71l.52%202.99-2.71-1.42c-.23-.12-.51-.12-.74%200l-2.71%201.42.52-2.99c.05-.26-.04-.53-.23-.71l-2.18-2.11z'/%3e%3cpath%20d='m35.7001%2043.94c11.09%200%2020.12-9.03%2020.12-20.12s-9.02-20.13-20.12-20.13-20.12%209.03-20.12%2020.13%209.03%2020.12%2020.12%2020.12zm0-38.65c10.21%200%2018.52%208.31%2018.52%2018.52s-8.31%2018.52-18.52%2018.52-18.52-8.31-18.52-18.52%208.31-18.52%2018.52-18.52z'/%3e%3c/g%3e%3c/svg%3e",Sp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m26.1202%2013.08c-2.39-2.42-6.77-2.77-8.97-2.43-.22.03-.41.16-.53.33s-.17.4-.12.62c.81%203.88%203.7%207.41%208.47%207.41.54%200%201.11-.06%201.7-.15l1.78.96v3.81c-.18-.06-.34-.13-.46-.22-.35-.26-.85-.19-1.12.16-.26.35-.19.85.16%201.12.57.43%201.36.67%202.21.67s1.64-.24%202.21-.67c.35-.26.43-.76.16-1.12-.26-.35-.76-.43-1.12-.16-.12.09-.28.16-.46.22v-4.28c0-1.45.94-3.62%202.67-4.78.37-.24.47-.74.22-1.11-.24-.37-.74-.47-1.11-.22-1.6%201.
18506-2.84%202.97-3.24%204.84l-.91-.5c.16-1.77-.37-3.32-1.54-4.51zm-.03%204.25c-3.1.39-6.53-.81-7.82-5.19%202.06-.09%205.11.44%206.71%202.06.83.84%201.19%201.87%201.1%203.13z'/%3e%3cpath%20d='m30.9704%2035.9c-.44%200-.8.36-.8.8s.36.8.8.8h.87c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8z'/%3e%3cpath%20d='m29.2403%2034.89c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8h-.87c-.44%200-.8.36-.8.8s.36.8.8.8z'/%3e%3cpath%20d='m33.5704%2034.02c.44%200%20.8-.36.8-.8s-.36-.8-.8-.8h-.87c-.44%200-.8.36-.8.8s.36.8.8.8z'/%3e%3cpath%20d='m56.0302%202.93999-6.94.87c-.29.04-.54.23-.65.51l-1.76%204.69h-9.64c-.44%200-.8.36-.8.8v6.52001%203.89c0%20.44.36.8.8.8s.8-.36.8-.8v-3.34c1.49-.49%203.51-.41%205.81.22l-3.02%208.05c-.16.41.05.87.47%201.03.09.03.19.05.28.05.32%200%20.63-.2.75-.52l5.66-15.1h2.34v5.11c-.23.11-.46.24-.7.38-.87.52-1.49.84-2.19.49-.39-.2-.87-.04-1.07.36-.2.39-.04.87.36%201.07.46.23.89.32%201.31.32.91%200%201.69-.44%202.29-.79v21.76c0%20.52-.42.94-.94.94h-10.41c-.44%200-.8.36-.8.8s.36.8.8.8h10.41c1.4%200%202.53-1.14%202.53-2.53v-29.52001c0-.44-.36-.8-.8-.8h-2.53l1.38-3.67%206.46-.81c.44-.06.75-.45.69-.89-.05-.44-.45-.75-.89-.69zm-11.81%2012.64001c-1.9-.54-4.26-.91-6.38-.38v-4.6h8.24l-1.87%204.98z'/%3e%3cpath%20d='m31.06%2021.21c-.11.43.15.86.57.97%204.24%201.09%207.21%204.92%207.21%209.31%200%205.3-4.31%209.61-9.61%209.61s-9.61-4.31-9.61-9.61c0-4.38
185%202.96-8.21%207.19-9.31.43-.11.68-.55.57-.97-.11-.43-.55-.68-.97-.57-4.94%201.28-8.39%205.74-8.39%2010.85%200%206.18%205.03%2011.21%2011.21%2011.21s11.21-5.03%2011.21-11.21c0-5.12-3.46-9.58-8.41-10.86-.43-.11-.86.15-.97.57z'/%3e%3c/g%3e%3c/svg%3e",Cp="https://www.customink.com/ndx/assets/greeklife-D2NsnT5C.svg",Ip="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m26.8199%2021.6c.26%201.28%201.39%202.16%202.65%202.16.18%200%20.36-.02.55-.06l12.27-2.53c.71-.15%201.31-.56%201.71-1.16s.54-1.33.39-2.03l-2.53-12.27002c-.3-1.46-1.73-2.4-3.19-2.1l-12.27%202.53c-1.46.3-2.4%201.73-2.1%203.19l2.53%2012.27002zm13.53-15.58002%202.53%2012.27002c.13.63-.28%201.25-.9%201.38l-12.27%202.53c-.31.06-.62%200-.87-.17-.26-.17-.44-.43-.5-.74l-2.53-12.27002c-.06-.3%200-.61.17-.87s.43-.44.74-.5l12.27-2.53c.62-.13%201.25.28%201.37.91z'/%3e%3cpath%20d='m33.7899%208.38998c-.16-.07-.33-.08-.49-.05-.2.02-.37.09-.5.23-.13.13-.21.3-.25.5l-1.86%209.81002c0%20.13.01.22.02.27.05.23.16.4.32.51.11.07.25.11.4.11.07%200%20.14%200%20.22-.02.17-.03.32-.12.43-.24.12-.13.19-.29.21-.47l.42-2.23%204.29-.88%201.29%201.87c.11.15.25.27.4.34.16.07.33.09.5.06.22-.04.39-.16.52-.35s.17-.41.12-.65c-.02-.11-.06-.22-.13-.33l-5.53-8.11002c-.1-.17-.23-.29-.4-.35zm-.73%206.62002.73-3.8%202.18%203.2z'/%3e%3cpath%20d='m31.8101%2024.14h-12.53c-1.49%200-2.7%201.21-2.7%202.7v12.53c0%201.49%201.21%202.7%202.7%202.7h12.53c1.49%200%202.7-1.21%202.7-2.7v-12.53c0-1.49-1.21-2.7-2.7-2.7zm-13.69%202.71c0-.64.52-1.16%201.16-1.16h12.53c.64%200%201.16.52%201.16%201.16v12.53c0%20.64-.52%201.16-1.16%201.16h-12.53c-.64%200-1.16-.52-1.16-1.16z'/%3e%3cpath%20d='m22.34%2038.48h3.82c.95%200%201.78-.25%202.44-.74.68-.5%201.03-1.34%201.03-2.49%200-.73-.19-1.33-.57-1.79-.3-.36-.66-.65-1.09-.85.31-.2.57-.45.75-.75.24-.4.37-.85.37-1.36%200-.89-.25-1.58-.76-2.05-.5-.47-1.23-.71-2.17-.71h-3.82c-.24%200-.45.09-.62.26s-.26.38-.26.62v8.98c0%20.24.09.45.26.62s.38.26.62.26zm.97-9.02h2.65c.41%200%20.73.11.95.32s.33.52.33.95-.11.74-.35.96c-.24.23-.54.34-.9.35h-2.68v-2.57zm0%204.3h2.77c1.17%200%201.71.47%201.71%201.49%200%20.52-.14.9-.43%201.15-.3.26-.7.38-1.2.38h-2.84v-3.02z'/%3e%3cpath%20d='m54.71%2024.51-12.23-2.73c-1.46-.33-2.9.6-3.23%202.05l-2.73%2012.23c-.16.7-.03%201.43.36%202.04s.99%201.03%201.69%201.19l12.23%202.73c.2.04.4.07.59.07.51%200%201.01-.14%201.45-.42.61-.39%201.03-.99%201.19-1.69l2.73-12.23c.32-1.46-.6-2.9-2.05-3.23zm.55%202.89-2.73%2012.23c-.07.3-.25.56-.51.73s-.58.22-.88.15l-12.23-2.73c-.3-.07-.56-.25-.73-.51s-.22-.57-.15-.88l2.73-12.23c.12-.54.6-.91%201.14-.91.08%200%20.17%200%20.25.03l12.23%202.73c.3.07.56.25.73.51s.22.57.15.88z'/%3e%3cpath%20d='m48.9302%2026.77c-1-.22-1.97-.19-2.88.09s-1.7.78-2.35%201.49c-.64.71-1.08%201.57-1.3%202.57-.24%201.09-.21%202.11.09%203.03s.82%201.7%201.53%202.31%201.56%201.02%202.52%201.24c.39.09.79.13%201.21.13h.26c.51-.02.99-.1%201.42-.23.15-.04.27-.12.38-.23s.18-.24.21-.38c.04-.2.02-.41-.08-.61-.11-.24-.31-.39-.57-.45-.16-.04-.32-.03-.48%200-.63.21-1.29.24-1.98.08-.67-.15-1.24-.43-1.71-.84s-.79-.93-.98-1.55c-.18-.62-.19-1.33-.01-2.1.16-.72.45-1.32.87-1.81.42-.48.93-.82%201.52-1%20.6-.19%201.25-.2%201.95-.05.66.15%201.26.45%201.76.91.13.11.28.19.44.23.25.06.49%200%20.67-.16.18-.14.29-.32.34-.53.07-.32-.02-.6-.27-.82-.74-.66-1.6-1.11-2.56-1.32z'/%3e%3c/g%3e%3c/svg%3e",Ap="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m22.8603%2031.0199c-.71%201.26-1.06%202.65-1.06%204.25%200%204.65%203.13%207.54%208.17%207.54%201.12%200%201.98-.17%203.39-.69l.43-.16c.16-.06.28-.1.4-.14.61-.2%201.04-.29%201.5-.29s.89.08%201.5.29c.12.04.25.08.41.14l.43.16c1.41.51%202.27.69%203.39.69%205.04%200%208.17-2.89%208.17-7.54%200-1.55-.34-2.92-1.05-4.2-.5-.9-1.09-1.66-2.2-2.81l-.1-.1c-.
18518-.19-.54-.55-.65-.68-.28-.29-.48-.51-.66-.73-.24-.28-.49-.66-.8-1.24-.06-.12-.24-.46-.44-.85-.28-.54-.63-1.22-.78-1.49-.86-1.56-1.63-2.57-2.59-3.37-1.31-1.09-2.82-1.62-4.63-1.62s-3.32.53-4.63%201.62c-.96.8-1.73%201.8-2.59%203.37-.15.27-.47.9-.76%201.46-.21.41-.39.76-.46.88-.31.58-.56.96-.8%201.24-.27.31-.55.62-1.03%201.12l-.31.32c-1.23%201.27-1.76%201.94-2.27%202.83zm3.5-1.64.31-.32c.52-.54.81-.85%201.1-1.19.32-.38.63-.85%201-1.53.07-.14.27-.51.48-.93.28-.54.6-1.16.73-1.41.74-1.35%201.41-2.23%202.18-2.87.99-.82%202.14-1.22%203.54-1.22s2.55.4%203.54%201.22c.77.64%201.44%201.53%202.18%202.87.14.25.45.87.73%201.41.22.42.41.79.48.93.37.69.68%201.16%201%201.53.21.24.43.48.73.8.12.12.45.46.63.65l.12.13c.99%201.03%201.52%201.69%201.93%202.45.56%201.01.83%202.12.83%203.37%200%203.7-2.35%205.82-6.46%205.82-.91%200-1.59-.14-2.81-.58l-.43-.16c-.17-.06-.31-.11-.45-.16-.79-.26-1.4-.37-2.04-.37s-1.25.11-2.04.37c-.14.05-.28.09-.45.16l-.43.16c-1.22.44-1.9.58-2.81.58-4.11%200-6.46-2.12-6.46-5.82%200-1.31.27-2.4.84-3.41.42-.75.89-1.33%202-2.48z'/%3e%3cpath%20d='m22.6002%2025.0499c1.11-.4%202.02-1.25%202.55-2.4.67-1.44.71-3.22.11-4.86-.98-2.51-3.08-4.11-5.38-4.11-.03%200-.07%200-.1%200h-.02c-.43.05-.83.09-1.22.25-1.12.4-2.02%201.25-2.56%202.4-.67%201.44-.71%203.22-.11%204.86%201.12%203.06%204.14%204.79%206.73%203.86zm-5.07-7.98c.34-.74.91-1.28%201.59-1.52.32-.1.57-.15.81-.15%201.65.05%203.04%201.17%203.73%202.99.45%201.22.43%202.51-.05%203.54-.34.74-.91%201.28-1.59%201.52-.29.11-.59.16-.89.16-1.47%200-2.99-1.18-3.65-2.99-.45-1.22-.43-2.51.05-3.54z'/%3e%3cpath%20d='m52.88%2013.9399c-.33-.11-.78-.24-1.25-.25h-.22s-.06%200-.09%200c-.23%200-.37%200-.69.06-1.95.34-3.67%201.89-4.48%204.05-.6%201.64-.56%203.42.11%204.86.53%201.14%201.44%202%202.55%202.4%202.59.93%205.61-.8%206.73-3.86.6-1.65.56-3.42-.11-4.86-.53-1.14-1.44-2-2.55-2.4zm1.05%206.66c-.66%201.81-2.18%202.99-3.65%202.99-.3%200-.6-.05-.89-.16-.68-.25-1.24-.79-1.59-1.52-.48-1.03-.5-2.32-.05-3.54.56-1.43%201.83-2.97%203.73-2.99v.1l.03-.1c.26.02.53.05.79.15.68.24%201.24.79%201.58%201.52.48%201.03.5%202.32.05%203.54z'/%3e%3cpath%20d='m40.7899%2016.5399c2.71.47%205.39-1.75%205.96-4.96.31-1.71995-.04-3.45995-.96-4.76995-.73-1.04-1.77-1.72-2.93-1.92l-.14-.02c-.1-.01334-.1933-.02334-.28-.03-.07%200-.17%200-.35-.02-2.65.17-4.5899%202.05-5.1899%205.03-.31%201.71995.0399%203.45995.9599%204.75995.73%201.04%201.77%201.72%202.93%201.92zm-2.2-6.39c.5-2.53995%202.19-3.52995%203.48-3.60995h.21c.06%200%20.1234.00666.19.02h.08c.72.14%201.37.57%201.84%201.24.65.93.89%202.19.67%203.46995-.37%202.09-1.9%203.61-3.53%203.61-.15%200-.2999-.01-.4499-.04-.71-.13-1.3701-.56-1.8301-1.23-.65-.93-.8899-2.2-.6699-3.47z'/%3e%3cpath%20d='m30.75%2016.5399c1.17-.2%202.21-.89%202.93-1.92.91-1.31%201.26-3.04.96-4.76995-.48-2.42-2.27-4.92-5.19-5.03-.18%200-.28.01-.35.02-.0866%200-.18.01-.28.03l-.14.02c-1.16.2-2.21.89-2.93%201.92-.91%201.31-1.26%203.04-.96%204.76995.57%203.21%203.24%205.43%205.96%204.96zm-4.27-5.26c-.23-1.27995.02-2.53995.67-3.46995.47-.67%201.12-1.11%201.83-1.23h.09c.0667-.02.13-.03.19-.03h.21c1.99.17%203.18%201.93%203.47%203.60995.23%201.28-.02%202.54-.67%203.47-.47.67-1.12%201.1-1.83%201.23-.15.03-.3.04-.45.04-1.63%200-3.16-1.52-3.53-3.61z'/%3e%3c/g%3e%3c/svg%3e",yp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m59.7802%2023.97c0-.44-.36-.8-.8-.8h-8.67l.31-.27c.48-.42.67-1.08.47-1.69s-.73-1.03-1.37-1.09l-9.01-.76-3.53-8.35c-.25-.59-.82-.97-1.46-.97s-1.21.38-1.46.97l-3.51%208.34-9.03.78c-.64.05-1.17.48-1.37%201.09s-.01%201.27.47%201.69l.31.27h-8.67c-.44%200-.8.36-.8.8%200%202.46%201.76%204.52%204.09%204.99.3%202.14%201.93%203.86%204.03%204.28.34%202.47%202.46%204.38%205.03%204.38h.82v.03c-.15.62.09%201.27.6%201.64.28.2.6.3.93.3.28%200%20.56-.08.82-.23l7.74-4.68%207.76%204.68c.55.33%201.23.3%201.75-.07s.76-1.02.61-1.64v-.03h.81c2.56%200%204.68
185-1.91%205.03-4.38%202.1-.42%203.73-2.14%204.03-4.28%202.33-.46%204.09-2.52%204.09-4.98zm-43.06%203.47c-1.64%200-3.02-1.14-3.38-2.67h9.63l3.09%202.67zm9.66%206.81-.41%201.75h-1.19c-1.64%200-3.02-1.14-3.38-2.67h5.19zm.59-2.53h-6.21c-1.64%200-3.02-1.14-3.38-2.67h10.22l-.38%201.65-.24%201.02zm9.55%201.58c-.25-.15-.53-.23-.82-.23s-.57.08-.82.23l-7.71%204.65.22-.95s0-.01%200-.02l.62-2.66.69-2.98.51-2.17c.07-.29.05-.58-.04-.85-.02-.06-.05-.13-.08-.19%200-.01-.01-.02-.02-.03-.03-.05-.05-.1-.08-.15%200-.01-.02-.03-.03-.04-.03-.04-.06-.09-.1-.13-.01-.01-.02-.03-.04-.04-.02-.03-.05-.06-.08-.08-.02-.02-.03-.03-.05-.05l-4.24-3.67-2.57-2.23%208.98-.77c.59-.05%201.09-.42%201.32-.96l3.51-8.3%203.51%208.3c.23.54.74.91%201.32.96l8.98.77-2.57%202.23-4.24%203.67s-.04.04-.05.05c-.03.03-.05.05-.07.08-.01.01-.02.02-.03.03-.04.04-.07.08-.1.13-.01.01-.02.03-.03.04-.03.05-.06.09-.08.14%200%20.01-.01.03-.02.04-.03.06-.05.11-.07.17v.02c-.09.27-.1.56-.04.85l.48%202.04.75%203.21.59%202.56v.02l.22.94-7.71-4.65zm10.1%202.7h-1.19v-.02l-.62-2.65h5.19c-.36%201.53-1.74%202.67-3.38%202.67zm4.03-4.28h-6.21l-.63-2.67h10.22c-.36%201.53-1.74%202.67-3.38%202.67zm4.04-4.28h-9.33l3.08-2.67h9.63c-.36%201.53-1.74%202.67-3.38%202.67z'/%3e%3cpath%20d='m53.8001%209.40003c-.14-.44-.54-.76-1-.8l-3.82-.33-1.4899-3.53c-.18-.43-.6001-.71-1.0701-.71s-.88.28-1.07.71l-1.49%203.53-3.8199.33c-.46.04-.86.35-1%20.8s0%20.92997.34%201.22997l2.8999%202.51-.87%203.73c-.11.45.0701.92.4501%201.2.38.27.8799.3%201.2799.06l3.28-1.98%203.2801%201.98c.18.11.3899.17.5999.17.24%200%20.48-.07.68-.22.38-.27.5501-.74.4501-1.2l-.87-3.73%202.8999-2.51c.35-.3.49-.78997.34-1.22997zm-4.4899%202.70997c-.33.28-.4701.72-.3701%201.14l.6901%202.96-2.6001-1.57c-.37-.22-.83-.22-1.19%200l-2.5999%201.57.6899-2.96c.1-.42-.0399-.85-.3699-1.14l-2.2901-1.99%203.0201-.25997c.43-.04.7999-.31.9699-.7l1.18-2.8%201.18%202.8c.17.4.54.67.97.7l3.0201.25997-2.2901%201.99z'/%3e%3cpath%20d='m32.3602%209.40003c-.14-.44-.54-.75-1-.8l-3.82-.33-1.49-3.53c-.18-.43-.6-.71-1.07-.71s-.88.28-1.07.71l-1.49%203.53-3.82.33c-.46.04-.86.35-1%20.8s0%20.92997.34%201.22997l2.9%202.51-.87%203.73c-.11.45.07.92.45%201.2.38.27.88.29%201.28.05l3.28-1.98%203.28%201.98c.18.11.39.17.6.17.24%200%20.48-.07.68-.22.38-.27.55-.74.45-1.2l-.87-3.73%202.9-2.51c.35-.31.49-.78997.34-1.22997zm-4.5%202.70997c-.32.28-.47.72-.37%201.14l.69%202.96-2.6-1.57c-.37-.22-.83-.22-1.2%200l-2.6%201.57.69-2.96c.1-.42-.04-.86-.37-1.14l-2.29-1.99%203.02-.25997c.43-.04.8-.31.97-.7l1.18-2.8%201.18%202.79c.17.4.54.67.97.7l3.02.25997-2.29%201.99z'/%3e%3c/g%3e%3c/svg%3e",Op="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m33.4201%2037.82c.65.44%201.23.82%201.7%201.15.14.1.3.14.46.14s.32-.05.46-.14c.47-.33%201.07-.73%201.74-1.18%205.17-3.46%2014.8-9.89%2016.09-17.52.48-2.86-.27-5.62-2.22-8.19-1.66-2.18001-3.91-3.44001-6.33-3.55001h-.11c-.36-.02-.74-.04-1.11%200-1.08.12-2.21.48-3.36%201.08-2.82%201.47001-3.82%203.18001-5.09%205.69001-1.18-2.71-2.34-4.6-5.33-5.87001-1.18-.5-2.48-.77-3.77-.77-2.88%200-5.41%201.25-6.95%203.44001-1.88%202.69-2.56%205.53-2.01%208.45%201.43%207.62%2010.8%2013.89%2015.83%2017.26zm-12.51-24.8c1.23-1.76%203.28-2.76%205.64-2.76%201.07%200%202.16.22%203.14.64%202.93%201.25%203.72%203.15%205.15%206.61.12.29.39.48.71.49.31.01.6-.16.74-.43.18-.36.36-.7.52-1.03%201.36-2.69%202.11-4.18%204.66-5.51.97-.5%201.91-.81%202.79-.9.29-.03.59-.01.86%200h.11c2.63.12%204.34%201.88%205.13%202.92%201.7%202.24%202.33%204.52%201.92%206.96-1.17%206.94-10.43%2013.13-15.4%2016.45-.48.32-.92.62-1.31.88-.38-.26-.8-.54-1.27-.86-4.84-3.24-13.85-9.27-15.15-16.23-.47-2.52.1-4.88%201.75-7.24z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",Rp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m44.9204%2036.21c0%20.82.34%201.55.97%202.06.56.45%201.3.69%202.1.69.3%200%20.61-.03.92-.1%202.06-.44%203.67-2.17%203.67-3.94v-11.61c.43.41.86.68%201.25.93.96.61%201.53.98%201.53%203.38%200%20.43.35.79.79.79s.79-.35.79-.79c0-3.03-.93-3.86-2.26-4.71-.74-.47-1.51-.97-2.16-2.46-.15-.34-.52-.53-.88-.45s-.62.4-.62.77v11.71c-.69-.32-1.54-.41-2.42-.22-2.06.44-3.67%202.17-3.67%203.94zm4-2.41c.2-.04.4-.06.59-.06.45%200%20.84.12%201.12.34.26.21.39.49.39.84%200%201.03-1.11%202.13-2.42%202.41-.68.14-1.32.04-1.71-.28-.26-.21-.39-.49-.39-.84%200-1.03%201.11-2.13%202.42-2.41z'/%3e%3cpath%20d='m25.7801%2013.7c0%20.43.35.79.79.79s.79-.35.79-.79c0-3.03-.94-3.85998-2.26-4.70998-.74-.47-1.51-.97-2.16-2.46-.15-.34-.52-.53-.88-.45s-.62.4-.62.77v11.70998c-.69-.32-1.54-.41-2.42-.22-2.06.44-3.67%202.17-3.67%203.94%200%20.82.34%201.55.97%202.06.56.45%201.3.69%202.1.69.3%200%20.61-.03.92-.1%202.06-.44%203.67-2.17%203.67-3.94v-11.60998c.43.41.86.67998%201.25.92998.96.61%201.53.98%201.53%203.38zm-6.77%209.7c-.68.14-1.32.04-1.71-.27-.26-.21-.39-.49-.39-.84%200-1.03%201.11-2.13%202.42-2.41.2-.04.4-.06.59-.06.45%200%20.84.12%201.12.34.26.21.39.49.39.84%200%201.03-1.11%202.13-2.42%202.41z'/%3e%3cpath%20d='m44.7502%2025.34v-15.01c0-.26-.12-.48996-.33-.63996s-.48-.18-.72-.1l-12.18%204.34996c-.31.11-.52.41-.52.74v12.58c-.69-.32-1.54-.41-2.42-.22-2.06.44-3.67%202.17-3.67%203.94%200%20.82.34%201.55.97%202.06.56.45%201.3.69%202.1.69.3%200%20.61-.03.92-.1%202.06-.44%203.67-2.17%203.67-3.94v-10.11l10.61-3.79v7.12c-.69-.32-1.54-.41-2.42-.22-2.06.44-3.67%202.17-3.67%203.94%200%20.82.34%201.55.97%202.06.56.45%201.3.69%202.1.69.3%200%20.61-.03.92-.1%202.06-.44%203.67-2.17%203.67-3.94zm-16.17%206.76c-.68.14-1.32.04-1.71-.28-.26-.21-.39-.49-.39-.84%200-1.03%201.11-2.13%202.42-2.41.2-.04.4-.06.59-.06.45%200%20.84.12%201.12.34.26.21.39.49.39.84%200%201.03-1.11%202.13-2.42%202.41zm3.99-14.18v-2.68l
18510.61-3.79v2.68zm6.48%209.56c-.26-.21-.39-.49-.39-.84%200-1.03%201.11-2.13%202.42-2.41.2-.04.4-.06.59-.06.45%200%20.84.12%201.12.34.26.21.39.49.39.84%200%201.03-1.11%202.13-2.42%202.41-.68.14-1.32.04-1.71-.27z'/%3e%3cpath%20d='m39.6203%2038.09c.43%200%20.79-.35.79-.79s-.35-.79-.79-.79h-1.74s-.06%200-.09%200c0-.03%200-.06%200-.09v-1.74c0-.43-.35-.79-.79-.79s-.79.35-.79.79v1.74.09c-.03%200-.06%200-.09%200h-1.74c-.43%200-.79.35-.79.79s.35.79.79.79h1.74.09v.09%201.74c0%20.43.35.79.79.79s.79-.35.79-.79v-1.74s0-.06%200-.09h.09zm-2.61-.7s-.06%200-.09%200c0-.03%200-.06%200-.09s0-.06%200-.09h.09.09v.09.09c-.03%200-.06%200-.09%200z'/%3e%3cpath%20d='m48.6302%2014.37c.15.15.35.23.56.23s.4-.08.56-.23l1.74-1.74c.31-.31.31-.8%200-1.11s-.8-.31-1.11%200l-1.74%201.74c-.31.31-.31.8%200%201.11z'/%3e%3cpath%20d='m53.5403%2010.25c.2%200%20.4-.08.56-.23l1.74-1.74c.31-.31.31-.8%200-1.11s-.8-.31-1.11%200l-1.74%201.74c-.31.31-.31.8%200%201.11.15.15.35.23.56.23z'/%3e%3cpath%20d='m52.9803%2012.63%201.74%201.74c.15.15.35.23.56.23s.4-.08.56-.23c.31-.31.31-.8%200-1.11l-1.74-1.74c-.31-.31-.8-.31-1.11%200s-.31.8%200%201.11z'/%3e%3cpath%20d='m50.3702%2010.02c.15.15.35.23.56.23s.4-.08.56-.23c.31-.31.31-.8%200-1.11l-1.74-1.74c-.31-.31-.8-.31-1.11%200s-.31.8%200%201.11l1.74%201.74z'/%3e%3cpath%20d='m15.2602%2035.65c-.43%200-.79.35-.79.79s.35.79.79.79h2.61c.43%200%20.79-.35.79-.79s-.35-.79-.79-.79z'/%3e%3cpath%20d='m21.3501%2035.65c-.43%200-.79.35-.79.79s.35.79.79.79h2.61c.43%200%20.79-.35.79-.79s-.35-.79-.79-.79z'/%3e%3cpath%20d='m19.6103%2037.39c-.43%200-.79.35-.79.79v2.61c0%20.43.35.79.79.79s.79-.35.79-.79v-2.61c0-.43-.35-.79-.79-.79z'/%3e%3cpath%20d='m20.3901%2032.08c0-.43-.35-.79-.79-.79s-.79.35-.79.79v2.61c0%20.43.35.79.79.79s.79-.35.79-.79z'/%3e%3c/g%3e%3c/svg%3e",Dp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m37.27%207.86004h1.87s.07-.02.1-.02c.07.25.16.48.29.7-.03.02-.06.03-.09.06l-1.33%201.32c-.29.28996-.29.75996%200%201.05996.15.15.34.22.53.22s.38-.07.53-.22l1.33-1.31996s.04-.06.06-.09c.22.13.45.22.69.29%200%20.03-.02.06-.02.1v1.86996c0%20.41.33.75.75.75s.75-.33.75-.75v-1.86996s-.02-.07-.02-.1c.25-.
18507.48-.16.7-.29.02.03.03.06.06.09l1.32%201.31996c.15.15.34.22.53.22s.38-.07.53-.22c.29-.29.29-.76%200-1.04996l-1.32-1.32s-.06-.04-.09-.06c.13-.22.22-.45.29-.69.03%200%20.06.02.1.02h1.87c.41%200%20.75-.33.75-.75s-.33-.75-.75-.75h-1.87s-.07.02-.1.02c-.07-.25-.16-.48-.29-.7.03-.02.06-.03.09-.06l1.32-1.32c.29-.29.29-.76%200-1.05s-.76-.29-1.05%200l-1.32%201.32s-.04.06-.06.09c-.22-.13-.45-.22-.7-.29%200-.03.02-.06.02-.1v-1.87c0-.41-.33-.75-.75-.75s-.75.33-.75.75v1.87s.02.07.02.1c-.25.07-.48.16-.69.29-.02-.03-.03-.06-.06-.09l-1.33-1.32c-.29-.29-.76-.29-1.05%200s-.29.76%200%201.06l1.33%201.32s.06.04.09.06c-.13.22-.22.45-.29.7-.03%200-.06-.02-.1-.02h-1.87c-.41%200-.75.33-.75.75s.33.75.75.75zm4.71-2.1c.75%200%201.35.61%201.35%201.35s-.61%201.35-1.35%201.35-1.35-.61-1.35-1.35.61-1.35%201.35-1.35z'/%3e%3cpath%20d='m53.11%2030.92h.08c.51%200%20.96-.28%201.19-.74.22-.46.17-.99-.15-1.4l-2.03-2.6c.43-.01.82-.26%201.01-.65.2-.4.15-.88-.13-1.23l-2.71-3.48c-.22-.28-.56-.45-.92-.45s-.7.16-.92.45l-2.72%203.47c-.28.35-.33.83-.13%201.23.19.4.58.65%201.02.66l-2.04%202.59c-.32.4-.37.94-.15%201.39.22.46.68.75%201.19.75h.09l-1.97%202.51c-.34.44-.4%201.02-.16%201.52s.74.81%201.29.81h3.74v2.83c0%20.41.33.75.75.75s.75-.33.75-.75v-2.82h3.74c.55%200%201.05-.31%201.29-.81s.18-1.08-.16-1.52l-1.96-2.51zm-3.62%203.35s-.03%200-.04%200-.03%200-.04%200h-4.36l2.57-3.27c.23-.3.28-.69.11-1.03s-.5-.55-.88-.55h-.8l2.47-3.15c.23-.3.28-.69.11-1.03s-.5-.55-.88-.55h-.35l2.05-2.62%202.04%202.63h-.34c-.38%200-.71.21-.88.55s-.13.74.11%201.03l2.46%203.16h-.79c-.38%200-.71.21-.88.55s-.12.74.11%201.03l2.65%203.26h-4.45z'/%3e%3cpath%20d='m55.34%2016.71-5.26-4.59c-.75-.65-1.87-.61-2.56.11l-4.3%204.43-1.05%201c-.13.05-.28.05-.39-.05l-8.4-8.09998c-.36-.35-.86-.53-1.33-.52-.5%200-.96.21-1.31.57l-15.43%2016.00998c-.29.3-.28.77.02%201.05.14.14.33.21.52.21s.39-.08.54-.23l10.39-10.78%203.18%202.79c.27.24.61.35.94.35.37%200%20.74-.14%201.02-.43l1.67-1.78%201.29%201.26c.54.52%201.4.54%201.96.04l1.68-1.52%202.23%202.15c.06.06.13.1.19.15l-3.65%203.48-1.64-1.1c-.54-.36-1.27-.3-1.73.16l-5.09%204.96s0%20.01-.01.02c-3.94.42-8.18%201.43-13.1%203.12-.39.13-.6.56-.46.95.11.31.4.5.71.5.08%200%20.16-.01.24-.04%2
18506.14-2.11%2011.19-3.15%2015.89-3.26%204.99-.13%207.2.88%207.22.89.38.18.82.02%201-.35s.02-.82-.35-1c-.1-.05-2.5-1.15-7.9-1.04-.31%200-.62.03-.93.04l3.77-3.67%201.64%201.1c.55.37%201.29.3%201.74-.16l4.73-4.51c.13-.08.26-.17.38-.29l5.21-5.38c.14-.14.36-.15.51-.02l5.26%204.59c.31.27.78.24%201.05-.07s.24-.78-.07-1.05zm-19.43.24-1.29-1.25c-.56-.55-1.47-.54-2.02.02l-1.67%201.78-3.13-2.74%204.01-4.16c.09-.1.2-.11.26-.11.07%200%20.17.01.27.1l5.1%204.92z'/%3e%3cpath%20d='m41.0099%2033.7001c-3.52%201.13-6.41%203.49-8.32%205.05-.51.42-.96.78-1.35%201.07-.22.17-.47.32-.73.48-.07-.06-.14-.11-.23-.14-.15-.05-3.64-1.31-8.46-1.31s-7.64%201.7-7.76%201.77c-.35.22-.45.68-.23%201.03.14.23.38.35.63.35.13%200%20.27-.04.39-.11.02-.02%202.53-1.54%206.96-1.54%202.99%200%205.47.52%206.83.89-1.83.78-3.65%201.28-3.68%201.29-.4.11-.63.52-.52.91.09.33.39.55.72.55.06%200%20.13%200%20.2-.03.18-.05%204.45-1.22%206.77-2.93.4-.29.87-.68%201.41-1.11%201.93-1.58%204.58-3.74%207.83-4.78.39-.13.61-.55.48-.94s-.54-.61-.94-.48z'/%3e%3cpath%20d='m25.8997%2030.8h-3.45c-.41%200-.75.33-.75.75s.33.75.75.75h3.45c.41%200%20.75-.33.75-.75s-.33-.75-.75-.75z'/%3e%3cpath%20d='m19.6699%2035.4501c0%20.41.33.75.75.75h1.72c.41%200%20.75-.33.75-.75s-.33-.75-.75-.75h-1.72c-.41%200-.75.33-.75.75z'/%3e%3cpath%20d='m26.5298%2035.4501c0%20.41.33.75.75.75h4.01c.41%200%20.75-.33.75-.75s-.33-.75-.75-.75h-4.01c-.41%200-.75.33-.75.75z'/%3e%3cpath%20d='m31.9199%2032.9501h4.01c.41%200%20.75-.33.75-.75s-.33-.75-.75-.75h-4.01c-.41%200-.75.33-.75.75s.33.75.75.75z'/%3e%3c/g%3e%3c/svg%3e",vp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m47.5599%204.75996c-.99-.99-2.61-.99-3.61%200l-1.24%201.23c-.48.48-.75%201.12-.75%201.8%200%20.38.09.75.25%201.09h-6.52c-1.1%200-2.5.63-3.32%201.50004l-4.18%204.42c-1.26%201.33-1.22%203.38.07%204.67.66.65%201.52.98%202.38.98s1.72-.33%202.38-.98l2.73-2.71%203.15-.09%2011.52%2011.82c.31.31.49.73.49%201.18%200%20.49-.2.95-.55%201.3-.71.7-1.83.74-2.5.07l-1.77-1.76c-.31-.31-.82-.31-1.13%200s-.31.82%200%201.13l3.45%203.43c.31.31.49.73.49%201.17%200%20.48-.2.95-.55%201.3-.71.7-1.83.73-2.5.07l-.09-.09c-.07-.07-.15-.12-.24-.16-.04-.09-.09-.17-.16-.24l-2.63-2.61c-.31-.31-.82-.31-1.13%200s-.31.82%200%201.13l2.63%202.61c.07.07.15.12.24.16.04.08.09.16.16.23.66.67.63%201.78-.07%202.47-.71.71-1.84.74-2.51.07l-.19-.19c-.03-.05-.07-.1-.11-.15l-2.63-2.61c-.31-.31-.82-.31-1.13%200s-.31.82%200%201.13l.86.85s.02.03.03.04c.61.68.56%201.74-.12%202.41-.71.71-1.84.74-2.51.07l-1.37-1.36.03-.03c.65-.64%201.01-1.5%201.01-2.42s-.36-1.77-1.01-2.41c-.52-.52-1.18-.83-1.86-.95.25-.48.38-1.01.38-1.57%200-.91-.36-1.77-1.01-2.41-.75-.74-1.75-1.07-2.73-.98%200-.1.01-.2.01-.3%200-.91-.36-1.77-1.01-2.41-1.08-1.08-2.71-1.28-4-.61-.12-.7-.44-1.34-.96-1.85-1.01-1-2.49-1.25-3.73-.74l-2.33-2.32%2011.03-10.96c.48-.48004.75-1.12004.75-1.80004s-.27-1.32-.75-1.8l-1.24-1.23c-.99-.99-2.61-.99-3.61%200l-11.16%2011.09004c-.48.48-.75%201.12-.75%201.8s.27%201.32.75%201.8l1.24%201.23c.5.49%201.15.74%201.8.74.18%200%20.36-.02.54-.06.04.07.08.13.14.19l2.27%202.26-.41.41c-.65.64-1.01%201.5-1.01%202.41s.36%201.77%201.01%202.41c.52.52%201.18.83%201.86.95-.25.48-.38%201.01-.38%201.57%200%20.91.36%201.77%201.01%202.42.67.66%201.55%201%202.42%201%20.1%200%20.2%200%20.31-.01%200%20.1-.01.2-.01.3%200%20.91.36%201.77%201.01%202.42.67.66%201.55%201%202.42%201%20.54%200%201.09-.13%201.58-.38.12.7.44%201.34.96%201.85.67.66%201.55%201%202.42%201%20.63%200%201.27-.18%201.82-.52l1.44%201.43c.63.63%201.47.94%202.32.94s1.77-.34%202.45-1.01c.46-.46.77-1.02.91-1.61l.13.13c1.29%201.29%203.43%201.26%204.77-.07.71-.71%201.05-1.66%201.01-2.58.99.1%202.02-.23%202.79-.99.66-.66%201.03-1.52%201.02-2.44%200-.73-.24-1.43-.68-1.99.61-.14%201.2-.45%201.67-.92.66-.65%201.02-1.52%201.02-2.43%200-.88-.34-1.7-.95-2.31l-11.75-12.07s-.01%200-.01-.01c-.02-.02-.03-.03-.05-.04-.02-.02-.05-.04-.07-.06-.01%200-.03-.01-.04-.02-.03-.02-.06-.04-.1-.05-.01%200-.03%200-.04-.01-.03-.01-.07-.02-.11-.03-.02%200-.04%200-.05%200-.03%200-.07%200-.1%200%200%200-.01%200-.02%200l-3.81.11c-.2%200-.4.09-.54.23l-2.95%202.93c-.69.69-1.82.69-2.51%200-.68-.67-.69-1.74-.04-2.44l4.18-4.42c.52-.55%201.49-1%202.16-1h7.9l9.65%209.58-2.77%202.75c-.31.31-.31.82%200%201.13.16.16.36.24.57.24s.41-.08.56-.23l2.86-2.84c.38.2.79.32%201.21.32.65%200%201.31-.25%201.8-.74l1.24-1.23c.48-.48.75-1.12.75-1.8s-.27-1.32-.75-1.8l-11.16-11.09004zm-32.51%2015.41004-1.24-1.23c-.18-.18-.28-.41-.28-.67s.1-.49.28-.67l11.16-11.09004c.19-.19.43-.28.68-.28s.49.09.68.28l1.24%201.23c.18.18.28.41.28.67s-.1.49-.28.67l-11.16%2011.09004c-.37.37-.98.37-1.35%200zm4.34%208.37c-.34-.34-.53-.8-.53-1.28s.19-.94.53-1.28l.62-.62c.36-.36.83-.53%201.3-.53s.94.18%201.3.53c.34.34.53.8.53%201.28s-.19.94-.53%201.28l-.19.19-.43.43c-.72.71-1.88.71-2.59%200zm5.07%204.93c-.72.71-1.88.71-2.59%200-.34-.34-.53-.8-.53-1.28s.19-.94.53-1.28l1.24-1.23.62-.62%201.24-1.23c.36-.36.83-.53%201.3-.53s.94.18%201.3.53c.34.34.53.8.53%201.28s-.19.94-.53%201.28l-3.1%203.08zm3.72%203.69c-.72.71-1.88.71-2.59%200-.34-.34-.53-.8-.53-1.28s.19-.94.53-1.28l3.1-3.08c.36-.36.83-.53%201.3-.53s.94.18%201.3.53c.34.34.53.8.53%201.28s-.19.94-.53%201.28l-1.24%201.23-.05.05-1.81%201.8zm5.58%201.85-.62.62c-.72.71-1.88.71-2.59%200-.34-.34-.53-.8-.53-1.28s.19-.94.54-1.28l.62-.62c.36-.36.83-.53%201.3-.53s.94.18%201.3.53c.34.34.53.8.53%201.28s-.19.94-.53%201.28zm23.84-20.69-1.24%201.23c-.37.37-.98.37-1.35%200l-11.16-11.09004c-.18-.18-.28-.41-.28-.67s.1-.49.28-.67l1.24-1.23c.37-.37.98-.37%201.35%200l11.16%2011.09004c.18.18.28.42.28.67s-.1.49-.28.67z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",Pp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m54.2801%2026.48c1.35%200%201.35-2.1%200-2.1s-1.35%202.1%200%202.1z'/%3e%3cpath%20d='m43.6697%205.19995c-1.35%200-1.35%202.1%200%202.1s1.35-2.1%200-2.1z'/%3e%3cpath%20d='m29.5398%2010.68c-1.35%200-1.35%202.1%200%202.1s1.35-2.1%200-2.1z'/%3e%3cpath%20d='m17.3797%2013.5c-1.35%200-1.35%202.1%200%202.1s1.35-2.1%200-2.1z'/%3e%3cpath%20d='m47.5197%2012.36c-.29%200-.53.24-.53.53v.73c0%20.29.24.53.53.53s.53-.24.53-.53v-.73c0-.29-.24-.53-.53-.53z'/%3e%3cpath%20d='m47.5197%2014.98c-.29
185%200-.53.24-.53.53v.73c0%20.29.24.53.53.53s.53-.24.53-.53v-.73c0-.29-.24-.53-.53-.53z'/%3e%3cpath%20d='m46.3401%2014.04c-.29%200-.53.24-.53.53s.24.53.53.53h.34c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53z'/%3e%3cpath%20d='m48.6898%2015.09c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53h-.34c-.29%200-.53.24-.53.53s.24.53.53.53z'/%3e%3cpath%20d='m22.3996%204.51996c-.29%200-.53.24-.53.53v.73c0%20.29.24.53.53.53s.53-.24.53-.53v-.73c0-.29-.24-.53-.53-.53z'/%3e%3cpath%20d='m22.3996%207.14996c-.29%200-.53.24-.53.53v.73c0%20.29.24.53.53.53s.53-.24.53-.53v-.73c0-.29-.24-.53-.53-.53z'/%3e%3cpath%20d='m21.2199%206.19995c-.29%200-.53.24-.53.53s.24.53.53.53h.34c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53z'/%3e%3cpath%20d='m23.5697%207.25c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53h-.34c-.29%200-.53.24-.53.53s.24.53.53.53z'/%3e%3cpath%20d='m18.3398%2022.77v-.73c0-.29-.24-.53-.53-.53s-.53.24-.53.53v.73c0%20.29.24.53.53.53s.53-.24.53-.53z'/%3e%3cpath%20d='m17.29%2024.67v.73c0%20.29.24.53.53.53s.53-.24.53-.53v-.73c0-.29-.24-.53-.53-.53s-.53.24-.53.53z'/%3e%3cpath%20d='m16.1099%2023.72c0%20.29.24.53.53.53h.34c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53h-.34c-.29%200-.53.24-.53.53z'/%3e%3cpath%20d='m18.9896%2024.25c.29%200%20.53-.24.53-.53s-.24-.53-.53-.53h-.34c-.29%200-.53.24-.53.53s.24.53.53.53z'/%3e%3cpath%20d='m45.8%2038.14c1.29-1.4%202.28-3.01%202.92-4.79.04-.07.07-.14.08-.23.5-1.47.75-2.99.75-4.5%200-1.66-.3-3.31-.9-4.91-.02-.09-.05-.16-.07-.2-.73-1.86-1.82-3.52-3.23-4.89-.04-.05-.09-.09-.1-.1-2.42-2.33-5.59-3.71-8.93-3.9v-10.85002c0-.44-.35-.79-.79-.79s-.79.35-.79.79v10.85002c-3.35.19-6.52%201.57-8.92%203.88-.04.03-.08.06-.1.09-1.43%201.4-2.52%203.05-3.24%204.88-.04.07-.07.15-.08.2-.61%201.61-.92%203.27-.92%204.94%200%201.53.26%203.05.76%204.5.02.08.04.16.08.23.64%201.79%201.63%203.41%202.93%204.81.05.07.1.13.14.16%202.68%202.8%206.28%204.34%2010.13%204.34s7.44-1.54%2010.09-4.31c.08-.06.14-.12.19-.2zm-14.4-21.26c-.35.43-.67.92-.98%201.45h-1.9c.89-.61%201.86-1.1%202.88-1.45zm-4.78%203.03h3.04c-.4.97-.73%202.03-.97%203.17h-4.31c.59-1.18%201.34-2.24%202.24-3.17zm-2.89%204.75h4.67c-.15%201-.24%202.06-.27%203.16h-5.02c.07-1.08.28-2.15.62-3.16zm-.62%204.75h5.02c.03.95.1%201.88.22%202.77h-4.76c-.26-.87-.42-1.8-.48-2.77zm1.07%204.35h4.43c.23%201.14.53%202.2.9%203.17h-3.24c-.87-.96-1.57-2.03-2.09-3.17zm3.8%204.74h2.23c.36.69.76%201.31%201.19%201.85-1.23-.43-2.39-1.06-3.42-1.85zm6.75%202.44c-.96-.3-1.88-1.13-2.68-2.43h2.68zm0-4.02h-3.49c-.42-.97-.76-2.03-1.01-3.17h4.49v3.17zm0-4.74h-4.78c-.13-.88-.21-1.81-.24-2.77h5.02zm0-4.35h-5.02c.03-1.08.14-2.14.31-3.16h4.72v3.16zm0-4.75h-4.4c.28-1.17.65-2.24%201.08-3.17h3.32zm0-4.75h-2.42c.74-1.07%201.56-1.77%202.42-2.04zm12.72%2013.85h-4.76c.12-.89.19-1.82.22-2.77h5.02c-.06.96-.22%201.89-.48%202.77zm.48-4.35h-5.02c-.03-1.1-.12-2.16-.27-3.16h4.67c.34%201.02.55%202.08.62%203.16zm-1.27-4.75h-4.31c-.25-1.14-.58-2.2-.97-3.17h3.04c.9.92%201.66%201.99%202.24%203.17zm-4.14-4.75h-1.9c-.3-.54-.63-1.02-.98-1.45%201.02.36%201.98.84%202.87%201.45zm-6.21-2.03c.85.27%201.68.96%202.42%202.04h-2.42zm0%203.61h3.32c.43.93.79%201.99%201.08%203.17h-4.4zm0%204.75h4.72c.17%201.02.27%202.09.31%203.16h-5.02v-3.16zm0%204.75h5.02c-.03.96-.11%201.89-.24%202.77h-4.78zm0%204.35h4.49c-.25%201.13-.59%202.2-1.01%203.17h-3.49v-3.17zm0%207.18v-2.43h2.68c-.8%201.3-1.72%202.14-2.68%202.43zm3.34-.59c.43-.53.83-1.15%201.19-1.85h2.23c-1.03.79-2.19%201.41-3.42%201.85zm1.89-3.43c.37-.97.67-2.03.9-3.17h4.43c-.52%201.14-1.22%202.2-2.09%203.17z'/%3e%3c/g%3e%3c/svg%3e",Lp="https://www.customink.com/ndx/assets/people-HdCdkFsh.svg",Np="https://www.customink.com/ndx/assets/quotesphrases-DWFx5p3H.svg",wp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m37.4699%2028.9101c.43.07.84-.23.91-.66.04-.26.91-6.45-8.77-9.13-6.44-1.79-8.79-10.09004-8.82-10.17004-.07-.27-.29-.48-.56-.56-.27-.07-.56%200-.77.2-.03.03-2.99%202.98004-.04%207.74004-.4.2-.79.53-.97%201.07-.34%201.02.25%202.23%201.85%203.78-.24.21-.44.48-.55.83-.38%201.18.34%202.67%202.26%204.65-.46.15-.85.43-1.02.9-.37%201.01.48%202.12%202.9%203.8-3.99.42-6.17%201.64-6.29%201.7-.38.22-.52.7-.3%201.09.15.26.42.41.7.41.13%200%20.27-.03.39-.1.04-.02%203.56-1.95%209.82-1.6.28.02.56.03.86.03%201.27%200%202.7-.19%204.3-.57.43-.1.69-.53.59-.96s-.53-.69-.96-.59c-1.76.42-3.27.58-4.56.5h-.13c-1.29-.1-2.37-.45-3.28-1.07-1.66-1.13-2.22-1.76-2.4-2.04.27-.06.75-.09%201.16-.05.34.03.67-.16.81-.47s.06-.68-.2-.91c-3.35-3.02-3.14-4.09-3.1-4.2.07-.22.45-.31.54-.32.32-.03.58-.25.68-.56s0-.64-.24-.84c-2.49-2.12-2.28-2.86-2.28-2.87.05-.14.48-.29.79-.31.29-.02.55-.19.68-.46.12-.27.09-.58-.09-.82-1.76-2.34-1.81-4.11-1.5-5.22%201.12%202.78%203.9%208.05%209.33%209.56%208.23%202.28%207.64%207.13%207.61%207.34-.07.43.23.84.66.91v-.03z'/%3e%3cpath%20d='m38.8799%2020.2801c.23%200%20.46-.1.62-.3.28-.34.22-.85-.12-1.12-5.15-4.15-2.72-12.70004-2.7-12.78004.08-.27%200-.57-.19-.78-.2-.21-.49-.29-.77-.22-.05.01-5.21%201.38-4.65%207.20004-.62.11-1.29.41-1.7%201.05-.76%201.18-.37%202.98%201.17%205.51.23.38.72.5%201.1.27s.5-.72.27-1.1c-1.64-2.69-1.33-3.6-1.19-3.81.24-.38.95-.39%201.17-.37.25.03.5-.06.68-.25.17-.19.25-.44.2-.69-.6-3.23004.85-4.87004%202.02-5.64004-.17.96-.33%202.27-.31%203.73004.05%203.96%201.39%207.12%203.89%209.13.15.12.33.18.5.18h.01z'/%3e%3cpath%20d='m44.0198%2022.4401c0-.46-.38-.84-.84-.84s-.84.38-.84.84.38.84.84.84.84-.38.84-.84z'/%3e%3cpath%20d='m59.6598%2012.8601c-1.16-.71-2.52-.92-3.84-.61-.19.05-.37.1-.55.17h-.02s-.02%200-.02.01c-.46.17-.89.41-1.28.7-.78.52-1.44%201.17-2%201.89-.4-1.25-1.28-2.35-2.55-2.99-.39-.2-.87-.04-1.07.35-.61%201.21-.71%202.59-.28%203.87.35%201.05%201.02%201.94%201.92%202.56-.34.98-.58%201.96-.75%202.88-.1-.09-.22-.16-.36-.19-.22-.05-1.04-.39-1.58-.98-.85-.93-2.28-2.5-4.25-2.26-1.79.22-3.5%201.86-5.23%205.02-.21.39-.07.87.32%201.08s.87.07%201.08-.32c1.42-2.6%202.81-4.05%204.02-4.2%201.15-.14%202.15.95%202.89%201.76.31.34.68.62%201.04.85-.11.09-.24.19-.36.29-1.06.85-1.46%202.67-1.98%204.96-1.19%205.32-2.67%2011.94-12.2%2011.19-2.27-.18-3.91-1.16-5.5-2.1-2.76-1.64-5.62-3.35-11.26-.72-.4.19-.57.66-.39%201.06.19.4.66.57%201.
18506.39%204.88-2.27%207.15-.92%209.77.64%201.66.99%203.55%202.11%206.19%202.32.55.04%201.08.07%201.59.07%209.5%200%2011.17-7.47%2012.3-12.49.41-1.83.8-3.57%201.42-4.07.54-.44.99-.78%201.21-.95-.22%201.67-.21%202.89-.2%203.03%200%20.44.36.79.8.79s.79-.37.79-.81c0-.04%200-1.69.36-3.8.32.06.64.09.96.09%202.01%200%203.92-1.21%204.72-3.19.16-.41-.03-.87-.44-1.04-1.37-.55-2.85-.45-4.09.15.38-.88.86-1.71%201.46-2.44.7.35%201.47.54%202.24.54.4%200%20.8-.05%201.2-.14%201.32-.32%202.43-1.13%203.14-2.28.23-.38.11-.87-.26-1.1l-.03.02zm-9.14%204.41c-.91-.82-1.32-2.07-1.08-3.26.91.82%201.32%202.07%201.08%203.26zm3.95%202.13c-.74.97-1.94%201.49-3.16%201.35.74-.97%201.95-1.49%203.16-1.35zm1.93-4.71c-.6.14-1.21.13-1.78-.04.09-.08.19-.16.29-.24.29-.19.59-.35.92-.5.12-.04.24-.08.36-.11.6-.14%201.21-.13%201.78.04-.44.41-.97.7-1.57.84z'/%3e%3c/g%3e%3c/svg%3e",bp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m60.7402%2016.13-24.74-10.02001c-.19-.08-.41-.08-.6%200l-24.74%2010.02001c-.3.12-.5.42-.5.74%200%20.33.2.62.5.74l8.74%203.51c-.03.28-.05.55-.05.83v7.12c0%204.22%203.55%206.15%207.38%207.61%202.48.94%205.62%201.35%208.7%201.35%202.88%200%205.71-.35%207.93-.95v1.96c0%201.4%201.14%202.54%202.54%202.54s2.54-1.14%202.54-2.54v-4.09c2.43-1.51%203.62-3.44%203.62-5.89v-7.12c0-.28-.02-.56-.05-.83l8.73-3.51c.3-.12.5-.41.5-.74s-.2-.62-.5-.74zm-17.38%2012.07v7.21c-4.31%201.27-11.55%201.48-16.06-.23-3.81-1.45-6.35-3.04-6.35-6.12v-7.12c0-.07%200-.14%200-.21l14.44%205.8c.1.04.2.06.3.06s.2-.02.3-.06l9.1-3.66v1.91c-1.01.34-1.74%201.29-1.74%202.41zm3.48%2010.84c0%20.52-.42.94-.94.94s-.94-.42-.94-.94v-10.84c0-.52.42-.94.94-.94s.94.42.94.94zm3.62-9.97c0%201.58-.65%202.86-2.02%203.94v-4.81c0-1.12-.73-2.07-1.74-2.41v-2.55l3.75-1.51c0%20.07.01.14.01.21v7.12zm.6-9.3s-.07%200-.11.01c-.14.03-.25.09-.35.17l-4.64%201.87-7.32-4.22c.12-.24.2-.5.2-.78%200-1.24-1.35-2.18-3.13-2.18s-3.13.94-3.13%202.18%201.35%202.18%203.13%202.18c.61%200%201.17-.11%201.64-.31l6.73%203.89-8.37%203.37-22.6-9.08%2022.6-9.15001%2022.6%209.15001-7.24%202.91zm-13.82-2.95c0%20.15-.55.58-1.54.58s-1.54-.44-1.54-.58.54-.58%201.54-.58%201.54.44%201.54.58z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",Mp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m51.6499%2018.69c.07.02.14.03.21.03.36%200%20.68-.24.77-.59.06-.21.03-.42-.08-.61-.11-.18-.28-.32-.49-.37l-2.15-.58%202.15-1.24c.38-.22.51-.71.29-1.09s-.71-.51-1.09-.29l-2.16%201.24.58-2.15c.06-.21.03-.42-.08-.61s-.28-.32-.49-.37c-.42-.11-.86.14-.98.56l-.99%203.69-3.78%202.18%201.39-5.16c.11-.43-.14-.87-.56-.98-.43-.11-.87.14-.98.56l-1.8%206.7-2.28%201.31c-.67-.79-1.59-1.32-2.61-1.51v-2.62l4.9-4.9c.15-.15.23-.35.23-.57s-.08-.41-.23-.57-.35-.23-.57-.23-.41.08-.57.23l-3.77%203.77v-4.35l2.7-2.69999c.31-.31.31-.82%200-1.13s-.82-.31-1.13%200l-1.57%201.57v-2.47c0-.44-.36-.8-.8-.8s-.8.36-.8.8v2.47l-1.57-1.57c-.31-.31-.82-.31-1.13%200s-.31.82%200%201.13l2.7%202.69999v4.35l-3.77-3.77c-.15-.15-.35-.23-.57-.23s-.41.08-.57.23-.23.35-.23.57.08.41.23.57l4.9%204.9v2.62c-1.02.19-1.94.72-2.61%201.51l-2.28-1.31-1.8-6.7c-.06-.21-.19-.38-.37-.49s-.4-.14-.61-.08c-.43.11-.68.55-.56.98l1.39%205.16-3.78-2.18-.99-3.69c-.11-.43-.55-.68-.98-.56-.43.11-.68.55-.56.98l.58%202.15-2.16-1.24c-.38-.22-.87-.09-1.09.29s-.09.87.29%201.09l2.15%201.24-2.15.58c-.21.05-.38.19-.49.37s-.14.4-.08.61c.09.35.41.59.77.59.07%200%20.14%200%20.21-.03l3.71-.99%203.78%202.17-5.17%201.38c-.21.06-.38.19-.49.37s-.14.4-.08.61c.09.35.41.59.77.59.07%200%20.14%200%20.21-.03l6.73-1.8%202.29%201.32c-.17.49-.26.99-.26%201.5s.09%201.01.26%201.5l-2.29%201.32-6.73-1.8c-.21-.06-.42-.03-.61.08s-.32.28-.37.49c-.06.21-.03.42.08.61.11.18.28.32.49.37l5.17%201.38-3.78%202.17-3.71-.99c-.2-.06-.42-.03-.6.08-.19.11-.32.28-.37.49-.06.21-.03.42.08.61s.28.32.49.37l2.15.58-2.15%201.24c-.38.22-.51.71-.29%201.09.14.25.41.4.69.4.14%200%20.28-.04.4-.11l2.16-1.24-.58%202.15c-.11.43.14.87.56.98.07.02.14.03.21.03.36%200%20.68-.24.77-.59l.99-3.69%203.78-2.18-1.39%205.16c-.11.43.14.87.56.98.07.02.14.03.21.03.36%200%20.68-.24.77-.59l1.8-6.7%202.28-1.31c.67.79%201.59%201.32%202.61%201.51v2.62l-4.9%204.9c-.15.15-.23.35-.23.57s.08.41.23.57.35.23.57.23.41-.08.57-.23l3.77-3.77v4.35l-2.7%202.7c-.31.31-.31.82%200%201.13s.82.31%201.13%200l1.57-1.57v2.47c0%20.44.36.8.8.8s.8-.36.8-.8v-2.47l1.57%201.5
1857c.15.15.35.23.57.23s.41-.08.57-.23c.31-.31.31-.82%200-1.13l-2.7-2.7v-4.35l3.77%203.77c.15.15.35.23.57.23s.41-.08.57-.23.23-.35.23-.57-.08-.41-.23-.57l-4.9-4.9v-2.62c1.02-.19%201.94-.72%202.61-1.51l2.28%201.31%201.8%206.7c.09.35.41.59.77.59.07%200%20.14%200%20.21-.03.43-.11.68-.55.56-.98l-1.39-5.16%203.78%202.18.99%203.69c.09.35.41.59.77.59.07%200%20.14%200%20.21-.03.21-.06.38-.19.49-.37.11-.19.13-.4.08-.61l-.58-2.15%202.16%201.24c.12.07.26.11.4.11.29%200%20.55-.15.69-.4.22-.38.09-.87-.29-1.09l-2.15-1.24%202.15-.58c.21-.05.38-.19.49-.37s.14-.4.08-.61c-.05-.21-.19-.38-.37-.49-.19-.11-.4-.14-.61-.08l-3.71.99-3.78-2.17%205.17-1.38c.21-.06.38-.19.49-.37s.14-.4.08-.61-.19-.38-.37-.49c-.19-.11-.4-.14-.6-.08l-6.73%201.8-2.29-1.32c.17-.49.26-.99.26-1.5s-.09-1.01-.26-1.5l2.29-1.32%206.73%201.8c.07.02.14.03.21.03.36%200%20.68-.24.77-.59.06-.21.03-.42-.08-.61s-.28-.32-.49-.37l-5.17-1.38%203.78-2.17%203.71.99zm-15.95%208c-1.58%200-2.87-1.29-2.87-2.87s1.29-2.87%202.87-2.87%202.87%201.29%202.87%202.87-1.29%202.87-2.87%202.87z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",Up="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%3e%3cpath%20d='m17.9898%2020.7901%208.7%206.32c.17.12.24.34.17.53l-3.32%2010.22c-.21.64-.11%201.32.28%201.85.4.55%201.03.87%201.69.87.43%200%20.85-.14%201.21-.4l8.69-6.32c.17-.12.4-.12.56%200l8.7%206.32c.36.26.78.4%201.21.4.66%200%201.3-.33%201.69-.87s.49-1.21.29-1.85l-3.32-10.22c-.06-.2%200-.41.17-.53l8.7-6.32c.74-.54%201.04-1.45.75-2.32-.28-.87-1.06-1.43-1.97-1.43h-10.75c-.21%200-.39-.13-.45-.33l-3.32-10.22004c-.28-.87-1.06-1.43-1.97-1.43s-1.69.56-1.97%201.43l-3.32%2010.22004c-.06.2-.25.33-.45.33h-10.75c-.92%200-1.69.56-1.97%201.43s.01%201.78.75%202.32zm.77-1.83c.03-.1.14-.33.45-.33h10.75c.9%200%201.69-.58%201.97-1.43l3.32-10.22004c.1-.3.35-.33.45-.33s.36.03.45.33l3.32%2010.22004c.28.86%201.07%201.43%201.97%201.43h10.75c.31%200%20.42.23.45.33s.08.35-.17.53l-8.7%206.32c-.73.53-1.03%201.46-.75%202.32l3.32%2010.22c.05.16.03.3-.06.42-.15.21-.44.28-.67.11l-8.7-6.32c-.36-.26-.78-.4-1.22-.4s-.86.14-1.22.4l-8.69%206.32c-.23.17-.52.1-.68-.11-.09-.12-.11-.26-.06-.42l3.32-10.22c.28-.86-.03-1.79-.75-2.32l-8.7-6.32c-.25-.18-.21-.43-.17-.53z'%20fill='%23000'%20fill-opacity='.57'/%3e%3c/g%3e%3c/svg%3e",xp="https://www.customink.com/ndx/assets/sportsgames-B56qPMgA.svg",Fp="data:image/svg+xml,%3csvg%20fill='none'%20height='48'%20viewBox='0%200%2072%2048'%20width='72'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%3e%3cclipPath%20id='a'%3e%3cpath%20d='m0%200h71.41v47.63h-71.41z'/%3e%3c/clipPath%3e%3cg%20clip-path='url(%23a)'%20fill='%23000'%20fill-opacity='.57'%3e%3cpath%20d='m59.6701%2018.89c-.05-.8-.41-1.54-1.02-2.07s-1.38-.8-2.19-.74l-2.76.18c-.32-1.69-.69-3.69-1.05-5.84-.13-.74-.82-1.65-2.03-1.89-10.94-2.18-19.07-2.17-30.01.03-1.15.24-1.75%201.3-1.86%201.91-.36%202.12-.73%204.11-1.04%205.78l-2.76-.18c-.8-.05-1.58.21-2.19.74s-.97%201.27-1.02%202.07c-.11%201.66%201.15%203.1%202.81%203.21l.64.04c-1.33%201.38-2.16%203.31-2.16%205.45%200%202.46%201.09%204.64%202.78%206.02v5.29c0%201.01.82%201.83%201.83%201.83h5.87c1.01%200%201.84-.82%201.84-1.83v-3.75h20.69v3.75c0%201.01.82%201.83%201.84%201.83h5.87c1.01%200%201.83-.82%201.83-1.83v-5.29c1.68-1.38%202.78-3.56%202.78-6.02%200-2.14-.83-4.07-2.16-5.45l.64-.04c1.66-.11%202.92-1.55%202.81-3.21zm-39.35-8.14c.02-.11.22-.54.6-.62%2010.71-2.16%2018.68-2.17%2029.38-.03.64.13.77.59.77.59.7%204.07%201.39%207.63%201.77%209.5-.47-.11-.96-.17-1.46-.17h-4.74c-.81-1.44-2.53-2.82-5.27-2.82s-4.63%201.04-5.44%202.82h-15.9c-.5%200-.99.06-1.46.17.37-1.86%201.06-5.4%201.76-9.44zm24.33%209.27h-6.81c.72-.78%201.96-1.22%203.54-1.22s2.58.53%203.28%201.22zm-30%20.48c-.78-.05-1.38-.73-1.32-1.51.03-.38.2-.72.48-.97s.65-.37%201.03-.35l2.56.17c-.24%201.26-.44%202.23-.56%202.81l-2.19-.14zm9.11%2018.4c0%20.13-.11.24-.24.24h-5.87c-.13%200-.24-.11-.24-.24v-4.3c.81.36%201.69.56%202.62.56h3.73v3.75zm30.24%200c0%20.13-.11.24-.24.24h-5.87c-.13%200-.24-.11-.24-.24v-3.75h3.73c.93%200%201.81-.2%202.62-.56v4.3zm2.78-11.31c0%203.29-2.42%205.97-5.4%205.97h-31.35c-2.98%200-5.4-2.68-5.4-5.97s2.42-5.97%205.4-5.97h31.35c2.98%200%205.4%202.68%205.4%205.97zm-2.22-6.95c-.12-.58-.31-1.55-.56-2.81l2.57-.17c.38-.03.74.1%201.03.35.28.25.45.6.48.97.05.78-.54%201.46-1.32%201.51l-2.19.14z'/%3e%3cpath%20d='m20.8901%2023.99c-1%200-1.94.39-2.65%201.1s-1.1%201.65-1.1%202.65c0%202.06%201.68%203.74%203.75%203.74%202.06%200%203.74-1.68%203.74-3.74s-1.68-3.75-3.75-3.75zm0%205.89c-1.18%200-2.15-.96-2.15-2.15%200-.58.22-1.12.63-1.52.41-.41.94-.63%201.52-.63%201.18%200%202.15.97%202.15%202.15s-.96%202.15-2.15%202.15z'/%3e%3cpath%20d='m50.51%2023.99c-2.06%200-3.74%201.68-3.74%203.75s1.68%203.74%203.75%203.75c1%200%201.94-.39%202.64-1.1.71-.71%201.1-1.65%201.1-2.65%200-2.06-1.68-3.74-3.75-3.75zm1.52%205.27c-.4.41-.94.63-1.51.63-1.19%200-2.15-.97-2.15-2.15s.96-2.15%202.15-2.15c1.18%200%202.15.97%202.15%202.15%200%20.57-.22%201.11-.63%201.52z'/%3e%3cpath%20d='m41.3102%2016.81c2.01%200%203.65-1.63%203.65-3.64s-1.64-3.64998-3.65-3.64998-3.65%201.63998-3.65%203.64998%201.64%203.64%203.65%203.64zm0-5.7c1.13%200%202.05.92%202.05%202.05s-.92%202.05-2.05%202.05-2.05-.92-2.05-2.05.92-2.05%202.05-2.05z'/%3e%3c/g%3e%3c/svg%3e",Vp="https://www.customink.com/ndx/assets/travel-iSjN2_2_.svg",FN={America:Ep,Animals:hp,Charity:fp,Colleges:mp,Emojis:Tp,"Food/Drink":Sp,"Greek Life":Cp,"Letters/Numbers":Ip,Mascots:Ap,Military:yp,"Most Popular":Op,Music:Rp,Nature:Dp,Occupations:vp,"Parties/Events":Pp,People:Lp,"Quotes/Phrases":Np,Religion:wp,School:bp,"Seasons/Holidays":Mp,"Shapes/Symbols":Up,"Sports/Games":xp,Transportation:Fp,Travel:Vp},K2={name:"Most Popular",keyword:"mostpopular",id:1559},VN={keyword:"recents"},kN=["Most Popular","Emojis","Shapes/Symbols","Sports/Games","Letters/Numbers","Animals","Mascots","Nature","America","Parties/Events","Military","Occupations","Colleges","Music","Transportation","Greek Life","School","Charity","People","Religion","Food/Drink","Seasons/Holidays","Quotes/Phrases","Travel"],HN=["Most Popular","Charity","Shapes/Symbols","Sports/Games","Animals","Mascots","Quotes/Phrases","Religion","People","Emojis","Letters/Numbers","School","America","Nature","Travel","Military","Occupations","Music","Parties/Events","Colleges","Transportation","Greek Life","Food/Drink","Seasons/Holidays"],Pi=500;function Dr(e,t){let n;try{n=JSON.parse(e)}catch(o){return null}const s=t.safeParse(n);return s.success?s.data:null}
185class Ft extends Error{constructor(t,n){super(t),this.name="ResponseError",this.cause=n.cause,this.response=n.response}isStatusCode(t){return this.response.status===t}}const pt=e=>e instanceof Ft,kp=Pe.object({id:Pe.union([Pe.string(),Pe.number()]),visible_colors:Pe.array(Pe.string()),version:Pe.string().nullish(),black_white:Pe.boolean().optional(),licensed:Pe.boolean().optional()}),Hp=Pe.record(Pe.string(),Pe.unknown());function Rl(e){const t=Dr(e,Pe.array(Pe.unknown()));if(t===null)return null;const n=t.flatMap(s=>{const o=kp.safeParse(s);return o.success?[o.data]:[]});return t.length>0&&n.length===0?null:{versions:n,dropped:t.length-n.length}}class Sa extends Ft{constructor(t,n,s){super(`${t}: ${n.status} ${n.statusText}`,{cause:n.headers.get("content-type"),response:n}),this.bodySnippet=s,this.name="ClipartResponseError"}}const Gp=e=>e instanceof Sa;function Ca(e,t,n){return P(this,null,function*(){const s=yield e.text(),o=s.slice(0,Pi);if(!e.ok)throw new Sa(`${n} request failed`,e,o);const r=t(s);if(r===null)throw new Sa(`${n} returned an unreadable body`,e,o);return r})}const Bp={red:255,green:0,blue:255};function zp({keyword:e},t=!1){const n={keyword:e,all:t};return Mt(`${K.clipart}/search.hal`,n)}function GN({cat:e},t=!1){if(Number(e)===K2.id)return zp({keyword:K2.keyword},t);const n=t?"browse":"clipart_categories";return Mt(`${K.clipart}/${n}/${e}.json`,{all:t})}function BN(e){return P(this,null,function*(){const t=Mt(`${K.clipart}/info`,{clipart_id:e}),n=`${K.clipart}/versions/${e}`;return Promise.all([window.fetch(t),window.fetch(n)]).then(([s,o])=>Promise.all([Ca(s,r=>
185Dr(r,Hp),"clipart info"),Ca(o,Rl,"clipart versions")])).then(([s,o])=>R(f({},s),{clipart_versions:o.versions})).catch(s=>{throw new Error("Unable to fetch clipart metadata",{cause:s})})})}function Wp(e){return ln(e)?Bp:e}function Co(e){return _1(e)||ln(e)?B.White:e}function Yp(e){return ln(e)?B.None:e}function jp(e){return e.set("user",Yp(e.original))}const Qp=["align","clipartId","contrast","crop","effect","fgcolor","fit","font","fontCategory","fontHeight","height","horizontalFlip","invertContrast","naturalHeight","naturalWidth","outline","path","rotation","singleColor","sizeIsDirty","type","url","value","verticalFlip","viewId","width","x","y"];function qp(e,t,n,s,o,r,a=!1){const i=JSON.stringify(Xp(e,t,n,s,o,r,a));return JSON.stringify({save_source:"ndx",saveData:i})}function Xp(e,t,n,s,o,r,a=!1){var c;const i=Vn(e);return{designName:t,email:n,deviceType:r,id:i.get("designId"),designIdea:i.get("designIdeaId"),verifyEmail:s||void 0,sendEmail:Kp(o),notes:"",quoteData:Jp(e),personalization:eg(e),products:Dl(e,a),canvas:vl(e),inkMatches:((c=i.get("inkMatches"))==null?void 0:c.toJS())||{}}}function $p(e){const t=JSON.stringify(Zp(e,Ea));return JSON.stringify({save_source:"ndx",saveData:t,autogenerateDesignName:!0})}function Zp(e,t){return{email:t,products:Dl(e),canvas:vl(e)}}function Kp(e=!0){return e}function Dl(e,t=!1){let n=ve(e);const s=Re(e),o=n.findIndex(r=>r.get("styleId")===s);if(o!==-1){const r=n.get(o);t?n=[r]:n=n.remove(o).unshift(r).toArray()}else n=n.toArray();return n.map(r=>r.get("colorId"))}function vl(e){const t=fs(e),s=kn(e).map(o=>tg(o));return t.map(o=>({view:o.id,icons:s.filter(r=>r.viewId===o.id)}))}function Jp(e){return{postalCode:pr(e),totalPrice:J(e).get("hasFullQuote")&&J(e).get("totalPrice"),quantities:J(e).get("quantities").toJS()}}function eg(e){return fn(e).filter(t=>t.name||t.number).map(t=>{const{name:n,number:s,productSize:o}=t.toObject();return{name:n,number:s,size:o}})}function tg(e){const t=e.toJS();let n=Qp.reduce((s,o)=>(Object.prototype.hasOwnProperty.call(t,o)&&(s[o]=t[o]),s),{});return St(e)?n=f(f({},n),ng(e)):st(e)&&(n=f(f({},n),og(e))),Fe(e)&&(n=f(f({},n),sg(e))),e.color?R(f({},n),{fgcolor:Pl(e.color)}):n}function Pl(e){if(!e)return null;const{r:t,g:n,b:s}=e;return[t,n,s]}function ng(e){return{options:{lockRatio:e.lockRatio,transparent:e.transparent,blackwhite:e.blackwhite,grayscale:e.singleColor},colors:e.colors.map(t=>P4(t,n=>(n=Wp(n),Ll(n)))).toJS()}}function sg(e){return{effect:{type:e.effectType,setting:e.effectSetting},outline:{color:Pl(e.outlineColor),width:e.outlineWidth,clearFill:We(e.color)},naturalHeight:e.naturalHeight||e.height,naturalWidth:e.naturalWidth||e.width}}function og(e){return f(f({},rg(e)),ag(e))}function Ll(e){return{red:e.red||0,green:e.green||0,blue:e.blue||0,transparent:We(e)}}function rg(e){return{colors:(e.spotColors||G()).map(n=>{const s=Ms(e),o=s&&ze(s.original,n.original);return b(n).map(Ll).set("background",o)}).toJS()}}function ag(e){return{imageType:{[He.PHOTO]:Pn.FULL_COLOR,[He.MONOCHROME]:Pn.MONOCHROME,[He.SPOT]:Pn.SPOT_COLOR}[e.colorMode]||null}}const Ce={FETCH:"fundraising/FETCH",FETCH_SUCCESS:"fundraising/FETCH_SUCCESS",FETCH_FAILED:"fundraising/FETCH_FAILED",SAVE_DESIGN:"fundraising/SAVE_DESIGN",SAVE_SUCCESS:"fundraising/SAVE_SUCCESS",SAVE_FAILED:"fundraising/SAVE_FAILED",SET_SKIP_OVERVIEW:"fundraising/SET_SKIP_OVERVIEW",UPDATE_ESTIMATED_PROFIT:"fundraising/UPDATE_ESTIMATED_PROFIT",UPDATE_GOAL_QUANTITY:"fundraising/UPDATE_GOAL_QUANTITY",UPDATE_PRINT_MINIMUM:"fundraising/UPDATE_PRINT_MINIMUM",UPDATE_PROFIT:"fundraising/UPDATE_PROFIT",UPDATE_SALE_PRICE:"fundraising/UPDATE_SALE_PRICE"},bn={designs:{legacyVersion:4,version:5}},zN=h(Ce.FETCH);h(Ce.SET_SKIP_OVERVIEW);const WN=()=>pg,YN=()=>Pr,ig=h(Ce.SAVE_SUCCESS),cg=h(Ce.SAVE_FAILED),Nl=h(Ce.FETCH_SUCCESS),wl=h(Ce.FETCH_FAILED),lg=h(Ce.SAVE_DESIGN),bl=h(Ce.UPDATE_ESTIMATED_PROFIT,(e,t)=>({minProfit:e,maxProfit:t})),dg=h(Ce.UPDATE_GOAL_QUANTITY),ug=h(Ce.UPDATE_PROFIT),vr=h(Ce.UPDATE_SALE_PRICE),Li=e=>(t,n)=>
185{const s=n(),o=Ol(s,e.styleId),r={colorId:e.colorId,price:o};return t(vr(r)),oo(e.colorId,t,n)},jN=e=>(t,n)=>(t(dg(e)),Pr(t,n)),QN=e=>(t,n)=>{const s={colorId:e.colorId,price:e.price+1};return t(vr(s)),oo(e.colorId,t,n),Pr(t,n)},qN=e=>(t,n)=>{const s={colorId:e.colorId,price:e.price-1};return t(vr(s)),oo(e.colorId,t,n),Pr(t,n)},XN=()=>(e,t)=>P(void 0,null,function*(){const n=t();if(!Ts(n))return new Promise(a=>a(!0));const s=$p(n),o={api_version:bn.designs.version},r=Mt(`${K.designs}/api/designs/`,o);return e(lg()),window.fetch(r,R(f({},Wn),{body:s})).then(vi).then(a=>a.json()).then(a=>{if(a.success){const i=a.design.composite_id,c=a.design.design_name;return O1(i),e(ig({designId:Xe(n),designName:c,email:Ea,response:a})),!0}else throw new Error("Design saving failed")}).catch(a=>(z.critical("Save Failure!",a,{saveData:s}),e(cg({designName:void 0,email:Ea,error:{errors:{base:["server_error"]}}})),!1))}),$N=()=>(e,t)=>{const n=t();fr(n).map(o=>oo(o,e,t))};function Yr(e,t){return n=>{const s={colorId:e.toString(),printMinimumQuantity:n.minimum,errorMessage:n.errorMessage?n.errorMessage:null};t({type:Ce.UPDATE_PRINT_MINIMUM,payload:s})}}function _g(e){return t=>{t.quotes.forEach(s=>{const o={colorId:s.product_id.toString(),profit:s.profit};e(ug(o))});const n=t.quotes.map(s=>s.profit).sort((s,o)=>s-o);e(bl(n[0],n[n.length-1])),e(Nl())}}function Pr(e,t){const n=t();if(js(n))e(bl("0","0")),e(Nl());else{const o=pp(n);return window.fetch(K.fundraising_quote,R(f({},Wn),{body:o})).then(vi).then(r=>r.json()).then(_g(e)).catch(r=>e(wl(r)))}}function oo(e,t,n){const s=n();if(js(s))return Promise.resolve(Yr(e,t)({minimum:0}));{const r=gp(e,s),a=Mt(K.fundraising_print_minimum,r);return window.fetch(a,f({},lp)).then(i=>vi(i,!0)).then(i=>i.json()).then(Yr(e,t)).catch(i=>{if(i.error)return Yr(e,t)({errorMessage:i.error});t(wl(i))})}}function pg(e,t){const n=t(),s=so(n);return Object.keys(s).forEach(o=>{if(s[o]===0){const r=b6(n,{colorId:o});if(r){const a=Ol(n,r);e(vr({colorId:o,price:a}))}}}),new Promise(o=>o(!0))}const gg=(e,t)=>{const n=e==null?void 0:e.decoration_method,s=b0(t)>0,o=n!==Pt.ScreenPrint,r=(e==null?void 0:e.style_type)!==ir.APPAREL;return(o||r)&&s},Eg=(e,t,n)=>n.map(s=>{var c,l,d;const o=e[s],r=t[s],a=(c=o==null?void 0:o.colors)==null?void 0:c.find(_=>_.id===(r==null?void 0:r.id)),i=(l=a==null?void 0:a.view_images)==null?void 0:l.find(_=>{var u;return((u=_==null?void 0:_.name)==null?void 0:u.toLowerCase())==="front"});return{name:(d=o==null?void 0:o.name)!=null?d:"Unknown product",imageUrl:i==null?void 0:i.uri}});function Ml(e){return(t,n)=>{const s=n();let o=zn(s);!o&&e&&(o=Cr(s)),o&&kn(s).forEach(a=>{t(tp({iconId:a.id,color:o}))})}}const V={REAL_TIME_PRICING_ERROR:"quote/REAL_TIME_PRICING_ERROR",REAL_TIME_PRICING_SUCCESS:"quote/REAL_TIME_PRICING_SUCCESS",SET_SWAPPED_PRINT_METHOD:"quote/SET_SWAPPED_PRINT_METHOD",SHOW_SHIPPING_FORM:"quote/SHOW_SHIPPING_FORM",UPDATE_COLORFUL_QUOTE:"quote/UPDATE_COLORFUL_QUOTE",UPDATE_COLOR_COUNT:"quote/UPDATE_COLOR_COUNT",UPDATE_DROPPED_VIEW:"quote/UPDATE_DROPPED_VIEW",UPDATE_EMBROIDERY_TO_PRINT_PRICE:"quote/UPDATE_EMBROIDERY_TO_PRINT_PRICE",UPDATE_HAS_FULL_QUOTE:"quote/UPDATE_HAS_FULL_QUOTE",UPDATE_IS_FETCHING_PRICES_WITHOUT_DROPPED_VIEW:"quote/UPDATE_IS_FETCHING_PRICES_WITHOUT_DROPPED_VIEW",UPDATE_IS_INVENTORY_SHIPPING_TYPE:"quote/UPDATE_IS_INVENTORY_SHIPPING_TYPE",UPDATE_ITEMIZED_PRICES_WITHOUT_DROPPED_VIEW:"quote/UPDATE_ITEMIZED_PRICES_WITHOUT_DROPPED_VIEW",UPDATE_ITEMIZED_PRICES:"quote/UPDATE_ITEMIZED_PRICES",UPDATE_MODE:"quote/UPDATE_MODE",UPDATE_NCO_ELIGIBILITY:"quote/UPDATE_NCO_ELIGIBILITY",UPDATE_ONE_COLOR_LESS_PRICE:"quote/UPDATE_ONE_COLOR_LESS_PRICE",UPDATE_ONE_VIEW_LESS_PRICE:"quote/UPDATE_ONE_VIEW_LESS_PRICE",UPDATE_POSTAL_CODE:"quote/UPDATE_POSTAL_CODE",UPDATE_PREVIOUS_TOTAL_QTY:"quote/UPDATE_PREVIOUS_TOTAL_QTY",UPDATE_PRODUCT_QUANTITIES:"quote/UPDATE_PRODUCT_QUANTITIES",UPDATE_QUOTE_BLANK:"quote/UPDATE_QUOTE_BLANK",UPDATE_QUOTE:"quote/UPDATE_QUOTE",UPDATE_REAL_TIME_ITEMIZED_PRICES:"quote/UPDATE_REAL_TIME_ITEMIZED_PRICES",UPDATE_REAL_TIME_TOTAL_PRICE:"quote/UPDATE_REAL_TIME_TOTAL_PRICE",UPDATE_SHIPPING:"quote/UPDATE_SHIPPING",UPDATE_SLEEVE_VIEW_LESS_PRICE:"quote/UPDATE_SLEEVE_VIEW_LESS_PRICE",UPDATE_SLEEVE_VIEW_LESS_SAVE_AMOUNT:"quote/UPDATE_SLEEVE_VIEW_LESS_SAVE_AMOUNT",UPDATE_TOTAL_PRICE:"quote/UPDATE_TOTAL_PRICE",UPDATE_UNAVAILABLE_CORE_SIZES:"quote/UPDATE_UNAVAILABLE_CORE_SIZES"};function Ul(e){return e.reduce((t,n)=>{var l;const s=String(parseInt(n.productId||n.product_id,10)),o=parseFloat(n.startingUnitPrice||n.starting_unit_price),r=parseFloat(n.regularStartingUnitPrice||n.regular_starting_unit_price),a=parseFloat(n.salePercentage||n.sale_percentage),i=n.promotionType||n.promotion_type,c=parseFloat((l=n.savingsCap)!=null?l:n.savings_cap);return t.set(s,b({itemPrice:parseFloat(n.unitPrice||n.unit_price),subtotal:parseFloat(n.totalPrice||n.price),startingUnitPrice:isNaN(o)?void 0:o,regularStartingUnitPrice:isNaN(r)?void 0:r,salePercentage:isNaN(a)?void 0:a,promotionType:i||void 0,savingsCap:isNaN(c)?void 0:c}))},b())}function xl(e){const t=e.items||[],n=e.buy_more_price,s=e.buy_more_qty,o=e.buy_more_unit_price,r=e.decoration_method,a=e.errors,i=e.discountEligible,c=G(e.price_grid),l=G(e.service_charges),d=e.total_price||e.totalPrice||e.price,_=parseFloat(e.volume_discount_percentage),u=parseFloat(e.price_before_volume_discount),E=parseFloat(e.volume_discount_savings),T=Ul(t),O=G(e.caveats);return{buyMorePrice:n,buyMoreQuantity:s,buyMoreUnitPrice:o,caveats:O,decorationMethod:r,errors:a,itemizedPrices:T,ncoEligible:i,priceGrid:c,totalPrice:d&&parseFloat(d),service_charges:l,shipping:fg(e),volumeDiscountPercentage:_,volumeDiscountPrice:u,volumeDiscountSavings:E}}function ro(e){const t=e.items||[],n=e.totalPrice||e.price,s=e.discountEligible;return{itemizedPrices:Ul(t),totalPrice:n&&parseFloat(n),ncoEligible:s}}function hg(e){return e!=null&&e.itemizedPrices?e.itemizedPrices.map(n=>{if(!n)return null;const s=n.get("subtotal"),o=n.get("itemPrice");return!s||!o?null:new b({itemPrice:parseFloat(o),subtotal:parseFloat(s)})}).filter(n=>n!==null):null}function ZN(e,t){const n=e.items||[];let s=e.price_grid||[];const o=In(parseFloat(e.total_price),t),r=In(parseFloat(e.price_before_volume_discount),t),a=parseFloat(e.volume_discount_percentage),i=n.reduce((u,E)=>{const T=String(parseInt(E.productId||E.product_id,10)),O=In(parseFloat(E.unitPrice||E.unit_price),t),I=In(parseFloat(E.totalPrice||E.price),t);return u[T]={itemPrice:O,subtotal:I},u},{}),c=n.reduce((u,E)=>{const T=String(parseInt(E.productId||E.product_id,10));return u[T]=E.size_and_quantities_by_unit_price.map(O=>{const[I,A]=O.split("$"),D=In(parseFloat(A),t).toFixed(2);return`${I}$${D}`}),u},{}),l=Object.values(i).map(u=>u.itemPrice),d=Math.min.apply(Math,l),_=Math.max.apply(Math,l);return s=s.reduce((u,E)=>(u.push({quantity:E.quantity,subtotal:In(parseFloat(E.bmsm_price),E.quantity),unitPrice:In(parseFloat(E.bmsm_unit_price),E.quantity)}),u),[]),{decoType:e.decoration_method,itemizedPrices:i,itemizedSizeAndQtyByUnitPrice:c,minUnitPrice:d,maxUnitPrice:_,priceBeforeDiscount:r,priceGrid:s,shippingCaveat:e.shipping_caveat,totalPrice:o,volumeDiscountPct:a}}function In(e,t){const n=t>x7?F7:V7;return e+e*(n/100)}function fg(e){const t=b({city:e.city,shippingCaveat:e.shipping_caveat,state:e.state,turnAdjustment:e.turn_adjustment});return e.standard_shipping&&(t.standardDelivery=b({turnTime:e.standard_shipping.turn_time,deliveryDate:e.standard_shipping.delivery_date})),e.rush_shipping&&(t.rushDelivery=b({charge:e.rush_shipping.charge,deliveryDate:e.rush_shipping.delivery_date,deliveryDay:e.rush_shipping.delivery_day,shortDate:e.rush_shipping.short_date,turnTime:e.rush_shipping.turn_time})),e.super_rush_shipping&&(t.superRushDelivery=b({charge:e.super_rush_shipping.charge,deliveryDate:e.super_rush_shipping.delivery_date,deliveryDay:e.super_rush_shipping.delivery_day,orderByDeadline:e.super_rush_shipping.order_by_deadline,shortDate:e.super_rush_shipping.short_date,turnTime:e.super_rush_shipping.turn_time})),t}const mg={allowBlankQuote:!1,isVolumeDiscountFlag:!1,useDefaultQuantity:!1,useTotalQuantity:!1,useZipCodeGuess:!1,overrideZipCode:!1};function Ni(e,t={}){const{isVolumeDiscountFlag:n,useDefaultQuantity:s,useTotalQuantity:o,useZipCodeGuess:r,overrideZipCode:a,zipCodeParam
185:i,customItems:c}=f(f({},mg),t);let l=null;if(c)l=c;else{const I=s?L0(e):o?O8(e):Er(e),A=Ja(e)?ai(e):{};l=Object.keys(I).map(D=>({product_id:D,sizes:f(f({},I[D]),A),name_count:g0(e),number_count:E0(e)}))}const d=r&&u5();let _=pr(e)||d;a&&(_=i);const u=t.colorCounts||_t(e),E=u0({colorCounts:u}),T=b0(e);let O={color_counts:E,items:l,ink_match_count:T,postal_code:_,sponsorship:!1,upload:Z1(e)};if(n){let{color_counts:I,items:A}=O;return I=JSON.stringify(I),A=JSON.stringify(A),O=R(f({},O),{color_counts:I,items:A}),JSON.stringify({quote:O})}return JSON.stringify({quote_info:O})}const Tg={estimatedQuantity:null,isIntl:null},Fl=Fn({name:"price",initialState:Tg,reducers:{setEstimatedQty:(e,{payload:t})=>R(f({},e),{estimatedQuantity:t}),setIntl:(e,{payload:t})=>R(f({},e),{isIntl:t})}}),{setEstimatedQty:Sg,setIntl:KN}=Fl.actions,Cg=Fl.reducer,Fs=e=>e.price.estimatedQuantity,JN=e=>e.price.isIntl;function wi(e){const t=Fs(e);if(!t||t<=0)return null;const n=U6(e),s=Object.keys(n).filter(r=>n[r]!==void 0);if(s.length===0)return null;const o=t-s.length;return s.map((r,a)=>{const i=a===s.length-1;return{product_id:r,sizes:{[n[r]]:1+(i?Math.max(0,o):0)}}})}let Vl;const Ig=h(V.UPDATE_COLORFUL_QUOTE),ew=e=>t=>{if(!e||typeof e!="object"||Array.isArray(e)){z.warning("UPDATE_COLOR_COUNT received invalid payload",{payload:e});return}t({type:V.UPDATE_COLOR_COUNT,payload:e})},tw=h(V.UPDATE_NCO_ELIGIBILITY),nw=h(V.UPDATE_UNAVAILABLE_CORE_SIZES),Ag=e=>t=>{t({type:V.UPDATE_DROPPED_VIEW,payload:e})},sw=()=>e=>{e(kl(null))},ow=()=>(e,t)=>{const n=t(),s=Xs(n),o=p0(n);if(typeof o!="number"||typeof s!="number")return;const r=Math.round((1-o/s)*100);e({type:V.UPDATE_SLEEVE_VIEW_LESS_SAVE_AMOUNT,payload:r>0?r:null})},J2=h(V.UPDATE_HAS_FULL_QUOTE),ec=h(V.UPDATE_IS_FETCHING_PRICES_WITHOUT_DROPPED_VIEW);h(V.UPDATE_IS_INVENTORY_SHIPPING_TYPE);const jr=h(V.UPDATE_ONE_COLOR_LESS_PRICE),Qr=h(V.UPDATE_ONE_VIEW_LESS_PRICE),qr=h(V.UPDATE_SLEEVE_VIEW_LESS_PRICE),rw=h(V.UPDATE_EMBROIDERY_TO_PRINT_PRICE),aw=h(V.UPDATE_POSTAL_CODE),iw=h(V.UPDATE_PREVIOUS_TOTAL_QTY),yg=e=>(t,n)=>{t({type:V.UPDATE_PRODUCT_QUANTITIES,payload:e});const s=n(),o=dn(s);t(Sg(o))},Og=h(V.UPDATE_QUOTE),cw=h(V.UPDATE_QUOTE_BLANK),lw=h(V.UPDATE_MODE),Rg=h(V.UPDATE_SHIPPING),Dg=h(V.UPDATE_TOTAL_PRICE),vg=h(V.UPDATE_REAL_TIME_TOTAL_PRICE),Pg=h(V.UPDATE_ITEMIZED_PRICES),kl=h(V.UPDATE_ITEMIZED_PRICES_WITHOUT_DROPPED_VIEW),Lg=h(V.UPDATE_REAL_TIME_ITEMIZED_PRICES),dw=h(V.SHOW_SHIPPING_FORM),Ng=h(V.REAL_TIME_PRICING_SUCCESS),wg=h(V.REAL_TIME_PRICING_ERROR);function uw(){return(e,t)=>{const n=t(),s=ai(n),o=we(n),r={};r[o]=s,e({type:V.UPDATE_PRODUCT_QUANTITIES,payload:r,meta:{source:"NAMES_NUMBERS"}})}}function bi(e){return e.ok?e:Promise.reject(e)}function bg(e,t={}){return n=>n.errors?Promise.reject(n):n.totalPrice?(t.realTimePriceRequestId===Vl&&(e(Ng()),e(Ig(t.isColorful)),e(vg({totalPrice:n.totalPrice})),e(Lg(n.itemizedPrices)),e({type:g.REAL_TIME_PRICE_CHANGE})),n):Promise.reject(n)}function Mg(){return(e,t)=>{const n=ye();Vl=n;const s=t(),o=!js(s),r=!!gi(s),a=we(s),i=Ni(t(),{useTotalQuantity:!r&&!m6(s),useZipCodeGuess:!0});return window.fetch(K.price_quote,R(f({},Wn),{credentials:Yn,body:i})).then(bi).then(c=>c.json()).then(c=>c.quote).then(ro).then(c=>R(f({},c),{itemizedPrices:b({[a]:c.itemizedPrices.get(a)})})).then(bg(e,{isColorful:o,realTimePriceRequestId:n})).catch(c=>e(wg({error:c,selectedProductId:a})))}}function _w(){return(e,t)=>{const n=t(),s=Ni(n,{isVolumeDiscountFlag:!0,overrideZipCode:!0,zipCodeParam:"19901"}),o=new AbortController,r=o.signal,a=window.fetch(ni.quoting,R(f({},Wn),{body:s,credentials:Yn,timeout:6e4,signal:r})).then(bi).then(i=>i.json());return a.abort=()=>{o.abort()},a.catch(i=>{i.name!=="AbortError"&&z.error("Failed to fetch international quote",i)}),a}}const ao=(e,t)=>{const n={type:"fullQuote"},{colorCounts:s,type:o,customItems:r}=f(f({},n),t),a={fullQuote:{deserializer:xl,isVolumeDiscountFlag:!0,useZipCodeGuess:!0,url:ni.quoting},priceQuote:{deserializer:ro,isVolumeDiscountFlag:!1,responseRoot:"quote",url:K.price_quote}},{deserializer:i,isVolumeDiscountFlag:c,responseRoot:l,url:d,useZipCodeGuess:_}=a[o]||a[n.type],u={isVolumeDiscountFlag:c,useZipCodeGuess:_};return s&&(u.colorCounts=s),r&&(u.customItems=r),window.fetch(d,R(f({},Wn),{body:Ni(e,u),credentials:Yn,timeout:6e4})).then(bi).then(E=>E.json()).then(E=>i(l?E[l]:E))},pw=()=>(e,t)=>{const n=t();return e(J2(!1)),ao(n,{type:"fullQuote"}).then(s=>(e(Og(s)),e(Dg({totalPrice:s.totalPrice,volumeDiscountPrice:s.volumeDiscountPrice})),e(Pg(s.itemizedPrices)),e(Rg(s.shipping)),e(J2(!0)),s))},gw=()=>(e,t)=>{const n=t(),s=_t(n),o=f({}
185,s),r=dn(n)||Fs(n)||0;if(e6(r)&&U2(s)){let a=U2(o);Object.keys(o).filter(c=>o[c]>=3).map(c=>{o[c]>o[a]&&(a=c)}),o[a]=o[a]-1;const i=Fs(n)?wi(n):void 0;ao(n,{colorCounts:o,type:"priceQuote",customItems:i}).then(ro).then(c=>{e(jr(c.totalPrice))}).catch(c=>{z.error("fetchOneColorLessPrice failed",c),e(jr())})}else e(jr())},Ew=()=>(e,t)=>{const n=t(),s=_t(n);if(d0({colorCounts:s})<2)return e(Qr());let o=f({},s),r=Object.keys(s)[0];Object.keys(o).map(i=>{o[i]<o[r]&&(r=i)}),o=_0({views:o,removeViewName:r});const a=Fs(n)?wi(n):void 0;ao(n,{colorCounts:o,type:"priceQuote",customItems:a}).then(ro).then(i=>{e(Qr(i.totalPrice))}).catch(i=>{z.error("fetchOneViewLessPrice failed",i),e(Qr())})},hw=()=>(e,t)=>P(void 0,null,function*(){const n=t(),s=De(n),o=$s(n)(s),r=_t(n),a=gr(n);if(c6(n)||!s||!o||!r||!Object.keys(r).length||!a)return;e(ec(!0));const i=Ug({productViews:o,colorCount:r}),c=Object.keys(i),l=[];for(let d=0;d<c.length;d++){const _=c[d],u=i[_];l.push(ao(n,{colorCounts:u,type:"priceQuote"}).then(hg).then(E=>{e(kl(xg({itemizedPricesBefore:a,itemizedPricesAfter:E,droppedViewName:_})))}))}return yield Promise.all(l),e(ec(!1))}),Ug=({productViews:e,colorCount:t})=>{if(!e||!t||!Object.keys(t).length)return;const n={};return e.forEach(s=>{const o=s==null?void 0:s.name;if(o&&d0({colorCounts:t})>0){const r=_0({views:$d(t),removeViewName:o});n[o]=r}}),n},xg=({itemizedPricesBefore:e,itemizedPricesAfter:t,droppedViewName:n})=>{const s={},{fullItemizedPricesAfterDropView:o,sumSubtotalsBefore:r,sumSubtotalsAfter:a}=Fg({itemizedPricesBefore:e,itemizedPricesAfter:t});return s[n]=b({itemizedPrices:o||s,sumSubtotalsBefore:r,sumSubtotalsAfter:a}),s},Fg=({itemizedPricesBefore:e,itemizedPricesAfter:t})=>{if(!e||!t||!e.toJS||!t.toJS||!e.toJS()||!t.toJS())return null;const n=e.toJS(),s=t.toJS();if(!n||!s||!Object.keys(n))return null;const o=Object.keys(n),r={};let a=0,i=0;return o.forEach(c=>{const l=n[c],d=s[c];l!=null&&l.itemPrice&&(l!=null&&l.subtotal)&&(d!=null&&d.itemPrice)&&(d!=null&&d.subtotal)&&(a+=l.subtotal,i+=d.subtotal,r[c]=b({oldItemPrice:l.itemPrice,oldSubtotal:l.subtotal,itemPrice:d.itemPrice,subtotal:d.subtotal}))}),{fullItemizedPricesAfterDropView:b(r),sumSubtotalsBefore:a,sumSubtotalsAfter:i}},fw=()=>(e,t)=>{const n=t(),s=_t(n);if(!(s.rightSleeve>0||s.leftSleeve>0||s.sleeve&&s.sleeve[0]>0||s.sleeve&&s.sleeve[1]>0))return e(qr());const r=f({},s);delete r.rightSleeve,delete r.leftSleeve,delete r.sleeve;const a=Fs(n)?wi(n):void 0;ao(n,{colorCounts:r,type:"priceQuote",customItems:a}).then(ro).then(i=>{e(qr(i.totalPrice))}).catch(i=>{z.error("fetchSleeveViewLessPrice failed",i),e(qr())})},mw=h(V.SET_SWAPPED_PRINT_METHOD),Vg=h(X.REPLACE_PRODUCTS);function kg(e,t,n,s){return Object.keys(n).reduce((r,a)=>{const i=n[a],l=Er(s)[a]||{},d=qs(s,{colorId:i,styleId:t}),_=j7(s)(t,i),u=Object.keys(l).filter(E=>!d.includes(E)&&l[E]>0).map(E=>{const O={quantity:l[E],size:E},I=_==null?void 0:_.find(A=>A.name===E);return I&&(O.status=I.status),O});return r.concat(u)},[])}function Hg(e,t,n){const s=t(),o=ve(s).toArray(),r=ot(s),a=[];for(let i=o.length-1;i>=0;i--){const c=r.get(i);(c==null?void 0:c.decoration_method)!==n&&a.push(o[i].get("colorId"))}Fa.unstable_batchedUpdates(()=>{a.forEach(i=>e(Gg({colorId:i})))})}function Hl({metricsEnabled:e,overrideNotification:t=!1,overrideDecoMethodCheck:n=!1,products:s,urlPath:o,isMerging:r=!1}){return s!=null&&s.length||z.warning("AddProduct action called without any products"),(a,i)=>{var F;const c=i(),l=Re(c),d=zt(c),_=s[0].styleId,u=Ne(c,{styleId:_});if(!n&&(u!=null&&u.decoration_method)){const U=Et(c);if(U&&u.decoration_method!==U){const q=Tr(c),re=ot(c).toJS(),ee=[];for(let ce=0;ce<re.length;ce++)((F=re[ce])==null?void 0:F.decoration_method)!==u.decoration_method&&ee.push(ce);const Y=Eg(re,q,ee);a(ut({key:fi,incompatibleProducts:Y,onConfirm:()=>P(this,null,function*(){try{yield a(Hl({metricsEnabled:e,overrideNotification:!0,overrideDecoMethodCheck:!0,products:s,urlPath:o,isMerging:r})),Hg(a,i,u.decoration_method)}catch(ce){z.error("Add product with decoration method check failed",ce),a(ut({key:hi,title:"Something went wrong",description:"Failed to add product. Please try again."}))}})}));return}}const E=d.keySeq().toJS(),T=u.views,O=E.filter(U=>
185!T.find(q=>q.id===U)),I=E.filter(U=>T.find(q=>q.id===U));if(O!=null&&O.length&&!t){a(ut({key:V0,payload:{retainedViewsWithIcons:I,metricsEnabled:e,productName:u.name||"product",products:s,urlPath:o}}));return}const A=ls(c,{styleId:l}),{sponsorship:D}=u,v=ls(c,{styleId:_}),w=A.reduce((U,q)=>(U[q.id]=Zs(c)(q),U),{}),H=v.reduce((U,q)=>k1.includes(q.id)?(U[q.id]=q.constraint,U):(U[q.id]=w[q.id]?w[q.id]:q.constraint,U),{}),Q=Si(d),se={};for(const U of Object.keys(Q))H[U]&&(se[U]=Q[U]);const oe=v.reduce((U,q)=>(U[q.id]=q.scale,U),{}),Z=v.reduce((U,q)=>(U[q.id]=q.scale,U),{});a({type:X.ADD_PRODUCT,payload:{products:s.map(U=>R(f({},U),{validSizes:qs(i(),U)})),constraints:H,newViewIcons:se,oldConstraints:w,sponsorship:D,views:v,isMerging:r,scales:Z,oldScales:oe,urlPath:o,noHalftones:u==null?void 0:u.no_halftones},meta:{newStyle:s[0].styleId!==Re(i()),metricsEnabled:e}}),a(Ii()),s.forEach(U=>{a(Li(U)),a(Rr(U.styleId))}),a(Bl({styleId:_,primaryCategoryId:u.primary_category_id}))}}function Gl(e){return(t,n)=>P(this,null,function*(){const s={};e==null||e.forEach(o=>{const r=Ne(n(),{styleId:o});r!=null&&r.id&&!s[r.id]&&(s[r.id]=r.id,t(Bl({styleId:r==null?void 0:r.id,primaryCategoryId:r==null?void 0:r.primary_category_id})))})})}function Bl({styleId:e,primaryCategoryId:t}){return(n,s)=>P(this,null,function*(){if(!e||!t||R7({categoryPath:m0(s(),e),primaryCategoryId:t}))return;const o=yield us.getCategory(t),r=yield us.getCategory(o==null?void 0:o.parent_id),a=Bo(r==null?void 0:r.name),i=Bo(o==null?void 0:o.name);!a||!i||n({type:X.UPDATE_CATEGORY_PATHS,payload:{styleId:e,categoryPath:`/${a}/${i}/${t}`}})})}function Tw(e,t,n=!0,s=!1){return(o,r)=>P(this,null,function*(){var u,E;let a=r(),i=(u=Us(a))==null?void 0:u.styleId;if(!i)return;let c=cs(a,{colorId:t,styleId:i});if(!c)try{const T=i;i=(yield o(z_(t))).id,yield o(Wl({previousColorId:e,previousStyleId:T,nextProduct:{styleId:i,colorId:t}})),a=r(),c=cs(a,{colorId:t,styleId:i})}catch(T){o(yi(t,T));return}const l={[e]:t},d=kg(e,i,l,a);o({type:X.CHANGE_COLOR,payload:{previousColorId:e,nextColorId:t,validSizes:qs(a,{styleId:(E=Us(a))==null?void 0:E.styleId,colorId:t})},meta:{fireAnalytics:n,confirmationRequired:d.length,notification:{key:el,colorName:c.name,droppedSizes:d,hideChooseAnotherItemCTA:s}}}),o(Li({styleId:i,colorId:l[e]}));const _=zn(a);o(Ml(!!_))})}const tc=h(X.DELETE_PRODUCT,e=>e,(e,t)=>t||{fireAnalytics:!0});function Gg(e){return(t,n)=>{const s=n();ur(s)&&A8(s)(e==null?void 0:e.colorId)?t(ut({key:G0,payload:{handleConfirmDeletion:()=>{t(Yl()),t(tc(e)),t(Ln(!1)),t(jl({droppedViewId:ie.leftSleeve}))}}})):t(tc(e))}}const nc=h(X.RESET);function Sw(e=Xa,t=Ht,n=x1){return(s,o)=>{const r=pn();let{styleId:a=e,colorId:i=t}=r;a||(a=e),i||(i=t);const c=qs(o(),{styleId:a,colorId:i});c.length?s(nc({colorId:i,styleId:a,categoryPath:n,sizes:c})):s(B_(e)).then(l=>l&&s(nc({colorId:i,styleId:a,categoryPath:n,sizes:l.sizes}))).catch(l=>s(yi(e,l)))}}const zl=h(X.SELECT_PRODUCT);function Bg(e,t){return(n,s)=>{const o=s(),r=e.styleId,a=t.styleId,i=zt(o),c=Si(i),l=ls(o,{styleId:a}),d=ls(o,{styleId:r}),_=Ne(o,{styleId:a}),u=_.sponsorship,E=l.reduce((I,A)=>(I[A.id]=A.constraint,I),{}),T=d.reduce((I,A)=>(I[A.id]=A.constraint,I),{}),O={};for(const I of Object.keys(c))E[I]&&(O[I]=c[I]);n({type:X.REPLACE_PRODUCTS_CART_MODE,payload:{products:t,views:l,sponsorship:u,constraints:E,oldConstraints:T,newViewIcons:O,noHalftones:_==null?void 0:_.no_halftones}})}}function Wl({previousColorId:e,previousStyleId:t,nextProduct:n,clearMismatchedViews:s=!1,clearSizeDropWarning:o=!1,clearPreviousProducts:r=!0,isSwappingEmbroidToPrintVariant:a=!1,isInitialLabLoad:i=!1,fireAnalytics:c=!0,rearrangeIcons:l=!0,useSpecialGuidelineOnIconRearranger:d=!0,redoUndoable:_=!0,swapSource:u,preserveSelection:E=!1}){return(T,O)=>P(this,null,function*(){const I=ve(O()).filter(D=>D.colorId!==e&&D.styleId===t).map(D=>D.colorId).toArray();yield us.getColorsInStyle(n.styleId,I).then(A);function A(D={}){const v=O(),w=ls(v,{styleId:t}),H=w.reduce((me,Qe)=>(me[Qe.id]=Qe.constraint,me),{}),Q=w.reduce((me,Qe)=>(me[Qe.id]=Qe.scale,me),{}),se=zt(v),{styleId:oe,categoryPath:Z}=n;
185Object.keys(D).forEach(me=>{(!D[me]||D[me]===n.colorId)&&delete D[me]}),D=ra(ra(D));const F=Ne(v,{styleId:oe});if(gg(F,v))return T(ut({key:K0,payload:{swapArgs:{previousColorId:e,previousStyleId:t,nextProduct:n,clearMismatchedViews:s,clearSizeDropWarning:o,clearPreviousProducts:r,isSwappingEmbroidToPrintVariant:a,isInitialLabLoad:i}}}));const q=ls(v,{styleId:oe}),re=R(f({},D),{[e]:n.colorId}),ee=Object.keys(re).reduce((me,Qe)=>{const x=re[Qe];return me[x]=qs(v,{colorId:x,styleId:oe}),me},{}),Y=q.reduce((me,Qe)=>(me[Qe.id]=Qe.constraint,me),{}),ce=q.reduce((me,Qe)=>(me[Qe.id]=Qe.guidelines,me),{}),_e=q.reduce((me,Qe)=>(me[Qe.id]=Qe.scale,me),{}),rt=Si(se),je={};for(const me of Object.keys(rt))Y[me]&&(je[me]=rt[me]);const Je=F==null?void 0:F.primary_category_name,j=F==null?void 0:F.decoration_method,de=F==null?void 0:F.style_type,Ge=Xe(v),be=Wg(se,q),et=be.mismatched,$e=be.matched,yt=(F==null?void 0:F.name)||"product",Tn=(F==null?void 0:F.colors)||[],Sn=zg(et,F);et.length===0||s?(T({type:X.SWAP_PRODUCT,payload:{designId:Ge,changedProductCategory:Je,constraints:Y,guidelines:ce,oldConstraints:H,decorationMethod:j,nextStyleId:oe,previousStyleId:t,previousColorId:e,nextColorIds:re,validSizes:ee,nextCategoryPath:Z,sponsorship:F==null?void 0:F.sponsorship,newViewIcons:je,canvasViewIcons:se,views:q,scales:_e,oldScales:Q,isSwappingEmbroidToPrintVariant:a,isInitialLabLoad:i,rearrangeIcons:l,styleType:de,useSpecialGuidelineOnIconRearranger:d,noHalftones:F==null?void 0:F.no_halftones,swapSource:u},meta:{clearPreviousProducts:r,confirmationRequired:!1,fireAnalytics:c,nextColorIds:re,nextStyleId:oe,redoUndoable:_,preserveSelection:E}}),T(Li({styleId:oe,colorId:re[e]}))):T(ut({key:yr,payload:{matchedAreas:$e,mismatchedAreas:et,mismatchedNoPhotography:Sn,previousColorId:e,previousStyleId:t,nextProduct:n,productName:yt,productColors:Tn}})),T(Ii());const _o=zn(v);T(Ml(!!_o))}})}function zg(e,t){const n=t.additional_print_areas||[],s=e.map(r=>wt[r]),o=[];for(const r of s)n.includes("sleeve")?r==="leftSleeve"?o.push("left sleeve"):r==="rightSleeve"&&o.push("right sleeve"):n.includes(r)&&o.push(r);return o}function Wg(e,t){const n=t.map(a=>a.id),s=[...e.keys()],o=[],r=[];return s.map(a=>{n.includes(a)?r.push(a):o.push(a)}),{matched:r,mismatched:o}}function Yg(){return(e,t)=>{let n=!0;return n=jg(e,t),n&&(n=Qg(e,t)),n}}function jg(e,t){const n=t();let s=!0;return ot(n).forEach(r=>{if((r==null?void 0:r.status)!=="active"){const a=M6(n,r==null?void 0:r.id);e(E_()),a.length>0&&e(zl(a[0])),e(ut({key:Q0,product:r})),s=!1;return}}),s}function Qg(e,t){const n=t(),s=Tr(n),o=ot(n);let r=!0;return s.forEach((a,i)=>{if(!a)r=!1;else if(a.status!=="active"){const c=cs(n,{styleId:o.get(i).id,colorId:a.alternative_id});e(h_()),e(zl(a.id)),e(ut({key:J0,alternative:c,color:a})),r=!1}}),r}function Yl(){return e=>{e(sc({productViewId:ie.leftSleeve})),e(sc({productViewId:ie.rightSleeve}))}}function Cw({id:e}){return(t,n)=>{t(Or(e))}}function sc({productViewId:e}){return(t,n)=>{if(!e)return;const s=kn(n()),o=D8({icons:s,productViewId:e});o&&(t(ip({iconIds:o,viewId:e})),t(sp({source:Ri.DROP_SIDE})))}}function Iw(e){return(t,n)=>{const s=n();t(Yl()),t(Ag(R(f({},jo(s)({productViewId:ie.rightSleeve})),{savings:e}))),t(jl({droppedViewId:ie.rightSleeve})),t(I_())}}function jl({droppedViewId:e}){return(t,n)=>{if(!e)return;const s=R8(n())({droppedProductViewId:e});s!=null&&s.id&&t(Or(s.id))}}function Aw(e,t){return(n,s)=>{const o=s(),r=di(o);w2({viewId:t})&&(w2({viewId:r==null?void 0:r.id})&&n(Or(ie.front)),!ur(o)&&f0(o)&&n(Ln(!1)),y8(o)||n(ut({key:W0}))),n({type:X.UPDATE_HAS_INVALID_PRODUCT_IMAGES,payload:{productId:e,viewId:t}})}}function qg(e){return(t,n)=>{const s=Ne(n(),{styleId:e}),{primary_category_name:o,primary_category_id:r}=s||{};return o&&r?O7({category:o,categoryId:r}):null}}const Xo=sr({reducerPath:"designsApi",baseQuery:or({baseUrl:`${K.designs}/api`,credentials:Yn,prepareHeaders:e=>(Object.entries(no).forEach(([t,n])=>{e.set(t,n)}),e)}),endpoints:()=>({})}),oc=Object.freeze({categoryPath:"",colorId:null,colorName:"",designCompositeId:"",designName:"",designUpdatedAt:"",id:"",imageSrc:"",styleId:null,styleName:"",priceBeforeDiscount:"",quantity:0,quoteQuantities:"",sizeDisplayName:"",subTotal:0,unitPrice:0,visible:null}),Xg=e=>{const t=f({},oc);
185return Object.keys(oc).forEach(s=>{const o=e[s];(o||o===!1)&&(t[s]=o)}),t.id=e.id||ye(),t};function $g(e){e=l2(e,(o,r)=>oa(r));let t=e.items||[],n=0;return t=t.reduce((o,r)=>{let a=l2(r,(c,l)=>oa(l)),i=`/images/catalog/colors/${a.colorId}/views/alt/front_medium_extended.png`;return i=`${K.proofImages}${i}`,a.imageSrc=Mt(i,{design:a.designCompositeId,digest:a.designUpdatedAt}),a=Xg(a),o[a.id]=a,n=n+a.subTotal,o},{}),{email:e.account.email,items:t,total:n}}const Zg=Xo.injectEndpoints({overrideExisting:!1,endpoints:e=>({getCart:e.query({query:()=>{const t=C1(),n=new URLSearchParams;return n.set("digest",`${Date.now()}`),t&&n.set("token",t),{url:`checkout/cart?${n.toString()}`}},transformResponse:t=>$g(t)})})}),{useGetCartQuery:yw,endpoints:Mi}=Zg,Ql=Mi.getCart.select(),ql=_s([Ql],e=>{var t,n;return Object.values((n=(t=e.data)==null?void 0:t.items)!=null?n:{})}),Kg=e=>{var t;return(t=Ql(e).data)==null?void 0:t.email},k={SAVE_SUCCESS:"design/SAVE_SUCCESS",SAVE_FAILED:"design/SAVE_FAILED",CLEAR_DESIGN_DATA:"design/CLEAR_DESIGN_DATA",DUPLICATE_DESIGN:"design/DUPLICATE_DESIGN",SAVE:"design/SAVE",FETCH:"design/FETCH",FETCH_SUCCESS:"design/FETCH_SUCCESS",FETCH_FAILED:"design/FETCH_FAILED",SHARE:"design/SHARE",SHARE_SUCCESS:"design/SHARE_SUCCESS",SHARE_FAILURE:"design/SHARE_FAILURE",SHARE_ERROR:"design/SHARE_ERROR",INVALID_UPLOAD:"design/INVALID_UPLOAD",SET_COMBINE_DESIGNS:"design/SET_COMBINE_DESIGNS",UPDATE_INK_MATCHES:"design/UPDATE_INK_MATCHES",REMOVE_INK_MATCH:"design/REMOVE_INK_MATCH",RESET_INK_MATCHES:"design/RESET_INK_MATCHES",RELOAD_ICONS_FROM_SAVE:"design/RELOAD_ICONS_FROM_SAVE"},Jg=Pe.object({errors:Pe.record(Pe.string(),Pe.array(Pe.string()))}),eE=()=>({errors:{base:["server_error"]}});function tE(e){return Dr(e,Jg)}const nE=Pe.object({compositeId:Pe.string(),canUpdate:Pe.boolean().optional()});function sE(e){return Dr(e,nE)}const oE="default";function rE(e){return G(e.map(t=>ws(Zu(t))))}function aE(e){return{clipartId:e.id.toString(),colors:rE(e.visible_colors),blackwhite:e.black_white,licensed:e.licensed}}function Xl(e,t){return e[t.version||oE]=aE(t),e}function Ow(e){return e.clipart_versions.reduce(Xl,{})}const $l=1e3,Rw="$5.50",Dw="$3.50",vw=-.3,Pw=6.2,iE=2,cE=8,Lw=46,Nw=14,ww=[1,iE],bw=[2,4,6,cE];function io(e){var t=e||{};return t.id=t.id||ye(),t}function lE(e){var s,o;if(!e||!e.width||!e.height)return{originalBaseWidth:null,originalBaseHeight:null};const t=(s=e.crop)!=null&&s.widthPercent?e.width/e.crop.widthPercent:e.width,n=(o=e.crop)!=null&&o.heightPercent?e.height/e.crop.heightPercent:e.height;return{originalBaseWidth:t,originalBaseHeight:n}}
185class $o extends Ct({blackwhite:!1,clipartVersions:{},categoryPath:null,categoryTagId:null,clipartId:null,color:B.Black,colors:G(),dragging:!1,singleColor:!1,height:5,horizontalFlip:!1,id:null,lockRatio:!0,originalHeight:5,originalWidth:5,naturalHeight:null,naturalWidth:null,path:"/clipart/eps/",rendered:!1,rotation:0,sizeIsDirty:!1,textIsUpdating:!1,swappable:!1,transparent:!0,type:W.TYPES.clipart,verticalFlip:!1,viewId:1,wasSaved:!1,width:5,x:0,y:0,recolored:!1}){constructor(t){super(io(t))}}class Ui extends Ct({align:"center",fit:"none",color:B.Black,converted:!0,dragging:!1,effectName:null,effectType:null,effectSetting:null,font:void 0,fontCategory:"",fontHeight:W.TEXT.DEFAULTS.LONG_TEXT_FONT_HEIGHT,fontMinHeight:W.TEXT.DEFAULTS.MIN_FONT_HEIGHT,fontName:"",fontOutlineAllowed:!0,extension:"",height:0,id:null,lockRatio:!0,naturalHeight:0,naturalWidth:0,outlineWidth:null,outlineColor:null,rendered:!1,rotation:0,sizeIsDirty:!0,textIsUpdating:!1,type:W.TYPES.text,value:"",verifying:!1,viewId:1,wasSaved:!1,width:0,x:0,y:0}){constructor(t){super(f({font:W.TEXT.DEFAULTS.FONT_NAME,fontName:W.TEXT.DEFAULTS.FONT_DISPLAY},io(t)))}}class Jn extends Ct({backgroundColor:null,backgroundRemoved:!1,contrast:null,crop:null,color:B.Black,colorMode:null,dragging:!1,extension:null,expirationDate:null,hasColorBelowThreshold:!1,height:null,horizontalFlip:!1,id:null,invertContrast:!1,key:null,lockRatio:!0,originalImageWidth:null,originalImageHeight:null,originalBaseWidth:null,originalBaseHeight:null,naturalHeight:null,naturalWidth:null,rendered:!1,rotation:0,singleColor:!1,sizeIsDirty:!1,textIsUpdating:!1,spotColors:G(),originalSpotColors:null,originalColorMode:null,originalBackgroundColor:null,type:W.TYPES.upload,url:null,verticalFlip:!1,viewId:1,wasSaved:!1,width:null,x:0,y:0,isAutoSize:!1}){constructor(t){super(f(f({},lE(t)),io(t)))}}class Vs extends Ct({align:"center",color:B.Black,converted:!0,dragging:!1,font:"Varsity01",fontHeight:2,height:0,id:null,rendered:!1,rotation:0,sizeIsDirty:!0,textIsUpdating:!1,type:W.TYPES.names,value:"EXAMPLE",verifying:!1,viewId:1,width:0,x:0,y:0}){constructor(t){super(io(t))}}class ks extends Ct({align:"center",color:B.Black,converted:!0,dragging:!1,font:"Varsity01",fontHeight:8,height:0,id:null,rendered:!1,rotation:0,sizeIsDirty:!0,textIsUpdating:!1,type:W.TYPES.numbers,value:"00",verifying:!1,viewId:1,width:0,x:0,y:0}){constructor(t){super(io(t))}}const dE=N.oneOfType([N.instanceOf($o),N.instanceOf(Jn),N.instanceOf(Ui),N.instanceOf(Vs),N.instanceOf(ks)]),Mw=N.oneOfType([N.instanceOf(Vs),N.instanceOf(ks)]),Uw=N.oneOfType([N.instanceOf(Ke),N.instanceOf(os)]),rc=["rendered","verifying","converted","textIsUpdating"];class ns extends Ct({id:null,name:"",number:"",productSize:"",productId:Ht}){constructor(n){var t=ct(n,[]);t.productSize=t.size||t.productSize,t.name=t.name||"",t.number=t.number||"",t.id=t.id||ye(),super(t)}}function Zl(e){return e.reduce((n,s)=>{const o=Kl(s);return o?n.set(o.id,o):n},Mn())}function Kl(e){if(e.fgcolor){const[t,n,s,o]=e.fgcolor;e.color=o?B.None:ss({r:t,g:n,b:s})}if(e.effect&&(e.effectType=e.effect.type,e.effectSetting=e.effect.setting,e.effectName=_E(e.effect.type,e.effect.setting)),e.outline){const[t,n,s]=e.outline.color;e.outlineColor=ss({r:t,g:n,b:s}),e.outlineWidth=parseFloat(e.outline.width),e.outline.clearFill&&(e.color=B.None)}switch(e.type){case"CLIPART":return pE(e).set("wasSaved",!0);case"TEXT":return new Ui(e).set("wasSaved",!0);case"UPLOAD":return gE(e).set("wasSaved",!0);case"NAMES":return new Vs(e);case"NUMBERS":return new ks(e)}}function uE(e,t){const n=t||"0";return e.some(s=>n===s)}function _E(e,t){return ca.find(s=>{const o=s.type.toLowerCase()===e,r=uE(s.values,t);return o&&r}).name}function pE(e){const t=(e.colors||[]).map(s=>{if(!("original"in s)){const o=ss(Co(s));return ws(o)}return new os({original:Co(s.original),palette:Co(s.palette),user:Co(s.user)})}).map(s=>e.transparent?jp(s):s);if(e.transparent===void 0){const s=t.length<=2&&t.every(o=>u1(o.palette)||ln(o.palette));e.blackwhite=s}e.blackwhite&&(t[0]=new os({original:B.Black,palette:B.Black,user:e.color})),e.transparent===void 0&&(e.transparent=e.colors.some(s=>s.user.transparent));const n=e.grayscale||e.singleColor;return t.length>1&&n&&!e.blackwhite&&(e.transparent=!0),new $o(R(f({},e),{colors:G(t),originalHeight:e.height,originalWidth:e.width,singleColor:n}))}function gE(e){const t=(e.spotColors||e.colors||[]).map(n=>new os(n));if(!e.invalid)return new Jn(R(f({},e),{backgroundColor:EE(e),colorMode:xi(e),spotColors:G(t),expirationDate:e.expirationDate}))}function xi({colorMode:e,imageType:t}){const n={fullColor:He.PHOTO,monochrome:He.MONOCHROME,spotColor:He.SPOT};return e||n[t]||null}function EE({backgroundColor:e,colors:t}){if(e)return new Ke(e);if(t){const n=t.find(o=>o.background===!0),s=n&&n.original;return s?new Ke(s):null}return null}function hE(e,t){const{quantities:n}=t&&t.quoteData||{},s=e.filter(Jl).reduce((o,r)=>t&&o.push(new ns(R(f({},r),{productId:t.products[0].colorId}))),G());return fE(n,s,e)}function fE(e,t,n){return!e||t.size===0||Object.keys(e).map(s=>{for(var o in e[s]){const r=n.filter(c=>c.size===o).length,a=e[s][o]-r,i=a>0&&a<$l;!Number.isNaN(a)&&i&&new Array(a).fill().map(()=>{t=t.push(new ns({productSize:o,productId:s}))})}}),t}const Jl=e=>e.name||e.number,mE="2020-08-20T18:30:00.000Z";function TE(e){let t=t3(e);const n=new Date(e.updatedAt)<new Date(mE);t=t.map(o=>
185(n&&(gs(o)||Fe(o))&&(o.converted=!1),o));const s=Zl(t);return R(f({},e),{design:SE(e,s,e.apiVersion),icons:s,namesAndNumbers:hE(CE(e),e)})}function e3(e){return t3(e).filter(s=>st(s)&&s.invalid).length>0}function SE(e,t,n){const{id:s,designId:o,designIdeaId:r,compositeId:a,designName:i,email:c,accountId:l,canUpdate:d,inkMatches:_}=e;return b({apiVersion:n,clickedFromTheList:!0,compositeId:a,email:c,accountId:l,fetching:!1,designIdeaId:r,iconIds:t.map(u=>u.get("id")).toList(),designId:o,id:s,name:i,canUpdate:d,isCombined:!1,inkMatches:b(_||{})})}function t3(e){return e.views.reduce((t,n)=>t.concat(n.icons),[])}function CE(e){return e.personalization.filter(Jl)}const ac=e=>e.reduce((t,n)=>{const s=n.get("viewId"),o=t.get(s);return o?o.push(n):t.set(s,[n]),t},new Map),IE=(e,t)=>{const n=ac(t),s=ac(e.valueSeq().toArray()),o=new Map;return s.forEach((a,i)=>{const c=n.get(i);!c||c.length!==a.length||a.forEach((l,d)=>o.set(l.get("id"),c[d].get("id")))}),{icons:e.reduce((a,i)=>{const c=o.get(i.get("id"));return c?a.set(c,i.set("id",c)):a.set(i.get("id"),i)},Mn()),idByFreshId:o}},ic=parseInt(gt.semantics.units.viewport.breakpoint.md,10),AE=parseInt(gt.semantics.units.viewport.breakpoint.lg,10);function yE(){const e=typeof window.matchMedia=="function"&&window.matchMedia(`only screen and (max-device-width: ${ic-1}px)`).matches,t=typeof window.matchMedia=="function"&&window.matchMedia(`only screen and (min-device-width: ${ic}px) and (max-device-width: ${AE-1}px)`).matches;return e?"Mobile":t?"Tablet":"Desktop"}const OE=e=>new Promise((t,n)=>{const s=new Image;s.onload=()=>t({originalHeight:s.naturalHeight,originalWidth:s.naturalWidth}),s.onerror=n,s.src=e});function co(e){return to[e]}function RE(e){return e.replace("/uploads/","/uploads/v2/")}const n3=(e,t=h1)=>{if(!(e!=null&&e.url))return null;const n=co("NDX_IMAGE_UPLOADS_URL"),s=RE(e.url);return`${n}${s}?maxDimension=${t}&client-name=ndx&client-version=41957b0499355eeaa005418fc77745d2301421bb`},s3=e=>()=>S.useCallback(t=>n3(t,e),[e]),o3=s3(h1),xw=s3(h4),Fi=({handleError:e,onRender:t,options:n,scale:s})=>{var E;const o=((E=n.toJS)==null?void 0:E.call(n))||n,r=un(),[a,i]=S.useState(),c=S.useRef(),l=S.useRef(0),d=o3(),_=S.useMemo(()=>d(n),[d,n==null?void 0:n.url]),u=S.useCallback(T=>P(void 0,null,function*(){if(!c.current||!a)return;l.current+=1;const O=l.current;yield a.setFilters(T).getCanvas().then(I=>{var H;if(O!==l.current)return;const{img:A,crop:D}=I,v=!o.crop&&S7(D,!0);v&&(r(Oi(o,D,!0,!1)),$({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"auto_crop"})),A.className="ndx-UploadImage",A.style.height="100%",A.style.width="100%";const w=(H=c.current)==null?void 0:H.childNodes[0];w&&(c.current.replaceChild(A,w),v||t({naturalWidth:A.width,naturalHeight:A.height}))}).catch(I=>{O===l.current&&e(I)})}),[c,e,t,o,a,r]);return S.useEffect(()=>{let T=!1;return Gs(()=>import("./vendor-Cd7MAbpv.js").then(O=>O.cP),__vite__mapDeps([0,1])).then(O=>{T||i(new O.ImageChanger(W.TYPES.upload,_))}),()=>{T=!0,i(void 0)}},[_]),S.useEffect(()=>{const T=T7(o,s);u(T)},[o,s,u,a]),C.jsx("div",{className:"ndx-UploadImage-container fs-unmask",ref:c,children:C.jsx("canvas",{})})};Fi.displayName="UploadImage";const DE={handleError:N.func,options:dE,scale:N.number,onRender:N.func};Fi.propTypes=DE;Fi.defaultProps={handleError:function(){},rotation:0,scale:20,onRender:function(){}};const vE=W.TEXT.DEFAULTS.MIN_FONT_HEIGHT,PE=W.CLIPART.DEFAULTS.MIN_ART_HEIGHT,r3=7,LE=5;function NE(e,t,n){const s=e.get("height"),o=e.get("width"),r=PE,a=Math.max(t,r/o),i=Math.max(n,r/s),c=Lt(s*i,2),l=Lt(o*a,2);if(e=e.set("height",c).set("width",l),(St(e)||st(e))&&e.lockRatio){const{naturalWidth:d,naturalHeight:_}=e;e=e.set("naturalWidth",d*a).set("naturalHeight",_*i)}return Fe(e)&&l3(e)&&(e=e.set("naturalWidth",l).set("naturalHeight",c)),e}function wE(e,t){const n=e.get("fontHeight")||1,s=e.get("fontMinHeight")||vE,o=e.get("width"),r=e.get("height"),a=Math.max(t,s/n);return e.merge({fontHeight:Lt(n*a),height:Lt(r*a),width:Lt(o*a)})}const a3=(e,t,n,s=!1)=>e.map(o=>ze(o.original,t)?(s&&(o=o.set("selectedUser",n)),o.set("user",n)):o);function i3(e,t,n,s=!1){return e.updateIn(["colors"],o=>a3(o,t,n)).updateIn(["color"],o=>(e.singleColor||e.colors.size===1)&&!s?n:o).updateIn(["transparent"],o=>ze(t,B.White)?ze(n,B.None):o).updateIn(["recolored"],()=>!0)}function bE(e,t){return i3(e,t,t).updateIn(["recolored"],()=>!1)}function tn(e,t,n,s=!1){return e.updateIn(["spotColors"],o=>a3(o,t,n,s))}function ME(e,t){return e.backgroundColor&&ze(e.backgroundColor,t.original)&&(e=e.set("backgroundColor",null)),e.updateIn(["spotColors"],n=>n.filter(s=>!ze(s.original,t.original)))}function UE(e,t){return e.updateIn(["spotColors"],n=>n.push(t))}function c3(e,t,n){var s;if(typeof t=="object"){for(var o in t)Object.prototype.hasOwnProperty.call(t,o)&&(s=(s||e).set(o,aa(t[o])));return s}else return e.set(t,aa(n))}
185function Zo(e,t,n){var s=e.update("x",o=>o+Lt(t,4));return s.update("y",o=>o+Lt(n,4))}function cc(e,t,n){if(e.get("viewId")===ie.front&&n===ie.back||e.get("viewId")===ie.back&&n===ie.front||e.get("viewId")===ie.rightSleeve&&n===ie.leftSleeve||e.get("viewId")===ie.leftSleeve&&n===ie.rightSleeve)return Zo(e,0,0);const s=e.get("x"),o=e.get("y"),r=e.get("width")/2+qn,a=e.get("height")/2+qn,i=s+r>t.width/2?s-r<-t.width/2?0:-qn:qn,c=o+a>t.height/2?o-a<-t.height/2?0:-qn:qn;return Zo(e,i,c)}function Vi(e,t,n){return Fe(e)&&!l3(e)?wE(e,t).set("sizeIsDirty",!0):NE(e,t,n)}function lc(e,t,n){const s={start:n/-2,end:n/2},o={start:e-t/2,end:e+t/2};return o.start<s.start?s.start+t/2:o.end>s.end?s.end-t/2:e}function xE(e,t){return c3(e,{x:lc(e.x,e.width,t.width),y:lc(e.y,e.height,t.height)})}function Ia(e,t,n=xE){if(typeof t=="undefined")return e;const s=Math.min(t.width/e.get("width"),t.height/e.get("height"));return s<1&&(e=Vi(e,s,s)),n(e,t)}function FE(e,t){return e.set("x",e.x*t).set("y",e.y*t)}function dc(e,{x:t,y:n}){return e.set("x",e.x-t).set("y",e.y-n)}const l3=e=>{const{fit:t}=e;return t==="occupy"},VE=e=>P(void 0,null,function*(){if(st(e)||St(e)){const t=st(e)?n3(e):Mt(`${K.manipulate}/manipulate`,{clipart_id:e.clipartId});return OE(t)}}),kE=e=>P(void 0,null,function*(){const t=Object.values(e.toJS()).filter(n=>St(n)||st(n)).map(n=>P(void 0,null,function*(){const{width:s,height:o,rotation:r,id:a}=n;if(r){const{originalWidth:i,originalHeight:c}=yield VE(n),{naturalWidth:l,naturalHeight:d}=t0({width:s,height:o,rotation:r,originalHeight:c,originalWidth:i});e=e.setIn([a,"naturalWidth"],l),e=e.setIn([a,"naturalHeight"],d)}else e=e.setIn([a,"naturalWidth"],s),e=e.setIn([a,"naturalHeight"],o)}));return yield Promise.all(t),e});function HE({icon:e,designDimensions:t,oldConstraints:n,newConstraints:s,oldScales:o,newScales:r,guidelines:a,decorationMethod:i,styleType:c,changedProductCategory:l,useSpecialGuideline:d=!0}){if(!(e!=null&&e.viewId)||!t||!n||!s||!o||!r)return e;const _=t[e.viewId],u=n[e.viewId],E=s[e.viewId],T=o[e.viewId],O=r[e.viewId],I=a?a[e.viewId]:null,A=sn({rect:u,printScaleFactor:T}),D=sn({rect:E,printScaleFactor:O}),v=sn({rect:_,printScaleFactor:T}),w=w5({oldConstraintsInfo:A,newConstraintsInfo:D}),H=S9(t,s),Q=C9(t,s);if(!w&&H[e.viewId]&&Q[e.viewId])return e;const{selectedGuideline:se,selectedGuidelineInfo:oe,usingSelectedGuideline:Z,optimizeForScreenPrintApparel:F}=GE({icon:e,newConstraintsInfo:D,guidelinesNewConstraint:I,newScale:O,decorationMethod:i,styleType:c}),U=BE({designDimensions:_,oldConstraint:u,oldConstraintsInfo:A,newConstraint:d&&se||E,newConstraintsInfo:d&&oe||D,designInfo:v,usingGuideline:d?Z:!1,optimizeForScreenPrintApparel:F,changedProductCategory:l}),q=Vi(e,U,U),re=FE(q,U),ee=dc(re,M5({designInfo:v,ratio:U}));return d&&Z?dc(ee,U5({guidelineInfo:oe,newConstraintsInfo:D,newScale:O})):ee}function GE({icon:e,newConstraintsInfo:t,guidelinesNewConstraint:n,newScale:s,decorationMethod:o,styleType:r}){const a=n==null?void 0:n.find(H=>H.name==="Left Chest"),i=a?sn({rect:a,printScaleFactor:s}):null,c=n==null?void 0:n.find(H=>H.name==="Right Chest"),l=c?sn({rect:c,printScaleFactor:s}):null,d=n==null?void 0:n.find(H=>H.name==="No Bleed"),_=d?sn({rect:d,printScaleFactor:s}):null,u=f({},t);u.name="Top Center",u.bottom=u.top+Math.min(u.deltaY*.8,r3*s);const E=sn({rect:u,printScaleFactor:s});let T=a||c||d,O=i||l||_;const I=e.viewId===ie.front&&o==="screen"&&r==="apparel"&&!T;I&&(T=u,O=E);const A=v5(n),D=(A==null?void 0:A.name)!=="Front"?A:null,v=D?sn({rect:D,printScaleFactor:s}):null;return!T&&D&&(T=D,O=v),{selectedGuideline:T,selectedGuidelineInfo:O,usingSelectedGuideline:!!T,optimizeForScreenPrintApparel:I}}function BE({designDimensions:e,oldConstraint:t,oldConstraintsInfo:n,newConstraint:s,newConstraintsInfo:o,designInfo:r,usingGuideline:a=!1,optimizeForScreenPrintApparel:i=!1,changedProductCategory:c}){var H;if(!e||!t||!n||!s||!o||!r)return 1;const l=b5(o),d=a?.94:1,_=D2({constraintsDimensions:l,designDimensions:e,dimension:"width",dimensionPercentage:d}),u=D2({constraintsDimensions:l,designDimensions:e,dimension:"height",dimensionPercentage:d}),E=R2({newConstraint:s,oldConstraint:t,dimension:"width"}),T=R2({newConstraint:s,oldConstraint:t,dimension:"height"}),O=fo({designDimensions:e,scaledConstraintsDimensions:l,ratio:E}),I=fo({designDimensions:e,scaledConstraintsDimensions:l,ratio:T});if(i){const Q=((H=c==null?void 0:c.toLowerCase)==null?void 0:H.call(c))==="hoodies"?LE:r3,
185se=O2({fullDimensionInches:l.width,fullDimensionRatio:_,desiredValInches:Q}),oe=O2({fullDimensionInches:l.height,fullDimensionRatio:u,desiredValInches:Q}),Z=fo({designDimensions:e,scaledConstraintsDimensions:l,ratio:se}),F=fo({designDimensions:e,scaledConstraintsDimensions:l,ratio:oe});return Z&&F?Math.max(se,oe):Z||F?Math.min(se,oe):Math.min(_,u)}const A=(o==null?void 0:o.areaInches)<(n==null?void 0:n.areaInches),D=Math.min(_,u),v=Math.max(E,T),w=Math.min(E,T);return A&&O&&I&&v>D*.85?v:A&&(O||I)&&w>D*.85?w:!A&&O&&I&&v>D*.5?v:!A&&(O||I)&&w>D*.5?w:Math.min(_,u)}class d3 extends Error{constructor(t,n){super("Network error during upload"),this.requestUrl=n,this.name="UploadNetworkError",this.cause=t}}const u3=e=>e instanceof d3,zE=e=>typeof e=="string"?e:e instanceof URL?e.href:e==null?void 0:e.url,_3=(e,t)=>P(void 0,null,function*(){try{return yield window.fetch(e,t)}catch(n){throw new d3(n,zE(e))}});function WE(e){return e!==null&&typeof e=="object"&&"message"in e}function YE(e){return e!==null&&typeof e=="object"&&"error"in e&&WE(e.error)}class ki{constructor(t){this.client=t,this.getPaginated=(n,s,o,r)=>P(this,null,function*(){const a=yield this._get(n,s),i=a.response.headers.get("x-total-count"),c=i?parseInt(i,10):0,l=o*r<c,d=Math.ceil(c/r);return{currentPage:o,totalCount:c,totalPages:d,hasMorePages:l,items:a.data,headers:a.response.headers}}),this._get=(n,s)=>P(this,null,function*(){const o=yield this.client.GET(n,f({},s));return this.checkResponse(o)}),this.get=(n,s)=>P(this,null,function*(){return(yield this._get(n,s)).data}),this.post=(n,s)=>P(this,null,function*(){const o=yield this.client.POST(n,f({},s));return this.checkResponse(o)}),this.put=(n,s)=>P(this,null,function*(){const o=yield this.client.PUT(n,f({},s));return this.checkResponse(o)}),this.delete=(n,s)=>P(this,null,function*(){const o=yield this.client.DELETE(n,f({},s));return this.checkResponse(o)}),this.checkResponse=n=>{var s,o;if(n.error||!n.data){const r=YE(n.error)?n.error.error.message:((o=(s=n.error)==null?void 0:s.toString)==null?void 0:o.call(s))||"An error occurred";throw new Ft(r,{cause:n.error,response:n.response})}return n}}}const p3=()=>{const e=co("NDX_IMAGE_UPLOADS_URL"),t={"client-name":"ndx","client-version":to.VITE_RELEASE},n=Va({baseUrl:e,headers:t,fetch:_3});return new ki(n)},jE=()=>{const e=co("NDX_IMAGE_UPLOADS_URL");return S.useMemo(()=>p3(),[e])};class g3 extends Error{constructor(t,n,s){super(t),this.reason=n,this.url=s,this.name="SseTransportError"}}const QE=e=>e instanceof g3;class uc extends Error{constructor(t,n,s,o){super(t,o),this.eventName=n,this.rawData=s,this.name="SseParseError"}}const qE=3,XE=5*60*1e3,$E=2,ZE=(e,t)=>new EventSource(e,t),KE=e=>{const{url:t,eventNames:n,terminalEvents:s,onEvent:o,isValidEvent:r,onParseError:a,withCredentials:i=!1,maxReconnects:c=qE,timeoutMs:l=XE,signal:d,eventSourceFactory:_=ZE}=e;let u=null,E,T=0,O=!1,I,A;const D=new Promise((re,ee)=>{I=re,A=ee}),v=()=>{E!==void 0&&(clearTimeout(E),E=void 0),d==null||d.removeEventListener("abort",Q),u==null||u.close(),u=null},w=re=>{O||(O=!0,v(),re())},H=(re,ee)=>{w(()=>A(new g3(ee,re,t)))};function Q(){H("aborted","SSE stream aborted")}const se=re=>{a==null||a(re)},oe=re=>s.includes(re.event),Z=re=>{if(O)return;let ee;try{ee=JSON.parse(re.data)}catch(ce){se(new uc("SSE payload is not valid JSON",re.type,re.data,{cause:ce}));return}if(r&&!r(ee)){se(new uc("SSE payload failed validation",re.type,re.data));return}const Y=ee;o==null||o(Y),oe(Y)&&w(()=>I(Y))},F=()=>{T=0},U=()=>{if(!O){if((u==null?void 0:u.readyState)===$E){H("connection_failed","SSE connection closed before a terminal event arrived");return}T+=1,T>c&&H("reconnect_limit",`SSE stream gave up after ${c} reconnect attempts`)}},q=()=>{H("aborted","SSE stream closed by caller")};return d!=null&&d.aborted?(H("aborted","SSE stream aborted before it opened"),{result:D,close:q}):(d==null||d.addEventListener("abort",Q),E=setTimeout(()=>H("timeout",`SSE stream timed out after ${l}ms`),l),u=_(t,{withCredentials:i}),u.addEventListener("open",F),u.addEventListener("error",U),n.forEach(re=>{u==null||u.addEventListener(re,Z)}),{result:D,close:q})};
185class E3 extends Error{constructor(t,n){super(t),this.diagnostics=n,this.name="UploadS3Error"}}const JE=e=>{const t=n=>{var s;return(s=e.match(new RegExp(`<${n}>(.*?)</${n}>`)))==null?void 0:s[1]};return{s3ErrorCode:t("Code"),s3ArgumentName:t("ArgumentName"),s3ArgumentValue:t("ArgumentValue")}},Ss=e=>pt(e)&&e.cause instanceof E3,eh=e=>Ss(e)?e.cause.diagnostics:void 0,th=e=>Ss(e)&&e.isStatusCode(403)||pt(e)&&e.isStatusCode(400)&&e.message.includes("contentType is required"),nh=e=>Ss(e)&&e.isStatusCode(400)&&e.message.includes("EntityTooLarge"),sh=e=>Ss(e)&&e.isStatusCode(400)&&e.message.includes("EntityTooSmall"),oh=e=>pt(e)&&e.isStatusCode(400)&&e.message.includes("ExpiredToken"),rh=(e,t,n)=>R(f({},JE(n)),{isFileInstance:e instanceof File,sizeAtValidation:t,sizeAtPost:e.size,fileType:e.type,lastModified:e.lastModified}),ah=e=>P(void 0,null,function*(){const t=e.files.map(n=>P(void 0,null,function*(){const s=new FormData;[...Object.entries(n.fields),["Content-Type",n.contentType]].forEach(([a,i])=>{s.append(a,i)}),s.append("file",n.file);const r=yield _3(n.url,{method:"POST",body:s});if(!r.ok){const a=yield r.text(),i=rh(n.file,n.sizeAtValidation,a);throw new Ft(a,{cause:new E3(void 0,i),response:r})}}));yield Promise.all(t)}),Xr=e=>{const{key:t,dimensions:n,mimeType:s,colors:o,imageType:r,background:a}=e,i=za[s]||"";return{key:t,url:`/uploads/${encodeURIComponent(t)}`,extension:i,dimensions:n,mimeType:s,colors:o,imageType:r,backgroundColor:a}},h3=1e3,ih=e=>e!==null&&typeof e=="object"&&"name"in e&&e.name==="AnalysisFailedError"&&"errorCode"in e&&typeof e.errorCode=="string";class f3 extends Error{constructor(t){super(`Analysis failed during ${t.step}: ${t.errorCode}`),this.event=t,this.name="AnalysisStreamFailedError"}}const ch=e=>e instanceof f3,lh=e=>{if(ch(e)){const{errorCode:t,headline:n,alertMessage:s,helperText:o}=e.event;return{errorCode:t,errorMessaging:{headline:n,alertMessage:s,helperText:o}}}return!pt(e)||!e.isStatusCode(500)||!ih(e.cause)?null:{errorCode:e.cause.errorCode,errorMessaging:e.cause.errorMessaging}};class Aa extends Ft{constructor(t,n,s){super(t,{cause:new Error("AnalysisInProgress"),response:s}),this.data=n,this.name="AnalysisInProgressError"}}const Hi=e=>e instanceof Aa;class m3 extends Ft{constructor(t,n,s){super(t,{cause:new Error("CropAnalysisPending"),response:s}),this.data=n,this.name="CropAnalysisPendingError"}}const T3=e=>e instanceof m3;class S3 extends Ft{constructor(t,n,s){super(t,{cause:new Error("CropJobInProgress"),response:s}),this.data=n,this.name="CropJobInProgressError"}}const dh=e=>e instanceof S3,C3=e=>pt(e)&&e.isStatusCode(400)&&(e.message.includes("AnalysisNotStartedError")||e.message.includes("analysis not started")),I3=e=>pt(e)&&e.isStatusCode(404),uh=e=>{var t;return pt(e)&&e.isStatusCode(400)&&(e==null?void 0:e.cause)!==null&&typeof(e==null?void 0:e.cause)=="object"&&"name"in e.cause&&((t=e==null?void 0:e.cause)==null?void 0:t.name)==="BadRequestError"},_h=e=>pt(e)&&e.isStatusCode(500);class A3 extends Ft{constructor(t,n){super(t,{cause:new Error("AiGenerationInProgress"),response:n}),this.name="AiGenerationInProgressError"}}const ph=e=>e instanceof A3;class y3 extends Ft{constructor(t,n){super(t,{cause:new Error("EditImageInProgress"),response:n}),this.name="EditImageInProgressError"}}const Fw=e=>e instanceof y3;class O3 extends Ft{constructor(t,n){super(t,{cause:new Error("RemoveBackgroundInProgress"),response:n}),this.name="RemoveBackgroundInProgressError"}}const Vw=e=>e instanceof O3,ya=e=>pt(e)&&e.isStatusCode(422),gh=(e,t)=>{if(!pt(e)||!e.isStatusCode(400))return!1;const n=e.message.toLowerCase();return n.includes("prompt")&&(n.includes("too long")||n.includes("length")||n.includes("limit"))?!0:!!t&&t.length>h3&&n.length===0},Io=(e,t)=>ya(e)?{type:"content_moderation",title:"Unable to create image",promptText:t,message:"includes restricted content and canât be generated. Please revise and try again"}:gh(e,t)?{type:"prompt_too_long",title:"Prompt is too long",message:`Your prompt exceeds the ${h3} character limit. Please shorten it and try again.`}:{type:"system",title:"Something went wrong",message:`An unexpected system error occurred while processing your request. 186 187Please retry. If the issue persists, contact support.`},Eh="/uploads/v2/analysis-events/{key}",R3=["progress","complete","error"],hh=["complete","error"],fh=(e,t)=>`${e}${Eh.replace("{key}",encodeURIComponent(t))}`,mh=e=>e===null||typeof e!="object"||!("event"in e)?!1:R3.includes(e.event),Th=e=>e.event==="error",$r=202;class D3{constructor(t){this.client=t,this.getPresignedUrl=n=>Promise.all(n.map(s=>P(this,null,function*(){return(yield this.client.post("/uploads/v2/presigned-url",{body:s})).data}))),this.analyzeFiles=n=>P(this,null,function*(){return Promise.all(n.map(s=>P(this,null,function*(){const o=yield this.client._get("/uploads/v2/analysis/{key}",{params:{path:{key:s.key}}});if(o.response.status===202){const r=o.data;throw new Aa((r==null?void 0:r.message)||"Analysis is still in progress",r,o.response)}return Xr(o.data)})))}),this.uploadFilesToS3WithPresignedUrl=ah,this.streamAnalysis=r=>P(this,[r],function*({key:n,onProgress:s,signal:o}){const a=fh(co("NDX_IMAGE_UPLOADS_URL"),n);let i=!1;const{result:c}=KE({url:a,eventNames:R3,terminalEvents:hh,isValidEvent:mh,signal:o,onParseError:d=>
187{i||(i=!0,z.warning("Analysis event stream frame could not be parsed",d,{eventName:d.eventName,rawDataLength:d.rawData.length}))},onEvent:d=>{d.event==="progress"&&(s==null||s(d))}}),l=yield c;if(Th(l))throw new f3(l);return Xr(l.analysis)}),this.getUploadMetadata=n=>P(this,null,function*(){const s=yield this.client._get("/uploads/v2/analysis/{key}",{params:{path:{key:n}}});if(s.response.status===202){const o=s.data;throw new Aa((o==null?void 0:o.message)||"Analysis is still in progress",o,s.response)}return Xr(s.data)}),this.analyzeCropColors=n=>P(this,null,function*(){const a=n,{key:s}=a,o=ct(a,["key"]),r=yield this.client._get("/uploads/v2/analyze-crop/{key}",{params:{path:{key:s},query:o}});if(r.response.status===$r){const i=r.data,c=(i==null?void 0:i.message)||"Crop color analysis is still in progress";throw(i==null?void 0:i.name)==="AnalysisJobInProgressError"?new m3(c,i,r.response):new S3(c,i,r.response)}return r.data}),this.generateAiDesigns=n=>P(this,null,function*(){return this.client.post("/ai-designs/v2/generate-image",{body:n})}),this.getAiDesignStatusByGenerationId=n=>P(this,null,function*(){const s=yield this.client._get("/ai-designs/v2/generate-image/status/{generationId}",{params:{path:{generationId:n}}});if(s.response.status===202)throw new A3("AI design generation is still in progress",s.response);if(!s.data)throw new Error("Missing response data from AI design status endpoint");return{data:s.data,response:s.response}}),this.editImage=n=>P(this,null,function*(){return this.client.post("/ai-designs/v2/edit-image",{body:n})}),this.getEditImageStatus=n=>P(this,null,function*(){const s=yield this.client._get("/ai-designs/v2/edit-image/status/{generationId}",{params:{path:{generationId:n}}});if(s.response.status===$r)throw new y3("AI image edit is still in progress",s.response);const o=s.data;return o&&"key"in o?o:void 0}),this.removeBackground=n=>P(this,null,function*(){return this.client.post("/ai-designs/v2/remove-background",{body:n})}),this.getRemoveBackgroundStatus=n=>P(this,null,function*(){const s=yield this.client._get("/ai-designs/v2/remove-background/status/{generationId}",{params:{path:{generationId:n}}});if(s.response.status===$r)throw new O3("AI background removal is still in progress",s.response);const o=s.data;return o&&"key"in o?o:void 0})}}const Sh=()=>new D3(p3()),jt=()=>{const e=jE();return S.useMemo(()=>new D3(e),[e])},v3=120,P3=5e3,Ch=e=>new Promise(t=>setTimeout(t,e)),L3=e=>P(void 0,null,function*(){const t=Sh();for(let n=0;;n+=1)try{return yield t.getUploadMetadata(e)}catch(s){if(Hi(s)&&n<v3){yield Ch(P3);continue}throw s}});function N3({imageType:e,colors:t}){const n=b(t).reduce((s,o,r)=>s.push(new os({original:new Ke({hex:r}),palette:new Ke({hex:o})})),G());return e===He.MONOCHROME?n.groupBy(s=>s.palette).take(m4).valueSeq().flatten(!0).toList():n}function Ih({backgroundColor:e}){return e?new Ke({hex:e}):null}function Ah({dimensions:e}){const[t,n]=e?[e.width,e.height]:[null,null];return{originalImageWidth:t,originalImageHeight:n}}function yh({extension:e}){return{extension:e||null}}function w3(e){var r;const{url:t,key:n,singleColor:s,grayscale:o}=e;return R(f(f({colorMode:xi(e),spotColors:N3(e),backgroundColor:Ih(e)},Ah(e)),yh(e)),{singleColor:(r=s!=null?s:o)!=null?r:!1,key:n||null,url:t})}const Oh=30,b3=Oh*24*60*60*1e3,Rh=[on,Js,eo],Oa=(e,t)=>{const n=w3(e),s=new Date(Date.now()+b3).getTime();return R(f({},n),{viewId:t,iconId:ye(),extension:za[e.mimeType]||"",expirationDate:s})},kw=(e,t)=>{const n=new Date(Date.now()+b3).getTime();return R(f({},w3({key:e,url:`/uploads/${encodeURIComponent(e)}`})),{viewId:t,iconId:ye(),extension:"",expirationDate:n})},Ao=(e,t,n)=>{var c;const{colorMode:s,spotColors:o,extension:r}=e,a=o==null?void 0:o.size,i=(c=e.spotColors)==null?void 0:c.size;a&&p.setDimension("uploadColorCount",a),i&&p.setDimension("uploadGamutColorCount",i),s&&p.setDimension("uploadColorType",s),p.pageViewTag(`ndx/upload/success/image/${r}`),$({event:"lab_upload_success",upload_image_type:n,upload_color_count:a,upload_color_type:s,upload_type:t}),t==="library"&&$({event:"lab_upload_library",upload_image_type:n,upload_color_count:a,upload_color_type:s})},Dh=e=>{$({event:"lab_upload_add",upload_type:e}),p.pageViewTag("ndx/upload/progress"),$({event:"lab_upload_progress",upload_type:e})},vh={[Js]:"IMAGE_TOO_LARGE",[eo]:"FILE_EMPTY",[an]:"UNSUPPORTED_FORMAT"},Ph=e=>Hi(e)||C3(e)?"ANALYSIS_TIMEOUT":Ss(e)?"S3_UPLOAD_FAILED":I3(e)?"FILE_NOT_FOUND":pt(e)&&(e.isStatusCode(502)||e.isStatusCode(503)||e.isStatusCode(504))?"GATEWAY_ERROR":u3(e)?"NETWORK_E
187RROR":null,Lh=(e,t,n)=>{var s,o;return t!=null&&t.errorCode?{errorCode:t.errorCode,codeSource:"server"}:{errorCode:(o=(s=vh[n])!=null?s:Ph(e))!=null?o:"PIPELINE_UNKNOWN",codeSource:"client"}},Nh=(e,t,n,s)=>{$({event:"lab_upload_failure",failure_message:e,message:t,code_source:s,upload_type:n}),p.pageViewTag("ndx/upload/failure")},wh=[["/uploads/v2/presigned-url","presign"],["/uploads/v2/analysis/","analysis"],["/uploads/v2/analysis-events/","analysis"],["/uploads/v2/analyze-crop/","analysis"]],bh=".amazonaws.com",_c=e=>{if(!e)return;let t;try{t=new URL(e,window.location.origin)}catch(s){return"other"}if(t.hostname.endsWith(bh))return"s3";const n=wh.find(([s])=>t.pathname.startsWith(s));return n?n[1]:"other"},Mh=e=>{var t;if(Ss(e))return"s3";if(u3(e))return _c(e.requestUrl);if(pt(e))return _c((t=e.response)==null?void 0:t.url)},Uh=(e,t,n)=>{var c;const s=eh(e),o=["upload_failed",t,n];t==="S3_UPLOAD_FAILED"&&(s!=null&&s.s3ErrorCode)&&o.push(s.s3ErrorCode);const r=e==null?void 0:e.cause,a=r instanceof Error?r:void 0,i=typeof navigator=="undefined"?void 0:navigator;return f({errorCode:t,codeSource:n,fingerprint:o.join(":"),title:`Upload failed: ${o.slice(1).join(" / ")}`,stage:Mh(e),causeName:a==null?void 0:a.name,causeMessage:a==null?void 0:a.message,online:i==null?void 0:i.onLine,connectionType:(c=i==null?void 0:i.connection)==null?void 0:c.effectiveType},s)},xh=e=>oh(e)?on:nh(e)?Js:sh(e)?eo:th(e)?an:C3(e)||I3(e)||_h(e)?on:uh(e)?an:on,Hw=n=>{var s=n,{selected:e}=s,t=ct(s,["selected"]);return(o,r)=>{if(e!==void 0){const a=r(),i=Ks(a),c=(e==null?void 0:e.selectedUser)||(e==null?void 0:e.user)||(e==null?void 0:e.palette)||(e==null?void 0:e.original);if(i!=null&&i[c==null?void 0:c.hexString])return o(ut({key:Ar,attemptedColorChange:{colorChange:t,hexString:c.hexString}}))}o({type:ae.CHANGE_SPOT_COLOR,payload:t})}},pc=e=>(t,n)=>{const s=n(),o=Xe(s),r=ye(),a=At(s),i=Bn(s,{viewIdentifier:a}),c=X1(s).size===0,l=Zs(s)(i),d=Wt(s),_=O0(s),u=_===ir.APPAREL&&!["front","back"].includes(i.name);e.forEach(T=>{let O;if(u){const v=Math.max(T.originalImageWidth,T.originalImageHeight),w=W.UPLOAD.DEFAULTS.ICON_SIZE_INCHES/v,H=T.originalImageWidth*w,Q=T.originalImageHeight*w;O=R(f({},rl(l)),{width:H,height:Q})}else{const v=al(l,T,_,c);O=f({},v)}const I=f(f({},T),O),A=zn(s);(A||Yt(s))&&s0({iconType:W.TYPES.upload,iconData:I,decorationOverrideColor:A||ms(s)}),I.spotColors&&(I.hasColorBelowThreshold=I.spotColors.some(v=>F5(s)>A4(v.palette.hexString,d.hexString)),I.hasColorBelowThreshold&&t(O_()));const D=K5(s);t({type:ae.UPLOAD_COMPLETE,payload:{designId:o,iconId:T.iconId,icon:I,layerPosition:D,productColor:d,recentUploadCopyId:r}})});const E=e[e.length-1];t(Uo({iconId:E.iconId}))},Gw=h(ae.REMOVE_SPOT_COLOR),Bw=({iconId:e,color:t})=>n=>{const s=ws(t);n({type:ae.ADD_SPOT_COLOR,payload:{iconId:e,spotColor:s}})},gc=h(ae.UPLOAD_FAILED),zw=h(ae.UPDATE_COLOR_MODE),Ww=h(ae.RESET_UPLOAD),M3=h(ae.SWAP_UPLOAD_IMAGE);function U3(e,t){const n=parseInt(t.map(s=>s.styleId)[0],10);return Fh(e,n)}function Fh(e,t){return!!e.find(n=>n===t)}function Vh(e,t,n,s){return e&&!t&&U3(n,s)}const kh="ciCartUpdated",Ec="USER_AUTHENTICATED",Hh=Va({baseUrl:K.projects,credentials:"include",headers:{"client-name":"ndx"}}),Gh=new ki(Hh);function Bh(e){return P(this,null,function*(){return Gh.post("/projects/{projectId}/designs",{params:{path:{projectId:"current"}},body:{designCids:e}})})}const Ds="ndx_feature_flag_overrides";function zh(){return{}}const Wh=S.createContext(null),Yh=({children:e})=>{const[t,n]=S.useState(()=>{const i=Ae.get(Ds)||{},c=zh();if(Object.keys(c).length>0){const l=f(f({},i),c);return Ae.set(Ds,l),l}return i}),s=S.useCallback((i,c)=>{n(l=>{const d=R(f({},l),{[i]:c});return Ae.set(Ds,d),d})},[]),o=S.useCallback(i=>{n(c=>{const _=c,{[i]:l}=_,d=ct(_,[go(i)]);return Ae.set(Ds,d),d})},[]),r=S.useCallback(()=>{n({}),Ae.remove(Ds)},[]),a=S.useCallback(i=>i in t,[t]);return C.jsx(Wh.Provider,{value:{overrides:t,setOverride:s,clearOverride:o,clearAllOverrides:r,hasOverride:a},children:e})};let Ra=null;function jh(e){Ra=e}function hc(e){return P(this,null,function*(){return Ra?Ra.flagVariation(e):(z.warning("getFlagVariation: Signalmizely not yet initialized",{flag:e}),null)})}const Yw="ndx_simple_pricing",Qh="sitewide_auth0_rollout",jw="desx-290-expose_min_qty_and_color_count_limitations",qh="ndx_upload_crop_reanalyze_colors",Qw="reco_exp_lab_add_product_algo_driven",qw="reco-858_ndx_add_product_color_swatch_ab",Xw="pur_combined_quantity_quote_page_v6",$w="pur_resequence_size_and_zip_code",Zw="desx-553_ndx_favourite_products",Kw="desx-661_ndx_change_save_to_sharing_on_post_save_panel",x3="desx-572_ndx_photo_quality_embroidery_swap",Jw="desx-786_ndx_ai_remove_background",eb="pur_complement_pricing",fc="desx-670_ndx_upload_error_messaging",tb="desx-780_ndx_canvas_toolbar",nb="desx-798_ndx_color_wheel",sb="desx-785_ndx_ai_edit_image",Xh="desx-1102_progressive_editing_in_ai_design_generator",$h="desx-1055_ndx_ai_edit_image",ob="desx-826_ndx_allow_share_from_my_designs",rb="desx-824_ndx_multi_product_subtlety_check",ab="desx-805_ndx_product_details_toolbar_placement",mc="pur_lab_mini_cart",ib="desx-892_ndx_expanded_design_name_chars",Zh="pur_cart_ndx_cart_confirmation",F3="pur-1527_ndx_project_service_cart_hooks",Kh="desx-655_ndx_upload_progress_indicator",Jh={recentlyAddedAnchorStyleId:null,recentlyAddedItems:[],recentlyAddedItemsSource:null,recentProjectItemIds:[]},cb=()=>(e,t)=>P(void 0,null,function*(){var l,d;const n=t(),s=gi(n),o=hr(n),r=x6(n),a=Re(n),i=A1(s);if(!i)throw new Error("Cannot add to cart: compositeId is null");let c;try{const[{data:_},u,E]=yield Promise.all([Bh([i]),Promise.resolve(hc(Zh)).catch(()=>null),Promise.resolve(hc(F3)).catch(()=>null)]),T=(l=_==null?void 0:_.coreOrder)==null?void 0:l.token;T&&J4(T);const O=((d=_==null?void 0:_.items)!=null?d:[]).filter(v=>{var w;return((w=v.design)==null?void 0:w.cid)===i}),I=O.map(v=>
187v.id).filter(Boolean);e(nf(I)),(u==="test"||u==="control")&&$({event:"ab_test_group",ab_test_name:"2026 06 15 pur-1499 cart confirmation",ab_test_location:"lab",ab_test_group:u}),(u!=="test"||E!=="test")&&(c=e(Mi.getCart.initiate(void 0,{forceRefetch:!0})));let A;const D=u==="test"?"project-service":"rfe";if(u==="test")A=O.map(v=>{var H,Q,se,oe,Z,F;const w=o.find(U=>{var q;return parseInt(U.get("colorId"),10)===((q=v.product)==null?void 0:q.colorId)});return{colorId:(Q=(H=v.product)==null?void 0:H.colorId)!=null?Q:w==null?void 0:w.get("colorId"),styleId:(Z=(oe=(se=v.product)==null?void 0:se.styleId)!=null?oe:w==null?void 0:w.get("styleId"))==null?void 0:Z.toString(),categoryPath:r,visible:w==null?void 0:w.visible,quoteQuantities:Object.fromEntries(((F=v.sizesQuantities)!=null?F:[]).filter(({size:U})=>U!==void 0).map(({size:U,quantity:q})=>[U,q]))}});else{const{data:v,error:w}=yield c;if(w)throw w;A=Object.values(v.items).filter(H=>H.designCompositeId===i).map(H=>{const Q=o.find(se=>parseInt(se.get("colorId"),10)===H.colorId);return R(f({},H),{styleId:Q==null?void 0:Q.get("styleId"),categoryPath:r,visible:Q==null?void 0:Q.visible})})}e(ef({items:A,source:D})),e(C_({recentlyAddedItems:A})),A.length&&e(tf(a)),window.dispatchEvent(new window.Event(kh))}finally{c==null||c.unsubscribe()}}),lb=(e=[])=>(t,n)=>P(void 0,null,function*(){const s=n(),o=e.filter(r=>!Ne(s,{styleId:r}));yield t(xn(o)),t(Gl(e))}),V3=Fn({name:"cart",initialState:Jh,reducers:{setCartRecentlyAddedItems:(e,t)=>{e.recentlyAddedItems=t.payload.items,e.recentlyAddedItemsSource=t.payload.source},setCartRecentlyAddedAnchorStyleId:(e,t)=>{e.recentlyAddedAnchorStyleId=t.payload},setRecentProjectItemIds:(e,t)=>{e.recentProjectItemIds=t.payload}}}),{setCartRecentlyAddedItems:ef,setCartRecentlyAddedAnchorStyleId:tf,setRecentProjectItemIds:nf}=V3.actions,sf=V3.reducer,Cs=e=>e.cart.recentlyAddedItems,db=e=>e.cart.recentProjectItemIds,ub=e=>e.cart.recentlyAddedItemsSource,of=e=>e.cart.recentlyAddedAnchorStyleId,rf=_s([Cs,ql],(e,t)=>{const n=e.map(s=>s.id);return t.filter(s=>!n.includes(s.id))}),af=_s([Cs],e=>e.map(t=>{var n;return{colorId:(n=t.colorId)==null?void 0:n.toString(),styleId:t.styleId,categoryPath:t.categoryPath,quoteQuantities:t.quoteQuantities}})),_b=_s([Cs],e=>e.filter(t=>t.visible!==!1)),cf=_s([Cs],e=>e.filter(t=>t.visible===!1)),pb=_s([rf,cf],(e,t)=>e.concat(t)),gb=h(k.CLEAR_DESIGN_DATA),Ko=h(k.SAVE_FAILED),lf=h(k.SAVE_SUCCESS);function Eb(e=!0){return(t,n)=>{var E;const s=n(),o=R0(s),r=Cs(s),a=af(s),i=Xe(s),c=we(s),l=of(s);let d=Vh(Ts(s),ei(s),o,r);const _=(E=a[0])==null?void 0:E.styleId;d&&!Ne(s,{styleId:_})&&(z.error("Combine designs skipped: the carted product style is not loaded",{styleId:_}),d=!1);const u=Y6(s)(a.map(T=>T.colorId));if(d)if(u)t(Hl({metricsEnabled:!1,products:a,urlPath:"/next/quote",isMerging:!0}));else return;t({type:k.SET_COMBINE_DESIGNS,payload:{isCombined:d,designId:i,currentColorId:c,previousQuoteQuantities:a,combinedAnchorStyleId:l,shouldInitQuantities:e}})}}function hb(){return(e,t)=>P(this,null,function*(){const n=t(),o=Ve(n).reduce((c,l)=>{const d=l.set("id",ye());return c.set(d.id,d)},Mn()),a=Vn(n).merge({compositeId:null,name:"",id:ye(),iconIds:G(Object.keys(o.toJS()))});e({type:k.DUPLICATE_DESIGN,payload:{design:a,icons:o}});const i=a.get("id");return e({type:Te.SHOW_DESIGN,payload:{designId:i}})})}function df(e,t){return P(this,null,function*(){const n=kn(t()).filter(s=>{var o;return st(s)&&((o=s.get("key"))==null?void 0:o.startsWith(C4))&&!s.get("colorMode")});n.length!==0&&(yield Promise.all(n.map(s=>P(this,null,function*(){try{const o=yield L3(s.get("key")),r=Oa(o,s.get("viewId"));e(M3({iconId:s.get("id"),icon:r}))}catch(o){z.error("AI-edited upload analysis before save failed",{error:o,key:s.get("key")})}}))))})}function fb(e){return(t,n)=>P(this,null,function*(){yield df(t,n);const s=Vn(n()),o=f({designId:s.get("id")},e);return k3(t,n,o)})}function mb(){return(e,t)=>P(this,null,function*(){const n=t(),s=Vn(n),o={afterSavePath:"/",assistedDesignName:"",designId:s.get("id"),designName:s.get("name"),email:Kg(n),sendEmail:!1,updating:!0,verify:null,deviceType:yE()};return k3(e,t,o)})}function k3(e,t,n){return P(this,null,function*(){const{afterSavePath:s,designName:o,email:r,sendEmail:a,updating:i,verify:c,deviceType:l,addAnchorOnly:d=!1}=n,_=t(),u=Vn(_),E="compositeId"in n,T=E?n.compositeId:A1(u.get("
187compositeId"));if(i&&!T&&!E){const w=new Error("Cannot update design: compositeId is null");return e(Ko({designName:o,path:s,error:{errors:{base:["server_error"]}}})),Promise.reject(w)}e({type:k.SAVE});const O=qp(_,o,r,c,a,l,d),I={api_version:bn.designs.version},A=T?"put":"post",D=`${K.designs}/api/designs/${T!=null?T:""}`,v=Mt(D,I);return window.fetch(v,{method:A,credentials:"same-origin",headers:f({Accept:"application/json","Content-Type":"application/json","X-Requested-With":"XMLHttpRequest"},no),body:O}).then(w=>uf(e,_,n,w,O)).catch(w=>(z.critical("Save Failure!",w,{saveData:O}),e(Ko({designName:o,path:s,error:{errors:{base:["server_error"]}}}))))})}function uf(e,t,n,s,o){const{afterSavePath:r,assistedDesignName:a,designId:i,designName:c,email:l,sendEmail:d}=n;return s.ok?s.json().then(_=>P(this,null,function*(){if(_.success){O1(_.design.composite_id);const u=we(t),E=kn(t),O=E.filter(I=>st(I)).some(I=>I.get("url").startsWith("/uploads/temp"));if(_.design.views){const I=_.design.views.flatMap(Z=>Z.icons),A=Zl(I),D={},v=A.keySeq().toArray();let w=0;I.forEach(Z=>{const F=v[w];F&&A.get(F).type===Z.type&&(D[F]=Object.keys(Z),w+=1)});const H=A.map(Z=>{const F=Z.get("crop");return F&&!b.isMap(F)?Z.set("crop",b(F)):Z}),{icons:Q,idByFreshId:se}=IE(H,E),oe=Object.fromEntries(Object.entries(D).map(([Z,F])=>{var U;return[(U=se.get(Z))!=null?U:Z,F]}));e({type:k.RELOAD_ICONS_FROM_SAVE,payload:{designId:i,icons:Q,iconIds:Q.map(Z=>Z.get("id")).toList(),serverFields:oe}}),e3({views:_.design.views})&&e(B3())}else O&&(yield e(H3({designId:_.design.designid,cid:_.design.composite_id,email:l,designName:c})));return e(lf({assistedDesignName:a,categoryName:pf(t),colorId:u,designId:i,designName:c,email:l,emailSent:d,firstTimeSaving:_.design.first_time_saving,hasArtIcon:$1(t),path:r,productColor:gf(t),response:_,savedDesignID:_.design.designid,swapClipartId:_f(t)}))}else return e(Ko({designId:i,designName:c,email:l,path:r,error:_}))})):s.text().then(_=>{const u=tE(_);return(!u||s.status>=500)&&z.critical("Save Failure! Server rejected save",{saveData:o,status:s.status,statusText:s.statusText,contentType:s.headers.get("content-type"),bodyLength:_.length,bodySnippet:_.slice(0,Pi)}),e(Ko({designId:i,designName:c,email:l,path:r,error:R(f({},u!=null?u:eE()),{status:s.status})}))})}function _f(e){const n=kn(e).find(s=>St(s)&&s.swappable===!0);return n?n.clipartId:""}function pf(e){const t=Re(e),n=Ne(e,{styleId:t});return n&&n.primary_category_name}function gf(e){const t=Wt(e);return t&&t.name}const Ef=h(k.FETCH_SUCCESS,e=>e);function hf(e){return z.warning("External Service Failure: Fetch Design",e),{type:k.FETCH_FAILED,payload:e,error:!0}}function H3({designId:e=ye(),cid:t,email:n,designName:s,autoload:o=!0,autoSelectProduct:r=!0,noUrlOverride:a=!1,replaceCurrentDesign:i=!0}){return(c,l)=>P(this,null,function*(){c({type:k.FETCH,payload:{designId:e,showLoadingState:i}});const d=l();let _,u;try{const A=t||`${encodeURIComponent(n)}/${encodeURIComponent(s)}`,D=yield G3(A);if(!D.ok)throw D;_=yield D.json(),u=Number(D.headers.get("api-version"))===bn.designs.version,Tf(_)&&c(Ln(!0)),c(q2(u?Sf(_):!1))}catch(A){c(hf(R(f({},A),{designId:e})));return}e3(_)&&c(B3()),o&&c({type:Te.SHOW_DESIGN,payload:{designId:e}});const E=TE(R(f({},_),{id:e,apiVersion:u?bn.designs.version:bn.designs.legacyVersion}));E.icons=yield ff(E.icons);const T=Y7(d).map(A=>A.id),I=Ua(E.products.map(A=>A.styleId)).filter(A=>T.indexOf(A)<0);if(I.length>0&&c(xn(I)),r&&c(Vg(E)),E.icons.size>0){const A=[];E.icons.forEach(D=>{if(Fe(D)&&D.fontName&&D.font)try{const v=new Ir({displayName:D.fontName,name:D.font});A.push(v)}catch(v){z.warning("Failed to create Font object for icon:",D,v)}}),A.length>0&&c({type:Le.LOAD_FONT_SEARCH_HISTORY,payload:A})}E.changeProductQuantities=r,E.icons=yield kE(E.icons),i||(E.design=E.design.delete("name").delete("compositeId"),delete E.compositeId),c(Ef(E)),c(P_(E.updatedAt)),E.icons.forEach(A=>P(this,null,function*(){Fe(A)?c(B9(A)):st(A)&&A.crop&&c(Oi(A,A.crop,!1,!1))}))})}function Tb(e,t){return P(this,null,function*(){const n=yield G3(`${encodeURIComponent(e)}/${encodeURIComponent(t)}`,{convert_colors:!1,translate_uploads:!1});if(n.status===404)return{found:!1};if(!n.ok)throw new Error(`checkExistingDesignByName: unexpected response status ${n.status}`);const s=yield n.text(),o=sE(s);if(!o)throw new Error(`checkExistingDesignByName: unexpected response body: ${s.slice(0,Pi)}`);
187return{found:!0,compositeId:o.compositeId,canUpdate:o.canUpdate}})}function ff(e){return P(this,null,function*(){const t=Object.values(e.toJS()).filter(n=>St(n)).map(n=>P(this,null,function*(){try{const s=yield mf(n.clipartId);e=e.setIn([n.id,"clipartVersions"],s)}catch(s){z.error("Unable to load clipart versions",s,{clipartId:n.clipartId,failure:Gp(s)?"http":"network"})}}));return yield Promise.all(t),e})}function mf(e){return P(this,null,function*(){const t=`${K.clipart}/versions/${e}`,n=yield window.fetch(t);if(n.status===404)return{};const s=yield Ca(n,Rl,"clipart versions");return s.dropped>0&&z.warning("Dropped clipart versions the client cannot read",{clipartId:e,dropped:s.dropped,kept:s.versions.length}),s.versions.reduce(Xl,{})})}function G3(n){return P(this,arguments,function*(e,t={}){const s=bn.designs.version,o=f(f({convert_colors:!0,translate_uploads:!0,api_version:s,show_hidden:!1},cp),t),r=Mt(`${K.designs}/api/designs/${e}`,o);return window.fetch(r,{headers:no})})}function B3(){return{type:k.INVALID_UPLOAD}}function Sb(e){return t=>{t({type:k.SHARE_SUCCESS,payload:{success:e}})}}function Cb(e){return t=>{t({type:k.SHARE_FAILURE,payload:{message:e}})}}function Ib(e){return t=>{t({type:k.SHARE_ERROR,payload:{message:e}})}}function Tf(e){return e.views.filter(n=>[4,5].includes(n.viewId)).some(n=>n.icons.length>0)}function Sf(e){let t=!1;return e.views.some(n=>{if(n.icons.some(s=>{St(s)&&s.colors.some(o=>{if(o.user.transparent&&_1(o.original)||ba(o.original,o.user)||(t=!0),t)return!0})}),t)return!0}),t}const Cf=e=>(t,n)=>{const s=n(),o=Xe(s);t({type:k.UPDATE_INK_MATCHES,payload:{designId:o,inkMatches:e}})},Ab=e=>(t,n)=>{const s=n(),o=Xe(s);t({type:k.REMOVE_INK_MATCH,payload:{designId:o,hexString:e}})},yb=()=>(e,t)=>{const n=t(),s=Xe(n);e({type:k.RESET_INK_MATCHES,payload:{designId:s}})},If=()=>Zd({allStylesLoaded:D0,didSelectedStyleLoadError:I0,welcomeStage:d1,fetchingDesign:w0,selectedStyles:mr,selectedProduct:Ye,anchorStyle:De,anchorStyleId:Re,currentColorId:we,currentProduct:qe,hasPhotoQualityUpload:Q1,isAnchorDebossed:G6,isAnchorEmbossed:B6,isAnchorLaserEngraved:Yt,isDirty:Ts,isAnchorEmbroidered:ii,isStreamlinedMobileMode:k7,streamlinedMobileIntent:H7}),Af=e=>R(f({},d2({deselectAllIcons:Di,dismiss:Il,enableSleeveNav:W9,getCart:Mi.getCart.initiate,getCategoryPathForStyleId:qg,loadCartCookie:L_,loadDesign:H3,loadFontAutofillData:n9,loadStyles:xn,loadStyleVariants:j_,onWillMount:q8,prompt:Al,replaceProductsCartMode:Bg,setCartMode:v_,setLabBlankLoad:z9,setOrderOptionsPath:H8,setPreferSingles:j8,setStreamlinedMobileIntent:w_,setStreamlinedMobileMode:N_,swapProduct:Wl,updateStylesCategoryPaths:Gl,updateInternalUser:Q8,updateSleevePrintOverride:Ii,updateProductQuantities:yg,validateActiveProducts:Yg},e)),{meta:d2({fundraisingCampaignClosedPageview:m_,fundraisingNavigationPageview:f_,loadWithoutDesign:T_,ndxStart:S_,welcome:R_,welcomeBack:D_},e)}),yf="signalmizelyEndUserId";function Gi(){return dt.get(yf)||void 0}const Is=(e,t={})=>Kd(e,t),Ps=(e,t={})=>{const{variation:n,isLoading:s}=Is(e,t);return S.useMemo(()=>s?void 0:n==="test",[n,s])},Of=e=>e.notification.get("notification"),z3=S.createContext(void 0);function Rf({children:e}){const t=un(),n=it(Of),s=S.useCallback(()=>{t(Il())},[t]),o=S.useCallback(c=>{t(ut(c))},[t]),r=S.useCallback(c=>{t(ep(c))},[t]),a=S.useCallback(c=>{t(Al(c))},[t]),i=S.useMemo(()=>({notification:n,dismiss:s,showError:o,showSuccess:r,showPrompt:a}),[JSON.stringify(n),s,o,r,a]);return C.jsx(z3.Provider,{value:i,children:e})}function Df(){const e=S.useContext(z3);if(!e)throw new Error("useNotifications must be used within NotificationProvider");return e}const W3=new Set([ke.SCREEN,ke.TRANSFER,ke.DIGITAL_PRINT,ke.DYE,ke.UV,ke.PAD_PRINT]),Ob=(e,t)=>{var s,o;return(s=e==null?void 0:e.variants)!=null&&s.length&&(o=ti(e).find(r=>r.decoration_method===t))!=null?o:null},Rb=e=>W3.has(e),Y3=e=>{var n,s;return(n=e==null?void 0:e.variants)!=null&&n.length&&(s=ti(e).find(o=>W3.has(o.decoration_method)))!=null?s:null},vf=e=>e.has_image===!0&&typeof e.key=="string"&&typeof e.configurationId=="string",j3=e=>{if(e===void 0)return!0;
187if(!e||typeof e!="object")return!1;const{type:t,title:n,message:s}=e;return[t,n,s].every(o=>typeof o=="string")},Pf={threads:{},index:{}},Lf=e=>{if(!e||typeof e!="object")return!1;const{id:t,userPrompt:n,imageKey:s,downloadUrl:o,jobId:r,transparentBackground:a,error:i}=e;return typeof t=="string"&&typeof n=="string"&&(s===void 0||typeof s=="string")&&(o===void 0||typeof o=="string")&&(r===void 0||typeof r=="string")&&(a===void 0||typeof a=="boolean")&&j3(i)},Nf=e=>{if(!e||typeof e!="object")return null;const{id:t,sourceKey:n,messages:s}=e;return typeof t!="string"||typeof n!="string"||!Array.isArray(s)?null:{id:t,sourceKey:n,messages:s.filter(Lf)}},wf=e=>{if(!e||typeof e!="object")return Pf;const{threads:t,index:n}=e,s={};if(t&&typeof t=="object")for(const[r,a]of Object.entries(t)){const i=Nf(a);i&&i.id===r&&(s[r]=i)}const o={};if(n&&typeof n=="object")for(const[r,a]of Object.entries(n))typeof a=="string"&&s[a]&&(o[r]=a);return{threads:s,index:o}},Bi=(e,t)=>{const n=e.index[t];return n?e.threads[n]:void 0},bf=(e,t,n,s)=>{const o=Bi(e,t),r=o!=null?o:{id:ye(),sourceKey:n,messages:[]};return{threads:R(f({},e.threads),{[r.id]:R(f({},r),{messages:[...r.messages,f({id:ye()},s)]})}),index:R(f({},e.index),{[t]:r.id})}},Mf=(e,t,n,s)=>{const o=Bi(e,t);return o?R(f({},e),{threads:R(f({},e.threads),{[o.id]:R(f({},o),{messages:o.messages.map(r=>r.id===n?R(f({},r),{downloadUrl:s}):r)})})}):e},Uf=(e,t,n)=>e.threads[n]?R(f({},e),{index:R(f({},e.index),{[t]:n})}):e,Q3=S.createContext(null),xf=({children:e})=>{const[t,n]=S.useState(()=>wf(Z_())),s=S.useRef(!0);S.useEffect(()=>{if(s.current){s.current=!1;return}K_(t)},[t]);const o=S.useCallback(l=>Bi(t,l),[t]),r=S.useCallback((l,d,_)=>{n(u=>bf(u,l,d,_))},[]),a=S.useCallback((l,d,_)=>{n(u=>Mf(u,l,d,_))},[]),i=S.useCallback((l,d)=>{n(_=>Uf(_,l,d))},[]),c=S.useMemo(()=>({getThread:o,appendTurn:r,updateMessageDownloadUrl:a,aliasThread:i}),[o,r,a,i]);return C.jsx(Q3.Provider,{value:c,children:e})},Ff=()=>{const e=S.useContext(Q3);if(!e)throw new Error("useRefine must be used within RefineProvider");return e},Db=e=>`ai:${e}`,Vf=e=>`icon:${e}`,kf=void 0,vb=(e,t=kf)=>t!==void 0&&e>=t,Hf="replace",Pb=(e,t=Hf)=>t==="replace"&&e?"replace":"add",Gf="artwork",Bf=(e=Gf)=>e==="artwork",zf="2026 09 16 ai-progressive-editing",Wf="2026 09 16 ai-edit-image",Yf=e=>{var r,a;const[t,n]=S.useState(null),s=S.useCallback(()=>n(null),[]),o=S.useMemo(()=>{if(e)return i=>{n(c=>c&&c.percentage>i.percentage?c:i)}},[e]);return{percentage:(r=t==null?void 0:t.percentage)!=null?r:null,message:(a=t==null?void 0:t.message)!=null?a:null,reset:s,handleProgress:o}},jf=500,Lb=300,Qf=900,qf=30,Xf=5e3,$f=(r,a)=>P(void 0,[r,a],function*(e,{files:t,onProgress:n,onTransportFallback:s,signal:o}){const i=new AbortController,c=()=>i.abort();o!=null&&o.aborted?i.abort():o==null||o.addEventListener("abort",c,{once:!0});try{try{return yield Promise.all(t.map(({key:l})=>e.streamAnalysis({key:l,onProgress:n,signal:i.signal})))}catch(l){if(i.abort(),!QE(l)||l.reason==="aborted")throw l;return s==null||s(l),yield Promise.all(t.map(({key:d})=>L3(d)))}}finally{o==null||o.removeEventListener("abort",c)}}),q3={retry:(e,t)=>Hi(t)&&e<v3,retryDelay:()=>P3},Zf=()=>{const e=jt();return nt({mutationKey:["presigned-url"],mutationFn:e.getPresignedUrl})},Kf=()=>{const e=jt();return nt(f({mutationKey:["analyze-file"],mutationFn:e.analyzeFiles},q3))},Jf=()=>{const e=jt(),t=S.useRef(new Set);return S.useEffect(()=>{const n=t.current;return()=>{n.forEach(s=>s.abort()),n.clear()}},[]),nt({mutationKey:["analyze-files-via-stream"],mutationFn:n=>P(void 0,null,function*(){const s=new AbortController;t.current.add(s);try{return yield $f(e,R(f({},n),{signal:s.signal}))}finally{t.current.delete(s)}})})},em=()=>{const e=jt();return nt({mutationKey:["upload-files-to-s3-with-presigned-url"],mutationFn:e.uploadFilesToS3WithPresignedUrl})},tm=()=>{const e=jt();return nt({mutationKey:["analyze-crop-colors"],mutationFn:e.analyzeCropColors,retry:(t,n)=>T3(n)?t<qf:!1,retryDelay:()=>Xf})},nm=()=>{const e=jt();return nt(f({mutationKey:["upload-metadata"],mutationFn:e.getUploadMetadata},q3))}
187,sm=["","application/octet-stream"],Tc={".JPG":"image/jpeg",".JPEG":"image/jpeg",".JFIF":"image/jpeg",".PNG":"image/png",".PDF":"application/pdf",".AI":"application/postscript",".EPS":"application/postscript",".GIF":"image/gif",".BMP":"image/bmp",".PSD":"image/vnd.adobe.photoshop",".WEBP":"image/webp",".TIF":"image/tiff",".TIFF":"image/tiff",".AVIF":"image/avif",".HEIC":"image/heic",".HEIF":"image/heif",".SVG":"image/svg+xml"},Sc={"application/x-photoshop":"image/vnd.adobe.photoshop","image/x-photoshop":"image/vnd.adobe.photoshop","image/photoshop":"image/vnd.adobe.photoshop","application/photoshop":"image/vnd.adobe.photoshop","application/psd":"image/vnd.adobe.photoshop","image/psd":"image/vnd.adobe.photoshop"},om=e=>{if(!e||!e.name)return{ok:!1,error:{type:an,code:"INVALID_FILE",details:{reason:"missing-file"}}};const t=`.${I4(e.name.toUpperCase())}`;if(e.size===0)return{ok:!1,error:{type:eo,code:"FILE_EMPTY",details:{extension:t}}};const n=e.type in Sc?Sc[e.type]:sm.includes(e.type)&&t in Tc?Tc[t]:e.type;if(!n||!(n in za)){const s=g4.includes(e.type)?"image":E4.includes(e.type)?"video":"other";return{ok:!1,error:{type:an,code:"UNSUPPORTED_CONTENT_TYPE",details:{formatType:s,contentType:e.type||"unknown",extension:t}}}}return p4.includes(t)?e.size>f4?{ok:!1,error:{type:Js,code:"FILE_TOO_LARGE"}}:{ok:!0,file:e,contentType:n}:{ok:!1,error:{type:an,code:"UNSUPPORTED_EXTENSION",details:{extension:t}}}},Cc="photoQualityEmbroideryTestGroupTracked",rm=e=>{!e||Ae.get(Cc)||($({event:"ab_test_group",ab_test_name:"2026 04 23 photo quality embroidery swap",ab_test_location:"lab",ab_test_group:e}),Ae.set(Cc,!0))},X3=()=>{$({event:"lab_photo_quality_detection",decoration_method:"embroidery"})},Nb=e=>{$({event:"lab_photo_quality_detection_click",decoration_method:"embroidery",interaction_action:e})},$3=({alert:e,children:t})=>C.jsxs(C.Fragment,{children:[C.jsx(Jd,{severity:"error",sx:{mt:"8px",mb:"16px"},children:e}),C.jsx(Bt,{variant:"paragraphDefault",children:t})]}),am=({open:e,onClose:t})=>(S.useEffect(()=>{var n;(n=window.setChatElements)==null||n.call(window)},[]),C.jsxs(t1,{open:e,title:"Unsupported File Type",onClose:t,width:"sm","data-testid":"unsupported-upload-dialog",children:[C.jsx(n1,{sx:{textAlign:"center"},children:C.jsxs($3,{alert:C.jsx(Bt,{variant:"paragraphSmall",children:"Your file is an unsupported file type. Accepted file types (max size 20 MB): AI, BMP, EPS, GIF, HEIC, JPEG, JPG, PDF, PNG, PSD, TIF, TIFF, WEBP"}),children:["Have a different type of file? ",C.jsx(Go,{id:"LP_upload-file-type",children:"Chat now"})," or email"," ",C.jsx(Go,{href:"mailto:[email protected]",children:"[email protected]"})," and we'll have it ready for you to use within a few hours!"]})}),C.jsx(s1,{children:C.jsx(rn,{size:"medium",variant:"primary",onClick:t,"data-testid":"unsupported-dialog-close",children:"Close"})})]})),im={headline:"We couldn't upload your file.",alertMessage:"Something went wrong on our end.",helperText:"Please try re-uploading. If the issue persists, contact us for help."},cm=({open:e,onClose:t,errorMessaging:n})=>{const{headline:s,alertMessage:o,helperText:r}=n!=null?n:im,a=r.split("contact us"),i=a.length>1;return C.jsxs(t1,{open:e,title:s,onClose:t,"data-testid":"upload-pipeline-error-dialog",children:[C.jsx(n1,{children:C.jsx($3,{alert:o,children:i?C.jsxs(C.Fragment,{children:[a[0],C.jsx(Go,{href:"#/help",onClick:t,children:"contact us"}),a.slice(1).join("contact us")]}):r})}),C.jsx(s1,{children:C.jsx(rn,{size:"medium",variant:"primary","data-testid":"upload-pipeline-error-close",onClick:t,children:"Close"})})]})},An={headline:"We couldn't upload your file.",alertMessage:"Something went wrong on our end.",helperText:"Please try re-uploading. If the issue persists, contact us for help."},lm={UNSUPPORTED_FORMAT:{headline:"Unsupported file type.",alertMessage:"This file format is not supported.",helperText:"Please upload a PNG, JPEG, SVG, PDF, GIF, TIFF, WebP, HEIF, AVIF, PSD, EPS, or AI file. If the issue persists, contact us for help."},FILE_CORRUPTED:{headline:"Corrupted file.",alertMessage:"This file appears to be corrupted.",helperText:"Please try re-exporting and uploading again. If the issue persists, contact us for help."},FILE_EMPTY:{headline:"We couldn't upload your file.",alertMessage:"There is no usable data in your file. It may be damaged or unreadable.",helperText:"Please try uploading the file again or use a different file. If the issue persists, contact us for help."},FILE_TYPE_DETECTION_UNKNOWN:{headline:"Unknown file type.",alertMessage:"We weren't able to read this file.",helperText:"Please try to re-save the file as a PNG, JPG, or PDF and try again. If the issue persists, contact us for help."},SVG_TOO_COMPLEX:{headline:"File too complex.",alertMessage:"This SVG file is too complex to process.",helperText:"Please try simplifying it or convert to a PNG and re-uploading. If the issue persists, contact us for help."},SVG_UNSAFE:{headline:"We couldn't upload your file.",alertMessage:"This SVG file contains unsafe content.",helperText:"Please try re-exporting and re-uploading. If the issue persists, contact us for help."},SVG_SANITIZATION_UNKNOWN:{headline:"We couldn't upload your file.",alertMessage:"Something went wrong while processing your SVG file.",helperText:"Please try re-uploading or contact us for help."},SVG_PARSE_FAILED:{headline:"We couldn't upload your file.",alertMessage:"We weren't able to read this SVG file.",helperText:"Please try convert
187ing file to a PNG and re-uploading. If the issue persists, contact us for help."},DIMENSIONS_TOO_LARGE:{headline:"File is too large.",alertMessage:"This file is too large.",helperText:"Please resize it to under 10,000 px and try re-uploading. If the issue persists, contact us for help."},FILE_PASSWORD_PROTECTED:{headline:"File is password protected.",alertMessage:"This file is password protected.",helperText:"Please remove the password protection and re-upload. If the issue persists, contact us for help."},PDF_PASSWORD_PROTECTED:{headline:"File is password protected.",alertMessage:"This PDF file is password protected.",helperText:"Please remove the password protection and re-upload. If the issue persists, contact us for help."},HEIC_CORRUPTED:{headline:"We couldn't upload your file.",alertMessage:"We weren't able to read this HEIC file.",helperText:"Please try re-saving from the original device as a PNG or JPG and re-upload. If the issue persists, contact us for help."},SVG_UNREADABLE:{headline:"We couldn't upload your file.",alertMessage:"We weren't able to read this SVG file.",helperText:"Please try re-exporting and try re-uploading. If the issue persists, contact us for help."},SVG_RENDER_FAILED:{headline:"We couldn't upload your file.",alertMessage:"This SVG file could not be rendered.",helperText:"Please try converting file to a PNG and re-uploading. If the issue persists, contact us for help."},IDENTIFY_UNKNOWN:{headline:"We couldn't upload your file.",alertMessage:"We weren't able to read this file.",helperText:"Please try converting it to a PNG, JPG, or PDF and re-upload. If the issue persists, contact us for help."},IMAGE_TOO_LARGE:{headline:"Your file is too large.",alertMessage:"Your uploaded file exceeds the 20 MB size limit for this product.",helperText:"Please resize your file to below 20 MB or contact us for help."},BMP_CONVERSION_FAILED:{headline:"We couldn't upload your file.",alertMessage:"This BMP file could not be converted.",helperText:"Please try converting file to a PNG and re-uploading. If the issue persists, contact us for help."},FILE_TRUNCATED:{headline:"We couldn't upload your file.",alertMessage:"This file appears incomplete and the upload may have been interrupted.",helperText:"Please try re-uploading. If the issue persists, contact us for help."},CONVERSION_FAILED:{headline:"We couldn't upload your file.",alertMessage:"We weren't able to process this file.",helperText:"Please try converting to a PNG and re-upload. If the issue persists, contact us for help."},SERVICE_UNAVAILABLE:{headline:"Service unavailable.",alertMessage:"Our color analysis service is temporarily unavailable.",helperText:"Please try again in a few minutes. If the issue persists, contact us for help."},BACKGROUND_FAILED:{headline:"Service unavailable.",alertMessage:"We weren't able to detect the background on this image.",helperText:"Please try again in a few minutes. If the issue persists, contact us for help."},ANALYSIS_UNKNOWN:{headline:"We couldn't upload your file.",alertMessage:"Something went wrong during processing.",helperText:"Please try re-uploading. If the issue persists, contact us for help."},IMAGEMAGICK_POLICY_DENIED:An,PIPELINE_UNKNOWN:An,S3_UPLOAD_FAILED:An,NETWORK_ERROR:An,GATEWAY_ERROR:An,ANALYSIS_TIMEOUT:An,FILE_NOT_FOUND:An};class dm extends Error{constructor(t,n){super(t),this.name="UploadValidationError",this.validationError=n}}function Ic(e){return e instanceof Error&&e.validationError!==void 0}const Z3=S.createContext(void 0),zi=()=>{const e=S.useContext(Z3);if(!e)throw new Error("useUpload must be used within an UploadProvider");return e},um={sendImpression:!1},_m=({children:e})=>{const t=_n(),n=un(),s=rr(),o=it(At),{getThread:r,aliasThread:a}=Ff(),i=Ps(Xh),c=Ps($h),l=S.useCallback(()=>{[[zf,i],[Wf,c]].forEach(([x,pe])=>{pe!==void 0&&$({event:"ab_test_group",ab_test_name:x,ab_test_group:pe?"test":"control",ab_test_location:"lab"})})},[i,c]),d=it(Sr),_=it(qe),{showPrompt:u}=Df(),{variation:E}=Is(x3),T=E==="test",O=Zf(),I=Kf(),A=Jf(),D=nm(),v=em(),w=Ps(Kh,um),[H,Q]=S.useState(!1),se=S.useRef(null),oe=S.useRef(null),{percentage:Z,message:F,reset:U,handleProgress:q}=Yf(w),[re,ee]=S.useState(!1),[Y,ce]=S.useState(null),_e=Ps(fc),rt=S.useCallback(()=>{ee(!1)},[]),je=S.useCallback(()=>{ce(null)},[]);S.useEffect(()=>{},[]);const Je=S.useCallback(x=>{$({event:"lab_upload_start",source:x})},[]),j=(x,pe)=>{!d||!x||!E||pe!==Ri.AI_GENERATOR&&(X3(),T&&(!_||!Y3(_)||u({key:Ti})))},de=S.useCallback(()=>{oe.current!==null&&(clearTimeout(oe.current),oe.current=null)},[]);S.useEffect(()=>de,[de]);const Ge=S.useCallback(()=>{const x=se.current;if(!(w&&x!==null&&Date.now()-x>=jf)){t("/uploadTools");return}de(),oe.current=setTimeout(()=>{oe.current=null,t("/uploadTools")},Qf)},[w,t,de]),be=S.useCallback(()=>{O.reset(),v.reset(),I.reset(),A.reset()},[O,v,I,A]),et=(x,pe)=>{var qt;const Ie=lh(x),Ee=Ic(x)?x.validationError.type:xh(x),{errorCode:Me,codeSource:Ot}=Lh(x,Ie,Ee);Nh(Ee,Me,pe,Ot),_e!==void 0&&$({event:"ab_test_group",ab_test_name:fc,ab_test_group:_e?"test":"control",ab_test_location:"lab"}),Ic(x)||s.error("Upload failed",x,f({source:pe},Uh(x,Me,Ot))),_e?ce({errorCode:Me,errorMessaging:(qt=Ie==null?void 0:Ie.errorMessaging)!=null?qt:lm[Me]}):Rh.includes(Ee)?n(gc(Ee,pe)):Ee===an?ee(!0):n(gc(on,pe)),Q(!1),t("/uploadForm")},$e=x=>{Dh(x),d&&E&&rm(E),U(),de(),se.current=Date.now(),t("/uploadProgress"),Q(!0)},yt=nt({mutationFn:pe=>P(void 0,[pe],function*({file:x}){const Ie=om(x);if(!Ie.ok)throw new dm("File validation failed",Ie.error);const Ee=Ie.file,Me=Ee.size,Ot=[{fileName:Ee.name,contentType:Ie.contentType}],qt=yield O.mutateAsync(Ot),Hd={files:qt.map((Cn,a2)=>({url:Cn.url,fields:Cn.fields,file:Ee,name:Ot[a2].fileName,contentType:Ot[a2].contentType,sizeAtValidation:Me}))};yield v.mutateAsync(Hd);const r2=qt.map(Cn=>({key:Cn.fields.key}));return w?A.mutateAsync({files:r2,onProgress:q,onTransportFallback:Cn=>{U(),s.warning("Analysis event stream failed, falling back to polling",Cn,{reason:Cn.reason})}}):I.mutateAsync(r2)}),onMutate:({source:x})=>{$e(x)},onSuccess:(x,{source:pe})=>
187{if(!x)return;const Ie=x.map(Ee=>{const Me=Oa(Ee,o);return Ao(Me,pe,Ee.mimeType),Me});n(pc(Ie)),Q(!1),j(x.some(Ee=>Ee.imageType===Pn.FULL_COLOR),pe),Ge()},onError:(x,{source:pe})=>{be(),et(x,pe)}}),Tn=nt({mutationFn:pe=>P(void 0,[pe],function*({icon:x}){var qt;const Ie=((qt=x==null?void 0:x.url)==null?void 0:qt.replace("/uploads/",""))||"",Ee=decodeURIComponent(Ie),Me=yield D.mutateAsync(Ee),Ot=Me.mimeType;return n(y_({iconId:x.id,contentType:Ot})),n(op({sourceIconId:x.id,iconOptions:{}})),{icon:x,contentType:Ot,imageType:Me.imageType}}),onMutate:({source:x})=>{$e(x)},onSuccess:({icon:x,contentType:pe,imageType:Ie},{source:Ee})=>{Q(!1),j(Ie===Pn.FULL_COLOR,Ee),Ge(),Ao(x,Ee,pe),l()},onError:(x,{source:pe})=>{et(x,pe)}}),Sn=x=>P(void 0,null,function*(){const pe=x.replace("/uploads/",""),Ie=decodeURIComponent(pe);let Ee;try{Ee=yield D.mutateAsync(Ie)}catch(Me){s.warning("Metadata fetch failed, attempting to analyze file again",Me instanceof Error?Me:new Error(String(Me)),{referenceId:Ie}),Ee=(yield I.mutateAsync([{key:Ie}]))[0]}return{uploadIcon:Oa(Ee,o),metadata:Ee}}),_o=nt({mutationFn:({referenceId:x})=>Sn(x),onMutate:({source:x})=>{$e(x)},onSuccess:({uploadIcon:x,metadata:pe},{source:Ie,refineSourceRef:Ee})=>{if(Ao(x,Ie,pe.mimeType),Es(x.key)&&l(),Ee&&Bf()){const Me=r(Ee);Me&&a(Vf(x.iconId),Me.id)}n(pc([x])),Q(!1),j(pe.imageType===Pn.FULL_COLOR,Ie),Ge()},onError:(x,{source:pe})=>{et(x,pe)}}),me=nt({mutationFn:({referenceId:x})=>Sn(x),onMutate:({source:x})=>{$e(x)},onSuccess:({uploadIcon:x,metadata:pe},{source:Ie,iconId:Ee,backgroundRemoved:Me})=>{Ao(x,Ie,pe.mimeType),l(),n(M3({iconId:Ee,icon:R(f({},x),{backgroundRemoved:Me})})),Q(!1),j(pe.imageType===Pn.FULL_COLOR,Ie),Ge()},onError:(x,{source:pe})=>{et(x,pe)}}),Qe=S.useMemo(()=>({state:{isUploading:H,error:void 0,analysisProgress:Z,analysisMessage:F,isProgressIndicatorEnabled:!!w},uploadFile:yt,restoreUpload:Tn,reuseUpload:_o,replaceUpload:me,trackUploadPanelOpen:Je}),[H,Z,F,w,yt,Tn,_o,me,Je]);return C.jsxs(Z3.Provider,{value:Qe,children:[e,C.jsx(am,{open:re,onClose:rt}),C.jsx(cm,{open:Y!==null,onClose:je,errorMessaging:Y==null?void 0:Y.errorMessaging})]})},pm=({children:e})=>{const t=zi(),n=it(D0),s=S.useRef(!1);return S.useEffect(()=>{if(n&&n5()&&!s.current){s.current=!0;const o=v1();t.reuseUpload.mutate({referenceId:o.referenceId,source:"query"})}},[t,n]),e},gm=()=>{const{variation:e,isLoading:t}=Is(mc,{attributes:{screen_width:window.innerWidth}}),n=S.useRef(!1);return S.useEffect(()=>{t||!e||n.current||(n.current=!0,$({event:"ab_test_group",ab_test_name:`2026 07 14 ${mc}`,ab_test_location:"lab",ab_test_group:e}))},[e,t]),{isMiniCartEnabled:!t&&e==="test",isLoading:t}};function wb(e={}){const t=C1(),n=new URLSearchParams;return n.set("cart_source","lab"),Object.keys(e).forEach(s=>{n.set(s,e[s])}),t&&n.set("token",t),`${K.checkout}/summary?${n.toString()}`}function Em(e={}){const t=new URLSearchParams;return t.set("cart_source","lab"),Object.keys(e).forEach(n=>{t.set(n,e[n])}),`/cart/?${t.toString()}`}const K3=S.createContext(void 0);function hm({children:e}){const t=un(),n=_n(),s=it(Ts),[o,r]=S.useState(!1),[a,i]=S.useState(""),c=S.useRef(null),l=S.useCallback(I=>{var A;if(!s){I.onProceed();return}c.current=I,(A=I.onGuarded)==null||A.call(I),i(I.subtitle),r(!0),t(X2(!1)),$({event:"lab_interaction",interaction_category:"save design alert view",interaction_action:I.dismissType})},[s,t]),d=S.useCallback(()=>{t(X2(!0)),r(!1),c.current=null},[t]),_=S.useCallback(()=>{$({event:"lab_interaction",interaction_category:"save design alert click",interaction_action:"close"}),d()},[d]),u=S.useCallback(()=>{$({event:"lab_interaction",interaction_category:"save design alert click",interaction_action:"save my design"}),d(),n("/next/saveForm?src=cartSavePrompt")},[d,n]),E=S.useCallback(()=>{$({event:"lab_interaction",interaction_category:"save design alert click",interaction_action:"continue without saving"});const I=c.current;r(!1),c.current=null,I==null||I.onProceed()},[]),T=S.useMemo(()=>({open:o,subtitle:a,onSubmit:u,onDismiss:E,onClose:_}),[o,a,u,E,_]),O=S.useMemo(()=>({guard:l,dialogProps:T}),[l,T]);return C.jsx(K3.Provider,{value:O,children:e})}function fm(){const e=S.useContext(K3);if(!e)throw new Error("useUnsavedDesignGuard must be used within UnsavedDesignGuardProvider");return e}function mm(){const{guard:e}
187=fm(),{closeCart:t}=eu(),n=S.useCallback(s=>{s(),e({subtitle:"You will lose any unsaved changes by continuing to your cart.",dismissType:"cart",onGuarded:t,onProceed:()=>{$({event:"meganav",page_type:"ndx",click_section:"my cart",click_link:"review cart & check out"}),window.location.href=Em({cart_source:"lab_mini_cart"})}})},[e,t]);return C.jsx(tu,{sx:{top:50},onCheckout:n})}function Tm(){return C.jsx(o1,{level:"error",errorMessage:"[project-service] MiniCartDropdown render error",children:C.jsx(mm,{})})}const Lr="welcome",Nr="welcomeBack",Sm="saveCTA",Cm=[/^\/artTools/,/^\/changeArt/,/^\/editText/,/^\/namesAndNumbers\/tools/,/^\/searchArt/,/^\/selectIcon/,/^\/textTools/,/^\/uploadTools/,/^\/aiRefine/,/^\/uploadProgress/,/^\/ad\/welcome/,/^\/ad\/save\/form/],Im=["/next/saveConfirmation","/savedDesigns","/aiGenerator","/aiRefine/*"],bb="fromQuantityQuote",Mb="fromBuyCta",Am="addItemsReturnTo",Ub="/next/quote",Wi="/next/quantity-quote",xb="/next/summary",Fb="/next/addedToCart",Vb="/productColor/*",J3="addItems/product",ed="addItems/color",kb="buy",ym="combined quantity quote",Om="quote summary",Hb="order options",Gb="zip code",Bb="save",zb="sizes and quantities",Wb="product tray",td="complements combined quantity quote",Rm=30,Dm=5e3,vm=()=>{const e=jt();return nt({mutationKey:["generate-ai-designs"],mutationFn:e.generateAiDesigns})},Yb=()=>{const e=jt();return nt({mutationKey:["refresh-ai-design-urls"],mutationFn:e.getAiDesignStatusByGenerationId,retry:!1})},Pm=()=>{const e=jt();return nt({mutationKey:["ai-design-status"],mutationFn:e.getAiDesignStatusByGenerationId,retry:(t,n)=>ph(n)?t<Rm:!1,retryDelay:()=>Dm})};function Lm(e){return R(f({},e),{displayName:e.personal?"Personal":e.name||e.id})}function Nm(e){if(!e.personal)throw new Error(`transformAccountDtoToPersonalAccount: account ${e.id} is not personal.`);return R(f({},Lm(e)),{personal:!0})}const wm=e=>P(void 0,null,function*(){var O,I;const{url:t,getTokens:n,identityProvider:s,user:o,authMode:r,queryParams:a,isPublic:i}=e,c=!!o,l=(O=r==null?void 0:r.withAccessToken)!=null?O:!1,d=(I=r==null?void 0:r.withIdToken)!=null?I:!1,_=()=>c?n():{idToken:void 0,accessToken:void 0},u=A=>z.error(`Missing ${A} in request to ${t}`,{params:a,identityProvider:s}),{accessToken:E,idToken:T}=yield _();if(l){if(E)return`Bearer ${E}`;if(i)return;u("access token")}else if(d){if(T)return`Bearer ${T}`;if(i)return;u("id token")}}),Yi=S.createContext(null);function Qt(){const e=S.useContext(Yi);if(!e)throw new Error("useAuth must be used within an AuthProvider");return e}const nd=()=>{const e=co("NDX_ACCOUNTS_SERVICE_URL"),{identityProvider:t,getTokens:n,user:s}=Qt(),o=t==="auth0"?{withAccessToken:!0}:{withIdToken:!0},r={"client-name":"ndx","client-version":to.VITE_RELEASE},a=Va({baseUrl:e,headers:r}),i={onRequest:c=>P(void 0,null,function*(){const l=yield wm({url:c.request.url,getTokens:n,identityProvider:t,user:s,authMode:o,queryParams:c.params.query});return l&&c.request.headers.set("Authorization",l),c.request})};return a.use(i),S.useMemo(()=>new ki(a),[a])};class bm{constructor(t){this.client=t,this.getPersonalAccount=n=>P(this,null,function*(){const s=yield this.client.get("/accounts/personal",{params:{query:{email:n}}});return Nm(s)}),this.getAccountUsers=n=>P(this,null,function*(){return this.client.get("/accounts/{id}/users",{params:{path:{id:n}}})})}}const sd=()=>{const e=nd();return S.useMemo(()=>new bm(e),[e])},Mm="personal-account",Um="account-users",jb=e=>{const{getAccountUsers:t}=sd();return ka({queryKey:[Um,e],queryFn:()=>t(e),staleTime:1e4,enabled:!!e})},lo=()=>{const{user:e}=Qt(),{getPersonalAccount:t}=sd(),n=e&&!!(e!=null&&e.email);return ka({queryKey:[Mm,e==null?void 0:e.email],queryFn:()=>P(void 0,null,function*(){return n?t(e.email):null}),staleTime:1e4,enabled:n})},xm="ndx-anonymous";function Fm(){var e;return(e=Gi())!=null?e:xm}const Vm=nu(su)(({theme:e})=>({width:450,borderRadius:e.shape.borderRadius,borderWidth:2})),yo=S.forwardRef(({message:e,variant:t,id:n,className:s,style:o,dismissible:r},a)=>{const{closeSnackbar:i}=r1();return C.jsx(ou,{ref:a,role:"alert",id:String(n),className:s,style:o,children:C.jsx(Vm,{severity:t,variant:"outlined","data-testid":"notistack-alert",onClose:r?()=>i(n):void 0,children:e})})}),km=({children:e})=>C.jsx(ru,{maxSnack:3,anchorOrigin:{horizontal:"left",vertical:"bottom"},Components:{success:yo,error:yo,info:yo,warning:yo},children:e}),Hm=30,Gm=2e3,Bm=1e4,zm=e=>{const t=typeof e=="string"?e:String(e!=null?e:""),n=Hm*t.length+Gm;return Math.min(n,Bm)},ji=()=>{const{enqueueSnackbar:e,closeSnackbar:t}=r1(),n=S.useCallback((a,i,c)=>e(a,f({variant:i,autoHideDuration:zm(a)},c)),[e]),s=S.useCallback((a,i)=>n(a,"success",i),[n]),o=S.useCallback((a,i)=>n(a,"error",i),[n]),r=S.useCallback((a,i)=>n(a,"info",i),[n]);return{pushNotification:n,pushSuccessNotification:s,pushErrorNotification:o,pushInfoNotification:r,closeSnackbar:t}},Wm={marginLeft:"8px"},Ac=({message:e,linkTo:t,linkLabel:n})=>C.jsxs(Bt,{variant:"uiTextDefault",children:[e,t&&C.jsx(Go,{href:`#${t}`,style:Wm,children:n})]}),Ym=[{prompt:"Kawaii bowl of ramen with a happy face",label:"ð Kawaii bowl of ramen with a happy face",images:[{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/8e9c8a306e7a239ec0638e430ff223a6/00/5100/1359/ai-generated/9e63a8e202f1c570c480410a_cD9XdGOUWA"},{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/1ba7b8ea7518d43fc44674812328c6c9/00/5100/1359/ai-generated/9e63a8e202f1c570c480410a_CLnKah4Sw"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/d28502ebaa6b8e44c7b4929f1b29d623/00/5100/1359/ai-generated/b69642151be2760f870e8ed2_HAoUMm1ADg"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/94dde88a14b0a3fb0d784ad35c31a492/00/5100/1359/ai-generated/b69642151be2760f870e8ed2_Xw5X5QGOQ"}]},{prompt:'Steampunk Brewery Badge "Iron Trail Brewing Co"',label:"ðº Steampunk brewery badge",images:[{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/72e4b014f76b176604adf56262b57b55/00/5100/1359/ai-generated/f2168da863ce31a44f955445_tVAOO7roEA"},{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/46d280dfde10393007ca7c1bd040802b/00/5100/1359/ai-generated/f2168da863ce31a44f955445_y3hH433cgg"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/64c0274f75d5d5d188e5217bf3e0f186/00/5100/1359/ai-generated/f2168da863ce31a44f955445_E4rVGTZrVg"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/85a3c219b12a0926b6925a8b217f75cd/00/4132/9280/ai-generated/d27e1dda8f18ddd2f087171b_dMWDrDbn8A"}]},{prompt:"Fierce dragon",label:"ð Fierce dragon",images:[{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/2e6e802bf71d51cf6d5d1ea6b6559701/00/5100/1359/ai-generated/c1b0aff6d19486517b65e84a_u9pm0w8ZCQ"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/67f82136534cd5a4f465b0d339889e5a/00/5100/1359/ai-generated/c1b0aff6d19486517b65e84a_zRSfQPXzWw"},{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/abdb7a5c86cb29d9a0b11223635ce7f0/00/5100/1359/ai-generated/4c2bdc67242709d25a06ffa3_pwvJFmSmeA"},{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/7dd1ea3abdec6a58252cc59cee2fe459/00/5100/1359/ai-generated/4c2bdc67242709d25a06ffa3_55EMmgtfew"}]},{prompt:'Vintage backyard BBQ "Smith Family Cookout 2026"',label:"ð Family backyard bbq",images:[{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/8a4fe90b05b13320c82974ce57ac8d1f/00/5100/1359/ai-generated/688a15154b7ddd60373c346c_7aI0lHH2bA"},{configurationId:"e44dd6b51644d3ab",has_image:!0,isSample:!0,key:"accounts/b9e5c457bf91a97947aed6b5103de562/00/5100/1359/ai-generated/688a15154b7ddd60373c346c_sJiCthBEJw"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/f65efda978c9deb6eb59e5b09604ebca/00/5100/1359/ai-generated/688a15154b7ddd60373c346c_QYfo8MTx9w"},{configurationId:"d441c94bea00905b",has_image:!0,isSample:!0,key:"accounts/df964af13bcba7e1856f62239124b32f/00/5100/1359/ai-generated/688a15154b7ddd60373c346c_UYjdBTvCw"}]}],jm={messages:[],sessionId:ye()},Qm=5e3,yc="ai_design_generator_prompt",qm=new Set(["user","info",void 0]),Xm=e=>{if(!e||typeof e!="object")return!1;const{id:t,type:n,userPrompt:s,images:o,error:r}=e;return typeof t=="string"&&qm.has(n)&&typeof s=="string"&&Array.isArray(o)&&j3(r)},$m=e=>{if(!e||typeof e!="object")return!1;const{messages:t,sessionId:n}=e;return Array.isArray(t)&&t.every(Xm)&&(n===void 0||typeof n=="string")},od=S.createContext(null),Zm=({children:e})=>{const t=ps(),n=rr(),{pushSuccessNotification:s,pushErrorNotification:o}=ji(),[r,a]=S.useState(jm),[i,c]=S.useState(null),l=S.useRef(!1),d=S.useRef(),_=S.useRef(X_()),u=S.useRef(r.sessionId);u.current=r.sessionId;const E=S.useRef(t);E.current=t,S.useEffect(()=>()=>{clearTimeout(d.current)},[]);const{user:T,isLoading:O}=Qt(),{data:I,isLoading:A}=lo(),D=!O&&(!T||!A),v=vm(),w=Pm(),H=S.useRef(v);H.current=v;const Q=S.useRef(w);Q.current=w;const se=v.isLoading||w.isLoading||i!==null;S.useEffect(()=>{var Y;const ee=q_();ee&&$m(ee)&&a({messages:ee.messages,sessionId:(Y=ee.sessionId)!=null?Y:ye()})},[]);const oe=S.useCallback((ee,Y,ce)=>{a(_e=>{const rt=_e.messages.some(de=>de.type==="info"),je={id:ye(),userPrompt:ee,images:Y,generationId:ce},Je=[..._e.messages,je];rt||Je.push({id:ye(),type:"info",userPrompt:"",images:[]});const j={messages:Je,sessionId:_e.sessionId};return Wr(j),j})},[]),Z=S.useCallback((ee,Y)=>{a(ce=>{const _e={messages:[...ce.messages,{id:ye(),userPrompt:ee,images:[],error:Y}],sessionId:ce.sessionId};return Wr(_e),_e})},[]),F=S.useCallback(ee=>{const Y=Ym.find(({prompt:ce})=>ce===ee);
187!Y||l.current||(l.current=!0,c(Y.prompt),$({event:"lab_design_generator_click",interaction_action:"sample_prompt",interaction_label:Y.prompt}),p.pageViewTag("ndx/designgenerator/sampleprompt"),d.current=setTimeout(()=>{try{oe(Y.prompt,Y.images),E.current.pathname.includes("aiGenerator")||s(C.jsx(Ac,{message:"Your AI designs are ready",linkTo:"/aiGenerator",linkLabel:"View designs"}))}catch(ce){n.error("AI sample prompt simulation failed",ce,{prompt:Y.prompt});const _e=Io(ce,Y.prompt);Z(Y.prompt,_e),E.current.pathname.includes("aiGenerator")||o("AI design generation failed. Please try again.")}finally{l.current=!1,c(null)}},Qm))},[oe,Z,s,o]),U=S.useCallback(ee=>P(void 0,null,function*(){var ce,_e;const Y=ee.trim();if(!(!Y||!D||l.current)){l.current=!0,c(Y),_.current+=1,$_(_.current),$({event:"lab_design_generator_click",interaction_action:"create",interaction_label:Y,prompt_count:_.current}),p.pageViewTag("ndx/designgenerator/create");try{const je=(_e=(yield H.current.mutateAsync({prompt:Y,experimentVariant:"variant_a",userIdentifier:((ce=I==null?void 0:I.id)==null?void 0:ce.toString())||Fm(),sessionId:u.current})).data)==null?void 0:_e.generationId;if(!je){n.warning("AI generation returned no generationId",{prompt:Y,sessionId:u.current});const be=Io(null,Y);Z(Y,be),E.current.pathname.includes("aiGenerator")||o("AI design generation failed. Please try again.");return}const j=(yield Q.current.mutateAsync(je)).data,de=(j==null?void 0:j.images)||[];if(!(de.length>0&&de.every(vf))){n.warning("AI generation returned incomplete images",{prompt:Y,sessionId:u.current,imageCount:de.length,failedImages:de.filter($e=>!$e.has_image||!$e.key).length});const be=de.some($e=>{var yt;return((yt=$e.error)==null?void 0:yt.name)==="SafetyFilterError"});$({event:"lab_design_generator_error",message:be?"blocked_by_model_content_filter":"system_error"}),p.pageViewTag("ndx/designgenerator/error/model_content_filter");const et=Io(null,Y);Z(Y,et),E.current.pathname.includes("aiGenerator")||o("AI design generation failed. Please try again.");return}oe(Y,de,je),E.current.pathname.includes("aiGenerator")||s(C.jsx(Ac,{message:"Your AI designs are ready",linkTo:"/aiGenerator",linkLabel:"View designs"}))}catch(rt){n.error("AI image generation failed",rt,{prompt:Y,sessionId:u.current}),$({event:"lab_design_generator_error",message:ya(rt)?"blocked_by_internal_keyword_filter":"system_error"}),p.pageViewTag(ya(rt)?"ndx/designgenerator/error/internal_keyword_filter":"ndx/designgenerator/error/model_content_filter");const je=Io(rt,Y);Z(Y,je),E.current.pathname.includes("aiGenerator")||o("AI design generation failed. Please try again.")}finally{l.current=!1,c(null)}}}),[D,I,oe,Z,s,o]);S.useEffect(()=>{if(!D)return;const ee=Cl(yc);ee&&(J_(yc),U(ee))},[D,U]);const q=S.useCallback((ee,Y,ce)=>{a(_e=>{const je={messages:_e.messages.map(Je=>Je.id!==ee?Je:R(f({},Je),{images:Je.images.map(j=>j.key===Y?R(f({},j),{downloadUrl:ce}):j)})),sessionId:_e.sessionId};return Wr(je),je})},[]),re=S.useMemo(()=>({messages:r.messages,sessionId:r.sessionId,isGenerating:se,isUserIdentifierReady:D,pendingPrompt:i,submitPrompt:U,simulateGenerator:F,updateImageUrl:q}),[r.messages,r.sessionId,se,D,i,U,F,q]);return C.jsx(od.Provider,{value:re,children:e})},Qb=()=>{const e=S.useContext(od);if(!e)throw new Error("useAiGenerator must be used within AiGeneratorProvider");return e},rd=S.createContext(void 0),Km=/^\/next\/changeIconColor/,Jm=/^\/next/;function eT({children:e}){const{pathname:t}=ps(),n=!Km.test(t)&&Jm.test(t);return C.jsx(rd.Provider,{value:n,children:e})}function qb(){const e=S.useContext(rd);if(e===void 0)throw new Error("useSlideOver must be used within SlideOverProvider");return e}const ad=S.createContext(null),id=({children:e})=>{const t=ps(),[n,s]=S.useState({prevLocation:null,location:t});return S.useEffect(()=>{s(o=>({prevLocation:o.location,location:t}))},[t]),C.jsx(ad.Provider,{value:{locationInfo:n},children:e})},tT={children:N.any};id.propTypes=tT;const nT=N.shape({location:N.oneOfType([N.object,N.func]),navigate:N.func,params:N.object,searchParams:N.object}),sT={forwardedRef:N.oneOfType([N.func,N.shape({current:N.any})])};function oT(e){function t(s){var _,u;const o=ps(),r=_n(),a=au(),i=S.useContext(ad),c=(u=(_=i==null?void 0:i.locationInfo)==null?void 0:_.prevLocation)==null?void 0:u.pathname,E=s,{forwardedRef:l}=E,d=ct(E,["forwardedRef"]);return C.jsx(e,R(f({ref:l},d),{router:{lastPath:c,location:o,navigate:r,params:a}}))}t.displayName=`withRouter(${e.displayName})`,t.propTypes=sT;const n=S.forwardRef((s,o)=>C.jsx(t,R(f({},s),{forwardedRef:o})));return n.displayName=`withRouter(${e.displayName})`,n}const rT=({children:e})=>{const{state:{isUploading:t},uploadFile:n}=zi(),s=S.useCallback(o=>{var i;if(t)return;const r=(i=o.clipboardData)==null?void 0:i.items;if(!r)return;const a=[];for(let c=0;c<r.length;c++){const l=r[c];if(l.kind==="file"){const d=l.getAsFile();d&&a.push(d)}}a.length>0&&(o.preventDefault(),n.mutate({file:a[0],source:"paste"}))},[t]);return S.useEffect(()=>
187(window.addEventListener("paste",s),()=>{window.removeEventListener("paste",s)}),[s]),e};function Qi(e){return{__html:e}}function aT({children:e}){const[t,n]=S.useState(null);return S.useEffect(()=>{n(document.body)},[]),t?Fa.createPortal(e,t):null}function iT(){const[e,t]=S.useState(!1),n=S.useRef(0),s=S.useRef(!1),o=un(),r=zi(),a=S.useCallback(d=>{var u;d.preventDefault(),n.current++,s.current=!1,Array.from(((u=d.dataTransfer)==null?void 0:u.items)||[]).some(E=>E.kind==="file")&&t(!0)},[]),i=S.useCallback(d=>{d.preventDefault(),n.current--,n.current<=0&&(t(!1),s.current||$({event:"lab_upload_cancel",upload_type:"draganddrop"}))},[]),c=S.useCallback(d=>{d.preventDefault()},[]),l=S.useCallback(d=>{var u;d.preventDefault(),t(!1),n.current=0,s.current=!0;const _=Array.from(((u=d.dataTransfer)==null?void 0:u.files)||[]);_.length>0&&(p.pageViewTag("ndx/upload/draganddrop"),o(Di()),r.uploadFile.mutate({file:_[0],source:"draganddrop"}))},[]);return S.useEffect(()=>(window.addEventListener("dragenter",a),window.addEventListener("dragleave",i),window.addEventListener("dragover",c),window.addEventListener("drop",l),()=>{window.removeEventListener("dragenter",a),window.removeEventListener("dragleave",i),window.removeEventListener("dragover",c),window.removeEventListener("drop",l)}),[a,i,c,l]),e?C.jsx(aT,{children:C.jsxs(Bs,{"data-testid":"upload-dropzone-overlay",sx:{position:"fixed",top:0,left:0,right:0,bottom:0,backgroundColor:"rgba(0, 0, 0, 0.41)",zIndex:9999,pointerEvents:"none",display:"flex",alignItems:"center",justifyContent:"center",flexDirection:"column",color:"white",pb:"65px"},children:[C.jsx("span",{style:{width:210,height:210,margin:"-30px",fill:"white"},dangerouslySetInnerHTML:Qi(d4)}
187),C.jsx(Bt,{variant:"headingXLarge",children:"Drop a file"}),C.jsx(Bt,{variant:"heading1",children:"anywhere to upload"})]})}):null}function cT(e){const t=rr(),n=Ps(F3),s=iu(e),o=it(ql);return S.useEffect(()=>{n===!0&&s.isError&&t.error("project-service useIsDesignInCart query failed; falling back to legacy Redux cart",{designCid:e})},[n,s.isError,e,t]),e?n===!1||s.isError?{isInCart:o.some(r=>r.designCompositeId===e),isLoading:!1}:{isInCart:s.isInCart,isLoading:s.isLoading}:{isInCart:!1,isLoading:!1}}function lT(){const e=it(gi);return cT(e)}const dT=({isInCart:e,isLoading:t})=>e||t;function uT(){return dT(lT())}const _T=()=>{const e=a1(),t=_n(),n=it(w0),s=it(M8),o=it(F8),r=uT(),a=Ws(),i=o||!r||n,c=S.useCallback(()=>{t("/help")},[]),l=S.useCallback(()=>{$({event:"lab_interaction",click_link:"my designs"}),t("/savedDesigns")},[]),d=S.useCallback(()=>{p.fireEvent("lab ways to order","save"),t("/next/saveForm")},[]),_=S.useCallback(()=>{$({event:"lab_interaction",click_link:"untitled design"}),d()},[d]);S.useEffect(()=>{var T;(T=window.setChatElements)==null||T.call(window)},[]);const u=S.useMemo(()=>n?"Loading...":s||"Untitled design",[s,n]),E=r&&!a;return e?C.jsxs(rn,{fullWidth:!0,className:"ndx-save-menu-my-designs-button",variant:"link","data-testid":"ci-header-my-designs",sx:{display:"flex",flexDirection:"column",color:"#4a4a4a",padding:"0 4px",gap:gt.semantics.units.space.detailLayout.xxs,minWidth:"44px"},size:"medium",onClick:l,children:[C.jsx(u2,{htmlColor:"#4a4a4a"}),C.jsx("span",{style:{fontWeight:gt.primitives.font.weight[500],fontSize:gt.typography.body.xxs.fontSize,lineHeight:"16px"},children:"Designs"})]}):C.jsxs(Qn,{justifyContent:"space-between",direction:"row",alignItems:"center",gap:2,children:[C.jsxs(Qn,{direction:"row",alignItems:"center",children:[C.jsx(_2,{orientation:"vertical",flexItem:!0,sx:{mx:"20px"}}),C.jsxs(C.Fragment,{children:[C.jsx(Qn,{children:C.jsx(rn,{fullWidth:!0,startIcon:C.jsx(u2,{}),"aria-label":"My Designs",variant:"link",sx:{cursor:"pointer",color:"#4a4a4a",fontSize:gt.typography.body.sm.fontSize,".MuiButton-startIcon":{marginRight:gt.semantics.units.space.inline.sm,marginLeft:"-2px","@media (max-width: 1124px)":{marginRight:"0px",marginLeft:"0px"}},":hover":{backgroundColor:As.color.gray.hover.original.value}},size:"small",onClick:l,children:C.jsx(Bs,{"data-testid":"ci-header-my-designs",sx:{display:"flex","@media (max-width: 1124px)":{display:"none"},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},children:"My Designs"})})}),C.jsx(cu,{htmlColor:"#00000047",sx:{width:"20px",height:"20px"}})]}),C.jsxs(Qn,{direction:"row",alignItems:"center",children:[C.jsx(rn,{variant:"link",sx:{cursor:"pointer",color:"#00000091",fontSize:gt.typography.body.sm.fontSize,":hover":{backgroundColor:As.color.gray.hover.original.value},"&.Mui-disabled":{color:As.color.gray.slateDark.value},overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"},disabled:!i,size:"small",onClick:_,endIcon:i&&C.jsx(lu,{}),children:u}),E&&C.jsx(du,{arrow:!0,sx:{marginLeft:gt.semantics.units.space.inline.sm},placement:"right",title:"This design is in your cart. Saving will create a new design.",children:C.jsx(Ur,{color:"secondary",children:C.jsx(uu,{fontSize:"inherit",sx:{width:"24px",height:"24px"}})})})]})]}),C.jsxs(Qn,{direction:"row",alignItems:"center",justifyItems:"center",children:[C.jsx(Ur,{onClick:c,"aria-label":"Help",className:"ndx-save-menu-help-icon",sx:{width:"40px",height:"40px",display:{md:"flex",lg:"none"}},children:C.jsx(_u,{htmlColor:As.color.gray.slateDefault.value,fontSize:"inherit",sx:{width:"24px",height:"24px"}})}),C.jsx(Ur,{id:"LP_","aria-label":"Chat",className:"ndx-save-menu-help-icon",sx:{width:"40px",height:"40px",display:{md:"flex",lg:"none"}},children:C.jsx(pu,{htmlColor:As.color.gray.slateDefault.value,fontSize:"inherit",sx:{width:"24px",height:"24px"}})}),C.jsxs(Qn,{sx:{display:{md:"none",lg:"flex"}},direction:"row",gap:2,alignItems:"center",children:[C.jsx("customer-contact",{}),C.jsx("customer-chat",{})]}),C.jsx(_2,{orientation:"vertical",flexItem:!0,sx:{mx:"16px"}})]})]})},pT=S.lazy(()=>Gs(()=>import("./index-DkY66cCy.js"),__vite__mapDeps([2,0,1,3,4,5,6,7])),"App"),gT=S.lazy(()=>Gs(()=>import("./index-Fb4WjGIe.js"),__vite__mapDeps([8,0,1,3,4,5,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,33,34,35,36,37,38,39,40,41])),"App_Lg"),ET=({hooks:e})=>a1()?C.jsx(S.Suspense,{fallback:C.jsx("div",{}),children:C.jsx(pT,{hooks:e})}):C.jsx(S.Suspense,{fallback:C.jsx("div",{}),children:C.jsx(gT,{hooks:e})}),hT={CUSTOMINK_HOST:"https://www.customink.com"},fT=(e,t)=>
187z.error(e,f({source:"project-service"},t)),mT={loadStyles:N.func.isRequired,allStylesLoaded:N.bool,anchorStyle:N.object,anchorStyleId:N.string,currentColorId:N.string,currentProduct:N.object,defaultBlank:N.string,deselectAllIcons:N.func,didSelectedStyleLoadError:N.bool,enableSleeveNav:N.func,fetchingDesign:N.bool,fireNoDesignAnalytics:N.func,getCart:N.func,getCategoryPathForStyleId:N.func,hasPhotoQualityUpload:N.bool,hooks:N.object,isAnchorDebossed:N.bool,isAnchorEmbossed:N.bool,isAnchorEmbroidered:N.bool,isAnchorLaserEngraved:N.bool,isDirty:N.bool,isMiniCartEnabled:N.bool,isStreamlinedMobileMode:N.bool,loadCartCookie:N.func,loadDesign:N.func,loadFontAutofillData:N.func,loadInitialDesign:N.func,loadStyleVariants:N.func,meta:N.objectOf(N.func),photoQualitySwapEnabled:N.bool,prompt:N.func,replaceProductsCartMode:N.func,router:nT,selectedProduct:N.object,selectedStyles:N.arrayOf(N.string),selectIcon:N.func,setCartMode:N.func,setDefaultProductForAD:N.func,setLabBlankLoad:N.func,setOrderOptionsPath:N.func,setPreferSingles:N.func,setStreamlinedMobileIntent:N.func,setStreamlinedMobileMode:N.func,streamlinedMobileIntent:N.string,swapProduct:N.func,updateInternalUser:N.func,updateProductQuantities:N.func,updateSleevePrintOverride:N.func,updateStylesCategoryPaths:N.func,validateActiveProducts:N.func,welcomeStage:N.oneOf([Lr,Nr,Sm]),onWillMount:N.func};class xo extends S.Component{constructor(n){super(n);Vt(this,"shouldInitiateSwap",n=>{const s=n.fetchingDesign&&!this.props.fetchingDesign,o=!n.allStylesLoaded&&this.props.allStylesLoaded;return(s||o)&&Ws()});Vt(this,"executeProductSwap",()=>{const{colorId:n,styleId:s}=pn(),{allStylesLoaded:o,currentColorId:r,anchorStyleId:a,swapProduct:i,getCategoryPathForStyleId:c}=this.props;if(!n||!s||!o)return;const l=c(s);i({previousColorId:r,previousStyleId:a,nextProduct:{styleId:s,colorId:n,categoryPath:l},clearMismatchedViews:!1,clearSizeDropWarning:!0,clearPreviousProducts:!0,isSwappingEmbroidToPrintVariant:!1,isInitialLabLoad:!1,fireAnalytics:!0,rearrangeIcons:!0,useSpecialGuidelineOnIconRearranger:!0,shouldColorMatch:!0,redoUndoable:!0})});Vt(this,"openEmbroideryModal",()=>{this.props.prompt({key:H0})});this.state={}}UNSAFE_componentWillMount(){this.props.onWillMount(),this.props.setPreferSingles(X4());const n=m2();this.setUserType(),ua()?this.props.hooks.setNavigateTo("/next"):P1()?(p.pageViewTag("/ndx/start/buynow"),this.props.hooks.setNavigateTo("/next/buy")):a5()?this.props.hooks.setNavigateTo("/uploadForm"):r5()?this.props.hooks.setNavigateTo("/productCatalog"):L1()?this.props.hooks.setNavigateTo("/addItems"):N1()?this.props.hooks.setNavigateTo(`/searchArt/'${w1()}'`):i5()?this.props.hooks.setNavigateTo("/addArt"):ua()?this.props.hooks.setNavigateTo("/next"):this.showWelcome(),f2()==="navigation"&&this.props.meta.fundraisingNavigationPageview(),f2()==="campaign_closed"&&this.props.meta.fundraisingCampaignClosedPageview(),n&&(this.props.setStreamlinedMobileMode(!0),this.props.setStreamlinedMobileIntent(m2())),this.props.fetchingDesign||this.props.meta.loadWithoutDesign()}componentDidMount(){const{setLabBlankLoad:n,loadFontAutofillData:s,getCart:o}=this.props;this.requestDataForStore(),this.setQuantities(),this.collectWelcomeMetrics(),n(!Qa()),s(),o()}UNSAFE_componentWillReceiveProps(n){const s=this.props.fetchingDesign&&!n.fetchingDesign,o=!n.allStylesLoaded&&!n.didSelectedStyleLoadError;(s||o)&&this.loadStyleData(n)}componentDidUpdate(n){var s;this.props.enableSleeveNav(),this.deselectAllIconsForNonWhitelistedPath(),this.showProductTypeTipNotification((s=n.anchorStyle)==null?void 0:s.id),this.shouldInitiateSwap(n)&&this.executeProductSwap()}deselectAllIconsForNonWhitelistedPath(){const{deselectAllIcons:n,router:{location:s}}=this.props;Cm.every(o=>!o.test(s.pathname))&&n()}showProductTypeTipNotification(n){const{currentProduct:s,hasPhotoQualityUpload:o,isAnchorDebossed:r,isAnchorEmbossed:a,isAnchorEmbroidered:i,isAnchorLaserEngraved:c,anchorStyle:l,photoQualitySwapEnabled:d}=this.props;n!==(l==null?void 0:l.id)&&(i?d&&o&&Y3(s)?(X3(),this.props.prompt({key:Ti})):this.openEmbroideryModal():c?this.props.prompt({key:X0}):r?this.props.prompt({key:k0}):a&&this.props.prompt({key:z0}))}setUserType(){K4()?this.props.updateInternalUser("external"):y1()?this.props.updateInternalUser("internal"):dt.get(is)==="false"?this.props.updateInternalUser("external"):dt.get(is)==="true"&&this.props.updateInternalUser("internal")}setDefaultBlank(){const{anchorStyleId:n,currentColorId:s}=this.props;n!==pa.styleId&&this.props.swapProduct({previousColorId:n,previousStyleId:s,nextProduct:pa,clearMismatchedViews:!1,clearSizeDropWarning:!1,clearPreviousProducts:!0,isSwappingEmbroidToPrintVariant:!1,isInitialLabLoad:!0,redoUndoable:!1})}collectWelcomeMetrics(){this.props.welcomeStage===Lr?this.props.meta.welcome():this.props.welcomeStage===Nr&&this.props.meta.welcomeBack()}
187requestDataForStore(){return P(this,null,function*(){kt()&&la()?this.props.loadDesign(R(f({},da()),{autoSelectProduct:!1})):kt()?this.props.loadDesign(da()):yield this.loadStyleData()})}setQuantities(){if(s5()){const n=D1(),s={[this.props.currentColorId]:n};this.props.updateProductQuantities(s)}}loadStyleData(){return P(this,arguments,function*(n=this.props){var o;const s=n.selectedStyles;yield this.loadSelectedStyles(s),d5(this.props.currentColorId,(o=this.props.selectedProduct)==null?void 0:o.id)})}isNewDesign(){return!this.props.isDirty&&!kt()&&!la()}loadStylesWrapper(r){return P(this,arguments,function*(n,s=this.props,o=()=>{}){return s.loadStyles(n,!0,!0).then(a=>{this.isNewDesign()&&this.setDefaultBlank(),o(),s.validateActiveProducts(),s.meta.ndxStart(),s.updateStylesCategoryPaths(n),s.loadStyleVariants(n)})})}loadSelectedStyles(o){return P(this,arguments,function*(n,s=this.props){return this.loadStylesWrapper(n,s,()=>{s.updateSleevePrintOverride()})})}isAllowedPathOnPageLoad(){for(const n of Im)if(Eu(n,this.props.router.location.pathname))return!0;return!1}showWelcome(){this.isAllowedPathOnPageLoad()||this.props.welcomeStage&&!l1&&(as(rs.mediumAndBelow)&&kt()?l5()?this.props.hooks.setNavigateTo("/productColor"):this.props.hooks.setNavigateTo("/"):this.props.hooks.setNavigateTo(`/${this.props.welcomeStage}`))}render(){const{isMiniCartEnabled:n}=this.props,s=document.querySelector("#ndx-save-share-portal");return C.jsx(hu,{children:C.jsx(fu,{clientName:"ndx",clientVersion:"41957b0499355eeaa005418fc77745d2301421bb",environment:"production",hostnames:hT,onError:fT,children:C.jsx(km,{children:C.jsx(Zm,{children:C.jsx(xf,{children:C.jsx(_m,{children:C.jsx(pm,{children:C.jsxs(rT,{children:[C.jsx("div",{className:"ndx-Content",children:C.jsx(eT,{children:C.jsx(ET,{hooks:this.props.hooks})})}),C.jsx(iT,{}),s&&Fa.createPortal(C.jsx(_T,{}),s),n&&C.jsx(Tm,{})]})})})})})})})})}}Vt(xo,"displayName","AppContainer"),Vt(xo,"propTypes",mT),Vt(xo,"defaultProps",{enableSleeveNav(){},loadFontAutofillData(){},isStreamlinedMobileMode:null,loadCartCookie(){},loadStyleVariants(){},meta:{ndxStart(){},welcome(){},loadWithoutDesign(){},welcomeBack(){},orderMore(){},orderMoreAddStyles(){},fireAdSwapClipartTags(){},defaultBlankTest(){}},onWillMount(){},replaceProductsCartMode(){},setCartMode(){},setLabBlankLoad(){}});const TT=gu(If,Af)(oT(xo));function ST(e){const{variation:t}=Is(x3),{isMiniCartEnabled:n}=gm();return C.jsx(TT,R(f({},e),{isMiniCartEnabled:n,photoQualitySwapEnabled:t==="test"}))}const CT=W.TEXT.DEFAULTS.EMBROIDERY_MIN_FONT_HEIGHT,IT=()=>{const e=un(),t=S.useRef(!1),n=it(Q5),s=it(Sr),o=it(Hn),r=(o==null?void 0:o.fontMinHeight)||W.TEXT.DEFAULTS.MIN_FONT_HEIGHT,a=s&&r<CT,i=S.useCallback(()=>{a&&e(F9()),e(U9()),e(x9())},[e,a]),c=mu(i,300);S.useEffect(()=>{if(!n){t.current=!1;return}t.current||(c(),t.current=!0,as(rs.mediumAndBelow)||e(V9()))},[n,c,e])};class AT{constructor(t){this.client=t,this.listFavorites=n=>this.client.get("/accounts/{accountId}/favorites",{params:{path:{accountId:n}}}),this.addFavorites=(n,s)=>this.client.post("/accounts/{accountId}/favorites/bulk",{params:{path:{accountId:n}},body:{favorites:s.map(o=>({entityType:"product",entityId:String(o)}))}}),this.removeFavorite=(n,s)=>this.client.delete("/accounts/{accountId}/favorites/{entityType}/{entityId}",{params:{path:{accountId:n,entityType:"product",entityId:String(s)}}})}}const yT=()=>{const e=nd();return S.useMemo(()=>new AT(e),[e])};class es{constructor(){}static getInstance(){return es.instance||(es.instance=new es),es.instance}get(t){try{const n=localStorage.getItem(t);return n===null?null:JSON.parse(n)}catch(n){return z.error("LocalStorageAdapter: read failed",n,{key:t}),null}}set(t,n){try{return localStorage.setItem(t,JSON.stringify(n)),!0}catch(s){return z.error("LocalStorageAdapter: write failed",s,{key:t}),!1}}remove(t){try{return localStorage.removeItem(t),!0}catch(n){return z.error("LocalStorageAdapter: remove failed",n,{key:t}),!1}}has(t){try{return localStorage.getItem(t)!==null}catch(n){return z.error("LocalStorageAdapter: has check failed",n,{key:t}),!1}}}const qi=es.getInstance(),Xi="favorites",wr=()=>{const e=qi.get(Xi);return!e||!Array.isArray(e)?[]:e.filter(t=>typeof t=="number"&&!isNaN(t)&&t>0)},cd=e=>{qi.set(Xi,e)},OT=()=>{qi.remove(Xi)},RT=e=>{var n;const t=e.breadcrumbs;if(t!=null&&t.length)return(n=t[t.length-2])==null?void 0:n.name},DT=(e,t)=>{var n,s;return(s=(n=e.colors)==null?void 0:n.find(o=>String(o.id)===t))==null?void 0:s.name},ld=(e,t)=>R(f({product_style_id:String(e.product_id),product_style_name:e.name},t?{product_color:DT(e,t)}:{}),{product_category:RT(e)}),Xb=()=>{$({event:"lab_favorites_start"})},$b=(e,t)=>{$(f({event:"lab_favorites_product_selected"},ld(e,t)))},Zb=(e,t)=>
187{$(f({event:"lab_favorites_product_details"},ld(e,t)))},Kb=()=>{$({event:"lab_favorites_product_browse"})},Jb=()=>{$({event:"lab_favorites_click",interaction_action:"undo favorite"})},eM=()=>{$({event:"lab_favorites_click",interaction_action:"favorited"})},vT=()=>{$({event:"plp_interaction",interaction_category:"favorites in catalog",interaction_action:"clicked go to favorites",source:"lab"})},PT=()=>{const{pushSuccessNotification:e}=ji(),t=_n();return S.useCallback(()=>{const n=()=>{vT(),t("/favourite-products")};e(C.jsxs(Bs,{sx:{display:"flex",alignItems:"center",gap:1},children:[C.jsx(Bt,{variant:"paragraphDefault",children:"Added to favorites"}),C.jsx(rn,{variant:"link",size:"small",onClick:n,"data-testid":"ndx-favorite-added-go-to-favorites",children:"Go to Favorites"})]}))},[t,e])},LT=({onUndo:e})=>{const{pushInfoNotification:t,closeSnackbar:n}=ji();return S.useCallback(s=>{const o=`favorite-removed-${s}`,r=()=>{n(o),e(s)};t(C.jsxs(Bs,{sx:{display:"flex",flexDirection:"column",alignItems:"flex-start"},children:[C.jsx(Bt,{variant:"paragraphDefault",sx:{margin:0},children:"Removed from favorites"}),C.jsx(Tu,{button:!0,onClick:r,"data-testid":"ndx-favorite-removed-undo",children:"Undo"})]}),{key:o})},[t,n,e])},Da=["favorites"],uo=()=>{const{data:e}=lo(),t=yT(),n=Su(),s=[...Da,e==null?void 0:e.id];return{account:e,repository:t,invalidate:()=>n.invalidateQueries({queryKey:Da}),queryClient:n,favoritesKey:s}},tM=()=>{const{account:e,repository:t}=uo();return ka({queryKey:[...Da,e==null?void 0:e.id],queryFn:()=>P(void 0,null,function*(){return e?t.listFavorites(e.id):wr().map(n=>({entityId:String(n),entityType:"product"}))})})},NT=({notify:e=!0}={})=>{const{repository:t,account:n,invalidate:s,queryClient:o,favoritesKey:r}=uo(),a=PT();return nt({mutationFn:i=>P(void 0,null,function*(){if(n)return t.addFavorites(n.id,[i]);const c=wr();c.includes(i)||cd([...c,i])}),onMutate:i=>P(void 0,null,function*(){yield o.cancelQueries({queryKey:r});const c=o.getQueryData(r);return o.setQueryData(r,l=>{const d=String(i);return l!=null&&l.some(_=>_.entityId===d)?l:[...l!=null?l:[],{entityId:d,entityType:"product"}]}),{previousFavorites:c}}),onError:(i,c,l)=>{l!=null&&l.previousFavorites&&o.setQueryData(r,l.previousFavorites)},onSuccess:()=>{e&&a()},onSettled:()=>{s()}})},nM=()=>{const{account:e,repository:t,invalidate:n,queryClient:s,favoritesKey:o}=uo(),{mutate:r}=NT({notify:!1}),a=LT({onUndo:r});return nt({mutationFn:i=>P(void 0,null,function*(){if(e)return t.removeFavorite(e.id,i);cd(wr().filter(c=>c!==i))}),onMutate:i=>P(void 0,null,function*(){yield s.cancelQueries({queryKey:o});const c=s.getQueryData(o);return s.setQueryData(o,l=>(l!=null?l:[]).filter(d=>d.entityId!==String(i))),{previousFavorites:c}}),onError:(i,c,l)=>{l!=null&&l.previousFavorites&&s.setQueryData(o,l.previousFavorites)},onSuccess:(i,c)=>{a(c)},onSettled:()=>{n()}})},wT=()=>{const{account:e,repository:t,invalidate:n}=uo();return nt({mutationFn:()=>P(void 0,null,function*(){if(!e)return;const s=wr();s.length!==0&&(yield t.addFavorites(e.id,s),OT())}),onSuccess:n})},bT=()=>{var o;const{account:e}=uo(),{mutate:t}=wT(),n=S.useRef(null),s=(o=e==null?void 0:e.id)!=null?o:null;S.useEffect(()=>{if(s===null){n.current=null;return}n.current!==s&&(n.current=s,t(void 0,{onError:()=>{n.current=null}}))},[s,t])};function MT(){const e=_n(),[t,n]=S.useState(null);IT(),bT(),S.useEffect(()=>{t&&e(t)},[t]);const s=S.useMemo(()=>({setNavigateTo:n}),[n]);return C.jsx(ST,{hooks:s})}const dd=h("router/LOCATION_CHANGE"),ud=({children:e})=>{const t=un(),n=ps();return S.useEffect(()=>{t(dd(n))},[n,t]),C.jsx(C.Fragment,{children:e})},UT={children:N.node};ud.propTypes=UT;const $i=()=>{const e=dt.get("_profiles_user");return!!e&&e!=="none"},xT=({children:e})=>{const{isAuthenticated:t,user:n,logout:s}=i1();return S.useEffect(()=>{const o=()=>{$i()||!t&&!n||s({openUrl:!1})};o();const r=()=>{document.visibilityState==="visible"&&o()};return document.addEventListener("visibilitychange",r),()=>{document.removeEventListener("visibilitychange",r)}},[t,n,s]),C.jsx(C.Fragment,{children:e})},FT=({children:e})=>{const{loginSilently:t}=Qt();return S.useEffect(()=>{t()},[]),C.jsx(C.Fragment,{children:e})};function _d(){const t=new URLSearchParams(window.location.search).get("impersonate");if(t)try{return window.atob(t)}catch(n){return t}}
187function pd(e,t,n){return e?{email:n!=null?n:"",impersonated:{originalEmail:t}}:{email:t}}const VT=["login_required","consent_required","interaction_required"],kT=e=>{var t;return VT.includes((t=e==null?void 0:e.error)!=null?t:"")},gd=(e,t)=>P(void 0,null,function*(){try{yield e()}catch(n){kT(n)||z.warning(t,n instanceof Error?n:new Error(String(n)))}}),HT=({children:e})=>{var a,i;const t=i1(),n=(i=(a=t.user)==null?void 0:a.internal)!=null?i:!1,s=S.useMemo(_d,[]),o=!!(s&&n),r=S.useMemo(()=>{var l,d,_,u;const c=t.user?pd(o,(l=t.user.email)!=null?l:"",s):void 0;return{user:t.user?{id:(d=t.user.sub)!=null?d:"",email:(_=c==null?void 0:c.email)!=null?_:"",isInternal:n!=null?n:!1,fullName:(u=t.user.name)!=null?u:"",impersonated:c==null?void 0:c.impersonated}:void 0,identityProvider:"auth0",loginWithPopup:()=>{var O;const E=(O=document.querySelector("ci-accounts"))==null?void 0:O.shadowRoot,T=E==null?void 0:E.querySelector('[data-testid="my-account-login"]');T==null||T.click()},loginWithRedirect:E=>P(void 0,null,function*(){yield t.loginWithRedirect({appState:E?{returnTo:E}:void 0})}),loginSilently:()=>gd(()=>t.getAccessTokenSilently({detailedResponse:!0}),"Auth0 silent authentication failed"),getTokens:()=>P(void 0,null,function*(){const{id_token:E,access_token:T}=yield t.getAccessTokenSilently({detailedResponse:!0});return{idToken:E,accessToken:T}}),logout:()=>P(void 0,null,function*(){try{yield t.logout({openUrl:!1})}finally{window.location.href="/auth/logout"}}),isLoading:t.isLoading}},[t,o,s]);return C.jsx(Yi.Provider,{value:r,children:e})},GT=({children:e})=>{const t=_n(),n=S.useCallback(s=>{window.history.replaceState({},document.title,window.location.pathname+window.location.hash);const o=s==null?void 0:s.returnTo,r=o&&o.startsWith("/")&&!o.startsWith("//")?o:"/";t(r,{replace:!0})},[t]);return C.jsx(Cu,{domain:K.auth0Domain,clientId:K.auth0ClientId,onRedirectCallback:n,cacheLocation:"localstorage",authorizationParams:{redirect_uri:window.location.origin,audience:K.auth0Audience},children:C.jsx(HT,{children:C.jsx(xT,{children:C.jsx(FT,{children:e})})})})},BT={children:N.node},Ed=({children:e})=>{const t=S.useMemo(()=>new Iu({issuer:K.profilesUrl,clientId:K.profilesClientId,redirectUri:K.profilesRedirectUri,logoutUri:K.profilesLogoutUri,redirectToLogoutUriAfterCrossTabLogout:!1}),[]),[n,s]=S.useState(void 0),[o,r]=S.useState(void 0),[a,i]=S.useState(!0),c=S.useMemo(_d,[]),l=S.useMemo(()=>({logout:()=>P(void 0,null,function*(){return t.logout(!0,!1)}),loginWithPopup:()=>{var u;const d=(u=document.querySelector("ci-accounts"))==null?void 0:u.shadowRoot,_=d==null?void 0:d.querySelector('[data-testid="my-account-login"]');_==null||_.click()},loginWithRedirect:d=>P(void 0,null,function*(){return t.loginWithRedirect()}),loginSilently:()=>gd(()=>t.loginSilently(),"Profiles silent authentication failed"),getTokens:()=>P(void 0,null,function*(){const{id_token:d,access_token:_}=yield t.getTokensSilently();return{idToken:d,accessToken:_}}),identityProvider:"profiles",user:n,isLoading:a}),[t,n,o,a]);return S.useEffect(()=>{P(void 0,null,function*(){t.subscribe(({isAuthenticated:_,userInfo:u,iat:E})=>{if(!_||!u||!E)return;const T=!!u.internal,I=pd(!!(c&&T),u.email,c);r(E),s({id:u.sub,isInternal:T,email:I.email,fullName:u.name.trim().split("@")[0],impersonated:I.impersonated})}),dt.get("_profiles_user")?yield t.start():(yield t.isAuthenticated())&&(yield t.logout(!0,!1)),i(!1)})},[]),C.jsx(Yi.Provider,{value:l,children:e})};Ed.propTypes=BT;const zT=e=>P(void 0,null,function*(){const n=new TextEncoder().encode(e);return crypto.subtle.digest("SHA-1",n).then(s=>Array.from(new Uint8Array(s)).map(r=>r.toString(16).padStart(2,"0")).join(""))}),WT=({id:e,email:t})=>{const n=S.useMemo(()=>({id:String(e),email:t}),[e,t]);return Au(n),null},YT=({children:e})=>{const{user:t}=Qt(),{data:n,isLoading:s}=lo(),o=!!(n&&t&&!s);return S.useEffect(()=>{o&&zT(t.email).then(r=>{$({event:"lab_signin_success",account_id:n.id,account_token:`${n.id}-${r.substring(0,5)}`})}).catch(r=>{z.warning("AuthSuccessTracker: lab_signin_success event dropped",r,{accountId:n.id})})},[n]),C.jsxs(C.Fragment,{children:[o&&C.jsx(WT,{id:n.id,email:t.email}),e]})},Oc=({children:e})=>{const{loginSilently:t}=Qt(),n=S.useRef(t);return S.useEffect(()=>{n.current=t},[t]),S.useEffect(()=>{const s=()=>{n.current()};window.addEventListener(Ec,s);const o=()=>{document.visibilityState==="visible"&&n.current()};return document.addEventListener("visibilitychange",o),()=>{window.removeEventListener(Ec,s),document.removeEventListener("visibilitychange",o)}},[]),e},jT="profiles",QT=()=>{const e=S.useMemo(()=>$i(),[]),{variation:t,isLoading:n}=Is(Qh,{attributes:{is_authenticated:e}});
187return n?{identityProvider:jT,isLoading:!0}:{identityProvider:t==="test"?"auth0":"profiles",isLoading:!1}},qT=({children:e})=>{const{identityProvider:t,isLoading:n}=QT();return n?null:t==="auth0"?C.jsx(GT,{children:C.jsx(Oc,{children:e})}):C.jsx(Ed,{children:C.jsx(Oc,{children:e})})},XT=({children:e})=>{const{user:t,isLoading:n}=Qt();return S.useEffect(()=>{n||$({event:"lab_async_load",logged_in:!!t})},[n]),C.jsx(C.Fragment,{children:e})},$T=({children:e})=>{const{user:t}=Qt(),n=!!(t!=null&&t.email),{data:s,isInitialLoading:o}=lo(),r=n?void 0:Gi();return S.useEffect(()=>{if(!window.FS||n&&o)return;const a=(s==null?void 0:s.id)||r;a&&window.FS.identify(a.toString())},[n,o,s==null?void 0:s.id,r]),e},ZT=({children:e})=>{const{user:t}=Qt(),n=!!(t!=null&&t.email),{data:s,isInitialLoading:o}=lo(),r=n?void 0:Gi();return S.useEffect(()=>{if(n&&o)return;const a=(s==null?void 0:s.id)||r;a&&Ci.identify(a.toString())},[n,o,s==null?void 0:s.id,r]),e};function KT(){return{}}const JT=S.createContext(null),eS=({children:e})=>{const[t,n]=S.useState(()=>{const i=Q_(),c=KT();if(Object.keys(c).length>0){const l=f(f({},i),c);return So(l),l}return i}),s=S.useCallback((i,c)=>{n(l=>{const d=R(f({},l),{[i]:c});return So(d),d})},[]),o=S.useCallback(i=>{n(c=>{const _=c,{[i]:l}=_,d=ct(_,[go(i)]);return So(d),d})},[]),r=S.useCallback(()=>{n({}),So({})},[]),a=S.useCallback(i=>i in t,[t]);return C.jsx(JT.Provider,{value:{overrides:t,setOverride:s,clearOverride:o,clearAllOverrides:r,hasOverride:a},children:e})};let Ls={value:void 0,changedAt:void 0};const sM=e=>{e!==Ls.value&&(Ls={value:e,changedAt:Date.now()})},tS=()=>({canvasToolbarFlagValue:Ls.value,msSinceCanvasToolbarFlagChange:Ls.changedAt?Date.now()-Ls.changedAt:void 0}),nS={store:N.object.isRequired},sS=new yu({defaultOptions:{queries:{refetchOnWindowFocus:!1,networkMode:"offlineFirst"},mutations:{networkMode:"offlineFirst"}}}),oS=({children:e})=>{new URLSearchParams(window.location.search).get("dev");const n=Ga;return C.jsx(Nu,{client:sS,children:C.jsx(eS,{children:C.jsxs(Yh,{children:[n,e]})})})};function rS(){const e=wu();return S.useEffect(()=>{e&&jh(e)},[e]),null}const aS={sdkKey:"9Wgn5aUuEMrY4Mi9T84XX"},iS=()=>{const e=document.activeElement;return f({activeElement:e?{tagName:e.tagName,className:e.className,testId:e.getAttribute("data-testid")}:null,hash:window.location.hash},tS())},cS=(e,t)=>f({tag:"react-error-boundary",componentStack:t==null?void 0:t.componentStack},(e==null?void 0:e.name)==="NotFoundError"&&/removeChild/.test(e==null?void 0:e.message)?iS():{});class va extends S.Component{render(){const t=C.jsx(Ou,{store:this.props.store,children:C.jsx(oS,{children:C.jsx(Rf,{children:C.jsx(id,{children:C.jsx(qT,{children:C.jsx(ud,{children:C.jsx(XT,{children:C.jsx(YT,{children:C.jsx($T,{children:C.jsx(ZT,{children:C.jsx(hm,{children:C.jsx(MT,{})})})})})})})})})})})},"provider");return C.jsx(Ru,{instance:z,children:C.jsx(o1,{level:"error",errorMessage:"React error boundary caught",extra:cS,children:C.jsxs(Du,{config:aS,children:[C.jsx(rS,{}),C.jsx(vu,{children:C.jsx(Pu,{children:C.jsx(Lu,{path:"/*",element:t})})})]})})})}}Vt(va,"displayName","Ndx"),Vt(va,"propTypes",nS);const Gt={MAX_DESIGNS:5,MAX_ICONS:50,SNAPSHOT:"ndx-snapshot",TIMESTAMP:"ndx-timestamp",VALID_DURATION:29*(24*60*60*1e3),VERSION:"ndx-snapshot-version"};function lS(e={}){const t=f({key:"snapshot",timestamp:Date.now(),versionKey:"version",version:null,deserialize:s=>s,serialize:s=>s,readError:s=>z.error("Failed to retrieve initial state from localStorage:",s),writeError:s=>z.error("Unable to persist state to localStorage:",s),isValidData:()=>!0,blackListedTypes:[],writeDelay:3e3},e),n=bu((s,o)=>{const r=o.getState(),a=JSON.stringify(t.serialize(r));try{t.blackListedTypes.indexOf(s.type)===-1&&(localStorage.setItem(t.key,a),localStorage.setItem(t.versionKey,t.version),localStorage.setItem(Gt.TIMESTAMP,t.timestamp))}catch(i){t.writeError(i)}},t.writeDelay);return window.addEventListener("pagehide",()=>n.flush()),s=>(o,r)=>{let a=r;try{const c=localStorage.getItem(t.key);if(c){const l=t.deserialize(JSON.parse(c));t.isValidData(t.version,l)&&(a=l)}}catch(c){t.readError(c)}const i=s(o,a);return R(f({},i),{dispatch(c){return i.dispatch(c),n(c,i),c}})}}function hd(){try{const e=window.localStorage,t="__storage_test__";return e.setItem(t,t),e.removeItem(t),!0}catch(e){return!1}}const Zr={productSelected:(e,{payload:t})=>{var i,c;const n=fa(e)(t.styleId),s=(i=n==null?void 0:n.colors)==null?void 0:i.find(l=>(l==null?void 0:l.id)===t.styleId),o=t.styleId===((c=qe(e))==null?void 0:c.id),r=gS(t.inSkirt,o),a=ES(t.inSkirt);return{event:"lab_add_products_selected",color:Be(s==null?void 0:s.name),style:n==null?void 0:n.id,interaction_label:r,source:a}},productAdded:(e,{payload:t})=>{var l,d;const{products:n}=t,s=(n==null?void 0:n.length)>
1870?n[0]:null,o=fa(e)(s==null?void 0:s.styleId),r=(l=o==null?void 0:o.colors)==null?void 0:l.find(_=>(_==null?void 0:_.id)===(s==null?void 0:s.colorId)),a=s.styleId===((d=qe(e))==null?void 0:d.id),i=uS(t.urlPath,a),c=pS(t.urlPath);return{event:"lab_add_products_added",product_style_id:o==null?void 0:o.id,product_style_name:o==null?void 0:o.name,product_color:Be(r==null?void 0:r.name),product_category:o==null?void 0:o.primary_category_name,source:c,interaction_label:i,interaction_category:"lab_add_product"}},browseMore:(e,{payload:t})=>{const{source:n,interaction_label:s}=t;return{event:"lab_add_products_browse_more",source:n,interaction_label:s}}},dS={[g.ADD_ITEMS_PICK_STYLE]:Zr.productSelected,[X.ADD_PRODUCT]:Zr.productAdded,[g.ADD_ITEMS_BROWSE_MORE]:Zr.browseMore};function uS(e,t){return e.includes("addItems/product")||e.includes("addItems/color")?t?"add another color":"add this product":e.includes("productCatalogOrderMore")&&e.includes("quoteFormPath=true&addItemsPath=true")?"browse more styles":e.includes("productCatalogOrderMore")?"browse more":e.includes("addItems/quote")?t?"add another color":"add style":"add this product"}function fd(){return window.location.hash.includes(Wi)}function _S(){return fd()||Ae.get(Am)===Wi}function pS(e){return e.includes(J3)||e.includes(ed)||e.includes("productCatalogOrderMore")&&e.includes("inSkirt=true")?"complements skirt":_S()?td:"complements quantity"}function gS(e,t){return t?"add another color":e?"add this product":"add style"}function ES(e){if(e)return"complements skirt";if(fd())return td;const t=window.location.hash;return t.includes(J3)||t.includes(ed)?"complements skirt":"complements quantity"}const Rc=e=>e.art.get("browsedCategories").toArray(),oM=e=>e.art.get("categoryNames"),Kr=e=>e.art.get("categoryNames").toJS(),rM=e=>{const t=e.art.get("recentlyUsedArt").toArray().reverse();return c1(t,"id")},hS=e=>e.art.get("categories"),aM=m([hS],e=>e.toArray()),iM=e=>e.art.get("error"),cM=e=>e.art.get("root"),lM=e=>e.art.get("lastSearch"),dM=e=>e.art.get("clipartAutofillData"),fS=e=>e.art.get("searchHistory"),uM=m([fS],e=>e.map(t=>({k:t})).toArray().reverse()),md=e=>e!=null&&e.startsWith("searchArt/")&&e.split("/")[1]||null,Td=e=>t=>{var o;if(!t)return null;const n=(o=t.match(e))==null?void 0:o[0];return n?n.split("/")[1]:null},Zi=Td(/cat\/\d+/g),Ki=Td(/sub\/\d+/g),Jo=(e,t={})=>{var n;return((n=t[e])==null?void 0:n.replace("/","&"))||null},mS=(e,t)=>{const n=Jo(Zi(e),t),s=Jo(Ki(e),t);return n&&s?`${n}/${s}`:n||s||null},Dc=(e,t,n)=>n!=null&&n.startsWith("searchArt/")?null:e.map(s=>{const o=Zi(s)||Ki(s);return Jo(o,t)}).join("/"),TS=e=>{const t=Ki(e),n=Zi(e);return t||n||null},br=({iconIds:e,iconTypes:t},{getById:n,categoryNames:s,targetIconType:o})=>{if(!e||!t)return null;const r=[];return e.forEach((a,i)=>{const c=t[i];if(o===L.CLIPART&&c===L.CLIPART){const{clipartId:l,categoryPath:d}=n(a);r.push({event:"art_remove",type:t[i],art_id:l,art_category_path:mS(d,s),art_search_term:md(d)})}else o===L.UPLOAD&&c===L.UPLOAD?r.push({event:"lab_upload_removed"}):o===L.TEXT&&c===L.TEXT?r.push({event:"text_removed"}):vc(o)&&c===L.NAMES?r.push({event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:"names_enabled",tool_value:"off",tool_source:"panel"}):vc(o)&&c===L.NUMBERS&&r.push({event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:"numbers_enabled",tool_value:"off",tool_source:"panel"})}),r},vc=e=>e==="NAMES_NUMBERS",SS=e=>{const t=Mu.sha256;return e?t(e):""},CS=(e,t)=>{if(!e||!t)return null;const n=(o,r,a)=>{const i=r[a];return Array.isArray(o[a])?o[a].push(i):o[a]=Array.isArray(i)?i:[i],o};let s=Object.keys(e).reduce((o,r)=>n(o,e,r),{});return s=Object.keys(t).reduce((o,r)=>n(o,t,r),s),s},IS=e=>e.reduce((t,n)=>CS(t,n),{}),AS=(e,t)=>{if(!(e!=null&&e.colors)||!t||!Array.isArray(Object.values(t))||Object.values(t).length<=0)return null;const n=Object.values(t)[0],s=e.colors.find(o=>(o==null?void 0:o.id)===n);return`${s==null?void 0:s.id}_${s==null?void 0:s.name}`},yS=e=>e!=null&&e.primary_category_id?e!=null&&e.primary_category_name?`${e.primary_category_id}_${e.primary_category_name}`:e.primary_category_id:null,Fo=({getIconById:e,state:t,iconId:n})=>{const s=e(t)(n);return(s==null?void 0:s.type)===L.TEXT},Oo=({transforms:e,iconIds:t,getIconById:n,state:s})=>{var o,r;return e?(o=e==null?void 0:e.some)==null?void 0:o.call(e,a=>{var i;return((i=a==null?void 0:a.icon)==null?void 0:i.type)===L.TEXT}):(r=t==null?void 0:t.some)==null?void 0:r.call(t,a=>Fo({getIconById:n,state:s,iconId:a}))},On=({getIconById:e,state:t,iconId:n})=>{const s=e(t)(n);return(s==null?void 0:s.type)===L.UPLOAD},nn=({getIconById:e,state:t,iconId:n})=>{const s=e(t)(n);return(s==null?void 0:s.type)===L.UPLOAD&&Es((s==null?void 0:s.key)||(s==null?void 0:s.url))},Ro=({transforms:e,iconIds:t,getIconById:n,state:s})=>{var o,r;return e?(o=e==null?void 0:e.some)==null?void 0:o.call(e,a=>{var i;return((i=a==null?void 0:a.icon)==null?void 0:i.type)===L.UPLOAD}):(r=t==null?void 0:t.some)==null?void 0:r.call(t,a=>On({getIconById:n,state:s,iconId:a}))},Vo=({transforms:e,iconIds:t,getIconById:n,state:s})=>{var o,r;return e?(o=e==null?void 0:e.some)==null?void 0:o.call(e,a=>{var i,c,l;return((i=a==null?void 0:a.icon)==null?void 0:i.type)===L.UPLOAD&&Es(((c=a==null?void 0:a.icon)==null?void 0:c.key)||((l=a==null?void 0:a.icon)==null?void 0:l.url))}):(r=t==null?void 0:t.some)==null?void 0:r.call(t,a=>nn({getIconById:n,state:s,iconId:a}))},Rn=({getIconById:e,state:t,iconId:n})=>{const s=e(t)(n);return(s==null?void 0:s.type)===L.CLIPART},Do=({transforms:e,iconIds:t,getIconById:n,state:s})=>{var o,r;return e?(o=e==null?void 0:e.some)==null?void 0:o.call(e,a=>{var i;return((i=a==null?void 0:a.icon)==null?void 0:i.type)===L.CLIPART}):(r=t==null?void 0:t.some)==null?void 0:r.call(t,a=>Rn({getIconById:n,state:s,iconId:a}))},$n=e=>e?{event:"lab_share",share_type:e}:null,Pc=e=>e?{event:"lab_zoom",tool_value:e}:null,Jr=({quotePath:e,eventName:t})=>!t||!e?null:{event:t,quote_path:e},Lc=e=>e?{event:"lab_contact_us",contact_type:e}:null,Ji={SHIPPING:{ORGANIZER:"single",COMMUNITY:"multiple"},ORGANIZER:"single",COMMUNITY:"group"},OS=e=>Ji.SHIPPING[e==null?void 0:e.shipping],RS=e=>Ji[e==null?void 0:e.sizes],DS=e=>Ji[e==null?void 0:e.payment],vS=e=>({shipping:OS(e),sizes:RS(e),payment:DS(e)}),Nc=({project:e,eventName:t})=>{const{shipping:n,sizes:s,payment:o}=vS(e);return!n||!o||!s?null:{event:t,oo_shipping:n,oo_sizes:s,oo_payment:o}},PS=e=>{if(!e)return null;const t=e.split("/");return{rootCategory:Bo("All Products"),parentCategory:t.length>0?t[1]:null,primaryCategory:t.length>1?t[2]:null}},Zt=e=>e?1:0,LS=e=>{if(!(e!=null&&e.colors)||!(e!=null&&e.imageType))return null;const{colors:t,imageType:n}=e;return{spotColors:N3({colors:t,imageType:n}),colorMode:xi({colorMode:void 0,imageType:n})}},NS=(e,t)=>{var s;if(T3(t)||dh(t)){e.warning("Crop color re-analysis did not finish in time",t,{fingerprint:`crop_reanalysis_incomplete:${t.name}`,title:`Crop re-analysis incomplete: ${t.name}`,serverErrorName:(s=t.data)==null?void 0:s.name});return}const n=pt(t)?t.response.status:void 0;e.error("Crop color re-analysis failed",t,{fingerprint:`crop_reanalysis_failed:${n!=null?n:"network"}`,title:`Crop re-analysis failed: ${n!=null?n:"network"}`,status:n})},wS=({children:e,className:t,domRef:n,style:s})=>{const o=`ndx-Menu${t?` ${t}`:""}`;return C.jsx(Bs,{ref:n,className:o,style:s,children:e})},bS=({image:e,text:t})=>typeof e!="string"?e!=null?e:null:C.jsx("img",{draggable:!1,alt:typeof t=="string"?t:"",className:"ndx-MenuButton-image","data-testid":"MenuButton-image",src:e}),MS=({children:e,icon:t})=>e?C.jsx("div",{className:"ndx-MenuButton-icon","data-testid":"MenuButton-icon",children:e}):t?C.jsx("div",{className:"ndx-MenuButton-icon","data-testid":"MenuButton-icon",dangerouslySetInnerHTML:Qi(t)}):C.jsx("div",{className:"ndx-MenuButton-icon","data-testid":"MenuButton-icon"}),wc=({ariaLabel:e,children:t,className:n,disabled:s=!1,icon:o,image:r,prepe
187ndLabel:a,text:i="",onClick:c})=>{const l=["ndx-MenuButton",c?"isActionable":"",s?"isDisabled":"",n].filter(Boolean).join(" "),d=typeof i=="object"||i.length>0;return!c&&!d?C.jsx("div",{className:l}):C.jsxs("div",{className:l,role:"button","aria-label":d?void 0:e,onClick:s?void 0:c!=null?c:void 0,"data-testid":typeof i=="string"&&i||"MenuButton",children:[C.jsx(MS,{icon:o,children:t}),r?C.jsx(bS,{image:r,text:i}):null,d?C.jsxs(Bt,{variant:"uiTextTiny","data-testid":"MenuButton-text",className:"ndx-MenuButton-text",children:[(a==null?void 0:a.length)&&C.jsxs("span",{className:"ndx-MenuButton-prependLabel",children:[a," "]}),i]}):null]})},Sd=({backText:e,className:t,confirm:n=!1,domRef:s,isNamesNumbersNav:o,isRemovable:r,next:a,noBack:i=!1,showBackIconAndText:c,title:l,onBack:d,onClose:_})=>{const u=wn("ndx-title","ndx-NavHeader",t);let E=null;const T=n?{text:a?"Next":"Done"}:{icon:s4,ariaLabel:"Close"},O=S.createElement(wc,R(f({},T),{key:"close",className:"ndx-NavHeader-close",onClick:_}));if(!i){const A=r?{text:"Remove"}:{icon:e4,ariaLabel:"Go back"};let D="ndx-NavHeader-back";c&&(A.text=e||"Back",D=wn(D,"backIconAndText")),E=S.createElement(wc,R(f({},A),{key:"back",className:D,onClick:d}))}const I=wn("ndx-NavHeader-title",{"ndx-NavHeader-title--isNamesAndNumbers":o});return C.jsxs(wS,{className:u,domRef:s,children:[E,C.jsx(Bt,{component:"h5",variant:"uiTextSmall","data-testid":"ndx-header-title",className:I,children:l}),O]})};Sd.displayName="NavHeader";const Cd=S.forwardRef(({children:e,className:t,direction:n="vertical",getScroller:s,style:o,dataTestId:r},a)=>{const i=S.useRef(null),c=u=>{i.current=u,typeof a=="function"?a(u):a&&(a.current=u)},l=u=>{const E=s?s():i.current;if(!E)return;const{scrollHeight:T,scrollTop:O,offsetHeight:I}=E;if(I>=T)return;const{deltaY:A}=u;u.stopPropagation();const D=O+A;I+D>=T||A>I?(u.preventDefault(),E.scrollTop=T):(D<0||-A>I)&&(u.preventDefault(),E.scrollTop=0)};S.useEffect(()=>{const u=i.current;return u&&u.addEventListener("wheel",l,{passive:!1}),()=>{u&&u.removeEventListener("wheel",l)}},[s]);const d=n==="horizontal",_=f({overflowX:d?"auto":"hidden",overflowY:d?"hidden":"auto"},o);return C.jsx("div",{ref:c,className:t,style:_,"data-testid":r,children:e})});Cd.displayName="ScrollingContainer";const US=Cd,Id=({camouflageHeader:e=!1,children:t,className:n,confirm:s=!1,contentClassName:o,"data-testid":r,isNamesNumbersNav:a,navBackText:i,scrollerRef:c,scrolling:l=!0,showBackIconAndText:d=!1,style:_={},title:u,onClick:E,onNavBack:T,onNavClose:O})=>{const I=wn(o,"ndx-ContentCard-content"),A=wn({"camouflage-Header":e});return C.jsxs("div",{"data-testid":r,className:wn(n,"ndx-ContentCard"),style:_,onClick:E,children:[C.jsx(Sd,{backText:i,className:A,confirm:s,isNamesNumbersNav:a,title:u,onBack:T,onClose:O,showBackIconAndText:d}),l?C.jsx(US,{className:I,ref:c,children:t}):t]})};Id.displayName="ContentCard";const Ad=e=>{const t=wn("ndx-Spinner-animate",{"ndx-Spinner-animate--success":e.success});return C.jsx("div",{className:"ndx-Spinner","aria-busy":"true",children:C.jsx("div",{className:t})})},xS={success:N.bool};Ad.propTypes=xS;const FS=`<svg 188 width="22" 189 height="22" 190 viewBox="0 0 22 22" 191 fill="none" 192 xmlns="http://www.w3.org/2000/svg"> 193 <path 194 fillRule="evenodd" 195 clipRule="evenodd" 196 d="M1 9V21H9L9 9H21V1H9H1V9Z" 197 fill="#F4F4F4" 198 /> 199 <path 200 d="M1 21H0.5V21.5H1V21ZM9 21V21.5H9.5V21H9ZM9 9V8.5H8.5V9H9ZM21 9V9.5H21.5V9H21ZM21 1H21.5V0.5H21V1ZM1 1V0.5H0.5V1H1ZM1.5 21V9H0.5V21H1.5ZM9 20.5H1V21.5H9V20.5ZM8.5 9L8.5 21H9.5V9H8.5ZM21 8.5H9V9.5H21V8.5ZM20.5 1V9H21.5V1H20.5ZM9 1.5H21V0.5H9V1.5ZM1 1.5H9V0.5H1V1.5ZM1.5 9V1H0.5V9H1.5Z" 201 fill="#4A4A4A" 202 /> 203</svg>`,bc={x:0,y:0,height:100,width:100,unit:"%"},VS=(e,t,n,s)=>e===0&&t===0&&n===1&&s===1,vo=e=>Math.min(1,Math.max(0,e)),kS=e=>({cropXPercent:vo((e==null?void 0:e.x)/100||0),cropYPercent:vo((e==null?void 0:e.y)/100||0),cropWidthPercent:vo((e==null?void 0:e.width)/100||1),cropHeightPercent:vo((e==null?void 0:e.height)/100||1)}),ko=(e,t="panel")=>({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"crop",tool_value:e,tool_source:t}),_M=()=>{var je,Je;const e=rr(),[t,n]=S.useState(""),s=S.useRef(),o=it(Hn),r=o,a=o3(),[i,c]=S.useState((r==null?void 0:r.crop)||bc),[l,d]=S.useState(!1),[_,u]=S.useState(1),[E,T]=S.useState(!1),O=un(),I=_n(),D=(Je=(je=ps().state)==null?void 0:je.source)!=null?Je:"panel",{mutateAsync:v}=tm(),{variation:w,isLoading:H}=Is(qh),Q=!H&&w==="test",se=S.useRef(!1);S.useEffect(()=>{H||se.current||!w||(se.current=!0,$({event:"ab_test_group",ab_test_name:"2026 03 11 reanalyze upload colors after cropping",ab_test_group:w,ab_test_location:"lab"}))},[w,H]);const oe=()=>{p.fireEvent("edit upload","crop tool","close"),$(ko("back",D)),I("/uploadTools")},Z=()=>{p.fireEvent("edit upload","crop tool","close"),$(ko("close",D)),I("/uploadTools")},F=(j,de)=>{c(de)},U=j=>{var de,Ge,be,et,$e;p.fireEvent("edit upload","crop tool","crop image"),(de=j==null?void 0:j.target)!=null&&de.className&&((Ge=j==null?void 0:j.target)!=null&&Ge.className.includes("ord-ne")||(be=j==null?void 0:j.target)!=null&&be.className.includes("ord-nw")||(et=j==null?void 0:j.target)!=null&&et.className.includes("ord-se")||($e=j==null?void 0:j.target)!=null&&$e.className.includes("ord-sw"))&&d(!0)},q=()=>{d(!1);const j=i.width*o.originalImageWidth/100,de=i.height*o.originalImageHeight/100;u(j/de)},re=()=>{p.fireEvent("edit upload","crop tool","reset"),$(ko("reset",D)),c(bc)},ee=({spotColors:j,colorMode:de,cropPercents:Ge,restored:be=!1})=>{O({type:ae.UPDATE_SPOT_COLORS,payload:R(f({iconId:o.id,spotColors:j,colorMode:de},Ge),{restored:be})})},Y=(j,de)=>{$({event:"lab_upload_color_reanalysis",interaction_action:"crop applied",pre_color_count:de}),v(f({key:o.key},j)).then(Ge=>{const be=LS(Ge);be&&(ee(R(f({},be),{cropPercents:j})),$({event:"lab_upload_color_reanalysis",interaction_action:"crop reanalysis complete",pre_color_count:de,post_color_count:be.spotColors.size,color_count_delta:be.spotColors.size-de}))}).catch(Ge=>NS(e,Ge))},ce=()=>{var yt,Tn,Sn;p.fireEvent("edit upload","crop tool","apply");const j=(Tn=(yt=o.spotColors)==null?void 0:yt.size)!=null?Tn:0,de=kS(i),{cropXPercent:Ge,cropYPercent:be,cropWidthPercent:et,cropHeightPercent:$e}=de;O(Oi(o,{xPercent:Ge,yPercent:be,widthPercent:et,heightPercent:$e}
203,!0,!0,D)),I("/uploadTools"),Q&&o.key&&(VS(Ge,be,et,$e)?o.originalSpotColors&&($({event:"lab_upload_color_reanalysis",interaction_action:"crop reset - colors restored",pre_color_count:j}),ee({spotColors:o.originalSpotColors,colorMode:(Sn=o.originalColorMode)!=null?Sn:o.colorMode,cropPercents:de,restored:!0})):Y(de,j))},_e=j=>C.jsx("div",{className:`corner-handle ${j}`,dangerouslySetInnerHTML:Qi(FS)}),rt=()=>C.jsxs("div",{className:"ndx-CropCard-crop-grid",children:[_e("handle-northwest"),C.jsx("div",{className:"handle handle-north handle-horizontal",children:" "}),_e("handle-northeast"),C.jsx("div",{className:"handle handle-west handle-vertical",children:" "}),C.jsx("div",{className:"handle handle-east handle-vertical",children:" "}),_e("handle-southwest"),C.jsx("div",{className:"handle handle-south handle-horizontal",children:" "}),_e("handle-southeast")]});return S.useEffect(()=>{if(o!=null&&o.url&&!t){if(n(a(o)),o!=null&&o.crop){const{crop:j}=o;c({x:j.get("xPercent")*100,y:j.get("yPercent")*100,width:j.get("widthPercent")*100,height:j.get("heightPercent")*100,unit:"%"})}u(o.width/o.height)}},[o,t,a]),r?C.jsx(Id,{contentClassName:"ndx-CropCard",title:"Crop",onNavBack:oe,onNavClose:Z,children:C.jsxs("div",{className:"ndx-CropCard-content",children:[C.jsx("div",{className:"ndx-CropCard-message",children:"Drag handles to crop. Any changes to your upload will be visible after crop is a
203pplied."}),C.jsx("div",{className:"ndx-CropCard-crop",children:t&&C.jsxs(Uu,{crop:i,className:"checkerboard",onDragStart:U,onDragEnd:q,onChange:F,ruleOfThirds:!0,renderSelectionAddon:rt,minHeight:50,minWidth:50,keepSelection:!0,aspect:l?_:void 0,style:i?{"--pos-x":`${i.x}%`,"--pos-y":`${i.y}%`,"--pos-width":`${i.width}%`,"--pos-height":`${i.height}%`}:void 0,children:[C.jsx("img",{draggable:!1,src:t,ref:s,alt:"Croppable Image Area",onLoad:()=>T(!0)}),!E&&C.jsx(Ad,{}),i&&C.jsx("div",{className:"ReactCrop__crop-mask"})]})}),C.jsxs("div",{className:"ndx-CropCard-actions",children:[C.jsx(rn,{id:"resetCrop","data-testid":"reset-crop",onClick:re,disabled:!i,fullWidth:!0,variant:as(rs.mediumAndAbove)?"link":"secondary",size:"large",children:"Reset"}),C.jsx(rn,{id:"applyCrop","data-testid":"apply-crop",onClick:ce,fullWidth:!0,variant:as(rs.mediumAndAbove)?"secondary":"primary",size:"large",children:"Apply"})]})]})}):null},Ue={start:(e,{payload:t})=>{var n;return(n=t==null?void 0:t.queryParams)!=null&&n.rs?{event:"lab_art_start",art_source:Zn(t.queryParams)}:null},browse:(e,{payload:t})=>{const n=Kr(e),s=TS(t.pathname);return{event:"lab_art_browse",art_category_path:Dc(Rc(e),n),art_search_term:null,art_has_results:null,art_category_id:s,art_category:Jo(s,n)}},search:(e,{payload:t})=>({event:"lab_art_search",art_search_term:t.category,art_has_results:t.resource.count>0,art_category_path:null,art_category:null,art_category_id:null}),add:(e,{payload:t})=>({event:"lab_art_add",art_id:t.icon.clipartId,art_category_path:Dc(Rc(e),Kr(e),t.icon.categoryPath),art_search_term:md(t.icon.categoryPath)}),remove:(e,{payload:t})=>br(t,{getById:ne(e),categoryNames:Kr(e),targetIconType:"CLIPART"}),editToolsResetToOriginal:(e,{payload:t})=>{const{source:n}=t;return n?{event:"lab_edit_tools",tool_icon_type:"art",tool_name:n==="canvas"?"reset":"reset_to_original",tool_value:null,tool_source:n}:null},editToolsSingleColor:(e,{payload:t,meta:n})=>{const{singleColor:s,source:o}=t,{iconType:r}=n;return!o||r!==L.CLIPART?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:o==="canvas"?"make_one_color_toggle":"make_one_color",tool_value:s?"on":"off",tool_source:o}},editToolsSpotColor:(e,{payload:t})=>{const{iconId:n,user:s,source:o}=t;return!o||!Rn({getIconById:ne,state:e,iconId:n})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"edit_colors",tool_value:s!=null&&s.name?Be(s==null?void 0:s.name):null,tool_source:o}},editToolsColor:(e,{payload:t})=>{const{color:n,iconId:s,source:o}=t;return!o||!Rn({getIconById:ne,state:e,iconId:s})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"edit_colors",tool_value:n!=null&&n.name?Be(n==null?void 0:n.name):null,tool_source:o}},editToolsChangeArt:(e,{payload:t})=>{const{source:n}=t;return n?{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"change",tool_value:null,tool_source:n}:null},editToolsCrop:(e,{payload:t})=>ko(t.action,t.source),editToolsDuplicate:(e,{payload:t})=>{const{source:n,iconType:s,iconsMap:o}=t,r=o==null?void 0:o.map(({sourceIconId:i})=>i),a=s==="upload"&&Vo({iconIds:r,getIconById:ne,state:e});return f({event:"lab_edit_tools",tool_icon_type:s,tool_name:"duplicate",tool_value:null,tool_source:n},a&&{upload_type:"ai-generator"})},editToolsRemoveWhite:(e,{payload:t})=>{const{iconId:n,transparency:s,source:o}=t;return!o||!Rn({getIconById:ne,state:e,iconId:n})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"remove_white",tool_value:s?"on":"off",tool_source:o}},editToolsSize:(e,{payload:t})=>{const{transforms:n,source:s}=t;return Do({transforms:n})?{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"resize",tool_value:null,tool_source:{drag:"canvas"}[s]||s}:null},editToolsRotation:(e,{payload:t})=>{const{iconId:n,source:s}=t;return!s||!Rn({getIconById:ne,state:e,iconId:n})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"rotate",tool_value:null,tool_source:s}},editToolsPositionCenter:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Do({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"center",tool_value:null,tool_source:n}},editToolsLayerForward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Do({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"layer_forward",tool_value:null,tool_source:n}},editToolsLayerBackward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Do({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"layer_backward",tool_value:null,tool_source:n}},editToolsHorizontalFlip:(e,{payload:t})=>{const{flip:n,iconId:s,source:o}=t;return!o||!Rn({getIconById:ne,state:e,iconId:s})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"flip_h",tool_value:n,tool_source:o}},editToolsVerticalFlip:(e,{payload:t})=>{const{flip:n,iconId:s,source:o}=t;return!o||!Rn({getIconById:ne,state:e,iconId:s})?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"flip_v",tool_value:n,tool_source:o}},editToolsInvertColors:(e,{payload:t})=>{const{icon:n,isInverted:s,source:o}=t;return!o||(n==null?void 0:n.type)!==L.CLIPART?null:{event:"lab_edit_tools",tool_icon_type:"art",tool_name:"invert_colors",tool_value:s?"on":"off",tool_source:o}}},HS={[g.ADD_ART]:Ue.start,[te.SEARCH_LOADED]:Ue.search,[te.ADD_ART]:Ue.add,[y.REMOVE]:Ue.remove,[y.CROP]:Ue.editToolsCrop,[y.DUPLICATE]:Ue.editToolsDuplicate,[y.RESET_CLIPART_COLORS]:Ue.editToolsResetToOriginal,[y.UPDATE_SINGLE_COLOR]:Ue.editToolsSingleColor,[y.CHANGE_COLOR]:Ue.editToolsColor,[te.CHANGE_SPOT_COLOR]:Ue.editToolsSpotColor,[g.ART_SWAP]:Ue.editToolsChangeArt,[te.UPDATE_TRANSPARENCY]:Ue.editToolsRemoveWhite,[y.RESIZE]:Ue.editToolsSize,[y.ROTATE]:Ue.editToolsRotation,[y.CENTER]:Ue.editToolsPositionCenter,[y.FORWARD]:Ue.editToolsLayerForward,[y.BACKWARD]:Ue.editToolsLayerBackward,[y.UPDATE_HORIZONTAL_FLIP]:Ue.editToolsHorizontalFlip,[y.UPDATE_VERTICAL_FLIP]:Ue.editToolsVerticalFlip,[y.TOGGLE_INVERTED_CLIPART]:Ue.editToolsInvertColors},GS={postalCodeChange:null},yd=Fn({name:"analytics",initialState:GS,reducers:{setPostalCodeChange:(e,t)=>
203{e.postalCodeChange=t.payload}}}),{setPostalCodeChange:BS}=yd.actions,zS=yd.reducer,WS=e=>e.analytics.postalCodeChange;function Od(e){return/^X{2,}/.test(e)}function YS(e){return/^Y/.test(e)}function Rd(e){return e.some(Od)}function pM(e){const t=jS(e.map(n=>n.name));return t.youth&&t.youth.length>7||t.adult&&t.adult.length>7}function Mc(e){if(Od(e)){const t=e.match(/X/g);return e.replace(/^X+/,t.length+"X")}else return e}function jS(e){return xu(e,t=>YS(t)?"youth":"adult")}function gM(e){return`${Mc(e[0])} - ${Mc(e[e.length-1])}`}function QS(e){const t={};return e.forEach(n=>{if(t[n.styleId]){const s={};s[n.productId]=n.sizes;let o=t[n.styleId];o=f(f({},o),s),t[n.styleId]=o}else{const s={};s[n.productId]=n.sizes,t[n.styleId]=s}}),t}function EM(e){const t={};if(e.length<2)e.length>0&&(t[e[0].productId]=To(e[0].sizes));else{const n=QS(e);Object.keys(n).forEach(s=>{const o=Object.keys(n[s]);if(o.length>1){let r=0;o.forEach(a=>{To(n[s][a]).length>1&&r++}),r>0?o.forEach(a=>{t[a]=n[s][a]}):o.forEach(a=>{t[a]=To(n[s][a])})}else o.forEach(r=>{t[r]=To(n[s][r])})})}return t}const qS=e=>{var n;const t=((n=e.sizesWithStatus)!=null?n:[]).filter(D7).map(s=>s.name);return Rd(t)},XS=e=>e.some(qS),hM="Price varies for 2XL+ sizes",Uc=m([e8],e=>XS(e.map(({style:t,color:n})=>{var s,o,r;return{sizesWithStatus:(r=(o=(s=t==null?void 0:t.colors)==null?void 0:s.find(a=>a.id===(n==null?void 0:n.id)))==null?void 0:o.sizesWithStatus)!=null?r:[]}}))),Dd=m([En],e=>e.some(t=>Rd(t.filter(n=>n>0).keySeq().toArray()))),xc=e=>dn(e)>0?Dd(e):void 0,$S={pendingAttribution:!1},vd=Fn({name:"favouriteAttribution",initialState:$S,reducers:{markAppliedFromFavourite:e=>{e.pendingAttribution=!0}},extraReducers:e=>{e.addMatcher(t=>t.type==="analytics/SAVE_ADD_CART"||t.type==="design/SAVE_SUCCESS",t=>{t.pendingAttribution=!1})}}),{markAppliedFromFavourite:fM}=vd.actions,Fc=e=>e.favouriteAttribution.pendingAttribution,ZS=vd.reducer,KS=e=>e.suggestions||{},Pd=m([KS],e=>Object.values(e)),mM=e=>t=>e.suggestions[t],JS={LOW_CONTRAST:1,LOW_RESOLUTION:2},TM={RESOLVED:1,UNRESOLVED:0},eC=e=>e?{}:{is_authenticated:$i()},ue={load:e=>{var t;return{event:"lab_load",product_style_id:Re(e),product_style_name:Hr(e),product_category:X6(e),product_color:(t=lt(e))==null?void 0:t.name,product_type:V2(e),lab_load_withdesign:dl(Ts(e)),color_count_limit:m8(e),ad_promo_source:"load",viewport:`${window.innerWidth}x${window.innerHeight}`,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0}},saveStart:e=>{var t;return{event:"lab_save_start",product_style_id:Re(e),product_color:(t=lt(e))==null?void 0:t.name,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0,generated_image:Rs(e),has_extended_sizes:xc(e)}},saveAddCartAttempt:e=>{var t;return[{event:"lab_save_add_cart_attempt",product_style_id:Re(e),product_color:(t=lt(e))==null?void 0:t.name,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0}]},addToCart:(e,{payload:t})=>{var a,i;const{recentlyAddedItems:n}=t;let s=0;const o=(a=Object.values(n))==null?void 0:a.map((c,l)=>{const d=(c==null?void 0:c.styleId)||T1(c==null?void 0:c.colorId),_=Ne(e,{styleId:d}),u=PS(m0(e,d));return s+=c==null?void 0:c.subTotal,{item_id:d,item_name:_==null?void 0:_.name,affiliation:"external_core",index:l,item_brand:_==null?void 0:_.manufacturer,item_category:u==null?void 0:u.rootCategory,item_category2:u==null?void 0:u.parentCategory,item_category3:(u==null?void 0:u.primaryCategory)||(_==null?void 0:_.primary_category_name),item_variant:c==null?void 0:c.colorName,price:c==null?void 0:c.unitPrice,quantity:c==null?void 0:c.quantity}}),r=o.reduce((c,l)=>{const d=+l.quantity;return isNaN(d)?c:c+d},0);return[f({event:"add_to_cart",ecommerce:{currency:"USD",total_qty:r,value:s,items:o},product_style_id:Re(e),product_color:(i=lt(e))==null?void 0:i.name,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0,generated_image:Rs(e),applied_from_favourites:Fc(e),full_color_embroidery:kr(e),has_extended_sizes:xc(e)},eC(bo(e)))]},saveComplete:(e,{payload:t})=>{var n,s,o;if((n=t.response)!=null&&n.success){const{account_id:r,account_token:a,designid:i,first_time_saving:c}=t.response.design;return{event:"lab_save_complete",account_id:r,account_token:a,design_id:i,email_256:SS(t.email),first_time_saver:c,internal_user:bo(e),product_category:(s=De(e))==null?void 0:s.primary_category_name,product_color:(o=lt(e))==null?void 0:o.name,product_type:V2(e),product_style_id:Re(e),product_style_name:Hr(e),save_with_art:$1(e),total_qty:dn(e),has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0,generated_image:Rs(e),applied_from_favourites:Fc(e),full_color_embroidery:kr(e)}}},quoteStart:(e,{payload:t})=>R(f({},Jr({eventName:"lab_quote_start",quotePath:t==null?void 0:t.quotePath})),{generated_image:Rs(e)}),quoteFormEntry:(e,{payload:t})=>{var n,s;return t.mode==="buy"||t.newState!==Tt.QUOTE_FORM||t.oldState===Tt.MULTI_ITEM_SUMMARY?null:R(f({},Jr({eventName:"lab_quote_form",quotePath:(n=t.mode)!=null?n:"quote"})),{product_style_id:Re(e),product_color:(s=lt(e))==null?void 0:s.name,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0,extended_sizes_available:Uc(e)})},buyForm:e=>R(f({},Jr({eventName:"lab_quote_form",quotePath:"buy"})),{extended_sizes_available:Uc(e)}),quote:(e,{payload:t})=>{var n,s,o,r,a;
203if(t){const i=window.location.hash.includes(Wi);return{event:"lab_quote_complete",color_count_back:((n=x2(e))==null?void 0:n.back)||0,color_count_front:((s=x2(e))==null?void 0:s.front)||0,account_id:U8(e),internal_user:bo(e),oos_core_sizes:f6(e),one_size_one_color:V6(e),postal_code:pr(e),previous_total_qty:C6(e),product_price_level:(o=De(e))==null?void 0:o.price_level,product_category:(r=De(e))==null?void 0:r.primary_category_name,product_color:(a=lt(e))==null?void 0:a.name,product_style_id:Re(e),product_style_name:Hr(e),total_qty:dn(e),total_price:Xs(e),zip_geodetect_change:WS(e),has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0,generated_image:Rs(e),quote_path:i?ym:Om,full_color_embroidery:kr(e),has_extended_sizes:i?void 0:Dd(e)}}},changeView:(e,{payload:t,meta:n})=>{const s=wt[t],o={leftSleeve:"l sleeve",rightSleeve:"r sleeve"};return{canvas_toolbar:!0,mobile_canvas_toolbar:!0}[n==null?void 0:n.source]?{event:"lab_change_view",view_name:o[s]||s}:null},sleeveStart:()=>({event:"lab_sleeve_start"}),sleeveAdded:(e,{payload:t,meta:n})=>!t||(n==null?void 0:n.source)!=="new_sleeve_print_pricing"?null:{event:"lab_sleeve_added"},zoomIn:()=>Pc("in"),zoomOut:()=>Pc("out"),shareEmail:()=>$n("email"),shareFacebook:()=>$n("facebook"),shareTwitter:()=>$n("twitter"),sharePinterest:()=>$n("pinterest"),sharePrint:()=>$n("print"),shareLink:()=>$n("copy"),quoteZip:(e,{payload:t})=>{const{source:n}=t;if(n)return{event:"lab_quote_zip",step:n}},subtletyCheck:(e,{payload:t})=>{var d;const{step:n,subtleColors:s,suggestion:o,suggestionId:r}=t;let a=null,i=null;if(o!=null&&o.suggestions?a=o.suggestions.find(_=>(_==null?void 0:_.id)===r):o!=null&&o.subtleInks&&(a=o),a!=null&&a.subtleInks){const _=Object.values(a.subtleInks);if((_==null?void 0:_.length)>0){const u=_[0];i=u==null?void 0:u.reduce((E,T)=>{const O=s.find(I=>String(T)===String(I==null?void 0:I.id));return O?E?`${E}, ${O.name}`:`${O.name}`:E},"")}}const c=Pd(e);let l=0;return c&&c.length>0&&(l=c.filter(_=>_.type===JS.LOW_RESOLUTION).length),{event:"lab_subletycheck",step:n,subtle_colors:i,low_resolution:l,product_style_id:Re(e),product_color:(d=lt(e))==null?void 0:d.name,has_full_quote:Zt(Xt(e)),complementary_product_style_ids:$t(e)||0}},wtoQuoteOptionLoad:(e,{payload:t})=>Nc({project:t==null?void 0:t.project,eventName:"lab_quote_options"}),wtoQuoteOptionUpdate:(e,{payload:t})=>Nc({project:t==null?void 0:t.project,eventName:"lab_quote_options_change"}),fundraisingStart:()=>({event:"lab_fundraising_start"}),buyWithGroupGOFStart:()=>({event:"lab_gof_start"}),gofQuoteStart:()=>({event:"lab_quote_gof_start"}),gofQuoteComplete:()=>({event:"lab_quote_gof_complete"}),contactPhone:()=>Lc("phone"),contactEmail:()=>Lc("email"),colorWheel:(e,{payload:t})=>{const{source:n}=t;if(n!=="canvas")return null;const s=l7(e),r={CLIPART:"art",UPLOAD:"upload",TEXT:"text"}[s];if(!r)return null;const a=s==="UPLOAD"&&nn({getIconById:ne,state:e,iconId:hs(e)});return f({event:"lab_edit_tools",tool_icon_type:r,tool_name:"color_wheel",tool_value:null,tool_source:n},a&&{upload_type:"ai-generator"})}},tC={[g.NDX_START]:ue.load,[g.SAVE_FORM]:ue.saveStart,[g.SAVE_ADD_CART_ATTEMPT]:ue.saveAddCartAttempt,[g.SAVE_ADD_CART]:ue.addToCart,[k.SAVE_SUCCESS]:ue.saveComplete,[g.QUOTE_FORM_START]:ue.quoteStart,[g.QUOTE_STATE_CHANGE]:ue.quoteFormEntry,[g.BUY_FORM]:ue.buyForm,[V.UPDATE_HAS_FULL_QUOTE]:ue.quote,[Te.CHANGE_VIEW]:ue.changeView,[g.SLEEVE_PRINT_ACTIONS]:ue.sleeveStart,[Te.ACTIVATE_SLEEVE_PRINT]:ue.sleeveAdded,[g.ZOOM_IN]:ue.zoomIn,[g.ZOOM_OUT]:ue.zoomOut,[g.SHARE_EMAIL]:ue.shareEmail,[g.SHARE_FACEBOOK]:ue.shareFacebook,[g.SHARE_LINK]:ue.shareLink,[g.SHARE_TWITTER]:ue.shareTwitter,[g.SHARE_PINTEREST]:ue.sharePinterest,[g.PRINT_THIS]:ue.sharePrint,[g.START_POSTAL_CODE_UPDATE]:ue.quoteZip,[g.SUBTLETY_CHECK]:ue.subtletyCheck,[g.WTO_OPTION_LOAD]:ue.wtoQuoteOptionLoad,[g.WTO_OPTION_UPDATE]:ue.wtoQuoteOptionUpdate,[g.NEXT_FUNDRAISING]:ue.fundraisingStart,[g.BUY_WITH_GOF]:ue.buyWithGroupGOFStart,[g.BUY_WITH_GOF_QUOTE_START]:ue.gofQuoteStart,[g.BUY_WITH_GOF_QUOTE_COMPLETE]:ue.gofQuoteComplete,[g.HELP_CALL]:ue.contactPhone,[g.HELP_EMAIL]:ue.contactEmail,[g.COLOR_WHEEL]:ue.colorWheel},Se={CLEAR:"namesAndNumbers/CLEAR",CREATE:"namesAndNumbers/CREATE",BATCH_CREATE:"namesAndNumbers/BATCH_CREATE",REMOVE_
203EMPTY_NAMES_AND_NUMBERS:"namesAndNumbers/REMOVE_EMPTY_NAMES_AND_NUMBERS",REMOVE_INVALID_NAMES_AND_NUMBERS:"namesAndNumbers/REMOVE_INVALID_NAMES_AND_NUMBERS",UPDATE:"namesAndNumbers/UPDATE",DELETE:"namesAndNumbers/DELETE",ADD_NAMES:"namesAndNumbers/ADD_NAMES",ADD_NUMBERS:"namesAndNumbers/ADD_NUMBERS",ADD_NAMES_AND_NUMBERS:"namesAndNumbers/ADD_NAMES_AND_NUMBERS"},Rt={start:()=>({event:"lab_namesnumbers_start"}),add:()=>({event:"lab_namesnumbers_add"}),editToolsAddNames:()=>({event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:"names_enabled",tool_value:"on",tool_source:"panel"}),editToolsAddNumbers:()=>({event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:"numbers_enabled",tool_value:"on",tool_source:"panel"}),editToolsPosition:(e,{payload:t})=>{const{type:n,viewId:s}=t;return n!==L.NAMES&&n!==L.NUMBERS?null:{event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:n===L.NAMES?"name_position":"number_position",tool_value:wt[s],tool_source:"panel"}},editToolsFontHeight:(e,{payload:t})=>{const{fontHeight:n,iconType:s}=t;return s!==L.NAMES&&s!==L.NUMBERS?null:{event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:s===L.NAMES?"name_height":"number_height",tool_value:n,tool_source:"panel"}},editToolsColor:(e,{payload:t})=>{const{color:n,type:s}=t;return s!==L.NAMES&&s!==L.NUMBERS||!(n!=null&&n.name)?null:{event:"lab_edit_tools",tool_icon_type:"namesandnumbers",tool_name:s===L.NAMES?"name_color":"number_color",tool_value:Be(n.name),tool_source:"panel"}},list:()=>({event:"lab_namesnumbers_names_list"}),complete:(e,{meta:t})=>(t==null?void 0:t.source)!=="NAMES_NUMBERS"?null:{event:"lab_namesnumbers_names_complete"},remove:(e,{payload:t})=>br(t,{targetIconType:"NAMES_NUMBERS"})},nC={[g.NAMES_AND_NUMBERS]:Rt.start,[g.NAMES_AND_NUMBERS_GET_STARTED]:Rt.add,[Se.ADD_NAMES]:Rt.editToolsAddNames,[Se.ADD_NUMBERS]:Rt.editToolsAddNumbers,[g.NAMES_AND_NUMBERS_POSITION]:Rt.editToolsPosition,[M.UPDATE_FONT_HEIGHT]:Rt.editToolsFontHeight,[g.NAMES_AND_NUMBERS_COLORS]:Rt.editToolsColor,[g.NAMES_AND_NUMBERS_COMPLETE]:Rt.list,[V.UPDATE_PRODUCT_QUANTITIES]:Rt.complete,[y.REMOVE]:Rt.remove},sC={[fi]:"ndx/incompatibleproducts/error",[nl]:"ndx/incompatibleproducts/error",[yr]:"ndx/error/unsupported_design_area"},oC={[at.ERROR]:(e,t)=>{var o;const n=(o=t.payload)==null?void 0:o.key;if(!n)return null;const s=sC[n];return s?{event:"vpv",pageURL:s}:null}},rC={[dd.toString()]:(e,t)=>{const{pathname:n}=t.payload;if(!n)return null;switch(!0){case n.startsWith("/addArt/"):return Ue.browse(e,t);case n.startsWith("/next/confirmIntl"):return ue.quoteZip(e,R(f({},t),{meta:{source:"confirm_international"}}));case n.startsWith("/next/shipping"):return ue.quoteZip(e,t);default:return null}}},yn={startFromWelcome:()=>({event:"lab_changeproduct_start",source:"welcome"}),startFromTray:()=>({event:"lab_changeproduct_start",source:"tray"}),startFromMobileProductDetails:()=>({event:"lab_changeproduct_start",source:"mobile_product_details"}),swap:(e,{payload:t})=>{if(t!=null&&t.isInitialLabLoad)return null;const n=Ne(e,{styleId:t==null?void 0:t.nextStyleId});return{event:"lab_changeproduct_complete",product_style_id:n==null?void 0:n.id,product_style_name:n==null?void 0:n.name,product_color:AS(n,t==null?void 0:t.nextColorIds),product_category:yS(n),source:(t==null?void 0:t.swapSource)||"product_catalog_modal"}},changeColorStart:(e,{payload:t})=>({event:"lab_productcolor_start",source:{"side bar":"menu","bottom bar":"tray"}[t==null?void 0:t.source]||(t==null?void 0:t.source)}),changeColorClose:(e,{payload:t})=>{if(t.prompt!=="close")return null;const n=y0(e);return n.name!==t.previousColor.name?{event:"lab_productcolor_complete",product_color:n.name}:null},toggleSinglesFilter:(e,{payload:t})=>({event:"lab_product_singles_filter",quantity_filter:t==null?void 0:t.quantityFilter,source:t==null?void 0:t.source})},aC={[g.PRODUCT_WELCOME]:yn.startFromWelcome,[g.PRODUCT_SUMMARY_TAG]:yn.startFromTray,[g.CHANGE_PRODUCT_START]:yn.startFromMobileProductDetails,[X.SWAP_PRODUCT]:yn.swap,[g.CHANGE_PRODUCT_COLOR_START]:yn.changeColorStart,[g.PRODUCT_COLOR]:yn.changeColorClose,[g.PRODUCT_COLOR_TOGGLE_CHANGED]:yn.toggleSinglesFilter},Oe={start:(e,{payload:t})=>{const{source:n}=t;return n?{event:"lab_text_start",source:n||""}:null},add:(e,{payload:t})=>{const{icon:n}=t;return n!=null&&n.text?{event:"lab_text_add"}:null},editTools:()=>({event:"lab_text_editTools"}),browse:(e,{payload:t})=>{const{fontCategory:n}=t;return{event:"lab_text_font_browse",text_font_category:Be(n)}},browseCategories:(e,{payload:t})=>{const{fontCategory:n}=t;return{event:"lab_text_font_browse",text_font_category:Be(n)}},selected:(e,{payload:t})=>{const{fontCategory:n,fontName:s}=t;return{event:"lab_text_font_selected",text_font_category:Be(n),text_font_name:Be(s)}},search:(e,{payload:t})=>{const{searchTerm:n,hasResults:s}=t;return{event:"lab_text_search",text_font_search_term:n,text_has_results:s}},remove:(e,{payload:t})=>br(t,{targetIconType:"TEXT"}),editToolsColor:(e,{payload:t})=>{const{color:n,iconId:s,source:o}=t;return!o||!Fo({getIconById:ne,state:e,iconId:s})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"color",tool_value:n!=null&&n.name?Be(n==null?void 0:n.name):null,tool_source:o}},editToolsOutline:(e,{payload:t})=>{var r,a;const{selectedIcon:n,source:s}=t;return!s||!n?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"outline",tool_value:(r=n.outlineColor)!=null&&r.name?Be((a=n.outlineColor)==null?void 0:a.name):null,tool_source:s}},editToolsOutlineComplete:(e,{payload:t})=>{var a,i;const{selectedIcon:n,source:s}=t;if(!s)return null;const o=n==null?void 0:n.outlineWidth,r=(a=n.outlineColor)!=null&&a.name?Be((i=n.outlineColor)==null?void 0:i.name):null;return[{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"outline_thickness",tool_value:o,tool_source:s},{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"outline_color",tool_value:r,tool_source:s}]},editToolsShape:(e,{payload:t})=>{const{selectedIcon:n,source:s}=t;return s?{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"text_shape",tool_value:n==null?void 0:n.effectName,tool_source:s}:null},autoResize:e=>({event:"lab_text_validation",interaction_action:"auto resize",decoration_method:Et(e)||"undefined"}),resizeBlocked:e=>({event:"lab_text_validation",interaction_action:"resize blocked",decoration_method:Et(e)||"undefined"}),trackEmbroideryMinimumTextSizeEvent:e=>({event:"lab_text_validation",message:"minimum text size",decoration_method:Et(e)||"undefined"}),editToolsSizeMenuOption:(e,{payload:t})=>{const{iconType:n}=t;return n!==L.TEXT?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"resize",tool_value:null,tool_source:"panel"}},editToolsSizeDrag:(e,{payload:t})=>{const{transforms:n}=t;return Oo({transforms:n})?{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"resize",tool_value:null,tool_source:"canvas"}:null},editToolsRotation:(e,{payload:t})=>{const{iconId:n,source:s}=t;return!s||!Fo({getIconById:ne,state:e,iconId:n})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"rotate",tool_value:null,tool_source:s}},editToolsPositionCenter:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Oo({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"center",tool_value:null,tool_source:n}},editToolsLayerForward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Oo({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"layer_forward",tool_value:null,tool_source:n}},editToolsLayerBackward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;return!n||!Oo({iconIds:s,getIconById:ne,state:e})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"layer_backward",tool_value:null,tool_source:n}},editToolsAlignment:(e,{payload:t})=>{const{align:n,iconId:s,source:o}=t;return!o||!Fo({getIconById:ne,state:e,iconId:s})?null:{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"alignment",tool_value:n,tool_source:o}},editToolsResetToOriginal:(e,{payload:t})=>{const{source:n}=t;return n?{event:"lab_edit_tools",tool_icon_type:"text",tool_name:"reset_to_original",tool_value:null,tool_source:n}:null}}
203,iC={[g.TEXT_START]:Oe.start,[M.ADD_TEXT]:Oe.add,[g.TEXT_EDIT]:Oe.editTools,[g.TEXT_FONT_BROWSE]:Oe.browse,[g.TEXT_FONT_BROWSE_CATEGORIES]:Oe.browseCategories,[M.UPDATE_FONT]:Oe.selected,[g.TEXT_SEARCH]:Oe.search,[y.REMOVE]:Oe.remove,[y.CHANGE_COLOR]:Oe.editToolsColor,[g.CHANGE_TEXT_OUTLINE]:Oe.editToolsOutline,[g.CHANGE_TEXT_OUTLINE_COMPLETE]:Oe.editToolsOutlineComplete,[g.CHANGE_TEXT_EFFECT]:Oe.editToolsShape,[M.UPDATE_FONT_HEIGHT]:Oe.editToolsSizeMenuOption,[M.AUTO_RESIZE]:Oe.autoResize,[M.RESIZE_BLOCKED]:Oe.resizeBlocked,[M.MINIMUM_TEXT_SIZE_WARNING]:Oe.trackEmbroideryMinimumTextSizeEvent,[M.RESET_TEXT]:Oe.editToolsResetToOriginal,[y.RESIZE]:Oe.editToolsSizeDrag,[y.ROTATE]:Oe.editToolsRotation,[y.CENTER]:Oe.editToolsPositionCenter,[y.FORWARD]:Oe.editToolsLayerForward,[y.BACKWARD]:Oe.editToolsLayerBackward,[y.ALIGN]:Oe.editToolsAlignment},Ze={recent:(e,{payload:t})=>{const n=ne(e)(t==null?void 0:t.iconId);if(!n)return;const{colorMode:s,spotColors:o}=n;return{event:"lab_upload_recent",upload_image_type:t.contentType,upload_color_count:o==null?void 0:o.length,upload_color_type:s}},learnMore:()=>({event:"lab_upload_learn_more"}),contactUs:()=>({event:"lab_upload_contact_us"}),remove:(e,{payload:t})=>br(t,{targetIconType:"UPLOAD"}),editToolsMakeOneColor:(e,{payload:t})=>{const{iconId:n,singleColor:s,source:o}=t;if(!o||!On({getIconById:ne,state:e,iconId:n}))return null;const r=nn({getIconById:ne,state:e,iconId:n});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:o==="canvas"?"make_one_color_toggle":"make_one_color",tool_value:s?"on":"off",tool_source:o},r&&{upload_type:"ai-generator"})},editToolsSpotColor:(e,{payload:t})=>{const{iconId:n,user:s,source:o}=t;if(!o||!On({getIconById:ne,state:e,iconId:n}))return null;const r=nn({getIconById:ne,state:e,iconId:n});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"edit_colors",tool_value:s!=null&&s.name?Be(s==null?void 0:s.name):null,tool_source:o},r&&{upload_type:"ai-generator"})},editToolsColor:(e,{payload:t})=>{const{color:n,iconId:s,source:o}=t;if(!o||!On({getIconById:ne,state:e,iconId:s}))return null;const r=nn({getIconById:ne,state:e,iconId:s});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"edit_colors",tool_value:n!=null&&n.name?Be(n==null?void 0:n.name):null,tool_source:o},r&&{upload_type:"ai-generator"})},editToolsRemoveBackground:(e,{payload:t})=>{const{visible:n,source:s}=t;return s?{event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"remove_background_color",tool_value:n?"on":"off",tool_source:s}:null},editToolsSize:(e,{payload:t})=>{const{transforms:n,source:s}=t;return!s||!Ro({transforms:n})?null:{event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"resize",tool_value:null,tool_source:{drag:"canvas"}[s]||s}},editToolsRotation:(e,{payload:t})=>{const{iconId:n,source:s}=t;return!s||!On({getIconById:ne,state:e,iconId:n})?null:{event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"rotate",tool_value:null,tool_source:s}},editToolsPositionCenter:(e,{payload:t})=>{const{source:n,iconIds:s}=t;
203if(!n||!Ro({iconIds:s,getIconById:ne,state:e}))return null;const o=Vo({iconIds:s,getIconById:ne,state:e});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"center",tool_value:null,tool_source:n},o&&{upload_type:"ai-generator"})},editToolsLayerForward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;if(!n||!Ro({iconIds:s,getIconById:ne,state:e}))return null;const o=Vo({iconIds:s,getIconById:ne,state:e});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"layer_forward",tool_value:null,tool_source:n},o&&{upload_type:"ai-generator"})},editToolsLayerBackward:(e,{payload:t})=>{const{source:n,iconIds:s}=t;if(!n||!Ro({iconIds:s,getIconById:ne,state:e}))return null;const o=Vo({iconIds:s,getIconById:ne,state:e});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"layer_backward",tool_value:null,tool_source:n},o&&{upload_type:"ai-generator"})},editToolsHorizontalFlip:(e,{payload:t})=>{const{flip:n,iconId:s,source:o}=t;if(!o||!On({getIconById:ne,state:e,iconId:s}))return null;const r=nn({getIconById:ne,state:e,iconId:s});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"flip_h",tool_value:n,tool_source:o},r&&{upload_type:"ai-generator"})},editToolsVerticalFlip:(e,{payload:t})=>{const{flip:n,iconId:s,source:o}=t;if(!o||!On({getIconById:ne,state:e,iconId:s}))return null;const r=nn({getIconById:ne,state:e,iconId:s});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:"flip_v",tool_value:n,tool_source:o},r&&{upload_type:"ai-generator"})},editToolsResetToOriginal:(e,{payload:t})=>{const{iconId:n,source:s}=t;if(!s)return null;const o=nn({getIconById:ne,state:e,iconId:n});return f({event:"lab_edit_tools",tool_icon_type:"upload",tool_name:s==="canvas"?"reset":"reset_to_original",tool_value:null,tool_source:s},o&&{upload_type:"ai-generator"})}},cC={[g.UPLOAD_RECENT]:Ze.recent,[g.UPLOAD_LEARN_MORE]:Ze.learnMore,[g.UPLOAD_CONTACT_US]:Ze.contactUs,[y.REMOVE]:Ze.remove,[y.UPDATE_SINGLE_COLOR]:Ze.editToolsMakeOneColor,[y.CHANGE_COLOR]:Ze.editToolsColor,[ae.CHANGE_SPOT_COLOR]:Ze.editToolsSpotColor,[g.UPLOAD_TOGGLE_BACKGROUND]:Ze.editToolsRemoveBackground,[y.RESIZE]:Ze.editToolsSize,[y.ROTATE]:Ze.editToolsRotation,[y.CENTER]:Ze.editToolsPositionCenter,[y.FORWARD]:Ze.editToolsLayerForward,[y.BACKWARD]:Ze.editToolsLayerBackward,[y.ALIGN]:Ze.editToolsAlignment,[y.UPDATE_HORIZONTAL_FLIP]:Ze.editToolsHorizontalFlip,[y.UPDATE_VERTICAL_FLIP]:Ze.editToolsVerticalFlip,[ae.RESET_UPLOAD]:Ze.editToolsResetToOriginal},Ho=IS([dS,HS,tC,nC,oC,rC,aC,iC,cC]),lC=(e,t)=>{var n;return(n=Ho==null?void 0:Ho[t.type])==null?void 0:n.map(s=>s==null?void 0:s(e,t))},Vc=e=>{window.dataLayer=window.dataLayer||[],window.dataLayer.push(e)},dC=e=>{e&&(Array.isArray(e)?e.forEach(Vc):Vc(e))},uC=(e,t,n)=>{if(!e.has(t.type)){e.add(t.type);try{z.warning(`Analytics event handler failed for ${t.type}`,n,{actionType:t.type})}catch(s){}}},_C=e=>{const t=new Set;return n=>s=>{try{if(s.type in Ho){const o=lC(e.getState(),s);o==null||o.forEach(dC)}}catch(o){uC(t,s,o)}return n(s)}};var Po=null;function pC(){return e=>t=>{const{confirmationRequired:n,notification:s}=t.meta||{};if(n)return Po=t,e({type:at.ERROR,payload:s});if(t.type===at.CONFIRM&&Po){const o=Po;Po=null,e(o)}return e(t)}}function gC(e){var n,s,o;if(!/\/rejected$/.test(e.type||""))return!1;if((n=e.meta)!=null&&n.aborted||((s=e.error)==null?void 0:s.name)==="AbortError")return!0;const t=(o=e.payload)==null?void 0:o.status;return t===401||t===403||t===404||typeof t=="number"&&t>=200&&t<300}function EC(e){z.info(`Error applying action ${e.type}`,e.payload,{actionType:e.type,actionMeta:e.meta,actionError:e.error})}function hC(e,t){z.critical(`Error applying action ${e.type}`,t,{actionType:e.type,actionMeta:e.meta})}function fC(){return e=>t=>{try{return t.error&&!gC(t)&&EC(t),e(t)}catch(n){hC(t,n)}}}function mC(e,t){return n=>!ba(n(e),n(t))}function TC(e){return t=>n=>P(this,null,function*(){var u;const s=e.getState(),o=Pd(s),r=t(n),a=(n==null?void 0:n.type)==="router/LOCATION_CHANGE"&&((u=n==null?void 0:n.payload)==null?void 0:u.pathname)==="/next/summary";if(o.length===0&&!a)return r;const i=e.getState(),c=[_t,we,g0,ai,E0,mr,Er,pr],l=mC(s,i),d=[_t].some(l),_=c.some(l);return(d||a)&&(yield oo(we(i),e.dispatch,e.getState)),(_||a)&&(yield Mg()(e.dispatch,e.getState)),r})}function SC(e){return t=>n=>{const s=e.getState(),o=bt(s).length,r=t(n),a=e.getState(),i=bt(a).length,c=o!==i;return Y5(a)&&c&&Z5(a)&&p.pageViewTag("/ndx/multiselect"),r}}const CC=e=>t=>n=>{if(n.type===vn.ActionCreators.undo().type||n.type===vn.ActionCreators.redo().type){const s=e.getState(),o=s.icon,r=o.past,a=o.future,i=o.present;let c=null;if(n.type===vn.ActionCreators.undo().type&&r.length>0){const l=r[r.length-1];c=kc(l,i)}else if(n.type===vn.ActionCreators.redo().type&&a.length>0){const l=a[0];c=kc(i,l)}if(c!=null&&c.length){const l=ne(s)(c[0]);l&&(l==null?void 0:l.viewId)!==At(s)&&(e.dispatch(Di()),e.dispatch(Or(l.viewId)))}}return t(n)},kc=(e,t)=>{const n=e,s=t,o=[];
203return n.forEach((r,a)=>{const i=s.get(a);i&&!Fu(r,i)&&o.push(a)}),s.forEach((r,a)=>{n.has(a)||o.push(a)}),n.forEach((r,a)=>{s.has(a)||o.push(a)}),o},IC="Checkout Summary Add New Design",AC="addtocart",yC="Checkout Summary Edit Design",OC="editfromcart",RC="Checkout Summary Content Ownership Modal",DC="editfromcartcontentwarning",ea={BANNED:"banned",OFFENSIVE:"offensive",PROTECTED:"protected"},vC=[{prioritized:"Coronavirus"},{prioritized:"Covid"},{prioritized:"Covid 19"},{prioritized:"Distance"},{prioritized:"Distance Learning"},{prioritized:"Essential"},{prioritized:"Facemask"},{prioritized:"Face Masks"},{prioritized:"Hand Sanitizer"},{prioritized:"Medical Mask"},{prioritized:"Pandemic"},{prioritized:"Quarantine"},{prioritized:"Sanitizer"},{prioritized:"Social Distance"},{prioritized:"Social Distancing"},{prioritized:"Stay At Home"},{prioritized:"Stay Home"},{prioritized:"Stronger Together"},{prioritized:"Surgical Mask"},{prioritized:"Work From Home"},{prioritized:"Wash Your Hands"},{prioritized:"Washing Hands"}],ta=["cholo","coon","hitler","kkk","nazi","nigga","nigger","ss","swastika"],Hc=["88","alm","ar15","cocaine","crip","crips","cum","dildo","gadsden","hentai","lsd","m16","meth","pornhub","tits","titties"],PC=e=>{if(!e)return null;const t=e.toLowerCase().trim(),n=[...ta,...Hc].reduce((s,o,r)=>[t,...t.split(" ")].some(i=>i===o)?r:s,-1);return n===-1?null:n<ta.length?ea.BANNED:n<ta.length+Hc.length?ea.OFFENSIVE:ea.PROTECTED};function LC(e,t,n){if(!e)return!1;const s=(o,r)=>o/r<=n||o/r>=1+n;return e.some(o=>{const r=t.find(c=>c.id===o.id);if(!r)return!1;const a=o.constraint,i=r.constraint;return s(a.width,i.width)||s(a.height,i.height)})}const NC=()=>{switch(I1()){case AC:return S1()?IC:void 0;case OC:return yC;case DC:return RC;default:return}},wC=e=>{let t=!0;const n=new Map;return s=>o=>{const r=o,{type:a,payload:i,meta:c}=r;switch(a){case vn.ActionTypes.REDO:p.pageViewTag("ndx/contextualtools/redo");break;case vn.ActionTypes.UNDO:p.pageViewTag("ndx/contextualtools/undo");break;case g.ADD_ART:{const{queryParams:l}=i;if(!(l!=null&&l.rs))break;const d=Zn(l);p.setDimension("RestingScreenClick",d),p.pageViewTag("ndx/art/");break}case g.ADD_COMPLEMENT:p.pageViewTag(`ndx/additems/${i}/skirt`);break;case g.ADD_ITEMS:p.pageViewTag("ndx/additems");break;case g.CURRENT_PATH_PAGE_VIEW_TAG:{const{path:l}=i;p.pageViewTag(`ndx${l}`);break}case g.ADD_ITEMS_PICK_STYLE:p.setDimension("multiStyle",i),p.pageViewTag(`ndx/additems/${c.isCurrentProduct?"color":"style"}`);break;case g.ADD_ITEMS_CLOSE:p.pageViewTag("ndx/additems/close");break;case g.ADD_ITEMS_COLOR:p.pageViewTag("ndx/additems/color");break;case g.ADD_ITEMS_COLOR_CLOSE:p.pageViewTag("ndx/additems/color/close");break;case g.ADD_ITEMS_QUOTE:p.pageViewTag("ndx/quote/addstyle/added");break;case g.ADD_ITEMS_SELECT_COLOR:p.pageViewTag("ndx/additems/color/selected");break;case g.ADD_TEXT:{const{queryParams:l}=i,d=Zn(l);p.setDimension("RestingScreenClick",d),p.pageViewTag("ndx/text");break}case M.ADD_TEXT:p.pageViewTag("ndx/text/added");break;case g.ART_BROWSE:{const{categoryNamePath:l}=i;p.pageViewTag(`ndx/art/browse/${l}`);break}case g.ART_CLOSE:p.pageViewTag("ndx/art/close");break;case g.ART_PALETTE:{const{spotColor:l}=i||{};p.pageViewTag("ndx/art/palette"),l&&We(l.user)&&ln(l.original)&&p.pageViewTag("ndx/art/colors/transparent");break}case g.ART_SWAP:p.pageViewTag("ndx/art/swap_art");break;case g.ART_CHANGE_COLOR:{const{color:l}=i;We(l)?p.pageViewTag("ndx/art/colors/changed/transparent"):p.pageViewTag(`ndx/art/colors/changed/${Qu(l)}`);break}case g.ART_RESET_COLOR:p.pageViewTag("ndx/art/colors/reset");break;case g.ART_TOOLS:p.pageViewTag("ndx/art/edit_page");break;case g.COLOR_CTA_CLICK:{switch(i){case"TEXT_OUTLINE":p.pageViewTag("ndx/text/outline/color/done");break;case"TEXT":p.pageViewTag("ndx/text/palette/done");break;case"CLIPART":p.pageViewTag("ndx/art/palette/done");break;case"UPLOAD":p.pageViewTag("ndx/upload/editcolors/done");break}break}case g.CHAT:p.pageViewTag("ndx/chat");break;case g.DESIGN_TOOLS_OPEN:p.pageViewTag("ndx/mobile/designtools");break;case g.DESIGN_TOOLS_CLOSE:p.pageViewTag("ndx/mobile/designtools/close");break;case g.DESIGN_TOOLS_SELECT:{const{selectedOption:l}=i;p.fireEvent("ndx mobile design tools screen",l);break}case g.DISCONTINUED_PRODUCT:p.pageViewTag("ndx/product/discontinued");break;case g.DISCONTINUED_PRODUCT_COLOR:p.pageViewTag("ndx/product/color/discontinued");break;case g.ENTER_POSTAL_CODE:{const{mode:l}=i;p.pageViewTag(`ndx/${l}/zip`);break}case g.FONT_BROWSE_SEE_MORE:{const{category:l}=i;p.pageViewTag(`ndx/text/font/browse/seemore${Be(l)}`);break}case g.FUNDRAISING_MODE_WELCOME:p.pageViewTag("ndx/fundraising/welcome");break;case Ce.SAVE_DESIGN:p.pageViewTag("ndx/fundraising/save/confirm");break;case g.FUNDRAISING_NAVIGATION:p.pageViewTag("fundraising/createyourown/button");break;case g.FUNDRAISING_CAMPAIGN_CLOSED:p.pageViewTag("fundraising/createyourown/link");break;case g.FUNDRAISING_MODE_GOALS:p.pageViewTag("ndx/fundraising/goals");break;case g.HIDE_CONTEXTUAL_TOOLS:p.pageViewTag("ndx/contextualtools/hide");break;case g.HELP_CALL:p.pageViewTag("ndx/help/call");break;case g.HELP_EMAIL:p.pageViewTag("ndx/help/email");break;case g.HELP_FEEDBACK:p.pageViewTag("ndx/help/feedback");break;case g.HELP_MENU:{const{queryParams:l}=i,d=Zn(l);p.setDimension("RestingScreenClick",d),p.pageViewTag("ndx/help");break}case g.HELP_VISIT_FULL_SITE:p.pageViewTag("ndx/help/visitFullSite");break;case k.INVALID_UPLOAD:p.pageViewTag("ndx/error/brokenupload");break;case g.LOAD_WITHOUT_DESIGN:p.pageTest("oex-alpinist-ndx-withoutdesign-06-06-2017");break;case g.SLEEVE_PRINT_REMOVE_DESIGN:{const l=e.getState();!bs()&&v2(l)&&p.pageViewTag("/ndx/quote/pricetip/clicktoremovesleeve");break}case g.SLEEVE_PRINT_UNDO_REMOVE_DESIGN:{const l=e.getState();!bs()&&v2(l)&&p.pageViewTag("/ndx/quote/pricetip/clicktoremovesleeve/reverttooriginal");break}case g.SLEEVE_PRINT_NO_SLEEVE_IMAGE_SELECTED_PRODUCT:{const l=e.getState(),d=we(l);d&&p.pageViewTag(`/ndx/additionalprintarea/sleeve/representativestyle/${d}`);break}
203case g.SLEEVE_ERROR_FUNDRAISING:p.pageViewTag("/ndx/sleeve/error/fundraising");break;case g.SLEEVE_ERROR_GOF:p.pageViewTag("/ndx/sleeve/error/gof");break;case g.SLEEVE_PRINT_ACTIONS:{const{sleeveAction:l,label:d}=i;p.fireEvent("sleeve",l,d);break}case g.SLEEVE_PRINT_PRICE_INFO:p.pageViewTag(i);break;case at.ERROR:{const{key:l,payload:d}=i;let _=[],u=[];switch(d&&(_=d.mismatchedAreas,u=d.mismatchedNoPhotography),l){case mi:p.pageViewTag("/ndx/sleeve/error/inkcolormax");break;case yr:{u.length>0?(u.includes("left sleeve")||u.includes("right sleeve"))&&p.pageViewTag("/ndx/sleeve/error/notsupportedonline"):(_.includes(ie.leftSleeve)||_.includes(ie.rightSleeve))&&p.pageViewTag("/ndx/sleeve/error/incompatibleproduct");break}case $0:p.pageViewTag("/ndx/namesandnumbers/error/multiitem");break}break}case g.ORDER_MORE_ADD_STYLES:{const{hasComplements:l}=i;p.pageViewTag(l?"ndx/ordermore":"ndx/ordermore_nocomplements");break}case g.ORDER_MORE_ADD_ITEMS_ADD_STYLES:{const{hasComplements:l}=i;p.pageViewTag(l?"ndx/additems/ordermore":"ndx/additems/ordermore_nocomplements");break}case g.ORDER_MORE_STYLES_ADDED:{const{isAddItems:l,isQuoteForm:d,styleName:_}=i;_&&p.setDimension("orderAnythingProduct",_),l?p.pageViewTag("ndx/additems/ordermore/added"):d?p.pageViewTag("ndx/quote/ordermore/added"):p.pageViewTag("ndx/ordermore/added");break}case g.ORDER_MORE_QUOTE_ADD_STYLES:{const{hasComplements:l}=i;p.pageViewTag(l?"ndx/quote/ordermore":"ndx/quote/ordermore_nocomplements");break}case g.ADD_DESIGN:p.pageViewTag("ndx/adddesign");break;case g.NAMES_AND_NUMBERS:p.pageViewTag("ndx/namesandnumbers");break;case g.NAMES_AND_NUMBERS_CLOSE:p.pageViewTag("ndx/namesandnumbers/close");break;case g.NAMES_AND_NUMBERS_COLORS:{const{type:l}=i;p.pageViewTag(`ndx/namesandnumbers/tools/${l==null?void 0:l.toLowerCase()}/colors`);break}case g.NAMES_AND_NUMBERS_GET_STARTED:p.pageViewTag("ndx/namesandnumbers/getstarted");break;case g.NAMES_AND_NUMBERS_POSITION:{const{type:l,viewId:d}=i;p.pageViewTag(`ndx/namesandnumbers/tools/${l.toLowerCase()}/position/${wt[d]}`);break}case g.NAMES_AND_NUMBERS_REDIRECT:p.pageViewTag("ndx/namesandnumbers");break;case g.NAMES_AND_NUMBERS_LIST:p.pageViewTag("ndx/namesandnumbers/list");break;case g.NAMES_AND_NUMBERS_ALERT:p.pageViewTag("ndx/namesandnumbers/list/alert/"+i);break;case g.NAMES_AND_NUMBERS_COMPLETE:p.pageViewTag("ndx/namesandnumbers/list/complete");break;case g.NAMES_AND_NUMBERS_EDIT:p.pageViewTag("ndx/namesandnumbers/tools/edit");break;case g.NEXT:{const{lastPath:l,hasQuote:d}=i;if(l&&l.toLowerCase()==="/saveconfirmation/")p.pageViewTag("ndx/save/getPrice");else{const _=d?"withquote":"withoutquote";p.pageViewTag("ndx/next"),p.pageViewTag(`ndx/next/${_}`)}break}case g.NEXT_GOF:p.pageViewTag("ndx/next/group_order");break;case g.NEXT_FUNDRAISING:p.pageViewTag("ndx/next/fundraising");break;case g.NDX_START:{const l=e.getState();p.setDimension("ViewPort",`${window.innerWidth}x${window.innerHeight}`);const{categoryName:d,colorId:_,designIdeaId:u,productColor:E,withDesign:T}=i;p.setDimension("labLoadProductStyle",_),p.setDimension("labLoadProductColor",E),p.setDimension("WithDesign",T),p.setDimension("labLoadProductCategory",d),p.setDimension("labLoadDesignTemplateID",u);const O=NC();O&&p.setDimension("labLoadMethod",O),p.pageViewTag("ndx/start"),ua()?p.setDimension("labLoadOrderOptions",!0):P1()?p.setDimension("labLoadBuyNow",!0):L1()?p.setDimension("labLoadComplementaryStyles",!0):N1()&&p.setDimension("labLoadKeyword",w1()),p.fireEvent("print method","lab load",`${Et(l)}`);break}case g.NDX_BREAKPOINT:{const l=i;p.setDimension("Breakpoint",l),t?t=!1:p.pageViewTag("ndx/breakpoint/change");break}case g.PRINT_THIS:p.pageViewTag("print/proof");break;case g.PRODUCT_CATALOG:{const{queryParams:l}=i,d=Zn(l);p.setDimension("RestingScreenClick",d),i==="close"&&p.pageViewTag("ndx/product/close");break}case g.PRODUCT_COLOR:p.pageViewTag(`ndx/productcolor/${i.prompt}`);break;case g.PRODUCT_COLOR_NOT_CHANGED:p.pageViewTag("ndx/productcolor/close");break;case g.PRODUCT_COLOR_CHANGED:p.pageViewTag(`ndx/catalog/productcolor/changed/${i}`);break;case g.PRODUCT_COLOR_TAB_CHANGED:p.pageViewTag(`ndx/catalog/productcolor/${i}`);break;case g.PRODUCT_COLOR_TOGGLE_CHANGED:p.pageViewTag(`ndx/catalog/productcolor/${i.quantityFilter}`);break;case g.PRODUCT_DETAILS:{const l=i==="close"?"ndx/product/close":"ndx/product/details";p.pageViewTag(l);break}case g.PRODUCT_PRINT_AREA:p.sessionPageViewTag("/ndx/product/printarea/alert");break;case g.PRODUCT_SUMMARY:{const{section:l,event:d}=i,_=n.get(l);_!=null&&_.has(d)||(p.pageViewTag(`ndx/${l}/${d}`),_?_.add(d):n.set(l,new Set([d])));break}case g.PRODUCT_SUMMARY_CAROUSEL:{const{styleId:l,imageOrdinal:d}=i;p.fireEvent("ndx product catalog",l,d.toString());break}case g.PRODUCT_SUMMARY_TAG:p.pageViewTag("ndx/catalog/tray");break;case g.PRODUCT_WELCOME:p.pageViewTag("ndx/catalog/welcome");break;case g.BUY_FORM:p.pageViewTag("ndx/buy/form");break;case g.QUOTE_FORM_POSTAL_CODE_CHANGE:{const{currentPostalCode:l,newPostalCode:d}=i;p.setDimension("postalCodeChange",`${l}_${d}`),p.pageViewTag("ndx/quote/zip/change"),l&&d&&e.dispatch(BS(`${l}_${d}`));break}case g.QUOTE_STATE_CHANGE:{const{anchorProductCategory:l,anchorProductColor:d,anchorProductStyleNumber:_,caveat:u,isSpecialty:E,mode:T,newState:O,oldState:I,overColorLimit:A,postalCode:D,sellBlankAllowed:v,showBlankDesignMessage:w,totalPrice:H,totalQuantity:Q}=i;switch(O){case Tt.QUOTE_FORM:{if(I===Tt.MULTI_ITEM_SUMMARY)p.pageViewTag(`ndx/${T}/reprice`);else{p.pageViewTag(`ndx/${T}/form`);break}break}case Tt.SHIPPING_FORM:{I===Tt.MULTI_ITEM_SUMMARY?p.pageViewTag(`ndx/${T}/zip/update`):p.pageViewTag(`ndx/${T}/zip`);break}case Tt.MULTI_ITEM_SUMMARY:{p.setDimension("caveat",u),p.setDimension("quotedProductStyle",_),p.setDimension("quoteProductColor",d),p.setDimension("postalCode",D),p.setDimension("quantity",Q),p.setDimension("quotedPrice",H),Q<wo?p.pageViewTag(`ndx/${T}/price/singles`):p.pageViewTag(`ndx/${T}/price/bulk`),w&&p.pageViewTag(`ndx/${T}/blank`);break}case Tt.MONEY_SAVING_TIPS:{E?p.pageViewTag(`ndx/${T}/moneytips/specialty`):Q>=wo?p.pageViewTag(`ndx/${T}/moneytips`):Q<wo&&p.pageViewTag(`ndx/${T}/moneytips/singles`);break}case Tt.IMPOSSIBLE_TO_QUOTE:{A&&(p.pageViewTag(`ndx/${T}/error/colorlimit`),p.setDimension("quotedProductStyle",_),p.setDimension("quoteProductColor",d),p.setDimension("quoteProductCategory",l)),v&&p.pageViewTag(`ndx/${T}/error/sellblank`);break}}break}case g.QUOTE_WCIBMO:{const{anchorProductCategory:l,anchorProductColor:d,anchorProductStyleNumber:_,backColors:u,frontColors:E,mode:T,multiStyle:O,postalCode:I,totalQuantity:A,wcibmo:D}=i,v=()=>{p.setDimension("quotedProductStyle",_),p.setDimension("quantity",A),p.setDimension("quotedProductColor",d),p.setDimension("quotedProductCategory",l),p.setDimension("multiStyle",O)},w=()=>{v(),E&&p.setDimension("colorCountFront",E),u&&p.setDimension("colorCountBack",u)};switch(D){case fe.INVALID_ZIP:{I?(p.pageViewTag(`ndx/${T}/error/badzip`),p.setDimension("postalCode",I)):p.pageViewTag(`ndx/${T}/error/nozip`);break}case fe.ENTER_QUANTITIES:p.pageViewTag(`ndx/${T}/error/noquantity`);break;case fe.QUOTE_SERVICE_ERROR:p.pageViewTag(`ndx/${T}/error/quote_service_error`);break;case fe.CANADA_TO_US:p.setDimension("quotedProductStyle",_),p.pageViewTag(`ndx/${T}/error/canada_products_to_us`);break;case fe.US_TO_CANADA:p.setDimension("quotedProductStyle",_),p.pageViewTag(`ndx/${T}/error/us_products_to_canada`);break;case fe.RAISE_QTY:v(),p.pageViewTag(`ndx/${T}/error/belowmin`);break;case fe.RAISE_QTY_CHANGE_PRODUCT:v(),p.pageViewTag(`ndx/${T}/error/belowmin/color`);break;case fe.RAISE_QTY_CHANGE_STYLE:p.pageViewTag(`ndx/${T}/error/belowmin`),v();break;case fe.RAISE_QTY_CHANGE_TO_ALTERNATE:v(),p.pageViewTag(`ndx/${T}/error/belowmin/alternate`);break;case fe.RAISE_QTY_ABOVE_HI_COLOR_MIN:w(),p.pageViewTag(`ndx/${T}/error/belowmin/highcolor`);break;case fe.RAISE_QTY_ABOVE_HI_CHANGE_PRODUCT:w(),p.pageViewTag(`ndx/${T}/error/belowmin/highcolor/alt_product`);break;case fe.RAISE_QTY_ABOVE_HI_CHANGE_STYLE:w(),p.pageViewTag(`ndx/${T}/error/belowmin/highcolor/alt_style`);break;case fe.RAISE_QTY_ABOVE_HI_CHANGE_TO_ALTERNATE:w(),p.pageViewTag(`ndx/${T}/error/belowmin/highcolor/alternate`);break;case fe.RAISE_QTY_REMOVE_SLEEVE:p.pageViewTag("/ndx/sleeve/error/singles");break;case fe.SIZES_NOT_AVAILABLE:p.pageViewTag(`ndx/${T}/error/sizes_not_available`);break}break}case g.SELECT_FONT:p.pageViewTag("ndx/text/font");break;case g.SAVE_FORM:{const{path:l,queryParams:d}=i,_=Zn(d);_&&!d.referrer&&p.setDimension("RestingScreenClick",_);const u=l.toLowerCase();switch(u){case"/namesandnumbers/saveform":case"/namesandnumbers/saveform/":p.pageViewTag("ndx/namesandnumbers/save/form");break;case((d.referrer==="help"||d.referrer==="help/")&&u):p.pageViewTag("ndx/help/save/form");break;case((d.referrer==="art"||d.referrer==="art/")&&u):p.pageViewTag("ndx/art/save/form");break;case((d.referrer==="upload"||d.referrer==="upload/")&&u):p.pageViewTag("ndx/upload/save/form");break;case((d.referrer==="text"||d.referrer==="text/")&&u):p.pageViewTag("ndx/text/save/form");break;default:p.pageViewTag("ndx/save/form");break}break}case g.REAL_TIME_PRICE_CHANGE:{const l=e.getState(),d=Xs(l),_=o8(l);p.setDimension("realTimeItemPrice",`${d}_${_}`);break}case g.REAL_TIME_PRICE_QUANTITY_CHANGE:p.pageViewTag("ndx/quote/rtp");break;case g.SHARE_FACEBOOK:p.pageViewTag("ndx/share/facebook");break;case g.SHARE_LINK:p.pageViewTag("ndx/share/email/link");break;case g.SHARE_EMAIL:p.pageViewTag("ndx/share/email/form");break;case g.SHARE_PINTEREST:p.pageViewTag("ndx/share/pinterest");break;case g.SHARE_TWITTER:p.pageViewTag("ndx/share/twitter");break;case g.TEXT_EFFECT_DONE:p.pageViewTag("ndx/text/shape/done");break;
203case g.TEXT_EFFECT_INTENSITY:p.sessionPageViewTag("ndx/text/effect/intensity");break;case M.UPDATE_EFFECT:{const{effectName:l}=i;p.pageViewTag(`ndx/text/effect/${l}`);break}case g.TEXT_OUTLINE_ON:p.sessionPageViewTag("ndx/text/outline/on");break;case g.TEXT_OUTLINE_INTENSITY:p.sessionPageViewTag("ndx/text/outline/intensity");break;case g.TEXT_OUTLINE_COLOR:p.pageViewTag("ndx/text/outline/color");break;case g.TEXT_OUTLINE_OFF:p.pageViewTag("ndx/text/outline/off");break;case g.TEXT_TOOLS:p.pageViewTag("ndx/text/edit");break;case g.UPLOAD_CLOSE_TOOLS:p.pageViewTag("ndx/upload/close/tools");break;case g.UPLOAD_CHANGE_COLOR:p.pageViewTag("ndx/upload/editcolors/adjust");break;case g.UPLOAD_RESET_COLOR:p.pageViewTag("ndx/upload/editcolors/reset");break;case g.UPLOAD_TOGGLE_BACKGROUND:{const{visible:l}=i;p.pageViewTag(`ndx/upload/background/${l?"on":"off"}`);break}case g.UPLOAD_TOGGLE_PRODUCT_COLOR:{const{visible:l}=i;p.pageViewTag(`ndx/upload/hidecolor/${l?"on":"off"}`);break}case g.UPLOAD_OR_BROWSE_ART:{const{label:l}=i;p.fireEvent("your photo here","assisted design",l);break}case g.VIEW_ALL_FONT_CATEGORIES:p.pageViewTag("ndx/text/viewallfontcategories");break;case g.WELCOME:p.pageViewTag("ndx/welcome");break;case g.WELCOME_BACK:p.pageViewTag("ndx/welcomeback");break;case g.WELCOME_BACK_CONTINUE:p.pageViewTag("ndx/welcomeback/continue");break;case g.WELCOME_BACK_NEW:p.pageViewTag("ndx/welcomeback/new");break;case g.ZOOM_IN:p.pageViewTag("ndx/zoom/in");break;case g.ZOOM_OUT:p.pageViewTag("ndx/zoom/out");break;case te.ADD_ART:{const{icon:l}=i;p.setDimension("clipartid",l.clipartId),p.setDimension("artMultiColor",!l.blackwhite),p.pageViewTag("ndx/art/added"),m5(l)&&p.pageViewTag("ndx/art/added/inverted");break}case y.UPDATE_HORIZONTAL_FLIP:{const{iconType:l}=c;l===L.UPLOAD?p.pageViewTag("ndx/upload/flip_h"):p.pageViewTag("ndx/art/flip_h");break}case te.UPDATE_LOCK_RATIO:p.pageViewTag("ndx/art/lock_ratio");break;case y.UPDATE_SINGLE_COLOR:{const{singleColor:l}=i,{iconType:d}=c,_=l?"on":"off";d===L.UPLOAD?p.pageViewTag(`ndx/upload/onecolor/${_}`):p.pageViewTag(`ndx/art/onecolor/${_}`);break}case te.UPDATE_TRANSPARENCY:{const{transparency:l}=i;p.pageViewTag(`ndx/art/showwhite/${l?"off":"on"}`);break}case y.UPDATE_VERTICAL_FLIP:{const{iconType:l}=c;l===L.UPLOAD?p.pageViewTag("ndx/upload/flip_v"):p.pageViewTag("ndx/art/flip_v");break}case te.SEARCH_LOADED:{const{category:l,resource:d,fireAnalytics:_}=i;if(_){const u=d.count>0?"results":"noresults";let E=PC(l);E=E?`${E}/`:"";const T=`ndx/art/${u}/search/${E}${Be(l)}`;p.pageViewTag(T)}break}case y.ALIGN:{const{align:l}=i;p.pageViewTag(`ndx/align/${l}`);break}case y.BACKWARD:case y.CENTER:case y.COPY:case y.CUT:case y.FORWARD:case y.PASTE:{const l=a.replace("icon/","").toLowerCase();p.pageViewTag(`ndx/contextualtools/${l}`);break}case y.CHANGE_COLOR:{const{type:l}=i;l===L.NAMES?p.pageViewTag("ndx/namesandnumbers/tools/names/colors/selected"):l===L.NUMBERS&&p.pageViewTag("ndx/namesandnumbers/tools/numbers/colors/selected");break}case y.MOVE:{const{transforms:l}=i;l.forEach(({icon:d})=>{St(d)?p.pageViewTag("ndx/art/move"):Fe(d)?p.pageViewTag("ndx/text/move"):st(d)&&p.pageViewTag("ndx/upload/move")});break}case y.REMOVE:{const{iconTypes:l,source:d,aiGeneratedKeys:_}=i;d===Ri.CONTEXT_MENU&&p.pageViewTag("ndx/contextualtools/delete"),_!=null&&_.length&&_.forEach(u=>{$({event:"lab_design_generator_removed",configuration_id:u.configurationId||null,image_id:u.key}),p.pageViewTag("ndx/designgenerator/deleted")}),l.forEach(u=>{u===L.CLIPART?p.pageViewTag("ndx/art/deleted"):u===L.TEXT?p.pageViewTag("ndx/text/deleted"):u===L.NAMES?p.pageViewTag("ndx/namesandnumbers/tools/names/off"):u===L.NUMBERS?p.pageViewTag("ndx/namesandnumbers/tools/numbers/off"):u===L.UPLOAD&&p.pageViewTag("ndx/upload/deleted")});break}case y.RESIZE:{const{transforms:l,source:d}=i;l.length>1&&p.pageViewTag("ndx/multiselect/resize"),l.forEach(({icon:_})=>{St(_)?p.pageViewTag(`ndx/art/resize/${d}`):Fe(_)?p.pageViewTag(`ndx/text/resize/${d}`):st(_)&&p.pageViewTag(`ndx/upload/resize/${d}`)});break}case y.TOGGLE_INVERTED_CLIPART:{const{isInverted:l}=i;p.pageViewTag(`/ndx/art/invert/${l?"on":"off"}`);break}case Te.CHANGE_VIEW:{const l=i;p.pageViewTag(`ndx/rotate/${wt[l]}`);break}case k.SAVE_SUCCESS:{const l=e.getState(),{categoryName:d,colorId:_,firstTimeSaving:u,hasArtIcon:E,productC
203olor:T,response:O,savedDesignID:I}=i;p.setDimension("firstTimeSaver",!!u),p.setDimension("saveDesignID",I),p.setDimension("saveProductStyle",_),p.setDimension("saveProductCategory",d),p.setDimension("saveProductColor",T),p.setDimension("saveWithArt",E.toString());const A=O.design&&O.design.account_token;if(A&&(p.setDimension("userId",A),p.registerUser(A)),p.pageViewTag("ndx/save/confirm"),window.parent&&window.parent.postMessage){const{composite_id:D}=O.design;window.parent.postMessage({composite_id:D},K.fundraising_origin)}p.fireEvent("print method","save",`${Et(l)}`);break}case k.SAVE_FAILED:{const{error:l}=i,d=l&&l.errors&&l.errors.base||[];$({event:"save_design_error",failure_message:d}),p.pageViewTag("ndx/save/error");break}case k.SHARE_ERROR:p.pageViewTag("ndx/share/email/error");break;case k.SHARE_FAILURE:p.pageViewTag("ndx/share/email/error");break;case k.SHARE_SUCCESS:p.pageViewTag("ndx/share/email/confirm");break;case Le.CATEGORY_LOADED:{const{category:l}=i;p.pageViewTag(`ndx/text/font/browse/${Be(l)}`);break}case X.ADD_PRODUCT:{const{metricsEnabled:l,newStyle:d}=c;l&&(p.setDimension("multiStyle",i.products.map(_=>_.colorId).join(",")),p.pageViewTag(`ndx/additems/${d?"style":"color"}/selected`));break}case X.CHANGE_COLOR:{const{fireAnalytics:l}=c;if(!l)break;p.pageViewTag("ndx/productcolor/changed");break}case X.DELETE_PRODUCT:{if(!(c!=null&&c.fireAnalytics))break;p.pageViewTag("ndx/additems/remove");break}case X.SWAP_PRODUCT:{const{changedProductCategory:l,decorationMethod:d,isInitialLabLoad:_,oldViews:u,views:E}=i,{fireAnalytics:T}=c;if(!T)break;LC(u,E,.5)&&p.pageViewTag("ndx/constraints/resize"),_||(p.setDimension("changedProductCategory",l),p.pageViewTag("ndx/product/changed")),p.fireEvent("print method","change product",d);break}case g.SWAP_PRODUCT_WARNING:{let l="/ndx/style/compatible/error";i==="continue"&&(l=`${l}/continue`),p.pageViewTag(l);break}case y.ROTATE:{const{iconType:l}=c;l===L.UPLOAD?p.pageViewTag("ndx/upload/rotate"):l===L.TEXT?p.pageViewTag("ndx/text/rotate"):p.pageViewTag("ndx/art/rotate");break}case M.UPDATE_FONT_HEIGHT:{const{iconType:l}=i;l===L.NAMES?p.pageViewTag("ndx/namesandnumbers/tools/names/height/edit"):l===L.NUMBERS?p.pageViewTag("ndx/namesandnumbers/tools/numbers/height/edit"):p.pageViewTag("ndx/text/resize/input");break}case M.UPDATE_FONT:{const{fontCategory:l,fontName:d}=i;p.pageViewTag(`ndx/text/font/select/${g_({fontCategory:l,fontName:d})}`);break}case M.UPDATE_OUTLINE:{const{outlineWidth:l}=i,d=l===0?"off":"on";p.pageViewTag(`ndx/text/outline/${d}`);break}case M.UPDATE_TEXT:p.pageViewTag("ndx/text/update");break;case Se.CREATE:p.pageViewTag("ndx/namesandnumbers/list/add");break;case Se.ADD_NAMES:p.pageViewTag("ndx/namesandnumbers/tools/names/on");break;case Se.ADD_NUMBERS:p.pageViewTag("ndx/namesandnumbers/tools/numbers/on");break;case Se.REMOVE:p.pageViewTag("ndx/namesandnumbers/tools/names/on");break;case ae.ADD_SPOT_COLOR:p.pageViewTag("ndx/upload/spotColors/add");break;case ae.REMOVE_SPOT_COLOR:p.pageViewTag("ndx/upload/spotColors/remove");break;case ae.RESET_UPLOAD:p.pageViewTag("ndx/upload/reset/original");break}return s(o)}};function bC(e){try{const t=localStorage.getItem(Gt.VERSION),n=localStorage.getItem(Gt.TIMESTAMP);return!t||kt()||n&&Date.now()-n>Gt.VALID_DURATION?!1:t===e}catch(t){return z.error("Local Storage read error:",t),!1}}const{MAX_DESIGNS:MC,MAX_ICONS:UC}=Gt,e2=e=>G([ge(e).get("currentDesignId")]),xC=e=>Math.max(0,MC-e2(e).size),FC=e=>{const t=e2(e),n=xC(e);return n?e.design.present.keySeq().filterNot(s=>t.includes(s)).take(n):G()},Ld=e=>e2(e).reduce((t,n)=>t.set(n,e.design.present.get(n)),b()),Nd=e=>FC(e).reduce((t,n)=>t.set(n,e.design.present.get(n)),b()),VC=e=>{const t=ge(e).toObject();return R(f({},t),{selectedIconIds:[]})},kC=e=>{const t=Ld(e),n=Nd(e);return t.merge(n).toJS()},HC=e=>mn(e).toJS(),GC=e=>{let t=e;if(t.colors&&!p2(t.colors)&&(t=t.set("colors",G(t.colors))),t.spotColors&&!p2(t.spotColors)&&(t=t.set("spotColors",G(t.spotColors))),t=t.toJS(),t.color){const{r:n,g:s,b:o}=t.color;delete t.color,t.fgcolor=[n,s,o]}if(t.outlineColor){const{r:n,g:s,b:o}=t.outlineColor;delete t.outlineColor,t.outline={color:[n,s,o],width:t.outlineWidth,clearFill:t.outlineClearFill}}return t.effectSetting&&(t.effect={type:t.effectType,setting:t.effectSetting}),t},BC=e=>
203{const t=e.icon.present,n=Ld(e).merge(Nd(e)).reduce((a,i)=>a.merge(i.get("iconIds")),G()).merge(ge(e).get("recentUploadIconIds")),s=Math.max(0,UC-n.size),o=t.filter(a=>n.includes(a.id)),r=s?t.filterNot(a=>n.includes(a.id)).take(s):b();return o.merge(r).map(GC).toJS()},zC=e=>A6(e),WC=e=>Gn(e).toJS(),YC=e=>J(e).toJS(),jC=e=>({canvas:VC(e),design:kC(e),icon:BC(e),product:WC(e),namesAndNumbers:zC(e),quote:YC(e),fundraising:HC(e)}),Hs=ye(),QC=30,qC=[te.ADD_ART,te.CHANGE_SPOT_COLOR,te.UPDATE_TRANSPARENCY,te.SWAP,M.ADD_TEXT,M.UPDATE_TEXT,M.UPDATE_OUTLINE,M.UPDATE_EFFECT,M.RESET_TEXT,M.UPDATE_FONT,M.UPDATE_FONT_HEIGHT,Se.ADD_NAMES,Se.ADD_NUMBERS,Se.ADD_NAMES_AND_NUMBERS,y.ALIGN,y.ALIGN_CENTER,y.ALIGN_MIDDLE,y.ALIGN_LEFT,y.ALIGN_RIGHT,y.ALIGN_TOP,y.ALIGN_BOTTOM,y.BACKWARD,y.CENTER,y.CHANGE_COLOR,y.COPY,y.CROP,y.CUT,y.DISTRIBUTE_HORIZONTAL,y.DISTRIBUTE_VERTICAL,y.DUPLICATE,y.FORWARD,y.MOVE,y.MULTI_ICON_ALIGN,y.REMOVE,y.RESIZE,y.RESTORE,y.ROTATE,y.PASTE,y.UPDATE_HORIZONTAL_FLIP,y.UPDATE_VERTICAL_FLIP,y.UPDATE_SINGLE_COLOR,y.TOGGLE_INVERTED_CLIPART,ae.CHANGE_SPOT_COLOR,ae.RESET_UPLOAD,ae.UPDATE_COLOR_MODE,ae.UPLOAD_AND_SWAP,ae.SWAP_UPLOAD_IMAGE,k.CLEAR_DESIGN_DATA,X.ADD_PRODUCT,X.CHANGE_COLOR,X.DELETE_PRODUCT,X.SWAP_PRODUCT,X.REPLACE_PRODUCTS_CART_MODE];function jn(e){return Vu(e,{filter:t=>t.meta&&t.meta.redoUndoable===!1?!1:vn.includeAction(qC)(t),limit:QC})}const XC=e=>t=>!e.includes(t);function Pa(){return b({clipboard:G(),clipboardSource:null,currentDesignId:Hs,disabled:!1,disableArrowKeys:!1,labBlankLoad:!1,lastArtIconId:null,lastIconId:null,lastNamesIconId:null,lastNumbersIconId:null,lastTextIconId:null,lastUploadIconId:null,recentUploadIconIds:Ha(),selectedIconIds:G(),selectedViewId:c5()?ie.back:ie.front,sleevePrintEnabled:!1,productColorRemovalThreshold:9,resizeAttemptedBelowMinimum:!1})}function $C(e=Pa(),t){var n,s;switch(t.type){case Te.SET_LAB_BLANK_LOAD:return e.set("labBlankLoad",t.payload);case Te.SET_DISABLE_ARROW_KEYS:return e.set("disableArrowKeys",t.payload);case Te.ACTIVATE_SLEEVE_PRINT:return e.set("sleevePrintEnabled",t.payload);case Te.CHANGE_THRESHOLD:return e.set("productColorRemovalThreshold",t.payload);case Te.CLEAR_RECENT_UPLOADS:return e.set("recentUploadIconIds",Ha());case Te.REMOVE_RECENT_UPLOAD:return e.update("recentUploadIconIds",o=>o.delete(t.payload));case te.ADD_ART:return e.set("lastArtIconId",t.payload.iconId);case te.UPDATE_LAST_ART:return e.set("lastArtIconId",(n=t.payload)==null?void 0:n.iconId);case Te.CHANGE_VIEW:return e.set("selectedViewId",t.payload);case Te.CLEAR:return Pa();case k.CLEAR_DESIGN_DATA:return e.merge({labBlankLoad:!0,currentDesignId:Hs});case Te.DISABLE:{const{disabled:o}=t.payload;return e.set("disabled",o)}case Te.SHOW_DESIGN:{const{designId:o}=t.payload;return e.set("currentDesignId",o)}case y.CHANGE_COLOR:return e.set("lastIconId",t.payload.iconId);case y.COPY:{const{iconsMap:o,viewId:r}=t.payload,a=o.filter(i=>i.sourceIconType!==L.NAMES&&i.sourceIconType!==L.NUMBERS);return a.length?e.set("clipboard",G(a.map(i=>i.targetIconId))).set("clipboardSource",r):e}case y.CUT:{const{iconsMap:o,viewId:r}=t.payload,a=o.filter(i=>i.sourceIconType!==L.NAMES&&i.sourceIconType!==L.NUMBERS);return a.length?e.set("clipboard",G(a.map(i=>i.targetIconId))).set("clipboardSource",r).update("selectedIconIds",i=>i.filter(c=>!a.find(l=>l.sourceIconId!==c.id))):e}case y.DUPLICATE:case y.PASTE:{const{iconsMap:o}=t.payload;return e.set("selectedIconIds",G(o.map(r=>r.targetIconId)))}case y.RESIZE:{const{transforms:o}=t.payload;return o.forEach(({icon:r})=>{Fe(r)&&(e=e.set("lastTextIconId",r.id))}),e}case y.RESTORE:return e.set("selectedIconIds",G([t.payload.targetIconId]));case y.ORDER_RECENT_UPLOADS:{const{sourceIconId:o}=t.payload;return e.update("recentUploadIconIds",r=>r.delete(o).add(o).takeLast(xr))}case y.REMOVE:{const{iconIds:o}=t.payload;return e.updateIn(["selectedIconIds"],r=>r.filter(XC(o)))}case y.SET_VIEW:{const{iconId:o,iconType:r}=t.payload;return r===L.NAMES?e.set("lastNamesIconId",o):r===L.NUMBERS?e.set("lastNumbersIconId",o):e}case Se.ADD_NAMES:{const{iconId:o,viewId:r}=t.payload;return e.merge({lastNamesIconId:o,selectedViewId:r})}case Se.ADD_NUMBERS:{const{iconId:o,viewId:r}=t.payload;return e.merge({lastNumbersIconId:o,selectedViewId:r})}case Se.ADD_NAMES_AND_NUMBERS:{const{viewId:o,namesIconId:r,numbersIconId:a}=t.payload;return e.merge({lastNamesIconId:r,lastNumbersIconId:a,selectedViewId:o})}case Se.CLEAR:return e.merge({lastNamesIconId:null,lastNumbersIconId:null});case X.SWAP_PRODUCT:{const{views:o}=t.payload;return o?e.set("selectedViewId",o[0].id):e}case vt.DESELECT_ALL_ICONS:return e.set("selectedIconIds",G());case vt.DESELECT_ICON:return e.set("selectedIconIds",e.getIn(["selectedIconIds"]).filter(o=>o!==t.payload.iconId));case vt.SELECT_ICONS:{const{iconIds:o,viewId:r}=t.payload,a={selectedIconIds:G(o)};return r&&(a.selectedViewId=r),e.merge(a)}case vt.SELECT_ADDITIONAL_ICONS:return e.set("selectedIconIds",e.getIn(["selectedIconIds"]).concat(t.payload.iconId));case vt.SELECT_ICON:return e.set("selectedIconIds",G().concat(t.payload.iconId));case M.UPDATE_LAST_TEXT:return e.set("lastTextIconId",t.payload.iconId);case M.ADD_TEXT:case M.UPDATE_FONT:case M.UPDATE_OUTLINE:case M.UPDATE_EFFECT:return e.set("lastTextIconId",t.payload.iconId);case M.UPDATE_FONT_HEIGHT:{const{iconId:o,iconType:r}=t.payload;return r===L.NAMES?e.set("lastNamesIconId",o):r===L.NUMBERS?e.set("lastNumbersIconId",o):e.set("lastTextIconId",o)}case ae.UPLOAD_COMPLETE:{const{iconId:o,icon:r,recentUploadCopyId:a}=t.payload;return r.url&&r.url.startsWith("/uploads/accounts")?e.set("lastUploadIconId",o):e.set("lastUploadIconId",o).update("recentUploadIconIds",i=>i.add(a).takeLast(xr))}case ae.UPDATE_LAST_UPLOAD:return e.set("lastUploadIconId",(s=t.payload)==null?void 0:s.iconId);case ae.ADD_RECENT_UPLOAD:{const{recentUploadCopyId:o}=t.payload;return e.update("recentUploadIconIds",r=>r.add(o).takeLast(xr))}case M.SET_RESIZE_ATTEMPTED_BELOW_MINIMUM:return e.set("resizeAttemptedBelowMinimum",!0);case M.CLEAR_RESIZE_ATTEMPT:return e.set("resizeAttemptedBelowMinimum",!1);default:return e}}const ZC=jn($C),Lo=e=>t=>!e.includes(t),KC=e=>e===-1||e===void 0||e===null;function La(){return b({[Hs]:b({apiVersion:bn.designs.version,compositeId:null,email:null,fetching:kt(),iconIds:G(),id:Hs,isCombined:!1,lastUpdatedAt:new Date().getTime(),canUpdate:!0,name:"",inkMatches:b({})})})}function JC(e=La(),t){switch(t.type){case te.ADD_ART:case Se.ADD_NAMES:case Se.ADD_NUMBERS:case M.ADD_TEXT:case ae.UPLOAD_COMPLETE:case ae.UPLOAD_AND_SWAP:{const{designId:n,iconId:s,layerPosition:o}=t.payload;return e.updateIn([n,"iconIds"],r=>KC(o)?r.push(s):r.insert(o,s))}case Se.ADD_NAMES_AND_NUMBERS:{const{designId:n,namesIconId:s,numbersIconId:o}=t.payload;return e.updateIn([n,"iconIds"],r=>r.concat(s,o))}case y.BACKWARD:{const{designId:n,iconIds:s}=t.payload;return e.updateIn([n,"iconIds"],o=>{const r=o.filter(Lo(s));return G().concat(s,r)})}case y.FORWARD:{const{designId:n,iconIds:s}=t.payload;return e.updateIn([n,"iconIds"],o=>{const r=o.filter(Lo(s));return G().concat(r,s)})}case y.BACKWARD_STEP:{const{designId:n,iconIds:s}=t.payload,o=s[0];return e.updateIn([n,"iconIds"],r=>{const a=r.indexOf(o);return s.size>1||a===0?r:r.delete(a).insert(a-1,o)})}case y.FORWARD_STEP:{const{designId:n,iconIds:s}=t.payload,o=s[0];return e.updateIn([n,"iconIds"],r=>{const a=r.indexOf(o);return s.size>1||a===r.size-1?r:r.delete(a).insert(a+1,o)})}case y.CUT:{const{designId:n,iconsMap:s}=t.payload,o=s.filter(r=>r.sourceIconType!==L.NAMES&&r.sourceIconType!==L.NUMBERS);return o.length?e.updateIn([n,"iconIds"],r=>r.filter(Lo(o.map(a=>a.sourceIconId)))):e}case y.DUPLICATE:case y.PASTE:{const{designId:n,iconsMap:s}=t.payload;return e.updateIn([n,"iconIds"],o=>o.concat(s.map(r=>r.targetIconId)))}case y.REMOVE:{const{designId:n,iconIds:s}=t.payload;return e.updateIn([n,"iconIds"],o=>o.filter(Lo(s)))}case y.RESTORE:{const{designId:n,targetIconId:s}=t.payload;return e.updateIn([n,"iconIds"],o=>o.push(s))}case Se.CLEAR:{const{designId:n,iconIds:s}=t.payload;return e.updateIn([n,"iconIds"],o=>o.filter(r=>!s.includes(r)))}case k.DUPLICATE_DESIGN:{let{design:n}=t.payload;return n=n.set("lastUpdatedAt",new Date().getTime()),e.set(n.get("id"),n)}case k.SAVE_SUCCESS:case Ce.SAVE_SUCCESS:{const{designId:n,designName:s,email:o,response:r}=t.payload,a=e.get(n),i={name:s,compositeId:r.design.composite_id,email:o,accountId:r.design.account_id,lastUpdatedAt:new Date().getTime()};return a?(typeof a.get("canUpdate")=="undefined"&&(i.canUpdate=!0),e.mergeIn([n],i)):e.mergeIn([n],i)}case k.SAVE_FAILED:case Ce.SAVE_FAILED:{const{designId:n,designName:s,email:o,error:r}=t.payload;return(r&&r.errors&&r.errors.base||[]).includes("design_exists")?e.mergeIn([n],{compositeId:null,name:s,email:e.getIn([n,"email"])||o}):e}case k.CLEAR_DESIGN_DATA:case Te.CLEAR:return La().setIn([Hs,"fetching"],!1);case k.FETCH_SUCCESS:{let{design:n}=t.payload;n=n.set("lastUpdatedAt",new Date().getTime());const s=e.get(n.get("id"));return s&&["name","compositeId"].forEach(r=>{!n.has(r)&&s.has(r)&&(n=n.set(r,s.get(r)))}),e.set(n.get("id"),n)}case k.FETCH_FAILED:return e.setIn([t.payload.designId,"fetching"],!1);case k.RELOAD_ICONS_FROM_SAVE:return e.setIn([t.payload.designId,"iconIds"],t.payload.iconIds);case k.FETCH:return t.payload.showLoadingState!==!1?e.setIn([t.payload.designId,"fetching"],!0):e;case k.SET_COMBINE_DESIGNS:return e.setIn([t.payload.designId,"isCombined"],t.payload.isCombined);case X.SWAP_PRODUCT:{const{designId:n,newViewIcons:s,canvasViewIcons:o}=t.payload,r=[];for(const a of Object.keys(s))if(o.get(parseInt(a,10))){const i=o.get(parseInt(a,10));for(const c of i)r.push(c.id)}return e.setIn([n,"iconIds"],G(r))}case k.UPDATE_INK_MATCHES:{const{designId:n,inkMatches:s}=t.payload;return e.setIn([n,"inkMatches"],b(s))}case k.REMOVE_INK_MATCH:{const{designId:n,hexString:s}=t.payload;return e.deleteIn([n,"inkMatches",s])}case k.RESET_INK_MATCHES:{const{designId:n}=t.payload;return e.setIn([n,"inkMatches"],b({}))}default:return e}}const eI=jn(JC),t2=e=>t=>({future:{},past:{},present:e(t)}),tI=t2(e=>{const{canvas:t,icon:n}=e,s=Object.keys(n),o=Date.now(),r=t.recentUploadIconIds.filter(i=>s.includes(i)).filter(i=>{var l;const c=(l=n[i])==null?void 0:l.expirationDate;return c&&c>=o}),a=b({recentUploadIconIds:Ha(r)});return Pa().merge(a)}),nI=t2(e=>{const{design:t}=e;return b(t).map(s=>b(R(f({},s),{fetching:!1,iconIds:G(s.iconIds)}))).merge(La())}),sI=(e,t)=>{var s;return st(e)&&((s=e.url)==null?void 0:s.startsWith("/uploads/temp"))?e.expirationDate?e.expirationDate<t:!0:!1},oI=t2(e=>{const{icon:t}=e,n=Date.now();return new b(t).map(s=>Kl(s)).filter(s=>s!==void 0&&!sI(s,n))}),rI=e=>({canvas:tI(e),design:nI(e),icon:oI(e)}),wd="34";function aI(e){return Object.keys(e).filter(t=>{const n=typeof e[t],s=n==="function";return s||z.warning(`Reducers must be functions. The "${t}" reducer has type "${n}" and will be ignored.`),s})}function iI(e,t={},n="[unknown branch]"){typeof e=="undefined"&&z.warning(`The "${n}" reducer returned undefined while handling action type "${t.type}". If the branch should ignore this action, return the initial state. To unset this branch value, return null.`)}function cI(e){const t=Object.keys(e).reduce((n,s)=>(n[s]=!1,n),{});return{handleBranch(n){t[n]=!0}
203,validate(){const n=Object.keys(t).filter(s=>!t[s]);n.length&&z.warning(`The following branches have no corresponding reducer: ${n.join(", ")}`)}}}function lI(e){const t=aI(e);return function(s={},o){let r=!1;const a=cI(s),i=t.reduce((c,l)=>{const d=s[l],_=e[l](d,o,f({},s));return a.handleBranch(l),iI(_,o,l),r=r||_!==d,R(f({},c),{[l]:r?_:d})},f({},s));return a.validate(),r?i:s}}function dI(e){return e.length<=W.TEXT.SHORT_TEXT_LIMIT?W.TEXT.DEFAULTS.LINE_HEIGHT:e.length>W.TEXT.MEDIUM_TEXT_LIMIT?W.TEXT.DEFAULTS.LONG_TEXT_FONT_HEIGHT:W.TEXT.DEFAULTS.MEDIUM_TEXT_FONT_HEIGHT}function uI(e,t,n){return e.map(s=>t.includes(s.id)?n(s):s)}function Gc(){return b()}function _I(e=Gc(),t){var n,s;switch(t.type){case te.ADD_ART:{const{iconId:o,icon:r}=t.payload,a=new $o(R(f({},r),{id:o,sizeIsDirty:!0}));return e.set(o,a)}case te.SWAP:{const{iconId:o,blackwhite:r,clipartId:a,categoryPath:i,categoryTagId:c,color:l,colors:d,clipartVersions:_,width:u,height:E,naturalWidth:T,naturalHeight:O,singleColor:I,transparent:A}=t.payload,{color:D,verticalFlip:v,horizontalFlip:w,singleColor:H,transparent:Q}=new $o;return e.update(o,se=>se.set("clipartVersions",_).merge({blackwhite:r,categoryPath:i,categoryTagId:c,clipartId:a,color:l!=null?l:D,colors:d,height:E||se.height,horizontalFlip:w,sizeIsDirty:!0,singleColor:I!=null?I:H,transparent:A!=null?A:Q,verticalFlip:v,width:u||se.width,naturalWidth:T,naturalHeight:O,rendered:!1}))}case te.UPDATE_LOCK_RATIO:{const{iconId:o,lockRatio:r}=t.payload;return e.update(o,a=>a.merge({lockRatio:r,sizeIsDirty:!0}))}case te.UPDATE_TRANSPARENCY:{const{iconId:o,transparency:r}=t.payload;return e.update(o,a=>a.set("transparent",r))}case k.FETCH_SUCCESS:case k.DUPLICATE_DESIGN:return e.merge(t.payload.icons);case k.RELOAD_ICONS_FROM_SAVE:{const{icons:o,serverFields:r={}}=t.payload;return o.reduce((a,i)=>{const c=i.get("id"),l=a.get(c);if(!l)return a.set(c,i);const d=r[c];if(d){const u=d.filter(E=>!rc.includes(E)&&i.has(E));return a.set(c,u.reduce((E,T)=>E.set(T,i.get(T)),l))}const _=rc.reduce((u,E)=>u.set(E,l.get(E)),b());return a.set(c,l.merge(i).merge(_))},e)}case Te.REMAP_ICONS_VIEW:{const{sourceViewId:o,targetViewId:r}=t.payload;return e.filter(a=>a.get("viewId")===o).map(a=>a.set("viewId",r))}case Te.ICON_RENDERED:{const{iconId:o,width:r,height:a,originalBaseWidth:i,originalBaseHeight:c}=t.payload;return e.has(o)?e.update(o,l=>{const{rendered:d}=l,_=!Fe(l)||l.rendered,u={height:a||l.height,width:r||l.width,rendered:_};if(i!==void 0&&(u.originalBaseWidth=i),c!==void 0&&(u.originalBaseHeight=c),!d&&a&&r&&(l!=null&&l.lockRatio)&&!Fe(l)){const{rotation:E}=l,{naturalWidth:T,naturalHeight:O}=t0({height:a,width:r,originalWidth:l.naturalWidth||r,originalHeight:l.naturalHeight||a,rotation:E});u.naturalWidth=T,u.naturalHeight=O}return u.sizeIsDirty=!1,Fe(l)&&(u.textIsUpdating=!1),l.merge(u)}):e}case M.REPOSITION_FOR_TEXT_EFFECTS:{const{iconId:o,y:r}=t.payload;return e.update(o,a=>a.merge({y:r}))}case k.CLEAR_DESIGN_DATA:return Gc();case y.ALIGN:{const{iconId:o,align:r}=t.payload;return e.update(o,a=>a.merge({align:r,sizeIsDirty:!!a.rotation}))}case y.ALIGN_CENTER:{const{icons:o}=t.payload;return o.forEach(r=>{e=e.update(r.id,a=>a.set("x",y2(o).x))}),e}case y.ALIGN_MIDDLE:{const{icons:o}=t.payload;return o.forEach(r=>{e=e.update(r.id,a=>a.set("y",y2(o).y))}),e}case y.ALIGN_LEFT:{const{icons:o}=t.payload,r=Fr(o);return o.forEach(a=>{e=e.update(a.id,i=>i.set("x",ho(r,i).left))}),e}case y.ALIGN_RIGHT:{const{icons:o}=t.payload,r=I2(o);return o.forEach(a=>{e=e.update(a.id,i=>i.set("x",ho(r,i).right))}),e}case y.ALIGN_TOP:{const{icons:o}=t.payload,r=Vr(o);return o.forEach(a=>{e=e.update(a.id,i=>i.set("y",ho(r,i).top))}),e}case y.ALIGN_BOTTOM:{const{icons:o}=t.payload,r=A2(o);return o.forEach(a=>{e=e.update(a.id,i=>i.set("y",ho(r,i).bottom))}),e}case y.DISTRIBUTE_HORIZONTAL:{const{icons:o}=t.payload,r=Fr(o),a=R5(o)/(o.length-1),i=o.filter(l=>l.id!==Fr(o).id&&l.id!==I2(o).id).sort((l,d)=>l.x-d.x);let c=ht(r).right;return i.forEach(l=>{e=e.update(l.id,d=>d.set("x",c+a+d.width/2)),c=c+a+l.width}),e}case y.DISTRIBUTE_VERTICAL:{const{icons:o}=t.payload,r=Vr(o),a=D5(o)/(o.length-1),i=o.filter(l=>l.id!==Vr(o).id&&l.id!==A2(o).id).sort((l,d)=>l.y-d.y);let c=ht(r).bottom;
203return i.forEach(l=>{e=e.update(l.id,d=>d.set("y",c+a+d.height/2)),c=c+a+l.height}),e}case y.CENTER:{const{iconIds:o}=t.payload;return uI(e,o,r=>r.set("x",0))}case y.CHANGE_COLOR:{const{iconId:o,color:r}=t.payload;return e.update(o,a=>a.set("color",r))}case y.CROP:{const{iconId:o,crop:r,sizeIsDirty:a}=t.payload;return e.update(o,i=>i&&i.merge({crop:b(r),sizeIsDirty:a}))}case y.COPY:case y.CUT:{const{iconsMap:o}=t.payload,r=o.reduce((a,i)=>(a[i.targetIconId]=e.get(i.sourceIconId).set("id",i.targetIconId),a),{});return e.merge(r)}case y.MOVE:{const{transforms:o,constraints:r}=t.payload;return o.forEach(({icon:a,move:i})=>{e=e.update(a.id,c=>Ia(Zo(c,i.x,i.y),r))}),e}case y.PASTE:{const{clipboardSource:o,iconsMap:r,viewId:a,viewConstraint:i}=t.payload,c=r.reduce((l,d)=>{var u;const _=(u=e.get(d.sourceIconId))==null?void 0:u.merge({id:d.targetIconId,viewId:a});return l[d.targetIconId]=cc(_,i,o),l},{});return e.merge(c)}case y.DUPLICATE:{const{iconsMap:o,viewId:r,viewConstraint:a}=t.payload,i=o.reduce((c,l)=>{const d=e.get(l.sourceIconId).merge({id:l.targetIconId,viewId:r});return c[l.targetIconId]=cc(d,a,void 0),c},{});return e.merge(i)}case y.RESET_CLIPART_COLORS:{const{selectedIcon:o}=t.payload;return o.colors.toArray().forEach(r=>{e=e.update(o.id,a=>bE(a,r.original))}),e}case y.RESIZE:{const{transforms:o,constraints:r,isEmbroidered:a}=t.payload;return o===void 0||o.forEach(({icon:i,scale:c,move:l})=>{e=e.update(i.id,d=>{let _=d;if(Fe(d)&&a){const O=d.get("fontMinHeight")||W.TEXT.DEFAULTS.MIN_FONT_HEIGHT,I=W.TEXT.DEFAULTS.EMBROIDERY_MIN_FONT_HEIGHT,A=Math.max(O,I);A>O&&(_=d.set("fontMinHeight",A))}const u=Vi(_,c.x,c.y),E=Fe(d)&&u.get("fontHeight")===d.get("fontHeight")&&(c.x!==1||c.y!==1),T=l&&!E?Zo(u,l.x,l.y):u;return Ia(T,r)})}),e}case y.RESTORE:{const{sourceIconId:o,targetIconId:r,viewId:a,iconOptions:i={}}=t.payload,c=f({id:r,viewId:a},i),d=e.get(o).merge(c);return e.set(r,d)}case y.ROTATE:{const{iconId:o,rotation:r}=t.payload;return e.update(o,a=>{const c=st(a)||St(a)?a.rotation!==r:!0,l={rotation:r,sizeIsDirty:c};return St(a)&&r!==0&&(l.lockRatio=!0),Fe(a)&&(l.rotation=r*-1),a.merge(l)})}case y.SET_VIEW:{const{iconId:o,viewId:r}=t.payload;return e.update(o,a=>a.set("viewId",r))}case y.UPDATE_HORIZONTAL_FLIP:{const{iconId:o,flip:r}=t.payload;return e.update(o,a=>a.set("horizontalFlip",r))}case y.UPDATE_SINGLE_COLOR:{const{iconId:o,color:r,singleColor:a}=t.payload;return e.update(o,i=>{let c=i.merge({singleColor:a,color:r});return _a(c)&&(c=c.set("transparent",!0)),c})}case y.UPDATE_SINGLE_COLOR_AND_CONTRAST:{const{iconId:o,color:r,singleColor:a,contrast:i,invertContrast:c}=t.payload;return e.update(o,l=>{let d=l.merge({singleColor:a,color:r,contrast:i,invertContrast:c});return _a(d)&&(d=d.set("transparent",!0)),d})}case y.UPDATE_CONTRAST:{const{iconId:o,contrast:r}=t.payload;return e.update(o,a=>{const i=a.set("contrast",r);return r===null?i.set("invertContrast",!1):i})}case y.UPDATE_INVERT_CONTRAST:{const{iconId:o,invertContrast:r}=t.payload;return e.update(o,a=>a.set("invertContrast",r))}case y.UPDATE_VERTICAL_FLIP:{const{iconId:o,flip:r}=t.payload;return e.update(o,a=>a.set("verticalFlip",r))}case y.UPDATE_POSITION:{const{iconId:o,viewId:r,x:a,y:i,width:c,height:l}=t.payload;return e.update(o,d=>d.merge(f(f(f({x:a,viewId:r},i?{y:i}:{}),c?{width:c}:{}),l?{height:l}:{})))}case y.TOGGLE_INVERTED_CLIPART:{const{icon:o,isInverted:r}=t.payload,a=(n=o.clipartVersions)==null?void 0:n[r?"inverted":"default"];if(!a)return e;const{clipartId:i,colors:c,blackwhite:l}=a,d=c.map(_=>{const u=o.colors.find(E=>ze(E.original,_.original));return u?_.set("user",u.user):_});return e.update(o.id,_=>_.merge({clipartId:i,blackwhite:l,colors:d}))}case Se.ADD_NAMES:{const{iconId:o,viewId:r,fontHeight:a,y:i,color:c}=t.payload,l=new Vs({id:o,viewId:r,fontHeight:a,y:i,color:c});return e.set(o,l)}case Se.ADD_NUMBERS:{const{iconId:o,viewId:r,fontHeight:a,y:i,color:c}=t.payload,l=new ks({id:o,viewId:r,fontHeight:a,y:i,color:c});return e.set(o,l)}case Se.ADD_NAMES_AND_NUMBERS:{const{color:o,namesFontHeight:r,namesIconId:a,namesY:i,numbersFontHeight:c,numbersIconId:l,numbersY:d,viewId:_}=t.payload,u=new Vs({id:a,viewId:_,fontHeight:r,y:i,color:o}),E=new ks({id:l,viewId:_,fontHeight:c,y:d,color:o});return e.merge({[a]:u,[l]:E})}case X.ADD_PRODUCT:case X.REPLACE_PRODUCTS_CART_MODE:case X.SWAP_PRODUCT:{const{views:o,sponsorship:r,constraints:a,guidelines:i,oldConstraints:c,newViewIcons:l,scales:d,oldScales:_,decorationMethod:u,styleType:E,changedProductCategory:T,rearrangeIcons:O=!0,useSpecialGuidelineOnIconRearranger:I=!0,noHalftones:A=!1}=t.payload;return o?e.filter(D=>D!==null&&!!a[D==null?void 0:D.viewId]&&(r||!gs(D))).map(D=>{let v=D;return A&&st(D)&&(D!=null&&D.singleColor)&&(D==null?void 0:D.contrast)===null&&(v=D.set("contrast",200)),O?HE({icon:v,designDimensions:l,oldConstraints:c,newConstraints:a,oldScales:_,newScales:d,guidelines:i,decorationMethod:u,styleType:E,changedProductCategory:T,useSpecialGuideline:I}):v}):e}case M.ADD_TEXT:{const{iconId:o,icon:r}=t.payload,{font:a,lastFont:i,text:c}
203=r,l=new Ui(f(f(R(f({},r),{id:o,sizeIsDirty:!0,value:c,fontHeight:dI(c)}),i),a));return e.set(o,l)}case M.UPDATE_EFFECT:{const{iconId:o,effectType:r,effectSetting:a,effectName:i}=t.payload;return e.update(o,c=>c.merge({effectType:r,effectSetting:a,effectName:i,sizeIsDirty:!0}))}case M.RESET_TEXT:{const{iconId:o,defaultIconColor:r}=t.payload;return e.update(o,a=>a.merge({effectType:null,effectSetting:null,effectName:ia,outlineColor:B.None,outlineWidth:0,color:r,sizeIsDirty:!0}))}case M.UPDATE_FONT:{const{iconId:o,font:r,fontName:a,fontCategory:i,fontOutlineAllowed:c,fontMinHeight:l,iconFontHeight:d}=t.payload,_=l<=d?d:l;return e.update(o,u=>u.merge({font:r,fontName:a,fontCategory:i,fontHeight:_,fontMinHeight:l,fontOutlineAllowed:c,outlineColor:c?u.outlineColor:B.None,outlineWidth:c?u.outlineWidth:0,sizeIsDirty:!0}))}case M.UPDATE_FONT_CATEGORY:{const{iconId:o,fontCategory:r,fontOutlineAllowed:a}=t.payload;return e.has(o)?e.update(o,i=>i.merge({fontCategory:r,fontOutlineAllowed:a})):e}case M.UPDATE_FONT_HEIGHT:{const{iconId:o,fontHeight:r}=t.payload;return e.update(o,a=>a.merge({fontHeight:r,sizeIsDirty:!0}))}case M.UPDATE_OUTLINE:{const{iconId:o,outlineColor:r,outlineWidth:a,defaultIconColor:i}=t.payload;return e.update(o,c=>(!a&&c.get("color")===B.None&&(c=c.set("color",i)),c.merge({outlineColor:r===void 0?c.outlineColor:r,outlineWidth:a===void 0?c.outlineWidth:a,sizeIsDirty:!0})))}case M.UPDATE_TEXT:{const{iconId:o,text:r}=t.payload;return e.update(o,a=>a.merge({value:r,sizeIsDirty:!0,textIsUpdating:!0}))}case M.VERIFY_DIMENSIONS:{const{iconId:o}=t.payload;return e.update(o,r=>r.set("verifying",!0))}case M.VERIFY_ERROR:{const{iconId:o}=t.payload;return e.update(o,r=>r.merge({rendered:!0,verifying:!1}))}case M.VERIFY_SUCCESS:{const{iconId:o,fontHeight:r}=t.payload,a=r?{fontHeight:r,sizeIsDirty:!0,rendered:!1,verifying:!1,converted:!0}:{sizeIsDirty:!1,rendered:!0,verifying:!1,converted:!0};return e.update(o,i=>i.merge(a))}case te.CHANGE_SPOT_COLOR:{const{iconId:o,original:r,user:a,transparentToggle:i}=t.payload;return e.update(o,c=>i3(c,r,a,i))}case ae.CHANGE_SPOT_COLOR:{const{iconId:o,original:r,user:a,changeSelectedUser:i}=t.payload;return e.update(o,c=>tn(c,r,a,i))}case ae.REMOVE_SPOT_COLOR:{const{iconId:o,spotColor:r}=t.payload;return e.update(o,a=>ME(a,r))}case ae.ADD_SPOT_COLOR:{const{iconId:o,spotColor:r}=t.payload;return e.update(o,a=>UE(a,r))}case ae.RESET_UPLOAD:{const{iconId:o}=t.payload,{verticalFlip:r,horizontalFlip:a,singleColor:i,rotation:c,crop:l}=new Jn;return e.update(o,d=>{var I,A,D,v;const _=d.rotation!==c||d.crop&&!((I=d.crop)!=null&&I.equals(l)),u=(A=d.originalSpotColors)!=null?A:d.spotColors,E=(D=d.originalColorMode)!=null?D:d.colorMode,T=(v=d.originalBackgroundColor)!=null?v:d.backgroundColor;return u.reduce((w,H)=>tn(w,H.original,H.palette,!0),d.merge({spotColors:u})).merge({backgroundColor:T,colorMode:E,horizontalFlip:a,rotation:c,singleColor:i,sizeIsDirty:_,verticalFlip:r,crop:l,originalSpotColors:null,originalColorMode:null,originalBackgroundColor:null})})}case ae.UPDATE_SPOT_COLORS:{const{iconId:o,spotColors:r,colorMode:a,cropXPercent:i,cropYPercent:c,cropWidthPercent:l,cropHeightPercent:d,restored:_}=t.payload;return e.update(o,u=>{var se,oe,Z;if(C7(u,{cropXPercent:i,cropYPercent:c,cropWidthPercent:l,cropHeightPercent:d}))return u;const E=(se=u.originalSpotColors)!=null?se:u.spotColors,T=(oe=u.originalColorMode)!=null?oe:u.colorMode,O=(Z=u.originalBackgroundColor)!=null?Z:u.backgroundColor,I=u.spotColors,A=F=>{var Y;const U=I.find(ce=>ze(ce.original,F.original));if(U)return U;const q=(Y=F.palette)==null?void 0:Y.name;if(!q)return;const re=I.filter(ce=>{var _e;return((_e=ce.palette)==null?void 0:_e.name)===q}),ee=r.filter(ce=>{var _e;return((_e=ce.palette)==null?void 0:_e.name)===q});return re.size===1&&ee.size===1?re.first():void 0},D=_?r:r.map(F=>{const U=A(F);return U?F.merge({user:U.user,selectedUser:U.selectedUser}):F}),v=u.backgroundColor&&I.find(F=>ze(F.original,u.backgroundColor)),w=v&&r.find(F=>{var U;return(U=A(F))==null?void 0:U.equals(v)});let H=u.backgroundColor;_?H=O:w&&(H=w.original);
203let Q=u.merge({spotColors:D,colorMode:a,backgroundColor:H,originalSpotColors:E,originalColorMode:T,originalBackgroundColor:O});return!_&&a===He.SPOT&&u.backgroundColor&&!v&&(Q=tn(Q,u.backgroundColor,B.None)),Q})}case ae.UPDATE_COLOR_MODE:{const{iconId:o,colorMode:r}=t.payload;if(r===He.MONOCHROME){const a=G([ws(B.Black),ws(B.White)]);e=e.setIn([o,"spotColors"],a)}return e.setIn([o,"colorMode"],r)}case ae.ADD_RECENT_UPLOAD:case ae.UPLOAD_COMPLETE:{const{icon:o,iconId:r,recentUploadCopyId:a}=t.payload,i=t.payload.productColor;let c=new Jn(R(f({},o),{id:r,sizeIsDirty:!0}));if(c.colorMode===He.SPOT){const l=c.spotColors.filter(E=>E.get("palette").name===i.name),d=c.spotColors.map(E=>E.get("palette")).toSet().count()<=1,_=T4.includes(i.name),u=c.spotColors.find(E=>{var T;return E.original.name===((T=c.backgroundColor)==null?void 0:T.name)});_&&!l.isEmpty()&&!d?l.forEach(E=>{c=tn(c,E.original,B.None)}):d&&c.backgroundColor&&u?c=tn(c,B.None,c.backgroundColor):c.backgroundColor&&(c=tn(c,c.backgroundColor,B.None))}return e.merge({[r]:c,[a]:c.set("id",a)})}case ae.UPLOAD_AND_SWAP:{const{iconId:o,icon:{selectedIcon:r},icon:a}=t.payload,{x:i,y:c,width:l,height:d}=r,_=new Jn(R(f({},a),{id:o,sizeIsDirty:!0,x:i,y:c,width:l,height:d}));return e.set(o,_).delete(r.id)}case ae.SWAP_UPLOAD_IMAGE:{const{iconId:o,icon:r}=t.payload,a=e.get(o);if(!a)return e;const{x:i,y:c,width:l,height:d,rotation:_,lockRatio:u,horizontalFlip:E,verticalFlip:T,viewId:O,crop:I}=a,A=b.isMap(I)?I.toJS():I,D=new Jn(R(f({},r),{id:o,viewId:O,x:i,y:c,width:l,height:d,rotation:_,lockRatio:u,horizontalFlip:E,verticalFlip:T,crop:I!=null?I:b({xPercent:0,yPercent:0,widthPercent:1,heightPercent:1}),originalBaseWidth:A!=null&&A.widthPercent?l/A.widthPercent:l,originalBaseHeight:A!=null&&A.heightPercent?d/A.heightPercent:d,originalImageWidth:r.originalImageWidth||a.originalImageWidth,originalImageHeight:r.originalImageHeight||a.originalImageHeight,sizeIsDirty:!0,backgroundRemoved:(s=r.backgroundRemoved)!=null?s:a.backgroundRemoved}));return e.set(o,D)}default:return e}}const pI=jn(_I),Jt=Ct({colorId:Ht,styleId:Xa,visible:!0});function Na(e=Xa,t=Ht,n=x1){const s=Ws()?{}:pn(),o=s.styleId||e,r=s.colorId||t,a=new Jt(o&&r?{styleId:o,colorId:r,visible:!0}:void 0),i=G([a]);return b({anchorStyleId:a.styleId,categoryPaths:b({[o]:n}),currentColorId:a.colorId,lastSavedSelections:i.hashCode(),selections:i,hasInvalidProductImage:{},swapProductInProgress:!1})}function bd(e,t){return e.get("selections").some(n=>t===n.get("colorId"))}function na(e,t){return e.get("selections").findIndex(n=>t===n.colorId)}function gI(e=Na(),t){var n;switch(t.type){case k.SAVE_SUCCESS:case Ce.SAVE_SUCCESS:return e.set("lastSavedSelections",e.get("selections").hashCode());case X.ADD_PRODUCT:{const{products:s,isMerging:o}=t.payload;return o?e.update("selections",r=>r.unshift(...s.map(a=>new Jt(a)))):e.update("selections",r=>r.push(...s.map(a=>new Jt(a)))).set("currentColorId",s[s.length-1].colorId)}case X.CHANGE_COLOR:{const{previousColorId:s,nextColorId:o}=t.payload,r=na(e,s);return e.setIn(["selections",r,"colorId"],o).set("currentColorId",o)}case k.SET_COMBINE_DESIGNS:{const{previousQuoteQuantities:s,combinedAnchorStyleId:o,isCombined:r}=t.payload;let a=e;return r?(s&&s.forEach(i=>{const c=na(e,i.colorId);a=a.setIn(["selections",c,"visible"],!1)}),a.set("anchorStyleId",o)):e.update("selections",i=>i.filter(c=>c.visible===!0)).update(i=>i.update("anchorStyleId",()=>i.get("selections").get(0).styleId))}case X.DELETE_PRODUCT:{const{colorId:s}=t.payload;if(e.get("selections").size<=1)throw new Error("Attempting to delete last remaining product");return e.update("selections",o=>o.filter(r=>s!==r.colorId)).update(o=>o.update("currentColorId",r=>{const a=o.getIn(["selections",0,"colorId"]);return r===s?a:r}).update("anchorStyleId",r=>{var i;const a=o.get("selections");return a.find(c=>c.styleId===r)?r:(i=a.first())==null?void 0:i.styleId}))}case X.REPLACE_PRODUCTS:{const s=G(t.payload.products.map(o=>new Jt(o)));return e.merge({selections:s,currentColorId:s.first().colorId,lastSavedSelections:s.hashCode(),anchorStyleId:s.first().styleId})}case X.REPLACE_PRODUCTS_CART_MODE:{const{products:s}=t.payload,o=t5(s),r=G(o.map(a=>new Jt(a)));return e.merge({selections:r,currentColorId:r.first().colorId,lastSavedSelections:null,anchorStyleId:r.first().styleId})}case X.RESET:{const{styleId:s,colorId:o,categoryPath:r}=t.payload;return Na(s,o,r)}case X.SELECT_PRODUCT:{const s=t.payload;return bd(e,s)?e.set("currentColorId",s):e}case X.SWAP_PRODUCT:{const{nextStyleId:s,previousColorId:o,nextColorIds:r,nextCategoryPath:a}=t.payload,{clearPreviousProducts:i,preserveSelection:c}=t.meta,l=N2({categoryPath:a}),d=na(e,o),_=e.getIn(["selections",d,"styleId"]);if(i){let E=e.update("selections",T=>T.filter(O=>O.styleId===_&&r[O.colorId]).map(O=>new Jt({styleId:s,colorId:r[O.colorId]}))).update("categoryPaths",T=>T.set(s,l)).set("anchorStyleId",s);return c?E=E.update("currentColorId",T=>{var O;return(O=r[T])!=null?O:T}):E=E.set("currentColorId",r[o]),E}let u=e.update("selections",E=>E.map(T=>T.styleId===_&&r[T.colorId]?new Jt({styleId:s,colorId:r[T.colorId]}):T)).update("categoryPaths",E=>E.set(s,l));return u=c?u.update("currentColorId",E=>{var T;return(T=r[E])!=null?T:E}):u.set("currentColorId",r[o]),d===0?u.set("anchorStyleId",s):u}case V.UPDATE_PRODUCT_QUANTITIES:{if((n=t.meta)!=null&&n.dontSortSelectionByQuantity||e.get("selections").size===1)return e;const s=t.payload;if(!s)return e;const o=Object.keys(s).reduce((r,a)=>{const i=s[a];return i&&(r[a]=Object.keys(i).reduce((c,l)=>i[l]+c,0)),r},{});return e.update("selections",r=>r.sort((a,i)=>o[i.colorId]-o[a.colorId])).update(r=>
203r.update("anchorStyleId",a=>r.get("selections").filter(l=>l.styleId===a).map(l=>l.colorId).toArray().reduce((l,d)=>o[d]+l,0)<1?r.get("selections").first().styleId:a))}case X.UPDATE_HAS_INVALID_PRODUCT_IMAGES:{const{productId:s,viewId:o}=t.payload;return e.set("hasInvalidProductImage",R(f({},e.get("hasInvalidProductImage")),{[ga({productId:s,viewId:o})]:!0}))}case X.UPDATE_CATEGORY_PATHS:{const{categoryPath:s,styleId:o}=t.payload;return e.update("categoryPaths",r=>r.set(o,N2({categoryPath:s})))}case X.SET_ANCHOR_STYLE_AND_COLOR_ID:{const{styleId:s,colorId:o}=t.payload;return e.set("anchorStyleId",s).set("currentColorId",o).set("selections",G([new Jt({styleId:s,colorId:o,visible:!0})]))}default:return e}}function EI(e,t){const n=e.get("selections");if(n.isEmpty()||bd(e,e.get("currentColorId")))return e;const s=n.first().get("colorId");return z.error("Product: currentColorId matched no selection, repaired",{actionType:t.type,danglingColorId:e.get("currentColorId"),repairedTo:s,selectionCount:n.size}),e.set("currentColorId",s)}function hI(e=Na(),t){return EI(gI(e,t),t)}const fI=jn(hI),mI=Object.freeze({Idle:"Idle",Pending:"Pending",Resolved:"Resolved",Rejected:"Rejected"}),Md="savedBefore";function TI(){return{country:null,internal:dt.get(is)==="true",orderedBefore:null,preferSingles:!1,savedBefore:!!dt.get(Md),savedDesignsStatus:mI.Idle,hasMoreSavedDesigns:!1}}function SI(e=TI(),t){switch(t.type){case ds.UPDATE_INTERNAL_USER:switch(t.payload){case"internal":return dt.set(is,!0),R(f({},e),{internal:!0});case"external":return dt.set(is,!1),R(f({},e),{internal:!1});default:return e}case k.SAVE_SUCCESS:return e.savedBefore||dt.set(Md,!0),R(f({},e),{savedBefore:!0});case ds.SET_PREFER_SINGLES:return R(f({},e),{preferSingles:t.payload});default:return e}}function CI(){return b({root:null,browsedCategories:G(),categories:G(),categoryNames:b(),clipartAutofillData:[],lastSearch:null,recentlyUsed:G(),recentlyUsedArt:G(),recentlyUsedSnapshot:G(),searchHistory:Nt(),error:null})}function Bc(e,t){return e.withMutations(n=>{let s=n;return t.forEach(o=>{s=s.set(String(o.id),o.name)}),s})}function II(e=CI(),t){var n;switch(t.type){case te.BROWSED_CATEGORIES:return e.set("browsedCategories",G(t.payload));case te.ADD_TO_RECENTLY_USED_ART:return e.update("recentlyUsedArt",s=>G(s.concat(t.payload)));case te.SET_RECENTLY_USED_CLIPART_SNAPSHOT:return e.set("recentlyUsedSnapshot",G(t.payload));case te.SET_RECENTLY_USED_CLIPART:return e.set("recentlyUsed",G(t.payload));case te.SELECT_CLIPART:return e.update("recentlyUsed",s=>s.includes(t.payload)?s:s.size<4?s.unshift(t.payload):s.unshift(t.payload).slice(0,4));case te.SEARCH_LOADED:case te.CATEGORY_LOADED:{const s={name:t.payload.category,category:t.payload.resource},{_embedded:o}=t.payload.resource,r=Array.isArray(o==null?void 0:o.category)?o.category[0]:o==null?void 0:o.category,a=(o==null?void 0:o.children)||(r==null?void 0:r.children)||((n=r==null?void 0:r._embedded)==null?void 0:n.children);return a?e.update("categories",c=>c.unshift(s)).update("categoryNames",c=>Bc(c,a)).set("error",null):e.update("categories",c=>c.unshift(s)).set("error",null)}case te.CATEGORY_FAILED:case te.ROOT_FAILED:return e.set("error",t.payload.error);case te.ROOT_LOADED:{const s=t.payload.resource._embedded.clipart_categories;if(s){const o=e.update("categoryNames",r=>Bc(r,s));return t.payload.resource._embedded.clipart_categories=s,o.set("root",t.payload.resource)}else return e.set("root",t.payload.resource)}case te.CLIPART_AUTOFILL_DATA_LOADED:{const s=[...t.payload,...vC];return e.set("clipartAutofillData",s)}case te.SET_LAST_SEARCH:return e.set("lastSearch",t.payload);case te.UPDATE_ART_SEARCH_HISTORY:{const s=t.payload.toLowerCase().split(" ").map(o=>o.charAt(0).toUpperCase()+o.substring(1)).join(" ");return e.update("searchHistory",o=>o.add(s))}case te.CLEAR:return e.set("error",null);case te.SEARCH_FAILED:return e.set("error",t.payload.error);case at.DISMISS:return e.set("error",null);default:return e}}function AI(){return b({styles:b(),complements:b(),alternatives:b(),compatibleStyles:b(),fetching:Nt(),fetchingComplements:b(
203),catalogCID:"",catalogCIDProductColorId:"",relatedStyles:G()})}function yI(e=AI(),t){switch(t.type){case xe.FETCH_STYLE:{const n=t.payload;return e.setIn(["styles",n],{isFetching:!0,errors:[]})}case xe.STYLE_LOADED:{const{style:n}=t.payload;return e.setIn(["styles",n.id],n)}case xe.STYLE_LOAD_ERROR:{const{styleId:n,error:s}=t.payload;return e.updateIn(["styles",n],o=>(o.errors.push(s),o.isFetching=!1,o))}case xe.FETCH_STYLES:{const n=t.payload;return e.update("fetching",s=>n.reduce((o,r)=>o.add(r),s))}case xe.SET_OVERLAY_STYLES:{const n=t.payload;return e.setIn(["overlayStyles"],n)}case xe.STYLES_SUCCESS:{const n=t.payload;return e.update("styles",s=>s.withMutations(o=>n.forEach(r=>o=o.set(r.id,r)))).update("fetching",s=>n.reduce((o,r)=>o.remove(r.id),s))}case xe.STYLES_ERROR:{const{styleIds:n,error:s}=t.payload;return n?e.update("styles",o=>n==null?void 0:n.reduce((r,a)=>o.updateIn(["styles",a],i=>{const c=i||{};return c.errors=[s],c}),o)).update("fetching",o=>{var r;return(r=n==null?void 0:n.reduce((a,i)=>a.remove(i),o))!=null?r:o}):e}case xe.LOAD_CATALOG_DESIGN:{const{catalogCID:n,catalogCIDProductColorId:s}=t.payload;return e.set("catalogCID",n).set("catalogCIDProductColorId",s)}case Dt.FETCH:{const n=t.payload;return e.setIn(["complements",n],void 0).setIn(["alternatives",n],void 0)}case Dt.SET_IS_FETCHING:{const{styleId:n,fetching:s}=t.payload;return e.setIn(["fetchingComplements",n],{isFetching:s})}case Dt.FETCH_SUCCESS:{const{complements:n,styleId:s,alternatives:o}=t.payload;return e.setIn(["complements",s],G(n)).setIn(["alternatives",s],G(o))}case Dt.FETCH_ERROR:{const{styleId:n}=t.payload;return e.setIn(["complements",n],G())}case Dt.ALTERNATIVES_FETCH_SUCCESS:return e.setIn(["alternatives",t.payload.styleId],G(t.payload.alternativeIds));case ts.FETCH:{const n=t.payload;return e.setIn(["compatibleStyles",n],G())}case ts.FETCH_SUCCESS:{const{compatibleStyles:n,styleId:s}=t.payload;return e.setIn(["compatibleStyles",s],G(n))}case ts.FETCH_ERROR:{const{styleId:n}=t.payload;return e.setIn(["compatibleStyles",n],G())}default:return e}}function he(e){return`${e}-style font`}const OI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2090%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M55.5,42.49a1.83,1.83,0,0,0-.67.89,15.63,15.63,0,0,0-.56,2.15L50.75,64.71H39.56L35.77,44.88a6.24,6.24,0,0,0-.44-1.44,3,3,0,0,0-.83-.95V37.71h9v4.43a2.08,2.08,0,0,1,1,1.28v.32S44,44,44,44.13l1.24,7.41c.1.64.19,1.26.26,1.87s.16,1.41.29,2.3h.08c.06-.6.12-1.3.18-2s.16-1.43.26-2.15l1.16-7.37c0-.15,0-.29.06-.41s0-.22,0-.3a1.32,1.32,0,0,0-1.09-1.32V37.71h9Z'/%3e%3cpath%20class='cls-2'%20d='M56.5,60.22a1.93,1.93,0,0,0,.81-.87,4.55,4.55,0,0,0,.19-1.57V51.65a4.49,4.49,0,0,0-.19-1.59,2,2,0,0,0-.81-.86V44.71h9V57.77a4.46,4.46,0,0,0,.2,1.6,2.1,2.1,0,0,0,.8.85v4.49h-10Zm8.65-19.91a2.67,2.67,0,0,1-1.1,2.21,4.55,4.55,0,0,1-2.88.86,4.48,4.48,0,0,1-2.87-.86,2.76,2.76,0,0,1,0-4.38,4.48,4.48,0,0,1,2.87-.85,4.55,4.55,0,0,1,2.88.85A2.65,2.65,0,0,1,65.15,40.31Z'/%3e%3cpath%20class='cls-2'%20d='M75.5,55.76v1.68c.36.9.46,1.53.66,1.89a1.35,1.35,0,0,0,2.19,0,3.41,3.41,0,0,0,.15-2v-.57h7V61.9a7.28,7.28,0,0,1-3.41,1.93,17.87,17.87,0,0,1-4.84.58q-4.74,0-6.69-1.56a4.7,4.7,0,0,1-1.51-2.11,14,14,0,0,1-.55-3.38V51.14a12.75,12.75,0,0,1,.63-3.62A4.91,4.91,0,0,1,71,45.33a6.78,6.78,0,0,1,2.49-.95,20.36,20.36,0,0,1,3.77-.28,17,17,0,0,1,4.75.53,5.61,5.61,0,0,1,2.77,1.82,6.49,6.49,0,0,1,.58.91,4.87,4.87,0,0,1,.36,1.08,9.65,9.65,0,0,1,.18,1.49,4.09,4.09,0,0,1-.4,2.17v3.61h-10Zm2.91-4c0-.5,0-.88,0-1.13a3.84,3.84,0,0,0-.1-.66,1.34,1.34,0,0,0-1.36-1.15,1.17,1.17,0,0,0-1.13.55,4.92,4.92,0,0,0-.3,2.07v.32Z'/%3e%3cpath%20class='cls-2'%20d='M103.36,64.71l-2-7.67-2.12,7.67H92.26L88.81,51.49A7,7,0,0,0,88.27,50a2.29,2.29,0,0,0-.77-.78V44.71h9V49.2a1.24,1.24,0,0,0-.59,1,4.39,4.39,0,0,0,.15,1L96.74,54a2,2,0,0,1,.1.47,2.11,2.11,0,0,0,.06.43l2.69-10.21h4.86l2.76,10.21a1.26,1.26,0,0,1,.05-.33l.06-.26a.64.64,0,0,1,.06-.23l.73-3a3.85,3.85,0,0,0,.1-.55c0-.15,0-.25,0-.31a1.1,1.1,0,0,0-.73-1.06V44.71h8V49.2a2.28,2.28,0,0,0-.75.8,8.08,8.08,0,0,0-.59,1.61l-3.62,13.1Z'/%3e%3cpath%20class='cls-2'%20d='M143.15,37.71,147,56.78a10.87,10.87,0,0,0,.63,2.23,1.87,1.87,0,0,0,.86.93v4.77h-11v-5.4c.83-.16,1.05-.35,1.22-.58a1.68,1.68,0,0,0,.26-1c0-.05,0-.12,0-.21s-.05-.24-.1-.79h-4c-.06.63-.09.81-.1.9a1.23,1.23,0,0,0,0,.26,1.74,1.74,0,0,0,.74,1.44v5.4h-9V59.94a2.22,2.22,0,0,0,.76-1,10.68,10.68,0,0,0,.45-1.82l3.62-19.43Zm-5.1,14-.8-4.49c-.18-.92-.3-1.62-.36-2.12s-.12-1-.17-1.39h-.08c0,.51-.12,1.08-.19,1.72s-.15,1.23-.23,1.79l-.61,4.49Z'/%3e%3cpath%20class='cls-2'%20d='M150.5,60.26a2.2,2.2,0,0,0,.79-.87,4.13,4.13,0,0,0,.21-1.56V44.59a8.15,8.15,0,0,0,0-.93,2.07,2.07,0,0,0-.17-.62,1.5,1.5,0,0,0-.31-.45l-.48-.42V37.71h8V57.83a4.37,4.37,0,0,0,.2,1.58,2,2,0,0,0,.8.85v4.45h-9V60.26Z'/%3e%3cpath%20class='cls-2'%20d='M161.5,60.26a2.2,2.2,0,0,0,.79-.87,4.13,4.13,0,0,0,.21-1.56V44.59a8.15,8.15,0,0,0,0-.93,2.07,2.07,0,0,0-.17-.62,1.5,1.5,0,0,0-.31-.45l-.48-.42V37.71h8V57.83a4.37,4.37,0,0,0,.2,1.58,2,2,0,0,0,.8.85v4.45h-9V60.26Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",RI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20204.6%20102.36'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2098%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='204.6'%20height='102.36'/%3e%3cpath%20class='cls-2'%20d='M57.88,67.16H41.58a1,1,0,0,1-.7-.29.94.94,0,0,1-.28-.7v-30a1,1,0,0,1,1-1H56.49q5,0,7.68,2.41A8.2,8.2,0,0,1,66.85,44a7.2,7.2,0,0,1-3.19,6.31.49.49,0,0,0-.21.39.38.38,0,0,0,.25.35,7.27,7.27,0,0,1,4.58,7.08,8.32,8.32,0,0,1-2.8,6.52A11,11,0,0,1,57.88,67.16Zm.7-22A2.33,2.33,0,0,0,56,42.66H49.61a.79.79,0,0,0-.58.25.78.78,0,0,0-.24.57v3.44a.82.82,0,0,0,.82.82h5.94C57.57,47.74,58.58,46.9,58.58,45.2ZM60,56.87c0-1.82-1-2.74-3-2.74H49.61a.79.79,0,0,0-.58.25.78.78,0,0,0-.24.57v4a.82.82,0,0,0,.82.82H57C59,59.74,60,58.79,60,56.87Z'/%3e%3cpath%20class='cls-2'%20d='M87.25,67.77A16.52,16.52,0,0,1,75.31,62.9a16.18,16.18,0,0,1,0-23.43,17.1,17.1,0,0,1,23.92,0,16.29,16.29,0,0,1,0,23.43A16.5,16.5,0,0,1,87.25,67.77Zm0-25.27A8.69,8.69,0,0,0,81.1,57.33,8.71,8.71,0,0,0,93.43,45,8.34,8.34,0,0,0,87.25,42.5Z'/%3e%3cpath%20class='cls-2'%20d='M130.09,67.16h-21.5a1,1,0,0,1-1-1v-30a.94.94,0,0,1,.29-.69.91.91,0,0,1,.7-.29h6.18a1,1,0,0,1,1,1V58.43A.79.79,0,0,0,116,59a.75.75,0,0,0,.57.25h13.52a1,1,0,0,1,.7.29.94.94,0,0,1,.28.69v5.94a.94.94,0,0,1-.28.7A1,1,0,0,1,130.09,67.16Z'/%3e%3cpath%20class='cls-2'%20d='M148.89,67.16H135.05a1,1,0,0,1-1-1v-30a.94.94,0,0,1,.29-.69.91.91,0,0,1,.7-.29h13.84a15.2,15.2,0,0,1,8.31,2.21,13.47,13.47,0,0,1,5.14,5.77,18.67,18.67,0,0,1,1.66,8,18.75,18.75,0,0,1-1.66,8A13.3,13.3,0,0,1,157.2,65,15.2,15.2,0,0,1,148.89,67.16Zm4.89-10.1a8.52,8.52,0,0,0,1.95-5.88,8.45,8.45,0,0,0-1.95-5.86,7,7,0,0,0-5.51-2.17h-5.2a.79.79,0,0,0-.57.25.81.81,0,0,0-.25.57V58.43a.79.79,0,0,0,.25.57.75.75,0,0,0,.57.25h5.2A7,7,0,0,0,153.78,57.06Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",DI="https://www.customink.com/ndx/assets/brush-BjVcYQej.svg",vI="https://www.customink.com/ndx/assets/bubble-VDK2aex6.svg",PI="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2024.0.3,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20205%20102'%20style='enable-background:new%200%200%20205%20102;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%20%23222020;}%20%3c/style%3e%3ctitle%3eAsset%2050%3c/title%3e%3cg%20id='Layer_2_1_'%3e%3cg%20id='Layer_1-2'%3e%3crect%20class='st0'%20width='205'%20height='102'/%3e%3cpath%20class='st1'%20d='M27,61V41l3-3h4.8l1.2,1.8V38h4v6h-4v-2h-5v18h5v-2h4v3l-2.9,3H30L27,61z'/%3e%3cpath%20class='st1'%20d='M56,61l-3.1,3h-7.8L42,61V41l3.1-3h7.8l3.1,3C56,41,56,61,56,61z%20M46,42v18h5V42H46z'/%3e%3cpath%20class='st1'%20d='M68,60v-2h4v6H58v-4h2V42h-2v-4h7v4h-1v18H68z'/%3e%3cpath%20class='st1'%20d='M84,60v-2h5v6H75v-4h1V42h-1v-4h7v4h-2v18H84z'/%3e%3cpath%20class='st1'%20d='M105,64H91v-4h2V42h-2v-4h14v6h-4v-2h-4v7h4v4h-4v7h4v-2h4V64z'/%3e%3cpath%20class='st1'%20d='M116.4,55H115v-4h6v10l-2.9,3h-7.2l-2.9-3V41l3-3h4.8l1.2,1.8V38h4v6h-4v-2h-5v18h5v-5H116.4z'/%3e%3cpath%20class='st1'%20d='M130,64h-8v-4h2V42h-2v-4h8v4h-2v18h2V64z'/%3e%3cpath%20class='st1'%20d='M142,38l4.5,22h1.5v4h-7v-4h1.6l-0.4-2l-4.4,0.1l-0.3,1.9h1.6v4h-7v-4h1.6l4.4-22H142z%20M138.4,55h2.6%20l
203-1.2-7.1L138.4,55z'/%3e%3cpath%20class='st1'%20d='M161,38v6h-4v-2h-1v18h2v4h-8v-4h2V42h-1v2h-4v-6H161z'/%3e%3cpath%20class='st1'%20d='M177,64h-14v-4h2V42h-2v-4h14v6h-4v-2h-4v7h4v4h-4v7h4v-2h4V64z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",LI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2093%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M48.71,44.05V24.31l2.94-2.95h4.62l1.18,1.76V21.36h4v5.83h-4V25.4H52.74V43h4.71v-1.8h4v2.89L58.61,47h-7Z'/%3e%3cpath%20class='cls-2'%20d='M76.93,44.05,74,47H66.49l-2.95-2.94V24.31l2.95-2.95H74l3,2.95ZM67.58,25.4V43H72.9V25.4Z'/%3e%3cpath%20class='cls-2'%20d='M88.88,43v-1.8h4V47H79V43h1.6V25.4H79v-4H86.1v4H84.59V43Z'/%3e%3cpath%20class='cls-2'%20d='M105,43v-1.8h4V47h-14V43h1.6V25.4H95.1v-4h7.14v4h-1.5V43Z'/%3e%3cpath%20class='cls-2'%20d='M125.22,47h-14V43h1.6V25.4h-1.6v-4h14v5.83h-4V25.4h-4.39v7h3.81v3.52h-3.81v7h4.39v-1.8h4Z'/%3e%3cpath%20class='cls-2'%20d='M136.17,38.82h-1.79V34.75h5.83v9.3L137.33,47h-7.08l-2.86-2.94V24.31l3-2.95H135l1.19,1.76V21.36h4v5.83h-4V25.4h-4.74V43h4.74Z'/%3e%3cpath%20class='cls-2'%20d='M155.91,47h-14V43h1.6V25.4h-1.6v-4h14v5.83h-4V25.4h-4.39v7h3.82v3.52h-3.82v7h4.39v-1.8h4Z'/%3e%3cpath%20class='cls-2'%20d='M57.26,74.74,58.61,77h1.5v3.62H57.26L55.5,78l-2.21,2.63h-4.2l-3-2.63V69.84l2.53-2.43-1-1.86v-8L50.34,55H55.5L58,57.7V61H54.41V58.88H51.27v5.74l4.48,6.92,1.67-2.28h2.69v3.62H58.7Zm-6.41-5-1.6,1.41V77h3l1.77-2.37Z'/%3e%3cpath%20class='cls-2'%20d='M80.52,68.4v9.29l-2.87,3H73l-1.19-1.19v1.19h-4V74.81h4V76.6h4.71V69.84h-5.8l-2.94-2.59V58L70.68,55H75.3l1.18,1.76V55h4v5.83h-4V59H71.77V65.8h5.88Z'/%3e%3cpath%20class='cls-2'%20d='M96.28,66.89l-3.1,3H88V76.6h1.51v4H82.31v-4h1.61V59H82.31V55H93.43L96.28,58ZM88,59V65.8h4.3V59Z'/%3e%3cpath%20class='cls-2'%20d='M111.79,77.69l-3,3h-7.49l-2.95-3V58L101.35,55h7.49l3,2.94ZM102.44,59V76.6h5.31V59Z'/%3e%3cpath%20class='cls-2'%20d='M127.78,66.73l-3,2.69,2.88,7.18h1.61v4h-4.23l-3.88-11.06h-1.76v7H121v4h-7.14v-4h1.6V59h-1.6V55h11l3,2.85ZM119.45,59v7h4.29V59Z'/%3e%3cpath%20class='cls-2'%20d='M144,55v5.83h-4V59H139V76.6h1.6v4h-7.14v-4H135V59H134v1.8h-4V55Z'/%3e%3cpath%20class='cls-2'%20d='M158.86,68.4v9.29l-2.88,3h-4.69l-1.18-1.19v1.19h-4V74.81h4V76.6h4.71V69.84H149l-3-2.59V58L149,55h4.62l1.18,1.76V55h4v5.83h-4V59h-4.71V65.8H156Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",NI="https://www.customink.com/ndx/assets/comic-DyaCDr60.svg",wI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2096%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M75.52,25.33l-.7,8.15-.88,0-1,0a18.06,18.06,0,0,0-2.73.19,10,10,0,0,0-2.71.94,7.29,7.29,0,0,0-2.55,2,10.81,10.81,0,0,0-1.71,3.77,22,22,0,0,0-.7,5.92c0,.47,0,1.17.11,2.09a36.48,36.48,0,0,0,1,7.24,11.19,11.19,0,0,0,1.91,4.29,6.44,6.44,0,0,0,2.35,1.9,7.07,7.07,0,0,0,2.76.51,38.1,38.1,0,0,0,3.86-.38l.11,4c-.32,0-.76,0-1.31,0s-1.06.06-1.5.08l-1.32,0a19.42,19.42,0,0,1-3.91-.35,10.54,10.54,0,0,1-3.45-1.47,9.38,9.38,0,0,1-3-3.09A19.9,19.9,0,0,1,58,55.77a43.83,43.83,0,0,1-1.15-8.2c0-.61,0-1.48,0-2.62q0-19.62,17.36-19.62Z'/%3e%3cpath%20class='cls-2'%20d='M95.29,64.82l-5,.75-.33-4.82c-2.53,2.4-4.93,3.59-7.18,3.59a4.25,4.25,0,0,1-3.64-2q-1.39-2-1.45-6.45-.15-5.79-.16-14.9c0-3.71,0-6.63.06-8.73l5.52-.38-.49,23.52v.27a5.45,5.45,0,0,0,.7,3.22,2.32,2.32,0,0,0,2,1.07q2.31,0,4.45-3Q89.18,46.61,89,36.1l4-.32Q93.2,44.95,95.29,64.82Z'/%3e%3cpath%20class='cls-2'%20d='M117.8,43.39a7.82,7.82,0,0,1-.06,1.13,7.66,7.66,0,0,1-2.17,4.95,5.69,5.69,0,0,1-4,1.8,4,4,0,0,1-3.06-1.34,5.51,5.51,0,0,1-1.23-3.86v-.54l3.27-1.5a4.8,4.8,0,0,0-.11.81,2.45,2.45,0,0,0,.41,1.5,1.13,1.13,0,0,0,.93.53,1.33,1.33,0,0,0,1.07-.64,2.73,2.73,0,0,0,.49-1.71,1.57,1.57,0,0,0,0-.27,1.49,1.49,0,0,1,0-.22,2.67,2.67,0,0,0-1-2,3.64,3.64,0,0,0-2.26-.7q-3.59,0-6.8,3.92Q102,60.65,101.88,65.79L97.54,66V62.41q0-9.21.27-25.66l6-.16c-.07,1.64-.14,2.85-.22,3.64,2.86-2.14,5.58-3.22,8.15-3.22a5.93,5.93,0,0,1,4.45,1.72A6.44,6.44,0,0,1,117.8,43.39Z'/%3e%3cpath%20class='cls-2'%20d='M125.46,21.1q-.37,6.58-1,42.39l-5,0v-.11q0-8.68,1.55-42.44Z'/%3e%3cpath%20class='cls-2'%20d='M148.18,35.94A7.43,7.43,0,0,0,146,39.29a12.51,12.51,0,0,0-.89,4.42v.16q0,.38,0,1.5c0,.75,0,1.38,0,1.88l-.27,20.31q-.06,6.69-2.89,10.07a8.54,8.54,0,0,1-6.7,3.38,8,8,0,0,1-5.28-1.9,7.06,7.06,0,0,1-2.55-5c-.07-.79-.1-1.4-.1-1.83q0-5.46,4.93-6.43a13.14,13.14,0,0,1,1.71-.21A4.09,4.09,0,0,1,137.3,67a5.74,5.74,0,0,1,1.13,3.8,17.81,17.81,0,0,1-.38,3.06l-2.78-.27a4,4,0,0,0,.1-1,2.91,2.91,0,0,0-.48-1.77,1.37,1.37,0,0,0-1.12-.64,1.54,1.54,0,0,0-1.24.72,3.5,3.5,0,0,0-.53,2.07,2.12,2.12,0,0,0,.05.53,3.12,3.12,0,0,0,1.23,2.31,4.08,4.08,0,0,0,2.63,1,4.45,4.45,0,0,0,3.62-2c1-1.35,1.56-3.5,1.63-6.43q.1-4,.11-6.37c0-.22,0-.54,0-1s0-.75,0-1q-2.19,3-4.92,3-3.43,0-6-4.71t-2.57-12.43a51.12,51.12,0,0,1,1.61-12.27L135,34a69.38,69.38,0,0,0-1.88,14.69,18.87,18.87,0,0,0,1.21,7.66c.8,1.71,1.85,2.57,3.13,2.57s2.5-.73,3.75-2.2q-.15-7.6-.75-14.84c0-.11,0-.29,0-.56s0-.47,0-.62a19.63,19.63,0,0,1,1-6.19A9.89,9.89,0,0,1,144.16,30q1.6,2,2.63,3.52a11,11,0,0,1,1.18,2Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",bI="https://www.customink.com/ndx/assets/decorative-x8n-HWXN.svg",MI="https://www.customink.com/ndx/assets/embroidery-BgUAweaw.svg",UI="https://www.customink.com/ndx/assets/eroded-CuFFnoPF.svg",xI="https://www.customink.com/ndx/assets/futuristicscifi-C1c0wfkv.svg",FI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2075%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M60,46.52l10.34-4.84V58.74a13.12,13.12,0,0,1-.31,3.37A4,4,0,0,1,69,64a5.12,5.12,0,0,1-1.88,1.25,11.27,11.27,0,0,1-3.87.51H56.86A12.13,12.13,0,0,1,53,65.26a5.88,5.88,0,0,1-2.19-1.52,4.51,4.51,0,0,1-.92-2,14.33,14.33,0,0,1-.2-3V36.43A16.58,16.58,0,0,1,50,33.12,4.63,4.63,0,0,1,53,30a12.43,12.43,0,0,1,3.87-.51h6.37a11.67,11.67,0,0,1,3.82.51,5.3,5.3,0,0,1,2.19,1.48,5.21,5.21,0,0,1,.92,2,14.21,14.21,0,0,1,.2,3v2.29A17.85,17.85,0,0,0,66.08,40a35.69,35.69,0,0,0-4.48,2.34V39.08a2.15,2.15,0,0,0-.36-1.42A1.52,1.52,0,0,0,60,37.25a1.45,1.45,0,0,0-1.2.41,2.29,2.29,0,0,0-.33,1.42v17a2.18,2.18,0,0,0,.36,1.43,1.5,1.5,0,0,0,1.17.41,1.63,1.63,0,0,0,1.22-.38,2.18,2.18,0,0,0,.36-1.46V53.45L60,54.36Z'/%3e%3cpath%20class='cls-2'%20d='M91.14,45.75V59a7.47,7.47,0,0,1-1.71,5.12c-1.06,1.1-2.84,1.65-5.32,1.65H80.34A11.14,11.14,0,0,1,77,65.31a5.51,5.51,0,0,1-3.46-3.77A8.32,8.32,0,0,1,73.26,59V45.75A7.43,7.43,0,0,1,75,40.63Q76.63,39,80.34,39h3.77a11.26,11.26,0,0,1,3.26.41,5.64,5.64,0,0,1,3.52,3.72A11,11,0,0,1,91.14,45.75ZM83.65,56.86V47.79a2.94,2.94,0,0,0-.33-1.63,1.26,1.26,0,0,0-1.09-.46,1.33,1.33,0,0,0-1.15.46,2.94,2.94,0,0,0-.33,1.63v9.07a2.88,2.88,0,0,0,.33,1.65,1.35,1.35,0,0,0,1.15.44,1.28,1.28,0,0,0,1.09-.44A2.88,2.88,0,0,0,83.65,56.86Z'/%3e%3cpath%20class='cls-2'%20d='M91.45,39h3.16V35.26l.73,0,.64,0a17.92,17.92,0,0,0,6.27-1V39h2.49v6.62h-2.49V57.57a2.29,2.29,0,0,0,.25,1.3,1,1,0,0,0,.82.33,2.09,2.09,0,0,0,1.42-.81v6.72a11,11,0,0,1-4.38.92c-3.77,0-5.65-2-5.65-6V46.67A10.6,10.6,0,0,0,93.89,42,7.6,7.6,0,0,0,91.45,39Z'/%3e%3cpath%20class='cls-2'%20d='M113.76,36.69V39h3.56a7.83,7.83,0,0,1,4.28,1,6,6,0,0,1,2.29,3.19,10.67,10.67,0,0,1,.26,2.54V66.38c0,2.86.64,5,1.93,6.47a8.25,8.25,0,0,1-3.41-.9
2031,11.49,11.49,0,0,1-2.85-2.86,12.55,12.55,0,0,0-2.19-2.59,4.71,4.71,0,0,0-2.09-.77,3.55,3.55,0,0,0,.87-1.12,7.3,7.3,0,0,0,.25-2V47.74c0-1.46-.58-2.19-1.73-2.19h-1.17V62.11a5.15,5.15,0,0,0,1.12,3.61h-9.73a4.94,4.94,0,0,0,1.12-3.61V33.94a5.61,5.61,0,0,0-1.94-4.69c.48-.07.75-.1.82-.1a5.91,5.91,0,0,1,2.19.41,8.07,8.07,0,0,1,1.93,1.17,20.63,20.63,0,0,0,3.26,2.14,10.18,10.18,0,0,0,2.5.51,3,3,0,0,0-1,1.32A4.83,4.83,0,0,0,113.76,36.69Z'/%3e%3cpath%20class='cls-2'%20d='M126,39h8.51V62.11a4.94,4.94,0,0,0,1.12,3.61h-9.78A4.94,4.94,0,0,0,127,62.11V42.19a7,7,0,0,0-.2-1.94A2.6,2.6,0,0,0,126,39Zm1-2.39V30.42h7.54v6.22Z'/%3e%3cpath%20class='cls-2'%20d='M155.27,45.75v2.6a26,26,0,0,0-7.49,2v-2.6a2.94,2.94,0,0,0-.33-1.63,1.26,1.26,0,0,0-1.09-.46,1.33,1.33,0,0,0-1.15.46,2.94,2.94,0,0,0-.33,1.63v9.07a2.88,2.88,0,0,0,.33,1.65,1.35,1.35,0,0,0,1.15.44,1.28,1.28,0,0,0,1.09-.44,2.88,2.88,0,0,0,.33-1.65v-2.8a19.66,19.66,0,0,1,3.82-1.48,20.55,20.55,0,0,1,3.67-.87v7.54A6.41,6.41,0,0,1,153.54,64a6.57,6.57,0,0,1-4.84,1.73H144a7.13,7.13,0,0,1-3.82-1A4.89,4.89,0,0,1,138,62.26a9.09,9.09,0,0,1-.56-3V45.5a6.39,6.39,0,0,1,1.73-4.76A6.6,6.6,0,0,1,144,39h4.48a7.83,7.83,0,0,1,4.28,1,6,6,0,0,1,2.3,3.19A10.72,10.72,0,0,1,155.27,45.75Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",VI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2099%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M37.08,34.05,31.5,39.76V62.24L37.08,68H51.31l5.53-5.72V48.63H44.55v7.84H46.9v2.37l-.59.63H42.06l-.62-.65V43.2l.6-.62h4.29l.57.6v4.6h9.94v-8l-5.53-5.72ZM54.14,45H49.61v-3l-2.14-2.23H40.92l-2.19,2.23V59.94l2.18,2.28h6.57l2.13-2.29V53.72H47.26V51.38h6.88V61.1l-4,4.1h-12l-4-4.1V40.9l4-4.1h12l4,4.1Z'/%3e%3cpath%20class='cls-2'%20d='M84.82,52.42l-1.92-2,1.92-2V39.76l-5.59-5.71H58.76v8.53h1.91V59.47H58.76V68H72.53V59.47H70.61V54.7h3.65l.62.65V68H86.79V59.47h-2ZM84.08,65.2h-6.5v-11L75.4,52H67.91V62.22h1.92v3H61.46v-3h1.92V39.83H61.46v-3H78.11l4,4.1v6.46l-3,3.1,3,3.1v8.66h2Z'/%3e%3cpath%20class='cls-2'%20d='M67.91,39.83V49H75.4l2.18-2.28V42.06L75.4,39.83Zm7,5.74-.62.65H70.61V42.58h3.66l.61.62Z'/%3e%3cpath%20class='cls-2'%20d='M88.39,39.89l8.9,10.92-8.9,11.07v5.7h26V56.51h-8.65v2.41h-3.28l6.35-8.32-5.88-7.54h2.81v1.77h8.66V34.38h-26Zm2.78-3.06h20.4v5.58h-3.35V40.47h-11l8.45,10.35-9,10.81h11.62V59.25h3.35V64.8H91.17V62.69l0-.07,9.57-11.81L91.17,39.08Z'/%3e%3cpath%20class='cls-2'%20d='M116.15,39.89l8.9,10.92-8.9,11.07v5.7H142.1V56.51h-8.65v2.41h-3.28l6.34-8.32-5.87-7.54h2.81v1.77h8.65V34.38H116.15Zm2.78-3.06h20.39v5.58H136V40.47h-11l8.45,10.35-9,10.81H136V59.25h3.34V64.8H118.93V62.69l0-.07,9.57-11.81-9.62-11.73Z'/%3e%3cpath%20class='cls-2'%20d='M169.9,58.92,165,47.86l4.32-4.8h3.61V34.38H158.83v8.11h.47l-3.79,4.32V42.49h2V34.38H143.9v8.68h2.35V58.92H143.9v8.66h13.74V59.21h-1.8V58l3-3.14,2,4.36H159v8.37H173.5V58.92Zm.57,5.63h-8.36V61.88h2.56L159.3,50.06,153.13,57v4.9h2.09v2.67h-8.36V61.88h2.42V40.22h-2.42V37.08h8.36v3.14h-2.09v13l11.54-13h-3V37.08h8.5v3.14h-1.94l-6.56,7.17,6.41,14.49h2.38Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",kI="https://www.customink.com/ndx/assets/handwritten-Snti3ngC.svg",HI="https://www.customink.com/ndx/assets/international-CnBhRz1B.svg",GI="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20205%20102'%20style='enable-background:new%200%200%20205%20102;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%20%23222020;}%20%3c/style%3e%3crect%20class='st0'%20width='205'%20height='102'/%3e%3cg%3e%3cpath%20class='st1'%20d='M51,67.1l6.9-32.7h6.7l-6.8,32.7H51z'/%3e%3cpath%20class='st1'%20d='M65.6,48.1l1-4.8h3.1l0.8-3.8l7.3-4.4l-1.7,8.2H80l-1,4.8h-3.9L73,58.1c-0.4,1.8-0.6,2.8-0.6,3.1%20c0,0.5,0.2,0.9,0.5,1.2c0.3,0.3,0.9,0.4,1.7,0.4c0.3,0,1-0.1,2.1-0.2l-1,4.8c-1.1,0.2-2.2,0.3-3.4,0.3c-2.3,0-3.9-0.4-4.9-1.3%20c-1-0.9-1.5-2.1-1.5-3.6c0-0.7,0.3-2.4,0.8-5l2-9.5H65.6z'/%3e%3cpath%20class='st1'%20d='M88.2,50.1L82,49.6c0.7-2.1,2-3.8,3.7-5c1.8-1.2,4.1-1.8,7.1-1.8c3.1,0,5.3,0.6,6.8,1.8%20c1.5,1.2,2.2,2.7,2.2,4.5c0,0.7-0.1,1.5-0.2,2.3c-0.1,0.8-0.6,2.9-1.3,6.3c-0.6,2.8-0.9,4.8-0.9,5.9c0,1,0.2,2.1,0.5,3.4h-6.2%20c-0.3-0.9-0.4-1.8-0.5-2.7c-0.9,1-2,1.8-3.2,2.4c-1.2,0.6-2.4,0.8-3.7,0.8c-2,0-3.6-0.6-4.9-1.9c-1.3-1.3-1.9-2.9-1.9-5%20c0-2.3,0.7-4.1,2.1-5.4c1.4-1.4,3.9-2.2,7.5-2.5c3.1-0.3,5.1-0.6,6.1-0.9c0.3-0.9,0.4-1.6,0.4-2.1c0-0.7-0.3-1.3-0.8-1.7%20c-0.6-0.5-1.4-0.7-2.5-0.7c-1.1,0-2.1,0.2-2.7,0.7C88.9,48.6,88.5,49.2,88.2,50.1z%20M94.3,56c-0.4,0.1-0.9,0.2-1.5,0.3%20c-3.2,0.4-5.3,1-6.3,1.7c-0.7,0.5-1,1.3-1,2.2c0,0.7,0.3,1.4,0.8,1.9s1.2,0.8,2.1,0.8c1,0,1.9-0.2,2.7-0.7c0.9-0.5,1.5-1.1,1.9-1.8%20s0.8-1.9,1.1-3.5L94.3,56z'/%3e%3cpath%20class='st1'%20d='M104.6,67.1l6.9-32.7h6.4L111,67.1H104.6z'/%3e%3cpath%20class='st1'%20d='M122.3,43.4h6.4l-5,23.7h-6.4L122.3,43.4z%20M124.1,34.4h6.4l-1.2,5.8h-6.4L124.1,34.4z'/%3e%3cpath%20class='st1'%20d='M146.1,58.2l6.2,1c-1,2.8-2.5,4.9-4.6,6.3c-2,1.4-4.3,2.2-7,2.2c-3,0-5.4-0.9-7.2-2.7%20c-1.8-1.8-2.7-4.3-2.7-7.4c0-2.6,0.5-5,1.6-7.3s2.7-4.1,4.8-5.4c2.2-1.3,4.5-2,7.1-2c2.8,0,5,0.7,6.7,2.2c1.7,1.5,2.6,3.4,2.8,5.8%20l-6.1,0.6c-0.1-1.3-0.6-2.3-1.2-2.9c-0.7-0.
2036-1.5-0.9-2.6-0.9c-1.2,0-2.4,0.5-3.5,1.4s-1.9,2.3-2.5,4.1c-0.6,1.8-0.9,3.6-0.9,5.2%20c0,1.4,0.3,2.5,1,3.2c0.7,0.8,1.5,1.1,2.6,1.1s2-0.4,3-1.1C144.8,60.8,145.6,59.6,146.1,58.2z'/%3e%3c/g%3e%3c/svg%3e",BI="https://www.customink.com/ndx/assets/justadded--h17oQbx.svg",zI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2084%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M24.38,63.77l1.5-25.84c0-.25.14-.27.34,0L38.49,51.66,50.56,37.89c.2-.23.32-.21.34,0l1.51,25.84H45.67l-.6-10.91-6.4,7.41q-.18.19-.33,0l-6.66-7.45-.61,11Z'/%3e%3cpath%20class='cls-2'%20d='M78.35,60.39a14.48,14.48,0,0,1-19.38,0,12.27,12.27,0,0,1-4-9.41,12.21,12.21,0,0,1,4-9.39,14.54,14.54,0,0,1,19.38,0,12.21,12.21,0,0,1,4,9.39A12.27,12.27,0,0,1,78.35,60.39ZM63.73,56.14a7,7,0,0,0,9.86,0A7.51,7.51,0,0,0,75.39,51a7.4,7.4,0,0,0-1.8-5.13,7,7,0,0,0-9.86,0A7.4,7.4,0,0,0,61.93,51,7.51,7.51,0,0,0,63.73,56.14Z'/%3e%3cpath%20class='cls-2'%20d='M85.59,63.77V38.19h9.89a12.94,12.94,0,0,1,9.3,3.48A12.27,12.27,0,0,1,108.43,51a12.27,12.27,0,0,1-3.65,9.31,12.94,12.94,0,0,1-9.3,3.48ZM92.44,58h2.29a6.4,6.4,0,0,0,4.89-1.9,7.08,7.08,0,0,0,1.81-5.1,7.08,7.08,0,0,0-1.81-5.1A6.44,6.44,0,0,0,94.73,44H92.44Z'/%3e%3cpath%20class='cls-2'%20d='M111.47,63.77V38.19h17.95V44h-11.1v4.21h9.26v5.45h-9.26V58H130v5.75Z'/%3e%3cpath%20class='cls-2'%20d='M140.1,55.76v8h-6.84V38.19H143.6q4.78,0,7.45,2.52a8.59,8.59,0,0,1,2.67,6.55,7.57,7.57,0,0,1-4.66,7.45l5.3,9.06H147l-4.51-8Zm0-5.23h3.16q3.59,0,3.58-3.27T143.26,44H140.1Z'/%3e%3cpath%20class='cls-2'%20d='M180.1,64.22,164,51V63.77H157.6V37.85c0-.33.17-.35.53-.07L174.19,51V38.19h6.43v26C180.62,64.48,180.45,64.5,180.1,64.22Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",WI="https://www.customink.com/ndx/assets/narrow-39O8kmDG.svg",YI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2094%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M41.22,37.54q5.07,0,7.29,2.38,1.74,1.9,1.74,5.83V56.17q0,4-1.74,5.91c-1.56,1.58-4,2.38-7.29,2.38s-5.83-.8-7.34-2.38q-1.79-2-1.78-5.91V45.75q0-3.89,1.78-5.87C35.34,38.32,37.78,37.54,41.22,37.54ZM49.5,56.17V45.75c0-2.64-.69-4.55-2.06-5.71S44,38.3,41.22,38.3s-4.93.55-6.31,1.66-2.06,3-2.06,5.79V56.17c0,2.67.7,4.6,2.1,5.77s3.49,1.76,6.27,1.76S46,63.13,47.42,62,49.5,58.9,49.5,56.17ZM41.41,42.1c2.88,0,4.33,1.65,4.33,5V54.9a6,6,0,0,1-1,3.67,3.92,3.92,0,0,1-3.35,1.29h-.47q-4.27,0-4.28-5V47.06q0-5,4.28-5ZM45,55V47.06q0-4.22-3.57-4.21h-.47q-3.52,0-3.53,4.21V55q0,4.25,3.53,4.25h.47Q44.91,59.23,45,55Z'/%3e%3cpath%20class='cls-2'%20d='M69.8,54.9V38.26a.32.32,0,0,1,.35-.36h4.52a.32.32,0,0,1,.36.36V56.17q0,8.3-9,8.29c-2.93,0-5.18-.66-6.74-2s-2.34-3.42-2.34-6.33V38.26a.32.32,0,0,1,.36-.36h4.56a.32.32,0,0,1,.36.36V54.9q0,4.22,3.56,4.21h.48A3.24,3.24,0,0,0,68.91,58,4.85,4.85,0,0,0,69.8,54.9Zm4.48,1.27V38.65H70.55V54.9q0,5-4.32,5h-.48q-4.32,0-4.32-5V38.65H57.67V56.17c0,2.73.7,4.66,2.1,5.81S63.24,63.7,66,63.7Q74.29,63.7,74.28,56.17Z'/%3e%3cpath%20class='cls-2'%20d='M80.62,42.85a.32.32,0,0,1-.36-.35V38.26a.32.32,0,0,1,.36-.36H97.15a.32.32,0,0,1,.36.36V42.5a.32.32,0,0,1-.36.35H91.52V63.7a.32.32,0,0,1-.36.36H86.61a.32.32,0,0,1-.36-.36V42.85Zm16.13-.75V38.65H81V42.1h6V63.31h3.77V42.1Z'/%3e%3cpath%20class='cls-2'%20d='M107.89,37.9a.32.32,0,0,1,.36.36V59.07h8.56a.32.32,0,0,1,.36.35V63.7a.32.32,0,0,1-.36.36H103.37c-.21,0-.32-.12-.32-.36V38.26c0-.24.11-.36.32-.36Zm8.52,25.41V59.82h-8.92V38.65h-3.72V63.31Z'/%3e%3cpath%20class='cls-2'%20d='M123,64.06c-.21,0-.31-.12-.31-.36V38.26c0-.24.1-.36.31-.36h4.52a.32.32,0,0,1,.36.36V63.7a.32.32,0,0,1-.36.36Zm4.13-.75V38.65h-3.73V63.31Z'/%3e%3cpath%20class='cls-2'%20d='M146,38.26a.32.32,0,0,1,.36-.36h4.56a.32.32,0,0,1,.36.36V63.7a.32.32,0,0,1-.36.36h-4.4a.34.34,0,0,1-.36-.2l-5.78-13V63.7a.32.32,0,0,1-.36.36h-4.52c-.21,0-.32-.12-.32-.36V38.26c0-.24.11-.36.32-.36h4.68a.33.33,0,0,1,.27.2L146,50.9Zm4.52,25.05V38.65h-3.76V54.47L140,38.65h-4V63.31h3.72v-16l7.14,16Z'/%3e%3cpath%20class='cls-2'%20d='M159.07,64.06c-.22,0-.32-.12-.32-.36V38.26c0-.24.1-.36.32-.36h13.47a.32.32,0,0,1,.36.36V42.5a.32.32,0,0,1-.36.35H164v5.39h6.66c.21,0,.32.12.32.36v4.32c0,.24-.11.36-.32.36H164v5.83h8.56a.32.32,0,0,1,.36.35V63.7a.32.32,0,0,1-.36.36ZM163.23,49V42.1h8.92V38.65H159.46V63.31h12.69V59.86h-8.92V52.53h7V49Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",jI="https://www.customink.com/ndx/assets/popculture-BhP8dkzh.svg",QI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2080%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M48.14,36.53c1.22,1.75,1.83,4.29,1.83,7.6s-.61,5.85-1.83,7.6-3.4,2.63-6.56,2.63h-2.7a.42.42,0,0,0-.47.48V66.91a1.13,1.13,0,0,1-1.18,1.19H33.91a1.15,1.15,0,0,1-.85-.33,1.17,1.17,0,0,1-.33-.86V35.09a1.18,1.18,0,0,1,.33-.86,1.15,1.15,0,0,1,.85-.33h7.67Q46.32,33.9,48.14,36.53Zm-4.4,11.84a10.3,10.3,0,0,0,.64-4.29,10.17,10.17,0,0,0-.64-4.26,2.69,2.69,0,0,0-2.63-1.23H38.88a.42.42,0,0,0-.47.48V49.15a.42.42,0,0,0,.47.48h2.23A2.67,2.67,0,0,0,43.74,48.37Z'/%3e%3cpath%20class='cls-2'%20d='M54.94,35.63a8.49,8.49,0,0,1,6.25-2.3,8.51,8.51,0,0,1,6.25,2.3,8.23,8.23,0,0,1,2.32,6.13V60.24a8.23,8.23,0,0,1-2.32,6.13,8.51,8.51,0,0,1-6.25,2.3,8.49,8.49,0,0,1-6.25-2.3,8.23,8.23,0,0,1-2.32-6.13V41.76A8.23,8.23,0,0,1,54.94,35.63Zm6.25,28.06q2.89,0,2.89-3.31V41.62q0-3.32-2.89-3.31T58.3,41.62V60.38Q58.3,63.7,61.19,63.69Z'/%3e%3cpath%20class='cls-2'%20d='M88.92,36.53c1.21,1.75,1.82,4.29,1.82,7.6s-.61,5.85-1.82,7.6-3.4,2.63-6.56,2.63h-2.7a.42.42,0,0,0-.47.48V66.91A1.15,1.15,0,0,1,78,68.1H74.69a1.18,1.18,0,0,1-.86-.33,1.17,1.17,0,0,1-.33-.86V35.09a1.13,1.13,0,0,1,1.19-1.19h7.67C85.52,33.9,87.7,34.78,88.92,36.53ZM84.51,48.37a10.14,10.14,0,0,0,.64-4.29,10,10,0,0,0-.64-4.26,2.66,2.66,0,0,0-2.62-1.23H79.66a.42.42,0,0,0-.47.48V49.15a.42.42,0,0,0,.47.48h2.23A2.64,2.64,0,0,0,84.51,48.37Z'/%3e%3cpath%20class='cls-2'%20d='M106.8,33.9h3.31a1.18,1.18,0,0,1,.83.33,1.13,1.13,0,0,1,.36.86V60.24A8.24,8.24,0,0,1,109,66.37a9.64,9.64,0,0,1-12.5,0,8.23,8.23,0,0,1-2.32-6.13V35.09a1.13,1.13,0,0,1,.36-.86,1.16,1.16,0,0,1,.83-.33h3.31a1.18,1.18,0,0,1,.83.33,1.12,1.12,0,0,1,.35.86V60.38c0,2.21,1,3.31,2.89,3.31s2.89-1.1,2.89-3.31V35.09a1.13,1.13,0,0,1,.36-.86A1.16,1.16,0,0,1,106.8,33.9Z'/%3e%3cpath%20class='cls-2'%20d='M117.17,33.9h3.27a1.2,1.2,0,0,1,.83.33,1.16,1.16,0,0,1,.35.86V62.6a.42.42,0,0,0,.47.48H129a1.13,1.13,0,0,1,1.18,1.18v2.65a1.17,1.17,0,0,1-.33.86,1.15,1.15,0,0,1-.85.33H117.17A1.15,1.15,0,0,1,116,66.91V35.09a1.15,1.15,0,0,1,1.19-1.19Z'/%3e%3cpath%20class='cls-2'%20d='M138,68.1h-3.08a1,1,0,0,1-.78-.36.92.92,0,0,1-.22-.83l5.59-31.82a1.22,1.22,0,0,1,.45-.83,1.36,1.36,0,0,1,.93-.36h4.3a1.36,1.36,0,0,1,.93.36,1.22,1.22,0,0,1,.45.83l5.59,31.82a.92.92,0,0,1-.22.83,1,1,0,0,1-.78.36h-3.08a1.35,1.35,0,0,1-.92-.36,1.22,1.22,0,0,1-.45-.83L146,61.47c0-.32-.17-.48-.52-.48h-4.78c-.35,0-.52.16-.52.48l-.81,5.44a1.44,1.44,0,0,1-.47.86A1.26,1.26,0,0,1,138,68.1Zm7.1-12.46-1.94-13.17c-.07,0-.11,0-.14,0l-2,13.17c-.07.32.06.47.38.47h3.26A.45.45,0,0,0,145,56,.33.33,0,0,0,145.11,55.64Z'/%3e%3cpath%20class='cls-2'%20d='M168.27,53.56l4,13.4a1,1,0,0,1-.14.78.8.8,0,0,1-.71.36h-3.18A1.43,1.43,0,0,1,166.71,67l-3.41-12.6a.6.6,0,0,0-.62-.47h-1.09a.42.42,0,0,0-.47.47V66.91a1.17,1.17,0,0,1-.33.86,1.18,1.18,0,0,1-.86.33h-3.31a1.15,1.15,0,0,1-.85-.33,1.18,1.18,0,0,1-.34-.86V35.09a1.19,1.19,0,0,1,.34-.86,1.15,1.15,0,0,1,.85-.33h7.67q4.59,0,6.28,2.66c1.12,1.76,1.68,4.29,1.68,7.57a15.44,15.44,0,0,1-.83,5.83,5.91,5.91,0,0,1-2.87,2.93A.49.49,0,0,0,168.27,53.56Zm-7.15-14.45v9.76a.42.42,0,0,0,.47.47h1.75A2.84,2.84,0,0,0,166,48.23a8.86,8.86,0,0,0,.69-4.24,8.89,8.89,0,0,0-.69-4.24,2.84,2.84,0,0,0-2.63-1.11h-1.75A.42.42,0,0,0,161.12,39.11Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",qI="https://www.customink.com/ndx/assets/retro-CPqwM6xI.svg",XI="https://www.customink.com/ndx/assets/sansserif-DsGgtR0v.svg",$I="https://www.customink.com/ndx/assets/scary-8lCcRJbM.svg",ZI="https://www.customink.com/ndx/assets/scriptcursive-e8vhrS_O.svg",KI="data:image/svg+xml,%3c?xml%20version='1.0'%20encoding='utf-8'?%3e%3c!--%20Generator:%20Adobe%20Illustrator%2028.0.0,%20SVG%20Export%20Plug-In%20.%20SVG%20Version:%206.00%20Build%200)%20--%3e%3csvg%20version='1.1'%20id='Layer_1'%20xmlns='http://www.w3.org/2000/svg'%20xmlns:xlink='http://www.w3.org/1999/xlink'%20x='0px'%20y='0px'%20viewBox='0%200%20205%20102'%20style='enable-background:new%200%200%20205%20102;'%20xml:space='preserve'%3e%3cstyle%20type='text/css'%3e%20.st0{fill:none;}%20.st1{fill:%20%23222020;}%20%3c/style%3e%3crect%20class='st0'%20width='205'%20height='102'/%3e%3cg%3e%3cpath%20class='st1'%20d='M58.7,69.1c1.6,0,3.1-0.4,4.3-1.3c1.3-0.9,1.9-2.2,1.9-4c0-1.8-0.7-3.1-2-4.1c-1.4-0.9-3.3-1.8-5.8-2.5%20c-2.5-0.7-4.3-1.3-5.4-1.8c-1.1-0.5-2.2-1.2-3.2-2.1c-2-1.7-3-4.3-3-7.9c0-2.9,1-5.4,3.1-7.5c2.1-2.1,4.9-3.1,8.5-3.1%20c1.7,0,3.5,0.3,5.4,0.8c1.9,0.5,3,0.8,3.5,0.8c0.5,0,0.9-0.3,1.2-1h0.5l0.3,9.9h-0.8c-1.6-2.8-3.2-5.1-4.9-6.8%20c-1.7-1.7-3.6-2.6-5.6-2.6s-3.6,0.5-4.7,1.4c-1.1,0.9-1.7,2.2-1.7,3.7s0.7,2.7,2,3.6c1.3,0.8,2.9,1.5,4.9,2%20c1.9,0.5,3.2,0.9,3.8,1.1c0.6,0.2,1.4,0.5,2.2,0.8c0.9,0.3,1.6,0.7,2.2,1.1c0.6,0.4,1.2,0.8,1.8,1.4c0.6,0.6,1.1,1.2,1.5,1.9%20c0.9,1.6,1.3,3.4,1.3,5.6c0,3.5-1.1,6.3-3.3,8.5c-2.2,2.1-5.1,3.2-8.7,3.2c-1.9,0-4-0.2-6.4-0.7c-2.4-0.5-3.7-0.7-4-0.7%20c-0.5,0-0.9,0.5-1.3,1.5h-0.7l-0.5-11.6h0.8c1.4,2.8,3.3,5.3,5.5,7.4C53.9,68,56.2,69.1,58.7,69.1z'/%3e%3cpath%20class='st1'%20d='M76,66.9c-2.1-2.2-3.2-5.2-3.2-9c0-3.9,1.2-6.8,3.5-8.9c2.4-2.1,5.4-3.1,9-3.1c7.4,0,10.9,3.7,10.7,11.1H82.3%20v1.9c0,3.2,0.4,5.6,1.2,7.2c0.8,1.6,2.2,2.4,4.3,2.4c3.8,0,6.3-2,7.4-6.1l0.9,0.1c-0.6,2.3-1.7,4.2-3.3,5.5c-1.6,1.3-4,2-7.3,2%20C81.3,70.1,78.1,69,76,66.9z%20M82.4,56.1h5v-2.4c0-2.6-0.2-4.4-0.5-5.4c-0.3-1-0.9-1.4-1.9-1.4c-0.9,0-1.6,0.5-2.1,1.5%20c-0.4,1-0.7,2.8-0.7,5.3V56.1z'/%3e%3cpath%20class='st1'%20d='M114.2,47.8c-1.2,0-2.3,0.8-3.2,2.3c-0.9,1.6-1.4,3.4-1.4,5.6v13.1h3.5v0.9H97.9v-0.9h2.7V47.3h-2.7v-0.9h11.8%2
2030v4.7c0.4-1.7,1.2-2.9,2.4-3.8c1.2-0.9,2.6-1.3,4.1-1.3c1.5,0,2.8,0.4,3.7,1.3c1,0.9,1.4,2.1,1.4,3.7s-0.4,2.8-1.1,3.6%20c-0.7,0.8-1.8,1.3-3.3,1.3c-1.5,0-2.6-0.5-3.3-1.5c-0.7-1-0.8-2.3-0.3-4.1h1.8C116,48.6,115.7,47.8,114.2,47.8z'/%3e%3cpath%20class='st1'%20d='M121.8,46.4h12v22.4h2.7v0.9H122v-0.9h2.7V47.3h-2.9V46.4z%20M129.2,43c-1.7,0-3-0.4-3.7-1.3%20c-0.7-0.9-1.1-2-1.1-3.3c0-1.3,0.4-2.4,1.2-3.2c0.8-0.8,2-1.3,3.6-1.3c1.6,0,2.9,0.4,3.7,1.1c0.8,0.8,1.3,1.9,1.3,3.3%20c0,1.4-0.4,2.5-1.2,3.4C132.2,42.6,131,43,129.2,43z'/%3e%3cpath%20class='st1'%20d='M152.3,32.7c-1.2,0-2.1,0.5-2.4,1.4c-0.4,0.9-0.6,2.4-0.6,4.5v7.8h6.4v0.9h-6.4v21.5h6v0.9h-17.7v-0.9h2.7%20V47.3h-2.8v-0.9h2.8v-0.2c0-4.7,0.9-8.2,2.7-10.7c1.8-2.4,4.8-3.6,9-3.6c2.8,0,4.8,0.5,6,1.6c1.2,1.1,1.8,2.4,1.8,3.8%20c0,1.4-0.4,2.5-1.1,3.2c-0.7,0.7-1.7,1.1-3,1.1c-1.2,0-2.2-0.3-2.9-1c-0.7-0.6-1-1.4-1-2.2s0.1-1.6,0.3-2.4h1.9%20C154.5,33.8,154,32.7,152.3,32.7z'/%3e%3c/g%3e%3c/svg%3e",JI="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2083%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M42.65,57.91a2.85,2.85,0,0,0-1.1-2.4,14.24,14.24,0,0,0-4-1.76A28.54,28.54,0,0,1,33,51.92c-3-1.64-4.55-3.85-4.55-6.63a6.41,6.41,0,0,1,1.22-3.87,7.88,7.88,0,0,1,3.51-2.65,13.1,13.1,0,0,1,5.13-1,12.09,12.09,0,0,1,5.11,1,8.17,8.17,0,0,1,3.48,2.93,7.71,7.71,0,0,1,1.24,4.3H42.67a3.61,3.61,0,0,0-1.16-2.86,4.76,4.76,0,0,0-3.25-1,5.12,5.12,0,0,0-3.14.85A2.69,2.69,0,0,0,34,45.31a2.57,2.57,0,0,0,1.31,2.18,14.46,14.46,0,0,0,3.87,1.65A16.87,16.87,0,0,1,46,52.65a7,7,0,0,1,2.15,5.22,6.45,6.45,0,0,1-2.63,5.45,11.54,11.54,0,0,1-7.07,2,13.53,13.53,0,0,1-5.62-1.13A8.89,8.89,0,0,1,29,61.07a7.92,7.92,0,0,1-1.33-4.56h5.53q0,4.43,5.29,4.43a5.19,5.19,0,0,0,3.07-.8A2.61,2.61,0,0,0,42.65,57.91Z'/%3e%3cpath%20class='cls-2'%20d='M57.91,40.16v4.89h3.4v3.89h-3.4v9.92a2.32,2.32,0,0,0,.43,1.58,2.1,2.1,0,0,0,1.61.48,8,8,0,0,0,1.56-.13v4a10.85,10.85,0,0,1-3.21.48q-5.58,0-5.7-5.64V48.94H49.7V45.05h2.9V40.16Z'/%3e%3cpath%20class='cls-2'%20d='M75.79,64.92a5.68,5.68,0,0,1-.53-1.78,6.41,6.41,0,0,1-5,2.15A7,7,0,0,1,65.4,63.6a5.41,5.41,0,0,1-1.92-4.26,5.62,5.62,0,0,1,2.34-4.85q2.34-1.7,6.77-1.71H75V51.64a3.26,3.26,0,0,0-.7-2.2,2.79,2.79,0,0,0-2.23-.83,3.22,3.22,0,0,0-2.11.64A2.19,2.19,0,0,0,69.23,51H63.92A5.35,5.35,0,0,1,65,47.82a7,7,0,0,1,3-2.3,11,11,0,0,1,4.37-.84,8.66,8.66,0,0,1,5.83,1.85,6.45,6.45,0,0,1,2.16,5.19v8.61a9.5,9.5,0,0,0,.79,4.28v.31ZM71.4,61.23a4.6,4.6,0,0,0,2.17-.52A3.38,3.38,0,0,0,75,59.3V55.89h-2c-2.66,0-4.07.91-4.24,2.75l0,.31a2.11,2.11,0,0,0,.7,1.64A2.69,2.69,0,0,0,71.4,61.23Z'/%3e%3cpath%20class='cls-2'%20d='M89.33,45.05l.16,2.29a7,7,0,0,1,5.72-2.66,5.76,5.76,0,0,1,4.7,1.86,8.65,8.65,0,0,1,1.58,5.54V64.92H96.18V52.21a3.45,3.45,0,0,0-.73-2.45A3.3,3.3,0,0,0,93,49a3.65,3.65,0,0,0-3.36,1.91v14H84.33V45.05Z'/%3e%3cpath%20class='cls-2'%20d='M104.69,54.84a12,12,0,0,1,2.08-7.4,6.76,6.76,0,0,1,5.71-2.76,6.07,6.07,0,0,1,4.79,2.17V36.71h5.33V64.92h-4.8l-.25-2.11a6.27,6.27,0,0,1-5.11,2.48,6.74,6.74,0,0,1-5.63-2.76C105.39,60.68,104.69,58.12,104.69,54.84Zm5.3.39a7.83,7.83,0,0,0,1,4.29A3.16,3.16,0,0,0,113.8,61a3.54,3.54,0,0,0,3.47-2.08V51.08A3.5,3.5,0,0,0,113.83,49Q110,49,110,55.23Z'/%3e%3cpath%20class='cls-2'%20d='M138.23,64.92a5.68,5.68,0,0,1-.53-1.78,6.41,6.41,0,0,1-5,2.15,7.05,7.05,0,0,1-4.84-1.69,5.41,5.41,0,0,1-1.92-4.26,5.62,5.62,0,0,1,2.34-4.85c1.57-1.13,3.82-1.7,6.77-1.71h2.45V51.64a3.27,3.27,0,0,0-.71-2.2,2.79,2.79,0,0,0-2.23-.83,3.22,3.22,0,0,0-2.11.64,2.22,2.22,0,0,0-.76,1.7
2037h-5.31a5.35,5.35,0,0,1,1.07-3.2,7,7,0,0,1,3-2.3,11,11,0,0,1,4.37-.84,8.7,8.7,0,0,1,5.84,1.85,6.48,6.48,0,0,1,2.15,5.19v8.61a9.63,9.63,0,0,0,.79,4.28v.31Zm-4.39-3.69a4.57,4.57,0,0,0,2.17-.52,3.46,3.46,0,0,0,1.47-1.41V55.89h-2c-2.66,0-4.07.91-4.24,2.75l0,.31a2.11,2.11,0,0,0,.7,1.64A2.69,2.69,0,0,0,133.84,61.23Z'/%3e%3cpath%20class='cls-2'%20d='M158.05,50a14.11,14.11,0,0,0-1.91-.15c-2,0-3.32.68-3.95,2v13h-5.31V45.05h5l.15,2.37a4.9,4.9,0,0,1,4.42-2.74,5.6,5.6,0,0,1,1.66.24Z'/%3e%3cpath%20class='cls-2'%20d='M159.43,54.84a11.89,11.89,0,0,1,2.09-7.4,6.74,6.74,0,0,1,5.7-2.76A6.07,6.07,0,0,1,172,46.85V36.71h5.33V64.92h-4.79l-.26-2.11a6.26,6.26,0,0,1-5.11,2.48,6.76,6.76,0,0,1-5.63-2.76Q159.43,59.76,159.43,54.84Zm5.31.39a7.83,7.83,0,0,0,1,4.29A3.16,3.16,0,0,0,168.54,61,3.54,3.54,0,0,0,172,58.93V51.08A3.49,3.49,0,0,0,168.58,49Q164.74,49,164.74,55.23Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",eA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2074%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M36.59,53l-5.24-5v0H45.21L50.37,53v0Zm0,6.44v-4h-5.2v4Zm-5.2,1.47,5.16,5h7.11v-5H31.35Zm5.24-24.86V46.51h-5.2v-5.4l5.16-5Zm13.78,5-5.2-5h-7v5H50.37Zm-5.24,1.47V45h5.2V42.54Zm0,23.39V54.45h5.2v6.36l-5.16,5.12Z'/%3e%3cpath%20class='cls-2'%20d='M58.36,41.11H53.15v-5H63.52Zm1.82,24.78h5.21V36.07h0l-5.17,5ZM72.34,41.11v-5H66.93v5Z'/%3e%3cpath%20class='cls-2'%20d='M81.31,36.11V59.46h-5.2V36.11Zm-5.2,29.78v-5H93.9v5Zm6.75-24.78v-5h11v5Zm0,12V48.26h6.83v4.88Z'/%3e%3cpath%20class='cls-2'%20d='M116.86,65.89H111.5L97.68,36.15v0H103l13.86,29.74Zm-14,0h-5V40H98l4.85,10.84Zm8.93-29.78h5V62.48h-.16l-4.85-10.61Z'/%3e%3cpath%20class='cls-2'%20d='M135.17,60.89v5h-8.74l-5-5v0Zm-13.7-19.78,5.16-5h0V59.46h-5.2Zm6.75,0v-5h8.69l5,5v0Zm8.5,1.43v5h5.2v-5Zm5.2,18.35-5.16,5h0V54.06h5.2Z'/%3e%3cpath%20class='cls-2'%20d='M151.29,36.11V65.89h-5.2V36.11Z'/%3e%3cpath%20class='cls-2'%20d='M160.86,36.11V65.93h0l-5.16-5.12V36.11Zm12.79,29.78v-5H162.41v5Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",tA="data:image/svg+xml,%3csvg%20xmlns='http://www.w3.org/2000/svg'%20viewBox='0%200%20205%20102'%3e%3cdefs%3e%3cstyle%3e.cls-1{fill:none;}.cls-2{fill:%20%23222020;}%3c/style%3e%3c/defs%3e%3ctitle%3eAsset%2097%3c/title%3e%3cg%20id='Layer_2'%20data-name='Layer%202'%3e%3cg%20id='Layer_1-2'%20data-name='Layer%201'%3e%3crect%20class='cls-1'%20width='205'%20height='102'/%3e%3cpath%20class='cls-2'%20d='M56.17,34.9H75.63v2.39H67.16V67.1H64.63V37.29H56.17Z'/%3e%3cpath%20class='cls-2'%20d='M82.67,34.9V48.38h18.82V34.9h2.57V67.1h-2.57V50.77H82.67V67.1H80.14V34.9Z'/%3e%3cpath%20class='cls-2'%20d='M114.19,34.9V67.1h-2.53V34.9Z'/%3e%3cpath%20class='cls-2'%20d='M148.83,34.9V68.35L124.35,40.23V67.1h-2.53V33.65L146.3,61.86v-27Z'/%3e%3c/g%3e%3c/g%3e%3c/svg%3e",nA="https://www.customink.com/ndx/assets/western-CCDgb3vq.svg",sA="https://www.customink.com/ndx/assets/wide-C4BtUJoE.svg",oA="https://www.customink.com/ndx/assets/youthful-C63vX41M.svg",SM={All:OI,Bold:RI,Brush:DI,Bubble:vI,Collegiate:PI,"College & Sports":LI,Comic:NI,Curly:wI,Decorative:bI,Embroidery:MI,Eroded:UI,"Futuristic/Sci-fi":xI,Gothic:FI,Greek:VI,Handwritten:kI,International:HI,Italic:GI,"Just Added":BI,Modern:zI,Narrow:WI,Outline:YI,"Pop Culture":jI,Popular:QI,Retro:qI,"Sans Serif":XI,Scary:$I,"Script & Cursive":ZI,Serif:KI,Standard:JI,Stencil:eA,Thin:tA,Western:nA,Wide:sA,Youthful:oA},CM="Recently Used",IM="All",AM=["All","Popular","Just Added","Modern","College & Sports","Script & Cursive","Brush","Retro","Bold","Thin","Serif","Sans Serif","Italic","Outline","Comic","Handwritten","Bubble","Curly","Decorative","Greek","Pop Culture","Gothic","Youthful","Scary","Eroded","Standard","Futuristic/Sci-fi","Stencil","Western","International","Embroidery"],yM=["Popular","All","Just Added","Handwritten","College & Sports","Modern","Script & Cursive","Brush","Decorative","Youthful","Embroidery","Eroded","Retro","Standard","Stencil","Greek","Futuristic/Sci-fi","Gothic","International","Western","Scary","Pop Culture","Outline","Bold","Thin","Comic","Curly"],Ud={Barbie:he("Barbie"),"Call of Duty":he("Call of Duty"),"Coca-Cola":he("Coca Cola"),"Coca Cola":he("Coca Cola"),"Coca cola":he("Coca Cola"),Coke:he("Coke"),Disney:he("Disney"),Espn:he("Espn"),Friends:he("Friends"),"Friends Font":he("Friends"),Fortnite:he("Fortnite"),"Game of Thrones":he("Game of Thrones"),Gatsby:he("Gatsby"),"Great Gatsby":he("Great Gatsby"),"Great gatsby":he("Great Gatsby"),Gucci:he("Gucci"),"Harry Potter":he("Harry Potter"),"Miami Vice":he("Miami Vice"),Minecraft:he("Minecraft"),Nasa:he("Nasa"),Netflix:he("Netflix"),Nirvana:he("Nirvana"),Spongebob:he("Spongebob"),"Star Wars":he("Star Wars"),"Stranger Things":he("Stranger Things"),Supreme:he("Supreme"),"Taylor Swift":he("Taylor Swift"),Thrasher:he("Thrasher"),"Top gun":he("Top gun")},rA=ra(Ud),aA=e=>Ud[e]||e,OM=e=>rA[e]||e,RM={Grafiti:"Graffiti",Grafitti:"Graffiti",Buble:"Bubble",Cursiv:"Cursive",Varisty:"Varsity"};function iA(){return b({categories:b(),fonts:b(),fontAutofillData:[],fontSearchHistory:G(),isFontClickedFromDropdown:!1,previousFontCategory:"",scrollToFont:!1})}function cA(e=iA(),t){switch(t.type){case Le.CATEGORY_LOADED:{const{category:n,resource:s}=t.payload;return e.setIn(["fonts",n],s)}case Le.CATEGORIES_LOADED:{const{resource:n}=t.payload;return e.set("categories",n)}case Le.FONT_AUTOFILL_DATA_LOADED:{let n=t.payload;return n=n.map(s=>{const o=s.fontCategory||s.displayName,r=aA(o);return Object.prototype.hasOwnProperty.call(s,"fontCategory")?s.fontCategory=r:s.displayName=r,s}),e.set("fontAutofillData",n)}case Le.FONT_IS_CLICKED_FROM_DROPDOWN:return e.set("isFontClickedFromDropdown",t.payload);case Le.LOAD_FONT_SEARCH_HISTORY:return c1(t.payload,s=>s.name).forEach(s=>{e=e.update("fontSearchHistory",o=>o.push(s))}),e;case Le.SET_SCROLL_TO_FONT:return e.set("scrollToFont",!0);case Le.UPDATE_FONT_SEARCH_HISTORY:return e.update("fontSearchHistory",n=>n.filter(s=>s.name!==t.payload.name).unshift(t.payload));case Le.UPDATE_PREVIOUS_CATEGORY:{const{category:n}=t.payload;return e.set("previousFontCategory",n)}default:return e}}function lA(){let{colorId:e}=pn();
203return e=e||Ht,b({goalQuantity:N7,salePrices:b([[e,0]]),printMinimums:b([[e,{printMinimumQuantity:0,errorMessage:null}]]),profits:b([[e,0]]),minProfit:0,maxProfit:0,skipOverview:!1,fetching:!1})}function dA(e=lA(),t){switch(t.type){case Ce.SET_SKIP_OVERVIEW:return e.set("skipOverview",!0);case Ce.UPDATE_GOAL_QUANTITY:{const n=parseInt(t.payload,10);return M7.includes(n)?e.set("goalQuantity",n):e}case Ce.UPDATE_SALE_PRICE:{const{colorId:n,price:s}={colorId:t.payload.colorId,price:parseFloat(t.payload.price)};return s>=b7?e.setIn(["salePrices",n],s):e}case Ce.UPDATE_PRINT_MINIMUM:{const{colorId:n,printMinimumQuantity:s,errorMessage:o}={colorId:t.payload.colorId,printMinimumQuantity:parseInt(t.payload.printMinimumQuantity,10),errorMessage:t.payload.errorMessage};return e.setIn(["printMinimums",n],{printMinimumQuantity:s,errorMessage:o})}case Ce.UPDATE_PROFIT:{const{colorId:n,profit:s}={colorId:t.payload.colorId,profit:parseFloat(t.payload.profit)};return e.setIn(["profits",n],s)}case Ce.UPDATE_ESTIMATED_PROFIT:{const{minProfit:n,maxProfit:s}={minProfit:parseFloat(t.payload.minProfit),maxProfit:parseFloat(t.payload.maxProfit)};return n>=0&&s>=n?e.set("minProfit",n).set("maxProfit",s):e}case Ce.FETCH:return e.set("fetching",!0);case Ce.FETCH_SUCCESS:return e.set("fetching",!1);case Ce.FETCH_FAILED:return e.set("fetching",!1);case k.FETCH_SUCCESS:{const n=t.payload.products;let s=e.removeIn(["salePrices",Ht]).removeIn(["printMinimums",Ht]).removeIn(["profits",Ht]);return n.forEach(o=>{s=s.setIn(["salePrices",o.colorId],0).setIn(["printMinimums",o.colorId],0).setIn(["profits",o.colorId],0)}),s}case X.ADD_PRODUCT:{const{products:n}=t.payload;let s=e;return n.forEach(o=>{s=s.setIn(["salePrices",o.colorId],0).setIn(["printMinimums",o.colorId],0).setIn(["profits",o.colorId],0)}),s}case X.SWAP_PRODUCT:{const n=t.payload.nextColorIds;let s=e.set("salePrices",b([])).set("printMinimums",b([])).set("profits",b([]));return Object.keys(n).forEach(o=>{s=s.setIn(["salePrices",n[o]],0).setIn(["printMinimums",n[o]],0).setIn(["profits",n[o]],0)}),s}case X.DELETE_PRODUCT:{const{colorId:n}=t.payload;return e.removeIn(["salePrices",n]).removeIn(["printMinimums",n]).removeIn(["profits",n])}case X.CHANGE_COLOR:{const{previousColorId:n}=t.payload;return e.removeIn(["salePrices",n]).removeIn(["printMinimums",n]).removeIn(["profits",n])}default:return e}}const uA=jn(dA),zc={ACTIVATE_INTERSECTING_ICON:"iconButtons/ACTIVATE_INTERSECTING_ICON",DEACTIVATE_INTERSECTING_ICON:"iconButtons/DEACTIVATE_INTERSECTING_ICON"};function _A(){return{intersectingIcons:{}}}function pA(e=_A(),t){switch(t.type){case zc.ACTIVATE_INTERSECTING_ICON:{const n=Wc({arrayStr:t.payload,isActive:!0});return R(f({},e),{intersectingIcons:f(f({},e.intersectingIcons),n)})}case zc.DEACTIVATE_INTERSECTING_ICON:{const n=Wc({arrayStr:t.payload,isActive:!1});return R(f({},e),{intersectingIcons:f(f({},e.intersectingIcons),n)})}default:return e}}function Wc({arrayStr:e,isActive:t}){if(!e||!Array.isArray(e))return null;const n={};return e.forEach(s=>{n[s]=t}),n}function gA(){return b({mode:Wo})}function EA(e=gA(),t){switch(t.type){case Ei.UPDATE_LAB_MODE:switch(t.payload){case ha:return e.set("mode",ha);case Wo:return e.set("mode",Wo);default:return e}default:return e}}function hA(){return b({cartMode:!1,exitWarningEligible:!0,clipartRecoloringOverride:null,sleevePrintOverride:null,streamlinedMobileMode:!1,streamlinedMobileIntent:null,cartCookie:{email:"",postalCode:"",orderItemCount:0},lastSaved:null})}function fA(e=hA(),t){switch(t.type){case tt.UPDATE_CART_COOKIE:return e.set("cartCookie",t.payload);case tt.UPDATE_LAST_SAVED:return e.set("lastSaved",t.payload);case tt.UPDATE_LAB_EXIT_WARNING_ELIGIBILITY:return e.set("exitWarningEligible",t.payload);case tt.UPDATE_STREAMLINED_MOBILE_MODE:return e.set("streamlinedMobileMode",t.payload);case tt.UPDATE_STREAMLINED_MOBILE_INTENT:return e.set("streamlinedMobileIntent",t.payload);case tt.SET_CLIPART_RECOLORING:return e.set("clipartRecoloringOverride",t.payload);case tt.SET_SLEEVE_PRINT_OVERRIDE:return e.set("sleevePrintOverride",t.payload);case tt.UPDATE_CART_MODE:return e.set("cartMode",t.payload);default:return e}}const Yc={TOGGLE_CONTEXTUAL:"menu/TOGGLE_CONTEXTUAL",TOGGLE_CANVAS_BLUR:"menu/TOGGLE_CANVAS_BLUR"};function mA(){return b({contextual:!0,blurCanvas:!1})}function TA(e=mA(),t){switch(t.type){case Yc.TOGGLE_CONTEXTUAL:return e.set("contextual",!e.get("contextual"));case Yc.TOGGLE_CANVAS_BLUR:return e.set("blurCanvas",t.payload);default:return e}}function jc(){return G()}const SA=e=>e.reduce((t,n)=>(t[n.productId]=t[n.productId]||{},t[n.productId][n.productSize]=t[n.productId]&&t[n.productId][n.productSize]?t[n.productId][n.productSize]+1:1,t),{}),CA=(e,t,n)=>s=>{const o=Object.keys(e)[0];let r=n;return Object.keys(s).map(a=>{const i=t[o]&&t[o][a],c=s[a]-(i||0);c>0&&new Array(c).fill().map(()=>{r=r.push(new ns({productId:o,productSize:a}))})}),r};function IA(e=jc(),t){switch(t.type){case Se.CREATE:return e.unshift(new ns(t.payload));case Se.BATCH_CREATE:{const n=t.payload,{size:s}=n,o=ct(n,["size"]);let r=e;return!Number.isNaN(s)&&s>0&&s<$l&&new Array(s).fill().map(()=>{r=r.push(new ns(f({},o)))}),r}
203case Se.REMOVE_EMPTY_NAMES_AND_NUMBERS:{const s=t.payload&&f({},t.payload);return s?e.filter(o=>s[o.productSize]>0&&!o.name&&!o.number?(s[o.productSize]-=1,!1):!0):e.filter(o=>o.name||o.number)}case Se.REMOVE_INVALID_NAMES_AND_NUMBERS:return e.filter(s=>s.name||s.number||s.productSize);case Se.UPDATE:{const{id:s}=t.payload,o=new ns(t.payload),r=e.findIndex(a=>a.get("id")===s);return e.update(r,()=>o)}case Se.DELETE:{const{id:s}=t.payload,o=e.findIndex(r=>r.get("id")===s);return e.delete(o)}case X.SWAP_PRODUCT:{if(e.size===0)return e;const{nextColorId:s}=t.payload;return e.map(o=>o.update("productId",()=>s))}case X.CHANGE_COLOR:{if(e.size===0)return e;const{nextColorId:s}=t.payload;return e.map(o=>o.update("productId",()=>s))}case V.UPDATE_PRODUCT_QUANTITIES:{if(e.size===0)return e;const{payload:s}=t,o=SA(e);return Object.values(s).map(CA(s,o,e))[0]}case k.FETCH_SUCCESS:return t.payload.namesAndNumbers;case Se.CLEAR:case k.CLEAR_DESIGN_DATA:return jc();default:return e}}const AA=jn(IA);function yA(){return b({confirmation:null,notification:null})}function Kt(e,t){const s={ERROR:{title:"Oops!"},SUCCESS:{title:"Success!"},PROMPT:{title:""}}[t.type]||{};return e.set("confirmation",null).set("notification",f(f({},s),t))}function OA(e=yA(),t){var n;switch(t.type){case at.CONFIRM:return e.merge({confirmation:!!t.payload,notification:null});case at.DISMISS:return e.merge({confirmation:null,notification:null});case at.PROMPT:return Kt(e,R(f({},t.payload),{type:"PROMPT"}));case at.SUCCESS:return Kt(e,R(f({},t.payload),{type:"SUCCESS"}));case at.ERROR:return Kt(e,R(f({},t.payload),{type:"ERROR"}));case xe.STYLE_LOAD_ERROR:case xe.STYLES_ERROR:return(n=t.payload)!=null&&n.ignoreLoadErrorNotification?e:Kt(e,{error:t.payload&&t.payload.error,key:tl,type:"ERROR"});case k.FETCH_FAILED:return Kt(e,{key:B0,type:"ERROR"});case k.INVALID_UPLOAD:return Kt(e,{key:ol,type:"ERROR"});case ae.UPLOAD_FAILED:case ae.INVALID_FILE:return Kt(e,{key:t.payload,type:"ERROR"});case te.CATEGORY_FAILED:case te.SEARCH_FAILED:case Le.CATEGORY_FAILED:return Kt(e,{key:hi,type:"ERROR"});default:return e}}function wa(e){return typeof e!="object"||e===null?e:Array.isArray(e)?g2(e).map(wa).toList():g2(e).map(wa).toOrderedMap()}function vs(e=C5){return Mn(e.map(t=>[t,0]))}function Qc(){return b({caveats:G(),colorfulQuote:!1,colorCount:b({back:null,front:null}),droppedView:null,embroideryToPrintPrice:null,hasFullQuote:!1,isFetchingPricesWithoutDroppedView:!1,itemizedPrices:b(),itemizedPricesWithoutDroppedView:b(),mode:"",ncoEligible:null,oneColorLessPrice:null,oneViewLessPrice:null,postalCode:null,previousTotalQty:0,quantities:b({[e5(Ht)]:b()}),quoteBlank:!1,realTimeItemizedPrices:b(),realTimeTotalPrice:null,shipping:b(),showShippingForm:!0,sleeveViewLessPrice:null,sleeveViewLessSaveAmount:null,swappedPrintMethod:null,totalPrice:null,touchedQuantities:!1,unavailableCoreSizes:null,volumeDiscountPrice:null})}const qc=function(e,t,n,s){const o=t.reduce((r,a)=>r.set(a,e.getIn([n,a],0)),Mn());return e.set(s,o).delete(n)};function RA(e=Qc(),t){var n;switch(t.type){case V.SHOW_SHIPPING_FORM:return e.set("showShippingForm",t.payload);case V.UPDATE_COLORFUL_QUOTE:return e.set("colorfulQuote",t.payload);case V.UPDATE_COLOR_COUNT:return!t.payload||typeof t.payload!="object"||Array.isArray(t.payload)?e:e.set("colorCount",b(t.payload));case V.UPDATE_NCO_ELIGIBILITY:return e.set("ncoEligible",t.payload);case V.UPDATE_DROPPED_VIEW:return e.set("droppedView",t.payload);case V.UPDATE_HAS_FULL_QUOTE:return e.set("hasFullQuote",t.payload);case V.UPDATE_IS_FETCHING_PRICES_WITHOUT_DROPPED_VIEW:return e.set("isFetchingPricesWithoutDroppedView",t.payload);case V.UPDATE_IS_INVENTORY_SHIPPING_TYPE:return e.set("isInventoryShippingType",t.payload);case V.UPDATE_POSTAL_CODE:return e.set("postalCode",t.payload);case V.UPDATE_PREVIOUS_TOTAL_QTY:return e.set("previousTotalQty",t.payload);case V.UPDATE_QUOTE:return e.merge(t.payload);case V.UPDATE_QUOTE_BLANK:return e.set("quoteBlank",t.payload);case V.UPDATE_MODE:return e.set("mode",t.payload);case V.UPDATE_TOTAL_PRICE:{const{totalPrice:s,volumeDiscountPrice:o}=t.payload,r=e.set("totalPrice",parseFloat(s));return o?r.set("volumeDiscountPrice",parseFloat(o)):r}case V.UPDATE_ITEMIZED_PRICES:{const s=t.payload;return e.set("itemizedPrices",b(s))}case V.UPDATE_ITEMIZED_PRICES_WITHOUT_DROPPED_VIEW:{const s=t.payload;return s?e.update("itemizedPricesWithoutDroppedView",o=>o.merge(b(s))):e.set("itemizedPricesWithoutDroppedView",b())}case V.UPDATE_ONE_COLOR_LESS_PRICE:return e.set("oneColorLessPrice",t.payload);case V.UPDATE_ONE_VIEW_LESS_PRICE:return e.set("oneViewLessPrice",t.payload);case V.UPDATE_SLEEVE_VIEW_LESS_PRICE:return e.set("sleeveViewLessPrice",t.payload);case V.UPDATE_EMBROIDERY_TO_PRINT_PRICE:return e.set("embroideryToPrintPrice",t.payload);case V.UPDATE_SLEEVE_VIEW_LESS_SAVE_AMOUNT:return e.set("sleeveViewLessSaveAmount",t.payload);case V.UPDATE_PRODUCT_QUANTITIES:{const s=t.payload;let o=e;
203return Object.keys(s).forEach(r=>{const a=s[r];a&&Object.keys(a).forEach(i=>{o=o.setIn(["quantities",r,i],a[i])})}),o.set("touchedQuantities",!0)}case V.UPDATE_REAL_TIME_ITEMIZED_PRICES:{const s=t.payload;return e.update("realTimeItemizedPrices",o=>o.merge(b(s)))}case V.UPDATE_REAL_TIME_TOTAL_PRICE:{const{totalPrice:s}=t.payload;return e.set("realTimeTotalPrice",parseFloat(s))}case V.UPDATE_SHIPPING:return e.set("shipping",t.payload);case V.REAL_TIME_PRICING_ERROR:return e.setIn(["realTimeItemizedPrices",t.payload.selectedProductId],b({itemPrice:null,subtotal:null,error:!0}));case k.CLEAR_DESIGN_DATA:return e.merge({colorfulQuote:!1,hasFullQuote:!1});case k.FETCH_SUCCESS:{const{quantities:s,totalPrice:o}=t.payload.quoteData,r={quantities:s!=null?wa(s):Mn()};return t.payload.changeProductQuantities&&(r.hasFullQuote=!!o,r.totalPrice=o,r.touchedQuantities=!0),e.merge(r)}case X.RESET:{const{colorId:s,sizes:o}=t.payload;return Qc().update("quantities",()=>o&&o.length?b({[s]:vs(o)}):b())}case xe.STYLES_SUCCESS:{const s=t.payload;if(e.get("quantities").mapKeys(o=>{s.find(r=>{var c;const a=r.colors.find(l=>l.id===o),i=(c=e.getIn(["quantities",o]))==null?void 0:c.size;a&&!i&&(e=e.setIn(["quantities",o],vs(a.sizes)))})}),kt()&&la()&&!Ws()){const{colorId:o}=pn();o&&!((n=e.getIn(["quantities",o]))!=null&&n.size)&&s.find(r=>{const a=r.colors.find(i=>i.id===o);if(a)return e=e.setIn(["quantities",o],vs(a.sizes)),!0})}return e}case X.ADD_PRODUCT:{const{products:s}=t.payload;return e.update("quantities",o=>o.withMutations(r=>(s.forEach(a=>{const i=vs(a.validSizes);return r.set(a.colorId,i)}),r)))}case X.DELETE_PRODUCT:{const{colorId:s}=t.payload;return e.deleteIn(["quantities",s])}case X.SWAP_PRODUCT:{const{nextColorIds:s,validSizes:o}=t.payload,{clearPreviousProducts:r}=t.meta;return e.update("quantities",a=>Object.keys(a.toObject()).reduce((i,c)=>{const l=s[c];return l?qc(i,o[l],c,l):r?i.delete(c):i},a))}case X.CHANGE_COLOR:{const{previousColorId:s,nextColorId:o,validSizes:r}=t.payload;return e.update("quantities",a=>qc(a,r,s,o))}case k.SET_COMBINE_DESIGNS:{const{currentColorId:s,isCombined:o,previousQuoteQuantities:r,shouldInitQuantities:a}=t.payload;return o&&s&&r?e.update("quantities",i=>i.withMutations(c=>{if(a){const l=c.get(s).toObject(),d=Object.keys(l);c.set(s,vs(d))}return r.forEach(l=>{const d=Object.keys(c.get(l.colorId).toObject()),_=Mn(d.map(u=>l.quoteQuantities[u]?[u,l.quoteQuantities[u]]:[u,0]));return c.set(l.colorId,_)}),c})):e}case V.UPDATE_UNAVAILABLE_CORE_SIZES:return e.set("unavailableCoreSizes",t.payload);case V.SET_SWAPPED_PRINT_METHOD:return e.set("swappedPrintMethod",t.payload);default:return e}}const DA=jn(RA);function vA(){return null}function PA(e=vA(),t){switch(t.type){case k.SAVE:return null;case k.SAVE_SUCCESS:{const{response:n,emailSent:s}=t.payload;return b({response:n,emailSent:s})}case k.SAVE_FAILED:return b({response:t.payload.response,emailSent:!1});default:return e}}function LA(){return aa({shareResponse:null})}function NA(e=LA(),t){switch(t.type){case k.SHARE:return e.set("shareResponse",null);case k.SHARE_SUCCESS:{const n=t.payload.success;return e.set("shareResponse",n)}case k.SHARE_FAILURE:{const n={senderNameError:null,emailBodyError:null,recipientsError:null};return n.recipientsError=t.payload.message,e.set("shareResponse",{fieldErrors:n})}case k.SHARE_ERROR:{const n=t.payload.message;return e.set("shareResponse",{serverError:n})}default:return e}}let Dn;try{Dn=localStorage.getItem(Gt.SNAPSHOT);const e=localStorage.getItem(Gt.VERSION);Dn&&(hd()&&wd===e?Dn=JSON.parse(Dn):Dn=void 0)}catch(e){Dn=void 0}const wA=Dn,bA={SET_RESTING_STATE:"welcome/SET_RESTING_STATE"};function MA(){return kt()||wA?Nr:Lr}function UA(){return{stage:MA(),animateMenuEntry:!1}}function xA(e=UA(),t){switch(t.type){case bA.SET_RESTING_STATE:return R(f({},e),{stage:t.payload&&t.payload.icons.length>0?Nr:Lr});default:return e}}const sa={CREATE:"suggestions/CREATE",UPDATE:"suggestions/UPDATE",CLEAR_ALL:"suggestions/CLEAR_ALL"};function Xc(){return{}}function FA(e=Xc(),t){switch(t.type){case sa.CREATE:{const n=t.payload,s=ye();return R(f({},e),{[s]:f({id:s},n)})}case sa.UPDATE:{const n=t.payload,{id:s}=n;return R(f({},e),{[s]:f(f({},e[s]),n)})}case sa.CLEAR_ALL:return Xc();default:return e}}const VA=["rendered","dragging","textIsUpdating","verifying","sizeIsDirty","naturalHeight","naturalWi
203dth","wasSaved"];function kA(e,t){var E;const s=[M.VERIFY_DIMENSIONS,M.VERIFY_SUCCESS,Te.ICON_RENDERED].includes(t.type)&&!ei(e),r=Ve(e).map(T=>ku(T,VA)).hashCode(),a=W1(e),i=Za(e),c=Cs(e);if(i===a&&a!==r&&c.length>0){const T=R0(e);U3(T,c)&&p.pageViewTag("/ndx/compatible/newdesign")}const l=[k.FETCH_SUCCESS,k.SAVE_SUCCESS,Ce.SAVE_SUCCESS,Te.SHOW_DESIGN,M.UPDATE_FONT_CATEGORY],d={currentCanvas:r},_=t.type===y.CROP&&!((E=t.meta)!=null&&E.redoUndoable);(l.includes(t.type)||s||_)&&(d.lastSavedCanvas=r);const u=e.canvas.present||e.canvas;return R(f({},e),{canvas:R(f({},e.canvas),{present:u.merge(d)})})}function HA(e){return!N0(e)}function GA(e){const t=xd(e)||s2(e)||n2(e);return t?R(f({},e),{notification:t}):e}function BA(e,t){const n=xd(e)||s2(e)||!t.payload.preventHighInkColorAlert&&n2(e),s=YA(e,t);return!Yt(e)&&n?R(f({},s),{notification:n}):s}function n2(e){const t=De(e),n=v0(e),s=HA(e),o=sessionStorage.getItem("colorLimitNotificationSeen");if(n&&s&&!o)return p.pageViewTag("ndx/quote/error/color_overload"),sessionStorage.setItem("colorLimitNotificationSeen","true"),e.notification.set("notification",{key:sl,categoryId:t.primary_category_id,colorLimit:t.color_limit});if(T8(e))return p.pageViewTag("/ndx/sleeve/error/inkcolormax"),e.notification.set("notification",{key:mi,colorLimit:H1})}function s2(e){if(Ja(e)&&!t8(e))return e.notification.set("notification",{key:q0})}function xd(e){if(!!s2(e)&&!!n2(e))return e.notification.set("notification",{key:Z0})}function Fd(e,t){switch(e.get("type")){case"TEXT":{const n={color:t};return e.get("outlineColor")&&e.get("outlineWidth")&&(n.outlineColor=t,n.color=B.None),e.merge(n)}case"CLIPART":{let n=e.merge({color:t,singleColor:!0});return _a(n)&&(n=n.set("transparent",!0)),n}case"UPLOAD":{const n=e.spotColors.size===1,s=e.merge({color:t,singleColor:!n,contrast:e.get("contrast")||Wa}),o=s.toJS();if(E5(o)&&!n){const a=Ms(o);return tn(s,a.original,B.None,!1)}else if(n){const a=Ms(o)||s.spotColors.first();return tn(s,(a==null?void 0:a.original)||B.None,t,!1)}return s}default:return e}}function zA(e){switch(e.get("type")){case"CLIPART":case"UPLOAD":return e.set("singleColor",!1);default:return e}}function $c(e,t,n=void 0){let s=e.icon.present;return Ve(e).forEach(r=>{s=s.set(r.get("id"),t(r,n))}),R(f({},e),{icon:R(f({},e.icon),{present:s})})}function WA(e){const t=At(e),n=Ye(e);if(!n)return e;const s=n.views,o=s.includes(t)?t:s[0].id;return R(f({},e),{canvas:R(f({},e.canvas),{present:ge(e).set("selectedViewId",o)})})}function YA(e,t){const{previousStyleId:n,previousColorId:s,nextStyleId:o,nextColorIds:r}=t.payload,a=gn(e),i=a.get(n),c=a.get(o);if(!i||!c)return e;const l=Yo(i.id,i.decoration_method,i.material),d=Yo(c.id,c.decoration_method,i.material),_=N8(e)(c,r[s]);return l&&!d?$c(e,zA):!l&&d&&_?$c(e,Fd,_):e}function jA(e,t){const n=QA(e,t);return qA(n,t)}function QA(e,t){const{iconId:n}=t.payload,s=It(e).get(n);if(!s)return e;const o=Bn(e,{viewIdentifier:s.viewId});if(!o)return e;const{constraint:r}=o;return T2("height",s,r)&&T2("width",s,r)?e:R(f({},e),{canvas:R(f({},e.canvas),{present:ge(e).set("currentCanvas",ge(e).currentCanvas+1)}),icon:R(f({},e.icon),{present:e.icon.present.set(n,Ia(s,r))})})}function qA(e,t){const{iconId:n}=t.payload,s=It(e).get(n),o=ms(e),r=zn(e);return r||Yt(e)?R(f({},e),{icon:R(f({},e.icon),{present:e.icon.present.set(n,Fd(s,r||o))})}):e}function XA(e,t){const{iconId:n}=t.payload,s=It(e).get(n);if(!s)return e;const o=Cr(e),r=s.get("outlineWidth"),a=s.get("color");return(!r||r===0)&&a===B.None?R(f({},e),{icon:R(f({},e.icon),{present:e.icon.present.set(n,c3(s,"color",o))})}):e}function $A(e,t){switch(t.type){case te.SWAP:case te.ADD_ART:case y.PASTE:case y.RESTORE:case M.ADD_TEXT:case ae.UPLOAD_COMPLETE:return GA(e);case X.SWAP_PRODUCT:return BA(e,t);case xe.STYLE_LOADED:case xe.STYLES_SUCCESS:return WA(e);case Te.ICON_RENDERED:case M.VERIFY_SUCCESS:return jA(e,t);case M.UPDATE_FONT:return XA(e,t);default:return e}}const ZA=[$A,kA],er=sr({reducerPath:"mmsApi",baseQuery:or({baseUrl:`${K.products}/api/out`,credentials:Yn}),endpoints:e=>({getMatchingColors:e.query({query:({styleId:t,colorId:n,complementIds:s})=>({url:`/styles/${t}/colors/${n}/match.json`,method:"GET",params:{style_ids:s.join(",")}})})})}),{useGetMatchingColorsQuery:DM}=er;function KA(e){return{url:"/",method:"POST",body:{quote_info:R(f({},e),{color_counts:u0({colorCounts:e.color_counts})})}}}const tr=sr({reducerPath:"priceQuoteApi",baseQuery:or(R(f({},Wn),{baseUrl:K.price_quote,credentials:Yn})),endpoints:e=>({getPriceQuote:e.query({query:KA})})}),{useGetPriceQuoteQuery:vM,endpoints:PM}=tr,JA=e=>{var t;return e!=null&&e.wcibmo?e:xl(((t=e==null?void 0:e.json)==null?void 0:t.call(e))||e)},Zc=e=>{const t=e;return t!=null&&t.error&&z.warning("External Service Failure: quoteWidgetApi:",String(t.error)),e};function ey(e,t){if(!e||e.length===0)return{items:[],total_price:0,price_before_volume_discount:0,volume_discount_savings:0,volume_discount_percentage:0};const n=e[0],s=e.flatMap(T=>T.items||[]),o=s.filter(T=>{var I,A;const O=parseFloat((A=(I=T.unit_price)!=null?I:T.unitPrice)!=null?A:"");return isNaN(O)?(z.warning("mergeQuoteResponses: unit_price missing or non-numeric â item excluded from average",{item:T}),!1):!0}),r=o.length,a=o.reduce((T,O)=>{var I,A;return T+parseFloat((A=(I=O.unit_price)!=null?I:O.unitPrice)!=null?A:"")},0),i=o.reduce((T,O)=>{var D,v,w,H;const I=parseFloat((v=(D=O.starting_unit_price)!=null?D:O.startingUnitPrice)!=null?v:""),A=parseFloat((H=(w=O.unit_price)!=null?w:O.unitPrice)!=null?H:"");return T+(isNaN(I)?A:I)},0),c=r>0?a/r:0,l=r>0?i/r:0,d=c*t,_=l*t,u=_-d,E=_>0?parseFloat((1-d/_).toFixed(4)):n.volume_discount_percentage;return R(f({},n),{items:s,total_price:d,price_before_volume_discount:_,volume_discount_savings:u,volume_discount_percentage:E})}const nr=sr({reducerPath:"quoteWidgetApi",baseQuery:or(R(f({},Wn),{baseUrl:ni.quoting,credentials:Yn})),endpoints:e=>({getQuoteWidgetDeserialized:e.query({query:({config:t})=>({url:"/",method:"POST",body:t}),transformResponse:JA,transformErrorResponse:Zc}),getQuoteWidget:e.query({queryFn:(r,a,i,c)=>P(void 0,[r,a,i,c],function*({config:t},n,s,o){const l=yield o({url:"/",method:"POST",body:t});if(l.error)return Zc(l.error),{error:l.error};const d=l.data;return d!=null&&d.wcibmo?{error:{status:200,data:d}}:{data:d}})}),getQuoteBatched:e.query({queryFn:(a,i,c,l)=>P(void 0,[a,i,c,l],function*({batchConfigs:t,estimatedQty:n},s,o,r){try{const d=yield Promise.all(t.map(E=>r({url:"/",method:"POST",body:E}))),_=d.find(E=>E.error);return _?(z.warning("External Service Failure: quoteWidgetApi (batched):",String(_.error)),{error:_.error}):{data:ey(d.map(E=>E.data),n)}}catch(d){return z.warning("External Service Failure: quoteWidgetApi (batched):",String(d)),{error:{status:"CUSTOM_ERROR",error:String(d)}}}})})})}),{useGetQuoteWidgetQuery:LM,useGetQuoteBatchedQuery:NM}=nr,Kc={key:null},Vd=Fn({name:"modal",initialState:Kc,reducers:{setModal:(e,t)=>t.payload,dismissModal:()=>Kc}}),{setModal:wM,dismissModal:bM}=Vd.actions,ty=Vd.reducer,MM=e=>e.modal,ny={lowResIcons:{}},kd=Fn({name:"metrics",initialState:ny,reducers:{fireLowResMetric:(e,t)=>{const n=t.payload;e.lowResIcons[n]||(e.lowResIcons[n]=!0,p.fireEvent("/ndx/upload/low-res-warning"))}}}),{fireLowResMetric:UM}=kd.actions,sy=kd.reducer;var o2=[Hu(Gu,Xo.middleware,er.middleware,tr.middleware,nr.middleware,_C,SC,TC,fC,pC,CC,wC)];const oy=hd()&&!bs();oy&&o2.push(lS({key:Gt.SNAPSHOT,timestamp:Date.now(),versionKey:Gt.VERSION,version:wd,deserialize:rI,serialize:jC,readError:e=>{z.error("Local Storage read error:",e)},writeError:e=>{z.error("Local Storage write error:",e)},isValidData:bC}));if(window.__REDUX_DEVTOOLS_EXTENSION__){const e=n=>n.type==="assistedDesign/FETCH_SUCCESS"?R(f({},n),{payload:"<<LONG_BLOB>>"}):n,t=n=>n.icon||n.design?R(f({},n),{design:n.design.present.slice(0,3),icon:n.icon.present.slice(0,10)}):n;o2.push(window.__REDUX_DEVTOOLS_EXTENSION__({trace:!0,actionSanitizer:e,stateSanitizer:t}))}const ry=Bu(...o2)(zu),ay=lI({design:eI,icon:pI,product:fI,account:SI,analytics:zS,art:II,canvas:ZC,catalog:yI,font:cA,fundraising:uA,iconButtons:pA,labMode:EA,config:fA,menu:TA,namesAndNumbers:AA,notification:OA,quote:DA,saveResponse:PA,shareResponse:NA,welcome:xA,suggestions:FA,cart:sf,favouriteAttribution:ZS,modal:ty,path:k8,price:Cg,metrics:sy,[Xo.reducerPath]:Xo.reducer,[er.reducerPath]:er.reducer,[tr.reducerPath]:tr.reducer,[nr.reducerPath]:nr.reducer}),iy=Wu(ay,...ZA);function cy(){return ry(iy)}const ly=cy();Gs(()=>import("./newrelic-DSP3T3RK.js"),__vite__mapDeps([42,4,0,1])).catch(e=>z.warning("New Relic failed to load",e));Gs(()=>P(void 0,null,function*(){const{initLogRocketIntegration:e}=yield Promise.resolve().then(()=>d_);return{initLogRocketIntegration:e}}),void 0).then(({initLogRocketIntegration:e})=>e()).catch(e=>z.warning("LogRocket integration failed to load",e));const dy=document.getElementById("root"),uy=Yu.createRoot(dy);uy.render(C.jsx(va,{store:ly}));export{ab as $,Ws as A,$ as B,Id as C,Em as D,z as E,p as F,Is as G,uT as H,qb as I,oT as J,Yw as K,lR as L,rs as M,kn as N,ur as O,Ja as P,Y5 as Q,qe as R,hi as S,Re as T,t8 as U,ip as V,ML as W,aL as X,XP as Y,CP as Z,eP as _,cv as a,mN as a$,dn as a0,ot as a1,bD as a2,_t as a3,Wt as a4,Hr as a5,Ye as a6,vD as a7,xD as a8,oi as a9,At as aA,di as aB,l7 as aC,bt as aD,hs as aE,B1 as aF,Qy as aG,Sr as aH,DD as aI,y8 as aJ,_O as aK,BD as aL,Zs as aM,$s as aN,De as aO,w0 as aP,cO as aQ,M8 as aR,zL as aS,k9 as aT,XL as aU,qL as aV,Uo as aW,Hv as aX,Di as aY,Aw as aZ,TN as a_,pD as aa,Gg as ab,zl as ac,Q2 as ad,Ke as ae,Wb as af,as as ag,jw as ah,Ae as ai,Am as aj,Wi as ak,zi as al,Ps as am,ql as an,F3 as ao,cb as ap,$w as aq,Xw as ar,Ub as as,pr as at,JN as au,jR as av,zc as aw,jy as ax,j5 as ay,v8 as az,bo as b,Hw as b$,sp as b0,EN as b1,lN as b2,dN as b3,hN as b4,gN as b5,pN as b6,_N as b7,uN as b8,$v as b9,te as bA,zp as bB,Ka as bC,Cr as bD,zn as bE,Yt as bF,s0 as bG,ms as bH,dM as bI,GN as bJ,Xe as bK,Bn as bL,rl as bM,K5 as bN,K2 as bO,U1 as bP,Hn as bQ,nv as bR,o7 as bS,P2 as bT,Vy as bU,zy as bV,He as bW,b1 as bX,yy as bY,gs as bZ,zs as b_,Or as ba,Mt as bb,K as bc,Zy as bd,Ky as be,BO as bf,tO as bg,zo as bh,w2 as bi,UO as bj,wt as bk,il as bl,We as bm,ln as bn,ze as bo,Lt as bp,W as bq,St as br,st as bs,Fi as bt,Fe as bu,iO as bv,tb as bw,pO as bx,lO as by,It as bz,si as c,S8 as c$,tp as c0,AN as c1,Oy as c2,TO as c3,CO as c4,SO as c5,ky as c6,Hy as c7,Ut as c8,Ny as c9,wS as cA,wc as cB,ie as cC,AO as cD,IO as cE,Vb as cF,s4 as cG,hO as cH,fO as cI,JD as cJ,o8 as cK,AD as cL,En as cM,E6 as cN,FD as cO,v2 as cP,d6 as cQ,m6 as cR,Xt as cS,LR as cT,bN as cU,qD as cV,fr as cW,ID as cX,_L as cY,xO as cZ,Pd as c_,Fy as ca,Ri as cb,cN as cc,CN as cd,IN as ce,fN as cf,Ww as cg,jv as ch,nb as ci,EP as cj,Iy as ck,Vi as cl,Zo as cm,aO as cn,l3 as co,RO as cp,OO as cq,Yy as cr,Qi as cs,sM as ct,hy as cu,fy as cv,my as cw,kO as cx,MO as cy,dE as cz,Ts as d,sl as d$,MD as d0,ZD as d1,Jy as d2,$y as d3,sL as d4,yL as d5,EO as d6,Q5 as d7,cr as d8,V9 as d9,rb as dA,f0 as dB,rD as dC,_R as dD,NR as dE,zD as dF,K1 as dG,J1 as dH,v0 as dI,T8 as dJ,ve as dK,U8 as dL,ei as dM,i8 as dN,_8 as dO,KD as dP,Us as dQ,z6 as dR,Tr as dS,ad as dT,I5 as dU,sO as dV,oO as dW,o9 as dX,p9 as dY,H1 as dZ,mi as d_,wy as da,L as db,K7 as dc,SR as dd,gr as de,g6 as df,jo as dg,V1 as dh,sc as di,jl as dj,Ag as dk,n7 as dl,Ks as dm,Cf as dn,MM as dp,bM as dq,Lb as dr,Cl as ds,Kh as dt,aN as du,Ad as dv,jf as dw,iP as dx,Vv as dy,bA as dz,gi as e,Tv as e$,q0 as e0,Eg as e1,nl as e2,Wl as e3,$0 as e4,E9 as e5,jO as e6,d9 as e7,NP as e8,Rr as e9,dp as eA,MN as eB,UN as eC,xN as eD,SL as eE,WN as eF,YN as eG,$N as eH,jN as eI,XN as eJ,qN as eK,QN as eL,zN as eM,WO as eN,b7 as eO,M7 as eP,Sd as eQ,Cd as eR,tv as eS,V6 as eT,TD as eU,YL as eV,Yn as eW,Wn as eX,xl as eY,jL as eZ,Hb as e_,tP as ea,dP as eb,jP as ec,gL as ed,bb as ee,xb as ef,sP as eg,hP as eh,JP as ei,KP as ej,FP as ek,VP as el,UP as em,Zv as en,r0 as eo,kb as ep,Mb as eq,s7 as er,so as es,wN as et,Er as eu,_p as ev,LN as ew,PN as ex,NN as ey,zt as ez,js as f,eo as f$,u5 as f0,Fs as f1,aw as f2,dw as f3,Sg as f4,OR as f5,KN as f6,Dy as f7,we as f8,fm as f9,m8 as fA,mO as fB,ji as fC,Y3 as fD,Nb as fE,V0 as fF,r9 as fG,Ar as fH,G0 as fI,B0 as fJ,W0 as fK,Y0 as fL,j0 as fM,Q0 as fN,ol as fO,_9 as fP,Z0 as fQ,K0 as fR,g9 as fS,J0 as fT,el as fU,tl as fV,yr as fW,fi as fX,h9 as fY,f9 as fZ,Js as f_,Qt as fa,mc as fb,z0 as fc,k0 as fd,X0 as fe,H0 as ff,Fv as fg,Df as fh,k6 as fi,Of as fj,eO as fk,Hl as fl,d5 as fm,iN as fn,b0 as fo,yb as fp,Ab as fq,Il as fr,u9 as f
203s,$3 as ft,Tw as fu,LD as fv,Sw as fw,YO as fx,nO as fy,Ve as fz,mv as g,Yv as g$,on as g0,Ti as g1,AL as g2,ma as g3,DP as g4,cs as g5,Ne as g6,mR as g7,fR as g8,j7 as g9,uD as gA,_P as gB,uP as gC,lP as gD,lv as gE,r7 as gF,Uw as gG,os as gH,kP as gI,RP as gJ,pP as gK,xy as gL,zv as gM,ke as gN,HL as gO,VL as gP,wM as gQ,Bw as gR,Gw as gS,ED as gT,mM as gU,ne as gV,DO as gW,g7 as gX,TM as gY,Wv as gZ,OL as g_,l8 as ga,$L as gb,rP as gc,ar as gd,ND as ge,jD as gf,g8 as gg,mr as gh,fa as gi,WD as gj,Jv as gk,QP as gl,oP as gm,KL as gn,xn as go,aP as gp,Be as gq,qw as gr,DN as gs,N0 as gt,Et as gu,By as gv,B as gw,f5 as gx,m5 as gy,Wy as gz,GD as h,BL as h$,RL as h0,WL as h1,Mv as h2,wv as h3,Bv as h4,UL as h5,LL as h6,bv as h7,n9 as h8,xv as h9,E5 as hA,Ms as hB,GL as hC,jt as hD,Vw as hE,Qb as hF,lo as hG,Fm as hH,Xr as hI,Oa as hJ,M3 as hK,kw as hL,Io as hM,h3 as hN,yO as hO,sb as hP,$h as hQ,Xh as hR,Ff as hS,Vf as hT,Jw as hU,UM as hV,Es as hW,bs as hX,xL as hY,zw as hZ,kL as h_,Uv as ha,Gv as hb,Nv as hc,PP as hd,Dv as he,Rv as hf,vv as hg,Lv as hh,$8 as hi,x0 as hj,Z8 as hk,SM as hl,CM as hm,yM as hn,AM as ho,IM as hp,OM as hq,e4 as hr,D_ as hs,Qv as ht,vy as hu,IP as hv,PL as hw,Sy as hx,by as hy,Gy as hz,Ey as i,X7 as i$,LO as i0,T4 as i1,OD as i2,Wa as i3,ON as i4,RN as i5,yN as i6,RD as i7,q6 as i8,YD as i9,d1 as iA,QL as iB,rL as iC,gb as iD,Lr as iE,Sm as iF,Nr as iG,Se as iH,HD as iI,fs as iJ,vw as iK,Pw as iL,ww as iM,bw as iN,uO as iO,dO as iP,Si as iQ,ER as iR,Ob as iS,ja as iT,Rb as iU,Wg as iV,Zw as iW,ki as iX,no as iY,CR as iZ,$7 as i_,QD as ia,ZL as ib,R4 as ic,SD as id,iL as ie,oL as ig,Xa as ih,Ht as ii,jS as ij,Mc as ik,qi as il,Xb as im,qv as io,Ty as ip,gM as iq,DM as ir,td as is,x6 as it,co as iu,to as iv,wm as iw,Qw as ix,V2 as iy,xt as iz,ut as j,R0 as j$,vN as j0,U4 as j1,x4 as j2,Ry as j3,l9 as j4,c9 as j5,i9 as j6,a9 as j7,Xu as j8,Ay as j9,l5 as jA,F1 as jB,DL as jC,kv as jD,My as jE,ia as jF,ca as jG,vL as jH,gO as jI,yP as jJ,wL as jK,bL as jL,NL as jM,Pt as jN,iv as jO,vM as jP,rO as jQ,GO as jR,nL as jS,SP as jT,gn as jU,x8 as jV,_v as jW,Q7 as jX,hr as jY,gR as jZ,pR as j_,pM as ja,ti as jb,fD as jc,yD as jd,ir as je,G2 as jf,sa as jg,xw as jh,vO as ji,RM as jj,Xv as jk,p4 as jl,za as jm,nd as jn,Fw as jo,CD as jp,mD as jq,X6 as jr,UD as js,Ov as jt,wD as ju,n8 as jv,j8 as jw,nP as jx,tL as jy,eL as jz,LP as k,xP as k$,qP as k0,JL as k1,H3 as k2,B_ as k3,VO as k4,FO as k5,O7 as k6,Qa as k7,pn as k8,Fh as k9,qy as kA,uw as kB,pt as kC,O1 as kD,Te as kE,ob as kF,kD as kG,dv as kH,F8 as kI,yv as kJ,Sv as kK,Kg as kL,Iv as kM,fb as kN,pL as kO,hb as kP,Tb as kQ,tN as kR,ib as kS,jb as kT,lT as kU,Py as kV,eN as kW,Ly as kX,yE as kY,Bb as kZ,A1 as k_,tM as ka,cd as kb,Jt as kc,HP as kd,WP as ke,Nw as kf,Lw as kg,fn as kh,lD as ki,g0 as kj,ai as kk,dD as kl,E0 as km,lt as kn,BP as ko,zP as kp,D7 as kq,GP as kr,SN as ks,Mw as kt,$a as ku,Rw as kv,Dw as kw,ks as kx,Vs as ky,Xy as kz,IL as l,HO as l$,MP as l0,bP as l1,wP as l2,Kw as l3,pv as l4,PD as l5,ZP as l6,TL as l7,mL as l8,fL as l9,jp as lA,Kv as lB,Yb as lC,oN as lD,rN as lE,Ym as lF,vf as lG,T7 as lH,n3 as lI,nN as lJ,sN as lK,vb as lL,Db as lM,Pb as lN,Kb as lO,Zb as lP,Jb as lQ,eM as lR,$b as lS,NT as lT,nM as lU,fM as lV,j1 as lW,aD as lX,ft as lY,J7 as lZ,JO as l_,hL as la,EL as lb,fP as lc,Ib as ld,Cb as le,Sb as lf,ep as lg,gP as lh,Yp as li,uM as lj,cM as lk,rM as ll,lM as lm,iM as ln,oM as lo,aM as lp,Rc as lq,cP as lr,FN as ls,VN as lt,PC as lu,ea as lv,HN as lw,kN as lx,Ow as ly,BN as lz,H8 as m,WR as m$,eR as m0,Cw as m1,CL as m2,I_ as m3,Yl as m4,sw as m5,ow as m6,iw as m7,cw as m8,mw as m9,ZR as mA,av as mB,$R as mC,Cs as mD,YR as mE,XR as mF,$D as mG,GR as mH,HR as mI,e8 as mJ,QR as mK,oD as mL,uv as mM,ri as mN,qR as mO,rv as mP,ov as mQ,sv as mR,UR as mS,I6 as mT,iD as mU,l6 as mV,bR as mW,BR as mX,uR as mY,xR as mZ,wR as m_,pw as ma,fw as mb,hw as mc,Ew as md,gw as me,rw as mf,KO as mg,e6 as mh,s6 as mi,RR as mj,IR as mk,ZO as ml,DR as mm,U3 as mn,kR as mo,VR as mp,FR as mq,Xs as mr,zR as ms,sD as mt,nD as mu,JR as mv,p0 as mw,tD as mx,eD as my,KR as mz,Eb as n,rR as n$,vR as n0,PR as n1,v7 as n2,ym as n3,m0 as n4,Y7 as n5,qS as n6,F6 as n7,hM as n8,dT as n9,QO as nA,Uc as nB,LM as nC,NM as nD,Dg as nE,Pg as nF,J2 as nG,Og as nH,Rg as nI,XS as nJ,XD as nK,yg as nL,iR as nM,L0 as
203nN,O8 as nO,U6 as nP,_D as nQ,Z1 as nR,u0 as nS,Tt as nT,oR as nU,A5 as nV,EM as nW,zb as nX,fv as nY,Gb as nZ,sR as n_,Fb as na,cD as nb,JS as nc,bO as nd,wO as ne,q5 as nf,y7 as ng,NO as nh,Yo as ni,M1 as nj,Cy as nk,h2 as nl,l0 as nm,ni as nn,MR as no,aR as np,eb as nq,us as nr,cR as ns,wo as nt,$O as nu,qO as nv,XO as nw,fe as nx,nR as ny,tR as nz,Ev as o,ns as o0,ev as o1,J6 as o2,dR as o3,Cv as o4,q8 as o5,Av as o6,cL as o7,vP as o8,$P as o9,d0 as oA,_0 as oB,Iw as oC,hD as oD,ci as oE,T0 as oF,VD as oG,Q6 as oH,zO as oI,TR as oJ,w8 as oK,FL as oL,B9 as oM,AP as oN,lr as oO,Pv as oP,f7 as oQ,PO as oR,Uy as oS,Ui as oT,uL as oa,dL as ob,nw as oc,lw as od,tw as oe,ew as of,_w as og,ZN as oh,Dd as oi,db as oj,ub as ok,_b as ol,hR as om,gD as on,pb as oo,Gl as op,lb as oq,T1 as or,Zh as os,pa as ot,j6 as ou,TP as ov,mP as ow,U2 as ox,AR as oy,yR as oz,Al as p,lL as q,gv as r,hv as s,YP as t,OP as u,Yg as v,mb as w,wb as x,_M as y,nT as z};
Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.