@returnflows/shop-overlay 1.0.6 → 1.0.7

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.esm.js CHANGED
@@ -1,2 +1,2 @@
1
- function e(e,t,r){return(t=function(e){var t=function(e,t){if('object'!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||'default');if('object'!=typeof n)return n;throw new TypeError('@@toPrimitive must return a primitive value.')}return('string'===t?String:Number)(e)}(e,'string');return'symbol'==typeof t?t:t+''}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((t=>Object.getOwnPropertyDescriptor(e,t).enumerable))),r.push.apply(r,n)}return r}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((r=>{e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((e=>{Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function o(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i,a;function s(){var e,t;return'undefined'==typeof window?null:null!==(e=null===(t=window.Returnflows)||void 0===t?void 0:t._cartProvider)&&void 0!==e?e:null}function l(){var e;return'undefined'!=typeof window&&null!=(null===(e=window.Returnflows)||void 0===e?void 0:e._cartProvider)}function c(e){var t,r,n='';if('string'==typeof e||'number'==typeof e)n+=e;else if('object'==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=c(e[t]))&&(n&&(n+=' '),n+=r)}else for(r in e)e[r]&&(n&&(n+=' '),n+=r);return n}function u(){for(var e,t,r=0,n='',o=arguments.length;r<o;r++)(e=arguments[r])&&(t=c(e))&&(n&&(n+=' '),n+=t);return n}(()=>{const e={VITE_WIDGET_BASE_URL:'https://static.returnflows.com/dist/production',VITE_API_URL:'https://app.returnflows.com/api/proxy',VITE_PLATFORM_URL:'https://returnflows.com'};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}})(),(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(i||(i={})),(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(a||(a={}));const d=function(){return{nextPart:arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,validators:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,classGroupId:arguments.length>2?arguments[2]:void 0}},h='-',f=[],m=e=>{const t=v(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith('[')&&e.endsWith(']'))return g(e);const r=e.split(h),n=''===r[0]&&r.length>1?1:0;return p(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||f}return r[e]||f}}},p=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=p(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join(h):e.slice(t).join(h),s=i.length;for(let e=0;e<s;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},g=e=>-1===e.slice(1,-1).indexOf(':')?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(':'),n=t.slice(0,r);return n?'arbitrary..'+n:void 0})(),v=e=>{const{theme:t,classGroups:r}=e;return b(r,t)},b=(e,t)=>{const r=d();for(const n in e){const o=e[n];_(o,r,n,t)}return r},_=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];y(o,t,r,n)}},y=(e,t,r,n)=>{'string'!=typeof e?'function'!=typeof e?k(e,t,r,n):w(e,t,r,n):C(e,t,r)},C=(e,t,r)=>{(''===e?t:N(t,e)).classGroupId=r},w=(e,t,r,n)=>{x(e)?_(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},k=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];_(a,N(t,i),r,n)}},N=(e,t)=>{let r=e;const n=t.split(h),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=d(),r.nextPart.set(t,o)),r=o}return r},x=e=>'isThemeGetter'in e&&!0===e.isThemeGetter,E=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},S=[],T=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),I=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let s=0;s<a;s++){const a=e[s];if(0===n&&0===o){if(':'===a){t.push(e.slice(i,s)),i=s+1;continue}if('/'===a){r=s;continue}}'['===a?n++:']'===a?n--:'('===a?o++:')'===a&&o--}const s=0===t.length?e:e.slice(i);let l=s,c=!1;s.endsWith('!')?(l=s.slice(0,-1),c=!0):s.startsWith('!')&&(l=s.slice(1),c=!0);return T(t,c,l,r&&r>i?r-i:void 0)};if(t){const e=t+':',r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):T(S,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},M=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach(((e,r)=>{t.set(e,1e6+r)})),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a='['===i[0],s=t.has(i);a||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},A=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},R=/\s+/,P=e=>{if('string'==typeof e)return e;let t,r='';for(let n=0;n<e.length;n++)e[n]&&(t=P(e[n]))&&(r&&(r+=' '),r+=t);return r},O=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let i,a,s,l;const c=e=>{const t=a(e);if(t)return t;const r=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(R);let c='';for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=r(t);if(u){c=t+(c.length>0?' '+c:c);continue}let p,g=!!m;if(g){p=n(f.substring(0,m));const e=p&&a[p]?n(f):void 0;e&&e!==p&&(p=e,g=!1)}else p=n(f);if(!p){if(!g){c=t+(c.length>0?' '+c:c);continue}if(p=n(f),!p){c=t+(c.length>0?' '+c:c);continue}g=!1}const v=0===d.length?'':1===d.length?d[0]:i(d).join(':'),b=h?v+'!':v,_=b+p;if(s.indexOf(_)>-1)continue;s.push(_);const y=o(p,g);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?' '+c:c)}return c})(e,i);return s(e,r),r};return l=t=>{const o=r.reduce(((e,t)=>t(e)),e());return i=(e=>n({cache:E(e.cacheSize),parseClassName:I(e),sortModifiers:M(e),postfixLookupClassGroupIds:A(e)},m(e)))(o),a=i.cache.get,s=i.cache.set,l=c,c(t)},function(){return l(function(){let e,t,r=0,n='';for(;r<arguments.length;){var o;(e=(o=r++)<0||arguments.length<=o?void 0:arguments[o])&&(t=P(e))&&(n&&(n+=' '),n+=t)}return n}(...arguments))}},H=[],L=e=>{const t=t=>t[e]||H;return t.isThemeGetter=!0,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D=/^\((?:(\w[\w-]*):)?(.+)\)$/i,F=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>F.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>!!e&&Number.isInteger(Number(e)),X=e=>e.endsWith('%')&&W(e.slice(0,-1)),K=e=>z.test(e),Y=()=>!0,J=e=>U.test(e)&&!j.test(e),Q=()=>!1,$=e=>G.test(e),ee=e=>q.test(e),te=e=>!oe(e)&&!he(e),re=e=>e.startsWith('@container')&&('/'===e[10]&&void 0!==e[11]||'s'===e[11]&&void 0!==e[16]&&e.startsWith('-size/',10)||'n'===e[11]&&void 0!==e[18]&&e.startsWith('-normal/',10)),ne=e=>ye(e,Ne,Q),oe=e=>B.test(e),ie=e=>ye(e,xe,J),ae=e=>ye(e,Ee,W),se=e=>ye(e,Te,Y),le=e=>ye(e,Se,Q),ce=e=>ye(e,we,Q),ue=e=>ye(e,ke,ee),de=e=>ye(e,Ie,$),he=e=>D.test(e),fe=e=>Ce(e,xe),me=e=>Ce(e,Se),pe=e=>Ce(e,we),ge=e=>Ce(e,Ne),ve=e=>Ce(e,ke),be=e=>Ce(e,Ie,!0),_e=e=>Ce(e,Te,!0),ye=(e,t,r)=>{const n=B.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ce=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=D.exec(e);return!!n&&(n[1]?t(n[1]):r)},we=e=>'position'===e||'percentage'===e,ke=e=>'image'===e||'url'===e,Ne=e=>'length'===e||'size'===e||'bg-size'===e,xe=e=>'length'===e,Ee=e=>'number'===e,Se=e=>'family-name'===e,Te=e=>'number'===e||'weight'===e,Ie=e=>'shadow'===e,Me=O((()=>{const e=L('color'),t=L('font'),r=L('text'),n=L('font-weight'),o=L('tracking'),i=L('leading'),a=L('breakpoint'),s=L('container'),l=L('spacing'),c=L('radius'),u=L('shadow'),d=L('inset-shadow'),h=L('text-shadow'),f=L('drop-shadow'),m=L('blur'),p=L('perspective'),g=L('aspect'),v=L('ease'),b=L('animate'),_=()=>['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom',he,oe],y=()=>[he,oe,l],C=()=>[V,'full','auto',...y()],w=()=>[Z,'none','subgrid',he,oe],k=()=>['auto',{span:['full',Z,he,oe]},Z,he,oe],N=()=>[Z,'auto',he,oe],x=()=>['auto','min','max','fr',he,oe],E=()=>['auto',...y()],S=()=>[V,'auto','full','dvw','dvh','lvw','lvh','svw','svh','min','max','fit',...y()],T=()=>[V,'screen','full','dvw','lvw','svw','min','max','fit',...y()],I=()=>[V,'screen','full','lh','dvh','lvh','svh','min','max','fit',...y()],M=()=>[e,he,oe],A=()=>['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom',pe,ce,{position:[he,oe]}],R=()=>['auto','cover','contain',ge,ne,{size:[he,oe]}],P=()=>[X,fe,ie],O=()=>['','none','full',c,he,oe],H=()=>['',W,fe,ie],B=()=>[W,X,pe,ce],D=()=>['','none',m,he,oe],F=()=>['none',W,he,oe],z=()=>['none',W,he,oe],U=()=>[W,he,oe],j=()=>[V,'full',...y()];return{cacheSize:500,theme:{animate:['spin','ping','pulse','bounce'],aspect:['video'],blur:[K],breakpoint:[K],color:[Y],container:[K],'drop-shadow':[K],ease:['in','out','in-out'],font:[te],'font-weight':['thin','extralight','light','normal','medium','semibold','bold','extrabold','black'],'inset-shadow':[K],leading:['none','tight','snug','normal','relaxed','loose'],perspective:['dramatic','near','normal','midrange','distant','none'],radius:[K],shadow:[K],spacing:['px',W],text:[K],'text-shadow':[K],tracking:['tighter','tight','normal','wide','wider','widest']},classGroups:{aspect:[{aspect:['auto','square',V,oe,he,g]}],container:['container'],'container-type':[{'@container':['','normal','size',he,oe]}],'container-named':[re],columns:[{columns:[W,oe,he,s]}],'break-after':[{'break-after':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-before':[{'break-before':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-inside':[{'break-inside':['auto','avoid','avoid-page','avoid-column']}],'box-decoration':[{'box-decoration':['slice','clone']}],box:[{box:['border','content']}],display:['block','inline-block','inline','flex','inline-flex','table','inline-table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row-group','table-row','flow-root','grid','inline-grid','contents','list-item','hidden'],sr:['sr-only','not-sr-only'],float:[{float:['right','left','none','start','end']}],clear:[{clear:['left','right','both','none','start','end']}],isolation:['isolate','isolation-auto'],'object-fit':[{object:['contain','cover','fill','none','scale-down']}],'object-position':[{object:_()}],overflow:[{overflow:['auto','hidden','clip','visible','scroll']}],'overflow-x':[{'overflow-x':['auto','hidden','clip','visible','scroll']}],'overflow-y':[{'overflow-y':['auto','hidden','clip','visible','scroll']}],overscroll:[{overscroll:['auto','contain','none']}],'overscroll-x':[{'overscroll-x':['auto','contain','none']}],'overscroll-y':[{'overscroll-y':['auto','contain','none']}],position:['static','fixed','absolute','relative','sticky'],inset:[{inset:C()}],'inset-x':[{'inset-x':C()}],'inset-y':[{'inset-y':C()}],start:[{'inset-s':C(),start:C()}],end:[{'inset-e':C(),end:C()}],'inset-bs':[{'inset-bs':C()}],'inset-be':[{'inset-be':C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:['visible','invisible','collapse'],z:[{z:[Z,'auto',he,oe]}],basis:[{basis:[V,'full','auto',s,...y()]}],'flex-direction':[{flex:['row','row-reverse','col','col-reverse']}],'flex-wrap':[{flex:['nowrap','wrap','wrap-reverse']}],flex:[{flex:[W,V,'auto','initial','none',oe]}],grow:[{grow:['',W,he,oe]}],shrink:[{shrink:['',W,he,oe]}],order:[{order:[Z,'first','last','none',he,oe]}],'grid-cols':[{'grid-cols':w()}],'col-start-end':[{col:k()}],'col-start':[{'col-start':N()}],'col-end':[{'col-end':N()}],'grid-rows':[{'grid-rows':w()}],'row-start-end':[{row:k()}],'row-start':[{'row-start':N()}],'row-end':[{'row-end':N()}],'grid-flow':[{'grid-flow':['row','col','dense','row-dense','col-dense']}],'auto-cols':[{'auto-cols':x()}],'auto-rows':[{'auto-rows':x()}],gap:[{gap:y()}],'gap-x':[{'gap-x':y()}],'gap-y':[{'gap-y':y()}],'justify-content':[{justify:['start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe','normal']}],'justify-items':[{'justify-items':['start','end','center','stretch','center-safe','end-safe','normal']}],'justify-self':[{'justify-self':['auto','start','end','center','stretch','center-safe','end-safe']}],'align-content':[{content:['normal','start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe']}],'align-items':[{items:['start','end','center','stretch','center-safe','end-safe',{baseline:['','last']}]}],'align-self':[{self:['auto','start','end','center','stretch','center-safe','end-safe',{baseline:['','last']}]}],'place-content':[{'place-content':['start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe']}],'place-items':[{'place-items':['start','end','center','stretch','center-safe','end-safe','baseline']}],'place-self':[{'place-self':['auto','start','end','center','stretch','center-safe','end-safe']}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],'space-x':[{'space-x':y()}],'space-x-reverse':['space-x-reverse'],'space-y':[{'space-y':y()}],'space-y-reverse':['space-y-reverse'],size:[{size:S()}],'inline-size':[{inline:['auto',...T()]}],'min-inline-size':[{'min-inline':['auto',...T()]}],'max-inline-size':[{'max-inline':['none',...T()]}],'block-size':[{block:['auto',...I()]}],'min-block-size':[{'min-block':['auto',...I()]}],'max-block-size':[{'max-block':['none',...I()]}],w:[{w:[s,'screen',...S()]}],'min-w':[{'min-w':[s,'screen','none',...S()]}],'max-w':[{'max-w':[s,'screen','none','prose',{screen:[a]},...S()]}],h:[{h:['screen','lh',...S()]}],'min-h':[{'min-h':['screen','lh','none',...S()]}],'max-h':[{'max-h':['screen','lh',...S()]}],'font-size':[{text:['base',r,fe,ie]}],'font-smoothing':['antialiased','subpixel-antialiased'],'font-style':['italic','not-italic'],'font-weight':[{font:[n,_e,se]}],'font-stretch':[{'font-stretch':['ultra-condensed','extra-condensed','condensed','semi-condensed','normal','semi-expanded','expanded','extra-expanded','ultra-expanded',X,oe]}],'font-family':[{font:[me,le,t]}],'font-features':[{'font-features':[oe]}],'fvn-normal':['normal-nums'],'fvn-ordinal':['ordinal'],'fvn-slashed-zero':['slashed-zero'],'fvn-figure':['lining-nums','oldstyle-nums'],'fvn-spacing':['proportional-nums','tabular-nums'],'fvn-fraction':['diagonal-fractions','stacked-fractions'],tracking:[{tracking:[o,he,oe]}],'line-clamp':[{'line-clamp':[W,'none',he,ae]}],leading:[{leading:[i,...y()]}],'list-image':[{'list-image':['none',he,oe]}],'list-style-position':[{list:['inside','outside']}],'list-style-type':[{list:['disc','decimal','none',he,oe]}],'text-alignment':[{text:['left','center','right','justify','start','end']}],'placeholder-color':[{placeholder:M()}],'text-color':[{text:M()}],'text-decoration':['underline','overline','line-through','no-underline'],'text-decoration-style':[{decoration:['solid','dashed','dotted','double','wavy']}],'text-decoration-thickness':[{decoration:[W,'from-font','auto',he,ie]}],'text-decoration-color':[{decoration:M()}],'underline-offset':[{'underline-offset':[W,'auto',he,oe]}],'text-transform':['uppercase','lowercase','capitalize','normal-case'],'text-overflow':['truncate','text-ellipsis','text-clip'],'text-wrap':[{text:['wrap','nowrap','balance','pretty']}],indent:[{indent:y()}],'tab-size':[{tab:[Z,he,oe]}],'vertical-align':[{align:['baseline','top','middle','bottom','text-top','text-bottom','sub','super',he,oe]}],whitespace:[{whitespace:['normal','nowrap','pre','pre-line','pre-wrap','break-spaces']}],break:[{break:['normal','words','all','keep']}],wrap:[{wrap:['break-word','anywhere','normal']}],hyphens:[{hyphens:['none','manual','auto']}],content:[{content:['none',he,oe]}],'bg-attachment':[{bg:['fixed','local','scroll']}],'bg-clip':[{'bg-clip':['border','padding','content','text']}],'bg-origin':[{'bg-origin':['border','padding','content']}],'bg-position':[{bg:A()}],'bg-repeat':[{bg:['no-repeat',{repeat:['','x','y','space','round']}]}],'bg-size':[{bg:R()}],'bg-image':[{bg:['none',{linear:[{to:['t','tr','r','br','b','bl','l','tl']},Z,he,oe],radial:['',he,oe],conic:[Z,he,oe]},ve,ue]}],'bg-color':[{bg:M()}],'gradient-from-pos':[{from:P()}],'gradient-via-pos':[{via:P()}],'gradient-to-pos':[{to:P()}],'gradient-from':[{from:M()}],'gradient-via':[{via:M()}],'gradient-to':[{to:M()}],rounded:[{rounded:O()}],'rounded-s':[{'rounded-s':O()}],'rounded-e':[{'rounded-e':O()}],'rounded-t':[{'rounded-t':O()}],'rounded-r':[{'rounded-r':O()}],'rounded-b':[{'rounded-b':O()}],'rounded-l':[{'rounded-l':O()}],'rounded-ss':[{'rounded-ss':O()}],'rounded-se':[{'rounded-se':O()}],'rounded-ee':[{'rounded-ee':O()}],'rounded-es':[{'rounded-es':O()}],'rounded-tl':[{'rounded-tl':O()}],'rounded-tr':[{'rounded-tr':O()}],'rounded-br':[{'rounded-br':O()}],'rounded-bl':[{'rounded-bl':O()}],'border-w':[{border:H()}],'border-w-x':[{'border-x':H()}],'border-w-y':[{'border-y':H()}],'border-w-s':[{'border-s':H()}],'border-w-e':[{'border-e':H()}],'border-w-bs':[{'border-bs':H()}],'border-w-be':[{'border-be':H()}],'border-w-t':[{'border-t':H()}],'border-w-r':[{'border-r':H()}],'border-w-b':[{'border-b':H()}],'border-w-l':[{'border-l':H()}],'divide-x':[{'divide-x':H()}],'divide-x-reverse':['divide-x-reverse'],'divide-y':[{'divide-y':H()}],'divide-y-reverse':['divide-y-reverse'],'border-style':[{border:['solid','dashed','dotted','double','hidden','none']}],'divide-style':[{divide:['solid','dashed','dotted','double','hidden','none']}],'border-color':[{border:M()}],'border-color-x':[{'border-x':M()}],'border-color-y':[{'border-y':M()}],'border-color-s':[{'border-s':M()}],'border-color-e':[{'border-e':M()}],'border-color-bs':[{'border-bs':M()}],'border-color-be':[{'border-be':M()}],'border-color-t':[{'border-t':M()}],'border-color-r':[{'border-r':M()}],'border-color-b':[{'border-b':M()}],'border-color-l':[{'border-l':M()}],'divide-color':[{divide:M()}],'outline-style':[{outline:['solid','dashed','dotted','double','none','hidden']}],'outline-offset':[{'outline-offset':[W,he,oe]}],'outline-w':[{outline:['',W,fe,ie]}],'outline-color':[{outline:M()}],shadow:[{shadow:['','none',u,be,de]}],'shadow-color':[{shadow:M()}],'inset-shadow':[{'inset-shadow':['none',d,be,de]}],'inset-shadow-color':[{'inset-shadow':M()}],'ring-w':[{ring:H()}],'ring-w-inset':['ring-inset'],'ring-color':[{ring:M()}],'ring-offset-w':[{'ring-offset':[W,ie]}],'ring-offset-color':[{'ring-offset':M()}],'inset-ring-w':[{'inset-ring':H()}],'inset-ring-color':[{'inset-ring':M()}],'text-shadow':[{'text-shadow':['none',h,be,de]}],'text-shadow-color':[{'text-shadow':M()}],opacity:[{opacity:[W,he,oe]}],'mix-blend':[{'mix-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-darker','plus-lighter']}],'bg-blend':[{'bg-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity']}],'mask-clip':[{'mask-clip':['border','padding','content','fill','stroke','view']},'mask-no-clip'],'mask-composite':[{mask:['add','subtract','intersect','exclude']}],'mask-image-linear-pos':[{'mask-linear':[W]}],'mask-image-linear-from-pos':[{'mask-linear-from':B()}],'mask-image-linear-to-pos':[{'mask-linear-to':B()}],'mask-image-linear-from-color':[{'mask-linear-from':M()}],'mask-image-linear-to-color':[{'mask-linear-to':M()}],'mask-image-t-from-pos':[{'mask-t-from':B()}],'mask-image-t-to-pos':[{'mask-t-to':B()}],'mask-image-t-from-color':[{'mask-t-from':M()}],'mask-image-t-to-color':[{'mask-t-to':M()}],'mask-image-r-from-pos':[{'mask-r-from':B()}],'mask-image-r-to-pos':[{'mask-r-to':B()}],'mask-image-r-from-color':[{'mask-r-from':M()}],'mask-image-r-to-color':[{'mask-r-to':M()}],'mask-image-b-from-pos':[{'mask-b-from':B()}],'mask-image-b-to-pos':[{'mask-b-to':B()}],'mask-image-b-from-color':[{'mask-b-from':M()}],'mask-image-b-to-color':[{'mask-b-to':M()}],'mask-image-l-from-pos':[{'mask-l-from':B()}],'mask-image-l-to-pos':[{'mask-l-to':B()}],'mask-image-l-from-color':[{'mask-l-from':M()}],'mask-image-l-to-color':[{'mask-l-to':M()}],'mask-image-x-from-pos':[{'mask-x-from':B()}],'mask-image-x-to-pos':[{'mask-x-to':B()}],'mask-image-x-from-color':[{'mask-x-from':M()}],'mask-image-x-to-color':[{'mask-x-to':M()}],'mask-image-y-from-pos':[{'mask-y-from':B()}],'mask-image-y-to-pos':[{'mask-y-to':B()}],'mask-image-y-from-color':[{'mask-y-from':M()}],'mask-image-y-to-color':[{'mask-y-to':M()}],'mask-image-radial':[{'mask-radial':[he,oe]}],'mask-image-radial-from-pos':[{'mask-radial-from':B()}],'mask-image-radial-to-pos':[{'mask-radial-to':B()}],'mask-image-radial-from-color':[{'mask-radial-from':M()}],'mask-image-radial-to-color':[{'mask-radial-to':M()}],'mask-image-radial-shape':[{'mask-radial':['circle','ellipse']}],'mask-image-radial-size':[{'mask-radial':[{closest:['side','corner'],farthest:['side','corner']}]}],'mask-image-radial-pos':[{'mask-radial-at':['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom']}],'mask-image-conic-pos':[{'mask-conic':[W]}],'mask-image-conic-from-pos':[{'mask-conic-from':B()}],'mask-image-conic-to-pos':[{'mask-conic-to':B()}],'mask-image-conic-from-color':[{'mask-conic-from':M()}],'mask-image-conic-to-color':[{'mask-conic-to':M()}],'mask-mode':[{mask:['alpha','luminance','match']}],'mask-origin':[{'mask-origin':['border','padding','content','fill','stroke','view']}],'mask-position':[{mask:A()}],'mask-repeat':[{mask:['no-repeat',{repeat:['','x','y','space','round']}]}],'mask-size':[{mask:R()}],'mask-type':[{'mask-type':['alpha','luminance']}],'mask-image':[{mask:['none',he,oe]}],filter:[{filter:['','none',he,oe]}],blur:[{blur:D()}],brightness:[{brightness:[W,he,oe]}],contrast:[{contrast:[W,he,oe]}],'drop-shadow':[{'drop-shadow':['','none',f,be,de]}],'drop-shadow-color':[{'drop-shadow':M()}],grayscale:[{grayscale:['',W,he,oe]}],'hue-rotate':[{'hue-rotate':[W,he,oe]}],invert:[{invert:['',W,he,oe]}],saturate:[{saturate:[W,he,oe]}],sepia:[{sepia:['',W,he,oe]}],'backdrop-filter':[{'backdrop-filter':['','none',he,oe]}],'backdrop-blur':[{'backdrop-blur':D()}],'backdrop-brightness':[{'backdrop-brightness':[W,he,oe]}],'backdrop-contrast':[{'backdrop-contrast':[W,he,oe]}],'backdrop-grayscale':[{'backdrop-grayscale':['',W,he,oe]}],'backdrop-hue-rotate':[{'backdrop-hue-rotate':[W,he,oe]}],'backdrop-invert':[{'backdrop-invert':['',W,he,oe]}],'backdrop-opacity':[{'backdrop-opacity':[W,he,oe]}],'backdrop-saturate':[{'backdrop-saturate':[W,he,oe]}],'backdrop-sepia':[{'backdrop-sepia':['',W,he,oe]}],'border-collapse':[{border:['collapse','separate']}],'border-spacing':[{'border-spacing':y()}],'border-spacing-x':[{'border-spacing-x':y()}],'border-spacing-y':[{'border-spacing-y':y()}],'table-layout':[{table:['auto','fixed']}],caption:[{caption:['top','bottom']}],transition:[{transition:['','all','colors','opacity','shadow','transform','none',he,oe]}],'transition-behavior':[{transition:['normal','discrete']}],duration:[{duration:[W,'initial',he,oe]}],ease:[{ease:['linear','initial',v,he,oe]}],delay:[{delay:[W,he,oe]}],animate:[{animate:['none',b,he,oe]}],backface:[{backface:['hidden','visible']}],perspective:[{perspective:[p,he,oe]}],'perspective-origin':[{'perspective-origin':_()}],rotate:[{rotate:F()}],'rotate-x':[{'rotate-x':F()}],'rotate-y':[{'rotate-y':F()}],'rotate-z':[{'rotate-z':F()}],scale:[{scale:z()}],'scale-x':[{'scale-x':z()}],'scale-y':[{'scale-y':z()}],'scale-z':[{'scale-z':z()}],'scale-3d':['scale-3d'],skew:[{skew:U()}],'skew-x':[{'skew-x':U()}],'skew-y':[{'skew-y':U()}],transform:[{transform:[he,oe,'','none','gpu','cpu']}],'transform-origin':[{origin:_()}],'transform-style':[{transform:['3d','flat']}],translate:[{translate:j()}],'translate-x':[{'translate-x':j()}],'translate-y':[{'translate-y':j()}],'translate-z':[{'translate-z':j()}],'translate-none':['translate-none'],zoom:[{zoom:[Z,he,oe]}],accent:[{accent:M()}],appearance:[{appearance:['none','auto']}],'caret-color':[{caret:M()}],'color-scheme':[{scheme:['normal','dark','light','light-dark','only-dark','only-light']}],cursor:[{cursor:['auto','default','pointer','wait','text','move','help','not-allowed','none','context-menu','progress','cell','crosshair','vertical-text','alias','copy','no-drop','grab','grabbing','all-scroll','col-resize','row-resize','n-resize','e-resize','s-resize','w-resize','ne-resize','nw-resize','se-resize','sw-resize','ew-resize','ns-resize','nesw-resize','nwse-resize','zoom-in','zoom-out',he,oe]}],'field-sizing':[{'field-sizing':['fixed','content']}],'pointer-events':[{'pointer-events':['auto','none']}],resize:[{resize:['none','','y','x']}],'scroll-behavior':[{scroll:['auto','smooth']}],'scrollbar-thumb-color':[{'scrollbar-thumb':M()}],'scrollbar-track-color':[{'scrollbar-track':M()}],'scrollbar-gutter':[{'scrollbar-gutter':['auto','stable','both']}],'scrollbar-w':[{scrollbar:['auto','thin','none']}],'scroll-m':[{'scroll-m':y()}],'scroll-mx':[{'scroll-mx':y()}],'scroll-my':[{'scroll-my':y()}],'scroll-ms':[{'scroll-ms':y()}],'scroll-me':[{'scroll-me':y()}],'scroll-mbs':[{'scroll-mbs':y()}],'scroll-mbe':[{'scroll-mbe':y()}],'scroll-mt':[{'scroll-mt':y()}],'scroll-mr':[{'scroll-mr':y()}],'scroll-mb':[{'scroll-mb':y()}],'scroll-ml':[{'scroll-ml':y()}],'scroll-p':[{'scroll-p':y()}],'scroll-px':[{'scroll-px':y()}],'scroll-py':[{'scroll-py':y()}],'scroll-ps':[{'scroll-ps':y()}],'scroll-pe':[{'scroll-pe':y()}],'scroll-pbs':[{'scroll-pbs':y()}],'scroll-pbe':[{'scroll-pbe':y()}],'scroll-pt':[{'scroll-pt':y()}],'scroll-pr':[{'scroll-pr':y()}],'scroll-pb':[{'scroll-pb':y()}],'scroll-pl':[{'scroll-pl':y()}],'snap-align':[{snap:['start','end','center','align-none']}],'snap-stop':[{snap:['normal','always']}],'snap-type':[{snap:['none','x','y','both']}],'snap-strictness':[{snap:['mandatory','proximity']}],touch:[{touch:['auto','none','manipulation']}],'touch-x':[{'touch-pan':['x','left','right']}],'touch-y':[{'touch-pan':['y','up','down']}],'touch-pz':['touch-pinch-zoom'],select:[{select:['none','text','all','auto']}],'will-change':[{'will-change':['auto','scroll','contents','transform',he,oe]}],fill:[{fill:['none',...M()]}],'stroke-w':[{stroke:[W,fe,ie,ae]}],stroke:[{stroke:['none',...M()]}],'forced-color-adjust':[{'forced-color-adjust':['auto','none']}]},conflictingClassGroups:{'container-named':['container-type'],overflow:['overflow-x','overflow-y'],overscroll:['overscroll-x','overscroll-y'],inset:['inset-x','inset-y','inset-bs','inset-be','start','end','top','right','bottom','left'],'inset-x':['right','left'],'inset-y':['top','bottom'],flex:['basis','grow','shrink'],gap:['gap-x','gap-y'],p:['px','py','ps','pe','pbs','pbe','pt','pr','pb','pl'],px:['pr','pl'],py:['pt','pb'],m:['mx','my','ms','me','mbs','mbe','mt','mr','mb','ml'],mx:['mr','ml'],my:['mt','mb'],size:['w','h'],'font-size':['leading'],'fvn-normal':['fvn-ordinal','fvn-slashed-zero','fvn-figure','fvn-spacing','fvn-fraction'],'fvn-ordinal':['fvn-normal'],'fvn-slashed-zero':['fvn-normal'],'fvn-figure':['fvn-normal'],'fvn-spacing':['fvn-normal'],'fvn-fraction':['fvn-normal'],'line-clamp':['display','overflow'],rounded:['rounded-s','rounded-e','rounded-t','rounded-r','rounded-b','rounded-l','rounded-ss','rounded-se','rounded-ee','rounded-es','rounded-tl','rounded-tr','rounded-br','rounded-bl'],'rounded-s':['rounded-ss','rounded-es'],'rounded-e':['rounded-se','rounded-ee'],'rounded-t':['rounded-tl','rounded-tr'],'rounded-r':['rounded-tr','rounded-br'],'rounded-b':['rounded-br','rounded-bl'],'rounded-l':['rounded-tl','rounded-bl'],'border-spacing':['border-spacing-x','border-spacing-y'],'border-w':['border-w-x','border-w-y','border-w-s','border-w-e','border-w-bs','border-w-be','border-w-t','border-w-r','border-w-b','border-w-l'],'border-w-x':['border-w-r','border-w-l'],'border-w-y':['border-w-t','border-w-b'],'border-color':['border-color-x','border-color-y','border-color-s','border-color-e','border-color-bs','border-color-be','border-color-t','border-color-r','border-color-b','border-color-l'],'border-color-x':['border-color-r','border-color-l'],'border-color-y':['border-color-t','border-color-b'],translate:['translate-x','translate-y','translate-none'],'translate-none':['translate','translate-x','translate-y','translate-z'],'scroll-m':['scroll-mx','scroll-my','scroll-ms','scroll-me','scroll-mbs','scroll-mbe','scroll-mt','scroll-mr','scroll-mb','scroll-ml'],'scroll-mx':['scroll-mr','scroll-ml'],'scroll-my':['scroll-mt','scroll-mb'],'scroll-p':['scroll-px','scroll-py','scroll-ps','scroll-pe','scroll-pbs','scroll-pbe','scroll-pt','scroll-pr','scroll-pb','scroll-pl'],'scroll-px':['scroll-pr','scroll-pl'],'scroll-py':['scroll-pt','scroll-pb'],touch:['touch-x','touch-y','touch-pz'],'touch-x':['touch'],'touch-y':['touch'],'touch-pz':['touch']},conflictingClassGroupModifiers:{'font-size':['leading']},postfixLookupClassGroups:['container-type'],orderSensitiveModifiers:['*','**','after','backdrop','before','details-content','file','first-letter','first-line','marker','placeholder','selection']}}));function Ae(e){return 60*e*1e3}const Re={key:'session_id',type:'sessionStorage',expiration:(Pe=1,60*Pe*60*1e3)};var Pe;const Oe={key:'dialog_expiration',type:'sessionStorage'},He=Ae(10),Le={key:'cart',type:'sessionStorage',expiration:Ae(5)},Be={key:'debug_mode',type:'sessionStorage'},De={key:'tutorials_seen',type:'localStorage'};function Fe(e){return''.concat('rflows_').concat(e)}const ze={set:(e,t)=>{let{key:r,type:n,expiration:o}=e;const i={value:t,expiration:o?Date.now()+o:void 0};Ue(n).setItem(Fe(r),JSON.stringify(i))},get:e=>{let{key:t,type:r}=e;const n=Ue(r),o=n.getItem(Fe(t));if(!o)return null;try{const e=JSON.parse(o);return e.expiration&&Date.now()>e.expiration?(n.removeItem(Fe(t)),null):e.value}catch(e){return null}},has:e=>{let{key:t,type:r}=e;return null!==ze.get({key:t,type:r})},remove:e=>{let{key:t,type:r}=e;Ue(r).removeItem(Fe(t))}};function Ue(e){if('sessionStorage'===e)return sessionStorage;if('localStorage'===e)return localStorage;throw new Error('Invalid storage type: '.concat(e))}const je='[RF]';var Ge;(e=>{e[e.DEBUG=0]='DEBUG',e[e.INFO=1]='INFO',e[e.WARN=2]='WARN',e[e.ERROR=3]='ERROR'})(Ge||(Ge={}));class qe{constructor(){}static getInstance(){return qe.instance||(qe.instance=new qe),qe.instance}checkDebugMode(){const e=ze.get(Be);return Boolean(e)}log(e,t){if(this.checkDebugMode()){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];switch(e){case Ge.DEBUG:console.debug(''.concat(je,' ').concat(t),...n);break;case Ge.INFO:console.info(''.concat(je,' ').concat(t),...n);break;case Ge.WARN:console.warn(''.concat(je,' ').concat(t),...n);break;case Ge.ERROR:console.error(''.concat(je,' ').concat(t),...n)}}}debug(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.DEBUG,e,...r)}info(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.INFO,e,...r)}warn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.WARN,e,...r)}error(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.ERROR,e,...r)}}const Ve=qe.getInstance();function We(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Me(u(t))}function Ze(e){return null==e}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ze(e)||''===e?t:('number'!=typeof e&&(e=parseFloat(e)),isNaN(e)||'Infinity'===e.toString()?t:e)}function Ke(e){const t=null==e?void 0:e.selectedItems,r=null==e?void 0:e.selectedActions;return t&&Array.isArray(t)?t.map((e=>{var t;const n=null==r||null===(t=r.find((t=>t.itemId===e.id)))||void 0===t?void 0:t.action,o=(null!=(i=n)?i:'refund').toUpperCase();var i;return{id:e.id,lineItemId:e.lineItemId,action:o}})):(Ve.warn('No selected items found in cache data'),[])}function Ye(e,t){const r=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.startsWith('http://')||e.startsWith('https://')?e:t?'https://'.concat(e):'http://'.concat(e)}(window.location.host);!function(e,t){if(Ze(e)||''===e)throw new Error(t)}(r,'Shopify root URL is not defined');const n=new URLSearchParams;Object.entries(t).forEach((e=>{let[t,r]=e;n.set(t,r)}));let o=r;return e.startsWith('/')||(o+='/'),o+=e,n.toString()&&(o+='?'.concat(n.toString())),o}async function Je(e,t){var r;const o=Ye(e,{rf:'true'}),i=await fetch(o,n({method:null!==(r=null==t?void 0:t.method)&&void 0!==r?r:null!=t&&t.body?'POST':'GET',cache:'no-cache',headers:{'Content-Type':'application/json'}},t));if(!i.ok){const e=await i.json();if(e&&'message'in e)throw e;throw new Error('Unknown error')}return await i.json()}function Qe(){ze.remove(Le),ze.remove(Re),ze.remove(Oe),ze.remove(Be)}function $e(e){if(!e)return'';const t=e.toString().split('/').pop();return t||''}function et(e){return r='ProductVariant','string'==typeof(t=e)&&t.startsWith('gid://')?t:'gid://shopify/'.concat(r,'/').concat(t);var t,r}function tt(e,t){return e.filter((e=>e.type===t)).flatMap((e=>e.products.filter((e=>null!==e)).map((e=>Number($e(e.shopifyProductId))))))}function rt(e,t){const r=tt(t,'NO_EXCHANGE_TO'),o=[],i=[],{items:a,itemCount:s}=(e.items||[]).reduce(((e,t)=>{if(r.includes(t.product_id))return o.push(t),e;if(t.has_components)return i.push(t),e;const a=e.items.find((e=>e.variant_id===t.variant_id));return e.itemCount+=t.quantity||0,a?(a.quantity+=t.quantity,e):(e.items.push(n({},t)),e)}),{items:[],itemCount:0});return{cart:n(n({},e),{},{items:a,item_count:s}),excludedItems:o,bundleItems:i}}function nt(e){let{cart1:t,cart2:r,rules:n}=e;const{cart:o}=rt(t,n),{cart:i}=rt(r,n),a=o.items||[],s=i.items||[];if(a.length!==s.length)return!1;const l=new Map(a.map((e=>[e.variant_id,e.quantity])));for(const e of s)if(l.get(e.variant_id)!==e.quantity)return!1;return!0}async function ot(){let e,t=!1,r=!1;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){const r=ze.get(Le);r&&(t=!0,e=r)}if(!e){if(l()){const t=s();t&&(Ve.info('[CartProvider] Using provider.getCart()'),e=await t.getCart(),r=!0)}e||(Ve.info('[CartProvider] No provider, falling back to /cart.js'),e=await Je('/cart.js')),lt(e)}const n=t?'Storage':r?'Provider':'API';return Ve.info('Fetched cart ('.concat(n,')'),e),e}async function it(){if(l()){const e=s();if(null!=e&&e.clearCart){Ve.info('[CartProvider] Using provider.clearCart()');const t=await e.clearCart();return lt(t),t}Ve.info('[CartProvider] Provider exists but clearCart not implemented, falling back to /cart/clear.js')}const e=await Je('/cart/clear.js',{method:'POST'});return lt(e),e}async function at(e){let{variantId:t,quantity:r,isRetry:n=!1}=e;try{if(Ze(r))throw new Error('Quantity cannot be null or undefined');if(l()){const e=s();if(e){const o=(await ot(!n)).items.find((e=>e.variant_id===t));if(!o)return Ve.warn('[CartProvider] Item with variantId '.concat(t,' not found in cart')),n?(await st(t,r),ot(!1)):(Ve.info('[CartProvider] Retrying with fresh cart data...'),at({variantId:t,quantity:r,isRetry:!0}));const i=o.line_id,a=o.merchandise_id||et(t);if(!i)return Ve.warn('[CartProvider] No line_id on cart item'),n?(Ve.warn('[CartProvider] Still no line_id after retry, falling back to /cart/change.js'),await st(t,r),ot(!1)):(Ve.info('[CartProvider] Retrying with fresh cart data...'),at({variantId:t,quantity:r,isRetry:!0}));if(0===r&&e.removeItems)Ve.info('[CartProvider] Using provider.removeItems(['.concat(i,'])')),await e.removeItems([i]);else if(e.updateItems){const t={id:i,merchandiseId:a,quantity:r};Ve.info('[CartProvider] Using provider.updateItems()',t),await e.updateItems([t])}else Ve.info('[CartProvider] Provider exists but removeItems/updateItems not implemented, falling back to /cart/change.js'),await st(t,r);return ot(!1)}}return await st(t,r),ot(!1)}catch(e){const t=e;if(Ve.error('Error updating cart item quantity:',t),'status'in t)throw new Error(t.status.toString());throw new Error(t.message)}}async function st(e,t){var r;if(0===t)return void await Je('/cart/change.js',{body:JSON.stringify({id:String(e),quantity:t})});const n=(await ot()).items||[],o=n.filter((t=>t.variant_id===e)).reduce(((e,t)=>e+(t.quantity||0)),0),i=n.findIndex((t=>t.variant_id===e)),a=t-o,s=Xe(null===(r=n[i])||void 0===r?void 0:r.quantity)+a;if(-1!==i){const e={line:String(i+1),quantity:s};await Je('/cart/change.js',{body:JSON.stringify(e)})}}function lt(e){e?ze.set(Le,e):ze.remove(Le)}function ct(e){return'edges'in e?e.edges.map((e=>e.node)):e.map((e=>'node'in e?e.node:e))}function ut(e){const t=parseFloat(e);return Number.isNaN(t)?0:Math.round(100*t)}function dt(e){var t,r,n;if(null!==(t=e.merchandise.image)&&void 0!==t&&t.url)return e.merchandise.image.url;if(null!==(r=e.merchandise.product.featuredImage)&&void 0!==r&&r.url)return e.merchandise.product.featuredImage.url;const o=ct(null!==(n=e.merchandise.product.images)&&void 0!==n?n:[]);return o.length>0?o[0].url:''}function ht(e){var t;const{merchandise:r,quantity:n}=e,{product:o}=r,i=Number($e(r.id)),a=Number($e(o.id));let s,l;null!==(t=e.cost)&&void 0!==t&&t.amountPerQuantity?(s=ut(e.cost.amountPerQuantity.amount),l=e.cost.totalAmount?ut(e.cost.totalAmount.amount):s*n):r.price?(s=ut(r.price.amount),l=s*n):(s=0,l=0);const c=r.title,u=o.title,d=!c||'Default Title'===c||'Default'===c;return{variant_id:i,quantity:n,title:d?u:''.concat(u,' - ').concat(c),price:s,product_id:a,product_title:u,handle:o.handle,image:dt(e),grams:0,line_price:l,final_price:s,final_line_price:l,line_id:e.id,merchandise_id:r.id,variant_title:d?void 0:c,sku:r.sku,vendor:o.vendor,product_type:o.productType,requires_shipping:r.requiresShipping}}function ft(e){return function(e){if(!('lines'in e))return!1;const t=e.lines;return Array.isArray(t)||null!=t&&'object'==typeof t&&'edges'in t}(e)?function(e){var t,r;const n=ct(e.lines).map(ht),o=null!==(t=e.totalQuantity)&&void 0!==t?t:n.reduce(((e,t)=>e+t.quantity),0);return{items:n,item_count:o,token:e.id,note:null!==(r=e.note)&&void 0!==r?r:''}}(e):e}function mt(e){const t=ft(e);return lt(t),t}const pt={widgetViewState:null,config:null,returnContext:null,toastContext:null,cartProvider:null,isInitialized:!1,eventListeners:new Map};function gt(){pt.widgetViewState=null,pt.returnContext=null,pt.toastContext=null,pt.config=null,pt.cartProvider=null,pt.isInitialized=!1,pt.eventListeners.clear()}function vt(e){const t=e?function(e){return{async getCart(){const t=await e.getCart();return t?mt(t):void 0},clearCart:async()=>mt(await e.clearCart()),addItems:async t=>mt(await e.addItems(t)),updateItems:async t=>mt(await e.updateItems(t)),removeItems:async t=>mt(await e.removeItems(t))}}(e):null;if(pt.cartProvider=t,'undefined'!=typeof window){const e=window.Returnflows;e&&(e._cartProvider=t)}e?console.info('[RF] Cart provider registered.'):console.info('[RF] Cart provider cleared.')}function bt(){return pt.isInitialized}function _t(e){pt.widgetViewState?pt.widgetViewState.set(e):console.warn('[RF] Widget not initialized. Call init() first.')}async function yt(e){var t,r,n,o,i;const a=null===(t=pt.returnContext)||void 0===t?void 0:t.cartState,s=null===(r=pt.returnContext)||void 0===r?void 0:r.orderState,l=null===(n=pt.returnContext)||void 0===n?void 0:n.calculationState;if(!a||null==s||!s.value.data)return console.warn('[RF] Widget not initialized or order not loaded.'),{cart:null,calculation:null,hasChanged:!1};const c=s.value.data,u=ft(e),d=c.orderData.productRules||[],h=null===(o=a.value.data)||void 0===o?void 0:o.original;var f;if(h&&nt({cart1:h,cart2:u,rules:d}))return{cart:h,calculation:null!==(f=null==l?void 0:l.value.data)&&void 0!==f?f:null,hasChanged:!1};const{cart:m}=rt(u,d);a.set({data:{original:u,transformed:m},pending:!1,error:null}),lt(u),wt('cart:updated',u);const p=await(null==l?void 0:l.query({cart:m,orderId:c.orderData.id,lineItems:Ke(null===(i=pt.config)||void 0===i?void 0:i.data.formData)}));return{cart:m,calculation:null!=p?p:null,hasChanged:!0}}function Ct(e,t){var r;null===(r=pt.eventListeners.get(e))||void 0===r||r.delete(t)}function wt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const o=pt.eventListeners.get(e);o&&o.forEach((t=>{try{t(...r)}catch(t){console.error('[RF] Error in '.concat(e,' event handler:'),t)}}))}const kt=['onReady','onError','cartProvider'];const Nt=new class{constructor(){Object.defineProperty(this,'_initPromise',{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,'_cartProvider',{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,'version',{enumerable:!0,configurable:!0,writable:!0,value:'1.0.6'}),Object.defineProperty(this,'drawer',{enumerable:!0,configurable:!0,writable:!0,value:{open:()=>{this._ensureInitialized(),_t(i.Open)},close:()=>{this._ensureInitialized(),_t(i.Collapsed)},toggle:()=>{this._ensureInitialized();var e,t;_t((null!==(e=null===(t=pt.widgetViewState)||void 0===t?void 0:t.value)&&void 0!==e?e:null)===i.Open?i.Collapsed:i.Open)},isOpen:()=>{return this._ensureInitialized(),(null===(e=pt.widgetViewState)||void 0===e?void 0:e.value)===i.Open;var e}}}),Object.defineProperty(this,'data',{enumerable:!0,configurable:!0,writable:!0,value:{getCart:()=>function(){var e;const t=null===(e=pt.returnContext)||void 0===e?void 0:e.cartState;return null!=t&&t.value.data?t.value.data.original:null}(),getCalculation:()=>{return null!==(e=null===(t=pt.returnContext)||void 0===t?void 0:t.calculationState.value.data)&&void 0!==e?e:null;var e,t},getOrder:()=>function(){var e;const t=null===(e=pt.returnContext)||void 0===e||null===(e=e.orderState.value.data)||void 0===e?void 0:e.orderData;return t?{id:t.id,orderId:t.orderId,orderName:t.orderName,instantExchange:t.instantExchange,freeExchangeLabel:t.freeExchangeLabel,productsToExchange:t.productsToExchange,totalPrice:t.totalPrice}:null}(),isLoading:()=>{return null===(e=null===(t=pt.returnContext)||void 0===t?void 0:t.isPending)||void 0===e||e;var e,t}}}),Object.defineProperty(this,'cart',{enumerable:!0,configurable:!0,writable:!0,value:{setCart:async e=>(this._ensureInitialized(),yt(e)),refetch:async()=>{this._ensureInitialized(),await async function(){var e,t;const r=null===(e=pt.returnContext)||void 0===e?void 0:e.cartState,n=null===(t=pt.returnContext)||void 0===t?void 0:t.orderState;if(r&&null!=n&&n.value.data){if(pt.cartProvider)try{const e=await pt.cartProvider.getCart();if(!e)return;return yt(e)}catch(e){return console.error('[RF] Cart provider getCart failed:',e),void wt('error',e instanceof Error?e:new Error(String(e)))}await r.query(n.value.data)}else console.warn('[RF] Widget not initialized or order not loaded.')}()},clear:async()=>{this._ensureInitialized(),await async function(){var e;if(pt.isInitialized){if(null!==(e=pt.cartProvider)&&void 0!==e&&e.clearCart)try{return yt(await pt.cartProvider.clearCart())}catch(e){return console.error('[RF] Cart provider clearCart failed:',e),void wt('error',e instanceof Error?e:new Error(String(e)))}document.dispatchEvent(new CustomEvent('RF_CART_AND_CALCULATION_REFETCH'))}else console.warn('[RF] Widget not initialized. Call init() first.')}()}}}),Object.defineProperty(this,'toast',{enumerable:!0,configurable:!0,writable:!0,value:{show:e=>(this._ensureInitialized(),function(e){return pt.toastContext?pt.toastContext.add({message:e.message,tone:e.tone,duration:e.duration,onClose:e.onClose}):(console.warn('[RF] Widget not initialized. Call init() first.'),'')}(e)),dismiss:e=>{this._ensureInitialized(),function(e){pt.toastContext?pt.toastContext.remove(e):console.warn('[RF] Widget not initialized.')}(e)},clear:()=>{this._ensureInitialized(),pt.toastContext?pt.toastContext.clear():console.warn('[RF] Widget not initialized.')}}})}async init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._initPromise?(console.warn('[RF] Already initializing. Returning existing promise.'),this._initPromise):bt()?void console.warn('[RF] Already initialized. Call destroy() first to reinitialize.'):(this._initPromise=new Promise(((t,r)=>{(async()=>{try{var i;const{onReady:r,onError:s,cartProvider:l}=e,c=o(e,kt);l&&vt(l);const{default:u}=await Promise.resolve().then((()=>Vr)),{default:d}=await Promise.resolve().then((()=>Fc)),{h}=await Promise.resolve().then((()=>mr)),f=await u((e=>h(d,e)),n({networkInterceptionMethod:'none'},c));if(!f.success){var a;if('CONTAINER_EXISTS'===f.reason)return await this._waitForBridge(),null===(a=e.onReady)||void 0===a||a.call(e),t();if('MISSING_SESSION_ID'===f.reason)return this._initPromise=null,t();throw new Error('Widget initialization failed: '.concat(f.message,' (').concat(f.reason,')'))}await this._waitForBridge(),null===(i=e.onReady)||void 0===i||i.call(e),t()}catch(t){var s;const n=t instanceof Error?t:new Error(String(t));null===(s=e.onError)||void 0===s||s.call(e,n),vt(null),this._initPromise=null,r(n)}})()})),this._initPromise)}destroy(){if(vt(null),gt(),'undefined'!=typeof document){const e=document.getElementById('rf-overlay-widget');e&&e.remove()}this._initPromise=null}isInitialized(){return bt()}on(e,t){return function(e,t){pt.eventListeners.has(e)||pt.eventListeners.set(e,new Set),pt.eventListeners.get(e).add(t)}(e,t),()=>Ct(e,t)}off(e,t){Ct(e,t)}_ensureInitialized(){if(!bt())throw new Error('[RF] Widget not initialized. Call init() first.')}async _waitForBridge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;const t=Date.now();for(;!bt();){if(Date.now()-t>e)throw new Error('[RF] Initialization timeout');await new Promise((e=>setTimeout(e,50)))}}};'undefined'!=typeof window&&(window.Returnflows=Nt);var xt,Et,St,Tt,It,Mt,At,Rt,Pt,Ot,Ht,Lt,Bt={},Dt=[],Ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,zt=Array.isArray;function Ut(e,t){for(var r in t)e[r]=t[r];return e}function jt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t,r){var n,o,i,a={};for(i in t)'key'==i?n=t[i]:'ref'==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?xt.call(arguments,2):r),'function'==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return qt(e,a,n,o,null)}function qt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++St,__i:-1,__u:0};return null==o&&null!=Et.vnode&&Et.vnode(i),i}function Vt(e){return e.children}function Wt(e,t){this.props=e,this.context=t}function Zt(e,t){if(null==t)return e.__?Zt(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return'function'==typeof e.type?Zt(e):null}function Xt(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Xt(e)}}function Kt(e){(!e.__d&&(e.__d=!0)&&Tt.push(e)&&!Yt.__r++||It!=Et.debounceRendering)&&((It=Et.debounceRendering)||Mt)(Yt)}function Yt(){for(var e,t,r,n,o,i,a,s=1;Tt.length;)Tt.length>s&&Tt.sort(At),e=Tt.shift(),s=Tt.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=Ut({},n)).__v=n.__v+1,Et.vnode&&Et.vnode(r),or(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??Zt(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ir(i,r,a),r.__e!=o&&Xt(r)));Yt.__r=0}function Jt(e,t,r,n,o,i,a,s,l,c,u){var d,h,f,m,p,g,v=n&&n.__k||Dt,b=t.length;for(l=function(e,t,r,n,o){var i,a,s,l,c,u=r.length,d=u,h=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&'boolean'!=typeof a&&'function'!=typeof a?(l=i+h,(a=e.__k[i]='string'==typeof a||'number'==typeof a||'bigint'==typeof a||a.constructor==String?qt(null,a,null,null,null):zt(a)?qt(Vt,{children:a},null,null,null):null==a.constructor&&a.__b>0?qt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=er(a,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(o>u?h--:o<u&&h++),'function'!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(s=r[i])&&!(2&s.__u)&&(s.__e==n&&(n=Zt(s)),cr(s,s));return n}(r,t,v,l,b),d=0;d<b;d++)null!=(f=r.__k[d])&&(h=-1==f.__i?Bt:v[f.__i]||Bt,f.__i=d,g=or(e,f,h,o,i,a,s,l,c,u),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&lr(h.ref,null,f),u.push(f.ref,f.__c||m,f)),null==p&&null!=m&&(p=m),4&f.__u||h.__k===f.__k?l=Qt(f,l,e):'function'==typeof f.type&&void 0!==g?l=g:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=p,l}function Qt(e,t,r){var n,o;if('function'==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Qt(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Zt(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function $t(e,t){return t=t||[],null==e||'boolean'==typeof e||(zt(e)?e.some((e=>{$t(e,t)})):t.push(e)),t}function er(e,t,r,n){var o,i,a=e.key,s=e.type,l=t[r];if(null===l&&null==e.key||l&&a==l.key&&s==l.type&&!(2&l.__u))return r;if(n>(null==l||2&l.__u?0:1))for(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s==l.type)return i;i++}}return-1}function tr(e,t,r){'-'==t[0]?e.setProperty(t,r??''):e[t]=null==r?'':'number'!=typeof r||Ft.test(t)?r:r+'px'}function rr(e,t,r,n,o){var i,a;e:if('style'==t)if('string'==typeof r)e.style.cssText=r;else{if('string'==typeof n&&(e.style.cssText=n=''),n)for(t in n)r&&t in r||tr(e.style,t,'');if(r)for(t in r)n&&r[t]==n[t]||tr(e.style,t,r[t])}else if('o'==t[0]&&'n'==t[1])i=t!=(t=t.replace(Rt,'$1')),a=t.toLowerCase(),t=a in e||'onFocusOut'==t||'onFocusIn'==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Pt,e.addEventListener(t,i?Ht:Ot,i)):e.removeEventListener(t,i?Ht:Ot,i);else{if('http://www.w3.org/2000/svg'==o)t=t.replace(/xlink(H|:h)/,'h').replace(/sName$/,'s');else if('width'!=t&&'height'!=t&&'href'!=t&&'list'!=t&&'form'!=t&&'tabIndex'!=t&&'download'!=t&&'rowSpan'!=t&&'colSpan'!=t&&'role'!=t&&'popover'!=t&&t in e)try{e[t]=r??'';break e}catch(e){}'function'==typeof r||(null==r||!1===r&&'-'!=t[4]?e.removeAttribute(t):e.setAttribute(t,'popover'==t&&1==r?'':r))}}function nr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Pt++;else if(t.t<r.u)return;return r(Et.event?Et.event(t):t)}}}function or(e,t,r,n,o,i,a,s,l,c){var u,d,h,f,m,p,g,v,b,_,y,C,w,k,N,x,E,S=t.type;if(null!=t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=Et.__b)&&u(t);e:if('function'==typeof S)try{if(v=t.props,b='prototype'in S&&S.prototype.render,_=(u=S.contextType)&&n[u.__c],y=u?_?_.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:(b?t.__c=d=new S(v,y):(t.__c=d=new Wt(v,y),d.constructor=S,d.render=ur),_&&_.sub(d),d.props=v,d.state||(d.state={}),d.context=y,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ut({},d.__s)),Ut(d.__s,S.getDerivedStateFromProps(v,d.__s))),f=d.props,m=d.state,d.__v=t,h)b&&null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==S.getDerivedStateFromProps&&v!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,y),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,y)||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((e=>{e&&(e.__=t)})),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,y),b&&null!=d.componentDidUpdate&&d.__h.push((()=>{d.componentDidUpdate(f,m,p)}))}if(d.context=y,d.props=v,d.__P=e,d.__e=!1,w=Et.__r,k=0,b){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(n=Ut(Ut({},n),d.getChildContext())),b&&!h&&null!=d.getSnapshotBeforeUpdate&&(p=d.getSnapshotBeforeUpdate(f,m)),x=u,null!=u&&u.type===Vt&&null==u.key&&(x=ar(u.props.children)),s=Jt(e,zt(x)?x:[x],t,r,n,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=i)if(e.then){for(t.__u|=l?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(E=i.length;E--;)jt(i[E]);else t.__e=r.__e,t.__k=r.__k;Et.__e(e,t,r)}else null==i&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=sr(r.__e,t,r,n,o,i,a,l,c);return(u=Et.diffed)&&u(t),128&t.__u?void 0:s}function ir(e,t,r){for(var n=0;n<r.length;n++)lr(r[n],r[++n],r[++n]);Et.__c&&Et.__c(t,e),e.some((t=>{try{e=t.__h,t.__h=[],e.some((e=>{e.call(t)}))}catch(e){Et.__e(e,t.__v)}}))}function ar(e){return'object'!=typeof e||null==e||e.__b&&e.__b>0?e:zt(e)?e.map(ar):Ut({},e)}function sr(e,t,r,n,o,i,a,s,l){var c,u,d,h,f,m,p,g=r.props,v=t.props,b=t.type;if('svg'==b?o='http://www.w3.org/2000/svg':'math'==b?o='http://www.w3.org/1998/Math/MathML':o||(o='http://www.w3.org/1999/xhtml'),null!=i)for(c=0;c<i.length;c++)if((f=i[c])&&'setAttribute'in f==!!b&&(b?f.localName==b:3==f.nodeType)){e=f,i[c]=null;break}if(null==e){if(null==b)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),s&&(Et.__m&&Et.__m(t,i),s=!1),i=null}if(null==b)g===v||s&&e.data==v||(e.data=v);else{if(i=i&&xt.call(e.childNodes),g=r.props||Bt,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)if(f=g[c],'children'==c);else if('dangerouslySetInnerHTML'==c)d=f;else if(!(c in v)){if('value'==c&&'defaultValue'in v||'checked'==c&&'defaultChecked'in v)continue;rr(e,c,null,f,o)}for(c in v)f=v[c],'children'==c?h=f:'dangerouslySetInnerHTML'==c?u=f:'value'==c?m=f:'checked'==c?p=f:s&&'function'!=typeof f||g[c]===f||rr(e,c,f,g[c],o);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=''),Jt('template'==t.type?e.content:e,zt(h)?h:[h],t,r,n,'foreignObject'==b?'http://www.w3.org/1999/xhtml':o,i,a,i?i[0]:r.__k&&Zt(r,0),s,l),null!=i)for(c=i.length;c--;)jt(i[c]);s||(c='value','progress'==b&&null==m?e.removeAttribute('value'):null!=m&&(m!==e[c]||'progress'==b&&!m||'option'==b&&m!=g[c])&&rr(e,c,m,g[c],o),c='checked',null!=p&&p!=e[c]&&rr(e,c,p,g[c],o))}return e}function lr(e,t,r){try{if('function'==typeof e){var n='function'==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){Et.__e(e,r)}}function cr(e,t,r){var n,o;if(Et.unmount&&Et.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||lr(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){Et.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&cr(n[o],t,r||'function'!=typeof e.type);r||jt(e.__e),e.__c=e.__=e.__e=void 0}function ur(e,t,r){return this.constructor(e,r)}function dr(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),Et.__&&Et.__(e,t),o=(n='function'==typeof r)?null:t.__k,i=[],a=[],or(t,e=t.__k=Gt(Vt,null,[e]),o||Bt,Bt,t.namespaceURI,o?null:t.firstChild?xt.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,a),ir(i,e,a)}function hr(e,t,r){var n,o,i,a,s=Ut({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)'key'==i?n=t[i]:'ref'==i?o=t[i]:s[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?xt.call(arguments,2):r),qt(e.type,s,n||e.key,o||e.ref,null)}function fr(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=()=>n,this.componentWillUnmount=()=>{r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach((e=>{e.__e=!0,Kt(e)}))},this.sub=e=>{r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=()=>{r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c='__cC'+Lt++,t.__=e,t.Provider=t.__l=(t.Consumer=(e,t)=>e.children(t)).contextType=t,t}xt=Dt.slice,Et={__e:(e,t,r,n)=>{for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},St=0,Wt.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Ut({},this.state),'function'==typeof e&&(e=e(Ut({},r),this.props)),e&&Ut(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),Kt(this))},Wt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kt(this))},Wt.prototype.render=Vt,Tt=[],Mt='function'==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,At=(e,t)=>e.__v.__b-t.__v.__b,Yt.__r=0,Rt=/(PointerCapture)$|Capture$/i,Pt=0,Ot=nr(!1),Ht=nr(!0),Lt=0;var mr=Object.freeze({__proto__:null,Component:Wt,Fragment:Vt,cloneElement:hr,createContext:fr,createElement:Gt,h:Gt,get options(){return Et},render:dr,toChildArray:$t});function pr(e,t){let r;try{var n;r=null===(n=process.env)||void 0===n?void 0:n[e]}catch(t){var o;r=null===(o=import.meta.env)||void 0===o?void 0:o[e]}return null!=r||(r=t),r}const gr=pr('VITE_API_URL','http://localhost:8080'),vr=pr('VITE_PLATFORM_URL','http://localhost:3000'),br=pr('VITE_WIDGET_BASE_URL','http://localhost:3334'),_r='rflowsId',yr=['lineItems','slug','locale','currency'],Cr='root',wr='rf-overlay-widget',kr='rf-settings-json';var Nr,xr;(e=>{e.FetchInterception='RF_FETCH_INTERCEPTION',e.XHRInterception='RF_XHR_INTERCEPTION',e.DrawerStateChange='RF_DRAWER_STATE_CHANGE',e.WidgetInitialization='RF_WIDGET_INITIALIZATION'})(Nr||(Nr={})),(e=>{e.DrawerOpen='RF_DRAWER_OPEN',e.DrawerClose='RF_DRAWER_CLOSE',e.DrawerToggle='RF_DRAWER_TOGGLE',e.CalculationRefetch='RF_CALCULATION_REFETCH',e.CartRefetch='RF_CART_REFETCH',e.CartAndCalculationRefetch='RF_CART_AND_CALCULATION_REFETCH',e.DrawerOpenAndRefetch='RF_DRAWER_OPEN_AND_REFETCH'})(xr||(xr={}));const Er={subscribe:function(e,t){const r=e=>t(e);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},publish:function(e){const t=new CustomEvent(e,{detail:arguments.length<=1?void 0:arguments[1]});document.dispatchEvent(t)},unsubscribe:function(e,t){document.removeEventListener(e,t)}},Sr='en';const Tr=['baseUrl','Request','fetch','querySerializer','bodySerializer','pathSerializer','headers','requestInitExt'],Ir=['baseUrl','fetch','Request','headers','params','parseAs','querySerializer','bodySerializer','pathSerializer','body','middleware'],Mr=/\{[^{}]+\}/g;function Ar(e,t,r){if(null==t)return'';if('object'==typeof t)throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');return''.concat(e,'=').concat(!0===(null==r?void 0:r.allowReserved)?t:encodeURIComponent(t))}function Rr(e,t,r){if(!t||'object'!=typeof t)return'';const n=[],o={simple:',',label:'.',matrix:';'}[r.style]||'&';if('deepObject'!==r.style&&!1===r.explode){for(const e in t)n.push(e,!0===r.allowReserved?t[e]:encodeURIComponent(t[e]));const o=n.join(',');switch(r.style){case'form':return''.concat(e,'=').concat(o);case'label':return'.'.concat(o);case'matrix':return';'.concat(e,'=').concat(o);default:return o}}for(const o in t){const i='deepObject'===r.style?''.concat(e,'[').concat(o,']'):o;n.push(Ar(i,t[o],r))}const i=n.join(o);return'label'===r.style||'matrix'===r.style?''.concat(o).concat(i):i}function Pr(e,t,r){if(!Array.isArray(t))return'';if(!1===r.explode){const n={form:',',spaceDelimited:'%20',pipeDelimited:'|'}[r.style]||',',o=(!0===r.allowReserved?t:t.map((e=>encodeURIComponent(e)))).join(n);switch(r.style){case'simple':return o;case'label':return'.'.concat(o);case'matrix':return';'.concat(e,'=').concat(o);default:return''.concat(e,'=').concat(o)}}const n={simple:',',label:'.',matrix:';'}[r.style]||'&',o=[];for(const n of t)'simple'===r.style||'label'===r.style?o.push(!0===r.allowReserved?n:encodeURIComponent(n)):o.push(Ar(e,n,r));return'label'===r.style||'matrix'===r.style?''.concat(n).concat(o.join(n)):o.join(n)}function Or(e){return function(t){const r=[];if(t&&'object'==typeof t)for(const o in t){const i=t[o];if(null!=i)if(Array.isArray(i)){if(0===i.length)continue;r.push(Pr(o,i,n(n({style:'form',explode:!0},null==e?void 0:e.array),{},{allowReserved:(null==e?void 0:e.allowReserved)||!1})))}else'object'!=typeof i?r.push(Ar(o,i,e)):r.push(Rr(o,i,n(n({style:'deepObject',explode:!0},null==e?void 0:e.object),{},{allowReserved:(null==e?void 0:e.allowReserved)||!1})))}return r.join('&')}}function Hr(e,t){let r=e;for(const o of null!==(n=e.match(Mr))&&void 0!==n?n:[]){var n;let e=o.substring(1,o.length-1),i=!1,a='simple';if(e.endsWith('*')&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith('.')?(a='label',e=e.substring(1)):e.startsWith(';')&&(a='matrix',e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const s=t[e];Array.isArray(s)?r=r.replace(o,Pr(e,s,{style:a,explode:i})):r='object'!=typeof s?'matrix'!==a?r.replace(o,'label'===a?'.'.concat(encodeURIComponent(s)):encodeURIComponent(s)):r.replace(o,';'.concat(Ar(e,s))):r.replace(o,Rr(e,s,{style:a,explode:i}))}return r}function Lr(e,t){if(e instanceof FormData)return e;if(t){var r,n;if('application/x-www-form-urlencoded'===(t.get instanceof Function?null!==(r=t.get('Content-Type'))&&void 0!==r?r:t.get('content-type'):null!==(n=t['Content-Type'])&&void 0!==n?n:t['content-type']))return new URLSearchParams(e).toString()}return JSON.stringify(e)}function Br(){const e=new Headers;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const t of r){if(!t||'object'!=typeof t)continue;const r=t instanceof Headers?t.entries():Object.entries(t);for(const[t,n]of r)if(null===n)e.delete(t);else if(Array.isArray(n))for(const r of n)e.append(t,r);else void 0!==n&&e.set(t,n)}return e}function Dr(e){return e.endsWith('/')?e.substring(0,e.length-1):e}const Fr=function(e){let t=n({},e),{baseUrl:r='',Request:i=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:s,bodySerializer:l,pathSerializer:c,headers:u,requestInitExt:d}=t,h=o(t,Tr);var f;d='object'==typeof process&&Number.parseInt(null===(f=process)||void 0===f||null===(f=f.versions)||void 0===f||null===(f=f.node)||void 0===f?void 0:f.substring(0,2))>=18&&process.versions.undici?d:void 0,r=Dr(r);const m=[];async function p(e,t){var f;const p=t||{},{baseUrl:g,fetch:v=a,Request:b=i,headers:_,params:y={},parseAs:C='json',querySerializer:w,bodySerializer:k=(null!=l?l:Lr),pathSerializer:N,body:x,middleware:E=[]}=p,S=o(p,Ir);let T=r;var I;g&&(T=null!==(I=Dr(g))&&void 0!==I?I:r);let M='function'==typeof s?s:Or(s);w&&(M='function'==typeof w?w:Or(n(n({},'object'==typeof s?s:{}),w)));const A=N||c||Hr,R=void 0===x?void 0:k(x,Br(u,_,y.header)),P=Br(void 0===R||R instanceof FormData?{}:{'Content-Type':'application/json'},u,_,y.header),O=[...m,...E],H=n(n(n({redirect:'follow'},h),S),{},{body:R,headers:P});let L,B,D,F=new b(function(e,t){var r,n;let o=''.concat(t.baseUrl).concat(e);null!==(r=t.params)&&void 0!==r&&r.path&&(o=t.pathSerializer(o,t.params.path));let i=t.querySerializer(null!==(n=t.params.query)&&void 0!==n?n:{});i.startsWith('?')&&(i=i.substring(1));i&&(o+='?'.concat(i));return o}(e,{baseUrl:T,params:y,querySerializer:M,pathSerializer:A}),H);for(const e in S)e in F||(F[e]=S[e]);if(O.length){L=Math.random().toString(36).slice(2,11),B=Object.freeze({baseUrl:T,fetch:v,parseAs:C,querySerializer:M,bodySerializer:k,pathSerializer:A});for(const t of O)if(t&&'object'==typeof t&&'function'==typeof t.onRequest){const r=await t.onRequest({request:F,schemaPath:e,params:y,options:B,id:L});if(r){if(!(r instanceof b)){if(r instanceof Response){D=r;break}throw new Error('onRequest: must return new Request() or Response() when modifying the request')}F=r}}}if(!D){try{D=await v(F,d)}catch(t){let r=t;if(O.length)for(let t=O.length-1;t>=0;t--){const n=O[t];if(n&&'object'==typeof n&&'function'==typeof n.onError){const t=await n.onError({request:F,error:r,schemaPath:e,params:y,options:B,id:L});if(t){if(t instanceof Response){r=void 0,D=t;break}if(t instanceof Error){r=t;continue}throw new Error('onError: must return new Response() or instance of Error')}}}if(r)throw r}if(O.length)for(let t=O.length-1;t>=0;t--){const r=O[t];if(r&&'object'==typeof r&&'function'==typeof r.onResponse){const t=await r.onResponse({request:F,response:D,schemaPath:e,params:y,options:B,id:L});if(t){if(!(t instanceof Response))throw new Error('onResponse: must return new Response() when modifying the response');D=t}}}}const z=D.headers.get('Content-Length');if(204===D.status||'HEAD'===F.method||'0'===z&&(null===(f=D.headers.get('Transfer-Encoding'))||void 0===f||!f.includes('chunked')))return D.ok?{data:void 0,response:D}:{error:void 0,response:D};if(D.ok){const e=async()=>{if('stream'===C)return D.body;if('json'===C&&!z){const e=await D.text();return e?JSON.parse(e):void 0}return await D[C]()};return{data:await e(),response:D}}let U=await D.text();try{U=JSON.parse(U)}catch(e){}return{error:U,response:D}}return{request:(e,t,r)=>p(t,n(n({},r),{},{method:e.toUpperCase()})),GET:(e,t)=>p(e,n(n({},t),{},{method:'GET'})),PUT:(e,t)=>p(e,n(n({},t),{},{method:'PUT'})),POST:(e,t)=>p(e,n(n({},t),{},{method:'POST'})),DELETE:(e,t)=>p(e,n(n({},t),{},{method:'DELETE'})),OPTIONS:(e,t)=>p(e,n(n({},t),{},{method:'OPTIONS'})),HEAD:(e,t)=>p(e,n(n({},t),{},{method:'HEAD'})),PATCH:(e,t)=>p(e,n(n({},t),{},{method:'PATCH'})),TRACE:(e,t)=>p(e,n(n({},t),{},{method:'TRACE'})),use(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(const e of t)if(e){if('object'!=typeof e||!('onRequest'in e||'onResponse'in e||'onError'in e))throw new Error('Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`');m.push(e)}},eject(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(const e of t){const t=m.indexOf(e);-1!==t&&m.splice(t,1)}}}}({baseUrl:gr,headers:{'Content-Type':'application/json'}});async function zr(e){let{locale:t,slug:r,isFirstLoad:o=!1}=e,i=function(e){const t=document.getElementById(kr);if(!t)return null;try{var r;const o=JSON.parse(t.innerHTML),i=null===(r=o.translations)||void 0===r||null===(r=r.messages)||void 0===r?void 0:r[e],a=i?{messages:i}:void 0;return n(n({},o),{},{translations:a})}catch(e){return Ve.error('Failed to parse widget settings JSON',e),null}}(t);if(!i){const e=await async function(e){let{locale:t,slug:r,shouldUseCachedResult:n=!0}=e;if(!r)return null;try{var o;const e=await Fr.GET('/shop-overlay/config',{params:{query:{locale:t,slug:r}},clientStorage:{key:'remote_settings_'.concat(r,'_').concat(t),type:'sessionStorage',shouldUseCachedResult:n}}),a=null===(o=e.data)||void 0===o?void 0:o.responseObject;var i;return e.error||!a?(Ve.error('Error response from config endpoint:',null!==(i=e.error)&&void 0!==i?i:'No data returned'),null):a}catch(e){return Ve.error('Error fetching remote settings for locale '.concat(t,':'),e),null}}({locale:t,slug:r,shouldUseCachedResult:!o});e?(Ve.info('Using remote settings:',e),i=e):Ve.warn('No settings found in script or remotely')}return i}function Ur(e){const t={};return Object.entries(e).forEach((e=>{let[r,n]=e;if(Ze(n))return n;let o=n;if('true'===n)o=!0;else if('false'===n)o=!1;else if(function(e){return'number'==typeof e||!isNaN(Number(e))&&isFinite(Number(e))}(n))o=Number(n);else if('null'===n)o=null;else if('undefined'===n)o=void 0;else try{o=JSON.parse(n)}catch(e){}t[r]=o})),t}async function jr(e){var t,r;const o=(i=e,'undefined'!=typeof DOMStringMap&&i instanceof DOMStringMap||'[object DOMStringMap]'===Object.prototype.toString.call(i)?Ur(e):e);var i;const a=function(){var e;const t=null!==(e=window.__rf_original_search)&&void 0!==e?e:window.location.search;return new URLSearchParams(t)}(),s=a.get(_r),l=Boolean(s),c=s||ze.get(Re);if(!c){const e='Session ID is missing from URL and storage';return Ve.warn(e),{success:!1,reason:'MISSING_SESSION_ID',message:e}}const u=function(e){let{options:t,searchParams:r}=e;const n='development'===t.env||'test'===t.env,o='true'===r.get('debug'),i=ze.get(Be);return(n||o)&&ze.set(Be,!0),Boolean(n||o||i)}({options:o,searchParams:a}),d=await async function(e){if(!e)return null;try{var t,r;const n=await Fr.GET('/userflow/session/{id}',{params:{path:{id:e}}});return Ve.info('Session cache retrieved successfully:',n),null!==(t=null===(r=n.data)||void 0===r?void 0:r.responseObject)&&void 0!==t?t:null}catch(e){return Ve.error('Error getting session cache:',e),null}}(c);if(!d){const e='No session cache found for id: '.concat(c);return Ve.warn(e),{success:!1,reason:'SESSION_NOT_FOUND',message:e}}const h=d.data.currency||o.defaultCurrency||'DKK',f=[d.data.locale,o.defaultLocale,Sr].filter((e=>void 0!==e)),{locale:m,messages:p}=await async function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.length>0?t:[Sr];for(const e of n)try{const t=await fetch(''.concat(br,'/messages/').concat(e,'.json'));if(t.ok)return{messages:await t.json(),locale:e}}catch(t){Ve.error('Error loading messages for locale '.concat(e,':'),t)}throw new Error('No messages found for any of the locales: '.concat(n.join(', ')))}(...f),g=await zr({locale:m,slug:d.data.slug,isFirstLoad:l}),v=function(e){try{return'object'!=typeof e||null===e?e:structuredClone(e)}catch(t){Ve.warn('structuredClone failed, falling back to JSON clone');try{return JSON.parse(JSON.stringify(e))}catch(e){throw Ve.error('JSON clone also failed (circular reference or non-serializable value)'),e}}}(null==g||null===(t=g.translations)||void 0===t?void 0:t.messages);v&&(Ve.info('Merging custom translations into messages...'),Object.entries(v).forEach((e=>{let[t,r]=e;try{!function(e,t,r){const n=t.split('.'),o=n.pop();if(!o)throw new Error('Invalid path');n.reduce(((e,r)=>{if(e&&'object'==typeof e&&r in e){const t=e[r];if(t&&'object'==typeof t)return t}throw new Error('Cannot access property \''.concat(r,'\' on path \'').concat(t,'\''))}),e)[o]=r}(p,t,r)}catch(e){Ve.warn('Skipping unknown custom translation key "'.concat(t,'"'),e)}})));return{success:!0,config:n({locale:m,currency:h,debugMode:u,isFirstLoad:l,messages:p,options:o,theme:null!==(r=null==g?void 0:g.theme)&&void 0!==r?r:null},d)}}function Gr(e){const t=Object.entries(e).filter((e=>{let[t,r]=e;return'string'==typeof r||'number'==typeof r})).map((e=>{let[t,r]=e;return'['.concat(t,'="').concat(r,'"]')})).join(''),r=document.querySelector('link'.concat(t));if(r)return Ve.warn('Link element with attributes '.concat(JSON.stringify(e),' already exists.')),r;const n=document.createElement('link');return Object.assign(n,e),document.head.appendChild(n),n}function qr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.head;if(!e)return;if(!function(e){return(e.match(/{/g)||[]).length===(e.match(/}/g)||[]).length&&![/javascript:/gi,/expression\s*\(/gi,/behavior\s*:/gi,/binding\s*:/gi,/@import.*url\s*\(\s*["']?javascript:/gi].some((t=>t.test(e)))}(e))throw new Error('Invalid CSS detected. Please check your CSS syntax and remove any dangerous patterns.');const r=document.createElement('style');return r.setAttribute('data-'.concat('rf-custom-css'),'true'),r.textContent=e,Ve.info('Injecting custom CSS...'),t.appendChild(r),r}var Vr=Object.freeze({__proto__:null,default:async function(e,t){try{const r=await jr(t);if(!r.success)return r;const n=function(){if(document.getElementById(wr))return{success:!1,reason:'CONTAINER_EXISTS',message:'Container with ID "'.concat(wr,'" already exists')};const e=document.createElement('div');e.id=wr,e.style.display='block';const t=e.attachShadow({mode:'closed'}),r=document.createElement('div');return r.className='rf-container',r.id='shadow-root',r.style.display='none',t.appendChild(r),{success:!0,value:[e,r]}}();if(!n.success)return n;const[o,i]=n.value,{config:a}=r,{options:{customCssOverlay:s,customCssPage:l}}=a,c='devStyles'in t?t.devStyles:void 0;return c?function(e,t){const r=document.createElement('style');r.textContent=t,e.appendChild(r)}(i,c):function(e){const t=document.createElement('link');t.rel='stylesheet';const r=pr('WIDGET_NAME')||'widget';t.href=''.concat(br,'/').concat(r,'.css'),t.onload=()=>{Ve.info('Stylesheet loaded successfully')},e.appendChild(t)}(i),function(){const e=document.createElement('link');e.rel='stylesheet',e.href=''.concat(br,'/variables.css'),e.onload=()=>{Ve.info('Public CSS variables loaded successfully')},e.onerror=()=>{Ve.warn('Failed to load public CSS variables')},document.head.appendChild(e)}(),new Promise(((e,t)=>{const r=Gr({rel:'preconnect',href:'https://fonts.googleapis.com'}),n=Gr({rel:'preconnect',href:'https://fonts.gstatic.com',crossOrigin:'anonymous'}),o=Gr({rel:'stylesheet',href:'https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'});o.onload=()=>{Ve.info('Font stylesheet loaded successfully'),e([r,n,o])},o.onerror=()=>{Ve.error('Failed to load font stylesheet'),t(new Error('Failed to load font stylesheet'))},document.head.appendChild(o)})),qr(l),qr(s,i),function(e,t,r){Ve.info('Injecting widget with options...',r),dr(e(r),t)}(e,i,a),document.body.appendChild(o),Er.publish(Nr.WidgetInitialization,a),{success:!0,config:a}}catch(e){const t=e instanceof Error?e.message:String(e);return Ve.error('Initialization failed',e),{success:!1,reason:'UNKNOWN_ERROR',message:t}}}}),Wr=0;function Zr(e,t,r,n,o,i){t||(t={});var a,s,l=t;if('ref'in l)for(s in l={},t)'ref'==s?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wr,__i:-1,__u:0,__source:o,__self:i};if('function'==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return Et.vnode&&Et.vnode(c),c}function Xr(e,t){const r=t&&t.cache?t.cache:tn,n=t&&t.serializer?t.serializer:$r;return(t&&t.strategy?t.strategy:Qr)(e,{cache:r,serializer:n})}function Kr(e,t,r,n){const o=null==(i=n)||'number'==typeof i||'boolean'==typeof i?n:r(n);var i;let a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function Yr(e,t,r){const n=Array.prototype.slice.call(arguments,3),o=r(n);let i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Jr(e,t,r,n,o){return r.bind(t,e,n,o)}function Qr(e,t){return Jr(e,this,1===e.length?Kr:Yr,t.cache.create(),t.serializer)}const $r=function(){return JSON.stringify(arguments)};var en=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const tn={create:function(){return new en}},rn={variadic:function(e,t){return Jr(e,this,Yr,t.cache.create(),t.serializer)},monadic:function(e,t){return Jr(e,this,Kr,t.cache.create(),t.serializer)}};let nn=class extends Error{constructor(e,t){let r=e;t&&(r+=': '+t),super(r),this.code=e,t&&(this.originalMessage=t)}};var on=(e=>(e.MISSING_MESSAGE='MISSING_MESSAGE',e.MISSING_FORMAT='MISSING_FORMAT',e.ENVIRONMENT_FALLBACK='ENVIRONMENT_FALLBACK',e.INSUFFICIENT_PATH='INSUFFICIENT_PATH',e.INVALID_MESSAGE='INVALID_MESSAGE',e.INVALID_KEY='INVALID_KEY',e.FORMATTING_ERROR='FORMATTING_ERROR',e))(on||{});function an(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function sn(e,t){return Xr(e,{cache:(r=t,{create:()=>({get:e=>r[e],set(e,t){r[e]=t}})}),strategy:rn.variadic});var r}function ln(e,t){return sn((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)}),t)}function cn(e){return{getDateTimeFormat:ln(Intl.DateTimeFormat,e.dateTime),getNumberFormat:ln(Intl.NumberFormat,e.number),getPluralRules:ln(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:ln(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:ln(Intl.ListFormat,e.list),getDisplayNames:ln(Intl.DisplayNames,e.displayNames)}}var un,dn,hn,fn,mn=0,pn=[],gn=Et,vn=gn.__b,bn=gn.__r,_n=gn.diffed,yn=gn.__c,Cn=gn.unmount,wn=gn.__;function kn(e,t){gn.__h&&gn.__h(dn,e,mn||t),mn=0;var r=dn.__H||(dn.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Nn(e){return mn=1,function(e,t,r){var n=kn(un++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ln(void 0,t),e=>{var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=dn,!dn.__f)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((e=>!!e.__c));if(o.every((e=>!e.__N)))return!i||i.call(this,e,t,r);var a=n.__c.props!==e;return o.forEach((e=>{if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),i&&i.call(this,e,t,r)||a};dn.__f=!0;var i=dn.shouldComponentUpdate,a=dn.componentWillUpdate;dn.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}a&&a.call(this,e,t,r)},dn.shouldComponentUpdate=o}return n.__N||n.__}(Ln,e)}function xn(e,t){var r=kn(un++,3);!gn.__s&&Hn(r.__H,t)&&(r.__=e,r.u=t,dn.__H.__h.push(r))}function En(e){return mn=5,Sn((()=>({current:e})),[])}function Sn(e,t){var r=kn(un++,7);return Hn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tn(e,t){return mn=8,Sn((()=>e),t)}function In(e){var t=dn.context[e.__c],r=kn(un++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(dn)),t.props.value):e.__}function Mn(){for(var e;e=pn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pn),e.__H.__h.forEach(On),e.__H.__h=[]}catch(t){e.__H.__h=[],gn.__e(t,e.__v)}}gn.__b=e=>{dn=null,vn&&vn(e)},gn.__=(e,t)=>{e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),wn&&wn(e,t)},gn.__r=e=>{bn&&bn(e),un=0;var t=(dn=e.__c).__H;t&&(hn===dn?(t.__h=[],dn.__h=[],t.__.forEach((e=>{e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(Pn),t.__h.forEach(On),t.__h=[],un=0)),hn=dn},gn.diffed=e=>{_n&&_n(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pn.push(t)&&fn===gn.requestAnimationFrame||((fn=gn.requestAnimationFrame)||Rn)(Mn)),t.__H.__.forEach((e=>{e.u&&(e.__H=e.u),e.u=void 0}))),hn=dn=null},gn.__c=(e,t)=>{t.some((e=>{try{e.__h.forEach(Pn),e.__h=e.__h.filter((e=>!e.__||On(e)))}catch(r){t.some((e=>{e.__h&&(e.__h=[])})),t=[],gn.__e(r,e.__v)}})),yn&&yn(e,t)},gn.unmount=e=>{Cn&&Cn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((e=>{try{Pn(e)}catch(e){t=e}})),r.__H=void 0,t&&gn.__e(t,r.__v))};var An='function'==typeof requestAnimationFrame;function Rn(e){var t,r=()=>{clearTimeout(n),An&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);An&&(t=requestAnimationFrame(r))}function Pn(e){var t=dn,r=e.__c;'function'==typeof r&&(e.__c=void 0,r()),dn=t}function On(e){var t=dn;e.__c=e.__(),dn=t}function Hn(e,t){return!e||e.length!==t.length||t.some(((t,r)=>t!==e[r]))}function Ln(e,t){return'function'==typeof t?t(e):t}function Bn(e,t){for(var r in e)if('__source'!==r&&!(r in t))return!0;for(var n in t)if('__source'!==n&&e[n]!==t[n])return!0;return!1}function Dn(e,t){this.props=e,this.context=t}function Fn(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:Bn(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Gt(e,t)}return n.displayName='Memo('+(e.displayName||e.name)+')',n.prototype.isReactComponent=!0,n.__f=!0,n}(Dn.prototype=new Wt).isPureReactComponent=!0,Dn.prototype.shouldComponentUpdate=function(e,t){return Bn(this.props,e)||Bn(this.state,t)};var zn=Et.__b;Et.__b=e=>{e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zn&&zn(e)};var Un=Et.__e;Et.__e=(e,t,r,n)=>{if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);Un(e,t,r,n)};var jn=Et.unmount;function Gn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((e=>{'function'==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((e=>Gn(e,t,r)))),e}function qn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((e=>qn(e,t,r))),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Vn(){this.__u=0,this.o=null,this.__b=null}function Wn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zn(){this.i=null,this.l=null}Et.unmount=e=>{var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jn&&jn(e)},(Vn.prototype=new Wt).__c=function(e,t){var r=t.__c,n=this;null==n.o&&(n.o=[]),n.o.push(r);var o=Wn(n.__v),i=!1,a=()=>{i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=()=>{if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=qn(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Vn.prototype.componentWillUnmount=function(){this.o=[]},Vn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement('div'),n=this.__v.__k[0].__c;this.__v.__k[0]=Gn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Gt(Vt,null,e.fallback);return o&&(o.__u&=-33),[Gt(Vt,null,t.__a?null:e.children),o]};var Xn=(e,t,r)=>{if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&('t'!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Kn(e){return this.getChildContext=()=>e.context,e.children}function Yn(e){var t=this,r=e.h;if(t.componentWillUnmount=()=>{dr(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:()=>!0,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}dr(Gt(Kn,{context:t.context},e.__v),t.v)}(Zn.prototype=new Wt).__a=function(e){var t=this,r=Wn(t.__v),n=t.l.get(e);return n[0]++,o=>{var i=()=>{t.props.revealOrder?(n.push(o),Xn(t,e,n)):o()};r?r(i):i()}},Zn.prototype.render=function(e){this.i=null,this.l=new Map;var t=$t(e.children);e.revealOrder&&'b'===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Zn.prototype.componentDidUpdate=Zn.prototype.componentDidMount=function(){var e=this;this.l.forEach(((t,r)=>{Xn(e,r,t)}))};var Jn='undefined'!=typeof Symbol&&Symbol.for&&Symbol.for('react.element')||60103,Qn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$n=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,eo=/[A-Z0-9]/g,to='undefined'!=typeof document,ro=e=>('undefined'!=typeof Symbol&&'symbol'==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e);Wt.prototype.isReactComponent={},['componentWillMount','componentWillReceiveProps','componentWillUpdate'].forEach((function(e){Object.defineProperty(Wt.prototype,e,{configurable:!0,get:function(){return this['UNSAFE_'+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var no=Et.event;function oo(){}function io(){return this.cancelBubble}function ao(){return this.defaultPrevented}Et.event=e=>(no&&(e=no(e)),e.persist=oo,e.isPropagationStopped=io,e.isDefaultPrevented=ao,e.nativeEvent=e);var so={enumerable:!1,configurable:!0,get:function(){return this.class}},lo=Et.vnode;Et.vnode=e=>{'string'==typeof e.type&&(e=>{var t=e.props,r=e.type,n={},o=-1===r.indexOf('-');for(var i in t){var a=t[i];if(!('value'===i&&'defaultValue'in t&&null==a||to&&'children'===i&&'noscript'===r||'class'===i||'className'===i)){var s=i.toLowerCase();'defaultValue'===i&&'value'in t&&null==t.value?i='value':'download'===i&&!0===a?a='':'translate'===s&&'no'===a?a=!1:'o'===s[0]&&'n'===s[1]?'ondoubleclick'===s?i='ondblclick':'onchange'!==s||'input'!==r&&'textarea'!==r||ro(t.type)?'onfocus'===s?i='onfocusin':'onblur'===s?i='onfocusout':$n.test(i)&&(i=s):s=i='oninput':o&&Qn.test(i)?i=i.replace(eo,'-$&').toLowerCase():null===a&&(a=void 0),'oninput'===s&&n[i=s]&&(i='oninputCapture'),n[i]=a}}'select'==r&&n.multiple&&Array.isArray(n.value)&&(n.value=$t(t.children).forEach((e=>{e.props.selected=-1!=n.value.indexOf(e.props.value)}))),'select'==r&&null!=n.defaultValue&&(n.value=$t(t.children).forEach((e=>{e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,'className',so)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n})(e),e.$$typeof=Jn,lo&&lo(e)};var co=Et.__r;Et.__r=e=>{co&&co(e),e.__c};var uo=Et.diffed;function ho(e){return!!e&&e.$$typeof===Jn}function fo(e){return ho(e)?hr.apply(null,arguments):e}Et.diffed=e=>{uo&&uo(e);var t=e.props,r=e.__e;null!=r&&'textarea'===e.type&&'value'in t&&t.value!==r.value&&(r.value=null==t.value?'':t.value)};const mo=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function po(e){const t={};return e.replace(mo,(e=>{const r=e.length;switch(e[0]){case'G':t.era=4===r?'long':5===r?'narrow':'short';break;case'y':t.year=2===r?'2-digit':'numeric';break;case'Y':case'u':case'U':case'r':throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');case'q':case'Q':throw new RangeError('`q/Q` (quarter) patterns are not supported');case'M':case'L':t.month=['numeric','2-digit','short','long','narrow'][r-1];break;case'w':case'W':throw new RangeError('`w/W` (week) patterns are not supported');case'd':t.day=['numeric','2-digit'][r-1];break;case'D':case'F':case'g':throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');case'E':t.weekday=4===r?'long':5===r?'narrow':'short';break;case'e':if(r<4)throw new RangeError('`e..eee` (weekday) patterns are not supported');t.weekday=['short','long','narrow','short'][r-4];break;case'c':if(r<4)throw new RangeError('`c..ccc` (weekday) patterns are not supported');t.weekday=['short','long','narrow','short'][r-4];break;case'a':t.hour12=!0;break;case'b':case'B':throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');case'h':t.hourCycle='h12',t.hour=['numeric','2-digit'][r-1];break;case'H':t.hourCycle='h23',t.hour=['numeric','2-digit'][r-1];break;case'K':t.hourCycle='h11',t.hour=['numeric','2-digit'][r-1];break;case'k':t.hourCycle='h24',t.hour=['numeric','2-digit'][r-1];break;case'j':case'J':case'C':throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');case'm':t.minute=['numeric','2-digit'][r-1];break;case's':t.second=['numeric','2-digit'][r-1];break;case'S':case'A':throw new RangeError('`S/A` (second) patterns are not supported, use `s` instead');case'z':t.timeZoneName=r<4?'short':'long';break;case'Z':case'O':case'v':case'V':case'X':case'x':throw new RangeError('`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead')}return''})),t}const go=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;const vo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bo=/^(@+)?(\+|#+)?[rs]?$/g,_o=/(\*)(0+)|(#+)(0+)|(0+)/g,yo=/^(0+)$/;function Co(e){const t={};return'r'===e[e.length-1]?t.roundingPriority='morePrecision':'s'===e[e.length-1]&&(t.roundingPriority='lessPrecision'),e.replace(bo,((e,r,n)=>('string'!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):'+'===n?t.minimumSignificantDigits=r.length:'#'===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+('string'==typeof n?n.length:0)),''))),t}function wo(e){switch(e){case'sign-auto':return{signDisplay:'auto'};case'sign-accounting':case'()':return{currencySign:'accounting'};case'sign-always':case'+!':return{signDisplay:'always'};case'sign-accounting-always':case'()!':return{signDisplay:'always',currencySign:'accounting'};case'sign-except-zero':case'+?':return{signDisplay:'exceptZero'};case'sign-accounting-except-zero':case'()?':return{signDisplay:'exceptZero',currencySign:'accounting'};case'sign-never':case'+_':return{signDisplay:'never'}}}function ko(e){let t;if('E'===e[0]&&'E'===e[1]?(t={notation:'engineering'},e=e.slice(2)):'E'===e[0]&&(t={notation:'scientific'},e=e.slice(1)),t){const r=e.slice(0,2);if('+!'===r?(t.signDisplay='always',e=e.slice(2)):'+?'===r&&(t.signDisplay='exceptZero',e=e.slice(2)),!yo.test(e))throw new Error('Malformed concise eng/scientific notation');t.minimumIntegerDigits=e.length}return t}function No(e){const t=wo(e);return t||{}}function xo(e){let t={};for(const r of e){switch(r.stem){case'percent':case'%':t.style='percent';continue;case'%x100':t.style='percent',t.scale=100;continue;case'currency':t.style='currency',t.currency=r.options[0];continue;case'group-off':case',_':t.useGrouping=!1;continue;case'precision-integer':case'.':t.maximumFractionDigits=0;continue;case'measure-unit':case'unit':t.style='unit',t.unit=r.options[0].replace(/^(.*?)-/,'');continue;case'compact-short':case'K':t.notation='compact',t.compactDisplay='short';continue;case'compact-long':case'KK':t.notation='compact',t.compactDisplay='long';continue;case'scientific':t=n(n({},t),{},{notation:'scientific'},r.options.reduce(((e,t)=>n(n({},e),No(t))),{}));continue;case'engineering':t=n(n({},t),{},{notation:'engineering'},r.options.reduce(((e,t)=>n(n({},e),No(t))),{}));continue;case'notation-simple':t.notation='standard';continue;case'unit-width-narrow':t.currencyDisplay='narrowSymbol',t.unitDisplay='narrow';continue;case'unit-width-short':t.currencyDisplay='code',t.unitDisplay='short';continue;case'unit-width-full-name':t.currencyDisplay='name',t.unitDisplay='long';continue;case'unit-width-iso-code':t.currencyDisplay='symbol';continue;case'scale':t.scale=parseFloat(r.options[0]);continue;case'rounding-mode-floor':t.roundingMode='floor';continue;case'rounding-mode-ceiling':t.roundingMode='ceil';continue;case'rounding-mode-down':t.roundingMode='trunc';continue;case'rounding-mode-up':t.roundingMode='expand';continue;case'rounding-mode-half-even':t.roundingMode='halfEven';continue;case'rounding-mode-half-down':t.roundingMode='halfTrunc';continue;case'rounding-mode-half-up':t.roundingMode='halfExpand';continue;case'integer-width':if(r.options.length>1)throw new RangeError('integer-width stems only accept a single optional option');r.options[0].replace(_o,((e,r,n,o,i,a)=>{if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error('We currently do not support maximum integer digits');if(a)throw new Error('We currently do not support exact integer digits')}return''}));continue}if(yo.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(vo.test(r.stem)){if(r.options.length>1)throw new RangeError('Fraction-precision stems only accept a single optional option');r.stem.replace(vo,((e,r,n,o,i,a)=>('*'===n?t.minimumFractionDigits=r.length:o&&'#'===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),'')));const e=r.options[0];'w'===e?t=n(n({},t),{},{trailingZeroDisplay:'stripIfInteger'}):e&&(t=n(n({},t),Co(e)));continue}if(bo.test(r.stem)){t=n(n({},t),Co(r.stem));continue}const e=wo(r.stem);e&&(t=n(n({},t),e));const o=ko(r.stem);o&&(t=n(n({},t),o))}return t}let Eo=(e=>(e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]='EXPECT_ARGUMENT_CLOSING_BRACE',e[e.EMPTY_ARGUMENT=2]='EMPTY_ARGUMENT',e[e.MALFORMED_ARGUMENT=3]='MALFORMED_ARGUMENT',e[e.EXPECT_ARGUMENT_TYPE=4]='EXPECT_ARGUMENT_TYPE',e[e.INVALID_ARGUMENT_TYPE=5]='INVALID_ARGUMENT_TYPE',e[e.EXPECT_ARGUMENT_STYLE=6]='EXPECT_ARGUMENT_STYLE',e[e.INVALID_NUMBER_SKELETON=7]='INVALID_NUMBER_SKELETON',e[e.INVALID_DATE_TIME_SKELETON=8]='INVALID_DATE_TIME_SKELETON',e[e.EXPECT_NUMBER_SKELETON=9]='EXPECT_NUMBER_SKELETON',e[e.EXPECT_DATE_TIME_SKELETON=10]='EXPECT_DATE_TIME_SKELETON',e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]='UNCLOSED_QUOTE_IN_ARGUMENT_STYLE',e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]='EXPECT_SELECT_ARGUMENT_OPTIONS',e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]='EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE',e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]='INVALID_PLURAL_ARGUMENT_OFFSET_VALUE',e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]='EXPECT_SELECT_ARGUMENT_SELECTOR',e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]='EXPECT_PLURAL_ARGUMENT_SELECTOR',e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]='EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT',e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]='EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT',e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]='INVALID_PLURAL_ARGUMENT_SELECTOR',e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]='DUPLICATE_PLURAL_ARGUMENT_SELECTOR',e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]='DUPLICATE_SELECT_ARGUMENT_SELECTOR',e[e.MISSING_OTHER_CLAUSE=22]='MISSING_OTHER_CLAUSE',e[e.INVALID_TAG=23]='INVALID_TAG',e[e.INVALID_TAG_NAME=25]='INVALID_TAG_NAME',e[e.UNMATCHED_CLOSING_TAG=26]='UNMATCHED_CLOSING_TAG',e[e.UNCLOSED_TAG=27]='UNCLOSED_TAG',e))({}),So=(e=>(e[e.literal=0]='literal',e[e.argument=1]='argument',e[e.number=2]='number',e[e.date=3]='date',e[e.time=4]='time',e[e.select=5]='select',e[e.plural=6]='plural',e[e.pound=7]='pound',e[e.tag=8]='tag',e))({}),To=(e=>(e[e.number=0]='number',e[e.dateTime=1]='dateTime',e))({});function Io(e){return e.type===So.literal}function Mo(e){return e.type===So.argument}function Ao(e){return e.type===So.number}function Ro(e){return e.type===So.date}function Po(e){return e.type===So.time}function Oo(e){return e.type===So.select}function Ho(e){return e.type===So.plural}function Lo(e){return e.type===So.pound}function Bo(e){return e.type===So.tag}function Do(e){return!(!e||'object'!=typeof e||e.type!==To.number)}function Fo(e){return!(!e||'object'!=typeof e||e.type!==To.dateTime)}const zo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Uo={'001':['H','h'],419:['h','H','hB','hb'],AC:['H','h','hb','hB'],AD:['H','hB'],AE:['h','hB','hb','H'],AF:['H','hb','hB','h'],AG:['h','hb','H','hB'],AI:['H','h','hb','hB'],AL:['h','H','hB'],AM:['H','hB'],AO:['H','hB'],AR:['h','H','hB','hb'],AS:['h','H'],AT:['H','hB'],AU:['h','hb','H','hB'],AW:['H','hB'],AX:['H'],AZ:['H','hB','h'],BA:['H','hB','h'],BB:['h','hb','H','hB'],BD:['h','hB','H'],BE:['H','hB'],BF:['H','hB'],BG:['H','hB','h'],BH:['h','hB','hb','H'],BI:['H','h'],BJ:['H','hB'],BL:['H','hB'],BM:['h','hb','H','hB'],BN:['hb','hB','h','H'],BO:['h','H','hB','hb'],BQ:['H'],BR:['H','hB'],BS:['h','hb','H','hB'],BT:['h','H'],BW:['H','h','hb','hB'],BY:['H','h'],BZ:['H','h','hb','hB'],CA:['h','hb','H','hB'],CC:['H','h','hb','hB'],CD:['hB','H'],CF:['H','h','hB'],CG:['H','hB'],CH:['H','hB','h'],CI:['H','hB'],CK:['H','h','hb','hB'],CL:['h','H','hB','hb'],CM:['H','h','hB'],CN:['H','hB','hb','h'],CO:['h','H','hB','hb'],CP:['H'],CR:['h','H','hB','hb'],CU:['h','H','hB','hb'],CV:['H','hB'],CW:['H','hB'],CX:['H','h','hb','hB'],CY:['h','H','hb','hB'],CZ:['H'],DE:['H','hB'],DG:['H','h','hb','hB'],DJ:['h','H'],DK:['H'],DM:['h','hb','H','hB'],DO:['h','H','hB','hb'],DZ:['h','hB','hb','H'],EA:['H','h','hB','hb'],EC:['h','H','hB','hb'],EE:['H','hB'],EG:['h','hB','hb','H'],EH:['h','hB','hb','H'],ER:['h','H'],ES:['H','hB','h','hb'],ET:['hB','hb','h','H'],FI:['H'],FJ:['h','hb','H','hB'],FK:['H','h','hb','hB'],FM:['h','hb','H','hB'],FO:['H','h'],FR:['H','hB'],GA:['H','hB'],GB:['H','h','hb','hB'],GD:['h','hb','H','hB'],GE:['H','hB','h'],GF:['H','hB'],GG:['H','h','hb','hB'],GH:['h','H'],GI:['H','h','hb','hB'],GL:['H','h'],GM:['h','hb','H','hB'],GN:['H','hB'],GP:['H','hB'],GQ:['H','hB','h','hb'],GR:['h','H','hb','hB'],GS:['H','h','hb','hB'],GT:['h','H','hB','hb'],GU:['h','hb','H','hB'],GW:['H','hB'],GY:['h','hb','H','hB'],HK:['h','hB','hb','H'],HN:['h','H','hB','hb'],HR:['H','hB'],HU:['H','h'],IC:['H','h','hB','hb'],ID:['H'],IE:['H','h','hb','hB'],IL:['H','hB'],IM:['H','h','hb','hB'],IN:['h','H'],IO:['H','h','hb','hB'],IQ:['h','hB','hb','H'],IR:['hB','H'],IS:['H'],IT:['H','hB'],JE:['H','h','hb','hB'],JM:['h','hb','H','hB'],JO:['h','hB','hb','H'],JP:['H','K','h'],KE:['hB','hb','H','h'],KG:['H','h','hB','hb'],KH:['hB','h','H','hb'],KI:['h','hb','H','hB'],KM:['H','h','hB','hb'],KN:['h','hb','H','hB'],KP:['h','H','hB','hb'],KR:['h','H','hB','hb'],KW:['h','hB','hb','H'],KY:['h','hb','H','hB'],KZ:['H','hB'],LA:['H','hb','hB','h'],LB:['h','hB','hb','H'],LC:['h','hb','H','hB'],LI:['H','hB','h'],LK:['H','h','hB','hb'],LR:['h','hb','H','hB'],LS:['h','H'],LT:['H','h','hb','hB'],LU:['H','h','hB'],LV:['H','hB','hb','h'],LY:['h','hB','hb','H'],MA:['H','h','hB','hb'],MC:['H','hB'],MD:['H','hB'],ME:['H','hB','h'],MF:['H','hB'],MG:['H','h'],MH:['h','hb','H','hB'],MK:['H','h','hb','hB'],ML:['H'],MM:['hB','hb','H','h'],MN:['H','h','hb','hB'],MO:['h','hB','hb','H'],MP:['h','hb','H','hB'],MQ:['H','hB'],MR:['h','hB','hb','H'],MS:['H','h','hb','hB'],MT:['H','h'],MU:['H','h'],MV:['H','h'],MW:['h','hb','H','hB'],MX:['h','H','hB','hb'],MY:['hb','hB','h','H'],MZ:['H','hB'],NA:['h','H','hB','hb'],NC:['H','hB'],NE:['H'],NF:['H','h','hb','hB'],NG:['H','h','hb','hB'],NI:['h','H','hB','hb'],NL:['H','hB'],NO:['H','h'],NP:['H','h','hB'],NR:['H','h','hb','hB'],NU:['H','h','hb','hB'],NZ:['h','hb','H','hB'],OM:['h','hB','hb','H'],PA:['h','H','hB','hb'],PE:['h','H','hB','hb'],PF:['H','h','hB'],PG:['h','H'],PH:['h','hB','hb','H'],PK:['h','hB','H'],PL:['H','h'],PM:['H','hB'],PN:['H','h','hb','hB'],PR:['h','H','hB','hb'],PS:['h','hB','hb','H'],PT:['H','hB'],PW:['h','H'],PY:['h','H','hB','hb'],QA:['h','hB','hb','H'],RE:['H','hB'],RO:['H','hB'],RS:['H','hB','h'],RU:['H'],RW:['H','h'],SA:['h','hB','hb','H'],SB:['h','hb','H','hB'],SC:['H','h','hB'],SD:['h','hB','hb','H'],SE:['H'],SG:['h','hb','H','hB'],SH:['H','h','hb','hB'],SI:['H','hB'],SJ:['H'],SK:['H'],SL:['h','hb','H','hB'],SM:['H','h','hB'],SN:['H','h','hB'],SO:['h','H'],SR:['H','hB'],SS:['h','hb','H','hB'],ST:['H','hB'],SV:['h','H','hB','hb'],SX:['H','h','hb','hB'],SY:['h','hB','hb','H'],SZ:['h','hb','H','hB'],TA:['H','h','hb','hB'],TC:['h','hb','H','hB'],TD:['h','H','hB'],TF:['H','h','hB'],TG:['H','hB'],TH:['H','h'],TJ:['H','h'],TL:['H','hB','hb','h'],TM:['H','h'],TN:['h','hB','hb','H'],TO:['h','H'],TR:['H','hB'],TT:['h','hb','H','hB'],TW:['hB','hb','h','H'],TZ:['hB','hb','H','h'],UA:['H','hB','h'],UG:['hB','hb','H','h'],UM:['h','hb','H','hB'],US:['h','hb','H','hB'],UY:['h','H','hB','hb'],UZ:['H','hB','h'],VA:['H','h','hB'],VC:['h','hb','H','hB'],VE:['h','H','hB','hb'],VG:['h','hb','H','hB'],VI:['h','hb','H','hB'],VN:['H','h'],VU:['h','H'],WF:['H','hB'],WS:['h','H'],XK:['H','hB','h'],YE:['h','hB','hb','H'],YT:['H','hB'],ZA:['H','h','hb','hB'],ZM:['h','hb','H','hB'],ZW:['H','h'],'af-ZA':['H','h','hB','hb'],'ar-001':['h','hB','hb','H'],'ca-ES':['H','h','hB'],'en-001':['h','hb','H','hB'],'en-HK':['h','hb','H','hB'],'en-IL':['H','h','hb','hB'],'en-MY':['h','hb','H','hB'],'es-BR':['H','h','hB','hb'],'es-ES':['H','h','hB','hb'],'es-GQ':['H','h','hB','hb'],'fr-CA':['H','h','hB'],'gl-ES':['H','h','hB'],'gu-IN':['hB','hb','h','H'],'hi-IN':['hB','h','H'],'it-CH':['H','h','hB'],'it-IT':['H','h','hB'],'kn-IN':['hB','h','H'],'ku-SY':['H','hB'],'ml-IN':['hB','h','H'],'mr-IN':['hB','hb','h','H'],'pa-IN':['hB','hb','h','H'],'ta-IN':['hB','h','hb','H'],'te-IN':['hB','h','H'],'zu-ZA':['H','hB','hb','h']};function jo(e){let t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case'h24':return'k';case'h23':return'H';case'h12':return'h';case'h11':return'K';default:throw new Error('Invalid hourCycle')}const r=e.language;let n;return'root'!==r&&(n=e.maximize().region),(Uo[n||'']||Uo[r||'']||Uo[''.concat(r,'-001')]||Uo['001'])[0]}const Go=new RegExp('^'.concat(zo.source,'*')),qo=new RegExp(''.concat(zo.source,'*$'));function Vo(e,t){return{start:e,end:t}}const Wo=!!Object.fromEntries,Zo=!!String.prototype.trimStart,Xo=!!String.prototype.trimEnd,Ko=Wo?Object.fromEntries:function(e){const t={};for(const[r,n]of e)t[r]=n;return t},Yo=Zo?function(e){return e.trimStart()}:function(e){return e.replace(Go,'')},Jo=Xo?function(e){return e.trimEnd()}:function(e){return e.replace(qo,'')},Qo=new RegExp('([^\\p{White_Space}\\p{Pattern_Syntax}]*)','yu');var $o,ei=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error('parser can only be used once');return this.parseMessage(0,'',!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){const o=this.char();if(123===o){const t=this.parseArgument(e,r);if(t.err)return t;n.push(t.val)}else{if(125===o&&e>0)break;if(35!==o||'plural'!==t&&'selectordinal'!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Eo.UNMATCHED_CLOSING_TAG,Vo(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ti(this.peek()||0)){const r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{const r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}}else{const e=this.clonePosition();this.bump(),n.push({type:So.pound,location:Vo(e,this.clonePosition())})}}}return{val:n,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const n=this.parseTagName();if(this.bumpSpace(),this.bumpIf('/>'))return{val:{type:So.literal,value:'<'.concat(n,'/>'),location:Vo(r,this.clonePosition())},err:null};if(this.bumpIf('>')){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const i=o.val,a=this.clonePosition();if(this.bumpIf('</')){if(this.isEOF()||!ti(this.char()))return this.error(Eo.INVALID_TAG,Vo(a,this.clonePosition()));const e=this.clonePosition();return n!==this.parseTagName()?this.error(Eo.UNMATCHED_CLOSING_TAG,Vo(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf('>')?{val:{type:So.tag,value:n,children:i,location:Vo(r,this.clonePosition())},err:null}:this.error(Eo.INVALID_TAG,Vo(a,this.clonePosition())))}return this.error(Eo.UNCLOSED_TAG,Vo(r,this.clonePosition()))}return this.error(Eo.INVALID_TAG,Vo(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&ri(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let n='';for(;;){const r=this.tryParseQuote(t);if(r){n+=r;continue}const o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}const i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}const o=Vo(r,this.clonePosition());return{val:{type:So.literal,value:n,location:o},err:null}}tryParseLeftAngleBracket(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ti(e=this.peek()||0)||47===e)?null:(this.bump(),'<');var e}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),'\'';case 123:case 60:case 62:case 125:break;case 35:if('plural'===e||'selectordinal'===e)break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const e=this.char();if(39===e){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return 60===r||123===r||35===r&&('plural'===t||'selectordinal'===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Eo.EMPTY_ARGUMENT,Vo(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Eo.MALFORMED_ARGUMENT,Vo(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:So.argument,value:n,location:Vo(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Eo.MALFORMED_ARGUMENT,Vo(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=function(e,t){var r;return Qo.lastIndex=t,null!==(r=Qo.exec(e)[1])&&void 0!==r?r:''}(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Vo(e,this.clonePosition())}}parseArgumentOptions(e,t,r,o){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case'':return this.error(Eo.EXPECT_ARGUMENT_TYPE,Vo(i,s));case'number':case'date':case'time':{var l,c;this.bumpSpace();let e=null;if(this.bumpIf(',')){this.bumpSpace();const t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;const n=Jo(r.val);if(0===n.length)return this.error(Eo.EXPECT_ARGUMENT_STYLE,Vo(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:Vo(t,this.clonePosition())}}const t=this.tryParseArgumentClose(o);if(t.err)return t;const n=Vo(o,this.clonePosition());if(e&&e.style.startsWith('::')){let t=Yo(e.style.slice(2));if('number'===a){const o=this.parseNumberSkeletonFromString(t,e.styleLocation);return o.err?o:{val:{type:So.number,value:r,location:n,style:o.val},err:null}}{if(0===t.length)return this.error(Eo.EXPECT_DATE_TIME_SKELETON,n);let o=t;this.locale&&(o=function(e,t){let r='';for(let n=0;n<e.length;n++){const o=e.charAt(n);if('j'===o){let i=0;for(;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;let a=1+(1&i),s=i<2?1:3+(i>>1),l='a',c=jo(t);for('H'!=c&&'k'!=c||(s=0);s-- >0;)r+=l;for(;a-- >0;)r=c+r}else r+='J'===o?'H':o}return r}(t,this.locale));const i={type:To.dateTime,pattern:o,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?po(o):{}};return{val:{type:'date'===a?So.date:So.time,value:r,location:n,style:i},err:null}}}return{val:{type:'number'===a?So.number:'date'===a?So.date:So.time,value:r,location:n,style:null!==(l=null===(c=e)||void 0===c?void 0:c.style)&&void 0!==l?l:null},err:null}}case'plural':case'selectordinal':case'select':{const i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(','))return this.error(Eo.EXPECT_SELECT_ARGUMENT_OPTIONS,Vo(i,n({},i)));this.bumpSpace();let s=this.parseIdentifierIfPossible(),l=0;if('select'!==a&&'offset'===s.value){if(!this.bumpIf(':'))return this.error(Eo.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vo(this.clonePosition(),this.clonePosition()));this.bumpSpace();const e=this.tryParseDecimalInteger(Eo.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Eo.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=e.val}const c=this.tryParsePluralOrSelectOptions(e,a,t,s);if(c.err)return c;const u=this.tryParseArgumentClose(o);if(u.err)return u;const d=Vo(o,this.clonePosition());return'select'===a?{val:{type:So.select,value:r,options:Ko(c.val),location:d},err:null}:{val:{type:So.plural,value:r,options:Ko(c.val),offset:l,pluralType:'plural'===a?'cardinal':'ordinal',location:d},err:null}}default:return this.error(Eo.INVALID_ARGUMENT_TYPE,Vo(i,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil('\''))return this.error(Eo.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vo(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw new Error('Number skeleton cannot be empty');const t=e.split(go).filter((e=>e.length>0)),r=[];for(const e of t){let t=e.split('/');if(0===t.length)throw new Error('Invalid number skeleton');const[n,...o]=t;for(const e of o)if(0===e.length)throw new Error('Invalid number skeleton');r.push({stem:n,options:o})}return r}(e)}catch(e){return this.error(Eo.INVALID_NUMBER_SKELETON,t)}return{val:{type:To.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?xo(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let o=!1;const i=[],a=new Set;let{value:s,location:l}=n;for(;;){if(0===s.length){const e=this.clonePosition();if('select'===t||!this.bumpIf('='))break;{const t=this.tryParseDecimalInteger(Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR,Eo.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=Vo(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}}if(a.has(s))return this.error('select'===t?Eo.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Eo.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);'other'===s&&(o=!0),this.bumpSpace();const n=this.clonePosition();if(!this.bumpIf('{'))return this.error('select'===t?Eo.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vo(this.clonePosition(),this.clonePosition()));const c=this.parseMessage(e+1,t,r);if(c.err)return c;const u=this.tryParseArgumentClose(n);if(u.err)return u;i.push([s,{value:c.val,location:Vo(n,this.clonePosition())}]),a.add(s),this.bumpSpace(),({value:s,location:l}=this.parseIdentifierIfPossible())}return 0===i.length?this.error('select'===t?Eo.EXPECT_SELECT_ARGUMENT_SELECTOR:Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vo(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Eo.MISSING_OTHER_CLAUSE,Vo(this.clonePosition(),this.clonePosition())):{val:i,err:null}}tryParseDecimalInteger(e,t){let r=1;const n=this.clonePosition();this.bumpIf('+')||this.bumpIf('-')&&(r=-1);let o=!1,i=0;for(;!this.isEOF();){const e=this.char();if(!(e>=48&&e<=57))break;o=!0,i=10*i+(e-48),this.bump()}const a=Vo(n,this.clonePosition());return o?(i*=r,Number.isSafeInteger(i)?{val:i,err:null}:this.error(t,a)):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error('out of bound');const t=this.message.codePointAt(e);if(void 0===t)throw Error('Offset '.concat(e,' is at invalid UTF-16 code unit boundary'));return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error('targetOffset '.concat(e,' must be greater than or equal to the current offset ').concat(this.offset()));for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error('targetOffset '.concat(e,' is at invalid UTF-16 code unit boundary'));if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&ni(this.char());)this.bump()}peek(){var e;if(this.isEOF())return null;const t=this.char(),r=this.offset();return null!==(e=this.message.charCodeAt(r+(t>=65536?2:1)))&&void 0!==e?e:null}};function ti(e){return e>=97&&e<=122||e>=65&&e<=90}function ri(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ni(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function oi(e){e.forEach((e=>{if(delete e.location,Oo(e)||Ho(e))for(const t in e.options)delete e.options[t].location,oi(e.options[t].value);else Ao(e)&&Do(e.style)||(Ro(e)||Po(e))&&Fo(e.style)?delete e.style.location:Bo(e)&&oi(e.children)}))}let ii=(e=>(e.MISSING_VALUE='MISSING_VALUE',e.INVALID_VALUE='INVALID_VALUE',e.MISSING_INTL_API='MISSING_INTL_API',e))({});var ai=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return'[formatjs Error: '.concat(this.code,'] ').concat(this.message)}},si=class extends ai{constructor(e,t,r,n){super('Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ii.INVALID_VALUE,n)}},li=class extends ai{constructor(e,t,r){super('Value for "'.concat(e,'" must be of type ').concat(t),ii.INVALID_VALUE,r)}},ci=class extends ai{constructor(e,t){super('The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),ii.MISSING_VALUE,t)}};let ui=(e=>(e[e.literal=0]='literal',e[e.object=1]='object',e))({});function di(e){return'function'==typeof e}function hi(e,t,r,n,o,i,a){if(1===e.length&&Io(e[0]))return[{type:ui.literal,value:e[0].value}];const s=[];for(const l of e){if(Io(l)){s.push({type:ui.literal,value:l.value});continue}if(Lo(l)){'number'==typeof i&&s.push({type:ui.literal,value:r.getNumberFormat(t).format(i)});continue}const{value:e}=l;if(!o||!(e in o))throw new ci(e,a);let c=o[e];if(Mo(l))c&&'string'!=typeof c&&'number'!=typeof c&&'bigint'!=typeof c||(c='string'==typeof c||'number'==typeof c||'bigint'==typeof c?String(c):''),s.push({type:'string'==typeof c?ui.literal:ui.object,value:c});else if(Ro(l)){const e='string'==typeof l.style?n.date[l.style]:Fo(l.style)?l.style.parsedOptions:void 0;s.push({type:ui.literal,value:r.getDateTimeFormat(t,e).format(c)})}else if(Po(l)){const e='string'==typeof l.style?n.time[l.style]:Fo(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:ui.literal,value:r.getDateTimeFormat(t,e).format(c)})}else if(Ao(l)){const e='string'==typeof l.style?n.number[l.style]:Do(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){const t=e.scale||1;if('bigint'==typeof c){if(!Number.isInteger(t))throw new TypeError('Cannot apply fractional scale '.concat(t,' to bigint value. Scale must be an integer when formatting bigint.'));c*=BigInt(t)}else c*=t}s.push({type:ui.literal,value:r.getNumberFormat(t,e).format(c)})}else{if(Bo(l)){const{children:e,value:c}=l,u=o[c];if(!di(u))throw new li(c,'function',a);let d=u(hi(e,t,r,n,o,i).map((e=>e.value)));Array.isArray(d)||(d=[d]),s.push(...d.map((e=>({type:'string'==typeof e?ui.literal:ui.object,value:e}))))}if(Oo(l)){const e=c,i=(Object.prototype.hasOwnProperty.call(l.options,e)?l.options[e]:void 0)||l.options.other;if(!i)throw new si(l.value,c,Object.keys(l.options),a);s.push(...hi(i.value,t,r,n,o))}else if(Ho(l)){const e='='.concat(c);let i=Object.prototype.hasOwnProperty.call(l.options,e)?l.options[e]:void 0;if(!i){if(!Intl.PluralRules)throw new ai('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ii.MISSING_INTL_API,a);const e='bigint'==typeof c?Number(c):c,n=r.getPluralRules(t,{type:l.pluralType}).select(e-(l.offset||0));i=(Object.prototype.hasOwnProperty.call(l.options,n)?l.options[n]:void 0)||l.options.other}if(!i)throw new si(l.value,c,Object.keys(l.options),a);const u='bigint'==typeof c?Number(c):c;s.push(...hi(i.value,t,r,n,o,u-(l.offset||0)))}else;}}return(l=s).length<2?l:l.reduce(((e,t)=>{const r=e[e.length-1];return r&&r.type===ui.literal&&t.type===ui.literal?r.value+=t.value:e.push(t),e}),[]);var l}function fi(e,t){return t?Object.keys(e).reduce(((r,o)=>{var i,a;return r[o]=(i=e[o],(a=t[o])?n(n(n({},i),a),Object.keys(i).reduce(((e,t)=>(e[t]=n(n({},i[t]),a[t]),e)),{})):i),r}),n({},e)):e}function mi(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var pi=($o=class e{constructor(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultLocale,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{const t=this.formatToParts(e);if(1===t.length)return t[0].value;const r=t.reduce(((e,t)=>(e.length&&t.type===ui.literal&&'string'==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e)),[]);return r.length<=1?r[0]||'':r},this.formatToParts=e=>hi(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>{var e;return{locale:(null===(e=this.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}},this.getAst=()=>this.ast,this.locales=o,this.resolvedLocale=e.resolveLocale(o),'string'==typeof r){if(this.message=r,!e.__parse)throw new TypeError('IntlMessageFormat.__parse must be set to process `message` of type `string`');const o=a||{},i=t({},(function(e){if(null==e)throw new TypeError('Cannot destructure '+e)}(o),o));this.ast=e.__parse(r,n(n({},i),{},{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError('A message must be provided as a String or AST.');this.formats=fi(e.formats,i),this.formatters=a&&a.formatters||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{number:{},dateTime:{},pluralRules:{}};return{getNumberFormat:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.NumberFormat(...t)}),{cache:mi(e.number),strategy:rn.variadic}),getDateTimeFormat:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.DateTimeFormat(...t)}),{cache:mi(e.dateTime),strategy:rn.variadic}),getPluralRules:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.PluralRules(...t)}),{cache:mi(e.pluralRules),strategy:rn.variadic})}}(this.formatterCache)}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale}},$o.memoizedDefaultLocale=null,$o.resolveLocale=e=>{if(void 0===Intl.Locale)return;const t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale('string'==typeof e?e:e[0])},$o.__parse=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=n({shouldParseSkeletons:!0,requiresOtherClause:!0},r);const o=new ei(e,r).parse();if(o.err){const e=SyntaxError(Eo[o.err.kind]);throw e.location=o.err.location,e.originalMessage=o.err.message,e}return null!==(t=r)&&void 0!==t&&t.captureLocation||oi(o.val),o.val},$o.formats={number:{integer:{maximumFractionDigits:0},currency:{style:'currency'},percent:{style:'percent'}},date:{short:{month:'numeric',day:'numeric',year:'2-digit'},medium:{month:'short',day:'numeric',year:'numeric'},long:{month:'long',day:'numeric',year:'numeric'},full:{weekday:'long',month:'long',day:'numeric',year:'numeric'}},time:{short:{hour:'numeric',minute:'numeric'},medium:{hour:'numeric',minute:'numeric',second:'numeric'},long:{hour:'numeric',minute:'numeric',second:'numeric',timeZoneName:'short'},full:{hour:'numeric',minute:'numeric',second:'numeric',timeZoneName:'short'}}},$o);function gi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[o,i,a,s]=t;if(Array.isArray(i))throw new nn(on.INVALID_MESSAGE,void 0);if('object'==typeof i)throw new nn(on.INSUFFICIENT_PATH,void 0);if('string'==typeof i){const e=((e,t)=>t||/'[{}]/.test(e)?void 0:e)(i,a);if(e)return e}const{cache:l,formats:c,formatters:u,globalFormats:d,locale:h,timeZone:f}=s;let m;u.getMessageFormat||(u.getMessageFormat=((e,t)=>sn((function(){return new pi(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],n({formatters:t},arguments.length<=3?void 0:arguments[3]))}),e.message))(l,u));try{m=u.getMessageFormat(i,h,((e,t,r)=>{const o=pi.formats.date,i=pi.formats.time,a=n(n({},null==e?void 0:e.dateTime),null==t?void 0:t.dateTime),s={date:n(n({},o),a),time:n(n({},i),a),number:n(n({},null==e?void 0:e.number),null==t?void 0:t.number)};return r&&['date','time'].forEach((e=>{const t=s[e];for(const[e,o]of Object.entries(t))t[e]=n({timeZone:r},o)})),s})(d,c,f),{formatters:n(n({},u),{},{getDateTimeFormat:(e,t)=>{var r;return u.getDateTimeFormat(e,n(n({},t),{},{timeZone:null!==(r=null==t?void 0:t.timeZone)&&void 0!==r?r:f}))}})})}catch(e){throw new nn(on.INVALID_MESSAGE,void 0)}const p=m.format(a);return ho(p)||Array.isArray(p)||'string'==typeof p?p:String(p)}gi.raw=!0;const vi=['formats','getMessageFallback','messages','onError'];function bi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join('.')}function _i(e){return bi(e.namespace,e.key)}function yi(e){console.error(e)}function Ci(e,t,r,n){const o=bi(n,r);if(!t)throw new Error(o);let i=t;return r.split('.').forEach((t=>{const r=i[t];if(null==t||null==r)throw new Error(o+' ('.concat(e,')'));i=r})),i}function wi(e){const t=((e,t,r)=>{try{if(!t)throw new Error(void 0);const n=r?Ci(e,t,r):t;if(!n)throw new Error(r);return n}catch(e){return new nn(on.MISSING_MESSAGE,e.message)}})(e.locale,e.messages,e.namespace);return(e=>{let{cache:t,formats:r,formatters:n,getMessageFallback:o=_i,locale:i,messagesOrError:a,namespace:s,onError:l,timeZone:c}=e;const u=a instanceof nn;function d(e,t,r,n){const i=new nn(t,r);return l(i),null!=n?n:o({error:i,key:e,namespace:s})}function h(e,h,f,m){const p=m;let g;if(u){if(!p)return l(a),o({error:a,key:e,namespace:s});g=p}else{const t=a;try{g=Ci(i,t,e,s)}catch(t){if(!p)return d(e,on.MISSING_MESSAGE,t.message,p);g=p}}try{return gi(bi(s,e),g,h?(e=>{const t={};return Object.keys(e).forEach((r=>{let n=0;const o=e[r];let i;i='function'==typeof o?e=>{const t=o(e);return ho(t)?fo(t,{key:r+n++}):t}:o,t[r]=i})),t})(h):h,{cache:t,formatters:n,globalFormats:r,formats:f,locale:i,timeZone:c})}catch(t){let r,n;return t instanceof nn?(r=t.code,n=t.originalMessage):(r=on.FORMATTING_ERROR,n=t.message),d(e,r,n,p)}}function f(e,t,r,n){const o=h(e,t,r,n);return'string'!=typeof o?d(e,on.INVALID_MESSAGE,void 0):o}return f.rich=h,f.markup=(e,t,r,n)=>h(e,t,r,n),f.raw=e=>{if(u)return l(a),o({error:a,key:e,namespace:s});const t=a;try{return Ci(i,t,e,s)}catch(t){return d(e,on.MISSING_MESSAGE,t.message)}},f.has=e=>{if(u)return!1;try{return Ci(i,a,e,s),!0}catch(e){return!1}},f})(n(n({},e),{},{messagesOrError:t}))}const ki=3600,Ni=86400,xi=7*Ni,Ei=2628e3,Si=7884e3,Ti=365*Ni,Ii={second:1,seconds:1,minute:60,minutes:60,hour:ki,hours:ki,day:Ni,days:Ni,week:xi,weeks:xi,month:Ei,months:Ei,quarter:Si,quarters:Si,year:Ti,years:Ti};function Mi(e){let{formats:t,getMessageFallback:r,messages:i,onError:a}=e;return n(n({},o(e,vi)),{},{formats:t||void 0,messages:i||void 0,onError:a||yi,getMessageFallback:r||_i})}const Ai=fr(void 0);function Ri(e){let{children:t,formats:r,getMessageFallback:o,locale:i,messages:a,now:s,onError:l,timeZone:c}=e;const u=In(Ai),d=Sn((()=>(null==u?void 0:u.cache)||an()),[i,null==u?void 0:u.cache]),h=Sn((()=>(null==u?void 0:u.formatters)||cn(d)),[d,null==u?void 0:u.formatters]),f=Sn((()=>n(n({},Mi({locale:i,formats:void 0===r?null==u?void 0:u.formats:r,getMessageFallback:o||(null==u?void 0:u.getMessageFallback),messages:void 0===a?null==u?void 0:u.messages:a,now:s||(null==u?void 0:u.now),onError:l||(null==u?void 0:u.onError),timeZone:c||(null==u?void 0:u.timeZone)})),{},{formatters:h,cache:d})),[d,r,h,o,i,a,s,l,u,c]);return Zr(Ai.Provider,{value:f,children:t})}function Pi(){const e=In(Ai);if(!e)throw new Error(void 0);return e}let Oi=!1;const Hi='undefined'==typeof window;function Li(e){return((e,t)=>{const{cache:r,formats:n,formatters:o,getMessageFallback:i,locale:a,onError:s,timeZone:l}=Pi(),c=e['!'],u=function(e,t){return e===t?void 0:e.slice((t+'.').length)}(t,'!');return l||Oi||!Hi||(Oi=!0,s(new nn(on.ENVIRONMENT_FALLBACK,void 0))),Sn((()=>wi({cache:r,formatters:o,getMessageFallback:i,messages:c,namespace:u,onError:s,formats:n,locale:a,timeZone:l})),[r,o,i,c,u,s,n,a,l])})({'!':Pi().messages},e?'!.'.concat(e):'!')}function Bi(){const{formats:e,formatters:t,locale:r,now:o,onError:i,timeZone:a}=Pi();return Sn((()=>function(e){const{_cache:t=an(),_formatters:r=cn(t),formats:o,locale:i,onError:a=yi,timeZone:s}=e;function l(e){var t;return null!==(t=e)&&void 0!==t&&t.timeZone||(s?e=n(n({},e),{},{timeZone:s}):a(new nn(on.ENVIRONMENT_FALLBACK,void 0))),e}function c(e,t,r,o,i){let s;try{s=((e,t,r)=>{let o;if('string'==typeof t){if(o=null==e?void 0:e[t],!o){const e=new nn(on.MISSING_FORMAT,void 0);throw a(e),e}}else o=t;return r&&(o=n(n({},o),r)),o})(r,e,t)}catch(e){return i()}try{return o(s)}catch(e){return a(new nn(on.FORMATTING_ERROR,e.message)),i()}}function u(e,t,n){return c(t,n,null==o?void 0:o.dateTime,(t=>(t=l(t),r.getDateTimeFormat(i,t).format(e))),(()=>String(e)))}function d(){return e.now?e.now:(a(new nn(on.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:(e,t,n)=>c(t,n,null==o?void 0:o.number,(t=>r.getNumberFormat(i,t).format(e)),(()=>String(e))),relativeTime:(e,t)=>{try{let n,o;const a={};t instanceof Date||'number'==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):d(),o=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),n||(n=d());const s=(new Date(e).getTime()-n.getTime())/1e3;o||(o=(e=>{const t=Math.abs(e);return t<60?'second':t<ki?'minute':t<Ni?'hour':t<xi?'day':t<Ei?'week':t<Ti?'month':'year'})(s)),a.numeric='second'===o?'auto':'always';const l=((e,t)=>Math.round(e/Ii[t]))(s,o);return r.getRelativeTimeFormat(i,a).format(l,o)}catch(t){return a(new nn(on.FORMATTING_ERROR,t.message)),String(e)}},list:(e,t,n)=>{const a=[],s=new Map;let l=0;for(const t of e){let e;'object'==typeof t?(e=String(l),s.set(e,t)):e=String(t),a.push(e),l++}return c(t,n,null==o?void 0:o.list,(e=>{const t=r.getListFormat(i,e).formatToParts(a).map((e=>'literal'===e.type?e.value:s.get(e.value)||e.value));return s.size>0?t:t.join('')}),(()=>String(e)))},dateTimeRange:(e,t,n,a)=>c(n,a,null==o?void 0:o.dateTime,(n=>(n=l(n),r.getDateTimeFormat(i,n).formatRange(e,t))),(()=>[u(e),u(t)].join(' – '))),displayName:(e,t,n)=>c(t,n,null==o?void 0:o.displayName,(t=>r.getDisplayNames(i,t).of(e)),(()=>e))}}({formats:e,locale:r,now:o,onError:i,timeZone:a,_formatters:t})),[e,t,o,r,i,a])}const Di={tutorial:10,decision:9,emptyExchange:8,default:0},Fi=fr(null),zi=(e,t)=>{const[r,n]=Nn(e);return{value:r,set:e=>{if(!t)return n(e);n((r=>{const n=function(e,t){return'function'==typeof e?e(t):e}(e,r);return t(n),n}))}}},Ui=function(){let{initialOpen:e=!1,onConfirm:t,onClose:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=zi(e),o=()=>{n.set(!1),null==r||r()};return{register:function(){return{isOpen:n.value,onConfirm:()=>null==t?void 0:t(n),onClose:o}},state:n}},ji=fr({}),Gi=()=>{const e=In(ji);if(!e)throw new Error('useWidgetContext must be used within a WidgetContextProvider');return e};var qi={back:async(e,t)=>{const r=new URL('/'.concat(e),vr);t&&(r.pathname+='/'.concat(t,'/return-action')),await it(),Qe(),window.location.href=r.toString()},continue:(e,t)=>{const r=new URL('/'.concat(e,'/').concat(t,'/tutorial-checkout'),vr),n=window.location.pathname;n&&'/'!==n&&r.searchParams.append('from',n),window.location.href=r.toString()},exit:async function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])try{await it()}catch(e){Ve.error('Failed to clear cart on exit',e)}Qe(),window.location.reload()}};function Vi(e){if(function(){const e=window.location.pathname;return e.includes('/cart')||e.includes('/checkout')}())return'cart_detection';if(!e){const e=ze.get(Oe);if(e&&Date.now()>e)return'cookie_detection'}return null}const Wi=fr({}),Zi=()=>{const e=In(Wi);if(!e)throw new Error('useReturnContext must be used within a ReturnContextProvider');return e},Xi=['src','className'],Ki=e=>{let{src:t,className:r}=e,i=o(e,Xi);return Zr('img',n({src:t||'https://cdn.shopify.com/s/files/1/0849/6526/1638/files/RF-SO-Placeholder2.png?v=1735826638',className:We('rf-image',r)},i))},Yi=e=>{let{pending:t=!1,skeleton:r,children:n}=e;return!0===t?r:n},Ji=['class','className'],Qi=e=>'boolean'==typeof e?''.concat(e):0===e?'0':e,$i=u,ea=(e,t)=>r=>{var i;if(null==(null==t?void 0:t.variants))return $i(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map((e=>{const t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;const o=Qi(t)||Qi(n);return a[e][o]})),c=r&&Object.entries(r).reduce(((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e}),{}),u=null==t||null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce(((e,t)=>{let{class:r,className:i}=t,a=o(t,Ji);return Object.entries(a).every((e=>{let[t,r]=e;return Array.isArray(r)?r.includes(n(n({},s),c)[t]):n(n({},s),c)[t]===r}))?[...e,r,i]:e}),[]);return $i(e,l,u,null==r?void 0:r.class,null==r?void 0:r.className)},ta=['children','className','variant'],ra=ea('rf-avatar size-[26px] rounded-full border overflow-hidden',{variants:{variant:{light:'bg-white text-black border-[#E1E1E1]',dark:'bg-[#555555] text-white border-black'}},defaultVariants:{variant:'light'}});var na=Fn((e=>{let{children:t,className:r,variant:i}=e,a=o(e,ta);return Zr('div',n(n({className:We(ra({variant:i}),r)},a),{},{children:t}))}));const oa=['className'],ia=e=>{let{className:t}=e,r=o(e,oa);return Zr('div',n(n({className:We('rf-skeleton bg-neutral-2 animate-pulse rounded-md h-[1.5em]',t)},r),{},{role:'status',children:Zr('span',{className:'rf-skeleton__sr-text sr-only',children:'Loading...'})}))},aa=()=>Zr('div',{className:'rf-avatar-stack-skeleton flex -space-x-1',children:[Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[1]',children:Zr(ia,{className:'size-[26px] rounded-full'})}),Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[2]',children:Zr(ia,{className:'size-[26px] rounded-full'})}),Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[3]',children:Zr(ia,{className:'size-[26px] rounded-full'})})]}),sa=['images','variant','maxVisibleAvatars','className','pending','children'],la=e=>{let{images:t,variant:r,maxVisibleAvatars:i=3,className:a,pending:s=!1,children:l}=e,c=o(e,sa);const u=null!=i?i:t.length,d=u<t.length,h=d?u-1:u;return Zr(Yi,{skeleton:Zr(aa,{}),pending:s,children:t.length>0&&Zr('div',n(n({className:We('rf-avatar-stack flex -space-x-1',a)},c),{},{children:[t.slice(0,h).map(((e,t)=>{let{src:n,alt:o}=e;return Zr(na,{className:'relative',style:{zIndex:t+1},variant:r,children:Zr(Ki,{className:'rf-avatar-stack__image size-full object-cover',src:n,alt:o})},t)})),d&&Zr(na,{variant:r,style:{zIndex:h+1},className:'flex items-center justify-center',children:Zr('span',{className:'rf-avatar-stack__count text-[10px]',children:['+',t.length-h]})}),l?l(h+1):null]}))})},ca=['pending'],ua=e=>{var t;let{pending:r}=e,i=o(e,ca);const{orderState:a}=Zi(),s=Sn((()=>{var e,t;return(null!==(e=null===(t=a.value.data)||void 0===t?void 0:t.orderData.productsToExchange)&&void 0!==e?e:[]).reduce(((e,t)=>{for(let r=0;r<t.quantity;r++)e.push({src:t.image,alt:t.title});return e}),[])}),[null===(t=a.value.data)||void 0===t?void 0:t.orderData.productsToExchange]);return Zr(la,n({pending:null!=r?r:a.value.pending,variant:'light',images:s},i))},da=fr(null),ha=['className'],fa=e=>{let{className:t}=e,r=o(e,ha);return Zr('svg',n(n({width:11,height:9,viewBox:'0 0 11 9',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-right '.concat(t||'')},r),{},{children:Zr('path',{d:'M10.273 4.427 6.66.954a.55.55 0 0 0-.387-.153.56.56 0 0 0-.387.153l-.328.316a.52.52 0 0 0 0 .749l2.107 2.03H.973a.524.524 0 0 0-.54.517v.446c0 .29.238.54.54.54H7.69L5.56 7.594a.505.505 0 0 0 0 .74l.327.314c.103.099.24.153.387.153a.56.56 0 0 0 .387-.154l3.612-3.473a.513.513 0 0 0 0-.747'})}))},ma=['className'],pa=e=>{let{className:t}=e,r=o(e,ma);return Zr('svg',n(n({width:11,height:11,viewBox:'0 0 11 11',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--x '.concat(t||'')},r),{},{children:[Zr('path',{d:'M1.45 10.572a.92.92 0 0 1-.655-.221.92.92 0 0 1 0-1.299l7.82-7.82a.921.921 0 0 1 1.344 1.253l-7.865 7.866a.92.92 0 0 1-.645.22'}),Zr('path',{d:'M9.26 10.572a.92.92 0 0 1-.645-.267l-7.82-7.82a.921.921 0 0 1 1.299-1.298l7.865 7.82a.92.92 0 0 1 0 1.344.92.92 0 0 1-.7.22'})]}))},ga=['className'],va=e=>{let{className:t}=e,r=o(e,ga);return Zr('svg',n(n({width:'1.5em',height:'1.5em',viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',className:'rf-icon rf-icon--spinner '.concat(t||'')},r),{},{children:Zr('g',{children:[Zr('path',{opacity:.14,d:'M11 1h2v5h-2z'}),Zr('path',{opacity:.29,d:'m16.634 1.974 1.732 1-2.5 4.33-1.732-1z'}),Zr('path',{opacity:.43,d:'m21.026 5.634 1 1.732-4.33 2.5-1-1.732z'}),Zr('path',{opacity:.57,d:'M23 11v2h-5v-2z'}),Zr('path',{opacity:.71,d:'m22.026 16.634-1 1.732-4.33-2.5 1-1.732z'}),Zr('path',{opacity:.86,d:'m18.366 21.026-1.732 1-2.5-4.33 1.732-1z'}),Zr('path',{d:'M13 23h-2v-5h2z'}),Zr('animateTransform',{attributeName:'transform',type:'rotate',calcMode:'discrete',dur:'0.75s',values:'0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12',repeatCount:'indefinite'})]})}))},ba=['children','className','icon','variant','pending','disabled','iconPosition'],_a=ea('disabled:cursor-not-allowed h-12 rounded-md text-base font-medium flex items-center justify-center whitespace-nowrap gap-2 px-8 relative transition-all duration-300 ease-in-out [--icon-width:auto] [--icon-height:0.65em] desktop:[--icon-height:0.75em]',{variants:{variant:{primary:'bg-button-background text-button-foreground disabled:!bg-button-background-disabled disabled:!text-button-foreground-disabled desktop:hover:opacity-80',secondary:'bg-button-secondary-background text-button-secondary-foreground disabled:!text-button-foreground-disabled desktop:hover:opacity-80',outline:'border border-button-secondary-background bg-background text-widget-foreground disabled:!text-button-foreground-disabled desktop:hover:opacity-80',ghost:'text-neutral-3 font-normal gap-1 disabled:!opacity-50 disabled:cursor-not-allowed desktop:hover:opacity-80'}}});var ya=Fn((e=>{let{children:t,className:r,icon:i,variant:a='primary',pending:s=!1,disabled:l=!1,iconPosition:c='right'}=e,u=o(e,ba);return Zr('button',n(n({'aria-busy':s,disabled:l||s,type:'button',className:We(_a({variant:a}),'rf-button','rf-button--'.concat(a),r)},u),{},{children:[s&&Zr(va,{className:'absolute inset-0 m-auto'}),Zr('span',{className:'rf-button__text',style:{visibility:s?'hidden':'visible'},children:t}),!!i&&Zr(i,{style:{visibility:s?'hidden':'visible'},className:We('rf-button__icon w-[var(--icon-width)] h-[var(--icon-height)]','left'===c?'-order-1':'order-1')})]}))}));const Ca=['className','onClick'],wa=['className','onClick'];var ka={Accept:e=>{let{className:t,onClick:r}=e,i=o(e,Ca);const a=In(da);return Zr(ya,n({className:We('rf-dialog-button rf-dialog__button rf-dialog__button--accept w-full',t),icon:fa,onClick:e=>{var t;null==r||r(e),e.defaultPrevented||null==a||null===(t=a.onConfirm)||void 0===t||t.call(a)}},i))},Reject:e=>{let{className:t,onClick:r}=e,i=o(e,wa);const a=In(da);return Zr(ya,n({className:We('rf-dialog-button rf-dialog__button rf-dialog__button--reject w-full',t),variant:'outline',icon:pa,iconPosition:'left',onClick:e=>{var t;null==r||r(e),e.defaultPrevented||null==a||null===(t=a.onClose)||void 0===t||t.call(a)}},i))}};const Na=['icon','variant','size','className','children'],xa=ea('rf-icon size-8 rounded-full flex items-center justify-center text-2xl p-[9px]',{variants:{variant:{primary:'rf-icon--primary border border-neutral-2 text-black',solid:'rf-icon--solid bg-black text-white','solid-inverse':'rf-icon--solid-inverse bg-neutral-1 text-neutral-3'},size:{sm:'size-7 p-[8px]',md:'size-8 p-[9px]'}},defaultVariants:{variant:'primary',size:'md'}}),Ea=e=>{let{icon:t,variant:r,size:i,className:a,children:s}=e,l=o(e,Na);return Zr('div',n(n({'aria-hidden':!0,className:We(xa({variant:r,size:i}),a)},l),{},{children:[t&&Zr(t,{className:'size-full'}),s]}))},Sa=['className','labelProps','showLabel'],Ta=e=>{let{className:t,labelProps:r,showLabel:i=!1}=e,a=o(e,Sa);const s=Li('common');return Zr('button',n(n({'aria-label':i?void 0:s('close'),className:We('flex items-center gap-2 group',t),type:'button'},a),{},{children:[i&&Zr('span',n(n({},r),{},{children:s('close')})),Zr(Ea,{className:'group-hover:bg-neutral-2 transition-colors',icon:pa})]}))},Ia=['className','onClick'],Ma=e=>{let{id:t,priority:r=Di.default,open:n}=e;const{acquire:o,release:i,activeId:a}=(()=>{const e=In(Fi);if(!e)throw new Error('useDialogQueue must be used within a DialogQueueProvider');return e})();return xn((()=>{if(n)return o({id:t,priority:r}),()=>i(t);i(t)}),[n,t,r,o,i]),n&&a===t},Aa=()=>{const[e,t]=Nn(!1);return xn((()=>{t(!0)}),[]),e},Ra=fr(null),Pa=['onClick','className','children','isVisible'],Oa=e=>{let{onClick:t,className:r,children:i,isVisible:a=!0}=e,s=o(e,Pa);const l=En(null);return Zr('aside',n(n({onClick:function(e){t&&e.target===l.current&&t()},ref:l,className:We('rf-dialog__backdrop fixed inset-0 size-full z-40 flex items-center justify-center p-6',a&&'rf-dialog__backdrop--visible bg-black/50',r)},s),{},{children:i}))},Ha=['isOpen','onConfirm','onClose','fadeIn','showBackdrop','dismissOnBackdropClick','dismissOnEscape','queueId','priority','queue','className'],La=['className'],Ba=['className'],Da={Modal:e=>{let{isOpen:t,onConfirm:r,onClose:i,fadeIn:a=!0,showBackdrop:s=!0,dismissOnBackdropClick:l=!0,dismissOnEscape:c=!0,queueId:u,priority:d,queue:h=!0,className:f}=e,m=o(e,Ha);const p=(()=>{const e=In(Ra);if(!e)throw new Error('useRoot must be used within a RootProvider');return()=>e.current||document.getElementById(Cr)})(),g=Aa(),v=En();v.current||(v.current='dialog-'.concat(Math.random().toString(36).slice(2,11)));const b=null!=u?u:v.current,_=Ma({id:b,priority:d,open:t&&h}),y=t&&(!h||_);if(xn((()=>{const e=e=>{'Escape'===e.key&&(e.preventDefault(),i())};return c&&(y?document.addEventListener('keydown',e):document.removeEventListener('keydown',e)),()=>{c&&document.removeEventListener('keydown',e)}}),[c,i,y]),!y||!g)return null;const C=p();if(!C)return Ve.error('Root element not found'),null;const w={isOpen:t,onConfirm:r,onClose:i};return function(e,t){var r=Gt(Yn,{__v:e,h:t});return r.containerInfo=t,r}(Zr(Oa,{className:a?'animate-fade-in':void 0,isVisible:s,onClick:l?i:void 0,children:Zr(da.Provider,{value:w,children:Zr('div',n({className:We('rf-dialog m-auto w-full p-8 rounded-lg bg-white text-widget-foreground shadow-lg max-w-xl relative',f)},m))})}),C)},Title:e=>{let{className:t}=e,r=o(e,Ba);return Zr('h2',n({className:We('rf-dialog__title text-2xl font-medium leading-tight',t)},r))},Subtitle:e=>{let{className:t}=e,r=o(e,La);return Zr('p',n({className:We('rf-dialog__subtitle text-neutral-3 py-2.5 leading-tight whitespace-pre-wrap',t)},r))},Accept:ka.Accept,Reject:ka.Reject,Exit:e=>{let{className:t,onClick:r}=e,i=o(e,Ia);const a=In(da);return Zr(Ta,n({onClick:e=>{null==r||r(e),e.defaultPrevented||null==a||a.onClose()},className:We('absolute right-4 top-4',t)},i))}},Fa=()=>{const{config:{isFirstLoad:e}}=Gi(),[t]=Nn((()=>Vi(e)));return t?Zr(za,{decisionState:t}):null};function za(e){let{decisionState:t}=e;const r=Li('dialog.return_decision.'.concat(t)),{widgetViewState:o}=Gi();function a(){'cookie_detection'===t&&ze.remove(Oe)}const s=Ui({initialOpen:!0,onConfirm:e=>{e.set(!1),a(),'cart_detection'===t&&o.set(i.Open)},onClose:()=>{a(),qi.exit()}});return Zr(Da.Modal,n(n({className:'text-center flex flex-col gap-2 items-center'},s.register()),{},{priority:Di.decision,children:[Zr(ua,{}),Zr(Da.Title,{children:r('title')}),Zr(Da.Subtitle,{children:r('subtext')}),Zr(Da.Accept,{children:r('confirm')}),Zr(Da.Reject,{children:r('reject')})]}))}const Ua=fr(null),ja=()=>{const e=In(Ua);if(!e)throw new Error('useTutorial must be used within a TutorialProvider');return e};var Ga,qa;(e=>{e.Intro='intro'})(Ga||(Ga={})),(e=>{e.Welcome='intro:welcome'})(qa||(qa={}));const Va={[Ga.Intro]:{id:Ga.Intro,steps:[{id:qa.Welcome}],options:{autoStart:!0,showMode:'first-load'}}},Wa='#000000',Za='#ffffff',Xa='#6e6e6e',Ka='#7a7a7a',Ya='#efefef',Ja='#919191',Qa='#f8faff',$a=()=>{const e=function(){var e=kn(un++,11);if(!e.__){for(var t=dn.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__='P'+r[0]+'-'+r[1]++}return e.__}();return Zr('div',{className:'size-48 relative overflow-hidden',children:Zr('svg',{className:'size-60 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2',fill:'none',height:'100%',width:'100%',viewBox:'0 0 810 810',children:[Zr('defs',{children:[Zr('linearGradient',{id:''.concat(e,'i0'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:112.771,y2:.882,x1:-113.083,y1:.882,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i1'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:-30.286,y2:172.522,x1:73.352,y1:-242.242,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i2'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:163.96,y2:.808,x1:-164.788,y1:.808,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i3'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:163.96,y2:.846,x1:-164.788,y1:.846,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i4'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:148.903,y2:.242,x1:-149.633,y1:.242,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('filter',{id:''.concat(e,'i5'),children:Zr('feColorMatrix',{values:'0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0',type:'matrix'})}),Zr('mask',{height:2e4,width:2e4,y:-1e4,x:-1e4,maskContentUnits:'userSpaceOnUse',maskUnits:'userSpaceOnUse',style:{maskType:'alpha'},'mask-type':'alpha',id:''.concat(e,'i6'),children:Zr('g',{filter:'url(#'.concat(e,'i5)'),transform:'matrix(1,0,0,1,405,405)',children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',fill:Ka,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-488.406,113.16,-488.406,113.16C-488.406,113.16,-178.655,203.91,-178.655,203.91C-178.655,203.91,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-505.339,117.399,-505.339,117.399C-505.339,117.399,-195.589,208.149,-195.589,208.149C-195.589,208.149,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-519.368,121.577,-519.368,121.577C-519.368,121.577,-209.618,212.327,-209.618,212.327C-209.618,212.327,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-531.612,125.377,-531.612,125.377C-531.612,125.377,-221.862,216.127,-221.862,216.127C-221.862,216.127,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-541.474,127.887,-541.474,127.887C-541.474,127.887,-231.724,218.636,-231.724,218.636C-231.724,218.636,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-548.98,130.174,-548.98,130.174C-548.98,130.174,-239.23,220.924,-239.23,220.924C-239.23,220.924,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.37 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.7 0.57; 0 0 1 1',fill:'freeze'})})})})})]}),Zr('g',{transform:'matrix(1,0,0,1,413.184,613.4)',visibility:'hidden',id:''.concat(e,'i8'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.113016; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{d:'M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ya,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-89.423,63.119,-89.423,63.119C-57.331,72.617,-23.195,72.761,8.976,63.536C8.976,63.536,114.589,32.319,181.302,13.661C208.689,6.001,236.316,-13.4,165.135,-34.042C127.936,-44.83,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-89.423,63.119,-89.423,63.119C-57.331,72.617,-23.195,72.761,8.976,63.536C8.976,63.536,114.589,32.319,181.302,13.661C208.689,6.001,236.316,-13.4,165.135,-34.042C127.936,-44.83,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z',keyTimes:'0; 0.15493; 0.394366; 1',keySplines:'0 0 1 1; 0.046 0.373 0.173 1; 0 0 1 1',fill:'freeze'})})})]}),Zr('g',{mask:'url(#'.concat(e,'i6)'),id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,-42.983,0)',children:Zr('path',{fill:'url(#'.concat(e,'i0)'),strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,d:'M112.927,-220.427C112.927,-220.427,101,-225.479,88.066,-229.22C69.689,-234.535,49.358,-235.059,27.776,-228.87C-68.354,-201.305,-112.927,-86.452,-112.927,-17.202C-112.927,33.185,-112.927,206.445,-112.927,206.445C-112.927,206.445,-113.313,284.279,-113.313,284.279C-113.313,284.279,-96.148,289.359,-96.148,289.359C-96.148,289.359,112.927,-220.427,112.927,-220.427Z'})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,8.583,3.123)',children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i1)'),d:'M146.941,201.744C146.941,201.744,-147.713,286.236,-147.713,286.236C-147.713,286.236,-147.327,36.308,-147.327,-14.079C-147.327,-83.329,-102.754,-198.182,-6.624,-225.747C80.558,-250.746,147.327,-166.206,147.327,-98.79C147.327,-48.348,146.941,201.744,146.941,201.744Z'})})]})]})}),Zr('g',{transform:'matrix(1,0,0,1,405,405)',id:''.concat(e,'i12'),children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25',strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25; M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25; M-28.875,161C-28.875,161,-178.203,203.63,-178.203,203.63C-178.203,203.63,-196.578,198.505,-196.578,198.505; M-10.125,155.5C-10.125,155.5,-194.967,207.964,-194.967,207.964C-194.967,207.964,-213.209,202.896,-213.209,202.896; M7.375,150.5C7.375,150.5,-210.123,212.559,-210.123,212.559C-210.123,212.559,-228.23,207.548,-228.23,207.548; M21.625,146.5C21.625,146.5,-222.271,215.497,-222.271,215.497C-222.271,215.497,-240.241,210.545,-240.241,210.545; M34.875,143C34.875,143,-231.786,218.271,-231.786,218.271C-231.786,218.271,-249.615,213.38,-249.615,213.38; M45.125,139.5C45.125,139.5,-239.306,220.32,-239.306,220.32C-239.306,220.32,-256.987,215.492,-256.987,215.492; M50.625,138C50.625,138,-244,222.25,-244,222.25C-244,222.25,-261.5,217.5,-261.5,217.5; M50.625,138C50.625,138,-244,222.25,-244,222.25C-244,222.25,-261.5,217.5,-261.5,217.5',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.39 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.72 0.6; 0 0 1 1',fill:'freeze'})})})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i13'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.493069; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),children:Zr('path',{d:'M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i2)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z; M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z; M-171.874,44.188C-171.874,44.188,-171.874,36.908,-171.874,36.908C-171.874,36.908,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-139.579,53.65,-139.579,53.65C-139.579,53.65,-171.874,44.188,-171.874,44.188Z; M-160.124,40.688C-160.124,40.688,-160.124,33.408,-160.124,33.408C-160.124,33.408,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-127.829,50.15,-127.829,50.15C-127.829,50.15,-160.124,40.688,-160.124,40.688Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z',keyTimes:'0; 0.605634; 0.774648; 0.84507; 0.915493; 1',keySplines:'0 0 1 1; 0.226 0.274 0.17 1; 0.226 0 0.481 1; 0.167 0 0.571 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,1.091)',children:Zr('path',{d:'M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683; M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683; M164.374,-42.529C164.374,-42.529,-139.579,45.279,-139.579,45.279C-139.579,45.279,-171.874,35.817,-171.874,35.817; M164.374,-42.529C164.374,-42.529,-127.829,41.779,-127.829,41.779C-127.829,41.779,-160.124,32.317,-160.124,32.317; M164.374,-42.529C164.374,-42.529,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M164.374,-42.529C164.374,-42.529,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067',keyTimes:'0; 0.605634; 0.774648; 0.84507; 0.915493; 1',keySplines:'0 0 1 1; 0.226 0.274 0.17 1; 0.226 0 0.481 1; 0.167 0 0.833 1; 0 0 1 1',fill:'freeze'})})})]})]})]})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i14'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.577081; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(102.339,-76.301)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'102.339 -76.301; 102.339 -76.301; 102.339 -47.801; 102.339 -47.801',keyTimes:'0; 0.619718; 0.690141; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i15'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.662093; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(41.72,-51.66)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'41.72 -51.66; 41.72 -51.66; 41.72 -30.16; 41.72 -30.16',keyTimes:'0; 0.704225; 0.774648; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i16'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.704099; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-19.063,-36.403)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-19.063 -36.403; -19.063 -36.403; -19.063 -13.403; -19.063 -13.403',keyTimes:'0; 0.746479; 0.816902; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i17'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.648091; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),children:Zr('path',{d:'M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i3)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,139.329,-52.65,139.329,-52.65C139.329,-52.65,171.624,-43.188,171.624,-43.188C171.624,-43.188,171.624,-35.908,171.624,-35.908C171.624,-35.908,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-166.499,42.313C-166.499,42.313,-166.499,35.033,-166.499,35.033C-166.499,35.033,129.954,-50.025,129.954,-50.025C129.954,-50.025,162.249,-40.563,162.249,-40.563C162.249,-40.563,162.249,-33.283,162.249,-33.283C162.249,-33.283,-134.204,51.775,-134.204,51.775C-134.204,51.775,-166.499,42.313,-166.499,42.313Z; M-166.499,42.313C-166.499,42.313,-166.499,35.033,-166.499,35.033C-166.499,35.033,129.954,-50.025,129.954,-50.025C129.954,-50.025,162.249,-40.563,162.249,-40.563C162.249,-40.563,162.249,-33.283,162.249,-33.283C162.249,-33.283,-134.204,51.775,-134.204,51.775C-134.204,51.775,-166.499,42.313,-166.499,42.313Z',keyTimes:'0; 0.690141; 0.859155; 0.929577; 1',keySplines:'0 0 1 1; 0.23 0.27 0.17 1; 0.17 0 0.7 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,1.091)',children:Zr('path',{d:'M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M171.624,-44.279C171.624,-44.279,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M162.249,-41.654C162.249,-41.654,-134.204,43.404,-134.204,43.404C-134.204,43.404,-166.499,33.942,-166.499,33.942; M162.249,-41.654C162.249,-41.654,-134.204,43.404,-134.204,43.404C-134.204,43.404,-166.499,33.942,-166.499,33.942',keyTimes:'0; 0.690141; 0.859155; 0.929577; 1',keySplines:'0 0 1 1; 0.23 0.27 0.17 1; 0.17 0 0.7 1; 0 0 1 1',fill:'freeze'})})})]})]})]})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i17'),children:Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i18'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.746105; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-43.282,-29.111)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-43.282 -29.111; -43.282 -29.111; -43.282 -5.111; -43.282 -5.111',keyTimes:'0; 0.788733; 0.859155; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i17'),children:Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i19'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.718101; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-104.065,-23.354)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-104.065 -23.354; -104.065 -23.354; -104.065 11.646; -104.065 11.646',keyTimes:'0; 0.760563; 0.830986; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,0,0)',visibility:'hidden',id:''.concat(e,'i21'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.310044; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i22'),transform:'matrix(1,0,0,1,3.805,7.012)',children:Zr('path',{d:'M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i4)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.268,88.027,-149.268,88.027C-149.268,88.027,-113.951,98.464,-113.951,98.464C-103.237,101.63,-91.843,101.685,-81.099,98.622C-81.099,98.622,149.268,32.948,149.268,32.948C149.268,32.948,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.268,88.027,-149.268,88.027C-149.268,88.027,-113.951,98.464,-113.951,98.464C-103.237,101.63,-91.843,101.685,-81.099,98.622C-81.099,98.622,149.268,32.948,149.268,32.948C149.268,32.948,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z',keyTimes:'0; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'})})})]})})]})}),Zr('g',{visibility:'hidden',id:''.concat(e,'i20'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.169024; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,0,-59.118)',children:Zr('path',{d:'M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ya,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z; M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z; M-159.546,20.263C-159.546,20.263,91.321,-51.205,91.321,-51.205C91.321,-51.205,159.548,-31.034,159.548,-31.034C159.548,-31.034,159.548,-18.845,159.548,-18.845C159.548,-18.845,-81.927,49.624,-81.927,49.624C-89.514,51.775,-97.554,51.731,-105.116,49.495C-105.116,49.495,-159.548,33.402,-159.548,33.402C-159.548,33.402,-159.546,20.27,-159.546,20.27C-159.546,20.27,-159.546,20.263,-159.546,20.263Z; M-159.546,20.263C-159.546,20.263,91.321,-51.205,91.321,-51.205C91.321,-51.205,159.548,-31.034,159.548,-31.034C159.548,-31.034,159.548,-18.845,159.548,-18.845C159.548,-18.845,-81.927,49.624,-81.927,49.624C-89.514,51.775,-97.554,51.731,-105.116,49.495C-105.116,49.495,-159.548,33.402,-159.548,33.402C-159.548,33.402,-159.546,20.27,-159.546,20.27C-159.546,20.27,-159.546,20.263,-159.546,20.263Z',keyTimes:'0; 0.211268; 0.408451; 1',keySplines:'0 0 1 1; 0.05 0.42 0.17 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,-55.127)',children:Zr('path',{d:'M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722; M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722; M159.548,-35.025C159.548,-35.025,-81.927,33.444,-81.927,33.444C-89.514,35.595,-97.554,35.55,-105.116,33.314C-105.116,33.314,-159.548,17.222,-159.548,17.222; M159.548,-35.025C159.548,-35.025,-81.927,33.444,-81.927,33.444C-89.514,35.595,-97.554,35.55,-105.116,33.314C-105.116,33.314,-159.548,17.222,-159.548,17.222',keyTimes:'0; 0.211268; 0.408451; 1',keySplines:'0 0 1 1; 0.05 0.42 0.17 1; 0 0 1 1',fill:'freeze'})})})]})]})]}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,55.418,-104.524)',id:''.concat(e,'i23'),children:Zr('g',{transform:'matrix(1,0,0,1,0,0)',visibility:'hidden',id:''.concat(e,'i24'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.563079; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i25'),transform:'matrix(1,0,0,1,0,-1.577)',children:Zr('path',{d:'M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ja,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z; M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z; M-32.228,28.25C-32.228,28.25,12.116,15.95,12.116,15.95C12.116,15.95,35.903,-24.762,35.903,-24.762C35.903,-24.762,32.228,-28.25,32.228,-28.25C32.228,-28.25,-12.116,-15.95,-12.116,-15.95C-12.116,-15.95,-35.903,24.762,-35.903,24.762C-35.903,24.762,-32.228,28.25,-32.228,28.25Z; M-32.228,28.25C-32.228,28.25,12.116,15.95,12.116,15.95C12.116,15.95,35.903,-24.762,35.903,-24.762C35.903,-24.762,32.228,-28.25,32.228,-28.25C32.228,-28.25,-12.116,-15.95,-12.116,-15.95C-12.116,-15.95,-35.903,24.762,-35.903,24.762C-35.903,24.762,-32.228,28.25,-32.228,28.25Z',keyTimes:'0; 0.605634; 0.774648; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,1.838,0.166)',children:Zr('path',{d:'M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506; M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506; M-34.065,26.506C-34.065,26.506,-10.278,-14.206,-10.278,-14.206C-10.278,-14.206,34.065,-26.506,34.065,-26.506; M-34.065,26.506C-34.065,26.506,-10.278,-14.206,-10.278,-14.206C-10.278,-14.206,34.065,-26.506,34.065,-26.506',keyTimes:'0; 0.605634; 0.774648; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})})]})})})]})}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,55.418,-104.524)',visibility:'hidden',id:''.concat(e,'i23'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.493069; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,2.099,14.125)',children:Zr('path',{d:'M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ja,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z; M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z; M5.777,-15.702C5.777,-15.702,-4.684,-13.027,-4.684,-13.027C-4.684,-13.027,-9.993,-4.596,-9.993,-4.596C-9.993,-4.596,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,5.777,-15.702,5.777,-15.702Z; M5.777,-15.702C5.777,-15.702,-4.684,-13.027,-4.684,-13.027C-4.684,-13.027,-9.993,-4.596,-9.993,-4.596C-9.993,-4.596,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,5.777,-15.702,5.777,-15.702Z',keyTimes:'0; 0.535211; 0.647887; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})})]})})]})}),Zr('g',{display:'none',transform:'matrix(1,0,0,1,405,405)',id:''.concat(e,'i26'),children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',fill:Ka,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-488.406,113.16,-488.406,113.16C-488.406,113.16,-178.655,203.91,-178.655,203.91C-178.655,203.91,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-505.339,117.399,-505.339,117.399C-505.339,117.399,-195.589,208.149,-195.589,208.149C-195.589,208.149,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-519.368,121.577,-519.368,121.577C-519.368,121.577,-209.618,212.327,-209.618,212.327C-209.618,212.327,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-531.612,125.377,-531.612,125.377C-531.612,125.377,-221.862,216.127,-221.862,216.127C-221.862,216.127,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-541.474,127.887,-541.474,127.887C-541.474,127.887,-231.724,218.636,-231.724,218.636C-231.724,218.636,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-548.98,130.174,-548.98,130.174C-548.98,130.174,-239.23,220.924,-239.23,220.924C-239.23,220.924,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.37 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.7 0.57; 0 0 1 1',fill:'freeze'})})})})]})})},es=()=>{const e=Li('tutorial.intro'),{isStepActive:t,next:r}=ja();return Zr(Da.Modal,{className:'text-center flex flex-col gap-2 items-center -translate-y-[calc(var(--rf-summary-height,0px)/2)]',isOpen:t(qa.Welcome),onConfirm:r,onClose:r,showBackdrop:!1,dismissOnBackdropClick:!0,queue:!1,children:[Zr(Da.Exit,{}),Zr($a,{}),Zr(Da.Title,{className:'text-3xl',children:e('title')}),Zr(Da.Subtitle,{children:e('subtext')}),Zr(Da.Accept,{icon:null,children:e('confirm')})]})},ts=()=>Zr(Vt,{children:[Zr(Fa,{}),Zr(es,{})]}),rs=5e3,ns=fr(null),os=()=>{const e=In(ns);if(!e)throw new Error('useToast must be used within a ToastProvider');return e},is=()=>{const{widgetViewState:e,config:t}=Gi(),r=Zi(),n=os();xn((()=>(function(e){let{widgetViewState:t,returnContext:r,toastContext:n,config:o}=e;pt.widgetViewState=t,pt.returnContext=r,pt.toastContext=n,pt.config=o,pt.isInitialized=!0,wt('ready')}({widgetViewState:e,returnContext:r,toastContext:n,config:t}),()=>{gt()})),[e,r,n,t]),xn((()=>{e.value===i.Open?wt('drawer:open'):wt('drawer:close')}),[e.value]),xn((()=>{var e;const t=null===(e=r.cartState.value.data)||void 0===e?void 0:e.original;t&&wt('cart:updated',t)}),[r.cartState.value.data]),xn((()=>{const e=r.calculationState.value.data;e&&wt('calculation:updated',e)}),[r.calculationState.value.data])};var as;(e=>{e.Unknown='unknown_error',e.NetworkError='network_error',e.ProductLimit='product_limit'})(as||(as={}));const ss={422:as.ProductLimit};function ls(e){return null!==e&&e in ss?ss[e]:as.Unknown}function cs(e){var t;Ve.info('Initializing fetch interceptor');const r=window.fetch;null!==(t=window.__rf_original_fetch)&&void 0!==t||(window.__rf_original_fetch=r),window.fetch.rf_interception=!0;const n=new Proxy(r,{apply:async(t,r,n)=>{const o=n[0],i=await Reflect.apply(t,r,n),a=null==i?void 0:i.clone();return null==e||e({response:a,requestUrl:o}),i}});return window.fetch=n,e=>{window.__rf_original_fetch&&(Ve.info('Resetting fetch interceptor'),window.fetch=window.__rf_original_fetch,window.fetch.rf_interception=!1,e&&clearInterval(e))}}function us(e){var t;Ve.info('Initializing XHR interceptor');const r=window.XMLHttpRequest;null!==(t=window.__rf_original_xhr)&&void 0!==t||(window.__rf_original_xhr=r);const n=new Proxy(r,{construct:function(t,r){const n=new t(...r),o=n.open,i=n.send;let a='';return n.open=function(e,t,r,n,i){return a=t,o.call(this,e,t,null!=r&&r,n,i)},n.send=function(t){const r=n.onreadystatechange;n.onreadystatechange=function(t){if(r&&r.call(this,t),n.readyState===XMLHttpRequest.DONE)try{null==e||e(ds(n,a))}catch(e){Ve.error('Error in XHR interception callback:',e)}};const o=n.onload;return n.onload=function(t){if(o&&o.call(this,t),n.readyState===XMLHttpRequest.DONE)try{null==e||e(ds(n,a))}catch(e){Ve.error('Error in XHR interception callback:',e)}},i.call(this,t)},n}});return window.XMLHttpRequest.rf_interception=!0,window.XMLHttpRequest=n,e=>{window.__rf_original_xhr&&(Ve.info('Resetting XHR interceptor'),window.XMLHttpRequest=window.__rf_original_xhr,window.XMLHttpRequest.rf_interception=!1,e&&clearInterval(e))}}function ds(e,t){var r;let n;const o='text'===e.responseType,i='json'===e.responseType||(null===(r=e.getResponseHeader('Content-Type'))||void 0===r?void 0:r.includes('application/json'));if(o)try{n=JSON.parse(e.response)}catch(e){}else i&&(n=e.response);return{response:n,requestUrl:t}}const hs=['/cart/add','/cart/add.js'],fs=['/cart/update','/cart/update.js'],ms=['/cart/change','/cart/change.js'],ps={add:hs,update:fs,change:ms},gs=[...hs,...fs,...ms,'/cart/clear','/cart/clear.js','/?section_id=cart-drawer','/api/unstable/graphql.json?operation_name=cartQuery'];const vs=fr({}),bs=()=>{const e=In(vs);if(!e)throw new Error('useErrors must be used within an ErrorProvider');return e},_s=()=>{const e=Li(),{add:t}=os(),{cartState:r,orderState:o,calculationState:i}=Zi(),{config:{data:{formData:a}}}=Gi(),s=bs(),l=Sn((()=>Ke(a)),[a]),c=Tn(((e,t)=>{const r=null==t?void 0:t.items.find((t=>t.variant_id===e.variant_id));return!r||r.quantity!==e.quantity}),[]),u=Tn(((r,n)=>{const o=r.excludedItems.filter((e=>c(e,n))),i=r.bundleItems.filter((e=>c(e,n)));o.length>0&&t({tone:'error',message:e.rich('toast.product_exchange_error',{product_name:o[0].title,b:e=>Zr('span',{className:'text-neutral-3 inline-block',children:e})})}),i.length>0&&t({tone:'error',message:e.rich('toast.bundle_exchange_error',{product_name:i[0].title,b:e=>Zr('span',{className:'text-neutral-3 inline-block',children:e})})})}),[c,e,t]);return{fetchAndUpdateCart:Tn((async()=>{var e,t;const i=o.value.data;if(!i)return null;const a=null!==(e=null===(t=r.value.data)||void 0===t?void 0:t.original)&&void 0!==e?e:null;let s;try{s=await ot(!1)}catch(e){return r.set((t=>n(n({},t),{},{pending:!1,error:e}))),null}const l=i.orderData.productRules,c=rt(s,l);u(c,a);const d=!a||!nt({cart1:a,cart2:s,rules:l});return r.set({data:{original:s,transformed:c.cart},pending:!1,error:null}),lt(s),{order:i,originalCart:a,freshCart:s,transformedCart:c.cart,productRules:l,hasChanged:d}}),[o,r,u]),processCartUpdate:Tn((async e=>{var t,n;const a=o.value.data;if(!a)return null;const s=null!==(t=null===(n=r.value.data)||void 0===n?void 0:n.original)&&void 0!==t?t:null,c=a.orderData.productRules,d=rt(e,c);return u(d,s),r.set({data:{original:e,transformed:d.cart},pending:!1,error:null}),lt(e),await i.query({cart:d.cart,orderId:a.orderData.id,lineItems:l}),{transformedCart:d.cart,productRules:c}}),[o,r,i,l,u]),handleResponseErrors:Tn((async t=>{const r=await async function(e){if(e){if(e instanceof Response)return await e.json().catch((()=>{}));if('string'==typeof e)try{return JSON.parse(e)}catch(e){return}return e}}(t);if(r){let t;if('status'in r){const e=r.status;t='number'==typeof e?e:void 0}if(t&&!s.has(t)){const r=ls(t);s.push({id:r,message:e('product.error.'.concat(r))})}}}),[e,s]),triggerCalculation:Tn(((e,t)=>{i.query({cart:e,orderId:t,lineItems:l})}),[i,l])}},ys=()=>{const{widgetViewState:e,returnViewState:t,config:{options:{autoOpen:r,autoOpenTriggerEndpoint:n,autoOpenTriggerMethod:o,monitorNetworkOverwrites:s,networkInterceptionMethod:l}}}=Gi(),{fetchAndUpdateCart:c,handleResponseErrors:u,triggerCalculation:d}=_s(),[h,f]=Nn(!1);xn((()=>{if('none'!==l){let e;try{e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{monitor:r=!1,method:n}=t;if('none'===n)return Ve.warn('Network interception method set to \'none\'; skipping interceptor initialization.'),()=>{};let o,i,a,s;switch(n){case'fetch':a='fetch',o=cs(e);break;case'xhr':a='xhr',i=us(e);break;default:a='both',o=cs(e),i=us(e)}return Ve.info('Using network interception method: '.concat(a)),r&&(Ve.info('Monitoring network interceptors'),s=setInterval((()=>{o&&!window.fetch.rf_interception&&(Ve.info('Re-initializing fetch interceptor'),o(s),o=cs(e)),i&&!window.XMLHttpRequest.rf_interception&&(Ve.info('Re-initializing XHR interceptor'),i(s),i=us(e))}),200)),()=>{var e,t;null===(e=o)||void 0===e||e(s),null===(t=i)||void 0===t||t(s)}}((e=>Er.publish(Nr.FetchInterception,e)),{monitor:s,method:l}),f(!0)}catch(e){Ve.error('Error initializing fetch interceptor:',e)}return()=>{var t;null===(t=e)||void 0===t||t()}}f(!1)}),[s,l]);const m=Tn((async s=>{let{detail:{response:l,requestUrl:h}}=s;const f=h instanceof URL?h.toString():h,m=function(e,t){const r=ps[null!=t?t:'add'];if(!e||'string'!=typeof e)return{isValid:!1,isForbidden:!1,isTriggerEndpoint:!1,triggerEndpointPaths:r};const n=['?_','rf=true'].some((t=>e.includes(t))),o=gs.some((t=>e.includes(t))),i=r.some((t=>e.includes(t)));return!n&&o?{isValid:!0,isForbidden:!1,isTriggerEndpoint:i,triggerEndpointPaths:r}:{isValid:!1,isForbidden:n,isTriggerEndpoint:i,triggerEndpointPaths:r}}(f,n),{isValid:p,isForbidden:g,isTriggerEndpoint:v}=m;if(!p||g)return void Ve.info('Intercepted request to '.concat(f,' is invalid or forbidden.'),m);Ve.info('Intercepted request to '.concat(f),m);const b=await c();if(!b)return;const{transformedCart:_,hasChanged:y}=b;switch(await u(l),y&&d(_,b.order.orderData.id),o){case'change':if(!y)return;break;case'endpoint':if(!v)return;break;default:if(!v||!y)return}t.set(a.Collapsed),!1!==r&&e.set(i.Open)}),[c,u,d,e,t,r,n,o]);return xn((()=>{const e=Er.subscribe(Nr.FetchInterception,m);return()=>{e()}}),[m]),{initialized:h}},Cs=()=>{const{widgetViewState:e,config:{options:{overrideScrollBlocking:t}}}=Gi();xn((()=>{if(!t)return;Ve.info('Overriding scroll blocking behavior');const e=Event.prototype.preventDefault;return Event.prototype.preventDefault=function(){'wheel'!==this.type&&'mousewheel'!==this.type&&'DOMMouseScroll'!==this.type&&'touchmove'!==this.type&&e.call(this)},()=>{Event.prototype.preventDefault=e}}),[t,e.value])};const ws=()=>{const{widgetViewState:e,config:{options:{cartActivatorSelector:t}}}=Gi();xn((()=>{if(!t)return;const r=new AbortController,n=new WeakSet,o=t=>{Ve.info('Cart activator clicked',t),t.preventDefault(),t.stopPropagation(),e.set(i.Open)},a=()=>{try{const e=document.querySelectorAll(t);e.length>0&&(Ve.info('Attaching click listeners to cart activators',e),(e=>{e.forEach((e=>{if(!n.has(e))try{const t=(e=>{const t=e.parentNode;if(t){const r=e.cloneNode(!0);return t.replaceChild(r,e),r}return e})(e);t.removeAttribute('onclick'),t.addEventListener('click',o,{signal:r.signal}),n.add(t)}catch(e){Ve.error('Failed to attach listener to cart activator',e)}}))})(e))}catch(e){Ve.error('Failed to set cart activator selector',e)}};a();const s=new MutationObserver((e=>{let r=!1;e.forEach((e=>{e.addedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE){var n,o;const i=e;null!==(n=i.matches)&&void 0!==n&&n.call(i,t)&&(r=!0),(null===(o=i.querySelectorAll)||void 0===o?void 0:o.call(i,t).length)>0&&(r=!0)}})),e.removedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE){var r,n;const o=e;null!==(r=o.matches)&&void 0!==r&&r.call(o,t)||null===(n=o.querySelectorAll)||void 0===n||n.call(o,t).length}}))})),r&&(Ve.info('Reinitializing cart activators'),setTimeout((()=>{a()}),0))}));return s.observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),()=>{r.abort(),s.disconnect()}}),[t,e])},ks=()=>(ys(),ws(),Cs(),(()=>{const{widgetViewState:e}=Gi(),{fetchAndUpdateCart:t,triggerCalculation:r}=_s(),n=Tn((()=>{e.set(i.Open)}),[e]),o=Tn((()=>{e.set(i.Collapsed)}),[e]),a=Tn((()=>{let t;t=e.value===i.Open?i.Collapsed:i.Open,e.set(t)}),[e]),s=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&r(e.transformedCart,e.order.orderData.id)}),[t,r]),l=Tn((async()=>{await t()}),[t]),c=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&r(e.transformedCart,e.order.orderData.id)}),[t,r]),u=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&(n(),r(e.transformedCart,e.order.orderData.id))}),[t,n,r]);xn((()=>{const e=Er.subscribe(xr.DrawerOpen,n),t=Er.subscribe(xr.DrawerClose,o),r=Er.subscribe(xr.DrawerToggle,a),i=Er.subscribe(xr.CalculationRefetch,s),d=Er.subscribe(xr.CartRefetch,l),h=Er.subscribe(xr.CartAndCalculationRefetch,c),f=Er.subscribe(xr.DrawerOpenAndRefetch,u);return()=>{e(),t(),r(),i(),d(),h(),f()}}),[n,o,a,s,l,c,u])})(),is(),(()=>{var e,t;const{start:r,isActive:n,activeTutorial:o,hasSeenTutorial:i}=ja(),{config:a}=Gi(),[s,l]=Nn(!1),c=Sn((()=>Object.values(Va).find((e=>{var t;return null===(t=e.options)||void 0===t?void 0:t.autoStart}))),[]),u='first-load'===(null==c||null===(e=c.options)||void 0===e?void 0:e.showMode)?a.isFirstLoad&&!i(c.id):!i(null!==(t=null==c?void 0:c.id)&&void 0!==t?t:''),d=!!c&&!s&&u,h=Ma({id:c?'tutorial:'.concat(c.id):'tutorial',priority:Di.tutorial,open:d}),f=En(!1);xn((()=>{h&&c&&!n&&!f.current&&(f.current=!0,r(c))}),[h,c,n,r]);const m=En(!1);xn((()=>{n&&(null==o?void 0:o.id)===(null==c?void 0:c.id)?m.current=!0:m.current&&(m.current=!1,l(!0))}),[n,o,c])})(),null),Ns=e=>{let{children:t}=e;return Aa()?t:null},xs=e=>{let{children:t}=e;const[r,o]=Nn([]),i=En(0),a=Tn((e=>{o((t=>{const r=t.find((t=>t.id===e.id)),o=r?r.seq:i.current++;return[...t.filter((t=>t.id!==e.id)),n(n({},e),{},{seq:o})]}))}),[]),s=Tn((e=>{o((t=>t.filter((t=>t.id!==e))))}),[]),l=Sn((()=>0===r.length?null:r.reduce(((e,t)=>t.priority!==e.priority?t.priority>e.priority?t:e:t.seq<e.seq?t:e)).id),[r]),c=Sn((()=>({acquire:a,release:s,activeId:l})),[a,s,l]);return Zr(Fi.Provider,{value:c,children:t})},Es=['array'],Ss=e=>{var t,r,i,a;let{children:s}=e;const l=Li(),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const[t,r]=Nn(e),n=Tn((e=>{r(e)}),[]),o=Tn((e=>{r((t=>{if(Array.isArray(e)){const r=e.filter((e=>!t.some((t=>t.id===e.id))));return[...t,...r]}return t.some((t=>t.id===e.id))?t:[...t,e]}))}),[]),i=Tn((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),a=Tn((()=>{r([])}),[]),s=Tn((e=>t.some((t=>t.id===e))),[t]);return{array:t,set:n,push:o,remove:i,clear:a,has:s}}(),{array:u}=c,d=o(c,Es),{cartState:h,orderState:f,calculationState:m}=Zi(),p=null===(t=f.value.data)||void 0===t?void 0:t.orderData,g=null===(r=m.value.data)||void 0===r?void 0:r.lineItems,v=null!==(i=null===(a=h.value.data)||void 0===a?void 0:a.transformed.item_count)&&void 0!==i?i:0,b=Sn((()=>{const e=[];if(p&&g&&Array.isArray(g)){var t;const{refundReturnWindow:r=!0}=null!==(t=p.returnWindows)&&void 0!==t?t:{},n='refund-window-expired';if(!r&&0===v){const t=l('product.error.refund_expired');e.push({id:n,message:t,blocking:!0})}const o=tt(p.productRules,'NO_REFUND'),i=g.filter((e=>{const t=$e(e.productId);return!!t&&o.includes(Number(t))}));if(i.length>0&&0===v){const t=i.map((e=>{const t=p.productsToExchange.find((t=>t.id===e.id));if(!t)return null;let r=t.title;return t.variantTitle&&(r+=' ('.concat(t.variantTitle,')')),r})).filter(Boolean).join(', '),r=l.rich('product.error.no_refund',{product_name:t,b:e=>{if(!e)return null;const t=e.toString().split(', ');return t.map(((e,r)=>{let n=null;return r===t.length-2?n=' '.concat(l('common.and'),' '):r<t.length-1&&(n=', '),Zr(Vt,{children:[Zr('span',{className:'text-neutral-3',children:e}),n]},r)}))}});e.push({id:n,message:r,blocking:!0})}}return e.concat(u)}),[u,p,g,v,l]),_=n({errors:b},d);return Zr(vs.Provider,{value:_,children:s})},Ts=e=>{const{id:t,initialValue:r=null,queryFn:o,queryOnInit:i=!0,onError:a,startCount:s=0}=e,[l,c]=Nn({data:r,pending:i,error:null}),u=En(!0),[d,h]=Nn(s),f=En(d),m=Tn((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];const s=r[0],l=f.current+1;f.current=l,h(l),c((e=>n(n({},e),{},{pending:!0,error:null})));return(async()=>{try{Ve.info('AsyncState Query Started (Count: '.concat(l,')'),t?' (ID: '.concat(t,')'):'');const e=await(0===r.length?o(l):o(l,s));return f.current!==l?(Ve.info('AsyncState Query Stale - Ignoring (Count: '.concat(l,', Current: ').concat(f.current,')'),t?' (ID: '.concat(t,')'):''),null):(c({data:e,pending:!1,error:null}),Ve.info('AsyncState Query Resolved (Count: '.concat(l,')'),t?' (ID: '.concat(t,')'):'',e),e)}catch(e){if(f.current!==l)return null;const r=e;let n='AsyncState Query Failed (Count: '.concat(l,')');return t&&(n+=' (ID: '.concat(t,')')),Ve.error(''.concat(n,':'),'['.concat(r,']'),s),c({data:null,pending:!1,error:r}),null==a||a(r),null}})()}),[o,t,a]);xn((()=>{if(u.current&&i){u.current=!1;void 0!==e&&'initialParams'in e?m(e.initialParams):m()}}),[m,i,e]);const p=l.pending&&null===l.data;return{value:l,set:c,query:m,count:d,initialFetch:p}},Is=['storeResult','shouldUseCachedResult','logging'],Ms=new Map;async function As(e){var t;let{isFirstLoad:r,internalReturnId:n,lineIds:i}=e;const a=''.concat(n,'_').concat(i),s=await async function(e,t){const{storeResult:r=!0,shouldUseCachedResult:n=!0,logging:i=!0}=t,a=o(t,Is);if(n){const e=ze.get(a);if(null!==e)return i&&Ve.info('Using cached data for '.concat(a.key,' from ').concat(a.type)),e}const s=''.concat(a.type,':').concat(a.key),l=Ms.get(s);if(l)return l;const c=(async()=>{try{const t=await e();return r&&ze.set(a,t),t}catch(e){throw i&&Ve.error('Failed to persist data for '.concat(a.key,' from ').concat(a.type),e),e}finally{Ms.delete(s)}})();return Ms.set(s,c),c}((()=>Fr.GET('/shop-overlay',{params:{query:{internalId:n,orderLines:i}}})),{key:a,type:'sessionStorage',shouldUseCachedResult:!r});if(s.error||null===(t=s.data)||void 0===t||!t.responseObject)throw Ve.error('Failed to fetch shop overlay data for internalId: '.concat(n,' and lineIds: ').concat(i),s.error),new Error('Failed to fetch shop overlay data');return s.data.responseObject}async function Rs(e){var t,r,n,o;let{isFirstLoad:i,options:{clearCartOnStart:a},id:c,data:u}=e,d=null;if(i){var h;const e=null!==(h=u.exchangeItems)&&void 0!==h?h:[];if(e.length>0){const t=e.map((e=>({id:e.variantId,quantity:e.quantity})));Ve.info('Setting cart items from cached return items on initialization.',t),d=await async function(e){const t=await it();if(0===e.length)return t;if(l()){const t=s();if(null!=t&&t.addItems){const r=e.map((e=>({merchandiseId:et(e.id),quantity:e.quantity})));Ve.info('[CartProvider] Using provider.addItems() (setCartItems)',r);const n=await t.addItems(r);return lt(n),n}Ve.info('[CartProvider] Provider exists but addItems not implemented, falling back to /cart/add.js')}return await Je('/cart/add.js',{method:'POST',body:JSON.stringify({items:e})}),ot(!1)}(t)}else a&&(Ve.info('Clearing cart on initialization as per configuration.'),d=await it());lt(d);const t=(new Date).getTime()+He;ze.set(Oe,t);const r=new URL(window.location.href);r.searchParams.delete(_r),yr.forEach((e=>{r.searchParams.delete(e)})),window.history.replaceState(null,'',r)}ze.set(Re,c);const f=null!==(t=null===(r=null!==(n=null===(o=u.formData)||void 0===o?void 0:o.selectedItems)&&void 0!==n?n:[])||void 0===r?void 0:r.map((e=>e.id)).join(','))&&void 0!==t?t:'';return{orderData:await As({isFirstLoad:i,internalReturnId:c,lineIds:f}),updatedCart:d}}const Ps=e=>{let{children:t}=e;const{returnViewState:r,config:n}=Gi(),o=n.isFirstLoad,i=Ts({id:'cart',queryOnInit:!1,queryFn:async(e,t)=>{const n=window.location.pathname.startsWith('/cart'),o=1===e,i=!o||n,s=await ot(!i);0!==s.item_count&&o&&r.set(a.Collapsed);const{cart:l}=rt(s,t.orderData.productRules);return{transformed:l,original:s}}}),s=Ts({id:'order',queryFn:async()=>{const e=await Rs(n);if(e.updatedCart&&o){const{cart:t}=rt(e.updatedCart,e.orderData.productRules);i.set({data:{original:e.updatedCart,transformed:t},pending:!1,error:null})}else i.query(e);return e}}),l=Ts({id:'updateSessionCache',queryOnInit:!1,queryFn:async(e,t)=>{const r=n.id;r&&await async function(e,t){try{var r;Ve.info('Setting session cache for internalId:',e,t);const n=await Fr.PATCH('/userflow/session/{id}',{params:{path:{id:e}},body:{data:t}});return Ve.info('Session cache set successfully:',n),null===(r=n.data)||void 0===r?void 0:r.responseObject}catch(e){throw Ve.error('Error setting session cache:',e),e}}(r,t)}}),c=Ts({id:'calculation',queryOnInit:!1,queryFn:async(e,t)=>{var r,o;const i=n.id,a=(null===(r=t.cart)||void 0===r?void 0:r.items)||[];if(i){const e=Array.isArray(a)?a.map((e=>function(e){var t,r,n;return{variantId:e.variant_id,handle:e.handle,price:(n=e.price,Ze(n)?0:n/100),title:e.product_title,variantTitle:null!==(t=e.variant_title)&&void 0!==t?t:'',image:e.image,quantity:null!==(r=e.quantity)&&void 0!==r?r:1}}(e))):[];l.query({exchangeItems:e})}const s=(null===(o=n.data.formData)||void 0===o||null===(o=o.packages)||void 0===o?void 0:o.length)||1;return await async function(e,t){var r;let{orderId:n,cart:o,lineItems:i}=e;const a=(o.items||[]).map((e=>({variantId:'gid://shopify/ProductVariant/'.concat(e.variant_id),quantity:e.quantity}))),s=(i||[]).map((e=>({lineItemId:e.lineItemId,quantity:1,action:e.action}))),l=await Fr.POST('/calculation/{uuid}',{params:{path:{uuid:n}},body:{lineItems:s,exchangeTo:a,numOfLabels:t}});var c,u;if(l.error||null===(r=l.data)||void 0===r||!r.responseObject)throw Ve.error('Failed to fetch calculation data for orderId: '.concat(n),l.error),new Error('Failed to fetch calculation: '.concat(null!==(c=null===(u=l.error)||void 0===u?void 0:u.message)&&void 0!==c?c:'Unknown error'));return l.data.responseObject}(t,s)}}),[u]=((e,t)=>{const r=Nn(!1),n=En(!1);return xn((()=>{n.current||e((()=>{r[1](!0),n.current=!0}))}),t),r})((e=>{var t;const r=s.value.data,o=null===(t=i.value.data)||void 0===t?void 0:t.transformed,a=n.data.formData;if(r&&o){e();const t=Ke(a);c.query({cart:o,orderId:r.orderData.id,lineItems:t})}}),[s.value.data,i.value.data,c.query]),d=!u||i.value.pending||c.value.pending,h=Sn((()=>s.value.error||i.value.error||c.value.error),[s.value.error,i.value.error,c.value.error]),f=Boolean(h),m=Sn((()=>({orderState:s,cartState:i,calculationState:c,updateSessionCacheState:l,isPending:d,hasFailed:f})),[s,i,c,l,d,f]);return Zr(Wi.Provider,{value:m,children:t})};var Os;(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(Os||(Os={}));const Hs={backgroundColor:'#FFFFFF',accentBackgroundColor:'#F5F5F5',primaryCTAColor:'#000000',primaryCTATextColor:'#FFFFFF',secondaryCTAColor:'#E5E5E5',secondaryCTATextColor:'#000000',primaryTextColor:'#000000',secondaryTextColor:'#737373'},Ls=()=>{const{config:{theme:e}}=Gi(),t=Sn((()=>{const t=n({},Hs);for(const[r,n]of Object.entries(null!=e?e:{}))n&&(t[r]=n);return Object.entries(t).reduce(((e,t)=>{let[r,n]=t;const o=function(e){e=e.replace('#','');const t=parseInt(e.substring(0,2),16)/255,r=parseInt(e.substring(2,4),16)/255,n=parseInt(e.substring(4,6),16)/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=o-i,s=(o+i)/2;let l=0,c=0;if(0!==a)switch(c=s>.5?a/(2-o-i):a/(o+i),o){case t:l=((r-n)/a+(r<n?6:0))/6;break;case r:l=((n-t)/a+2)/6;break;case n:l=((t-r)/a+4)/6}const u=Math.round(360*l),d=Math.round(100*c),h=Math.round(100*s);return''.concat(u,', ').concat(d,'%, ').concat(h,'%')}(n);return e['--'.concat(r.replace(/([a-z0-9])([A-Z])/g,'$1-$2').replace(/([A-Z]+)([A-Z][a-z])/g,'$1-$2').toLowerCase())]=o,e}),{})}),[e]);return{theme:e,cssVariables:t}},Bs=e=>{const t=En(null),{cssVariables:r}=Ls();return Zr(Ra.Provider,{value:t,children:Zr('div',n({onTouchStart:e=>e.stopPropagation(),className:'rf-root',ref:t,id:Cr,style:r},e))})},Ds=new Set;function Fs(){var e;return null!==(e=ze.get(De))&&void 0!==e?e:[]}function zs(e){return Fs().includes(e)||Ds.has(e)}function Us(e){var t,r;'active'===e.status&&('once'===(null===(t=e.tutorial.options)||void 0===t?void 0:t.showMode)?function(e){const t=Fs();t.includes(e)||ze.set(De,[...t,e])}(e.tutorial.id):'first-load'===(null===(r=e.tutorial.options)||void 0===r?void 0:r.showMode)&&Ds.add(e.tutorial.id));return{status:'inactive'}}const js=e=>{let{children:t}=e;const[r,o]=Nn({status:'inactive'}),i=Tn((e=>{0!==e.steps.length&&(zs(e.id)||o({status:'active',tutorial:e,stepIndex:0}))}),[]),a=Tn((()=>{o((e=>Us(e)))}),[]),s=Tn((()=>{o((e=>{if('active'!==e.status)return e;const t=e.stepIndex+1;return t>=e.tutorial.steps.length?Us(e):n(n({},e),{},{stepIndex:t})}))}),[]),l=Tn((()=>{o((e=>'active'!==e.status?e:n(n({},e),{},{stepIndex:Math.max(0,e.stepIndex-1)})))}),[]),c=Tn((e=>{o((t=>{if('active'!==t.status)return t;const r=t.tutorial.steps.findIndex((t=>t.id===e));return-1===r?t:n(n({},t),{},{stepIndex:r})}))}),[]),u='active'===r.status?r.tutorial:null,d='active'===r.status?r.tutorial.steps[r.stepIndex]:null,h=Tn((e=>(null==d?void 0:d.id)===e),[d]),f=Sn((()=>({state:r,activeTutorial:u,currentStep:d,isActive:'active'===r.status,start:i,stop:a,next:s,previous:l,goToStep:c,isStepActive:h,hasSeenTutorial:zs})),[r,u,d,i,a,s,l,c,h]);return Zr(Ua.Provider,{value:f,children:t})},Gs=['children'],qs=e=>{let{children:t}=e,r=o(e,Gs);const n=zi(i.Collapsed,(e=>{Er.publish(Nr.DrawerStateChange,{state:e}),document.querySelectorAll('[inert]').forEach((e=>{e.removeAttribute('inert')}))})),s=zi(a.Open),l=Sn((()=>({widgetViewState:n,returnViewState:s,config:r})),[n,s,r]);return Zr(ji.Provider,{value:l,children:t})},Vs=['duration'],Ws=e=>{let{children:t}=e;const[r,i]=Nn([]),a=Tn((e=>{i((t=>t.map((t=>{var r;t.id===e&&(null===(r=t.onClose)||void 0===r||r.call(t));return t.id===e?n(n({},t),{},{isVisible:!1}):t})))),setTimeout((()=>{i((t=>t.filter((t=>t.id!==e))))}),300)}),[]),s=Tn((e=>{let{duration:t=rs}=e,r=o(e,Vs);const s=r.id||'toast-'.concat(Math.random().toString(36).substr(2,9));return i((e=>[...e,n(n({},r),{},{id:s,duration:t,isVisible:!0})])),setTimeout((()=>a(s)),t),s}),[a]),l=Tn((()=>{i((e=>e.map((e=>{var t;return null===(t=e.onClose)||void 0===t||t.call(e),n(n({},e),{},{isVisible:!1})})))),setTimeout((()=>{i([])}),300)}),[]),c={queue:r,add:s,remove:a,clear:l};return Zr(ns.Provider,{value:c,children:t})};const Zs=['className'],Xs=e=>{let{className:t}=e,r=o(e,Zs);return Zr('svg',n(n({width:21,height:21,viewBox:'0 0 21 21',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--action '.concat(t||'')},r),{},{children:[Zr('rect',{x:.5,y:.679,width:20,height:20,rx:10,className:'fill-[var(--icon-fill-1,_#000)]'}),Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M11.517 6.04q.088.055.127.157c.025.066.03.14.013.209l-.775 3.13h2.826q.088 0 .16.052a.3.3 0 0 1 .108.14.35.35 0 0 1-.055.348l-4.083 4.822a.3.3 0 0 1-.168.098.27.27 0 0 1-.187-.037.3.3 0 0 1-.127-.156.35.35 0 0 1-.013-.21l.775-3.129H7.292a.27.27 0 0 1-.16-.053.3.3 0 0 1-.108-.14.35.35 0 0 1 .055-.348l4.083-4.821a.3.3 0 0 1 .168-.098.27.27 0 0 1 .187.037',className:'fill-[var(--icon-fill-2,_#fff)]'})]}))},Ks=['className'],Ys=e=>{let{className:t}=e,r=o(e,Ks);return Zr('svg',n(n({width:21,height:21,viewBox:'0 0 21 21',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--info '.concat(t||'')},r),{},{children:[Zr('path',{className:'fill-[var(--icon-fill-2,_#fff)]',d:'M6.856 4.628h7.288v12.226H6.856z'}),Zr('path',{className:'fill-[var(--icon-fill-1,_#000)]',d:'M17.572 3.67C13.666-.235 7.335-.236 3.429 3.67c-3.905 3.905-3.905 10.237 0 14.143 3.905 3.904 10.237 3.904 14.143 0 3.905-3.906 3.904-10.238 0-14.143m-5.768 11.419a1.304 1.304 0 1 1-2.609 0V9.87a1.304 1.304 0 1 1 2.61 0zm-1.327-7.447c-.752 0-1.252-.532-1.237-1.19-.015-.688.485-1.204 1.252-1.204s1.252.516 1.268 1.205c0 .657-.5 1.189-1.283 1.189'})]}))},Js=['className'],Qs=e=>{let{className:t}=e,r=o(e,Js);return Zr('svg',n(n({width:20,height:15,viewBox:'0 0 20 15',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--giftcard fill-[var(--icon-fill-1,_currentColor)] '.concat(t||'')},r),{},{children:[Zr('path',{d:'M8.23 3.129c-.288 0-.602.11-.82.37-.284.342-.373 1.362-.363 1.877.48.012 1.4-.001 1.771-.395.39-.411.496-1.13.082-1.568a.9.9 0 0 0-.67-.284m-3.666 0c.288 0 .603.11.82.37.284.342.373 1.362.363 1.877-.48.012-1.399-.001-1.77-.395-.39-.411-.496-1.13-.083-1.568a.9.9 0 0 1 .67-.284'}),Zr('path',{d:'M9.806 2.447c.73.773.828 1.99.328 2.929H20V1.948C20 .872 19.178 0 18.165 0H7.038v2.103c.9-.54 2.036-.43 2.768.344.417.44-.732-.775 0 0M4.347 9.21l-.91-.962L4.85 6.74H0v6.312C0 14.128.821 15 1.835 15h3.919V7.71zm3.589-2.47L9.33 8.236l-.912.959-1.38-1.48V15h11.126C19.18 15 20 14.128 20 13.052V6.74zM2.659 5.376c-.5-.939-.403-2.157.327-2.929.732-.775 1.869-.883 2.768-.344V0h-3.92C.822 0 0 .872 0 1.948v3.428z'})]}))},$s=['className'],el=e=>{let{className:t}=e,r=o(e,$s);return Zr('svg',n(n({width:30,height:27,viewBox:'0 0 30 27',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--warning fill-[var(--icon-fill-1,_#000)] '.concat(t||'')},r),{},{children:[Zr('path',{d:'M15 18.904c-.81 0-1.49.68-1.49 1.49s.68 1.489 1.49 1.489c.78 0 1.489-.68 1.453-1.454A1.454 1.454 0 0 0 15 18.904'}),Zr('path',{d:'M28.784 24.182a5.09 5.09 0 0 0 .012-5.147L19.467 2.88A5.07 5.07 0 0 0 15.006.289c-1.87 0-3.539.97-4.462 2.585l-9.34 16.173a5.13 5.13 0 0 0 .017 5.177 5.1 5.1 0 0 0 4.45 2.555h18.633c1.865 0 3.539-.97 4.48-2.597m-2.025-1.167a2.82 2.82 0 0 1-2.46 1.423H5.665a2.78 2.78 0 0 1-2.43-1.394 2.82 2.82 0 0 1-.006-2.841l9.34-16.167a2.76 2.76 0 0 1 2.437-1.412c1.018 0 1.93.53 2.436 1.417l9.335 16.168c.5.87.494 1.918-.018 2.806'}),Zr('path',{d:'M14.63 8.45c-.709.202-1.15.846-1.15 1.626.036.47.066.947.102 1.418l.303 5.343A1.09 1.09 0 0 0 15 17.886c.608 0 1.085-.471 1.114-1.085 0-.369 0-.708.036-1.084.066-1.15.137-2.3.203-3.449.035-.744.101-1.49.137-2.234a1.8 1.8 0 0 0-.137-.744 1.49 1.49 0 0 0-1.722-.84'})]}))},tl=()=>Zr(ia,{className:'rf-banner-skeleton h-12 rounded-lg'}),rl=['className','children','tone','border','icon','pending'],nl=ea('rf-banner text-black rounded-lg flex items-center gap-2.5 p-3 min-h-12 font-medium leading-tight',{variants:{tone:{info:'rf-banner--info bg-banner-info-background [--icon-fill-1:hsl(var(--rf-c-banner-info-foreground))]',tip:'rf-banner--tip bg-banner-tip-background [--icon-fill-1:hsl(var(--rf-c-banner-tip-foreground))]',action:'rf-banner--action bg-banner-action-background [--icon-fill-1:hsl(var(--rf-c-banner-action-foreground))]',error:'rf-banner--error bg-banner-error-background [--icon-fill-1:hsl(var(--rf-c-banner-error-foreground))]',giftcard:'rf-banner--giftcard bg-[#F1F3FE] [--icon-fill-1:hsl(var(--rf-c-primary))]'},border:{dashed:'border border-dashed border-[color:var(--icon-fill-1)]'}},defaultVariants:{tone:'info'}}),ol={className:'rf-banner__icon',width:20,height:20};function il(e){switch(e){case'action':return Zr(Xs,n({},ol));case'error':return Zr(el,n({},ol));case'giftcard':return Zr(Qs,n({},ol));default:return Zr(Ys,n({},ol))}}var al=Fn((e=>{var t;let{className:r,children:i,tone:a,border:s,icon:l,pending:c=!1}=e,u=o(e,rl);return Zr(Yi,{skeleton:Zr(tl,{}),pending:c,children:Zr('aside',n(n({className:We(nl({tone:a,border:s}),r)},u),{},{children:[il(null!==(t=null!=l?l:a)&&void 0!==t?t:'info'),Zr('span',{className:'rf-banner__text flex-1',children:i})]}))})}));const sl=()=>{var e,t,r,n;const o=Li('banner'),{orderState:i,calculationState:a}=Zi(),s=null!==(e=null===(t=i.value.data)||void 0===t?void 0:t.orderData.instantExchange)&&void 0!==e&&e,l=null!==(r=null===(n=a.value.data)||void 0===n?void 0:n.returnLabelPrice)&&void 0!==r?r:0;return i.value.data&&a.value.data?Zr(al,s?{className:'rf-exchange-banner',tone:'action',children:o('fast_exchange')}:0===l?{className:'rf-exchange-banner',tone:'tip',children:o('free_shipping_label')}:{className:'rf-exchange-banner',children:o('exchange_info')}):Zr(tl,{})},ll=['fractionDigits'],cl=['currencyDisplay'],ul=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{config:i}=Gi(),{calculationState:a,cartState:s}=Zi(),l=null===(e=s.value.data)||void 0===e?void 0:e.transformed.currency,c=null===(t=a.value.data)||void 0===t?void 0:t.currency.localCurrency,u=r.currency||c||i.currency||l||'DKK',d=Bi(),h=Tn(((e,t)=>{var r;const n=null===(r=a.value.data)||void 0===r?void 0:r.currency;return e*(null!=t?t:Xe(null==n?void 0:n.exchangeRate,1))}),[a.value.data]);return{format:Tn(((e,t)=>{'string'==typeof e&&(e=parseFloat(e));const i=n(n({},r),t),{fractionDigits:a=2}=i,s=o(i,ll),l=n({currency:u,minimumFractionDigits:a,maximumFractionDigits:a},s),{currencyDisplay:c}=l,h=o(l,cl);return'none'===c?d.number(e,h):d.number(e,n({style:'currency',currencyDisplay:c},h))}),[d,r,u]),applyExchangeRate:h,currency:u}},dl=()=>{var e,t;const{applyExchangeRate:r}=ul(),{calculationState:o,cartState:i}=Zi(),a=i.value.data,s=o.value.data;return n({itemCount:null!==(e=null===(t=i.value.data)||void 0===t?void 0:t.transformed.item_count)&&void 0!==e?e:0},Sn((()=>{var e;if(!s||!a)return{orderTotal:0,cartTotal:0,returnTotal:0,giftcardValue:0,totalPriceDiscount:0,giftCardBonusAmount:0,returnLabelPrice:0,isRefunding:!1};const{orderSubtotal:t,returnSubtotal:n,total:o,refundMethods:i,exchange:l,giftCardBonusAmount:c,returnLabelPrice:u}=s,d=r(null!==(e=null==l?void 0:l.discountSummary.adjustedDiscountTotal)&&void 0!==e?e:0),h=Xe(r(null==i?void 0:i.giftcard)),f=r(n)-h,m=Math.abs(r(o));return{orderTotal:r(t),cartTotal:f,returnTotal:m,giftcardValue:h,totalPriceDiscount:d,giftCardBonusAmount:r(c),returnLabelPrice:r(u),isRefunding:o>0}}),[s,a,r]))},hl=['className'],fl=e=>{let{className:t}=e,r=o(e,hl);return Zr('svg',n(n({width:12,height:12,viewBox:'0 0 13 13',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--star '.concat(t||'')},r),{},{children:Zr('path',{d:'m6.11 1.06 1.7 3.62 3.8.584-2.75 2.817.65 3.979-3.4-1.88-3.398 1.88.649-3.98L.61 5.265l3.8-.584z',fill:'currentColor',stroke:'currentColor',strokeWidth:1.111,strokeLinecap:'round',strokeLinejoin:'round'})}))},ml=['value','compareAtValue','pending','children','className'];function pl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(e.toFixed(t))}var gl=Fn((e=>{let{value:t=0,compareAtValue:r,pending:i,children:a,className:s}=e,l=o(e,ml);const{format:c}=ul(),u=!Ze(r)&&pl(r)>pl(t);return Zr(Yi,{skeleton:Zr(ia,{className:'w-20'}),pending:i,children:Zr('span',n(n({className:We('rf-price font-medium text-base inline-flex flex-col items-end',s)},l),{},{children:[Zr('span',{className:'rf-price__value',children:c(t)}),u&&Zr('span',{className:'rf-price__compare-at text-affirmative line-through text-xs',children:c(r)}),a]}))})}));const vl=()=>Zr('div',{className:'rf-adjustments-table-skeleton space-y-2',children:[Zr(ia,{className:'h-5 w-full'}),Zr(ia,{className:'h-5 w-full'})]}),bl=()=>{const e=Li(),{format:t}=ul(),{calculationState:r}=Zi(),{cartTotal:n,giftcardValue:o,giftCardBonusAmount:i,returnLabelPrice:a,totalPriceDiscount:s}=dl(),l=s>0,c=o>0,u=a>0;return r.value.data?Zr('div',{className:'rf-adjustments-table p-base border-t border-neutral-2',children:Zr('table',{className:'rf-adjustments-table__table w-full',children:Zr('tbody',{className:'rf-adjustments-table__body',children:[l&&Zr(_l,{value:-1*s,className:'text-affirmative',children:e('price_details.price_change')}),u&&Zr(_l,{value:a,className:'text-neutral-3',children:e('price_details.return_label')}),n>0&&Zr(_l,{value:n,children:e('price_details.products')}),c&&Zr(_l,{className:'text-primary',value:o,children:[Zr('span',{className:'align-middle',children:[Zr(Qs,{className:'inline -mt-1 w-4 h-auto'}),' ',e('price_details.giftcard')]}),i>0&&Zr('span',{className:'text-sm text-reward align-middle',children:['+',t(i),' ',Zr(fl,{className:'inline -mt-0.5'})]})]})]})})}):Zr('div',{className:'rf-adjustments-table-loading p-base border-t border-neutral-2',children:Zr(vl,{})})};function _l(e){let{value:t,children:r,className:n}=e;return Zr('tr',{className:We('rf-adjustments-table__row h-6 group/row',n),children:[Zr('th',{scope:'row',className:'rf-adjustments-table__label space-x-2 font-normal text-left group-first/row:pt-0 group-last/row:pb-0 py-0.5',children:r}),Zr('td',{className:'rf-adjustments-table__value text-right',children:Zr(gl,{value:t})})]})}const yl=['className'],Cl=e=>{let{className:t}=e,r=o(e,yl);return Zr('div',n(n({className:We('rf-exchange-adjustments border-t border-neutral-2',t)},r),{},{children:[Zr('div',{className:'rf-exchange-adjustments__banner p-base',children:Zr(sl,{})}),Zr(bl,{})]}))},wl=()=>{var e;const t=Li('announcement'),{cartState:r}=Zi(),n=null===(e=r.value.data)||void 0===e?void 0:e.transformed.item_count,o=0===(null!=n?n:0)?'step_1':'step_2';return Zr('div',{className:'rf-announcement-bar h-14 bg-announcement-background text-announcement-foreground px-base flex items-center justify-between text-sm',children:[Zr(ua,{}),Zr('div',{className:'rf-announcement-bar__content space-x-1',children:[Zr('span',{className:'rf-announcement-bar__step-label text-neutral-3',children:t('this_step')}),Zr('span',{className:'rf-announcement-bar__step-text',children:t(o)})]})]})},kl=['className','errorMessage','instructionMessage'],Nl=e=>{let{className:t,errorMessage:r='Der skete en fejl!',instructionMessage:i='Opdater siden og prøv igen.'}=e,a=o(e,kl);return Zr('div',n(n({className:We('rf-error-screen p-base flex-1',t),role:'alert','aria-live':'assertive'},a),{},{children:Zr('div',{className:'rf-error-screen__content bg-[#FEF2F2] rounded-lg p-base flex flex-col items-center justify-center gap-1 text-center size-full',children:[Zr(el,{className:'mb-2 fill-destructive','aria-hidden':'true'}),Zr('p',{className:'rf-error-screen__message text-neutral-3',id:'error-heading',children:r}),Zr('p',{className:'rf-error-screen__instruction',children:i})]})}))},xl=()=>{const e=Pi().locale,{config:{data:{slug:t}}}=Gi();if(!t)throw new Error('useNavigation must be used within a WidgetContextProvider with a valid slug');return{back:()=>qi.back(e,t),continue:()=>qi.continue(e,t),exit:qi.exit}},El=e=>{const t=Li('dialog.empty_exchange');return Zr(Da.Modal,n(n({className:'text-center flex flex-col gap-2 items-center'},e),{},{priority:Di.emptyExchange,children:[Zr(ua,{children:e=>Zr(na,{className:'flex',style:{zIndex:e},children:Zr(el,{className:'size-3 m-auto -translate-y-px fill-warning'})})}),Zr(Da.Title,{children:t('title')}),Zr(Da.Subtitle,{children:t('subtext')}),Zr(Da.Accept,{children:t('confirm')}),Zr(Da.Reject,{children:t('reject')})]}))},Sl=()=>{const e=Li('confirmation'),t=xl(),{calculationState:r,updateSessionCacheState:o,isPending:i,hasFailed:a}=Zi(),{isRefunding:s,returnTotal:l,itemCount:c}=dl(),{errors:u}=bs(),d=u.filter((e=>e.blocking)),h=!a&&!i&&!o.value.pending&&0===d.length,f=c>0;function m(){h&&t.continue()}const p=Ui({onConfirm:e=>{e.set(!1),m()}});return Zr('div',{className:'rf-exchange-confirmation rounded-t-2xl bg-neutral-1 p-base pb-safe-offset-base space-y-2',children:[Zr('div',{className:'rf-exchange-confirmation__header flex justify-between items-center pb-2',children:[Zr('h3',{className:'rf-exchange-confirmation__title font-medium',children:e(s?'title_refund':'title_checkout')}),Zr(gl,{value:l,pending:r.value.pending})]}),Zr(ya,{disabled:!h,onClick:function(){h&&(f?m():p.state.set(!0))},className:'w-full',icon:fa,children:Zr('span',{children:e(f?'confirm_exchange':'confirm_no_exchange')})}),Zr('p',{className:'rf-exchange-confirmation__disclaimer text-sm text-neutral-3 text-center mx-auto font-normal',children:e(f?'disclaimer_exchange':'disclaimer_no_exchange')}),Zr(El,n({},p.register()))]})},Tl=()=>{const e=Li('common'),{widgetViewState:t}=Gi();return Zr('div',{className:'rf-exchange-header border-t border-neutral-3 p-base flex items-center justify-between',children:[Zr('h2',{className:'rf-exchange-header__title text-xl font-semibold',children:e('title')}),Zr(Ta,{showLabel:!0,className:'rf-exchange-header__close-button',labelProps:{className:'rf-exchange-header__close-text'},onClick:()=>t.set(i.Collapsed)})]})},Il=['className'],Ml=e=>{let{className:t}=e,r=o(e,Il);return Zr('svg',n(n({width:28,height:27,viewBox:'0 0 28 27',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--cart '.concat(t||'')},r),{},{children:Zr('path',{d:'M8.094 20.443c-1.223-.066-1.2-1.856 0-1.919 3.4.013 12.367.004 15.875.006.96 0 1.78-.68 1.996-1.652l1.992-8.979a1.77 1.77 0 0 0-.316-1.46 1.62 1.62 0 0 0-1.293-.653c-1.41 0-13.39-.057-19.525-.082L5.85 1.947C5.617 1.05 4.83.423 3.936.423H.821C.367.423 0 .805 0 1.277s.367.854.82.854h3.116c.154 0 .29.108.33.262L8 16.818a2.5 2.5 0 0 0-1.732.793 2.7 2.7 0 0 0-.738 1.919c.025 1.445 1.174 2.621 2.563 2.621H9.29a3.1 3.1 0 0 0-.278 1.282c0 1.648 1.289 2.99 2.873 2.99s2.872-1.341 2.872-2.99c0-.459-.1-.893-.277-1.282h5.182a3.1 3.1 0 0 0-.277 1.281c0 1.649 1.288 2.99 2.872 2.99s2.873-1.341 2.873-2.99a3.1 3.1 0 0 0-.299-1.326.85.85 0 0 0 .56-.81c0-.47-.368-.853-.822-.853zm5.023 2.99c0 .706-.552 1.281-1.231 1.281-.68 0-1.232-.575-1.232-1.281 0-.707.552-1.281 1.23-1.282h.003c.678 0 1.23.575 1.23 1.282m9.141 1.28c-.678 0-1.23-.574-1.23-1.28 0-.7.54-1.27 1.21-1.282h.04c.67.011 1.212.582 1.212 1.281 0 .707-.553 1.282-1.232 1.282M26.355 7.5q.005.009.003.015l-.84 3.783h-2.842l.484-3.817 3.182.013q.006-.002.013.006m-8.462 9.322v-3.815h2.91l-.483 3.815zm-4.07 0-.488-3.815h2.916v3.815zm-3.779 0h-.002a.45.45 0 0 1-.428-.341l-.9-3.475h2.965l.488 3.816zm3.073-5.524-.494-3.861 3.628.015v3.846zm4.776 0v-3.84l3.612.016-.485 3.824zM10.966 7.43l.495 3.868H8.27L7.267 7.414zm13.003 9.392h-1.993l.483-3.815h2.68l-.773 3.486a.41.41 0 0 1-.397.329',fill:'currentColor'})}))},Al=()=>{const e=Li('exchange_placeholder'),{widgetViewState:t}=Gi();return Zr('div',{className:'rf-exchange-placeholder px-base pb-base',children:Zr('div',{className:'rf-exchange-placeholder__content border border-dashed border-[#DDDDDD] h-36 rounded-md flex items-center justify-center flex-col gap-2 font-medium text-base p-base',children:[Zr(Ml,{className:'text-neutral-3'}),Zr('span',{className:'rf-exchange-placeholder__text',children:e('prompt_text')}),Zr('button',{onClick:()=>t.set(i.Collapsed),className:'rf-exchange-placeholder__continue text-button-background decoration-[color:hsla(var(--rf-c-button-background),_0.25)] underline-offset-4 underline text-sm cursor-pointer',type:'button',children:e('continue')})]})})},Rl=()=>{const{errors:e}=bs();return 0===e.length?null:Zr('div',{className:'rf-product-errors rf-product-view__error-list px-base pb-base space-y-base',children:e.map((e=>{let{id:t,message:r}=e;return Zr(al,{className:'rf-product-view__error animate-slide-up-and-fade-in',tone:'error',children:r},t)}))})},Pl=['coverage'],Ol={min:{limit:1,disabled:!1},max:{limit:99,disabled:!0}};function Hl(e,t){const r='/products/'.concat(t.handle);if(!e)return r;try{const n=e(t);return'string'==typeof n&&n?n:r}catch(e){return r}}const Ll=['onIncrement','onDecrement','constraints','quantity','pending','disabled','className'],Bl=e=>{let{onIncrement:t,onDecrement:r,constraints:i=Ol,quantity:a,pending:s=!1,disabled:l=!1,className:c}=e,u=o(e,Ll);const d=s||l,h=a===i.min.limit,f=a===i.max.limit,m=i.max.disabled&&f||d,p=i.min.disabled&&h||d,g=Tn((async()=>{if(!m)try{await t(f)}catch(e){Ve.error('Increment failed:',e)}}),[m,t,f]),v=Tn((async()=>{if(!p)try{await r(h)}catch(e){Ve.error('decrement failed:',e)}}),[p,r,h]),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ol;return Math.max(t.min.limit,Math.min(e,t.max.limit))}(a,i);return Zr('div',n(n({className:We('rf-quantity-picker rounded-full p-1 border border-neutral-1 flex items-center h-min gap-2 transition-opacity',d&&'rf-quantity-picker--disabled opacity-50 cursor-not-allowed',c)},u),{},{children:[Zr('button',{type:'button',className:'rf-quantity-picker__decrement-button disabled:!opacity-50 desktop:hover:opacity-80 disabled:cursor-not-allowed transition-opacity',disabled:p,onClick:v,children:Zr(Ea,{variant:'solid-inverse',size:'sm',children:Zr('span',{className:'rf-quantity-picker__decrement-icon text-base leading-none -mt-0.5',children:'-'})})}),Zr('div',{className:'rf-quantity-picker__quantity px-1.5 flex-1 text-base',children:b}),Zr('button',{type:'button',className:'rf-quantity-picker__increment-button disabled:!opacity-50 desktop:hover:opacity-80 disabled:cursor-not-allowed transition-opacity',disabled:m,onClick:g,children:Zr(Ea,{variant:'solid-inverse',size:'sm',children:Zr('span',{className:'rf-quantity-picker__increment-icon text-base leading-none -mt-0.5',children:'+'})})})]}))};var Dl=Fn((e=>{let{variantId:t,quantity:r,quantityRule:o}=e;const i=Li('product'),[a,s]=Nn(!1),{cartState:l,isPending:c}=Zi(),u=bs(),{processCartUpdate:d}=_s(),h=Tn((async e=>{s(!0);const r=as.ProductLimit;try{l.set((e=>n(n({},e),{},{pending:!0,error:null})));const o=await at({variantId:t,quantity:e});await d(o),u.has(r)&&u.remove(r)}catch(e){const t=parseInt(e.message),o=isNaN(t)?null:t;l.set((e=>n(n({},e),{},{pending:!1}))),u.push({id:r,message:i('error.'.concat(ls(o)))})}finally{s(!1)}}),[l,t,u,i,d]);if(Ze(r))return null;const{increment:f,constraints:m}=function(e){var t,r,n;const o=null!==(t=null==e?void 0:e.min)&&void 0!==t?t:1,i=null!==(r=null==e?void 0:e.max)&&void 0!==r?r:99;return{min:o,max:i,increment:null!==(n=null==e?void 0:e.increment)&&void 0!==n?n:1,constraints:{min:{limit:o,disabled:!1},max:{limit:i,disabled:!0}}}}(o);return Zr('div',{className:'rf-product-actions flex items-center',children:[Zr(Bl,{pending:c||a,constraints:m,onDecrement:e=>{h(e?0:r-f)},onIncrement:()=>{h(r+f)},quantity:r}),Zr('button',{disabled:c||a,className:'rf-product-actions__remove-button underline ml-auto text-sm disabled:cursor-not-allowed disabled:opacity-50 transition-opacity cursor-pointer',onClick:()=>h(0),type:'button',children:i('remove')})]})}));const Fl=['className','href','unstyled','onClick','onDisabledClick','disabled'],zl=e=>{let{className:t,href:r,unstyled:i=!1,onClick:a,onDisabledClick:s,disabled:l=!1}=e,c=o(e,Fl);const u=l||!r;return Zr('a',n({onClick:function(e){if(l)return e.preventDefault(),void(null==s||s(e));null==a||a(e)},href:u?void 0:r,'aria-disabled':u,className:We('rf-link block',!i&&'transition-opacity',u?i?'cursor-default':'cursor-not-allowed opacity-50':'cursor-pointer',t)},c))},Ul=['title','variantTitle','pending','price','compareAtPrice','className','quantity','href','showQuantity','exchangeRate'];var jl=Fn((e=>{let{title:t,variantTitle:r,pending:i=!1,price:a,compareAtPrice:s,className:l,quantity:c=1,href:u,showQuantity:d=!0,exchangeRate:h}=e,f=o(e,Ul);const m=Li(),{applyExchangeRate:p}=ul(),g=c>1&&d,v=Ze(s)?void 0:p(Xe(s),h),b=p(Xe(a),h);return Zr('div',n(n({className:We('rf-product-attributes flex justify-between gap-4 text-sm leading-tight',l)},f),{},{children:[Zr('div',{className:'rf-product-attributes__info flex-1 min-w-0',children:[u?Zr(zl,{unstyled:!0,href:u,className:'rf-product-attributes__link',children:Zr('h3',{className:'rf-product-attributes__title text-base font-medium line-clamp-1',children:t})}):Zr('h3',{className:'rf-product-attributes__title text-base font-medium line-clamp-1',children:t}),(r||g)&&Zr('h4',{className:'rf-product-attributes__variant text-neutral-3',children:[r,' ',g&&Zr('span',{className:'rf-product-attributes__quantity',children:['(',m('piece',{count:c}),')']})]})]}),Zr(gl,{pending:i,value:b,compareAtValue:v})]}))}));var Gl=Fn((e=>{let{imageSource:t,title:r,href:n}=e;const{widgetViewState:o}=Gi();return Zr('a',{className:'rf-product-image',href:n,onClick:()=>o.set(i.Collapsed),children:Zr(Ki,{className:'rf-product-image__img w-[70px] h-24 rounded-lg border border-neutral-1 object-cover',src:t,alt:r})})}));const ql=['calculation'],Vl=['product','className'],Wl=e=>{let{product:{calculation:t},className:r}=e,i=o(e.product,ql),a=o(e,Vl);const{config:{options:s}}=Gi(),l=Hl(s.getProductUrl,i);return Zr('li',n(n({className:We('rf-product flex gap-4 p-base first:pt-0',r)},a),{},{children:[Zr(Gl,{imageSource:i.image,title:i.product_title,href:l}),Zr('div',{className:'rf-product__content space-y-2 flex-1',children:[Zr(jl,{className:'flex-1',href:l,title:i.product_title,variantTitle:i.variant_title,pending:!t,price:null==t?void 0:t.price,compareAtPrice:null==t?void 0:t.compareAtPrice,quantity:i.quantity,showQuantity:!1}),Zr(Dl,{variantId:i.variant_id,quantity:i.quantity,quantityRule:i.quantity_rule})]})]}))},Zl=()=>{const{cartItems:e}=(()=>{var e,t;const{cartState:r,calculationState:i}=Zi(),a=null===(e=r.value.data)||void 0===e?void 0:e.transformed,s=null===(t=i.value.data)||void 0===t||null===(t=t.exchange)||void 0===t?void 0:t.exchangeDetails;return{cartItems:Sn((()=>{const e=null==a?void 0:a.items;return e?e.map((e=>{let t;const r=null==s?void 0:s.filter((t=>t.variantId?Number($e(t.variantId))===e.variant_id:Number($e(t.productId))===e.product_id));return r&&r.length>0&&(t=r.reduce(((e,t)=>{var r,i,a;let{coverage:s}=t,l=o(t,Pl);const c=null!==(r=null==s?void 0:s.originalUnitPrice)&&void 0!==r?r:l.price,u=null!==(i=null!==(a=null==s?void 0:s.exchangeUnitPrice)&&void 0!==a?a:l.compareAtPrice)&&void 0!==i?i:null;return u&&(e.compareAtPrice?e.compareAtPrice+=u:e.compareAtPrice=u),e.price+=c,n(n({},l),e)}),{price:0,compareAtPrice:null})),n(n({},e),{},{calculation:t})})):[]}),[a,s])}})();return Zr('ul',{className:'rf-product-list border-neutral-2 divide-y divide-neutral-2',children:e.map(((e,t)=>{const r=''.concat(e.id,'-').concat(t);return Zr(Wl,{product:e},r)}))})},Xl=['className'],Kl=e=>{let{className:t}=e,r=o(e,Xl);return Zr('svg',n(n({width:9,height:11,viewBox:'0 0 9 11',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-down '.concat(t||'')},r),{},{children:Zr('path',{d:'m4.92 10.824 3.907-3.972A.6.6 0 0 0 9 6.426.6.6 0 0 0 8.827 6l-.355-.36a.594.594 0 0 0-.842 0L5.346 7.957V.594A.583.583 0 0 0 4.764 0h-.502a.605.605 0 0 0-.608.594v7.39L1.357 5.64a.58.58 0 0 0-.831 0L.172 6A.6.6 0 0 0 0 6.426c0 .161.062.312.173.426l3.907 3.972A.58.58 0 0 0 4.5 11a.58.58 0 0 0 .42-.176',fill:'currentColor'})}))},Yl=['className'],Jl=e=>{let{className:t}=e,r=o(e,Yl);return Zr('svg',n(n({width:11,height:7,viewBox:'0 0 11 7',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--chevron '.concat(t||'')},r),{},{children:Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M10.632 6.183a.95.95 0 0 1-.673.24.97.97 0 0 1-.652-.288l-3.375-3.49-3.375 3.49a.96.96 0 0 1-.652.287.96.96 0 0 1-.673-.24.9.9 0 0 1-.299-.625.88.88 0 0 1 .25-.646L5.244.71a.97.97 0 0 1 1.375 0l4.062 4.2a.9.9 0 0 1 .25.646.9.9 0 0 1-.3.626',fill:'currentColor'})}))},Ql=['isOpen','className','style','children','collapseDelay','autoCloseAfter','onToggle'],$l=e=>{let{isOpen:t,className:r,style:i,children:a,collapseDelay:s=300,autoCloseAfter:l,onToggle:c}=e,u=o(e,Ql);const[d,h]=Nn(t),[f,m]=Nn(t?void 0:0),p=En(null),g=En(),v=En(),b=()=>{const e=p.current;e&&m(e.scrollHeight)};return xn((()=>(g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current),t?(h(!0),l&&c&&(v.current=setTimeout((()=>{c(!1)}),l))):(m(0),g.current=setTimeout((()=>{h(!1)}),s)),()=>{g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current)})),[t,s,l,c]),xn((()=>{if(d&&t){const e=requestAnimationFrame((()=>{b()}));return()=>cancelAnimationFrame(e)}}),[d,t,a]),xn((()=>{t&&d&&b()}),[a,t,d]),d?Zr('div',n(n({className:We('rf-expander overflow-hidden transition-all duration-300 ease-in-out',r),style:n({height:void 0!==f?''.concat(f,'px'):'auto'},'object'==typeof i?i:{})},u),{},{children:Zr('div',{ref:p,children:a})})):null},ec=['className','type'],tc=e=>{let{className:t,type:r}=e,i=o(e,ec);const a=Li('product.badge');return'giftcard'===r?Zr('div',n(n({className:We('rf-return-product-badge rf-return-product__badge rf-return-product__badge--giftcard text-base text-primary',t)},i),{},{children:[Zr(Qs,{className:'inline -mt-1 w-4 h-auto'}),' ',a('giftcard')]})):null},rc=['pending','deleted','href','onDeletedClick','handleAnchorClick'],nc=e=>{let{pending:t=!1,deleted:r=!1,href:i,onDeletedClick:a,handleAnchorClick:s}=e,l=o(e,rc);const c=Li('product');return Zr('div',{className:'rf-return-product-actions rf-return-product__actions flex justify-between items-center',children:[Zr(zl,{onDisabledClick:function(){r&&(null==a||a())},disabled:t||r,onClick:s,className:'rf-return-product__link text-sm underline block',href:i,children:c('go_to_product')}),Zr(tc,n({},l))]})},oc=['calculation'],ic=['product','allProducts','className'],ac=e=>{var t,r,a,s;let{product:{calculation:l},allProducts:c,className:u}=e,d=o(e.product,oc),h=o(e,ic);const f=Li('product.error'),[m,p]=Nn(null),{widgetViewState:g,config:{options:v,data:{formData:b}}}=Gi(),_=Hl(v.getProductUrl,d);function y(){g.set(i.Collapsed)}const C=null!==(t=null==d?void 0:d.quantity)&&void 0!==t?t:1,w=(null!==(r=null==l?void 0:l.price)&&void 0!==r?r:0)*C,k=(null!==(a=null==l?void 0:l.originalPrice)&&void 0!==a?a:0)*C,N=Sn((()=>{const e=c.flatMap((e=>{var t,r;if(e.id!==d.id)return null;const n=null==b||null===(t=b.selectedItems)||void 0===t?void 0:t.filter((t=>t.lineItemId===e.shopifyLineId));return n&&0!==n.length?null===(r=e.calculation)||void 0===r?void 0:r.action:null})).filter((e=>!Ze(e))),t=new Set(e).size>1,r=null==l?void 0:l.action;return t||!r?null:'GIFTCARD'===r?'giftcard':null}),[null==l?void 0:l.action,c,d.id,null==b?void 0:b.selectedItems]),x=!(null!=l&&l.variantId);function E(){x&&p(f('product_unavailable'))}return Zr('li',n(n({className:We('rf-return-product grid grid-cols-[max-content_1fr] gap-x-4 p-base',u)},h),{},{children:[Zr(zl,{disabled:x,onDisabledClick:E,className:'rf-return-product__image-link',onClick:y,href:_,unstyled:!0,children:Zr(Ki,{className:'rf-return-product__image size-[70px] rounded-lg border border-neutral-1 object-cover',src:d.image,alt:d.title})}),Zr('div',{className:'rf-return-product__content flex-1 space-y-1 flex flex-col justify-between',children:[Zr(jl,{className:'text-neutral-3',href:_,title:d.title,variantTitle:d.variantTitle,pending:!l,price:w,compareAtPrice:k,quantity:d.quantity,exchangeRate:null!==(s=null==l?void 0:l.exchangeRate)&&void 0!==s?s:1}),Zr(nc,{pending:!l,deleted:x,href:_,onDeletedClick:E,handleAnchorClick:y,type:N})]}),Zr($l,{className:'col-span-full',isOpen:!!m,autoCloseAfter:5e3,onToggle:e=>p(e?m:null),children:Zr('div',{className:'pt-4',children:Zr(al,{tone:'error',children:m})})})]}))},sc=['className'],lc=e=>{let{className:t}=e,r=o(e,sc);return Zr('li',n(n({className:We('rf-return-product-skeleton flex gap-4 p-base text-sm',t)},r),{},{children:[Zr(ia,{className:'size-[70px] rounded-lg'}),Zr('div',{className:'rf-return-product-skeleton__content flex-1 space-y-1 flex flex-col justify-between',children:[Zr('div',{className:'rf-return-product-skeleton__info space-y-1',children:[Zr(ia,{className:'w-[16ch]'}),Zr(ia,{className:'text-xs w-[12ch]'})]}),Zr(ia,{className:'text-xs w-[16ch]'})]}),Zr(ia,{className:'w-[8ch]'})]}))},cc=()=>{var e,t;const r=Li('return_products'),{returnViewState:o}=Gi(),{orderState:i,calculationState:s}=Zi(),{orderTotal:l}=dl(),c=s.initialFetch,u=null===(e=s.value.data)||void 0===e?void 0:e.lineItems,d=null===(t=i.value.data)||void 0===t?void 0:t.orderData.productsToExchange,h=Sn((()=>u&&d?d.map((e=>{const t=u.find((t=>t.lineItemId===e.shopifyLineId));return n(n({},e),{},{calculation:t})})):[]),[u,d]),f=Boolean(null==h?void 0:h.some((e=>{var t;return'GIFTCARD'===(null===(t=e.calculation)||void 0===t?void 0:t.action)})));return Zr('div',{className:'rf-return-product-list border-b border-neutral-2 relative mb-base group [&[data-state=\'OPEN\']]:mb-[calc(var(--rf-base-spacing)*2)]','data-state':o.value,children:[Zr('div',{className:'rf-return-product-list__header flex justify-between items-center p-base',children:[Zr('button',{className:'rf-return-product-list__toggle-button flex items-center gap-2 font-medium',onClick:function(){o.set((e=>e===a.Collapsed?a.Open:a.Collapsed))},type:'button',children:[Zr('span',{className:'rf-return-product-list__toggle-text',children:r('action')}),Zr(Jl,{className:'transition-transform will-change-transform '.concat(o.value===a.Open?'rotate-180':'rotate-0')})]}),Zr(gl,{value:l,pending:c})]}),Zr('div',{className:'rf-return-product-list__content pb-base group-[&[data-state=\'COLLAPSED\']]:hidden',children:[f&&Zr('div',{className:'rf-return-product-list__container p-base pt-0',children:Zr(al,{className:'rf-return-product-list__banner',tone:'giftcard',children:r('banner.giftcard')})}),Zr('ul',{className:'rf-return-product-list__items divide-y divide-neutral-2',children:Zr(Yi,{pending:c,skeleton:Zr(Vt,{children:[Zr(lc,{}),Zr(lc,{})]}),children:h.map((e=>Zr(ac,{className:'first:pt-0',product:e,allProducts:h},e.id)))})}),Zr(Ea,{className:'absolute inset-x-0 mx-auto bottom-0 translate-y-1/2',variant:'solid',icon:Kl})]})]})},uc=e=>{let{containerRef:t}=e;const{isYScrollable:r,isDirty:n}=(e=>{const[t,r]=Nn(!1),[{isScrolling:n,isDirty:o},i]=Nn({isDirty:!1,isScrolling:!1});return xn((()=>{const t=e.current;if(!t)return;const n=()=>{const e=t.scrollHeight>t.clientHeight;r(e)},o=()=>{const e=t.scrollTop>0;i((t=>({isDirty:!!e||t.isDirty,isScrolling:e})))};n(),o();const a=new ResizeObserver((()=>{n()}));a.observe(t);const s=new MutationObserver((()=>{n()}));return s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:['style','class']}),t.addEventListener('scroll',o,{passive:!0}),()=>{a.disconnect(),s.disconnect(),t.removeEventListener('scroll',o)}}),[e]),{isYScrollable:t,isScrolling:n,isDirty:o}})(t),o=!n&&r;return Zr('div',{className:'rf-scroll-indicator w-full h-36 bg-gradient-to-t from-white to-transparent absolute bottom-full inset-x-0 flex items-end justify-center p-base transition-all pointer-events-none',style:{opacity:o?1:0,visibility:o?'visible':'hidden'},children:Zr('div',{className:'rf-scroll-indicator__content rounded-full py-2.5 w-24 bg-neutral-1 text-center space-x-1 align-middle',children:[Zr('span',{className:'rf-scroll-indicator__text',children:'Scroll'}),' ',Zr(Kl,{className:'inline text-neutral-3 -mt-0.5'})]})})},dc=()=>{const{cartState:e,hasFailed:t}=Zi(),{widgetViewState:r}=Gi(),n=En(null),o=r.value===i.Open,a=e.value.data&&!e.value.error&&0!==e.value.data.transformed.item_count;return Zr('div',{className:We('rf-drawer bg-background text-foreground transition-[transform,visibility] duration-300 ease-in-out z-20 fixed max-desktop:inset-0 desktop:right-0 desktop:inset-y-0 size-full pt-safe flex flex-col desktop:max-w-[var(--rf-desktop-widget-width)]',o?'max-desktop:translate-y-0 desktop:translate-x-0 visible':'max-desktop:translate-y-full desktop:translate-x-full pointer-events-none invisible'),'aria-hidden':!o,inert:!o,tabIndex:o?void 0:-1,children:[Zr(Tl,{}),Zr(wl,{}),Zr('div',{className:'rf-drawer__content flex-1 min-h-0 overflow-y-auto flex flex-col',ref:n,children:[t?Zr(Nl,{}):Zr(Vt,{children:[Zr(cc,{}),Zr(a?Zl:Al,{}),Zr(Rl,{})]}),Zr(Cl,{className:'rf-drawer__adjustments mt-auto'})]}),Zr('div',{className:'rf-drawer__footer relative mt-auto',children:[Zr(uc,{containerRef:n}),Zr(Sl,{})]})]})},hc=['options','className','style'],fc=e=>{let{options:{id:t,tone:r='info',message:i,isVisible:a},className:s,style:l}=e,c=o(e,hc);const{remove:u}=os();return Zr('div',n(n({onClick:()=>u(t),className:We('rf-toast animate-slide-up-and-fade-in overflow-hidden shadow-sm max-w-screen-lg mx-auto','rf-toast--'.concat(r),s)},c),{},{style:n({visibility:a?'visible':'hidden',opacity:a?1:0,transform:a?void 0:'translateY(-20px)',transition:'all '.concat(300,'ms ease-in-out')},'object'==typeof l?l:void 0),children:Zr(al,{tone:r,className:'font-medium',border:'dashed',children:i})}))},mc=()=>{const{queue:e}=os();return 0===e.length?null:Zr('div',{className:'rf-toast__container p-base space-y-base',children:e.map((e=>Zr(fc,{options:e},e.id)))})},pc=['className'],gc=e=>{let{className:t}=e,r=o(e,pc);return Zr('svg',n(n({width:11,height:9,viewBox:'0 0 11 9',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-left '.concat(t||'')},r),{},{children:Zr('path',{d:'m.66 5.202 3.61 3.473c.103.1.24.154.387.154a.56.56 0 0 0 .387-.154l.328-.315a.52.52 0 0 0 0-.749l-2.107-2.03H9.96c.301 0 .54-.228.54-.518v-.446c0-.29-.239-.54-.54-.54H3.242l2.131-2.042a.505.505 0 0 0 0-.739L5.045.982a.55.55 0 0 0-.387-.153.56.56 0 0 0-.387.153L.66 4.455a.513.513 0 0 0 0 .747'})}))},vc=['className'],bc=e=>{let{className:t}=e,r=o(e,vc);const i=Li('summary'),{orderState:a}=Zi(),s=xl(),l=a.value.pending;return Zr(ya,n(n({variant:'ghost',icon:gc,iconPosition:'left',onClick:async function(){l||s.back()},disabled:l,className:We('rf-back-button desktop:text-black desktop:bg-neutral-2 desktop:hover:opacity-50 desktop:font-semibold max-desktop:text-sm max-desktop:px-0 max-desktop:h-auto',t),type:'button'},r),{},{children:Zr('span',{className:'rf-back-button__text',children:i('back')})}))},_c=e=>Zr('svg',n(n({width:65,height:131,viewBox:'0 0 65 131',fill:'none',xmlns:'http://www.w3.org/2000/svg'},e),{},{children:Zr('path',{d:'M30.726 1.8C14.17 30.988-19.17 79.318 20.412 104.855c9.697 6.256 19.735 5.577 30.787 5.577.477 0 11.533-1.774 10.313-2.75-3.267-2.614-22.279-18.309-9.855-8.25 1.315 1.063 11.46 6.781 11.46 8.555 0 4.833-17.775 16.705-21.39 20.321',stroke:'currentColor',strokeWidth:3.6,strokeLinecap:'round'})})),yc=['className'],Cc=e=>{var t;let{className:r}=e,i=o(e,yc);const a=Li('tutorial.intro');return(null===(t=ja().activeTutorial)||void 0===t?void 0:t.id)!==Ga.Intro?null:Zr('div',n(n({className:We('rf-tutorial-pointer rf-tutorial-pointer--total absolute bottom-0 right-full text-white translate-y-3 -translate-x-2 z-10 font-caveat text-2xl pointer-events-none',r)},i),{},{children:[Zr('span',{className:'rf-tutorial-pointer__text absolute -top-3 -translate-y-full left-0 w-28 text-center leading-none block rotate-3',children:a('pointer_total')}),Zr(_c,{className:'text-button-background'})]}))},wc=()=>Zr('div',{className:'rf-exchange-total-skeleton max-desktop:max-w-48 w-full desktop:w-48 space-y-1 text-xs',children:[Zr(ia,{className:'w-full rounded-md'}),Zr(ia,{className:'w-full rounded-md'})]}),kc=['className'],Nc=e=>{var t;let{className:r}=e,i=o(e,kc);const a=Li('summary'),{orderState:s,isPending:l}=Zi(),{orderTotal:c,cartTotal:u}=dl(),d=null===(t=s.value.data)||void 0===t?void 0:t.orderData.orderName;return Zr(Yi,{skeleton:Zr(wc,{}),pending:l,children:Zr('div',n(n({className:We('rf-exchange-total font-normal text-sm max-desktop:max-w-48 w-full desktop:w-48 flex-1',r)},i),{},{children:[Zr(xc,{label:d?a('order_label',{orderName:d}):a('order_label_no_name'),value:c,children:Zr(Cc,{})}),Zr(xc,{label:a('cart_contents'),value:Math.max(0,u)})]}))})};function xc(e){let{label:t,value:r,children:n}=e;return Zr('div',{className:'rf-exchange-total__row flex justify-between relative',children:[Zr('span',{className:'rf-exchange-total__label text-neutral-3',children:t}),Zr(gl,{className:'text-sm font-normal relative',value:r,children:n})]})}const Ec=['className'],Sc=e=>{let{className:t}=e,r=o(e,Ec);return Zr('svg',n(n({width:14,height:17,viewBox:'0 0 14 17',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--bag '.concat(t||'')},r),{},{children:Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M3.175 4.146H2.103c-.74 0-1.355.589-1.408 1.348l-.691 9.952c-.028.401.107.797.374 1.092A1.4 1.4 0 0 0 1.412 17h11.176a1.4 1.4 0 0 0 1.034-.462c.267-.295.402-.69.374-1.093l-.691-9.95c-.053-.76-.668-1.349-1.408-1.349h-1.065V3.94C10.832 1.763 9.117 0 7 0 4.96 0 3.076 1.67 3.168 3.939zm7.657 1.244V8.5a.614.614 0 0 1-.605.622.614.614 0 0 1-.605-.622V5.39H4.378V8.5a.614.614 0 0 1-.605.622.614.614 0 0 1-.605-.622s.052-1.453.035-3.11h-1.1a.204.204 0 0 0-.2.193l-.692 9.95a.2.2 0 0 0 .053.157.2.2 0 0 0 .148.066h11.176a.2.2 0 0 0 .148-.066.2.2 0 0 0 .053-.156l-.691-9.951a.204.204 0 0 0-.201-.193zm-1.21-1.244V3.94c0-1.49-1.174-2.696-2.622-2.696S4.378 2.45 4.378 3.939v.207z',fill:'currentColor'})}))},Tc=e=>Zr('svg',n(n({width:31,height:98,viewBox:'0 0 31 98',fill:'none',xmlns:'http://www.w3.org/2000/svg'},e),{},{children:Zr('path',{d:'M6.014 2C8.74 28.597 14.31 53.53 19.822 79.595c.31 1.472 3.905 16.778 4.42 15.89 4.37-7.523.112-18.808 3.362-26.172 3.467-7.856-3.32 17.294-1.612 25.709.618 3.041-4.764-5.162-5.6-6.215C15.395 82.523 8.836 79.136 2 75.165',stroke:'currentColor',strokeWidth:4,strokeLinecap:'round'})})),Ic=['className'],Mc=e=>{var t;let{className:r}=e,i=o(e,Ic);const a=Li('tutorial.intro');return(null===(t=ja().activeTutorial)||void 0===t?void 0:t.id)!==Ga.Intro?null:Zr('div',n(n({className:We('rf-tutorial-pointer rf-tutorial-pointer--cart absolute bottom-full inset-x-0 -translate-y-4 flex flex-col items-center text-white font-caveat text-2xl pointer-events-none',r)},i),{},{children:[Zr('span',{className:'rf-tutorial-pointer__text whitespace-nowrap text-center block -rotate-6 -translate-x-3',children:a('pointer_cart')}),Zr(Tc,{className:'text-button-background'})]}))},Ac=['className'],Rc=e=>{let{className:t}=e,r=o(e,Ac);const a=Li('summary'),{widgetViewState:s}=Gi();return Zr('div',n(n({className:We('relative',t)},r),{},{children:[Zr(Mc,{}),Zr(ya,{className:'rf-summary__button rf-summary__button--cart ![--icon-height:initial]',onClick:()=>s.set((e=>e===i.Collapsed?i.Open:i.Collapsed)),icon:Sc,children:a('view_cart')})]}))},Pc=['className'],Oc=()=>{var e;const t=Li('summary');return Zr('div',{className:'rf-exchange-summary rf-summary__container fixed bottom-0 inset-x-0 pb-safe animate-slide-up',style:{zIndex:(null===(e=ja().activeTutorial)||void 0===e?void 0:e.id)===Ga.Intro?50:void 0},children:[Zr(mc,{}),Zr('div',{className:'rf-summary h-[var(--rf-summary-height,_auto)] bg-widget-background text-widget-foreground max-desktop:rounded-t-3xl flex max-desktop:flex-col desktop:justify-between desktop:px-5',children:[Zr('div',{className:'rf-summary__header flex items-center max-desktop:px-5 max-desktop:flex-1 gap-2 desktop:gap-4 text-sm desktop:text-base',children:[Zr(bc,{className:'rf-summary__back max-desktop:mr-auto'}),Zr(Hc,{className:'max-desktop:hidden'}),Zr('div',{className:'flex items-center gap-2 desktop:flex-row-reverse',children:[Zr(ua,{}),Zr('span',{className:'rf-summary__title font-medium',children:t('title')})]})]}),Zr(Hc,{className:'desktop:hidden'}),Zr('div',{className:'rf-summary__actions max-desktop:px-5 max-desktop:py-3 gap-4 flex desktop:flex-row-reverse items-end desktop:items-center justify-between',children:[Zr(Rc,{}),Zr(Hc,{className:'max-desktop:hidden'}),Zr(Nc,{})]})]})]})},Hc=e=>{let{className:t}=e,r=o(e,Pc);return Zr('div',n({className:We('rf-summary__divider max-desktop:h-px w-full desktop:w-px desktop:self-stretch bg-neutral-2 shrink-0',t)},r))},Lc=['className'],Bc=e=>{let{className:t}=e,r=o(e,Lc);const{widgetViewState:a}=Gi(),s=ja();return Zr('div',n({'aria-hidden':!0,onClick:function(){s.isActive?s.stop():a.set(i.Collapsed)},className:We('rf-backdrop transition-[background-color,visibility] inset-0 size-full fixed duration-300 ease-in-out z-10',a.value===i.Open||s.isActive?'bg-black/30 visible':'bg-black/0 pointer-events-none invisible',t)},r))},Dc=()=>Zr(Vt,{children:[Zr(Oc,{}),Zr(Bc,{}),Zr(dc,{})]});var Fc=Object.freeze({__proto__:null,default:e=>{const{locale:t,messages:r}=e;return Zr(Ns,{children:Zr(Ri,{messages:r,locale:t,children:Zr(qs,n(n({},e),{},{children:Zr(Ps,{children:Zr(Ss,{children:Zr(Bs,{children:Zr(Ws,{children:Zr(js,{children:Zr(xs,{children:[Zr(Dc,{}),Zr(ts,{}),Zr(ks,{})]})})})})})})}))})})}});export{Nt as Returnflows,Nt as default};
1
+ function e(e,t,r){return(t=function(e){var t=function(e,t){if('object'!=typeof e||!e)return e;var r=e[Symbol.toPrimitive];if(void 0!==r){var n=r.call(e,t||'default');if('object'!=typeof n)return n;throw new TypeError('@@toPrimitive must return a primitive value.')}return('string'===t?String:Number)(e)}(e,'string');return'symbol'==typeof t?t:t+''}(t))in e?Object.defineProperty(e,t,{value:r,enumerable:!0,configurable:!0,writable:!0}):e[t]=r,e}function t(){return t=Object.assign?Object.assign.bind():function(e){for(var t=1;t<arguments.length;t++){var r=arguments[t];for(var n in r)({}).hasOwnProperty.call(r,n)&&(e[n]=r[n])}return e},t.apply(null,arguments)}function r(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((t=>Object.getOwnPropertyDescriptor(e,t).enumerable))),r.push.apply(r,n)}return r}function n(t){for(var n=1;n<arguments.length;n++){var o=null!=arguments[n]?arguments[n]:{};n%2?r(Object(o),!0).forEach((r=>{e(t,r,o[r])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(o)):r(Object(o)).forEach((e=>{Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(o,e))}))}return t}function o(e,t){if(null==e)return{};var r,n,o=function(e,t){if(null==e)return{};var r={};for(var n in e)if({}.hasOwnProperty.call(e,n)){if(t.includes(n))continue;r[n]=e[n]}return r}(e,t);if(Object.getOwnPropertySymbols){var i=Object.getOwnPropertySymbols(e);for(n=0;n<i.length;n++)r=i[n],t.includes(r)||{}.propertyIsEnumerable.call(e,r)&&(o[r]=e[r])}return o}var i,a;function s(){var e,t;return'undefined'==typeof window?null:null!==(e=null===(t=window.Returnflows)||void 0===t?void 0:t._cartProvider)&&void 0!==e?e:null}function l(){var e;return'undefined'!=typeof window&&null!=(null===(e=window.Returnflows)||void 0===e?void 0:e._cartProvider)}function c(e){var t,r,n='';if('string'==typeof e||'number'==typeof e)n+=e;else if('object'==typeof e)if(Array.isArray(e)){var o=e.length;for(t=0;t<o;t++)e[t]&&(r=c(e[t]))&&(n&&(n+=' '),n+=r)}else for(r in e)e[r]&&(n&&(n+=' '),n+=r);return n}function u(){for(var e,t,r=0,n='',o=arguments.length;r<o;r++)(e=arguments[r])&&(t=c(e))&&(n&&(n+=' '),n+=t);return n}(()=>{const e={VITE_WIDGET_BASE_URL:'https://static.returnflows.com/dist/production',VITE_API_URL:'https://app.returnflows.com/api/proxy',VITE_PLATFORM_URL:'https://returnflows.com'};try{if(process)return process.env=Object.assign({},process.env),void Object.assign(process.env,e)}catch(e){}globalThis.process={env:e}})(),(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(i||(i={})),(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(a||(a={}));const d=function(){return{nextPart:arguments.length>0&&void 0!==arguments[0]?arguments[0]:new Map,validators:arguments.length>1&&void 0!==arguments[1]?arguments[1]:null,classGroupId:arguments.length>2?arguments[2]:void 0}},h='-',f=[],m=e=>{const t=v(e),{conflictingClassGroups:r,conflictingClassGroupModifiers:n}=e;return{getClassGroupId:e=>{if(e.startsWith('[')&&e.endsWith(']'))return g(e);const r=e.split(h),n=''===r[0]&&r.length>1?1:0;return p(r,n,t)},getConflictingClassGroupIds:(e,t)=>{if(t){const t=n[e],o=r[e];return t?o?((e,t)=>{const r=new Array(e.length+t.length);for(let t=0;t<e.length;t++)r[t]=e[t];for(let n=0;n<t.length;n++)r[e.length+n]=t[n];return r})(o,t):t:o||f}return r[e]||f}}},p=(e,t,r)=>{if(0===e.length-t)return r.classGroupId;const n=e[t],o=r.nextPart.get(n);if(o){const r=p(e,t+1,o);if(r)return r}const i=r.validators;if(null===i)return;const a=0===t?e.join(h):e.slice(t).join(h),s=i.length;for(let e=0;e<s;e++){const t=i[e];if(t.validator(a))return t.classGroupId}},g=e=>-1===e.slice(1,-1).indexOf(':')?void 0:(()=>{const t=e.slice(1,-1),r=t.indexOf(':'),n=t.slice(0,r);return n?'arbitrary..'+n:void 0})(),v=e=>{const{theme:t,classGroups:r}=e;return b(r,t)},b=(e,t)=>{const r=d();for(const n in e){const o=e[n];_(o,r,n,t)}return r},_=(e,t,r,n)=>{const o=e.length;for(let i=0;i<o;i++){const o=e[i];y(o,t,r,n)}},y=(e,t,r,n)=>{'string'!=typeof e?'function'!=typeof e?k(e,t,r,n):w(e,t,r,n):C(e,t,r)},C=(e,t,r)=>{(''===e?t:N(t,e)).classGroupId=r},w=(e,t,r,n)=>{x(e)?_(e(n),t,r,n):(null===t.validators&&(t.validators=[]),t.validators.push(((e,t)=>({classGroupId:e,validator:t}))(r,e)))},k=(e,t,r,n)=>{const o=Object.entries(e),i=o.length;for(let e=0;e<i;e++){const[i,a]=o[e];_(a,N(t,i),r,n)}},N=(e,t)=>{let r=e;const n=t.split(h),o=n.length;for(let e=0;e<o;e++){const t=n[e];let o=r.nextPart.get(t);o||(o=d(),r.nextPart.set(t,o)),r=o}return r},x=e=>'isThemeGetter'in e&&!0===e.isThemeGetter,E=e=>{if(e<1)return{get:()=>{},set:()=>{}};let t=0,r=Object.create(null),n=Object.create(null);const o=(o,i)=>{r[o]=i,t++,t>e&&(t=0,n=r,r=Object.create(null))};return{get(e){let t=r[e];return void 0!==t?t:void 0!==(t=n[e])?(o(e,t),t):void 0},set(e,t){e in r?r[e]=t:o(e,t)}}},S=[],T=(e,t,r,n,o)=>({modifiers:e,hasImportantModifier:t,baseClassName:r,maybePostfixModifierPosition:n,isExternal:o}),I=e=>{const{prefix:t,experimentalParseClassName:r}=e;let n=e=>{const t=[];let r,n=0,o=0,i=0;const a=e.length;for(let s=0;s<a;s++){const a=e[s];if(0===n&&0===o){if(':'===a){t.push(e.slice(i,s)),i=s+1;continue}if('/'===a){r=s;continue}}'['===a?n++:']'===a?n--:'('===a?o++:')'===a&&o--}const s=0===t.length?e:e.slice(i);let l=s,c=!1;s.endsWith('!')?(l=s.slice(0,-1),c=!0):s.startsWith('!')&&(l=s.slice(1),c=!0);return T(t,c,l,r&&r>i?r-i:void 0)};if(t){const e=t+':',r=n;n=t=>t.startsWith(e)?r(t.slice(e.length)):T(S,!1,t,void 0,!0)}if(r){const e=n;n=t=>r({className:t,parseClassName:e})}return n},M=e=>{const t=new Map;return e.orderSensitiveModifiers.forEach(((e,r)=>{t.set(e,1e6+r)})),e=>{const r=[];let n=[];for(let o=0;o<e.length;o++){const i=e[o],a='['===i[0],s=t.has(i);a||s?(n.length>0&&(n.sort(),r.push(...n),n=[]),r.push(i)):n.push(i)}return n.length>0&&(n.sort(),r.push(...n)),r}},A=e=>{const t=Object.create(null),r=e.postfixLookupClassGroups;if(r)for(let e=0;e<r.length;e++)t[r[e]]=!0;return t},R=/\s+/,P=e=>{if('string'==typeof e)return e;let t,r='';for(let n=0;n<e.length;n++)e[n]&&(t=P(e[n]))&&(r&&(r+=' '),r+=t);return r},O=function(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),o=1;o<t;o++)r[o-1]=arguments[o];let i,a,s,l;const c=e=>{const t=a(e);if(t)return t;const r=((e,t)=>{const{parseClassName:r,getClassGroupId:n,getConflictingClassGroupIds:o,sortModifiers:i,postfixLookupClassGroupIds:a}=t,s=[],l=e.trim().split(R);let c='';for(let e=l.length-1;e>=0;e-=1){const t=l[e],{isExternal:u,modifiers:d,hasImportantModifier:h,baseClassName:f,maybePostfixModifierPosition:m}=r(t);if(u){c=t+(c.length>0?' '+c:c);continue}let p,g=!!m;if(g){p=n(f.substring(0,m));const e=p&&a[p]?n(f):void 0;e&&e!==p&&(p=e,g=!1)}else p=n(f);if(!p){if(!g){c=t+(c.length>0?' '+c:c);continue}if(p=n(f),!p){c=t+(c.length>0?' '+c:c);continue}g=!1}const v=0===d.length?'':1===d.length?d[0]:i(d).join(':'),b=h?v+'!':v,_=b+p;if(s.indexOf(_)>-1)continue;s.push(_);const y=o(p,g);for(let e=0;e<y.length;++e){const t=y[e];s.push(b+t)}c=t+(c.length>0?' '+c:c)}return c})(e,i);return s(e,r),r};return l=t=>{const o=r.reduce(((e,t)=>t(e)),e());return i=(e=>n({cache:E(e.cacheSize),parseClassName:I(e),sortModifiers:M(e),postfixLookupClassGroupIds:A(e)},m(e)))(o),a=i.cache.get,s=i.cache.set,l=c,c(t)},function(){return l(function(){let e,t,r=0,n='';for(;r<arguments.length;){var o;(e=(o=r++)<0||arguments.length<=o?void 0:arguments[o])&&(t=P(e))&&(n&&(n+=' '),n+=t)}return n}(...arguments))}},H=[],L=e=>{const t=t=>t[e]||H;return t.isThemeGetter=!0,t},B=/^\[(?:(\w[\w-]*):)?(.+)\]$/i,D=/^\((?:(\w[\w-]*):)?(.+)\)$/i,F=/^\d+(?:\.\d+)?\/\d+(?:\.\d+)?$/,z=/^(\d+(\.\d+)?)?(xs|sm|md|lg|xl)$/,U=/\d+(%|px|r?em|[sdl]?v([hwib]|min|max)|pt|pc|in|cm|mm|cap|ch|ex|r?lh|cq(w|h|i|b|min|max))|\b(calc|min|max|clamp)\(.+\)|^0$/,j=/^(rgba?|hsla?|hwb|(ok)?(lab|lch)|color-mix)\(.+\)$/,G=/^(inset_)?-?((\d+)?\.?(\d+)[a-z]+|0)_-?((\d+)?\.?(\d+)[a-z]+|0)/,q=/^(url|image|image-set|cross-fade|element|(repeating-)?(linear|radial|conic)-gradient)\(.+\)$/,V=e=>F.test(e),W=e=>!!e&&!Number.isNaN(Number(e)),Z=e=>!!e&&Number.isInteger(Number(e)),X=e=>e.endsWith('%')&&W(e.slice(0,-1)),K=e=>z.test(e),Y=()=>!0,J=e=>U.test(e)&&!j.test(e),Q=()=>!1,$=e=>G.test(e),ee=e=>q.test(e),te=e=>!oe(e)&&!he(e),re=e=>e.startsWith('@container')&&('/'===e[10]&&void 0!==e[11]||'s'===e[11]&&void 0!==e[16]&&e.startsWith('-size/',10)||'n'===e[11]&&void 0!==e[18]&&e.startsWith('-normal/',10)),ne=e=>ye(e,Ne,Q),oe=e=>B.test(e),ie=e=>ye(e,xe,J),ae=e=>ye(e,Ee,W),se=e=>ye(e,Te,Y),le=e=>ye(e,Se,Q),ce=e=>ye(e,we,Q),ue=e=>ye(e,ke,ee),de=e=>ye(e,Ie,$),he=e=>D.test(e),fe=e=>Ce(e,xe),me=e=>Ce(e,Se),pe=e=>Ce(e,we),ge=e=>Ce(e,Ne),ve=e=>Ce(e,ke),be=e=>Ce(e,Ie,!0),_e=e=>Ce(e,Te,!0),ye=(e,t,r)=>{const n=B.exec(e);return!!n&&(n[1]?t(n[1]):r(n[2]))},Ce=function(e,t){let r=arguments.length>2&&void 0!==arguments[2]&&arguments[2];const n=D.exec(e);return!!n&&(n[1]?t(n[1]):r)},we=e=>'position'===e||'percentage'===e,ke=e=>'image'===e||'url'===e,Ne=e=>'length'===e||'size'===e||'bg-size'===e,xe=e=>'length'===e,Ee=e=>'number'===e,Se=e=>'family-name'===e,Te=e=>'number'===e||'weight'===e,Ie=e=>'shadow'===e,Me=O((()=>{const e=L('color'),t=L('font'),r=L('text'),n=L('font-weight'),o=L('tracking'),i=L('leading'),a=L('breakpoint'),s=L('container'),l=L('spacing'),c=L('radius'),u=L('shadow'),d=L('inset-shadow'),h=L('text-shadow'),f=L('drop-shadow'),m=L('blur'),p=L('perspective'),g=L('aspect'),v=L('ease'),b=L('animate'),_=()=>['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom',he,oe],y=()=>[he,oe,l],C=()=>[V,'full','auto',...y()],w=()=>[Z,'none','subgrid',he,oe],k=()=>['auto',{span:['full',Z,he,oe]},Z,he,oe],N=()=>[Z,'auto',he,oe],x=()=>['auto','min','max','fr',he,oe],E=()=>['auto',...y()],S=()=>[V,'auto','full','dvw','dvh','lvw','lvh','svw','svh','min','max','fit',...y()],T=()=>[V,'screen','full','dvw','lvw','svw','min','max','fit',...y()],I=()=>[V,'screen','full','lh','dvh','lvh','svh','min','max','fit',...y()],M=()=>[e,he,oe],A=()=>['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom',pe,ce,{position:[he,oe]}],R=()=>['auto','cover','contain',ge,ne,{size:[he,oe]}],P=()=>[X,fe,ie],O=()=>['','none','full',c,he,oe],H=()=>['',W,fe,ie],B=()=>[W,X,pe,ce],D=()=>['','none',m,he,oe],F=()=>['none',W,he,oe],z=()=>['none',W,he,oe],U=()=>[W,he,oe],j=()=>[V,'full',...y()];return{cacheSize:500,theme:{animate:['spin','ping','pulse','bounce'],aspect:['video'],blur:[K],breakpoint:[K],color:[Y],container:[K],'drop-shadow':[K],ease:['in','out','in-out'],font:[te],'font-weight':['thin','extralight','light','normal','medium','semibold','bold','extrabold','black'],'inset-shadow':[K],leading:['none','tight','snug','normal','relaxed','loose'],perspective:['dramatic','near','normal','midrange','distant','none'],radius:[K],shadow:[K],spacing:['px',W],text:[K],'text-shadow':[K],tracking:['tighter','tight','normal','wide','wider','widest']},classGroups:{aspect:[{aspect:['auto','square',V,oe,he,g]}],container:['container'],'container-type':[{'@container':['','normal','size',he,oe]}],'container-named':[re],columns:[{columns:[W,oe,he,s]}],'break-after':[{'break-after':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-before':[{'break-before':['auto','avoid','all','avoid-page','page','left','right','column']}],'break-inside':[{'break-inside':['auto','avoid','avoid-page','avoid-column']}],'box-decoration':[{'box-decoration':['slice','clone']}],box:[{box:['border','content']}],display:['block','inline-block','inline','flex','inline-flex','table','inline-table','table-caption','table-cell','table-column','table-column-group','table-footer-group','table-header-group','table-row-group','table-row','flow-root','grid','inline-grid','contents','list-item','hidden'],sr:['sr-only','not-sr-only'],float:[{float:['right','left','none','start','end']}],clear:[{clear:['left','right','both','none','start','end']}],isolation:['isolate','isolation-auto'],'object-fit':[{object:['contain','cover','fill','none','scale-down']}],'object-position':[{object:_()}],overflow:[{overflow:['auto','hidden','clip','visible','scroll']}],'overflow-x':[{'overflow-x':['auto','hidden','clip','visible','scroll']}],'overflow-y':[{'overflow-y':['auto','hidden','clip','visible','scroll']}],overscroll:[{overscroll:['auto','contain','none']}],'overscroll-x':[{'overscroll-x':['auto','contain','none']}],'overscroll-y':[{'overscroll-y':['auto','contain','none']}],position:['static','fixed','absolute','relative','sticky'],inset:[{inset:C()}],'inset-x':[{'inset-x':C()}],'inset-y':[{'inset-y':C()}],start:[{'inset-s':C(),start:C()}],end:[{'inset-e':C(),end:C()}],'inset-bs':[{'inset-bs':C()}],'inset-be':[{'inset-be':C()}],top:[{top:C()}],right:[{right:C()}],bottom:[{bottom:C()}],left:[{left:C()}],visibility:['visible','invisible','collapse'],z:[{z:[Z,'auto',he,oe]}],basis:[{basis:[V,'full','auto',s,...y()]}],'flex-direction':[{flex:['row','row-reverse','col','col-reverse']}],'flex-wrap':[{flex:['nowrap','wrap','wrap-reverse']}],flex:[{flex:[W,V,'auto','initial','none',oe]}],grow:[{grow:['',W,he,oe]}],shrink:[{shrink:['',W,he,oe]}],order:[{order:[Z,'first','last','none',he,oe]}],'grid-cols':[{'grid-cols':w()}],'col-start-end':[{col:k()}],'col-start':[{'col-start':N()}],'col-end':[{'col-end':N()}],'grid-rows':[{'grid-rows':w()}],'row-start-end':[{row:k()}],'row-start':[{'row-start':N()}],'row-end':[{'row-end':N()}],'grid-flow':[{'grid-flow':['row','col','dense','row-dense','col-dense']}],'auto-cols':[{'auto-cols':x()}],'auto-rows':[{'auto-rows':x()}],gap:[{gap:y()}],'gap-x':[{'gap-x':y()}],'gap-y':[{'gap-y':y()}],'justify-content':[{justify:['start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe','normal']}],'justify-items':[{'justify-items':['start','end','center','stretch','center-safe','end-safe','normal']}],'justify-self':[{'justify-self':['auto','start','end','center','stretch','center-safe','end-safe']}],'align-content':[{content:['normal','start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe']}],'align-items':[{items:['start','end','center','stretch','center-safe','end-safe',{baseline:['','last']}]}],'align-self':[{self:['auto','start','end','center','stretch','center-safe','end-safe',{baseline:['','last']}]}],'place-content':[{'place-content':['start','end','center','between','around','evenly','stretch','baseline','center-safe','end-safe']}],'place-items':[{'place-items':['start','end','center','stretch','center-safe','end-safe','baseline']}],'place-self':[{'place-self':['auto','start','end','center','stretch','center-safe','end-safe']}],p:[{p:y()}],px:[{px:y()}],py:[{py:y()}],ps:[{ps:y()}],pe:[{pe:y()}],pbs:[{pbs:y()}],pbe:[{pbe:y()}],pt:[{pt:y()}],pr:[{pr:y()}],pb:[{pb:y()}],pl:[{pl:y()}],m:[{m:E()}],mx:[{mx:E()}],my:[{my:E()}],ms:[{ms:E()}],me:[{me:E()}],mbs:[{mbs:E()}],mbe:[{mbe:E()}],mt:[{mt:E()}],mr:[{mr:E()}],mb:[{mb:E()}],ml:[{ml:E()}],'space-x':[{'space-x':y()}],'space-x-reverse':['space-x-reverse'],'space-y':[{'space-y':y()}],'space-y-reverse':['space-y-reverse'],size:[{size:S()}],'inline-size':[{inline:['auto',...T()]}],'min-inline-size':[{'min-inline':['auto',...T()]}],'max-inline-size':[{'max-inline':['none',...T()]}],'block-size':[{block:['auto',...I()]}],'min-block-size':[{'min-block':['auto',...I()]}],'max-block-size':[{'max-block':['none',...I()]}],w:[{w:[s,'screen',...S()]}],'min-w':[{'min-w':[s,'screen','none',...S()]}],'max-w':[{'max-w':[s,'screen','none','prose',{screen:[a]},...S()]}],h:[{h:['screen','lh',...S()]}],'min-h':[{'min-h':['screen','lh','none',...S()]}],'max-h':[{'max-h':['screen','lh',...S()]}],'font-size':[{text:['base',r,fe,ie]}],'font-smoothing':['antialiased','subpixel-antialiased'],'font-style':['italic','not-italic'],'font-weight':[{font:[n,_e,se]}],'font-stretch':[{'font-stretch':['ultra-condensed','extra-condensed','condensed','semi-condensed','normal','semi-expanded','expanded','extra-expanded','ultra-expanded',X,oe]}],'font-family':[{font:[me,le,t]}],'font-features':[{'font-features':[oe]}],'fvn-normal':['normal-nums'],'fvn-ordinal':['ordinal'],'fvn-slashed-zero':['slashed-zero'],'fvn-figure':['lining-nums','oldstyle-nums'],'fvn-spacing':['proportional-nums','tabular-nums'],'fvn-fraction':['diagonal-fractions','stacked-fractions'],tracking:[{tracking:[o,he,oe]}],'line-clamp':[{'line-clamp':[W,'none',he,ae]}],leading:[{leading:[i,...y()]}],'list-image':[{'list-image':['none',he,oe]}],'list-style-position':[{list:['inside','outside']}],'list-style-type':[{list:['disc','decimal','none',he,oe]}],'text-alignment':[{text:['left','center','right','justify','start','end']}],'placeholder-color':[{placeholder:M()}],'text-color':[{text:M()}],'text-decoration':['underline','overline','line-through','no-underline'],'text-decoration-style':[{decoration:['solid','dashed','dotted','double','wavy']}],'text-decoration-thickness':[{decoration:[W,'from-font','auto',he,ie]}],'text-decoration-color':[{decoration:M()}],'underline-offset':[{'underline-offset':[W,'auto',he,oe]}],'text-transform':['uppercase','lowercase','capitalize','normal-case'],'text-overflow':['truncate','text-ellipsis','text-clip'],'text-wrap':[{text:['wrap','nowrap','balance','pretty']}],indent:[{indent:y()}],'tab-size':[{tab:[Z,he,oe]}],'vertical-align':[{align:['baseline','top','middle','bottom','text-top','text-bottom','sub','super',he,oe]}],whitespace:[{whitespace:['normal','nowrap','pre','pre-line','pre-wrap','break-spaces']}],break:[{break:['normal','words','all','keep']}],wrap:[{wrap:['break-word','anywhere','normal']}],hyphens:[{hyphens:['none','manual','auto']}],content:[{content:['none',he,oe]}],'bg-attachment':[{bg:['fixed','local','scroll']}],'bg-clip':[{'bg-clip':['border','padding','content','text']}],'bg-origin':[{'bg-origin':['border','padding','content']}],'bg-position':[{bg:A()}],'bg-repeat':[{bg:['no-repeat',{repeat:['','x','y','space','round']}]}],'bg-size':[{bg:R()}],'bg-image':[{bg:['none',{linear:[{to:['t','tr','r','br','b','bl','l','tl']},Z,he,oe],radial:['',he,oe],conic:[Z,he,oe]},ve,ue]}],'bg-color':[{bg:M()}],'gradient-from-pos':[{from:P()}],'gradient-via-pos':[{via:P()}],'gradient-to-pos':[{to:P()}],'gradient-from':[{from:M()}],'gradient-via':[{via:M()}],'gradient-to':[{to:M()}],rounded:[{rounded:O()}],'rounded-s':[{'rounded-s':O()}],'rounded-e':[{'rounded-e':O()}],'rounded-t':[{'rounded-t':O()}],'rounded-r':[{'rounded-r':O()}],'rounded-b':[{'rounded-b':O()}],'rounded-l':[{'rounded-l':O()}],'rounded-ss':[{'rounded-ss':O()}],'rounded-se':[{'rounded-se':O()}],'rounded-ee':[{'rounded-ee':O()}],'rounded-es':[{'rounded-es':O()}],'rounded-tl':[{'rounded-tl':O()}],'rounded-tr':[{'rounded-tr':O()}],'rounded-br':[{'rounded-br':O()}],'rounded-bl':[{'rounded-bl':O()}],'border-w':[{border:H()}],'border-w-x':[{'border-x':H()}],'border-w-y':[{'border-y':H()}],'border-w-s':[{'border-s':H()}],'border-w-e':[{'border-e':H()}],'border-w-bs':[{'border-bs':H()}],'border-w-be':[{'border-be':H()}],'border-w-t':[{'border-t':H()}],'border-w-r':[{'border-r':H()}],'border-w-b':[{'border-b':H()}],'border-w-l':[{'border-l':H()}],'divide-x':[{'divide-x':H()}],'divide-x-reverse':['divide-x-reverse'],'divide-y':[{'divide-y':H()}],'divide-y-reverse':['divide-y-reverse'],'border-style':[{border:['solid','dashed','dotted','double','hidden','none']}],'divide-style':[{divide:['solid','dashed','dotted','double','hidden','none']}],'border-color':[{border:M()}],'border-color-x':[{'border-x':M()}],'border-color-y':[{'border-y':M()}],'border-color-s':[{'border-s':M()}],'border-color-e':[{'border-e':M()}],'border-color-bs':[{'border-bs':M()}],'border-color-be':[{'border-be':M()}],'border-color-t':[{'border-t':M()}],'border-color-r':[{'border-r':M()}],'border-color-b':[{'border-b':M()}],'border-color-l':[{'border-l':M()}],'divide-color':[{divide:M()}],'outline-style':[{outline:['solid','dashed','dotted','double','none','hidden']}],'outline-offset':[{'outline-offset':[W,he,oe]}],'outline-w':[{outline:['',W,fe,ie]}],'outline-color':[{outline:M()}],shadow:[{shadow:['','none',u,be,de]}],'shadow-color':[{shadow:M()}],'inset-shadow':[{'inset-shadow':['none',d,be,de]}],'inset-shadow-color':[{'inset-shadow':M()}],'ring-w':[{ring:H()}],'ring-w-inset':['ring-inset'],'ring-color':[{ring:M()}],'ring-offset-w':[{'ring-offset':[W,ie]}],'ring-offset-color':[{'ring-offset':M()}],'inset-ring-w':[{'inset-ring':H()}],'inset-ring-color':[{'inset-ring':M()}],'text-shadow':[{'text-shadow':['none',h,be,de]}],'text-shadow-color':[{'text-shadow':M()}],opacity:[{opacity:[W,he,oe]}],'mix-blend':[{'mix-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity','plus-darker','plus-lighter']}],'bg-blend':[{'bg-blend':['normal','multiply','screen','overlay','darken','lighten','color-dodge','color-burn','hard-light','soft-light','difference','exclusion','hue','saturation','color','luminosity']}],'mask-clip':[{'mask-clip':['border','padding','content','fill','stroke','view']},'mask-no-clip'],'mask-composite':[{mask:['add','subtract','intersect','exclude']}],'mask-image-linear-pos':[{'mask-linear':[W]}],'mask-image-linear-from-pos':[{'mask-linear-from':B()}],'mask-image-linear-to-pos':[{'mask-linear-to':B()}],'mask-image-linear-from-color':[{'mask-linear-from':M()}],'mask-image-linear-to-color':[{'mask-linear-to':M()}],'mask-image-t-from-pos':[{'mask-t-from':B()}],'mask-image-t-to-pos':[{'mask-t-to':B()}],'mask-image-t-from-color':[{'mask-t-from':M()}],'mask-image-t-to-color':[{'mask-t-to':M()}],'mask-image-r-from-pos':[{'mask-r-from':B()}],'mask-image-r-to-pos':[{'mask-r-to':B()}],'mask-image-r-from-color':[{'mask-r-from':M()}],'mask-image-r-to-color':[{'mask-r-to':M()}],'mask-image-b-from-pos':[{'mask-b-from':B()}],'mask-image-b-to-pos':[{'mask-b-to':B()}],'mask-image-b-from-color':[{'mask-b-from':M()}],'mask-image-b-to-color':[{'mask-b-to':M()}],'mask-image-l-from-pos':[{'mask-l-from':B()}],'mask-image-l-to-pos':[{'mask-l-to':B()}],'mask-image-l-from-color':[{'mask-l-from':M()}],'mask-image-l-to-color':[{'mask-l-to':M()}],'mask-image-x-from-pos':[{'mask-x-from':B()}],'mask-image-x-to-pos':[{'mask-x-to':B()}],'mask-image-x-from-color':[{'mask-x-from':M()}],'mask-image-x-to-color':[{'mask-x-to':M()}],'mask-image-y-from-pos':[{'mask-y-from':B()}],'mask-image-y-to-pos':[{'mask-y-to':B()}],'mask-image-y-from-color':[{'mask-y-from':M()}],'mask-image-y-to-color':[{'mask-y-to':M()}],'mask-image-radial':[{'mask-radial':[he,oe]}],'mask-image-radial-from-pos':[{'mask-radial-from':B()}],'mask-image-radial-to-pos':[{'mask-radial-to':B()}],'mask-image-radial-from-color':[{'mask-radial-from':M()}],'mask-image-radial-to-color':[{'mask-radial-to':M()}],'mask-image-radial-shape':[{'mask-radial':['circle','ellipse']}],'mask-image-radial-size':[{'mask-radial':[{closest:['side','corner'],farthest:['side','corner']}]}],'mask-image-radial-pos':[{'mask-radial-at':['center','top','bottom','left','right','top-left','left-top','top-right','right-top','bottom-right','right-bottom','bottom-left','left-bottom']}],'mask-image-conic-pos':[{'mask-conic':[W]}],'mask-image-conic-from-pos':[{'mask-conic-from':B()}],'mask-image-conic-to-pos':[{'mask-conic-to':B()}],'mask-image-conic-from-color':[{'mask-conic-from':M()}],'mask-image-conic-to-color':[{'mask-conic-to':M()}],'mask-mode':[{mask:['alpha','luminance','match']}],'mask-origin':[{'mask-origin':['border','padding','content','fill','stroke','view']}],'mask-position':[{mask:A()}],'mask-repeat':[{mask:['no-repeat',{repeat:['','x','y','space','round']}]}],'mask-size':[{mask:R()}],'mask-type':[{'mask-type':['alpha','luminance']}],'mask-image':[{mask:['none',he,oe]}],filter:[{filter:['','none',he,oe]}],blur:[{blur:D()}],brightness:[{brightness:[W,he,oe]}],contrast:[{contrast:[W,he,oe]}],'drop-shadow':[{'drop-shadow':['','none',f,be,de]}],'drop-shadow-color':[{'drop-shadow':M()}],grayscale:[{grayscale:['',W,he,oe]}],'hue-rotate':[{'hue-rotate':[W,he,oe]}],invert:[{invert:['',W,he,oe]}],saturate:[{saturate:[W,he,oe]}],sepia:[{sepia:['',W,he,oe]}],'backdrop-filter':[{'backdrop-filter':['','none',he,oe]}],'backdrop-blur':[{'backdrop-blur':D()}],'backdrop-brightness':[{'backdrop-brightness':[W,he,oe]}],'backdrop-contrast':[{'backdrop-contrast':[W,he,oe]}],'backdrop-grayscale':[{'backdrop-grayscale':['',W,he,oe]}],'backdrop-hue-rotate':[{'backdrop-hue-rotate':[W,he,oe]}],'backdrop-invert':[{'backdrop-invert':['',W,he,oe]}],'backdrop-opacity':[{'backdrop-opacity':[W,he,oe]}],'backdrop-saturate':[{'backdrop-saturate':[W,he,oe]}],'backdrop-sepia':[{'backdrop-sepia':['',W,he,oe]}],'border-collapse':[{border:['collapse','separate']}],'border-spacing':[{'border-spacing':y()}],'border-spacing-x':[{'border-spacing-x':y()}],'border-spacing-y':[{'border-spacing-y':y()}],'table-layout':[{table:['auto','fixed']}],caption:[{caption:['top','bottom']}],transition:[{transition:['','all','colors','opacity','shadow','transform','none',he,oe]}],'transition-behavior':[{transition:['normal','discrete']}],duration:[{duration:[W,'initial',he,oe]}],ease:[{ease:['linear','initial',v,he,oe]}],delay:[{delay:[W,he,oe]}],animate:[{animate:['none',b,he,oe]}],backface:[{backface:['hidden','visible']}],perspective:[{perspective:[p,he,oe]}],'perspective-origin':[{'perspective-origin':_()}],rotate:[{rotate:F()}],'rotate-x':[{'rotate-x':F()}],'rotate-y':[{'rotate-y':F()}],'rotate-z':[{'rotate-z':F()}],scale:[{scale:z()}],'scale-x':[{'scale-x':z()}],'scale-y':[{'scale-y':z()}],'scale-z':[{'scale-z':z()}],'scale-3d':['scale-3d'],skew:[{skew:U()}],'skew-x':[{'skew-x':U()}],'skew-y':[{'skew-y':U()}],transform:[{transform:[he,oe,'','none','gpu','cpu']}],'transform-origin':[{origin:_()}],'transform-style':[{transform:['3d','flat']}],translate:[{translate:j()}],'translate-x':[{'translate-x':j()}],'translate-y':[{'translate-y':j()}],'translate-z':[{'translate-z':j()}],'translate-none':['translate-none'],zoom:[{zoom:[Z,he,oe]}],accent:[{accent:M()}],appearance:[{appearance:['none','auto']}],'caret-color':[{caret:M()}],'color-scheme':[{scheme:['normal','dark','light','light-dark','only-dark','only-light']}],cursor:[{cursor:['auto','default','pointer','wait','text','move','help','not-allowed','none','context-menu','progress','cell','crosshair','vertical-text','alias','copy','no-drop','grab','grabbing','all-scroll','col-resize','row-resize','n-resize','e-resize','s-resize','w-resize','ne-resize','nw-resize','se-resize','sw-resize','ew-resize','ns-resize','nesw-resize','nwse-resize','zoom-in','zoom-out',he,oe]}],'field-sizing':[{'field-sizing':['fixed','content']}],'pointer-events':[{'pointer-events':['auto','none']}],resize:[{resize:['none','','y','x']}],'scroll-behavior':[{scroll:['auto','smooth']}],'scrollbar-thumb-color':[{'scrollbar-thumb':M()}],'scrollbar-track-color':[{'scrollbar-track':M()}],'scrollbar-gutter':[{'scrollbar-gutter':['auto','stable','both']}],'scrollbar-w':[{scrollbar:['auto','thin','none']}],'scroll-m':[{'scroll-m':y()}],'scroll-mx':[{'scroll-mx':y()}],'scroll-my':[{'scroll-my':y()}],'scroll-ms':[{'scroll-ms':y()}],'scroll-me':[{'scroll-me':y()}],'scroll-mbs':[{'scroll-mbs':y()}],'scroll-mbe':[{'scroll-mbe':y()}],'scroll-mt':[{'scroll-mt':y()}],'scroll-mr':[{'scroll-mr':y()}],'scroll-mb':[{'scroll-mb':y()}],'scroll-ml':[{'scroll-ml':y()}],'scroll-p':[{'scroll-p':y()}],'scroll-px':[{'scroll-px':y()}],'scroll-py':[{'scroll-py':y()}],'scroll-ps':[{'scroll-ps':y()}],'scroll-pe':[{'scroll-pe':y()}],'scroll-pbs':[{'scroll-pbs':y()}],'scroll-pbe':[{'scroll-pbe':y()}],'scroll-pt':[{'scroll-pt':y()}],'scroll-pr':[{'scroll-pr':y()}],'scroll-pb':[{'scroll-pb':y()}],'scroll-pl':[{'scroll-pl':y()}],'snap-align':[{snap:['start','end','center','align-none']}],'snap-stop':[{snap:['normal','always']}],'snap-type':[{snap:['none','x','y','both']}],'snap-strictness':[{snap:['mandatory','proximity']}],touch:[{touch:['auto','none','manipulation']}],'touch-x':[{'touch-pan':['x','left','right']}],'touch-y':[{'touch-pan':['y','up','down']}],'touch-pz':['touch-pinch-zoom'],select:[{select:['none','text','all','auto']}],'will-change':[{'will-change':['auto','scroll','contents','transform',he,oe]}],fill:[{fill:['none',...M()]}],'stroke-w':[{stroke:[W,fe,ie,ae]}],stroke:[{stroke:['none',...M()]}],'forced-color-adjust':[{'forced-color-adjust':['auto','none']}]},conflictingClassGroups:{'container-named':['container-type'],overflow:['overflow-x','overflow-y'],overscroll:['overscroll-x','overscroll-y'],inset:['inset-x','inset-y','inset-bs','inset-be','start','end','top','right','bottom','left'],'inset-x':['right','left'],'inset-y':['top','bottom'],flex:['basis','grow','shrink'],gap:['gap-x','gap-y'],p:['px','py','ps','pe','pbs','pbe','pt','pr','pb','pl'],px:['pr','pl'],py:['pt','pb'],m:['mx','my','ms','me','mbs','mbe','mt','mr','mb','ml'],mx:['mr','ml'],my:['mt','mb'],size:['w','h'],'font-size':['leading'],'fvn-normal':['fvn-ordinal','fvn-slashed-zero','fvn-figure','fvn-spacing','fvn-fraction'],'fvn-ordinal':['fvn-normal'],'fvn-slashed-zero':['fvn-normal'],'fvn-figure':['fvn-normal'],'fvn-spacing':['fvn-normal'],'fvn-fraction':['fvn-normal'],'line-clamp':['display','overflow'],rounded:['rounded-s','rounded-e','rounded-t','rounded-r','rounded-b','rounded-l','rounded-ss','rounded-se','rounded-ee','rounded-es','rounded-tl','rounded-tr','rounded-br','rounded-bl'],'rounded-s':['rounded-ss','rounded-es'],'rounded-e':['rounded-se','rounded-ee'],'rounded-t':['rounded-tl','rounded-tr'],'rounded-r':['rounded-tr','rounded-br'],'rounded-b':['rounded-br','rounded-bl'],'rounded-l':['rounded-tl','rounded-bl'],'border-spacing':['border-spacing-x','border-spacing-y'],'border-w':['border-w-x','border-w-y','border-w-s','border-w-e','border-w-bs','border-w-be','border-w-t','border-w-r','border-w-b','border-w-l'],'border-w-x':['border-w-r','border-w-l'],'border-w-y':['border-w-t','border-w-b'],'border-color':['border-color-x','border-color-y','border-color-s','border-color-e','border-color-bs','border-color-be','border-color-t','border-color-r','border-color-b','border-color-l'],'border-color-x':['border-color-r','border-color-l'],'border-color-y':['border-color-t','border-color-b'],translate:['translate-x','translate-y','translate-none'],'translate-none':['translate','translate-x','translate-y','translate-z'],'scroll-m':['scroll-mx','scroll-my','scroll-ms','scroll-me','scroll-mbs','scroll-mbe','scroll-mt','scroll-mr','scroll-mb','scroll-ml'],'scroll-mx':['scroll-mr','scroll-ml'],'scroll-my':['scroll-mt','scroll-mb'],'scroll-p':['scroll-px','scroll-py','scroll-ps','scroll-pe','scroll-pbs','scroll-pbe','scroll-pt','scroll-pr','scroll-pb','scroll-pl'],'scroll-px':['scroll-pr','scroll-pl'],'scroll-py':['scroll-pt','scroll-pb'],touch:['touch-x','touch-y','touch-pz'],'touch-x':['touch'],'touch-y':['touch'],'touch-pz':['touch']},conflictingClassGroupModifiers:{'font-size':['leading']},postfixLookupClassGroups:['container-type'],orderSensitiveModifiers:['*','**','after','backdrop','before','details-content','file','first-letter','first-line','marker','placeholder','selection']}}));function Ae(e){return 60*e*1e3}const Re={key:'session_id',type:'sessionStorage',expiration:(Pe=1,60*Pe*60*1e3)};var Pe;const Oe={key:'dialog_expiration',type:'sessionStorage'},He=Ae(10),Le={key:'cart',type:'sessionStorage',expiration:Ae(5)},Be={key:'debug_mode',type:'sessionStorage'},De={key:'tutorials_seen',type:'localStorage'};function Fe(e){return''.concat('rflows_').concat(e)}const ze={set:(e,t)=>{let{key:r,type:n,expiration:o}=e;const i={value:t,expiration:o?Date.now()+o:void 0};Ue(n).setItem(Fe(r),JSON.stringify(i))},get:e=>{let{key:t,type:r}=e;const n=Ue(r),o=n.getItem(Fe(t));if(!o)return null;try{const e=JSON.parse(o);return e.expiration&&Date.now()>e.expiration?(n.removeItem(Fe(t)),null):e.value}catch(e){return null}},has:e=>{let{key:t,type:r}=e;return null!==ze.get({key:t,type:r})},remove:e=>{let{key:t,type:r}=e;Ue(r).removeItem(Fe(t))}};function Ue(e){if('sessionStorage'===e)return sessionStorage;if('localStorage'===e)return localStorage;throw new Error('Invalid storage type: '.concat(e))}const je='[RF]';var Ge;(e=>{e[e.DEBUG=0]='DEBUG',e[e.INFO=1]='INFO',e[e.WARN=2]='WARN',e[e.ERROR=3]='ERROR'})(Ge||(Ge={}));class qe{constructor(){}static getInstance(){return qe.instance||(qe.instance=new qe),qe.instance}checkDebugMode(){const e=ze.get(Be);return Boolean(e)}log(e,t){if(this.checkDebugMode()){for(var r=arguments.length,n=new Array(r>2?r-2:0),o=2;o<r;o++)n[o-2]=arguments[o];switch(e){case Ge.DEBUG:console.debug(''.concat(je,' ').concat(t),...n);break;case Ge.INFO:console.info(''.concat(je,' ').concat(t),...n);break;case Ge.WARN:console.warn(''.concat(je,' ').concat(t),...n);break;case Ge.ERROR:console.error(''.concat(je,' ').concat(t),...n)}}}debug(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.DEBUG,e,...r)}info(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.INFO,e,...r)}warn(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.WARN,e,...r)}error(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];this.log(Ge.ERROR,e,...r)}}const Ve=qe.getInstance();function We(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return Me(u(t))}function Ze(e){return null==e}function Xe(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:0;return Ze(e)||''===e?t:('number'!=typeof e&&(e=parseFloat(e)),isNaN(e)||'Infinity'===e.toString()?t:e)}function Ke(e){const t=null==e?void 0:e.selectedItems,r=null==e?void 0:e.selectedActions;return t&&Array.isArray(t)?t.map((e=>{var t;const n=null==r||null===(t=r.find((t=>t.itemId===e.id)))||void 0===t?void 0:t.action,o=(null!=(i=n)?i:'refund').toUpperCase();var i;return{id:e.id,lineItemId:e.lineItemId,action:o}})):(Ve.warn('No selected items found in cache data'),[])}function Ye(e,t){const r=function(e){let t=!(arguments.length>1&&void 0!==arguments[1])||arguments[1];return e.startsWith('http://')||e.startsWith('https://')?e:t?'https://'.concat(e):'http://'.concat(e)}(window.location.host);!function(e,t){if(Ze(e)||''===e)throw new Error(t)}(r,'Shopify root URL is not defined');const n=new URLSearchParams;Object.entries(t).forEach((e=>{let[t,r]=e;n.set(t,r)}));let o=r;return e.startsWith('/')||(o+='/'),o+=e,n.toString()&&(o+='?'.concat(n.toString())),o}async function Je(e,t){var r;const o=Ye(e,{rf:'true'}),i=await fetch(o,n({method:null!==(r=null==t?void 0:t.method)&&void 0!==r?r:null!=t&&t.body?'POST':'GET',cache:'no-cache',headers:{'Content-Type':'application/json'}},t));if(!i.ok){const e=await i.json();if(e&&'message'in e)throw e;throw new Error('Unknown error')}return await i.json()}function Qe(){ze.remove(Le),ze.remove(Re),ze.remove(Oe),ze.remove(Be)}function $e(e){if(!e)return'';const t=e.toString().split('/').pop();return t||''}function et(e){return r='ProductVariant','string'==typeof(t=e)&&t.startsWith('gid://')?t:'gid://shopify/'.concat(r,'/').concat(t);var t,r}function tt(e,t){return e.filter((e=>e.type===t)).flatMap((e=>e.products.filter((e=>null!==e)).map((e=>Number($e(e.shopifyProductId))))))}function rt(e,t){const r=tt(t,'NO_EXCHANGE_TO'),o=[],i=[],{items:a,itemCount:s}=(e.items||[]).reduce(((e,t)=>{if(r.includes(t.product_id))return o.push(t),e;if(t.has_components)return i.push(t),e;const a=e.items.find((e=>e.variant_id===t.variant_id));return e.itemCount+=t.quantity||0,a?(a.quantity+=t.quantity,e):(e.items.push(n({},t)),e)}),{items:[],itemCount:0});return{cart:n(n({},e),{},{items:a,item_count:s}),excludedItems:o,bundleItems:i}}function nt(e){let{cart1:t,cart2:r,rules:n}=e;const{cart:o}=rt(t,n),{cart:i}=rt(r,n),a=o.items||[],s=i.items||[];if(a.length!==s.length)return!1;const l=new Map(a.map((e=>[e.variant_id,e.quantity])));for(const e of s)if(l.get(e.variant_id)!==e.quantity)return!1;return!0}async function ot(){let e,t=!1,r=!1;if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0]){const r=ze.get(Le);r&&(t=!0,e=r)}if(!e){if(l()){const t=s();t&&(Ve.info('[CartProvider] Using provider.getCart()'),e=await t.getCart(),r=!0)}e||(Ve.info('[CartProvider] No provider, falling back to /cart.js'),e=await Je('/cart.js')),lt(e)}const n=t?'Storage':r?'Provider':'API';return Ve.info('Fetched cart ('.concat(n,')'),e),e}async function it(){if(l()){const e=s();if(null!=e&&e.clearCart){Ve.info('[CartProvider] Using provider.clearCart()');const t=await e.clearCart();return lt(t),t}Ve.info('[CartProvider] Provider exists but clearCart not implemented, falling back to /cart/clear.js')}const e=await Je('/cart/clear.js',{method:'POST'});return lt(e),e}async function at(e){let{variantId:t,quantity:r,isRetry:n=!1}=e;try{if(Ze(r))throw new Error('Quantity cannot be null or undefined');if(l()){const e=s();if(e){const o=(await ot(!n)).items.find((e=>e.variant_id===t));if(!o)return Ve.warn('[CartProvider] Item with variantId '.concat(t,' not found in cart')),n?(await st(t,r),ot(!1)):(Ve.info('[CartProvider] Retrying with fresh cart data...'),at({variantId:t,quantity:r,isRetry:!0}));const i=o.line_id,a=o.merchandise_id||et(t);if(!i)return Ve.warn('[CartProvider] No line_id on cart item'),n?(Ve.warn('[CartProvider] Still no line_id after retry, falling back to /cart/change.js'),await st(t,r),ot(!1)):(Ve.info('[CartProvider] Retrying with fresh cart data...'),at({variantId:t,quantity:r,isRetry:!0}));if(0===r&&e.removeItems)Ve.info('[CartProvider] Using provider.removeItems(['.concat(i,'])')),await e.removeItems([i]);else if(e.updateItems){const t={id:i,merchandiseId:a,quantity:r};Ve.info('[CartProvider] Using provider.updateItems()',t),await e.updateItems([t])}else Ve.info('[CartProvider] Provider exists but removeItems/updateItems not implemented, falling back to /cart/change.js'),await st(t,r);return ot(!1)}}return await st(t,r),ot(!1)}catch(e){const t=e;if(Ve.error('Error updating cart item quantity:',t),'status'in t)throw new Error(t.status.toString());throw new Error(t.message)}}async function st(e,t){var r;if(0===t)return void await Je('/cart/change.js',{body:JSON.stringify({id:String(e),quantity:t})});const n=(await ot()).items||[],o=n.filter((t=>t.variant_id===e)).reduce(((e,t)=>e+(t.quantity||0)),0),i=n.findIndex((t=>t.variant_id===e)),a=t-o,s=Xe(null===(r=n[i])||void 0===r?void 0:r.quantity)+a;if(-1!==i){const e={line:String(i+1),quantity:s};await Je('/cart/change.js',{body:JSON.stringify(e)})}}function lt(e){e?ze.set(Le,e):ze.remove(Le)}function ct(e){return'edges'in e?e.edges.map((e=>e.node)):e.map((e=>'node'in e?e.node:e))}function ut(e){const t=parseFloat(e);return Number.isNaN(t)?0:Math.round(100*t)}function dt(e){var t,r,n;if(null!==(t=e.merchandise.image)&&void 0!==t&&t.url)return e.merchandise.image.url;if(null!==(r=e.merchandise.product.featuredImage)&&void 0!==r&&r.url)return e.merchandise.product.featuredImage.url;const o=ct(null!==(n=e.merchandise.product.images)&&void 0!==n?n:[]);return o.length>0?o[0].url:''}function ht(e){var t;const{merchandise:r,quantity:n}=e,{product:o}=r,i=Number($e(r.id)),a=Number($e(o.id));let s,l;null!==(t=e.cost)&&void 0!==t&&t.amountPerQuantity?(s=ut(e.cost.amountPerQuantity.amount),l=e.cost.totalAmount?ut(e.cost.totalAmount.amount):s*n):r.price?(s=ut(r.price.amount),l=s*n):(s=0,l=0);const c=r.title,u=o.title,d=!c||'Default Title'===c||'Default'===c;return{variant_id:i,quantity:n,title:d?u:''.concat(u,' - ').concat(c),price:s,product_id:a,product_title:u,handle:o.handle,image:dt(e),grams:0,line_price:l,final_price:s,final_line_price:l,line_id:e.id,merchandise_id:r.id,variant_title:d?void 0:c,sku:r.sku,vendor:o.vendor,product_type:o.productType,requires_shipping:r.requiresShipping}}function ft(e){return function(e){if(!('lines'in e))return!1;const t=e.lines;return Array.isArray(t)||null!=t&&'object'==typeof t&&'edges'in t}(e)?function(e){var t,r;const n=ct(e.lines).map(ht),o=null!==(t=e.totalQuantity)&&void 0!==t?t:n.reduce(((e,t)=>e+t.quantity),0);return{items:n,item_count:o,token:e.id,note:null!==(r=e.note)&&void 0!==r?r:''}}(e):e}function mt(e){const t=ft(e);return lt(t),t}const pt={widgetViewState:null,config:null,returnContext:null,toastContext:null,cartProvider:null,isInitialized:!1,eventListeners:new Map};function gt(){pt.widgetViewState=null,pt.returnContext=null,pt.toastContext=null,pt.config=null,pt.cartProvider=null,pt.isInitialized=!1,pt.eventListeners.clear()}function vt(e){const t=e?function(e){return{async getCart(){const t=await e.getCart();return t?mt(t):void 0},clearCart:async()=>mt(await e.clearCart()),addItems:async t=>mt(await e.addItems(t)),updateItems:async t=>mt(await e.updateItems(t)),removeItems:async t=>mt(await e.removeItems(t))}}(e):null;if(pt.cartProvider=t,'undefined'!=typeof window){const e=window.Returnflows;e&&(e._cartProvider=t)}e?console.info('[RF] Cart provider registered.'):console.info('[RF] Cart provider cleared.')}function bt(){return pt.isInitialized}function _t(e){pt.widgetViewState?pt.widgetViewState.set(e):console.warn('[RF] Widget not initialized. Call init() first.')}async function yt(e){var t,r,n,o,i;const a=null===(t=pt.returnContext)||void 0===t?void 0:t.cartState,s=null===(r=pt.returnContext)||void 0===r?void 0:r.orderState,l=null===(n=pt.returnContext)||void 0===n?void 0:n.calculationState;if(!a||null==s||!s.value.data)return console.warn('[RF] Widget not initialized or order not loaded.'),{cart:null,calculation:null,hasChanged:!1};const c=s.value.data,u=ft(e),d=c.orderData.productRules||[],h=null===(o=a.value.data)||void 0===o?void 0:o.original;var f;if(h&&nt({cart1:h,cart2:u,rules:d}))return{cart:h,calculation:null!==(f=null==l?void 0:l.value.data)&&void 0!==f?f:null,hasChanged:!1};const{cart:m}=rt(u,d);a.set({data:{original:u,transformed:m},pending:!1,error:null}),lt(u),wt('cart:updated',u);const p=await(null==l?void 0:l.query({cart:m,orderId:c.orderData.id,lineItems:Ke(null===(i=pt.config)||void 0===i?void 0:i.data.formData)}));return{cart:m,calculation:null!=p?p:null,hasChanged:!0}}function Ct(e,t){var r;null===(r=pt.eventListeners.get(e))||void 0===r||r.delete(t)}function wt(e){for(var t=arguments.length,r=new Array(t>1?t-1:0),n=1;n<t;n++)r[n-1]=arguments[n];const o=pt.eventListeners.get(e);o&&o.forEach((t=>{try{t(...r)}catch(t){console.error('[RF] Error in '.concat(e,' event handler:'),t)}}))}const kt=['onReady','onError','cartProvider'];const Nt=new class{constructor(){Object.defineProperty(this,'_initPromise',{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,'_cartProvider',{enumerable:!0,configurable:!0,writable:!0,value:null}),Object.defineProperty(this,'version',{enumerable:!0,configurable:!0,writable:!0,value:'1.0.7'}),Object.defineProperty(this,'drawer',{enumerable:!0,configurable:!0,writable:!0,value:{open:()=>{this._ensureInitialized(),_t(i.Open)},close:()=>{this._ensureInitialized(),_t(i.Collapsed)},toggle:()=>{this._ensureInitialized();var e,t;_t((null!==(e=null===(t=pt.widgetViewState)||void 0===t?void 0:t.value)&&void 0!==e?e:null)===i.Open?i.Collapsed:i.Open)},isOpen:()=>{return this._ensureInitialized(),(null===(e=pt.widgetViewState)||void 0===e?void 0:e.value)===i.Open;var e}}}),Object.defineProperty(this,'data',{enumerable:!0,configurable:!0,writable:!0,value:{getCart:()=>function(){var e;const t=null===(e=pt.returnContext)||void 0===e?void 0:e.cartState;return null!=t&&t.value.data?t.value.data.original:null}(),getCalculation:()=>{return null!==(e=null===(t=pt.returnContext)||void 0===t?void 0:t.calculationState.value.data)&&void 0!==e?e:null;var e,t},getOrder:()=>function(){var e;const t=null===(e=pt.returnContext)||void 0===e||null===(e=e.orderState.value.data)||void 0===e?void 0:e.orderData;return t?{id:t.id,orderId:t.orderId,orderName:t.orderName,instantExchange:t.instantExchange,freeExchangeLabel:t.freeExchangeLabel,productsToExchange:t.productsToExchange,totalPrice:t.totalPrice}:null}(),isLoading:()=>{return null===(e=null===(t=pt.returnContext)||void 0===t?void 0:t.isPending)||void 0===e||e;var e,t}}}),Object.defineProperty(this,'cart',{enumerable:!0,configurable:!0,writable:!0,value:{setCart:async e=>(this._ensureInitialized(),yt(e)),refetch:async()=>{this._ensureInitialized(),await async function(){var e,t;const r=null===(e=pt.returnContext)||void 0===e?void 0:e.cartState,n=null===(t=pt.returnContext)||void 0===t?void 0:t.orderState;if(r&&null!=n&&n.value.data){if(pt.cartProvider)try{const e=await pt.cartProvider.getCart();if(!e)return;return yt(e)}catch(e){return console.error('[RF] Cart provider getCart failed:',e),void wt('error',e instanceof Error?e:new Error(String(e)))}await r.query(n.value.data)}else console.warn('[RF] Widget not initialized or order not loaded.')}()},clear:async()=>{this._ensureInitialized(),await async function(){var e;if(pt.isInitialized){if(null!==(e=pt.cartProvider)&&void 0!==e&&e.clearCart)try{return yt(await pt.cartProvider.clearCart())}catch(e){return console.error('[RF] Cart provider clearCart failed:',e),void wt('error',e instanceof Error?e:new Error(String(e)))}document.dispatchEvent(new CustomEvent('RF_CART_AND_CALCULATION_REFETCH'))}else console.warn('[RF] Widget not initialized. Call init() first.')}()}}}),Object.defineProperty(this,'toast',{enumerable:!0,configurable:!0,writable:!0,value:{show:e=>(this._ensureInitialized(),function(e){return pt.toastContext?pt.toastContext.add({message:e.message,tone:e.tone,duration:e.duration,onClose:e.onClose}):(console.warn('[RF] Widget not initialized. Call init() first.'),'')}(e)),dismiss:e=>{this._ensureInitialized(),function(e){pt.toastContext?pt.toastContext.remove(e):console.warn('[RF] Widget not initialized.')}(e)},clear:()=>{this._ensureInitialized(),pt.toastContext?pt.toastContext.clear():console.warn('[RF] Widget not initialized.')}}})}async init(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};return this._initPromise?(console.warn('[RF] Already initializing. Returning existing promise.'),this._initPromise):bt()?void console.warn('[RF] Already initialized. Call destroy() first to reinitialize.'):(this._initPromise=new Promise(((t,r)=>{(async()=>{try{var i;const{onReady:r,onError:s,cartProvider:l}=e,c=o(e,kt);l&&vt(l);const{default:u}=await Promise.resolve().then((()=>Vr)),{default:d}=await Promise.resolve().then((()=>Fc)),{h}=await Promise.resolve().then((()=>mr)),f=await u((e=>h(d,e)),n({networkInterceptionMethod:'none'},c));if(!f.success){var a;if('CONTAINER_EXISTS'===f.reason)return await this._waitForBridge(),null===(a=e.onReady)||void 0===a||a.call(e),t();if('MISSING_SESSION_ID'===f.reason)return this._initPromise=null,t();throw new Error('Widget initialization failed: '.concat(f.message,' (').concat(f.reason,')'))}await this._waitForBridge(),null===(i=e.onReady)||void 0===i||i.call(e),t()}catch(t){var s;const n=t instanceof Error?t:new Error(String(t));null===(s=e.onError)||void 0===s||s.call(e,n),vt(null),this._initPromise=null,r(n)}})()})),this._initPromise)}destroy(){if(vt(null),gt(),'undefined'!=typeof document){const e=document.getElementById('rf-overlay-widget');e&&e.remove()}this._initPromise=null}isInitialized(){return bt()}on(e,t){return function(e,t){pt.eventListeners.has(e)||pt.eventListeners.set(e,new Set),pt.eventListeners.get(e).add(t)}(e,t),()=>Ct(e,t)}off(e,t){Ct(e,t)}_ensureInitialized(){if(!bt())throw new Error('[RF] Widget not initialized. Call init() first.')}async _waitForBridge(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:1e4;const t=Date.now();for(;!bt();){if(Date.now()-t>e)throw new Error('[RF] Initialization timeout');await new Promise((e=>setTimeout(e,50)))}}};'undefined'!=typeof window&&(window.Returnflows=Nt);var xt,Et,St,Tt,It,Mt,At,Rt,Pt,Ot,Ht,Lt,Bt={},Dt=[],Ft=/acit|ex(?:s|g|n|p|$)|rph|grid|ows|mnc|ntw|ine[ch]|zoo|^ord|itera/i,zt=Array.isArray;function Ut(e,t){for(var r in t)e[r]=t[r];return e}function jt(e){e&&e.parentNode&&e.parentNode.removeChild(e)}function Gt(e,t,r){var n,o,i,a={};for(i in t)'key'==i?n=t[i]:'ref'==i?o=t[i]:a[i]=t[i];if(arguments.length>2&&(a.children=arguments.length>3?xt.call(arguments,2):r),'function'==typeof e&&null!=e.defaultProps)for(i in e.defaultProps)void 0===a[i]&&(a[i]=e.defaultProps[i]);return qt(e,a,n,o,null)}function qt(e,t,r,n,o){var i={type:e,props:t,key:r,ref:n,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:o??++St,__i:-1,__u:0};return null==o&&null!=Et.vnode&&Et.vnode(i),i}function Vt(e){return e.children}function Wt(e,t){this.props=e,this.context=t}function Zt(e,t){if(null==t)return e.__?Zt(e.__,e.__i+1):null;for(var r;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e)return r.__e;return'function'==typeof e.type?Zt(e):null}function Xt(e){var t,r;if(null!=(e=e.__)&&null!=e.__c){for(e.__e=e.__c.base=null,t=0;t<e.__k.length;t++)if(null!=(r=e.__k[t])&&null!=r.__e){e.__e=e.__c.base=r.__e;break}return Xt(e)}}function Kt(e){(!e.__d&&(e.__d=!0)&&Tt.push(e)&&!Yt.__r++||It!=Et.debounceRendering)&&((It=Et.debounceRendering)||Mt)(Yt)}function Yt(){for(var e,t,r,n,o,i,a,s=1;Tt.length;)Tt.length>s&&Tt.sort(At),e=Tt.shift(),s=Tt.length,e.__d&&(r=void 0,o=(n=(t=e).__v).__e,i=[],a=[],t.__P&&((r=Ut({},n)).__v=n.__v+1,Et.vnode&&Et.vnode(r),or(t.__P,r,n,t.__n,t.__P.namespaceURI,32&n.__u?[o]:null,i,o??Zt(n),!!(32&n.__u),a),r.__v=n.__v,r.__.__k[r.__i]=r,ir(i,r,a),r.__e!=o&&Xt(r)));Yt.__r=0}function Jt(e,t,r,n,o,i,a,s,l,c,u){var d,h,f,m,p,g,v=n&&n.__k||Dt,b=t.length;for(l=function(e,t,r,n,o){var i,a,s,l,c,u=r.length,d=u,h=0;for(e.__k=new Array(o),i=0;i<o;i++)null!=(a=t[i])&&'boolean'!=typeof a&&'function'!=typeof a?(l=i+h,(a=e.__k[i]='string'==typeof a||'number'==typeof a||'bigint'==typeof a||a.constructor==String?qt(null,a,null,null,null):zt(a)?qt(Vt,{children:a},null,null,null):null==a.constructor&&a.__b>0?qt(a.type,a.props,a.key,a.ref?a.ref:null,a.__v):a).__=e,a.__b=e.__b+1,s=null,-1!=(c=a.__i=er(a,r,l,d))&&(d--,(s=r[c])&&(s.__u|=2)),null==s||null==s.__v?(-1==c&&(o>u?h--:o<u&&h++),'function'!=typeof a.type&&(a.__u|=4)):c!=l&&(c==l-1?h--:c==l+1?h++:(c>l?h--:h++,a.__u|=4))):e.__k[i]=null;if(d)for(i=0;i<u;i++)null!=(s=r[i])&&!(2&s.__u)&&(s.__e==n&&(n=Zt(s)),cr(s,s));return n}(r,t,v,l,b),d=0;d<b;d++)null!=(f=r.__k[d])&&(h=-1==f.__i?Bt:v[f.__i]||Bt,f.__i=d,g=or(e,f,h,o,i,a,s,l,c,u),m=f.__e,f.ref&&h.ref!=f.ref&&(h.ref&&lr(h.ref,null,f),u.push(f.ref,f.__c||m,f)),null==p&&null!=m&&(p=m),4&f.__u||h.__k===f.__k?l=Qt(f,l,e):'function'==typeof f.type&&void 0!==g?l=g:m&&(l=m.nextSibling),f.__u&=-7);return r.__e=p,l}function Qt(e,t,r){var n,o;if('function'==typeof e.type){for(n=e.__k,o=0;n&&o<n.length;o++)n[o]&&(n[o].__=e,t=Qt(n[o],t,r));return t}e.__e!=t&&(t&&e.type&&!r.contains(t)&&(t=Zt(e)),r.insertBefore(e.__e,t||null),t=e.__e);do{t=t&&t.nextSibling}while(null!=t&&8==t.nodeType);return t}function $t(e,t){return t=t||[],null==e||'boolean'==typeof e||(zt(e)?e.some((e=>{$t(e,t)})):t.push(e)),t}function er(e,t,r,n){var o,i,a=e.key,s=e.type,l=t[r];if(null===l&&null==e.key||l&&a==l.key&&s==l.type&&!(2&l.__u))return r;if(n>(null==l||2&l.__u?0:1))for(o=r-1,i=r+1;o>=0||i<t.length;){if(o>=0){if((l=t[o])&&!(2&l.__u)&&a==l.key&&s==l.type)return o;o--}if(i<t.length){if((l=t[i])&&!(2&l.__u)&&a==l.key&&s==l.type)return i;i++}}return-1}function tr(e,t,r){'-'==t[0]?e.setProperty(t,r??''):e[t]=null==r?'':'number'!=typeof r||Ft.test(t)?r:r+'px'}function rr(e,t,r,n,o){var i,a;e:if('style'==t)if('string'==typeof r)e.style.cssText=r;else{if('string'==typeof n&&(e.style.cssText=n=''),n)for(t in n)r&&t in r||tr(e.style,t,'');if(r)for(t in r)n&&r[t]==n[t]||tr(e.style,t,r[t])}else if('o'==t[0]&&'n'==t[1])i=t!=(t=t.replace(Rt,'$1')),a=t.toLowerCase(),t=a in e||'onFocusOut'==t||'onFocusIn'==t?a.slice(2):t.slice(2),e.l||(e.l={}),e.l[t+i]=r,r?n?r.u=n.u:(r.u=Pt,e.addEventListener(t,i?Ht:Ot,i)):e.removeEventListener(t,i?Ht:Ot,i);else{if('http://www.w3.org/2000/svg'==o)t=t.replace(/xlink(H|:h)/,'h').replace(/sName$/,'s');else if('width'!=t&&'height'!=t&&'href'!=t&&'list'!=t&&'form'!=t&&'tabIndex'!=t&&'download'!=t&&'rowSpan'!=t&&'colSpan'!=t&&'role'!=t&&'popover'!=t&&t in e)try{e[t]=r??'';break e}catch(e){}'function'==typeof r||(null==r||!1===r&&'-'!=t[4]?e.removeAttribute(t):e.setAttribute(t,'popover'==t&&1==r?'':r))}}function nr(e){return function(t){if(this.l){var r=this.l[t.type+e];if(null==t.t)t.t=Pt++;else if(t.t<r.u)return;return r(Et.event?Et.event(t):t)}}}function or(e,t,r,n,o,i,a,s,l,c){var u,d,h,f,m,p,g,v,b,_,y,C,w,k,N,x,E,S=t.type;if(null!=t.constructor)return null;128&r.__u&&(l=!!(32&r.__u),i=[s=t.__e=r.__e]),(u=Et.__b)&&u(t);e:if('function'==typeof S)try{if(v=t.props,b='prototype'in S&&S.prototype.render,_=(u=S.contextType)&&n[u.__c],y=u?_?_.props.value:u.__:n,r.__c?g=(d=t.__c=r.__c).__=d.__E:(b?t.__c=d=new S(v,y):(t.__c=d=new Wt(v,y),d.constructor=S,d.render=ur),_&&_.sub(d),d.props=v,d.state||(d.state={}),d.context=y,d.__n=n,h=d.__d=!0,d.__h=[],d._sb=[]),b&&null==d.__s&&(d.__s=d.state),b&&null!=S.getDerivedStateFromProps&&(d.__s==d.state&&(d.__s=Ut({},d.__s)),Ut(d.__s,S.getDerivedStateFromProps(v,d.__s))),f=d.props,m=d.state,d.__v=t,h)b&&null==S.getDerivedStateFromProps&&null!=d.componentWillMount&&d.componentWillMount(),b&&null!=d.componentDidMount&&d.__h.push(d.componentDidMount);else{if(b&&null==S.getDerivedStateFromProps&&v!==f&&null!=d.componentWillReceiveProps&&d.componentWillReceiveProps(v,y),!d.__e&&null!=d.shouldComponentUpdate&&!1===d.shouldComponentUpdate(v,d.__s,y)||t.__v==r.__v){for(t.__v!=r.__v&&(d.props=v,d.state=d.__s,d.__d=!1),t.__e=r.__e,t.__k=r.__k,t.__k.some((e=>{e&&(e.__=t)})),C=0;C<d._sb.length;C++)d.__h.push(d._sb[C]);d._sb=[],d.__h.length&&a.push(d);break e}null!=d.componentWillUpdate&&d.componentWillUpdate(v,d.__s,y),b&&null!=d.componentDidUpdate&&d.__h.push((()=>{d.componentDidUpdate(f,m,p)}))}if(d.context=y,d.props=v,d.__P=e,d.__e=!1,w=Et.__r,k=0,b){for(d.state=d.__s,d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),N=0;N<d._sb.length;N++)d.__h.push(d._sb[N]);d._sb=[]}else do{d.__d=!1,w&&w(t),u=d.render(d.props,d.state,d.context),d.state=d.__s}while(d.__d&&++k<25);d.state=d.__s,null!=d.getChildContext&&(n=Ut(Ut({},n),d.getChildContext())),b&&!h&&null!=d.getSnapshotBeforeUpdate&&(p=d.getSnapshotBeforeUpdate(f,m)),x=u,null!=u&&u.type===Vt&&null==u.key&&(x=ar(u.props.children)),s=Jt(e,zt(x)?x:[x],t,r,n,o,i,a,s,l,c),d.base=t.__e,t.__u&=-161,d.__h.length&&a.push(d),g&&(d.__E=d.__=null)}catch(e){if(t.__v=null,l||null!=i)if(e.then){for(t.__u|=l?160:128;s&&8==s.nodeType&&s.nextSibling;)s=s.nextSibling;i[i.indexOf(s)]=null,t.__e=s}else for(E=i.length;E--;)jt(i[E]);else t.__e=r.__e,t.__k=r.__k;Et.__e(e,t,r)}else null==i&&t.__v==r.__v?(t.__k=r.__k,t.__e=r.__e):s=t.__e=sr(r.__e,t,r,n,o,i,a,l,c);return(u=Et.diffed)&&u(t),128&t.__u?void 0:s}function ir(e,t,r){for(var n=0;n<r.length;n++)lr(r[n],r[++n],r[++n]);Et.__c&&Et.__c(t,e),e.some((t=>{try{e=t.__h,t.__h=[],e.some((e=>{e.call(t)}))}catch(e){Et.__e(e,t.__v)}}))}function ar(e){return'object'!=typeof e||null==e||e.__b&&e.__b>0?e:zt(e)?e.map(ar):Ut({},e)}function sr(e,t,r,n,o,i,a,s,l){var c,u,d,h,f,m,p,g=r.props,v=t.props,b=t.type;if('svg'==b?o='http://www.w3.org/2000/svg':'math'==b?o='http://www.w3.org/1998/Math/MathML':o||(o='http://www.w3.org/1999/xhtml'),null!=i)for(c=0;c<i.length;c++)if((f=i[c])&&'setAttribute'in f==!!b&&(b?f.localName==b:3==f.nodeType)){e=f,i[c]=null;break}if(null==e){if(null==b)return document.createTextNode(v);e=document.createElementNS(o,b,v.is&&v),s&&(Et.__m&&Et.__m(t,i),s=!1),i=null}if(null==b)g===v||s&&e.data==v||(e.data=v);else{if(i=i&&xt.call(e.childNodes),g=r.props||Bt,!s&&null!=i)for(g={},c=0;c<e.attributes.length;c++)g[(f=e.attributes[c]).name]=f.value;for(c in g)if(f=g[c],'children'==c);else if('dangerouslySetInnerHTML'==c)d=f;else if(!(c in v)){if('value'==c&&'defaultValue'in v||'checked'==c&&'defaultChecked'in v)continue;rr(e,c,null,f,o)}for(c in v)f=v[c],'children'==c?h=f:'dangerouslySetInnerHTML'==c?u=f:'value'==c?m=f:'checked'==c?p=f:s&&'function'!=typeof f||g[c]===f||rr(e,c,f,g[c],o);if(u)s||d&&(u.__html==d.__html||u.__html==e.innerHTML)||(e.innerHTML=u.__html),t.__k=[];else if(d&&(e.innerHTML=''),Jt('template'==t.type?e.content:e,zt(h)?h:[h],t,r,n,'foreignObject'==b?'http://www.w3.org/1999/xhtml':o,i,a,i?i[0]:r.__k&&Zt(r,0),s,l),null!=i)for(c=i.length;c--;)jt(i[c]);s||(c='value','progress'==b&&null==m?e.removeAttribute('value'):null!=m&&(m!==e[c]||'progress'==b&&!m||'option'==b&&m!=g[c])&&rr(e,c,m,g[c],o),c='checked',null!=p&&p!=e[c]&&rr(e,c,p,g[c],o))}return e}function lr(e,t,r){try{if('function'==typeof e){var n='function'==typeof e.__u;n&&e.__u(),n&&null==t||(e.__u=e(t))}else e.current=t}catch(e){Et.__e(e,r)}}function cr(e,t,r){var n,o;if(Et.unmount&&Et.unmount(e),(n=e.ref)&&(n.current&&n.current!=e.__e||lr(n,null,t)),null!=(n=e.__c)){if(n.componentWillUnmount)try{n.componentWillUnmount()}catch(e){Et.__e(e,t)}n.base=n.__P=null}if(n=e.__k)for(o=0;o<n.length;o++)n[o]&&cr(n[o],t,r||'function'!=typeof e.type);r||jt(e.__e),e.__c=e.__=e.__e=void 0}function ur(e,t,r){return this.constructor(e,r)}function dr(e,t,r){var n,o,i,a;t==document&&(t=document.documentElement),Et.__&&Et.__(e,t),o=(n='function'==typeof r)?null:t.__k,i=[],a=[],or(t,e=t.__k=Gt(Vt,null,[e]),o||Bt,Bt,t.namespaceURI,o?null:t.firstChild?xt.call(t.childNodes):null,i,o?o.__e:t.firstChild,n,a),ir(i,e,a)}function hr(e,t,r){var n,o,i,a,s=Ut({},e.props);for(i in e.type&&e.type.defaultProps&&(a=e.type.defaultProps),t)'key'==i?n=t[i]:'ref'==i?o=t[i]:s[i]=void 0===t[i]&&null!=a?a[i]:t[i];return arguments.length>2&&(s.children=arguments.length>3?xt.call(arguments,2):r),qt(e.type,s,n||e.key,o||e.ref,null)}function fr(e){function t(e){var r,n;return this.getChildContext||(r=new Set,(n={})[t.__c]=this,this.getChildContext=()=>n,this.componentWillUnmount=()=>{r=null},this.shouldComponentUpdate=function(e){this.props.value!=e.value&&r.forEach((e=>{e.__e=!0,Kt(e)}))},this.sub=e=>{r.add(e);var t=e.componentWillUnmount;e.componentWillUnmount=()=>{r&&r.delete(e),t&&t.call(e)}}),e.children}return t.__c='__cC'+Lt++,t.__=e,t.Provider=t.__l=(t.Consumer=(e,t)=>e.children(t)).contextType=t,t}xt=Dt.slice,Et={__e:(e,t,r,n)=>{for(var o,i,a;t=t.__;)if((o=t.__c)&&!o.__)try{if((i=o.constructor)&&null!=i.getDerivedStateFromError&&(o.setState(i.getDerivedStateFromError(e)),a=o.__d),null!=o.componentDidCatch&&(o.componentDidCatch(e,n||{}),a=o.__d),a)return o.__E=o}catch(t){e=t}throw e}},St=0,Wt.prototype.setState=function(e,t){var r;r=null!=this.__s&&this.__s!=this.state?this.__s:this.__s=Ut({},this.state),'function'==typeof e&&(e=e(Ut({},r),this.props)),e&&Ut(r,e),null!=e&&this.__v&&(t&&this._sb.push(t),Kt(this))},Wt.prototype.forceUpdate=function(e){this.__v&&(this.__e=!0,e&&this.__h.push(e),Kt(this))},Wt.prototype.render=Vt,Tt=[],Mt='function'==typeof Promise?Promise.prototype.then.bind(Promise.resolve()):setTimeout,At=(e,t)=>e.__v.__b-t.__v.__b,Yt.__r=0,Rt=/(PointerCapture)$|Capture$/i,Pt=0,Ot=nr(!1),Ht=nr(!0),Lt=0;var mr=Object.freeze({__proto__:null,Component:Wt,Fragment:Vt,cloneElement:hr,createContext:fr,createElement:Gt,h:Gt,get options(){return Et},render:dr,toChildArray:$t});function pr(e,t){let r;try{var n;r=null===(n=process.env)||void 0===n?void 0:n[e]}catch(t){var o;r=null===(o=import.meta.env)||void 0===o?void 0:o[e]}return null!=r||(r=t),r}const gr=pr('VITE_API_URL','http://localhost:8080'),vr=pr('VITE_PLATFORM_URL','http://localhost:3000'),br=pr('VITE_WIDGET_BASE_URL','http://localhost:3334'),_r='rflowsId',yr=['lineItems','slug','locale','currency'],Cr='root',wr='rf-overlay-widget',kr='rf-settings-json';var Nr,xr;(e=>{e.FetchInterception='RF_FETCH_INTERCEPTION',e.XHRInterception='RF_XHR_INTERCEPTION',e.DrawerStateChange='RF_DRAWER_STATE_CHANGE',e.WidgetInitialization='RF_WIDGET_INITIALIZATION'})(Nr||(Nr={})),(e=>{e.DrawerOpen='RF_DRAWER_OPEN',e.DrawerClose='RF_DRAWER_CLOSE',e.DrawerToggle='RF_DRAWER_TOGGLE',e.CalculationRefetch='RF_CALCULATION_REFETCH',e.CartRefetch='RF_CART_REFETCH',e.CartAndCalculationRefetch='RF_CART_AND_CALCULATION_REFETCH',e.DrawerOpenAndRefetch='RF_DRAWER_OPEN_AND_REFETCH'})(xr||(xr={}));const Er={subscribe:function(e,t){const r=e=>t(e);return document.addEventListener(e,r),()=>{document.removeEventListener(e,r)}},publish:function(e){const t=new CustomEvent(e,{detail:arguments.length<=1?void 0:arguments[1]});document.dispatchEvent(t)},unsubscribe:function(e,t){document.removeEventListener(e,t)}},Sr='en';const Tr=['baseUrl','Request','fetch','querySerializer','bodySerializer','pathSerializer','headers','requestInitExt'],Ir=['baseUrl','fetch','Request','headers','params','parseAs','querySerializer','bodySerializer','pathSerializer','body','middleware'],Mr=/\{[^{}]+\}/g;function Ar(e,t,r){if(null==t)return'';if('object'==typeof t)throw new Error('Deeply-nested arrays/objects aren’t supported. Provide your own `querySerializer()` to handle these.');return''.concat(e,'=').concat(!0===(null==r?void 0:r.allowReserved)?t:encodeURIComponent(t))}function Rr(e,t,r){if(!t||'object'!=typeof t)return'';const n=[],o={simple:',',label:'.',matrix:';'}[r.style]||'&';if('deepObject'!==r.style&&!1===r.explode){for(const e in t)n.push(e,!0===r.allowReserved?t[e]:encodeURIComponent(t[e]));const o=n.join(',');switch(r.style){case'form':return''.concat(e,'=').concat(o);case'label':return'.'.concat(o);case'matrix':return';'.concat(e,'=').concat(o);default:return o}}for(const o in t){const i='deepObject'===r.style?''.concat(e,'[').concat(o,']'):o;n.push(Ar(i,t[o],r))}const i=n.join(o);return'label'===r.style||'matrix'===r.style?''.concat(o).concat(i):i}function Pr(e,t,r){if(!Array.isArray(t))return'';if(!1===r.explode){const n={form:',',spaceDelimited:'%20',pipeDelimited:'|'}[r.style]||',',o=(!0===r.allowReserved?t:t.map((e=>encodeURIComponent(e)))).join(n);switch(r.style){case'simple':return o;case'label':return'.'.concat(o);case'matrix':return';'.concat(e,'=').concat(o);default:return''.concat(e,'=').concat(o)}}const n={simple:',',label:'.',matrix:';'}[r.style]||'&',o=[];for(const n of t)'simple'===r.style||'label'===r.style?o.push(!0===r.allowReserved?n:encodeURIComponent(n)):o.push(Ar(e,n,r));return'label'===r.style||'matrix'===r.style?''.concat(n).concat(o.join(n)):o.join(n)}function Or(e){return function(t){const r=[];if(t&&'object'==typeof t)for(const o in t){const i=t[o];if(null!=i)if(Array.isArray(i)){if(0===i.length)continue;r.push(Pr(o,i,n(n({style:'form',explode:!0},null==e?void 0:e.array),{},{allowReserved:(null==e?void 0:e.allowReserved)||!1})))}else'object'!=typeof i?r.push(Ar(o,i,e)):r.push(Rr(o,i,n(n({style:'deepObject',explode:!0},null==e?void 0:e.object),{},{allowReserved:(null==e?void 0:e.allowReserved)||!1})))}return r.join('&')}}function Hr(e,t){let r=e;for(const o of null!==(n=e.match(Mr))&&void 0!==n?n:[]){var n;let e=o.substring(1,o.length-1),i=!1,a='simple';if(e.endsWith('*')&&(i=!0,e=e.substring(0,e.length-1)),e.startsWith('.')?(a='label',e=e.substring(1)):e.startsWith(';')&&(a='matrix',e=e.substring(1)),!t||void 0===t[e]||null===t[e])continue;const s=t[e];Array.isArray(s)?r=r.replace(o,Pr(e,s,{style:a,explode:i})):r='object'!=typeof s?'matrix'!==a?r.replace(o,'label'===a?'.'.concat(encodeURIComponent(s)):encodeURIComponent(s)):r.replace(o,';'.concat(Ar(e,s))):r.replace(o,Rr(e,s,{style:a,explode:i}))}return r}function Lr(e,t){if(e instanceof FormData)return e;if(t){var r,n;if('application/x-www-form-urlencoded'===(t.get instanceof Function?null!==(r=t.get('Content-Type'))&&void 0!==r?r:t.get('content-type'):null!==(n=t['Content-Type'])&&void 0!==n?n:t['content-type']))return new URLSearchParams(e).toString()}return JSON.stringify(e)}function Br(){const e=new Headers;for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];for(const t of r){if(!t||'object'!=typeof t)continue;const r=t instanceof Headers?t.entries():Object.entries(t);for(const[t,n]of r)if(null===n)e.delete(t);else if(Array.isArray(n))for(const r of n)e.append(t,r);else void 0!==n&&e.set(t,n)}return e}function Dr(e){return e.endsWith('/')?e.substring(0,e.length-1):e}const Fr=function(e){let t=n({},e),{baseUrl:r='',Request:i=globalThis.Request,fetch:a=globalThis.fetch,querySerializer:s,bodySerializer:l,pathSerializer:c,headers:u,requestInitExt:d}=t,h=o(t,Tr);var f;d='object'==typeof process&&Number.parseInt(null===(f=process)||void 0===f||null===(f=f.versions)||void 0===f||null===(f=f.node)||void 0===f?void 0:f.substring(0,2))>=18&&process.versions.undici?d:void 0,r=Dr(r);const m=[];async function p(e,t){var f;const p=t||{},{baseUrl:g,fetch:v=a,Request:b=i,headers:_,params:y={},parseAs:C='json',querySerializer:w,bodySerializer:k=(null!=l?l:Lr),pathSerializer:N,body:x,middleware:E=[]}=p,S=o(p,Ir);let T=r;var I;g&&(T=null!==(I=Dr(g))&&void 0!==I?I:r);let M='function'==typeof s?s:Or(s);w&&(M='function'==typeof w?w:Or(n(n({},'object'==typeof s?s:{}),w)));const A=N||c||Hr,R=void 0===x?void 0:k(x,Br(u,_,y.header)),P=Br(void 0===R||R instanceof FormData?{}:{'Content-Type':'application/json'},u,_,y.header),O=[...m,...E],H=n(n(n({redirect:'follow'},h),S),{},{body:R,headers:P});let L,B,D,F=new b(function(e,t){var r,n;let o=''.concat(t.baseUrl).concat(e);null!==(r=t.params)&&void 0!==r&&r.path&&(o=t.pathSerializer(o,t.params.path));let i=t.querySerializer(null!==(n=t.params.query)&&void 0!==n?n:{});i.startsWith('?')&&(i=i.substring(1));i&&(o+='?'.concat(i));return o}(e,{baseUrl:T,params:y,querySerializer:M,pathSerializer:A}),H);for(const e in S)e in F||(F[e]=S[e]);if(O.length){L=Math.random().toString(36).slice(2,11),B=Object.freeze({baseUrl:T,fetch:v,parseAs:C,querySerializer:M,bodySerializer:k,pathSerializer:A});for(const t of O)if(t&&'object'==typeof t&&'function'==typeof t.onRequest){const r=await t.onRequest({request:F,schemaPath:e,params:y,options:B,id:L});if(r){if(!(r instanceof b)){if(r instanceof Response){D=r;break}throw new Error('onRequest: must return new Request() or Response() when modifying the request')}F=r}}}if(!D){try{D=await v(F,d)}catch(t){let r=t;if(O.length)for(let t=O.length-1;t>=0;t--){const n=O[t];if(n&&'object'==typeof n&&'function'==typeof n.onError){const t=await n.onError({request:F,error:r,schemaPath:e,params:y,options:B,id:L});if(t){if(t instanceof Response){r=void 0,D=t;break}if(t instanceof Error){r=t;continue}throw new Error('onError: must return new Response() or instance of Error')}}}if(r)throw r}if(O.length)for(let t=O.length-1;t>=0;t--){const r=O[t];if(r&&'object'==typeof r&&'function'==typeof r.onResponse){const t=await r.onResponse({request:F,response:D,schemaPath:e,params:y,options:B,id:L});if(t){if(!(t instanceof Response))throw new Error('onResponse: must return new Response() when modifying the response');D=t}}}}const z=D.headers.get('Content-Length');if(204===D.status||'HEAD'===F.method||'0'===z&&(null===(f=D.headers.get('Transfer-Encoding'))||void 0===f||!f.includes('chunked')))return D.ok?{data:void 0,response:D}:{error:void 0,response:D};if(D.ok){const e=async()=>{if('stream'===C)return D.body;if('json'===C&&!z){const e=await D.text();return e?JSON.parse(e):void 0}return await D[C]()};return{data:await e(),response:D}}let U=await D.text();try{U=JSON.parse(U)}catch(e){}return{error:U,response:D}}return{request:(e,t,r)=>p(t,n(n({},r),{},{method:e.toUpperCase()})),GET:(e,t)=>p(e,n(n({},t),{},{method:'GET'})),PUT:(e,t)=>p(e,n(n({},t),{},{method:'PUT'})),POST:(e,t)=>p(e,n(n({},t),{},{method:'POST'})),DELETE:(e,t)=>p(e,n(n({},t),{},{method:'DELETE'})),OPTIONS:(e,t)=>p(e,n(n({},t),{},{method:'OPTIONS'})),HEAD:(e,t)=>p(e,n(n({},t),{},{method:'HEAD'})),PATCH:(e,t)=>p(e,n(n({},t),{},{method:'PATCH'})),TRACE:(e,t)=>p(e,n(n({},t),{},{method:'TRACE'})),use(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(const e of t)if(e){if('object'!=typeof e||!('onRequest'in e||'onResponse'in e||'onError'in e))throw new Error('Middleware must be an object with one of `onRequest()`, `onResponse() or `onError()`');m.push(e)}},eject(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];for(const e of t){const t=m.indexOf(e);-1!==t&&m.splice(t,1)}}}}({baseUrl:gr,headers:{'Content-Type':'application/json'}});async function zr(e){let{locale:t,slug:r,isFirstLoad:o=!1}=e,i=function(e){const t=document.getElementById(kr);if(!t)return null;try{var r;const o=JSON.parse(t.innerHTML),i=null===(r=o.translations)||void 0===r||null===(r=r.messages)||void 0===r?void 0:r[e],a=i?{messages:i}:void 0;return n(n({},o),{},{translations:a})}catch(e){return Ve.error('Failed to parse widget settings JSON',e),null}}(t);if(!i){const e=await async function(e){let{locale:t,slug:r,shouldUseCachedResult:n=!0}=e;if(!r)return null;try{var o;const e=await Fr.GET('/shop-overlay/config',{params:{query:{locale:t,slug:r}},clientStorage:{key:'remote_settings_'.concat(r,'_').concat(t),type:'sessionStorage',shouldUseCachedResult:n}}),a=null===(o=e.data)||void 0===o?void 0:o.responseObject;var i;return e.error||!a?(Ve.error('Error response from config endpoint:',null!==(i=e.error)&&void 0!==i?i:'No data returned'),null):a}catch(e){return Ve.error('Error fetching remote settings for locale '.concat(t,':'),e),null}}({locale:t,slug:r,shouldUseCachedResult:!o});e?(Ve.info('Using remote settings:',e),i=e):Ve.warn('No settings found in script or remotely')}return i}function Ur(e){const t={};return Object.entries(e).forEach((e=>{let[r,n]=e;if(Ze(n))return n;let o=n;if('true'===n)o=!0;else if('false'===n)o=!1;else if(function(e){return'number'==typeof e||!isNaN(Number(e))&&isFinite(Number(e))}(n))o=Number(n);else if('null'===n)o=null;else if('undefined'===n)o=void 0;else try{o=JSON.parse(n)}catch(e){}t[r]=o})),t}async function jr(e){var t,r;const o=(i=e,'undefined'!=typeof DOMStringMap&&i instanceof DOMStringMap||'[object DOMStringMap]'===Object.prototype.toString.call(i)?Ur(e):e);var i;const a=function(){var e;const t=null!==(e=window.__rf_original_search)&&void 0!==e?e:window.location.search;return new URLSearchParams(t)}(),s=a.get(_r),l=Boolean(s),c=s||ze.get(Re);if(!c){const e='Session ID is missing from URL and storage';return Ve.warn(e),{success:!1,reason:'MISSING_SESSION_ID',message:e}}const u=function(e){let{options:t,searchParams:r}=e;const n='development'===t.env||'test'===t.env,o='true'===r.get('debug'),i=ze.get(Be);return(n||o)&&ze.set(Be,!0),Boolean(n||o||i)}({options:o,searchParams:a}),d=await async function(e){if(!e)return null;try{var t,r;const n=await Fr.GET('/userflow/session/{id}',{params:{path:{id:e}}});return Ve.info('Session cache retrieved successfully:',n),null!==(t=null===(r=n.data)||void 0===r?void 0:r.responseObject)&&void 0!==t?t:null}catch(e){return Ve.error('Error getting session cache:',e),null}}(c);if(!d){const e='No session cache found for id: '.concat(c);return Ve.warn(e),{success:!1,reason:'SESSION_NOT_FOUND',message:e}}const h=d.data.currency||o.defaultCurrency||'DKK',f=[d.data.locale,o.defaultLocale,Sr].filter((e=>void 0!==e)),{locale:m,messages:p}=await async function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];const n=t.length>0?t:[Sr];for(const e of n)try{const t=await fetch(''.concat(br,'/messages/').concat(e,'.json'));if(t.ok)return{messages:await t.json(),locale:e}}catch(t){Ve.error('Error loading messages for locale '.concat(e,':'),t)}throw new Error('No messages found for any of the locales: '.concat(n.join(', ')))}(...f),g=await zr({locale:m,slug:d.data.slug,isFirstLoad:l}),v=function(e){try{return'object'!=typeof e||null===e?e:structuredClone(e)}catch(t){Ve.warn('structuredClone failed, falling back to JSON clone');try{return JSON.parse(JSON.stringify(e))}catch(e){throw Ve.error('JSON clone also failed (circular reference or non-serializable value)'),e}}}(null==g||null===(t=g.translations)||void 0===t?void 0:t.messages);v&&(Ve.info('Merging custom translations into messages...'),Object.entries(v).forEach((e=>{let[t,r]=e;try{!function(e,t,r){const n=t.split('.'),o=n.pop();if(!o)throw new Error('Invalid path');n.reduce(((e,r)=>{if(e&&'object'==typeof e&&r in e){const t=e[r];if(t&&'object'==typeof t)return t}throw new Error('Cannot access property \''.concat(r,'\' on path \'').concat(t,'\''))}),e)[o]=r}(p,t,r)}catch(e){Ve.warn('Skipping unknown custom translation key "'.concat(t,'"'),e)}})));return{success:!0,config:n({locale:m,currency:h,debugMode:u,isFirstLoad:l,messages:p,options:o,theme:null!==(r=null==g?void 0:g.theme)&&void 0!==r?r:null},d)}}function Gr(e){const t=Object.entries(e).filter((e=>{let[t,r]=e;return'string'==typeof r||'number'==typeof r})).map((e=>{let[t,r]=e;return'['.concat(t,'="').concat(r,'"]')})).join(''),r=document.querySelector('link'.concat(t));if(r)return Ve.warn('Link element with attributes '.concat(JSON.stringify(e),' already exists.')),r;const n=document.createElement('link');return Object.assign(n,e),document.head.appendChild(n),n}function qr(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:document.head;if(!e)return;if(!function(e){return(e.match(/{/g)||[]).length===(e.match(/}/g)||[]).length&&![/javascript:/gi,/expression\s*\(/gi,/behavior\s*:/gi,/binding\s*:/gi,/@import.*url\s*\(\s*["']?javascript:/gi].some((t=>t.test(e)))}(e))throw new Error('Invalid CSS detected. Please check your CSS syntax and remove any dangerous patterns.');const r=document.createElement('style');return r.setAttribute('data-'.concat('rf-custom-css'),'true'),r.textContent=e,Ve.info('Injecting custom CSS...'),t.appendChild(r),r}var Vr=Object.freeze({__proto__:null,default:async function(e,t){try{const r=await jr(t);if(!r.success)return r;const n=function(){if(document.getElementById(wr))return{success:!1,reason:'CONTAINER_EXISTS',message:'Container with ID "'.concat(wr,'" already exists')};const e=document.createElement('div');e.id=wr,e.style.display='block';const t=e.attachShadow({mode:'closed'}),r=document.createElement('div');return r.className='rf-container',r.id='shadow-root',r.style.display='none',t.appendChild(r),{success:!0,value:[e,r]}}();if(!n.success)return n;const[o,i]=n.value,{config:a}=r,{options:{customCssOverlay:s,customCssPage:l}}=a,c='devStyles'in t?t.devStyles:void 0;return c?function(e,t){const r=document.createElement('style');r.textContent=t,e.appendChild(r)}(i,c):function(e){const t=document.createElement('link');t.rel='stylesheet';const r=pr('WIDGET_NAME')||'widget';t.href=''.concat(br,'/').concat(r,'.css'),t.onload=()=>{Ve.info('Stylesheet loaded successfully')},e.appendChild(t)}(i),function(){const e=document.createElement('link');e.rel='stylesheet',e.href=''.concat(br,'/variables.css'),e.onload=()=>{Ve.info('Public CSS variables loaded successfully')},e.onerror=()=>{Ve.warn('Failed to load public CSS variables')},document.head.appendChild(e)}(),new Promise(((e,t)=>{const r=Gr({rel:'preconnect',href:'https://fonts.googleapis.com'}),n=Gr({rel:'preconnect',href:'https://fonts.gstatic.com',crossOrigin:'anonymous'}),o=Gr({rel:'stylesheet',href:'https://fonts.googleapis.com/css2?family=Caveat:wght@400..700&family=Inter:ital,opsz,wght@0,14..32,100..900;1,14..32,100..900&display=swap'});o.onload=()=>{Ve.info('Font stylesheet loaded successfully'),e([r,n,o])},o.onerror=()=>{Ve.error('Failed to load font stylesheet'),t(new Error('Failed to load font stylesheet'))},document.head.appendChild(o)})),qr(l),qr(s,i),function(e,t,r){Ve.info('Injecting widget with options...',r),dr(e(r),t)}(e,i,a),document.body.appendChild(o),Er.publish(Nr.WidgetInitialization,a),{success:!0,config:a}}catch(e){const t=e instanceof Error?e.message:String(e);return Ve.error('Initialization failed',e),{success:!1,reason:'UNKNOWN_ERROR',message:t}}}}),Wr=0;function Zr(e,t,r,n,o,i){t||(t={});var a,s,l=t;if('ref'in l)for(s in l={},t)'ref'==s?a=t[s]:l[s]=t[s];var c={type:e,props:l,key:r,ref:a,__k:null,__:null,__b:0,__e:null,__c:null,constructor:void 0,__v:--Wr,__i:-1,__u:0,__source:o,__self:i};if('function'==typeof e&&(a=e.defaultProps))for(s in a)void 0===l[s]&&(l[s]=a[s]);return Et.vnode&&Et.vnode(c),c}function Xr(e,t){const r=t&&t.cache?t.cache:tn,n=t&&t.serializer?t.serializer:$r;return(t&&t.strategy?t.strategy:Qr)(e,{cache:r,serializer:n})}function Kr(e,t,r,n){const o=null==(i=n)||'number'==typeof i||'boolean'==typeof i?n:r(n);var i;let a=t.get(o);return void 0===a&&(a=e.call(this,n),t.set(o,a)),a}function Yr(e,t,r){const n=Array.prototype.slice.call(arguments,3),o=r(n);let i=t.get(o);return void 0===i&&(i=e.apply(this,n),t.set(o,i)),i}function Jr(e,t,r,n,o){return r.bind(t,e,n,o)}function Qr(e,t){return Jr(e,this,1===e.length?Kr:Yr,t.cache.create(),t.serializer)}const $r=function(){return JSON.stringify(arguments)};var en=class{constructor(){this.cache=Object.create(null)}get(e){return this.cache[e]}set(e,t){this.cache[e]=t}};const tn={create:function(){return new en}},rn={variadic:function(e,t){return Jr(e,this,Yr,t.cache.create(),t.serializer)},monadic:function(e,t){return Jr(e,this,Kr,t.cache.create(),t.serializer)}};let nn=class extends Error{constructor(e,t){let r=e;t&&(r+=': '+t),super(r),this.code=e,t&&(this.originalMessage=t)}};var on=(e=>(e.MISSING_MESSAGE='MISSING_MESSAGE',e.MISSING_FORMAT='MISSING_FORMAT',e.ENVIRONMENT_FALLBACK='ENVIRONMENT_FALLBACK',e.INSUFFICIENT_PATH='INSUFFICIENT_PATH',e.INVALID_MESSAGE='INVALID_MESSAGE',e.INVALID_KEY='INVALID_KEY',e.FORMATTING_ERROR='FORMATTING_ERROR',e))(on||{});function an(){return{dateTime:{},number:{},message:{},relativeTime:{},pluralRules:{},list:{},displayNames:{}}}function sn(e,t){return Xr(e,{cache:(r=t,{create:()=>({get:e=>r[e],set(e,t){r[e]=t}})}),strategy:rn.variadic});var r}function ln(e,t){return sn((function(){for(var t=arguments.length,r=new Array(t),n=0;n<t;n++)r[n]=arguments[n];return new e(...r)}),t)}function cn(e){return{getDateTimeFormat:ln(Intl.DateTimeFormat,e.dateTime),getNumberFormat:ln(Intl.NumberFormat,e.number),getPluralRules:ln(Intl.PluralRules,e.pluralRules),getRelativeTimeFormat:ln(Intl.RelativeTimeFormat,e.relativeTime),getListFormat:ln(Intl.ListFormat,e.list),getDisplayNames:ln(Intl.DisplayNames,e.displayNames)}}var un,dn,hn,fn,mn=0,pn=[],gn=Et,vn=gn.__b,bn=gn.__r,_n=gn.diffed,yn=gn.__c,Cn=gn.unmount,wn=gn.__;function kn(e,t){gn.__h&&gn.__h(dn,e,mn||t),mn=0;var r=dn.__H||(dn.__H={__:[],__h:[]});return e>=r.__.length&&r.__.push({}),r.__[e]}function Nn(e){return mn=1,function(e,t,r){var n=kn(un++,2);if(n.t=e,!n.__c&&(n.__=[r?r(t):Ln(void 0,t),e=>{var t=n.__N?n.__N[0]:n.__[0],r=n.t(t,e);t!==r&&(n.__N=[r,n.__[1]],n.__c.setState({}))}],n.__c=dn,!dn.__f)){var o=function(e,t,r){if(!n.__c.__H)return!0;var o=n.__c.__H.__.filter((e=>!!e.__c));if(o.every((e=>!e.__N)))return!i||i.call(this,e,t,r);var a=n.__c.props!==e;return o.forEach((e=>{if(e.__N){var t=e.__[0];e.__=e.__N,e.__N=void 0,t!==e.__[0]&&(a=!0)}})),i&&i.call(this,e,t,r)||a};dn.__f=!0;var i=dn.shouldComponentUpdate,a=dn.componentWillUpdate;dn.componentWillUpdate=function(e,t,r){if(this.__e){var n=i;i=void 0,o(e,t,r),i=n}a&&a.call(this,e,t,r)},dn.shouldComponentUpdate=o}return n.__N||n.__}(Ln,e)}function xn(e,t){var r=kn(un++,3);!gn.__s&&Hn(r.__H,t)&&(r.__=e,r.u=t,dn.__H.__h.push(r))}function En(e){return mn=5,Sn((()=>({current:e})),[])}function Sn(e,t){var r=kn(un++,7);return Hn(r.__H,t)&&(r.__=e(),r.__H=t,r.__h=e),r.__}function Tn(e,t){return mn=8,Sn((()=>e),t)}function In(e){var t=dn.context[e.__c],r=kn(un++,9);return r.c=e,t?(null==r.__&&(r.__=!0,t.sub(dn)),t.props.value):e.__}function Mn(){for(var e;e=pn.shift();)if(e.__P&&e.__H)try{e.__H.__h.forEach(Pn),e.__H.__h.forEach(On),e.__H.__h=[]}catch(t){e.__H.__h=[],gn.__e(t,e.__v)}}gn.__b=e=>{dn=null,vn&&vn(e)},gn.__=(e,t)=>{e&&t.__k&&t.__k.__m&&(e.__m=t.__k.__m),wn&&wn(e,t)},gn.__r=e=>{bn&&bn(e),un=0;var t=(dn=e.__c).__H;t&&(hn===dn?(t.__h=[],dn.__h=[],t.__.forEach((e=>{e.__N&&(e.__=e.__N),e.u=e.__N=void 0}))):(t.__h.forEach(Pn),t.__h.forEach(On),t.__h=[],un=0)),hn=dn},gn.diffed=e=>{_n&&_n(e);var t=e.__c;t&&t.__H&&(t.__H.__h.length&&(1!==pn.push(t)&&fn===gn.requestAnimationFrame||((fn=gn.requestAnimationFrame)||Rn)(Mn)),t.__H.__.forEach((e=>{e.u&&(e.__H=e.u),e.u=void 0}))),hn=dn=null},gn.__c=(e,t)=>{t.some((e=>{try{e.__h.forEach(Pn),e.__h=e.__h.filter((e=>!e.__||On(e)))}catch(r){t.some((e=>{e.__h&&(e.__h=[])})),t=[],gn.__e(r,e.__v)}})),yn&&yn(e,t)},gn.unmount=e=>{Cn&&Cn(e);var t,r=e.__c;r&&r.__H&&(r.__H.__.forEach((e=>{try{Pn(e)}catch(e){t=e}})),r.__H=void 0,t&&gn.__e(t,r.__v))};var An='function'==typeof requestAnimationFrame;function Rn(e){var t,r=()=>{clearTimeout(n),An&&cancelAnimationFrame(t),setTimeout(e)},n=setTimeout(r,35);An&&(t=requestAnimationFrame(r))}function Pn(e){var t=dn,r=e.__c;'function'==typeof r&&(e.__c=void 0,r()),dn=t}function On(e){var t=dn;e.__c=e.__(),dn=t}function Hn(e,t){return!e||e.length!==t.length||t.some(((t,r)=>t!==e[r]))}function Ln(e,t){return'function'==typeof t?t(e):t}function Bn(e,t){for(var r in e)if('__source'!==r&&!(r in t))return!0;for(var n in t)if('__source'!==n&&e[n]!==t[n])return!0;return!1}function Dn(e,t){this.props=e,this.context=t}function Fn(e,t){function r(e){var r=this.props.ref,n=r==e.ref;return!n&&r&&(r.call?r(null):r.current=null),t?!t(this.props,e)||!n:Bn(this.props,e)}function n(t){return this.shouldComponentUpdate=r,Gt(e,t)}return n.displayName='Memo('+(e.displayName||e.name)+')',n.prototype.isReactComponent=!0,n.__f=!0,n}(Dn.prototype=new Wt).isPureReactComponent=!0,Dn.prototype.shouldComponentUpdate=function(e,t){return Bn(this.props,e)||Bn(this.state,t)};var zn=Et.__b;Et.__b=e=>{e.type&&e.type.__f&&e.ref&&(e.props.ref=e.ref,e.ref=null),zn&&zn(e)};var Un=Et.__e;Et.__e=(e,t,r,n)=>{if(e.then)for(var o,i=t;i=i.__;)if((o=i.__c)&&o.__c)return null==t.__e&&(t.__e=r.__e,t.__k=r.__k),o.__c(e,t);Un(e,t,r,n)};var jn=Et.unmount;function Gn(e,t,r){return e&&(e.__c&&e.__c.__H&&(e.__c.__H.__.forEach((e=>{'function'==typeof e.__c&&e.__c()})),e.__c.__H=null),null!=(e=function(e,t){for(var r in t)e[r]=t[r];return e}({},e)).__c&&(e.__c.__P===r&&(e.__c.__P=t),e.__c.__e=!0,e.__c=null),e.__k=e.__k&&e.__k.map((e=>Gn(e,t,r)))),e}function qn(e,t,r){return e&&r&&(e.__v=null,e.__k=e.__k&&e.__k.map((e=>qn(e,t,r))),e.__c&&e.__c.__P===t&&(e.__e&&r.appendChild(e.__e),e.__c.__e=!0,e.__c.__P=r)),e}function Vn(){this.__u=0,this.o=null,this.__b=null}function Wn(e){var t=e.__.__c;return t&&t.__a&&t.__a(e)}function Zn(){this.i=null,this.l=null}Et.unmount=e=>{var t=e.__c;t&&t.__R&&t.__R(),t&&32&e.__u&&(e.type=null),jn&&jn(e)},(Vn.prototype=new Wt).__c=function(e,t){var r=t.__c,n=this;null==n.o&&(n.o=[]),n.o.push(r);var o=Wn(n.__v),i=!1,a=()=>{i||(i=!0,r.__R=null,o?o(s):s())};r.__R=a;var s=()=>{if(! --n.__u){if(n.state.__a){var e=n.state.__a;n.__v.__k[0]=qn(e,e.__c.__P,e.__c.__O)}var t;for(n.setState({__a:n.__b=null});t=n.o.pop();)t.forceUpdate()}};n.__u++||32&t.__u||n.setState({__a:n.__b=n.__v.__k[0]}),e.then(a,a)},Vn.prototype.componentWillUnmount=function(){this.o=[]},Vn.prototype.render=function(e,t){if(this.__b){if(this.__v.__k){var r=document.createElement('div'),n=this.__v.__k[0].__c;this.__v.__k[0]=Gn(this.__b,r,n.__O=n.__P)}this.__b=null}var o=t.__a&&Gt(Vt,null,e.fallback);return o&&(o.__u&=-33),[Gt(Vt,null,t.__a?null:e.children),o]};var Xn=(e,t,r)=>{if(++r[1]===r[0]&&e.l.delete(t),e.props.revealOrder&&('t'!==e.props.revealOrder[0]||!e.l.size))for(r=e.i;r;){for(;r.length>3;)r.pop()();if(r[1]<r[0])break;e.i=r=r[2]}};function Kn(e){return this.getChildContext=()=>e.context,e.children}function Yn(e){var t=this,r=e.h;if(t.componentWillUnmount=()=>{dr(null,t.v),t.v=null,t.h=null},t.h&&t.h!==r&&t.componentWillUnmount(),!t.v){for(var n=t.__v;null!==n&&!n.__m&&null!==n.__;)n=n.__;t.h=r,t.v={nodeType:1,parentNode:r,childNodes:[],__k:{__m:n.__m},contains:()=>!0,insertBefore:function(e,r){this.childNodes.push(e),t.h.insertBefore(e,r)},removeChild:function(e){this.childNodes.splice(this.childNodes.indexOf(e)>>>1,1),t.h.removeChild(e)}}}dr(Gt(Kn,{context:t.context},e.__v),t.v)}(Zn.prototype=new Wt).__a=function(e){var t=this,r=Wn(t.__v),n=t.l.get(e);return n[0]++,o=>{var i=()=>{t.props.revealOrder?(n.push(o),Xn(t,e,n)):o()};r?r(i):i()}},Zn.prototype.render=function(e){this.i=null,this.l=new Map;var t=$t(e.children);e.revealOrder&&'b'===e.revealOrder[0]&&t.reverse();for(var r=t.length;r--;)this.l.set(t[r],this.i=[1,0,this.i]);return e.children},Zn.prototype.componentDidUpdate=Zn.prototype.componentDidMount=function(){var e=this;this.l.forEach(((t,r)=>{Xn(e,r,t)}))};var Jn='undefined'!=typeof Symbol&&Symbol.for&&Symbol.for('react.element')||60103,Qn=/^(?:accent|alignment|arabic|baseline|cap|clip(?!PathU)|color|dominant|fill|flood|font|glyph(?!R)|horiz|image(!S)|letter|lighting|marker(?!H|W|U)|overline|paint|pointer|shape|stop|strikethrough|stroke|text(?!L)|transform|underline|unicode|units|v|vector|vert|word|writing|x(?!C))[A-Z]/,$n=/^on(Ani|Tra|Tou|BeforeInp|Compo)/,eo=/[A-Z0-9]/g,to='undefined'!=typeof document,ro=e=>('undefined'!=typeof Symbol&&'symbol'==typeof Symbol()?/fil|che|rad/:/fil|che|ra/).test(e);Wt.prototype.isReactComponent={},['componentWillMount','componentWillReceiveProps','componentWillUpdate'].forEach((function(e){Object.defineProperty(Wt.prototype,e,{configurable:!0,get:function(){return this['UNSAFE_'+e]},set:function(t){Object.defineProperty(this,e,{configurable:!0,writable:!0,value:t})}})}));var no=Et.event;function oo(){}function io(){return this.cancelBubble}function ao(){return this.defaultPrevented}Et.event=e=>(no&&(e=no(e)),e.persist=oo,e.isPropagationStopped=io,e.isDefaultPrevented=ao,e.nativeEvent=e);var so={enumerable:!1,configurable:!0,get:function(){return this.class}},lo=Et.vnode;Et.vnode=e=>{'string'==typeof e.type&&(e=>{var t=e.props,r=e.type,n={},o=-1===r.indexOf('-');for(var i in t){var a=t[i];if(!('value'===i&&'defaultValue'in t&&null==a||to&&'children'===i&&'noscript'===r||'class'===i||'className'===i)){var s=i.toLowerCase();'defaultValue'===i&&'value'in t&&null==t.value?i='value':'download'===i&&!0===a?a='':'translate'===s&&'no'===a?a=!1:'o'===s[0]&&'n'===s[1]?'ondoubleclick'===s?i='ondblclick':'onchange'!==s||'input'!==r&&'textarea'!==r||ro(t.type)?'onfocus'===s?i='onfocusin':'onblur'===s?i='onfocusout':$n.test(i)&&(i=s):s=i='oninput':o&&Qn.test(i)?i=i.replace(eo,'-$&').toLowerCase():null===a&&(a=void 0),'oninput'===s&&n[i=s]&&(i='oninputCapture'),n[i]=a}}'select'==r&&n.multiple&&Array.isArray(n.value)&&(n.value=$t(t.children).forEach((e=>{e.props.selected=-1!=n.value.indexOf(e.props.value)}))),'select'==r&&null!=n.defaultValue&&(n.value=$t(t.children).forEach((e=>{e.props.selected=n.multiple?-1!=n.defaultValue.indexOf(e.props.value):n.defaultValue==e.props.value}))),t.class&&!t.className?(n.class=t.class,Object.defineProperty(n,'className',so)):(t.className&&!t.class||t.class&&t.className)&&(n.class=n.className=t.className),e.props=n})(e),e.$$typeof=Jn,lo&&lo(e)};var co=Et.__r;Et.__r=e=>{co&&co(e),e.__c};var uo=Et.diffed;function ho(e){return!!e&&e.$$typeof===Jn}function fo(e){return ho(e)?hr.apply(null,arguments):e}Et.diffed=e=>{uo&&uo(e);var t=e.props,r=e.__e;null!=r&&'textarea'===e.type&&'value'in t&&t.value!==r.value&&(r.value=null==t.value?'':t.value)};const mo=/(?:[Eec]{1,6}|G{1,5}|[Qq]{1,5}|(?:[yYur]+|U{1,5})|[ML]{1,5}|d{1,2}|D{1,3}|F{1}|[abB]{1,5}|[hkHK]{1,2}|w{1,2}|W{1}|m{1,2}|s{1,2}|[zZOvVxX]{1,4})(?=([^']*'[^']*')*[^']*$)/g;function po(e){const t={};return e.replace(mo,(e=>{const r=e.length;switch(e[0]){case'G':t.era=4===r?'long':5===r?'narrow':'short';break;case'y':t.year=2===r?'2-digit':'numeric';break;case'Y':case'u':case'U':case'r':throw new RangeError('`Y/u/U/r` (year) patterns are not supported, use `y` instead');case'q':case'Q':throw new RangeError('`q/Q` (quarter) patterns are not supported');case'M':case'L':t.month=['numeric','2-digit','short','long','narrow'][r-1];break;case'w':case'W':throw new RangeError('`w/W` (week) patterns are not supported');case'd':t.day=['numeric','2-digit'][r-1];break;case'D':case'F':case'g':throw new RangeError('`D/F/g` (day) patterns are not supported, use `d` instead');case'E':t.weekday=4===r?'long':5===r?'narrow':'short';break;case'e':if(r<4)throw new RangeError('`e..eee` (weekday) patterns are not supported');t.weekday=['short','long','narrow','short'][r-4];break;case'c':if(r<4)throw new RangeError('`c..ccc` (weekday) patterns are not supported');t.weekday=['short','long','narrow','short'][r-4];break;case'a':t.hour12=!0;break;case'b':case'B':throw new RangeError('`b/B` (period) patterns are not supported, use `a` instead');case'h':t.hourCycle='h12',t.hour=['numeric','2-digit'][r-1];break;case'H':t.hourCycle='h23',t.hour=['numeric','2-digit'][r-1];break;case'K':t.hourCycle='h11',t.hour=['numeric','2-digit'][r-1];break;case'k':t.hourCycle='h24',t.hour=['numeric','2-digit'][r-1];break;case'j':case'J':case'C':throw new RangeError('`j/J/C` (hour) patterns are not supported, use `h/H/K/k` instead');case'm':t.minute=['numeric','2-digit'][r-1];break;case's':t.second=['numeric','2-digit'][r-1];break;case'S':case'A':throw new RangeError('`S/A` (second) patterns are not supported, use `s` instead');case'z':t.timeZoneName=r<4?'short':'long';break;case'Z':case'O':case'v':case'V':case'X':case'x':throw new RangeError('`Z/O/v/V/X/x` (timeZone) patterns are not supported, use `z` instead')}return''})),t}const go=/[\t-\r \x85\u200E\u200F\u2028\u2029]/i;const vo=/^\.(?:(0+)(\*)?|(#+)|(0+)(#+))$/g,bo=/^(@+)?(\+|#+)?[rs]?$/g,_o=/(\*)(0+)|(#+)(0+)|(0+)/g,yo=/^(0+)$/;function Co(e){const t={};return'r'===e[e.length-1]?t.roundingPriority='morePrecision':'s'===e[e.length-1]&&(t.roundingPriority='lessPrecision'),e.replace(bo,((e,r,n)=>('string'!=typeof n?(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length):'+'===n?t.minimumSignificantDigits=r.length:'#'===r[0]?t.maximumSignificantDigits=r.length:(t.minimumSignificantDigits=r.length,t.maximumSignificantDigits=r.length+('string'==typeof n?n.length:0)),''))),t}function wo(e){switch(e){case'sign-auto':return{signDisplay:'auto'};case'sign-accounting':case'()':return{currencySign:'accounting'};case'sign-always':case'+!':return{signDisplay:'always'};case'sign-accounting-always':case'()!':return{signDisplay:'always',currencySign:'accounting'};case'sign-except-zero':case'+?':return{signDisplay:'exceptZero'};case'sign-accounting-except-zero':case'()?':return{signDisplay:'exceptZero',currencySign:'accounting'};case'sign-never':case'+_':return{signDisplay:'never'}}}function ko(e){let t;if('E'===e[0]&&'E'===e[1]?(t={notation:'engineering'},e=e.slice(2)):'E'===e[0]&&(t={notation:'scientific'},e=e.slice(1)),t){const r=e.slice(0,2);if('+!'===r?(t.signDisplay='always',e=e.slice(2)):'+?'===r&&(t.signDisplay='exceptZero',e=e.slice(2)),!yo.test(e))throw new Error('Malformed concise eng/scientific notation');t.minimumIntegerDigits=e.length}return t}function No(e){const t=wo(e);return t||{}}function xo(e){let t={};for(const r of e){switch(r.stem){case'percent':case'%':t.style='percent';continue;case'%x100':t.style='percent',t.scale=100;continue;case'currency':t.style='currency',t.currency=r.options[0];continue;case'group-off':case',_':t.useGrouping=!1;continue;case'precision-integer':case'.':t.maximumFractionDigits=0;continue;case'measure-unit':case'unit':t.style='unit',t.unit=r.options[0].replace(/^(.*?)-/,'');continue;case'compact-short':case'K':t.notation='compact',t.compactDisplay='short';continue;case'compact-long':case'KK':t.notation='compact',t.compactDisplay='long';continue;case'scientific':t=n(n({},t),{},{notation:'scientific'},r.options.reduce(((e,t)=>n(n({},e),No(t))),{}));continue;case'engineering':t=n(n({},t),{},{notation:'engineering'},r.options.reduce(((e,t)=>n(n({},e),No(t))),{}));continue;case'notation-simple':t.notation='standard';continue;case'unit-width-narrow':t.currencyDisplay='narrowSymbol',t.unitDisplay='narrow';continue;case'unit-width-short':t.currencyDisplay='code',t.unitDisplay='short';continue;case'unit-width-full-name':t.currencyDisplay='name',t.unitDisplay='long';continue;case'unit-width-iso-code':t.currencyDisplay='symbol';continue;case'scale':t.scale=parseFloat(r.options[0]);continue;case'rounding-mode-floor':t.roundingMode='floor';continue;case'rounding-mode-ceiling':t.roundingMode='ceil';continue;case'rounding-mode-down':t.roundingMode='trunc';continue;case'rounding-mode-up':t.roundingMode='expand';continue;case'rounding-mode-half-even':t.roundingMode='halfEven';continue;case'rounding-mode-half-down':t.roundingMode='halfTrunc';continue;case'rounding-mode-half-up':t.roundingMode='halfExpand';continue;case'integer-width':if(r.options.length>1)throw new RangeError('integer-width stems only accept a single optional option');r.options[0].replace(_o,((e,r,n,o,i,a)=>{if(r)t.minimumIntegerDigits=n.length;else{if(o&&i)throw new Error('We currently do not support maximum integer digits');if(a)throw new Error('We currently do not support exact integer digits')}return''}));continue}if(yo.test(r.stem)){t.minimumIntegerDigits=r.stem.length;continue}if(vo.test(r.stem)){if(r.options.length>1)throw new RangeError('Fraction-precision stems only accept a single optional option');r.stem.replace(vo,((e,r,n,o,i,a)=>('*'===n?t.minimumFractionDigits=r.length:o&&'#'===o[0]?t.maximumFractionDigits=o.length:i&&a?(t.minimumFractionDigits=i.length,t.maximumFractionDigits=i.length+a.length):(t.minimumFractionDigits=r.length,t.maximumFractionDigits=r.length),'')));const e=r.options[0];'w'===e?t=n(n({},t),{},{trailingZeroDisplay:'stripIfInteger'}):e&&(t=n(n({},t),Co(e)));continue}if(bo.test(r.stem)){t=n(n({},t),Co(r.stem));continue}const e=wo(r.stem);e&&(t=n(n({},t),e));const o=ko(r.stem);o&&(t=n(n({},t),o))}return t}let Eo=(e=>(e[e.EXPECT_ARGUMENT_CLOSING_BRACE=1]='EXPECT_ARGUMENT_CLOSING_BRACE',e[e.EMPTY_ARGUMENT=2]='EMPTY_ARGUMENT',e[e.MALFORMED_ARGUMENT=3]='MALFORMED_ARGUMENT',e[e.EXPECT_ARGUMENT_TYPE=4]='EXPECT_ARGUMENT_TYPE',e[e.INVALID_ARGUMENT_TYPE=5]='INVALID_ARGUMENT_TYPE',e[e.EXPECT_ARGUMENT_STYLE=6]='EXPECT_ARGUMENT_STYLE',e[e.INVALID_NUMBER_SKELETON=7]='INVALID_NUMBER_SKELETON',e[e.INVALID_DATE_TIME_SKELETON=8]='INVALID_DATE_TIME_SKELETON',e[e.EXPECT_NUMBER_SKELETON=9]='EXPECT_NUMBER_SKELETON',e[e.EXPECT_DATE_TIME_SKELETON=10]='EXPECT_DATE_TIME_SKELETON',e[e.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE=11]='UNCLOSED_QUOTE_IN_ARGUMENT_STYLE',e[e.EXPECT_SELECT_ARGUMENT_OPTIONS=12]='EXPECT_SELECT_ARGUMENT_OPTIONS',e[e.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE=13]='EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE',e[e.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE=14]='INVALID_PLURAL_ARGUMENT_OFFSET_VALUE',e[e.EXPECT_SELECT_ARGUMENT_SELECTOR=15]='EXPECT_SELECT_ARGUMENT_SELECTOR',e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR=16]='EXPECT_PLURAL_ARGUMENT_SELECTOR',e[e.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT=17]='EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT',e[e.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT=18]='EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT',e[e.INVALID_PLURAL_ARGUMENT_SELECTOR=19]='INVALID_PLURAL_ARGUMENT_SELECTOR',e[e.DUPLICATE_PLURAL_ARGUMENT_SELECTOR=20]='DUPLICATE_PLURAL_ARGUMENT_SELECTOR',e[e.DUPLICATE_SELECT_ARGUMENT_SELECTOR=21]='DUPLICATE_SELECT_ARGUMENT_SELECTOR',e[e.MISSING_OTHER_CLAUSE=22]='MISSING_OTHER_CLAUSE',e[e.INVALID_TAG=23]='INVALID_TAG',e[e.INVALID_TAG_NAME=25]='INVALID_TAG_NAME',e[e.UNMATCHED_CLOSING_TAG=26]='UNMATCHED_CLOSING_TAG',e[e.UNCLOSED_TAG=27]='UNCLOSED_TAG',e))({}),So=(e=>(e[e.literal=0]='literal',e[e.argument=1]='argument',e[e.number=2]='number',e[e.date=3]='date',e[e.time=4]='time',e[e.select=5]='select',e[e.plural=6]='plural',e[e.pound=7]='pound',e[e.tag=8]='tag',e))({}),To=(e=>(e[e.number=0]='number',e[e.dateTime=1]='dateTime',e))({});function Io(e){return e.type===So.literal}function Mo(e){return e.type===So.argument}function Ao(e){return e.type===So.number}function Ro(e){return e.type===So.date}function Po(e){return e.type===So.time}function Oo(e){return e.type===So.select}function Ho(e){return e.type===So.plural}function Lo(e){return e.type===So.pound}function Bo(e){return e.type===So.tag}function Do(e){return!(!e||'object'!=typeof e||e.type!==To.number)}function Fo(e){return!(!e||'object'!=typeof e||e.type!==To.dateTime)}const zo=/[ \xA0\u1680\u2000-\u200A\u202F\u205F\u3000]/,Uo={'001':['H','h'],419:['h','H','hB','hb'],AC:['H','h','hb','hB'],AD:['H','hB'],AE:['h','hB','hb','H'],AF:['H','hb','hB','h'],AG:['h','hb','H','hB'],AI:['H','h','hb','hB'],AL:['h','H','hB'],AM:['H','hB'],AO:['H','hB'],AR:['h','H','hB','hb'],AS:['h','H'],AT:['H','hB'],AU:['h','hb','H','hB'],AW:['H','hB'],AX:['H'],AZ:['H','hB','h'],BA:['H','hB','h'],BB:['h','hb','H','hB'],BD:['h','hB','H'],BE:['H','hB'],BF:['H','hB'],BG:['H','hB','h'],BH:['h','hB','hb','H'],BI:['H','h'],BJ:['H','hB'],BL:['H','hB'],BM:['h','hb','H','hB'],BN:['hb','hB','h','H'],BO:['h','H','hB','hb'],BQ:['H'],BR:['H','hB'],BS:['h','hb','H','hB'],BT:['h','H'],BW:['H','h','hb','hB'],BY:['H','h'],BZ:['H','h','hb','hB'],CA:['h','hb','H','hB'],CC:['H','h','hb','hB'],CD:['hB','H'],CF:['H','h','hB'],CG:['H','hB'],CH:['H','hB','h'],CI:['H','hB'],CK:['H','h','hb','hB'],CL:['h','H','hB','hb'],CM:['H','h','hB'],CN:['H','hB','hb','h'],CO:['h','H','hB','hb'],CP:['H'],CR:['h','H','hB','hb'],CU:['h','H','hB','hb'],CV:['H','hB'],CW:['H','hB'],CX:['H','h','hb','hB'],CY:['h','H','hb','hB'],CZ:['H'],DE:['H','hB'],DG:['H','h','hb','hB'],DJ:['h','H'],DK:['H'],DM:['h','hb','H','hB'],DO:['h','H','hB','hb'],DZ:['h','hB','hb','H'],EA:['H','h','hB','hb'],EC:['h','H','hB','hb'],EE:['H','hB'],EG:['h','hB','hb','H'],EH:['h','hB','hb','H'],ER:['h','H'],ES:['H','hB','h','hb'],ET:['hB','hb','h','H'],FI:['H'],FJ:['h','hb','H','hB'],FK:['H','h','hb','hB'],FM:['h','hb','H','hB'],FO:['H','h'],FR:['H','hB'],GA:['H','hB'],GB:['H','h','hb','hB'],GD:['h','hb','H','hB'],GE:['H','hB','h'],GF:['H','hB'],GG:['H','h','hb','hB'],GH:['h','H'],GI:['H','h','hb','hB'],GL:['H','h'],GM:['h','hb','H','hB'],GN:['H','hB'],GP:['H','hB'],GQ:['H','hB','h','hb'],GR:['h','H','hb','hB'],GS:['H','h','hb','hB'],GT:['h','H','hB','hb'],GU:['h','hb','H','hB'],GW:['H','hB'],GY:['h','hb','H','hB'],HK:['h','hB','hb','H'],HN:['h','H','hB','hb'],HR:['H','hB'],HU:['H','h'],IC:['H','h','hB','hb'],ID:['H'],IE:['H','h','hb','hB'],IL:['H','hB'],IM:['H','h','hb','hB'],IN:['h','H'],IO:['H','h','hb','hB'],IQ:['h','hB','hb','H'],IR:['hB','H'],IS:['H'],IT:['H','hB'],JE:['H','h','hb','hB'],JM:['h','hb','H','hB'],JO:['h','hB','hb','H'],JP:['H','K','h'],KE:['hB','hb','H','h'],KG:['H','h','hB','hb'],KH:['hB','h','H','hb'],KI:['h','hb','H','hB'],KM:['H','h','hB','hb'],KN:['h','hb','H','hB'],KP:['h','H','hB','hb'],KR:['h','H','hB','hb'],KW:['h','hB','hb','H'],KY:['h','hb','H','hB'],KZ:['H','hB'],LA:['H','hb','hB','h'],LB:['h','hB','hb','H'],LC:['h','hb','H','hB'],LI:['H','hB','h'],LK:['H','h','hB','hb'],LR:['h','hb','H','hB'],LS:['h','H'],LT:['H','h','hb','hB'],LU:['H','h','hB'],LV:['H','hB','hb','h'],LY:['h','hB','hb','H'],MA:['H','h','hB','hb'],MC:['H','hB'],MD:['H','hB'],ME:['H','hB','h'],MF:['H','hB'],MG:['H','h'],MH:['h','hb','H','hB'],MK:['H','h','hb','hB'],ML:['H'],MM:['hB','hb','H','h'],MN:['H','h','hb','hB'],MO:['h','hB','hb','H'],MP:['h','hb','H','hB'],MQ:['H','hB'],MR:['h','hB','hb','H'],MS:['H','h','hb','hB'],MT:['H','h'],MU:['H','h'],MV:['H','h'],MW:['h','hb','H','hB'],MX:['h','H','hB','hb'],MY:['hb','hB','h','H'],MZ:['H','hB'],NA:['h','H','hB','hb'],NC:['H','hB'],NE:['H'],NF:['H','h','hb','hB'],NG:['H','h','hb','hB'],NI:['h','H','hB','hb'],NL:['H','hB'],NO:['H','h'],NP:['H','h','hB'],NR:['H','h','hb','hB'],NU:['H','h','hb','hB'],NZ:['h','hb','H','hB'],OM:['h','hB','hb','H'],PA:['h','H','hB','hb'],PE:['h','H','hB','hb'],PF:['H','h','hB'],PG:['h','H'],PH:['h','hB','hb','H'],PK:['h','hB','H'],PL:['H','h'],PM:['H','hB'],PN:['H','h','hb','hB'],PR:['h','H','hB','hb'],PS:['h','hB','hb','H'],PT:['H','hB'],PW:['h','H'],PY:['h','H','hB','hb'],QA:['h','hB','hb','H'],RE:['H','hB'],RO:['H','hB'],RS:['H','hB','h'],RU:['H'],RW:['H','h'],SA:['h','hB','hb','H'],SB:['h','hb','H','hB'],SC:['H','h','hB'],SD:['h','hB','hb','H'],SE:['H'],SG:['h','hb','H','hB'],SH:['H','h','hb','hB'],SI:['H','hB'],SJ:['H'],SK:['H'],SL:['h','hb','H','hB'],SM:['H','h','hB'],SN:['H','h','hB'],SO:['h','H'],SR:['H','hB'],SS:['h','hb','H','hB'],ST:['H','hB'],SV:['h','H','hB','hb'],SX:['H','h','hb','hB'],SY:['h','hB','hb','H'],SZ:['h','hb','H','hB'],TA:['H','h','hb','hB'],TC:['h','hb','H','hB'],TD:['h','H','hB'],TF:['H','h','hB'],TG:['H','hB'],TH:['H','h'],TJ:['H','h'],TL:['H','hB','hb','h'],TM:['H','h'],TN:['h','hB','hb','H'],TO:['h','H'],TR:['H','hB'],TT:['h','hb','H','hB'],TW:['hB','hb','h','H'],TZ:['hB','hb','H','h'],UA:['H','hB','h'],UG:['hB','hb','H','h'],UM:['h','hb','H','hB'],US:['h','hb','H','hB'],UY:['h','H','hB','hb'],UZ:['H','hB','h'],VA:['H','h','hB'],VC:['h','hb','H','hB'],VE:['h','H','hB','hb'],VG:['h','hb','H','hB'],VI:['h','hb','H','hB'],VN:['H','h'],VU:['h','H'],WF:['H','hB'],WS:['h','H'],XK:['H','hB','h'],YE:['h','hB','hb','H'],YT:['H','hB'],ZA:['H','h','hb','hB'],ZM:['h','hb','H','hB'],ZW:['H','h'],'af-ZA':['H','h','hB','hb'],'ar-001':['h','hB','hb','H'],'ca-ES':['H','h','hB'],'en-001':['h','hb','H','hB'],'en-HK':['h','hb','H','hB'],'en-IL':['H','h','hb','hB'],'en-MY':['h','hb','H','hB'],'es-BR':['H','h','hB','hb'],'es-ES':['H','h','hB','hb'],'es-GQ':['H','h','hB','hb'],'fr-CA':['H','h','hB'],'gl-ES':['H','h','hB'],'gu-IN':['hB','hb','h','H'],'hi-IN':['hB','h','H'],'it-CH':['H','h','hB'],'it-IT':['H','h','hB'],'kn-IN':['hB','h','H'],'ku-SY':['H','hB'],'ml-IN':['hB','h','H'],'mr-IN':['hB','hb','h','H'],'pa-IN':['hB','hb','h','H'],'ta-IN':['hB','h','hb','H'],'te-IN':['hB','h','H'],'zu-ZA':['H','hB','hb','h']};function jo(e){let t=e.hourCycle;if(void 0===t&&e.hourCycles&&e.hourCycles.length&&(t=e.hourCycles[0]),t)switch(t){case'h24':return'k';case'h23':return'H';case'h12':return'h';case'h11':return'K';default:throw new Error('Invalid hourCycle')}const r=e.language;let n;return'root'!==r&&(n=e.maximize().region),(Uo[n||'']||Uo[r||'']||Uo[''.concat(r,'-001')]||Uo['001'])[0]}const Go=new RegExp('^'.concat(zo.source,'*')),qo=new RegExp(''.concat(zo.source,'*$'));function Vo(e,t){return{start:e,end:t}}const Wo=!!Object.fromEntries,Zo=!!String.prototype.trimStart,Xo=!!String.prototype.trimEnd,Ko=Wo?Object.fromEntries:function(e){const t={};for(const[r,n]of e)t[r]=n;return t},Yo=Zo?function(e){return e.trimStart()}:function(e){return e.replace(Go,'')},Jo=Xo?function(e){return e.trimEnd()}:function(e){return e.replace(qo,'')},Qo=new RegExp('([^\\p{White_Space}\\p{Pattern_Syntax}]*)','yu');var $o,ei=class{constructor(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};this.message=e,this.position={offset:0,line:1,column:1},this.ignoreTag=!!t.ignoreTag,this.locale=t.locale,this.requiresOtherClause=!!t.requiresOtherClause,this.shouldParseSkeletons=!!t.shouldParseSkeletons}parse(){if(0!==this.offset())throw Error('parser can only be used once');return this.parseMessage(0,'',!1)}parseMessage(e,t,r){let n=[];for(;!this.isEOF();){const o=this.char();if(123===o){const t=this.parseArgument(e,r);if(t.err)return t;n.push(t.val)}else{if(125===o&&e>0)break;if(35!==o||'plural'!==t&&'selectordinal'!==t){if(60===o&&!this.ignoreTag&&47===this.peek()){if(r)break;return this.error(Eo.UNMATCHED_CLOSING_TAG,Vo(this.clonePosition(),this.clonePosition()))}if(60===o&&!this.ignoreTag&&ti(this.peek()||0)){const r=this.parseTag(e,t);if(r.err)return r;n.push(r.val)}else{const r=this.parseLiteral(e,t);if(r.err)return r;n.push(r.val)}}else{const e=this.clonePosition();this.bump(),n.push({type:So.pound,location:Vo(e,this.clonePosition())})}}}return{val:n,err:null}}parseTag(e,t){const r=this.clonePosition();this.bump();const n=this.parseTagName();if(this.bumpSpace(),this.bumpIf('/>'))return{val:{type:So.literal,value:'<'.concat(n,'/>'),location:Vo(r,this.clonePosition())},err:null};if(this.bumpIf('>')){const o=this.parseMessage(e+1,t,!0);if(o.err)return o;const i=o.val,a=this.clonePosition();if(this.bumpIf('</')){if(this.isEOF()||!ti(this.char()))return this.error(Eo.INVALID_TAG,Vo(a,this.clonePosition()));const e=this.clonePosition();return n!==this.parseTagName()?this.error(Eo.UNMATCHED_CLOSING_TAG,Vo(e,this.clonePosition())):(this.bumpSpace(),this.bumpIf('>')?{val:{type:So.tag,value:n,children:i,location:Vo(r,this.clonePosition())},err:null}:this.error(Eo.INVALID_TAG,Vo(a,this.clonePosition())))}return this.error(Eo.UNCLOSED_TAG,Vo(r,this.clonePosition()))}return this.error(Eo.INVALID_TAG,Vo(r,this.clonePosition()))}parseTagName(){const e=this.offset();for(this.bump();!this.isEOF()&&ri(this.char());)this.bump();return this.message.slice(e,this.offset())}parseLiteral(e,t){const r=this.clonePosition();let n='';for(;;){const r=this.tryParseQuote(t);if(r){n+=r;continue}const o=this.tryParseUnquoted(e,t);if(o){n+=o;continue}const i=this.tryParseLeftAngleBracket();if(!i)break;n+=i}const o=Vo(r,this.clonePosition());return{val:{type:So.literal,value:n,location:o},err:null}}tryParseLeftAngleBracket(){return this.isEOF()||60!==this.char()||!this.ignoreTag&&(ti(e=this.peek()||0)||47===e)?null:(this.bump(),'<');var e}tryParseQuote(e){if(this.isEOF()||39!==this.char())return null;switch(this.peek()){case 39:return this.bump(),this.bump(),'\'';case 123:case 60:case 62:case 125:break;case 35:if('plural'===e||'selectordinal'===e)break;return null;default:return null}this.bump();const t=[this.char()];for(this.bump();!this.isEOF();){const e=this.char();if(39===e){if(39!==this.peek()){this.bump();break}t.push(39),this.bump()}else t.push(e);this.bump()}return String.fromCodePoint(...t)}tryParseUnquoted(e,t){if(this.isEOF())return null;const r=this.char();return 60===r||123===r||35===r&&('plural'===t||'selectordinal'===t)||125===r&&e>0?null:(this.bump(),String.fromCodePoint(r))}parseArgument(e,t){const r=this.clonePosition();if(this.bump(),this.bumpSpace(),this.isEOF())return this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition()));if(125===this.char())return this.bump(),this.error(Eo.EMPTY_ARGUMENT,Vo(r,this.clonePosition()));let n=this.parseIdentifierIfPossible().value;if(!n)return this.error(Eo.MALFORMED_ARGUMENT,Vo(r,this.clonePosition()));if(this.bumpSpace(),this.isEOF())return this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition()));switch(this.char()){case 125:return this.bump(),{val:{type:So.argument,value:n,location:Vo(r,this.clonePosition())},err:null};case 44:return this.bump(),this.bumpSpace(),this.isEOF()?this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(r,this.clonePosition())):this.parseArgumentOptions(e,t,n,r);default:return this.error(Eo.MALFORMED_ARGUMENT,Vo(r,this.clonePosition()))}}parseIdentifierIfPossible(){const e=this.clonePosition(),t=this.offset(),r=function(e,t){var r;return Qo.lastIndex=t,null!==(r=Qo.exec(e)[1])&&void 0!==r?r:''}(this.message,t),n=t+r.length;return this.bumpTo(n),{value:r,location:Vo(e,this.clonePosition())}}parseArgumentOptions(e,t,r,o){let i=this.clonePosition(),a=this.parseIdentifierIfPossible().value,s=this.clonePosition();switch(a){case'':return this.error(Eo.EXPECT_ARGUMENT_TYPE,Vo(i,s));case'number':case'date':case'time':{var l,c;this.bumpSpace();let e=null;if(this.bumpIf(',')){this.bumpSpace();const t=this.clonePosition(),r=this.parseSimpleArgStyleIfPossible();if(r.err)return r;const n=Jo(r.val);if(0===n.length)return this.error(Eo.EXPECT_ARGUMENT_STYLE,Vo(this.clonePosition(),this.clonePosition()));e={style:n,styleLocation:Vo(t,this.clonePosition())}}const t=this.tryParseArgumentClose(o);if(t.err)return t;const n=Vo(o,this.clonePosition());if(e&&e.style.startsWith('::')){let t=Yo(e.style.slice(2));if('number'===a){const o=this.parseNumberSkeletonFromString(t,e.styleLocation);return o.err?o:{val:{type:So.number,value:r,location:n,style:o.val},err:null}}{if(0===t.length)return this.error(Eo.EXPECT_DATE_TIME_SKELETON,n);let o=t;this.locale&&(o=function(e,t){let r='';for(let n=0;n<e.length;n++){const o=e.charAt(n);if('j'===o){let i=0;for(;n+1<e.length&&e.charAt(n+1)===o;)i++,n++;let a=1+(1&i),s=i<2?1:3+(i>>1),l='a',c=jo(t);for('H'!=c&&'k'!=c||(s=0);s-- >0;)r+=l;for(;a-- >0;)r=c+r}else r+='J'===o?'H':o}return r}(t,this.locale));const i={type:To.dateTime,pattern:o,location:e.styleLocation,parsedOptions:this.shouldParseSkeletons?po(o):{}};return{val:{type:'date'===a?So.date:So.time,value:r,location:n,style:i},err:null}}}return{val:{type:'number'===a?So.number:'date'===a?So.date:So.time,value:r,location:n,style:null!==(l=null===(c=e)||void 0===c?void 0:c.style)&&void 0!==l?l:null},err:null}}case'plural':case'selectordinal':case'select':{const i=this.clonePosition();if(this.bumpSpace(),!this.bumpIf(','))return this.error(Eo.EXPECT_SELECT_ARGUMENT_OPTIONS,Vo(i,n({},i)));this.bumpSpace();let s=this.parseIdentifierIfPossible(),l=0;if('select'!==a&&'offset'===s.value){if(!this.bumpIf(':'))return this.error(Eo.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Vo(this.clonePosition(),this.clonePosition()));this.bumpSpace();const e=this.tryParseDecimalInteger(Eo.EXPECT_PLURAL_ARGUMENT_OFFSET_VALUE,Eo.INVALID_PLURAL_ARGUMENT_OFFSET_VALUE);if(e.err)return e;this.bumpSpace(),s=this.parseIdentifierIfPossible(),l=e.val}const c=this.tryParsePluralOrSelectOptions(e,a,t,s);if(c.err)return c;const u=this.tryParseArgumentClose(o);if(u.err)return u;const d=Vo(o,this.clonePosition());return'select'===a?{val:{type:So.select,value:r,options:Ko(c.val),location:d},err:null}:{val:{type:So.plural,value:r,options:Ko(c.val),offset:l,pluralType:'plural'===a?'cardinal':'ordinal',location:d},err:null}}default:return this.error(Eo.INVALID_ARGUMENT_TYPE,Vo(i,s))}}tryParseArgumentClose(e){return this.isEOF()||125!==this.char()?this.error(Eo.EXPECT_ARGUMENT_CLOSING_BRACE,Vo(e,this.clonePosition())):(this.bump(),{val:!0,err:null})}parseSimpleArgStyleIfPossible(){let e=0;const t=this.clonePosition();for(;!this.isEOF();)switch(this.char()){case 39:{this.bump();let e=this.clonePosition();if(!this.bumpUntil('\''))return this.error(Eo.UNCLOSED_QUOTE_IN_ARGUMENT_STYLE,Vo(e,this.clonePosition()));this.bump();break}case 123:e+=1,this.bump();break;case 125:if(!(e>0))return{val:this.message.slice(t.offset,this.offset()),err:null};e-=1;break;default:this.bump()}return{val:this.message.slice(t.offset,this.offset()),err:null}}parseNumberSkeletonFromString(e,t){let r=[];try{r=function(e){if(0===e.length)throw new Error('Number skeleton cannot be empty');const t=e.split(go).filter((e=>e.length>0)),r=[];for(const e of t){let t=e.split('/');if(0===t.length)throw new Error('Invalid number skeleton');const[n,...o]=t;for(const e of o)if(0===e.length)throw new Error('Invalid number skeleton');r.push({stem:n,options:o})}return r}(e)}catch(e){return this.error(Eo.INVALID_NUMBER_SKELETON,t)}return{val:{type:To.number,tokens:r,location:t,parsedOptions:this.shouldParseSkeletons?xo(r):{}},err:null}}tryParsePluralOrSelectOptions(e,t,r,n){let o=!1;const i=[],a=new Set;let{value:s,location:l}=n;for(;;){if(0===s.length){const e=this.clonePosition();if('select'===t||!this.bumpIf('='))break;{const t=this.tryParseDecimalInteger(Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR,Eo.INVALID_PLURAL_ARGUMENT_SELECTOR);if(t.err)return t;l=Vo(e,this.clonePosition()),s=this.message.slice(e.offset,this.offset())}}if(a.has(s))return this.error('select'===t?Eo.DUPLICATE_SELECT_ARGUMENT_SELECTOR:Eo.DUPLICATE_PLURAL_ARGUMENT_SELECTOR,l);'other'===s&&(o=!0),this.bumpSpace();const n=this.clonePosition();if(!this.bumpIf('{'))return this.error('select'===t?Eo.EXPECT_SELECT_ARGUMENT_SELECTOR_FRAGMENT:Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR_FRAGMENT,Vo(this.clonePosition(),this.clonePosition()));const c=this.parseMessage(e+1,t,r);if(c.err)return c;const u=this.tryParseArgumentClose(n);if(u.err)return u;i.push([s,{value:c.val,location:Vo(n,this.clonePosition())}]),a.add(s),this.bumpSpace(),({value:s,location:l}=this.parseIdentifierIfPossible())}return 0===i.length?this.error('select'===t?Eo.EXPECT_SELECT_ARGUMENT_SELECTOR:Eo.EXPECT_PLURAL_ARGUMENT_SELECTOR,Vo(this.clonePosition(),this.clonePosition())):this.requiresOtherClause&&!o?this.error(Eo.MISSING_OTHER_CLAUSE,Vo(this.clonePosition(),this.clonePosition())):{val:i,err:null}}tryParseDecimalInteger(e,t){let r=1;const n=this.clonePosition();this.bumpIf('+')||this.bumpIf('-')&&(r=-1);let o=!1,i=0;for(;!this.isEOF();){const e=this.char();if(!(e>=48&&e<=57))break;o=!0,i=10*i+(e-48),this.bump()}const a=Vo(n,this.clonePosition());return o?(i*=r,Number.isSafeInteger(i)?{val:i,err:null}:this.error(t,a)):this.error(e,a)}offset(){return this.position.offset}isEOF(){return this.offset()===this.message.length}clonePosition(){return{offset:this.position.offset,line:this.position.line,column:this.position.column}}char(){const e=this.position.offset;if(e>=this.message.length)throw Error('out of bound');const t=this.message.codePointAt(e);if(void 0===t)throw Error('Offset '.concat(e,' is at invalid UTF-16 code unit boundary'));return t}error(e,t){return{val:null,err:{kind:e,message:this.message,location:t}}}bump(){if(this.isEOF())return;const e=this.char();10===e?(this.position.line+=1,this.position.column=1,this.position.offset+=1):(this.position.column+=1,this.position.offset+=e<65536?1:2)}bumpIf(e){if(this.message.startsWith(e,this.offset())){for(let t=0;t<e.length;t++)this.bump();return!0}return!1}bumpUntil(e){const t=this.offset(),r=this.message.indexOf(e,t);return r>=0?(this.bumpTo(r),!0):(this.bumpTo(this.message.length),!1)}bumpTo(e){if(this.offset()>e)throw Error('targetOffset '.concat(e,' must be greater than or equal to the current offset ').concat(this.offset()));for(e=Math.min(e,this.message.length);;){const t=this.offset();if(t===e)break;if(t>e)throw Error('targetOffset '.concat(e,' is at invalid UTF-16 code unit boundary'));if(this.bump(),this.isEOF())break}}bumpSpace(){for(;!this.isEOF()&&ni(this.char());)this.bump()}peek(){var e;if(this.isEOF())return null;const t=this.char(),r=this.offset();return null!==(e=this.message.charCodeAt(r+(t>=65536?2:1)))&&void 0!==e?e:null}};function ti(e){return e>=97&&e<=122||e>=65&&e<=90}function ri(e){return 45===e||46===e||e>=48&&e<=57||95===e||e>=97&&e<=122||e>=65&&e<=90||183==e||e>=192&&e<=214||e>=216&&e<=246||e>=248&&e<=893||e>=895&&e<=8191||e>=8204&&e<=8205||e>=8255&&e<=8256||e>=8304&&e<=8591||e>=11264&&e<=12271||e>=12289&&e<=55295||e>=63744&&e<=64975||e>=65008&&e<=65533||e>=65536&&e<=983039}function ni(e){return e>=9&&e<=13||32===e||133===e||e>=8206&&e<=8207||8232===e||8233===e}function oi(e){e.forEach((e=>{if(delete e.location,Oo(e)||Ho(e))for(const t in e.options)delete e.options[t].location,oi(e.options[t].value);else Ao(e)&&Do(e.style)||(Ro(e)||Po(e))&&Fo(e.style)?delete e.style.location:Bo(e)&&oi(e.children)}))}let ii=(e=>(e.MISSING_VALUE='MISSING_VALUE',e.INVALID_VALUE='INVALID_VALUE',e.MISSING_INTL_API='MISSING_INTL_API',e))({});var ai=class extends Error{constructor(e,t,r){super(e),this.code=t,this.originalMessage=r}toString(){return'[formatjs Error: '.concat(this.code,'] ').concat(this.message)}},si=class extends ai{constructor(e,t,r,n){super('Invalid values for "'.concat(e,'": "').concat(t,'". Options are "').concat(Object.keys(r).join('", "'),'"'),ii.INVALID_VALUE,n)}},li=class extends ai{constructor(e,t,r){super('Value for "'.concat(e,'" must be of type ').concat(t),ii.INVALID_VALUE,r)}},ci=class extends ai{constructor(e,t){super('The intl string context variable "'.concat(e,'" was not provided to the string "').concat(t,'"'),ii.MISSING_VALUE,t)}};let ui=(e=>(e[e.literal=0]='literal',e[e.object=1]='object',e))({});function di(e){return'function'==typeof e}function hi(e,t,r,n,o,i,a){if(1===e.length&&Io(e[0]))return[{type:ui.literal,value:e[0].value}];const s=[];for(const l of e){if(Io(l)){s.push({type:ui.literal,value:l.value});continue}if(Lo(l)){'number'==typeof i&&s.push({type:ui.literal,value:r.getNumberFormat(t).format(i)});continue}const{value:e}=l;if(!o||!(e in o))throw new ci(e,a);let c=o[e];if(Mo(l))c&&'string'!=typeof c&&'number'!=typeof c&&'bigint'!=typeof c||(c='string'==typeof c||'number'==typeof c||'bigint'==typeof c?String(c):''),s.push({type:'string'==typeof c?ui.literal:ui.object,value:c});else if(Ro(l)){const e='string'==typeof l.style?n.date[l.style]:Fo(l.style)?l.style.parsedOptions:void 0;s.push({type:ui.literal,value:r.getDateTimeFormat(t,e).format(c)})}else if(Po(l)){const e='string'==typeof l.style?n.time[l.style]:Fo(l.style)?l.style.parsedOptions:n.time.medium;s.push({type:ui.literal,value:r.getDateTimeFormat(t,e).format(c)})}else if(Ao(l)){const e='string'==typeof l.style?n.number[l.style]:Do(l.style)?l.style.parsedOptions:void 0;if(e&&e.scale){const t=e.scale||1;if('bigint'==typeof c){if(!Number.isInteger(t))throw new TypeError('Cannot apply fractional scale '.concat(t,' to bigint value. Scale must be an integer when formatting bigint.'));c*=BigInt(t)}else c*=t}s.push({type:ui.literal,value:r.getNumberFormat(t,e).format(c)})}else{if(Bo(l)){const{children:e,value:c}=l,u=o[c];if(!di(u))throw new li(c,'function',a);let d=u(hi(e,t,r,n,o,i).map((e=>e.value)));Array.isArray(d)||(d=[d]),s.push(...d.map((e=>({type:'string'==typeof e?ui.literal:ui.object,value:e}))))}if(Oo(l)){const e=c,i=(Object.prototype.hasOwnProperty.call(l.options,e)?l.options[e]:void 0)||l.options.other;if(!i)throw new si(l.value,c,Object.keys(l.options),a);s.push(...hi(i.value,t,r,n,o))}else if(Ho(l)){const e='='.concat(c);let i=Object.prototype.hasOwnProperty.call(l.options,e)?l.options[e]:void 0;if(!i){if(!Intl.PluralRules)throw new ai('Intl.PluralRules is not available in this environment.\nTry polyfilling it using "@formatjs/intl-pluralrules"\n',ii.MISSING_INTL_API,a);const e='bigint'==typeof c?Number(c):c,n=r.getPluralRules(t,{type:l.pluralType}).select(e-(l.offset||0));i=(Object.prototype.hasOwnProperty.call(l.options,n)?l.options[n]:void 0)||l.options.other}if(!i)throw new si(l.value,c,Object.keys(l.options),a);const u='bigint'==typeof c?Number(c):c;s.push(...hi(i.value,t,r,n,o,u-(l.offset||0)))}else;}}return(l=s).length<2?l:l.reduce(((e,t)=>{const r=e[e.length-1];return r&&r.type===ui.literal&&t.type===ui.literal?r.value+=t.value:e.push(t),e}),[]);var l}function fi(e,t){return t?Object.keys(e).reduce(((r,o)=>{var i,a;return r[o]=(i=e[o],(a=t[o])?n(n(n({},i),a),Object.keys(i).reduce(((e,t)=>(e[t]=n(n({},i[t]),a[t]),e)),{})):i),r}),n({},e)):e}function mi(e){return{create:()=>({get:t=>e[t],set(t,r){e[t]=r}})}}var pi=($o=class e{constructor(r){let o=arguments.length>1&&void 0!==arguments[1]?arguments[1]:e.defaultLocale,i=arguments.length>2?arguments[2]:void 0,a=arguments.length>3?arguments[3]:void 0;if(this.formatterCache={number:{},dateTime:{},pluralRules:{}},this.format=e=>{const t=this.formatToParts(e);if(1===t.length)return t[0].value;const r=t.reduce(((e,t)=>(e.length&&t.type===ui.literal&&'string'==typeof e[e.length-1]?e[e.length-1]+=t.value:e.push(t.value),e)),[]);return r.length<=1?r[0]||'':r},this.formatToParts=e=>hi(this.ast,this.locales,this.formatters,this.formats,e,void 0,this.message),this.resolvedOptions=()=>{var e;return{locale:(null===(e=this.resolvedLocale)||void 0===e?void 0:e.toString())||Intl.NumberFormat.supportedLocalesOf(this.locales)[0]}},this.getAst=()=>this.ast,this.locales=o,this.resolvedLocale=e.resolveLocale(o),'string'==typeof r){if(this.message=r,!e.__parse)throw new TypeError('IntlMessageFormat.__parse must be set to process `message` of type `string`');const o=a||{},i=t({},(function(e){if(null==e)throw new TypeError('Cannot destructure '+e)}(o),o));this.ast=e.__parse(r,n(n({},i),{},{locale:this.resolvedLocale}))}else this.ast=r;if(!Array.isArray(this.ast))throw new TypeError('A message must be provided as a String or AST.');this.formats=fi(e.formats,i),this.formatters=a&&a.formatters||function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{number:{},dateTime:{},pluralRules:{}};return{getNumberFormat:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.NumberFormat(...t)}),{cache:mi(e.number),strategy:rn.variadic}),getDateTimeFormat:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.DateTimeFormat(...t)}),{cache:mi(e.dateTime),strategy:rn.variadic}),getPluralRules:Xr((function(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return new Intl.PluralRules(...t)}),{cache:mi(e.pluralRules),strategy:rn.variadic})}}(this.formatterCache)}static get defaultLocale(){return e.memoizedDefaultLocale||(e.memoizedDefaultLocale=(new Intl.NumberFormat).resolvedOptions().locale),e.memoizedDefaultLocale}},$o.memoizedDefaultLocale=null,$o.resolveLocale=e=>{if(void 0===Intl.Locale)return;const t=Intl.NumberFormat.supportedLocalesOf(e);return t.length>0?new Intl.Locale(t[0]):new Intl.Locale('string'==typeof e?e:e[0])},$o.__parse=function(e){var t;let r=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};r=n({shouldParseSkeletons:!0,requiresOtherClause:!0},r);const o=new ei(e,r).parse();if(o.err){const e=SyntaxError(Eo[o.err.kind]);throw e.location=o.err.location,e.originalMessage=o.err.message,e}return null!==(t=r)&&void 0!==t&&t.captureLocation||oi(o.val),o.val},$o.formats={number:{integer:{maximumFractionDigits:0},currency:{style:'currency'},percent:{style:'percent'}},date:{short:{month:'numeric',day:'numeric',year:'2-digit'},medium:{month:'short',day:'numeric',year:'numeric'},long:{month:'long',day:'numeric',year:'numeric'},full:{weekday:'long',month:'long',day:'numeric',year:'numeric'}},time:{short:{hour:'numeric',minute:'numeric'},medium:{hour:'numeric',minute:'numeric',second:'numeric'},long:{hour:'numeric',minute:'numeric',second:'numeric',timeZoneName:'short'},full:{hour:'numeric',minute:'numeric',second:'numeric',timeZoneName:'short'}}},$o);function gi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];let[o,i,a,s]=t;if(Array.isArray(i))throw new nn(on.INVALID_MESSAGE,void 0);if('object'==typeof i)throw new nn(on.INSUFFICIENT_PATH,void 0);if('string'==typeof i){const e=((e,t)=>t||/'[{}]/.test(e)?void 0:e)(i,a);if(e)return e}const{cache:l,formats:c,formatters:u,globalFormats:d,locale:h,timeZone:f}=s;let m;u.getMessageFormat||(u.getMessageFormat=((e,t)=>sn((function(){return new pi(arguments.length<=0?void 0:arguments[0],arguments.length<=1?void 0:arguments[1],arguments.length<=2?void 0:arguments[2],n({formatters:t},arguments.length<=3?void 0:arguments[3]))}),e.message))(l,u));try{m=u.getMessageFormat(i,h,((e,t,r)=>{const o=pi.formats.date,i=pi.formats.time,a=n(n({},null==e?void 0:e.dateTime),null==t?void 0:t.dateTime),s={date:n(n({},o),a),time:n(n({},i),a),number:n(n({},null==e?void 0:e.number),null==t?void 0:t.number)};return r&&['date','time'].forEach((e=>{const t=s[e];for(const[e,o]of Object.entries(t))t[e]=n({timeZone:r},o)})),s})(d,c,f),{formatters:n(n({},u),{},{getDateTimeFormat:(e,t)=>{var r;return u.getDateTimeFormat(e,n(n({},t),{},{timeZone:null!==(r=null==t?void 0:t.timeZone)&&void 0!==r?r:f}))}})})}catch(e){throw new nn(on.INVALID_MESSAGE,void 0)}const p=m.format(a);return ho(p)||Array.isArray(p)||'string'==typeof p?p:String(p)}gi.raw=!0;const vi=['formats','getMessageFallback','messages','onError'];function bi(){for(var e=arguments.length,t=new Array(e),r=0;r<e;r++)t[r]=arguments[r];return t.filter(Boolean).join('.')}function _i(e){return bi(e.namespace,e.key)}function yi(e){console.error(e)}function Ci(e,t,r,n){const o=bi(n,r);if(!t)throw new Error(o);let i=t;return r.split('.').forEach((t=>{const r=i[t];if(null==t||null==r)throw new Error(o+' ('.concat(e,')'));i=r})),i}function wi(e){const t=((e,t,r)=>{try{if(!t)throw new Error(void 0);const n=r?Ci(e,t,r):t;if(!n)throw new Error(r);return n}catch(e){return new nn(on.MISSING_MESSAGE,e.message)}})(e.locale,e.messages,e.namespace);return(e=>{let{cache:t,formats:r,formatters:n,getMessageFallback:o=_i,locale:i,messagesOrError:a,namespace:s,onError:l,timeZone:c}=e;const u=a instanceof nn;function d(e,t,r,n){const i=new nn(t,r);return l(i),null!=n?n:o({error:i,key:e,namespace:s})}function h(e,h,f,m){const p=m;let g;if(u){if(!p)return l(a),o({error:a,key:e,namespace:s});g=p}else{const t=a;try{g=Ci(i,t,e,s)}catch(t){if(!p)return d(e,on.MISSING_MESSAGE,t.message,p);g=p}}try{return gi(bi(s,e),g,h?(e=>{const t={};return Object.keys(e).forEach((r=>{let n=0;const o=e[r];let i;i='function'==typeof o?e=>{const t=o(e);return ho(t)?fo(t,{key:r+n++}):t}:o,t[r]=i})),t})(h):h,{cache:t,formatters:n,globalFormats:r,formats:f,locale:i,timeZone:c})}catch(t){let r,n;return t instanceof nn?(r=t.code,n=t.originalMessage):(r=on.FORMATTING_ERROR,n=t.message),d(e,r,n,p)}}function f(e,t,r,n){const o=h(e,t,r,n);return'string'!=typeof o?d(e,on.INVALID_MESSAGE,void 0):o}return f.rich=h,f.markup=(e,t,r,n)=>h(e,t,r,n),f.raw=e=>{if(u)return l(a),o({error:a,key:e,namespace:s});const t=a;try{return Ci(i,t,e,s)}catch(t){return d(e,on.MISSING_MESSAGE,t.message)}},f.has=e=>{if(u)return!1;try{return Ci(i,a,e,s),!0}catch(e){return!1}},f})(n(n({},e),{},{messagesOrError:t}))}const ki=3600,Ni=86400,xi=7*Ni,Ei=2628e3,Si=7884e3,Ti=365*Ni,Ii={second:1,seconds:1,minute:60,minutes:60,hour:ki,hours:ki,day:Ni,days:Ni,week:xi,weeks:xi,month:Ei,months:Ei,quarter:Si,quarters:Si,year:Ti,years:Ti};function Mi(e){let{formats:t,getMessageFallback:r,messages:i,onError:a}=e;return n(n({},o(e,vi)),{},{formats:t||void 0,messages:i||void 0,onError:a||yi,getMessageFallback:r||_i})}const Ai=fr(void 0);function Ri(e){let{children:t,formats:r,getMessageFallback:o,locale:i,messages:a,now:s,onError:l,timeZone:c}=e;const u=In(Ai),d=Sn((()=>(null==u?void 0:u.cache)||an()),[i,null==u?void 0:u.cache]),h=Sn((()=>(null==u?void 0:u.formatters)||cn(d)),[d,null==u?void 0:u.formatters]),f=Sn((()=>n(n({},Mi({locale:i,formats:void 0===r?null==u?void 0:u.formats:r,getMessageFallback:o||(null==u?void 0:u.getMessageFallback),messages:void 0===a?null==u?void 0:u.messages:a,now:s||(null==u?void 0:u.now),onError:l||(null==u?void 0:u.onError),timeZone:c||(null==u?void 0:u.timeZone)})),{},{formatters:h,cache:d})),[d,r,h,o,i,a,s,l,u,c]);return Zr(Ai.Provider,{value:f,children:t})}function Pi(){const e=In(Ai);if(!e)throw new Error(void 0);return e}let Oi=!1;const Hi='undefined'==typeof window;function Li(e){return((e,t)=>{const{cache:r,formats:n,formatters:o,getMessageFallback:i,locale:a,onError:s,timeZone:l}=Pi(),c=e['!'],u=function(e,t){return e===t?void 0:e.slice((t+'.').length)}(t,'!');return l||Oi||!Hi||(Oi=!0,s(new nn(on.ENVIRONMENT_FALLBACK,void 0))),Sn((()=>wi({cache:r,formatters:o,getMessageFallback:i,messages:c,namespace:u,onError:s,formats:n,locale:a,timeZone:l})),[r,o,i,c,u,s,n,a,l])})({'!':Pi().messages},e?'!.'.concat(e):'!')}function Bi(){const{formats:e,formatters:t,locale:r,now:o,onError:i,timeZone:a}=Pi();return Sn((()=>function(e){const{_cache:t=an(),_formatters:r=cn(t),formats:o,locale:i,onError:a=yi,timeZone:s}=e;function l(e){var t;return null!==(t=e)&&void 0!==t&&t.timeZone||(s?e=n(n({},e),{},{timeZone:s}):a(new nn(on.ENVIRONMENT_FALLBACK,void 0))),e}function c(e,t,r,o,i){let s;try{s=((e,t,r)=>{let o;if('string'==typeof t){if(o=null==e?void 0:e[t],!o){const e=new nn(on.MISSING_FORMAT,void 0);throw a(e),e}}else o=t;return r&&(o=n(n({},o),r)),o})(r,e,t)}catch(e){return i()}try{return o(s)}catch(e){return a(new nn(on.FORMATTING_ERROR,e.message)),i()}}function u(e,t,n){return c(t,n,null==o?void 0:o.dateTime,(t=>(t=l(t),r.getDateTimeFormat(i,t).format(e))),(()=>String(e)))}function d(){return e.now?e.now:(a(new nn(on.ENVIRONMENT_FALLBACK,void 0)),new Date)}return{dateTime:u,number:(e,t,n)=>c(t,n,null==o?void 0:o.number,(t=>r.getNumberFormat(i,t).format(e)),(()=>String(e))),relativeTime:(e,t)=>{try{let n,o;const a={};t instanceof Date||'number'==typeof t?n=new Date(t):t&&(n=null!=t.now?new Date(t.now):d(),o=t.unit,a.style=t.style,a.numberingSystem=t.numberingSystem),n||(n=d());const s=(new Date(e).getTime()-n.getTime())/1e3;o||(o=(e=>{const t=Math.abs(e);return t<60?'second':t<ki?'minute':t<Ni?'hour':t<xi?'day':t<Ei?'week':t<Ti?'month':'year'})(s)),a.numeric='second'===o?'auto':'always';const l=((e,t)=>Math.round(e/Ii[t]))(s,o);return r.getRelativeTimeFormat(i,a).format(l,o)}catch(t){return a(new nn(on.FORMATTING_ERROR,t.message)),String(e)}},list:(e,t,n)=>{const a=[],s=new Map;let l=0;for(const t of e){let e;'object'==typeof t?(e=String(l),s.set(e,t)):e=String(t),a.push(e),l++}return c(t,n,null==o?void 0:o.list,(e=>{const t=r.getListFormat(i,e).formatToParts(a).map((e=>'literal'===e.type?e.value:s.get(e.value)||e.value));return s.size>0?t:t.join('')}),(()=>String(e)))},dateTimeRange:(e,t,n,a)=>c(n,a,null==o?void 0:o.dateTime,(n=>(n=l(n),r.getDateTimeFormat(i,n).formatRange(e,t))),(()=>[u(e),u(t)].join(' – '))),displayName:(e,t,n)=>c(t,n,null==o?void 0:o.displayName,(t=>r.getDisplayNames(i,t).of(e)),(()=>e))}}({formats:e,locale:r,now:o,onError:i,timeZone:a,_formatters:t})),[e,t,o,r,i,a])}const Di={tutorial:10,decision:9,emptyExchange:8,default:0},Fi=fr(null),zi=(e,t)=>{const[r,n]=Nn(e);return{value:r,set:e=>{if(!t)return n(e);n((r=>{const n=function(e,t){return'function'==typeof e?e(t):e}(e,r);return t(n),n}))}}},Ui=function(){let{initialOpen:e=!1,onConfirm:t,onClose:r}=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const n=zi(e),o=()=>{n.set(!1),null==r||r()};return{register:function(){return{isOpen:n.value,onConfirm:()=>null==t?void 0:t(n),onClose:o}},state:n}},ji=fr({}),Gi=()=>{const e=In(ji);if(!e)throw new Error('useWidgetContext must be used within a WidgetContextProvider');return e};var qi={back:async(e,t)=>{const r=new URL('/'.concat(e),vr);t&&(r.pathname+='/'.concat(t,'/return-action')),await it(),Qe(),window.location.href=r.toString()},continue:(e,t)=>{const r=new URL('/'.concat(e,'/').concat(t,'/tutorial-checkout'),vr),n=window.location.pathname;n&&'/'!==n&&r.searchParams.append('from',n),window.location.href=r.toString()},exit:async function(){if(!(arguments.length>0&&void 0!==arguments[0])||arguments[0])try{await it()}catch(e){Ve.error('Failed to clear cart on exit',e)}Qe(),window.location.reload()}};function Vi(e){if(function(){const e=window.location.pathname;return e.includes('/cart')||e.includes('/checkout')}())return'cart_detection';if(!e){const e=ze.get(Oe);if(e&&Date.now()>e)return'cookie_detection'}return null}const Wi=fr({}),Zi=()=>{const e=In(Wi);if(!e)throw new Error('useReturnContext must be used within a ReturnContextProvider');return e},Xi=['src','className'],Ki=e=>{let{src:t,className:r}=e,i=o(e,Xi);return Zr('img',n({src:t||'https://cdn.shopify.com/s/files/1/0849/6526/1638/files/RF-SO-Placeholder2.png?v=1735826638',className:We('rf-image',r)},i))},Yi=e=>{let{pending:t=!1,skeleton:r,children:n}=e;return!0===t?r:n},Ji=['class','className'],Qi=e=>'boolean'==typeof e?''.concat(e):0===e?'0':e,$i=u,ea=(e,t)=>r=>{var i;if(null==(null==t?void 0:t.variants))return $i(e,null==r?void 0:r.class,null==r?void 0:r.className);const{variants:a,defaultVariants:s}=t,l=Object.keys(a).map((e=>{const t=null==r?void 0:r[e],n=null==s?void 0:s[e];if(null===t)return null;const o=Qi(t)||Qi(n);return a[e][o]})),c=r&&Object.entries(r).reduce(((e,t)=>{let[r,n]=t;return void 0===n||(e[r]=n),e}),{}),u=null==t||null===(i=t.compoundVariants)||void 0===i?void 0:i.reduce(((e,t)=>{let{class:r,className:i}=t,a=o(t,Ji);return Object.entries(a).every((e=>{let[t,r]=e;return Array.isArray(r)?r.includes(n(n({},s),c)[t]):n(n({},s),c)[t]===r}))?[...e,r,i]:e}),[]);return $i(e,l,u,null==r?void 0:r.class,null==r?void 0:r.className)},ta=['children','className','variant'],ra=ea('rf-avatar size-[26px] rounded-full border overflow-hidden',{variants:{variant:{light:'bg-white text-black border-[#E1E1E1]',dark:'bg-[#555555] text-white border-black'}},defaultVariants:{variant:'light'}});var na=Fn((e=>{let{children:t,className:r,variant:i}=e,a=o(e,ta);return Zr('div',n(n({className:We(ra({variant:i}),r)},a),{},{children:t}))}));const oa=['className'],ia=e=>{let{className:t}=e,r=o(e,oa);return Zr('div',n(n({className:We('rf-skeleton bg-neutral-2 animate-pulse rounded-md h-[1.5em]',t)},r),{},{role:'status',children:Zr('span',{className:'rf-skeleton__sr-text sr-only',children:'Loading...'})}))},aa=()=>Zr('div',{className:'rf-avatar-stack-skeleton flex -space-x-1',children:[Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[1]',children:Zr(ia,{className:'size-[26px] rounded-full'})}),Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[2]',children:Zr(ia,{className:'size-[26px] rounded-full'})}),Zr('div',{className:'rf-avatar-stack-skeleton__item relative bg-neutral-2 rounded-full z-[3]',children:Zr(ia,{className:'size-[26px] rounded-full'})})]}),sa=['images','variant','maxVisibleAvatars','className','pending','children'],la=e=>{let{images:t,variant:r,maxVisibleAvatars:i=3,className:a,pending:s=!1,children:l}=e,c=o(e,sa);const u=null!=i?i:t.length,d=u<t.length,h=d?u-1:u;return Zr(Yi,{skeleton:Zr(aa,{}),pending:s,children:t.length>0&&Zr('div',n(n({className:We('rf-avatar-stack flex -space-x-1',a)},c),{},{children:[t.slice(0,h).map(((e,t)=>{let{src:n,alt:o}=e;return Zr(na,{className:'relative',style:{zIndex:t+1},variant:r,children:Zr(Ki,{className:'rf-avatar-stack__image size-full object-cover',src:n,alt:o})},t)})),d&&Zr(na,{variant:r,style:{zIndex:h+1},className:'flex items-center justify-center',children:Zr('span',{className:'rf-avatar-stack__count text-[10px]',children:['+',t.length-h]})}),l?l(h+1):null]}))})},ca=['pending'],ua=e=>{var t;let{pending:r}=e,i=o(e,ca);const{orderState:a}=Zi(),s=Sn((()=>{var e,t;return(null!==(e=null===(t=a.value.data)||void 0===t?void 0:t.orderData.productsToExchange)&&void 0!==e?e:[]).reduce(((e,t)=>{for(let r=0;r<t.quantity;r++)e.push({src:t.image,alt:t.title});return e}),[])}),[null===(t=a.value.data)||void 0===t?void 0:t.orderData.productsToExchange]);return Zr(la,n({pending:null!=r?r:a.value.pending,variant:'light',images:s},i))},da=fr(null),ha=['className'],fa=e=>{let{className:t}=e,r=o(e,ha);return Zr('svg',n(n({width:11,height:9,viewBox:'0 0 11 9',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-right '.concat(t||'')},r),{},{children:Zr('path',{d:'M10.273 4.427 6.66.954a.55.55 0 0 0-.387-.153.56.56 0 0 0-.387.153l-.328.316a.52.52 0 0 0 0 .749l2.107 2.03H.973a.524.524 0 0 0-.54.517v.446c0 .29.238.54.54.54H7.69L5.56 7.594a.505.505 0 0 0 0 .74l.327.314c.103.099.24.153.387.153a.56.56 0 0 0 .387-.154l3.612-3.473a.513.513 0 0 0 0-.747'})}))},ma=['className'],pa=e=>{let{className:t}=e,r=o(e,ma);return Zr('svg',n(n({width:11,height:11,viewBox:'0 0 11 11',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--x '.concat(t||'')},r),{},{children:[Zr('path',{d:'M1.45 10.572a.92.92 0 0 1-.655-.221.92.92 0 0 1 0-1.299l7.82-7.82a.921.921 0 0 1 1.344 1.253l-7.865 7.866a.92.92 0 0 1-.645.22'}),Zr('path',{d:'M9.26 10.572a.92.92 0 0 1-.645-.267l-7.82-7.82a.921.921 0 0 1 1.299-1.298l7.865 7.82a.92.92 0 0 1 0 1.344.92.92 0 0 1-.7.22'})]}))},ga=['className'],va=e=>{let{className:t}=e,r=o(e,ga);return Zr('svg',n(n({width:'1.5em',height:'1.5em',viewBox:'0 0 24 24',xmlns:'http://www.w3.org/2000/svg',fill:'currentColor',className:'rf-icon rf-icon--spinner '.concat(t||'')},r),{},{children:Zr('g',{children:[Zr('path',{opacity:.14,d:'M11 1h2v5h-2z'}),Zr('path',{opacity:.29,d:'m16.634 1.974 1.732 1-2.5 4.33-1.732-1z'}),Zr('path',{opacity:.43,d:'m21.026 5.634 1 1.732-4.33 2.5-1-1.732z'}),Zr('path',{opacity:.57,d:'M23 11v2h-5v-2z'}),Zr('path',{opacity:.71,d:'m22.026 16.634-1 1.732-4.33-2.5 1-1.732z'}),Zr('path',{opacity:.86,d:'m18.366 21.026-1.732 1-2.5-4.33 1.732-1z'}),Zr('path',{d:'M13 23h-2v-5h2z'}),Zr('animateTransform',{attributeName:'transform',type:'rotate',calcMode:'discrete',dur:'0.75s',values:'0 12 12;30 12 12;60 12 12;90 12 12;120 12 12;150 12 12;180 12 12;210 12 12;240 12 12;270 12 12;300 12 12;330 12 12;360 12 12',repeatCount:'indefinite'})]})}))},ba=['children','className','icon','variant','pending','disabled','iconPosition'],_a=ea('disabled:cursor-not-allowed h-12 rounded-md text-base font-medium flex items-center justify-center whitespace-nowrap gap-2 px-8 relative transition-all duration-300 ease-in-out [--icon-width:auto] [--icon-height:0.65em] desktop:[--icon-height:0.75em]',{variants:{variant:{primary:'bg-button-background text-button-foreground disabled:!bg-button-background-disabled disabled:!text-button-foreground-disabled desktop:hover:opacity-80',secondary:'bg-button-secondary-background text-button-secondary-foreground disabled:!text-button-foreground-disabled desktop:hover:opacity-80',outline:'border border-button-secondary-background bg-background text-widget-foreground disabled:!text-button-foreground-disabled desktop:hover:opacity-80',ghost:'text-neutral-3 font-normal gap-1 disabled:!opacity-50 disabled:cursor-not-allowed desktop:hover:opacity-80'}}});var ya=Fn((e=>{let{children:t,className:r,icon:i,variant:a='primary',pending:s=!1,disabled:l=!1,iconPosition:c='right'}=e,u=o(e,ba);return Zr('button',n(n({'aria-busy':s,disabled:l||s,type:'button',className:We(_a({variant:a}),'rf-button','rf-button--'.concat(a),r)},u),{},{children:[s&&Zr(va,{className:'absolute inset-0 m-auto'}),Zr('span',{className:'rf-button__text',style:{visibility:s?'hidden':'visible'},children:t}),!!i&&Zr(i,{style:{visibility:s?'hidden':'visible'},className:We('rf-button__icon w-[var(--icon-width)] h-[var(--icon-height)]','left'===c?'-order-1':'order-1')})]}))}));const Ca=['className','onClick'],wa=['className','onClick'];var ka={Accept:e=>{let{className:t,onClick:r}=e,i=o(e,Ca);const a=In(da);return Zr(ya,n({className:We('rf-dialog-button rf-dialog__button rf-dialog__button--accept w-full',t),icon:fa,onClick:e=>{var t;null==r||r(e),e.defaultPrevented||null==a||null===(t=a.onConfirm)||void 0===t||t.call(a)}},i))},Reject:e=>{let{className:t,onClick:r}=e,i=o(e,wa);const a=In(da);return Zr(ya,n({className:We('rf-dialog-button rf-dialog__button rf-dialog__button--reject w-full',t),variant:'outline',icon:pa,iconPosition:'left',onClick:e=>{var t;null==r||r(e),e.defaultPrevented||null==a||null===(t=a.onClose)||void 0===t||t.call(a)}},i))}};const Na=['icon','variant','size','className','children'],xa=ea('rf-icon size-8 rounded-full flex items-center justify-center text-2xl p-[9px]',{variants:{variant:{primary:'rf-icon--primary border border-neutral-2 text-black',solid:'rf-icon--solid bg-black text-white','solid-inverse':'rf-icon--solid-inverse bg-button-secondary-background text-button-secondary-foreground'},size:{sm:'size-7 p-[8px]',md:'size-8 p-[9px]'}},defaultVariants:{variant:'primary',size:'md'}}),Ea=e=>{let{icon:t,variant:r,size:i,className:a,children:s}=e,l=o(e,Na);return Zr('div',n(n({'aria-hidden':!0,className:We(xa({variant:r,size:i}),a)},l),{},{children:[t&&Zr(t,{className:'size-full'}),s]}))},Sa=['className','labelProps','showLabel'],Ta=e=>{let{className:t,labelProps:r,showLabel:i=!1}=e,a=o(e,Sa);const s=Li('common');return Zr('button',n(n({'aria-label':i?void 0:s('close'),className:We('flex items-center gap-2 group',t),type:'button'},a),{},{children:[i&&Zr('span',n(n({},r),{},{children:s('close')})),Zr(Ea,{className:'group-hover:bg-neutral-2 transition-colors',icon:pa})]}))},Ia=['className','onClick'],Ma=e=>{let{id:t,priority:r=Di.default,open:n}=e;const{acquire:o,release:i,activeId:a}=(()=>{const e=In(Fi);if(!e)throw new Error('useDialogQueue must be used within a DialogQueueProvider');return e})();return xn((()=>{if(n)return o({id:t,priority:r}),()=>i(t);i(t)}),[n,t,r,o,i]),n&&a===t},Aa=()=>{const[e,t]=Nn(!1);return xn((()=>{t(!0)}),[]),e},Ra=fr(null),Pa=['onClick','className','children','isVisible'],Oa=e=>{let{onClick:t,className:r,children:i,isVisible:a=!0}=e,s=o(e,Pa);const l=En(null);return Zr('aside',n(n({onClick:function(e){t&&e.target===l.current&&t()},ref:l,className:We('rf-dialog__backdrop fixed inset-0 size-full z-40 flex items-center justify-center p-6',a&&'rf-dialog__backdrop--visible bg-black/50',r)},s),{},{children:i}))},Ha=['isOpen','onConfirm','onClose','fadeIn','showBackdrop','dismissOnBackdropClick','dismissOnEscape','queueId','priority','queue','className'],La=['className'],Ba=['className'],Da={Modal:e=>{let{isOpen:t,onConfirm:r,onClose:i,fadeIn:a=!0,showBackdrop:s=!0,dismissOnBackdropClick:l=!0,dismissOnEscape:c=!0,queueId:u,priority:d,queue:h=!0,className:f}=e,m=o(e,Ha);const p=(()=>{const e=In(Ra);if(!e)throw new Error('useRoot must be used within a RootProvider');return()=>e.current||document.getElementById(Cr)})(),g=Aa(),v=En();v.current||(v.current='dialog-'.concat(Math.random().toString(36).slice(2,11)));const b=null!=u?u:v.current,_=Ma({id:b,priority:d,open:t&&h}),y=t&&(!h||_);if(xn((()=>{const e=e=>{'Escape'===e.key&&(e.preventDefault(),i())};return c&&(y?document.addEventListener('keydown',e):document.removeEventListener('keydown',e)),()=>{c&&document.removeEventListener('keydown',e)}}),[c,i,y]),!y||!g)return null;const C=p();if(!C)return Ve.error('Root element not found'),null;const w={isOpen:t,onConfirm:r,onClose:i};return function(e,t){var r=Gt(Yn,{__v:e,h:t});return r.containerInfo=t,r}(Zr(Oa,{className:a?'animate-fade-in':void 0,isVisible:s,onClick:l?i:void 0,children:Zr(da.Provider,{value:w,children:Zr('div',n({className:We('rf-dialog m-auto w-full p-8 rounded-lg bg-white text-widget-foreground shadow-lg max-w-xl relative',f)},m))})}),C)},Title:e=>{let{className:t}=e,r=o(e,Ba);return Zr('h2',n({className:We('rf-dialog__title text-2xl font-medium leading-tight',t)},r))},Subtitle:e=>{let{className:t}=e,r=o(e,La);return Zr('p',n({className:We('rf-dialog__subtitle text-neutral-3 py-2.5 leading-tight whitespace-pre-wrap',t)},r))},Accept:ka.Accept,Reject:ka.Reject,Exit:e=>{let{className:t,onClick:r}=e,i=o(e,Ia);const a=In(da);return Zr(Ta,n({onClick:e=>{null==r||r(e),e.defaultPrevented||null==a||a.onClose()},className:We('absolute right-4 top-4',t)},i))}},Fa=()=>{const{config:{isFirstLoad:e}}=Gi(),[t]=Nn((()=>Vi(e)));return t?Zr(za,{decisionState:t}):null};function za(e){let{decisionState:t}=e;const r=Li('dialog.return_decision.'.concat(t)),{widgetViewState:o}=Gi();function a(){'cookie_detection'===t&&ze.remove(Oe)}const s=Ui({initialOpen:!0,onConfirm:e=>{e.set(!1),a(),'cart_detection'===t&&o.set(i.Open)},onClose:()=>{a(),qi.exit()}});return Zr(Da.Modal,n(n({className:'text-center flex flex-col gap-2 items-center'},s.register()),{},{priority:Di.decision,children:[Zr(ua,{}),Zr(Da.Title,{children:r('title')}),Zr(Da.Subtitle,{children:r('subtext')}),Zr(Da.Accept,{children:r('confirm')}),Zr(Da.Reject,{children:r('reject')})]}))}const Ua=fr(null),ja=()=>{const e=In(Ua);if(!e)throw new Error('useTutorial must be used within a TutorialProvider');return e};var Ga,qa;(e=>{e.Intro='intro'})(Ga||(Ga={})),(e=>{e.Welcome='intro:welcome'})(qa||(qa={}));const Va={[Ga.Intro]:{id:Ga.Intro,steps:[{id:qa.Welcome}],options:{autoStart:!0,showMode:'first-load'}}},Wa='#000000',Za='#ffffff',Xa='#6e6e6e',Ka='#7a7a7a',Ya='#efefef',Ja='#919191',Qa='#f8faff',$a=()=>{const e=function(){var e=kn(un++,11);if(!e.__){for(var t=dn.__v;null!==t&&!t.__m&&null!==t.__;)t=t.__;var r=t.__m||(t.__m=[0,0]);e.__='P'+r[0]+'-'+r[1]++}return e.__}();return Zr('div',{className:'size-48 relative overflow-hidden',children:Zr('svg',{className:'size-60 absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2',fill:'none',height:'100%',width:'100%',viewBox:'0 0 810 810',children:[Zr('defs',{children:[Zr('linearGradient',{id:''.concat(e,'i0'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:112.771,y2:.882,x1:-113.083,y1:.882,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i1'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:-30.286,y2:172.522,x1:73.352,y1:-242.242,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i2'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:163.96,y2:.808,x1:-164.788,y1:.808,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i3'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:163.96,y2:.846,x1:-164.788,y1:.846,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('linearGradient',{id:''.concat(e,'i4'),gradientUnits:'userSpaceOnUse',spreadMethod:'pad',x2:148.903,y2:.242,x1:-149.633,y1:.242,children:[Zr('stop',{offset:'0%',stopColor:Za}),Zr('stop',{offset:'100%',stopColor:Xa})]}),Zr('filter',{id:''.concat(e,'i5'),children:Zr('feColorMatrix',{values:'0 0 0 0 1 0 0 0 0 1 0 0 0 0 1 0 0 0 1 0',type:'matrix'})}),Zr('mask',{height:2e4,width:2e4,y:-1e4,x:-1e4,maskContentUnits:'userSpaceOnUse',maskUnits:'userSpaceOnUse',style:{maskType:'alpha'},'mask-type':'alpha',id:''.concat(e,'i6'),children:Zr('g',{filter:'url(#'.concat(e,'i5)'),transform:'matrix(1,0,0,1,405,405)',children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',fill:Ka,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-488.406,113.16,-488.406,113.16C-488.406,113.16,-178.655,203.91,-178.655,203.91C-178.655,203.91,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-505.339,117.399,-505.339,117.399C-505.339,117.399,-195.589,208.149,-195.589,208.149C-195.589,208.149,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-519.368,121.577,-519.368,121.577C-519.368,121.577,-209.618,212.327,-209.618,212.327C-209.618,212.327,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-531.612,125.377,-531.612,125.377C-531.612,125.377,-221.862,216.127,-221.862,216.127C-221.862,216.127,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-541.474,127.887,-541.474,127.887C-541.474,127.887,-231.724,218.636,-231.724,218.636C-231.724,218.636,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-548.98,130.174,-548.98,130.174C-548.98,130.174,-239.23,220.924,-239.23,220.924C-239.23,220.924,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.37 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.7 0.57; 0 0 1 1',fill:'freeze'})})})})})]}),Zr('g',{transform:'matrix(1,0,0,1,413.184,613.4)',visibility:'hidden',id:''.concat(e,'i8'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.113016; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{d:'M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ya,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-246.423,15.619,-246.423,15.619C-227.684,20.1,-197.695,11.261,-165.524,2.036C-165.524,2.036,-48.911,-35.181,17.802,-53.839C45.189,-61.499,48.816,-67.775,44.385,-69.667C42.402,-70.514,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-89.423,63.119,-89.423,63.119C-57.331,72.617,-23.195,72.761,8.976,63.536C8.976,63.536,114.589,32.319,181.302,13.661C208.689,6.001,236.316,-13.4,165.135,-34.042C127.936,-44.83,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z; M-252.224,14.141C-252.224,14.141,-89.423,63.119,-89.423,63.119C-57.331,72.617,-23.195,72.761,8.976,63.536C8.976,63.536,114.589,32.319,181.302,13.661C208.689,6.001,236.316,-13.4,165.135,-34.042C127.936,-44.83,42.43,-70.35,42.43,-70.35C42.43,-70.35,-252.224,14.141,-252.224,14.141Z',keyTimes:'0; 0.15493; 0.394366; 1',keySplines:'0 0 1 1; 0.046 0.373 0.173 1; 0 0 1 1',fill:'freeze'})})})]}),Zr('g',{mask:'url(#'.concat(e,'i6)'),id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,-42.983,0)',children:Zr('path',{fill:'url(#'.concat(e,'i0)'),strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,d:'M112.927,-220.427C112.927,-220.427,101,-225.479,88.066,-229.22C69.689,-234.535,49.358,-235.059,27.776,-228.87C-68.354,-201.305,-112.927,-86.452,-112.927,-17.202C-112.927,33.185,-112.927,206.445,-112.927,206.445C-112.927,206.445,-113.313,284.279,-113.313,284.279C-113.313,284.279,-96.148,289.359,-96.148,289.359C-96.148,289.359,112.927,-220.427,112.927,-220.427Z'})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,8.583,3.123)',children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i1)'),d:'M146.941,201.744C146.941,201.744,-147.713,286.236,-147.713,286.236C-147.713,286.236,-147.327,36.308,-147.327,-14.079C-147.327,-83.329,-102.754,-198.182,-6.624,-225.747C80.558,-250.746,147.327,-166.206,147.327,-98.79C147.327,-48.348,146.941,201.744,146.941,201.744Z'})})]})]})}),Zr('g',{transform:'matrix(1,0,0,1,405,405)',id:''.concat(e,'i12'),children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25',strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25; M-49,166.75C-49,166.75,-157.75,197,-157.75,197C-157.75,197,-175.25,192.25,-175.25,192.25; M-28.875,161C-28.875,161,-178.203,203.63,-178.203,203.63C-178.203,203.63,-196.578,198.505,-196.578,198.505; M-10.125,155.5C-10.125,155.5,-194.967,207.964,-194.967,207.964C-194.967,207.964,-213.209,202.896,-213.209,202.896; M7.375,150.5C7.375,150.5,-210.123,212.559,-210.123,212.559C-210.123,212.559,-228.23,207.548,-228.23,207.548; M21.625,146.5C21.625,146.5,-222.271,215.497,-222.271,215.497C-222.271,215.497,-240.241,210.545,-240.241,210.545; M34.875,143C34.875,143,-231.786,218.271,-231.786,218.271C-231.786,218.271,-249.615,213.38,-249.615,213.38; M45.125,139.5C45.125,139.5,-239.306,220.32,-239.306,220.32C-239.306,220.32,-256.987,215.492,-256.987,215.492; M50.625,138C50.625,138,-244,222.25,-244,222.25C-244,222.25,-261.5,217.5,-261.5,217.5; M50.625,138C50.625,138,-244,222.25,-244,222.25C-244,222.25,-261.5,217.5,-261.5,217.5',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.39 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.72 0.6; 0 0 1 1',fill:'freeze'})})})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i13'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.493069; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),children:Zr('path',{d:'M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i2)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z; M109.626,-37.312C109.626,-37.312,109.626,-44.592,109.626,-44.592C109.626,-44.592,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,141.921,-27.85,141.921,-27.85C141.921,-27.85,109.626,-37.312,109.626,-37.312Z; M-171.874,44.188C-171.874,44.188,-171.874,36.908,-171.874,36.908C-171.874,36.908,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-139.579,53.65,-139.579,53.65C-139.579,53.65,-171.874,44.188,-171.874,44.188Z; M-160.124,40.688C-160.124,40.688,-160.124,33.408,-160.124,33.408C-160.124,33.408,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-127.829,50.15,-127.829,50.15C-127.829,50.15,-160.124,40.688,-160.124,40.688Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,132.079,-50.9,132.079,-50.9C132.079,-50.9,164.374,-41.438,164.374,-41.438C164.374,-41.438,164.374,-34.158,164.374,-34.158C164.374,-34.158,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z',keyTimes:'0; 0.605634; 0.774648; 0.84507; 0.915493; 1',keySplines:'0 0 1 1; 0.226 0.274 0.17 1; 0.226 0 0.481 1; 0.167 0 0.571 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,1.091)',children:Zr('path',{d:'M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683; M164.374,-42.529C164.374,-42.529,141.921,-36.221,141.921,-36.221C141.921,-36.221,109.626,-45.683,109.626,-45.683; M164.374,-42.529C164.374,-42.529,-139.579,45.279,-139.579,45.279C-139.579,45.279,-171.874,35.817,-171.874,35.817; M164.374,-42.529C164.374,-42.529,-127.829,41.779,-127.829,41.779C-127.829,41.779,-160.124,32.317,-160.124,32.317; M164.374,-42.529C164.374,-42.529,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M164.374,-42.529C164.374,-42.529,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067',keyTimes:'0; 0.605634; 0.774648; 0.84507; 0.915493; 1',keySplines:'0 0 1 1; 0.226 0.274 0.17 1; 0.226 0 0.481 1; 0.167 0 0.833 1; 0 0 1 1',fill:'freeze'})})})]})]})]})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i14'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.577081; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(102.339,-76.301)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'102.339 -76.301; 102.339 -76.301; 102.339 -47.801; 102.339 -47.801',keyTimes:'0; 0.619718; 0.690141; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i15'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.662093; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(41.72,-51.66)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'41.72 -51.66; 41.72 -51.66; 41.72 -30.16; 41.72 -30.16',keyTimes:'0; 0.704225; 0.774648; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i13'),children:Zr('g',{transform:'translate(25.723,122.074)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 122.074; 25.723 122.074; 25.723 24.074; 25.723 24.074',keyTimes:'0; 0.535211; 0.774648; 1',keySplines:'0 0 1 1; 0.226 0.095 0.17 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i16'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.704099; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-19.063,-36.403)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-19.063 -36.403; -19.063 -36.403; -19.063 -13.403; -19.063 -13.403',keyTimes:'0; 0.746479; 0.816902; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i17'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.648091; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),children:Zr('path',{d:'M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i3)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,-140.421,27.6,-140.421,27.6C-140.421,27.6,-108.126,37.062,-108.126,37.062C-108.126,37.062,-108.126,44.342,-108.126,44.342C-108.126,44.342,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-164.374,41.438C-164.374,41.438,-164.374,34.158,-164.374,34.158C-164.374,34.158,139.329,-52.65,139.329,-52.65C139.329,-52.65,171.624,-43.188,171.624,-43.188C171.624,-43.188,171.624,-35.908,171.624,-35.908C171.624,-35.908,-132.079,50.9,-132.079,50.9C-132.079,50.9,-164.374,41.438,-164.374,41.438Z; M-166.499,42.313C-166.499,42.313,-166.499,35.033,-166.499,35.033C-166.499,35.033,129.954,-50.025,129.954,-50.025C129.954,-50.025,162.249,-40.563,162.249,-40.563C162.249,-40.563,162.249,-33.283,162.249,-33.283C162.249,-33.283,-134.204,51.775,-134.204,51.775C-134.204,51.775,-166.499,42.313,-166.499,42.313Z; M-166.499,42.313C-166.499,42.313,-166.499,35.033,-166.499,35.033C-166.499,35.033,129.954,-50.025,129.954,-50.025C129.954,-50.025,162.249,-40.563,162.249,-40.563C162.249,-40.563,162.249,-33.283,162.249,-33.283C162.249,-33.283,-134.204,51.775,-134.204,51.775C-134.204,51.775,-166.499,42.313,-166.499,42.313Z',keyTimes:'0; 0.690141; 0.859155; 0.929577; 1',keySplines:'0 0 1 1; 0.23 0.27 0.17 1; 0.17 0 0.7 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,1.091)',children:Zr('path',{d:'M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M-108.126,35.971C-108.126,35.971,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M171.624,-44.279C171.624,-44.279,-132.079,42.529,-132.079,42.529C-132.079,42.529,-164.374,33.067,-164.374,33.067; M162.249,-41.654C162.249,-41.654,-134.204,43.404,-134.204,43.404C-134.204,43.404,-166.499,33.942,-166.499,33.942; M162.249,-41.654C162.249,-41.654,-134.204,43.404,-134.204,43.404C-134.204,43.404,-166.499,33.942,-166.499,33.942',keyTimes:'0; 0.690141; 0.859155; 0.929577; 1',keySplines:'0 0 1 1; 0.23 0.27 0.17 1; 0.17 0 0.7 1; 0 0 1 1',fill:'freeze'})})})]})]})]})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i17'),children:Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i18'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.746105; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-43.282,-29.111)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-43.282 -29.111; -43.282 -29.111; -43.282 -5.111; -43.282 -5.111',keyTimes:'0; 0.788733; 0.859155; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i10'),children:Zr('g',{transform:'translate(299.704,796.941)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'299.704 822.182; 299.704 377.182; 299.704 400.182; 299.704 394.182; 299.704 394.182',keyTimes:'0; 0.267606; 0.408451; 0.535211; 1',keySplines:'0.546 0.118 0.791 0.971; 0.167 0 0.791 0.709; 0.167 0 0.792 0; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i17'),children:Zr('g',{transform:'translate(25.723,-21.965)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'25.723 -21.965; 25.723 -21.965; 25.723 -44.965; 25.723 -44.965',keyTimes:'0; 0.690141; 0.816901; 1',keySplines:'0 0 1 1; 0.27 0.94 0.6 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{visibility:'hidden',id:''.concat(e,'i19'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.718101; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(-104.065,-23.354)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'-104.065 -23.354; -104.065 -23.354; -104.065 11.646; -104.065 11.646',keyTimes:'0; 0.760563; 0.830986; 1',keySplines:'0 0 1 1; 0 0 1 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{id:''.concat(e,'i9'),children:Zr('path',{strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Qa,d:'M-32.701,-9.394C-32.701,-9.394,-32.701,14.772,-32.701,14.772C-32.701,14.772,-10.01,21.477,-10.01,21.477C-10.01,21.477,32.701,9.394,32.701,9.394C32.701,9.394,32.701,-14.772,32.701,-14.772C32.701,-14.772,10.01,-21.477,10.01,-21.477C10.01,-21.477,-32.701,-9.394,-32.701,-9.394Z'})})})]})]})})]})})})]})}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,0,0)',visibility:'hidden',id:''.concat(e,'i21'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.310044; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i22'),transform:'matrix(1,0,0,1,3.805,7.012)',children:Zr('path',{d:'M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:'url(#'.concat(e,'i4)'),children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.265,-28.473,-149.265,-28.473C-149.265,-28.473,-113.948,-18.037,-113.948,-18.037C-103.234,-14.871,-91.84,-14.815,-81.096,-17.878C-81.096,-17.878,149.272,-83.552,149.272,-83.552C149.272,-83.552,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.268,88.027,-149.268,88.027C-149.268,88.027,-113.951,98.464,-113.951,98.464C-103.237,101.63,-91.843,101.685,-81.099,98.622C-81.099,98.622,149.268,32.948,149.268,32.948C149.268,32.948,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z; M-149.268,-31.824C-149.268,-31.824,-149.268,88.027,-149.268,88.027C-149.268,88.027,-113.951,98.464,-113.951,98.464C-103.237,101.63,-91.843,101.685,-81.099,98.622C-81.099,98.622,149.268,32.948,149.268,32.948C149.268,32.948,149.268,-85.595,149.268,-85.595C149.268,-85.595,97.548,-100.879,97.548,-100.879C97.548,-100.879,-149.268,-31.824,-149.268,-31.824Z',keyTimes:'0; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'})})})]})})]})}),Zr('g',{visibility:'hidden',id:''.concat(e,'i20'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.169024; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:[Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,0,-59.118)',children:Zr('path',{d:'M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ya,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z; M-67.296,5.763C-67.296,5.763,27.821,-21.455,27.821,-21.455C27.821,-21.455,73.048,-8.534,73.048,-8.534C73.048,-8.534,73.048,3.655,73.048,3.655C73.048,3.655,-12.677,27.874,-12.677,27.874C-20.264,30.025,-28.304,29.981,-35.866,27.745C-35.866,27.745,-67.298,18.902,-67.298,18.902C-67.298,18.902,-67.296,5.77,-67.296,5.77C-67.296,5.77,-67.296,5.763,-67.296,5.763Z; M-159.546,20.263C-159.546,20.263,91.321,-51.205,91.321,-51.205C91.321,-51.205,159.548,-31.034,159.548,-31.034C159.548,-31.034,159.548,-18.845,159.548,-18.845C159.548,-18.845,-81.927,49.624,-81.927,49.624C-89.514,51.775,-97.554,51.731,-105.116,49.495C-105.116,49.495,-159.548,33.402,-159.548,33.402C-159.548,33.402,-159.546,20.27,-159.546,20.27C-159.546,20.27,-159.546,20.263,-159.546,20.263Z; M-159.546,20.263C-159.546,20.263,91.321,-51.205,91.321,-51.205C91.321,-51.205,159.548,-31.034,159.548,-31.034C159.548,-31.034,159.548,-18.845,159.548,-18.845C159.548,-18.845,-81.927,49.624,-81.927,49.624C-89.514,51.775,-97.554,51.731,-105.116,49.495C-105.116,49.495,-159.548,33.402,-159.548,33.402C-159.548,33.402,-159.546,20.27,-159.546,20.27C-159.546,20.27,-159.546,20.263,-159.546,20.263Z',keyTimes:'0; 0.211268; 0.408451; 1',keySplines:'0 0 1 1; 0.05 0.42 0.17 1; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,0,-55.127)',children:Zr('path',{d:'M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722; M73.048,-12.525C73.048,-12.525,-12.677,11.694,-12.677,11.694C-20.264,13.845,-28.304,13.8,-35.866,11.564C-35.866,11.564,-67.298,2.722,-67.298,2.722; M159.548,-35.025C159.548,-35.025,-81.927,33.444,-81.927,33.444C-89.514,35.595,-97.554,35.55,-105.116,33.314C-105.116,33.314,-159.548,17.222,-159.548,17.222; M159.548,-35.025C159.548,-35.025,-81.927,33.444,-81.927,33.444C-89.514,35.595,-97.554,35.55,-105.116,33.314C-105.116,33.314,-159.548,17.222,-159.548,17.222',keyTimes:'0; 0.211268; 0.408451; 1',keySplines:'0 0 1 1; 0.05 0.42 0.17 1; 0 0 1 1',fill:'freeze'})})})]})]})]}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,55.418,-104.524)',id:''.concat(e,'i23'),children:Zr('g',{transform:'matrix(1,0,0,1,0,0)',visibility:'hidden',id:''.concat(e,'i24'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.563079; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i25'),transform:'matrix(1,0,0,1,0,-1.577)',children:Zr('path',{d:'M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ja,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z; M-15.978,19C-15.978,19,5.866,12.95,5.866,12.95C5.866,12.95,17.028,-3.762,17.028,-3.762C17.028,-3.762,13.353,-7.25,13.353,-7.25C13.353,-7.25,-8.491,-1.2,-8.491,-1.2C-8.491,-1.2,-19.653,15.512,-19.653,15.512C-19.653,15.512,-15.978,19,-15.978,19Z; M-32.228,28.25C-32.228,28.25,12.116,15.95,12.116,15.95C12.116,15.95,35.903,-24.762,35.903,-24.762C35.903,-24.762,32.228,-28.25,32.228,-28.25C32.228,-28.25,-12.116,-15.95,-12.116,-15.95C-12.116,-15.95,-35.903,24.762,-35.903,24.762C-35.903,24.762,-32.228,28.25,-32.228,28.25Z; M-32.228,28.25C-32.228,28.25,12.116,15.95,12.116,15.95C12.116,15.95,35.903,-24.762,35.903,-24.762C35.903,-24.762,32.228,-28.25,32.228,-28.25C32.228,-28.25,-12.116,-15.95,-12.116,-15.95C-12.116,-15.95,-35.903,24.762,-35.903,24.762C-35.903,24.762,-32.228,28.25,-32.228,28.25Z',keyTimes:'0; 0.605634; 0.774648; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})}),Zr('g',{id:''.concat(e,'i11'),transform:'matrix(1,0,0,1,1.838,0.166)',children:Zr('path',{d:'M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506; M-17.815,17.256C-17.815,17.256,-6.653,0.544,-6.653,0.544C-6.653,0.544,15.19,-5.506,15.19,-5.506; M-34.065,26.506C-34.065,26.506,-10.278,-14.206,-10.278,-14.206C-10.278,-14.206,34.065,-26.506,34.065,-26.506; M-34.065,26.506C-34.065,26.506,-10.278,-14.206,-10.278,-14.206C-10.278,-14.206,34.065,-26.506,34.065,-26.506',keyTimes:'0; 0.605634; 0.774648; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})})]})})})]})}),Zr('g',{id:''.concat(e,'i20'),children:Zr('g',{transform:'translate(371.466,643.81)',children:[Zr('animateTransform',{repeatCount:'1',type:'translate',attributeName:'transform',dur:'2.367s',begin:'0s',calcMode:'spline',values:'371.466 643.81; 371.466 643.81; 425.466 655.31; 425.466 539.31; 425.466 539.31',keyTimes:'0; 0.211268; 0.352113; 0.676056; 1',keySplines:'0 0 1 1; 0.046 0.418 0.173 1; 0.538 0 0.076 1; 0 0 1 1',fill:'freeze'}),Zr('g',{transform:'scale(1,1) translate(0,0)',children:Zr('g',{transform:'matrix(1,0,0,1,55.418,-104.524)',visibility:'hidden',id:''.concat(e,'i23'),children:[Zr('animate',{repeatCount:'1',begin:'0s',calcMode:'discrete',dur:'2.367s',values:'hidden; visible; visible',keyTimes:'0; 0.493069; 1',attributeName:'visibility',fill:'freeze'}),Zr('g',{id:''.concat(e,'i9'),transform:'matrix(1,0,0,1,2.099,14.125)',children:Zr('path',{d:'M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z',strokeMiterlimit:10,strokeWidth:1.5,stroke:Wa,fill:Ja,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z; M8.027,3.673C8.027,3.673,-2.434,6.348,-2.434,6.348C-2.434,6.348,-8.118,8.529,-8.118,8.529C-8.118,8.529,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,8.027,3.673,8.027,3.673Z; M5.777,-15.702C5.777,-15.702,-4.684,-13.027,-4.684,-13.027C-4.684,-13.027,-9.993,-4.596,-9.993,-4.596C-9.993,-4.596,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,5.777,-15.702,5.777,-15.702Z; M5.777,-15.702C5.777,-15.702,-4.684,-13.027,-4.684,-13.027C-4.684,-13.027,-9.993,-4.596,-9.993,-4.596C-9.993,-4.596,-7.495,11.816,-7.495,11.816C-7.495,11.816,-0.937,15.702,-0.937,15.702C-0.937,15.702,9.993,12.423,9.993,12.423C9.993,12.423,5.777,-15.702,5.777,-15.702Z',keyTimes:'0; 0.535211; 0.647887; 1',keySplines:'0 0 1 1; 0.087 0.263 0.261 0.751; 0 0 1 1',fill:'freeze'})})})]})})]})}),Zr('g',{display:'none',transform:'matrix(1,0,0,1,405,405)',id:''.concat(e,'i26'),children:Zr('g',{id:''.concat(e,'i7'),children:Zr('path',{d:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',fill:Ka,children:Zr('animate',{repeatCount:'1',attributeName:'d',dur:'2.367s',begin:'0s',calcMode:'spline',values:'M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-465.5,107,-465.5,107C-465.5,107,-155.75,197.75,-155.75,197.75C-155.75,197.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-488.406,113.16,-488.406,113.16C-488.406,113.16,-178.655,203.91,-178.655,203.91C-178.655,203.91,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-505.339,117.399,-505.339,117.399C-505.339,117.399,-195.589,208.149,-195.589,208.149C-195.589,208.149,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-519.368,121.577,-519.368,121.577C-519.368,121.577,-209.618,212.327,-209.618,212.327C-209.618,212.327,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-531.612,125.377,-531.612,125.377C-531.612,125.377,-221.862,216.127,-221.862,216.127C-221.862,216.127,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-541.474,127.887,-541.474,127.887C-541.474,127.887,-231.724,218.636,-231.724,218.636C-231.724,218.636,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-548.98,130.174,-548.98,130.174C-548.98,130.174,-239.23,220.924,-239.23,220.924C-239.23,220.924,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z; M-656,-680C-656,-680,-553.5,133,-553.5,133C-553.5,133,-243.75,223.75,-243.75,223.75C-243.75,223.75,140.5,113,140.5,113C140.5,113,636,-626,636,-626C636,-626,-656,-680,-656,-680Z',keyTimes:'0; 0.042254; 0.056338; 0.070423; 0.084507; 0.098592; 0.112676; 0.126761; 0.140845; 1',keySplines:'0 0 1 1; 0.37 0.22 0.833 0.833; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0 0 1 1; 0.167 0.167 0.7 0.57; 0 0 1 1',fill:'freeze'})})})})]})})},es=()=>{const e=Li('tutorial.intro'),{isStepActive:t,next:r}=ja();return Zr(Da.Modal,{className:'text-center flex flex-col gap-2 items-center -translate-y-[calc(var(--rf-summary-height,0px)/2)]',isOpen:t(qa.Welcome),onConfirm:r,onClose:r,showBackdrop:!1,dismissOnBackdropClick:!0,queue:!1,children:[Zr(Da.Exit,{}),Zr($a,{}),Zr(Da.Title,{className:'text-3xl',children:e('title')}),Zr(Da.Subtitle,{children:e('subtext')}),Zr(Da.Accept,{icon:null,children:e('confirm')})]})},ts=()=>Zr(Vt,{children:[Zr(Fa,{}),Zr(es,{})]}),rs=5e3,ns=fr(null),os=()=>{const e=In(ns);if(!e)throw new Error('useToast must be used within a ToastProvider');return e},is=()=>{const{widgetViewState:e,config:t}=Gi(),r=Zi(),n=os();xn((()=>(function(e){let{widgetViewState:t,returnContext:r,toastContext:n,config:o}=e;pt.widgetViewState=t,pt.returnContext=r,pt.toastContext=n,pt.config=o,pt.isInitialized=!0,wt('ready')}({widgetViewState:e,returnContext:r,toastContext:n,config:t}),()=>{gt()})),[e,r,n,t]),xn((()=>{e.value===i.Open?wt('drawer:open'):wt('drawer:close')}),[e.value]),xn((()=>{var e;const t=null===(e=r.cartState.value.data)||void 0===e?void 0:e.original;t&&wt('cart:updated',t)}),[r.cartState.value.data]),xn((()=>{const e=r.calculationState.value.data;e&&wt('calculation:updated',e)}),[r.calculationState.value.data])};var as;(e=>{e.Unknown='unknown_error',e.NetworkError='network_error',e.ProductLimit='product_limit'})(as||(as={}));const ss={422:as.ProductLimit};function ls(e){return null!==e&&e in ss?ss[e]:as.Unknown}function cs(e){var t;Ve.info('Initializing fetch interceptor');const r=window.fetch;null!==(t=window.__rf_original_fetch)&&void 0!==t||(window.__rf_original_fetch=r),window.fetch.rf_interception=!0;const n=new Proxy(r,{apply:async(t,r,n)=>{const o=n[0],i=await Reflect.apply(t,r,n),a=null==i?void 0:i.clone();return null==e||e({response:a,requestUrl:o}),i}});return window.fetch=n,e=>{window.__rf_original_fetch&&(Ve.info('Resetting fetch interceptor'),window.fetch=window.__rf_original_fetch,window.fetch.rf_interception=!1,e&&clearInterval(e))}}function us(e){var t;Ve.info('Initializing XHR interceptor');const r=window.XMLHttpRequest;null!==(t=window.__rf_original_xhr)&&void 0!==t||(window.__rf_original_xhr=r);const n=new Proxy(r,{construct:function(t,r){const n=new t(...r),o=n.open,i=n.send;let a='';return n.open=function(e,t,r,n,i){return a=t,o.call(this,e,t,null!=r&&r,n,i)},n.send=function(t){const r=n.onreadystatechange;n.onreadystatechange=function(t){if(r&&r.call(this,t),n.readyState===XMLHttpRequest.DONE)try{null==e||e(ds(n,a))}catch(e){Ve.error('Error in XHR interception callback:',e)}};const o=n.onload;return n.onload=function(t){if(o&&o.call(this,t),n.readyState===XMLHttpRequest.DONE)try{null==e||e(ds(n,a))}catch(e){Ve.error('Error in XHR interception callback:',e)}},i.call(this,t)},n}});return window.XMLHttpRequest.rf_interception=!0,window.XMLHttpRequest=n,e=>{window.__rf_original_xhr&&(Ve.info('Resetting XHR interceptor'),window.XMLHttpRequest=window.__rf_original_xhr,window.XMLHttpRequest.rf_interception=!1,e&&clearInterval(e))}}function ds(e,t){var r;let n;const o='text'===e.responseType,i='json'===e.responseType||(null===(r=e.getResponseHeader('Content-Type'))||void 0===r?void 0:r.includes('application/json'));if(o)try{n=JSON.parse(e.response)}catch(e){}else i&&(n=e.response);return{response:n,requestUrl:t}}const hs=['/cart/add','/cart/add.js'],fs=['/cart/update','/cart/update.js'],ms=['/cart/change','/cart/change.js'],ps={add:hs,update:fs,change:ms},gs=[...hs,...fs,...ms,'/cart/clear','/cart/clear.js','/?section_id=cart-drawer','/api/unstable/graphql.json?operation_name=cartQuery'];const vs=fr({}),bs=()=>{const e=In(vs);if(!e)throw new Error('useErrors must be used within an ErrorProvider');return e},_s=()=>{const e=Li(),{add:t}=os(),{cartState:r,orderState:o,calculationState:i}=Zi(),{config:{data:{formData:a}}}=Gi(),s=bs(),l=Sn((()=>Ke(a)),[a]),c=Tn(((e,t)=>{const r=null==t?void 0:t.items.find((t=>t.variant_id===e.variant_id));return!r||r.quantity!==e.quantity}),[]),u=Tn(((r,n)=>{const o=r.excludedItems.filter((e=>c(e,n))),i=r.bundleItems.filter((e=>c(e,n)));o.length>0&&t({tone:'error',message:e.rich('toast.product_exchange_error',{product_name:o[0].title,b:e=>Zr('span',{className:'text-neutral-3 inline-block',children:e})})}),i.length>0&&t({tone:'error',message:e.rich('toast.bundle_exchange_error',{product_name:i[0].title,b:e=>Zr('span',{className:'text-neutral-3 inline-block',children:e})})})}),[c,e,t]);return{fetchAndUpdateCart:Tn((async()=>{var e,t;const i=o.value.data;if(!i)return null;const a=null!==(e=null===(t=r.value.data)||void 0===t?void 0:t.original)&&void 0!==e?e:null;let s;try{s=await ot(!1)}catch(e){return r.set((t=>n(n({},t),{},{pending:!1,error:e}))),null}const l=i.orderData.productRules,c=rt(s,l);u(c,a);const d=!a||!nt({cart1:a,cart2:s,rules:l});return r.set({data:{original:s,transformed:c.cart},pending:!1,error:null}),lt(s),{order:i,originalCart:a,freshCart:s,transformedCart:c.cart,productRules:l,hasChanged:d}}),[o,r,u]),processCartUpdate:Tn((async e=>{var t,n;const a=o.value.data;if(!a)return null;const s=null!==(t=null===(n=r.value.data)||void 0===n?void 0:n.original)&&void 0!==t?t:null,c=a.orderData.productRules,d=rt(e,c);return u(d,s),r.set({data:{original:e,transformed:d.cart},pending:!1,error:null}),lt(e),await i.query({cart:d.cart,orderId:a.orderData.id,lineItems:l}),{transformedCart:d.cart,productRules:c}}),[o,r,i,l,u]),handleResponseErrors:Tn((async t=>{const r=await async function(e){if(e){if(e instanceof Response)return await e.json().catch((()=>{}));if('string'==typeof e)try{return JSON.parse(e)}catch(e){return}return e}}(t);if(r){let t;if('status'in r){const e=r.status;t='number'==typeof e?e:void 0}if(t&&!s.has(t)){const r=ls(t);s.push({id:r,message:e('product.error.'.concat(r))})}}}),[e,s]),triggerCalculation:Tn(((e,t)=>{i.query({cart:e,orderId:t,lineItems:l})}),[i,l])}},ys=()=>{const{widgetViewState:e,returnViewState:t,config:{options:{autoOpen:r,autoOpenTriggerEndpoint:n,autoOpenTriggerMethod:o,monitorNetworkOverwrites:s,networkInterceptionMethod:l}}}=Gi(),{fetchAndUpdateCart:c,handleResponseErrors:u,triggerCalculation:d}=_s(),[h,f]=Nn(!1);xn((()=>{if('none'!==l){let e;try{e=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{};const{monitor:r=!1,method:n}=t;if('none'===n)return Ve.warn('Network interception method set to \'none\'; skipping interceptor initialization.'),()=>{};let o,i,a,s;switch(n){case'fetch':a='fetch',o=cs(e);break;case'xhr':a='xhr',i=us(e);break;default:a='both',o=cs(e),i=us(e)}return Ve.info('Using network interception method: '.concat(a)),r&&(Ve.info('Monitoring network interceptors'),s=setInterval((()=>{o&&!window.fetch.rf_interception&&(Ve.info('Re-initializing fetch interceptor'),o(s),o=cs(e)),i&&!window.XMLHttpRequest.rf_interception&&(Ve.info('Re-initializing XHR interceptor'),i(s),i=us(e))}),200)),()=>{var e,t;null===(e=o)||void 0===e||e(s),null===(t=i)||void 0===t||t(s)}}((e=>Er.publish(Nr.FetchInterception,e)),{monitor:s,method:l}),f(!0)}catch(e){Ve.error('Error initializing fetch interceptor:',e)}return()=>{var t;null===(t=e)||void 0===t||t()}}f(!1)}),[s,l]);const m=Tn((async s=>{let{detail:{response:l,requestUrl:h}}=s;const f=h instanceof URL?h.toString():h,m=function(e,t){const r=ps[null!=t?t:'add'];if(!e||'string'!=typeof e)return{isValid:!1,isForbidden:!1,isTriggerEndpoint:!1,triggerEndpointPaths:r};const n=['?_','rf=true'].some((t=>e.includes(t))),o=gs.some((t=>e.includes(t))),i=r.some((t=>e.includes(t)));return!n&&o?{isValid:!0,isForbidden:!1,isTriggerEndpoint:i,triggerEndpointPaths:r}:{isValid:!1,isForbidden:n,isTriggerEndpoint:i,triggerEndpointPaths:r}}(f,n),{isValid:p,isForbidden:g,isTriggerEndpoint:v}=m;if(!p||g)return void Ve.info('Intercepted request to '.concat(f,' is invalid or forbidden.'),m);Ve.info('Intercepted request to '.concat(f),m);const b=await c();if(!b)return;const{transformedCart:_,hasChanged:y}=b;switch(await u(l),y&&d(_,b.order.orderData.id),o){case'change':if(!y)return;break;case'endpoint':if(!v)return;break;default:if(!v||!y)return}t.set(a.Collapsed),!1!==r&&e.set(i.Open)}),[c,u,d,e,t,r,n,o]);return xn((()=>{const e=Er.subscribe(Nr.FetchInterception,m);return()=>{e()}}),[m]),{initialized:h}},Cs=()=>{const{widgetViewState:e,config:{options:{overrideScrollBlocking:t}}}=Gi();xn((()=>{if(!t)return;Ve.info('Overriding scroll blocking behavior');const e=Event.prototype.preventDefault;return Event.prototype.preventDefault=function(){'wheel'!==this.type&&'mousewheel'!==this.type&&'DOMMouseScroll'!==this.type&&'touchmove'!==this.type&&e.call(this)},()=>{Event.prototype.preventDefault=e}}),[t,e.value])};const ws=()=>{const{widgetViewState:e,config:{options:{cartActivatorSelector:t}}}=Gi();xn((()=>{if(!t)return;const r=new AbortController,n=new WeakSet,o=t=>{Ve.info('Cart activator clicked',t),t.preventDefault(),t.stopPropagation(),e.set(i.Open)},a=()=>{try{const e=document.querySelectorAll(t);e.length>0&&(Ve.info('Attaching click listeners to cart activators',e),(e=>{e.forEach((e=>{if(!n.has(e))try{const t=(e=>{const t=e.parentNode;if(t){const r=e.cloneNode(!0);return t.replaceChild(r,e),r}return e})(e);t.removeAttribute('onclick'),t.addEventListener('click',o,{signal:r.signal}),n.add(t)}catch(e){Ve.error('Failed to attach listener to cart activator',e)}}))})(e))}catch(e){Ve.error('Failed to set cart activator selector',e)}};a();const s=new MutationObserver((e=>{let r=!1;e.forEach((e=>{e.addedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE){var n,o;const i=e;null!==(n=i.matches)&&void 0!==n&&n.call(i,t)&&(r=!0),(null===(o=i.querySelectorAll)||void 0===o?void 0:o.call(i,t).length)>0&&(r=!0)}})),e.removedNodes.forEach((e=>{if(e.nodeType===Node.ELEMENT_NODE){var r,n;const o=e;null!==(r=o.matches)&&void 0!==r&&r.call(o,t)||null===(n=o.querySelectorAll)||void 0===n||n.call(o,t).length}}))})),r&&(Ve.info('Reinitializing cart activators'),setTimeout((()=>{a()}),0))}));return s.observe(document.body,{childList:!0,subtree:!0,attributes:!1,characterData:!1}),()=>{r.abort(),s.disconnect()}}),[t,e])},ks=()=>(ys(),ws(),Cs(),(()=>{const{widgetViewState:e}=Gi(),{fetchAndUpdateCart:t,triggerCalculation:r}=_s(),n=Tn((()=>{e.set(i.Open)}),[e]),o=Tn((()=>{e.set(i.Collapsed)}),[e]),a=Tn((()=>{let t;t=e.value===i.Open?i.Collapsed:i.Open,e.set(t)}),[e]),s=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&r(e.transformedCart,e.order.orderData.id)}),[t,r]),l=Tn((async()=>{await t()}),[t]),c=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&r(e.transformedCart,e.order.orderData.id)}),[t,r]),u=Tn((async()=>{const e=await t();null!=e&&e.hasChanged&&(n(),r(e.transformedCart,e.order.orderData.id))}),[t,n,r]);xn((()=>{const e=Er.subscribe(xr.DrawerOpen,n),t=Er.subscribe(xr.DrawerClose,o),r=Er.subscribe(xr.DrawerToggle,a),i=Er.subscribe(xr.CalculationRefetch,s),d=Er.subscribe(xr.CartRefetch,l),h=Er.subscribe(xr.CartAndCalculationRefetch,c),f=Er.subscribe(xr.DrawerOpenAndRefetch,u);return()=>{e(),t(),r(),i(),d(),h(),f()}}),[n,o,a,s,l,c,u])})(),is(),(()=>{var e,t;const{start:r,isActive:n,activeTutorial:o,hasSeenTutorial:i}=ja(),{config:a}=Gi(),[s,l]=Nn(!1),c=Sn((()=>Object.values(Va).find((e=>{var t;return null===(t=e.options)||void 0===t?void 0:t.autoStart}))),[]),u='first-load'===(null==c||null===(e=c.options)||void 0===e?void 0:e.showMode)?a.isFirstLoad&&!i(c.id):!i(null!==(t=null==c?void 0:c.id)&&void 0!==t?t:''),d=!!c&&!s&&u,h=Ma({id:c?'tutorial:'.concat(c.id):'tutorial',priority:Di.tutorial,open:d}),f=En(!1);xn((()=>{h&&c&&!n&&!f.current&&(f.current=!0,r(c))}),[h,c,n,r]);const m=En(!1);xn((()=>{n&&(null==o?void 0:o.id)===(null==c?void 0:c.id)?m.current=!0:m.current&&(m.current=!1,l(!0))}),[n,o,c])})(),null),Ns=e=>{let{children:t}=e;return Aa()?t:null},xs=e=>{let{children:t}=e;const[r,o]=Nn([]),i=En(0),a=Tn((e=>{o((t=>{const r=t.find((t=>t.id===e.id)),o=r?r.seq:i.current++;return[...t.filter((t=>t.id!==e.id)),n(n({},e),{},{seq:o})]}))}),[]),s=Tn((e=>{o((t=>t.filter((t=>t.id!==e))))}),[]),l=Sn((()=>0===r.length?null:r.reduce(((e,t)=>t.priority!==e.priority?t.priority>e.priority?t:e:t.seq<e.seq?t:e)).id),[r]),c=Sn((()=>({acquire:a,release:s,activeId:l})),[a,s,l]);return Zr(Fi.Provider,{value:c,children:t})},Es=['array'],Ss=e=>{var t,r,i,a;let{children:s}=e;const l=Li(),c=function(){let e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:[];const[t,r]=Nn(e),n=Tn((e=>{r(e)}),[]),o=Tn((e=>{r((t=>{if(Array.isArray(e)){const r=e.filter((e=>!t.some((t=>t.id===e.id))));return[...t,...r]}return t.some((t=>t.id===e.id))?t:[...t,e]}))}),[]),i=Tn((e=>{r((t=>t.filter((t=>t.id!==e))))}),[]),a=Tn((()=>{r([])}),[]),s=Tn((e=>t.some((t=>t.id===e))),[t]);return{array:t,set:n,push:o,remove:i,clear:a,has:s}}(),{array:u}=c,d=o(c,Es),{cartState:h,orderState:f,calculationState:m}=Zi(),p=null===(t=f.value.data)||void 0===t?void 0:t.orderData,g=null===(r=m.value.data)||void 0===r?void 0:r.lineItems,v=null!==(i=null===(a=h.value.data)||void 0===a?void 0:a.transformed.item_count)&&void 0!==i?i:0,b=Sn((()=>{const e=[];if(p&&g&&Array.isArray(g)){var t;const{refundReturnWindow:r=!0}=null!==(t=p.returnWindows)&&void 0!==t?t:{},n='refund-window-expired';if(!r&&0===v){const t=l('product.error.refund_expired');e.push({id:n,message:t,blocking:!0})}const o=tt(p.productRules,'NO_REFUND'),i=g.filter((e=>{const t=$e(e.productId);return!!t&&o.includes(Number(t))}));if(i.length>0&&0===v){const t=i.map((e=>{const t=p.productsToExchange.find((t=>t.id===e.id));if(!t)return null;let r=t.title;return t.variantTitle&&(r+=' ('.concat(t.variantTitle,')')),r})).filter(Boolean).join(', '),r=l.rich('product.error.no_refund',{product_name:t,b:e=>{if(!e)return null;const t=e.toString().split(', ');return t.map(((e,r)=>{let n=null;return r===t.length-2?n=' '.concat(l('common.and'),' '):r<t.length-1&&(n=', '),Zr(Vt,{children:[Zr('span',{className:'text-neutral-3',children:e}),n]},r)}))}});e.push({id:n,message:r,blocking:!0})}}return e.concat(u)}),[u,p,g,v,l]),_=n({errors:b},d);return Zr(vs.Provider,{value:_,children:s})},Ts=e=>{const{id:t,initialValue:r=null,queryFn:o,queryOnInit:i=!0,onError:a,startCount:s=0}=e,[l,c]=Nn({data:r,pending:i,error:null}),u=En(!0),[d,h]=Nn(s),f=En(d),m=Tn((function(){for(var e=arguments.length,r=new Array(e),i=0;i<e;i++)r[i]=arguments[i];const s=r[0],l=f.current+1;f.current=l,h(l),c((e=>n(n({},e),{},{pending:!0,error:null})));return(async()=>{try{Ve.info('AsyncState Query Started (Count: '.concat(l,')'),t?' (ID: '.concat(t,')'):'');const e=await(0===r.length?o(l):o(l,s));return f.current!==l?(Ve.info('AsyncState Query Stale - Ignoring (Count: '.concat(l,', Current: ').concat(f.current,')'),t?' (ID: '.concat(t,')'):''),null):(c({data:e,pending:!1,error:null}),Ve.info('AsyncState Query Resolved (Count: '.concat(l,')'),t?' (ID: '.concat(t,')'):'',e),e)}catch(e){if(f.current!==l)return null;const r=e;let n='AsyncState Query Failed (Count: '.concat(l,')');return t&&(n+=' (ID: '.concat(t,')')),Ve.error(''.concat(n,':'),'['.concat(r,']'),s),c({data:null,pending:!1,error:r}),null==a||a(r),null}})()}),[o,t,a]);xn((()=>{if(u.current&&i){u.current=!1;void 0!==e&&'initialParams'in e?m(e.initialParams):m()}}),[m,i,e]);const p=l.pending&&null===l.data;return{value:l,set:c,query:m,count:d,initialFetch:p}},Is=['storeResult','shouldUseCachedResult','logging'],Ms=new Map;async function As(e){var t;let{isFirstLoad:r,internalReturnId:n,lineIds:i}=e;const a=''.concat(n,'_').concat(i),s=await async function(e,t){const{storeResult:r=!0,shouldUseCachedResult:n=!0,logging:i=!0}=t,a=o(t,Is);if(n){const e=ze.get(a);if(null!==e)return i&&Ve.info('Using cached data for '.concat(a.key,' from ').concat(a.type)),e}const s=''.concat(a.type,':').concat(a.key),l=Ms.get(s);if(l)return l;const c=(async()=>{try{const t=await e();return r&&ze.set(a,t),t}catch(e){throw i&&Ve.error('Failed to persist data for '.concat(a.key,' from ').concat(a.type),e),e}finally{Ms.delete(s)}})();return Ms.set(s,c),c}((()=>Fr.GET('/shop-overlay',{params:{query:{internalId:n,orderLines:i}}})),{key:a,type:'sessionStorage',shouldUseCachedResult:!r});if(s.error||null===(t=s.data)||void 0===t||!t.responseObject)throw Ve.error('Failed to fetch shop overlay data for internalId: '.concat(n,' and lineIds: ').concat(i),s.error),new Error('Failed to fetch shop overlay data');return s.data.responseObject}async function Rs(e){var t,r,n,o;let{isFirstLoad:i,options:{clearCartOnStart:a},id:c,data:u}=e,d=null;if(i){var h;const e=null!==(h=u.exchangeItems)&&void 0!==h?h:[];if(e.length>0){const t=e.map((e=>({id:e.variantId,quantity:e.quantity})));Ve.info('Setting cart items from cached return items on initialization.',t),d=await async function(e){const t=await it();if(0===e.length)return t;if(l()){const t=s();if(null!=t&&t.addItems){const r=e.map((e=>({merchandiseId:et(e.id),quantity:e.quantity})));Ve.info('[CartProvider] Using provider.addItems() (setCartItems)',r);const n=await t.addItems(r);return lt(n),n}Ve.info('[CartProvider] Provider exists but addItems not implemented, falling back to /cart/add.js')}return await Je('/cart/add.js',{method:'POST',body:JSON.stringify({items:e})}),ot(!1)}(t)}else a&&(Ve.info('Clearing cart on initialization as per configuration.'),d=await it());lt(d);const t=(new Date).getTime()+He;ze.set(Oe,t);const r=new URL(window.location.href);r.searchParams.delete(_r),yr.forEach((e=>{r.searchParams.delete(e)})),window.history.replaceState(null,'',r)}ze.set(Re,c);const f=null!==(t=null===(r=null!==(n=null===(o=u.formData)||void 0===o?void 0:o.selectedItems)&&void 0!==n?n:[])||void 0===r?void 0:r.map((e=>e.id)).join(','))&&void 0!==t?t:'';return{orderData:await As({isFirstLoad:i,internalReturnId:c,lineIds:f}),updatedCart:d}}const Ps=e=>{let{children:t}=e;const{returnViewState:r,config:n}=Gi(),o=n.isFirstLoad,i=Ts({id:'cart',queryOnInit:!1,queryFn:async(e,t)=>{const n=window.location.pathname.startsWith('/cart'),o=1===e,i=!o||n,s=await ot(!i);0!==s.item_count&&o&&r.set(a.Collapsed);const{cart:l}=rt(s,t.orderData.productRules);return{transformed:l,original:s}}}),s=Ts({id:'order',queryFn:async()=>{const e=await Rs(n);if(e.updatedCart&&o){const{cart:t}=rt(e.updatedCart,e.orderData.productRules);i.set({data:{original:e.updatedCart,transformed:t},pending:!1,error:null})}else i.query(e);return e}}),l=Ts({id:'updateSessionCache',queryOnInit:!1,queryFn:async(e,t)=>{const r=n.id;r&&await async function(e,t){try{var r;Ve.info('Setting session cache for internalId:',e,t);const n=await Fr.PATCH('/userflow/session/{id}',{params:{path:{id:e}},body:{data:t}});return Ve.info('Session cache set successfully:',n),null===(r=n.data)||void 0===r?void 0:r.responseObject}catch(e){throw Ve.error('Error setting session cache:',e),e}}(r,t)}}),c=Ts({id:'calculation',queryOnInit:!1,queryFn:async(e,t)=>{var r,o;const i=n.id,a=(null===(r=t.cart)||void 0===r?void 0:r.items)||[];if(i){const e=Array.isArray(a)?a.map((e=>function(e){var t,r,n;return{variantId:e.variant_id,handle:e.handle,price:(n=e.price,Ze(n)?0:n/100),title:e.product_title,variantTitle:null!==(t=e.variant_title)&&void 0!==t?t:'',image:e.image,quantity:null!==(r=e.quantity)&&void 0!==r?r:1}}(e))):[];l.query({exchangeItems:e})}const s=(null===(o=n.data.formData)||void 0===o||null===(o=o.packages)||void 0===o?void 0:o.length)||1;return await async function(e,t){var r;let{orderId:n,cart:o,lineItems:i}=e;const a=(o.items||[]).map((e=>({variantId:'gid://shopify/ProductVariant/'.concat(e.variant_id),quantity:e.quantity}))),s=(i||[]).map((e=>({lineItemId:e.lineItemId,quantity:1,action:e.action}))),l=await Fr.POST('/calculation/{uuid}',{params:{path:{uuid:n}},body:{lineItems:s,exchangeTo:a,numOfLabels:t}});var c,u;if(l.error||null===(r=l.data)||void 0===r||!r.responseObject)throw Ve.error('Failed to fetch calculation data for orderId: '.concat(n),l.error),new Error('Failed to fetch calculation: '.concat(null!==(c=null===(u=l.error)||void 0===u?void 0:u.message)&&void 0!==c?c:'Unknown error'));return l.data.responseObject}(t,s)}}),[u]=((e,t)=>{const r=Nn(!1),n=En(!1);return xn((()=>{n.current||e((()=>{r[1](!0),n.current=!0}))}),t),r})((e=>{var t;const r=s.value.data,o=null===(t=i.value.data)||void 0===t?void 0:t.transformed,a=n.data.formData;if(r&&o){e();const t=Ke(a);c.query({cart:o,orderId:r.orderData.id,lineItems:t})}}),[s.value.data,i.value.data,c.query]),d=!u||i.value.pending||c.value.pending,h=Sn((()=>s.value.error||i.value.error||c.value.error),[s.value.error,i.value.error,c.value.error]),f=Boolean(h),m=Sn((()=>({orderState:s,cartState:i,calculationState:c,updateSessionCacheState:l,isPending:d,hasFailed:f})),[s,i,c,l,d,f]);return Zr(Wi.Provider,{value:m,children:t})};var Os;(e=>{e.Collapsed='COLLAPSED',e.Open='OPEN'})(Os||(Os={}));const Hs={backgroundColor:'#FFFFFF',accentBackgroundColor:'#F5F5F5',primaryCTAColor:'#000000',primaryCTATextColor:'#FFFFFF',secondaryCTAColor:'#E5E5E5',secondaryCTATextColor:'#000000',primaryTextColor:'#000000',secondaryTextColor:'#737373'},Ls=()=>{const{config:{theme:e}}=Gi(),t=Sn((()=>{const t=n({},Hs);for(const[r,n]of Object.entries(null!=e?e:{}))n&&(t[r]=n);return Object.entries(t).reduce(((e,t)=>{let[r,n]=t;const o=function(e){e=e.replace('#','');const t=parseInt(e.substring(0,2),16)/255,r=parseInt(e.substring(2,4),16)/255,n=parseInt(e.substring(4,6),16)/255,o=Math.max(t,r,n),i=Math.min(t,r,n),a=o-i,s=(o+i)/2;let l=0,c=0;if(0!==a)switch(c=s>.5?a/(2-o-i):a/(o+i),o){case t:l=((r-n)/a+(r<n?6:0))/6;break;case r:l=((n-t)/a+2)/6;break;case n:l=((t-r)/a+4)/6}const u=Math.round(360*l),d=Math.round(100*c),h=Math.round(100*s);return''.concat(u,', ').concat(d,'%, ').concat(h,'%')}(n);return e['--'.concat(r.replace(/([a-z0-9])([A-Z])/g,'$1-$2').replace(/([A-Z]+)([A-Z][a-z])/g,'$1-$2').toLowerCase())]=o,e}),{})}),[e]);return{theme:e,cssVariables:t}},Bs=e=>{const t=En(null),{cssVariables:r}=Ls();return Zr(Ra.Provider,{value:t,children:Zr('div',n({onTouchStart:e=>e.stopPropagation(),className:'rf-root',ref:t,id:Cr,style:r},e))})},Ds=new Set;function Fs(){var e;return null!==(e=ze.get(De))&&void 0!==e?e:[]}function zs(e){return Fs().includes(e)||Ds.has(e)}function Us(e){var t,r;'active'===e.status&&('once'===(null===(t=e.tutorial.options)||void 0===t?void 0:t.showMode)?function(e){const t=Fs();t.includes(e)||ze.set(De,[...t,e])}(e.tutorial.id):'first-load'===(null===(r=e.tutorial.options)||void 0===r?void 0:r.showMode)&&Ds.add(e.tutorial.id));return{status:'inactive'}}const js=e=>{let{children:t}=e;const[r,o]=Nn({status:'inactive'}),i=Tn((e=>{0!==e.steps.length&&(zs(e.id)||o({status:'active',tutorial:e,stepIndex:0}))}),[]),a=Tn((()=>{o((e=>Us(e)))}),[]),s=Tn((()=>{o((e=>{if('active'!==e.status)return e;const t=e.stepIndex+1;return t>=e.tutorial.steps.length?Us(e):n(n({},e),{},{stepIndex:t})}))}),[]),l=Tn((()=>{o((e=>'active'!==e.status?e:n(n({},e),{},{stepIndex:Math.max(0,e.stepIndex-1)})))}),[]),c=Tn((e=>{o((t=>{if('active'!==t.status)return t;const r=t.tutorial.steps.findIndex((t=>t.id===e));return-1===r?t:n(n({},t),{},{stepIndex:r})}))}),[]),u='active'===r.status?r.tutorial:null,d='active'===r.status?r.tutorial.steps[r.stepIndex]:null,h=Tn((e=>(null==d?void 0:d.id)===e),[d]),f=Sn((()=>({state:r,activeTutorial:u,currentStep:d,isActive:'active'===r.status,start:i,stop:a,next:s,previous:l,goToStep:c,isStepActive:h,hasSeenTutorial:zs})),[r,u,d,i,a,s,l,c,h]);return Zr(Ua.Provider,{value:f,children:t})},Gs=['children'],qs=e=>{let{children:t}=e,r=o(e,Gs);const n=zi(i.Collapsed,(e=>{Er.publish(Nr.DrawerStateChange,{state:e}),document.querySelectorAll('[inert]').forEach((e=>{e.removeAttribute('inert')}))})),s=zi(a.Open),l=Sn((()=>({widgetViewState:n,returnViewState:s,config:r})),[n,s,r]);return Zr(ji.Provider,{value:l,children:t})},Vs=['duration'],Ws=e=>{let{children:t}=e;const[r,i]=Nn([]),a=Tn((e=>{i((t=>t.map((t=>{var r;t.id===e&&(null===(r=t.onClose)||void 0===r||r.call(t));return t.id===e?n(n({},t),{},{isVisible:!1}):t})))),setTimeout((()=>{i((t=>t.filter((t=>t.id!==e))))}),300)}),[]),s=Tn((e=>{let{duration:t=rs}=e,r=o(e,Vs);const s=r.id||'toast-'.concat(Math.random().toString(36).substr(2,9));return i((e=>[...e,n(n({},r),{},{id:s,duration:t,isVisible:!0})])),setTimeout((()=>a(s)),t),s}),[a]),l=Tn((()=>{i((e=>e.map((e=>{var t;return null===(t=e.onClose)||void 0===t||t.call(e),n(n({},e),{},{isVisible:!1})})))),setTimeout((()=>{i([])}),300)}),[]),c={queue:r,add:s,remove:a,clear:l};return Zr(ns.Provider,{value:c,children:t})};const Zs=['className'],Xs=e=>{let{className:t}=e,r=o(e,Zs);return Zr('svg',n(n({width:21,height:21,viewBox:'0 0 21 21',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--action '.concat(t||'')},r),{},{children:[Zr('rect',{x:.5,y:.679,width:20,height:20,rx:10,className:'fill-[var(--icon-fill-1,_#000)]'}),Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M11.517 6.04q.088.055.127.157c.025.066.03.14.013.209l-.775 3.13h2.826q.088 0 .16.052a.3.3 0 0 1 .108.14.35.35 0 0 1-.055.348l-4.083 4.822a.3.3 0 0 1-.168.098.27.27 0 0 1-.187-.037.3.3 0 0 1-.127-.156.35.35 0 0 1-.013-.21l.775-3.129H7.292a.27.27 0 0 1-.16-.053.3.3 0 0 1-.108-.14.35.35 0 0 1 .055-.348l4.083-4.821a.3.3 0 0 1 .168-.098.27.27 0 0 1 .187.037',className:'fill-[var(--icon-fill-2,_#fff)]'})]}))},Ks=['className'],Ys=e=>{let{className:t}=e,r=o(e,Ks);return Zr('svg',n(n({width:21,height:21,viewBox:'0 0 21 21',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--info '.concat(t||'')},r),{},{children:[Zr('path',{className:'fill-[var(--icon-fill-2,_#fff)]',d:'M6.856 4.628h7.288v12.226H6.856z'}),Zr('path',{className:'fill-[var(--icon-fill-1,_#000)]',d:'M17.572 3.67C13.666-.235 7.335-.236 3.429 3.67c-3.905 3.905-3.905 10.237 0 14.143 3.905 3.904 10.237 3.904 14.143 0 3.905-3.906 3.904-10.238 0-14.143m-5.768 11.419a1.304 1.304 0 1 1-2.609 0V9.87a1.304 1.304 0 1 1 2.61 0zm-1.327-7.447c-.752 0-1.252-.532-1.237-1.19-.015-.688.485-1.204 1.252-1.204s1.252.516 1.268 1.205c0 .657-.5 1.189-1.283 1.189'})]}))},Js=['className'],Qs=e=>{let{className:t}=e,r=o(e,Js);return Zr('svg',n(n({width:20,height:15,viewBox:'0 0 20 15',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--giftcard fill-[var(--icon-fill-1,_currentColor)] '.concat(t||'')},r),{},{children:[Zr('path',{d:'M8.23 3.129c-.288 0-.602.11-.82.37-.284.342-.373 1.362-.363 1.877.48.012 1.4-.001 1.771-.395.39-.411.496-1.13.082-1.568a.9.9 0 0 0-.67-.284m-3.666 0c.288 0 .603.11.82.37.284.342.373 1.362.363 1.877-.48.012-1.399-.001-1.77-.395-.39-.411-.496-1.13-.083-1.568a.9.9 0 0 1 .67-.284'}),Zr('path',{d:'M9.806 2.447c.73.773.828 1.99.328 2.929H20V1.948C20 .872 19.178 0 18.165 0H7.038v2.103c.9-.54 2.036-.43 2.768.344.417.44-.732-.775 0 0M4.347 9.21l-.91-.962L4.85 6.74H0v6.312C0 14.128.821 15 1.835 15h3.919V7.71zm3.589-2.47L9.33 8.236l-.912.959-1.38-1.48V15h11.126C19.18 15 20 14.128 20 13.052V6.74zM2.659 5.376c-.5-.939-.403-2.157.327-2.929.732-.775 1.869-.883 2.768-.344V0h-3.92C.822 0 0 .872 0 1.948v3.428z'})]}))},$s=['className'],el=e=>{let{className:t}=e,r=o(e,$s);return Zr('svg',n(n({width:30,height:27,viewBox:'0 0 30 27',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--warning fill-[var(--icon-fill-1,_#000)] '.concat(t||'')},r),{},{children:[Zr('path',{d:'M15 18.904c-.81 0-1.49.68-1.49 1.49s.68 1.489 1.49 1.489c.78 0 1.489-.68 1.453-1.454A1.454 1.454 0 0 0 15 18.904'}),Zr('path',{d:'M28.784 24.182a5.09 5.09 0 0 0 .012-5.147L19.467 2.88A5.07 5.07 0 0 0 15.006.289c-1.87 0-3.539.97-4.462 2.585l-9.34 16.173a5.13 5.13 0 0 0 .017 5.177 5.1 5.1 0 0 0 4.45 2.555h18.633c1.865 0 3.539-.97 4.48-2.597m-2.025-1.167a2.82 2.82 0 0 1-2.46 1.423H5.665a2.78 2.78 0 0 1-2.43-1.394 2.82 2.82 0 0 1-.006-2.841l9.34-16.167a2.76 2.76 0 0 1 2.437-1.412c1.018 0 1.93.53 2.436 1.417l9.335 16.168c.5.87.494 1.918-.018 2.806'}),Zr('path',{d:'M14.63 8.45c-.709.202-1.15.846-1.15 1.626.036.47.066.947.102 1.418l.303 5.343A1.09 1.09 0 0 0 15 17.886c.608 0 1.085-.471 1.114-1.085 0-.369 0-.708.036-1.084.066-1.15.137-2.3.203-3.449.035-.744.101-1.49.137-2.234a1.8 1.8 0 0 0-.137-.744 1.49 1.49 0 0 0-1.722-.84'})]}))},tl=()=>Zr(ia,{className:'rf-banner-skeleton h-12 rounded-lg'}),rl=['className','children','tone','border','icon','pending'],nl=ea('rf-banner text-black rounded-lg flex items-center gap-2.5 p-3 min-h-12 font-medium leading-tight',{variants:{tone:{info:'rf-banner--info bg-banner-info-background [--icon-fill-1:hsl(var(--rf-c-banner-info-foreground))]',tip:'rf-banner--tip bg-banner-tip-background [--icon-fill-1:hsl(var(--rf-c-banner-tip-foreground))]',action:'rf-banner--action bg-banner-action-background [--icon-fill-1:hsl(var(--rf-c-banner-action-foreground))]',error:'rf-banner--error bg-banner-error-background [--icon-fill-1:hsl(var(--rf-c-banner-error-foreground))]',giftcard:'rf-banner--giftcard bg-[#F1F3FE] [--icon-fill-1:hsl(var(--rf-c-primary))]'},border:{dashed:'border border-dashed border-[color:var(--icon-fill-1)]'}},defaultVariants:{tone:'info'}}),ol={className:'rf-banner__icon',width:20,height:20};function il(e){switch(e){case'action':return Zr(Xs,n({},ol));case'error':return Zr(el,n({},ol));case'giftcard':return Zr(Qs,n({},ol));default:return Zr(Ys,n({},ol))}}var al=Fn((e=>{var t;let{className:r,children:i,tone:a,border:s,icon:l,pending:c=!1}=e,u=o(e,rl);return Zr(Yi,{skeleton:Zr(tl,{}),pending:c,children:Zr('aside',n(n({className:We(nl({tone:a,border:s}),r)},u),{},{children:[il(null!==(t=null!=l?l:a)&&void 0!==t?t:'info'),Zr('span',{className:'rf-banner__text flex-1',children:i})]}))})}));const sl=()=>{var e,t,r,n;const o=Li('banner'),{orderState:i,calculationState:a}=Zi(),s=null!==(e=null===(t=i.value.data)||void 0===t?void 0:t.orderData.instantExchange)&&void 0!==e&&e,l=null!==(r=null===(n=a.value.data)||void 0===n?void 0:n.returnLabelPrice)&&void 0!==r?r:0;return i.value.data&&a.value.data?Zr(al,s?{className:'rf-exchange-banner',tone:'action',children:o('fast_exchange')}:0===l?{className:'rf-exchange-banner',tone:'tip',children:o('free_shipping_label')}:{className:'rf-exchange-banner',children:o('exchange_info')}):Zr(tl,{})},ll=['fractionDigits'],cl=['currencyDisplay'],ul=function(){var e,t;let r=arguments.length>0&&void 0!==arguments[0]?arguments[0]:{};const{config:i}=Gi(),{calculationState:a,cartState:s}=Zi(),l=null===(e=s.value.data)||void 0===e?void 0:e.transformed.currency,c=null===(t=a.value.data)||void 0===t?void 0:t.currency.localCurrency,u=r.currency||c||i.currency||l||'DKK',d=Bi(),h=Tn(((e,t)=>{var r;const n=null===(r=a.value.data)||void 0===r?void 0:r.currency;return e*(null!=t?t:Xe(null==n?void 0:n.exchangeRate,1))}),[a.value.data]);return{format:Tn(((e,t)=>{'string'==typeof e&&(e=parseFloat(e));const i=n(n({},r),t),{fractionDigits:a=2}=i,s=o(i,ll),l=n({currency:u,minimumFractionDigits:a,maximumFractionDigits:a},s),{currencyDisplay:c}=l,h=o(l,cl);return'none'===c?d.number(e,h):d.number(e,n({style:'currency',currencyDisplay:c},h))}),[d,r,u]),applyExchangeRate:h,currency:u}},dl=()=>{var e,t;const{applyExchangeRate:r}=ul(),{calculationState:o,cartState:i}=Zi(),a=i.value.data,s=o.value.data;return n({itemCount:null!==(e=null===(t=i.value.data)||void 0===t?void 0:t.transformed.item_count)&&void 0!==e?e:0},Sn((()=>{var e;if(!s||!a)return{orderTotal:0,cartTotal:0,returnTotal:0,giftcardValue:0,totalPriceDiscount:0,giftCardBonusAmount:0,returnLabelPrice:0,isRefunding:!1};const{orderSubtotal:t,returnSubtotal:n,total:o,refundMethods:i,exchange:l,giftCardBonusAmount:c,returnLabelPrice:u}=s,d=r(null!==(e=null==l?void 0:l.discountSummary.adjustedDiscountTotal)&&void 0!==e?e:0),h=Xe(r(null==i?void 0:i.giftcard)),f=r(n)-h,m=Math.abs(r(o));return{orderTotal:r(t),cartTotal:f,returnTotal:m,giftcardValue:h,totalPriceDiscount:d,giftCardBonusAmount:r(c),returnLabelPrice:r(u),isRefunding:o>0}}),[s,a,r]))},hl=['className'],fl=e=>{let{className:t}=e,r=o(e,hl);return Zr('svg',n(n({width:12,height:12,viewBox:'0 0 13 13',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--star '.concat(t||'')},r),{},{children:Zr('path',{d:'m6.11 1.06 1.7 3.62 3.8.584-2.75 2.817.65 3.979-3.4-1.88-3.398 1.88.649-3.98L.61 5.265l3.8-.584z',fill:'currentColor',stroke:'currentColor',strokeWidth:1.111,strokeLinecap:'round',strokeLinejoin:'round'})}))},ml=['value','compareAtValue','pending','children','className'];function pl(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:2;return Number(e.toFixed(t))}var gl=Fn((e=>{let{value:t=0,compareAtValue:r,pending:i,children:a,className:s}=e,l=o(e,ml);const{format:c}=ul(),u=!Ze(r)&&pl(r)>pl(t);return Zr(Yi,{skeleton:Zr(ia,{className:'w-20'}),pending:i,children:Zr('span',n(n({className:We('rf-price font-medium text-base inline-flex flex-col items-end',s)},l),{},{children:[Zr('span',{className:'rf-price__value',children:c(t)}),u&&Zr('span',{className:'rf-price__compare-at text-affirmative line-through text-xs',children:c(r)}),a]}))})}));const vl=()=>Zr('div',{className:'rf-adjustments-table-skeleton space-y-2',children:[Zr(ia,{className:'h-5 w-full'}),Zr(ia,{className:'h-5 w-full'})]}),bl=()=>{const e=Li(),{format:t}=ul(),{calculationState:r}=Zi(),{cartTotal:n,giftcardValue:o,giftCardBonusAmount:i,returnLabelPrice:a,totalPriceDiscount:s}=dl(),l=s>0,c=o>0,u=a>0;return r.value.data?Zr('div',{className:'rf-adjustments-table p-base border-t border-neutral-2',children:Zr('table',{className:'rf-adjustments-table__table w-full',children:Zr('tbody',{className:'rf-adjustments-table__body',children:[l&&Zr(_l,{value:-1*s,className:'text-affirmative',children:e('price_details.price_change')}),u&&Zr(_l,{value:a,className:'text-neutral-3',children:e('price_details.return_label')}),n>0&&Zr(_l,{value:n,children:e('price_details.products')}),c&&Zr(_l,{className:'text-primary',value:o,children:[Zr('span',{className:'align-middle',children:[Zr(Qs,{className:'inline -mt-1 w-4 h-auto'}),' ',e('price_details.giftcard')]}),i>0&&Zr('span',{className:'text-sm text-reward align-middle',children:['+',t(i),' ',Zr(fl,{className:'inline -mt-0.5'})]})]})]})})}):Zr('div',{className:'rf-adjustments-table-loading p-base border-t border-neutral-2',children:Zr(vl,{})})};function _l(e){let{value:t,children:r,className:n}=e;return Zr('tr',{className:We('rf-adjustments-table__row h-6 group/row',n),children:[Zr('th',{scope:'row',className:'rf-adjustments-table__label space-x-2 font-normal text-left group-first/row:pt-0 group-last/row:pb-0 py-0.5',children:r}),Zr('td',{className:'rf-adjustments-table__value text-right',children:Zr(gl,{value:t})})]})}const yl=['className'],Cl=e=>{let{className:t}=e,r=o(e,yl);return Zr('div',n(n({className:We('rf-exchange-adjustments border-t border-neutral-2',t)},r),{},{children:[Zr('div',{className:'rf-exchange-adjustments__banner p-base',children:Zr(sl,{})}),Zr(bl,{})]}))},wl=()=>{var e;const t=Li('announcement'),{cartState:r}=Zi(),n=null===(e=r.value.data)||void 0===e?void 0:e.transformed.item_count,o=0===(null!=n?n:0)?'step_1':'step_2';return Zr('div',{className:'rf-announcement-bar h-14 bg-announcement-background text-announcement-foreground px-base flex items-center justify-between text-sm',children:[Zr(ua,{}),Zr('div',{className:'rf-announcement-bar__content space-x-1',children:[Zr('span',{className:'rf-announcement-bar__step-label text-neutral-3',children:t('this_step')}),Zr('span',{className:'rf-announcement-bar__step-text',children:t(o)})]})]})},kl=['className','errorMessage','instructionMessage'],Nl=e=>{let{className:t,errorMessage:r='Der skete en fejl!',instructionMessage:i='Opdater siden og prøv igen.'}=e,a=o(e,kl);return Zr('div',n(n({className:We('rf-error-screen p-base flex-1',t),role:'alert','aria-live':'assertive'},a),{},{children:Zr('div',{className:'rf-error-screen__content bg-[#FEF2F2] rounded-lg p-base flex flex-col items-center justify-center gap-1 text-center size-full',children:[Zr(el,{className:'mb-2 fill-destructive','aria-hidden':'true'}),Zr('p',{className:'rf-error-screen__message text-neutral-3',id:'error-heading',children:r}),Zr('p',{className:'rf-error-screen__instruction',children:i})]})}))},xl=()=>{const e=Pi().locale,{config:{data:{slug:t}}}=Gi();if(!t)throw new Error('useNavigation must be used within a WidgetContextProvider with a valid slug');return{back:()=>qi.back(e,t),continue:()=>qi.continue(e,t),exit:qi.exit}},El=e=>{const t=Li('dialog.empty_exchange');return Zr(Da.Modal,n(n({className:'text-center flex flex-col gap-2 items-center'},e),{},{priority:Di.emptyExchange,children:[Zr(ua,{children:e=>Zr(na,{className:'flex',style:{zIndex:e},children:Zr(el,{className:'size-3 m-auto -translate-y-px fill-warning'})})}),Zr(Da.Title,{children:t('title')}),Zr(Da.Subtitle,{children:t('subtext')}),Zr(Da.Accept,{children:t('confirm')}),Zr(Da.Reject,{children:t('reject')})]}))},Sl=()=>{const e=Li('confirmation'),t=xl(),{calculationState:r,updateSessionCacheState:o,isPending:i,hasFailed:a}=Zi(),{isRefunding:s,returnTotal:l,itemCount:c}=dl(),{errors:u}=bs(),d=u.filter((e=>e.blocking)),h=!a&&!i&&!o.value.pending&&0===d.length,f=c>0;function m(){h&&t.continue()}const p=Ui({onConfirm:e=>{e.set(!1),m()}});return Zr('div',{className:'rf-exchange-confirmation rounded-t-2xl bg-neutral-1 p-base pb-safe-offset-base space-y-2',children:[Zr('div',{className:'rf-exchange-confirmation__header flex justify-between items-center pb-2',children:[Zr('h3',{className:'rf-exchange-confirmation__title font-medium',children:e(s?'title_refund':'title_checkout')}),Zr(gl,{value:l,pending:r.value.pending})]}),Zr(ya,{disabled:!h,onClick:function(){h&&(f?m():p.state.set(!0))},className:'w-full',icon:fa,children:Zr('span',{children:e(f?'confirm_exchange':'confirm_no_exchange')})}),Zr('p',{className:'rf-exchange-confirmation__disclaimer text-sm text-neutral-3 text-center mx-auto font-normal',children:e(f?'disclaimer_exchange':'disclaimer_no_exchange')}),Zr(El,n({},p.register()))]})},Tl=()=>{const e=Li('common'),{widgetViewState:t}=Gi();return Zr('div',{className:'rf-exchange-header border-t border-neutral-3 p-base flex items-center justify-between',children:[Zr('h2',{className:'rf-exchange-header__title text-xl font-semibold',children:e('title')}),Zr(Ta,{showLabel:!0,className:'rf-exchange-header__close-button',labelProps:{className:'rf-exchange-header__close-text'},onClick:()=>t.set(i.Collapsed)})]})},Il=['className'],Ml=e=>{let{className:t}=e,r=o(e,Il);return Zr('svg',n(n({width:28,height:27,viewBox:'0 0 28 27',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--cart '.concat(t||'')},r),{},{children:Zr('path',{d:'M8.094 20.443c-1.223-.066-1.2-1.856 0-1.919 3.4.013 12.367.004 15.875.006.96 0 1.78-.68 1.996-1.652l1.992-8.979a1.77 1.77 0 0 0-.316-1.46 1.62 1.62 0 0 0-1.293-.653c-1.41 0-13.39-.057-19.525-.082L5.85 1.947C5.617 1.05 4.83.423 3.936.423H.821C.367.423 0 .805 0 1.277s.367.854.82.854h3.116c.154 0 .29.108.33.262L8 16.818a2.5 2.5 0 0 0-1.732.793 2.7 2.7 0 0 0-.738 1.919c.025 1.445 1.174 2.621 2.563 2.621H9.29a3.1 3.1 0 0 0-.278 1.282c0 1.648 1.289 2.99 2.873 2.99s2.872-1.341 2.872-2.99c0-.459-.1-.893-.277-1.282h5.182a3.1 3.1 0 0 0-.277 1.281c0 1.649 1.288 2.99 2.872 2.99s2.873-1.341 2.873-2.99a3.1 3.1 0 0 0-.299-1.326.85.85 0 0 0 .56-.81c0-.47-.368-.853-.822-.853zm5.023 2.99c0 .706-.552 1.281-1.231 1.281-.68 0-1.232-.575-1.232-1.281 0-.707.552-1.281 1.23-1.282h.003c.678 0 1.23.575 1.23 1.282m9.141 1.28c-.678 0-1.23-.574-1.23-1.28 0-.7.54-1.27 1.21-1.282h.04c.67.011 1.212.582 1.212 1.281 0 .707-.553 1.282-1.232 1.282M26.355 7.5q.005.009.003.015l-.84 3.783h-2.842l.484-3.817 3.182.013q.006-.002.013.006m-8.462 9.322v-3.815h2.91l-.483 3.815zm-4.07 0-.488-3.815h2.916v3.815zm-3.779 0h-.002a.45.45 0 0 1-.428-.341l-.9-3.475h2.965l.488 3.816zm3.073-5.524-.494-3.861 3.628.015v3.846zm4.776 0v-3.84l3.612.016-.485 3.824zM10.966 7.43l.495 3.868H8.27L7.267 7.414zm13.003 9.392h-1.993l.483-3.815h2.68l-.773 3.486a.41.41 0 0 1-.397.329',fill:'currentColor'})}))},Al=()=>{const e=Li('exchange_placeholder'),{widgetViewState:t}=Gi();return Zr('div',{className:'rf-exchange-placeholder px-base pb-base',children:Zr('div',{className:'rf-exchange-placeholder__content border border-dashed border-[#DDDDDD] h-36 rounded-md flex items-center justify-center flex-col gap-2 font-medium text-base p-base',children:[Zr(Ml,{className:'text-neutral-3'}),Zr('span',{className:'rf-exchange-placeholder__text',children:e('prompt_text')}),Zr('button',{onClick:()=>t.set(i.Collapsed),className:'rf-exchange-placeholder__continue text-button-background decoration-[color:hsla(var(--rf-c-button-background),_0.25)] underline-offset-4 underline text-sm cursor-pointer',type:'button',children:e('continue')})]})})},Rl=()=>{const{errors:e}=bs();return 0===e.length?null:Zr('div',{className:'rf-product-errors rf-product-view__error-list px-base pb-base space-y-base',children:e.map((e=>{let{id:t,message:r}=e;return Zr(al,{className:'rf-product-view__error animate-slide-up-and-fade-in',tone:'error',children:r},t)}))})},Pl=['coverage'],Ol={min:{limit:1,disabled:!1},max:{limit:99,disabled:!0}};function Hl(e,t){const r='/products/'.concat(t.handle);if(!e)return r;try{const n=e(t);return'string'==typeof n&&n?n:r}catch(e){return r}}const Ll=['onIncrement','onDecrement','constraints','quantity','pending','disabled','className'],Bl=e=>{let{onIncrement:t,onDecrement:r,constraints:i=Ol,quantity:a,pending:s=!1,disabled:l=!1,className:c}=e,u=o(e,Ll);const d=s||l,h=a===i.min.limit,f=a===i.max.limit,m=i.max.disabled&&f||d,p=i.min.disabled&&h||d,g=Tn((async()=>{if(!m)try{await t(f)}catch(e){Ve.error('Increment failed:',e)}}),[m,t,f]),v=Tn((async()=>{if(!p)try{await r(h)}catch(e){Ve.error('decrement failed:',e)}}),[p,r,h]),b=function(e){let t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:Ol;return Math.max(t.min.limit,Math.min(e,t.max.limit))}(a,i);return Zr('div',n(n({className:We('rf-quantity-picker rounded-full p-1 border border-button-secondary-background flex items-center h-min gap-2 transition-opacity',d&&'rf-quantity-picker--disabled opacity-50 cursor-not-allowed',c)},u),{},{children:[Zr('button',{type:'button',className:'rf-quantity-picker__decrement-button disabled:!opacity-50 desktop:hover:opacity-80 disabled:cursor-not-allowed transition-opacity',disabled:p,onClick:v,children:Zr(Ea,{variant:'solid-inverse',size:'sm',children:Zr('span',{className:'rf-quantity-picker__decrement-icon text-base leading-none -mt-0.5',children:'-'})})}),Zr('div',{className:'rf-quantity-picker__quantity px-1.5 flex-1 text-base',children:b}),Zr('button',{type:'button',className:'rf-quantity-picker__increment-button disabled:!opacity-50 desktop:hover:opacity-80 disabled:cursor-not-allowed transition-opacity',disabled:m,onClick:g,children:Zr(Ea,{variant:'solid-inverse',size:'sm',children:Zr('span',{className:'rf-quantity-picker__increment-icon text-base leading-none -mt-0.5',children:'+'})})})]}))};var Dl=Fn((e=>{let{variantId:t,quantity:r,quantityRule:o}=e;const i=Li('product'),[a,s]=Nn(!1),{cartState:l,isPending:c}=Zi(),u=bs(),{processCartUpdate:d}=_s(),h=Tn((async e=>{s(!0);const r=as.ProductLimit;try{l.set((e=>n(n({},e),{},{pending:!0,error:null})));const o=await at({variantId:t,quantity:e});await d(o),u.has(r)&&u.remove(r)}catch(e){const t=parseInt(e.message),o=isNaN(t)?null:t;l.set((e=>n(n({},e),{},{pending:!1}))),u.push({id:r,message:i('error.'.concat(ls(o)))})}finally{s(!1)}}),[l,t,u,i,d]);if(Ze(r))return null;const{increment:f,constraints:m}=function(e){var t,r,n;const o=null!==(t=null==e?void 0:e.min)&&void 0!==t?t:1,i=null!==(r=null==e?void 0:e.max)&&void 0!==r?r:99;return{min:o,max:i,increment:null!==(n=null==e?void 0:e.increment)&&void 0!==n?n:1,constraints:{min:{limit:o,disabled:!1},max:{limit:i,disabled:!0}}}}(o);return Zr('div',{className:'rf-product-actions flex items-center',children:[Zr(Bl,{pending:c||a,constraints:m,onDecrement:e=>{h(e?0:r-f)},onIncrement:()=>{h(r+f)},quantity:r}),Zr('button',{disabled:c||a,className:'rf-product-actions__remove-button underline ml-auto text-sm disabled:cursor-not-allowed disabled:opacity-50 transition-opacity cursor-pointer',onClick:()=>h(0),type:'button',children:i('remove')})]})}));const Fl=['className','href','unstyled','onClick','onDisabledClick','disabled'],zl=e=>{let{className:t,href:r,unstyled:i=!1,onClick:a,onDisabledClick:s,disabled:l=!1}=e,c=o(e,Fl);const u=l||!r;return Zr('a',n({onClick:function(e){if(l)return e.preventDefault(),void(null==s||s(e));null==a||a(e)},href:u?void 0:r,'aria-disabled':u,className:We('rf-link block',!i&&'transition-opacity',u?i?'cursor-default':'cursor-not-allowed opacity-50':'cursor-pointer',t)},c))},Ul=['title','variantTitle','pending','price','compareAtPrice','className','quantity','href','showQuantity','exchangeRate'];var jl=Fn((e=>{let{title:t,variantTitle:r,pending:i=!1,price:a,compareAtPrice:s,className:l,quantity:c=1,href:u,showQuantity:d=!0,exchangeRate:h}=e,f=o(e,Ul);const m=Li(),{applyExchangeRate:p}=ul(),g=c>1&&d,v=Ze(s)?void 0:p(Xe(s),h),b=p(Xe(a),h);return Zr('div',n(n({className:We('rf-product-attributes flex justify-between gap-4 text-sm leading-tight',l)},f),{},{children:[Zr('div',{className:'rf-product-attributes__info flex-1 min-w-0',children:[u?Zr(zl,{unstyled:!0,href:u,className:'rf-product-attributes__link',children:Zr('h3',{className:'rf-product-attributes__title text-base font-medium line-clamp-1',children:t})}):Zr('h3',{className:'rf-product-attributes__title text-base font-medium line-clamp-1',children:t}),(r||g)&&Zr('h4',{className:'rf-product-attributes__variant text-neutral-3',children:[r,' ',g&&Zr('span',{className:'rf-product-attributes__quantity',children:['(',m('piece',{count:c}),')']})]})]}),Zr(gl,{pending:i,value:b,compareAtValue:v})]}))}));var Gl=Fn((e=>{let{imageSource:t,title:r,href:n}=e;const{widgetViewState:o}=Gi();return Zr('a',{className:'rf-product-image',href:n,onClick:()=>o.set(i.Collapsed),children:Zr(Ki,{className:'rf-product-image__img w-[70px] h-24 rounded-lg border border-neutral-1 object-cover',src:t,alt:r})})}));const ql=['calculation'],Vl=['product','className'],Wl=e=>{let{product:{calculation:t},className:r}=e,i=o(e.product,ql),a=o(e,Vl);const{config:{options:s}}=Gi(),l=Hl(s.getProductUrl,i);return Zr('li',n(n({className:We('rf-product flex gap-4 p-base first:pt-0',r)},a),{},{children:[Zr(Gl,{imageSource:i.image,title:i.product_title,href:l}),Zr('div',{className:'rf-product__content space-y-2 flex-1',children:[Zr(jl,{className:'flex-1',href:l,title:i.product_title,variantTitle:i.variant_title,pending:!t,price:null==t?void 0:t.price,compareAtPrice:null==t?void 0:t.compareAtPrice,quantity:i.quantity,showQuantity:!1}),Zr(Dl,{variantId:i.variant_id,quantity:i.quantity,quantityRule:i.quantity_rule})]})]}))},Zl=()=>{const{cartItems:e}=(()=>{var e,t;const{cartState:r,calculationState:i}=Zi(),a=null===(e=r.value.data)||void 0===e?void 0:e.transformed,s=null===(t=i.value.data)||void 0===t||null===(t=t.exchange)||void 0===t?void 0:t.exchangeDetails;return{cartItems:Sn((()=>{const e=null==a?void 0:a.items;return e?e.map((e=>{let t;const r=null==s?void 0:s.filter((t=>t.variantId?Number($e(t.variantId))===e.variant_id:Number($e(t.productId))===e.product_id));return r&&r.length>0&&(t=r.reduce(((e,t)=>{var r,i,a;let{coverage:s}=t,l=o(t,Pl);const c=null!==(r=null==s?void 0:s.originalUnitPrice)&&void 0!==r?r:l.price,u=null!==(i=null!==(a=null==s?void 0:s.exchangeUnitPrice)&&void 0!==a?a:l.compareAtPrice)&&void 0!==i?i:null;return u&&(e.compareAtPrice?e.compareAtPrice+=u:e.compareAtPrice=u),e.price+=c,n(n({},l),e)}),{price:0,compareAtPrice:null})),n(n({},e),{},{calculation:t})})):[]}),[a,s])}})();return Zr('ul',{className:'rf-product-list border-neutral-2 divide-y divide-neutral-2',children:e.map(((e,t)=>{const r=''.concat(e.id,'-').concat(t);return Zr(Wl,{product:e},r)}))})},Xl=['className'],Kl=e=>{let{className:t}=e,r=o(e,Xl);return Zr('svg',n(n({width:9,height:11,viewBox:'0 0 9 11',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-down '.concat(t||'')},r),{},{children:Zr('path',{d:'m4.92 10.824 3.907-3.972A.6.6 0 0 0 9 6.426.6.6 0 0 0 8.827 6l-.355-.36a.594.594 0 0 0-.842 0L5.346 7.957V.594A.583.583 0 0 0 4.764 0h-.502a.605.605 0 0 0-.608.594v7.39L1.357 5.64a.58.58 0 0 0-.831 0L.172 6A.6.6 0 0 0 0 6.426c0 .161.062.312.173.426l3.907 3.972A.58.58 0 0 0 4.5 11a.58.58 0 0 0 .42-.176',fill:'currentColor'})}))},Yl=['className'],Jl=e=>{let{className:t}=e,r=o(e,Yl);return Zr('svg',n(n({width:11,height:7,viewBox:'0 0 11 7',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--chevron '.concat(t||'')},r),{},{children:Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M10.632 6.183a.95.95 0 0 1-.673.24.97.97 0 0 1-.652-.288l-3.375-3.49-3.375 3.49a.96.96 0 0 1-.652.287.96.96 0 0 1-.673-.24.9.9 0 0 1-.299-.625.88.88 0 0 1 .25-.646L5.244.71a.97.97 0 0 1 1.375 0l4.062 4.2a.9.9 0 0 1 .25.646.9.9 0 0 1-.3.626',fill:'currentColor'})}))},Ql=['isOpen','className','style','children','collapseDelay','autoCloseAfter','onToggle'],$l=e=>{let{isOpen:t,className:r,style:i,children:a,collapseDelay:s=300,autoCloseAfter:l,onToggle:c}=e,u=o(e,Ql);const[d,h]=Nn(t),[f,m]=Nn(t?void 0:0),p=En(null),g=En(),v=En(),b=()=>{const e=p.current;e&&m(e.scrollHeight)};return xn((()=>(g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current),t?(h(!0),l&&c&&(v.current=setTimeout((()=>{c(!1)}),l))):(m(0),g.current=setTimeout((()=>{h(!1)}),s)),()=>{g.current&&clearTimeout(g.current),v.current&&clearTimeout(v.current)})),[t,s,l,c]),xn((()=>{if(d&&t){const e=requestAnimationFrame((()=>{b()}));return()=>cancelAnimationFrame(e)}}),[d,t,a]),xn((()=>{t&&d&&b()}),[a,t,d]),d?Zr('div',n(n({className:We('rf-expander overflow-hidden transition-all duration-300 ease-in-out',r),style:n({height:void 0!==f?''.concat(f,'px'):'auto'},'object'==typeof i?i:{})},u),{},{children:Zr('div',{ref:p,children:a})})):null},ec=['className','type'],tc=e=>{let{className:t,type:r}=e,i=o(e,ec);const a=Li('product.badge');return'giftcard'===r?Zr('div',n(n({className:We('rf-return-product-badge rf-return-product__badge rf-return-product__badge--giftcard text-base text-primary',t)},i),{},{children:[Zr(Qs,{className:'inline -mt-1 w-4 h-auto'}),' ',a('giftcard')]})):null},rc=['pending','deleted','href','onDeletedClick','handleAnchorClick'],nc=e=>{let{pending:t=!1,deleted:r=!1,href:i,onDeletedClick:a,handleAnchorClick:s}=e,l=o(e,rc);const c=Li('product');return Zr('div',{className:'rf-return-product-actions rf-return-product__actions flex justify-between items-center',children:[Zr(zl,{onDisabledClick:function(){r&&(null==a||a())},disabled:t||r,onClick:s,className:'rf-return-product__link text-sm underline block',href:i,children:c('go_to_product')}),Zr(tc,n({},l))]})},oc=['calculation'],ic=['product','allProducts','className'],ac=e=>{var t,r,a,s;let{product:{calculation:l},allProducts:c,className:u}=e,d=o(e.product,oc),h=o(e,ic);const f=Li('product.error'),[m,p]=Nn(null),{widgetViewState:g,config:{options:v,data:{formData:b}}}=Gi(),_=Hl(v.getProductUrl,d);function y(){g.set(i.Collapsed)}const C=null!==(t=null==d?void 0:d.quantity)&&void 0!==t?t:1,w=(null!==(r=null==l?void 0:l.price)&&void 0!==r?r:0)*C,k=(null!==(a=null==l?void 0:l.originalPrice)&&void 0!==a?a:0)*C,N=Sn((()=>{const e=c.flatMap((e=>{var t,r;if(e.id!==d.id)return null;const n=null==b||null===(t=b.selectedItems)||void 0===t?void 0:t.filter((t=>t.lineItemId===e.shopifyLineId));return n&&0!==n.length?null===(r=e.calculation)||void 0===r?void 0:r.action:null})).filter((e=>!Ze(e))),t=new Set(e).size>1,r=null==l?void 0:l.action;return t||!r?null:'GIFTCARD'===r?'giftcard':null}),[null==l?void 0:l.action,c,d.id,null==b?void 0:b.selectedItems]),x=!(null!=l&&l.variantId);function E(){x&&p(f('product_unavailable'))}return Zr('li',n(n({className:We('rf-return-product grid grid-cols-[max-content_1fr] gap-x-4 p-base',u)},h),{},{children:[Zr(zl,{disabled:x,onDisabledClick:E,className:'rf-return-product__image-link',onClick:y,href:_,unstyled:!0,children:Zr(Ki,{className:'rf-return-product__image size-[70px] rounded-lg border border-neutral-1 object-cover',src:d.image,alt:d.title})}),Zr('div',{className:'rf-return-product__content flex-1 space-y-1 flex flex-col justify-between',children:[Zr(jl,{className:'text-neutral-3',href:_,title:d.title,variantTitle:d.variantTitle,pending:!l,price:w,compareAtPrice:k,quantity:d.quantity,exchangeRate:null!==(s=null==l?void 0:l.exchangeRate)&&void 0!==s?s:1}),Zr(nc,{pending:!l,deleted:x,href:_,onDeletedClick:E,handleAnchorClick:y,type:N})]}),Zr($l,{className:'col-span-full',isOpen:!!m,autoCloseAfter:5e3,onToggle:e=>p(e?m:null),children:Zr('div',{className:'pt-4',children:Zr(al,{tone:'error',children:m})})})]}))},sc=['className'],lc=e=>{let{className:t}=e,r=o(e,sc);return Zr('li',n(n({className:We('rf-return-product-skeleton flex gap-4 p-base text-sm',t)},r),{},{children:[Zr(ia,{className:'size-[70px] rounded-lg'}),Zr('div',{className:'rf-return-product-skeleton__content flex-1 space-y-1 flex flex-col justify-between',children:[Zr('div',{className:'rf-return-product-skeleton__info space-y-1',children:[Zr(ia,{className:'w-[16ch]'}),Zr(ia,{className:'text-xs w-[12ch]'})]}),Zr(ia,{className:'text-xs w-[16ch]'})]}),Zr(ia,{className:'w-[8ch]'})]}))},cc=()=>{var e,t;const r=Li('return_products'),{returnViewState:o}=Gi(),{orderState:i,calculationState:s}=Zi(),{orderTotal:l}=dl(),c=s.initialFetch,u=null===(e=s.value.data)||void 0===e?void 0:e.lineItems,d=null===(t=i.value.data)||void 0===t?void 0:t.orderData.productsToExchange,h=Sn((()=>u&&d?d.map((e=>{const t=u.find((t=>t.lineItemId===e.shopifyLineId));return n(n({},e),{},{calculation:t})})):[]),[u,d]),f=Boolean(null==h?void 0:h.some((e=>{var t;return'GIFTCARD'===(null===(t=e.calculation)||void 0===t?void 0:t.action)})));return Zr('div',{className:'rf-return-product-list border-b border-neutral-2 relative mb-base group [&[data-state=\'OPEN\']]:mb-[calc(var(--rf-base-spacing)*2)]','data-state':o.value,children:[Zr('div',{className:'rf-return-product-list__header flex justify-between items-center p-base',children:[Zr('button',{className:'rf-return-product-list__toggle-button flex items-center gap-2 font-medium',onClick:function(){o.set((e=>e===a.Collapsed?a.Open:a.Collapsed))},type:'button',children:[Zr('span',{className:'rf-return-product-list__toggle-text',children:r('action')}),Zr(Jl,{className:'transition-transform will-change-transform '.concat(o.value===a.Open?'rotate-180':'rotate-0')})]}),Zr(gl,{value:l,pending:c})]}),Zr('div',{className:'rf-return-product-list__content pb-base group-[&[data-state=\'COLLAPSED\']]:hidden',children:[f&&Zr('div',{className:'rf-return-product-list__container p-base pt-0',children:Zr(al,{className:'rf-return-product-list__banner',tone:'giftcard',children:r('banner.giftcard')})}),Zr('ul',{className:'rf-return-product-list__items divide-y divide-neutral-2',children:Zr(Yi,{pending:c,skeleton:Zr(Vt,{children:[Zr(lc,{}),Zr(lc,{})]}),children:h.map((e=>Zr(ac,{className:'first:pt-0',product:e,allProducts:h},e.id)))})}),Zr(Ea,{className:'absolute inset-x-0 mx-auto bottom-0 translate-y-1/2',variant:'solid',icon:Kl})]})]})},uc=e=>{let{containerRef:t}=e;const{isYScrollable:r,isDirty:n}=(e=>{const[t,r]=Nn(!1),[{isScrolling:n,isDirty:o},i]=Nn({isDirty:!1,isScrolling:!1});return xn((()=>{const t=e.current;if(!t)return;const n=()=>{const e=t.scrollHeight>t.clientHeight;r(e)},o=()=>{const e=t.scrollTop>0;i((t=>({isDirty:!!e||t.isDirty,isScrolling:e})))};n(),o();const a=new ResizeObserver((()=>{n()}));a.observe(t);const s=new MutationObserver((()=>{n()}));return s.observe(t,{childList:!0,subtree:!0,attributes:!0,attributeFilter:['style','class']}),t.addEventListener('scroll',o,{passive:!0}),()=>{a.disconnect(),s.disconnect(),t.removeEventListener('scroll',o)}}),[e]),{isYScrollable:t,isScrolling:n,isDirty:o}})(t),o=!n&&r;return Zr('div',{className:'rf-scroll-indicator w-full h-36 bg-gradient-to-t from-white to-transparent absolute bottom-full inset-x-0 flex items-end justify-center p-base transition-all pointer-events-none',style:{opacity:o?1:0,visibility:o?'visible':'hidden'},children:Zr('div',{className:'rf-scroll-indicator__content rounded-full py-2.5 w-24 bg-neutral-1 text-center space-x-1 align-middle',children:[Zr('span',{className:'rf-scroll-indicator__text',children:'Scroll'}),' ',Zr(Kl,{className:'inline text-neutral-3 -mt-0.5'})]})})},dc=()=>{const{cartState:e,hasFailed:t}=Zi(),{widgetViewState:r}=Gi(),n=En(null),o=r.value===i.Open,a=e.value.data&&!e.value.error&&0!==e.value.data.transformed.item_count;return Zr('div',{className:We('rf-drawer bg-background text-foreground transition-[transform,visibility] duration-300 ease-in-out z-20 fixed max-desktop:inset-0 desktop:right-0 desktop:inset-y-0 size-full pt-safe flex flex-col desktop:max-w-[var(--rf-desktop-widget-width)]',o?'max-desktop:translate-y-0 desktop:translate-x-0 visible':'max-desktop:translate-y-full desktop:translate-x-full pointer-events-none invisible'),'aria-hidden':!o,inert:!o,tabIndex:o?void 0:-1,children:[Zr(Tl,{}),Zr(wl,{}),Zr('div',{className:'rf-drawer__content flex-1 min-h-0 overflow-y-auto flex flex-col',ref:n,children:[t?Zr(Nl,{}):Zr(Vt,{children:[Zr(cc,{}),Zr(a?Zl:Al,{}),Zr(Rl,{})]}),Zr(Cl,{className:'rf-drawer__adjustments mt-auto'})]}),Zr('div',{className:'rf-drawer__footer relative mt-auto',children:[Zr(uc,{containerRef:n}),Zr(Sl,{})]})]})},hc=['options','className','style'],fc=e=>{let{options:{id:t,tone:r='info',message:i,isVisible:a},className:s,style:l}=e,c=o(e,hc);const{remove:u}=os();return Zr('div',n(n({onClick:()=>u(t),className:We('rf-toast animate-slide-up-and-fade-in overflow-hidden shadow-sm max-w-screen-lg mx-auto','rf-toast--'.concat(r),s)},c),{},{style:n({visibility:a?'visible':'hidden',opacity:a?1:0,transform:a?void 0:'translateY(-20px)',transition:'all '.concat(300,'ms ease-in-out')},'object'==typeof l?l:void 0),children:Zr(al,{tone:r,className:'font-medium',border:'dashed',children:i})}))},mc=()=>{const{queue:e}=os();return 0===e.length?null:Zr('div',{className:'rf-toast__container p-base space-y-base',children:e.map((e=>Zr(fc,{options:e},e.id)))})},pc=['className'],gc=e=>{let{className:t}=e,r=o(e,pc);return Zr('svg',n(n({width:11,height:9,viewBox:'0 0 11 9',fill:'currentColor',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--arrow-left '.concat(t||'')},r),{},{children:Zr('path',{d:'m.66 5.202 3.61 3.473c.103.1.24.154.387.154a.56.56 0 0 0 .387-.154l.328-.315a.52.52 0 0 0 0-.749l-2.107-2.03H9.96c.301 0 .54-.228.54-.518v-.446c0-.29-.239-.54-.54-.54H3.242l2.131-2.042a.505.505 0 0 0 0-.739L5.045.982a.55.55 0 0 0-.387-.153.56.56 0 0 0-.387.153L.66 4.455a.513.513 0 0 0 0 .747'})}))},vc=['className'],bc=e=>{let{className:t}=e,r=o(e,vc);const i=Li('summary'),{orderState:a}=Zi(),s=xl(),l=a.value.pending;return Zr(ya,n(n({variant:'ghost',icon:gc,iconPosition:'left',onClick:async function(){l||s.back()},disabled:l,className:We('rf-back-button desktop:text-black desktop:bg-neutral-2 desktop:hover:opacity-50 desktop:font-semibold max-desktop:text-sm max-desktop:px-0 max-desktop:h-auto',t),type:'button'},r),{},{children:Zr('span',{className:'rf-back-button__text',children:i('back')})}))},_c=e=>Zr('svg',n(n({width:65,height:131,viewBox:'0 0 65 131',fill:'none',xmlns:'http://www.w3.org/2000/svg'},e),{},{children:Zr('path',{d:'M30.726 1.8C14.17 30.988-19.17 79.318 20.412 104.855c9.697 6.256 19.735 5.577 30.787 5.577.477 0 11.533-1.774 10.313-2.75-3.267-2.614-22.279-18.309-9.855-8.25 1.315 1.063 11.46 6.781 11.46 8.555 0 4.833-17.775 16.705-21.39 20.321',stroke:'currentColor',strokeWidth:3.6,strokeLinecap:'round'})})),yc=['className'],Cc=e=>{var t;let{className:r}=e,i=o(e,yc);const a=Li('tutorial.intro');return(null===(t=ja().activeTutorial)||void 0===t?void 0:t.id)!==Ga.Intro?null:Zr('div',n(n({className:We('rf-tutorial-pointer rf-tutorial-pointer--total absolute bottom-0 right-full text-white translate-y-3 -translate-x-2 z-10 font-caveat text-2xl pointer-events-none',r)},i),{},{children:[Zr('span',{className:'rf-tutorial-pointer__text absolute -top-3 -translate-y-full left-0 w-28 text-center leading-none block rotate-3',children:a('pointer_total')}),Zr(_c,{className:'text-button-background'})]}))},wc=()=>Zr('div',{className:'rf-exchange-total-skeleton max-desktop:max-w-48 w-full desktop:w-48 space-y-1 text-xs',children:[Zr(ia,{className:'w-full rounded-md'}),Zr(ia,{className:'w-full rounded-md'})]}),kc=['className'],Nc=e=>{var t;let{className:r}=e,i=o(e,kc);const a=Li('summary'),{orderState:s,isPending:l}=Zi(),{orderTotal:c,cartTotal:u}=dl(),d=null===(t=s.value.data)||void 0===t?void 0:t.orderData.orderName;return Zr(Yi,{skeleton:Zr(wc,{}),pending:l,children:Zr('div',n(n({className:We('rf-exchange-total font-normal text-sm max-desktop:max-w-48 w-full desktop:w-48 flex-1',r)},i),{},{children:[Zr(xc,{label:d?a('order_label',{orderName:d}):a('order_label_no_name'),value:c,children:Zr(Cc,{})}),Zr(xc,{label:a('cart_contents'),value:Math.max(0,u)})]}))})};function xc(e){let{label:t,value:r,children:n}=e;return Zr('div',{className:'rf-exchange-total__row flex justify-between relative',children:[Zr('span',{className:'rf-exchange-total__label text-neutral-3',children:t}),Zr(gl,{className:'text-sm font-normal relative',value:r,children:n})]})}const Ec=['className'],Sc=e=>{let{className:t}=e,r=o(e,Ec);return Zr('svg',n(n({width:14,height:17,viewBox:'0 0 14 17',fill:'none',xmlns:'http://www.w3.org/2000/svg',className:'rf-icon rf-icon--bag '.concat(t||'')},r),{},{children:Zr('path',{fillRule:'evenodd',clipRule:'evenodd',d:'M3.175 4.146H2.103c-.74 0-1.355.589-1.408 1.348l-.691 9.952c-.028.401.107.797.374 1.092A1.4 1.4 0 0 0 1.412 17h11.176a1.4 1.4 0 0 0 1.034-.462c.267-.295.402-.69.374-1.093l-.691-9.95c-.053-.76-.668-1.349-1.408-1.349h-1.065V3.94C10.832 1.763 9.117 0 7 0 4.96 0 3.076 1.67 3.168 3.939zm7.657 1.244V8.5a.614.614 0 0 1-.605.622.614.614 0 0 1-.605-.622V5.39H4.378V8.5a.614.614 0 0 1-.605.622.614.614 0 0 1-.605-.622s.052-1.453.035-3.11h-1.1a.204.204 0 0 0-.2.193l-.692 9.95a.2.2 0 0 0 .053.157.2.2 0 0 0 .148.066h11.176a.2.2 0 0 0 .148-.066.2.2 0 0 0 .053-.156l-.691-9.951a.204.204 0 0 0-.201-.193zm-1.21-1.244V3.94c0-1.49-1.174-2.696-2.622-2.696S4.378 2.45 4.378 3.939v.207z',fill:'currentColor'})}))},Tc=e=>Zr('svg',n(n({width:31,height:98,viewBox:'0 0 31 98',fill:'none',xmlns:'http://www.w3.org/2000/svg'},e),{},{children:Zr('path',{d:'M6.014 2C8.74 28.597 14.31 53.53 19.822 79.595c.31 1.472 3.905 16.778 4.42 15.89 4.37-7.523.112-18.808 3.362-26.172 3.467-7.856-3.32 17.294-1.612 25.709.618 3.041-4.764-5.162-5.6-6.215C15.395 82.523 8.836 79.136 2 75.165',stroke:'currentColor',strokeWidth:4,strokeLinecap:'round'})})),Ic=['className'],Mc=e=>{var t;let{className:r}=e,i=o(e,Ic);const a=Li('tutorial.intro');return(null===(t=ja().activeTutorial)||void 0===t?void 0:t.id)!==Ga.Intro?null:Zr('div',n(n({className:We('rf-tutorial-pointer rf-tutorial-pointer--cart absolute bottom-full inset-x-0 -translate-y-4 flex flex-col items-center text-white font-caveat text-2xl pointer-events-none',r)},i),{},{children:[Zr('span',{className:'rf-tutorial-pointer__text whitespace-nowrap text-center block -rotate-6 -translate-x-3',children:a('pointer_cart')}),Zr(Tc,{className:'text-button-background'})]}))},Ac=['className'],Rc=e=>{let{className:t}=e,r=o(e,Ac);const a=Li('summary'),{widgetViewState:s}=Gi();return Zr('div',n(n({className:We('relative',t)},r),{},{children:[Zr(Mc,{}),Zr(ya,{className:'rf-summary__button rf-summary__button--cart ![--icon-height:initial]',onClick:()=>s.set((e=>e===i.Collapsed?i.Open:i.Collapsed)),icon:Sc,children:a('view_cart')})]}))},Pc=['className'],Oc=()=>{var e;const t=Li('summary');return Zr('div',{className:'rf-exchange-summary rf-summary__container fixed bottom-0 inset-x-0 pb-safe animate-slide-up',style:{zIndex:(null===(e=ja().activeTutorial)||void 0===e?void 0:e.id)===Ga.Intro?50:void 0},children:[Zr(mc,{}),Zr('div',{className:'rf-summary h-[var(--rf-summary-height,_auto)] bg-widget-background text-widget-foreground max-desktop:rounded-t-3xl flex max-desktop:flex-col desktop:justify-between desktop:px-5',children:[Zr('div',{className:'rf-summary__header flex items-center max-desktop:px-5 max-desktop:flex-1 gap-2 desktop:gap-4 text-sm desktop:text-base',children:[Zr(bc,{className:'rf-summary__back max-desktop:mr-auto'}),Zr(Hc,{className:'max-desktop:hidden'}),Zr('div',{className:'flex items-center gap-2 desktop:flex-row-reverse',children:[Zr(ua,{}),Zr('span',{className:'rf-summary__title font-medium',children:t('title')})]})]}),Zr(Hc,{className:'desktop:hidden'}),Zr('div',{className:'rf-summary__actions max-desktop:px-5 max-desktop:py-3 gap-4 flex desktop:flex-row-reverse items-end desktop:items-center justify-between',children:[Zr(Rc,{}),Zr(Hc,{className:'max-desktop:hidden'}),Zr(Nc,{})]})]})]})},Hc=e=>{let{className:t}=e,r=o(e,Pc);return Zr('div',n({className:We('rf-summary__divider max-desktop:h-px w-full desktop:w-px desktop:self-stretch bg-neutral-2 shrink-0',t)},r))},Lc=['className'],Bc=e=>{let{className:t}=e,r=o(e,Lc);const{widgetViewState:a}=Gi(),s=ja();return Zr('div',n({'aria-hidden':!0,onClick:function(){s.isActive?s.stop():a.set(i.Collapsed)},className:We('rf-backdrop transition-[background-color,visibility] inset-0 size-full fixed duration-300 ease-in-out z-10',a.value===i.Open||s.isActive?'bg-black/30 visible':'bg-black/0 pointer-events-none invisible',t)},r))},Dc=()=>Zr(Vt,{children:[Zr(Oc,{}),Zr(Bc,{}),Zr(dc,{})]});var Fc=Object.freeze({__proto__:null,default:e=>{const{locale:t,messages:r}=e;return Zr(Ns,{children:Zr(Ri,{messages:r,locale:t,children:Zr(qs,n(n({},e),{},{children:Zr(Ps,{children:Zr(Ss,{children:Zr(Bs,{children:Zr(Ws,{children:Zr(js,{children:Zr(xs,{children:[Zr(Dc,{}),Zr(ts,{}),Zr(ks,{})]})})})})})})}))})})}});export{Nt as Returnflows,Nt as default};
2
2
  //# sourceMappingURL=index.esm.js.map